/* =============================================================
   Aaron Oquendo — Portfolio
   Design system + hero (above-the-fold)
   ============================================================= */

/* ---------- Design tokens ---------- */
:root {
  /* Surfaces */
  --ink:        #0c0b09;
  --ink-soft:   #14120e;
  --ink-line:   #1e1b16;

  /* Warm cream / gold family */
  --champagne:  #efdfb8;   /* headline */
  --champagne-2:#e6d2a1;
  --butter:     #f6eed7;   /* primary button fill */
  --sand:       #cdb98c;   /* tag + accents */
  --gold:       #d8b57a;

  /* Text */
  --nav:        #ece1c6;
  --body:       #d8d2c6;
  --body-dim:   #b3ac9d;

  /* Lines */
  --line:        rgba(233, 221, 190, 0.26);
  --line-strong: rgba(233, 221, 190, 0.55);

  /* Type */
  --font-serif: "Fraunces", Georgia, "Times New Roman", serif;
  --font-sans:  "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Layout */
  --gutter: clamp(1.25rem, 4.5vw, 5.5rem);
  --maxw:   1440px;
  --header-h: 88px;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  /* Pennant / ribbon tag shape */
  --pennant: polygon(0 0, 100% 0, 100% 100%, 50% 72%, 0 100%);
}

/* ---------- Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  font-family: var(--font-sans);
  background: var(--ink);
  color: var(--body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, video { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

ul { list-style: none; padding: 0; }

button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Skip link */
.skip-link {
  position: fixed;
  top: -60px;
  left: 1rem;
  z-index: 200;
  padding: 0.6rem 1rem;
  background: var(--butter);
  color: var(--ink);
  font-weight: 600;
  border-radius: 4px;
  transition: top 0.25s var(--ease);
}
.skip-link:focus { top: 1rem; }

/* =============================================================
   HEADER / NAV
   ============================================================= */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background 0.4s var(--ease), backdrop-filter 0.4s var(--ease),
              border-color 0.4s var(--ease), padding 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(10, 9, 8, 0.72);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom-color: var(--line);
}

.site-header__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  min-height: var(--header-h);
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

/* Brand */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
}
.brand__mark {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 1.75rem;
  letter-spacing: 0.02em;
  color: var(--champagne);
  line-height: 1;
}
.brand__divider {
  width: 1px;
  height: 30px;
  background: var(--line-strong);
}
.brand__name {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--nav);
}

/* Primary nav */
.nav__list {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 2.6vw, 2.75rem);
}
.nav__link {
  position: relative;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--nav);
  padding: 0.35rem 0;
  transition: color 0.25s var(--ease);
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.nav__link:hover { color: var(--champagne); }
.nav__link:hover::after { transform: scaleX(1); }
.nav__link[aria-current="true"] { color: var(--champagne); }
.nav__link[aria-current="true"]::after { transform: scaleX(1); }

/* Mobile toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  margin-right: -10px;
}
.nav-toggle__bar {
  display: block;
  height: 1.5px;
  width: 100%;
  background: var(--nav);
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
}

/* Close (X) button — only in the mobile menu panel */
.nav__close { display: none; }

/* =============================================================
   HERO
   ============================================================= */
.hero {
  position: relative;
  min-height: 100svh;
  min-height: 100vh; /* fallback */
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}

/* Background media — poster paints instantly as a layer; video fades in over it.
   Fills the full width edge-to-edge; the dark left comes from the overlay only. */
.hero__media {
  position: absolute;
  inset: 0;
  z-index: 1;               /* bottom layer: video + poster */
  background-image: url("../assets/img/hero-poster.jpg");
  background-size: cover;
  background-position: 68% center;
  background-repeat: no-repeat;
  /* No brightening — the footage keeps its natural exposure and skin tone;
     any darkening comes only from the overlay above. */
}
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 68% center; /* keep Aaron in frame across sizes */
}
.hero__video {
  opacity: 0;
  transition: opacity 1.1s var(--ease);
}
.hero__video.is-playing { opacity: 1; }

/* Full-screen dark overlay — sits ON TOP of the video, UNDER the text.
   Near-solid on the left where the copy lives; a real veil still covers the
   whole frame so every element (nav, caption, subject) stays legible. */
.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: 2;               /* above media, below content */
  background:
    /* Subtle top edge so the nav stays legible over the bright footage */
    linear-gradient(180deg,
      rgba(8, 7, 5, 0.42) 0%,
      rgba(8, 7, 5, 0.00) 14%),
    /* Bottom edge for caption + scroll cue */
    linear-gradient(0deg,
      rgba(8, 7, 5, 0.45) 0%,
      rgba(8, 7, 5, 0.00) 18%),
    /* Dark panel on the left for the copy, fading toward the right so the
       footage reads at its natural tone. */
    linear-gradient(90deg,
      #0c0a07 0%,
      #0c0a07 40%,
      rgba(12, 10, 7, 0.88) 47%,
      rgba(12, 10, 7, 0.52) 55%,
      rgba(12, 10, 7, 0.24) 64%,
      rgba(12, 10, 7, 0.14) 72%,
      rgba(12, 10, 7, 0.12) 100%),
    /* Subtle neutral gray veil across the whole frame — mutes the footage
       gently; it only ever darkens, never brightens. */
    linear-gradient(0deg, rgba(18, 18, 22, 0.16), rgba(18, 18, 22, 0.16));
}

