/* ═══════════════════════════════════════════
   Softlab · swiss-editorial na papíru
   ink + jedna elektrická modrá, ostré hrany (radius 0),
   Archivo variable (šířka 62–125) + IBM Plex Mono
   ═══════════════════════════════════════════ */

:root {
  --paper: #f2f0ea;
  --paper-2: #e9e6de;
  --ink: #141412;
  --muted: #5f5e57;
  --line: #d8d5cc;
  --accent: #2431e8;
  --accent-soft: #8f97ff;
  --font-sans: "Archivo", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --pad: clamp(1.25rem, 4vw, 3rem);
  --nav-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }
/* Lenis writes scrollTop every frame; CSS smooth would double-animate it */
html.lenis, html.lenis body { scroll-behavior: auto !important; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

/* jemný filmový grain přes celou stránku */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 80;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

::selection { background: var(--accent); color: var(--paper); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

[id] { scroll-margin-top: 84px; }

.skip-link {
  position: fixed;
  top: -100px;
  left: 1rem;
  z-index: 200;
  background: var(--ink);
  color: var(--paper);
  padding: 0.6rem 1.2rem;
  font-weight: 600;
  transition: top 0.2s var(--ease-out);
}
.skip-link:focus-visible { top: 1rem; }

.container {
  max-width: 1360px;
  margin-inline: auto;
  padding-inline: var(--pad);
}

/* ─── Preloader (jen s JS, curtain nahoru) ─── */
.loader { display: none; }
html.js .loader {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: var(--ink);
  display: grid;
  place-items: center;
}
html.js .loader.done { display: none; }
.loader-mask { overflow: hidden; display: block; }
.loader-word {
  display: inline-block;
  color: var(--paper);
  font-weight: 850;
  font-stretch: 120%;
  text-transform: uppercase;
  font-size: clamp(2.4rem, 7vw, 5.5rem);
  line-height: 1.05;
}
.loader-word sup { font-size: 0.45em; font-weight: 600; }
@media (prefers-reduced-motion: reduce) {
  html.js .loader { display: none; }
}

/* ─── Typografie ─── */
.section-title {
  font-size: clamp(2.2rem, 5.5vw, 4.5rem);
  font-weight: 800;
  font-stretch: 115%;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 0.95;
  margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
}
.mask-title { overflow: hidden; padding-block: 0.14em; margin-block: -0.14em; }
/* margin-block výše by jinak zrušil spodní odsazení titulku */
.section-title.mask-title { margin-bottom: calc(clamp(2.5rem, 5vw, 4.5rem) - 0.14em); }
.mt-inner { display: inline-block; }

/* podtržený odkaz s animovanou linkou */
.u-link {
  position: relative;
  display: inline-block;
  font-weight: 600;
  padding-bottom: 0.15em;
}
.u-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: currentColor;
  transform-origin: right;
  transition: transform 0.35s var(--ease-out);
}
@media (hover: hover) {
  .u-link:hover::after {
    transform: scaleX(0);
    transform-origin: right;
    animation: relink 0.7s var(--ease-out) forwards;
  }
  @keyframes relink {
    0% { transform: scaleX(1); transform-origin: right; }
    50% { transform: scaleX(0); transform-origin: right; }
    51% { transform-origin: left; }
    100% { transform: scaleX(1); transform-origin: left; }
  }
}
.u-link-lg { font-size: clamp(1.1rem, 1.6vw, 1.35rem); }

/* ─── Nav ─── */
.nav {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: background 0.3s var(--ease-out), border-color 0.3s var(--ease-out);
}
.nav.scrolled {
  background: rgba(242, 240, 234, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom-color: var(--line);
}
.nav-inner {
  max-width: 1360px;
  margin-inline: auto;
  padding-inline: var(--pad);
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: 2.5rem;
}
.nav-logo {
  font-weight: 800;
  font-stretch: 120%;
  text-transform: uppercase;
  font-size: 1.15rem;
  letter-spacing: 0.01em;
}
.nav-logo sup { font-size: 0.5em; font-weight: 600; }
.nav-links {
  display: flex;
  gap: 0.5rem;
  margin-left: auto;
}
.nav-links a {
  color: var(--muted);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s;
  /* velká klikací plocha přes celou výšku lišty */
  display: inline-flex;
  align-items: center;
  padding: 0 0.85rem;
  min-height: var(--nav-h);
}
.nav-links a:hover { color: var(--ink); }
.nav-cta { font-size: 0.95rem; }
.nav-burger {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 44px;
  min-height: 44px;
  background: none;
  border: 0;
  padding: 0.5rem;
  margin-left: auto;
  cursor: pointer;
}
.nav-burger span {
  width: 24px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.3s var(--ease-out);
}
.nav-burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

.mobile-menu[hidden] { display: none; }
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: var(--paper);
  display: grid;
  place-items: center;
}
.mobile-menu nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.4rem;
}
.mobile-menu nav a {
  font-size: clamp(2rem, 8.5vw, 3rem);
  font-weight: 800;
  font-stretch: 115%;
  text-transform: uppercase;
  line-height: 1;
}
.mobile-menu-cta {
  margin-top: 1.5rem;
  font-size: 1.2rem !important;
  font-weight: 600 !important;
  text-transform: none !important;
  color: var(--accent);
}

