/* FUNTERY — nehořlavé závěsy
   Bold modern, B2B (bus / speciální použití). */

:root {
  /* light tokens — cool, technical, on-brand */
  --bg: #f6f7f9;
  --bg-2: #e9ecf1;
  --fg: #0e1a2e;        /* brand navy */
  --fg-2: #2a3550;
  --muted: #6a7388;
  --line: rgba(14, 26, 46, 0.12);
  --line-2: rgba(14, 26, 46, 0.06);
  --card: #ffffff;

  --accent: #1ba6b8;    /* brand teal */
  --accent-fg: #ffffff;
  --navy: #14233f;

  --radius: 0px;
  --radius-lg: 0px;

  --pad-x: clamp(24px, 5vw, 96px);
  --pad-y: clamp(72px, 9vw, 140px);
  --gap: clamp(40px, 5vw, 80px);

  --font-display: "Archivo", system-ui, sans-serif;
  --font-body: "Archivo", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;

  --t-fast: 200ms cubic-bezier(.2,.7,.2,1);
  --t-med: 420ms cubic-bezier(.2,.7,.2,1);
  --t-slow: 800ms cubic-bezier(.2,.7,.2,1);
}

[data-theme="dark"] {
  --bg: #0a1322;
  --bg-2: #131e35;
  --fg: #eef2f8;
  --fg-2: #c8d0de;
  --muted: #8995ad;
  --line: rgba(238, 242, 248, 0.14);
  --line-2: rgba(238, 242, 248, 0.06);
  --card: #131e35;
  --navy: #0e1a2e;
}

[data-density="compact"] {
  --pad-x: clamp(20px, 4vw, 64px);
  --pad-y: clamp(48px, 6vw, 88px);
  --gap: clamp(24px, 3vw, 56px);
}
[data-density="spacious"] {
  --pad-x: clamp(32px, 6vw, 140px);
  --pad-y: clamp(96px, 12vw, 200px);
  --gap: clamp(56px, 7vw, 120px);
}

[data-font="sora"] {
  --font-display: "Sora", system-ui, sans-serif;
  --font-body: "Sora", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", monospace;
}
[data-font="archivo"] {
  --font-display: "Archivo", system-ui, sans-serif;
  --font-body: "Archivo", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", monospace;
}
[data-font="grotesk"] {
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Space Grotesk", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", monospace;
}
[data-font="serif"] {
  --font-display: "Instrument Serif", Georgia, serif;
  --font-body: "Archivo", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", monospace;
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  transition: background var(--t-med), color var(--t-med);
}
[data-animations="off"] *,
[data-animations="off"] *::before,
[data-animations="off"] *::after {
  transition: none !important;
  animation: none !important;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* ── App shell ─────────────────────────────────────── */
.app {
  min-height: 100vh;
  position: relative;
}

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px var(--pad-x);
  background: color-mix(in oklab, var(--bg) 88%, transparent);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-bottom: 1px solid var(--line-2);
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.nav-logo-img {
  height: 26px;
  width: auto;
  object-fit: contain;
  display: block;
}
.nav-logo-dark { display: none; }
[data-theme="dark"] .nav-logo-light { display: none; }
[data-theme="dark"] .nav-logo-dark { display: block; }
.nav-links {
  display: flex;
  gap: 28px;
  font-size: 13.5px;
  font-weight: 500;
}
.nav-links a {
  color: var(--fg-2);
  transition: color var(--t-fast);
  position: relative;
}
.nav-links a:hover { color: var(--accent); }
.nav-links a.is-active { color: var(--accent); }
.nav-links a.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  background: var(--accent);
}
.nav-cta {
  font-size: 13px;
  font-weight: 600;
  padding: 10px 16px;
  border: 1px solid var(--fg);
  background: var(--fg);
  color: var(--bg);
  border-radius: var(--radius);
  transition: all var(--t-fast);
  white-space: nowrap;
}
.nav-cta:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-fg);
}

