/* =============================================================
   Winford — site styles. Single source of truth.
   Every section uses .container with --pad-x for consistent edges.
   ============================================================= */

:root {
  --bg-cream: rgb(248, 240, 221);
  --bg-dark: #0d0d0e;
  --bg-mid: #111112;
  --ink: #0d0d0e;
  --ink-soft: rgba(13, 13, 14, 0.72);
  --ink-faint: rgba(13, 13, 14, 0.55);
  --ink-line: rgba(13, 13, 14, 0.14);
  --cream-ink: #f0e8d5;
  --cream-soft: rgba(240, 232, 213, 0.72);
  --cream-faint: rgba(240, 232, 213, 0.40);
  --cream-line: rgba(240, 232, 213, 0.18);
  --font-sans: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  --font-serif: "Cormorant Garamond", "EB Garamond", Georgia, serif;
  /* PAD-X is THE only horizontal gutter token — every section uses it. */
  --pad-x: clamp(24px, 6vw, 96px);
  --max-w: 1440px;
  --section-pad: clamp(96px, 12vw, 200px);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html {
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
}
body {
  background: var(--bg-cream);
  color: var(--ink);
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
  max-width: 100%;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; background: none; border: none; color: inherit; padding: 0; }
ul { list-style: none; padding: 0; margin: 0; }
address { font-style: normal; }
h1, h2, h3, h4, h5, h6, p { margin: 0; }
h1, h2, h3, h4, h5, h6 { font-weight: 500; line-height: 1.05; letter-spacing: -0.025em; text-transform: lowercase; }
em { font-family: var(--font-serif); font-style: italic; font-weight: 400; }

/* ---- THE container ---- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}
.container-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(20px, 2.4vw, 36px);
}

/* ---- Section wrapper (vertical padding standard) ---- */
.section {
  padding-block: var(--section-pad);
}
.section-light { background: var(--bg-cream); color: var(--ink); }
.section-dark { background: var(--bg-dark); color: var(--cream-ink); }

/* ---- Typography ---- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 400;
}
.eyebrow::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}
.eyebrow.eyebrow-light { color: var(--cream-soft); }
.section-dark .eyebrow { color: var(--cream-soft); }

.h2 {
  font-size: clamp(40px, 5vw, 80px);
  max-width: 22ch;
  line-height: 1.04;
  font-weight: 400;
  letter-spacing: -0.04em;
}
.section-dark .h2 { color: var(--cream-ink); }

.lead {
  font-size: clamp(17px, 1.25vw, 21px);
  max-width: 58ch;
  color: rgba(13, 13, 14, 0.82);
  line-height: 1.55;
}
.lead.lead-light { color: rgba(240, 232, 213, 0.82); }
.section-dark .lead { color: rgba(240, 232, 213, 0.82); }

/* =============================================================
   BUTTON SYSTEM
   ============================================================= */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 14px 26px;
  border-radius: 999px;
  border: 1px solid currentColor;
  background: transparent;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: color 0.25s cubic-bezier(0.65,0,0.35,1) 0.1s, border-color 0.35s ease;
}
/* The fill that slides up on hover — gives every button a clear, identical reaction */
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: currentColor;
  border-radius: inherit;
  transform: translateY(101%);
  transition: transform 0.5s cubic-bezier(0.65,0,0.35,1);
  z-index: -1;
}
.btn:hover::before { transform: translateY(0); }
.btn > * { position: relative; z-index: 1; }
.btn::after {
  content: "";
  width: 14px; height: 14px;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14' fill='none'><path d='M1 7h12M8 2l5 5-5 5' stroke='black' stroke-width='1.2' stroke-linecap='round' stroke-linejoin='round'/></svg>") center / contain no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14' fill='none'><path d='M1 7h12M8 2l5 5-5 5' stroke='black' stroke-width='1.2' stroke-linecap='round' stroke-linejoin='round'/></svg>") center / contain no-repeat;
  transition: transform 0.45s cubic-bezier(0.65,0,0.35,1);
}
.btn:hover::after { transform: translateX(3px); }

/* SECONDARY: outline pill — fill slides up in ink, text flips to cream */
.btn-outline {
  border-color: rgba(13, 13, 14, 0.30);
  color: var(--ink);
}
.btn-outline::before { background: var(--ink); }
.btn-outline:hover {
  color: var(--cream-ink);
  border-color: var(--ink);
}
/* LIGHT VARIANT: same shape, but inverted palette (used on dark backgrounds) */
.btn-outline.btn-light {
  border-color: rgba(240, 232, 213, 0.40);
  color: var(--cream-ink);
}
.btn-outline.btn-light::before { background: var(--cream-ink); }
.btn-outline.btn-light:hover {
  color: var(--ink);
  border-color: var(--cream-ink);
}
/* PRIMARY: filled, inverts on hover */
.btn-primary {
  background: var(--cream-ink);
  border-color: var(--cream-ink);
  color: var(--ink);
}
.btn-primary::before { background: var(--bg-dark); }
.btn-primary:hover {
  color: var(--cream-ink);
  border-color: var(--cream-ink);
}

/* =============================================================
   HEADER — 3-zone grid (menu icon · brand · CTA flip button)
   mix-blend-mode keeps the chrome readable on any background.
   ============================================================= */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 65;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  padding: 20px var(--pad-x);
  pointer-events: none;
  mix-blend-mode: difference;
  color: #f5f5f5;
  transition: color 0.4s ease;
}
.site-header > * { pointer-events: auto; }
.site-header .brand {
  justify-self: center;
  font-size: clamp(22px, 1.8vw, 30px);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: inherit;
  text-decoration: none;
}
.site-header .brand sup {
  font-size: 0.45em;
  vertical-align: baseline;
  position: relative;
  top: -1.05em;       /* lifts the ® so its top aligns with the ascender top */
  letter-spacing: 0;
  margin-left: 0.06em;
}

/* On the home hero: dark ink against the bright sunset photo — better
   contrast and matches the brand's section-dark colour. */
body.is-on-hero .site-header {
  mix-blend-mode: normal;
  color: var(--ink);
}
/* Menu open: drop blend so the X / brand / CTA are readable on cream. */
body.menu-is-open .site-header {
  mix-blend-mode: normal;
  color: var(--ink);
}

/* Menu toggle — icon-only (two bars → X when open) */
.nav-toggle {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  background: transparent;
  color: inherit;
  cursor: pointer;
  border-radius: 999px;
}
.nav-toggle-icon {
  position: relative;
  display: inline-block;
  width: 24px;
  height: 14px;
}
.nav-toggle-icon span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 1.5px;
  background: currentColor;
  border-radius: 2px;
  transform-origin: center center;
  /* Closing: un-rotate first, then separate vertically. */
  transition:
    width 0.45s cubic-bezier(0.65, 0, 0.35, 1),
    transform 0.25s cubic-bezier(0.65, 0, 0.35, 1) 0s,
    top 0.25s cubic-bezier(0.65, 0, 0.35, 1) 0.25s;
}
.nav-toggle-icon span:first-child { top: 3px; }
.nav-toggle-icon span:last-child  { top: 9px; }
/* Hover only when the menu is closed and the device truly supports hover —
   prevents sticky hover on touch from bleeding into the X state. */
@media (hover: hover) {
  .nav-toggle:not(.is-active):hover .nav-toggle-icon span:first-child { width: 100%; }
  .nav-toggle:not(.is-active):hover .nav-toggle-icon span:last-child  { width: 60%; }
}
[data-menu-toggle].is-active .nav-toggle-icon span:first-child,
[data-menu-toggle].is-active .nav-toggle-icon span:last-child {
  top: 6px;
  width: 100%;
  transform-origin: center center;
  /* Opening: align vertically first, then rotate into X. */
  transition:
    width 0.45s cubic-bezier(0.65, 0, 0.35, 1),
    transform 0.25s cubic-bezier(0.65, 0, 0.35, 1) 0.25s,
    top 0.25s cubic-bezier(0.65, 0, 0.35, 1) 0s;
}
[data-menu-toggle].is-active .nav-toggle-icon span:first-child { transform: rotate(45deg); }
[data-menu-toggle].is-active .nav-toggle-icon span:last-child  { transform: rotate(-45deg); }

