/* =========================================================
   TOKENS
========================================================= */
:root{
  --black: #ffffff;
  --black-soft: #ffffff;
  --wine: #7d6a66;
  --wine-bright: #7d6a66;
  --wine-deep: #7d6a66;
  --cream: #7d6a66;
  --muted: #000000;
  --line: rgba(26,16,19,0.1);

  /* raw light/dark helpers used where the old theme hardcoded cream/black rgba values */
  --surface-tint: rgba(26,16,19,0.05);
  --surface-tint-strong: rgba(26,16,19,0.1);
  --on-surface-soft: rgba(26,16,19,0.65);

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", -apple-system, sans-serif;

  --nav-h: 76px;
}

*{ margin:0; padding:0; box-sizing:border-box; }

html{ scroll-behavior:smooth; }

body{
  background: var(--black);
  color: var(--cream);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a{ color:inherit; text-decoration:none; }
ul{ list-style:none; }
img{ max-width:100%; display:block; }

::selection{ background: var(--wine-bright); color: var(--cream); }

.h3 {
   font-family: "Sarina", cursive;
}

.fact-label{
  font-family: "Sarina", cursive;
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--muted);
  max-width: 18ch;
}

.exp {
  font-family: "Sarina", cursive;
  font-weight: 600;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 1.78rem;
  letter-spacing: 0.04em;
  color: var(--muted);
  max-width: 18ch;
  margin: 0 auto;
  margin-bottom: 24px;
}

.exp p{ 
  margin: 0;
  color: var(--cream);
}

/* =========================================================
   HEADER — circular portrait, name, nav underneath
========================================================= */
.header{
  padding: 64px 24px 40px;
  background:
    radial-gradient(circle at 50% 0%, rgba(92,10,32,0.08), transparent 60%),
    var(--black);
  border-bottom: 1px solid var(--line);
}

.header-inner{
  max-width: 720px;
  width: 100%;
  margin: 0 auto;
  display:flex;
  flex-direction:column;
  align-items:center;
  text-align:center;
}

.portrait-ring{
  position:relative;
  width: 132px;
  height: 132px;
  border-radius: 50%;
  padding: 5px;
  margin: 0 auto;
  background: conic-gradient(from 180deg, var(--wine-bright), var(--wine-deep), var(--wine-bright));
  animation: spin 10s linear infinite;
  flex-shrink: 0;
}



.portrait{
  width:100%;
  height:100%;
  border-radius:50%;
  object-fit:cover;
  border: 3px solid var(--black);
  animation: spin-reverse 10s linear infinite;
}



.name{
  margin-top: 22px;

   font-family: "Sarina", cursive;
  font-weight: 500;
  font-size: clamp(2.2rem, 5vw, 3rem);
  letter-spacing: -0.01em;
}

.role{
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.92rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

/* nav sits BELOW the id block, i.e. bottom of header */
.nav-desktop{
  margin-top: 34px;
  display:flex;
  align-items:center;
  gap: 8px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-tint);
}

.nav-link{
  padding: 10px 20px;
  font-size: 0.88rem;
  font-weight: 500;
  border-radius: 999px;
  color: var(--muted);
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover{
  color: var(--cream);
  background: var(--surface-tint-strong);
}

.nav-link--cta{
  background: var(--wine);
  color: black;
}

.nav-link--cta:hover{
  background: var(--wine-bright);
  color: white;
}

.nav-link nav-link--cta.active{
  
  color: white;
}

.nav-link.active{
  color: var(--cream);
  
}

/* Intro copy (eyebrow/lede/wrk) now lives inside the header itself,
   below the nav pill, instead of inside the pinned about panel. */
.header .section-inner{
  margin-top: 40px;
}

/* =========================================================
   SECTIONS — shared rhythm
========================================================= */
.section{ padding: 96px 24px; }
.section-inner{ max-width: 720px; margin: 0 auto; }

.eyebrow{
  display:block;
  font-family: "Sarina", cursive;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--wine-bright);
  margin-bottom: 22px;
  text-align: center;
}

/* ABOUT */
.lede{
  font-family: "Sarina", cursive;
  font-size: clamp(1.3rem, 2.6vw, 1.7rem);
  font-weight: 400;
  line-height: 1.5;
  color: var(--cream);
  text-align: center;
}

.work-copy p{
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--muted);
  text-align: center;
}

.wrk {
  text-align: center;
  color: var(--muted);
  font-size: 0.75rem;
  margin-top: 20px;
}

.about-grid{
  width: 100%;
  max-width: 720px;
  margin: 48px auto 0;
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  border-top: 1px solid var(--line);
  padding-top: 32px;
  text-align: center;
}

/* Inside the pinned about-reveal panel, the grid is the only content
   now (title/lede moved into the header), so it doesn't need the
   top margin that separates it from an eyebrow/lede above it. */
.about-fixed .about-grid{ margin-top: 0; }

.about-fact{ display:flex; flex-direction:column; align-items:center; gap:8px; }

/* Education section only: 2-up-2-up-2 layout at 770px and below */
@media (max-width: 770px){
  #education .about-grid{ grid-template-columns: repeat(2, 1fr); }
}