/* ── Mobile nav (burger + drawer) ─────────────────── */
.nav-burger {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: transparent;
  border-radius: var(--radius);
  padding: 0;
  position: relative;
  flex-shrink: 0;
}
.nav-burger span {
  position: absolute;
  left: 11px;
  right: 11px;
  height: 2px;
  background: var(--fg);
  transition: transform var(--t-fast), opacity var(--t-fast);
}
.nav-burger span:nth-child(1) { top: 14px; }
.nav-burger span:nth-child(2) { top: 20px; }
.nav-burger span:nth-child(3) { top: 26px; }
.nav.is-open .nav-burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav.is-open .nav-burger span:nth-child(2) { opacity: 0; }
.nav.is-open .nav-burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.nav-drawer {
  position: fixed;
  inset: 0;
  top: 0;
  background: var(--bg);
  z-index: 45;
  padding: 92px var(--pad-x) 40px;
  opacity: 0;
  visibility: hidden;
}
.nav.is-open .nav-drawer {
  opacity: 1;
  visibility: visible;
}
.nav-drawer-links {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.nav-drawer-links a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: clamp(28px, 9vw, 40px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--fg);
}
.nav-drawer-links a .arr { color: var(--muted); font-size: 0.6em; }
.nav-drawer-links a.is-active { color: var(--accent); }
.nav-drawer-links a.is-active .arr { color: var(--accent); }
.nav-drawer-cta {
  margin-top: 28px;
  justify-content: center !important;
  background: var(--accent);
  color: var(--accent-fg) !important;
  border-bottom: 0 !important;
  border-radius: var(--radius);
  padding: 22px 0 !important;
  font-size: clamp(18px, 5vw, 22px) !important;
}

@media (max-width: 820px) {
  .nav-links { display: none; }
  .nav > .nav-cta { display: none; }
  .nav-burger { display: block; }
}

/* Section base */
section {
  padding: var(--pad-y) var(--pad-x);
  border-bottom: 1px solid var(--line-2);
  position: relative;
}
.eyebrow {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--accent);
}
.section-head {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--gap);
  margin-bottom: calc(var(--gap) * 0.9);
  align-items: end;
}
.section-head h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  margin: 14px 0 0;
  text-wrap: balance;
}
.section-head p {
  font-size: clamp(15px, 1.2vw, 18px);
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
  max-width: 56ch;
  text-wrap: pretty;
}
@media (max-width: 820px) {
  .section-head { grid-template-columns: 1fr; gap: 18px; }
}

/* ── HERO: statement ───────────────────────────────── */
.hero {
  padding: 0 var(--pad-x);
  position: relative;
}
.hero-statement {
  min-height: calc(100vh - 76px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 60px 0 48px;
  position: relative;
}
.hero-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.6;
}
.hero-top div { max-width: 30ch; }
.hero-top b { color: var(--fg); font-weight: 500; }
.hero-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(64px, 13vw, 220px);
  line-height: 0.86;
  letter-spacing: -0.04em;
  margin: 0;
  padding: 32px 0;
}
.hero-title .accent {
  color: var(--accent);
  font-style: italic;
  font-weight: 600;
}
[data-font="serif"] .hero-title { font-weight: 400; letter-spacing: -0.02em; }
[data-font="serif"] .hero-title .accent { font-style: italic; }

.hero-bottom {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: var(--gap);
  align-items: end;
}
.hero-bottom p {
  font-size: clamp(16px, 1.3vw, 20px);
  line-height: 1.45;
  max-width: 50ch;
  color: var(--fg-2);
  margin: 0;
  text-wrap: pretty;
}
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 14px;
  transition: all var(--t-fast);
  border: 1px solid transparent;
  font-family: var(--font-body);
}
.btn-primary {
  background: var(--accent);
  color: var(--accent-fg);
}
.btn-primary:hover { transform: translateY(-2px); }
.btn-ghost {
  border-color: var(--line);
  color: var(--fg);
}
.btn-ghost:hover { background: var(--fg); color: var(--bg); border-color: var(--fg); }