/* Flip button — text rolls up, arrow rolls down on hover.
   Default style: outline pill that inherits color from context. */
.btn-flip {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 44px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, currentColor 55%, transparent);
  background: transparent;
  color: inherit;
  font-family: var(--font-sans);
  font-size: 14px;
  letter-spacing: -0.04em;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.3s ease, background 0.3s ease, color 0.3s ease;
}
.btn-flip:hover { border-color: currentColor; }
/* Header CTA sits in the right grid cell */
.site-header .btn-flip { justify-self: end; }

/* FILLED — cream pill on dark, ink pill on light. */
.btn-flip--filled {
  background: var(--cream-ink);
  border-color: var(--cream-ink);
  color: var(--ink);
}
.btn-flip--filled:hover {
  background: var(--cream-ink);
  border-color: var(--cream-ink);
}
.btn-flip--filled-dark {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--cream-ink);
}
.btn-flip--filled-dark:hover {
  background: var(--ink);
  border-color: var(--ink);
}

/* OUTLINE — used on light backgrounds. */
.btn-flip--outline {
  background: transparent;
  border-color: rgba(13, 13, 14, 0.30);
  color: var(--ink);
}
.btn-flip--outline:hover { border-color: var(--ink); }

/* OUTLINE LIGHT — used on dark backgrounds. */
.btn-flip--outline-light {
  background: transparent;
  border-color: rgba(240, 232, 213, 0.40);
  color: var(--cream-ink);
}
.btn-flip--outline-light:hover { border-color: var(--cream-ink); }
.btn-flip-label {
  position: relative;
  display: inline-block;
  height: 1em;
  line-height: 1;
  overflow: hidden;
}
.btn-flip-label > span {
  display: block;
  transition: transform 0.55s cubic-bezier(0.65,0,0.35,1);
}
.btn-flip-label > span:last-child {
  position: absolute;
  inset: 0;
  transform: translateY(110%);
}
.btn-flip:hover .btn-flip-label > span:first-child { transform: translateY(-110%); }
.btn-flip:hover .btn-flip-label > span:last-child  { transform: translateY(0); }

/* Reusable text-only flip — drop the same .btn-flip-label structure inside any
   <a class="link-flip"> and the hover fires the same vertical-slide animation. */
.link-flip { display: inline-block; vertical-align: top; }
.link-flip .btn-flip-label { vertical-align: bottom; }
.link-flip:hover .btn-flip-label > span:first-child { transform: translateY(-110%); }
.link-flip:hover .btn-flip-label > span:last-child  { transform: translateY(0); }

.btn-flip-arrow {
  position: relative;
  display: inline-block;
  width: 14px;
  height: 14px;
  overflow: hidden;
  flex-shrink: 0;
}
.btn-flip-arrow svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  transition: transform 0.55s cubic-bezier(0.65,0,0.35,1);
}
.btn-flip-arrow svg:last-child {
  transform: translateY(-110%);
}
.btn-flip:hover .btn-flip-arrow svg:first-child { transform: translateY(110%); }
.btn-flip:hover .btn-flip-arrow svg:last-child  { transform: translateY(0); }

@media (max-width: 560px) {
  .site-header { grid-template-columns: auto 1fr auto; padding: 16px 20px; }
  .btn-flip { padding: 0 16px; font-size: 13px; }
}

/* =============================================================
   HERO — Figma 116:107
   Full-bleed Tuscany image, big "Winford" SVG wordmark bottom-left,
   © + "Studio" column bottom-right.
   ============================================================= */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  color: #fff;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 45px 24px;
  box-sizing: border-box;
}
.hero-bg {
  position: absolute;
  left: 0;
  right: 0;
  top: -30%;
  width: 100%;
  height: 160%;
  object-fit: cover;
  z-index: -2;
  will-change: transform;
}
.hero-veil {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.10) 0%, rgba(0,0,0,0.0) 30%, rgba(0,0,0,0.0) 70%, rgba(0,0,0,0.25) 100%);
  z-index: -1;
}
.hero-overlay {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: clamp(16px, 1.6vw, 24px);
  width: 100%;
}
.hero-wordmark-svg {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  line-height: 0;
  /* Aspect ratio of the source SVG so the masked span preserves shape. */
  aspect-ratio: 1194.69 / 294.288;
  display: block;
}
/* The wordmark's SVG is hard-coded white; we mask a cream-coloured layer
   with it so the brand cream takes over while keeping the exact glyph
   geometry. */
.hero-wordmark-mask {
  display: block;
  width: 100%;
  height: 100%;
  background-color: var(--cream-ink);
  -webkit-mask-image: url('/images/figma/winford-wordmark.svg');
  mask-image: url('/images/figma/winford-wordmark.svg');
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
}
.hero-mark-col {
  flex: 0 0 auto;
  width: clamp(120px, 12.7vw, 184px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
}
.hero-copyright {
  display: block;
  width: clamp(40px, 4.4vw, 63px);
  height: clamp(40px, 4.4vw, 63px);
  background-color: var(--cream-ink);
  -webkit-mask-image: url('/images/figma/copyright.svg');
  mask-image: url('/images/figma/copyright.svg');
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-position: center;
  mask-position: center;
}
/* Two ® placements: one inline (attached to the wordmark) used on mobile,
   one side (in the right column) used on desktop. We show one or the other
   based on viewport. */
.hero-copyright--inline { display: none; }
.hero-copyright--side { display: block; }

/* Text version of the wordmark — used on mobile so the © glyph can sit as
   a natural superscript right after "Winford" (the SVG mask can't carry an
   inline sup). Hidden on desktop where the mask drives the wordmark. */
.hero-wordmark-text {
  display: none;
  font-family: var(--font-sans);
  color: var(--cream-ink);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 0.9;
  white-space: nowrap;
  text-transform: none;
}

/* Hero entry: background image starts slightly zoomed in (scale 1.15) and
   eases down to scale 1 — controlled by GSAP in initHeroParallax. Text on
   top fades in sequentially once the zoom-out settles. */

.hero-wordmark-mask,
.hero-copyright,
.hero-studio {
  opacity: 0;
  will-change: opacity;
}
/* Delays here account for the hero background zoom-out (~2.6s expo.out).
   Text starts coming in once the zoom is well underway. When the loader
   was skipped (return visits), drop the delays so it doesn't feel laggy. */
.hero-wordmark-mask.is-revealed {
  opacity: 1;
  transition: opacity 2.2s cubic-bezier(0.22, 1, 0.36, 1) 0.5s;
}
.hero-mark-col.is-revealed .hero-copyright,
.hero-mark-col.is-revealed .hero-studio {
  opacity: 1;
  transition: opacity 1.9s cubic-bezier(0.22, 1, 0.36, 1) 0.75s;
}
.hero.is-no-loader .hero-wordmark-mask.is-revealed {
  transition: opacity 1.2s cubic-bezier(0.22, 1, 0.36, 1) 0s;
}
.hero.is-no-loader .hero-mark-col.is-revealed .hero-copyright,
.hero.is-no-loader .hero-mark-col.is-revealed .hero-studio {
  transition: opacity 1.1s cubic-bezier(0.22, 1, 0.36, 1) 0.2s;
}
@media (prefers-reduced-motion: reduce) {
  .hero-wordmark-mask,
  .hero-copyright,
  .hero-studio { opacity: 1; }
}
.hero-wordmark-text sup {
  font-size: 0.18em;
  vertical-align: baseline;
  position: relative;
  top: -3.6em;
  letter-spacing: 0;
  margin-left: 0.04em;
}
.hero-studio {
  font-family: var(--font-sans);
  font-size: clamp(40px, 4.95vw, 71.5px);
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--cream-ink);
  font-weight: 400;
  text-transform: none;
}

