/* Twilight Creations — blue-hour city: night blues, electric cyan, warm lit windows */

@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("../assets/fonts/montserrat-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("../assets/fonts/montserrat-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url("../assets/fonts/figtree-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url("../assets/fonts/figtree-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --ink-0: #070b13;        /* page ground */
  --ink-1: #0c1220;        /* raised surface */
  --ink-2: #121a2c;        /* higher surface */
  --line: rgba(140, 210, 255, 0.14);
  --text-hi: #f2f7fb;      /* cool white */
  --text-mid: #9fb0c8;     /* blue-tinted secondary */
  --cyan: #31c6f0;
  --cyan-soft: #6fd8f7;
  --cyan-ink: #31c6f0;      /* cyan used as text/small accents */
  --warm: #ffb35c;         /* lit windows only */
  --btn-ink: #03222e;
  --font-display: "Montserrat", "Avenir Next", sans-serif;
  --font-body: "Figtree", "Avenir Next", sans-serif;
  --radius: 16px;
  --shadow-1: 0 6px 24px rgba(2, 5, 14, 0.5);
  --shadow-2: 0 14px 48px rgba(2, 5, 14, 0.6);
  --container: 1140px;
}

* { box-sizing: border-box; }

h1, h2, h3, h4, p, li, span, b, i, em, strong, figcaption, legend, dt, dd, blockquote {
  cursor: default;
}
a, a *, button, button *, .btn, label, summary { cursor: pointer; }
input, textarea { cursor: text; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  overflow-x: clip;
}

body {
  margin: 0;
  background: var(--ink-0);
  color: var(--text-hi);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

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

::selection { background: rgba(49, 198, 240, 0.35); }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--cyan);
  color: var(--btn-ink);
  padding: 0.6rem 1rem;
  border-radius: 0 0 10px 0;
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { left: 0; }

/* ---------- Page ambience: the city's light carried through the scroll ---------- */

.ambience {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(46% 34% at 8% 28%, rgba(49, 198, 240, 0.07) 0%, transparent 70%),
    radial-gradient(50% 38% at 94% 62%, rgba(24, 120, 190, 0.08) 0%, transparent 70%),
    radial-gradient(60% 46% at 50% 108%, rgba(49, 198, 240, 0.06) 0%, transparent 75%);
}
.ambience::after {
  content: "";
  position: absolute;
  inset: -60px -60px 45% -60px;
  background-image:
    radial-gradient(1.5px 1.5px at 11% 19%, rgba(255, 179, 92, 0.5) 50%, transparent 51%),
    radial-gradient(1px 1px at 27% 67%, rgba(111, 216, 247, 0.45) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 44% 34%, rgba(255, 179, 92, 0.35) 50%, transparent 51%),
    radial-gradient(1px 1px at 61% 81%, rgba(111, 216, 247, 0.4) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 76% 23%, rgba(255, 179, 92, 0.42) 50%, transparent 51%),
    radial-gradient(1px 1px at 89% 55%, rgba(111, 216, 247, 0.38) 50%, transparent 51%),
    radial-gradient(1px 1px at 18% 88%, rgba(255, 179, 92, 0.3) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 68% 8%, rgba(111, 216, 247, 0.32) 50%, transparent 51%),
    radial-gradient(1px 1px at 35% 52%, rgba(255, 179, 92, 0.28) 50%, transparent 51%),
    radial-gradient(1px 1px at 95% 12%, rgba(111, 216, 247, 0.3) 50%, transparent 51%);
  animation: specks-drift 60s linear infinite alternate;
  opacity: 0.8;
}
@keyframes specks-drift {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(40px, -60px, 0); }
}

/* ---------- Preloader ---------- */

.preloader { display: none; }
html.js .preloader {
  display: grid;
  place-items: center;
  position: fixed;
  inset: 0;
  z-index: 90;
  background: var(--ink-0);
  transition: transform 0.75s cubic-bezier(0.76, 0, 0.24, 1);
}
html.js .preloader.done {
  transform: translateY(-100%);
  pointer-events: none;
}
.pre-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.5s ease, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.preloader.reveal .pre-inner { opacity: 1; transform: scale(1); }
.preloader.done .pre-inner { opacity: 0; transition: opacity 0.3s ease; }
.pre-badge { width: 64px; height: 64px; }
.pre-word {
  display: flex;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}
.pre-word span:last-child { color: var(--cyan-ink); }

html.js:not(.is-loaded) .hero-title .line,
html.js:not(.is-loaded) .hero-sub,
html.js:not(.is-loaded) .hero-actions {
  animation-play-state: paused;
}

/* ---------- Custom cursor (fine pointers only) ---------- */

.cursor-dot, .cursor-ring {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 95;
  pointer-events: none;
  border-radius: 50%;
  translate: -50% -50%;
}
@media (hover: hover) and (pointer: fine) {
  html.js .cursor-dot, html.js .cursor-ring { display: block; }
}
.cursor-dot {
  width: 8px;
  height: 8px;
  background: var(--cyan);
}
.cursor-ring {
  width: 38px;
  height: 38px;
  border: 1.5px solid rgba(49, 198, 240, 0.55);
  transition: width 0.25s ease, height 0.25s ease, border-color 0.25s ease, opacity 0.25s ease;
}
.cursor-ring.is-hover {
  width: 58px;
  height: 58px;
  border-color: rgba(49, 198, 240, 0.9);
}

