/* veldon.cz / veldon.pro, variant A: "Napsáno přímo na stránce". Design record: veldon3/variants/a/DESIGN.md.
   A white page being written in front of the visitor: one grotesk (the wordmark's own) in four static
   weights, green for done / live / the caret, the nine references standing in the first screen in their
   own colours and then each as a full-bleed world. Every animation lives under
   prefers-reduced-motion: no-preference; without JS the page is complete and still. */

@font-face { font-family: 'Schibsted Grotesk'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/schibsted-grotesk-latin-400.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: 'Schibsted Grotesk'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/schibsted-grotesk-latin-ext-400.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: 'Schibsted Grotesk'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/schibsted-grotesk-latin-500.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: 'Schibsted Grotesk'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/schibsted-grotesk-latin-ext-500.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: 'Schibsted Grotesk'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/schibsted-grotesk-latin-700.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: 'Schibsted Grotesk'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/schibsted-grotesk-latin-ext-700.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: 'Schibsted Grotesk'; font-style: normal; font-weight: 800; font-display: swap; src: url('../fonts/schibsted-grotesk-latin-800.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: 'Schibsted Grotesk'; font-style: normal; font-weight: 800; font-display: swap; src: url('../fonts/schibsted-grotesk-latin-ext-800.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; }
/* metric stand-in while the grotesk loads: no layout jump on swap */
@font-face { font-family: 'SG Fallback'; src: local('Arial'), local('Helvetica Neue'), local('Liberation Sans'); size-adjust: 96%; ascent-override: 93%; descent-override: 22%; line-gap-override: 0%; }

:root {
  --ink: #111311;
  --ink-2: #3f4540;
  --mute: #5b615c;
  --paper: #ffffff;
  --soft: #f3f5f2;
  --hair: #e1e5e0;
  --green: #127a45;
  --green-2: #0d5f36;
  --wash: rgba(18, 122, 69, .16);
  --ac: var(--green);
  --sans: 'Schibsted Grotesk', 'SG Fallback', Arial, sans-serif;
  --gut: clamp(20px, 3.6vw, 64px);
  --head-h: 68px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --t0: 150ms;
  --step: 55ms;
  /* the headline is height-aware: min(vw, vh) so header + hero fit one viewport at every size */
  --h1: clamp(40px, min(5.4vw, 10.5vh), 96px);
  --hero-pad: clamp(24px, 4.6vh, 48px);
  /* four typed lines plus the copy's paddings: what the rank may not take from the viewport */
  --copy: calc(2 * var(--hero-pad) + 8px + 3.84 * var(--h1));
  color-scheme: light;
}
@media (min-width: 1400px) { :root { --head-h: 76px; } }
/* below 1100 the sub and the buttons drop under the headline: gap + three sub lines + button */
@media (max-width: 1099px) { :root { --copy: calc(2 * var(--hero-pad) + 176px + 3.84 * var(--h1)); } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: var(--head-h); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.5 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(--wash); color: inherit; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 3px; }
.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip-link { position: absolute; left: var(--gut); top: -80px; z-index: 60; padding: 12px 16px; background: var(--ink); color: var(--paper); font-weight: 600; text-decoration: none; border-radius: 0 0 10px 10px; }
.skip-link:focus { top: 0; }

/* ---------- the two written marks: the caret and the pencil ---------- */
#caret {
  position: absolute; z-index: 34; width: 3px; height: 1em; border-radius: 2px;
  background: var(--ac); opacity: 0; pointer-events: none;
  transition: left .16s var(--ease), top .16s var(--ease), height .16s var(--ease), opacity .12s;
}
#caret.on { opacity: 1; }
#pen {
  position: absolute; z-index: 35; width: 28px; height: 28px; border-radius: 50%;
  background: var(--paper); color: var(--green); box-shadow: 0 1px 2px rgba(0, 0, 0, .12), 0 6px 16px -6px rgba(0, 0, 0, .35);
  display: grid; place-items: center; opacity: 0; transform: scale(.6); pointer-events: none;
  transition: opacity .16s var(--ease), transform .16s var(--ease), left .18s var(--ease), top .18s var(--ease);
}
#pen.on { opacity: 1; transform: none; }
#pen svg { width: 15px; height: 15px; }