@media (max-width: 1024px) {
  .hero {
    aspect-ratio: auto;
    min-height: 92vh;
    padding: 0;             /* absolute children own the insets */
  }
  /* Use absolute positioning explicitly so each element sits exactly where
     it should — flex justify-content kept yielding weird vertical centring
     because of the bg/overlay layering. */
  .hero-overlay {
    display: block;
    position: relative;
    width: 100%;
    height: 100%;
    padding: 0;
  }
  .hero-mark-col { display: contents; }
  /* Winford pegged to the bottom of the hero with a small inset, filling the
     viewport edge-to-edge ("Winford©" ≈ 3.8em wide → 24vw font max). */
  .hero-wordmark-svg {
    position: absolute;
    left: 0;
    right: 0;
    width: 100vw;
    bottom: clamp(16px, 4vw, 32px);
    height: auto;
    margin: 0;
    padding: 0;
    aspect-ratio: auto;
    line-height: 0.85;
    font-size: clamp(72px, 24vw, 200px);
    text-align: center;
    overflow: visible;
  }
  .hero-wordmark-mask { display: none; }
  .hero-wordmark-text { display: inline-block; }
  .hero-copyright--side,
  .hero-copyright--inline { display: none; }
  /* Studio is hidden on tablet/mobile — only Winford© appears in the hero. */
  .hero-studio { display: none; }
}

/* =============================================================
   MARQUEE BAND
   ============================================================= */
.marquee-band {
  position: relative;
  height: clamp(280px, 36vh, 480px);
  overflow: hidden;
  isolation: isolate;
}
@media (max-width: 1024px) {
  .marquee-band { height: clamp(180px, 22vh, 260px); }
}
@media (max-width: 560px) {
  .marquee-band { height: clamp(140px, 20vh, 200px); }
}
.marquee-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: -1;
}
.marquee {
  position: absolute;
  top: 50%;
  left: 0; right: 0;
  transform: translateY(-50%);
  overflow: hidden;
  white-space: nowrap;
  padding-block: 0.4em;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: inline-flex;
  animation: marquee 95s linear infinite;
  will-change: transform;
}
.marquee-track span {
  display: inline-block;
  font-size: clamp(28px, 5vw, 88px);
  font-weight: 300;
  letter-spacing: -0.015em;
  color: rgba(240, 232, 213, 0.94);
  line-height: 1.4;
  text-shadow: 0 1px 24px rgba(0, 0, 0, 0.4);
}
@keyframes marquee {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
}

/* =============================================================
   ABOUT — Figma 116:8
   Cream background, two stacked blocks: top headline statement,
   bottom row with secondary paragraph + pill on the left and a
   large supporting photo on the right.
   ============================================================= */
.about-section {
  background: #f6efde;
  color: #191919;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: clamp(48px, 6vw, 78px);
  /* Equal vertical padding gives the same top margin (above "about.") and
     bottom margin (below the text/button column). */
  padding: clamp(64px, 7vw, 96px) clamp(32px, 5vw, 56px);
  min-height: 100vh;
  box-sizing: border-box;
}
.about-top {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 1600px;
}
.about-eyebrow {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1;
  color: #191919;
  letter-spacing: 0;
  text-transform: lowercase;
  margin: 0;
}
.about-headline {
  font-family: var(--font-sans);
  font-size: clamp(22px, 2.4vw, 40px);
  line-height: 1.22;
  letter-spacing: -0.03em;
  color: #191919;
  font-weight: 400;
  margin: 0;
  text-transform: none;
}
.about-headline .reveal-word {
  display: inline-block;
  color: #191919;
  opacity: 0.15;
  will-change: opacity;
}
@media (min-width: 1600px) {
  .about-headline {
    font-size: 44px;
  }
}
.about-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: clamp(32px, 5vw, 64px);
  width: 100%;
}
.about-bottom-text {
  flex: 0 0 auto;
  width: 433px;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  gap: clamp(20px, 1.6vw, 32px);
}
.about-bottom-text p {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  color: #191919;
  margin: 0;
}
.about-cta {
  align-self: flex-start;
  margin-top: 0;
  display: inline-flex !important;
  opacity: 1 !important;
  visibility: visible !important;
}
.about-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  padding: 8px 24px;
  border: 1px solid #191919;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 14px;
  color: #191919;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.25s ease, color 0.25s ease;
}
.about-pill:hover {
  background: #191919;
  color: #f6efde;
}
.about-photo {
  margin: 0;
  width: 50%;
  flex: 0 0 50%;
  background: transparent;
  overflow: hidden;
}
.about-photo img {
  width: 100%;
  height: auto;
  display: block;
  clip-path: inset(0 0 100% 0);
  -webkit-clip-path: inset(0 0 100% 0);
  transition: clip-path 3.5s cubic-bezier(0.22, 1, 0.36, 1) 0.1s,
              -webkit-clip-path 3.5s cubic-bezier(0.22, 1, 0.36, 1) 0.1s;
  will-change: clip-path;
}
.about-photo.is-revealed img {
  clip-path: inset(0 0 0 0);
  -webkit-clip-path: inset(0 0 0 0);
}
@media (prefers-reduced-motion: reduce) {
  .about-photo img {
    clip-path: none;
    -webkit-clip-path: none;
    transition: none;
  }
}

@media (max-width: 900px) {
  .about-bottom { flex-direction: column; align-items: stretch; }
  .about-bottom-text { width: 100%; }
  .about-photo { width: 100%; flex: 0 0 auto; }
}
@media (max-width: 1024px) {
  /* On iPad/tablet/mobile drop the 100vh + space-between gap (which pushed
     the bottom block way down). Section grows with content; gap is tight. */
  .about-section {
    min-height: 0;
    justify-content: flex-start;
    gap: clamp(28px, 4vw, 48px);
    padding-block: clamp(48px, 8vw, 72px);
  }
}

/* =============================================================
   SERVICES
   ============================================================= */
.services-section {
  background: var(--bg-dark);
  color: var(--cream-ink);
  padding-block: var(--section-pad);
  width: 100%;
}
.svc-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(20px, 2.4vw, 36px);
  padding-inline: var(--pad-x);
  margin-bottom: clamp(80px, 10vw, 160px);
}
.svc-list {
  position: relative;
  border-top: 1px solid var(--cream-line);
  isolation: isolate;
}
/* Sliding hover indicator — a single cream block that animates between rows
   instead of each row fading its own background in and out. */
.svc-indicator {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 0;
  background: var(--bg-cream);
  pointer-events: none;
  opacity: 0;
  z-index: 0;
  will-change: transform, height, opacity;
  /* Snappier between-item slide while keeping the ease in/out curve. */
  transition:
    transform 0.32s cubic-bezier(0.65, 0, 0.35, 1),
    height 0.32s cubic-bezier(0.65, 0, 0.35, 1),
    opacity 0.22s cubic-bezier(0.65, 0, 0.35, 1);
}
.svc-indicator.is-active { opacity: 1; }
.svc-row {
  position: relative;
  border-bottom: 1px solid var(--cream-line);
  cursor: default;
  z-index: 1;
}
.svc-row-inner { position: relative; z-index: 1; }
/* The cream indicator covers the row's bottom border. Redraw a divider on
   top with a mid-grey + difference blend so it's *subtly* visible on both
   the dark section bg (becomes light grey) and on the cream indicator
   (becomes a soft dark) — no harsh inversion. */