@media (max-width: 900px) {
  .nav-links, .nav-cta { display: none; }
  .nav-burger { display: flex; }
}

/* ─── Hero ─── */
.hero {
  position: relative;
  min-height: 100vh; /* fallback pro starší Safari bez dvh */
  min-height: 100dvh;
  display: flex;
  align-items: flex-end;
  border-bottom: 1px solid var(--line);
  padding-bottom: clamp(2rem, 5vh, 4rem);
  overflow: hidden;
}
.hero-line-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.hero-path {
  stroke: var(--accent);
  stroke-width: 2.5;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
}
@media (prefers-reduced-motion: no-preference) {
  html.js .hero-path {
    animation: drawline 1.6s var(--ease-out) 1.2s both;
  }
  @keyframes drawline {
    from { stroke-dashoffset: 1; }
    to { stroke-dashoffset: 0; }
  }
}
.hero-inner {
  position: relative;
  width: 100%;
  padding-top: 84px;
}
.hero-title {
  font-size: clamp(2.4rem, 7.9vw, 6.9rem);
  font-weight: 850;
  font-stretch: 120%;
  text-transform: uppercase;
  letter-spacing: -0.015em;
  line-height: 0.92;
}
.hero-title .line {
  display: block;
  overflow: hidden;
  /* maska potřebuje rezervu na diakritiku a dotahy; záporný margin
     ji zase stáhne, aby řádky zůstaly typograficky natěsno */
  padding-block: 0.14em;
  margin-block: -0.14em;
}
.hero-title .line-inner { display: inline-block; }
.line-indent { margin-left: 7%; }
.line-right { text-align: right; }
.hero-accent { color: var(--accent); font-style: normal; }
.hero-foot {
  margin-top: clamp(2.5rem, 6vh, 4.5rem);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.hero-sub {
  max-width: 44ch;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
}
@media (max-width: 700px) {
  .line-indent { margin-left: 4%; }
  .line-right { text-align: left; }
}

/* ─── Manifest ─── */
.manifesto { padding-block: clamp(6rem, 14vw, 12rem); }
.manifesto-text {
  font-size: clamp(1.9rem, 4.6vw, 3.8rem);
  font-weight: 700;
  font-stretch: 108%;
  letter-spacing: -0.02em;
  line-height: 1.15;
  max-width: 26ch;
}
.manifesto-text .word { display: inline-block; }

/* ─── Velocity pás (rychlost scrollu žene marquee) ─── */
.velocity {
  background: var(--ink);
  overflow: hidden;
  padding-block: clamp(1.1rem, 2.4vw, 2rem);
}
.velocity-track {
  display: flex;
  width: max-content;
  will-change: transform;
}
.velocity-group {
  display: flex;
  align-items: baseline;
  gap: clamp(2.2rem, 5vw, 4.5rem);
  padding-right: clamp(2.2rem, 5vw, 4.5rem);
}
.vw {
  font-size: clamp(2.2rem, 5.4vw, 4.4rem);
  font-weight: 850;
  font-stretch: 118%;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 1;
  color: var(--paper);
  white-space: nowrap;
}
.vw-outline {
  color: transparent;
  -webkit-text-stroke: 2px var(--paper);
}
@supports not (-webkit-text-stroke: 2px black) {
  .vw-outline { color: var(--paper); }
}

/* ─── Služby (sticky stack karet) ─── */
.services { padding-block: clamp(4rem, 8vw, 7rem) clamp(4rem, 8vw, 7rem); }
.stack { list-style: none; }
.stack-card {
  background: var(--paper-2);
  border: 1px solid var(--ink);
  min-height: 62vh;
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(1.5rem, 3vw, 3rem);
  align-items: center;
  padding: clamp(1.75rem, 4vw, 4rem);
  margin-bottom: 5vh;
}
.stack-card h3 {
  font-size: clamp(2rem, 4.6vw, 3.9rem);
  font-weight: 800;
  font-stretch: 115%;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 0.95;
  margin-bottom: 1.25rem;
}
.stack-card p { color: var(--muted); max-width: 44ch; }
.stack-tags {
  margin-top: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
}
.stack-art { align-self: stretch; min-height: 240px; }
.stack-art svg { width: 100%; height: 100%; display: block; }
.stack-accent { background: var(--accent); border-color: var(--accent); grid-template-columns: 1fr; }
.stack-accent h3 { color: var(--paper); }
.stack-accent p { color: #cdd2ff; max-width: 52ch; }
.stack-accent .stack-tags { color: var(--paper); }

@media (min-width: 1024px) {
  .stack-card {
    position: sticky;
    top: calc(var(--nav-h) + 24px);
  }
}
@media (max-width: 1023px) {
  .stack-card { grid-template-columns: 1fr; min-height: 0; }
  .stack-art { min-height: 0; height: 200px; order: -1; }
}

/* ─── Projekty (horizontal pan) ─── */
.work { border-block: 1px solid var(--line); }
.work-pin {
  padding-block: clamp(4rem, 8vw, 7rem);
  overflow: hidden;
}
.work-head .section-title { margin-bottom: clamp(2rem, 4vw, 3rem); }
.work-track {
  display: flex;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  /* zarovnat první kartu na levou hranu .container i nad 1360px */
  padding-inline: max(var(--pad), calc((100vw - 1360px) / 2 + 3rem));
  width: max-content;
}
.work-card {
  width: min(72vw, 640px);
  flex-shrink: 0;
}
@media (min-width: 1024px) {
  /* při pinu musí titulek + obrázek + popisek vyjít do výšky viewportu */
  .work-pin { padding-block: clamp(2.5rem, 6vh, 5rem); }
  .work-card { width: min(72vw, 640px, calc((100dvh - 21rem) * 3 / 2)); }
}
.work-media {
  overflow: hidden;
  aspect-ratio: 3 / 2;
  background: var(--paper-2);
  border: 1px solid var(--line);
}
.work-media svg {
  width: 100%;
  height: 100%;
  display: block;
  transition: transform 0.7s var(--ease-out);
}
.work-card:hover .work-media svg { transform: scale(1.04); }
.work-meta {
  padding-top: 1.1rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.2rem 1.5rem;
}
.work-meta h3 {
  font-size: 1.5rem;
  font-weight: 800;
  font-stretch: 112%;
  text-transform: uppercase;
  letter-spacing: 0;
}
.work-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  align-self: center;
}
.work-meta p {
  grid-column: 1 / -1;
  color: var(--muted);
  max-width: 52ch;
}

@media (max-width: 1023px) {
  .work-track {
    flex-direction: column;
    width: auto;
  }
  .work-card { width: 100%; }
}

/* ─── Postup (rozdaný vějíř karet na inku, dle madewithgsap) ─── */
.process {
  background: var(--ink);
  padding-block: clamp(4rem, 8vw, 7rem) clamp(5rem, 10vw, 9rem);
  overflow: hidden;
}
.process .section-title { color: var(--paper); }
.process-intro {
  color: #b3b1a8;
  font-size: clamp(1.15rem, 1.8vw, 1.5rem);
  max-width: 40ch;
  margin-top: -1.5rem;
}
.process-deck-wrap { position: relative; margin-top: clamp(2.5rem, 5vw, 4rem); }
.process-deck {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.25rem;
  max-width: 1360px;
  margin-inline: auto;
  padding-inline: var(--pad);
}
.process-card {
  /* hrací karty jsou jediný zaoblený prvek webu - záměr metafory balíčku */
  border-radius: 20px;
  min-height: 460px;
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  text-align: center;
  gap: 1rem;
}
.pc-title {
  font-size: clamp(1.5rem, 2.2vw, 1.9rem);
  font-weight: 800;
  font-stretch: 115%;
  text-transform: uppercase;
  line-height: 1;
  padding-top: 0.75rem;
}
.pc-title span { display: inline-block; }
.pc-num {
  font-size: clamp(6rem, 9vw, 8.5rem);
  font-weight: 850;
  font-stretch: 120%;
  line-height: 0.8;
  opacity: 0.22;
}
.process-card p { font-size: 0.98rem; max-width: 30ch; }
.pc-1 { background: var(--paper-2); color: var(--ink); }
.pc-2 { background: #080808; color: var(--paper); border: 1px solid #555; }
.pc-3 { background: var(--paper); color: var(--ink); }
.pc-4 { background: var(--ink); color: var(--paper); border: 1px solid rgba(242, 240, 234, 0.4); }
.pc-1 p, .pc-3 p { color: var(--muted); }
.pc-2 p, .pc-4 p { color: rgba(242, 240, 234, 0.75); }

/* na telefonu mají karty lehké natočení a vstupují revealem */
@media (max-width: 767px) {
  html.js .process-card[data-reveal].revealed:nth-child(odd) { transform: rotate(-1.5deg); }
  html.js .process-card[data-reveal].revealed:nth-child(even) { transform: rotate(1.5deg); }
  html:not(.js) .process-card:nth-child(odd) { transform: rotate(-1.5deg); }
  html:not(.js) .process-card:nth-child(even) { transform: rotate(1.5deg); }
}

/* od tabletu výš se sekce pinne a GSAP rozdává karty */
@media (min-width: 768px) and (prefers-reduced-motion: no-preference) {
  /* transformy karet vlastní GSAP, reveal přechod by se s ním pral */
  html.js .process-card[data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
  html.js .process {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-block: 4rem 3rem;
  }
  html.js .process-deck-wrap { min-height: 560px; flex: 1; }
  html.js .process-deck { display: block; padding: 0; }
  html.js .process-card {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 330px;
    height: 470px;
    min-height: 0;
    margin: -235px 0 0 -165px;
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.35);
  }
}

/* ─── Kontakt + patička (inkový blok) ─── */
.footer {
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
}
.footer-cta {
  padding-block: clamp(5rem, 11vw, 10rem) clamp(4rem, 8vw, 7rem);
}
/* ─── CTA přejezd: obří text jede přes připnutou sekci ─── */
.cta-pan {
  padding-block: clamp(4rem, 10vw, 8rem);
  overflow: hidden;
}
.cta-pan-line {
  font-weight: 850;
  font-stretch: 118%;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--ink);
  text-align: center;
  font-size: clamp(2.6rem, 12vw, 6rem);
}
/* přejezd běží i na mobilech - velikost se škáluje přes vh/vw */
@media (prefers-reduced-motion: no-preference) {
  html.js .cta-pan {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-block: 0;
  }
  html.js .cta-pan-line {
    white-space: nowrap;
    font-size: min(34vh, 24vw);
    text-align: left;
    will-change: transform;
  }
}

/* ─── zvlněné hrany (postup → papír, papír → patička) ─── */
.footer-curve,
.process-curve {
  background: var(--paper);
  line-height: 0;
}
.footer-curve svg,
.process-curve svg {
  display: block;
  width: 100%;
  height: clamp(70px, 13vw, 160px);
}
.footer-curve path,
.process-curve path { fill: var(--ink); }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.footer-title {
  font-size: clamp(2.6rem, 8vw, 7.5rem);
  font-weight: 850;
  font-stretch: 118%;
  text-transform: uppercase;
  letter-spacing: -0.015em;
  line-height: 0.95;
}
.footer-sub {
  margin-top: 2rem;
  color: #b3b1a8;
  max-width: 44ch;
  font-size: 1.1rem;
}
.footer-mail {
  display: inline-block;
  margin-top: 2.5rem;
  font-size: clamp(1.4rem, 3.4vw, 2.6rem);
  font-weight: 700;
  font-stretch: 108%;
  letter-spacing: -0.01em;
  border-bottom: 3px solid var(--accent);
  padding-bottom: 0.1em;
  transition: color 0.3s var(--ease-out);
}
.footer-mail:hover { color: var(--accent-soft); }
.footer-bottom {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
  padding-block: 2rem;
  border-top: 1px solid rgba(242, 240, 234, 0.16);
}
.footer-brand {
  font-weight: 800;
  font-stretch: 120%;
  text-transform: uppercase;
  font-size: 1rem;
}
.footer-brand sup { font-size: 0.5em; }
.footer-links {
  display: flex;
  gap: 1.75rem;
  margin-left: auto;
  flex-wrap: wrap;
}
.footer-links a {
  color: #b3b1a8;
  font-size: 0.95rem;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--paper); }
