/* ============================================================
   Ali Gökce — Portfolio
   Light editorial. Warm paper base, deep banking-navy accent.
   Newsreader (display serif) + Manrope (UI/body).
   ============================================================ */

:root {
  /* Base */
  --paper:      #FBFAF4;   /* warm off-white page */
  --paper-2:    #F5F2EA;   /* slightly deeper panel */
  --surface:    #FCFBF7;   /* cards */
  --surface-2:  #FFFFFF;   /* raised */

  /* Ink */
  --ink:        #1B1915;   /* primary text, warm near-black */
  --ink-2:      #46423A;   /* secondary */
  --muted:      #756F64;   /* tertiary / captions */
  --faint:      #9A9488;

  /* Accent — deep banking navy */
  --navy:       #1C3A5E;
  --navy-deep:  #142B47;
  --navy-bright:#2C568A;
  --navy-tint:  rgba(28, 58, 94, 0.06);
  --navy-line:  rgba(28, 58, 94, 0.18);

  /* Lines & shadows */
  --line:       rgba(27, 25, 21, 0.12);
  --line-soft:  rgba(27, 25, 21, 0.07);
  --shadow-1:   0 1px 2px rgba(27,25,21,.04), 0 2px 8px rgba(27,25,21,.04);
  --shadow-2:   0 2px 6px rgba(27,25,21,.05), 0 12px 32px rgba(27,25,21,.08);
  --shadow-3:   0 8px 24px rgba(27,25,21,.10), 0 32px 80px rgba(27,25,21,.16);

  /* Type */
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans:  "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Layout */
  --container: 1200px;
  --gutter: clamp(20px, 5vw, 64px);

  /* Motion */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --dur: 360ms;
}