/* the editor's selection frame: dashed box + four handles; used on hovered texts and the hot sheet */
.sel { position: relative; }
.sel::before {
  content: ''; position: absolute; inset: -.28em -.42em; border: 1.5px dashed var(--ac); border-radius: 6px; pointer-events: none;
}
.sel::after {
  content: ''; position: absolute; inset: calc(-.28em - 4px) calc(-.42em - 4px); pointer-events: none;
  --h: linear-gradient(var(--ac), var(--ac));
  background: var(--h) 0 0 / 7px 7px no-repeat, var(--h) 100% 0 / 7px 7px no-repeat, var(--h) 0 100% / 7px 7px no-repeat, var(--h) 100% 100% / 7px 7px no-repeat;
}
.ed { width: fit-content; max-width: 100%; cursor: text; }
.ed.editing::before { border-style: solid; }
[contenteditable] { outline: none; caret-color: var(--ac); }

/* ---------- typing: words land one by one (CSS timeline, no JS needed) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .w { opacity: 0; animation: type 1ms steps(1, end) both; animation-delay: calc(var(--t0) + var(--i, 0) * var(--step)); }
}
@keyframes type { to { opacity: 1; } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 24px;
  border-radius: 999px; border: 1.5px solid var(--green); background: var(--green); color: #fff;
  font: 700 16px/1 var(--sans); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .2s, border-color .2s, color .2s, transform .2s var(--ease);
}
.btn:hover { background: var(--green-2); border-color: var(--green-2); }
.btn:active { transform: translateY(1px); }
/* one green pill per screen; every other action is a link */
.visit, .btn-line {
  border: 0; padding: 0; min-height: 0; border-radius: 0; background: transparent; color: inherit;
  text-decoration: underline; text-underline-offset: .2em; text-decoration-thickness: 1.5px;
}
.btn-line { color: var(--ink); }
.visit:hover, .btn-line:hover { background: transparent; text-decoration-thickness: 2.5px; }
.btn-line:hover { color: var(--green); }
.btn-white { background: #fff; border-color: #fff; color: var(--green); }
.btn-white:hover { background: #e8f3ec; border-color: #e8f3ec; }

/* ---------- header: the editor's white bar, over every world ---------- */
.top { position: sticky; top: 0; z-index: 40; height: var(--head-h); background: var(--paper); border-bottom: 1px solid var(--hair); }
.bar { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 0 var(--gut); }
.brand { display: block; color: var(--ink); }
.brand svg { height: 24px; width: auto; }
.top-actions { display: flex; align-items: center; gap: 28px; }
.site-nav { display: flex; gap: 26px; }
.site-nav a { position: relative; padding: 8px 0; font: 500 15px/1 var(--sans); text-decoration: none; }
.site-nav a::after { content: ''; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px; background: var(--green); transition: right .25s var(--ease); }
.site-nav a:hover::after, .site-nav a[aria-current="page"]::after { right: 0; }
/* a link while the hero's own green button is on screen; the green pill once it has gone */
.top-mail { min-height: 0; padding: 0; border: 0; border-radius: 0; background: transparent; color: var(--ink); font-size: 15px; text-decoration: underline; text-underline-offset: .2em; text-decoration-thickness: 1.5px; }
.top-mail:hover { background: transparent; color: var(--green); }
html.past-hero .top-mail { min-height: 40px; padding: 0 18px; border: 1.5px solid var(--green); border-radius: 999px; background: var(--green); color: #fff; text-decoration: none; }
html.past-hero .top-mail:hover { background: var(--green-2); border-color: var(--green-2); }
.menu { display: none; }
.menu summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; min-height: 40px; padding: 0 4px; font: 700 16px/1 var(--sans); }
.menu summary::-webkit-details-marker { display: none; }
.menu[open] summary { color: var(--green); }
.menu-panel {
  position: fixed; inset: var(--head-h) 0 0 0; z-index: 39; background: var(--paper);
  display: flex; flex-direction: column; justify-content: space-between; padding: 28px var(--gut) 32px; overflow: auto;
}
.menu-panel nav { display: flex; flex-direction: column; }
.menu-panel nav a { padding: 16px 0; border-bottom: 1px solid var(--hair); font: 800 clamp(30px, 8vw, 44px)/1 var(--sans); letter-spacing: -.03em; text-decoration: none; }
.menu-panel nav a[aria-current="page"] { color: var(--green); }
.panel-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 24px; font-size: 15px; }
.panel-foot a { font-weight: 600; text-decoration: none; }
.panel-foot .dim { color: var(--mute); }
/* lock the root only: overflow on body would un-stick the header behind the open panel */
html.nav-open { overflow: hidden; }

/* ---------- hero: the page being written, above the rank of written pages ---------- */
.hero {
  position: relative; display: grid; grid-template-rows: minmax(0, 1fr) auto; grid-template-columns: minmax(0, 1fr);
  padding: var(--hero-pad) var(--gut) 0;
  min-height: calc(100vh - var(--head-h)); min-height: calc(100svh - var(--head-h));
}
.hero-copy { align-self: center; padding-bottom: var(--hero-pad); }
.hero-copy { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 22px 56px; align-items: end; }
.h1 { font: 800 var(--h1)/.96 var(--sans); letter-spacing: -.032em; }
.h1 .l { display: block; }
.hero-aside { max-width: 34ch; padding-bottom: .08em; }
.cred { font: 400 clamp(17px, 1.3vw, 21px)/1.45 var(--sans); color: var(--ink-2); max-width: 30ch; }
.hero-ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; margin-top: 22px; }
.hero-ctas .btn-line { flex: 0 0 auto; }
@media (prefers-reduced-motion: no-preference) {
  .hero-ctas { animation: land .42s var(--ease) both; animation-delay: calc(var(--t0) + var(--i, 13) * var(--step)); }
}
@keyframes land { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (max-width: 1099px) {
  .hero-copy { grid-template-columns: 1fr; }
  .hero-aside { max-width: 44ch; }
}

/* the rank: nine written pages standing on the fold. Eight fluid tracks and one sheet-wide track:
   a sheet wider than its track overflows into the next (the deck overlaps on laptops), a narrower
   one leaves even gaps (wide screens); no percentage arithmetic, so every engine agrees. */
.rank {
  grid-row: 2; align-self: end; display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)) var(--sw); align-items: end;
  height: var(--sh);
  --sh: max(180px, min(46vh, calc(100vh - var(--head-h) - var(--copy) - 8px)));
  --sw: min(calc(var(--sh) / 2.1667), calc((100vw - 2 * var(--gut)) / 4.8), 300px);
}
/* pages of three heights, so the overlaps read as paper depth rather than a filmstrip */
.sheet {
  position: relative; height: var(--sh); width: auto; aspect-ratio: 360 / 780; justify-self: start;
  transform-origin: 50% 100%; text-decoration: none; -webkit-tap-highlight-color: transparent;
  transition: transform .28s var(--ease);
}
.sheet:nth-child(2n) { height: calc(var(--sh) * .88); }
.sheet:nth-child(4n+3) { height: calc(var(--sh) * .94); }
.sheet img, .sheet .face {
  display: block; width: 100%; height: 100%; object-fit: cover; object-position: top;
  border-radius: 10px 10px 0 0; background: var(--g) center top / cover no-repeat;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .08), -28px 0 44px -22px rgba(0, 0, 0, .42);
}
.sheet-ve .face { background-image: url('../img/veldon-edit-p.webp'); }
html[lang="en"] .sheet-ve .face { background-image: url('../img/veldon-edit-en-p.webp'); }
.sheet.is-hot { z-index: 3; }
.sheet.is-hot.sel::before { inset: -8px; border-width: 2px; border-radius: 12px; }
.sheet.is-hot.sel::after { inset: -12px; }
.rank.fan .sheet { transition: transform .12s linear; }
@media (prefers-reduced-motion: no-preference) {
  .sheet { animation: rise .6s var(--ease) both; animation-delay: calc(320ms + var(--i, 0) * 45ms); }
}
@keyframes rise { from { transform: translateY(104%); } to { transform: none; } }
@media (max-width: 759px) {
  .hero { padding-bottom: 0; }
  .hero-copy { gap: 16px; padding-bottom: 0; }
  .h1 { --h1: clamp(34px, 10.4vw, 44px); letter-spacing: -.03em; }
  .h1 .l { display: inline; }
  .hero-aside { padding-bottom: 0; }
  .hero-ctas { margin-top: 16px; }
  .hero-ctas .btn { flex: 1 1 auto; }
  /* the strip: the sheets stand on the hero's bottom edge and scroll sideways */
  .rank {
    display: flex; gap: 8px; height: auto; margin: 22px calc(-1 * var(--gut)) 0; padding: 0 var(--gut); overflow-x: auto; overflow-y: hidden; scrollbar-width: none;
    --sw: clamp(120px, 36vw, 150px);
  }
  .rank::-webkit-scrollbar { display: none; }
  .sheet, .sheet:nth-child(2n), .sheet:nth-child(4n+3) { flex: 0 0 var(--sw); width: var(--sw); height: auto; animation: none; }
  .sheet img, .sheet .face { box-shadow: 0 0 0 1px rgba(0, 0, 0, .08); }
}
/* short phones (360x640, 320x640): the EN sub runs to three lines, so everything tightens a step */
@media (max-width: 759px) and (max-height: 700px) {
  .hero { --hero-pad: 8px; }
  .hero-copy { gap: 8px; }
  .h1 { --h1: clamp(30px, 9vw, 40px); }
  .rank { margin-top: 8px; --sw: clamp(112px, 34vw, 150px); }
  .hero-ctas { margin-top: 8px; }
}

