/* ==========================================================================
   SO·MORE - Creative Partner
   Clean, framework-free rebuild. Geometry matched to the original design at a
   1440px reference width (see CLAUDE.md for the measured tokens).
   ========================================================================== */

/* 1. Fonts ----------------------------------------------------------------- */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/InterVariable-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/InterVariable-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB,
    U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* 2. Tokens ---------------------------------------------------------------- */
:root {
  --color-ink: #131416;
  --color-paper: #ffffff;
  --color-white: #ffffff;
  --gold: #d4b877;         /* primary gold */
  --gold-deep: #cca366;    /* deeper gold: "creative.", section eyebrows, form labels */

  --bg: var(--color-ink);
  --fg: var(--color-white);
  --rule: rgba(255, 255, 255, 0.14);

  --font-sans: "Inter", "Inter Placeholder", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Type scale (min @390 -> max @1440), matched to the original */
  --fs-display: clamp(2rem, 1.19rem + 3.62vw, 3.5rem);      /* 32 -> 56 */
  --fs-title:   clamp(1.5625rem, 0.94rem + 2.79vw, 3rem);   /* 25 -> 48 */
  --fs-col:     clamp(1.75rem, 1.66rem + 0.38vw, 2rem);     /* 28 -> 32 */
  --fs-eyebrow: clamp(1rem, 0.9rem + 0.45vw, 1.25rem);      /* 16 -> 20 */
  --fs-body:    clamp(0.9375rem, 0.82rem + 0.54vw, 1.25rem);/* 15 -> 20 */
  --fs-list:    clamp(1rem, 0.94rem + 0.27vw, 1.0625rem);   /* 16 -> 17 */

  /* Layout - reference width 1440, side padding 40, content column 600, index column 408 */
  --maxw: 1440px;
  --pad-x: clamp(1.25rem, 0.3rem + 2.78vw, 2.5rem);   /* 20 -> 40 */
  --content-w: calc(min(100vw, var(--maxw)) - 2 * var(--pad-x));
  /* Index column is 30% of the content width (408/1360 at the 1440 reference),
     tied to the container rather than the viewport so it stops growing past 1440. */
  --col-index: clamp(3.5rem, calc(var(--content-w) * 0.3), 25.5rem);
  --col-body: 37.5rem;                                /* content column max 600px */
  --section-y: clamp(3.5rem, 1.9rem + 5.5vw, 5.5rem); /* 56 -> 88 */

  /* Footer wordmark: size holds at this cap, letter-spacing absorbs the slack. */
  --wordmark-max: 100px;

  --radius-pill: 999px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* 3. Reset & base ---------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.5;
  color: var(--color-white);
  background: var(--color-ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
input, textarea { font: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* 4. Layout primitives ----------------------------------------------------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad-x); }

/* Everything after the hero video scrolls OVER it: opaque background + z-index 1
   above the pinned video's z-index 0. Any new full-width block needs both. */
.section { --bg: var(--color-ink); --fg: var(--color-white); --rule: rgba(255,255,255,0.14);
  position: relative; z-index: 1;
  background: var(--bg); color: var(--fg); padding-block: var(--section-y); }
.section--light { --bg: var(--color-paper); --fg: var(--color-ink); --rule: rgba(19,20,22,0.14); }

/* Numbered two-column block: big index (left) + narrow content column, left-weighted */
.block { display: grid; grid-template-columns: var(--col-index) minmax(0, var(--col-body)); column-gap: 0; align-items: start; }
.block__index { font-size: var(--fs-display); font-weight: 500; line-height: 1.2; letter-spacing: -0.035em; }
.block__body { max-width: var(--col-body); }

/* 5. Typography helpers ---------------------------------------------------- */
.eyebrow { font-size: var(--fs-eyebrow); font-weight: 400; color: var(--gold-deep); line-height: 1.5; }
.title { font-size: var(--fs-title); font-weight: 500; line-height: 1.2; letter-spacing: -0.03em; margin-top: 0.15em; }
.prose > * + * { margin-top: 0.85em; }
.text-gold { color: var(--gold-deep); }
.text-gold-primary { color: var(--gold); }
/* Off-canvas but still in the a11y tree - for controls that lose their visual
   form on touch (the video unmute button) yet must stay keyboard-reachable. */
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap; }