/* ---------- Dark (night) theme ---------- */
body.theme-night {
  --paper:      #14120D;   /* warm near-black page */
  --paper-2:    #1C1A13;   /* panel */
  --surface:    #1B1812;   /* cards */
  --surface-2:  #242017;   /* raised */

  --ink:        #F3EFE6;   /* primary text, warm off-white */
  --ink-2:      #CFC9BB;   /* secondary */
  --muted:      #9C968A;   /* tertiary / captions */
  --faint:      #6E685B;

  --navy:       #7FB0E6;   /* brightened accent for dark bg */
  --navy-deep:  #6699D2;
  --navy-bright:#9CC6F2;
  --navy-tint:  rgba(127, 176, 230, 0.12);
  --navy-line:  rgba(127, 176, 230, 0.26);

  --line:       rgba(243, 239, 230, 0.14);
  --line-soft:  rgba(243, 239, 230, 0.08);
  --shadow-1:   0 1px 2px rgba(0,0,0,.4), 0 2px 8px rgba(0,0,0,.4);
  --shadow-2:   0 2px 6px rgba(0,0,0,.45), 0 12px 32px rgba(0,0,0,.5);
  --shadow-3:   0 8px 24px rgba(0,0,0,.55), 0 32px 80px rgba(0,0,0,.65);
}
/* Dark-mode contrast fixes for elements with baked-in light/navy values */
body.theme-night .btn-primary { color: #10100B; }
body.theme-night .btn-primary:hover { background: var(--navy-bright); }
body.theme-night ::selection { background: var(--navy); color: #10100B; }
body.theme-night .mono-logo { filter: brightness(0) invert(1); opacity: .9; }
body.theme-night .nav.scrolled { background: rgba(20, 18, 13, 0.82); }
body.theme-night .proof { background: rgba(20, 18, 13, 0.42); }
body.theme-night .contact { background: #0E1A29; color: #F3EFE6; }
body.theme-night .contact .btn-primary { background: var(--navy); color: #10100B; }
body.theme-night .contact .btn-primary:hover { background: var(--navy-bright); }
body.theme-night .footer { background: #0A131F; color: rgba(243, 239, 230, .5); border-top-color: rgba(243, 239, 230, .1); }
body.theme-night .footer a { color: rgba(243, 239, 230, .7); }
body.theme-night .footer a:hover { color: #fff; }
body.theme-night .modal-close { background: rgba(28, 25, 20, .9); }
body.theme-night .gtile .play span { background: rgba(28, 25, 20, .92); }

/* ---------- Reset ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background-color 620ms var(--ease), color 620ms var(--ease);
}
@media (prefers-reduced-motion: reduce) { body { transition: none; } }
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: none; background: none; }
::selection { background: var(--navy); color: #fff; }

/* ============================================================
   Cinematic load intro
   ============================================================ */
.load-intro {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    radial-gradient(circle at 50% 47%, rgba(44, 86, 138, .10), transparent 48%),
    linear-gradient(180deg, #FCFBF7, var(--paper) 84%);
  animation: liExit 620ms var(--ease) 700ms forwards;
}

/* Ambient radial bloom, centered */
.li-glow {
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
  filter: blur(46px);
}
.li-glow-a {
  width: min(62vw, 580px);
  aspect-ratio: 1;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(.6);
  background: radial-gradient(circle, rgba(28,58,94,.13), rgba(28,58,94,0) 70%);
  opacity: 0;
  animation: liGlowIn 700ms var(--ease) 60ms forwards;
}

/* Ambient particle field — dimmed, centered behind the mark */
.li-orb {
  position: absolute;
  z-index: 1;
  left: 50%;
  top: 50%;
  width: min(78vw, 620px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%) scale(.98);
  opacity: 0;
  animation: liOrbIn 750ms var(--ease) 40ms forwards;
}
.li-orb canvas {
  width: 100%;
  height: 100%;
}
.li-orbit {
  position: absolute;
  inset: 20%;
  border: 1px solid rgba(28,58,94,.10);
  border-radius: 50%;
  transform: rotateX(64deg) rotateZ(-18deg);
}
.li-orbit-b {
  inset: 30%;
  border-color: rgba(28,58,94,.07);
  transform: rotateX(72deg) rotateZ(34deg);
}

/* Centered monogram stage */
.li-stage {
  position: relative;
  z-index: 3;
  display: grid;
  place-items: center;
  width: min(46vw, 200px);
  aspect-ratio: 1;
}
.li-ring {
  position: absolute;
  width: 96%;
  aspect-ratio: 1;
  border: 1px solid rgba(28,58,94,.20);
  border-radius: 50%;
  opacity: 0;
  transform: scale(.42);
  animation: liRing 900ms var(--ease) 200ms forwards;
}
.li-mark {
  position: relative;
  width: clamp(66px, 9vw, 108px);
  opacity: 0;
  transform: scale(.92);
  filter: blur(7px);
  animation: liMarkIn 540ms var(--ease) 90ms forwards;
}
.li-mark img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
  -webkit-mask-image: linear-gradient(0deg, #000 38%, rgba(0,0,0,0) 60%);
  mask-image: linear-gradient(0deg, #000 38%, rgba(0,0,0,0) 60%);
  -webkit-mask-size: 100% 240%;
  mask-size: 100% 240%;
  -webkit-mask-position: 0 -140%;
  mask-position: 0 -140%;
  animation: liMaskSweep 620ms var(--ease) 110ms forwards;
}
.li-shine {
  position: absolute;
  z-index: 0;
  inset: -44%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.72), rgba(255,255,255,0) 66%);
  opacity: 0;
  animation: liBloom 760ms var(--ease) 130ms forwards;
}

/* Hero reveal after intro */
body.intro-running .nav {
  opacity: 0;
  transform: translateY(-14px);
  animation: navAfterIntro 620ms var(--ease) 640ms forwards;
}
body.intro-running .hero .eyebrow,
body.intro-running .hero h1,
body.intro-running .hero-intro,
body.intro-running .hero-actions,
body.intro-running .hero-links,
body.intro-running .hero-signal,
body.intro-running .proof {
  opacity: 0;
  transform: translateY(22px);
  animation: heroAfterIntro 720ms var(--ease) forwards;
}
body.intro-running .hero .eyebrow { animation-delay: 520ms; }
body.intro-running .hero h1 { animation-delay: 580ms; }
body.intro-running .hero-intro { animation-delay: 640ms; }
body.intro-running .hero-actions { animation-delay: 700ms; }
body.intro-running .hero-links { animation-delay: 750ms; }
body.intro-running .hero-signal { animation-delay: 800ms; }
body.intro-running .proof { animation-delay: 830ms; }

@keyframes liExit {
  to { opacity: 0; transform: scale(1.04); visibility: hidden; }
}
@keyframes liGlowIn {
  to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}
@keyframes liOrbIn {
  to { opacity: .55; transform: translate(-50%, -50%) scale(1); }
}
@keyframes liMarkIn {
  to { opacity: 1; transform: scale(1); filter: blur(0); }
}
@keyframes liMaskSweep {
  to { -webkit-mask-position: 0 100%; mask-position: 0 100%; }
}
@keyframes liRing {
  0%   { opacity: 0; transform: scale(.42); }
  38%  { opacity: .85; }
  100% { opacity: 0; transform: scale(1.5); }
}
@keyframes liBloom {
  0%   { opacity: 0; }
  46%  { opacity: .85; }
  100% { opacity: .22; }
}
@keyframes navAfterIntro {
  to { opacity: 1; transform: translateY(0); }
}
@keyframes heroAfterIntro {
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 640px) {
  .li-stage { width: min(60vw, 180px); }
  .li-mark { width: clamp(58px, 18vw, 92px); }
  .li-orb { width: min(86vw, 420px); }
  .li-glow-a { width: min(82vw, 420px); }
}

@media (prefers-reduced-motion: reduce) {
  .load-intro { display: none; }
  body.intro-running .nav,
  body.intro-running .hero .eyebrow,
  body.intro-running .hero h1,
  body.intro-running .hero-intro,
  body.intro-running .hero-actions,
  body.intro-running .hero-links,
  body.intro-running .hero-signal,
  body.intro-running .proof {
    opacity: 1;
    transform: none;
    animation: none;
  }
}

/* ---------- Primitives ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--navy);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--navy);
  opacity: .55;
  display: inline-block;
}
.eyebrow.no-rule::before { display: none; }

.serif { font-family: var(--serif); font-weight: 300; letter-spacing: -0.01em; }
.accent { color: var(--navy); }

/* Section rhythm */
.section { padding-top: clamp(72px, 11vw, 150px); padding-bottom: clamp(72px, 11vw, 150px); }
.section-head { max-width: 760px; margin-bottom: clamp(40px, 6vw, 72px); }
.section-head h2 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.06;
  letter-spacing: -0.02em;
  margin-top: 22px;
  color: var(--ink);
}
.section-head p {
  margin-top: 22px;
  font-size: clamp(16px, 1.6vw, 19px);
  color: var(--ink-2);
  max-width: 620px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
  padding: 14px 26px;
  border-radius: 4px;
  transition: background var(--dur) var(--ease), transform 120ms var(--ease), border-color var(--dur) var(--ease), color var(--dur) var(--ease);
  white-space: nowrap;
}
.btn svg { width: 17px; height: 17px; stroke-width: 1.8; }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-bright); }
.btn-primary:active { transform: scale(.985); background: var(--navy-deep); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}
.btn-ghost:hover { border-color: var(--navy); color: var(--navy); }
.btn-ghost:active { transform: scale(.985); }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 80;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(244, 241, 233, 0.82);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--line-soft);
}
.nav-inner {
  height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.wordmark {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.01em;
}
.wordmark > span { white-space: nowrap; }
@media (max-width: 640px) { .wordmark .sub { display: none; } }
.wordmark .mono {
  width: 34px; height: 34px;
  border: 1.5px solid var(--navy);
  border-radius: 4px;
  display: grid; place-items: center;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 17px;
  color: var(--navy);
  letter-spacing: 0;
}
.wordmark .sub { color: var(--faint); font-weight: 500; font-size: 13px; letter-spacing: 0.04em; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-links a {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink-2);
  padding: 8px 16px;
  border-radius: 4px;
  position: relative;
  transition: color var(--dur) var(--ease);
}
.nav-links a:hover { color: var(--navy); }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-cta .btn { padding: 11px 20px; font-size: 14px; }
.nav-burger { display: none; }

/* ============================================================
   HERO
   ============================================================ */
.hero-world {
  --mx: 0;
  --my: 0;
  position: relative;
  min-height: 100svh;
  padding-top: 84px;
  padding-bottom: 28px;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background:
    radial-gradient(circle at calc(60% + (var(--mx) * 5%)) calc(42% + (var(--my) * 4%)), rgba(44, 86, 138, .16), transparent 34%),
    linear-gradient(180deg, rgba(252,251,247,.98) 0%, var(--paper) 76%, rgba(239,235,225,.95) 100%);
}
.hero-world::before,
.hero-world::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero-world::before {
  z-index: -3;
  background:
    linear-gradient(90deg, rgba(28,58,94,.055) 1px, transparent 1px),
    linear-gradient(180deg, rgba(28,58,94,.05) 1px, transparent 1px);
  background-size: 72px 72px;
  transform: translate3d(calc(var(--mx) * -10px), calc(var(--my) * -8px), 0);
  mask-image: radial-gradient(ellipse at 58% 42%, #000 0%, rgba(0,0,0,.76) 42%, transparent 76%);
}
.hero-world::after {
  z-index: -1;
  background:
    linear-gradient(90deg, transparent 0%, rgba(244,241,233,.58) 15%, rgba(244,241,233,0) 48%),
    linear-gradient(180deg, rgba(244,241,233,0), var(--paper) 94%);
}
.hero-grid-layer {
  position: absolute;
  inset: -10% -6%;
  z-index: -2;
  pointer-events: none;
  transform-style: preserve-3d;
}
.hero-grid-layer-a {
  background:
    linear-gradient(90deg, rgba(28,58,94,.08) 1px, transparent 1px),
    linear-gradient(180deg, rgba(28,58,94,.06) 1px, transparent 1px);
  background-size: 144px 144px;
  transform: perspective(900px) rotateX(62deg) translate3d(calc(var(--mx) * 18px), calc(var(--my) * 10px), 0);
  transform-origin: 55% 54%;
  opacity: .54;
  mask-image: linear-gradient(to bottom, transparent, #000 15%, #000 64%, transparent 92%);
}
.hero-grid-layer-b {
  background:
    linear-gradient(90deg, rgba(255,255,255,.56) 1px, transparent 1px),
    linear-gradient(180deg, rgba(28,58,94,.04) 1px, transparent 1px);
  background-size: 36px 36px;
  transform: translate3d(calc(var(--mx) * -7px), calc(var(--my) * -5px), 0);
  opacity: .26;
  mask-image: radial-gradient(circle at 62% 43%, #000, transparent 58%);
}
.hero-glow {
  position: absolute;
  z-index: -2;
  pointer-events: none;
  border-radius: 999px;
  filter: blur(22px);
}
.hero-glow-a {
  width: 460px;
  height: 460px;
  right: 12%;
  top: 16%;
  background: rgba(28, 58, 94, .11);
  transform: translate3d(calc(var(--mx) * 20px), calc(var(--my) * 16px), 0);
}
.hero-glow-b {
  width: 300px;
  height: 300px;
  left: 7%;
  bottom: 16%;
  background: rgba(154, 148, 136, .16);
  transform: translate3d(calc(var(--mx) * -14px), calc(var(--my) * -10px), 0);
}
.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.34fr) minmax(340px, .76fr);
  gap: 44px;
  align-items: center;
}
.hero-copy {
  max-width: 780px;
}

/* ---- Full-bleed photo hero ---- */
.hero-bleed { background: var(--paper); }
.hero-bleed::before,
.hero-bleed::after { display: none; }
.hero-photo {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  transform: scale(1.05) translate3d(calc(var(--mx) * -9px), calc(var(--my) * -7px), 0);
  transition: transform 420ms var(--ease);
  will-change: transform;
}
.hero-photo-day { background-image: url('assets/visionpro-light.png'); }
.hero-photo-night {
  background-image: url('assets/visionpro-night.png');
  opacity: 0;
  transition: opacity 760ms var(--ease), transform 420ms var(--ease);
}
.hero-bleed.is-night .hero-photo-night { opacity: 1; }

/* Day / night scene toggle (lives in the navbar) */
.scene-toggle {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  border-radius: 999px;
  border: 1px solid var(--navy-line);
  background: var(--navy-tint);
}
.scene-btn {
  width: 34px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--muted);
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.scene-btn svg { width: 16px; height: 16px; }
.scene-btn.on { background: var(--navy); color: #fff; }
.scene-btn:not(.on):hover { color: var(--navy); }
body.theme-night .scene-btn.on { color: #10100B; }

/* Language toggle (shares the scene-toggle pill) */
.lang-btn {
  width: auto;
  padding: 0 10px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .06em;
}
/* On small screens the language toggle lives in the mobile menu instead */
@media (max-width: 700px) {
  .nav .lang-toggle { display: none; }
}
.hero-photo-scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(98deg,
      var(--paper) 0%,
      var(--paper) 22%,
      color-mix(in srgb, var(--paper) 94%, transparent) 38%,
      color-mix(in srgb, var(--paper) 74%, transparent) 54%,
      color-mix(in srgb, var(--paper) 28%, transparent) 74%,
      transparent 90%),
    linear-gradient(180deg,
      color-mix(in srgb, var(--paper) 64%, transparent) 0%,
      transparent 20%,
      transparent 60%,
      var(--paper) 100%);
}
.hero-bleed .hero-inner { grid-template-columns: 1fr; }
.hero-bleed .hero-copy { max-width: 600px; }
.hero-shot-m { display: none; }
.hero-bleed .hero-copy h1,
.hero-bleed .hero-copy .hero-intro,
.hero-bleed .hero-copy .hero-eyebrow {
  text-shadow: 0 0 34px var(--paper), 0 1px 12px var(--paper), 0 1px 3px var(--paper);
}
.hero h1 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 72px;
  line-height: 1.06;
  letter-spacing: 0;
  margin: 42px 0 0;
  text-wrap: balance;
}
.hero-eyebrow {
  color: var(--navy);
  letter-spacing: .19em;
}
.hero-intro {
  margin-top: 38px;
  font-size: 19px;
  line-height: 1.7;
  color: var(--ink-2);
  max-width: 620px;
}
.hero-intro-mobile { display: none; }
.hero-actions { margin-top: 56px; display: flex; flex-wrap: wrap; gap: 14px; }
.hero-links {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
}
.hero-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: color var(--dur) var(--ease);
}
.hero-links a:hover { color: var(--navy); }
.hero-links svg { stroke-width: 1.8; }
.hero-signal {
  margin-top: 40px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .02em;
}
.hero-signal .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #3a9a5c;
  box-shadow: 0 0 0 4px rgba(58,154,92,.14);
}
.hero-visual {
  position: relative;
  min-height: 470px;
  display: grid;
  place-items: center;
  perspective: 1300px;
}
@keyframes heroFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}
.particle-stage {
  position: relative;
  width: min(430px, 100%);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}
