/* =========================================================
   SUSANNA CAMA — Portfolio v2
   Editorial · kinetic · art-directed
   Design language informed by kinetic-typography storytelling.
   Palette + type are PLACEHOLDER TOKENS — tune freely below.
   ========================================================= */

/* ---------- TOKENS ---------- */
:root {
  /* Type (placeholders) */
  --font-display: "Inter Tight", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-mono: "Space Mono", ui-monospace, monospace;

  /* Palette */
  --paper: #e5dacb;      /* warm sand */
  --paper-2: #efe8dc;
  --mist: #d6cab5;       /* placeholder media */
  --ink: #111111;
  --ink-soft: #453e37;
  --muted: #93897a;
  --line: rgba(17, 17, 17, 0.16);
  --accent: #b35b4a;     /* terracotta — large text & graphic accents */
  --accent-ink: #9a4436; /* accessible terracotta for SMALL text (WCAG AA on light); lightened on dark sections */
  --teal: #8db3b9;
  --peach: #ffb499;

  /* Hero background photo — save your image here and it shows through the
     cut-out letters + holes. Falls back to an animated colour field if absent. */
  --hero-img: url("../assets/hero.jpg");

  /* Layout */
  --gutter: clamp(20px, 5vw, 80px);
  --maxw: 1680px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);

  /* Case-study type roles (audit: restrained hierarchy) */
  --fs-heading: clamp(1.5rem, 2.75vw, 2.6rem);   /* section heading — one step below the hero (display-l) */
  --fs-diagram: clamp(1.05rem, 1.35vw, 1.35rem); /* flow / process nodes — supporting, not statement scale */

  /* Home consolidation (audit: collapse near-duplicate sizes) */
  --fs-title: clamp(1.35rem, 2.6vw, 2.4rem);     /* one large editorial line — project titles + statement words */
  --fs-meta: clamp(10px, 0.8vw, 12.5px);         /* one mono-utility size (matches .label) — cta, contact, meta rows */

  /* Vertical rhythm scale (audit: consolidate arbitrary spacing) */
  --sp-section: clamp(64px, 11vh, 150px);
  --sp-block: clamp(40px, 7vh, 80px);
  --sp-stack: clamp(12px, 2vw, 28px);
  --sp-head: clamp(26px, 5vh, 56px);
}

/* ---------- RESET ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: clamp(15px, 1.05vw, 18px);
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  transition: background-color 0.7s var(--ease), color 0.7s var(--ease);
}
a { color: inherit; text-decoration: none; }
img, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
::selection { background: var(--ink); color: var(--paper); }

/* Lenis smooth scroll */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

/* ---------- TYPE UTILITIES ---------- */
.display-xxl, .display-xl, .display-l, .display-m {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 0.94;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.display-xxl { font-size: clamp(3rem, 10vw, 8rem); }
.display-xl  { font-size: clamp(2.1rem, 5.2vw, 5.3rem); }
.display-l   { font-size: clamp(1.7rem, 3.4vw, 3.2rem); }
.display-m   { font-size: clamp(1.35rem, 2.2vw, 1.9rem); line-height: 1.06; }

.label {
  font-family: var(--font-mono);
  font-size: clamp(10px, 0.8vw, 12.5px);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 400;
}
/* Unified body/lead size — one step in the hierarchy, used across sections */
.lead {
  font-size: clamp(0.82rem, 0.95vw, 0.98rem);
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 42ch;
}

/* ---------- KINETIC REVEAL (IntersectionObserver + CSS) ---------- */
.line { display: block; }
.line > span { display: block; }

/* word cascade — headings split into words by JS */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.14em; margin-bottom: -0.14em; }
html.js .w-in {
  display: inline-block; transform: translateY(120%); opacity: 0;
  transition: transform 1.3s var(--ease), opacity 0.7s linear;
  transition-delay: calc(var(--wi, 0) * 0.07s);
  will-change: transform;
}
html.js .line.is-in .w-in { transform: none; opacity: 1; }

