/* ============================================================
   SVF — HOMEPAGE v2 · base layer
   Palette: #FFFFFF / #FAF7F2 / #0A0A0A
   Red #E63946 · Deep #C1121F · Green #1F6B4F · Yellow #F4C430
   ============================================================ */

:root {
  --white: #ffffff;
  --cream: #faf7f2;
  --paper: #f4f1ea;
  --ink: #0a0a0a;
  --ink-60: rgba(10, 10, 10, 0.6);
  --ink-35: rgba(10, 10, 10, 0.35);
  --hair: rgba(10, 10, 10, 0.12);
  --red: #e63946;
  --red-deep: #c1121f;
  --green: #1f6b4f;
  --yellow: #f4c430;
  --grain-o: 0.05;
  --font-display: "Clash Display", "Helvetica Neue", sans-serif;
  --font-body: "DM Sans", "Helvetica Neue", Arial, sans-serif;
  --font-title: "Clash Display", "Helvetica Neue", sans-serif;
  --font-serif: "Clash Display", "Helvetica Neue", sans-serif;
  --font-script: "Clash Display", "Helvetica Neue", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, monospace;
  --gutter: clamp(20px, 4vw, 64px);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { background: var(--white); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.55;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

::selection { background: var(--red); color: #fff; }

a { color: inherit; }
img, video { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; }

.serif {
  font-family: var(--font-serif);
  font-style: normal;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.mono { font-family: var(--font-mono); }

h1, h2, h3 { margin: 0; }
p { margin: 0; }

/* headings & brand chrome stay on the display face; body copy is DM Sans */
h1, h2, h3,
.nav-logo,
.footer-ghost span,
.process-ghost { font-family: var(--font-display); }

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

/* ---------- grain ---------- */
.grain {
  position: fixed;
  inset: -100px;
  z-index: 2000;
  pointer-events: none;
  opacity: var(--grain-o);
  background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHdpZHRoPSczMDAnIGhlaWdodD0nMzAwJz48ZmlsdGVyIGlkPSduJz48ZmVUdXJidWxlbmNlIHR5cGU9J2ZyYWN0YWxOb2lzZScgYmFzZUZyZXF1ZW5jeT0nMC45JyBudW1PY3RhdmVzPScyJyBzdGl0Y2hUaWxlcz0nc3RpdGNoJy8+PC9maWx0ZXI+PHJlY3Qgd2lkdGg9JzEwMCUnIGhlaWdodD0nMTAwJScgZmlsdGVyPSd1cmwoI24pJy8+PC9zdmc+");
  background-size: 300px 300px;
}
@media (prefers-reduced-motion: no-preference) {
  .grain { animation: grain-shift 0.9s steps(4) infinite; }
}
@keyframes grain-shift {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-34px, 22px); }
  50% { transform: translate(20px, -40px); }
  75% { transform: translate(-18px, -14px); }
  100% { transform: translate(0, 0); }
}

/* ---------- scroll progress ---------- */
.progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 100%;
  z-index: 1500;
  pointer-events: none;
}
.progress .bar {
  height: 100%;
  width: 100%;
  background: var(--red);
  transform-origin: 0 50%;
  transform: scaleX(0);
}

/* ---------- custom cursor ---------- */
.cursor {
  position: fixed;
  top: 0; left: 0;
  z-index: 3000;
  width: 12px; height: 12px;
  margin: -6px 0 0 -6px;
  border-radius: 50%;
  background: var(--red);
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: width 0.25s ease, height 0.25s ease, margin 0.25s ease,
              background 0.25s ease, opacity 0.25s ease;
  will-change: transform;
}
.cursor .cursor-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: #fff;
  opacity: 0;
  white-space: nowrap;
  transition: opacity 0.2s ease;
}
.cursor.is-link { width: 40px; height: 40px; margin: -20px 0 0 -20px; background: rgba(230, 57, 70, 0.18); }
.cursor.is-play,
.cursor.is-drag {
  width: 72px; height: 72px; margin: -36px 0 0 -36px;
  background: var(--red);
}
.cursor.is-play .cursor-label,
.cursor.is-drag .cursor-label { opacity: 1; }
.cursor.is-hidden { opacity: 0; }
@media (hover: none), (max-width: 900px) {
  .cursor { display: none; }
}
body.no-cursor .cursor { display: none; }

