/* ==========================================================================
   Tokens — café palette: cream, latte, espresso, coffee
   ========================================================================== */
:root {
  --bg: #f7f3ec;
  --cream: #efe6d8;
  --card: #fffdf9;
  --ink: #231a15;
  --accent: #7b5236;
  --latte: #d9bf9c;
  --sage: #7d8a68;

  --text: var(--ink);
  --muted: rgba(35, 26, 21, .62);
  --line: rgba(35, 26, 21, .12);
  --frame: rgba(35, 26, 21, .045);
  --field: #f6f0e7;
  --error: #a8321f;

  --f: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-serif: "Instrument Serif", Georgia, serif;

  --gutter: clamp(16px, 4vw, 56px);
  --max: 1400px;
  --r-lg: clamp(22px, 2.2vw, 32px);
  --r-md: 18px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --nav-h: 74px;
}

/* ==========================================================================
   Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
  interpolate-size: allow-keywords;
}
body.is-locked { overflow: hidden; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--f);
  font-size: clamp(16px, 1.05vw, 18px);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; letter-spacing: -.045em; line-height: .98; }
p, figure, blockquote { margin: 0; }
ul, ol, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
::selection { background: var(--ink); color: var(--bg); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; top: 12px; left: 12px; z-index: 100;
  padding: 10px 16px; border-radius: 999px;
  background: var(--ink); color: var(--bg); font-weight: 500; text-decoration: none;
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; }

.container { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }

.theme-cream { background: var(--cream); }
.theme-dark {
  background: var(--ink); color: #f4ede3;
  --text: #f4ede3; --muted: rgba(244, 237, 227, .62); --line: rgba(244, 237, 227, .14); --frame: rgba(244, 237, 227, .06);
}

.section { position: relative; padding-block: clamp(96px, 12vw, 176px); }
.section--tight { padding-top: clamp(32px, 4vw, 56px); }

/* ==========================================================================
   Type & small components
   ========================================================================== */
/* Section label: number, name, hairline */
.label {
  display: flex; align-items: center; gap: 14px;
  font-size: clamp(15px, 1.1vw, 18px); font-weight: 500; letter-spacing: -.005em;
  color: var(--text);
}
.label span { color: var(--accent); font-variant-numeric: tabular-nums; }
.theme-dark .label span { color: var(--latte); }
.label::after { content: ""; flex: 1; height: 1px; margin-left: 10px; background: var(--line); }

.pill {
  display: inline-flex; align-items: center; height: 28px; padding: 0 12px; border-radius: 999px;
  background: var(--frame); border: 1px solid var(--line);
  font-size: 12.5px; font-weight: 500; color: var(--muted); white-space: nowrap;
}
.pill--concept { background: transparent; border-style: dashed; border-color: var(--accent); color: var(--accent); }

.h2 { font-size: clamp(40px, 6.2vw, 100px); }
.h2--xl { font-size: clamp(48px, 8.4vw, 144px); letter-spacing: -.05em; }
.h3 { font-size: clamp(34px, 4.2vw, 68px); }

.section-head {
  display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; row-gap: clamp(24px, 3vw, 40px);
  margin-bottom: clamp(56px, 7vw, 104px);
}
.section-head > * { grid-column: 1 / -1; }
.section-head__intro {
  max-width: 46ch;
  font-size: clamp(17px, 1.25vw, 20px); line-height: 1.5; color: var(--muted);
}
.section-head .section-head__intro { grid-column: 7 / 13; }

.card {
  background: var(--card); border-radius: var(--r-lg);
  box-shadow: 0 0 0 1px var(--line), 0 0 0 8px var(--frame);
}