/* Hero title: nothing on load, then enters ~2s in (over the video) */
html.js .hero__title .w-in { transition-delay: calc(1s + var(--wi, 0) * 0.08s); }

/* stack block reveal (About statement) */
.stack .line { overflow: hidden; padding-bottom: 0.34em; margin-bottom: -0.22em; }
html.js .stack .line > span {
  transform: translateY(115%);
  transition: transform 0.95s var(--ease);
  transition-delay: var(--d, 0s);
}
html.js .stack .line.is-in > span { transform: none; }

/* generic block reveal */
html.js [data-reveal] {
  opacity: 0; transform: translateY(28px);
  transition: opacity 1.2s var(--ease), transform 1.3s var(--ease);
  transition-delay: var(--d, 0s);
  will-change: opacity, transform;
}
html.js [data-reveal].is-in { opacity: 1; transform: none; }

/* image / media reveal — clips up + scales in (elements "appearing") */
html.js [data-reveal="up"] {
  opacity: 1; transform: none;
  clip-path: inset(100% 0 0 0);
  transition: clip-path 1.2s var(--ease);
}
html.js [data-reveal="up"] > img,
html.js [data-reveal="up"] > .work-ghost { transform: scale(1.12); transition: transform 1.4s var(--ease); }
html.js [data-reveal="up"].is-in { clip-path: inset(0 0 0 0); }
html.js [data-reveal="up"].is-in > img { transform: scale(1); }
html.js [data-reveal="up"].is-in > .work-ghost { transform: none; }

@media (prefers-reduced-motion: reduce) {
  html.js .w-in,
  html.js .stack .line > span,
  html.js [data-reveal] { transform: none !important; opacity: 1 !important; transition: none !important; }
  html.js [data-reveal="up"] { clip-path: none !important; }
}

/* ---------- SHELL ---------- */
.shell { width: 100%; padding-inline: var(--gutter); margin-inline: auto; }
section { position: relative; }

/* ---------- NAV ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px var(--gutter);
  mix-blend-mode: difference; color: #fff;      /* legible over any background */
  transition: padding 0.4s var(--ease);
}
.nav__brand { font-family: var(--font-mono); font-weight: 400; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; }
.nav__links { display: flex; gap: 26px; }
.nav__links a { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; position: relative; }
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: -4px; width: 100%; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform 0.4s var(--ease);
}
.nav__links a:hover::after { transform: scaleX(1); }
.nav__right { display: flex; align-items: center; gap: 26px; }
.nav__place { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; }
.nav__menu-btn { display: none; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; }

/* ---------- HERO (dark statement + inline image chips) ---------- */
.hero {
  position: relative; min-height: 100svh; overflow: hidden;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 120px var(--gutter) 48px;
}
.hero__row { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.hero__eyebrow { font-family: var(--font-mono); font-size: clamp(10px, 0.8vw, 12.5px); letter-spacing: 0.12em; text-transform: uppercase; color: color-mix(in srgb, currentColor 58%, transparent); }

.hero__title {
  margin: auto 0; font-family: var(--font-display); font-weight: 500;
  line-height: 0.88; letter-spacing: -0.03em;
  font-size: clamp(2.3rem, 7.6vw, 7.6rem); will-change: transform;
}
.hero__title em { font-style: normal; color: var(--accent); }
.l { display: block; overflow: hidden; padding-bottom: 0.16em; margin-bottom: -0.13em; }
.l-in { display: block; }
html.js .l-in { transform: translateY(112%); transition: transform 1.15s var(--ease); transition-delay: var(--ld, 0s); }
html.loaded .l-in { transform: none; }

/* inline image "chips" set into the headline */
.chip { display: inline-block; vertical-align: middle; margin: 0 0.1em 0.12em; }
.chip img { width: 100%; height: 100%; object-fit: cover; display: block; transform: scale(1.12); transition: transform 1.4s var(--ease) var(--ld, 0s); }
html.loaded .chip img { transform: scale(1); }
.chip--me, .chip--mac { width: 1.5em; height: 0.743em; }

.hero__foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; flex-wrap: wrap; }
.hero__lead { max-width: 42ch; font-size: clamp(0.82rem, 0.95vw, 0.98rem); line-height: 1.6; color: color-mix(in srgb, currentColor 78%, transparent); }
.hero__cta { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: var(--fs-meta); letter-spacing: 0.12em; text-transform: uppercase; }
.hero__cta .arrow { display: inline-block; animation: bob 1.9s var(--ease) infinite; }