.hero-strip {
  display: flex;
  gap: 40px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  overflow: hidden;
}
.hero-strip span { white-space: nowrap; }

/* ── HERO: split ──────────────────────────────────── */
.hero-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  min-height: calc(100vh - 76px);
  border-bottom: 1px solid var(--line-2);
}
.hero-split-img {
  position: relative;
  background: var(--bg-2);
  overflow: hidden;
}
.hero-split-text {
  padding: 80px var(--pad-x) 60px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
}
.hero-split-text h1 {
  font-family: var(--font-display);
  font-size: clamp(48px, 6vw, 96px);
  line-height: 0.96;
  letter-spacing: -0.03em;
  font-weight: 700;
  margin: 24px 0 0;
}
.hero-split-text h1 em { font-style: normal; color: var(--accent); }
.hero-split-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.hero-split-meta b { color: var(--fg); font-weight: 500; display: block; margin-bottom: 4px; }
@media (max-width: 900px) {
  .hero-split { grid-template-columns: 1fr; }
  .hero-split-img { min-height: 50vh; }
}

/* ── HERO: marquee ─────────────────────────────────── */
.hero-marquee {
  padding: 80px 0 0;
  min-height: calc(100vh - 76px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.hero-marquee-head {
  padding: 0 var(--pad-x);
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: var(--gap);
  align-items: end;
  margin-bottom: 60px;
}
.hero-marquee-head h1 {
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 80px);
  line-height: 1;
  letter-spacing: -0.025em;
  font-weight: 700;
  margin: 16px 0 0;
  text-wrap: balance;
}
.hero-marquee-head .lede {
  font-size: clamp(15px, 1.2vw, 18px);
  color: var(--muted);
  line-height: 1.5;
  max-width: 44ch;
}
.marquee-row {
  display: flex;
  gap: 32px;
  align-items: center;
  white-space: nowrap;
  font-family: var(--font-display);
  font-size: clamp(64px, 9vw, 140px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  padding: 24px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  animation: marquee 30s linear infinite;
}
[data-animations="off"] .marquee-row { animation: none; }
.marquee-row .dot {
  width: 18px;
  height: 18px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
  display: inline-block;
}
.marquee-row em {
  font-style: italic;
  color: var(--accent);
  font-weight: 600;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.hero-marquee-foot {
  padding: 32px var(--pad-x);
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  flex-wrap: wrap;
}
.hero-marquee-foot .stats {
  display: flex;
  gap: 48px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
}
.hero-marquee-foot .stats b {
  display: block;
  font-family: var(--font-display);
  font-size: 28px;
  color: var(--fg);
  font-weight: 700;
  margin-bottom: 2px;
}

/* ── Image placeholder ─────────────────────────────── */
.ph {
  position: relative;
  background:
    repeating-linear-gradient(135deg,
      var(--bg-2) 0 12px,
      color-mix(in oklab, var(--bg-2) 70%, var(--fg) 6%) 12px 13px);
  overflow: hidden;
  border-radius: var(--radius);
}
.ph::after {
  content: attr(data-label);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.ph-corner {
  position: absolute;
  top: 16px;
  left: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg);
  background: var(--bg);
  padding: 4px 8px;
  z-index: 2;
}

/* ── Material section ──────────────────────────────── */
.material {
  background: var(--bg);
}
.material-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--gap);
  align-items: start;
}
.material-visual {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  position: sticky;
  top: 100px;
}
.material-specs {
  display: flex;
  flex-direction: column;
}
.spec-row {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}
.spec-row:first-child { border-top: 1px solid var(--line); }
.spec-num {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--muted);
  letter-spacing: 0.04em;
}
.spec-label {
  font-family: var(--font-display);
  font-size: clamp(18px, 1.6vw, 22px);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 6px;
}
.spec-desc {
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.5;
  max-width: 48ch;
  margin: 0;
}
.spec-val {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg);
  background: var(--bg-2);
  padding: 6px 10px;
  border-radius: var(--radius);
  white-space: nowrap;
}