/* 6. Components ------------------------------------------------------------ */
.nav { position: sticky; top: 0; z-index: 50; background: var(--color-ink); }
.nav__inner { display: flex; align-items: center; gap: clamp(1rem, 3vw, 2.5rem); min-height: 64px; padding-block: 14px; }
.nav__logo { color: var(--color-white); flex: 0 0 auto; }
.nav__logo svg { height: 38px; width: auto; }
/* Tagline is outlined vector (like the logo), so the tracking and weight live in
   the paths - height is the only knob, and fill follows `color`. */
/* margin-left sits on top of .nav__inner's gap, to open the logo/tagline pair
   specifically without spacing out the whole nav row. */
.nav__tagline { color: var(--gold); flex: 0 0 auto; margin-left: clamp(0.5rem, 1.2vw, 1rem); }
.nav__tagline svg { height: 16.2px; width: auto; }
.nav__spacer { margin-left: auto; }

.btn { --btn-fg: var(--gold); display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  padding: 0.72em 1.4em; font-size: 1rem; font-weight: 500; color: var(--btn-fg);
  border: 1px solid var(--gold); border-radius: var(--radius-pill); line-height: 1;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease), transform 0.3s var(--ease); }
.btn:hover { background: var(--gold); color: var(--color-ink); }
.btn:active { transform: translateY(1px); }
.btn--sm { padding: 0.6em 1.2em; font-size: 0.9375rem; }
.btn--filled { background: var(--gold); color: var(--color-ink); }
.btn--filled:hover { background: var(--gold-deep); border-color: var(--gold-deep); }

.rule { height: 1px; border: 0; background: var(--rule); margin-block: clamp(1.25rem, 2.4vw, 1.75rem); }
.rule--gold { background: var(--gold-deep); }

.svc-list { list-style: none; padding: 0; }
.svc-list li { display: flex; gap: 0.6em; font-size: var(--fs-list); font-weight: 500; line-height: 1; padding-block: 0.45em; }
.svc-list li::before { content: ">"; color: var(--gold); font-weight: 500; }

/* Marquee - gold strip, ~80px tall, ~44px display words */
.marquee { position: relative; z-index: 1; background: var(--gold); color: var(--color-ink); height: 80px; display: flex; align-items: center; overflow: hidden; }
.marquee__track { display: flex; align-items: center; width: max-content; gap: clamp(1.5rem, 3vw, 2.75rem);
  white-space: nowrap; animation: marquee 26s linear infinite; }
.marquee__item { font-size: clamp(1.125rem, 0.95rem + 0.55vw, 1.375rem); font-weight: 500; letter-spacing: -0.01em; }
.marquee__sep { width: clamp(20px, 2.5vw, 34px); height: 1px; background: var(--color-ink); flex: 0 0 auto; }
.marquee:hover .marquee__track { animation-play-state: paused; }

/* Hero video: pinned full-screen while the rest of the site scrolls over it.
   The runway is 200vh with -100vh of bottom margin, so it occupies one viewport
   of flow and the next section slides up across the still-pinned video, reaching
   the top exactly as the sticky releases. Hold length = height - 100vh. */
.hero-video { position: relative; z-index: 0; height: 200vh; margin-bottom: -100vh; background: var(--color-ink); }
.hero-video__sticky { position: sticky; top: 0; height: 100vh; overflow: hidden; background: var(--color-ink); }
.hero-video__sticky video { width: 100%; height: 100%; object-fit: cover; }

.hero-video__unmute { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 2;
  width: 88px; height: 88px; border-radius: 50%; background: var(--gold); color: var(--color-ink);
  font-size: 0.9rem; font-weight: 500; letter-spacing: 0.02em; display: grid; place-items: center;
  transition: transform 0.3s var(--ease), background-color 0.3s var(--ease); }
.hero-video__unmute:hover { transform: translate(-50%, -50%) scale(1.06); }
/* Desktop: the button stands in for the pointer. The native cursor is hidden -
   including the button's own `cursor: pointer` from the reset, which would
   otherwise reappear the moment it sits under the pointer, which is always.
   No transition and no hover scale here: the button is permanently "hovered",
   and any easing on the position reads as lag. */