.fact-label{
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.fact-value{ font-size: 0.95rem; }

/* WORK — always side-by-side text/image blocks, even on mobile */
.work{ background: var(--black-soft); border-top:1px solid var(--line); border-bottom:1px solid var(--line); }

.work-block{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items:center;
  padding: 40px 0;
  border-bottom: 1px solid var(--line);
}

.work-block:last-child{ border-bottom:none; }

.work-block--reverse .work-media{ order: -1; }

.work-media{
  border-radius: 14px;
  overflow:hidden;
  border: 1px solid var(--line);
  aspect-ratio: 4 / 5;
}

.work-media img{
  width:100%;
  height:100%;
  object-fit:cover;
}

.work-copy h3{
  font-family: "Sarina", cursive;
  font-weight: 500;
  font-size: 1.5rem;
  margin-bottom: 12px;
  text-align: center;
}

.work-copy p{
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

/* Wine-red CTA button — logo + "Selected Work" label, links to portfolio */
.work-logo-link{
  display:flex;
  align-items:center;
  justify-content:center;
  gap: 18px;
  width: fit-content;
  margin: 56px auto 0;
  padding: 18px 44px 18px 18px;
  border-radius: 999px;
  background: white;
  color: var(--wine-bright);
  
  font-family: "Sarina", cursive;
  font-size: 1.3rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  box-shadow: 0 16px 48px rgba(3, 3, 3, 0.242), 0 0 0 1px rgba(0, 0, 0, 0.25);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.work-logo-link:hover{
  transform: translateY(-4px) scale(1.03);
  background: white;
  box-shadow: 0 22px 60px rgba(5, 5, 5, 0.6), 0 0 0 1px rgba(0, 0, 0, 0.45);
}
.work-logo-link img{
  width: 68px;
  height: 68px;
  
  border-radius: 50%;
  object-fit: cover;
  border: 0px solid rgba(247, 242, 240, 0);
  flex-shrink: 0;
}
.work-logo-link span{ white-space: nowrap; }

@media (max-width: 475px){
  .work-logo-link{ padding: 14px 32px 14px 14px; gap: 14px; font-size: 1.05rem; margin-top: 44px; }
  .work-logo-link img{ width: 52px; height: 52px; }
}
@media (max-width: 360px){
  .work-logo-link{ padding: 12px 26px 12px 12px; gap: 12px; font-size: 0.95rem; margin-top: 32px; }
  .work-logo-link img{ width: 46px; height: 46px; }
}
.skill-list{
  display:flex;
  flex-wrap:wrap;
  gap: 12px;
  justify-content: center;
}

.skill-list li{
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.86rem;
  color: var(--cream);
  background: transparent;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.skill-list li:hover{
  background: transparent;
  border-color: transparent;
  color: var(--muted);
}

.skill-list li a{
  display: block;
  color: var(--muted);
}

/* Expertise logos */
.expertise-category{
  margin-top: 48px;
}

.skills-logos{
  display:flex;
  justify-content:center;
  align-items:center;
  flex-wrap:wrap;
  gap: 2.5rem;
}

.skill-logo-item{
  position:relative;
  cursor:pointer;
  padding: 0.5rem;
}

.skill-logo-item::before{
  content:'';
  position:absolute;
  top:50%;
  left:50%;
  transform:translate(-50%,-50%);
  width: 100px;
  height: 100px;
  border-radius:50%;
  background: radial-gradient(circle, rgba(138, 21, 56, 0) 0%, transparent 70%);
  z-index:-1;
  opacity:0;
  transition: opacity 0.4s ease;
}

.skill-logo-item:hover::before{ opacity:1; }

.skill-logo{
  width: 64px;
  height: 64px;
  
  object-fit: contain;
  filter: drop-shadow(0 8px 16px rgba(26, 16, 19, 0)) grayscale(0.15);
  transition: transform 0.3s ease, filter 0.3s ease;
  animation: float-logo 4.5s ease-in-out infinite;
}



.skill-logo-item:hover .skill-logo{
  transform: translateY(-8px) scale(1.12);
  filter: drop-shadow(0 16px 28px #7d6a66);
}



.canva-logo{ width: 64px; height: auto; }

/* Some brand marks (GitHub, Express.js) ship as solid black artwork —
   invert them so they read against the dark skills panel background
   instead of disappearing into it. */
.skill-logo--invert{ filter: invert(1) drop-shadow(0 8px 16px rgba(26,16,19,0.18)) grayscale(0.15); }
.skill-logo-item:hover .skill-logo--invert{ filter: invert(1) drop-shadow(0 16px 28px rgba(138,21,56,0.55)); }

@media (prefers-reduced-motion: reduce){
  .skill-logo{ animation: none; }
}

/* CONTACT */
.contact{ text-align:center; }

.contact-headline{
  font-family: "Sarina", cursive;
  font-weight: 500;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin-bottom: 24px;
  text-align: center;
}

.contact-email{
  display:inline-block;
  font-size: 1.1rem;
  color: var(--wine-bright);
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
}

.socials{
  margin-top: 32px;
  display:flex;
  justify-content:center;
  gap: 24px;
}

.social-link{ color: var(--muted); font-size: 0.88rem; }
.social-link:hover{ color: var(--cream); }

/* =========================================================
   FOOTER — cinematic curtain-reveal footer
========================================================= */
.footer-reveal{
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 640px;
  clip-path: polygon(0% 0, 100% 0%, 100% 100%, 0 100%);
}

.site-footer{
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  min-height: 640px;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  overflow:hidden;
  background: var(--black);
  color: var(--cream);
  z-index: 1;
}

.footer-aurora{
  position:absolute;
  top:50%;
  left:50%;
  width: 80vw;
  height: 60vh;
  transform: translate(-50%,-50%) scale(1);
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, rgba(138, 21, 56, 0) 0%, rgba(92, 10, 32, 0) 40%, transparent 70%);
  filter: blur(60px);
  pointer-events:none;
  z-index: 0;
  animation: footer-breathe 8s ease-in-out infinite alternate;
}

@keyframes footer-breathe{
  0%{ transform: translate(-50%,-50%) scale(1); opacity:0.6; }
  100%{ transform: translate(-50%,-50%) scale(1.1); opacity:1; }
}



.footer-giant-text{
  position:absolute;
  left:50%;
  width: min(78vw, 820px);
  bottom:-4vh;
  transform: translateX(-50%);
  height: auto;
  display: block;
  opacity: 0.5;
  z-index:0;
  pointer-events:none;
  user-select:none;
}

/* 1. marquee strip */
.footer-marquee{
  position:relative;
  margin-top: 64px;
  width: 100%;
  overflow:hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface-tint);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 14px 0;
  z-index: 2;
  transform: rotate(-1.5deg) scale(1.06);
  box-shadow: 0 12px 30px rgba(26, 16, 19, 0);
}

.footer-marquee-track{
  display:flex;
  width: max-content;
  animation: footer-scroll-marquee 32s linear infinite;
}

@keyframes footer-scroll-marquee{
  from{ transform: translateX(0); }
  to{ transform: translateX(-50%); }
}

.footer-marquee-item{
  display:flex;
  align-items:center;
  gap: 3rem;
  padding: 0 1.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  white-space:nowrap;
}

.footer-marquee-item a{ color: var(--muted); transition: color 0.2s ease; }
.footer-marquee-item a:hover{ color: var(--wine-bright); }
.footer-marquee-item .dot{ color: var(--wine-bright); opacity:0.6; }

/* 2. center content */
.footer-center{
  position:relative;
  z-index: 2;
  flex: 1;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap: 40px;
  padding: 24px;
  max-width: 760px;
  margin: 0 auto;
  width:100%;
}

.footer-logo-mark{
  width: clamp(72px, 12vw, 120px);
  height: clamp(72px, 12vw, 120px);
  border-radius: 50%;
  
  padding: 12px;
  object-fit: contain;
  
}

.footer-links-primary{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap: 12px;
  width:100%;
}

.footer-links-secondary{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap: 10px;
  width:100%;
  margin-top: -8px;
}

.footer-pill{
  padding: 14px 26px;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--cream);
  background: transparent;
  border: 1px solid var(--line);
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.2s ease;
  cursor:pointer;
}

.footer-pill:hover{
  background: rgba(138, 21, 56, 0);
  border-color: var(--wine-bright);
}

.footer-pill--ghost{
  padding: 10px 20px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--muted);
  border-color: transparent;
  background: var(--surface-tint);
}

.footer-pill--ghost:hover{
  color: var(--cream);
  background: var(--surface-tint-strong);
  border-color: transparent;
}

/* social — kept transparent, no fill */
.footer-socials{
  
  display:flex;
  gap: 12px;
}

.footer-social-link{
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: transparent;
  display:flex;
  align-items:center;
  justify-content:center;
  color: var(--cream);
  opacity: 0.7;
  transition: border-color 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
  flex-shrink:0;
}

.footer-social-link svg{ width: 17px; height: 17px; }

.footer-social-link:hover{
  border-color: var(--wine-bright);
  transform: translateY(-2px);
  opacity: 1;
}

.footer-social-link, footer-magnetic {
  color: black;
}

/* 3. bottom bar */
.footer-bottom-bar{
  position:relative;
  z-index: 2;
  width:100%;
  padding: 20px 28px 28px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 16px;
  flex-wrap:wrap;
}

.footer-copyright{
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--on-surface-soft);
}