.particle-stage::before {
  content: "";
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 38% 32%, rgba(255,255,255,.9), transparent 13%),
    radial-gradient(circle at center, rgba(28,58,94,.05), rgba(28,58,94,0) 64%);
  filter: blur(.2px);
}
.sphere-aura {
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(28,58,94,.1), rgba(28,58,94,0) 68%);
  box-shadow: 0 42px 120px rgba(20, 43, 71, .13);
}
.particle-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.sphere-orbit {
  position: absolute;
  width: 76%;
  height: 76%;
  border: 1px solid rgba(28,58,94,.13);
  border-radius: 50%;
  transform: rotateX(64deg) rotateZ(-18deg);
}
.sphere-orbit-b {
  width: 62%;
  height: 62%;
  border-color: rgba(28,58,94,.09);
  transform: rotateX(72deg) rotateZ(34deg);
}
/* Proof strip */
.proof {
  margin-top: 26px;
  border-top: 1px solid rgba(28,58,94,.14);
  border-bottom: 1px solid rgba(28,58,94,.12);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: rgba(252,251,247,.34);
  backdrop-filter: blur(10px);
}
.hero-proof { position: relative; z-index: 2; }
.proof-item { padding: 18px 26px; }
.proof-item:not(:last-child) { border-right: 1px solid rgba(28,58,94,.12); }
.proof-item .num {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 34px;
  line-height: 1;
  letter-spacing: 0;
  color: var(--navy);
}
.proof-item .lbl { margin-top: 11px; font-size: 13.5px; color: var(--ink-2); line-height: 1.45; max-width: 220px; }

