/* FightTech landing: design tokens
   Theme: dark, locked page-wide.
   Radius system: 16px containers, 10px interactive elements.
   Accent: FightTech brand orange (#ff931e from the official logo),
   used identically across all sections. */

:root {
  color-scheme: dark;
  --bg: #0b0c0f;
  --surface: #131519;
  --surface-2: #191c22;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --text: #edeff2;
  --muted: #9aa2ab;
  --accent: #ff931e;
  --accent-soft: rgba(255, 147, 30, 0.12);
  --accent-ink: #17100b;
  /* accent used AS TEXT; darkened in light mode for WCAG AA */
  --link: #ff931e;
  --nav-bg: rgba(11, 12, 15, 0.85);
  --shadow: rgba(0, 0, 0, 0.45);
  --logo-filter: none;
  --radius-lg: 16px;
  --radius-sm: 10px;
  --font-sans: "Space Grotesk", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --container: 1200px;
}

/* Light theme: explicit choice (data-theme) or system preference when unset */
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f6f7f9;
  --surface: #ffffff;
  --surface-2: #eceef2;
  --line: rgba(15, 18, 25, 0.09);
  --line-strong: rgba(15, 18, 25, 0.17);
  --text: #171a20;
  --muted: #5b6370;
  --accent-soft: rgba(255, 147, 30, 0.14);
  --link: #ad4f00;
  --nav-bg: rgba(246, 247, 249, 0.85);
  --shadow: rgba(20, 24, 32, 0.16);
  --logo-filter: brightness(0) opacity(0.72);
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]):not([data-theme="light"]) {
    color-scheme: light;
    --bg: #f6f7f9;
    --surface: #ffffff;
    --surface-2: #eceef2;
    --line: rgba(15, 18, 25, 0.09);
    --line-strong: rgba(15, 18, 25, 0.17);
    --text: #171a20;
    --muted: #5b6370;
    --accent-soft: rgba(255, 147, 30, 0.14);
    --link: #ad4f00;
    --nav-bg: rgba(246, 247, 249, 0.85);
    --shadow: rgba(20, 24, 32, 0.16);
    --logo-filter: brightness(0) opacity(0.72);
  }
}

