/* =========================================================
   Self-hosted fonts — Archivo, Fraunces, JetBrains Mono.
   All three are variable fonts, so one woff2 per subset covers every
   weight/width permutation we use. Latin-ext is included so accents and
   extended punctuation work without falling back to a system font.
   ========================================================= */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 400 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url('/assets/fonts/archivo-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 400 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url('/assets/fonts/archivo-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Fraunces';
  font-style: italic;
  font-weight: 400 600;
  font-display: swap;
  src: url('/assets/fonts/fraunces-italic-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Fraunces';
  font-style: italic;
  font-weight: 400 600;
  font-display: swap;
  src: url('/assets/fonts/fraunces-italic-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/assets/fonts/jetbrains-mono-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/assets/fonts/jetbrains-mono-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* =========================================================
   Robert Vanderhoef — design tokens
   ========================================================= */
:root {
  --ink:         #111010;
  --ink-muted:   #2A2A2A;
  --page-bg:     #f4f0e8;   /* warm off-white — nods to the paper palette */
  --paper:       #d1cdc3;
  --paper-deep:  #c9c5ba;
  --paper-warm:  #CEC2AB;

  /* 8px scale */
  --s-1: 4px;   --s0: 8px;   --s1: 16px;  --s2: 24px;
  --s3: 32px;   --s4: 48px;  --s5: 64px;  --s6: 96px;
  --s7: 128px;  --s8: 192px;

  /* Type — preview via Google Fonts equivalents to a licensed pair:
       --ff-mono   : JetBrains Mono ≈ ABC Diatype Mono / GT America Mono
       --ff-italic : Fraunces       ≈ GT Sectra Display Italic
     Default body font is the mono. Italic accent is reserved for display moments
     (hero title, menu links). For production: license & self-host the real fonts. */
  --ff-mono:    "JetBrains Mono", "ABC Diatype Mono", "GT America Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --ff-italic:  "Fraunces", "GT Sectra Display", Georgia, "Times New Roman", serif;
  --ff-display: "Archivo", "Helvetica Neue Condensed", "Arial Narrow", sans-serif;
  --ff:         var(--ff-mono);
}

/* Headers use Archivo at a compressed width axis (variable-font wdth ~ 75). */
.h-display {
  font-family: var(--ff-display);
  font-style: normal;
  font-stretch: 75%;
  font-variation-settings: 'wdth' 75;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  /* Hard-split background — off-white on the left half, mint on the right.
     The 50% stop on both colors produces a crisp vertical line at center.
     SVG noise layered on top adds a paper-grain texture so the surface doesn't
     read as flat color. background-attachment: fixed keeps both layers anchored. */
  background:
    url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.08 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
    linear-gradient(to right, var(--page-bg) 50%, #85FFCC 50%);
  background-attachment: fixed, fixed;
  background-size: 200px 200px, auto;
  color: var(--ink);
  font-family: var(--ff);
  font-weight: 500;
  font-feature-settings: "ss01", "ss02";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  background: transparent;
  min-height: 100svh;
  overflow-x: hidden;
  font-size: 17px;
  line-height: 1.55;
}

/* While the intro auto-plays, prevent body scroll so the user can't reach
   content that's still hidden behind the mask. Released on animation complete. */
body.intro-playing {
  overflow: hidden;
  height: 100%;
}

/* =========================================================
   Site header — inline above the gallery, inside the pinned container.
   Anchored to the viewport's left edge (matching the bottom-left social block)
   rather than centered with the gallery. Hidden during the intro (covered by
   the mask), reveals along with the gallery.
   ========================================================= */
.site-header {
  width: 100%;
  padding: 40px 0px 20px var(--s3);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.site-brand {
  display: inline-flex;
  align-items: center;
  gap: var(--s0);
  text-decoration: none;
  color: var(--ink);
  border-bottom: none;
}
.site-brand:hover { opacity: 0.65; }
.site-logo {
  display: inline-block;
  width: 42px;
  height: 36px;
  flex: 0 0 auto;
}
.site-logo svg {
  width: 100%;
  height: 100%;
  display: block;
}
.site-logo svg path { fill: var(--ink); }
.site-title {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 4px;
  white-space: nowrap;
  padding-left: 10px;
}

/* Primary nav — inside the header, right-aligned via the header's space-between
   flex. align-items: center on the header keeps nav text vertically lined up
   with the brand title. */
.site-nav {
  display: flex;
  gap: var(--s3);
  padding-right: var(--s3);
}
.nav-link {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 4px;
  color: var(--ink);
  border-bottom: none;
  text-decoration: none;
}
.nav-link[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: 6px;
}

/* =========================================================
   Loader — pulsing "Loading" label, bottom-center. Fades out
   ( .is-gone ) once the intro auto-play begins.
   ========================================================= */
.loader {
  position: fixed;
  bottom: 40px;
  left: 50%;
  transform: translate(-50%, 0);
  z-index: 110; /* above the intro overlay (100) */
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--ink);
  pointer-events: none;
  animation: loader-pulse 1.4s ease-in-out infinite;
  transition: opacity 400ms ease;
}
.loader.is-gone {
  opacity: 0;
  animation: none;
}
@keyframes loader-pulse {
  0%, 100% { opacity: 0.4; }
  50%      { opacity: 0.9; }
}


/* =========================================================
   Social block — external links, bottom-left, stacked vertically.
   z-index sits BELOW the intro (which is at 100) so the off-white mask covers
   the icons during the zoom. As the mask fades (75-85%), they reveal naturally.
   ========================================================= */
.social-block {
  position: fixed;
  bottom: var(--s2);
  left: var(--s3);
  z-index: 50;
}
.social-block ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--s1);
}
.social-block a {
  display: block;
  border: none;
  opacity: 0.75;
  transition: opacity 200ms ease, transform 200ms ease;
}
.social-block a:hover {
  opacity: 1;
  transform: translateX(2px);
}
.social-block img {
  display: block;
  width: 16px;
  height: 16px;
  object-fit: contain;
}

a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
  transition: opacity 200ms ease;
}
a:hover { opacity: 0.6; }

img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* =========================================================
   Intro overlay — always fixed in viewport, scrubbed by ScrollTrigger against
   the document's scroll position. The mask paints off-white outside the cutout;
   inside the cutout is transparent so the gallery scrolling beneath shows through.
   Past the zoom range, the cutout exceeds the viewport so nothing of the overlay
   is visible — the gallery simply scrolls naturally.
   ========================================================= */
.intro {
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  /* Opacity 1 from initial paint so the gallery (in normal flow below) never
     briefly shows through before JS boots. */
}

/* Skip path: an inline <head> script flags <html> before paint when the intro
   has already played in this tab. Hide the overlay + loader entirely so
   neither flashes on subsequent loads. */
html.rvh-skip-intro .intro,
html.rvh-skip-intro .loader { display: none; }

.mask-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* Ink overlay sits between the gallery (below the intro) and the mask above.
   Opacity 1 at rest -> 0 by the end of phase 1 of the zoom (around t=0.3),
   so the small initial logo reads as solid black, then dissolves to reveal art. */
.ink-overlay {
  position: absolute;
  inset: 0;
  background: var(--ink);
  pointer-events: none;
  will-change: opacity;
}
.mask-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.paper-fill { fill: var(--page-bg); }
#logoMaskGroup { will-change: transform; }
#logoMaskGroup path { fill: black; }

/* =========================================================
   Pin wrap — full-width wrapper. (No longer pinned; container only.)
   ========================================================= */
.pin-wrap {
  width: 100%;
  position: relative;
}

/* =========================================================
   Hero — full-viewport landing after the intro. Artwork cycles in the
   background with Ken Burns motion; massive title overlays.
   ========================================================= */
.hero {
  position: relative;
  width: 100%;
  height: 120svh;          /* taller than viewport — the title bleeds past the fold */
  min-height: 720px;
  overflow: hidden;
  background: var(--ink);
}
/* The bg container is intentionally taller than the hero so that parallax
   translation (applied by JS) never exposes a gap at the top or bottom. */
.hero-bg {
  position: absolute;
  top: -10svh;
  left: 0;
  right: 0;
  height: 140svh;
  z-index: 0;
  will-change: transform;
}
.hero-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
  filter: brightness(0.78) saturate(1.05);
  /* Slow ambient scale — adds life when the user isn't scrolling. */
  animation: hero-zoom 22s ease-in-out infinite alternate;
}
@keyframes hero-zoom {
  from { transform: scale(1.02); }
  to   { transform: scale(1.1); }
}