html.js .hero2__fade { opacity: 0; transform: translateY(20px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: var(--ld, 0s); }
html.loaded .hero2__fade { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html.js .l-in, html.js .hero2__fade { transform: none !important; opacity: 1 !important; }
  html.js .chip img { transform: none !important; }
}

/* ---------- SECTION HEAD ---------- */
.sec-head {
  display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 20px;
  padding: clamp(72px, 12vh, 160px) 0 clamp(32px, 5vh, 64px);
}
.sec-head__title { max-width: 18ch; }
.sec-head__meta { text-align: right; }

/* ---------- SELECTED WORK ---------- */
.work { padding-bottom: clamp(40px, 8vh, 120px); }

/* ---------- SELECTED WORK — project list (name + desc + scope, floating image on hover) ---------- */
.prolist { border-top: 1px solid var(--line); margin-top: clamp(20px, 3vh, 40px); }
.prow {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: start; column-gap: clamp(20px, 4vw, 64px);
  padding: clamp(36px, 7vh, 84px) 0; border-bottom: 1px solid var(--line);
}
.prow__idx { color: var(--muted); padding-top: 0.75em; white-space: nowrap; }
.prow__name { font-family: var(--font-display); font-weight: 500; letter-spacing: -0.02em; line-height: 1.05;
  font-size: var(--fs-title); transition: transform 0.55s var(--ease), color 0.4s var(--ease); }
.prow__name .arrow { display: inline-block; font-size: 0.34em; vertical-align: middle; margin-left: 0.32em; color: var(--muted);
  opacity: 0; transition: opacity 0.4s var(--ease), transform 0.5s var(--ease); }
.prow__x { color: var(--muted); }
.prow:hover .prow__name { transform: translateX(clamp(8px, 1.5vw, 22px)); color: var(--accent); }
.prow:hover .prow__name .arrow { opacity: 1; transform: translate(0.2em, -0.2em); color: var(--accent); }
.prow__desc { margin-top: clamp(12px, 1.8vh, 18px); max-width: 52ch; font-size: clamp(0.88rem, 0.98vw, 1.02rem); line-height: 1.55; color: var(--ink-soft); }
.prow__meta { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; text-align: right; padding-top: 0.9em; }
.prow__label { color: var(--muted); }
.prow__vals { font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.03em;
  font-size: var(--fs-meta); line-height: 1.55; color: var(--ink); max-width: 24ch; }
.prow__year { color: var(--muted); margin-top: 10px; }
.prow__year-lbl { margin-top: 10px; }
.prow__video { display: none; }
.prow__cta { display: none; color: var(--accent-ink); }


/* floating project image that follows the cursor */
.proj-cursor { position: fixed; top: 0; left: 0; z-index: 45; width: clamp(260px, 28vw, 440px); aspect-ratio: 16 / 9;
  pointer-events: none; overflow: hidden; opacity: 0; transform: translate(-50%, -50%) scale(0.92);
  transition: opacity 0.4s var(--ease), transform 0.5s var(--ease); box-shadow: 0 30px 80px rgba(23,20,15,0.28); }
.proj-cursor.is-on { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.proj-cursor img, .proj-cursor video { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 860px) {
  .prow { grid-template-columns: auto 1fr; row-gap: 14px; align-items: baseline; }
  .prow__meta { grid-column: 1 / -1; align-items: flex-start; text-align: left; }
  .prow__name { font-size: clamp(1.4rem, 6.5vw, 2.1rem); }
}
@media (hover: none) { .proj-cursor { display: none; } }
.work-item { display: block; padding: clamp(28px, 4vh, 56px) 0; border-top: 1px solid var(--line); }
.work-head {
  display: grid; grid-template-columns: auto 1fr;
  grid-template-areas: "idx title" ". meta";
  column-gap: clamp(16px, 3vw, 48px); row-gap: 14px;
  align-items: baseline;
  margin-bottom: clamp(20px, 3vh, 36px);
}
.work-index { grid-area: idx; align-self: start; padding-top: 0.6em; }
.work-title { grid-area: title; line-height: 0.96; }
.work-title .arrow { display: inline-block; font-size: 0.5em; vertical-align: middle; margin-left: 0.3em; transition: transform 0.5s var(--ease); color: var(--muted); }
.work-item:hover .work-title .arrow { transform: translate(0.3em, -0.3em); }
.work-meta { display: flex; flex-wrap: wrap; gap: 6px clamp(16px, 2vw, 26px); margin-top: clamp(14px, 2vh, 22px); list-style: none;
  font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.08em;
  font-size: var(--fs-meta); color: var(--ink-soft); }
.work-meta li { position: relative; padding-left: 1.1em; }
.work-meta li::before { content: "•"; position: absolute; left: 0; color: var(--accent); }

/* feature project — editorial, alternating sides, breathes */
.work-item--feature {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(28px, 5vw, 72px);
  align-items: center; border-top: none;
  padding: clamp(40px, 9vh, 104px) 0;
}
.work-item--flip { grid-template-columns: 0.9fr 1.1fr; }
.work-item--flip .work-media { order: 2; }
.work-item--flip .work-body { order: 1; }
.work-body { min-width: 0; }
.work-item--feature .work-index { display: block; padding-top: 0; margin-bottom: clamp(14px, 2vh, 22px); color: var(--accent); }
.work-item--feature .work-title { font-family: var(--font-display); font-weight: 500; letter-spacing: -0.02em; line-height: 1.0; font-size: clamp(1.9rem, 3.3vw, 3.3rem); }
.work-desc { margin-top: clamp(16px, 2.5vh, 24px); max-width: 42ch; font-size: clamp(0.95rem, 1.05vw, 1.12rem); line-height: 1.6; color: var(--ink-soft); }
@media (max-width: 820px) {
  .work-item--feature, .work-item--flip { grid-template-columns: 1fr; gap: clamp(18px, 4vh, 30px); }
  .work-item--flip .work-media, .work-item--flip .work-body { order: 0; }
}

.work-media {
  position: relative; overflow: hidden;
  background: var(--mist);
  box-shadow: inset 0 0 0 1px var(--line);
  aspect-ratio: 16 / 10;
}
/* placeholder texture while real media is pending */
.work-media::before {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(135deg, transparent 49.4%, rgba(23,20,15,0.05) 49.5%, rgba(23,20,15,0.05) 50.5%, transparent 50.6%),
    linear-gradient(180deg, var(--paper-2), var(--mist));
  opacity: 0.9;
}
.work-item--feature .work-media { aspect-ratio: 4 / 3; width: 100%; max-width: none; height: auto; min-height: 0; margin: 0; }
.work-media img, .work-media video { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: cover; transform: scale(1.02); transition: transform 0.9s var(--ease); }
.work-item:hover .work-media img, .work-item:hover .work-media video { transform: scale(1.06); }
.work-ghost, .work-card__ghost { display: none; }
.work-ghost {
  position: absolute; z-index: 2; left: clamp(16px, 3vw, 48px); bottom: -0.16em; margin: 0;
  font-family: var(--font-display); font-weight: 500; line-height: 1;
  font-size: clamp(6rem, 26vw, 26rem); color: rgba(23,20,15,0.12); pointer-events: none;
}
.work-scope {
  position: absolute; z-index: 2; right: clamp(16px, 3vw, 40px); bottom: clamp(16px, 3vw, 32px);
  color: var(--ink-soft); text-align: right;
}

/* ---------- SECONDARY PROJECTS · 3-COLUMN GRID ---------- */
.work-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: clamp(36px, 4vw, 72px) clamp(20px, 3vw, 56px);
  border-top: 1px solid var(--line);
  margin-top: clamp(28px, 4vh, 56px);
  padding-top: clamp(32px, 5vh, 64px);
}
.work-card { display: block; }
.work-card__media {
  position: relative; overflow: hidden; aspect-ratio: 1 / 1;
  background: var(--mist); box-shadow: inset 0 0 0 1px var(--line);
}
.work-card__media::before {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(135deg, transparent 49.4%, rgba(23,20,15,0.05) 49.5%, rgba(23,20,15,0.05) 50.5%, transparent 50.6%),
    linear-gradient(180deg, var(--paper-2), var(--mist));
  opacity: 0.9;
}
.work-card__media img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: cover; transform: scale(1.02); transition: transform 0.9s var(--ease); }
.work-card:hover .work-card__media img { transform: scale(1.06); }
.work-card__ghost {
  position: absolute; z-index: 2; left: 14px; bottom: -0.14em;
  font-family: var(--font-display); font-weight: 500; line-height: 1;
  font-size: clamp(3.2rem, 7vw, 6rem); color: rgba(23,20,15,0.12); pointer-events: none;
}
.work-card__head { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; margin-top: 16px; }
.work-card__title { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.1rem, 1.5vw, 1.6rem); letter-spacing: -0.02em; line-height: 1.05; }
.work-card__title .arrow { display: inline-block; font-size: 0.62em; color: var(--muted); transition: transform 0.5s var(--ease); }
.work-card:hover .work-card__title .arrow { transform: translate(0.25em, -0.25em); }
.work-card__meta { text-align: left; max-width: none; color: var(--muted); }
@media (max-width: 560px) { .work-grid { grid-template-columns: 1fr; } }
.work-card--wide .work-card__media { aspect-ratio: 16 / 10; }

