/* ESTUDIOKDS v3 — structure. Tokens first; every page reads them. */

@font-face { font-family: "Archivo"; src: url("/assets/fonts/archivo-var-latin.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("/assets/fonts/instrument-serif-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("/assets/fonts/instrument-serif-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }

:root {
  --paper: #F4F3EF; --ink: #0E0E0E; --brass: #E8452C; --stone: #E7E3DA; --clay: #A9573B; --night: #1F2A2E;
  --neon: #FFF2EE; --glow: 255 77 46;
  --bg: var(--paper); --fg: var(--ink); --muted: #5A5852; --surface: var(--stone); --ink-field: var(--ink);
  --sans: "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --gut: clamp(18px, 3.4vw, 48px);
  --head-h: 76px;
  --sec: clamp(96px, 13vw, 200px);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --t-display: clamp(44px, 9.4vw, 172px);
  --t-h1: clamp(52px, 9vw, 152px);
  --t-h2: clamp(40px, 6vw, 100px);
  --t-h3: clamp(28px, 2.9vw, 46px);
  --t-lead: clamp(19px, 1.55vw, 23px);
  color-scheme: light;
  box-sizing: border-box;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #0E0E0E; --fg: #F4F3EF; --muted: #A9A69E; --surface: #1B1A18; --ink-field: #1C1B19; color-scheme: dark; }
}

*, *::before, *::after { box-sizing: inherit; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--head-h) + 16px); overflow-x: clip; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 400 17px/1.55 var(--sans); font-size-adjust: from-font; overflow-x: clip; }
@media (min-width: 1200px) { body { font-size: 18px; } }
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .18em; }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }
::selection { background: var(--brass); color: var(--ink); }
h1, h2, h3 { margin: 0; font-weight: 800; font-stretch: 112%; letter-spacing: -.04em; line-height: .92; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
main:focus { outline: none; }
.wrap { padding-inline: var(--gut); }
.paren { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: 0; font-stretch: 100%; }
.todo { background: #FFE58A; color: #0E0E0E; padding: 0 .3em; border-radius: 4px; font-weight: 600; }
.skip { position: fixed; left: var(--gut); top: -80px; z-index: 100; padding: 12px 18px; border-radius: 999px; background: var(--fg); color: var(--bg); font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }
.h1 { font-size: var(--t-h1); }
.h2 { font-size: var(--t-h2); }
.lead { max-width: 46ch; font-size: var(--t-lead); line-height: 1.45; }
.text-link { font-weight: 600; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: .22em; }
.text-link:hover { text-decoration-color: var(--brass); }
.tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { padding: 8px 14px; border-radius: 999px; background: color-mix(in srgb, currentColor 10%, transparent); font-size: 14px; font-weight: 500; }

/* ---------------------------------------------------------------- buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .6em; min-height: 52px; padding: 14px 26px; border: 0; border-radius: 999px; background: var(--fg); color: var(--bg); font: 600 16px/1.1 var(--sans); text-decoration: none; cursor: pointer; transition: background-color .3s var(--ease), color .3s var(--ease), box-shadow .3s var(--ease), transform .3s var(--ease); }
.btn:hover { background: var(--brass); color: var(--ink); }
.btn:active { transform: scale(.97); }
.btn--sm { min-height: 44px; padding: 10px 18px; font-size: 14px; }
.btn--lg { min-height: 64px; padding: 18px 34px; font-size: 18px; }
.btn--paper { background: var(--paper); color: var(--ink); }
.btn--line { background: transparent; color: inherit; box-shadow: inset 0 0 0 1.5px currentColor; }
.btn--line:hover { background: var(--fg); color: var(--bg); box-shadow: none; }
.link-btn { padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; text-decoration: underline; text-underline-offset: .18em; cursor: pointer; }

/* ---------------------------------------------------------------- header */
.site-header { position: fixed; z-index: 50; inset: 0 0 auto; height: calc(var(--head-h) + env(safe-area-inset-top, 0px)); padding: env(safe-area-inset-top, 0px) var(--gut) 0; display: flex; align-items: center; justify-content: space-between; gap: 20px; background: var(--bg); color: var(--fg); transition: background-color .4s var(--ease), color .4s var(--ease); }
.site-header.on-dark { background: var(--ink); color: var(--paper); }
.brand { display: block; color: inherit; }
.brand .logo { width: clamp(148px, 13vw, 196px); height: auto; }
.nav { display: flex; gap: clamp(16px, 2vw, 32px); font-size: 15px; font-weight: 500; }
.nav a { position: relative; padding: 8px 0; text-decoration: none; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 3px; height: 1.5px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.head-end { display: flex; align-items: center; gap: 10px; }
.langs { display: inline-flex; padding: 3px; border-radius: 999px; background: color-mix(in srgb, currentColor 10%, transparent); }
.langs a { min-width: 40px; min-height: 36px; padding: 0 8px; display: inline-grid; place-items: center; border-radius: 999px; font-size: 13px; font-weight: 600; letter-spacing: .02em; text-decoration: none; }
.langs a[aria-current] { background: var(--fg); color: var(--bg); }
.on-dark .langs a[aria-current] { background: var(--paper); color: var(--ink); }
.on-dark .head-cta { background: var(--paper); color: var(--ink); }
.on-dark .head-cta:hover { background: var(--brass); }
.menu-btn { display: none; align-items: center; min-height: 44px; padding: 10px 18px; border: 0; border-radius: 999px; background: transparent; color: inherit; box-shadow: inset 0 0 0 1.5px currentColor; font: 600 15px/1 var(--sans); cursor: pointer; }
@media (max-width: 1080px) { .nav { display: none; } .menu-btn { display: inline-flex; } }
@media (max-width: 720px) { .site-header .langs, .head-cta { display: none; } }

/* ---------------------------------------------------------------- menu (native dialog) */
.menu { position: fixed; inset: 0; width: 100%; max-width: none; height: 100dvh; max-height: none; margin: 0; padding: calc(16px + env(safe-area-inset-top, 0px)) var(--gut) calc(var(--gut) + env(safe-area-inset-bottom, 0px)); border: 0; background: var(--ink); color: var(--paper); flex-direction: column; justify-content: space-between; gap: 32px; overflow: auto; }
.menu[open] { display: flex; }
.menu::backdrop { background: var(--ink); }
.menu-top { display: flex; justify-content: space-between; align-items: center; min-height: var(--head-h); }
.menu-brand { font-weight: 800; font-stretch: 112%; letter-spacing: -.02em; font-size: 20px; }
.menu nav { display: flex; flex-direction: column; }
.menu nav a { font: 800 clamp(44px, 12vw, 96px)/1.04 var(--sans); font-stretch: 112%; letter-spacing: -.045em; text-decoration: none; }
.menu nav a:hover, .menu nav a:focus-visible, .menu nav a[aria-current="page"] { color: var(--brass); }
.menu-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 20px; font-size: 15px; }
.menu .langs a { padding: 0 14px; }
.menu .langs a[aria-current] { background: var(--paper); color: var(--ink); }

/* ---------------------------------------------------------------- home: hero (the slogan, lit like a sign) */
.hero { position: relative; min-height: 100svh; display: grid; grid-template-rows: 1fr auto; gap: 40px; padding: calc(var(--head-h) + env(safe-area-inset-top, 0px) + 4vh) var(--gut) calc(var(--gut) + env(safe-area-inset-bottom, 0px)); background: var(--ink); color: var(--paper); overflow: clip; }
.hero-title { align-self: center; max-width: 15ch; font-size: var(--t-display); line-height: .9; letter-spacing: -.045em; font-stretch: 110%; color: var(--neon); text-shadow: 0 0 .03em rgb(255 242 238 / .9), 0 0 .14em rgb(var(--glow) / .42), 0 0 .5em rgb(var(--glow) / .18); }
.kds-wait .hero-title { visibility: hidden; }
.hero-foot { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 24px 40px; }
.hero-lead { max-width: 44ch; font-size: var(--t-lead); line-height: 1.45; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero .btn { background: var(--paper); color: var(--ink); }
.hero .btn:hover { background: var(--brass); }
.hero .btn--line { background: transparent; color: var(--paper); }
.hero .btn--line:hover { background: var(--paper); color: var(--ink); }

.statement { padding: var(--sec) var(--gut) 0; }
.statement p { max-width: 32ch; font-size: clamp(26px, 2.9vw, 42px); font-weight: 600; line-height: 1.14; letter-spacing: -.025em; }

.section { padding-top: var(--sec); }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 20px 40px; margin-bottom: clamp(32px, 4.5vw, 64px); }
.section-head > p { max-width: 38ch; font-size: var(--t-lead); }

/* three ways to be seen */
.way { display: grid; grid-template-columns: minmax(170px, 1fr) 3fr; gap: 12px 40px; padding: clamp(32px, 4vw, 64px) var(--gut); }
.way--ink { background: var(--ink-field); color: var(--paper); }
.way--stone { background: var(--stone); color: var(--ink); }
.way-label { font-size: clamp(32px, 3.4vw, 54px); font-weight: 400; line-height: 1; }
.way-list { list-style: none; margin: 0; padding: 0; }
.way-list a { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 4px 24px; padding: 12px 0; text-decoration: none; }
.way-n { font: 700 clamp(30px, 3.9vw, 64px)/1.02 var(--sans); font-stretch: 105%; letter-spacing: -.035em; transition: color .35s var(--ease), transform .5s var(--ease); }
.way-d { max-width: 32ch; font-size: 16px; text-align: right; opacity: .78; }
.way-list a:hover .way-n, .way-list a:focus-visible .way-n { color: var(--brass); transform: translateX(.2em); }
.way--stone .way-list a:hover .way-n { color: var(--clay); }

/* recent projects */
.teaser-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(12px, 1.4vw, 20px); }
.teaser { display: flex; flex-direction: column; justify-content: space-between; gap: 40px; min-height: clamp(220px, 24vw, 360px); padding: clamp(22px, 2.6vw, 40px); border-radius: 28px; text-decoration: none; transition: transform .5s var(--ease); }
.teaser:hover { transform: translateY(-4px); }
.teaser--big { grid-row: span 2; min-height: clamp(460px, 50vw, 740px); }
.teaser-kind { font-size: 15px; font-weight: 600; }
.teaser-name { font: 800 clamp(40px, 5.6vw, 96px)/.9 var(--sans); font-stretch: 110%; letter-spacing: -.045em; }
.teaser--ink { background: var(--ink-field); color: var(--neon); }
.teaser--clay { background: var(--clay); color: var(--paper); }
.teaser--stone { background: var(--stone); color: var(--ink); }

/* how we work */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(24px, 2.6vw, 40px); counter-reset: s; }
.steps li { counter-increment: s; display: flex; flex-direction: column; gap: 12px; }
.steps li::before { content: counter(s); font: italic 400 clamp(46px, 4.6vw, 74px)/1 var(--serif); color: var(--brass); }
.steps h3 { font-size: clamp(24px, 2.2vw, 34px); font-stretch: 105%; letter-spacing: -.03em; line-height: 1; }
.steps p { max-width: 30ch; color: var(--muted); }
.home-end { padding-bottom: var(--sec); }