.footer-credit{
  display:flex;
  align-items:center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform:uppercase;
  color: var(--on-surface-soft);
}

.footer-heart{
  color: var(--wine-bright);
  animation: footer-heartbeat 2s cubic-bezier(0.25,1,0.5,1) infinite;
}

@keyframes footer-heartbeat{
  0%,100%{ transform: scale(1); }
  15%,45%{ transform: scale(1.25); }
  30%{ transform: scale(1); }
}

.footer-to-top{
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--cream);
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.footer-to-top:hover{ border-color: var(--wine-bright); }
.footer-to-top svg{ width: 18px; height: 18px; transition: transform 0.25s ease; }
.footer-to-top:hover svg{ transform: translateY(-2px); }

@media (prefers-reduced-motion: reduce){
  .footer-aurora, .footer-marquee-track, .footer-heart{ animation:none; }
}

/* =========================================================
   MOBILE BOTTOM NAV — hidden by default, shown 360–475px
========================================================= */
.mobile-nav{
  display:none;
}

/* =========================================================
   RESPONSIVE
========================================================= */
@media (max-width: 768px){
  .about-grid{ gap: 14px; margin-top: 36px; padding-top: 24px; }
  .fact-label{ font-size: 0.62rem; }
  .fact-value{ font-size: 0.8rem; }
  .work-block{ gap: 20px; padding: 28px 0; }
  .work-copy h3{ font-size: 1.2rem; }
  .work-copy p{ font-size: 0.85rem; line-height: 1.55; }
  .skills-logos{ gap: 1.8rem; }
  .skill-logo, .canva-logo{ width: 52px; height: 52px; }

  .footer-reveal{ height: auto; min-height: 100vh; }
  .site-footer{ height: auto; min-height: 100vh; padding-bottom: 8px; }
  .footer-giant-text{ width: min(82vw, 640px); }
  .footer-marquee{ margin-top: 40px; }
  .footer-center{ gap: 28px; padding: 20px; }
  .footer-pill{ padding: 12px 20px; font-size: 0.8rem; }
  .footer-bottom-bar{ padding: 16px 18px 24px; justify-content:center; text-align:center; }
}

/* 475px -> 360px : swap top nav for bottom pill nav */
@media (max-width: 475px){

  .nav-desktop{ display:none; }

  .header{ padding: 48px 20px 32px; }

  .section{ padding: 64px 20px; }

  .footer-reveal{ padding-bottom: 100px; }

  .work-block{
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    padding: 22px 0;
  }

  .about-grid{ gap: 8px; margin-top: 28px; padding-top: 20px; }
  .fact-label{ font-size: 0.56rem; }
  .fact-value{ font-size: 0.7rem; }

  .work-copy h3{ font-size: 1.05rem; margin-bottom: 6px; }
  .work-copy p{ font-size: 0.8rem; line-height: 1.5; }
  .work-media{ border-radius: 10px; }

  .expertise-category{ margin-top: 32px; }
  .skills-logos{ gap: 1.2rem; }
  .skill-logo, .canva-logo{ width: 42px; height: 42px; }
  .skill-logo-item{ padding: 0.3rem; }
  .skill-logo-item::before{ width: 70px; height: 70px; }

  .site-footer{ padding-bottom: 100px; }
  .footer-giant-text{ width: min(86vw, 480px); bottom: 11vh; }
  .footer-marquee{ margin-top: 28px; transform: rotate(-1deg) scale(1.03); }
  .footer-marquee-item{ font-size: 0.68rem; gap: 2rem; padding: 0 1rem; }
  .footer-center{ gap: 20px; padding: 16px; }
  .footer-logo-mark{ width: 64px; height: 64px; }
  .footer-links-primary{ gap: 8px; }
  .footer-links-secondary{ gap: 6px; margin-top: -4px; }
  .footer-pill{ padding: 10px 16px; font-size: 0.72rem; }
  .footer-pill--ghost{ padding: 8px 14px; font-size: 0.68rem; }
  .footer-socials{ gap: 8px; }
  .footer-social-link{ width: 32px; height: 32px; }
  .footer-social-link svg{ width: 14px; height: 14px; }
  .footer-bottom-bar{ padding: 12px 12px 96px; gap: 10px; }
  .footer-copyright{ font-size: 0.58rem; }
  .footer-credit{ font-size: 0.58rem; padding: 8px 14px; }
  .footer-to-top{ width: 36px; height: 36px; }

  .mobile-nav{
    display:flex;
    align-items:center;
    justify-content:space-between;
    position:fixed;
    left: 16px;
    right: 16px;
    bottom: 18px;
    height: 68px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(255,255,255,0.55);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--line);
    box-shadow: 0 12px 32px rgba(26,16,19,0.14);
    z-index: 999;
  }

  .mnav-link{
    width: 52px;
    height: 48px;
    display:flex;
    flex-direction: column;
    align-items:center;
    justify-content:center;
    gap: 3px;
    color: var(--muted);
    transition: color 0.2s ease;
  }

  .mnav-link svg{ width: 19px; height: 19px; flex-shrink:0; }
  .mnav-link .material-symbols-outlined{ font-size: 19px; line-height: 1; flex-shrink:0; }

  .mnav-label{
    font-size: 0.39rem;
    font-family: "Sarina", cursive;
    font-weight: 500;
    letter-spacing: 0.01em;
    text-align: center;
    line-height: 1.1;
    white-space: nowrap;
  }

  .mnav-link.active,
  .mnav-link:hover{ color: var(--wine-bright); }

  .mnav-home{
    width: 52px;
    height: 52px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid transparent;
    background: transparent;
    flex-shrink: 0;
    transform: translateY(-4px);
  ;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .mnav-home img{
    width: 78%;
    height: 78%;
    object-fit: contain;
  }
}