/* ---------- HOW I WORK ---------- */
.hiw { padding-bottom: clamp(60px, 10vh, 140px); }
.hiw__concept { max-width: 15ch; margin-bottom: clamp(40px, 8vh, 100px); }
.hiw__concept em { font-style: normal; color: var(--accent); }
/* horizontal process flow — Think → Design → Create → Build */
.hiw-flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(18px, 3vw, 44px); margin-top: clamp(24px, 4vh, 56px); }
.hiw-step { position: relative; border-top: 1px solid var(--line); padding-top: clamp(26px, 3.5vh, 44px); padding-right: clamp(12px, 1.5vw, 28px); }
.hiw-step::before { content: ""; position: absolute; top: -4px; left: 0; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.hiw-step__idx { display: block; color: var(--accent); margin-bottom: 16px; }
.hiw-step__name { font-family: var(--font-display); font-weight: 500; letter-spacing: -0.02em; line-height: 1; font-size: clamp(1.5rem, 2.4vw, 2.2rem); margin-bottom: clamp(12px, 1.6vh, 18px); }
.hiw-step__desc { font-size: clamp(0.9rem, 1vw, 1.05rem); line-height: 1.6; color: var(--ink-soft); }
@media (max-width: 860px) {
  .hiw-flow { grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 40px) clamp(18px, 3vw, 32px); }
}
@media (max-width: 520px) {
  .hiw-flow { grid-template-columns: 1fr; }
}

