/* veldon.cz / veldon.pro, 2026-09 "Přesně na obrazovku". Design record: veldon3/DESIGN.md.
   Materials: paper / ink / oxblood, Newsreader / Switzer. Newsreader roman is instanced to wght 500
   with opsz default 72 (engines that ignore variation axes, e.g. Playwright WebKit and in-app
   browsers, would otherwise draw the thin 400/opsz-18 default). Ink dominates;
   oxblood has one job ("here / now"). No uppercase, no radius, no gradients. */

@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/newsreader-display-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/newsreader-display-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Newsreader';
  font-style: italic;
  font-weight: 200 800;
  font-display: swap;
  src: url('../fonts/newsreader-italic-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Newsreader';
  font-style: italic;
  font-weight: 200 800;
  font-display: swap;
  src: url('../fonts/newsreader-italic-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face { font-family: 'Switzer'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/switzer-400.woff2') format('woff2'); }
@font-face { font-family: 'Switzer'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/switzer-500.woff2') format('woff2'); }
@font-face { font-family: 'Switzer'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/switzer-600.woff2') format('woff2'); }
/* metric stand-ins so the fitted headline keeps its measure while the web font loads */
@font-face { font-family: 'Newsreader Fallback'; src: local('Georgia'), local('Times New Roman'); size-adjust: 94%; ascent-override: 90%; descent-override: 24%; }

:root {
  --ink: #161310;
  --ink-2: #1c1814;
  --paper: #F7F4EF;
  --oxblood: #722F37;
  --hair: #DAD5CC;
  --on-ink: #F7F4EF;
  --on-ink-2: rgba(247, 244, 239, .74);
  --on-ink-3: rgba(247, 244, 239, .56);
  --line-ink: rgba(247, 244, 239, .16);
  --on-paper-2: #4b453e;
  --serif: 'Newsreader', 'Newsreader Fallback', Georgia, serif;
  --sans: 'Switzer', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --gut: clamp(20px, 4.5vw, 96px);
  --header-h: clamp(64px, 3.35vw, 86px);
  --ease: cubic-bezier(.2, .7, .1, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  background: var(--ink);
  color: var(--on-ink);
  font: 400 17px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-kerning: normal;
  overflow-x: clip;
}
h1, h2, h3, p, figure { margin: 0; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { text-wrap: pretty; }
h1, h2, h3 { text-wrap: balance; }
::selection { background: var(--oxblood); color: var(--paper); }
:focus-visible { outline: 2px solid var(--paper); outline-offset: 3px; }
.sheet :focus-visible, .contact-dialog :focus-visible { outline-color: var(--ink); }

.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip-link {
  position: absolute; left: 12px; top: -80px; z-index: 50;
  padding: 12px 16px; background: var(--paper); color: var(--ink); font-weight: 500; text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* ---------- buttons: the keyline registers on hover (Soutisk, echoed) ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  min-height: clamp(52px, 2.75vw, 68px); padding: 0 clamp(26px, 1.4vw, 36px);
  font: 500 clamp(16px, .84vw, 21px)/1 var(--sans); letter-spacing: .005em; text-decoration: none; white-space: nowrap;
  color: var(--paper); background: var(--oxblood); border: 1px solid var(--oxblood); border-radius: 0;
  cursor: pointer; transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.btn::after {
  content: ''; position: absolute; inset: -1px; pointer-events: none;
  border: 1px solid var(--paper);
  opacity: 0; transform: translate(-6px, 6px);
  transition: transform .34s var(--ease), opacity .2s var(--ease);
}
.btn:hover::after, .btn:focus-visible::after { opacity: 1; transform: none; }
.btn-line { background: transparent; border-color: var(--line-ink); }
.btn-line:hover, .btn-line:focus-visible { border-color: var(--paper); }
.btn-paper { background: transparent; border-color: var(--paper); }
.btn-paper:hover, .btn-paper:focus-visible { background: var(--paper); color: var(--oxblood); }

/* ---------- header ---------- */
.topbar {
  position: sticky; top: 0; z-index: 30;
  height: var(--header-h);
  background: var(--ink);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease);
}
.past-hero .topbar { border-bottom-color: var(--line-ink); }
.bar {
  height: 100%;
  display: grid; grid-template-columns: minmax(0, auto) minmax(0, 1fr); align-items: center; gap: 24px;
  padding: 0 var(--gut);
}
.brand-link { display: inline-flex; color: var(--paper); padding: 8px 0; }
.bwm svg { height: clamp(23px, 1.2vw, 31px); width: auto; }
.top-actions { display: flex; align-items: center; justify-content: flex-end; gap: clamp(18px, 2.2vw, 36px); }
.site-nav { display: flex; gap: clamp(18px, 2.2vw, 36px); }
.site-nav a, .top-mail {
  font: 500 clamp(15px, .79vw, 20px)/1 var(--sans); color: var(--on-ink-2); text-decoration: none;
  padding: 10px 0; transition: color .2s var(--ease);
}
.site-nav a:hover, .site-nav a:focus-visible { color: var(--paper); text-decoration: underline; text-decoration-color: var(--oxblood); text-decoration-thickness: 2px; text-underline-offset: 8px; }
.top-mail {
  display: inline-flex; align-items: center; min-height: clamp(40px, 2.1vw, 52px); padding: 0 clamp(16px, .85vw, 22px);
  color: var(--paper); border: 1px solid var(--line-ink);
  transition: background-color .35s var(--ease), border-color .35s var(--ease);
}
.top-mail:hover, .top-mail:focus-visible { border-color: var(--paper); }
.past-hero .top-mail { background: var(--oxblood); border-color: var(--oxblood); }
.past-hero .top-mail:hover { border-color: var(--paper); }

.menu { display: none; }
.nav-open { overflow: hidden; }
.menu summary {
  list-style: none; cursor: pointer;
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px;
  font: 500 15px/1 var(--sans); color: var(--paper); border: 1px solid var(--line-ink);
}
.menu summary::-webkit-details-marker { display: none; }
.menu[open] summary { border-color: var(--paper); background: var(--paper); color: var(--ink); }
.menu-panel {
  position: fixed; left: 0; right: 0; top: var(--header-h);
  height: calc(100vh - var(--header-h)); height: calc(100dvh - var(--header-h));
  background: var(--ink); border-top: 1px solid var(--line-ink);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 28px var(--gut) calc(28px + env(safe-area-inset-bottom));
  overflow-y: auto;
}
.menu-panel nav { display: flex; flex-direction: column; }
.menu-panel nav a {
  font: 500 clamp(34px, 9vw, 52px)/1.12 var(--serif); letter-spacing: -.015em;
  color: var(--paper); text-decoration: none; padding: 6px 0;
}
.menu-panel nav a:active { color: var(--on-ink-2); }
.panel-foot { display: flex; flex-direction: column; gap: 6px; font: 400 16px/1.4 var(--sans); }
.panel-foot a { color: var(--paper); }
.panel-foot .dim { color: var(--on-ink-3); }

/* ---------- hero: header + hero = one viewport, the headline fitted to the measure ---------- */
.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  min-height: calc(100svh - var(--header-h));
  display: grid; align-content: center;
  padding: clamp(28px, 7vh, 96px) var(--gut) clamp(36px, 9vh, 120px);
  overflow: clip;
}
.hero-inner { container-type: inline-size; width: 100%; }
.fit {
  /* --fit = the em-width of the longest line (measured per layout and language, see DESIGN.md) */
  --fit: 9.34;
  --cap: 19svh;
  font: 500 min(calc(100cqw / var(--fit)), var(--cap)) / .95 var(--serif);
  font-optical-sizing: auto;
  letter-spacing: -.021em;
  color: var(--paper);
  margin-left: -.045em;
  white-space: nowrap;
}
.fit .l1::after, .fit .l3::after, .fit .e2::after, .fit .e5::after { content: '\A'; white-space: pre; }
html:lang(en) .fit { --fit: 10.3; }
.hero-foot {
  display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "ctas cred";
  align-items: center; gap: 20px clamp(24px, 4vw, 72px);
  margin-top: clamp(26px, 5.2vh, 64px);
}
.hero-ctas { grid-area: ctas; display: flex; flex-wrap: wrap; gap: 14px; }
.cred span { display: block; }
.cred {
  grid-area: cred; justify-self: end; max-width: 40ch;
  font: 400 clamp(17px, min(1.25vw, 2.4vh), 27px)/1.45 var(--sans); color: var(--on-ink-2);
}
.linka {
  position: absolute; left: var(--gut); right: var(--gut); bottom: 0; height: 1px;
  background: var(--oxblood); transform-origin: 0 50%;
}

/* ---------- references: Průchod ---------- */
.work-wrap { padding: clamp(56px, 11vh, 140px) 0 clamp(40px, 8vh, 120px); }
.sect-head { padding: 0 var(--gut); margin-bottom: clamp(28px, 6vh, 72px); }
.sect-head h2, .anchor-inner h2 {
  font: 500 clamp(36px, min(4.6vw, 7.4vh), 92px)/1 var(--serif); letter-spacing: -.02em;
}
.work {
  --fh: clamp(300px, 58vh, 860px);
  --pw: calc(var(--fh) * .4621);
  padding: 0 var(--gut);
  scroll-margin-top: 12vh; /* + html scroll-padding (the header) = the walk reading line in site.js */
}
.work + .work { margin-top: clamp(72px, 15vh, 190px); }
.stage {
  display: grid; grid-template-columns: minmax(0, 1fr) var(--pw); grid-template-rows: minmax(0, 1fr);
  gap: clamp(12px, 1.5vw, 28px);
  height: var(--fh);
  max-width: 2400px;
}
.work.solo .stage { grid-template-columns: minmax(0, 1fr); }
.frame { position: relative; min-width: 0; min-height: 0; height: 100%; }
.clip {
  position: absolute; inset: 0; overflow: hidden;
  background: #0e0c0a; box-shadow: 0 0 0 1px var(--line-ink);
}
.clip picture { display: contents; }
.frame .cap { width: 100%; height: auto; max-width: none; }
.walking .cap { will-change: transform; }
/* a fine pointer taking over the walk registers the frames (the Soutisk keyline) */
.frame::after {
  content: ''; position: absolute; inset: -1px; pointer-events: none;
  border: 1px solid var(--paper); opacity: 0; transform: translate(-6px, 6px);
  transition: transform .34s var(--ease), opacity .2s var(--ease);
}
.driving .frame::after { opacity: 1; transform: none; }
.work-text {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 18px clamp(24px, 4vw, 80px);
  margin-top: clamp(20px, 3.4vh, 36px);
  max-width: 2400px;
}
.wt-id h3 { font: 500 clamp(26px, min(2.7vw, 4.6vh), 50px)/1.02 var(--serif); letter-spacing: -.015em; }
.cat { margin-top: 10px; font: 400 15px/1.4 var(--sans); color: var(--on-ink-2); }
.status {
  display: inline-block; margin-top: 14px; padding: 6px 10px 7px;
  font: 500 14px/1 var(--sans); color: var(--on-ink-2); box-shadow: inset 0 0 0 1px var(--oxblood);
}
.wt-body { display: grid; justify-items: start; gap: 16px; align-content: start; }
.desc { max-width: 60ch; font-size: 17px; color: var(--on-ink); }
.proof { max-width: 62ch; display: grid; gap: 10px; padding-left: 18px; border-left: 1px solid var(--oxblood); }
.pquote { font: italic 400 clamp(19px, 1.45vw, 23px)/1.42 var(--serif); color: var(--on-ink); }
.pwho { font: 400 14px/1.3 var(--sans); color: var(--on-ink-3); }
.visit {
  font: 500 15px/1 var(--sans); color: var(--paper);
  text-decoration: underline; text-decoration-color: var(--oxblood); text-decoration-thickness: 2px; text-underline-offset: 7px;
  padding: 8px 0;
}
.visit:hover, .visit:focus-visible { text-decoration-color: var(--paper); }

/* ---------- paper sheets: services + team ---------- */
.sheet { background: var(--paper); color: var(--ink); color-scheme: light; }
.sheet-inner {
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 28px clamp(28px, 5vw, 110px);
  padding: clamp(72px, 14vh, 170px) var(--gut);
  max-width: 2400px;
}
.sheet .sect-head { padding: 0; margin: 0; }
.sheet .sect-head h2 { position: sticky; top: calc(var(--header-h) + 28px); }
.team .sheet-inner { padding-top: 0; }
.svc summary {
  list-style: none; cursor: pointer;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 24px;
  padding: 18px 0 14px;
}
.svc summary::-webkit-details-marker { display: none; }
.s-t { font: 500 clamp(26px, min(3.1vw, 5vh), 58px)/1.05 var(--serif); letter-spacing: -.015em; }
.s-x {
  display: grid; place-items: center; width: 44px; height: 44px;
  font: 300 38px/1 var(--sans); color: var(--ink);
  transition: transform .4s var(--ease), color .3s var(--ease);
}
.svc summary:hover .s-x { color: var(--oxblood); }
.svc[open] .s-x { transform: rotate(45deg); color: var(--oxblood); }
.s-body { max-width: 62ch; padding: 4px 0 30px; font-size: 18px; line-height: 1.6; color: var(--on-paper-2); }
.svc:last-child .s-body { padding-bottom: 8px; }

.people { display: grid; gap: clamp(28px, 5vh, 48px); }
.person {
  display: grid; grid-template-columns: 88px minmax(0, 13rem) minmax(0, 1fr) 44px;
  grid-template-areas: "photo name bio li" "photo role bio li";
  column-gap: clamp(16px, 2.4vw, 40px); align-items: start;
}
.photo { grid-area: photo; width: 88px; height: 88px; overflow: hidden; background: var(--hair); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.name { grid-area: name; display: block; font: 500 23px/1.1 var(--serif); padding-top: 4px; }
.role { grid-area: role; display: block; margin-top: 6px; font: 500 15px/1.35 var(--sans); color: var(--on-paper-2); }
.person p { grid-area: bio; font-size: 16px; line-height: 1.55; color: var(--on-paper-2); max-width: 60ch; padding-top: 4px; }
.li-link {
  grid-area: li; display: grid; place-items: center; width: 44px; height: 44px; color: var(--ink);
  box-shadow: inset 0 0 0 1px rgba(22, 19, 16, .22); transition: box-shadow .3s var(--ease), background-color .3s var(--ease), color .3s var(--ease);
}
.li-link svg { width: 18px; height: 18px; }
.li-link:hover, .li-link:focus-visible { background: var(--ink); color: var(--paper); box-shadow: none; }

/* ---------- price anchor ---------- */
.anchor-band { background: var(--oxblood); color: var(--paper); }
.anchor-inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px 48px;
  padding: clamp(56px, 11vh, 130px) var(--gut);
}
.anchor-inner h2 { font-size: clamp(32px, min(3.8vw, 6.4vh), 76px); max-width: 22ch; }

/* ---------- contact: the e-mail fitted like the headline ---------- */
.contact { padding: clamp(80px, 16vh, 200px) var(--gut) clamp(64px, 12vh, 150px); }
.contact-inner { container-type: inline-size; }
.kicker { font: 400 clamp(18px, 1.5vw, 22px)/1.3 var(--sans); color: var(--on-ink-2); margin-bottom: clamp(10px, 2vh, 24px); }
.fit-mail {
  --fit: 6.76;
  display: inline-block;
  font: 500 min(calc(100cqw / var(--fit)), 26vh) / 1 var(--serif);
  letter-spacing: -.03em; margin-left: -.05em;
  color: var(--paper); text-decoration: none;
  background: linear-gradient(var(--oxblood), var(--oxblood)) 0 100% / 100% .045em no-repeat;
  padding-bottom: .06em;
  transition: background-size .5s var(--ease), color .3s var(--ease);
}
.fit-mail:hover, .fit-mail:focus-visible { background-size: 100% .12em; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line-ink); }
.foot {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px 40px;
  padding: 28px var(--gut) calc(28px + env(safe-area-inset-bottom));
  font: 400 15px/1.4 var(--sans); color: var(--on-ink-2);
}
.foot nav, .foot .legal { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.foot a { text-decoration: none; }
.foot a:hover, .foot a:focus-visible { color: var(--paper); text-decoration: underline; text-decoration-color: var(--oxblood); text-underline-offset: 5px; }

/* ---------- contact dialog: an inset panel on paper ---------- */
.contact-dialog {
  margin: auto; padding: 0; border: 0; border-radius: 0;
  width: min(560px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); overflow: auto;
  background: var(--paper); color: var(--ink); color-scheme: light;
  box-shadow: 0 0 0 1px rgba(22, 19, 16, .12), 14px 14px 0 0 var(--oxblood);
}
.contact-dialog::backdrop { background: rgba(10, 8, 7, .72); }
.cd-form { position: relative; padding: clamp(24px, 5vw, 44px); }
.cd-close {
  position: absolute; top: 10px; right: 10px; width: 44px; height: 44px;
  border: 0; background: transparent; color: var(--ink); font: 400 28px/1 var(--sans); cursor: pointer;
}
.cd-close:hover { background: rgba(22, 19, 16, .06); }
.cd-step[hidden] { display: none; }
.cd-progress { font: 500 14px/1 var(--sans); color: var(--on-paper-2); margin-bottom: 14px; }
.cd-choices { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: 10px; }
.cd-choices legend, .cd-step h2 {
  font: 500 clamp(26px, 5vw, 34px)/1.1 var(--serif); letter-spacing: -.015em; margin-bottom: 18px; padding: 0;
}
.cd-choice {
  display: flex; align-items: center; gap: 14px; min-height: 54px; padding: 0 16px;
  box-shadow: inset 0 0 0 1px rgba(22, 19, 16, .2); cursor: pointer; font: 500 16px/1.2 var(--sans);
  transition: box-shadow .2s var(--ease), background-color .2s var(--ease);
}
.cd-choice:hover { box-shadow: inset 0 0 0 1px var(--ink); }
.cd-choice input { accent-color: var(--oxblood); width: 18px; height: 18px; margin: 0; }
.cd-choice:has(input:checked) { box-shadow: inset 0 0 0 2px var(--oxblood); background: #fff; }
.cd-step-error, .cd-status { min-height: 1.4em; margin-top: 10px; font: 500 15px/1.4 var(--sans); color: var(--oxblood); }
.cd-status:not(.err) { color: var(--on-paper-2); }
.cd-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 18px; }
.contact-dialog .btn::after { border-color: var(--ink); }
.contact-dialog .btn-line { color: var(--ink); border-color: rgba(22, 19, 16, .3); }
.contact-dialog .btn-line:hover { border-color: var(--ink); }
.cd-field { display: grid; gap: 6px; margin-bottom: 14px; font: 500 15px/1.3 var(--sans); }
.cd-field input, .cd-field textarea {
  width: 100%; border: 0; border-radius: 0; background: #fff; color: var(--ink);
  box-shadow: inset 0 0 0 1px rgba(22, 19, 16, .25); padding: 13px 14px; font: 400 16px/1.4 var(--sans);
}
.cd-field input:focus, .cd-field textarea:focus { outline: none; box-shadow: inset 0 0 0 2px var(--ink); }
.cd-field textarea { resize: vertical; min-height: 120px; }
.contact-dialog .cd-mail { font: 500 15px/1 var(--sans); color: var(--ink); }
.cd-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* ---------- inner pages (ceník, privacy, 404) ---------- */
.page-sheet { background: var(--paper); color: var(--ink); color-scheme: light; }
.page-head { padding: clamp(56px, 11vh, 140px) var(--gut) clamp(28px, 5vh, 56px); max-width: 2400px; }
.page-head h1 { font: 500 clamp(52px, min(7vw, 11vh), 132px)/.95 var(--serif); letter-spacing: -.025em; }
.lede { margin-top: clamp(16px, 3vh, 28px); max-width: 52ch; font: 400 clamp(18px, 1.5vw, 22px)/1.5 var(--sans); color: var(--on-paper-2); }
.rates-wrap, .legal-wrap { padding: 0 var(--gut) clamp(72px, 13vh, 160px); max-width: 2400px; }
.rates { display: grid; }
.rate {
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 3fr) minmax(0, 5fr); gap: 10px clamp(20px, 3vw, 56px);
  align-items: baseline; padding: clamp(22px, 3.6vh, 36px) 0;
}
.rate + .rate { box-shadow: 0 -1px 0 0 rgba(22, 19, 16, .12); }
.rate h2 { font: 500 clamp(20px, 1.6vw, 26px)/1.2 var(--sans); }
.price { font: 500 clamp(30px, min(2.8vw, 4.4vh), 52px)/1 var(--serif); letter-spacing: -.02em; font-variant-numeric: lining-nums tabular-nums; white-space: nowrap; }
.rate .desc { font-size: 17px; color: var(--on-paper-2); max-width: 56ch; }
.tariff-stamp { margin-top: clamp(28px, 5vh, 48px); font: 400 14px/1.4 var(--sans); color: var(--on-paper-2); }
.legal-prose { max-width: 70ch; }
.legal-prose h2 { font: 500 clamp(24px, 2vw, 32px)/1.15 var(--serif); margin: clamp(32px, 5vh, 52px) 0 12px; }
.legal-prose h2:first-child { margin-top: 0; }
.legal-prose p { font-size: 17px; line-height: 1.65; color: var(--on-paper-2); }
.legal-prose a { color: var(--ink); text-decoration-color: var(--oxblood); text-underline-offset: 4px; }
.error-main {
  min-height: calc(100vh - var(--header-h)); min-height: calc(100svh - var(--header-h));
  display: grid; align-content: center; justify-items: start; gap: 18px; padding: 40px var(--gut);
}
.error-main .kicker { margin: 0; }
.error-title { font: 500 clamp(48px, min(8vw, 12vh), 140px)/.95 var(--serif); letter-spacing: -.025em; }
.lnk { font: 500 16px/1 var(--sans); color: var(--paper); text-decoration: underline; text-decoration-color: var(--oxblood); text-decoration-thickness: 2px; text-underline-offset: 7px; padding: 8px 0; display: inline-block; }

/* ---------- motion (enhancement only; everything above is the complete static page) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .fit { animation: soutisk .62s var(--ease) .08s both; }
  .hero-foot { animation: rise .7s var(--ease) .38s both; }
  .linka { animation: linka .9s cubic-bezier(.65, 0, .35, 1) .72s both; }
  .contact-dialog[open] { animation: panel-in .38s var(--ease); }
  .contact-dialog[open]::backdrop { animation: fade-in .3s var(--ease); }
}
@keyframes soutisk {
  0% { opacity: 0; text-shadow: -.05em .05em 0 var(--oxblood); transform: translate(.05em, -.05em); }
  40% { opacity: 1; text-shadow: -.04em .04em 0 var(--oxblood); transform: translate(.04em, -.04em); }
  100% { opacity: 1; text-shadow: 0 0 0 var(--oxblood); transform: none; }
}
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes linka { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes panel-in { from { opacity: 0; transform: translate(-10px, 10px); } to { opacity: 1; transform: none; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

/* ---------- viewport overrides (kept last so they win the cascade) ---------- */
@media (max-width: 1080px) {
  .site-nav { display: none; }
  .menu { display: block; }
  .sheet-inner { grid-template-columns: minmax(0, 1fr); }
  .sheet .sect-head h2 { position: static; }
  .rate { grid-template-columns: minmax(0, 1fr) auto; }
  .rate .desc { grid-column: 1 / -1; }
}
@media (max-width: 759px) {
  :root { --header-h: 60px; }
  body { font-size: 16px; }
  .bwm svg { height: 20px; }
  .top-mail { display: none; }
  .hero {
    min-height: calc(100vh - var(--header-h) - 24vh);
    min-height: calc(100svh - var(--header-h) - 24svh);
    align-content: end;
    padding-top: 28px; padding-bottom: 30px;
  }
  .fit { --fit: 6.52; --cap: 30vw; line-height: .98; }
  html:lang(en) .fit { --fit: 6.53; }
  .fit .l::after, .fit .e1::after, .fit .e3::after, .fit .e4::after, .fit .e6::after { content: '\A'; white-space: pre; }
  .fit .l5::after, .fit .e2::after, .fit .e5::after { content: none; }
  .hero-foot { grid-template-columns: minmax(0, 1fr); grid-template-areas: "cred" "ctas"; gap: 22px; margin-top: 24px; }
  .cred { justify-self: start; text-align: left; font-size: 17px; }
  .hero-ctas { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .hero-ctas .btn { width: 100%; }
  .work-wrap { padding-top: 0; }
  .work-wrap .sect-head { padding-top: 30px; margin-bottom: 22px; }
  .work { --fh: 62svh; }
  .stage { grid-template-columns: minmax(0, 1fr); height: 62vh; height: var(--fh); }
  .frame.phone { display: none; }
  .work.solo .stage { height: auto; }
  .work.solo .frame { height: auto; aspect-ratio: 16 / 10; }
  .work-text { grid-template-columns: minmax(0, 1fr); }
  .person {
    grid-template-columns: 72px minmax(0, 1fr) 44px;
    grid-template-areas: "photo name li" "photo role li" "bio bio bio";
    row-gap: 4px;
  }
  .photo { width: 72px; height: 72px; }
  .person p { margin-top: 12px; }
  .anchor-inner { flex-direction: column; align-items: flex-start; }
  .rate { grid-template-columns: minmax(0, 1fr); }
  .price { white-space: normal; }
}
@media (min-width: 760px) and (max-aspect-ratio: 4/5) {
  .fit { --fit: 6.52; --cap: 24svh; line-height: .98; }
  html:lang(en) .fit { --fit: 6.53; }
  .fit .l::after, .fit .e1::after, .fit .e3::after, .fit .e4::after, .fit .e6::after { content: '\A'; white-space: pre; }
  .fit .l5::after, .fit .e2::after, .fit .e5::after { content: none; }
  .hero { align-content: center; }
}
@media (min-width: 760px) and (max-height: 700px) {
  .fit { --cap: 17svh; }
  .hero { padding-top: 24px; padding-bottom: 32px; }
}