.hero-video__sticky.is-tracking { cursor: none; }
.hero-video__sticky.is-tracking .hero-video__unmute { left: 0; top: 0; cursor: none;
  transform: translate3d(var(--x), var(--y), 0) translate(-50%, -50%); transition: none; }

/* Scroll hint: a page-level idle prompt, not part of any section. Fixed to the
   viewport so it rides above whatever is on screen; z-index sits under the nav
   (50) and over the sections (1). JS shows it after a pause and only when there
   is actually page left below. */
.scroll-hint { position: fixed; left: 50%; bottom: clamp(1.5rem, 4vw, 3rem); z-index: 40;
  transform: translateX(-50%); color: var(--gold); opacity: 0; pointer-events: none;
  transition: opacity 0.6s var(--ease); }
.scroll-hint.is-visible { opacity: 1; animation: hint-bounce 1.8s var(--ease) infinite; }
.scroll-hint svg { width: 44px; height: 44px; }

/* CTA image band - full-bleed, full viewport, content centred */
.cta-band { position: relative; z-index: 1; background: var(--color-ink); }
.cta-band__inner { position: relative; height: 100vh; height: 100svh; overflow: hidden;
  display: grid; place-content: center; justify-items: center; text-align: center; }
/* The <picture> carries the positioning, not the <img>, so it never lands in the grid. */
.cta-band__media { position: absolute; inset: 0; }
/* --zoom is driven by JS as the band scrolls in: 1.2 -> 1 (see main.js). */
.cta-band__img { width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(1); transform: scale(var(--zoom, 1)); transform-origin: center; will-change: transform; }
.cta-band__overlay { position: absolute; inset: 0; background: rgba(19,20,22,0.15); }
.cta-band__content { position: relative; display: grid; gap: clamp(1.25rem, 3vw, 2rem); justify-items: center;
  padding: clamp(1.5rem, 4vw, 3.5rem); }

.display { font-weight: 900; font-variation-settings: "opsz" 32, "wght" 900; line-height: 0.95; letter-spacing: -0.03em; }
.display--cta { font-size: clamp(2.25rem, 0.5rem + 6vw, 5rem); color: var(--color-white); }

/* Contact form */
.form { display: grid; gap: clamp(1.5rem, 3vw, 2.25rem); }
.field { display: grid; gap: 0.5rem; }
.field__label { font-size: var(--fs-eyebrow); font-weight: 500; color: var(--gold-deep); }
.field__input, .field__textarea { width: 100%; font-size: 1.125rem; font-weight: 500; color: var(--color-white);
  background: transparent; border: 0; border-bottom: 1px solid rgba(255,255,255,0.22); padding: 0.6rem 0; transition: border-color 0.3s var(--ease); }
.field__input::placeholder, .field__textarea::placeholder { color: rgba(255,255,255,0.4); font-weight: 400; }
.field__input:focus, .field__textarea:focus { outline: none; border-color: var(--gold); }
.field__textarea { resize: vertical; min-height: 7rem; }
.form__status { font-size: var(--fs-body); min-height: 1.5em; }
.form__status[data-state="ok"] { color: var(--gold); }
.form__status[data-state="error"] { color: #ff8a8a; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.contact-list { display: grid; gap: 0.75rem; }
.contact-list a { display: inline-flex; align-items: center; gap: 0.6em; font-weight: 500; }
.contact-list svg { width: 20px; height: 20px; flex: 0 0 auto; }

/* Footer - lead + contacts row, then the giant gold wordmark bleeding edge to edge */
.footer { position: relative; z-index: 1; background: var(--color-ink); color: var(--color-white);
  padding-top: clamp(2.5rem, 5vw, 4rem); padding-bottom: clamp(3rem, 9vw, 6rem); overflow: hidden; }
.footer__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 2rem; flex-wrap: wrap;
  margin-bottom: clamp(2.5rem, 6vw, 4.5rem); }
.footer__lead { font-size: var(--fs-col); font-weight: 500; line-height: 1.25; letter-spacing: -0.02em;
  max-width: 26ch; font-variation-settings: "opsz" 24, "wght" 500; }