/* ---------- ABOUT ---------- */
.about { padding-bottom: clamp(60px, 10vh, 140px); }
.about__grid { display: grid; grid-template-columns: minmax(0, 440px) 1fr; column-gap: clamp(28px, 5vw, 80px); row-gap: clamp(34px, 5vh, 64px); align-items: start; }
.about__body { grid-column: 2; grid-row: 1; }
.about__portrait { grid-column: 1; grid-row: 1; }

/* portrait — stays with you while the story scrolls past */
.about__portrait { position: static; }
.about__portrait-img { position: relative; aspect-ratio: 4/5; overflow: hidden; background: var(--mist); }
.about__frame { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: contrast(1.04) brightness(1.02) saturate(1.02); }
@keyframes aboutSwap { 0%, 46% { opacity: 0; } 54%, 96% { opacity: 1; } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .about__frame--alt { animation: none; } }

/* story column */
.about__body { align-self: start; }
.about__statement { margin-bottom: clamp(30px, 5vh, 60px); }
.about__lead { max-width: 52ch; margin-bottom: clamp(30px, 5vh, 56px); }
.about__meta { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 3vw, 52px); padding-top: clamp(24px, 3.2vh, 34px); border-top: 1px solid var(--line); }
.about__meta dt { color: var(--ink-soft); margin-bottom: 8px; }
.about__meta dd { font-family: var(--font-display); font-weight: 500; letter-spacing: -0.01em; font-size: clamp(0.98rem, 1.25vw, 1.2rem); }