@font-face {
  font-family: "Space Grotesk";
  src: url("../fonts/space-grotesk-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Space Grotesk";
  src: url("../fonts/space-grotesk-latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Space Grotesk";
  src: url("../fonts/space-grotesk-latin-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
/* Vietnamese pages use Be Vietnam Pro (Space Grotesk has no Vietnamese glyphs) */
@font-face {
  font-family: "Be Vietnam Pro";
  src: url("../fonts/be-vietnam-pro-vietnamese-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: "Be Vietnam Pro";
  src: url("../fonts/be-vietnam-pro-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Be Vietnam Pro";
  src: url("../fonts/be-vietnam-pro-vietnamese-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: "Be Vietnam Pro";
  src: url("../fonts/be-vietnam-pro-latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Be Vietnam Pro";
  src: url("../fonts/be-vietnam-pro-vietnamese-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: "Be Vietnam Pro";
  src: url("../fonts/be-vietnam-pro-latin-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

html[lang="vi"] {
  --font-sans: "Be Vietnam Pro", "Segoe UI", system-ui, -apple-system, sans-serif;
}

/* Vietnamese copy runs longer: widen the headline box and step the scale down
   so the hero stays at two lines. */
html[lang="vi"] .hero h1 {
  letter-spacing: -0.02em;
  max-width: 20ch;
  font-size: clamp(2.2rem, 4.4vw, 3.4rem);
}

@font-face {
  font-family: "JetBrains Mono";
  src: url("../fonts/jetbrains-mono-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("../fonts/jetbrains-mono-latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  /* Nav is position: fixed and taken out of flow — reserve its height. */
  padding-top: 69px;
}

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

a { color: inherit; text-decoration: none; }

::selection { background: var(--accent); color: var(--accent-ink); }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Navigation ---------- */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 40;
  background: var(--nav-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  isolation: isolate;
  /* position: fixed (not sticky) — in-app WebViews (Telegram, etc.) lag
     recalculating sticky position during fast/momentum scroll, letting
     page content flash above the bar. Fixed is pinned to the viewport
     regardless of scroll, so it can't fall behind. */
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  will-change: transform;
}

.nav-inner {
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.02em;
  flex-shrink: 0;
  white-space: nowrap;
}

.brand .mark-img {
  width: 42px;
  height: 26px;
  border-radius: 6px;
  display: block;
}

.brand .tech { color: var(--link); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  color: var(--muted);
  font-size: 15px;
  transition: color 0.15s ease;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] { color: var(--text); }

.nav-cta { display: flex; align-items: center; gap: 16px; }

.lang {
  display: flex;
  gap: 2px;
  font-family: var(--font-mono);
  font-size: 12.5px;
}

.lang a {
  color: var(--muted);
  padding: 6px 8px;
  border-radius: var(--radius-sm);
  transition: color 0.15s ease;
}

.lang a:hover { color: var(--text); }

.lang a[aria-current="true"] { color: var(--text); background: var(--surface-2); }

.theme-toggle {
  background: none;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  color: var(--text);
  width: 36px;
  height: 36px;
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: border-color 0.15s ease;
}

.theme-toggle:hover { border-color: var(--accent); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  color: var(--text);
  width: 40px;
  height: 40px;
  font-size: 18px;
  cursor: pointer;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  border-radius: var(--radius-sm);
  padding: 11px 20px;
  font-size: 15px;
  font-weight: 500;
  font-family: var(--font-sans);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.15s ease, border-color 0.15s ease;
}

.btn:active { transform: scale(0.98); }

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
}

.btn-primary:hover { background: #ffa841; }

.btn-ghost {
  border-color: var(--line-strong);
  color: var(--text);
}

.btn-ghost:hover { border-color: var(--accent); color: var(--link); }

.btn-lg { padding: 14px 26px; font-size: 16px; }

.btn-sm { padding: 8px 14px; font-size: 14px; }

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

.hero { padding: 88px 0 64px; overflow: hidden; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.9rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 700;
  max-width: 14ch;
}

.hero h1 em {
  font-style: normal;
  color: var(--link);
}

.hero .sub {
  margin-top: 20px;
  color: var(--muted);
  font-size: 18px;
  max-width: 46ch;
}

.hero-actions {
  margin-top: 32px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* Two real product screenshots, staggered */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 20px;
}

.hero-visual .shot {
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-strong);
  overflow: hidden;
  box-shadow: 0 24px 60px var(--shadow);
  background: var(--surface);
}

.hero-visual .shot img { width: 100%; height: auto; }

.hero-visual .shot-a { width: 46%; margin-top: 48px; }
.hero-visual .shot-b { width: 46%; }

/* ---------- Fact strip ---------- */

.fact-strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 28px 0;
}

.fact-strip-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.fact-strip p { color: var(--muted); font-size: 15px; max-width: 34ch; }

.fact-apps { display: flex; gap: 28px; flex-wrap: wrap; }

.fact-app {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 14px;
  transition: color 0.15s ease;
}

.fact-app:hover { color: var(--text); }

.fact-app img {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  border: 1px solid var(--line);
}

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

.section { padding: 96px 0; }

.section-head {
  max-width: 60ch;
  margin-bottom: 56px;
}

.section-head h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  letter-spacing: -0.02em;
  line-height: 1.15;
  font-weight: 700;
}

.section-head p { margin-top: 14px; color: var(--muted); font-size: 17px; }

/* ---------- Services: sticky left rail + divided rows ---------- */

.services-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
  align-items: start;
}

.services-rail { position: sticky; top: 108px; }

.services-rail h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.services-rail p { margin-top: 16px; color: var(--muted); font-size: 17px; max-width: 40ch; }

.services-rail .btn { margin-top: 28px; }

.service-row {
  padding: 32px 0;
  border-top: 1px solid var(--line);
}

.service-row:last-child { border-bottom: 1px solid var(--line); }

.service-row h3 { font-size: 21px; font-weight: 500; letter-spacing: -0.01em; }

.service-row p { margin-top: 10px; color: var(--muted); max-width: 56ch; }

.tags { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px; }

.tag {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 4px 10px;
}

/* ---------- Showcase ---------- */

.work-toolbar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 16px;
}

.view-toggle {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.view-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 34px;
  font-family: var(--font-mono);
  font-size: 15px;
  color: var(--muted);
  background: transparent;
  border: 0;
  cursor: pointer;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.view-btn + .view-btn { border-left: 1px solid var(--line); }

.view-btn:hover { color: var(--fg); }

.view-btn.is-active { background: var(--surface-2); color: var(--fg); }

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.work-grid.is-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.work-grid.is-list .work-card,
.work-grid.is-list .work-wide {
  grid-column: auto;
  flex-direction: column;
}

.work-grid.is-list .work-body {
  order: 1;
  width: 100%;
  padding: 24px 24px 4px;
}

.work-grid.is-list .work-media,
.work-grid.is-list .work-wide .work-media {
  order: 2;
  width: 100%;
  align-self: stretch;
  flex-shrink: 0;
  aspect-ratio: auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 0 24px 24px;
  background: transparent;
}

.work-grid.is-list .work-media img {
  width: auto;
  height: 240px;
  object-fit: contain;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
}

.work-grid.is-list .shot-strip {
  display: flex;
  width: 100%;
  gap: 8px;
  overflow-x: auto;
}

.work-grid.is-list .shot-strip img {
  flex-shrink: 0;
}

.work-grid.is-list .shot-strip img ~ img {
  display: block;
}

.work-grid.is-list .shot-caption {
  display: block;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--muted);
}

.work-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.work-card:hover { border-color: var(--line-strong); transform: translateY(-2px); }

.work-wide { grid-column: span 2; flex-direction: row; }

.work-wide .work-media { width: 45%; flex-shrink: 0; }

.work-media {
  background: var(--surface-2);
  min-height: 220px;
  overflow: hidden;
  position: relative;
}

.work-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.work-tall .work-media { aspect-ratio: 4 / 3; }

.work-media.is-store-shot {
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-2);
}

.work-media.is-store-shot img {
  width: auto;
  height: 100%;
  object-fit: contain;
}

.work-tall .work-media.is-store-shot {
  aspect-ratio: auto;
}

.work-tall .work-media.is-store-shot img {
  width: 100%;
  height: auto;
}

.work-grid.is-list .work-tall .work-media.is-store-shot img {
  width: auto;
  height: 240px;
}

/* Landscape (desktop/web) screenshot, unlike the mobile store shots this
   grid otherwise carries — don't stretch to match a tall neighbor's row. */
#work-appmarketing { align-self: start; }

.shot-caption { display: none; }

.shot-strip { display: contents; }

.shot-strip img ~ img { display: none; }

.work-body { padding: 28px; display: flex; flex-direction: column; gap: 12px; flex: 1; }

.work-title { display: flex; align-items: center; gap: 12px; }

.work-title img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--line);
}

.work-title h3 { font-size: 20px; font-weight: 500; }

.work-title .platforms {
  display: block;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--muted);
  margin-top: 2px;
}

.work-body > p { color: var(--muted); font-size: 15px; }

.work-links { margin-top: auto; padding-top: 12px; display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- Product teaser tiles (homepage) ---------- */

.mini-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.mini-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.mini-card:hover { border-color: var(--accent); transform: translateY(-2px); }

.mini-card > img {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  border: 1px solid var(--line);
}

.mini-card h3 { font-size: 18px; font-weight: 500; letter-spacing: -0.01em; }

.mini-card p { color: var(--muted); font-size: 14.5px; flex: 1; }

.mini-card .platforms {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--muted);
}

/* ---------- Blog teaser (homepage) ---------- */

.post-teaser-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.post-teaser {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.post-teaser:hover { border-color: var(--accent); transform: translateY(-2px); }

.post-teaser .pt-media { background: var(--surface-2); aspect-ratio: 16 / 8; overflow: hidden; }

.post-teaser .pt-media img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }

.post-teaser .pt-body { padding: 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }

.post-teaser .pt-tag {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--muted);
}

.post-teaser h3 { font-size: 19px; font-weight: 500; letter-spacing: -0.01em; line-height: 1.3; }

.post-teaser .pt-read { margin-top: auto; color: var(--link); font-size: 14.5px; font-weight: 500; }

/* ---------- Values / how we work ---------- */

.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.value-cell {
  border-top: 2px solid var(--accent);
  padding-top: 20px;
}

.value-cell h3 { font-size: 18px; font-weight: 500; letter-spacing: -0.01em; }

.value-cell p { margin-top: 10px; color: var(--muted); font-size: 15px; }

/* ---------- Stack ---------- */

.stack-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.stack-group {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px;
}

.stack-group h3 {
  font-size: 15px;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 18px;
}

.stack-items { display: flex; flex-direction: column; gap: 14px; }

.stack-item { display: flex; align-items: center; gap: 12px; font-size: 15px; }

.stack-item img { width: 22px; height: 22px; opacity: 0.9; filter: var(--logo-filter); }

.stack-note {
  margin-top: 28px;
  color: var(--muted);
  font-size: 15px;
  max-width: 72ch;
}

/* ---------- CTA band ---------- */

.cta-band {
  background: linear-gradient(140deg, var(--surface) 0%, var(--surface-2) 60%, rgba(255, 147, 30, 0.08) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 64px 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.cta-band h2 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  letter-spacing: -0.02em;
  line-height: 1.15;
  max-width: 18ch;
}

.cta-band p { margin-top: 12px; color: var(--muted); max-width: 44ch; }

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

.footer {
  border-top: 1px solid var(--line);
  padding: 56px 0 40px;
  margin-top: 96px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
}

.footer-brand p { margin-top: 14px; color: var(--muted); font-size: 15px; max-width: 34ch; }

.footer .footer-h { font-size: 14px; font-weight: 500; color: var(--muted); margin-bottom: 14px; }

.footer ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }

.footer ul a { color: var(--text); font-size: 15px; opacity: 0.85; }

.footer ul a:hover { color: var(--link); opacity: 1; }

.footer-bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 14px;
}

/* ---------- Prose pages (terms, privacy, support, contact) ---------- */

.page-head { padding: 72px 0 40px; border-bottom: 1px solid var(--line); }

.page-head h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.page-head p { margin-top: 14px; color: var(--muted); font-size: 17px; max-width: 60ch; }

.prose { padding: 56px 0 32px; max-width: 760px; }

.prose h2 { font-size: 22px; margin: 40px 0 12px; letter-spacing: -0.01em; }

.prose h2:first-child { margin-top: 0; }

.prose p { color: var(--muted); margin-bottom: 14px; max-width: 65ch; }

.prose ul { color: var(--muted); margin: 0 0 14px 22px; }

.prose li { margin-bottom: 8px; }

.prose a { color: var(--link); }

.prose a:hover { text-decoration: underline; text-underline-offset: 3px; }

.prose strong { color: var(--text); font-weight: 500; }

/* Contact cards */

.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 20px;
  padding: 56px 0 0;
}