.cert-strip {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: calc(var(--gap) * 0.7);
}
.cert {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg);
}
.cert .badge {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
}
@media (max-width: 900px) {
  .material-grid { grid-template-columns: 1fr; }
  .material-visual { position: relative; top: 0; aspect-ratio: 4/3; }
}

/* ── Services ──────────────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
}
.svc {
  padding: 40px 32px 48px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  background: var(--bg);
  transition: background var(--t-fast);
}
.svc:hover { background: var(--bg-2); }
.svc:nth-child(3n) { border-right: 0; }
.svc-num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.08em;
}
.svc h3 {
  font-family: var(--font-display);
  font-size: clamp(22px, 2vw, 30px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0;
  text-wrap: balance;
}
.svc p {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--muted);
  margin: 0;
  text-wrap: pretty;
}
.svc ul {
  list-style: none;
  padding: 0;
  margin: 4px 0 0;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg-2);
}
.svc ul li {
  padding: 6px 0;
  border-bottom: 1px dashed var(--line-2);
  display: flex;
  justify-content: space-between;
}
.svc ul li:last-child { border-bottom: 0; }
@media (max-width: 900px) {
  .services-grid { grid-template-columns: 1fr; }
  .svc { border-right: 0 !important; }
}

/* ── Gallery ──────────────────────────────────────── */
.gallery {
  background: var(--bg-2);
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}
.g-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: transform var(--t-fast);
}
.g-item:hover { transform: translateY(-4px); }
.g-1 { grid-column: span 7; aspect-ratio: 16/10; }
.g-2 { grid-column: span 5; aspect-ratio: 4/3; }
.g-3 { grid-column: span 4; aspect-ratio: 1/1; }
.g-4 { grid-column: span 4; aspect-ratio: 1/1; }
.g-5 { grid-column: span 4; aspect-ratio: 1/1; }
.g-6 { grid-column: span 8; aspect-ratio: 16/9; }
.g-7 { grid-column: span 4; aspect-ratio: 4/5; }
.g-tag {
  position: absolute;
  bottom: 16px;
  left: 16px;
  right: 16px;
  display: flex;
  justify-content: space-between;
  align-items: end;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--fg);
}
.g-tag b {
  background: var(--bg);
  padding: 6px 10px;
  border-radius: var(--radius);
  font-weight: 600;
}
.g-tag span {
  background: var(--accent);
  color: var(--accent-fg);
  padding: 6px 10px;
  border-radius: var(--radius);
}
@media (max-width: 900px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .g-item { grid-column: span 2 !important; }
}

/* ── Process ──────────────────────────────────────── */
.process {
  position: relative;
}
.process-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}
.step {
  display: grid;
  grid-template-columns: 80px 1fr 2fr 1fr;
  gap: 32px;
  padding: 36px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
  transition: background var(--t-fast), padding var(--t-fast);
  cursor: pointer;
}
.step:hover { background: var(--bg-2); padding-left: 16px; padding-right: 16px; }
.step-num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.06em;
  padding-top: 6px;
}
.step h3 {
  font-family: var(--font-display);
  font-size: clamp(24px, 2.4vw, 36px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0;
  line-height: 1.02;
}
.step p {
  font-size: 15px;
  line-height: 1.55;
  color: var(--muted);
  margin: 0;
  max-width: 52ch;
  text-wrap: pretty;
}
.step-time {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg-2);
  text-align: right;
  padding-top: 8px;
}
.step-time b { color: var(--fg); font-weight: 500; display: block; font-size: 16px; }
@media (max-width: 900px) {
  .step { grid-template-columns: 60px 1fr; }
  .step p, .step-time { grid-column: 2; text-align: left; }
}