@media (max-width: 360px){
  .mobile-nav{
    left: 10px;
    right: 10px;
    padding: 0 8px;
    height: 60px;
  }
  .mnav-link{ width: 44px; }
  .mnav-link svg{ width: 17px; height: 17px; }
  .mnav-link .material-symbols-outlined{ font-size: 17px; }
  .mnav-label{ font-size: 0.44rem; }
  .mnav-home{ width: 46px; height: 46px; }
  .name{ font-size: 1.9rem; }

  .work-block{ gap: 10px; padding: 18px 0; }
  .about-grid{ gap: 6px; margin-top: 22px; padding-top: 16px; }
  .fact-label{ font-size: 0.5rem; }
  .fact-value{ font-size: 0.62rem; }
  .work-copy h3{ font-size: 0.95rem; }
  .work-copy p{ font-size: 0.74rem; line-height: 1.45; }

  .skills-logos{ gap: 0.9rem; }
  .skill-logo, .canva-logo{ width: 36px; height: 36px; }

  .footer-giant-text{ width: min(90vw, 400px); bottom: 10vh; }
  .footer-marquee{ margin-top: 20px; }
  .footer-marquee-item{ font-size: 0.6rem; gap: 1.5rem; padding: 0 0.8rem; }
  .footer-logo-mark{ width: 54px; height: 54px; padding: 8px; }
  .footer-pill{ padding: 8px 14px; font-size: 0.66rem; }
  .footer-pill--ghost{ padding: 7px 12px; font-size: 0.62rem; }
  .footer-social-link{ width: 28px; height: 28px; }
  .footer-social-link svg{ width: 12px; height: 12px; }
  .footer-bottom-bar{ padding: 10px 8px 88px; }
  .footer-copyright{ font-size: 0.52rem; }
  .footer-credit{ font-size: 0.52rem; padding: 6px 10px; }
  .footer-to-top{ width: 32px; height: 32px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .portrait-ring, .portrait{ animation: none; }
  html{ scroll-behavior:auto; }
}
/* =========================================================
   FOOTER-STYLE PINNED DUO — "Who I Am" + "What I Do"
   Stats is a plain, always-visible section (all screen sizes).
   The two work-block articles are combined into ONE panel that
   pins together as a single unit — reusing the exact technique
   the site's own footer uses: a tall spacer (.duo-reveal) with
   clip-path, containing a position:fixed inner panel. clip-path
   on the spacer makes the browser treat it as the containing/
   clipping block for its fixed descendant, so the panel only
   ever appears within the spacer's box — sliding in as you
   scroll into it, holding fixed while you scroll through it,
   and disappearing once you scroll past it. No JS required.
   Skills (next section) then scrolls up and over the tail of
   that panel, same overlap technique used elsewhere on the page.
========================================================= */
:root{
  --duo-h: 240vh;
  --overlap: 60vh;
}

.work--pinned-story{ padding: 96px 0 0; position:relative; }

.story-eyebrow{
  display:block;
  max-width:720px;
  margin: 0 auto 32px;
  padding: 0 24px;
}

/* Stats — plain section, in normal flow, visible at every width */
.stats-strip{
  position: relative;
  background: white;
  padding: 64px 24px;
}

.stats-strip-inner{
  max-width: 720px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  text-align: center;
}

.stat{ display:flex; flex-direction:column; align-items:center; gap:8px; }

.stat-num{
  font-family: "Sarina", cursive;
  font-weight: 500;
  font-size: 2.75rem;
  color: var(--cream);
  line-height: 1;
}

.stat-num::after{ content: ""; }

.stat-label{
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--cream);
  max-width: 18ch;
}

/* Spacer — reserves the scroll runway and, via clip-path, becomes
   the containing block for the fixed panel inside it. */
.duo-reveal{
  position: relative;
  width: 100%;
  height: auto;
  background: var(--black-soft);
}

/* The panel — now in normal flow (no longer pinned/fixed). */
.duo-fixed{
  position: static;
  width: 100%;
  height: auto;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  background: white;
}

.duo-inner{
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 24px;
  max-height: none;
  overflow-y: visible;
  scrollbar-width: none;
}
.duo-inner::-webkit-scrollbar{ display:none; }

.duo-inner .work-block{ padding: 20px 0; }
.duo-inner .work-block:first-child{ padding-top: 0; }
.duo-inner .work-block:last-child{ padding-bottom: 0; border-bottom:none; }

/* ---------- Tablet ---------- */
@media (max-width: 899px){
  :root{ --duo-h: 210vh; --overlap: 50vh; }
}