/* ---------------------------------------------------------------- inner pages */
.page-head { display: grid; gap: 24px; padding-top: calc(var(--head-h) + clamp(56px, 9vw, 150px)); padding-bottom: clamp(40px, 6vw, 96px); }
.chapters { display: flex; flex-wrap: wrap; gap: 10px; padding-bottom: clamp(48px, 6vw, 96px); }

/* services */
.chapter { padding-block: var(--sec); }
.chapter--ink { background: var(--ink-field); color: var(--paper); }
.chapter--stone { background: var(--stone); color: var(--ink); }
.chapter-head { display: grid; gap: 20px; margin-bottom: clamp(32px, 5vw, 80px); scroll-margin-top: var(--head-h); }
.svc { display: grid; grid-template-columns: 1.1fr 1fr; gap: 24px clamp(28px, 5vw, 96px); align-items: start; padding-block: clamp(28px, 3.4vw, 52px); scroll-margin-top: calc(var(--head-h) + 16px); }
.svc h3 { margin-bottom: 14px; font-size: var(--t-h3); }
.svc-text p { max-width: 46ch; margin-bottom: 22px; }
.svc-side { display: grid; gap: 20px; }
.svc-vis { aspect-ratio: 6 / 5; border-radius: 24px; overflow: hidden; background: var(--v, #1B1A18); }
.svc-vis svg { width: 100%; height: 100%; }
.chapter--ink .btn { background: var(--paper); color: var(--ink); }
.chapter--ink .btn:hover { background: var(--brass); }
.chapter--stone .btn { background: var(--ink); color: var(--paper); }
.chapter--stone .btn:hover { background: var(--brass); color: var(--ink); }
.neon { font-family: var(--serif); font-style: italic; fill: #FFF2EE; filter: url(#glow); }

/* projects (the gallery) */
.projects { display: grid; gap: clamp(56px, 8vw, 140px); padding-bottom: var(--sec); }
.proj { display: grid; grid-template-columns: 1.5fr 1fr; gap: 24px clamp(24px, 4vw, 64px); align-items: end; scroll-margin-top: calc(var(--head-h) + 16px); }
.proj:nth-child(even) { grid-template-columns: 1fr 1.5fr; }
.proj:nth-child(even) .proj-field { order: 2; }
.proj-field { min-height: clamp(320px, 38vw, 560px); display: flex; flex-direction: column; justify-content: space-between; gap: 32px; padding: clamp(22px, 2.8vw, 44px); border-radius: 28px; }
.proj--ink .proj-field { background: var(--ink-field); color: var(--neon); }
.proj--clay .proj-field { background: var(--clay); color: var(--paper); }
.proj--stone .proj-field { background: var(--stone); color: var(--ink); }
.proj-year { font-weight: 600; font-size: 15px; }
.proj-name { font-size: clamp(44px, 6.2vw, 108px); }
.proj-info { display: grid; gap: 18px; align-content: end; }
.proj-info > p { max-width: 44ch; }
.quote { margin: 8px 0 0; }
.quote blockquote { margin: 0; font: italic 400 clamp(24px, 2.4vw, 36px)/1.15 var(--serif); }
.quote figcaption { margin-top: 12px; font-size: 15px; font-weight: 600; }

/* studio */
.story { display: grid; grid-template-columns: 1fr 1fr; gap: 24px clamp(28px, 5vw, 96px); padding-bottom: var(--sec); }
.story p + p { margin-top: 1em; }
.manifesto { padding: var(--sec) var(--gut); background: var(--ink-field); color: var(--paper); }
.manifesto p { max-width: 30ch; font-size: clamp(26px, 3vw, 44px); font-weight: 600; line-height: 1.14; letter-spacing: -.025em; }
.rows { margin: 0; display: grid; gap: 0; }
.rows > div { display: grid; grid-template-columns: minmax(180px, 1fr) 2fr; gap: 8px 40px; padding-block: clamp(18px, 2.2vw, 30px); }
.rows > div:nth-child(odd) { background: color-mix(in srgb, var(--fg) 4%, transparent); }
.rows dt { font: 700 clamp(24px, 2.4vw, 36px)/1.05 var(--sans); font-stretch: 105%; letter-spacing: -.03em; padding-inline: var(--gut); }
.rows dd { margin: 0; max-width: 54ch; padding-inline: var(--gut); }
.workshop { display: grid; grid-template-columns: 1fr 1fr; gap: 24px clamp(28px, 5vw, 96px); align-items: start; }
.mats-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(16px, 2vw, 28px) clamp(24px, 4vw, 64px); }
.mats-list li { display: grid; grid-template-columns: 56px 1fr; gap: 6px 18px; align-items: start; }
.mats-list i { grid-row: span 2; width: 56px; height: 56px; border-radius: 14px; background: var(--sw); }
.mats-list b { font-size: clamp(22px, 2vw, 30px); font-weight: 700; letter-spacing: -.02em; line-height: 1.1; }
.mats-list span { color: var(--muted); }

/* shop */
.products { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(16px, 2vw, 28px); }
.product { display: grid; grid-template-rows: auto 1fr; border-radius: 28px; overflow: hidden; background: var(--surface); }
.product-vis { display: grid; place-items: center; aspect-ratio: 4 / 3; background: var(--ink-field); color: var(--paper); }
.product:nth-child(4n+2) .product-vis, .product:nth-child(4n+3) .product-vis { background: var(--clay); }
.product-vis svg { width: min(62%, 320px); height: auto; }
.product-tx { display: grid; gap: 12px; align-content: start; padding: clamp(20px, 2.4vw, 36px); }
.product-code { font-size: 14px; font-weight: 600; color: var(--muted); }
.product h2 { font-size: clamp(36px, 4.2vw, 68px); }
.product-price { font-weight: 600; }
.product .btn { justify-self: start; margin-top: 8px; }
.order { display: grid; grid-template-columns: 1fr 1.4fr; gap: 24px clamp(28px, 5vw, 96px); padding-block: var(--sec); }
.order ol { margin: 0; padding-left: 1.3em; display: grid; gap: 12px; font-size: var(--t-lead); line-height: 1.4; }
.order .note { grid-column: 2; max-width: 56ch; color: var(--muted); }

/* contact */
.contact-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; margin: 0; padding-bottom: clamp(24px, 4vw, 48px); }
.contact-grid dt { margin-bottom: 8px; font-size: 15px; font-weight: 600; color: var(--muted); }
.contact-grid dd { margin: 0; font-size: clamp(19px, 1.6vw, 24px); font-weight: 600; letter-spacing: -.01em; }
.contact-grid dd small { display: block; margin-top: 4px; font-size: 14px; font-weight: 400; color: var(--muted); }
.contact-grid a { text-decoration: none; }
.contact-grid a:hover { text-decoration: underline; }

/* ---------------------------------------------------------------- quote form */
.cfg { padding-block: clamp(48px, 7vw, 120px) var(--sec); scroll-margin-top: var(--head-h); }
.cfg-head { display: grid; gap: 18px; margin-bottom: clamp(28px, 4vw, 56px); }
.cfg-form { padding: clamp(20px, 3.4vw, 52px); border-radius: 32px; background: var(--surface); }
.hp { position: absolute; left: -9999px; }
.cfg-steps { list-style: none; margin: 0 0 clamp(24px, 3vw, 40px); padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.cfg-steps li { position: relative; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 999px; background: color-mix(in srgb, var(--fg) 6%, transparent); color: var(--muted); font-size: 15px; font-weight: 600; }
.cfg-steps li span { width: 28px; height: 28px; flex: none; display: inline-grid; place-items: center; border-radius: 50%; background: color-mix(in srgb, var(--fg) 10%, transparent); font-size: 13px; }
.cfg-steps li em { font-style: normal; }
.cfg-steps li.on { background: var(--fg); color: var(--bg); }
.cfg-steps li.on span { background: var(--brass); color: var(--ink); }
.cfg-steps li.done { color: var(--fg); }
.cfg-steps li.done span { background: var(--fg); color: var(--bg); }
.cfg-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, 320px); gap: clamp(20px, 3vw, 48px); align-items: start; }
.step { min-width: 0; margin: 0; padding: 0; border: 0; display: none; }
.step.on { display: block; }
.step legend { margin-bottom: 18px; padding: 0; font-size: clamp(26px, 2.6vw, 40px); font-weight: 700; letter-spacing: -.03em; line-height: 1.1; }
.grp { margin-bottom: 22px; }
.grp > p { margin-bottom: 10px; font-weight: 600; }
.opts { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.opts--big { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.opt { position: relative; display: block; cursor: pointer; }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt .card { display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 16px 18px; border-radius: 20px; background: var(--bg); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--fg) 14%, transparent); transition: box-shadow .25s, transform .25s var(--ease); }
.opt:hover .card { transform: translateY(-2px); }
.opt input:checked + .card { box-shadow: inset 0 0 0 2.5px var(--fg); }
.opt input:focus-visible + .card { outline: 2px solid var(--brass); outline-offset: 3px; }
.opt .nm { font-size: 18px; font-weight: 700; letter-spacing: -.01em; }
.opts--big .opt .nm { font-size: 21px; }
.opt .ds { color: var(--muted); font-size: 14px; line-height: 1.4; }
.badge-pop { align-self: flex-start; padding: 4px 10px; border-radius: 999px; background: var(--brass); color: var(--ink); font-size: 12px; font-weight: 700; }
.opt-group { display: none; }
.opt-group.on { display: block; }
.drop { position: relative; display: grid; place-items: center; min-height: 220px; padding: 24px; overflow: hidden; border-radius: 24px; background: var(--bg); box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--fg) 16%, transparent); text-align: center; cursor: pointer; }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop-in { display: flex; flex-direction: column; gap: 6px; pointer-events: none; }
.drop-in b { font-size: 20px; }
.drop-in span { max-width: 40ch; color: var(--muted); font-size: 15px; }
.drop.has .drop-in { display: none; }
.drop-prev { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.fld { display: flex; flex-direction: column; gap: 8px; min-width: 0; margin: 18px 0 0; }
.fld > span { font-size: 15px; font-weight: 600; }
.fld input, .fld textarea { width: 100%; min-width: 0; min-height: 52px; padding: 14px 16px; border: 0; border-radius: 16px; background: var(--bg); color: var(--fg); font: inherit; font-size: 17px; box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--fg) 16%, transparent); }
.fld input:focus, .fld textarea:focus { outline: none; box-shadow: inset 0 0 0 2.5px var(--fg); }
.fld [aria-invalid="true"] { box-shadow: inset 0 0 0 2.5px #A9332B; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.grid2 .fld:first-child, .grid2 .fld:nth-child(2) { margin-top: 0; }
.err { margin: 10px 0 0; color: #A9332B; font-size: 15px; font-weight: 600; }
.cfg-privacy { margin-top: 18px; max-width: 62ch; color: var(--muted); font-size: 14px; }
.cfg-sum { position: sticky; top: calc(var(--head-h) + 24px); padding: 22px; border-radius: 24px; background: var(--bg); }
.cfg-sum h3 { margin-bottom: 12px; font-size: 18px; font-stretch: 100%; letter-spacing: 0; line-height: 1.2; }
.cfg-sum dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; font-size: 15px; }
.cfg-sum dt { color: var(--muted); }
.cfg-sum dd { margin: 0; font-weight: 600; }
.sum-photo { width: 100%; height: 140px; margin-top: 14px; border-radius: 14px; object-fit: cover; }
.cfg-nav { display: flex; justify-content: flex-end; gap: 12px; margin-top: 26px; }
.cfg-done { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; padding: clamp(28px, 5vw, 72px); border-radius: 32px; background: var(--ink-field); color: var(--paper); }
.cfg-done-t { font-size: clamp(34px, 5vw, 72px); font-weight: 800; letter-spacing: -.04em; line-height: .95; }
/* without JavaScript the four steps stay on one page and the form still sends */
.no-js .step, .no-js .opt-group { display: block; margin-bottom: 28px; }
.no-js .cfg-steps, .no-js .cfg-sum, .no-js [data-act="next"], .no-js [data-act="back"] { display: none !important; }
.no-js [data-act="send"][hidden] { display: inline-flex !important; }

/* ---------------------------------------------------------------- legal pages */
.legal-head { display: grid; gap: 12px; padding-top: calc(var(--head-h) + clamp(56px, 8vw, 130px)); padding-bottom: clamp(32px, 4vw, 64px); }
.legal-head h1 { max-width: 16ch; margin-bottom: 8px; font-size: clamp(42px, 6.6vw, 110px); }
.legal-meta { color: var(--muted); font-size: 15px; }
.legal-grid { display: grid; grid-template-columns: minmax(200px, 280px) minmax(0, 1fr); gap: clamp(28px, 5vw, 96px); align-items: start; padding-bottom: var(--sec); }
.legal-toc { position: sticky; top: calc(var(--head-h) + 24px); font-size: 15px; }
.legal-toc h2 { margin-bottom: 10px; color: var(--muted); font-size: 15px; font-weight: 600; font-stretch: 100%; letter-spacing: 0; line-height: 1.4; }
.legal-toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.legal-toc a { display: block; padding: 5px 0; text-decoration: none; }
.legal-toc a:hover { text-decoration: underline; }
.prose { max-width: 72ch; min-width: 0; }
.prose h2 { margin: 56px 0 16px; font-size: clamp(26px, 2.4vw, 36px); font-stretch: 105%; letter-spacing: -.025em; line-height: 1.08; scroll-margin-top: calc(var(--head-h) + 24px); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin: 28px 0 10px; font-size: 20px; font-stretch: 100%; letter-spacing: -.01em; line-height: 1.25; }
.prose p, .prose ul, .prose ol, .prose dl, .prose .table-wrap, .prose .box { margin: 0 0 16px; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li { margin-bottom: 6px; }
.table-wrap { overflow-x: auto; }
.prose table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 15px; }
.prose th, .prose td { padding: 12px 14px; text-align: left; vertical-align: top; }
.prose thead th { background: var(--fg); color: var(--bg); font-weight: 600; }
.prose tbody tr:nth-child(odd) { background: var(--surface); }
.prose dl { display: grid; grid-template-columns: max-content 1fr; gap: 8px 24px; }
.prose dt { color: var(--muted); }
.prose dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }
.box { padding: clamp(18px, 2.4vw, 28px); border-radius: 18px; background: var(--surface); }
.box p:last-child { margin-bottom: 0; }