/* ---------- Scroll progress ---------- */

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 60;
  background: linear-gradient(90deg, var(--cyan), var(--cyan-soft));
  box-shadow: 0 0 12px rgba(49, 198, 240, 0.55);
  transform: scaleX(0);
  transform-origin: 0 50%;
  pointer-events: none;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              background-color 0.2s ease,
              border-color 0.2s ease;
}
.btn-primary {
  background: var(--cyan);
  color: var(--btn-ink);
  box-shadow: 0 4px 20px rgba(49, 198, 240, 0.32);
  animation: cta-breathe 3.4s ease-in-out infinite;
}
@keyframes cta-breathe {
  0%, 100% { box-shadow: 0 4px 20px rgba(49, 198, 240, 0.3); }
  50% { box-shadow: 0 4px 30px rgba(49, 198, 240, 0.55); }
}
.btn-primary:hover {
  background: #55d2f5;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(49, 198, 240, 0.45);
}
.btn-primary:active { transform: translateY(0); }
.btn-ghost {
  background: rgba(7, 11, 19, 0.35);
  color: var(--text-hi);
  border-color: var(--line);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.btn-ghost:hover {
  border-color: rgba(140, 210, 255, 0.4);
  background: rgba(140, 210, 255, 0.08);
  transform: translateY(-2px);
}
.btn-lg { padding: 1.05rem 1.9rem; font-size: 1.0625rem; }

:is(a, button, input, textarea, [tabindex]):focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 6px;
}
.btn:focus-visible { border-radius: 999px; }

/* ---------- Nav ---------- */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(7, 11, 19, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0.8rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 2rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--text-hi);
  text-decoration: none;
}
.brand-badge { width: 40px; height: 40px; flex: none; }
.brand-lockup {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
  font-family: var(--font-display);
}
.brand-lockup b {
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.brand-lockup i {
  font-style: normal;
  font-weight: 600;
  font-size: 0.62rem;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--text-mid);
}
.nav-links {
  display: flex;
  gap: 1.6rem;
  margin-left: auto;
}
.nav-links a {
  color: var(--text-mid);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
  transition: color 0.2s ease;
}
.nav-links a:hover { color: var(--text-hi); }
.nav-cta { flex: none; }

.theme-toggle {
  width: 40px;
  height: 40px;
  flex: none;
  display: grid;
  place-items: center;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--text-hi);
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.theme-toggle:hover {
  border-color: rgba(140, 210, 255, 0.45);
  transform: translateY(-1px);
}
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .icon-moon { display: none; }
.theme-toggle .icon-sun { display: block; }
[data-theme="light"] .theme-toggle .icon-moon { display: block; }
[data-theme="light"] .theme-toggle .icon-sun { display: none; }

.menu-theme {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: none;
  border: none;
  padding: 0.65rem 0;
  font: inherit;
  font-weight: 600;
  color: var(--text-hi);
  cursor: pointer;
}
.menu-theme svg { width: 18px; height: 18px; color: var(--cyan-ink); }
.menu-theme .icon-moon { display: none; }
.menu-theme .icon-sun { display: block; }
[data-theme="light"] .menu-theme .icon-moon { display: block; }
[data-theme="light"] .menu-theme .icon-sun { display: none; }