/* ---------- Mobile: 767px and below ---------- */
@media (max-width: 767px){
  :root{ --duo-h: 190vh; --overlap: 42vh; }

  .stats-strip{ padding: 48px 20px; }
  .stats-strip-inner{ grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .duo-inner{ padding: 0 20px; }
  .duo-inner .work-block{ padding: 14px 0; gap: 14px; }
}

/* ---------- Small phones: 475px and below ---------- */
@media (max-width: 475px){
  :root{ --duo-h: 175vh; --overlap: 34vh; }

  /* Keep stats horizontal (3-across) instead of stacking */
  .stats-strip-inner{ grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .stat-num{ font-size: 1.6rem; }
  .stat-label{ font-size: 0.62rem; max-width: 12ch; }

  .duo-inner{ padding: 0 20px; }
  #skills{ border-radius: 22px 22px 0 0; }
}

/* ---------- Smallest phones: 360px and below ---------- */
@media (max-width: 360px){
  :root{ --duo-h: 160vh; --overlap: 28vh; }

  /* Keep stats horizontal (3-across) instead of stacking */
  .stats-strip-inner{ grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .stat-num{ font-size: 1.35rem; }
  .stat-label{ font-size: 0.58rem; max-width: 10ch; }

  .duo-inner{ padding: 0 16px; }
}

/* ---------- Reduced motion: kill the pin/overlap entirely ---------- */
@media (prefers-reduced-motion: reduce){
  .duo-reveal{ height: auto; clip-path: none; }
  .duo-fixed{ position: static; height: auto; min-height: 0; overflow: visible; }
  .duo-inner{ max-height: none; overflow-y: visible; padding: 28px 24px; }
  #skills{ margin-top:0; box-shadow:none; border-radius:0; }
}
/* =========================================================
   BASKETBALL PAGE — pinned "About" panel (footer-style reveal)
   Scoped to .about-reveal/.about-fixed/.work--overlap-about only,
   so the other pages' plain .section.about / .section.work are
   completely unaffected.
========================================================= */
:root{
  --about-h: 130vh;
  --about-overlap: 32vh;
}

.about-reveal{
  margin-top: 64px;
  position: relative;
  width: 100%;
  height: var(--about-h);
  clip-path: polygon(0% 0, 100% 0%, 100% 100%, 0 100%);
  background: var(--black);
}

.about-fixed{
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  min-height: 640px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--black);
}

.about-fixed .section.about{ padding: 0 24px; }

/* Work section scrolls up and over the pinned About panel */
.work--overlap-about{
  position: relative;
  z-index: 5;
  background: var(--black);
  margin-top: calc(var(--about-overlap) * -1);
  border-radius: 32px 32px 0 0;
  box-shadow: 0 -40px 70px rgba(26,16,19,0.14);
}

@media (max-width: 899px){
  :root{ --about-h: 122vh; --about-overlap: 27vh; }
}

@media (max-width: 767px){
  :root{ --about-h: 115vh; --about-overlap: 22vh; }
}

@media (max-width: 475px){
  :root{ --about-h: 110vh; --about-overlap: 16vh; }
  .work--overlap-about{ border-radius: 22px 22px 0 0; }
}

@media (max-width: 360px){
  :root{ --about-h: 108vh; --about-overlap: 12vh; }
}

@media (prefers-reduced-motion: reduce){
  .about-reveal{ height: auto; clip-path: none; }
  .about-fixed{ position: static; height: auto; min-height: 0; overflow: visible; }
  .work--overlap-about{ margin-top: 0; box-shadow: none; border-radius: 0; }
}

/* =========================================================
   SKILLS — pinned panel (same footer-style reveal technique as
   .about-reveal/.about-fixed). Education scrolls up and over it.
========================================================= */
:root{
  --skills-h: 200vh;
  --skills-overlap: 55vh;
}

.skills-reveal{
  position: relative;
  width: 100%;
  height: var(--skills-h);
  clip-path: polygon(0% 0, 100% 0%, 100% 100%, 0 100%);
  background: var(--black);
}

.skills-fixed{
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  min-height: 640px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--black);
}

/* Education scrolls up and over the pinned Skills panel */
.education--overlap-skills{
  position: relative;
  z-index: 5;
  background: var(--black);
  margin-top: calc(var(--skills-overlap) * -1);
  border-radius: 32px 32px 0 0;
  box-shadow: 0 -40px 70px rgba(26,16,19,0.14);
}

@media (max-width: 899px){
  :root{ --skills-h: 175vh; --skills-overlap: 46vh; }
}

@media (max-width: 767px){
  :root{ --skills-h: 160vh; --skills-overlap: 40vh; }
}

@media (max-width: 475px){
  :root{ --skills-h: 148vh; --skills-overlap: 32vh; }
  .education--overlap-skills{ border-radius: 22px 22px 0 0; }
}

@media (max-width: 360px){
  :root{ --skills-h: 138vh; --skills-overlap: 26vh; }
}

@media (prefers-reduced-motion: reduce){
  .skills-reveal{ height: auto; clip-path: none; }
  .skills-fixed{ position: static; height: auto; min-height: 0; overflow: visible; }
  .education--overlap-skills{ margin-top: 0; box-shadow: none; border-radius: 0; }
}

/* =========================================================
   RUIXEN CARD — converted from a React/Tailwind component to
   plain HTML/CSS/JS. Used only on web-design.html (class names
   are unique to this component, so no other page is affected).
   2-column grid at every width, translucent glass copy panel,
   diagonal badge ribbon, project photo as the card background.
========================================================= */
.ruixen-grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.ruixen-card{
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--black-soft);
  box-shadow: 0 18px 40px rgba(26,16,19,0.14);
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ruixen-card:hover{
  transform: scale(1.02);
  box-shadow: 0 26px 60px rgba(26,16,19,0.2);
}

.ruixen-card-media{
  position: absolute;
  inset: 0;
}

.ruixen-card-media img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ruixen-card-media::after{
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(26,16,19,0) 35%, rgba(26,16,19,0.55) 100%);
}

.ruixen-card-badge{
  position: absolute;
  top: 16px;
  left: -38px;
  transform: rotate(-45deg);
  padding: 4px 42px;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.28);
  z-index: 2;
}