/* Text filled with an image / gradient */
.mask-text {
  color: transparent;
  background-image:
    url("images/hero.jpg"),
    radial-gradient(36% 60% at 26% 42%, #c28b5c 0%, transparent 62%),
    radial-gradient(34% 56% at 76% 58%, #8d9b78 0%, transparent 62%),
    linear-gradient(115deg, #231a15 0%, #4f3322 26%, #8a5d3d 50%, #c9a27a 72%, #5d6a4c 100%);
  background-size: 170% auto, 200% 200%, 200% 200%, 200% 200%;
  background-position: 50% 50%;
  -webkit-background-clip: text;
  background-clip: text;
}
.mask-text--light {
  background-size: 200% 200%, 200% 200%, 200% 200%;
  background-image:
    radial-gradient(36% 60% at 26% 42%, #c9a27a 0%, transparent 62%),
    radial-gradient(34% 56% at 76% 58%, #a9b594 0%, transparent 62%),
    linear-gradient(115deg, #f4ede3 0%, #d9bf9c 36%, #a87a55 64%, #efe6d8 100%);
}

/* ==========================================================================
   Buttons & links
   ========================================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 6px 6px 6px 22px; border-radius: 999px;
  background: var(--ink); color: var(--bg); border: 1px solid transparent;
  font-size: 15px; font-weight: 500; text-decoration: none; white-space: nowrap;
  transition: background-color .3s, color .3s, border-color .3s, transform .3s var(--ease);
}
.btn__icon {
  flex: none; width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--bg); color: var(--ink); font-size: 16px;
  transition: transform .5s var(--ease);
}
.btn:hover { background: var(--accent); }
.btn:hover .btn__icon { transform: rotate(-45deg); }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .6; cursor: progress; }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn--ghost .btn__icon { background: var(--ink); color: var(--bg); }
.btn--ghost:hover { background: transparent; border-color: var(--text); }
.btn--accent { background: var(--accent); }
.btn--accent:hover { background: var(--ink); }
.btn--block { width: 100%; }
.btn--lg { padding: 7px 7px 7px 26px; font-size: 16.5px; }
.btn--lg .btn__icon { width: 46px; height: 46px; font-size: 18px; }

.link-arrow {
  display: inline-flex; align-items: center; gap: .5em;
  padding-bottom: 3px; border-bottom: 1px solid currentColor;
  font-size: 15px; font-weight: 500; text-decoration: none;
}
.link-arrow span { transition: transform .4s var(--ease); }
.link-arrow:hover span { transform: translateY(3px); }

/* ==========================================================================
   Navigation — one calm bar
   ========================================================================== */
.nav {
  position: fixed; top: 14px; left: 0; right: 0; z-index: 50;
  width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  height: 60px; padding: 0 7px 0 24px; border-radius: 999px;
  background: rgba(255, 253, 249, .8);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  backdrop-filter: blur(16px) saturate(150%);
  box-shadow: 0 0 0 1px var(--line), 0 12px 32px -20px rgba(35, 26, 21, .4);
  transition: transform .5s var(--ease);
}
.nav.is-hidden { transform: translateY(calc(-100% - 24px)); }
.nav__logo { font-size: 17px; font-weight: 600; letter-spacing: -.02em; text-decoration: none; white-space: nowrap; }
.nav__links { display: flex; gap: 2px; }
.nav__links a {
  display: flex; align-items: center; height: 42px; padding: 0 16px; border-radius: 999px;
  font-size: 15px; font-weight: 500; text-decoration: none; color: var(--muted);
  transition: color .25s, background-color .25s;
}
.nav__links a:hover { color: var(--ink); background: var(--frame); }
.nav__links a.is-active { color: var(--ink); }
.nav__cta {
  display: flex; align-items: center; height: 46px; padding: 0 22px; border-radius: 999px;
  background: var(--ink); color: var(--bg);
  font-size: 15px; font-weight: 500; text-decoration: none;
  transition: background-color .25s;
}
.nav__cta:hover { background: var(--accent); }
.nav__toggle { display: none; height: 46px; padding: 0 20px; border-radius: 999px; background: var(--ink); color: var(--bg); font-size: 15px; font-weight: 500; }

.mobile-menu {
  position: fixed; inset: 0; z-index: 49;
  display: flex; flex-direction: column; justify-content: space-between; gap: 40px;
  padding: calc(var(--nav-h) + 40px) var(--gutter) 32px;
  background: var(--bg);
  transition: opacity .35s var(--ease), display .35s allow-discrete;
}
@starting-style { .mobile-menu { opacity: 0; } }
.mobile-menu nav { display: flex; flex-direction: column; }
.mobile-menu nav a {
  padding: 14px 0; border-bottom: 1px solid var(--line);
  font-size: clamp(32px, 9vw, 48px); font-weight: 500; letter-spacing: -.04em; line-height: 1.05;
  text-decoration: none;
}
.mobile-menu .btn { align-self: flex-start; }

@media (max-width: 900px) {
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: block; }
  .nav--simple .nav__cta { display: flex; }
}

/* ==========================================================================
   01 — Hero
   ========================================================================== */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 100svh; display: flex; flex-direction: column;
}
.hero::before {
  content: ""; position: absolute; inset: -10%; z-index: -1;
  background:
    radial-gradient(36% 40% at 84% 20%, rgba(194, 139, 92, .2), transparent 70%),
    radial-gradient(32% 38% at 10% 90%, rgba(125, 138, 104, .16), transparent 70%);
  filter: blur(24px);
}
.hero__inner {
  flex: 1; display: flex; flex-direction: column; justify-content: center;
  padding-top: calc(var(--nav-h) + 40px);
  padding-bottom: clamp(40px, 5vw, 72px);
}
.hero {
  /* velikost nadpisu: šířka okna, ale zmenší se, aby se tlačítko vešlo na první obrazovku (nejvýš na 60 %) */
  --hf: clamp(38px, min(6.8vw, max(calc((100svh - 408px) / 4.9), 4.1vw)), 116px);
}
.hero__title {
  font-size: var(--hf);
  font-weight: 500; line-height: .95; letter-spacing: -.05em;
  display: flex; flex-direction: column; width: 100%;
}
.hero__line { margin-left: -.04em; }
.hero__line--end { align-self: flex-end; margin: .02em 0 0; }
.hero__mask {
  position: relative; background-position: var(--bgpos, 50% 50%);
  display: block; align-self: center;
  margin: .01em 0 .02em;
  padding-right: .05em;
  font-size: calc(var(--hf) * 3.676);
  font-weight: 800; line-height: .8; letter-spacing: -.065em;
}
.hero__row { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-top: clamp(28px, 3.4vw, 52px); }

.hero__card { display: flex; flex-direction: column; gap: 26px; max-width: 470px; }
.hero__sub { font-size: clamp(19px, 1.45vw, 22px); line-height: 1.5; color: rgba(35, 26, 21, .8); }
/* CTA stojí vpravo od úvodního textu a zarovnává se na jeho spodní linku
   (viz align-items: flex-end na .hero__row). */
.hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 26px; flex: none; }

/* Text (470px) + CTA se vedle sebe přestanou vejít dřív, než přijde
   mobilní breakpoint — pod 980px se proto skládají pod sebe. */
@media (max-width: 980px) {
  .hero__row { flex-direction: column; align-items: flex-start; gap: 26px; }
}

@media (max-width: 800px) {
  .hero__row { margin-top: 28px; }
  .hero__card { max-width: none; }
  .hero__title { font-size: 11.5vw; }
  .hero__mask { font-size: 27vw; }
}

/* ==========================================================================
   02 — Statement (the one dark moment)
   ========================================================================== */
.statement {
  margin-inline: calc(var(--gutter) / 2);
  padding-block: clamp(96px, 11vw, 168px);
  border-radius: var(--r-lg);
}
.statement__grid { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; row-gap: clamp(32px, 4vw, 56px); }
.statement__grid > .label { grid-column: 1 / -1; }
.statement__title { grid-column: 1 / 12; font-size: clamp(40px, 7vw, 116px); letter-spacing: -.05em; }
.statement__title em { font-family: var(--f-serif); font-style: italic; font-weight: 400; letter-spacing: -.02em; color: var(--latte); }
.statement__text { grid-column: 7 / 12; max-width: 48ch; font-size: clamp(17px, 1.3vw, 21px); color: var(--muted); }
.js .statement__title[data-scrub] .w { opacity: .18; transition: opacity .15s linear; }

@media (max-width: 900px) {
  .statement__title, .statement__text { grid-column: 1 / -1; }
}

/* ==========================================================================
   Media & placeholders
   ========================================================================== */
.media {
  position: relative; overflow: hidden;
  aspect-ratio: 16 / 10;
  border-radius: var(--r-lg);
  background: var(--cream);
}
.media--wide { aspect-ratio: 16 / 9; }
.media--portrait { aspect-ratio: 4 / 5; }
.media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), opacity .4s; }
.media.is-missing img { opacity: 0; }
.media.is-missing::after {
  content: attr(data-placeholder);
  position: absolute; inset: 0; display: grid; place-items: center; padding: 16px; text-align: center;
  font-size: 12px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--muted);
  background: repeating-linear-gradient(-45deg, transparent 0 14px, var(--line) 14px 15px);
}