.nav-toggle {
  display: none;
  margin-left: auto;
  background: none;
  border: none;
  padding: 0.6rem;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-hi);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle span + span { margin-top: 6px; }
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 0.4rem;
  padding: 0.8rem 1.5rem 1.4rem;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  padding-top: 0;
  padding-bottom: 0;
  transition:
    max-height 0.45s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.35s ease,
    transform 0.45s cubic-bezier(0.16, 1, 0.3, 1),
    padding 0.45s cubic-bezier(0.16, 1, 0.3, 1),
    visibility 0s linear 0.45s;
  background: rgba(7, 11, 19, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.mobile-menu a {
  color: var(--text-hi);
  text-decoration: none;
  font-weight: 600;
  padding: 0.65rem 0;
}
.mobile-menu .btn { margin-top: 0.6rem; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  min-height: 100dvh;
  min-height: var(--hero-h, 100dvh);
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-sky {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #04060c 0%, #070b13 40%, #0a1626 68%, #0e2c44 88%, #14496a 100%);
}
#scene {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 1;
}
.hero-sky .skyline { z-index: 2; }
.stars {
  position: absolute;
  inset: 0 0 30% 0;
  background-image:
    radial-gradient(1px 1px at 12% 22%, rgba(242, 247, 251, 0.8) 50%, transparent 51%),
    radial-gradient(1px 1px at 28% 8%, rgba(242, 247, 251, 0.55) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 41% 31%, rgba(242, 247, 251, 0.7) 50%, transparent 51%),
    radial-gradient(1px 1px at 57% 12%, rgba(242, 247, 251, 0.6) 50%, transparent 51%),
    radial-gradient(1px 1px at 66% 27%, rgba(242, 247, 251, 0.45) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 78% 7%, rgba(242, 247, 251, 0.75) 50%, transparent 51%),
    radial-gradient(1px 1px at 87% 21%, rgba(242, 247, 251, 0.55) 50%, transparent 51%),
    radial-gradient(1px 1px at 94% 38%, rgba(242, 247, 251, 0.4) 50%, transparent 51%),
    radial-gradient(1px 1px at 6% 44%, rgba(242, 247, 251, 0.5) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 49% 5%, rgba(242, 247, 251, 0.65) 50%, transparent 51%),
    radial-gradient(1px 1px at 71% 42%, rgba(242, 247, 251, 0.4) 50%, transparent 51%),
    radial-gradient(1px 1px at 19% 36%, rgba(242, 247, 251, 0.5) 50%, transparent 51%);
  animation: twinkle 7s ease-in-out infinite alternate;
}
@keyframes twinkle {
  from { opacity: 0.65; }
  to { opacity: 1; }
}
.glow {
  position: absolute;
  left: 50%;
  bottom: -12%;
  width: 140%;
  height: 62%;
  transform: translateX(-50%);
  background:
    radial-gradient(58% 82% at 50% 100%, rgba(49, 198, 240, 0.4) 0%, rgba(24, 120, 190, 0.26) 36%, rgba(20, 60, 120, 0.14) 62%, transparent 82%);
  filter: blur(10px);
}
.skyline {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: clamp(140px, 16vw, 220px);
}
.skyline-shape { fill: #03050b; }
.windows rect.w-c { fill: #8fdcf5; }
.windows rect { fill: var(--warm); opacity: 0.85; }
.windows rect:nth-child(3n) { animation: window-flicker 5s ease-in-out infinite alternate; }
.windows rect:nth-child(4n) { opacity: 0.5; }
.windows rect:nth-child(5n) { fill: var(--cyan); opacity: 0.6; }
@keyframes window-flicker {
  from { opacity: 0.35; }
  to { opacity: 0.9; }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--container);
  margin: 0 auto;
  padding: 8rem 1.5rem 9rem;
  width: 100%;
}
.hero-content::before {
  content: "";
  position: absolute;
  inset: 2rem -4rem 2rem -6rem;
  z-index: -1;
  background: radial-gradient(58% 62% at 32% 52%, rgba(4, 6, 12, 0.6) 0%, rgba(4, 6, 12, 0.3) 55%, transparent 78%);
  pointer-events: none;
}
.hero-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.4rem, 6.4vw, 5.6rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin: 0 0 1.4rem;
  max-width: 16ch;
  text-wrap: balance;
  text-shadow: 0 4px 30px rgba(2, 5, 14, 0.65);
}
.hero-title .line { display: inline-block; }
.hero-sub {
  font-size: clamp(1.0625rem, 1.6vw, 1.25rem);
  color: var(--text-hi);
  opacity: 0.86;
  max-width: 52ch;
  margin: 0 0 2.2rem;
  text-shadow: 0 2px 18px rgba(2, 5, 14, 0.7);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.hero-title .line, .hero-sub, .hero-actions {
  animation: rise-in 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.hero-title .line:nth-child(2) { animation-delay: 0.08s; }
.hero-title .line:nth-child(3) { animation-delay: 0.16s; }
.hero-sub { animation-delay: 0.26s; }
.hero-actions { animation-delay: 0.36s; }
@keyframes rise-in {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}

.scroll-cue.away { opacity: 0; pointer-events: none; }
.scroll-cue {
  transition: opacity 0.35s ease;

  position: absolute;
  left: 50%;
  bottom: 2rem;
  translate: -50% 0;
  z-index: 2;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: var(--text-hi);
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(7, 11, 19, 0.4);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: cue-bob 2.4s ease-in-out infinite;
}
.scroll-cue svg { width: 18px; height: 18px; }
@keyframes cue-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(7px); }
}

/* ---------- Who we work with ---------- */

.who {
  border-radius: 34px 34px 0 0;
  position: relative;
  z-index: 2;

  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: url("../assets/img/facets.svg"), rgba(12, 18, 32, 0.85);
  background-size: 420px 420px, auto;
  padding: 1.4rem 0 3.2rem;
  overflow: hidden;
}
.marquee {
  overflow: hidden;
  -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;
  align-items: center;
  gap: 2.2rem;
  padding: 0.6rem 0;
  white-space: nowrap;
  width: max-content;
  animation: marquee 36s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.3rem, 2.6vw, 2rem);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-hi);
}
.marquee-track span:last-of-type,
.marquee-track span:nth-of-type(12) { color: var(--cyan-ink); }
.marquee-track i {
  width: 8px;
  height: 8px;
  flex: none;
  border-radius: 1px;
  background: var(--cyan);
  rotate: 45deg;
  opacity: 0.7;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.who-line {
  max-width: var(--container);
  margin: 1.6rem auto 0;
  padding: 0 1.5rem;
  color: var(--text-mid);
  font-size: 1.05rem;
  max-width: 62ch;
  text-align: center;
}

/* ---------- Sections ---------- */

.section { padding: 6.5rem 0 4rem; }
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}
.section-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.9rem, 4.4vw, 3.6rem);
  line-height: 1.06;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  margin: 0 0 1.1rem;
  max-width: 24ch;
  text-wrap: balance;
}
.section-lede {
  color: var(--text-mid);
  font-size: 1.125rem;
  max-width: 58ch;
  margin: 0 0 3.5rem;
}

/* ---------- Services ---------- */

.service {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  padding: 3.2rem 0;
}
.service + .service { border-top: 1px solid var(--line); }
.service-flip .service-copy { order: 2; }
.service-flip .service-visual { order: 1; }