/* ============================================================
   SELECTED WORK
   ============================================================ */
.work-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(18px, 2.4vw, 28px);
}
.case-card {
  position: relative;
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  padding: clamp(26px, 3vw, 40px);
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-height: 340px;
  overflow: hidden;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.case-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-2);
  border-color: var(--navy-line);
}
.case-card .cc-top { display: flex; align-items: center; justify-content: space-between; }
.case-card .cc-idx {
  font-family: var(--serif);
  font-size: 16px;
  color: var(--faint);
  letter-spacing: 0.04em;
}
.case-card .cc-tag {
  font-size: 11px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--navy);
  background: var(--navy-tint);
  padding: 5px 11px; border-radius: 100px;
}
.case-card h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(23px, 2.5vw, 30px);
  line-height: 1.12;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin-top: 4px;
}
.case-card .cc-desc { font-size: 15.5px; color: var(--ink-2); line-height: 1.55; }
.case-card .cc-foot {
  margin-top: auto;
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 16px;
  padding-top: 18px;
  border-top: 1px solid var(--line-soft);
}
.case-card .cc-metric { display: flex; flex-direction: column; gap: 2px; }
.case-card .cc-metric b {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(22px, 2.4vw, 28px); color: var(--navy); letter-spacing: -0.01em; line-height: 1;
}
.case-card .cc-metric span { font-size: 12.5px; color: var(--muted); }
.case-card .cc-open {
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--line);
  display: grid; place-items: center;
  color: var(--navy);
  flex-shrink: 0;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.case-card .cc-open svg { width: 18px; height: 18px; stroke-width: 1.8; }