.svc-row::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 1px;
  background: rgba(140, 140, 140, 0.55);
  mix-blend-mode: difference;
  pointer-events: none;
  z-index: 3;
}
.svc-row-inner {
  position: relative;
  display: flex;
  align-items: center;
  min-height: clamp(160px, 18vw, 280px);
  padding-inline: var(--pad-x);
}
.svc-title {
  font-size: clamp(40px, 5.5vw, 96px);
  line-height: 1.05;
  letter-spacing: -0.04em;
  font-weight: 300;
  color: var(--cream-soft);
  margin: 0;
  padding-block: clamp(32px, 4vw, 64px);
  transition: color 0.25s cubic-bezier(0.65, 0, 0.35, 1);
  white-space: nowrap;
}
.svc-body {
  position: absolute;
  top: 50%;
  right: var(--pad-x);
  width: clamp(280px, 38vw, 480px);
  transform: translateY(-50%);
  opacity: 0;
  transition: opacity 0.28s cubic-bezier(0.65, 0, 0.35, 1) 0.05s;
  color: var(--ink);
}
.svc-body p {
  font-size: clamp(15px, 1.05vw, 18px);
  line-height: 1.55;
  margin: 0 0 clamp(16px, 1.8vw, 24px);
  color: var(--ink);
}
.svc-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
}
.svc-tags li {
  font-size: 12px;
  letter-spacing: 0.04em;
  padding: 6px 12px;
  border: 1px solid rgba(13, 13, 14, 0.22);
  border-radius: 999px;
  white-space: nowrap;
  color: var(--ink);
}
/* Background handled by the moving .svc-indicator on desktop. Scope hover
   styles to hover-capable devices so the `:hover` state doesn't get stuck on
   touch and leave the title invisible (dark text on dark bg). */
@media (hover: hover) {
  .svc-row:hover .svc-title { color: var(--ink); transition-delay: 0s; }
  .svc-row:hover .svc-body { opacity: 1; }
}

@media (max-width: 900px) {
  /* Mobile/tablet: rows are collapsed by default and expand on tap. JS adds
     .is-open to the tapped row; the body's max-height + opacity animate. */
  .svc-row-inner {
    flex-direction: column;
    align-items: flex-start;
    min-height: 0;
    padding-block: 0;
  }
  .svc-title {
    padding-block: clamp(28px, 6vw, 44px);
  }
  .svc-body {
    position: static;
    transform: none;
    width: auto;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    padding-bottom: 0;
    transition:
      max-height 0.55s cubic-bezier(0.65, 0, 0.35, 1),
      opacity 0.3s cubic-bezier(0.65, 0, 0.35, 1) 0.1s,
      padding-bottom 0.55s cubic-bezier(0.65, 0, 0.35, 1);
  }
  .svc-row.is-open .svc-body {
    opacity: 1;
    max-height: 1200px;       /* enough to fit description + tags wrap on narrow viewports */
    padding-bottom: clamp(24px, 4vw, 40px);
  }
  /* The open row gets a cream background directly (no indicator on mobile),
     covering the whole expanded area — title + body. Smooth transition keeps
     it visually in sync with the body's expand animation. */
  .svc-row {
    background-color: transparent;
    transition: background-color 0.35s cubic-bezier(0.65, 0, 0.35, 1);
  }
  .svc-row.is-open { background-color: var(--bg-cream); }
  .svc-row.is-open .svc-title { color: var(--ink); }
  /* Hide the desktop indicator entirely on mobile in case it sneaks in. */
  .svc-indicator { display: none; }
}

/* =============================================================
   PROJECT COLLECTION — Figma 116:160 + Olivier Larose perspective
   Dark section, header on top, then 3 sticky cards that scale +
   rotate as the next one scrolls in over them.
   ============================================================= */
.proj-section {
  background: var(--bg-dark);
  color: #f6efde;
  padding: 116px 56px 0;
  perspective: 1200px;
}
.proj-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: clamp(32px, 5vw, 96px);
  margin-bottom: 49px;
  width: 100%;
}
.proj-title-block {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.proj-eyebrow {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1;
  color: #f6efde;
  margin: 0;
  text-transform: none;
  letter-spacing: 0;
}
.proj-h2 {
  font-family: var(--font-sans);
  font-size: clamp(40px, 5vw, 80px);
  line-height: 1.04;
  color: #f6efde;
  margin: 0;
  font-weight: 400;
  letter-spacing: -0.04em;
  text-transform: none;
  white-space: nowrap;
}
.proj-intro {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.45;
  color: #f6efde;
  max-width: 338px;
  margin: 0;
}

.proj-stack {
  display: flex;
  flex-direction: column;
}
.proj-card {
  position: sticky;
  top: 0;
  display: block;
  width: 100%;
  height: 100vh;
  min-height: 540px;
  color: #f6efde;
  text-decoration: none;
  overflow: hidden;
  isolation: isolate;
  will-change: transform, opacity;
  transform-origin: center top;
  background: #282828;
}
.proj-card:nth-child(1) { z-index: 1; }
.proj-card:nth-child(2) { z-index: 2; }
.proj-card:nth-child(3) { z-index: 3; }
.proj-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: -2;
  transition: transform 1.1s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}
.proj-card:hover .proj-bg { transform: scale(1.04); }
.proj-card::before {
  content: "";
  position: absolute; inset: 0;
  /* Darker veil: stronger at top (where title/coords sit) and at bottom (CTA),
     plus a low base tint so light photos don't wash out the cream text. */
  background:
    linear-gradient(180deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.18) 35%, rgba(0,0,0,0.15) 65%, rgba(0,0,0,0.55) 100%),
    rgba(0,0,0,0.12);
  z-index: -1;
}
.proj-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 44px 32px 0;
  gap: 24px;
  box-sizing: border-box;
}
.proj-coords {
  font-family: var(--font-sans);
  font-size: clamp(16px, 1.6vw, 24px);
  color: #f6efde;
  margin: 0;
  flex: 0 0 auto;
  width: 50%;
  max-width: 662px;
}
.proj-meta {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 32px;
  align-items: flex-start;
}
.proj-loc {
  font-family: var(--font-sans);
  font-size: clamp(16px, 1.6vw, 24px);
  color: #f6efde;
  margin: 0;
}
.proj-title {
  font-family: var(--font-sans);
  font-size: clamp(48px, 8vw, 104px);
  line-height: 0.95;
  letter-spacing: -0.04em;
  color: #f6efde;
  margin: 0;
  font-weight: 400;
  text-transform: none;
}
@media (max-width: 560px) {
  /* Smaller min so "perception" / "hallsberry" fit the column on narrow phones. */
  .proj-title { font-size: clamp(40px, 13vw, 64px); }
}
.proj-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 24px;
  border: 1px solid #f6efde;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 14px;
  color: #f6efde;
  white-space: nowrap;
  transition:
    background 0.55s cubic-bezier(0.65, 0, 0.35, 1),
    color 0.55s cubic-bezier(0.65, 0, 0.35, 1),
    border-color 0.55s cubic-bezier(0.65, 0, 0.35, 1);
}
.proj-card:hover .proj-cta {
  background: #f6efde;
  color: #191919;
}

/* Flip trigger from card hover (card is the actual <a>). */
.proj-card:hover .proj-cta-flip,
.project-card:hover .proj-cta-flip { border-color: currentColor; }
.proj-card:hover .proj-cta-flip .btn-flip-label > span:first-child,
.project-card:hover .proj-cta-flip .btn-flip-label > span:first-child { transform: translateY(-110%); }
.proj-card:hover .proj-cta-flip .btn-flip-label > span:last-child,
.project-card:hover .proj-cta-flip .btn-flip-label > span:last-child { transform: translateY(0); }
.proj-card:hover .proj-cta-flip .btn-flip-arrow svg:first-child,
.project-card:hover .proj-cta-flip .btn-flip-arrow svg:first-child { transform: translateY(110%); }
.proj-card:hover .proj-cta-flip .btn-flip-arrow svg:last-child,
.project-card:hover .proj-cta-flip .btn-flip-arrow svg:last-child { transform: translateY(0); }
@media (max-width: 900px) {
  .proj-section { padding: 80px 24px 0; }
  .proj-header { flex-direction: column; align-items: flex-start; gap: 32px; }
  .proj-card-inner { flex-direction: column; padding: 32px 24px 0; }
  .proj-coords { width: 100%; }
}