/* ---------- nav (adaptive theme) ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px var(--gutter);
  color: var(--ink);
  transition: padding 0.35s ease, color 0.35s ease;
}
.nav[data-theme="light"] { color: var(--cream); }
.nav.scrolled {
  padding: 14px var(--gutter);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.nav[data-theme="dark"].scrolled { background: rgba(250, 247, 242, 0.72); }
.nav[data-theme="light"].scrolled { background: rgba(10, 10, 10, 0.38); }
.nav-logo {
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
}
.nav-logo-img {
  height: clamp(30px, 3vw, 42px);
  width: auto;
  display: block;
}
.nav[data-theme="light"] .nav-logo-img {
  filter: drop-shadow(0 1px 5px rgba(0, 0, 0, 0.4));
}
.nav-logo .reel-dot {
  display: none; /* removed per design feedback */
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--red);
  align-self: center;
  animation: pulse-dot 2.2s ease-in-out infinite;
}
.nav[data-theme="light"] .nav-logo .reel-dot { background: var(--yellow); }
@keyframes pulse-dot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(0.55); opacity: 0.6; }
}
.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.6vw, 40px);
}
.nav-links a:not(.nav-cta) {
  position: relative;
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 9px 17px;
  border: 1px solid color-mix(in oklab, currentColor 24%, transparent);
  border-radius: 999px;
  transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}