.case-card:hover .cc-open { background: var(--navy); color: #fff; transform: rotate(0deg) translateX(0); border-color: var(--navy); }

/* Featured (wide) card variant */
.case-card.wide { grid-column: 1 / -1; flex-direction: row; gap: clamp(28px, 4vw, 56px); align-items: stretch; min-height: 0; }
.case-card.wide .cc-body { flex: 1; display: flex; flex-direction: column; gap: 16px; }
.case-card.wide .cc-visual {
  flex: 0 0 42%;
  border-radius: 8px;
  background: var(--paper-2);
  position: relative;
  overflow: hidden;
  min-height: 240px;
  display: grid; place-items: center;
}
.case-card.wide .cc-visual img { width: 86%; filter: drop-shadow(0 18px 40px rgba(27,25,21,.18)); }

/* ============================================================
   CASE STUDY MODAL
   ============================================================ */
.modal-scrim {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(20, 18, 15, 0.46);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex; justify-content: center;
  padding: clamp(0px, 3vw, 48px);
  opacity: 0;
  animation: scrimIn var(--dur) var(--ease) forwards;
  overflow-y: auto;
}
@keyframes scrimIn { to { opacity: 1; } }
.modal {
  position: relative;
  width: 100%;
  max-width: 980px;
  background: var(--paper);
  border-radius: 12px;
  box-shadow: var(--shadow-3);
  overflow: hidden;
  margin: auto;
  transform: translateY(14px);
  opacity: 0;
  animation: modalIn 460ms var(--ease) 40ms forwards;
}
@keyframes modalIn { to { transform: translateY(0); opacity: 1; } }
.modal-close {
  position: absolute; top: 18px; right: 18px; z-index: 5;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(252,251,247,.9);
  backdrop-filter: blur(8px);
  border: 1px solid var(--line);
  display: grid; place-items: center;
  color: var(--ink);
  transition: background var(--dur) var(--ease), transform 120ms var(--ease);
}
.modal-close:hover { background: #fff; color: var(--navy); }
.modal-close:active { transform: scale(.94); }
.modal-close svg { width: 20px; height: 20px; stroke-width: 1.8; }

.modal-hero { padding: clamp(36px, 5vw, 60px) clamp(28px, 5vw, 64px) clamp(28px, 4vw, 40px); border-bottom: 1px solid var(--line); }
.modal-hero .cc-tag {
  font-size: 11px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--navy); background: var(--navy-tint); padding: 5px 11px; border-radius: 100px;
}
.modal-hero h2 {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(32px, 4.5vw, 52px); line-height: 1.05; letter-spacing: -0.022em;
  margin: 20px 0 0; max-width: 18ch; text-wrap: balance;
}
.modal-hero .lede { margin-top: 20px; font-size: clamp(16px, 1.7vw, 19px); color: var(--ink-2); line-height: 1.6; max-width: 60ch; }

.modal-body { padding: clamp(28px, 5vw, 56px) clamp(28px, 5vw, 64px) clamp(40px, 6vw, 72px); }
.mod-section + .mod-section { margin-top: clamp(34px, 4.5vw, 52px); }
.mod-section > .eyebrow { margin-bottom: 16px; }
.mod-section p { font-size: 16.5px; line-height: 1.66; color: var(--ink-2); max-width: 64ch; }
.mod-section p + p { margin-top: 14px; }

.did-list { display: grid; gap: 2px; margin-top: 4px; }
.did-list li {
  list-style: none;
  display: grid; grid-template-columns: 26px 1fr; gap: 8px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 16px; color: var(--ink-2); line-height: 1.55;
}
.did-list li .n { font-family: var(--serif); color: var(--navy); font-size: 15px; }

/* Result band */
.result-band {
  margin-top: 8px;
  background: var(--navy);
  color: #fff;
  border-radius: 10px;
  padding: clamp(28px, 4vw, 44px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 24px;
}
.result-band .r-item .rn {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(34px, 4.4vw, 52px); line-height: 1; letter-spacing: -0.02em;
}
.result-band .r-item .rl { margin-top: 12px; font-size: 14.5px; color: rgba(255,255,255,.74); line-height: 1.45; }

/* Before / After wordmark */
.ba {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 8px;
}
@media (max-width: 640px){ .ba { grid-template-columns: 1fr; } }
.ba-cell {
  border-radius: 8px; padding: clamp(28px, 4vw, 44px) 24px;
  min-height: 200px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 18px;
  position: relative; text-align: center;
}
.ba-cell .ba-lbl { position: absolute; top: 16px; left: 18px; font-size: 11px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; }
.ba-before { background: #E7E3D9; }
.ba-before .ba-lbl { color: var(--muted); }
.ba-after { background: #14181d; }
.ba-after .ba-lbl { color: rgba(255,255,255,.45); }
.wm-before { font-family: Arial, sans-serif; font-weight: 700; font-size: clamp(20px, 3vw, 30px); letter-spacing: -0.02em; color: #6c6a63; text-transform: uppercase; }
.wm-after { display: flex; flex-direction: column; align-items: center; gap: 7px; }
.wm-after .wm-main { font-family: var(--serif); font-weight: 300; font-size: clamp(22px, 3.2vw, 34px); letter-spacing: 0.42em; color: #fff; text-indent: 0.42em; }
.wm-after .wm-tag { font-family: var(--sans); font-size: 9.5px; font-weight: 600; letter-spacing: 0.42em; color: var(--navy-bright); text-indent: 0.42em; }
.ba-cell .ba-note { font-size: 13px; color: var(--muted); }
.ba-after .ba-note { color: rgba(255,255,255,.5); }

/* SEO chart */
.seo-chart { margin-top: 8px; background: var(--surface); border: 1px solid var(--line-soft); border-radius: 10px; padding: clamp(24px, 3vw, 36px); }
.seo-chart svg { width: 100%; height: auto; display: block; }

/* Process diagram (floor-plan) */
.flow { margin-top: 8px; display: flex; flex-direction: column; gap: 14px; }
.flow-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }
.flow-step {
  background: var(--surface); border: 1px solid var(--line); border-radius: 8px;
  padding: 16px 18px; position: relative;
}
.flow-step .fs-k { font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--navy); }
.flow-step .fs-t { margin-top: 7px; font-size: 14.5px; color: var(--ink); font-weight: 600; line-height: 1.35; }
.flow-step .fs-d { margin-top: 5px; font-size: 13px; color: var(--muted); line-height: 1.45; }
.flow-agents {
  border: 1px dashed var(--navy-line);
  border-radius: 10px;
  padding: 16px;
  background: var(--navy-tint);
}
.flow-agents .fa-head { font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--navy); margin-bottom: 12px; }
.flow-agents .fa-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px,1fr)); gap: 10px; }
.flow-agents .fa-cell { background: var(--surface-2); border: 1px solid var(--line-soft); border-radius: 6px; padding: 12px 14px; font-size: 13px; color: var(--ink-2); }
.flow-agents .fa-cell b { display: block; color: var(--ink); font-size: 13.5px; margin-bottom: 3px; }
.flow-arrow { display: grid; place-items: center; color: var(--faint); }
.flow-arrow svg { width: 18px; height: 18px; }