/* =============================================================
   IDEAS IN DEVELOPMENT — Figma 116:116
   Auto-marquee strip of varied-size photos with center-zoom +
   drag-to-scroll. Bottom foot wordmark "Winford © Studio".
   ============================================================= */
.ideas-section {
  background: var(--bg-cream);
  color: #191919;
  padding-top: clamp(80px, 10vw, 140px);
  display: flex;
  flex-direction: column;
  gap: clamp(72px, 9vw, 127px);
  align-items: center;
  /* `overflow: clip` clips overflowing content (scaled wordmark) without
     creating a scroll container, so descendant `position: sticky` still
     references the viewport (which `overflow: hidden` would break). */
  overflow: clip;
}
.ideas-header.heritage-header {
  padding-inline: var(--pad-x);
  margin-bottom: 0;
}

.ideas-marquee {
  position: relative;
  width: 100%;
  /* `overflow: clip` on the X axis still hides the duplicated children that
     extend horizontally past the viewport, but allows the Y axis to overflow
     so scaled images on hover can grow ABOVE the marquee bounds without
     getting cropped. */
  overflow-x: clip;
  overflow-y: visible;
  user-select: none;
  -webkit-user-select: none;
}
/* Hide native cursor on the marquee — the .ideas-drag-pill replaces it. */
.ideas-marquee,
.ideas-marquee * { cursor: none; }
@media (hover: none) {
  .ideas-marquee,
  .ideas-marquee * { cursor: auto; }
}
.ideas-track {
  display: flex;
  gap: clamp(56px, 7vw, 96px);
  align-items: flex-end;
  padding-inline: clamp(56px, 7vw, 96px);
  will-change: transform;
  animation: ideas-marquee 50s linear infinite;
}
.ideas-marquee.is-paused .ideas-track,
.ideas-marquee.is-dragging .ideas-track { animation-play-state: paused; }

@keyframes ideas-marquee {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .ideas-track { animation: none; }
}

.ideas-img {
  margin: 0;
  flex: 0 0 auto;
  background: transparent;
  width: clamp(280px, 28vw, 420px);
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  transform: scale(var(--zoom, 1)) scale(var(--hover, 1));
  transform-origin: bottom center;
  display: block;
  position: relative;     /* so z-index applies on hover */
}
.ideas-img:hover {
  --hover: 1.28;
  z-index: 5;
}
.ideas-img img {
  width: 100%;
  height: auto;
  display: block;
  pointer-events: none;
}

/* Drag pill — cursor follower that replaces the native cursor inside the marquee. */
.ideas-drag-pill {
  position: fixed;
  top: 0; left: 0;
  z-index: 70;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 38px;
  height: 72px;
  min-width: 168px;
  border-radius: 999px;
  background: rgba(25, 25, 25, 0.92);
  color: #f6efde;
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: none;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.6);
  transition: opacity 0.25s ease, transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform, opacity;
}
.ideas-drag-pill.is-visible {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}
.ideas-marquee.is-dragging ~ .ideas-drag-pill,
.ideas-marquee.is-dragging .ideas-drag-pill {
  transform: translate(-50%, -50%) scale(0.92);
}

.ideas-wordmark {
  width: 100%;
  display: grid;
  grid-template-columns: 50% 50%;
  align-items: end;
  padding-inline: 0;
  line-height: 0.9;
}
.ideas-word {
  font-family: var(--font-sans);
  font-size: clamp(56px, 11vw, 220px);
  letter-spacing: -0.04em;
  color: #191919;
  font-weight: 400;
  white-space: nowrap;
  text-transform: none;
}
.ideas-word-winford {
  grid-column: 1;
  padding-left: clamp(16px, 2vw, 32px);
  text-align: left;
}
.ideas-word-studio {
  grid-column: 2;
  padding-right: clamp(16px, 2vw, 32px);
  text-align: right;
}
.ideas-reg {
  font-size: 0.16em;
  vertical-align: top;
  margin-left: 0.05em;
  letter-spacing: 0;
}

@media (max-width: 700px) {
  .ideas-img { width: 220px; }
}
@media (min-width: 1440px) {
  .ideas-img { width: clamp(420px, 32vw, 520px); }
}
@media (min-width: 1920px) {
  .ideas-img { width: clamp(520px, 32vw, 620px); }
}

/* =============================================================
   HERITAGE — sticky wordmark stage + editorial grid (home)
   The wordmark is pinned to viewport center while the grid scrolls
   over it. GSAP scales the wordmark from 1 → ~1.8 across the scroll.
   ============================================================= */
.heritage-stage {
  position: relative;
  width: 100%;
  /* Tighter padding-top so the wordmark begins closer to the carousel, but
     still enough gap that the scaled wordmark doesn't overlap the marquee. */
  padding: 8vh var(--pad-x) clamp(80px, 10vw, 140px);
}
@media (max-width: 800px) {
  .heritage-stage { padding-top: 6vh; }
}
/* Sticky pin — natural-height element anchored to the viewport's vertical
   center while the stage is in view. Using a zero-flow-height wrapper means
   the sticky range = stage.height − ~0, so the wordmark stays pinned through
   the ENTIRE editorial scroll (not just for the 100vh of its own height). */
.heritage-wordmark-pin {
  position: sticky;
  top: 50vh;
  /* Break out of the stage's horizontal padding so each grid half is exactly
     50vw — required for the per-word scale-to-fit-half math to be exact at
     every viewport size. */
  width: 100vw;
  margin-left: calc(-1 * var(--pad-x));
  height: 0;
  z-index: 1;
  pointer-events: none;
  overflow: visible;
  display: flex;
  align-items: center;
  justify-content: center;
}
.heritage-wordmark-pin .ideas-wordmark {
  transform: translateY(-50%);  /* center wordmark on the sticky anchor */
}
/* Each word scales from its outer edge so they grow toward the viewport center
   (rather than away from it, which is what `transform-origin: center` does on
   the grid as a whole). NOTE: no `will-change: transform` — that promotes the
   element to a GPU layer, which rasterises the text and produces pixelated
   scaling. Plain transform lets the browser re-render the vector glyphs at
   each scale value, keeping the type crisp. */
.heritage-wordmark-pin .ideas-word-winford {
  transform-origin: left center;
  padding-left: 0;
}
.heritage-wordmark-pin .ideas-word-studio {
  transform-origin: right center;
  padding-right: 0;
}
.heritage-stage > .heritage-editorial-grid {
  position: relative;
  z-index: 2;
  /* Offset the grid down so the wordmark is visible alone before grid images
     scroll up over it. ~40vh keeps the first row below viewport center when
     the pin first engages. */
  margin-top: 40vh;
}
/* When the WebGL shader is active, the original <img>s are hidden (the shader
   draws meshes over their positions on a fixed canvas). Keeping the figure
   layout intact so spacing/margins still work. */
body.editorial-webgl .heritage-editorial-grid .he-img img {
  opacity: 0;
}
.editorial-shader-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 4;
  display: block;
}
@media (max-width: 800px) {
  .heritage-stage > .heritage-editorial-grid { margin-top: 25vh; }
}