/* Dark veil over the artwork for title legibility — uses a gradient so the
   bottom is slightly more shaded than the top (where the brand sits). */
.hero-veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg,
    rgba(17, 16, 16, 0.20) 0%,
    rgba(17, 16, 16, 0.40) 50%,
    rgba(17, 16, 16, 0.65) 100%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;     /* eyebrow+tagline up top, title at the bottom */
  padding: 110px var(--s3) 0;          /* room for the absolute-positioned header */
  color: var(--page-bg);
}
.hero-top {
  max-width: 600px;
}
.hero-eyebrow {
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-weight: 500;
  opacity: 0.8;
  margin-bottom: var(--s3);
}
.hero-title {
  font-family: var(--ff-display);
  font-style: normal;
  font-weight: 700;
  font-stretch: 75%;
  font-variation-settings: 'wdth' 75;
  font-size: clamp(180px, 42vw, 680px);
  letter-spacing: -0.03em;
  line-height: 60%;
  margin-bottom: -20px;
  text-wrap: balance;
  /* Hidden until the JS reveal runs after the intro mask completes. */
  opacity: 0;
}

/* Per-line mask containers for the exoape-style hero reveal — each line is
   wrapped (in JS) in .line-mask > .line-inner so the inner span can translate
   up from below the baseline with a slight rotation, while the mask's
   overflow: hidden keeps the text below the baseline invisible until it rises.
   The padding/margin offset enlarges the mask just enough to accommodate the
   glyph ascenders/descenders that extend past the 0.6 line-box. */