/* ── Form ─────────────────────────────────────────── */
.form-section {
  background: var(--fg);
  color: var(--bg);
  border-bottom: 0;
}
.form-section .eyebrow { color: var(--accent); }
.form-section .eyebrow::before { background: var(--accent); }
.form-section .section-head h2 { color: var(--bg); }
.form-section .section-head p { color: color-mix(in oklab, var(--bg) 70%, transparent); }
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
}
.field-full { grid-column: 1 / -1; }
.field label {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: color-mix(in oklab, var(--bg) 60%, transparent);
  display: flex;
  justify-content: space-between;
}
.field label .req { color: var(--accent); }
.field input,
.field select,
.field textarea {
  background: transparent;
  border: 0;
  border-bottom: 1px solid color-mix(in oklab, var(--bg) 30%, transparent);
  padding: 12px 0;
  color: var(--bg);
  font-family: var(--font-body);
  font-size: 16px;
  outline: none;
  border-radius: 0;
  transition: border-color var(--t-fast);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-bottom-color: var(--accent);
}
.field textarea { resize: vertical; min-height: 100px; font-family: var(--font-body); }
.field select option { background: var(--fg); color: var(--bg); }
.field input::placeholder, .field textarea::placeholder {
  color: color-mix(in oklab, var(--bg) 30%, transparent);
}

.chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.chip {
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 8px 14px;
  border: 1px solid color-mix(in oklab, var(--bg) 30%, transparent);
  border-radius: var(--radius);
  color: var(--bg);
  background: transparent;
  cursor: pointer;
  transition: all var(--t-fast);
}
.chip:hover { border-color: var(--bg); }
.chip.on {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-fg);
}

.form-submit {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
  padding-top: 24px;
  border-top: 1px solid color-mix(in oklab, var(--bg) 14%, transparent);
  flex-wrap: wrap;
  gap: 16px;
}
.form-submit .small {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: color-mix(in oklab, var(--bg) 55%, transparent);
  max-width: 36ch;
  line-height: 1.5;
}
.form-submit button {
  padding: 18px 32px;
  background: var(--accent);
  color: var(--accent-fg);
  border: 0;
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.01em;
  transition: transform var(--t-fast);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.form-submit button:hover { transform: translateX(4px); }
@media (max-width: 700px) { .form-grid { grid-template-columns: 1fr; } }

.form-success {
  text-align: center;
  padding: 60px 0;
}
.form-success h3 {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 56px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 24px 0 8px;
  line-height: 1.05;
}
.form-success p { color: color-mix(in oklab, var(--bg) 60%, transparent); margin: 0; }
.form-success .check {
  width: 64px;
  height: 64px;
  background: var(--accent);
  border-radius: 50%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-fg);
  font-size: 30px;
}

/* ── Contact ─────────────────────────────────────── */
.contact {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: var(--gap);
  padding-bottom: calc(var(--pad-y) * 0.6);
}
.contact h2 {
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 72px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1;
  margin: 14px 0 0;
}
.contact-cards {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.contact-card {
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  transition: all var(--t-fast);
}
.contact-card:hover {
  border-color: var(--accent);
  background: var(--bg-2);
}
.contact-card .lbl {
  font-family: var(--font-mono);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 6px;
}
.contact-card b {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  display: block;
}
.contact-card .sub {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  margin-top: 3px;
}
.contact-card .arrow {
  font-family: var(--font-mono);
  color: var(--accent);
  font-size: 18px;
  flex-shrink: 0;
}
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } }

/* ── Footer ──────────────────────────────────────── */
.footer {
  padding: 40px var(--pad-x);
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--muted);
}

/* ── Reveal ──────────────────────────────────────── */
/* NOTE: this preview/screenshot environment freezes CSS animations &
   transitions at their first frame, so the entrance effect is applied as a
   no-op-safe enhancement only: resting state is fully visible and never
   depends on an animation completing. */
.reveal { opacity: 1; transform: none; }
.reveal.in { opacity: 1; transform: none; }

/* curtain decoration (used in hero placeholders) */
.curtain {
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(90deg,
      color-mix(in oklab, var(--bg-2) 70%, var(--fg) 8%) 0 6px,
      color-mix(in oklab, var(--bg-2) 70%, var(--fg) 14%) 6px 7px,
      var(--bg-2) 7px 18px);
  mask: linear-gradient(180deg, black 60%, transparent 100%);
}
.curtain-2 {
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(90deg,
      color-mix(in oklab, var(--bg) 92%, var(--accent) 8%) 0 14px,
      color-mix(in oklab, var(--bg) 86%, var(--accent) 14%) 14px 16px);
  opacity: 0.6;
}