.footer-note { color: #b3b1a8; font-size: 0.9rem; }

/* obří wordmark na úplný závěr */
.footer-mark {
  font-size: 9.5vw;
  font-weight: 850;
  font-stretch: 120%;
  text-transform: uppercase;
  letter-spacing: -0.015em;
  line-height: 0.78;
  text-align: center;
  white-space: nowrap;
  margin-bottom: -0.16em; /* useknout pod účařím, klasický editorial závěr */
  color: var(--paper);
}
.footer-mark sup { font-size: 0.22em; font-weight: 600; vertical-align: 2.2em; }

/* ─── Reveal (JS přidá .revealed) ─── */
@media (prefers-reduced-motion: no-preference) {
  html.js [data-reveal] {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
  }
  html.js [data-reveal].revealed {
    opacity: 1;
    transform: none;
  }
  /* titulky jedou maskou zdola, ne fadem */
  html.js .mask-title[data-reveal] {
    opacity: 1;
    transform: none;
  }
  html.js .mask-title[data-reveal] .mt-inner {
    transform: translateY(115%);
    transition: transform 0.9s var(--ease-out);
  }
  html.js .mask-title[data-reveal].revealed .mt-inner { transform: none; }
  /* vizuály se odhalují maskou zdola; klipujeme vnitřní svg, ne pozorovaný
     element - clip-path na targetu by IntersectionObserver nikdy nesepnul */
  html.js .reveal-img[data-reveal] {
    transform: none;
    opacity: 1;
  }
  html.js .reveal-img[data-reveal] svg {
    clip-path: inset(100% 0 0 0);
    transition: clip-path 0.9s var(--ease-out), transform 0.7s var(--ease-out);
  }
  html.js .reveal-img[data-reveal].revealed svg { clip-path: inset(0 0 0 0); }
}

/* Project inquiry */
.project-cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 1rem;
  padding: .9rem 1.4rem; border: 1px solid currentColor; border-radius: 3px;
  background: var(--ink); color: var(--paper); font: inherit; font-weight: 600;
  box-shadow: inset 0 0 0 4px var(--ink), inset 0 0 0 5px #666;
  cursor: pointer; transition: background .25s, box-shadow .25s, transform .25s;
}
.project-cta::after { display: none; }
.project-cta:hover { background: #30302d; transform: translateY(-2px); box-shadow: inset 0 0 0 4px #30302d, inset 0 0 0 5px #aaa; }
.project-cta:focus-visible { outline: 3px solid var(--accent-soft); outline-offset: 5px; }
.tmobile-media { background: #e20074; color: white; display: grid; place-items: center; }
.tmobile-media span { font: 800 clamp(6rem, 16vw, 12rem)/1 Georgia, serif; }
.work-track { width: auto; }
.work-card { width: min(100%, 900px); }
.footer-phone { display: inline-block; font-size: clamp(1.4rem, 3vw, 2.4rem); margin-bottom: 3rem; }
.footer-cta { padding-bottom: 1.5rem; }
.inquiry-form { scroll-margin-top: 90px; border-top: 1px solid #555; padding: 2.5rem 0 4rem; }
.inquiry-form h3 { font-size: clamp(1.6rem, 4vw, 2.8rem); margin-bottom: 2rem; }
.inquiry-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
.inquiry-form label { display: grid; gap: .5rem; margin-bottom: 1.5rem; }
.inquiry-form input, .inquiry-form select, .inquiry-form textarea {
  width: 100%; min-width: 0; border: 1px solid #777; border-radius: 0;
  background: #222220; color: var(--paper); padding: .85rem; font: inherit;
}
.inquiry-form textarea { resize: vertical; }
.inquiry-form :is(input,select,textarea):focus-visible { outline: 2px solid var(--accent-soft); outline-offset: 3px; }
.inquiry-note, #inquiryStatus { color: #b3b1a8; max-width: 65ch; margin: 1rem 0; }
@media (max-width: 900px) { .nav-cta.project-cta { display: none; } }
@media (max-width: 767px) {
  .inquiry-grid { grid-template-columns: 1fr; gap: 0; }
  html.js .process-card[data-reveal] { transition: none; }
  .nav-logo { font-size: 1rem; }
}
@media (prefers-reduced-motion: reduce) {
  .project-cta { transition: none; }
  .project-cta:hover { transform: none; }
}

/* Live website showcase */
.work-intro { color: var(--muted); max-width: 48ch; margin: -1rem 0 3rem; }
.showcase-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3.5rem 2rem; }
.showcase-card:first-child { grid-column: 1 / -1; }
.showcase-link { display: block; color: inherit; text-decoration: none; }
.showcase-link:focus-visible { outline: 3px solid var(--accent); outline-offset: 8px; }
.showcase-preview { position: relative; overflow: hidden; border: 1px solid var(--line); background: var(--paper-2); }
.showcase-browser { display: flex; justify-content: space-between; align-items: center; padding: .7rem 1rem; font: .72rem var(--font-mono); color: var(--muted); border-bottom: 1px solid var(--line); }
.showcase-dots { font-size: .55rem; letter-spacing: .2em; color: #a5a299; }
.showcase-preview img { display: block; width: 100%; height: auto; transition: transform .65s var(--ease-out); }
.showcase-card:first-child .showcase-preview img { aspect-ratio: 16 / 9; object-fit: cover; object-position: center; }
.showcase-open { position: absolute; bottom: 1.2rem; right: 1.2rem; padding: .7rem 1rem; background: var(--paper); color: var(--ink); font-size: .85rem; font-weight: 600; border: 1px solid var(--ink); }
.showcase-meta { display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: .4rem 1rem; padding-top: 1.25rem; }
.showcase-number { font: .75rem var(--font-mono); color: var(--muted); }
.showcase-meta h3 { font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 800; }
.showcase-arrow { font-size: 1.6rem; }
.showcase-meta p { grid-column: 2 / -1; color: var(--muted); font-size: .95rem; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) { .showcase-link:hover img { transform: scale(1.025); } }
@media (max-width: 700px) {
  .showcase-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .showcase-meta { grid-template-columns: auto 1fr auto; gap: .4rem .75rem; }
  .showcase-meta .work-tag { grid-column: 2; grid-row: 2; }
  .showcase-arrow { grid-column: 3; grid-row: 1; }
  .showcase-meta p { grid-row: 3; }
  .showcase-open { right: .65rem; bottom: .65rem; padding: .5rem .7rem; font-size: .75rem; }
  .showcase-card:first-child .showcase-preview img { aspect-ratio: 3 / 2; }
}

/* ─── Cookie bar ─── */
.cookie-bar {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 1rem;
  max-width: 640px;
  margin: 0 auto;
  padding: 0.9rem 1.1rem;
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--ink);
}
.cookie-bar[hidden] { display: none; }
.cookie-bar p { margin: 0; font-size: 0.85rem; line-height: 1.5; flex: 1; }
.cookie-bar a { color: var(--accent-soft); text-underline-offset: 3px; }
.cookie-bar button {
  flex: none;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: var(--paper);
  color: var(--ink);
  border: 0;
  padding: 0.65rem 1.1rem;
  cursor: pointer;
}
@media (max-width: 560px) {
  .cookie-bar { flex-direction: column; align-items: stretch; text-align: left; }
}