.footer__contact { display: grid; gap: 0.7rem; text-align: right; margin-left: auto; }
.footer__contact a { display: inline-flex; align-items: center; gap: 0.5em; font-weight: 500; }
.footer__contact svg { width: 18px; height: 18px; flex: 0 0 auto; }
/* Fills the content width exactly at any viewport up to the 1440 container cap.
   13.6 = glyph-width ratio of "LET'S WORK TOGETHER" in Inter 900 at this tracking
   (re-measure if the string or tracking changes: set font-size:100px, read the
   rendered width, divide by 100). Size stops growing at --wordmark-max; past that
   point main.js opens --track so letter-spacing takes up the remaining slack. */
.footer__display { font-weight: 900; font-variation-settings: "opsz" 32, "wght" 900; color: var(--gold);
  line-height: 0.92; white-space: nowrap;
  font-size: min(var(--wordmark-max), calc(var(--content-w) / 13.6));
  letter-spacing: calc(-0.04em + var(--track, 0px));
  margin-inline-end: calc(-1 * var(--track, 0px)); }

/* 7. Page sections --------------------------------------------------------- */

/* Hero (home) */
.hero { padding-top: clamp(2rem, 3vw, 2.5rem); padding-bottom: clamp(3rem, 14vw, 11rem); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 4vw, 3rem); align-items: start; }
.hero__title { font-size: var(--fs-display); font-weight: 500; line-height: 1.2; letter-spacing: -0.035em; white-space: nowrap; }
.hero__cta { margin-top: clamp(1.5rem, 2.4vw, 2.1rem); }
.hero__intro { font-size: var(--fs-body); line-height: 1.5; margin-top: clamp(0rem, 8vw, 7rem); }

/* Hero (contact) */
.hero--contact { padding-top: clamp(2.5rem, 8vw, 6rem); padding-bottom: 0; }
.hero--contact .hero__title { white-space: normal; max-width: 18ch; }
.hero__lede { margin-top: 1.25rem; max-width: 52ch; }
.hero__lede > * + * { margin-top: 0.75em; }
.hero__actionline { display: flex; align-items: center; gap: clamp(1rem, 3vw, 2rem); margin-top: clamp(2rem, 4vw, 3rem); }
.hero__actionline .rule { flex: 1; margin: 0; }

/* Services grid - inset two columns */
.services-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(2rem, 5vw, 5rem);
  row-gap: clamp(3rem, 9vw, 8rem); max-width: 1120px; margin: clamp(3rem, 7vw, 6.5rem) auto 0; }
.svc { text-align: center; display: grid; gap: 1.1rem; justify-items: center; align-content: start; }
.svc__title { font-size: var(--fs-col); font-variation-settings: "opsz" 32, "wght" 700; font-weight: 700; line-height: 1; letter-spacing: -0.03em; }
.svc__sub { color: var(--gold); font-weight: 500; line-height: 1.2; letter-spacing: 0.02em; max-width: 24ch; }
.svc .svc-list { text-align: left; }

/* Contact form section */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.contact-intro { font-size: var(--fs-col); font-weight: 500; line-height: 1.25; letter-spacing: -0.02em; max-width: 22ch;
  font-variation-settings: "opsz" 24, "wght" 500; }

/* 8. Motion ---------------------------------------------------------------- */
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes hint-bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(6px); }
}
html.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
html.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee__track { animation: none; }
  html.js .reveal { opacity: 1; transform: none; transition: none; }
  .scroll-hint.is-visible { animation: none; }
  .cta-band__img { transform: none; }
}

/* 9. Responsive ------------------------------------------------------------ */
@media (max-width: 900px) {
  .block { grid-template-columns: 1fr; row-gap: clamp(1rem, 4vw, 2rem); }
  .hero__grid { grid-template-columns: 1fr; gap: clamp(1.5rem, 6vw, 2.5rem); }
  .hero__title { white-space: normal; }
  .hero__intro { margin-top: 0; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .services-grid { grid-template-columns: 1fr; row-gap: clamp(2.5rem, 10vw, 3.5rem); }
  .nav__tagline { display: none; }
  .footer__contact { text-align: left; margin-left: 0; }
}