/* ── nav logo as link ─────────────────────────────── */
.nav-logo { color: inherit; }

/* ── footer links ─────────────────────────────────── */
.footer { justify-content: space-between; }
.footer-links { display: flex; gap: 20px; }
.footer-links a { color: var(--muted); transition: color var(--t-fast); }
.footer-links a:hover { color: var(--accent); }
@media (max-width: 700px) {
  .footer { flex-direction: column; align-items: flex-start; gap: 14px; }
}

/* ── Subpage header band (no hero) ────────────────── */
.page-head {
  padding: clamp(56px, 7vw, 96px) var(--pad-x) 0;
}
.page-head .crumb {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  gap: 10px;
  align-items: center;
}
.page-head .crumb a { color: var(--muted); }
.page-head .crumb a:hover { color: var(--accent); }
.page-head .crumb span { color: var(--accent); }
.page-head h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(44px, 7vw, 110px);
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin: 22px 0 0;
  max-width: 16ch;
  text-wrap: balance;
}
.page-head .page-lede {
  font-size: clamp(16px, 1.3vw, 20px);
  color: var(--muted);
  line-height: 1.5;
  max-width: 56ch;
  margin: 24px 0 0;
  text-wrap: pretty;
}
[data-font="serif"] .page-head h1 { font-weight: 400; }

/* first section after page-head shouldn't double the top pad */
.page-head + section { padding-top: var(--gap); border-top: 0; }

/* ── Home teasers ─────────────────────────────────── */
.teasers { background: var(--bg-2); }
.teaser-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.teaser {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 32px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: transform var(--t-fast), border-color var(--t-fast);
  min-height: 240px;
}
.teaser:hover { transform: translateY(-4px); border-color: var(--accent); }
.teaser-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.teaser-num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.08em;
}
.teaser-arrow { font-family: var(--font-mono); color: var(--muted); font-size: 18px; transition: color var(--t-fast); }
.teaser:hover .teaser-arrow { color: var(--accent); }
.teaser-k {
  font-family: var(--font-mono);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.teaser h3 {
  font-family: var(--font-display);
  font-size: clamp(22px, 2vw, 30px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0;
  text-wrap: balance;
}
.teaser p {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--muted);
  margin: 0;
  flex: 1;
}
.teaser-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.teaser-tags span {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--fg-2);
}
@media (max-width: 760px) { .teaser-grid { grid-template-columns: 1fr; } }

/* ── CTA band ─────────────────────────────────────── */
.cta-band {
  background: var(--fg);
  color: var(--bg);
  border-bottom: 0;
}
.cta-band-inner {
  max-width: 760px;
}
.cta-band h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(36px, 5vw, 68px);
  line-height: 1;
  letter-spacing: -0.025em;
  margin: 0;
  color: var(--bg);
  text-wrap: balance;
}
.cta-band p {
  font-size: clamp(16px, 1.3vw, 20px);
  line-height: 1.5;
  color: color-mix(in oklab, var(--bg) 65%, transparent);
  margin: 18px 0 32px;
  max-width: 52ch;
}
.cta-band-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.cta-band-ghost {
  border-color: color-mix(in oklab, var(--bg) 30%, transparent);
  color: var(--bg);
}
.cta-band-ghost:hover { background: var(--bg); color: var(--fg); border-color: var(--bg); }

/* ════════════════════════════════════════════════════
   MOBILE OPTIMISATION
   ════════════════════════════════════════════════════ */