/* Floor-plan input → output example */
.io-grid { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; margin-bottom: 6px; }
.io-cell { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.io-cell img {
  width: 100%; border-radius: 8px; border: 1px solid var(--line);
  background: #fff; box-shadow: var(--shadow-1);
  cursor: zoom-in; aspect-ratio: 4 / 3; object-fit: contain; padding: 8px;
  transition: box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.io-cell img:hover { box-shadow: var(--shadow-2); transform: translateY(-2px); }
.io-lbl { font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; display: inline-flex; align-items: center; gap: 8px; }
.io-lbl::before { content: ""; width: 7px; height: 7px; border-radius: 50%; }
.io-in { color: var(--muted); }
.io-in::before { background: var(--faint); }
.io-out { color: var(--navy); }
.io-out::before { background: var(--navy); }
.io-arrow { color: var(--faint); display: grid; place-items: center; }
.io-arrow svg { width: 22px; height: 22px; }
@media (max-width: 560px) {
  .io-grid { grid-template-columns: 1fr; }
  .io-arrow { transform: rotate(90deg); margin: 2px 0; }
}

/* Modal media */
.modal-media { margin-top: 8px; border-radius: 10px; overflow: hidden; background: var(--paper-2); display:grid; place-items:center; }
.modal-media.pad { padding: clamp(24px, 4vw, 48px); }
.modal-media img { width: 100%; }
.modal-media.pad img { width: 82%; filter: drop-shadow(0 20px 44px rgba(27,25,21,.2)); }
.modal-media video { width: 100%; display:block; }
.media-2 { display:grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 8px; }
@media (max-width: 640px){ .media-2 { grid-template-columns: 1fr; } }

/* ============================================================
   SKILLS
   ============================================================ */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: var(--surface);
}
.skill-cell {
  padding: clamp(24px, 3vw, 36px) clamp(20px, 2.4vw, 30px);
  border-right: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  display: flex; flex-direction: column; gap: 14px;
  transition: background var(--dur) var(--ease);
}
.skill-cell:hover { background: var(--navy-tint); }
.skill-cell .si { width: 26px; height: 26px; color: var(--navy); stroke-width: 1.6; }
.skill-cell .sn { font-weight: 600; font-size: 15.5px; letter-spacing: -0.01em; color: var(--ink); }
.skill-cell .sd { font-size: 13px; color: var(--muted); line-height: 1.45; }

/* ============================================================
   GALLERY
   ============================================================ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(14px, 1.8vw, 22px);
  grid-auto-flow: dense;
}
.gtile {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  background: var(--paper-2);
  border: 1px solid var(--line-soft);
  cursor: pointer;
  min-height: 180px;
}
.gtile img, .gtile video { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease); }
.gtile.contain { display: grid; place-items: center; }
.gtile.contain img { object-fit: contain; padding: 8%; }
.gtile:hover img, .gtile:hover video { transform: scale(1.03); }
.gtile .gcap {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 16px 18px 14px;
  background: linear-gradient(to top, rgba(20,18,15,.78), rgba(20,18,15,0));
  color: #fff;
  font-size: 13px; font-weight: 500; letter-spacing: 0.01em;
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  opacity: 0; transform: translateY(6px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.gtile:hover .gcap { opacity: 1; transform: translateY(0); }
.gtile .play {
  position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none;
}
.gtile .play span {
  width: 58px; height: 58px; border-radius: 50%;
  background: rgba(252,251,247,.92); backdrop-filter: blur(6px);
  display: grid; place-items: center; color: var(--navy);
  box-shadow: var(--shadow-2);
}
.gtile .play svg { width: 22px; height: 22px; margin-left: 3px; }

/* Endless gallery slider (marquee) */
.gallery-marquee {
  position: relative;
  overflow: hidden;
  margin-top: clamp(28px, 4vw, 48px);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}
.gallery-track {
  display: flex;
  gap: clamp(14px, 1.6vw, 22px);
  width: max-content;
  will-change: transform;
  animation: gallerySlide 64s linear infinite;
}
.gallery-marquee:hover .gallery-track { animation-play-state: paused; }
.gslide {
  flex: 0 0 auto;
  height: clamp(220px, 32vw, 340px);
  min-height: 0;
  cursor: zoom-in;
}
.gslide img,
.gslide video {
  width: auto;
  height: 100%;
  object-fit: cover;
}
.gslide.contain {
  width: clamp(180px, 24vw, 250px);
  background: var(--paper-2);
}
.gslide.contain img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 9%;
}
@keyframes gallerySlide {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .gallery-track { animation: none; }
  .gallery-marquee { overflow-x: auto; -webkit-overflow-scrolling: touch; }
}