.ruixen-card-badge--pink{ background: #db2777; }
.ruixen-card-badge--indigo{ background: #4f46e5; }
.ruixen-card-badge--orange{ background: #f97316; }

/* Translucent glass copy panel over the project photo */
.ruixen-card-copy{
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  padding: 14px;
  border-radius: 14px;
  background: rgba(247,242,240,0.28);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.28);
  box-shadow: 0 8px 24px rgba(26,16,19,0.16);
  transition: transform 0.3s ease, background 0.3s ease;
}

.ruixen-card:hover .ruixen-card-copy{
  transform: translateY(-4px);
  background: rgba(247,242,240,0.38);
}

.ruixen-card-copy h3{
  font-family: "Sarina", cursive;
  font-size: 1rem;
  font-weight: 500;
  color: #fff;
  margin-bottom: 4px;
  text-align: left;
  text-shadow: 0 1px 6px rgba(0,0,0,0.35);
}

.ruixen-card-copy p{
  font-size: 0.76rem;
  line-height: 1.4;
  color: rgba(255,255,255,0.88);
  text-shadow: 0 1px 4px rgba(0,0,0,0.3);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ruixen-card-arrow{
  margin-top: 8px;
  margin-left: auto;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.55);
  transition: transform 0.3s ease, background 0.3s ease;
}

.ruixen-card:hover .ruixen-card-arrow{
  transform: rotate(45deg);
  background: rgba(255,255,255,0.8);
}

.ruixen-card-arrow svg{
  width: 14px;
  height: 14px;
  color: var(--cream);
}

.ruixen-card.is-active .ruixen-card-copy{
  transform: translateY(-4px);
  background: rgba(247,242,240,0.38);
}
.ruixen-card.is-active .ruixen-card-arrow{
  transform: rotate(45deg);
  background: rgba(255,255,255,0.8);
}

@media (max-width: 767px){
  .ruixen-grid{ gap: 12px; }
  .ruixen-card-copy{ padding: 10px; left: 8px; right: 8px; bottom: 8px; }
  .ruixen-card-copy h3{ font-size: 0.88rem; }
  .ruixen-card-copy p{ font-size: 0.68rem; -webkit-line-clamp: 2; }
  .ruixen-card-badge{ font-size: 0.55rem; padding: 3px 36px; top: 12px; left: -36px; }
  .ruixen-card-arrow{ width: 22px; height: 22px; margin-top: 6px; }
  .ruixen-card-arrow svg{ width: 12px; height: 12px; }
}

@media (max-width: 475px){
  .ruixen-grid{ gap: 10px; }
  .ruixen-card{ border-radius: 16px; }
  .ruixen-card-copy{ padding: 8px; border-radius: 10px; }
  .ruixen-card-copy h3{ font-size: 0.78rem; margin-bottom: 2px; }
  .ruixen-card-copy p{ font-size: 0.62rem; -webkit-line-clamp: 2; line-height: 1.3; }
  .ruixen-card-badge{ font-size: 0.5rem; padding: 3px 30px; top: 10px; left: -32px; }
  .ruixen-card-arrow{ width: 20px; height: 20px; margin-top: 4px; }
}

@media (max-width: 360px){
  .ruixen-grid{ gap: 8px; }
  .ruixen-card{ border-radius: 14px; }
  .ruixen-card-copy{ padding: 7px; }
  .ruixen-card-copy h3{ font-size: 0.7rem; }
  .ruixen-card-copy p{ font-size: 0.58rem; -webkit-line-clamp: 2; }
  .ruixen-card-badge{ font-size: 0.46rem; padding: 2px 26px; top: 8px; left: -28px; }
}

@media (prefers-reduced-motion: reduce){
  .ruixen-card, .ruixen-card-copy, .ruixen-card-arrow{ transition: none; }
}

/* =========================================================
   CREDENTIAL / CERTIFICATE IMAGE — sits under a "Selected Work"
   eyebrow. Rounded border, fully responsive.
========================================================= */
.credential-image{
  display: block;
  width: 100%;
  max-width: 480px;
  height: auto;
  margin: 0 auto 40px;
  border-radius: 20px;
  border: 1px solid var(--line);
  box-shadow: 0 18px 40px rgba(26,16,19,0.14);
}

@media (max-width: 475px){
  .credential-image{ border-radius: 14px; margin-bottom: 32px; }
}

@media (max-width: 360px){
  .credential-image{ border-radius: 12px; margin-bottom: 26px; }
}

/* =========================================================
   WRITING SAMPLE BLOCK — copywriting.html only. Clickable image
   slot (href to the writing samples doc) + a Sarina-font label
   underneath it.
========================================================= */
.writing-sample-block{
  margin: 0 auto 40px;
  max-width: 480px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.writing-sample-link{
  display: block;
  width: 100%;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 18px 40px rgba(26,16,19,0.14);
  background: var(--black-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.writing-sample-link:hover{
  transform: scale(1.015);
  box-shadow: 0 24px 55px rgba(26,16,19,0.2);
}

.writing-sample-link img{
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  padding: 32px;
}

.writing-sample-label{
  font-family: "Sarina", cursive;
  font-size: 1.1rem;
  color: var(--cream);
  text-align: center;
}

@media (max-width: 475px){
  .writing-sample-link img{ padding: 24px; }
  .writing-sample-label{ font-size: 1rem; }
}

@media (max-width: 360px){
  .writing-sample-link img{ padding: 18px; }
  .writing-sample-label{ font-size: 0.92rem; }
}

/* =========================================================
   SCROLL ADVENTURE — auto-advancing 3-page gallery
   (basketball.html "Selected Work"). Vanilla HTML/CSS/JS,
   converted from a React component. Each page auto-runs for
   3s (see script.js) with a progress bar under the caption.
========================================================= */
.scroll-adventure{
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 40px auto 0;
  border-radius: 24px;
  overflow: hidden;
  background: #0c0c0c;
  box-shadow: 0 30px 70px rgba(26,16,19,0.22);
}

.sa-viewport{
  position: relative;
  width: 100%;
  height: 70vh;
  min-height: 460px;
  max-height: 640px;
  overflow: hidden;
}

.sa-page{
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s ease;
  z-index: 1;
}

.sa-page.is-active{
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

.sa-bg{
  position: absolute;
  inset: 0;
  background-color: #0c0c0c;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  transform: scale(1.08);
  transition: transform 3.4s linear;
}

.sa-page.is-active .sa-bg{
  transform: scale(1);
}

.sa-overlay{
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,0.78) 100%);
}

.sa-content{
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 28px 28px 24px;
  color: #f7f2ee;
  text-align: left;
}

.sa-heading{
  font-family: "Sarina", cursive;
  font-size: clamp(1.25rem, 2.4vw, 1.7rem);
  font-weight: 500;
  margin: 0 0 8px;
  text-transform: none;
}

.sa-desc{
  font-family: "Inter", sans-serif;
  font-size: 0.92rem;
  line-height: 1.5;
  color: rgba(247,242,238,0.85);
  max-width: 52ch;
  margin: 0 0 16px;
}

.sa-progress{
  position: relative;
  width: 100%;
  height: 3px;
  border-radius: 2px;
  background: rgba(247,242,238,0.22);
  overflow: hidden;
}

.sa-progress-fill{
  display: block;
  height: 100%;
  width: 0%;
  background: var(--cream, #f7f2ee);
  border-radius: 2px;
}

/* Driven by JS toggling this class: animates 0% -> 100% over
   the page's 3s run time, then gets reset before the next run. */
.sa-page.is-active .sa-progress-fill.is-running{
  width: 100%;
  transition: width 3s linear;
}

.sa-dots{
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 16px 0;
  background: #0c0c0c;
}

.sa-dot{
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(247,242,238,0.3);
  cursor: pointer;
  padding: 0;
  transition: background 0.3s ease, transform 0.3s ease;
}

.sa-dot.is-active{
  background: var(--cream, #f7f2ee);
  transform: scale(1.25);
}

@media (max-width: 899px){
  .sa-viewport{ height: 60vh; min-height: 420px; }
}

@media (max-width: 767px){
  .scroll-adventure{ border-radius: 18px; margin-top: 32px; }
  .sa-viewport{ height: 52vh; min-height: 380px; }
  .sa-content{ padding: 22px 20px 20px; }
}

@media (max-width: 475px){
  .scroll-adventure{ border-radius: 14px; margin-top: 24px; }
  .sa-viewport{ height: 46vh; min-height: 340px; }
  .sa-content{ padding: 18px 16px 16px; }
  .sa-heading{ font-size: 1.15rem; margin-bottom: 6px; }
  .sa-desc{ font-size: 0.85rem; margin-bottom: 12px; }
  .sa-dots{ padding: 12px 0; gap: 8px; }
  .sa-dot{ width: 7px; height: 7px; }
}

@media (max-width: 360px){
  .sa-viewport{ height: 42vh; min-height: 300px; }
  .sa-content{ padding: 16px 14px 14px; }
  .sa-heading{ font-size: 1.05rem; }
  .sa-desc{ font-size: 0.8rem; margin-bottom: 10px; }
}

@media (prefers-reduced-motion: reduce){
  .sa-bg{ transition: none; transform: none; }
  .sa-page.is-active .sa-bg{ transform: none; }
}


/* =========================================================
   VIDEO PLAYER — vanilla HTML/CSS/JS, converted from a React
   component (basketball.html, sits under the 3-image gallery).
========================================================= */
.vp-player{
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 32px auto 0;
  border-radius: 24px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 30px 70px rgba(26,16,19,0.22);
}

.vp-video{
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #000;
  cursor: pointer;
}

.vp-overlay{
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.vp-play-btn{
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.18);
  backdrop-filter: blur(4px);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  pointer-events: auto;
  transition: background 0.2s ease;
}

.vp-play-btn:hover{ background: rgba(255,255,255,0.3); }

.vp-play-btn .vp-icon{ width: 26px; height: 26px; }
.vp-play-btn .vp-icon-play{ margin-left: 3px; }

.vp-controls{
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.45) 40%, rgba(0,0,0,0.82) 100%);
  transition: opacity 0.3s ease;
}

.vp-progress-row{
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
}

.vp-time{
  font-family: "Inter", sans-serif;
  font-size: 0.72rem;
  min-width: 34px;
  text-align: center;
}

.vp-seek,
.vp-volume{
  -webkit-appearance: none;
  appearance: none;
  height: 4px;
  border-radius: 2px;
  background: rgba(255,255,255,0.3);
  cursor: pointer;
  outline: none;
}

.vp-seek{ flex: 1; }
.vp-volume{ width: 90px; }

.vp-seek::-webkit-slider-thumb,
.vp-volume::-webkit-slider-thumb{
  -webkit-appearance: none;
  appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
  transition: transform 0.15s ease;
}

.vp-seek::-moz-range-thumb,
.vp-volume::-moz-range-thumb{
  width: 12px;
  height: 12px;
  border: none;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
}

.vp-seek:hover::-webkit-slider-thumb,
.vp-volume:hover::-webkit-slider-thumb{ transform: scale(1.2); }

.vp-buttons-row{
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.vp-buttons-left{
  display: flex;
  align-items: center;
  gap: 4px;
}

.vp-buttons-right{
  display: flex;
  align-items: center;
  gap: 4px;
}

.vp-btn{
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  color: #fff;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.vp-btn:hover{ background: rgba(255,255,255,0.18); }

.vp-btn .vp-icon{ width: 17px; height: 17px; }

.vp-volume-group{
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: 4px;
}

@media (max-width: 767px){
  .vp-player{ border-radius: 18px; margin-top: 24px; }
  .vp-controls{ padding: 12px; gap: 8px; }
  .vp-volume{ width: 60px; }
}

@media (max-width: 475px){
  .vp-player{ border-radius: 14px; margin-top: 20px; }
  .vp-play-btn{ width: 52px; height: 52px; }
  .vp-play-btn .vp-icon{ width: 22px; height: 22px; }
  .vp-controls{ padding: 10px; gap: 6px; }
  .vp-time{ font-size: 0.64rem; min-width: 28px; }
  .vp-btn{ width: 30px; height: 30px; }
  .vp-btn .vp-icon{ width: 15px; height: 15px; }
  .vp-volume-group{ display: none; }
}

@media (max-width: 360px){
  .vp-play-btn{ width: 46px; height: 46px; }
  .vp-play-btn .vp-icon{ width: 20px; height: 20px; }
  .vp-buttons-left{ gap: 0; }
  .vp-btn{ width: 28px; height: 28px; }
  .vp-btn .vp-icon{ width: 14px; height: 14px; }
}


/* =========================================================
   EDUCATION — certification images under the institution list.
   Web Design + Copywriting sit side by side; Graphic Design
   spans underneath. Stays a 2-column grid at every width,
   including down to 360px.
========================================================= */
.education-certs{
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.education-cert-link{
  display: block;
}

.education-cert-link:nth-child(3){
  grid-column: 1 / -1;
}

.education-cert-link .credential-image{
  margin: 0 auto;
}

@media (max-width: 767px){
  .education-certs{ margin-top: 24px; gap: 14px; }
}

@media (max-width: 475px){
  .education-certs{ gap: 10px; }
}

@media (max-width: 360px){
  .education-certs{ gap: 8px; }
}
/* =========================================================
   GRAPHIC DESIGN — two square logo links (2-up at every width,
   white background, rounded corners) + a widened writing-sample
   rectangle underneath. graphic-design.html only.
========================================================= */
.gd-logo-grid{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  max-width: 480px;
  margin: 0 auto 32px;
}

.gd-logo-link{
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
  border-radius: 20px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 12px 30px rgba(26,16,19,0.1);
  overflow: hidden;
  padding: 18px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.gd-logo-link:hover{
  transform: scale(1.02);
  box-shadow: 0 18px 42px rgba(26,16,19,0.16);
}

.gd-logo-link img{
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

@media (max-width: 767px){
  .gd-logo-grid{ gap: 12px; margin-bottom: 24px; }
  .gd-logo-link{ border-radius: 16px; padding: 14px; }
}

@media (max-width: 475px){
  .gd-logo-grid{ gap: 10px; margin-bottom: 20px; }
  .gd-logo-link{ border-radius: 14px; padding: 12px; }
}

@media (max-width: 360px){
  .gd-logo-grid{ gap: 8px; margin-bottom: 18px; }
  .gd-logo-link{ border-radius: 12px; padding: 10px; }
}

/* Widened variant of the writing-sample block */
.writing-sample-block.writing-sample-block--wide{
  max-width: 100%;
}

.writing-sample-link.writing-sample-link--wide img{
  aspect-ratio: 21 / 9;
  padding: 28px;
}

@media (max-width: 767px){
  .writing-sample-link.writing-sample-link--wide img{ aspect-ratio: 16 / 9; padding: 18px; }
}

@media (max-width: 475px){
  .writing-sample-link.writing-sample-link--wide img{ aspect-ratio: 4 / 3; padding: 14px; }
}
/* ---------------------------------------------------------
   Scroll reveal ("data-aos") — pairs with the vanilla-JS
   reveal engine in script.js (no external library). Elements
   with a data-aos attribute start hidden/offset, then get the
   .aos-animate class added once they scroll into view.
   Add data-aos-duration="900" on an element to override the
   default transition speed.
--------------------------------------------------------- */
[data-aos]{
  opacity: 0;
  transition-property: opacity, transform;
  transition-duration: 700ms;
  transition-timing-function: cubic-bezier(0.25, 0.1, 0.25, 1);
  will-change: opacity, transform;
}

[data-aos="fade-up"]{ transform: translateY(28px); }
[data-aos="fade-down"]{ transform: translateY(-28px); }
[data-aos="fade-left"]{ transform: translateX(36px); }
[data-aos="fade-right"]{ transform: translateX(-36px); }
[data-aos="zoom-in"]{ transform: scale(0.94); }
[data-aos="fade"]{ transform: none; }

[data-aos].aos-animate{
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce){
  [data-aos]{
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}
/* ---------------------------------------------------------
   Fluid Expanding Grid ("feg") — click-to-expand project grid
   used under "Selected Work" on web-design.html (4 boxes) and
   graphic-design.html (3 boxes). Vanilla HTML/CSS/JS port of a
   React/Framer-Motion component: two rows, items reshuffle on
   click via a JS FLIP animation (see script.js), and the
   clicked box expands to fill its row solo.

   - Collapsed boxes: name only, set in Sarina (display font).
   - Expanded box: name + description over a translucent dark
     gradient, in the site's normal body font.
   - Works down to 360px — same 2-row grid at every width, only
     spacing/type scale down.
--------------------------------------------------------- */
.feg-grid{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 16px;
  width: 100%;
  height: clamp(320px, 62vw, 540px);
  margin-bottom: 28px;
  transition: grid-template-columns 550ms cubic-bezier(0.22, 1, 0.36, 1),
              grid-template-rows 550ms cubic-bezier(0.22, 1, 0.36, 1);
}

/* Selected state: one big card on top, the rest sit underneath it
   in a single strip row. --feg-strip is set inline by JS to the
   number of non-selected items so the strip splits evenly. */
.feg-grid.has-selected{
  grid-template-columns: repeat(var(--feg-strip, 3), 1fr);
  grid-template-rows: 2fr 1fr;
}

.feg-item{
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 24px;
  background: #18181b;
  text-decoration: none;
  min-width: 0;
  min-height: 0;
}

.feg-media{
  position: absolute;
  inset: 0;
}

.feg-media img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 700ms ease;
}

.feg-item:hover .feg-media img{
  transform: scale(1.04);
}

/* Base dark veil so collapsed titles stay legible on any image */
.feg-overlay{
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.05) 55%, transparent 75%);
  transition: background 500ms ease;
  pointer-events: none;
}

/* Expanded box: stronger translucent gradient so the description reads clearly */
.feg-item.is-selected .feg-overlay{
  background: linear-gradient(to top, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0.32) 45%, rgba(0,0,0,0.05) 75%);
}

.feg-border{
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 24px;
  pointer-events: none;
  transition: border-color 400ms ease;
}

.feg-item:hover .feg-border{ border-color: rgba(255,255,255,0.28); }

.feg-copy{
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 22px;
  color: #fff;
  pointer-events: none;
}

/* Translucent panel behind the name/description/link so the text stays
   legible over any image. Hidden entirely until the box is selected. */
.feg-textbox{
  background: rgba(10,10,12,0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: 16px;
  padding: 16px 20px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 350ms ease, transform 350ms ease;
  pointer-events: none;
}

.feg-item.is-selected .feg-textbox{
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Name of the expanded box, decorative Sarina font */
.feg-title{
  font-family: 'Sarina', cursive;
  font-weight: 400;
  font-size: clamp(1.2rem, 2.8vw, 1.9rem);
  line-height: 1.15;
  margin: 0;
  text-shadow: 0 2px 10px rgba(0,0,0,0.45);
}

.feg-desc{
  margin: 8px 0 0;
  max-width: 46ch;
  font-family: 'Inter', sans-serif;
  font-size: clamp(0.78rem, 1vw, 0.92rem);
  line-height: 1.5;
  color: rgba(255,255,255,0.88);
}

/* Link to the live project/asset, shown under the description */
.feg-link{
  display: inline-block;
  margin-top: 12px;
  font-family: 'Inter', sans-serif;
  font-size: clamp(0.76rem, 0.95vw, 0.88rem);
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.55);
  padding-bottom: 2px;
  transition: opacity 200ms ease;
}

.feg-link:hover{ opacity: 0.75; }

/* Instructional caption underneath the whole grid */
.feg-instruction{
  margin-top: 28px;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  color: var(--muted);
  text-align: center;
}

@media (max-width: 767px){
  .feg-grid{ gap: 12px; height: clamp(300px, 82vw, 460px); margin-bottom: 22px; }
  .feg-copy{ padding: 16px; }
}

@media (max-width: 475px){
  .feg-grid{ gap: 10px; height: clamp(280px, 92vw, 400px); margin-bottom: 18px; }
  .feg-copy{ padding: 12px; }
  .feg-desc{ max-width: 32ch; }
}

@media (max-width: 360px){
  .feg-grid{ gap: 8px; height: clamp(260px, 96vw, 360px); margin-bottom: 16px; }
  .feg-copy{ padding: 10px; }
  .feg-title{ font-size: clamp(0.85rem, 4vw, 1.05rem); }
  .feg-item.is-selected .feg-title{ font-size: clamp(1rem, 4.6vw, 1.3rem); }
  .feg-desc{ max-width: 26ch; font-size: 0.72rem; }
}

@media (prefers-reduced-motion: reduce){
  .feg-item, .feg-media img, .feg-overlay, .feg-border, .feg-desc{ transition: none !important; }
}