/* Subtle film grain for richness (pure CSS, GPU-cheap) */
.hero__grain {
  position: absolute;
  inset: 0;
  z-index: 3;               /* texture above the overlay, below the text */
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Content */
.hero__inner {
  position: relative;
  z-index: 4;               /* text sits above the overlay */
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: calc(var(--header-h) + 1vh) var(--gutter) 6rem;
}
.hero__content {
  max-width: 43rem;
}

.hero__title {
  font-family: var(--font-serif);
  font-weight: 500;
  color: var(--champagne);
  line-height: 0.98;
  letter-spacing: -0.015em;
  font-size: clamp(2.6rem, 6.4vw, 6.75rem);
  text-wrap: balance;
  text-shadow: 0 2px 40px rgba(0, 0, 0, 0.35);
}
.hero__title-line { display: block; }

.hero__lead {
  margin-top: clamp(1.25rem, 2vw, 1.8rem);
  max-width: 34rem;
  font-size: clamp(1.02rem, 1.35vw, 1.2rem);
  line-height: 1.65;
  color: var(--body);
}

/* Actions */
.hero__actions {
  margin-top: clamp(1.75rem, 2.8vw, 2.4rem);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.btn {
  --btn-py: 1.05rem;
  --btn-px: 2.2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--btn-py) var(--btn-px);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border-radius: 2px;
  border: 1px solid transparent;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease),
              color 0.25s var(--ease), border-color 0.25s var(--ease),
              box-shadow 0.25s var(--ease);
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--butter);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px rgba(12, 11, 9, 0.16), 0 10px 30px -12px rgba(0, 0, 0, 0.6);
}
.btn--primary:hover {
  background: #fff7e6;
  box-shadow: inset 0 0 0 1px rgba(12, 11, 9, 0.22), 0 16px 40px -14px rgba(0, 0, 0, 0.7);
}

.btn--ghost {
  color: var(--champagne);
  border-color: var(--line-strong);
}
.btn--ghost:hover {
  border-color: var(--champagne);
  background: rgba(239, 223, 184, 0.06);
}

/* Tech tags (pennant / ribbon) */
.hero__tags {
  margin-top: clamp(1.8rem, 3vw, 2.6rem);
  display: flex;
  flex-wrap: wrap;
  gap: clamp(0.7rem, 1.4vw, 1.1rem);
}
.tag {
  position: relative;
  display: inline-flex;
  align-items: flex-start;
  justify-content: center;
  min-width: 6.2rem;
  padding: 0.85rem 1.1rem 1.4rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--champagne);
  background: var(--line-strong);      /* rim color */
  clip-path: var(--pennant);
}
.tag::before {
  content: "";
  position: absolute;
  inset: 1.4px;
  background: rgba(12, 11, 9, 0.55);   /* hollow interior */
  clip-path: var(--pennant);
}
.tag span {
  position: relative;
  z-index: 1;                          /* text above the interior fill */
  line-height: 1;
}
.tag:hover { background: var(--champagne); }
.tag:hover span { color: var(--champagne); }

/* caption bottom-right */
.hero__caption {
  position: absolute;
  right: var(--gutter);
  bottom: clamp(1.6rem, 3.5vh, 2.6rem);
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--champagne-2);
  z-index: 5;
}
.hero__caption-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(216, 181, 122, 0.18);
  animation: pulse 2.6s ease-in-out infinite;
}
.hero__caption-sep { color: var(--gold); }

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.55; transform: scale(0.82); }
}

/* Scroll indicator bottom-left */
.hero__scroll {
  position: absolute;
  left: var(--gutter);
  bottom: clamp(1.6rem, 3.5vh, 2.6rem);
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--body-dim);
  z-index: 5;
  transition: color 0.25s var(--ease);
}
.hero__scroll:hover { color: var(--champagne); }
.hero__scroll-line {
  position: relative;
  width: 54px;
  height: 1px;
  background: var(--line);
  overflow: hidden;
}
.hero__scroll-line::after {
  content: "";
  position: absolute;
  inset: 0;
  width: 40%;
  background: var(--gold);
  animation: slide 2.4s var(--ease) infinite;
}
@keyframes slide {
  0%   { transform: translateX(-100%); }
  60%  { transform: translateX(250%); }
  100% { transform: translateX(250%); }
}

/* =============================================================
   REVEAL ANIMATIONS
   ============================================================= */
.reveal {
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  transition-delay: calc(var(--reveal-delay, 0) * 110ms);
}
/* Hidden initial state only when JS is present to reveal it */
.js .reveal {
  opacity: 0;
  transform: translateY(16px);
}
.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* =============================================================
   PLACEHOLDER SECTIONS (scaffold below the fold)
   ============================================================= */
.section {
  padding: clamp(5rem, 12vh, 9rem) 0;
  border-top: 1px solid var(--ink-line);
}
.section:nth-child(even) { background: var(--ink-soft); }
.section__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.section__eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
}
.section__heading {
  font-family: var(--font-serif);
  font-weight: 500;
  color: var(--champagne);
  font-size: clamp(1.9rem, 4.5vw, 3.2rem);
  line-height: 1.05;
  margin-top: 1rem;
  letter-spacing: -0.01em;
}
.section__note {
  margin-top: 1rem;
  color: var(--body-dim);
  font-size: 0.95rem;
}

/* =============================================================
   ABOUT
   ============================================================= */
.about {
  position: relative;
  background: var(--ink);
  border-top: 1px solid var(--ink-line);
  padding: clamp(4.5rem, 10vh, 8.5rem) 0;
  overflow: hidden;
}
.about__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: clamp(2rem, 5vw, 5.5rem);
  align-items: center;
}