/* toolkit — the tools she works with, as interactive pills */
.about__tools { grid-column: 1 / -1; padding-top: clamp(24px, 3.2vh, 34px); border-top: 1px solid var(--line); }
.about__tools-label { display: block; color: var(--ink-soft); margin-bottom: 18px; }
/* About sits on light salmon — darken the eyebrow label too for legibility */
.about .sec-head__meta { color: var(--ink-soft); }
.about__tools-groups { display: block; }
.about__tools-list { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; align-content: flex-start; }
.about__tools-list li.tools-list__br { flex-basis: 100%; height: 0; padding: 0; margin: 0; border: 0; }
.about__tools-list li {
  font-family: var(--font-mono); font-size: var(--fs-meta); letter-spacing: 0.06em; text-transform: uppercase;
  padding: 9px 16px; border: 1px solid var(--line); border-radius: 100px;
  transition: color 0.35s var(--ease), border-color 0.35s var(--ease), transform 0.35s var(--ease);
}
.about__tools-list li:hover { color: var(--accent); border-color: var(--accent); transform: translateY(-3px); }

/* Stacked one-word-per-line homage to the reference */
.stack { display: block; }
.stack .word { display: block; font-family: var(--font-display); font-weight: 500; line-height: 1.05; letter-spacing: -0.02em; font-size: var(--fs-title); white-space: nowrap; }
.stack em { font-style: normal; color: var(--accent); }