.heritage-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: clamp(32px, 5vw, 96px);
  margin-bottom: clamp(40px, 5vw, 80px);
  width: 100%;
}
.heritage-title-block {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.heritage-eyebrow {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1;
  color: #191919;
  margin: 0;
  text-transform: none;
  letter-spacing: 0;
}
.heritage-h2 {
  font-family: var(--font-sans);
  font-size: clamp(40px, 5vw, 80px);
  line-height: 1.04;
  color: #191919;
  margin: 0;
  font-weight: 400;
  letter-spacing: -0.04em;
  text-transform: none;
}
.heritage-intro {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.45;
  color: #191919;
  max-width: 338px;
  margin: 0;
}
.heritage-editorial {
  position: relative;
  width: 100%;
}
.he-img { margin: 0; }
.he-img img {
  width: 100%;
  height: auto;
  display: block;
}

/* Editorial 12-col grid — each photo lives on its own row to retain
   natural aspect ratios; staggered margin-tops create the magazine feel. */
.heritage-editorial-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: clamp(16px, 2vw, 36px);
  row-gap: clamp(48px, 6vw, 96px);
  align-items: start;
}
.hg-1  { grid-column: 1 / span 5;  grid-row: 1; }
.hg-2  { grid-column: 8 / span 5;  grid-row: 1; margin-top: clamp(60px, 8vw, 140px); }
.hg-3  { grid-column: 4 / span 6;  grid-row: 2; margin-top: clamp(20px, 3vw, 48px); }
.hg-4  { grid-column: 1 / span 4;  grid-row: 3; }
.hg-5  { grid-column: 7 / span 6;  grid-row: 3; margin-top: clamp(60px, 7vw, 120px); }
.hg-6  { grid-column: 2 / span 6;  grid-row: 4; }
.hg-7  { grid-column: 10 / span 3; grid-row: 4; align-self: end; }
.hg-8  { grid-column: 1 / span 6;  grid-row: 5; margin-top: clamp(40px, 5vw, 80px); }
.hg-9  { grid-column: 9 / span 4;  grid-row: 5; }
.hg-10 { grid-column: 2 / span 4;  grid-row: 6; }
.hg-11 { grid-column: 7 / span 5;  grid-row: 6; margin-top: clamp(40px, 5vw, 80px); }
.hg-12 { grid-column: 4 / span 6;  grid-row: 7; }
.hg-13 { grid-column: 1 / span 3;  grid-row: 8; }
.hg-14 { grid-column: 5 / span 7;  grid-row: 8; margin-top: clamp(40px, 6vw, 100px); }

@media (max-width: 800px) {
  .heritage-header { flex-direction: column; align-items: flex-start; gap: 24px; margin-bottom: 32px; }
  .heritage-editorial-grid {
    grid-template-columns: 1fr;
    column-gap: 0;
    row-gap: clamp(32px, 6vw, 56px);
  }
  .heritage-editorial-grid > .he-img {
    grid-column: 1 / -1 !important;
    grid-row: auto !important;
    margin-top: 0 !important;
    align-self: stretch !important;
  }
  .heritage-editorial-grid > .he-img:nth-child(odd)  { width: 88%; margin-left: 0; margin-right: auto; }
  .heritage-editorial-grid > .he-img:nth-child(even) { width: 88%; margin-left: auto; margin-right: 0; }
}

/* =============================================================
   HERITAGE — legacy 12-col grid (about page)
   ============================================================= */
.heritage-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(40px, 5vw, 80px) clamp(20px, 2.5vw, 36px);
  margin-top: clamp(56px, 7vw, 96px);
}
.ref {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  margin: 0;
}
.ref-img {
  width: 100%;
  overflow: hidden;
  border-radius: 2px;
  background: rgba(13, 13, 14, 0.04);
}
.ref-img img { width: 100%; height: auto; display: block; }
.ref figcaption {
  font-size: 14px;
  color: var(--ink-soft);
  letter-spacing: 0.01em;
}
.ref-a { grid-column: 1 / span 5; }
.ref-b { grid-column: 7 / span 5; margin-top: clamp(40px, 6vw, 96px); }
.ref-c { grid-column: 2 / span 5; }
.ref-d { grid-column: 8 / span 5; }
.ref-e { grid-column: 1 / span 6; }
.ref-f { grid-column: 8 / span 5; margin-top: clamp(60px, 8vw, 120px); }
.ref-g { grid-column: 2 / span 5; }
.ref-h { grid-column: 8 / span 5; margin-top: clamp(40px, 6vw, 80px); }
@media (max-width: 900px) {
  .heritage-grid { grid-template-columns: 1fr; gap: 48px; }
  .ref { grid-column: 1 / -1 !important; margin-top: 0 !important; }
}

/* =============================================================
   CTA
   ============================================================= */
.cta {
  position: relative;
  isolation: isolate;
  min-height: clamp(560px, 80vh, 820px);
  padding-block: clamp(120px, 16vw, 240px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cream-ink);
  text-align: center;
  overflow: hidden;
}
@media (min-width: 1600px) {
  .cta { min-height: 96vh; padding-block: clamp(180px, 20vw, 320px); }
}
.cta-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: -2;
}
.cta-veil {
  position: absolute; inset: 0;
  background: rgba(6, 6, 8, 0.86);
  z-index: -1;
}
.cta-veil::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.5) 100%);
}
.cta-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(20px, 2.4vw, 36px);
  max-width: min(1400px, 92vw);
}
.cta-headline {
  font-size: clamp(40px, 6vw, 104px);
  line-height: 1.04;
  letter-spacing: -0.04em;
  max-width: none;
  text-align: center;
  text-transform: none;
  font-weight: 400;
  color: var(--cream-ink);
  white-space: nowrap;
}
@media (max-width: 700px) {
  .cta-headline {
    white-space: normal;
    font-size: clamp(36px, 10vw, 64px);
    max-width: 16ch;
  }
  .cta-headline br { display: none; }
}
.cta-headline em { font-weight: 400; }
.cta-body {
  font-size: clamp(16px, 1.2vw, 20px);
  color: rgba(240, 232, 213, 0.85);
  max-width: 52ch;
  line-height: 1.55;
}
.cta-note {
  font-size: 13px;
  letter-spacing: 0;
  text-transform: none;
  color: rgba(240, 232, 213, 0.55);
  margin-top: clamp(-32px, -2.4vw, -22px); /* tight gap to the consultation button above */
}
@media (max-width: 700px) {
  .cta-note { margin-top: 12px; }
}

/* =============================================================
   FOOTER (sticky reveal)
   ============================================================= */
/* Reveal-on-scroll footer: the inner is position: fixed at viewport bottom so
   page content scrolls over it. The outer .site-footer is a clipping container
   sized to match the inner (height set via JS), and its clip-path scopes the
   fixed child so it only paints while the footer area is in view. */