.service-copy h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.35rem, 2.2vw, 1.8rem);
  letter-spacing: 0;
  text-transform: uppercase;
  line-height: 1.18;
  margin: 0 0 0.9rem;
}
.service-copy p { color: var(--text-mid); margin: 0 0 1.4rem; max-width: 46ch; }

.checks {
  list-style: none;
  margin: 0 0 1.6rem;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}
.checks li {
  position: relative;
  padding-left: 1.9rem;
  font-weight: 500;
}
.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.28em;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background-color: rgba(49, 198, 240, 0.14);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='m6 12.5 4 4 8-9' stroke='%2331c6f0' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: 12px;
  background-position: center;
  background-repeat: no-repeat;
}

.tap-hint { display: none; }
@media (pointer: coarse) {
  .tap-hint { display: inline; }
  .nfc-card { cursor: pointer; }
}

.visual-tag {
  margin: 0.9rem 0 0;
  font-size: 0.85rem;
  color: var(--text-mid);
  text-align: center;
}

/* browser frame + miniatures */

.browser-frame {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--ink-1);
  box-shadow: var(--shadow-2);
}
.tilt3d { transform-style: preserve-3d; will-change: transform; }
.browser-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 12px;
  background: var(--ink-2);
  border-bottom: 1px solid var(--line);
}
.browser-bar span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(140, 210, 255, 0.22);
}
.browser-bar em {
  font-style: normal;
  font-size: 0.72rem;
  color: var(--text-mid);
  background: rgba(140, 210, 255, 0.08);
  border-radius: 6px;
  padding: 3px 10px;
  margin-left: 8px;
}

.mini {
  font-size: 9px;
  line-height: 1.4;
}
.mini-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
}
.mini-nav b { font-size: 10.5px; letter-spacing: 0.02em; }
.mini-nav i { font-style: normal; opacity: 0.75; letter-spacing: 0.04em; }
.mini-hero {
  position: relative;
  min-height: 128px;
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  gap: 6px;
  padding: 12px;
}
.mini-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(3, 5, 11, 0.05) 30%, rgba(3, 5, 11, 0.74) 100%);
}
.mini-hero strong {
  position: relative;
  font-size: 13.5px;
  line-height: 1.2;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #fff;
  max-width: 18ch;
}
.mini-btn {
  position: relative;
  font-size: 8.5px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 99px;
}
.mini-row {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
}
.mini-row figure {
  margin: 0;
  width: 44px;
  height: 34px;
  border-radius: 6px;
  background-size: cover;
  background-position: center;
  flex: none;
}
.mini-row b { display: block; font-size: 9.5px; }
.mini-row i { font-style: normal; opacity: 0.75; }
.mini-cols {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  padding: 10px 12px 12px;
}
.mini-cols b { display: block; font-size: 9px; }
.mini-cols i { font-style: normal; opacity: 0.7; font-size: 8px; }