/* ---------- CONTACT / FOOTER ---------- */
.contact { padding: clamp(80px, 16vh, 220px) 0 48px; }
.contact__title { max-width: 15ch; margin-bottom: clamp(36px, 6vh, 72px); }
.contact__title .line:last-child { color: var(--accent); }
.contact__links { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.contact__line { font-family: var(--font-mono); font-size: var(--fs-meta); letter-spacing: 0.1em; text-transform: uppercase; transition: color 0.3s var(--ease); }
.contact__line:hover { color: var(--accent); }
.footer { display: flex; flex-direction: column; gap: clamp(22px, 3.5vh, 40px); padding: clamp(40px, 6vh, 72px) 0 16px; border-top: 1px solid var(--line); margin-top: clamp(80px, 14vh, 180px); }
.footer__row { display: flex; justify-content: space-between; align-items: baseline; gap: 18px 32px; flex-wrap: wrap; }
.footer__nav { display: flex; gap: clamp(16px, 2vw, 32px); }
.footer .label { color: #efe8dc; }
.footer__nav a, .footer__top { transition: color 0.3s var(--ease); }
.footer__nav a:hover, .footer__top:hover { color: var(--accent); }
.footer .footer__copy { color: rgba(239, 232, 220, 0.5); }

/* ---------- MOBILE MENU ---------- */
.menu {
  position: fixed; inset: 0; z-index: 55; background: var(--ink); color: var(--paper);
  display: flex; flex-direction: column; justify-content: center; gap: 8px; padding: var(--gutter);
  transform: translateY(-100%); transition: transform 0.6s var(--ease); pointer-events: none;
}
.menu.is-open { transform: translateY(0); pointer-events: auto; }
.menu { overflow-y: auto; }
.menu a { font-family: var(--font-display); font-weight: 500; font-size: var(--fs-title); letter-spacing: -0.02em; transition: color 0.3s var(--ease); }
.menu a:active { color: var(--accent); }
.menu__projects { list-style: none; margin: clamp(8px, 1.6vh, 14px) 0 clamp(16px, 3vh, 26px); display: flex; flex-direction: column; gap: 2px; }
.menu__projects a { display: inline-block; padding: 5px 0; font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: color-mix(in srgb, currentColor 60%, transparent); }
.menu__foot { position: absolute; left: var(--gutter); bottom: var(--gutter); }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
  .nav__links { display: none; }
  .nav__clock { display: none; }
  .nav__menu-btn { display: inline-block; }
  .work-index { padding-top: 0; }
  .about__grid { grid-template-columns: 1fr; }
  .about__body, .about__portrait { grid-column: auto; grid-row: auto; }
  .about__portrait { position: static; top: auto; max-width: 420px; order: -1; }
  .about__meta { grid-template-columns: 1fr 1fr; }
  .sec-head { grid-template-columns: 1fr; }
  .sec-head__meta { text-align: left; }
}
@media (max-width: 560px) {
  /* nav — drop Barcelona + clock on phones */
  .nav__place { display: none; }

  /* hero — remove "Portfolio — 2026", pull the lead up under the title, scroll right after it */
  .hero__row .hero__eyebrow:nth-child(2) { display: none; }
  .hero { justify-content: center; }
  .hero__title { margin: clamp(28px, 7vh, 60px) 0 clamp(22px, 4.5vh, 34px); }
  .hero__foot { flex-direction: column; align-items: flex-start; gap: clamp(18px, 3.5vh, 26px); }

  .about__meta { grid-template-columns: 1fr; gap: 20px; }

  /* hero — keep "Curiosity is how I work." on its own line */
  .hero__curiosity { display: block; margin-top: 0.55em; }

  /* work — index above title, everything left-aligned, video under the year */
  .prow { grid-template-columns: 1fr; row-gap: 12px; }
  .prow__idx { padding-top: 0; }
  .prow__vals { max-width: none; }
  .prow__cta { display: inline-block; align-self: flex-end; margin-top: 12px; }
  .prow__video { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; margin-top: 14px; }
}

/* ---------- MARQUEE ---------- */
.marquee {
  overflow: hidden; white-space: nowrap;
  margin-inline: calc(-1 * var(--gutter));
  padding: clamp(18px, 3.5vh, 44px) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.marquee__track { display: inline-flex; align-items: center; gap: 0; will-change: transform; animation: marquee 40s linear infinite; }
.marquee__track span {
  font-family: var(--font-display); font-weight: 500; line-height: 1;
  font-size: clamp(1.05rem, 1.9vw, 1.6rem); letter-spacing: -0.01em;
  padding-inline: 0;
}
.marquee__track i { font-style: normal; padding-inline: 0.6em; opacity: 0.4; font-size: clamp(1.05rem, 1.9vw, 1.6rem); }
.marquee__track .o { -webkit-text-stroke: 0; color: inherit; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- HERO SCROLL CUE ---------- */
.hero__cta .arrow { animation: bob 1.9s var(--ease) infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(6px); } }

/* ---------- PINNED SCALING STATEMENT ---------- */
.statement { position: relative; height: 150vh; margin-inline: calc(-1 * var(--gutter)); }
.statement__sticky {
  position: sticky; top: 0; height: 100svh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; padding: 0 var(--gutter);
}
.statement__text {
  font-family: var(--font-display); font-weight: 500; text-align: center;
  letter-spacing: -0.03em; line-height: 0.92; max-width: 15ch;
  font-size: clamp(1.8rem, 4.6vw, 4.2rem);
  transform: scale(0.62); transform-origin: center;
  will-change: transform, opacity;
}
.statement__text em { font-style: normal; color: var(--accent); }

/* ---------- ACCENT INTERACTIONS ---------- */
.hero__cta:hover { color: var(--accent); }
.work-item:hover .work-title { color: var(--accent); }
.work-card:hover .work-card__title { color: var(--accent); }
.nav__links a:hover, .contact__social a:hover { color: var(--accent); }

@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; }
  .hero__cta .arrow { animation: none; }
  body { transition: none; }
  .statement { height: auto; }
  .statement__sticky { position: static; height: auto; padding: 20vh var(--gutter); }
  .statement__text { transform: none; }
}