/* ---------- references: nine worlds ---------- */
.work-head { background: var(--paper); border-top: 1px solid var(--hair); padding: clamp(60px, 11vh, 132px) var(--gut) 40px; }
.work-head h2 { font: 800 clamp(34px, 4vw, 60px)/1 var(--sans); letter-spacing: -.032em; }
.world { background: var(--g); color: var(--k); padding: clamp(44px, 9vh, 112px) var(--gut); scroll-margin-top: var(--head-h); overflow: hidden; }
.world-inner { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: center; }
/* one capture per world, big: the desktop bleeding off the outer edge, or the phone alone at 1:1 */
.sheets { grid-column: 1 / 9; position: relative; }
.world-text { grid-column: 9 / 13; }
.alt .sheets { grid-column: 6 / 13; order: 2; }
.alt .world-text { grid-column: 1 / 5; }
.desk { width: 112%; margin-left: -12%; border-radius: 12px; overflow: hidden; background: #fff; box-shadow: 0 0 0 1px color-mix(in srgb, var(--k) 14%, transparent); }
.desk img { width: 100%; height: auto; }
.phone { display: none; width: min(360px, 100%); margin: 0 auto; border-radius: 16px; overflow: hidden; background: #fff; box-shadow: 0 0 0 1px color-mix(in srgb, var(--k) 14%, transparent); }
.phone img { width: 100%; height: auto; }
.alt .desk { display: none; }
.alt .phone { display: block; }
.world h3 { font: 800 clamp(30px, 3.3vw, 52px)/1 var(--sans); letter-spacing: -.028em; margin-bottom: 10px; }
.cat { font: 500 16px/1.4 var(--sans); opacity: .8; margin-bottom: 20px; }
.status { display: inline-block; font: 500 14px/1 var(--sans); padding: 0; border: 0; margin: -8px 0 20px; }
.desc { font: 400 clamp(17px, 1.2vw, 20px)/1.5 var(--sans); margin-bottom: 24px; max-width: 42ch; }
.proof { margin-bottom: 26px; padding: 0; border: 0; }
.pquote { font: 400 clamp(22px, 1.8vw, 30px)/1.3 var(--sans); letter-spacing: -.015em; text-indent: -.45em; margin-bottom: 10px; max-width: 34ch; }
.pwho { display: block; font: 500 14px/1.4 var(--sans); opacity: .82; }
.visit { display: inline-flex; align-items: center; gap: 10px; font: 700 16px/1.3 var(--sans); }
.visit svg { width: 18px; height: 18px; }
.visit .arr-p { stroke-dasharray: 1; stroke-dashoffset: 0; }
@media (prefers-reduced-motion: no-preference) {
  .visit:hover .arr-p { animation: draw .35s var(--ease); }
}
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
.draft .desk, .draft .phone { outline: 1.5px dashed color-mix(in srgb, currentColor 55%, transparent); outline-offset: 7px; }
.draft .desk { box-shadow: 0 0 0 1px rgba(0, 0, 0, .1); }
.draft .phone { box-shadow: 0 0 0 1px rgba(0, 0, 0, .12); }
.solo .world-inner { grid-template-columns: minmax(0, 1fr); row-gap: 40px; }
.solo .world-text { grid-column: 1; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 20px 48px; align-items: start; }
.solo .wt-body .desc { max-width: 60ch; }
.solo .sheets { grid-column: 1; }
.solo .desk { width: 100%; margin-left: 0; }
@media (max-width: 999px) {
  .world-inner { grid-template-columns: 1fr; row-gap: 32px; }
  .sheets, .alt .sheets { grid-column: 1; order: 0; }
  .world-text, .alt .world-text { grid-column: 1; }
  .solo .world-text { grid-template-columns: 1fr; }
}
@media (max-width: 759px) {
  .world { padding: 40px var(--gut) 52px; }
  .world h3 { margin-bottom: 8px; }
}

/* ---------- white sections ---------- */
.sec { padding: clamp(60px, 11vh, 132px) var(--gut); border-top: 1px solid var(--hair); }
.sec-inner.two { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 32px 48px; align-items: start; }
.sect-head h2 { font: 800 clamp(34px, 4vw, 60px)/1 var(--sans); letter-spacing: -.032em; margin-bottom: 36px; }
.two .sect-head h2 { margin-bottom: 0; position: sticky; top: calc(var(--head-h) + 24px); }
.svc-list { border-top: 1px solid var(--hair); }
.svc { border-bottom: 1px solid var(--hair); }
.svc summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 24px 0; font: 700 clamp(22px, 2.3vw, 34px)/1.1 var(--sans); letter-spacing: -.022em; }
.svc summary::-webkit-details-marker { display: none; }
.s-t { position: relative; }
.s-x { flex: 0 0 auto; font: 400 1.15em/1 var(--sans); color: var(--green); transition: transform .3s var(--ease); }
.svc[open] .s-x { transform: rotate(45deg); }
.s-body { max-width: 60ch; font-size: clamp(17px, 1.2vw, 20px); line-height: 1.55; color: var(--ink-2); margin: -4px 0 30px; }
.people { border-top: 1px solid var(--hair); }
.person { display: grid; grid-template-columns: 88px minmax(160px, 220px) minmax(0, 1fr) 40px; gap: 24px 28px; align-items: center; padding: 22px 0; border-bottom: 1px solid var(--hair); }
.photo img { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; }
.who { display: block; }
.name { display: block; font: 700 22px/1.2 var(--sans); letter-spacing: -.015em; }
.role { display: block; font: 500 15px/1.4 var(--sans); color: var(--mute); margin-top: 3px; }
.person p { max-width: 62ch; color: var(--ink-2); }
.li-link { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: var(--ink); opacity: .7; transition: opacity .2s, background-color .2s; }
.li-link:hover { opacity: 1; background: var(--soft); }
.li-link svg { width: 20px; height: 20px; }
@media (max-width: 999px) {
  .sec-inner.two { grid-template-columns: 1fr; }
  .two .sect-head h2 { position: static; margin-bottom: 8px; }
}
@media (max-width: 759px) {
  .person { grid-template-columns: 64px minmax(0, 1fr) 40px; gap: 14px 16px; }
  .photo img { width: 64px; height: 64px; }
  .person p { grid-column: 1 / -1; }
}
.anchor-band { background: var(--green); color: #fff; padding: clamp(48px, 9vh, 96px) var(--gut); }
.anchor-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 40px; }
.anchor-band h2 { font: 800 clamp(28px, 3.2vw, 48px)/1.05 var(--sans); letter-spacing: -.028em; max-width: 24ch; }
.anchor-band .btn-white:focus-visible { outline-color: #fff; }
.contact { padding: clamp(84px, 17vh, 220px) var(--gut); }
.kicker { font: 500 clamp(18px, 1.5vw, 24px)/1.3 var(--sans); color: var(--mute); margin-bottom: 14px; }
.fit-mail { display: inline-block; font: 800 clamp(38px, 12vw, 200px)/1 var(--sans); letter-spacing: -.045em; text-decoration: none; transition: color .2s; }
.fit-mail:hover { color: var(--green); }
.site-footer { border-top: 1px solid var(--hair); padding: 34px var(--gut) 44px; }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 32px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.foot nav a { font: 500 15px/1.4 var(--sans); text-decoration: none; }
.foot nav a:hover { color: var(--green); }
.legal { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 14px; color: var(--mute); }
.legal a:hover { color: var(--green); }

/* ---------- inner pages ---------- */
.page-top { padding: clamp(56px, 10vh, 120px) var(--gut) 28px; }
.page-head h1 { font: 800 clamp(44px, 7vw, 112px)/.96 var(--sans); letter-spacing: -.038em; margin-bottom: 22px; }
.lede { font: 400 clamp(18px, 1.4vw, 23px)/1.45 var(--sans); color: var(--ink-2); max-width: 52ch; }
.rates-wrap { padding: 28px var(--gut) 88px; }
.rates { border-top: 1px solid var(--hair); }
.rate { position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) auto minmax(0, 1.6fr); gap: 24px 40px; padding: 30px 0 34px; border-bottom: 1px solid var(--hair); align-items: start; }
.rate::after { content: ''; position: absolute; left: var(--lo, 0); width: calc(var(--hi, 0) - var(--lo, 0)); bottom: -1px; height: 3px; background: var(--green); border-radius: 2px; }
.rate h2 { font: 700 clamp(22px, 2vw, 30px)/1.1 var(--sans); letter-spacing: -.02em; }
.price { font: 800 clamp(24px, 2.4vw, 36px)/1 var(--sans); letter-spacing: -.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rate .desc { margin: 0; font-size: 17px; color: var(--ink-2); max-width: 50ch; }
.tariff-stamp { display: inline-block; margin-top: 28px; font: 500 14px/1 var(--sans); color: var(--mute); padding: 9px 13px; border: 1.5px solid var(--hair); border-radius: 999px; }
@media (max-width: 759px) {
  .rate { grid-template-columns: 1fr; gap: 8px; padding: 22px 0 26px; }
}
.legal-wrap { padding: 28px var(--gut) 100px; }
.legal-prose { max-width: 66ch; }
.legal-prose h2 { font: 700 clamp(22px, 2vw, 28px)/1.2 var(--sans); letter-spacing: -.02em; margin: 36px 0 10px; }
.legal-prose h2:first-child { margin-top: 0; }
.legal-prose p { line-height: 1.6; margin-bottom: 14px; }
.legal-prose a, .lnk { color: var(--green); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.error-main { position: relative; min-height: 100vh; min-height: 100svh; display: grid; align-content: center; padding: var(--gut); }
.error-wm { position: absolute; top: 22px; left: var(--gut); height: 24px; width: auto; color: var(--ink); }
.error-title { font: 800 clamp(40px, 9vw, 140px)/.96 var(--sans); letter-spacing: -.04em; margin: 12px 0 24px; --step: 110ms; }
.error-main .lnk { font-weight: 600; font-size: 18px; }

/* ---------- contact dialog ---------- */
.contact-dialog { border: 0; padding: 0; width: min(560px, calc(100% - 32px)); border-radius: 18px; background: var(--paper); color: var(--ink); box-shadow: 0 40px 100px -30px rgba(0, 0, 0, .45); }
.contact-dialog::backdrop { background: rgba(17, 19, 17, .55); }
.cd-form { position: relative; padding: 36px; }
.cd-close { position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--hair); background: #fff; color: var(--ink); font: 400 24px/1 var(--sans); cursor: pointer; }
.cd-close:hover { border-color: var(--ink); }
.cd-progress { font: 500 13px/1 var(--sans); color: var(--mute); 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: 800 clamp(24px, 3vw, 32px)/1.1 var(--sans); letter-spacing: -.024em; margin: 0 0 18px; padding: 0; }
.cd-step h2 { padding-right: 40px; }
.cd-choice { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1.5px solid var(--hair); border-radius: 12px; cursor: pointer; font: 500 17px/1.3 var(--sans); transition: border-color .15s, background-color .15s; }
.cd-choice:hover { border-color: var(--ink); }
.cd-choice input { accent-color: var(--green); width: 18px; height: 18px; margin: 0; }
.cd-choice:has(input:checked) { border: 1.5px dashed var(--green); background: var(--wash); }
.cd-step-error, .cd-status.err { color: #b3261e; }
.cd-step-error { font-size: 14px; margin: 8px 0 0; min-height: 0; }
.cd-status { min-height: 1.4em; font-size: 15px; margin: 6px 0 0; }
.cd-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 22px; }
.cd-field { display: grid; gap: 6px; margin-bottom: 14px; font: 500 14px/1.3 var(--sans); }
.cd-field input, .cd-field textarea { width: 100%; font: 400 17px/1.4 var(--sans); padding: 12px 14px; border: 1.5px solid var(--hair); border-radius: 10px; background: #fff; color: inherit; }
.cd-field input:focus, .cd-field textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px var(--wash); }
.cd-field textarea { resize: vertical; min-height: 120px; }
.cd-mail { margin-left: auto; font: 500 15px/1 var(--sans); color: var(--ink); }
.cd-hp { position: absolute; left: -9999px; width: 1px; height: 1px; }
@media (prefers-reduced-motion: no-preference) {
  .contact-dialog[open] { animation: panel-in .36s var(--ease); }
  .contact-dialog[open]::backdrop { animation: fade-in .3s var(--ease); }
  #caret.blink { animation: blink 1.06s steps(2, start) infinite; }
}
@keyframes panel-in { from { opacity: 0; transform: translateY(14px) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes blink { to { visibility: hidden; } }
@media (max-width: 759px) {
  .cd-form { padding: 28px 20px; }
}

/* ---------- breakpoints for the header ---------- */
@media (max-width: 1080px) {
  .site-nav, .top-mail { display: none; }
  .menu { display: block; }
}

@media (forced-colors: active) {
  .btn, .cd-choice, .cd-field input, .cd-field textarea, .tariff-stamp, .sheet img, .sheet .face, .desk, .phone { border: 1px solid CanvasText; }
  .sel::before, .svc[open] .s-t::before { border-color: Highlight; }
}