.hero-title .line-mask {
  display: inline-block;
  overflow: hidden;
  padding: 0.22em 0.06em;
  margin: -0.22em -0.06em;
  vertical-align: baseline;
}
.hero-title .line-inner {
  display: inline-block;
  transform-origin: 0% 100%;
  will-change: transform;
}

/* Per-word reveal for the hero tagline — each word is wrapped in a mask so
   it rises up from below its baseline with a slight rotation, staggered so
   the reveal reads as left-to-right (and, since words wrap naturally, line
   by line). Padding/margin offset is smaller than the title's because the
   tagline's line-height is 1.55 — there's already room around the glyphs. */
.hero-tagline .line-mask {
  display: inline-block;
  overflow: hidden;
  padding: 0.1em 0.02em;
  margin: -0.1em -0.02em;
  vertical-align: baseline;
}
.hero-tagline .line-inner {
  display: inline-block;
  transform-origin: 0% 100%;
  will-change: transform;
}

/* Same line-mask reveal applied to each menu drawer link on open. The italic
   font + tight line-height means glyphs can extend slightly past the line-box,
   so a small padding/margin offset on the mask leaves room without breaking
   the centered text layout. */
.menu-link .line-mask {
  display: inline-block;
  overflow: hidden;
  padding: 0.18em 0.08em;
  margin: -0.18em -0.08em;
  vertical-align: baseline;
}
.menu-link .line-inner {
  display: inline-block;
  transform-origin: 0% 100%;
  will-change: transform;
}

/* Inline header nav — same line-mask reveal applied to the location label
   ("Robert Vanderhoef") and the Menu button text. Padding/margin offsets
   leave room for the rotation overshoot at small font sizes. The host
   elements start at opacity 0 so the text can't flash before JS wraps it. */
.header-location,
.header-menu-btn {
  opacity: 0;
}
.header-location .line-mask,
.header-menu-btn .line-mask {
  display: inline-block;
  overflow: hidden;
  padding: 0.25em 0.04em;
  margin: -0.25em -0.04em;
  vertical-align: baseline;
}
.header-location .line-inner,
.header-menu-btn .line-inner {
  display: inline-block;
  transform-origin: 0% 100%;
  will-change: transform;
}

/* Logo + LinkedIn + Instagram icons — same line-mask reveal applied to the
   icons. The mask is sized to the icon's bounds (overflow: hidden clips the
   inner during the slide), and the inner span is the original icon container,
   transformed freely. Hidden initially via opacity so they can't flash before
   JS wraps. */
.header-mark,
.header-linkedin,
.header-instagram {
  opacity: 0;
  visibility: hidden;
}
.header-mark .line-mask {
  display: block;
  width: 36px;
  height: 30px;
  overflow: hidden;
}
.header-linkedin .line-mask,
.header-instagram .line-mask {
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
.header-mark .line-inner,
.header-linkedin .line-inner,
.header-instagram .line-inner {
  display: block;
  width: 100%;
  height: 100%;
  transform-origin: 0% 100%;
  will-change: transform;
}

/* Callout (hiring) heading — same line-mask reveal as hero title, but
   scroll-triggered when the section comes into view. */
.callout-heading {
  opacity: 0;
}
.callout-heading .line-mask {
  display: inline-block;
  overflow: hidden;
  padding: 0.22em 0.06em;
  margin: -0.22em -0.06em;
  vertical-align: baseline;
}
.callout-heading .line-inner {
  display: inline-block;
  transform-origin: 0% 100%;
  will-change: transform;
}

/* Info page Picasso quote — per-word reveal on load, matching the hero
   tagline animation. */
.slider-caption {
  opacity: 0;
}
.slider-caption .line-mask {
  display: inline-block;
  overflow: hidden;
  padding: 0.15em 0.03em;
  margin: -0.15em -0.03em;
  vertical-align: baseline;
}
.slider-caption .line-inner {
  display: inline-block;
  transform-origin: 0% 100%;
  will-change: transform;
}
.hero-title em {
  font-family: var(--ff-italic);
  font-style: italic;
  font-weight: 400;
  font-stretch: normal;
  font-variation-settings: normal;
}

/* The cycling verb. Italic styling is inherited from .hero-title em.
   JS measures the widest verb and stamps min-width onto this span so the
   line beneath doesn't reflow when the word changes. */
.hero-rotator {
  display: inline-block;
  text-align: left;
  transition: opacity 380ms ease, transform 380ms ease;
  will-change: opacity, transform;
}
.hero-rotator.is-out {
  opacity: 0;
  transform: translateY(-0.06em);
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s1);
  margin-top: var(--s3);
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 500;
  opacity: 0.85;
}
.hero-meta-dot {
  opacity: 0.5;
}