/* per-concept palettes (diegetic, not system tokens) */
.mini-cafe { background: #201914; color: #f3ece3; }
.mini-cafe .mini-btn { background: #e8a04c; color: #241505; }
.mini-restaurant { background: #1d1512; color: #f5ede6; }
.mini-restaurant .mini-btn { background: #d96c3b; color: #2a1104; }
.mini-bar { background: #14100e; color: #f2e9de; }
.mini-bar .mini-btn { background: #c8913c; color: #221302; }
.mini-store { background: #f6f4ef; color: #2c2a24; }
.mini-store .mini-btn { background: #2c2a24; color: #f6f4ef; }
.mini-store .mini-nav i { opacity: 0.6; }

/* photo stack */

.photo-stack {
  position: relative;
  aspect-ratio: 5 / 4;
  max-width: 520px;
  margin: 0 auto;
}
.shot {
  position: absolute;
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  border: 4px solid #f2f7fb;
  box-shadow: var(--shadow-2);
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}
.shot img { width: 100%; height: 100%; object-fit: cover; }
.shot-a { inset: 4% 18% 22% 0; transform: rotate(-2.5deg); z-index: 1; }
.shot-b { right: 0; bottom: 6%; width: 46%; height: 46%; transform: rotate(2deg); z-index: 2; }
.shot-c { left: 8%; bottom: 0; width: 38%; height: 34%; transform: rotate(-1deg); z-index: 3; }
.photo-stack:hover .shot-a { transform: rotate(-3.5deg) translateY(-6px); }
.photo-stack:hover .shot-b { transform: rotate(3.2deg) translateY(-4px); }
.photo-stack:hover .shot-c { transform: rotate(-2deg) translateY(-5px); }

/* SERP illustration */

.serp-card {
  background: #fdfdfa;
  color: #23293c;
  border-radius: var(--radius);
  padding: 1.2rem 1.2rem 0.6rem;
  max-width: 460px;
  margin: 0 auto;
  box-shadow: var(--shadow-2);
}
.serp-query {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  border: 1px solid #d8dbe4;
  border-radius: 999px;
  padding: 0.55rem 1rem;
  font-size: 0.95rem;
  color: #444b60;
  margin-bottom: 1rem;
}
.serp-query svg { width: 16px; height: 16px; color: #8b93a8; flex: none; }
.serp-result {
  display: flex;
  gap: 0.8rem;
  align-items: center;
  padding: 0.75rem 0.6rem;
  border-radius: 12px;
}
.serp-top {
  background: #e9f7fd;
  border: 1px solid #bfe6f5;
}
.serp-pin {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #d3effb;
  display: grid;
  place-items: center;
  flex: none;
}
.serp-top .serp-pin svg { width: 18px; height: 18px; color: #0f7ca8; }
.serp-result b { display: block; font-size: 0.95rem; line-height: 1.3; }
.serp-result i { font-style: normal; font-size: 0.8rem; color: #6a7288; white-space: nowrap; }
.serp-stars {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.8rem;
  color: #9a6a10;
  font-weight: 600;
}
.serp-stars svg { width: 13px; height: 13px; fill: #f2a71b; }
.serp-dim { opacity: 0.72; }
.serp-dim .serp-pin { background: #eceef3; }
.serp-dim .serp-pin svg { width: 18px; height: 18px; color: #9aa3b8; }
.serp-dim b { color: #566078; font-weight: 600; }
.serp-dim i { white-space: nowrap; color: #8a92a8; }
.serp-card .visual-tag { color: #6a7288; margin-top: 0.8rem; padding-bottom: 0.5rem; }

/* ---------- NFC section (pinned scroll scene) ---------- */

.nfc {
  border-radius: 34px;
  margin: 0 clamp(8px, 1.4vw, 20px);
  position: relative;
  z-index: 2;

  background:
    radial-gradient(70% 90% at 78% 30%, rgba(49, 198, 240, 0.12) 0%, transparent 60%),
    radial-gradient(60% 80% at 20% 85%, rgba(20, 90, 160, 0.12) 0%, transparent 60%),
    var(--ink-1);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 7rem 0;
}
.nfc-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.nfc-copy .section-lede { margin-bottom: 1.6rem; }
.nfc-copy .checks { margin-bottom: 1.6rem; }
.nfc-hint {
  color: var(--cyan-ink);
  font-weight: 700;
  font-size: 0.95rem;
  margin: 0;
}

.nfc-stage {
  position: relative;
  height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.nfc-card {
  position: absolute;
  left: 6%;
  top: 50%;
  width: min(250px, 52%);
  aspect-ratio: 8 / 5;
  border-radius: 14px;
  padding: 1rem 1.1rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.2rem;
  background:
    radial-gradient(120% 140% at 85% 0%, rgba(49, 198, 240, 0.5) 0%, transparent 55%),
    radial-gradient(110% 130% at 10% 100%, rgba(20, 90, 160, 0.45) 0%, transparent 55%),
    #101a30;
  border: 1px solid rgba(140, 210, 255, 0.3);
  box-shadow: var(--shadow-2);
  transform: translateY(-50%) rotate(-6deg);
  z-index: 2;
  will-change: transform;
}
.nfc-card b { font-family: var(--font-display); font-weight: 800; font-size: 1rem; letter-spacing: -0.01em; }
.nfc-card span { font-size: 0.8rem; color: var(--text-mid); }
.nfc-card i {
  font-style: normal;
  font-size: 0.62rem;
  color: var(--text-mid);
  opacity: 0.8;
  margin-top: 0.5rem;
  letter-spacing: 0.02em;
}
.nfc-waves {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  width: 26px;
  height: 26px;
  color: var(--cyan);
}

.nfc-phone {
  position: absolute;
  right: 8%;
  top: 50%;
  translate: 0 -50%;
  width: min(180px, 38%);
  aspect-ratio: 9 / 18;
  border-radius: 26px;
  background: #03050b;
  border: 1px solid rgba(140, 210, 255, 0.32);
  box-shadow: var(--shadow-2);
  padding: 8px;
  z-index: 3;
}
.phone-notch {
  position: absolute;
  top: 12px;
  left: 50%;
  translate: -50% 0;
  width: 34%;
  height: 8px;
  border-radius: 99px;
  background: #03050b;
  z-index: 2;
  border: 1px solid rgba(140, 210, 255, 0.18);
}
.phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 19px;
  overflow: hidden;
  background: linear-gradient(180deg, #0c1424 0%, #080d18 100%);
  display: grid;
  place-items: center;
}
.phone-sheet {
  width: 86%;
  background: #fdfdfa;
  color: #23293c;
  border-radius: 14px;
  padding: 0.9rem 0.8rem;
  text-align: center;
  opacity: 0;
  transform: translateY(14px) scale(0.96);
  will-change: transform, opacity;
}
.phone-sheet b { display: block; font-size: 0.78rem; margin-bottom: 0.5rem; }
.phone-stars { display: flex; justify-content: center; gap: 3px; margin-bottom: 0.45rem; }
.phone-stars svg {
  width: 16px;
  height: 16px;
  fill: #d8dbe4;
}
.phone-hint { font-size: 0.58rem; color: #6a7288; }

.nfc-ripple {
  position: absolute;
  right: calc(8% + min(90px, 19%));
  top: 50%;
  width: 20px;
  height: 20px;
  translate: 50% -50%;
  border-radius: 50%;
  border: 2px solid var(--cyan);
  opacity: 0;
  z-index: 4;
  pointer-events: none;
}

/* ---------- Work ---------- */

.work-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.2rem;
}
.work-item {
  display: block;
  text-decoration: none;
  color: inherit;
  border-radius: calc(var(--radius) + 4px);
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}
a.work-item:hover { transform: translateY(-6px); }
a.work-item:hover .browser-frame { box-shadow: 0 22px 60px rgba(2, 5, 14, 0.7); }
.work-meta { padding: 1.1rem 0.4rem 0; }
.work-meta b {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
}
.work-meta span { color: var(--text-mid); font-size: 0.95rem; }
.work-meta em {
  display: inline-block;
  font-style: normal;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--cyan-ink);
  background: rgba(49, 198, 240, 0.12);
  border-radius: 99px;
  padding: 0.2rem 0.7rem;
  margin-top: 0.7rem;
}

.work-self .self-frame {
  min-height: 264px;
  border-radius: var(--radius);
  border: 1px dashed rgba(140, 210, 255, 0.35);
  background:
    radial-gradient(80% 100% at 50% 115%, rgba(49, 198, 240, 0.14) 0%, transparent 65%),
    var(--ink-1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.7rem;
  padding: 2rem;
}
.self-badge { width: 56px; height: 56px; }
.self-frame b { font-family: var(--font-display); font-weight: 800; font-size: 1.1rem; }
.self-frame span { color: var(--text-mid); font-size: 0.95rem; max-width: 34ch; }

/* ---------- Process ---------- */

.steps {
  list-style: none;
  counter-reset: step;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  position: relative;
}
.steps::before {
  content: "";
  position: absolute;
  top: 21px;
  left: 12.5%;
  right: 12.5%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(140, 210, 255, 0.28) 12%, rgba(140, 210, 255, 0.28) 88%, transparent);
}
.steps li {
  counter-increment: step;
  position: relative;
  padding-top: 3.4rem;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  top: 0;
  left: 0;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--cyan-ink);
  background: rgba(49, 198, 240, 0.1);
  border: 1px solid rgba(49, 198, 240, 0.4);
}
.steps b {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  margin-bottom: 0.5rem;
}
.steps p { color: #b3c1d8; margin: 0; font-size: 0.98rem; }

/* ---------- Contact ---------- */

.contact {
  border-radius: 34px 34px 0 0;
  position: relative;
  z-index: 2;

  background:
    radial-gradient(90% 70% at 50% 118%, rgba(49, 198, 240, 0.14) 0%, rgba(20, 90, 160, 0.08) 45%, transparent 75%),
    var(--ink-0);
}
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: start;
}
.contact-copy .section-lede { margin-bottom: 2rem; }
.contact-line {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  width: fit-content;
  color: var(--text-hi);
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
  padding: 0.9rem 1.3rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--ink-1);
  margin-bottom: 0.9rem;
  transition: border-color 0.2s ease, transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.contact-line:hover { border-color: rgba(49, 198, 240, 0.55); transform: translateY(-2px); }
.contact-line svg { width: 22px; height: 22px; color: var(--cyan); flex: none; }
.contact-note { color: var(--text-mid); font-size: 0.92rem; margin-top: 1rem; }

.form-thanks[hidden] { display: none; }
.form-thanks {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  background: rgba(49, 198, 240, 0.1);
  border: 1px solid rgba(49, 198, 240, 0.45);
  border-radius: var(--radius);
  padding: 1.1rem 1.3rem;
}
.form-thanks svg { width: 30px; height: 30px; color: var(--cyan-ink); flex: none; }
.form-thanks b { display: block; font-family: var(--font-display); font-size: 1.02rem; text-transform: uppercase; letter-spacing: 0.02em; }
.form-thanks span { color: var(--text-mid); font-size: 0.95rem; }

.contact-form {
  background: url("../assets/img/facets.svg"), var(--ink-1);
  background-size: 420px 420px, auto;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 6px);
  padding: 2rem;
  box-shadow: var(--shadow-1);
  display: grid;
  gap: 1.2rem;
}
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}
.field { display: grid; gap: 0.45rem; margin: 0; }
.field > span, .pills-field legend {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-hi);
}
.field input[type="text"],
.field input[type="email"],
.field textarea {
  font: inherit;
  color: var(--text-hi);
  background: var(--ink-0);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.8rem 1rem;
  transition: border-color 0.2s ease;
  width: 100%;
}
.field input::placeholder, .field textarea::placeholder { color: #93a1bd; }
.field input:hover, .field textarea:hover { border-color: rgba(140, 210, 255, 0.3); }
.field input:focus, .field textarea:focus {
  border-color: var(--cyan);
  outline: none;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input.invalid, .field textarea.invalid { border-color: #ff7a6e; }

.pills-field { border: none; padding: 0; }
.pills-field legend { padding: 0; margin-bottom: 0.45rem; }
.pills { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.pills label { position: relative; cursor: pointer; }
.pills input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.pills i {
  display: inline-block;
  font-style: normal;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.5rem 1.05rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--text-mid);
  transition: all 0.2s ease;
}
.pills label:hover i { border-color: rgba(140, 210, 255, 0.4); color: var(--text-hi); }
.pills input:checked + i {
  background: rgba(49, 198, 240, 0.14);
  border-color: var(--cyan);
  color: var(--cyan-ink);
}
.pills input:focus-visible + i {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}
.contact-form .btn { justify-self: start; }
.form-note { color: var(--text-mid); font-size: 0.88rem; margin: -0.4rem 0 0; }

/* ---------- Mobile action bar ---------- */

.mobile-bar {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 45;
  gap: 0.7rem;
  padding: 0.7rem 1rem calc(0.7rem + env(safe-area-inset-bottom));
  background: rgba(7, 11, 19, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
  transform: translateY(110%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.mobile-bar.show { transform: translateY(0); }
.mobile-bar .btn { flex: 1; padding: 0.95rem 1rem; }
.mobile-bar .btn svg { width: 18px; height: 18px; }

/* ---------- Footer ---------- */

.footer {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--line);
  padding: 3rem 0 10rem;
  background: linear-gradient(180deg, var(--ink-0) 0%, #0a1626 62%, #0e2c44 88%, #14496a 100%);
}
.footer-dusk {
  position: absolute;
  inset: auto 0 0 0;
  height: 220px;
  pointer-events: none;
}
.footer-dusk .glow {
  position: absolute;
  left: 50%;
  bottom: -30%;
  width: 130%;
  height: 90%;
  transform: translateX(-50%);
  background: radial-gradient(58% 82% at 50% 100%, rgba(49, 198, 240, 0.3) 0%, rgba(24, 120, 190, 0.18) 38%, rgba(20, 60, 120, 0.1) 64%, transparent 82%);
  filter: blur(10px);
}
.footer-dusk .skyline {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: clamp(70px, 9vw, 120px);
}
.footer-dusk .windows rect { opacity: 0.55; }
.footer-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem 2.5rem;
}
.footer-links { display: flex; flex-wrap: wrap; gap: 1.5rem; margin-left: auto; }
.footer-links a {
  color: var(--text-mid);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
}
.footer-links a:hover { color: var(--text-hi); }
.footer-line .nowrap { white-space: nowrap; color: inherit; text-decoration: none; }
.footer-line a.nowrap:hover { color: var(--text-hi); }
.footer-line {
  width: 100%;
  color: var(--text-mid);
  font-size: 0.88rem;
  margin: 0;
}


/* ---------- Light theme: daybreak over the same city ---------- */

[data-theme="light"] {
  --ink-0: #edf3f9;
  --ink-1: #ffffff;
  --ink-2: #e2ebf4;
  --line: rgba(16, 56, 96, 0.16);
  --text-hi: #122333;
  --text-mid: #45607b;
  --cyan-ink: #0b7ba3;
  --shadow-1: 0 6px 24px rgba(30, 60, 95, 0.14);
  --shadow-2: 0 14px 48px rgba(30, 60, 95, 0.18);
}
[data-theme="light"] ::selection { background: rgba(49, 198, 240, 0.3); }
.logo-t { fill: #ffffff; }
[data-theme="light"] .logo-t { fill: #122333; }

/* hero: day sky */
[data-theme="light"] .hero-sky {
  background: linear-gradient(180deg, #9fc9e6 0%, #bcdcf2 40%, #e2f0f9 72%, #f6ead1 100%);
}
[data-theme="light"] .stars { display: none; }
[data-theme="light"] .glow {
  background: radial-gradient(58% 82% at 50% 100%, rgba(255, 214, 140, 0.5) 0%, rgba(255, 236, 190, 0.3) 40%, transparent 80%);
}
[data-theme="light"] .skyline-shape { fill: #3a5069; }
[data-theme="light"] .windows rect { opacity: 0.12; animation: none; }
[data-theme="light"] .hero-title,
[data-theme="light"] .hero-sub { text-shadow: 0 2px 22px rgba(240, 248, 255, 0.8); }
[data-theme="light"] .hero-content::before {
  background: radial-gradient(58% 62% at 32% 52%, rgba(237, 243, 249, 0.65) 0%, rgba(237, 243, 249, 0.35) 55%, transparent 78%);
}
[data-theme="light"] .scroll-cue { background: rgba(255, 255, 255, 0.55); }

/* chrome */
[data-theme="light"] .nav.scrolled,
[data-theme="light"] .nav.menu-open { background: rgba(245, 249, 252, 0.88); }
[data-theme="light"] .mobile-menu { background: rgba(245, 249, 252, 0.96); }
[data-theme="light"] .mobile-bar { background: rgba(245, 249, 252, 0.94); }
[data-theme="light"] .btn-ghost { background: rgba(255, 255, 255, 0.45); }
[data-theme="light"] .btn-ghost:hover { background: rgba(16, 56, 96, 0.06); }

/* ambience: day haze */
[data-theme="light"] .ambience {
  background:
    radial-gradient(46% 34% at 8% 28%, rgba(49, 198, 240, 0.08) 0%, transparent 70%),
    radial-gradient(50% 38% at 94% 62%, rgba(255, 214, 140, 0.1) 0%, transparent 70%),
    radial-gradient(60% 46% at 50% 108%, rgba(49, 198, 240, 0.07) 0%, transparent 75%);
}
[data-theme="light"] .ambience::after { opacity: 0.25; }

/* bands */
[data-theme="light"] .who { background: url("../assets/img/facets.svg"), rgba(226, 235, 244, 0.9); background-size: 420px 420px, auto; }
[data-theme="light"] .nfc {
  background:
    radial-gradient(70% 90% at 78% 30%, rgba(49, 198, 240, 0.1) 0%, transparent 60%),
    radial-gradient(60% 80% at 20% 85%, rgba(255, 214, 140, 0.14) 0%, transparent 60%),
    #f7fafc;
}
[data-theme="light"] .contact {
  background:
    radial-gradient(90% 70% at 50% 118%, rgba(49, 198, 240, 0.12) 0%, rgba(255, 214, 140, 0.1) 45%, transparent 75%),
    var(--ink-0);
}

/* details */
[data-theme="light"] .steps p { color: #3d5872; }
[data-theme="light"] .steps::before { background: linear-gradient(90deg, transparent, rgba(16, 56, 96, 0.24) 12%, rgba(16, 56, 96, 0.24) 88%, transparent); }
[data-theme="light"] .work-self .self-frame { border-color: rgba(16, 56, 96, 0.3); }
[data-theme="light"] .shot { border-color: #ffffff; }
[data-theme="light"] .field input::placeholder,
[data-theme="light"] .field textarea::placeholder { color: #6c82a0; }

/* footer: day horizon */
[data-theme="light"] .footer {
  background: linear-gradient(180deg, #edf3f9 0%, #d9eaf7 62%, #efe6cf 100%);
}
[data-theme="light"] .footer-dusk .glow {
  background: radial-gradient(58% 82% at 50% 100%, rgba(255, 214, 140, 0.45) 0%, rgba(255, 236, 190, 0.25) 38%, transparent 82%);
}

/* ---------- Masked line reveals ---------- */

.mask-line { display: block; overflow: hidden; }
.mask-line > .mask-inner { display: block; will-change: transform; }

/* ---------- Scroll animation initial states (JS adds .anim-ready) ---------- */

.anim-ready [data-anim] { will-change: transform, opacity; }

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .section { padding: 5rem 0 4rem; }
  .nfc { padding: 5rem 0; }
}

@media (max-width: 767px) {
  .service,
  .nfc-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .service-flip .service-copy { order: 1; }
  .service-flip .service-visual { order: 2; }
  .work-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 2.4rem; }
  .steps::before {
    top: 0;
    bottom: 0;
    left: 21px;
    right: auto;
    width: 1px;
    height: auto;
    background: linear-gradient(180deg, transparent, var(--line) 8%, var(--line) 92%, transparent) !important;
  }
  .steps li { padding-top: 0; padding-left: 4rem; }
}

@media (max-width: 760px) {
  .mobile-bar { display: flex; }
  .theme-toggle { display: none; }
  .footer-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.4rem;
  }
  .footer-links { margin-left: 0; justify-content: center; flex-wrap: wrap; gap: 1rem 1.5rem; }
  .footer-line { text-align: center; }
  .footer { padding-bottom: 11rem; }
  .footer-dusk { height: 190px; }
  .footer-dusk .skyline { height: 104px; }
  .footer-dusk .glow { width: 240%; }
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: block; }
  .mobile-menu { display: flex; }
  .mobile-menu.open {
    max-height: 420px;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    padding-top: 0.8rem;
    padding-bottom: 1.4rem;
    transition:
      max-height 0.45s cubic-bezier(0.16, 1, 0.3, 1),
      opacity 0.35s ease 0.05s,
      transform 0.45s cubic-bezier(0.16, 1, 0.3, 1),
      padding 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .nav.menu-open {
    background: rgba(7, 11, 19, 0.96);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
  }
  .hero-content { padding: 7rem 1.25rem 8rem; }
  .container { padding: 0 1.25rem; }
  .field-row { grid-template-columns: 1fr; }
  .contact-form { padding: 1.5rem 1.25rem; }
  .nfc-stage { height: 330px; }
  .nfc-card { left: 0; }
  .nfc-phone { right: 2%; }
  .nfc-ripple { right: calc(2% + min(90px, 19%)); }
}

@media (max-width: 480px) {
  .phone-sheet { padding: 0.7rem 0.55rem; }
  .phone-hint { display: none; }
  .phone-stars svg { width: 14px; height: 14px; }
  .hero-title { font-size: clamp(1.9rem, 9.5vw, 2.4rem); }
  .hero-sub { font-size: 1.02rem; }
  .section-title { font-size: clamp(1.55rem, 7.5vw, 1.9rem); }
  .section-lede { font-size: 1.05rem; margin-bottom: 2.6rem; }
  .hero-actions .btn, .contact-form .btn { width: 100%; justify-content: center; }
  .contact-form .btn { justify-self: stretch; }
  .contact-line { font-size: 0.98rem; padding: 0.85rem 1rem; width: 100%; overflow-wrap: anywhere; }
  .marquee-track span { font-size: 1.2rem; }
  .service { padding: 2.4rem 0; }
  .scroll-cue { bottom: 1.2rem; }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-title .line, .hero-sub, .hero-actions { animation: none; }
  .stars, .windows rect:nth-child(3n) { animation: none; }
  .scroll-cue { animation: none; }
  .marquee-track { animation: none; }
  .ambience::after { animation: none; }
  .mobile-bar { transition: none; }
  .mobile-menu, .mobile-menu.open { transition: none; }
  html.js .preloader { display: none; }
  html.js:not(.is-loaded) .hero-title .line,
  html.js:not(.is-loaded) .hero-sub,
  html.js:not(.is-loaded) .hero-actions { animation-play-state: running; }
  .cursor-dot, .cursor-ring { display: none !important; }
  .btn-primary { animation: none; }
  .shot, .work-item, .btn, .contact-line { transition: none; }
  .phone-sheet { opacity: 1; transform: none; }
  .phone-stars svg { fill: #f2a71b; }
}