/* ==========================================================================
   03 — Projects (home rows)
   ========================================================================== */
.projects { display: flex; flex-direction: column; gap: clamp(112px, 13vw, 200px); padding-top: clamp(56px, 8vw, 120px); }

.project { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; row-gap: 28px; align-items: end; }
.project__visual { grid-column: 1 / 9; grid-row: 1; position: relative; }
.project__info { grid-column: 9 / 13; grid-row: 1; display: flex; flex-direction: column; gap: 18px; padding-bottom: 8px; }
.project:nth-child(even) .project__visual { grid-column: 5 / 13; }
.project:nth-child(even) .project__info { grid-column: 1 / 5; }

/* index number tucked behind the image — the layered "text behind object" moment */
.project__index {
  position: absolute; top: 0; left: -.04em; z-index: 0;
  transform: translateY(-56%);
  font-size: clamp(110px, 17vw, 280px); font-weight: 700;
  line-height: .8; letter-spacing: -.07em; color: var(--ink);
  pointer-events: none; user-select: none;
}
.project:nth-child(even) .project__index { left: auto; right: -.04em; }
.project__media { position: relative; z-index: 1; display: block; border-radius: var(--r-lg); padding: 8px; background: var(--card); box-shadow: 0 0 0 1px var(--line); }
.project__media .media { border-radius: calc(var(--r-lg) - 8px); }
.project__media:hover .media img { transform: scale(1.04); }