/* Editorial tagline under the hero title — a descriptive sentence, the closest
   analog to Exo Ape's studio statement. Italic accents on proper nouns. */
.hero-tagline {
  font-family: var(--ff-mono);
  font-size: clamp(15px, 1.3vw, 18px);
  font-weight: 400;
  line-height: 1.55;
  max-width: 56ch;
  /* Hidden until the JS reveal runs after the intro mask completes. */
  opacity: 0;
}
.hero-tagline em {
  font-family: var(--ff-italic);
  font-style: italic;
  font-weight: 400;
  font-size: 1.08em;
}

/* =========================================================
   Site header overlay — absolute-positioned on the hero. Three-column grid:
   location label / centered logo mark / Menu + LinkedIn icon.
   ========================================================= */
.site-header-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 5;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: var(--s2) var(--s3);
  color: var(--page-bg);
}
/* Dark variant — used on pages without a dark hero behind the header (work, info). */
.site-header-overlay.is-dark { color: var(--ink); }
.site-header-overlay.is-dark .site-logo svg path { fill: var(--ink); }
.site-header-overlay.is-dark .header-linkedin,
.site-header-overlay.is-dark .header-instagram { color: var(--ink); }
.header-slot-left   { justify-self: start; }
.header-slot-center { justify-self: center; }
.header-slot-right  {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: var(--s2);
}
.header-location {
  font-family: var(--ff-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: inherit;
  text-decoration: none;
  border-bottom: 0;
  padding-bottom: 0;
}
.header-mark {
  display: block;
  border-bottom: none;
}
.header-mark .site-logo {
  width: 36px;
  height: 30px;
  display: block;
}
.header-mark .site-logo svg { width: 100%; height: 100%; display: block; }
.header-mark .site-logo svg path { fill: var(--page-bg); }
.header-menu-btn {
  background: transparent;
  border: none;
  font-family: var(--ff-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: inherit;
  cursor: pointer;
  padding: var(--s0) 0;
  position: relative;
}
.header-menu-btn::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  bottom: 4px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 250ms cubic-bezier(0.2, 0.7, 0.2, 1);
}
.header-menu-btn:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}
.header-linkedin,
.header-instagram {
  display: block;
  width: 18px;
  height: 18px;
  color: var(--page-bg);
  border-bottom: none;
  transition: opacity 200ms ease;
}
.header-linkedin:hover,
.header-instagram:hover { opacity: 0.6; }
.header-linkedin svg,
.header-instagram svg { width: 100%; height: 100%; fill: currentColor; display: block; }


/* =========================================================
   Menu panel — full-screen overlay drawer. Large italic-accent links.
   ========================================================= */
.menu-panel {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--ink);
  color: var(--page-bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 400ms ease;
}
.menu-panel.is-open {
  opacity: 1;
  pointer-events: auto;
}
.menu-close {
  position: absolute;
  top: var(--s2);
  right: var(--s3);
  background: transparent;
  border: none;
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--page-bg);
  cursor: pointer;
  padding: var(--s0) 0;
}
.menu-nav {
  display: flex;
  flex-direction: column;
  gap: var(--s2);
  text-align: center;
}
.menu-link {
  font-family: var(--ff-italic);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(64px, 13vw, 180px);
  letter-spacing: -0.03em;
  line-height: 0.95;
  color: var(--page-bg);
  border-bottom: none;
  text-decoration: none;
  transition: opacity 200ms ease;
}
.menu-link:hover { opacity: 0.45; }
@keyframes scroll-bounce {
  0%, 100% { transform: translateY(0); opacity: 0.7; }
  50%      { transform: translateY(5px); opacity: 1; }
}

/* =========================================================
   Featured section — editorial 2×2 grid of selected works.
   Sits below the hero on the homepage.
   ========================================================= */
.featured {
  position: relative;
  padding: var(--s7) var(--s5) var(--s7);
  background: var(--page-bg);
  color: var(--ink);
}

.featured-intro {
  max-width: 1280px;
  margin: 0 auto var(--s6);
  padding: 0 var(--s5);   /* match .featured-grid horizontal padding */
}
.featured-eyebrow {
  display: block;
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  opacity: 0.55;
  margin-bottom: var(--s2);
}
.featured-heading {
  font-family: var(--ff-display);
  font-style: normal;
  font-weight: 700;
  font-stretch: 75%;
  font-variation-settings: 'wdth' 75;
  font-size: clamp(56px, 8vw, 128px);
  letter-spacing: -0.02em;
  line-height: 0.92;
  color: var(--ink);
  text-transform: uppercase;
}
.featured-heading em {
  font-family: var(--ff-italic);
  font-style: italic;
  font-weight: 400;
  font-stretch: normal;
  font-variation-settings: normal;
  text-transform: none;
}
.featured-sub {
  font-family: var(--ff-mono);
  font-size: 14px;
  line-height: 1.6;
  max-width: 42ch;
  opacity: 0.7;
  align-self: end;
  padding-bottom: var(--s1);
}