.contact-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px;
}

.contact-card h2 { font-size: 21px; margin-bottom: 10px; letter-spacing: -0.01em; }

.contact-card p { color: var(--muted); margin-bottom: 18px; max-width: 48ch; }

.contact-card ul { color: var(--muted); margin: 0 0 20px 20px; }

.contact-card li { margin-bottom: 8px; }

.contact-email {
  font-family: var(--font-mono);
  font-size: 15px;
  color: var(--text);
  word-break: break-all;
}

/* ---------- Cookie consent banner ---------- */

.cookie-banner {
  position: fixed;
  left: 20px;
  right: 20px;
  bottom: 20px;
  z-index: 60;
  margin: 0 auto;
  max-width: 640px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  box-shadow: 0 18px 50px var(--shadow);
  padding: 20px 22px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.cookie-banner p {
  flex: 1;
  min-width: 220px;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.55;
}

.cookie-banner p a { color: var(--link); }

.cookie-banner p a:hover { text-decoration: underline; text-underline-offset: 3px; }

.cookie-actions { display: flex; gap: 10px; flex-shrink: 0; }

@media (max-width: 560px) {
  .cookie-banner { left: 12px; right: 12px; bottom: 12px; padding: 18px; }
  .cookie-actions { width: 100%; }
  .cookie-actions .btn { flex: 1; justify-content: center; }
}

@media (prefers-reduced-motion: no-preference) {
  .cookie-banner { animation: cookie-in 0.35s ease both; }
}

@keyframes cookie-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

/* ---------- Reveal on scroll ---------- */

/* Hidden state only applies when JS is confirmed running (html.js),
   so content never disappears in no-script environments. A pure-CSS
   keyframe fallback also reveals everything after 2.5s, covering the case
   where the inline script ran but main.js (IntersectionObserver) never did. */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  animation: reveal-fallback 0.55s ease 2.5s forwards;
}