.site-footer {
  position: relative;
  background: transparent;
  z-index: 0;
  clip-path: inset(0);
}
.footer-inner {
  position: fixed;
  bottom: 0; left: 0;
  width: 100%;
  background: var(--bg-cream);
  color: var(--ink);
  display: flex;
  flex-direction: column;
  padding-block: clamp(48px, 5vw, 88px) 24px;
  box-sizing: border-box;
  overflow: hidden;
  font-family: var(--font-sans);
}
.footer-cols {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: clamp(28px, 4vw, 64px);
  align-items: start;
  flex-shrink: 0;
}
.footer-col { display: flex; flex-direction: column; gap: 16px; }
.footer-eyebrow {
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(13, 13, 14, 0.68);
  margin-bottom: 8px;
}
.footer-col p, .footer-col address {
  font-size: 15px;
  line-height: 1.6;
  color: rgba(13, 13, 14, 0.78);
  max-width: 36ch;
  margin: 0;
}
.footer-col address { font-style: normal; display: flex; flex-direction: column; }
.footer-loc-city,
.footer-loc-coords,
.footer-loc-global { display: block; }
.footer-col ul { display: flex; flex-direction: column; gap: 8px; }
.footer-col li a {
  color: rgba(13, 13, 14, 0.92);
  font-size: 15px;
  transition: opacity 0.2s ease;
}
.footer-col li a:hover { opacity: 0.6; }
.footer-mail-row { display: inline-flex; align-items: center; gap: 12px; }
.footer-mail {
  display: inline-block;
  font-weight: 500;
  border-bottom: 1px solid rgba(13, 13, 14, 0.35);
  padding-bottom: 4px;
}
.footer-mail:hover { opacity: 0.7; }
.mail-copy {
  position: relative;
  width: 32px; height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(13, 13, 14, 0.25);
  border-radius: 999px;
  color: rgba(13, 13, 14, 0.78);
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.mail-copy:hover { color: var(--ink); border-color: rgba(13, 13, 14, 0.6); }
.mail-copied {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  transform: translateX(-50%) translateY(4px);
  background: var(--ink);
  color: var(--cream-ink);
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 4px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s, transform 0.2s;
}
.mail-copy.is-copied .mail-copied { opacity: 1; transform: translateX(-50%) translateY(0); }
.footer-wordmark {
  position: relative;
  flex: 0 0 auto;
  display: block;
  text-align: center;
  font-size: 30vw;
  line-height: 0.82;
  letter-spacing: -0.075em;
  color: var(--ink);
  text-transform: lowercase;
  white-space: nowrap;
  user-select: none;
  pointer-events: none;
  /* tight vertical margin so the giant wordmark sits close to the cols above
     and the legal row below, instead of being centered in a 100vh band. */
  margin-block: clamp(24px, 3vw, 56px) clamp(8px, 1.5vw, 24px);
}
.footer-wordmark sup {
  /* Bigger ® so it reads at the same visual weight as the wordmark — em-based
     so it scales together with the parent at every viewport. `top` is in sup
     units, so the relative lift to the ascender height stays consistent
     across sizes. */
  font-size: 0.18em;
  vertical-align: baseline;
  position: relative;
  top: -3.6em;
  letter-spacing: 0;
  margin-left: 0.04em;
}
.footer-copy {
  font-size: 13px;
  color: rgba(13, 13, 14, 0.55);
}
.footer-legal-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 4px;
}
.footer-legal-links a {
  font-size: 15px;
  color: rgba(13, 13, 14, 0.92);
  transition: opacity 0.2s ease;
}
.footer-legal-links a:hover { opacity: 0.6; }
.footer-legal-links .btn-flip-label { height: 1.25em; line-height: 1.25; }
@media (max-width: 900px) {
  /* Keep the fixed reveal effect on mobile too — only relax the grid + size. */
  .footer-cols { grid-template-columns: 1fr 1fr; gap: 40px; }
  /* Wordmark sized so "winford" + © sup fits within the viewport width
     (anything larger overflows the right edge given the negative letter
     tracking + sup glyph). */
  .footer-wordmark {
    font-size: 24vw;
    margin-inline: 0;
    overflow: hidden;
  }
  /* © appears naturally inline as a superscript after "winford" — same em
     math as desktop so the symbol sits at the cap height of the "d". */
  .footer-wordmark sup {
    position: relative;
    top: -3.6em;
    right: auto;
    font-size: 0.18em;
    line-height: 1;
    margin: 0 0 0 0.04em;
    transform: none;
  }
  /* Push the footer content below the fixed site header on small viewports
     so the brand mark + CTA button don't overlap the columns. */
  .footer-inner { padding-block: 96px 24px; }
}
@media (max-width: 560px) {
  /* Phone footer layout:
       Row 1 — Studio (full width, since the paragraph reads better wide)
       Row 2 — Navigate + Location (two columns)
       Row 3 — Legal (full width)
     This balances each column with the right amount of horizontal space
     for its content. */
  .footer-cols {
    grid-template-columns: 1fr 1fr;
    column-gap: 24px;
    row-gap: 32px;
  }
  .footer-col:nth-child(1) { grid-column: 1 / -1; }
  .footer-col-legal { grid-column: 1 / -1; }
  .footer-inner { padding-block: 104px 20px; padding-inline: 24px; }
  /* Wordmark sized to fit "winford" + © within phone viewport width. */
  .footer-wordmark {
    font-size: 26vw;
    margin-inline: -24px;
    overflow: visible;
  }
  .footer-wordmark sup {
    position: relative;
    top: -3.6em;
    right: auto;
    font-size: 0.18em;
    line-height: 1;
    margin: 0 0 0 0.04em;
    transform: none;
  }
  /* Tighter type so columns don't blow out width */
  .footer-eyebrow { font-size: 11px; letter-spacing: 0.18em; }
  .footer-col p, .footer-col address, .footer-col li a, .footer-legal-links a { font-size: 14px; }
  .footer-mail { font-size: 14px; }
  /* Location: swap coords for "Working globally" on mobile. */
  .footer-loc-coords { display: none; }
  .footer-loc-global { display: block; }
}

/* =============================================================
   MENU OVERLAY — Olivier Larose pattern
   Slides down from the top, fills the viewport. Two columns:
   big nav links on the left, hover-driven preview image on the
   right. Footer below with attribution + legal links.
   ============================================================= */
.site-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 0;
  overflow: hidden;
  z-index: 60;
  background: var(--bg-cream);
  color: var(--ink);
  transition: height 0.9s cubic-bezier(0.76, 0, 0.24, 1);
  display: flex;
  flex-direction: column;
}
.site-menu.is-open { height: 100vh; }

.menu-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(13, 13, 14, 0.5);
  z-index: 55;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s cubic-bezier(0.76, 0, 0.24, 1);
}
.menu-backdrop.is-open { opacity: 1; pointer-events: auto; }

.menu-body {
  flex: 1 1 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(40px, 6vw, 96px);
  padding: clamp(120px, 14vh, 180px) var(--pad-x) clamp(40px, 5vw, 80px);
}

.menu-links {
  display: flex;
  flex-direction: column;
  gap: clamp(8px, 1vw, 18px);
}
.menu-links li {
  list-style: none;
  overflow: hidden;
}
.menu-links a {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: clamp(56px, 9vw, 160px);
  line-height: 0.95;
  letter-spacing: -0.045em;
  font-weight: 400;
  color: var(--ink);
  text-transform: lowercase;
  transition: filter 0.4s ease, color 0.4s ease;
  cursor: pointer;
}
/* When any sibling link is hovered, the others blur + dim */
.menu-links:has(a:hover) a:not(:hover) {
  filter: blur(6px);
  color: rgba(13, 13, 14, 0.45);
}
/* Per-letter spans for stagger animation (added by JS) */
.menu-links a .menu-char {
  display: inline-block;
  transform: translateY(110%);
  transition: transform 0.85s cubic-bezier(0.76, 0, 0.24, 1);
}
.site-menu.is-open .menu-links a .menu-char {
  transform: translateY(0);
}

.menu-preview {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  margin: 0;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 2px;
  overflow: hidden;
}
.menu-preview-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.05);
  transition: opacity 0.5s ease, transform 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}
.menu-preview.is-active .menu-preview-img {
  opacity: 1;
  transform: scale(1);
}