/* Editorial layout — left column (~50% width) holds the large image, right
   column (~35% width) is a stack: short blurb at top, smaller image below
   with 10vh of vertical space between them. justify-content: space-between
   creates the gap automatically. */
.featured-grid {
  display: grid;
  grid-template-columns: 52% 38%;
  justify-content: space-between;
  row-gap: 0;
  max-width: 1680px;
  margin: 0 auto var(--s0);
  padding: 0 var(--s3);
}

.featured-item {
  display: block;
  width: 100%;
}

.featured-large {
  grid-column: 1;
  grid-row: 1;
}

.featured-stack {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  margin-top: 14vh;        /* drops the right column so it never aligns with the left */
}

/* Third image — sits in left column, row 2, indented from the left edge.
   Wider than the secondary, and square (not portrait) for visual contrast. */
.featured-tertiary {
  grid-column: 1;
  grid-row: 2;
  width: 73%;
  margin-left: 21%;
  margin-top: -42vh;
}
.featured-tertiary .featured-media {
  aspect-ratio: 1 / 1;     /* square — overrides the default 5:7 portrait */
}

.featured-blurb {
  font-family: var(--ff-mono);
  font-size: clamp(14px, 1.2vw, 17px);
  line-height: 1.55;
  color: var(--ink);
  opacity: 0.85;
  padding-top: 8vh;   /* offset down so it's not flush with the left image top */
}

.featured-secondary {
  margin-top: 3vh;
}

/* Floating CTA inside the right column stack — styled like the blurb text:
   mono, ink, understated; sits below the secondary image. */
.featured-cta-float {
  display: inline-block;
  align-self: flex-start;
  margin-top: var(--s8);   /* 192px — clears the secondary image's downward drift (+180) */
  font-family: var(--ff-mono);
  font-size: 12px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 4px;
  transition: letter-spacing 250ms ease, opacity 200ms ease;
}
.featured-cta-float:hover {
  letter-spacing: 0.32em;
  opacity: 0.7;
}

@media (max-width: 900px) {
  /* Mobile featured layout — text at top, then 2-column images, then
     secondary + CTA below. The .featured-stack uses display: contents so its
     children (eyebrow, blurb, secondary, CTA) become direct grid items and can
     be placed independently. */
  .featured {
    padding-left: var(--s5);
    padding-right: var(--s5);
  }
  .featured-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: var(--s1);
    row-gap: var(--s2);
    padding-left: 0;
    padding-right: 0;
  }
  /* Stack becomes structurally invisible — children flow up to .featured-grid. */
  .featured-stack {
    display: contents;
  }
  /* Row 1: eyebrow (full width). Row 2: blurb (full width). */
  .featured-eyebrow {
    grid-column: 1 / -1;
    grid-row: 1;
  }
  .featured-blurb {
    grid-column: 1 / -1;
    grid-row: 2;
    padding-top: 0;
  }
  /* Row 3: large image full width. Row 4: tertiary + secondary in 2 columns. */
  .featured-large {
    grid-column: 1 / -1;
    grid-row: 3;
    width: 100%;
    margin: 0;
  }
  .featured-secondary {
    grid-column: 1;
    grid-row: 4;
    margin: var(--s3) 0 0;
  }
  .featured-tertiary {
    grid-column: 2;
    grid-row: 4;
    width: 100%;
    margin: var(--s3) 0 0;
  }
  /* Row 5: CTA right-aligned under the 2-col image row. */
  .featured-cta-float {
    grid-column: 1 / -1;
    grid-row: 5;
    margin-top: var(--s4);
    justify-self: end;
  }

  /* Hero — relax min-height, reduce top padding. Title font-size bumped so
     the bottom line "more" still bleeds past the fold like it does on desktop. */
  .hero {
    min-height: 0;
    height: 100svh;
  }
  .hero-content {
    padding: 90px var(--s2) 0;
  }
  .hero-top { max-width: none; }
  .hero-title {
    font-size: clamp(140px, 46vw, 360px);
    line-height: 0.6;
    letter-spacing: -0.02em;
    margin-bottom: -12px;
  }
  /* Site header overlay — tighter padding + smaller text on tablet. */
  .site-header-overlay {
    padding: var(--s1) var(--s2);
  }
  .header-location,
  .header-menu-btn {
    font-size: 10px;
    letter-spacing: 0.18em;
  }

  /* Callout (hiring section) — less padding so content fills the screen. */
  .callout { padding: var(--s5) var(--s3); }
  .callout-actions { gap: var(--s2); }

  /* Gallery + info-grid + skills-grid responsive overrides live further down
     (after their base rules) so the cascade wins. Here we just keep what's
     not affected. */
  .social-block { display: none; }
}