.nav-links a:not(.nav-cta):hover {
  background: color-mix(in oklab, currentColor 10%, transparent);
  border-color: color-mix(in oklab, currentColor 55%, transparent);
}
.nav-links a:not(.nav-cta)[aria-current="page"] {
  background: color-mix(in oklab, currentColor 14%, transparent);
  border-color: color-mix(in oklab, currentColor 62%, transparent);
}
.nav-cta {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  background: var(--red);
  color: #fff;
  border: 1px solid var(--red);
  border-radius: 999px;
  padding: 10px 20px;
  transition: background 0.3s ease, border-color 0.3s ease;
}
.nav[data-theme="light"] .nav-cta,
.nav[data-theme="dark"] .nav-cta { color: #fff; }
.nav-cta:hover { background: var(--red-deep); border-color: var(--red-deep); }
@media (max-width: 760px) {
  .nav-links { display: none; }
}

/* ============================================================
   Mobile nav — burger + full-screen sheet (≤760)
   ============================================================ */
.nav-burger { display: none; }
/* mobile: swap the colourful wordmark image for a clean 2-line text logo */
.nav-logo-txt { display: none; }
@media (max-width: 760px) {
  /* original full-colour wordmark, proportionally sized with breathing room */
  .nav-logo { gap: 0; padding: 6px 0; }
  .nav-logo-img { display: block; height: 34px; width: auto; }
  .nav-logo-txt { display: none; }
}
@media (max-width: 900px) {
  body { overflow-x: clip; }
}
@media (max-width: 760px) {
  .nav { z-index: 1002; }
  .nav-burger {
    display: inline-flex; flex-direction: column; align-items: flex-end; justify-content: center;
    gap: 5.5px; width: 46px; height: 44px; margin: -4px -6px -4px 0;
    padding: 0; background: none; border: 0; cursor: pointer; -webkit-tap-highlight-color: transparent;
    color: var(--ink);
  }
  .nav[data-theme="light"] .nav-burger { color: #fff; }
  .nav-burger span {
    display: block; height: 2px; border-radius: 2px; background: currentColor;
    transition: transform .34s cubic-bezier(.22,1,.36,1), opacity .2s ease, width .34s cubic-bezier(.22,1,.36,1);
  }
  .nav-burger span:nth-child(1) { width: 26px; }
  .nav-burger span:nth-child(2) { width: 20px; }
  .nav-burger span:nth-child(3) { width: 26px; }
  body.nav-open .nav-burger { color: #f7f0e4; }
  body.nav-open .nav-burger span { width: 26px; }
  body.nav-open .nav-burger span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  body.nav-open .nav-burger span:nth-child(2) { opacity: 0; }
  body.nav-open .nav-burger span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
}
.nav-mobile {
  position: fixed; inset: 0; z-index: 1001;
  background: radial-gradient(130% 100% at 78% 8%, #26160d 0%, #140b07 46%, #0a0605 100%);
  display: flex; flex-direction: column; justify-content: center;
  padding: 88px 8vw 40px;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .42s ease, visibility .42s;
}
body.nav-open { overflow: hidden; }
body.nav-open .nav-mobile { opacity: 1; visibility: visible; pointer-events: auto; }
.nav-mobile .nm-inner { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.nav-mobile a {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(38px, 12vw, 64px); line-height: 1.08; letter-spacing: -0.02em;
  color: #f7f0e4; text-decoration: none; padding: 8px 0;
  opacity: 0; transform: translateY(24px);
  transition: color .25s ease, opacity .5s ease, transform .6s cubic-bezier(.22,1,.36,1);
}
.nav-mobile a::after {
  content: ""; display: block; width: 0; height: 2px; background: var(--red);
  transition: width .3s ease;
}
.nav-mobile a:active { color: var(--red); }
.nav-mobile a:active::after { width: 40px; }
body.nav-open .nav-mobile a { opacity: 1; transform: none; }
body.nav-open .nav-mobile a:nth-child(1) { transition-delay: .10s; }
body.nav-open .nav-mobile a:nth-child(2) { transition-delay: .16s; }
body.nav-open .nav-mobile a:nth-child(3) { transition-delay: .22s; }
body.nav-open .nav-mobile a:nth-child(4) { transition-delay: .28s; }
body.nav-open .nav-mobile a:nth-child(5) { transition-delay: .36s; }
.nav-mobile .nm-cta {
  margin-top: 22px; font-family: var(--font-mono); font-weight: 500;
  font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase;
  color: #fff; background: var(--red); border-radius: 999px; padding: 16px 30px;
  align-self: stretch; text-align: center;
}
.nav-mobile .nm-cta::after { display: none; }
.nav-mobile .nm-cta:active { color: #fff; background: var(--red-deep); }

/* ---------- nav dropdown (Work submenu) ---------- */
.nav-dd-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.nav-dd-trigger {
  display: inline-flex !important;
  align-items: center !important;
  gap: 7px !important;
}
.nav-dd-caret {
  font-size: 8px;
  line-height: 1;
  opacity: 0.7;
  transform: translateY(0.5px);
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-dd-wrap:hover .nav-dd-caret,
.nav-dd-wrap:focus-within .nav-dd-caret {
  transform: translateY(2.5px);
  opacity: 1;
}
.nav-dd-menu {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  background: var(--white);
  border: 1px solid var(--hair);
  border-radius: 14px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  min-width: 210px;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity 0.22s ease, transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.22s;
  box-shadow: 0 28px 60px -20px rgba(10, 10, 10, 0.22), 0 8px 20px rgba(10, 10, 10, 0.06);
  z-index: 20;
}
.nav-dd-menu::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 0; right: 0;
  height: 12px;
}
.nav-dd-wrap:hover .nav-dd-menu,
.nav-dd-wrap:focus-within .nav-dd-menu {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.nav-dd-menu a {
  display: block !important;
  padding: 11px 16px !important;
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink) !important;
  background: transparent !important;
  border: 1px solid transparent !important;
  border-radius: 9px !important;
  transition: background 0.25s ease, color 0.25s ease;
}
.nav-dd-menu a:hover {
  background: var(--cream) !important;
  color: var(--red) !important;
}
.nav[data-theme="light"] .nav-dd-menu {
  background: rgba(15, 12, 12, 0.96);
  border-color: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.nav[data-theme="light"] .nav-dd-menu a {
  color: rgba(255, 255, 255, 0.92) !important;
}
.nav[data-theme="light"] .nav-dd-menu a:hover {
  background: rgba(255, 255, 255, 0.06) !important;
  color: #fff !important;
}

/* ---------- shared buttons / labels ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 999px;
  padding: 18px 30px;
  border: 1px solid transparent;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  will-change: transform;
}
.btn-fill { background: var(--red); color: #fff; }
.btn-fill:hover { background: var(--red-deep); }
.btn-cream { background: var(--cream); color: var(--ink); }
.btn-cream:hover { background: var(--yellow); }
.btn-ghost { border-color: rgba(255, 255, 255, 0.6); color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn-ink { border-color: var(--ink); color: var(--ink); }
.btn-ink:hover { background: var(--ink); color: #fff; }

.sec-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-60);
}
.sec-label::before { display: none; }

/* word/char split helpers */
.split-words .w,
.split-chars .c {
  display: inline-block;
  will-change: transform;
}
.maskline {
  display: block;
  overflow: hidden;
  padding-bottom: 0.08em;
  margin-bottom: -0.08em;
}
.maskline > .inner { display: block; }

/* ---------- marquee base ---------- */
.marquee {
  display: flex;
  width: max-content;
  will-change: transform;
}
.marquee-chunk {
  display: flex;
  align-items: center;
  flex: none;
}
.marquee-chunk .m-item {
  display: flex;
  align-items: center;
  gap: clamp(28px, 3.4vw, 56px);
  padding-right: clamp(28px, 3.4vw, 56px);
  font-size: clamp(22px, 2.4vw, 34px);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink-35);
  white-space: nowrap;
  transition: color 0.3s ease;
}
.marquee-chunk .m-item:hover { color: var(--ink); }
.marquee-chunk .m-item::after {
  content: "✳\FE0E";
  font-size: 0.55em;
  color: var(--red);
}

/* ============================================================
   S2 — CLIENT MARQUEE
   ============================================================ */
.clients {
  position: relative;
  background: var(--paper);
  border-bottom: 1px solid var(--hair);
  padding: 26px 0;
  overflow: clip;
  display: flex;
  align-items: center;
}
.clients-tag {
  position: absolute;
  left: var(--gutter);
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  background: var(--paper);
  box-shadow: 0 0 24px 18px var(--paper);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-60);
  padding-right: 8px;
}

/* ============================================================
   S3 — IDENTITY STATEMENT
   ============================================================ */
.identity {
  position: relative;
  background: var(--white);
  min-height: 88vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(110px, 14vh, 180px) var(--gutter);
  overflow: clip;
}
.identity .sec-label { margin-bottom: clamp(32px, 5vh, 64px); }
.identity-h {
  font-size: clamp(46px, 9.2vw, 176px);
  font-weight: 600;
  line-height: 0.96;
  letter-spacing: -0.035em;
  max-width: 12em;
}
.identity-h .serif { font-size: 1.05em; color: var(--red); font-weight: 400; }
.identity-h .strike {
  position: relative;
  white-space: nowrap;
}
.identity-h .strike::after {
  content: "";
  position: absolute;
  left: -3%; right: -3%;
  top: 56%;
  height: 0.085em;
  background: var(--yellow);
  transform: skewY(-2.5deg) scaleX(var(--strike, 0));
  transform-origin: 0 50%;
  border-radius: 99px;
  mix-blend-mode: multiply;
}
.identity-sub {
  margin-top: clamp(28px, 4.5vh, 52px);
  font-size: clamp(19px, 1.8vw, 27px);
  line-height: 1.45;
  max-width: 21em;
  color: var(--ink-60);
  text-wrap: pretty;
}
.sticker-clapper {
  position: absolute;
  right: clamp(20px, 6vw, 110px);
  bottom: clamp(26px, 7vh, 80px);
  width: clamp(64px, 7vw, 104px);
  transform: rotate(8deg);
}
@media (prefers-reduced-motion: no-preference) {
  .sticker-clapper { animation: wiggle 4.5s ease-in-out infinite; }
}
@keyframes wiggle {
  0%, 86%, 100% { transform: rotate(8deg); }
  90% { transform: rotate(2deg); }
  94% { transform: rotate(12deg); }
  97% { transform: rotate(6deg); }
}

/* ============================================================
   S6 — GREEN INTERLUDE (founder quote)
   ============================================================ */
.interlude {
  background: var(--green);
  color: var(--cream);
  min-height: 78vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(100px, 14vh, 170px) var(--gutter);
}
.interlude-q {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(36px, 6.4vw, 116px);
  line-height: 1.04;
  letter-spacing: -0.015em;
  max-width: 12.5em;
  text-wrap: balance;
}
.interlude-q .w { display: inline-block; }
.interlude-attr {
  margin-top: clamp(28px, 5vh, 48px);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
}

/* ============================================================
   S8 — NUMBERS
   ============================================================ */
.numbers {
  background: var(--white);
  padding: clamp(72px, 10vh, 130px) var(--gutter);
  text-align: center;
}
.numbers-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(40px, 6vw, 90px) clamp(24px, 5vw, 80px);
  margin-top: 0;
  align-items: start;
  justify-items: center;
}
.stat { position: relative; text-align: center; }
.stat-num {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(96px, 15vw, 290px);
  line-height: 0.82;
  letter-spacing: -0.02em;
  color: var(--ink);
  white-space: nowrap;
}
.stat-num .plus { color: var(--red); font-size: 0.55em; vertical-align: 0.5em; }
.stat-dot {
  position: absolute;
  top: 0.04em;
  margin-left: 0.12em;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--red);
  display: inline-block;
}
.stat-cap {
  margin-top: 18px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-60);
}
@media (max-width: 700px) {
  .numbers-grid { grid-template-columns: 1fr; }
  .stat:nth-child(2), .stat:nth-child(3) { transform: none; }
}
@media (min-width: 701px) and (max-width: 980px) {
  .numbers-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ============================================================
   S10 — AWARDS STRIP
   ============================================================ */
.awards {
  background: var(--white);
  border-top: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair);
  padding: 22px 0;
  overflow: clip;
}
.awards .marquee-chunk .m-item {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 400;
  color: var(--ink-60);
}
.awards .marquee-chunk .m-item b {
  font-weight: 700;
  color: var(--ink);
}
.awards .marquee-chunk .m-item::after { content: "❋\FE0E"; color: var(--yellow); }
.awards .marquee-chunk .m-item:hover { color: var(--green); }

/* ============================================================
   Reduced motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .split-chars .c, .split-words .w { transform: none !important; opacity: 1 !important; }
  .cursor { display: none; }
}