.menu-footer {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  padding: clamp(24px, 3vw, 40px) var(--pad-x) clamp(24px, 3vw, 40px);
  border-top: 1px solid var(--ink-line);
  font-size: 14px;
  color: var(--ink-soft);
  flex-wrap: wrap;
}
.menu-footer-col {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.menu-footer-eyebrow {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.menu-footer a { border-bottom: 1px solid currentColor; padding-bottom: 1px; transition: opacity 0.2s ease; }
.menu-footer a:hover { opacity: 0.6; }
.menu-footer-legal { flex-direction: row; gap: 32px; align-self: end; }

@media (max-width: 800px) {
  .menu-body { grid-template-columns: 1fr; }
  .menu-preview { display: none; }
  .menu-footer { flex-direction: column; gap: 16px; }
  .menu-footer-legal { flex-direction: row; gap: 24px; align-self: flex-start; }
}

/* =============================================================
   CONTACT PANEL — slide-in side panel triggered by CTA buttons
   ============================================================= */
.contact-panel {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: clamp(520px, 56vw, 820px);
  max-width: 100vw;
  z-index: 80;
  background: var(--bg-cream);
  color: var(--ink);
  /* translate3d promotes to a GPU layer up-front so the first animation frame
     doesn't kick the compositor (which is what was causing the brusque jump
     right when the panel started to open/close). */
  transform: translate3d(100%, 0, 0);
  transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  box-shadow: -32px 0 80px rgba(0, 0, 0, 0.25);
  font-family: var(--font-sans);
  display: flex;
  flex-direction: column;
}
.contact-panel.is-open { transform: translate3d(0, 0, 0); }
.contact-panel-backdrop {
  position: fixed;
  inset: 0;
  z-index: 75;
  background: rgba(13, 13, 14, 0.55);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity;
}
.contact-panel-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}
.contact-panel-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(13, 13, 14, 0.2);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease, border-color 0.3s ease;
  z-index: 2;
}
.contact-panel-close:hover {
  background: var(--ink);
  color: var(--cream-ink);
  border-color: var(--ink);
}
.contact-panel-inner {
  padding: clamp(64px, 8vw, 112px) clamp(28px, 4vw, 56px) clamp(40px, 6vw, 80px);
  display: flex;
  flex-direction: column;
  gap: clamp(18px, 2vw, 28px);
  /* Fade content in once the panel itself is mostly visible. Subtle opacity
     only (no translateY) so it doesn't compete with the slide and produce a
     secondary "kick" mid-transition. */
  opacity: 0;
  transition: opacity 0.5s ease 0.25s;
}
.contact-panel.is-open .contact-panel-inner {
  opacity: 1;
}
.contact-eyebrow {
  font-size: 14px;
  letter-spacing: 0;
  color: rgba(13, 13, 14, 0.6);
}
.contact-h2 {
  font-size: clamp(40px, 5vw, 72px);
  line-height: 1;
  letter-spacing: -0.02em;
  font-weight: 400;
  margin: 0;
}
.contact-h2 em {
  font-style: normal;
  color: rgba(13, 13, 14, 0.55);
}
.contact-lead {
  font-size: 15px;
  line-height: 1.55;
  color: rgba(13, 13, 14, 0.78);
  margin: 0 0 16px;
  max-width: 36ch;
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.contact-honeypot { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.contact-thanks { padding: 16px 0; }
.contact-thanks h3 { font-size: clamp(28px, 3vw, 42px); margin: 12px 0 8px; letter-spacing: -0.03em; text-transform: none; font-weight: 400; }
.contact-thanks p { margin: 0; color: var(--ink-soft); font-size: 16px; }

/* Generic fade-in for elements observed by initFadeIns — smooth, eased. */
[data-fade] {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 1.1s cubic-bezier(0.22, 1, 0.36, 1),
    transform 1.1s cubic-bezier(0.22, 1, 0.36, 1);
}
[data-fade].is-in {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  [data-fade], [data-fade].is-in { opacity: 1; transform: none; transition: none; }
}

.hero-char {
  display: inline-block;
  opacity: 0;
  will-change: opacity, transform;
}
.hero-char--sup {
  vertical-align: top;
}

/* Site loader — only shown on the first visit to the home page. After the
   3 images cycle through, the whole loader slides down as a persiana
   (same easing as the per-image transitions) to reveal the home. */
.site-loader {
  position: fixed;
  inset: 0;
  z-index: 10001;
  background: var(--bg-cream);
  display: none;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
  clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%);
  -webkit-clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%);
  transition:
    clip-path 0.85s cubic-bezier(0.76, 0, 0.24, 1),
    -webkit-clip-path 0.85s cubic-bezier(0.76, 0, 0.24, 1);
}
.site-loader.is-active { display: flex; }
.site-loader.is-leaving {
  clip-path: polygon(0% 100%, 100% 100%, 100% 100%, 0% 100%);
  -webkit-clip-path: polygon(0% 100%, 100% 100%, 100% 100%, 0% 100%);
  pointer-events: none;
}
.site-loader.is-hidden {
  opacity: 0;
  pointer-events: none;
}
.site-loader-stage {
  position: relative;
  width: clamp(180px, 20vw, 260px);
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 2px;
  background: rgba(13, 13, 14, 0.04);
}
.site-loader-stage figure {
  position: absolute;
  inset: 0;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Each new figure stacks above the previous via DOM order. */
  clip-path: polygon(0% 0%, 100% 0%, 100% 0%, 0% 0%);
  -webkit-clip-path: polygon(0% 0%, 100% 0%, 100% 0%, 0% 0%);
  transition:
    clip-path 0.38s cubic-bezier(0.76, 0, 0.24, 1),
    -webkit-clip-path 0.38s cubic-bezier(0.76, 0, 0.24, 1);
}
/* Active: slides down to fully visible, covering whatever is below it. */
.site-loader-stage figure.is-active {
  clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%);
  -webkit-clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%);
}
.site-loader-stage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
@media (prefers-reduced-motion: reduce) {
  .site-loader-stage figure { transition: none; }
  .site-loader-stage figure:first-child { clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%); }
}
html.is-loading { overflow: hidden; }

/* Page transition — full-screen curtain that slides in/out between pages */
.page-transition {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg-cream);
  pointer-events: none;
  transform: translateY(100%);
  will-change: transform;
}
.page-transition.is-in {
  transform: translateY(0);
}
.page-transition.is-out {
  transform: translateY(-100%);
  transition: transform 0.85s cubic-bezier(0.76, 0, 0.24, 1);
}
.page-transition.is-leaving {
  transform: translateY(0);
  transition: transform 0.6s cubic-bezier(0.76, 0, 0.24, 1);
}
@media (prefers-reduced-motion: reduce) {
  .page-transition { display: none; }
}

/* Skip-to-content link — visually hidden until focused. */
.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 10000;
  background: var(--ink);
  color: var(--bg-cream);
  padding: 12px 18px;
  border-radius: 999px;
  font-size: 13px;
  text-decoration: none;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 16px; outline: 2px solid var(--bg-cream); outline-offset: 2px; }
.contact-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.contact-field-label {
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(13, 13, 14, 0.55);
}
.contact-field input,
.contact-field select,
.contact-field textarea {
  width: 100%;
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(13, 13, 14, 0.25);
  padding: 8px 0;
  resize: none;
  transition: border-color 0.25s ease;
  border-radius: 0;
  appearance: none;
  -webkit-appearance: none;
}
.contact-field textarea {
  resize: vertical;
  min-height: 96px;
}
.contact-field input:focus,
.contact-field select:focus,
.contact-field textarea:focus {
  outline: none;
  border-bottom-color: var(--ink);
}
.contact-submit {
  align-self: flex-start;
  margin-top: 12px;
}

@media (max-width: 560px) {
  .contact-panel { width: 100vw; }
  .contact-panel-close { top: 16px; right: 16px; }
}

/* =============================================================
   Mask reveal (Olivier Larose-style) — words slide up from below
   inside an overflow:hidden mask when the element enters viewport.
   Opt in by adding `data-mask-reveal` to any text element.
   ============================================================= */
[data-mask-reveal]:not([data-mask-ready]) {
  opacity: 0;
}
[data-mask-reveal] .word-mask {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  line-height: inherit;
  white-space: nowrap;
  /* Give breathing room for descenders (g, j, p, y) and ascenders so the
     overflow:hidden box doesn't clip the glyph. Negative margins compensate
     so the surrounding layout (line-height, spacing) stays identical. */
  padding: 0.15em 0.05em 0.2em;
  margin: -0.15em -0.05em -0.2em;
}
[data-mask-reveal] .word-inner {
  display: inline-block;
  will-change: transform;
}
@media (prefers-reduced-motion: reduce) {
  [data-mask-reveal] { opacity: 1 !important; }
  [data-mask-reveal] .word-mask { overflow: visible; }
}