@media (max-width: 480px) {
  /* Very narrow phones — tighter horizontal padding and a single column for
     everything so the two images don't compress to unreadable tiny squares. */
  .featured {
    padding-left: var(--s2);
    padding-right: var(--s2);
  }
  .featured-grid { grid-template-columns: 1fr; }
  .featured-eyebrow,
  .featured-blurb,
  .featured-large,
  .featured-tertiary,
  .featured-secondary,
  .featured-cta-float {
    grid-column: 1;
  }
  .featured-eyebrow    { grid-row: 1; }
  .featured-blurb      { grid-row: 2; }
  .featured-large      { grid-row: 3; }
  .featured-tertiary   { grid-row: 4; }
  .featured-secondary  { grid-row: 5; }
  .featured-cta-float  { grid-row: 6; }

  /* Header on actual mobile — drop the name slot entirely and re-do the grid
     as 2 columns so the logo sits flush left and Menu + LinkedIn flush right. */
  .site-header-overlay {
    grid-template-columns: auto 1fr;
  }
  .header-slot-left { display: none; }
  .header-slot-center { justify-self: start; }

}
/* Image container — fixed 5:7 portrait aspect, overflow hidden so the image
   inside can be larger than the container (room for parallax translation). */
.featured-media {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 5 / 7;
  background: var(--ink);
  border-bottom: none;
}
.featured-media:hover { opacity: 1; }
.featured-media img {
  position: absolute;
  top: -15%;
  left: 0;
  width: 100%;
  height: 130%;        /* 30% taller than container — gives parallax room */
  object-fit: cover;
  display: block;
  will-change: transform;
}

/* Caption below the image, not overlaid. */
.featured-label {
  margin-top: var(--s2);
  color: var(--ink);
}
.featured-num {
  display: block;
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  opacity: 0.5;
  margin-bottom: var(--s0);
}
.featured-title {
  font-family: var(--ff-italic);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(22px, 2.2vw, 30px);
  letter-spacing: -0.01em;
  line-height: 1.05;
  margin-bottom: 4px;
}
.featured-medium {
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0.55;
}

/* =========================================================
   Callout sections — Fulcrum + Hiring. Full-bleed, generous padding,
   single-column content, big display heading + mono body + mono CTA.
   ========================================================= */
.callout {
  padding: var(--s7) var(--s5);
  position: relative;
}
.callout-inner {
  max-width: 960px;
  margin: 0 auto;
  text-align: center;
}
.callout-eyebrow {
  display: block;
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  opacity: 0.55;
  margin-bottom: var(--s2);
}
.callout-heading {
  font-family: var(--ff-display);
  font-stretch: 75%;
  font-variation-settings: 'wdth' 75;
  font-style: normal;
  font-weight: 700;
  font-size: clamp(56px, 8vw, 128px);
  letter-spacing: -0.02em;
  line-height: 0.92;
  margin-bottom: var(--s3);
  text-transform: uppercase;
}
.callout-heading em {
  font-family: var(--ff-italic);
  font-style: italic;
  font-weight: 400;
  font-stretch: normal;
  font-variation-settings: normal;
  text-transform: none;
}
.callout-body {
  font-family: var(--ff-mono);
  font-size: 17px;
  line-height: 1.6;
  max-width: 56ch;
  margin: 0 auto var(--s4); /* centered horizontally */
}
.callout-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--s4);
  margin-top: var(--s2);
}
.callout-cta {
  display: inline-block;
  font-family: var(--ff-mono);
  font-size: 12px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 4px;
  transition: letter-spacing 250ms ease, opacity 200ms ease;
}
.callout-cta:hover {
  letter-spacing: 0.32em;
  opacity: 0.7;
}

/* Combined Fulcrum + Hiring callout — black background with mint as the
   highlight color on accents (italic emphasis, CTA underlines, hover state). */
.callout-hiring {
  background: var(--ink);
  color: var(--page-bg);
}
.callout-hiring .callout-eyebrow {
  opacity: 0.6;
}
.callout-hiring .callout-heading em {
  color: #85FFCC;
}
.callout-hiring .callout-cta {
  border-bottom-color: #85FFCC;
}
.callout-hiring .callout-cta:hover {
  color: #85FFCC;
  opacity: 1;
}

/* =========================================================
   Mobile / narrow viewport responsiveness
   ========================================================= */