.js .reveal.is-visible {
  animation: none;
  opacity: 1;
  transform: none;
  transition: opacity 0.55s ease, transform 0.55s ease;
}

@keyframes reveal-fallback {
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; animation: none; }
  .js .reveal.is-visible { transition: none; }
  .btn, .work-card { transition: none; }
}

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

@media (max-width: 1024px) {
  .work-grid { grid-template-columns: 1fr 1fr; }
  .work-wide { grid-column: span 2; }
  .stack-grid { grid-template-columns: repeat(2, 1fr); }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .mini-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .nav-links {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 24px;
    gap: 18px;
    display: none;
  }

  .nav-links.is-open { display: flex; }

  .nav-toggle { display: grid; place-items: center; }

  .nav-cta .btn { display: none; }

  .hero { padding: 56px 0 48px; }

  .hero-grid { grid-template-columns: 1fr; gap: 48px; }

  .hero-visual .shot-a { margin-top: 32px; }

  .services-grid { grid-template-columns: 1fr; gap: 32px; }

  .services-rail { position: static; }

  .section { padding: 64px 0; }

  .work-grid { grid-template-columns: 1fr; }

  .work-wide { grid-column: auto; flex-direction: column; }

  .work-wide .work-media { width: 100%; }

  .work-media { aspect-ratio: 16 / 10; }

  .work-media.is-store-shot { aspect-ratio: auto; }

  .work-media.is-store-shot img { width: 100%; height: auto; }

  .work-grid.is-list .work-media img { height: 200px; }

  .stack-grid { grid-template-columns: 1fr; }

  .values-grid { grid-template-columns: 1fr; gap: 24px; }

  .mini-grid { grid-template-columns: 1fr; }

  .post-teaser-grid { grid-template-columns: 1fr; }

  .cta-band { padding: 40px 28px; }

  .footer-grid { grid-template-columns: 1fr; gap: 32px; }

  .contact-grid { grid-template-columns: 1fr; }
}