/* gallery spans */
.sp-3 { grid-column: span 3; }
.sp-4 { grid-column: span 4; }
.sp-5 { grid-column: span 5; }
.sp-6 { grid-column: span 6; }
.sp-7 { grid-column: span 7; }
.sp-8 { grid-column: span 8; }
.row-tall { grid-row: span 2; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 110;
  background: rgba(18,16,13,.86);
  backdrop-filter: blur(10px);
  display: grid; place-items: center; padding: 4vw;
  opacity: 0; animation: scrimIn 260ms var(--ease) forwards;
}
.lightbox img, .lightbox video { max-width: 92vw; max-height: 88vh; border-radius: 8px; box-shadow: var(--shadow-3); }
.lightbox .lb-close { position: fixed; top: 22px; right: 22px; width: 46px; height: 46px; border-radius: 50%; background: rgba(255,255,255,.12); color:#fff; display:grid; place-items:center; }
.lightbox .lb-close:hover { background: rgba(255,255,255,.22); }
.lightbox .lb-close svg { width: 22px; height: 22px; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact { background: var(--ink); color: #fff; border-radius: 0; }
.contact .eyebrow { color: #b9c6d6; }
.contact .eyebrow::before { background: #b9c6d6; }
.contact h2 {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(36px, 6vw, 76px); line-height: 1.03; letter-spacing: -0.025em;
  margin-top: 22px; max-width: 14ch; text-wrap: balance;
}
.contact h2 .em { font-style: italic; color: #8fb0d4; }
.contact-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(40px, 6vw, 80px); align-items: end; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }
.contact .btn-primary { background: #fff; color: var(--ink); }
.contact .btn-primary:hover { background: #e9e4d8; }
.contact .btn-ghost { border-color: rgba(255,255,255,.24); color: #fff; }
.contact .btn-ghost:hover { border-color: #fff; color: #fff; }
.contact-links { display: flex; flex-direction: column; gap: 2px; }
.contact-link {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 0;
  border-top: 1px solid rgba(255,255,255,.14);
  font-size: 16px; transition: color var(--dur) var(--ease), padding var(--dur) var(--ease);
}
.contact-link:last-child { border-bottom: 1px solid rgba(255,255,255,.14); }
.contact-link .cl-k { color: rgba(255,255,255,.5); font-size: 13px; letter-spacing: .04em; }
.contact-link .cl-v { font-weight: 500; display: flex; align-items: center; gap: 10px; }
.contact-link:hover { color: #8fb0d4; padding-left: 6px; }
.contact-link:hover .cl-v { color: #fff; }
.contact-link svg { width: 17px; height: 17px; opacity: .6; }

/* Footer */
.footer { background: var(--ink); color: rgba(255,255,255,.55); padding: 40px 0; border-top: 1px solid rgba(255,255,255,.1); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: 13.5px; }
.footer-inner .dot-sep { display: inline-flex; gap: 10px; align-items: center; }
.footer a:hover { color: #fff; }

/* ============================================================
   Reveal animation
   ============================================================ */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 700ms var(--ease), transform 700ms var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .modal, .modal-scrim, .lightbox, .msheet, .sphere-orbit { animation: none; opacity: 1; transform: none; }
  .hero-world::before,
  .hero-grid-layer,
  .hero-glow { transform: none; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1180px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1.18fr) minmax(320px, .82fr);
    gap: 44px;
  }
  .hero h1 { font-size: 58px; }
  .hero-visual { min-height: 500px; }
}
@media (max-width: 1024px) {
  .hero-world {
    min-height: auto;
    padding-top: 118px;
    justify-content: start;
  }
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .hero-copy { max-width: 820px; }
  .proof { margin-top: 36px; }

  /* Full-bleed hero on tablet/mobile: photo as ambient backdrop,
     vertical paper scrim keeps the copy fully readable up top. */
  .hero-bleed { min-height: 92svh; }
  .hero-bleed .hero-copy { max-width: none; }
  .hero-bleed .hero-photo { background-position: center 82%; }
  .hero-bleed .hero-photo-scrim {
    background: linear-gradient(180deg,
      var(--paper) 0%,
      var(--paper) 60%,
      color-mix(in srgb, var(--paper) 80%, transparent) 74%,
      color-mix(in srgb, var(--paper) 38%, transparent) 89%,
      color-mix(in srgb, var(--paper) 10%, transparent) 100%);
  }
}
@media (max-width: 1000px) {
  .skills-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-burger { display: grid; place-items: center; width: 44px; height: 44px; }
  .nav-burger svg { width: 24px; height: 24px; }
  /* CV + Get-in-touch live in the burger menu on mobile — keep the bar clean */
  .nav-cta .btn { display: none; }
  .nav-cta { gap: 10px; }
  .work-grid { grid-template-columns: 1fr; }
  .case-card.wide { flex-direction: column; }
  .case-card.wide .cc-visual { flex-basis: auto; min-height: 220px; }
  .contact-grid { grid-template-columns: 1fr; align-items: start; }
  .gallery-grid > * { grid-column: span 6 !important; grid-row: auto !important; }

  /* Mobile hero: clean vertical stack instead of full-bleed photo */
  .hero-bleed { min-height: auto; background: var(--paper); }
  .hero-bleed .hero-photo,
  .hero-bleed .hero-photo-scrim { display: none; }
  .hero-bleed .hero-copy { max-width: none; }
  .hero-bleed .hero-copy h1,
  .hero-bleed .hero-copy .hero-intro,
  .hero-bleed .hero-copy .hero-eyebrow { text-shadow: none; }
  .hero-shot-m {
    display: block;
    padding: 0 var(--gutter);
    margin-top: 18px;
  }
  .hero-shot-m img {
    width: 100%;
    border-radius: 14px;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-2);
  }
}
@media (max-width: 560px) {
  .hero-world {
    padding-top: 86px;
    padding-bottom: 34px;
  }
  .hero-world::before {
    background-size: 48px 48px;
  }
  .hero-grid-layer-a { opacity: .34; }
  .hero h1 {
    font-size: 36px;
    line-height: 1.04;
  }
  .hero-eyebrow {
    font-size: 10px;
    line-height: 1.8;
    letter-spacing: .16em;
  }
  .hero-intro {
    margin-top: 18px;
    font-size: 14.5px;
    line-height: 1.58;
  }
  .hero-intro-desktop { display: none; }
  .hero-intro-mobile { display: block; }
  .hero-actions {
    margin-top: 22px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .hero-actions .btn {
    justify-content: center;
    width: 100%;
    padding-left: 16px;
    padding-right: 16px;
  }
  .hero-links { justify-content: center; margin-top: 18px; }
  .hero-signal {
    display: none;
  }
  .hero-visual {
    min-height: auto;
    margin-top: 0;
  }
  .proof {
    grid-template-columns: repeat(3, minmax(124px, 1fr));
    overflow-x: auto;
    margin-top: 26px;
  }
  .proof-item { padding: 16px 12px; }
  .proof-item:not(:last-child) { border-right: 1px solid rgba(28,58,94,.12); border-bottom: none; }
  .proof-item .num { font-size: 23px; letter-spacing: -0.01em; }
  .proof-item .lbl { font-size: 12px; min-width: 0; }
  .skills-grid { grid-template-columns: 1fr; }
  .gallery-grid > * { grid-column: span 12 !important; }
  .nav-cta .btn span { display: none; }
}

/* Mobile menu sheet */
.msheet {
  position: fixed; inset: 0; z-index: 90;
  background: var(--paper);
  display: flex; flex-direction: column;
  padding: 26px var(--gutter);
  opacity: 0; animation: scrimIn 240ms var(--ease) forwards;
}
.msheet-top { display: flex; align-items: center; justify-content: space-between; height: 48px; }
.msheet nav { margin-top: 30px; display: flex; flex-direction: column; gap: 4px; }
.msheet nav a {
  font-family: var(--serif); font-weight: 300; font-size: 34px; letter-spacing: -0.02em;
  padding: 14px 0; border-bottom: 1px solid var(--line-soft); color: var(--ink);
}
.msheet nav a:active { color: var(--navy); }
.msheet .msheet-cta { margin-top: auto; display: flex; flex-direction: column; gap: 12px; }

/* ============================================================
   Logo mark
   ============================================================ */
.mono-logo { width: 30px; height: 34px; display: block; }

/* ============================================================
   Rebrand — positioning + product renaming
   ============================================================ */
.rename { margin-top: 8px; }
.rename-pos { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 18px; }
@media (max-width: 640px) { .rename-pos { grid-template-columns: 1fr; } }
.rpos-cell { border-radius: 8px; padding: 24px 24px; min-height: 150px; display: flex; flex-direction: column; }
.rpos-before { background: #E7E3D9; }
.rpos-after { background: var(--navy); color: #fff; }
.rpos-cell .rk { font-size: 11px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; }
.rpos-before .rk { color: var(--muted); }
.rpos-after .rk { color: rgba(255,255,255,.55); }
.rpos-cell .rv { margin-top: 14px; font-family: var(--serif); font-weight: 300; font-size: clamp(18px, 2.2vw, 24px); line-height: 1.2; letter-spacing: -0.01em; }
.rename-rows { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--surface); }
.rename-row { display: grid; grid-template-columns: 1fr 24px 1fr; align-items: center; gap: 14px; padding: 14px 20px; border-bottom: 1px solid var(--line-soft); }
.rename-row:last-child { border-bottom: none; }
.rename-row .old { color: var(--muted); font-size: 14.5px; }
.rename-row .arr { color: var(--faint); display: grid; place-items: center; }
.rename-row .new { font-size: 15.5px; color: var(--ink); }
.rename-row .new b { color: var(--navy); font-weight: 700; }
@media (max-width: 520px) {
  .rename-row { grid-template-columns: 1fr; gap: 4px; padding: 13px 16px; }
  .rename-row .arr { display: none; }
}

/* ============================================================
   Go-to-market stepper
   ============================================================ */
.gtm { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; margin-top: 8px; background: var(--surface); }
.gtm-step { padding: 22px 20px; border-right: 1px solid var(--line-soft); }
.gtm-step:last-child { border-right: none; }
.gtm-step .gk { font-family: var(--serif); font-size: 15px; color: var(--navy); letter-spacing: 0.04em; }
.gtm-step .gt { margin-top: 10px; font-weight: 600; font-size: 15.5px; color: var(--ink); }
.gtm-step .gd { margin-top: 6px; font-size: 13px; color: var(--muted); line-height: 1.45; }
@media (max-width: 640px) {
  .gtm { grid-template-columns: 1fr 1fr; }
  .gtm-step:nth-child(2n) { border-right: none; }
  .gtm-step:nth-child(1), .gtm-step:nth-child(2) { border-bottom: 1px solid var(--line-soft); }
}

/* ============================================================
   Catalogue covers (sales enablement)
   ============================================================ */
.catalogs { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 18px; margin-top: 8px; align-items: start; }
.cat-note { margin-top: 18px; font-size: 13.5px; color: var(--muted); }
.cat-card {
  display: flex; flex-direction: column;
  aspect-ratio: 1 / 1.414;
  border-radius: 8px; overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-1);
  padding: 24px 22px; position: relative;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.cat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); }
.cat-paper { background: var(--surface); color: var(--ink); }
.cat-navy { background: var(--navy); color: #fff; }
.cat-card .ce { font-size: 10px; font-weight: 700; letter-spacing: 0.26em; text-transform: uppercase; }
.cat-paper .ce { color: var(--navy); }
.cat-navy .ce { color: rgba(255,255,255,.6); }
.cat-card .ct { margin-top: auto; font-family: var(--serif); font-weight: 300; font-size: clamp(22px, 2.4vw, 28px); line-height: 1.06; letter-spacing: -0.02em; }
.cat-card .cs { margin-top: 11px; font-size: 12.5px; opacity: .72; line-height: 1.4; }
.cat-card .cf { margin-top: 16px; padding-top: 14px; display: flex; align-items: center; justify-content: space-between; font-size: 11.5px; font-weight: 600; letter-spacing: 0.03em; border-top: 1px solid rgba(120,120,120,.22); }
.cat-navy .cf { border-top-color: rgba(255,255,255,.2); }
.cat-card .cf svg { width: 15px; height: 15px; }

/* catalogue cover inside the wide work card */
.case-card.wide .cc-visual .cat-card.in-card { width: auto; height: clamp(250px, 30vw, 330px); box-shadow: var(--shadow-2); }
@media (max-width: 860px) {
  .case-card.wide .cc-visual .cat-card.in-card { height: clamp(260px, 60vw, 340px); }
}