.featured-foot {
  max-width: 1320px;
  margin: 0 auto;
  display: flex;
  justify-content: flex-end;
}
.featured-cta {
  font-family: var(--ff-mono);
  font-size: 12px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 4px;
  transition: opacity 200ms ease, letter-spacing 250ms ease;
}
.featured-cta:hover {
  opacity: 0.6;
  letter-spacing: 0.32em;
}

/* =========================================================
   Gallery — three columns, edge-to-edge, no gaps. CSS columns preserves each
   image's natural aspect ratio so the grid feels organic (masonry-style)
   rather than cropping to uniform tiles.
   ========================================================= */
.gallery {
  /* Full-width masonry — extends edge-to-edge. Top padding clears the
     overlay header (logo + Roma/NY + Menu/LinkedIn). */
  background: transparent;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 140px var(--s3) 80px;
  column-count: 3;
  column-gap: 0;
}
/* Artist statement card embedded in the gallery masonry. */
/* Section label — small caps, tracked, editorial-style. */
.section-label {
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  margin: 0 0 var(--s2);
  padding: var(--s1) var(--s2);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--ink-muted);
  opacity: 0.6;
}

.gallery-statement {
  margin: 0;
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  page-break-inside: avoid;
  padding: var(--s3) var(--s2);
  background: var(--ink);
}
.gallery-statement p {
  font-size: 36px;
  line-height: 1.4;
  font-style: italic;
  font-weight: 400;
  color: var(--page-bg);
  text-wrap: balance;
}
.gallery-figure {
  position: relative;
  margin: 0;
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  page-break-inside: avoid;
  overflow: hidden;
  isolation: isolate;
  /* Hidden initially so each figure can fade in sequentially after the intro. */
  opacity: 0;
}
.gallery-figure img {
  width: 100%;
  height: auto;
  display: block;
  will-change: transform;
  /* No transition: transform — GSAP drives this on every scroll frame,
     and a CSS transition would lag and fight the scroll-driven updates. */
}

/* Numeric badge — small editorial cue at the top-left of each piece. Slides
   in along with the caption on hover. */
.gallery-number {
  position: absolute;
  top: var(--s1);
  left: var(--s1);
  z-index: 2;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.22em;
  color: var(--page-bg);
  mix-blend-mode: difference;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 300ms ease, transform 400ms cubic-bezier(0.2, 0.7, 0.2, 1);
  pointer-events: none;
}

/* Hover state: reveal the number badge only. */
.gallery-figure:hover .gallery-number {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================================
   Info page — same 3-column masonry layout as the home page gallery.
   The heading and the "Let's Chat" contact section break out as full-width
   spans; bio paragraphs and images intermix in the masonry columns.
   ========================================================= */
.info-page {
  width: 100%;
  position: relative;     /* anchor for .site-nav */
  min-height: 100svh;
}

.info-grid {
  width: 80%;
  max-width: 800px;
  margin: 0 auto;
  padding: 120px 0 80px;   /* top clears the absolute-positioned overlay header */
  column-count: 3;
  column-gap: 0;
}

.info-grid > * {
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  page-break-inside: avoid;
  margin: 0;
}

/* Headline & contact span all columns. */
.info-headline,
.info-contact {
  column-span: all;
  -webkit-column-span: all;
}

.info-headline {
  margin-bottom: var(--s5);
}
.info-heading {
  font-size: clamp(56px, 9vw, 110px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 0.95;
  color: var(--ink);
}
.info-sub {
  font-size: clamp(22px, 2.4vw, 32px);
  font-weight: 400;
  font-style: italic;
  color: var(--ink-muted);
  margin-top: var(--s1);
}

/* Masonry items — text blocks get internal padding so they breathe; images sit flush. */
.info-item-text {
  padding: var(--s2);
}
.info-item-text p {
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink);
}
.info-item-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* What I Do — full-width breakout. Now leads the info page, so it sits flush
   with the top of the grid rather than reading as a closing section. */
.info-skills {
  column-span: all;
  -webkit-column-span: all;
}
.skills-heading {
  font-family: var(--ff-display);
  font-stretch: 75%;
  font-variation-settings: 'wdth' 75;
  font-size: clamp(64px, 9vw, 144px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: var(--s2);
  color: var(--ink);
  line-height: 1.05;
  text-transform: uppercase;
}
.skills-heading a {
  font-style: italic;
  font-family: var(--ff-italic);
  font-stretch: normal;
  font-variation-settings: normal;
  font-weight: 400;
  text-transform: none;
}
.skills-heading a {
  color: inherit;
  border-bottom-color: rgba(17, 16, 16, 0.3);
}
.skills-sub {
  font-size: clamp(18px, 1.8vw, 22px);
  line-height: 1.5;
  color: var(--ink-muted);
  margin-bottom: var(--s6);
  max-width: 60ch;
}
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s4);
}
.skill-name {
  font-family: var(--ff-display);
  font-stretch: 75%;
  font-variation-settings: 'wdth' 75;
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.1;
  margin-bottom: var(--s1);
  color: var(--ink);
  text-transform: uppercase;
}
.skill-desc {
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-muted);
  max-width: 22em;
}