/* Left — portrait + blueprint */
.about__media {
  position: relative;
  align-self: stretch;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.about__blueprint {
  position: absolute;
  inset: -3% 2% -3% 0;
  z-index: 0;
  color: var(--gold);
  pointer-events: none;
}
.about__blueprint svg { width: 100%; height: 100%; display: block; }

.about__portrait {
  position: relative;
  z-index: 1;
  width: 92%;
  max-width: 440px;
  height: auto;
  /* transparent cut-out — the blueprint shows through around him;
     soften only the bottom crop so the torso melts into the section */
  -webkit-mask-image: linear-gradient(to top, transparent 0, #000 12%);
  mask-image: linear-gradient(to top, transparent 0, #000 12%);
}

/* Right — content */
.about__content { max-width: 40rem; }

.about__eyebrow {
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}
.about__title {
  margin-top: 1.1rem;
  font-family: var(--font-serif);
  font-weight: 500;
  color: var(--champagne);
  font-size: clamp(2.1rem, 3.8vw, 3.5rem);
  line-height: 1.04;
  letter-spacing: -0.012em;
  max-width: 20ch;
  text-wrap: balance;
}
.about__lead {
  margin-top: 1.4rem;
  color: var(--body-dim);
  font-size: clamp(1rem, 1.1vw, 1.08rem);
  line-height: 1.7;
  max-width: 48ch;
}

.about__label {
  margin-top: clamp(2rem, 3.2vw, 2.8rem);
  display: flex;
  align-items: center;
  gap: 1.1rem;
  color: var(--sand);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}
.about__label span { white-space: nowrap; }
.about__label::after {
  content: "";
  flex: 1 1 auto;
  height: 1px;
  background: var(--line);
}

/* How-I-work grid — internal dividers only */
.about__grid {
  margin-top: 0.6rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.about__item {
  padding: clamp(1.2rem, 1.8vw, 1.65rem) clamp(1.3rem, 1.8vw, 1.9rem);
}
.about__item:nth-child(odd)  { padding-left: 0; border-right: 1px solid var(--line); }
.about__item:nth-child(even) { padding-right: 0; }
.about__item:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
.about__num {
  display: block;
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
}
.about__item-title {
  margin-top: 0.55rem;
  font-family: var(--font-serif);
  font-weight: 500;
  color: var(--champagne);
  font-size: clamp(1rem, 1.25vw, 1.18rem);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.about__item-desc {
  margin-top: 0.5rem;
  color: var(--body-dim);
  font-size: 0.86rem;
  line-height: 1.55;
  max-width: 26ch;
}

.about__tech {
  margin-top: clamp(1.9rem, 3vw, 2.6rem);
  color: var(--gold);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.16em;
}
.about__tech b {
  color: var(--sand);
  opacity: 0.55;
  font-weight: 400;
  margin: 0 0.45em;
}

/* =============================================================
   CONTACT
   ============================================================= */
.contact {
  position: relative;
  background: var(--ink);
  border-top: 1px solid var(--ink-line);
  padding: clamp(4.5rem, 10vh, 8rem) 0 clamp(1.6rem, 3vh, 2.5rem);
  overflow: hidden;
}

/* Outlined "LET'S TALK" watermark */
.contact__watermark {
  position: absolute;
  top: clamp(3rem, 8vh, 6rem);
  right: max(var(--gutter), calc((100% - var(--maxw)) / 2 + var(--gutter)));
  z-index: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0;
  line-height: 0.82;
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(5rem, 13vw, 13rem);
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: transparent;
  -webkit-text-stroke: 1px rgba(233, 221, 190, 0.16);
  pointer-events: none;
  user-select: none;
}

.contact__inner {
  position: relative;
  z-index: 1;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.contact__eyebrow {
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}
.contact__title {
  margin-top: 1.2rem;
  font-family: var(--font-serif);
  font-weight: 500;
  color: var(--champagne);
  font-size: clamp(2.7rem, 6.6vw, 6.25rem);
  line-height: 1.0;
  letter-spacing: -0.02em;
  max-width: 15ch;
  text-wrap: balance;
}
.contact__lead {
  margin-top: 1.5rem;
  color: var(--body-dim);
  font-size: clamp(1rem, 1.15vw, 1.1rem);
  line-height: 1.7;
  max-width: 40ch;
}

/* Email row */
.contact__email {
  margin-top: clamp(2.5rem, 5vw, 4.5rem);
  display: grid;
  grid-template-columns: 1fr auto 1fr;   /* label left, email centered */
  align-items: center;
  gap: clamp(1.25rem, 4vw, 3rem);
  padding: clamp(1.3rem, 2.4vw, 2rem) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.contact__email-label {
  color: var(--sand);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}
.contact__email-addr {
  text-align: center;
  font-family: var(--font-serif);
  font-weight: 500;
  color: var(--champagne);
  font-size: clamp(1.4rem, 3.4vw, 2.6rem);
  letter-spacing: -0.01em;
  /* plain, easy-to-copy text — one click selects the whole address */
  cursor: text;
  -webkit-user-select: all;
  user-select: all;
}

/* Three link columns */
.contact__links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid var(--line);
}
.contact__col {
  padding: clamp(1.6rem, 3vw, 2.4rem) clamp(1.4rem, 3vw, 2.5rem);
}
.contact__col:not(:last-child) { border-right: 1px solid var(--line); }
.contact__col:first-child { padding-left: 0; }
.contact__col:last-child { padding-right: 0; }
.contact__col-link { display: block; }
.contact__col-label {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--sand);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.contact__col-label .arr { color: var(--gold); transition: transform 0.3s var(--ease); }
.contact__col-value {
  display: inline-block;
  margin-top: 0.95rem;
  color: var(--body);
  font-size: clamp(0.9rem, 1.05vw, 1rem);
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 3px;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.contact__col-link:hover .contact__col-value { color: var(--champagne); border-color: var(--champagne); }
.contact__col-link:hover .arr { transform: translate(3px, -3px); }

/* Footer bar */
.contact__footer {
  margin-top: clamp(1.6rem, 3vh, 2.4rem);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  color: var(--body-dim);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.contact__footer-center { text-align: center; }
.contact__footer-right {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 1rem;
}
.contact__totop { transition: color 0.25s var(--ease); }
.contact__totop:hover { color: var(--champagne); }
.contact__footer-sep { color: var(--line-strong); }

/* =============================================================
   WORK — carousel of selected projects
   ============================================================= */
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.work {
  position: relative;
  background: var(--ink);
  border-top: 1px solid var(--ink-line);
  padding: clamp(4.5rem, 10vh, 8rem) 0;
  overflow: hidden;
}
.work__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.work__eyebrow {
  color: var(--gold);
  font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.28em; text-transform: uppercase;
}
.work__title {
  margin-top: 1rem;
  font-family: var(--font-serif); font-weight: 500;
  color: var(--champagne);
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  line-height: 1.02; letter-spacing: -0.012em;
}
.work__sub {
  margin-top: 0.9rem;
  color: var(--body-dim);
  font-size: clamp(0.95rem, 1.1vw, 1.05rem);
}

/* Carousel shell */
.work__carousel {
  position: relative;
  margin-top: clamp(2rem, 4vw, 3.5rem);
  outline: none;
}
.work__carousel:focus-visible { outline: 2px solid var(--gold); outline-offset: 14px; border-radius: 4px; }
.work__viewport { overflow: hidden; }
.work__track {
  display: flex;
  will-change: transform;
  transition: transform 0.65s var(--ease);
}
.work__slide {
  flex: 0 0 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(1.5rem, 3.5vw, 3.5rem);
  align-items: center;
  padding: 0.5rem clamp(0.5rem, 2.5vw, 2.75rem);
}

/* Text column */
.work__text { position: relative; min-width: 0; }
.work__num {
  display: block;
  font-family: var(--font-serif); font-weight: 500;
  font-size: clamp(4rem, 8vw, 7rem);
  line-height: 0.9;
  color: rgba(233, 221, 190, 0.07);
  letter-spacing: -0.02em;
  margin-bottom: -0.25em;
}
.work__name {
  font-family: var(--font-serif); font-weight: 500;
  color: var(--champagne);
  font-size: clamp(1.8rem, 3.2vw, 2.7rem);
  line-height: 1.05; letter-spacing: -0.01em;
}
.work__cat {
  margin-top: 0.7rem;
  color: var(--gold);
  font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
}
.work__desc {
  margin-top: 1.1rem;
  color: var(--body-dim);
  font-size: clamp(0.92rem, 1.05vw, 1rem);
  line-height: 1.7; max-width: 40ch;
}
.work__stack {
  margin-top: 1.3rem;
  color: var(--sand);
  font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
}
.work__stack b { color: var(--gold); opacity: 0.6; font-weight: 400; margin: 0 0.35em; }
.work__link {
  display: inline-flex; align-items: center; gap: 0.5rem;
  margin-top: 1.6rem;
  color: var(--champagne);
  font-size: 0.76rem; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--line-strong);
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.work__link:hover { color: #fff7e6; border-color: var(--champagne); }
.work__link-arrow { color: var(--gold); transition: transform 0.3s var(--ease); }
.work__link:hover .work__link-arrow { transform: translate(3px, -3px); }

/* Arrows */
.work__arrow {
  position: absolute; top: 50%; z-index: 5;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  color: var(--champagne);
  background: rgba(12, 11, 9, 0.6);
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transform: translateY(-50%);
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.work__arrow:hover { background: var(--butter); color: var(--ink); border-color: var(--butter); }
.work__arrow .ic { width: 20px; height: 20px; }
.work__arrow--prev { left: -0.5rem; }
.work__arrow--next { right: -0.5rem; }
.work__arrow--next .ic { transform: scaleX(-1); }

/* Dots */
.work__dots {
  display: flex; justify-content: center; gap: 0.7rem;
  margin-top: clamp(1.8rem, 3.5vw, 2.75rem);
}
.work__dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: rgba(233, 221, 190, 0.22);
  transition: background 0.3s var(--ease), width 0.3s var(--ease);
}
.work__dot:hover { background: rgba(233, 221, 190, 0.5); }
.work__dot.is-active { width: 28px; border-radius: 5px; background: var(--gold); }

/* Framed product screenshot (used in place of a coded mockup) */
.work__shot {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid rgba(233, 221, 190, 0.12);
  box-shadow: 0 40px 90px -40px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(0, 0, 0, 0.3);
}

/* -------------------------------------------------------------
   Mockup primitives (shared)
   ------------------------------------------------------------- */
.ic { width: 1em; height: 1em; display: inline-block; flex: none; vertical-align: middle; }
.mock {
  --pnl: rgba(233, 221, 190, 0.10);
  position: relative;
  font-size: clamp(8px, 0.92vw, 11px);
  line-height: 1.3;
  color: var(--body);
  border-radius: 0.9em;
  border: 1px solid var(--pnl);
  background: linear-gradient(180deg, #17140f, #100e0b);
  box-shadow: 0 40px 90px -40px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(0,0,0,0.3);
  overflow: hidden;
}
.mock--pad { padding: 1.4em; }
.mock__bar {
  display: flex; align-items: center; gap: 0.5em;
  padding: 0.9em 1.1em;
  border-bottom: 1px solid var(--pnl);
}
.mock__d { width: 0.7em; height: 0.7em; border-radius: 50%; background: rgba(233,221,190,0.22); }
.mock__head {
  display: flex; align-items: center; gap: 0.5em;
  font-family: var(--font-serif); font-size: 1.35em; color: var(--champagne);
  margin-bottom: 1.2em;
}
.mock__spark { color: var(--gold); font-size: 0.9em; }
.mock__label {
  color: var(--sand); font-size: 0.92em; font-weight: 600;
  letter-spacing: 0.06em; margin-bottom: 0.8em;
}
.mock__panel {
  border: 1px solid var(--pnl); border-radius: 0.6em;
  padding: 1em; background: rgba(255,255,255,0.012);
}
.mock__btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  width: 100%; margin-top: 0.9em;
  padding: 0.75em 1em;
  background: rgba(233, 221, 190, 0.07);
  border: 1px solid rgba(233, 221, 190, 0.22);
  color: var(--champagne); font-weight: 600; letter-spacing: 0.02em;
  border-radius: 0.45em; font-size: 0.95em;
}
.mock__btn .ic { width: 1.1em; height: 1.1em; color: var(--gold); }
.badge {
  font-size: 0.85em; padding: 0.15em 0.6em; border-radius: 1em;
  background: rgba(233,221,190,0.12); color: var(--body-dim);
}
.badge--ok { background: rgba(120, 180, 120, 0.16); color: #a7d3a0; }
.dot { width: 0.55em; height: 0.55em; border-radius: 50%; background: rgba(233,221,190,0.3); display: inline-block; margin-right: 0.5em; }
.dot--gold { background: var(--gold); }
.dot--half { background: linear-gradient(90deg, var(--gold) 50%, rgba(233,221,190,0.25) 50%); }
.gold { color: var(--gold); }

/* -------- 01 SingToSpeak -------- */
.sts { display: grid; grid-template-columns: 8.5em 1fr 9em; min-height: 20em; }
.sts__side { border-right: 1px solid rgba(233, 221, 190, 0.08); padding: 1.1em 0.9em; }
.sts__brand { font-family: var(--font-serif); font-size: 1.25em; color: var(--champagne); margin-bottom: 1.2em; }
.sts__nav { display: flex; flex-direction: column; gap: 0.35em; }
.sts__nav span { display: flex; align-items: center; gap: 0.6em; padding: 0.55em 0.7em; border-radius: 0.45em; color: var(--body-dim); }
.sts__nav .ic { width: 1.15em; height: 1.15em; opacity: 0.8; }
.sts__nav .is-active { background: rgba(216,181,122,0.14); color: var(--champagne); }
.sts__main { padding: 1.1em; border-right: 1px solid rgba(233,221,190,0.08); min-width: 0; }
.sts__crumb { color: var(--body-dim); margin-bottom: 0.9em; }
.sts__media {
  height: 7.5em; border-radius: 0.6em; display: grid; place-items: center; text-align: center;
  background: radial-gradient(120% 140% at 50% 0%, #6b5a3a 0%, #3a2f22 45%, #1a140d 100%);
  position: relative; overflow: hidden;
}
.sts__media::after { content:""; position:absolute; inset:0; background: linear-gradient(0deg, rgba(0,0,0,0.35), transparent 60%); }
.sts__media-txt { position: relative; z-index: 1; }
.sts__media-txt strong { display: block; font-family: var(--font-serif); font-size: 1.5em; color: #fdf5e2; }
.sts__media-txt span { color: rgba(253,245,226,0.7); }
.sts__player { display: flex; align-items: center; gap: 0.7em; margin: 0.9em 0; }
.sts__play { width: 2em; height: 2em; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--gold); color: var(--gold); flex: none; }
.sts__play .ic { width: 0.9em; height: 0.9em; }
.sts__wave {
  flex: 1; height: 1.7em; border-radius: 0.2em;
  background:
    linear-gradient(90deg, var(--gold) 22%, rgba(233,221,190,0.28) 22%),
    repeating-linear-gradient(90deg, currentColor 0 1.5px, transparent 1.5px 4px);
  -webkit-mask: repeating-linear-gradient(90deg, #000 0 1.5px, transparent 1.5px 4px);
  mask: repeating-linear-gradient(90deg, #000 0 1.5px, transparent 1.5px 4px);
}
.sts__time { color: var(--body-dim); flex: none; }
.sts__lyrics { display: flex; flex-direction: column; gap: 0.55em; }
.sts__lyrics li { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5em; }
.sts__lyrics li:first-child span { color: var(--gold); }
.sts__lyrics span { color: var(--body); }
.sts__lyrics em { color: var(--body-dim); font-style: normal; }
.sts__rail { padding: 1.1em 0.9em; display: flex; flex-direction: column; gap: 0.8em; }
.sts__card { border: 1px solid rgba(233,221,190,0.1); border-radius: 0.55em; padding: 0.9em; }
.sts__ring { position: relative; display: grid; place-items: center; }
.sts__ring svg { width: 5.2em; height: 5.2em; transform: rotate(-90deg); }
.sts__ring-bg { fill: none; stroke: rgba(233,221,190,0.12); stroke-width: 5; }
.sts__ring-fg { fill: none; stroke: var(--gold); stroke-width: 5; stroke-linecap: round; stroke-dasharray: 111 164; }
.sts__ring-num { position: absolute; text-align: center; }
.sts__ring-num strong { display: block; font-size: 1.35em; color: var(--champagne); }
.sts__ring-num span { font-size: 0.8em; color: var(--body-dim); }
.sts__vocab { display: flex; flex-direction: column; gap: 0.4em; }
.sts__vocab li { display: flex; justify-content: space-between; gap: 0.5em; }
.sts__vocab span { color: var(--champagne); }
.sts__vocab em { color: var(--body-dim); font-style: normal; }

/* -------- 02 AI Automation -------- */
.auto { display: grid; grid-template-columns: 1.4fr 1fr; gap: 1.1em; }
.auto__row { display: flex; align-items: center; gap: 0.6em; }
.auto__row--sub { margin: 1.4em 0 0 2.2em; }
.node {
  flex: 1; min-width: 0; text-align: center;
  border: 1px solid rgba(233,221,190,0.12); border-radius: 0.55em;
  padding: 0.9em 0.5em; background: rgba(255,255,255,0.015);
}
.node .ic { width: 1.6em; height: 1.6em; color: var(--champagne); margin-bottom: 0.5em; }
.node b { display: block; color: var(--body); font-weight: 600; }
.node span { color: var(--body-dim); font-size: 0.85em; }
.auto__arr { width: 1.3em; height: 1.3em; color: var(--gold); flex: none; opacity: 0.7; }
.auto__activity { margin-top: 1.4em; }
.auto__activity ul { display: flex; flex-wrap: wrap; gap: 0.8em 1.4em; }
.auto__activity li { display: flex; align-items: center; }
.auto__activity em { color: var(--body-dim); font-style: normal; margin-left: 0.5em; }
.auto__side { display: flex; flex-direction: column; gap: 1.1em; }
.auto__convos { display: flex; flex-direction: column; gap: 0.7em; }
.auto__convos li { display: flex; align-items: center; gap: 0.5em; }
.auto__convos li em { color: var(--body-dim); font-style: normal; margin-left: auto; }
.auto__more { color: var(--gold); margin-top: 0.9em; display: flex; align-items: center; gap: 0.4em; }
.auto__more .ic { width: 1.1em; height: 1.1em; }
.auto__details { display: flex; flex-direction: column; gap: 0.5em; }
.auto__details div { display: flex; justify-content: space-between; gap: 1em; }
.auto__details dt { color: var(--body-dim); }
.auto__details dd { color: var(--body); }

/* -------- 03 Calisthenics Parks -------- */
.cp__bar { gap: 0.7em; }
.cp__title { font-family: var(--font-serif); font-size: 1.2em; color: var(--champagne); }
.cp__searchbar {
  flex: 1; display: flex; align-items: center; gap: 0.5em;
  padding: 0.5em 0.8em; border-radius: 0.45em;
  border: 1px solid rgba(233,221,190,0.12); color: var(--body-dim);
}
.cp__searchbar .ic { width: 1.1em; height: 1.1em; }
.cp__filter { display: flex; align-items: center; gap: 0.4em; padding: 0.5em 0.8em; border-radius: 0.45em; border: 1px solid rgba(233,221,190,0.14); color: var(--body); }
.cp__filter .ic { width: 1.1em; height: 1.1em; }
.cp { display: grid; grid-template-columns: 1.5fr 1fr; min-height: 20em; }
.cp__map {
  position: relative; border-right: 1px solid rgba(233,221,190,0.08);
  background:
    linear-gradient(115deg, rgba(216,181,122,0.05) 0 1px, transparent 1px) 0 0/3.5em 3.5em,
    linear-gradient(65deg, rgba(216,181,122,0.05) 0 1px, transparent 1px) 0 0/4.5em 4.5em,
    radial-gradient(120% 90% at 40% 30%, #1c2733, #10161d 70%);
}
.cp__pin { position: absolute; transform: translate(-50%,-100%); color: var(--gold); filter: drop-shadow(0 3px 4px rgba(0,0,0,0.5)); }
.cp__pin .ic { width: 1.7em; height: 1.7em; }
.cp__pin--active .ic { width: 2.3em; height: 2.3em; }
.cp__pin--active { color: #ffd98a; }
.cp__list {
  position: absolute; left: 0.8em; right: 0.8em; bottom: 0.8em;
  background: rgba(14,12,9,0.92); border: 1px solid rgba(233,221,190,0.12);
  border-radius: 0.5em; backdrop-filter: blur(4px); overflow: hidden;
}
.cp__list li { display: grid; grid-template-columns: 2.4em 1fr auto auto; gap: 0.6em; align-items: center; padding: 0.6em 0.8em; border-bottom: 1px solid rgba(233,221,190,0.07); }
.cp__list li:last-child { border-bottom: 0; }
.cp__thumb { width: 2.4em; height: 1.8em; border-radius: 0.3em; background: linear-gradient(135deg, #3a4a2f, #2a3320); grid-row: span 2; }
.cp__list b { color: var(--champagne); font-weight: 600; }
.cp__list small { color: var(--body-dim); grid-column: 2; }
.cp__list em { color: var(--gold); font-style: normal; display: inline-flex; align-items: center; gap: 0.2em; grid-column: 3; grid-row: 1 / span 2; }
.cp__list em .ic { width: 1em; height: 1em; }
.cp__list i { color: var(--body-dim); font-style: normal; grid-column: 4; grid-row: 1 / span 2; }
.cp__detail { padding: 1em; }
.cp__photo { height: 6.5em; border-radius: 0.5em; background: linear-gradient(160deg, #4a5b38, #2c3a22 60%, #1c2416); margin-bottom: 0.9em; }
.cp__detail h4 { font-family: var(--font-serif); font-size: 1.35em; color: var(--champagne); }
.cp__meta { display: flex; align-items: center; gap: 0.4em; color: var(--body-dim); margin: 0.5em 0 0.9em; }
.cp__meta .ic { width: 1.1em; height: 1.1em; color: var(--gold); }
.cp__rate { margin-left: auto; color: var(--gold); }
.cp__rate i { color: var(--body-dim); font-style: normal; }
.cp__tabs { display: flex; gap: 0.4em; padding-bottom: 0.9em; border-bottom: 1px solid rgba(233,221,190,0.1); margin-bottom: 0.9em; flex-wrap: wrap; }
.cp__tabs span { padding: 0.35em 0.6em; border-radius: 0.35em; color: var(--body-dim); border: 1px solid transparent; }
.cp__tabs .is-active { color: var(--champagne); border-color: rgba(233,221,190,0.2); background: rgba(233,221,190,0.06); }
.cp__specs { display: flex; flex-direction: column; gap: 0.6em; }
.cp__specs div { display: flex; justify-content: space-between; }
.cp__specs dt { color: var(--body-dim); }
.cp__specs dd { color: var(--body); }

/* -------- 04 AI SEO Generation -------- */
.seo__pipe { display: flex; align-items: stretch; gap: 0.4em; margin-bottom: 1.3em; }
.node--sm { padding: 0.8em 0.4em; }
.node--sm .ic { width: 1.4em; height: 1.4em; }
.seo__arr { width: 1.1em; height: 1.1em; color: var(--gold); align-self: center; flex: none; opacity: 0.7; }
.seo__table { width: 100%; border-collapse: collapse; }
.seo__table th, .seo__table td { text-align: left; padding: 0.6em 0.5em; border-bottom: 1px solid rgba(233,221,190,0.08); }
.seo__table th { color: var(--body-dim); font-weight: 600; letter-spacing: 0.04em; }
.seo__table td { color: var(--body); }
.seo__table td:first-child { color: var(--champagne); }
.seo__table tbody tr:last-child td { border-bottom: 0; }

/* =============================================================
   EXPERIENCE — timeline
   ============================================================= */
.exp {
  position: relative;
  background: var(--ink);
  border-top: 1px solid var(--ink-line);
  padding: clamp(4.5rem, 10vh, 8rem) 0;
  /* no overflow:hidden here — it would break the sticky intro column */
}
.exp__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.55fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}

/* Left intro (sticky) */
.exp__intro {
  position: sticky;
  top: calc(var(--header-h) + 1.5rem);
  align-self: start;
}
.exp__eyebrow {
  color: var(--gold);
  font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.28em; text-transform: uppercase;
}
.exp__title {
  margin-top: 1.1rem;
  font-family: var(--font-serif); font-weight: 500;
  color: var(--champagne);
  font-size: clamp(2rem, 3.4vw, 3rem);
  line-height: 1.06; letter-spacing: -0.015em;
}
.exp__lead {
  margin-top: 1.4rem;
  color: var(--body-dim);
  font-size: clamp(0.95rem, 1.05vw, 1.02rem);
  line-height: 1.7; max-width: 34ch;
}
.exp__focus {
  margin-top: clamp(1.8rem, 3vw, 2.6rem);
  list-style: none; padding: 0;
  display: flex; flex-direction: column;
}
.exp__focus a {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0.95rem 0;
  color: var(--sand);
  font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  border-bottom: 1px solid var(--ink-line);
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.exp__focus li:first-child a { border-top: 1px solid var(--ink-line); }
.exp__focus a span { color: var(--gold); transition: transform 0.3s var(--ease); }
.exp__focus a:hover { color: var(--champagne); border-color: var(--line-strong); }
.exp__focus a:hover span { transform: translate(3px, -3px); }
.exp__watermark {
  display: block;
  margin-top: clamp(1.5rem, 4vw, 3rem);
  font-family: var(--font-serif); font-weight: 500;
  font-size: clamp(6rem, 12vw, 11rem);
  line-height: 0.8;
  color: transparent;
  -webkit-text-stroke: 1px rgba(233, 221, 190, 0.14);
  user-select: none;
}

/* Timeline */
.exp__timeline {
  position: relative;
  list-style: none; margin: 0; padding: 0;
}
.exp__timeline::before {
  content: "";
  position: absolute; left: 0.8rem; top: 1rem; bottom: 1.5rem;
  width: 1px;
  background: linear-gradient(180deg, rgba(216,181,122,0.45), rgba(216,181,122,0.12));
}
.exp__item {
  position: relative;
  display: grid;
  grid-template-columns: 1.6rem minmax(5.5rem, 7rem) minmax(0, 1fr);
  column-gap: clamp(1rem, 2vw, 1.75rem);
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
}
.exp__item + .exp__item { padding-top: clamp(2.5rem, 5vw, 4rem); }
.exp__item + .exp__item::before {
  content: "";
  position: absolute; top: 0;
  left: calc(1.6rem + clamp(1rem, 2vw, 1.75rem));
  right: 0; height: 1px;
  background: var(--ink-line);
}

/* Node */
.exp__node {
  grid-column: 1; grid-row: 1;
  justify-self: center; align-self: start;
  margin-top: 0.45rem;
  width: 15px; height: 15px; border-radius: 50%;
  border: 1px solid var(--gold);
  background: var(--ink);
  display: grid; place-items: center;
  z-index: 1;
}
.exp__node::after {
  content: ""; width: 5px; height: 5px; border-radius: 50%;
  background: var(--gold);
}
.exp__item:first-child .exp__node {
  box-shadow: 0 0 0 4px rgba(216, 181, 122, 0.14);
}

/* Meta column */
.exp__meta { grid-column: 2; grid-row: 1; }
.exp__index {
  display: block;
  font-family: var(--font-serif); font-weight: 500;
  font-size: clamp(2.6rem, 4vw, 3.6rem);
  line-height: 0.9;
  color: rgba(233, 221, 190, 0.14);
  letter-spacing: -0.02em;
}
.exp__dates {
  margin-top: 0.6rem;
  color: var(--gold);
  font-size: 0.68rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  line-height: 1.5;
}
.exp__loc {
  margin-top: 0.5rem;
  color: var(--body-dim);
  font-size: 0.66rem; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
}

/* Body column */
.exp__body { grid-column: 3; grid-row: 1; position: relative; padding-right: 2.5rem; }
.exp__plus {
  position: absolute; top: 0.1rem; right: 0;
  color: var(--gold);
  font-size: 1.7rem; font-weight: 200; line-height: 1;
  transition: transform 0.4s var(--ease);
}
.exp__item:hover .exp__plus { transform: rotate(90deg); }
.exp__company {
  font-family: var(--font-serif); font-weight: 500;
  color: var(--champagne);
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  line-height: 1.02; letter-spacing: 0.01em;
  text-transform: uppercase;
}
.exp__role {
  margin-top: 0.8rem;
  display: flex; align-items: center; gap: 0.8rem; flex-wrap: wrap;
  color: var(--sand);
  font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
}
.exp__badge {
  border: 1px solid var(--gold); color: var(--gold);
  font-size: 0.6rem; letter-spacing: 0.16em;
  padding: 0.3em 0.65em; border-radius: 2px;
}
.exp__desc {
  margin-top: 1.2rem;
  color: var(--body-dim);
  font-size: clamp(0.92rem, 1.05vw, 1rem);
  line-height: 1.7; max-width: 54ch;
}
.exp__points {
  margin-top: 1.1rem; list-style: none; padding: 0;
  display: flex; flex-direction: column; gap: 0.6rem;
}
.exp__points li {
  position: relative; padding-left: 1.2rem;
  color: var(--body);
  font-size: clamp(0.88rem, 1vw, 0.96rem);
  line-height: 1.55; max-width: 56ch;
}
.exp__points li::before {
  content: ""; position: absolute; left: 0; top: 0.55em;
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--gold); opacity: 0.85;
}
.exp__tags {
  margin-top: 1.4rem;
  color: var(--gold);
  font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
}
.exp__tags b { color: var(--sand); opacity: 0.55; font-weight: 400; margin: 0 0.35em; }
.exp__highlight {
  margin-top: 1.4rem;
  display: flex; align-items: center; gap: 0.6rem;
  color: var(--champagne);
  font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
}
.exp__highlight .ic { width: 1rem; height: 1rem; color: var(--gold); }

/* Résumé CTA */
.exp__resume {
  display: flex; align-items: center; gap: clamp(1.2rem, 2.5vw, 2rem);
  width: min(calc(100% - 2 * var(--gutter)), calc(var(--maxw) - 2 * var(--gutter)));
  margin: clamp(3rem, 6vw, 5rem) auto 0;
  padding: clamp(1.5rem, 3vw, 2.1rem) clamp(1.6rem, 3vw, 2.6rem);
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}
.exp__resume:hover { border-color: var(--gold); background: rgba(216, 181, 122, 0.04); }
.exp__resume-icon {
  display: grid; place-items: center;
  width: 3rem; height: 3rem; flex: none;
  border-right: 1px solid var(--line);
  padding-right: clamp(1.2rem, 2.5vw, 2rem);
  box-sizing: content-box;
}
.exp__resume-icon .ic { width: 1.6rem; height: 1.6rem; color: var(--gold); }
.exp__resume-txt strong {
  display: block;
  font-family: var(--font-serif); font-weight: 500;
  color: var(--gold);
  font-size: clamp(1.15rem, 2vw, 1.6rem);
  letter-spacing: 0.06em; text-transform: uppercase;
}
.exp__resume-arrow { font-family: var(--font-sans); font-size: 0.8em; }
.exp__resume-txt small {
  display: block; margin-top: 0.4rem;
  color: var(--body-dim);
  font-size: 0.68rem; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase;
}

/* =============================================================
   RESPONSIVE
   ============================================================= */
@media (max-width: 900px) {
  :root { --header-h: 72px; }

  /* On mobile the fixed nav panel lives inside the header. A backdrop-filter
     on the scrolled header would make it the containing block for that fixed
     panel, clipping the panel to the header's height. Use a solid background
     instead so the panel is sized to the viewport (full height). */
  .site-header.is-scrolled {
    background: rgba(10, 9, 8, 0.94);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  /* Mobile nav */
  .nav-toggle { display: flex; }
  .nav {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(80vw, 340px);
    padding: calc(var(--header-h) + 1.5rem) 2rem 2rem;
    background: rgba(12, 11, 9, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-left: 1px solid var(--line);
    transform: translateX(100%);
    transition: transform 0.45s var(--ease);
    z-index: 90;
  }
  body.nav-open .nav { transform: translateX(0); }
  .nav__list {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.75rem;
  }
  .nav__link { font-size: 0.95rem; }

  /* When open, the hamburger gives way to the panel's dedicated × button */
  body.nav-open .nav-toggle { opacity: 0; pointer-events: none; }

  /* Close (×) button — top-right of the mobile menu panel */
  .nav__close {
    display: grid;
    place-items: center;
    position: absolute;
    top: 0.85rem;
    right: 1.1rem;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid var(--line-strong);
    color: var(--champagne);
    background: transparent;
    transition: color 0.25s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease);
  }
  .nav__close:hover,
  .nav__close:focus-visible {
    color: var(--ink);
    background: var(--butter);
    border-color: var(--butter);
  }

  /* Nav backdrop */
  .nav-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s var(--ease), visibility 0.4s var(--ease);
    z-index: 80;
  }
  body.nav-open .nav-backdrop { opacity: 1; visibility: visible; }

  /* Hero media: center the subject, vertical scrim for full-width text */
  .hero__video { object-position: 62% center; }
  .hero__media {
    background-position: 62% center;
    transform: none;                 /* keep subject centered on phones */
  }
  .hero__scrim {
    background:
      /* full-frame base veil */
      linear-gradient(0deg, rgba(8, 7, 5, 0.26), rgba(8, 7, 5, 0.26)),
      /* strong under the title (top) and the CTAs/tags (bottom),
         subject shows faintly through the middle */
      linear-gradient(180deg,
        rgba(8, 7, 5, 0.97) 0%,
        rgba(8, 7, 5, 0.93) 24%,
        rgba(8, 7, 5, 0.74) 46%,
        rgba(8, 7, 5, 0.70) 64%,
        rgba(8, 7, 5, 0.92) 100%);
  }

  .hero__inner { padding-bottom: 9rem; }
  .hero__caption { display: none; }

  /* About: stack the portrait above the content */
  .about__inner {
    grid-template-columns: 1fr;
    gap: clamp(2.5rem, 6vw, 3.5rem);
  }
  .about__media {
    min-height: 0;
    width: 100%;
    max-width: 380px;
    margin-inline: auto;
  }
  .about__portrait { width: 100%; }
  .about__content { max-width: none; }

  /* Contact: hide watermark, stack the email row */
  .contact__watermark { display: none; }
  .contact__title { max-width: 18ch; }
  .contact__email {
    grid-template-columns: 1fr auto;
    gap: 0.5rem 1.5rem;
  }
  .contact__email-label { grid-column: 1 / -1; }
  .contact__email-addr { text-align: left; }

  /* Work carousel: stack text over mockup, cluster arrows top-right */
  .work__slide {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 0;
  }
  .work__num { font-size: clamp(3rem, 13vw, 4.5rem); }
  .work__desc { max-width: none; }
  .work__arrow {
    top: 0.15rem; bottom: auto;
    transform: none;
    width: 40px; height: 40px;
  }
  .work__arrow--prev { left: auto; right: 3.4rem; }
  .work__arrow--next { right: 0.1rem; }
  .work__arrow .ic { width: 18px; height: 18px; }

  /* Experience: stack intro over timeline; meta becomes a row above body */
  .exp__inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .exp__intro { position: static; }
  .exp__title { max-width: 16ch; }
  .exp__watermark { font-size: clamp(5rem, 22vw, 8rem); margin-top: 1.5rem; }
  .exp__timeline::before { left: 0.7rem; }
  .exp__item {
    grid-template-columns: 1.4rem minmax(0, 1fr);
    column-gap: 1rem;
  }
  .exp__meta {
    grid-column: 2; grid-row: 1;
    display: flex; align-items: baseline; flex-wrap: wrap;
    gap: 0.4rem 1.1rem; margin-bottom: 1rem;
  }
  .exp__index { font-size: 2.4rem; line-height: 1; }
  .exp__dates, .exp__loc { margin-top: 0; }
  .exp__body { grid-column: 2; grid-row: 2; }
  .exp__item + .exp__item::before { left: calc(1.4rem + 1rem); }
}

@media (max-width: 560px) {
  .hero__actions { gap: 0.75rem; }
  .btn { --btn-px: 1.6rem; width: 100%; }
  .hero__scroll-label { display: none; }
  .brand__name { display: none; }
  .tag { min-width: 5.2rem; font-size: 0.66rem; }

  /* About: single-column grid with horizontal dividers only */
  .about__grid { grid-template-columns: 1fr; }
  .about__item { padding: 1.3rem 0 !important; border-right: 0 !important; }
  .about__item:not(:last-child) { border-bottom: 1px solid var(--line) !important; }
  .about__item-desc { max-width: none; }

  /* Contact: stack link columns + footer */
  .contact__links { grid-template-columns: 1fr; }
  .contact__col { padding: 1.4rem 0 !important; border-right: 0 !important; }
  .contact__col:not(:last-child) { border-bottom: 1px solid var(--line); }
  .contact__footer {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    gap: 0.7rem;
  }
  .contact__footer-center { text-align: center; }
  .contact__footer-right { justify-self: center; }

  /* Experience: tighten body + stack résumé CTA */
  .exp__body { padding-right: 1.75rem; }
  .exp__resume { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .exp__resume-icon {
    border-right: 0; border-bottom: 1px solid var(--line);
    padding: 0 0 1rem 0; width: auto; height: auto;
    justify-items: start;
  }
}

/* Short landscape (phones held sideways) */
@media (max-height: 560px) and (orientation: landscape) {
  .hero { min-height: 620px; }
  .hero__scroll, .hero__caption { display: none; }
}

/* =============================================================
   MOTION / DATA PREFERENCES
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .js .reveal { opacity: 1 !important; transform: none !important; }
  .hero__video { transition: opacity 0.3s linear; }
}