/* Tablet ≤ 640px */
@media (max-width: 640px) {
  :root {
    --pad-x: 20px;
    --pad-y: clamp(48px, 12vw, 72px);
    --gap: 28px;
  }
  [data-density="spacious"] { --pad-x: 22px; }
  [data-density="compact"] { --pad-x: 18px; }

  .nav { padding: 14px var(--pad-x); }
  .nav-logo-img { height: 22px; }

  /* HERO statement */
  .hero-statement {
    min-height: auto;
    padding: 40px 0 36px;
    gap: 32px;
  }
  .hero-top {
    flex-direction: column;
    gap: 14px;
    font-size: 12px;
  }
  .hero-top div { max-width: none; text-align: left !important; }
  .hero-title { padding: 8px 0; font-size: clamp(52px, 17vw, 92px); }
  .hero-bottom {
    grid-template-columns: 1fr;
    gap: 24px;
    align-items: start;
  }
  .hero-ctas { justify-content: stretch; }
  .hero-ctas .btn { flex: 1; justify-content: center; }
  .hero-strip {
    gap: 18px 24px;
    flex-wrap: wrap;
    font-size: 10.5px;
  }

  /* HERO split */
  .hero-split-text { padding: 48px var(--pad-x); gap: 28px; }
  .hero-split-img { min-height: 42vh; }
  .hero-split-meta { gap: 18px; }

  /* HERO marquee */
  .hero-marquee { padding: 48px 0 0; min-height: auto; gap: 36px; }
  .hero-marquee-head { margin-bottom: 36px; }
  .marquee-row { font-size: clamp(48px, 16vw, 88px); gap: 22px; padding: 18px 0; }
  .marquee-row .dot { width: 12px; height: 12px; }
  .hero-marquee-foot { flex-direction: column; align-items: stretch; gap: 24px; }
  .hero-marquee-foot .stats { gap: 28px 36px; flex-wrap: wrap; }
  .hero-marquee-foot .stats b { font-size: 24px; }
  .hero-marquee-foot > div:last-child { display: flex; gap: 10px; }
  .hero-marquee-foot > div:last-child .btn { flex: 1; justify-content: center; }

  /* Section heads */
  .section-head h2 { font-size: clamp(32px, 9vw, 48px); }

  /* Material specs — stack the value below the label */
  .spec-row {
    grid-template-columns: 36px 1fr;
    gap: 10px 14px;
    padding: 18px 0;
  }
  .spec-val { grid-column: 2; justify-self: start; margin-top: 8px; }
  .material-visual { aspect-ratio: 3/2; }

  /* Services */
  .svc { padding: 28px 22px 32px; }

  /* Gallery → single column */
  .gallery-grid { grid-template-columns: 1fr; gap: 12px; }
  .g-item { grid-column: span 1 !important; }
  .g-1, .g-6 { aspect-ratio: 16/10; }

  /* Process steps */
  .step {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 26px 0;
  }
  .step:hover { padding-left: 0; padding-right: 0; }
  .step-num { padding-top: 0; }
  .step h3 { font-size: clamp(24px, 7vw, 32px); }
  .step p { grid-column: 1; }
  .step-time { grid-column: 1; text-align: left; flex-direction: row; display: flex; gap: 8px; align-items: baseline; }
  .step-time b { display: inline; font-size: 15px; }

  /* Form */
  .form-submit { flex-direction: column; align-items: stretch; }
  .form-submit button { width: 100%; justify-content: center; }
  .field input, .field select, .field textarea { font-size: 16px; } /* keeps iOS from zooming */

  /* Contact */
  .contact h2 { font-size: clamp(36px, 11vw, 56px); }
  .contact-card { padding: 18px 18px; }

  /* Teasers */
  .teaser { padding: 26px 22px; min-height: 0; }

  /* Page head */
  .page-head h1 { font-size: clamp(40px, 13vw, 72px); }
}

/* Small phones ≤ 380px */
@media (max-width: 380px) {
  .hero-strip { font-size: 10px; gap: 12px 18px; }
  .hero-marquee-foot .stats { gap: 22px 28px; }
  .nav-logo-img { height: 20px; }
}

/* Avoid sticky-nav overlap when jumping to in-page anchors */
@media (max-width: 820px) {
  section[id], div[id] { scroll-margin-top: 72px; }
}