/* Photo slider — full-width breakout in the info masonry. Both photos are
   1200×900 so aspect-ratio 4/3 prevents layout shift. JS cycles them. */
.info-item-slider {
  column-span: all;
  -webkit-column-span: all;
  margin: 0 0 var(--s6) 0;
}
.slider {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.slider-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 900ms ease;
}
.slider-img.is-active {
  opacity: 1;
}
/* Soft radial scrim pooled in the bottom-left so the caption stays legible
   over both photos without imposing a hard bar across the image. */
.slider::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 70%;
  height: 70%;
  background: radial-gradient(ellipse at bottom left,
    rgba(0, 0, 0, 0.55) 0%,
    rgba(0, 0, 0, 0.25) 35%,
    rgba(0, 0, 0, 0) 70%);
  pointer-events: none;
  z-index: 1;
}
/* Museum-label caption — overlaid on the slider in the bottom-left. */
.slider-caption {
  position: absolute;
  left: var(--s3);
  bottom: var(--s3);
  max-width: 28ch;
  margin: 0;
  color: #fff;
  z-index: 2;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.45);
}
.slider-caption p {
  font-size: clamp(18px, 2vw, 26px);
  line-height: 1.3;
  font-style: italic;
  font-weight: 500;
  margin: 0 0 var(--s1) 0;
  text-wrap: balance;
}
.slider-caption cite {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-style: normal;
  font-weight: 500;
  opacity: 0.9;
  display: block;
}

.info-contact {
  margin-top: var(--s5);
  padding: var(--s4) 0 0;
  border-top: 1px solid rgba(17, 16, 16, 0.15);
}
.contact-heading {
  font-family: var(--ff-display);
  font-stretch: 75%;
  font-variation-settings: 'wdth' 75;
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: var(--s2);
  text-transform: uppercase;
}
.contact-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s4);
  font-size: clamp(13px, 1.1vw, 16px);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--ink-muted);
}
.contact-row a {
  color: var(--ink);
  border-bottom-color: rgba(17, 16, 16, 0.25);
}

/* =========================================================
   Bio / footer — two-column layout matching the live site: name + tagline
   on the left, copyright + year on the right.
   ========================================================= */
.bio {
  background: transparent;
  color: var(--ink);
  width: 100%;
  padding: 30px var(--s3) 20px;
}
.bio-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: var(--s4);
  align-items: center;
}

/* Language tabs — sit in the footer center, between the Menu trigger and
   the copyright. Current language is bold; clicking anywhere on the group
   toggles to the other language. */
.lang-tabs {
  font-family: var(--ff-mono);
  font-size: clamp(12px, 1vw, 15px);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  opacity: 0.7;
  display: flex;
  gap: 6px;
  justify-content: center;
  align-items: baseline;
  text-decoration: none;
  border-bottom: 0;
  padding-bottom: 0;
  transition: opacity 200ms ease;
}
a.lang-tabs:hover {
  opacity: 1;
}
.lang-tab {
  color: inherit;
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
}
.lang-tab.is-active {
  font-weight: 700;
  border-bottom-color: currentColor;
}
.bio-menu-trigger {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
  font-size: clamp(12px, 1vw, 15px);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  opacity: 0.7;
  text-align: left;
  justify-self: start;
  transition: opacity 200ms ease;
}
.bio-menu-trigger:hover {
  opacity: 1;
}
.bio-copyright {
  font-size: clamp(12px, 1vw, 15px);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  opacity: 0.7;
  text-align: right;
}

/* =========================================================
   Gallery + info-grid + skills-grid responsive collapse. Placed at the end
   of the file so the cascade beats the base column-count: 3 rules and the
   skills-grid 3-column rule defined further up.
   ========================================================= */
@media (max-width: 900px) {
  .gallery {
    column-count: 2;
    padding-left: 0;
    padding-right: 0;
  }
  .info-grid { column-count: 2; }
  .skills-grid {
    grid-template-columns: 1fr;
    gap: var(--s3);
  }
  .skills-sub {
    margin-bottom: var(--s4);
  }
  /* Drop the description max-width when stacked — single-column layout
     already constrains line length to the container width. */
  .skill-desc {
    max-width: none;
  }
  /* Taller slider on mobile — 4:3 reads as cramped when the container is
     ~95vw. Portrait-leaning ratio gives the photo proper presence. */
  .slider {
    aspect-ratio: 4 / 5;
  }
}
@media (max-width: 480px) {
  .gallery { column-count: 1; }
  .info-grid { column-count: 1; }
}

/* =========================================================
   Reduced motion: skip the intro entirely — show gallery directly.
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  .intro { display: none; }
}