.project__meta { display: flex; flex-wrap: wrap; gap: 8px; }
.project__name { font-size: clamp(34px, 3.4vw, 56px); }
.project__context { max-width: 40ch; color: var(--muted); }
.project__info .btn { align-self: flex-start; margin-top: 4px; }

.work__more { display: flex; justify-content: center; margin-top: clamp(80px, 9vw, 140px); }

@media (max-width: 900px) {
  .project .project__visual, .project:nth-child(even) .project__visual,
  .project .project__info, .project:nth-child(even) .project__info { grid-column: 1 / -1; grid-row: auto; }
  .project:nth-child(even) .project__index { left: -.04em; right: auto; }
}

/* ==========================================================================
   04 — Services
   ========================================================================== */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; align-items: stretch; }
.plans--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.plans--four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1300px) {
  .plans--four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.plan { display: flex; flex-direction: column; gap: 28px; padding: clamp(26px, 2.6vw, 40px); }
.plan__head { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.plan__num { font-size: 14px; font-weight: 500; color: var(--accent); font-variant-numeric: tabular-nums; }
.plan__name { font-size: clamp(38px, 3.4vw, 56px); }
.plan__desc { color: var(--muted); max-width: 36ch; }
.plan__price { font-size: clamp(30px, 2.6vw, 42px); font-weight: 500; letter-spacing: -.04em; line-height: 1; }
.plan__price small { font-size: 15px; font-weight: 400; letter-spacing: 0; color: var(--muted); }
.plan__sublabel { margin-bottom: 6px; font-size: 14px; font-weight: 500; color: var(--muted); }
.plan__list li { display: flex; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 15.5px; }
.plan__list li::before { content: "✓"; flex: none; color: var(--accent); font-weight: 600; }
.plan__time {
  margin-top: auto; display: flex; justify-content: space-between; gap: 16px;
  padding: 14px 16px; border-radius: 14px; background: var(--field);
  font-size: 15px; font-weight: 500;
}
.plan__time span { color: var(--muted); font-weight: 400; }
.plan__cta { margin-top: auto; align-self: flex-start; }

.care { margin-top: clamp(112px, 12vw, 176px); }
.care__head {
  display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; row-gap: 20px; align-items: end;
  margin-bottom: clamp(40px, 5vw, 64px);
}
.care__head .h3 { grid-column: 1 / 7; }
.care__head .section-head__intro { grid-column: 7 / 13; }
.plan--care { border-radius: var(--r-lg); border: 1px solid rgba(35, 26, 21, .16); background: rgba(255, 253, 249, .45); }
.plan--care .plan__name { font-size: clamp(34px, 3vw, 50px); }
.plan--care.plan--featured { background: var(--card); border-color: transparent; box-shadow: 0 0 0 1px var(--line), 0 0 0 8px var(--frame); }

/* ---------- S čím pracuji ---------- */
.tools { margin-top: clamp(96px, 11vw, 160px); display: flex; flex-direction: column; align-items: center; gap: 28px; text-align: center; }
.tools__title { font-size: 15px; font-weight: 500; color: var(--muted); }
.tools__list { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 24px clamp(36px, 5vw, 72px); }
.tools__list li { display: flex; align-items: center; }
.tools__list img { width: clamp(34px, 3vw, 44px); height: clamp(34px, 3vw, 44px); opacity: .85; }
@media (max-width: 600px) {
  .tools__list { display: grid; grid-template-columns: repeat(3, 1fr); justify-items: center; gap: 28px 12px; width: 100%; max-width: 320px; }
}

@media (max-width: 1000px) {
  .plans, .plans--two { grid-template-columns: 1fr; }
  .care__head .h3, .care__head .section-head__intro, .section-head .section-head__intro { grid-column: 1 / -1; }
}

/* ==========================================================================
   05 — Approach
   ========================================================================== */
.principles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.principle {
  display: flex; flex-direction: column; justify-content: space-between; gap: 56px;
  min-height: clamp(360px, 34vw, 460px);
  padding: clamp(26px, 2.6vw, 38px);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.principle:hover { transform: translateY(-4px); box-shadow: 0 0 0 1px var(--line), 0 0 0 8px var(--frame), 0 30px 60px -40px rgba(35, 26, 21, .5); }
.principle__top { display: flex; flex-direction: column; gap: 10px; }
.principle__num { font-size: 14px; font-weight: 500; color: var(--muted); font-variant-numeric: tabular-nums; }
.principle__key {
  font-family: var(--f-serif); font-style: italic; font-weight: 400;
  font-size: clamp(52px, 5.2vw, 88px); line-height: .95; letter-spacing: -.02em;
  color: var(--accent);
}
.principle__title { font-size: clamp(22px, 1.8vw, 28px); letter-spacing: -.03em; line-height: 1.15; margin-bottom: 12px; }
.principle__text { color: var(--muted); }

.about {
  display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; row-gap: 32px; align-items: center;
  margin-top: clamp(96px, 11vw, 160px);
  padding: 12px;
}
.about__photo { grid-column: 1 / 6; }
.about__photo .media { border-radius: calc(var(--r-lg) - 6px); }
.about__body { grid-column: 7 / 12; display: flex; flex-direction: column; align-items: flex-start; gap: 24px; padding-block: 24px; }
.about__title { font-size: clamp(38px, 4.4vw, 72px); }
.about__text { max-width: 36ch; font-size: clamp(18px, 1.5vw, 23px); line-height: 1.4; color: var(--muted); }

@media (max-width: 1000px) {
  .principles { grid-template-columns: 1fr; }
  .principle { min-height: 0; gap: 40px; }
}
@media (max-width: 900px) {
  .about__photo, .about__body { grid-column: 1 / -1; }
  .about__body { padding: 8px 12px 20px; }
}

/* ==========================================================================
   06 — FAQ
   ========================================================================== */
.faq__grid { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; row-gap: 48px; align-items: start; }
.faq__head { grid-column: 1 / 6; display: flex; flex-direction: column; gap: clamp(24px, 3vw, 40px); }
.faq__list { grid-column: 7 / 13; display: flex; flex-direction: column; gap: 12px; }

.faq-item { background: var(--card); border-radius: var(--r-md); box-shadow: 0 0 0 1px var(--line); }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 22px 22px 22px 26px; cursor: pointer; list-style: none;
  font-size: clamp(17px, 1.35vw, 21px); font-weight: 500; letter-spacing: -.02em; line-height: 1.25;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item__icon {
  position: relative; flex: none; width: 34px; height: 34px; border-radius: 50%;
  background: var(--field); transition: background-color .3s, color .3s;
}
.faq-item__icon::before {
  content: ""; position: absolute; top: 44%; left: 50%; width: 8px; height: 8px;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: translate(-50%, -50%) rotate(45deg);
  transition: transform .4s var(--ease), top .4s var(--ease);
}
.faq-item summary:hover .faq-item__icon { background: var(--cream); }
.faq-item[open] summary .faq-item__icon { background: var(--ink); color: var(--bg); }
.faq-item[open] .faq-item__icon::before { top: 56%; transform: translate(-50%, -50%) rotate(-135deg); }
.faq-item__body {
  margin: 0 26px; padding: 18px 0 24px;
  border-top: 1px solid var(--line);
  color: var(--muted); max-width: 60ch;
}

.faq-item::details-content {
  block-size: 0; overflow: clip;
  transition: block-size .45s var(--ease), content-visibility .45s allow-discrete;
}
.faq-item[open]::details-content { block-size: auto; }

@media (max-width: 900px) {
  .faq__head, .faq__list { grid-column: 1 / -1; }
}

/* ==========================================================================
   07 — Contact
   ========================================================================== */
.contact__grid { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; row-gap: 56px; align-items: start; }
.contact__head { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; row-gap: 24px; }
.contact__head > * { grid-column: 1 / -1; }
.contact__text { grid-column: 1 / 7; max-width: 40ch; font-size: clamp(18px, 1.4vw, 21px); line-height: 1.45; color: var(--muted); }
.contact__availability { grid-column: 1 / 7; font-size: 15px; color: var(--muted); }
.contact__availability::before { content: "— "; }

.contact__form { grid-column: 1 / 8; grid-row: 2; padding: clamp(24px, 3vw, 44px); }
.flow { grid-column: 9 / 13; grid-row: 2; }

.flow__title { margin-bottom: 12px; font-size: 15px; font-weight: 500; }
.flow__list li { position: relative; display: grid; grid-template-columns: 44px 1fr; gap: 14px; padding: 12px 0; }
.flow__list li:not(:last-child)::after {
  content: ""; position: absolute; left: 21px; top: 56px; bottom: -8px; width: 1px; background: var(--line);
}
.flow__list span {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  background: var(--card); box-shadow: 0 0 0 1px var(--line);
  font-size: 12.5px; font-weight: 600; color: var(--accent);
}
.flow__list li:first-child span { background: var(--ink); color: var(--bg); box-shadow: none; }
.flow__list strong { display: block; font-weight: 500; font-size: 17px; letter-spacing: -.01em; padding-top: 2px; }
.flow__list p { font-size: 15px; color: var(--muted); }

.form { display: flex; flex-direction: column; gap: 18px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 14px; font-weight: 500; }
.field input, .field textarea {
  width: 100%; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px;
  background: var(--field); color: var(--ink); font: inherit; font-size: 16px;
  outline: none; transition: border-color .25s, background-color .25s, box-shadow .25s;
}
.field textarea { resize: vertical; min-height: 140px; line-height: 1.5; }
.field input::placeholder, .field textarea::placeholder { color: rgba(35, 26, 21, .38); }
.field input:focus, .field textarea:focus { background: #fff; border-color: var(--ink); box-shadow: 0 0 0 4px var(--frame); }
.field.is-invalid input, .field.is-invalid textarea { border-color: var(--error); background: #fff; }
.field__error { font-size: 13px; color: var(--error); }
.field__error:empty { display: none; }
.form__trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form .btn--block { margin-top: 6px; }
.form__consent { font-size: 13px; color: var(--muted); text-align: center; }
.form__consent a { color: var(--ink); text-underline-offset: 3px; }
.form__status { font-size: 14px; color: var(--error); text-align: center; }

.form-success { display: flex; flex-direction: column; justify-content: center; gap: 10px; min-height: 360px; outline: none; text-align: center; }
.form-success:not([hidden]) { animation: rise .8s var(--ease) both; }
.form-success__title { font-family: var(--f-serif); font-style: italic; font-size: clamp(72px, 8vw, 128px); line-height: .9; color: var(--accent); }
.form-success__text { font-size: clamp(19px, 1.6vw, 24px); }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } }

@media (max-width: 1000px) {
  .contact__text, .contact__availability, .contact__form, .flow { grid-column: 1 / -1; grid-row: auto; }
  .flow { order: 2; }
}
@media (max-width: 560px) {
  .form__row { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer { padding: clamp(56px, 7vw, 104px) 0 28px; border-radius: var(--r-lg) var(--r-lg) 0 0; }
.footer__word {
  font-size: min(15.6vw, 252px); font-weight: 700; white-space: nowrap;
  line-height: .9; letter-spacing: -.06em;
  margin-left: -.03em; padding-bottom: .06em;
  animation: drift 26s ease-in-out infinite;
}
.footer__row {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px;
  margin-top: clamp(32px, 4vw, 56px); padding-top: 24px; border-top: 1px solid var(--line);
  font-size: 14px;
}
.footer__role { font-weight: 500; }
.footer__links { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.footer__links a, .footer__links button { color: var(--muted); text-decoration: none; font-size: inherit; transition: color .25s; }
.footer__links a:hover, .footer__links button:hover { color: var(--text); }

/* ---------- Cookie banner ---------- */
.cookie {
  position: fixed; z-index: 90; left: 16px; right: 16px; bottom: 16px; max-width: 460px;
  padding: 22px; border-radius: 22px; background: var(--card); color: var(--ink);
  box-shadow: 0 0 0 1px var(--line), 0 24px 60px -20px rgba(35, 26, 21, .45);
  display: flex; flex-direction: column; gap: 16px;
  animation: rise .6s var(--ease) both;
}
.cookie__title { font-size: 19px; font-weight: 600; letter-spacing: -.02em; }
.cookie__text { font-size: 14.5px; color: var(--muted); line-height: 1.5; }
.cookie__text a { color: var(--ink); text-underline-offset: 3px; }
.cookie__options { display: none; flex-direction: column; gap: 10px; }
.cookie.is-detail .cookie__options { display: flex; }
.cookie__opt { display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--field); font-size: 14px; }
.cookie__opt input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--accent); flex: none; }
.cookie__opt strong { display: block; font-weight: 600; }
.cookie__opt span { color: var(--muted); }
.cookie__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.cookie__btn {
  flex: 1 1 auto; height: 44px; padding: 0 18px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--card); font-size: 14.5px; font-weight: 500;
  transition: background-color .25s, color .25s, border-color .25s;
}
.cookie__btn:hover { border-color: var(--ink); }
.cookie__btn--main { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.cookie__btn--main:hover { background: var(--accent); border-color: var(--accent); }
.footer__copy { color: var(--muted); }
.footer__legal { margin-top: 20px; font-size: 12.5px; color: var(--muted); opacity: .8; }
@keyframes drift {
  0%, 100% { background-position: 20% 30%; }
  50% { background-position: 80% 70%; }
}

/* ==========================================================================
   Subpages
   ========================================================================== */
.page-hero { padding-top: calc(var(--nav-h) + clamp(64px, 8vw, 128px)); }
.page-hero .container { display: flex; flex-direction: column; gap: 24px; }
.page-hero__title { font-size: clamp(64px, 13vw, 220px); letter-spacing: -.065em; line-height: .85; }
.page-hero__intro { max-width: 52ch; font-size: clamp(17px, 1.3vw, 21px); color: var(--muted); }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: clamp(32px, 4vw, 56px); }
.filters button {
  height: 40px; padding: 0 18px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--card);
  font-size: 14.5px; font-weight: 500; color: var(--muted);
  transition: background-color .25s, color .25s, border-color .25s;
}
.filters button:hover { color: var(--ink); border-color: var(--ink); }
.filters button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }

.grid-projects { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 3vw, 40px) clamp(20px, 2.4vw, 32px); }
.tile { display: flex; flex-direction: column; gap: 20px; padding: 10px 10px 24px; text-decoration: none; }
.tile .media { border-radius: calc(var(--r-lg) - 10px); }
.tile:hover .media img { transform: scale(1.04); }
.tile__body { display: flex; flex-direction: column; gap: 10px; padding: 0 14px; }
.tile__top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.tile__arrow {
  flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: var(--ink); color: var(--bg); transition: transform .5s var(--ease), background-color .3s;
}
.tile:hover .tile__arrow { transform: rotate(-45deg); background: var(--accent); }
.tile__name { font-size: clamp(26px, 2.4vw, 38px); }
.tile__context { color: var(--muted); max-width: 48ch; }

.cta-band__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px; }

@media (max-width: 800px) {
  .grid-projects { grid-template-columns: 1fr; }
}

/* ---------- Case study page ---------- */
.case { padding-top: calc(var(--nav-h) + clamp(56px, 7vw, 104px)); padding-bottom: clamp(80px, 10vw, 160px); }
.case__back { display: inline-flex; margin-bottom: 32px; color: var(--muted); font-size: 15px; text-decoration: none; }
.case__back:hover { color: var(--ink); }
.case__head { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.case__title { font-size: clamp(56px, 10vw, 176px); letter-spacing: -.065em; line-height: .86; }
.case__meta { font-size: 16px; font-weight: 500; color: var(--muted); }
.case__concept {
  display: inline-flex; align-items: center; height: 42px; padding: 0 20px; border-radius: 999px;
  border: 1.5px dashed var(--accent); background: rgba(123, 82, 54, .07); color: var(--accent);
  font-size: 14px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
}
.case__intro { display: flex; flex-direction: column; gap: 16px; max-width: 46ch; margin-top: 8px; font-size: clamp(20px, 1.7vw, 26px); line-height: 1.4; letter-spacing: -.01em; color: rgba(35, 26, 21, .82); }

.story { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; row-gap: 28px; align-items: start; padding-top: clamp(72px, 9vw, 136px); }
.story__title { grid-column: 1 / 8; font-size: clamp(34px, 4.6vw, 74px); letter-spacing: -.05em; line-height: .98; }
.story__text { grid-column: 8 / 13; display: flex; flex-direction: column; gap: 18px; padding-top: .5em; font-size: clamp(18px, 1.35vw, 21px); line-height: 1.55; color: rgba(35, 26, 21, .82); }
.case__visual { margin: clamp(48px, 6vw, 88px) 0 0; padding: 8px; }
.case__visual .media { border-radius: calc(var(--r-lg) - 8px); }

.outcome { display: flex; flex-direction: column; align-items: flex-start; gap: 28px; margin-top: clamp(96px, 11vw, 168px); }
.outcome .label { align-self: stretch; }
.outcome__text { max-width: 30ch; font-size: clamp(28px, 3.2vw, 50px); letter-spacing: -.04em; line-height: 1.12; }
.outcome__note { font-size: 16px; color: var(--muted); }

.case__next {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 32px;
  margin-top: clamp(72px, 8vw, 128px); padding-top: 40px; border-top: 1px solid var(--line);
}
.case__next > a:first-child { display: flex; flex-direction: column; gap: 12px; text-decoration: none; }
.case__next-label { font-size: 14px; color: var(--muted); }
.case__next-title { font-size: clamp(36px, 5vw, 84px); font-weight: 500; letter-spacing: -.055em; line-height: .95; }
.case__next-title span { display: inline-block; color: var(--accent); transition: transform .4s var(--ease); }
.case__next > a:first-child:hover .case__next-title span { transform: translateX(10px); }

.empty { padding: 80px 0; display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }

@media (max-width: 900px) {
  .story__title, .story__text { grid-column: 1 / -1; }
  .story__text { padding-top: 0; }
}

/* ---------- Legal page ---------- */
.legal { padding-top: calc(var(--nav-h) + clamp(56px, 8vw, 120px)); padding-bottom: clamp(80px, 10vw, 160px); }
.legal__inner { max-width: 760px; }
.legal h1 { font-size: clamp(44px, 6vw, 96px); margin-block: 24px 48px; }
.legal h2 { font-size: clamp(22px, 2vw, 30px); letter-spacing: -.03em; line-height: 1.15; margin: 48px 0 16px; }
.legal p, .legal li { color: var(--muted); }
.legal p + p { margin-top: 12px; }
.legal ul { list-style: disc; padding-left: 1.2em; display: grid; gap: 6px; }
.legal strong { color: var(--ink); font-weight: 600; }
.legal__table { width: 100%; margin-top: 16px; border-collapse: collapse; font-size: 14.5px; }
.legal__table th, .legal__table td { padding: 12px 14px 12px 0; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.legal__table th { font-weight: 600; color: var(--ink); }
.legal__table td { color: var(--muted); }
.legal__table td:first-child { color: var(--ink); white-space: nowrap; }
@media (max-width: 640px) { .legal__table { display: block; overflow-x: auto; } }
.legal a { text-underline-offset: 3px; }

/* ==========================================================================
   Reveal on scroll
   ========================================================================== */
.js .reveal { opacity: 0; transform: translateY(32px); transition: opacity 1s var(--ease), transform 1.2s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
.plans .reveal:nth-child(2), .principles .reveal:nth-child(2) { transition-delay: .08s; }
.plans .reveal:nth-child(3), .principles .reveal:nth-child(3) { transition-delay: .16s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .js .statement__title[data-scrub] .w { opacity: 1; }
}

/* ---------- 404 ---------- */
.notfound { min-height: 100svh; display: flex; align-items: center; padding-block: calc(var(--nav-h) + 40px) 80px; }
.notfound__inner { display: flex; flex-direction: column; align-items: flex-start; gap: 28px; }
.notfound__inner .label { align-self: stretch; }
.notfound__title { font-size: clamp(64px, 13vw, 210px); letter-spacing: -.065em; line-height: .85; }
.notfound__text { max-width: 46ch; font-size: clamp(17px, 1.3vw, 20px); color: var(--muted); }
.notfound__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 26px; }