/* ---------- SELECTED WORK TAGLINE (more prominent than project meta) ---------- */
.sec-head__tagline {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(1.15rem, 2vw, 2rem); line-height: 1.02;
  letter-spacing: -0.02em; margin-top: 12px; color: var(--ink);
}

/* ---------- CUSTOM CURSOR (salmon) ---------- */
.cursor { display: none; }
@media (hover: hover) and (pointer: fine) {
  html.js, html.js a, html.js button, html.js .hero__cta, html.js .work-item, html.js .work-card { cursor: none; }
  .cursor {
    display: block; position: fixed; top: 0; left: 0;
    width: 14px; height: 14px; border-radius: 50%;
    background: var(--peach); pointer-events: none; z-index: 9999;
    will-change: transform;
    transition: width 0.25s var(--ease), height 0.25s var(--ease), background 0.25s var(--ease);
  }
  .cursor.is-hover { width: 46px; height: 46px; background: rgba(255, 180, 153, 0.32); }
  /* on the salmon About section the peach cursor vanishes — switch to terracotta */
  .cursor.cursor--accent { background: var(--accent); }
  .cursor.cursor--accent.is-hover { background: rgba(179, 91, 74, 0.26); }
}
@media (prefers-reduced-motion: reduce) { .cursor { display: none; } html.js { cursor: auto; } }

/* ---------- PRELOADER + REVEAL TRANSITION ---------- */
html.loading, html.loading body { overflow: hidden; }
.loader {
  position: fixed; inset: 0; z-index: 200; background: #111110;
  display: grid; place-items: center;
  transition: transform 1.1s cubic-bezier(0.76, 0, 0.24, 1); will-change: transform;
}
.loader--out { transform: translateY(-100%); }
.loader__svg { width: min(66vw, 700px); height: auto; display: block; }
.loader__brand { position: absolute; left: var(--gutter); bottom: var(--gutter); color: var(--muted); }
.loader__pct {
  position: absolute; right: var(--gutter); bottom: var(--gutter);
  font-family: var(--font-mono); line-height: 1;
  font-size: clamp(0.8rem, 1vw, 0.95rem); letter-spacing: 0.06em; color: rgba(239, 232, 220, 0.5);
}
.loader__pct i { font-style: normal; margin-left: 0.1em; color: var(--accent); }

.reveal { position: fixed; inset: 0; z-index: 210; display: grid; pointer-events: none; }
.reveal .blk {
  background: var(--accent); transform: scaleY(0); transform-origin: bottom;
  transition: transform 0.6s var(--ease); transition-delay: var(--d, 0s); will-change: transform;
}
.reveal.cover .blk { transform: scaleY(1); }
.reveal.cover.open .blk { transform: scaleY(0); transform-origin: top; }

@media (prefers-reduced-motion: reduce) { .loader, .reveal { display: none !important; } }