/* ---------------------------------------------------------------- footer */
.site-footer { padding: clamp(80px, 11vw, 170px) var(--gut) calc(var(--gut) + env(safe-area-inset-bottom, 0px)); background: var(--ink); color: var(--paper); }
.foot-cta { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 28px 48px; margin-bottom: clamp(64px, 9vw, 140px); }
.foot-cta-t { max-width: 14ch; font: 800 clamp(44px, 7.4vw, 128px)/.9 var(--sans); font-stretch: 110%; letter-spacing: -.045em; text-wrap: balance; }
.foot-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; font-size: 16px; }
.foot-col h2 { margin-bottom: 12px; color: #A9A69E; font-size: 15px; font-weight: 600; font-stretch: 100%; letter-spacing: 0; line-height: 1.4; }
.foot-col p { margin-bottom: 10px; }
.foot-col small { display: block; color: #A9A69E; font-size: 13px; }
.foot-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot-col a { text-decoration: none; }
.foot-col a:hover, .foot-col .link-btn:hover { text-decoration: underline; }
.foot-col .link-btn { text-decoration: none; }
.lre { display: inline-flex; align-items: center; gap: 14px; padding: 16px 20px; border-radius: 18px; background: var(--paper); color: var(--ink); text-decoration: none; transition: background-color .3s var(--ease); }
.lre:hover { background: var(--brass); }
.lre svg { width: 40px; height: 40px; flex: none; }
.lre b { display: block; font-size: 17px; }
.lre small { display: block; color: #3E3D39; font-size: 13px; }
.foot-mark { margin-top: clamp(56px, 8vw, 120px); }
.foot-mark svg { width: 100%; height: auto; }
.foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 16px; color: #A9A69E; font-size: 14px; }

/* ---------------------------------------------------------------- cookies */
.cc-banner { position: fixed; z-index: 80; right: var(--gut); bottom: calc(var(--gut) + env(safe-area-inset-bottom, 0px)); left: var(--gut); display: grid; gap: 12px; max-width: 620px; margin-left: auto; padding: 22px; border-radius: 22px; background: var(--paper); color: var(--ink); font-size: 15px; box-shadow: 0 24px 60px -24px rgb(14 14 14 / .45); }
.cc-banner-t { font-size: 19px; font-stretch: 105%; letter-spacing: -.01em; line-height: 1.2; }
.cc-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.cc-banner .btn, .cc-dialog .btn { background: var(--ink); color: var(--paper); }
.cc-banner .btn:hover, .cc-dialog .btn:hover { background: var(--brass); color: var(--ink); }
.cc-dialog .btn--line { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.cc-dialog { width: min(620px, calc(100% - 2 * var(--gut))); max-height: min(88dvh, 780px); padding: 0; border: 0; border-radius: 24px; background: var(--paper); color: var(--ink); overflow: auto; }
.cc-dialog::backdrop { background: rgb(14 14 14 / .55); }
.cc-form { display: grid; gap: 16px; padding: clamp(22px, 3vw, 34px); font-size: 15px; }
.cc-form h2 { font-size: clamp(26px, 3vw, 34px); }
.cc-cat { display: grid; gap: 6px; padding: 16px 18px; border-radius: 16px; background: var(--stone); }
.cc-cat-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cc-cat h3 { font-size: 17px; font-stretch: 100%; letter-spacing: 0; line-height: 1.3; }
.cc-on, .cc-services { color: #5A5852; font-size: 13px; font-weight: 600; }
.cc-none { padding: 16px 18px; border-radius: 16px; background: var(--stone); }
.switch { position: relative; flex: none; display: inline-block; width: 52px; height: 30px; }
.switch input { position: absolute; inset: 0; z-index: 1; margin: 0; opacity: 0; cursor: pointer; }
.switch span { position: absolute; inset: 0; border-radius: 999px; background: #A9A69E; transition: background-color .25s; }
.switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #FFF; transition: transform .25s var(--ease); }
.switch input:checked + span { background: var(--ink); }
.switch input:checked + span::after { transform: translateX(22px); }
.switch input:focus-visible + span { outline: 2px solid var(--brass); outline-offset: 3px; }

/* ---------------------------------------------------------------- 404 */
.notfound { min-height: 100svh; display: grid; align-content: center; gap: 28px; padding-top: var(--head-h); }
.notfound h1 { font-size: clamp(90px, 22vw, 340px); }
.notfound ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: var(--t-lead); }

/* ---------------------------------------------------------------- small screens */
@media (max-width: 960px) {
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .svc, .proj, .proj:nth-child(even), .story, .workshop, .order, .legal-grid, .cfg-body { grid-template-columns: minmax(0, 1fr); }
  .proj:nth-child(even) .proj-field { order: 0; }
  .order .note { grid-column: 1; }
  .legal-toc { position: static; }
  .cfg-sum { position: static; }
  .rows > div { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .way { grid-template-columns: 1fr; }
  .way-list a { grid-template-columns: 1fr; }
  .way-d { text-align: left; }
  .teaser-grid, .products, .mats-list { grid-template-columns: 1fr; }
  .teaser--big { grid-row: auto; min-height: 380px; }
  .steps { grid-template-columns: 1fr 1fr; }
  .cfg-steps { display: flex; }
  .cfg-steps li { flex: none; padding: 6px; }
  .cfg-steps li.on { flex: 1; padding-right: 14px; }
  .cfg-steps li:not(.on) em { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .grid2 { grid-template-columns: 1fr; }
  .grid2 .fld:nth-child(2) { margin-top: 18px; }
}
@media (max-width: 560px) {
  .foot-grid, .contact-grid, .steps { grid-template-columns: 1fr; }
  .prose dl { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .prose dd { margin-bottom: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ---------------------------------------------------------------- Digital Studio : « on air » + onde sonore */
.page-home .hero > .onair { position: absolute; z-index: 2; top: calc(var(--head-h) + env(safe-area-inset-top, 0px) + 18px); right: var(--gut); display: inline-flex; align-items: center; gap: 10px; padding: 9px 16px 9px 13px; border-radius: 999px; box-shadow: inset 0 0 0 1.5px rgb(var(--glow) / .7); color: var(--neon); font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; text-shadow: 0 0 .6em rgb(var(--glow) / .6); }
.onair-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--brass); box-shadow: 0 0 0 4px rgb(var(--glow) / .18), 0 0 14px rgb(var(--glow) / .9); animation: recBlink 1.6s steps(1, end) infinite; }
@keyframes recBlink { 0%, 60% { opacity: 1; } 61%, 100% { opacity: .25; } }
.page-home .hero > .wave { position: absolute; z-index: 0; left: 0; right: 0; bottom: 0; height: min(46svh, 420px); display: flex; align-items: center; gap: clamp(3px, .5vw, 8px); padding-inline: var(--gut); pointer-events: none; opacity: .5; -webkit-mask-image: linear-gradient(to top, transparent 0%, #000 35%, #000 70%, transparent 100%); mask-image: linear-gradient(to top, transparent 0%, #000 35%, #000 70%, transparent 100%); }
.wave i { flex: 1 1 0; min-width: 2px; height: calc(var(--h) * 100%); border-radius: 99px; background: linear-gradient(to top, rgb(var(--glow) / .15), rgb(var(--glow) / .85) 50%, rgb(var(--glow) / .15)); transform-origin: 50% 50%; animation: waveBar 1.9s var(--ease) infinite alternate; animation-delay: calc(var(--i) * -83ms); }
@keyframes waveBar { 0% { transform: scaleY(.18); } 45% { transform: scaleY(1); } 100% { transform: scaleY(.42); } }
@media (max-width: 760px) { .wave i:nth-child(n+33) { display: none; } .page-home .hero > .onair { position: static; justify-self: start; align-self: start; margin-bottom: -12px; } }
@media (prefers-reduced-motion: reduce) { .wave i, .onair-dot { animation: none; } }
