/* Qurylys.Kz design system
   Type: Tailwind default scale only. Spacing: B2 tokens only. Radius: Tailwind values only.
   Brand: construction yellow on warm black, taken from the company flyer. */

/* Geist and Geist Mono, self-hosted variable fonts (SIL OFL 1.1). One file per subset covers every weight. */
@font-face { font-family: "Geist"; font-style: normal; font-weight: 400 700; font-display: swap; src: url(fonts/geist-cyrillic-ext.woff2) format("woff2"); unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: "Geist"; font-style: normal; font-weight: 400 700; font-display: swap; src: url(fonts/geist-cyrillic.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Geist"; font-style: normal; font-weight: 400 700; font-display: swap; src: url(fonts/geist-vietnamese.woff2) format("woff2"); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: "Geist"; font-style: normal; font-weight: 400 700; font-display: swap; src: url(fonts/geist-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Geist"; font-style: normal; font-weight: 400 700; font-display: swap; src: url(fonts/geist-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: "Geist Mono"; font-style: normal; font-weight: 400 500; font-display: swap; src: url(fonts/geist-mono-cyrillic-ext.woff2) format("woff2"); unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: "Geist Mono"; font-style: normal; font-weight: 400 500; font-display: swap; src: url(fonts/geist-mono-cyrillic.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Geist Mono"; font-style: normal; font-weight: 400 500; font-display: swap; src: url(fonts/geist-mono-symbols2.woff2) format("woff2"); unicode-range: U+2000-2001, U+2004-2008, U+200A, U+23B8-23BD, U+2500-259F; }
@font-face { font-family: "Geist Mono"; font-style: normal; font-weight: 400 500; font-display: swap; src: url(fonts/geist-mono-vietnamese.woff2) format("woff2"); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: "Geist Mono"; font-style: normal; font-weight: 400 500; font-display: swap; src: url(fonts/geist-mono-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Geist Mono"; font-style: normal; font-weight: 400 500; font-display: swap; src: url(fonts/geist-mono-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; }

:root {
  --paper: #EEEDE9;
  --paper-raised: #F7F6F3;
  --paper-sunken: #E5E3DD;
  --ink: #131209;
  --ink-2: #57564F;
  --ink-3: #8A887F;
  --line: #D6D3CB;
  --line-strong: #BCB8AD;
  --accent: #F5B800;
  --accent-hover: #E3A900;
  --accent-soft: #FCEFC4;
  --accent-text: #8A5B00;
  --ok: #1E7A46;
  --err: #B42318;

  --night: #131209;
  --night-2: #1F1F1F;
  --night-3: #313131;
  --night-ink: #F3F1EA;
  --night-ink-2: #A8A59B;

  --s-25: 2px;
  --s-50: 4px;
  --s-75: 8px;
  --s-100: 12px;
  --s-200: 16px;
  --s-300: 24px;
  --s-400: 32px;
  --s-500: 40px;
  --s-600: 48px;
  --s-700: 64px;
  --s-800: 80px;
  --s-900: 96px;

  --r-sm: 4px;
  --r-lg: 8px;
  --r-xl: 12px;
  --r-2xl: 16px;
  --r-3xl: 24px;
  --r-full: 9999px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font: "Geist", ui-sans-serif, system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", monospace;
  --container: 1200px;
  --gutter: var(--s-200);
}

@media (min-width: 640px) { :root { --gutter: var(--s-300); } }
@media (min-width: 1024px) { :root { --gutter: var(--s-400); } }

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--s-900); }
body {
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.5rem;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-weight: 600; text-wrap: balance; }
p, li, dd, blockquote { text-wrap: pretty; }
::selection { background: var(--accent); color: var(--ink); }

.mono { font-family: var(--mono); }
.muted { color: var(--ink-2); }

/* Layout */
.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--s-700); position: relative; }
@media (min-width: 1024px) { .section { padding-block: var(--s-900); } }

/* Engineering guide lines at the container edges */
.guides { position: fixed; inset: 0; pointer-events: none; z-index: 0; display: none; }
.guides span { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--line); }
.guides span:first-child { left: calc(50% - var(--container) / 2); }
.guides span:last-child { right: calc(50% - var(--container) / 2); }
@media (min-width: 1280px) { .guides { display: block; } }
main, .footer { position: relative; z-index: 1; }

/* Hairline rule with crosshair markers */
.rule { position: relative; height: 1px; background: var(--line); z-index: 1; }
.rule::before, .rule::after {
  content: "+";
  position: absolute; top: 50%;
  font-family: var(--mono); font-size: 0.75rem; line-height: 1rem;
  color: var(--ink-3);
  transform: translate(-50%, -50%);
  background: var(--paper);
  padding-inline: var(--s-25);
}
.rule::before { left: max(var(--gutter), calc(50% - var(--container) / 2)); }
.rule::after { left: min(calc(100% - var(--gutter)), calc(50% + var(--container) / 2)); }

/* Section heading */
.eyebrow {
  display: inline-flex; align-items: center; gap: var(--s-75);
  font-family: var(--mono); font-size: 0.75rem; line-height: 1rem;
  text-transform: uppercase; letter-spacing: 0.04em;
  color: var(--ink-2);
}
.eyebrow::before { content: ""; width: 8px; height: 8px; background: var(--accent); border-radius: 2px; }
.section-head { display: grid; gap: var(--s-200); margin-bottom: var(--s-600); }
.section-head h2 { font-size: 1.875rem; line-height: 2.25rem; letter-spacing: -0.02em; max-width: 680px; }
.section-head p { color: var(--ink-2); max-width: 560px; }
@media (min-width: 768px) {
  .section-head h2 { font-size: 2.25rem; line-height: 2.5rem; }
}
@media (min-width: 1024px) {
  .section-head.split { grid-template-columns: 1fr 380px; align-items: end; column-gap: var(--s-600); }
  .section-head.split .eyebrow { grid-column: 1 / -1; }
  .section-head h2 { font-size: 3rem; line-height: 1; }
}

/* Icons */
.i { width: 20px; height: 20px; flex: none; fill: currentColor; }
.i-sm { width: 16px; height: 16px; }
.i-lg { width: 24px; height: 24px; }

/* Buttons: 8px / 12px padding, text-base semibold */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-75);
  padding: var(--s-75) var(--s-100);
  font-size: 1rem; line-height: 1.5rem; font-weight: 600;
  border-radius: var(--r-full);
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 300ms var(--ease), color 300ms var(--ease), border-color 300ms var(--ease), transform 500ms var(--ease), opacity 300ms var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: scale(0.98); }
.btn .i { transition: transform 500ms var(--ease); }
.btn:hover .i-arrow { transform: translateX(var(--s-50)); }
.btn-primary { background: var(--accent); color: var(--ink); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-dark { background: var(--ink); color: var(--night-ink); }
.btn-dark:hover { background: #2A2920; }
.btn-ghost { background: transparent; border-color: var(--line-strong); color: var(--ink); }
.btn-ghost:hover { background: var(--paper-raised); border-color: var(--ink-3); }
.btn-sm { font-size: 0.875rem; line-height: 1.25rem; padding: var(--s-75) var(--s-100); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.5; cursor: not-allowed; transform: none; }

:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: var(--r-sm); }
.btn:focus-visible { border-radius: var(--r-full); }
.tagline :focus-visible, .footer :focus-visible, .rating-card :focus-visible, .compare-col.rent :focus-visible { outline-color: var(--accent); }

.link {
  display: inline-flex; align-items: center; gap: var(--s-50);
  font-weight: 500;
  border-radius: var(--r-sm);
  transition: color 300ms var(--ease);
}
.link:hover { color: var(--accent-text); }
.link .i { transition: transform 500ms var(--ease); }
.link:hover .i { transform: translate(var(--s-25), calc(var(--s-25) * -1)); }

.skip {
  position: fixed; top: var(--s-100); left: var(--s-100); z-index: 100;
  padding: var(--s-75) var(--s-100);
  background: var(--ink); color: var(--night-ink);
  border-radius: var(--r-lg);
  font-size: 0.875rem; line-height: 1.25rem; font-weight: 600;
  transform: translateY(-200%);
  transition: transform 500ms var(--ease);
}
.skip:focus { transform: translateY(0); }

/* Navigation */
.nav-wrap {
  position: fixed; top: var(--s-100); left: 0; right: 0; z-index: 50;
  display: flex; justify-content: center;
  padding-inline: var(--s-100);
  pointer-events: none;
}
.nav {
  pointer-events: auto;
  display: flex; align-items: center; gap: var(--s-300);
  padding: var(--s-75);
  padding-left: var(--s-200);
  background: rgba(247, 246, 243, 0.72);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  border: 1px solid rgba(188, 184, 173, 0.6);
  border-radius: var(--r-full);
  width: 100%;
  max-width: 1040px;
  justify-content: space-between;
}
@media (min-width: 1024px) { .nav { width: auto; justify-content: flex-start; } }
.brand { display: inline-flex; align-items: center; gap: var(--s-75); font-weight: 600; letter-spacing: 0.02em; border-radius: var(--r-lg); }
.brand-mark { width: 28px; height: 28px; flex: none; }
.brand-logo { width: auto; height: 32px; object-fit: contain; }
.brand-logo.on-dark { height: 40px; padding: var(--s-50) var(--s-75); background: #fff; border-radius: var(--r-lg); }
.brand small { font-weight: 500; color: var(--ink-3); font-size: inherit; letter-spacing: inherit; }
.nav-links { display: none; align-items: center; gap: var(--s-50); list-style: none; padding: 0; }
.nav-links a {
  display: block;
  padding: var(--s-75) var(--s-100);
  font-size: 0.875rem; line-height: 1.25rem; font-weight: 500;
  color: var(--ink-2);
  border-radius: var(--r-full);
  transition: color 300ms var(--ease), background-color 300ms var(--ease);
}
.nav-links a:hover { color: var(--ink); background: rgba(19, 18, 9, 0.05); }
.nav-links a[aria-current="true"] { color: var(--ink); background: rgba(19, 18, 9, 0.08); }
.nav-actions { display: flex; align-items: center; gap: var(--s-75); }
.nav-cta { display: none; }
.badge {
  display: inline-grid; place-items: center;
  min-width: 20px; height: 20px; padding-inline: var(--s-50);
  font-family: var(--mono); font-size: 0.75rem; line-height: 1rem; font-weight: 500;
  background: var(--ink); color: var(--accent);
  border-radius: var(--r-full);
}
.badge[hidden] { display: none; }
@media (min-width: 1024px) {
  .nav-links, .nav-cta { display: flex; }
  .menu-toggle { display: none; }
}

.menu-toggle {
  position: relative;
  width: 40px; height: 40px;
  display: grid; place-items: center;
  background: var(--ink); color: var(--night-ink);
  border: 0; border-radius: var(--r-full);
  cursor: pointer;
  transition: transform 500ms var(--ease);
}
.menu-toggle:active { transform: scale(0.96); }
.menu-toggle span {
  position: absolute; left: 12px; right: 12px; height: 2px;
  background: currentColor; border-radius: 2px;
  transition: transform 500ms var(--ease);
}
.menu-toggle span:first-child { transform: translateY(-4px); }
.menu-toggle span:last-child { transform: translateY(4px); }
.menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(0) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(0) rotate(-45deg); }
@media (min-width: 1024px) { .menu-toggle { display: none; } }

.mobile-menu {
  position: fixed; inset: 0; z-index: 40;
  display: flex; flex-direction: column;
  padding: var(--s-900) var(--s-300) var(--s-400);
  background: rgba(238, 237, 233, 0.94);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  opacity: 0; visibility: hidden;
  transition: opacity 500ms var(--ease), visibility 0s linear 500ms;
}
.mobile-menu.open { opacity: 1; visibility: visible; transition: opacity 500ms var(--ease), visibility 0s; }
.mobile-menu ol { list-style: none; padding: 0; display: grid; gap: var(--s-50); }
.mobile-menu li {
  opacity: 0; transform: translateY(var(--s-300));
  transition: opacity 500ms var(--ease), transform 500ms var(--ease);
  transition-delay: calc(min(var(--i) * 60ms, 340ms));
}
.mobile-menu.open li { opacity: 1; transform: translateY(0); }
.mobile-menu ol a {
  display: flex; align-items: baseline; gap: var(--s-200);
  padding-block: var(--s-100);
  font-size: 1.875rem; line-height: 2.25rem; font-weight: 600; letter-spacing: -0.02em;
  border-radius: var(--r-lg);
}
.mobile-menu ol a span { font-family: var(--mono); font-size: 0.75rem; line-height: 1rem; color: var(--ink-3); font-weight: 400; letter-spacing: 0; }
.mobile-menu ol a[aria-current="true"] { color: var(--accent-text); }
.mobile-menu .mobile-foot { margin-top: auto; display: grid; gap: var(--s-200); }
.mobile-menu .mobile-foot .btn { width: 100%; }
@media (min-width: 1024px) { .mobile-menu { display: none; } }
body.menu-open { overflow: hidden; }

/* Hero */
.hero { padding-top: calc(var(--s-900) + var(--s-400)); padding-bottom: var(--s-600); }
@media (min-width: 1024px) { .hero { padding-top: calc(var(--s-900) + var(--s-700)); padding-bottom: var(--s-700); } }
.hero-grid { display: grid; gap: var(--s-400); }
@media (min-width: 1024px) { .hero-grid { grid-template-columns: minmax(0, 680px) 1fr; column-gap: var(--s-700); align-items: end; } }
.hero h1 {
  max-width: 680px;
  font-size: 2.25rem; line-height: 2.5rem;
  letter-spacing: -0.03em;
  padding-bottom: var(--s-50);
  background: linear-gradient(90deg, #000000, #666666);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
@media (min-width: 640px) { .hero h1 { font-size: 3rem; line-height: 1; } }
@media (min-width: 1024px) { .hero h1 { font-size: 3.75rem; line-height: 1; } }
.hero h1 .br { display: block; }
.hero .lede { max-width: 680px; margin-top: var(--s-300); color: var(--ink-2); font-size: 1.125rem; line-height: 1.75rem; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-200) var(--s-300); margin-top: var(--s-400); }
.hero-aside { display: grid; gap: var(--s-200); align-content: end; }
.proof {
  display: grid; gap: var(--s-100);
  padding: var(--s-300);
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: var(--r-2xl);
}
.proof-top { display: flex; align-items: center; gap: var(--s-100); flex-wrap: wrap; }
.stars { display: inline-flex; gap: var(--s-25); color: #E0A500; }
.proof blockquote { font-size: 0.875rem; line-height: 1.25rem; color: var(--ink-2); }
.proof cite { font-style: normal; color: var(--ink); font-weight: 500; }

.hero-visual {
  position: relative;
  margin-top: var(--s-600);
  border-radius: var(--r-3xl);
  background: var(--paper-raised);
  border: 1px solid var(--line);
  padding: var(--s-75);
}
.hero-visual .canvas {
  position: relative;
  border-radius: var(--r-2xl);
  overflow: hidden;
  background-color: #F9F8F6;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 24px 24px;
  background-position: -1px -1px;
  aspect-ratio: 4 / 3;
}
@media (min-width: 768px) { .hero-visual .canvas { aspect-ratio: 1200 / 520; } }
.hero-visual svg.drawing { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.callout {
  position: absolute;
  display: inline-flex; align-items: center; gap: var(--s-75);
  padding: var(--s-50) var(--s-100) var(--s-50) var(--s-75);
  font-family: var(--mono); font-size: 0.75rem; line-height: 1rem;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-full);
  white-space: nowrap;
  transform: translate(-13px, -50%);
  transition: opacity 300ms var(--ease);
}
.callout[data-out] { opacity: 0; pointer-events: none; }
.callout::before { content: ""; width: 8px; height: 8px; border-radius: var(--r-full); background: var(--accent); box-shadow: 0 0 0 1px var(--ink); }
.callout.opt { display: none; }
@media (min-width: 768px) { .callout.opt { display: inline-flex; } }
.visual-meta {
  display: flex; justify-content: space-between; gap: var(--s-200); flex-wrap: wrap;
  padding: var(--s-100) var(--s-100) var(--s-50);
  font-family: var(--mono); font-size: 0.75rem; line-height: 1rem; color: var(--ink-3);
}

/* Facts strip */
.facts { display: grid; grid-template-columns: 1fr; border: 1px solid var(--line); border-radius: var(--r-2xl); background: var(--paper-raised); }
.fact { display: flex; gap: var(--s-200); align-items: flex-start; padding: var(--s-300); }
.fact + .fact { box-shadow: 0 -1px 0 var(--line); }
.fact .i { color: var(--ink); margin-top: var(--s-25); }
.fact strong { display: block; font-weight: 600; }
.fact span { display: block; color: var(--ink-2); font-size: 0.875rem; line-height: 1.25rem; }
@media (min-width: 640px) {
  .facts { grid-template-columns: repeat(2, 1fr); }
  .fact + .fact { box-shadow: none; }
  .fact:nth-child(3) { box-shadow: 0 -1px 0 var(--line); }
  .fact:nth-child(2) { box-shadow: -1px 0 0 var(--line); }
  .fact:nth-child(4) { box-shadow: -1px 0 0 var(--line), 0 -1px 0 var(--line); }
}
@media (min-width: 1024px) {
  .facts { grid-template-columns: repeat(4, 1fr); }
  .fact:nth-child(n) { box-shadow: -1px 0 0 var(--line); }
  .fact:first-child { box-shadow: none; }
}

/* Rent vs buy */
.compare { display: grid; gap: var(--s-200); }
@media (min-width: 768px) { .compare { grid-template-columns: 1fr 1fr; } }
.compare-col { border-radius: var(--r-3xl); padding: var(--s-300); border: 1px solid var(--line); }
@media (min-width: 1024px) { .compare-col { padding: var(--s-400); } }
.compare-col.rent { background: var(--night); color: var(--night-ink); border-color: var(--night); }
.compare-col h3 { display: flex; align-items: center; justify-content: space-between; gap: var(--s-200); font-size: 1.25rem; line-height: 1.75rem; margin-bottom: var(--s-300); }
.compare-col h3 .tag { font-family: var(--mono); font-size: 0.75rem; line-height: 1rem; font-weight: 400; padding: var(--s-50) var(--s-75); border-radius: var(--r-full); border: 1px solid var(--line-strong); color: var(--ink-2); }
.compare-col.rent h3 .tag { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.compare-col dl { display: grid; }
.compare-row { display: grid; gap: var(--s-50); padding-block: var(--s-200); box-shadow: 0 -1px 0 var(--line); }
.compare-col.rent .compare-row { box-shadow: 0 -1px 0 var(--night-3); }
.compare-row dt { font-family: var(--mono); font-size: 0.75rem; line-height: 1rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink-3); }
.compare-col.rent .compare-row dt { color: var(--night-ink-2); }
.compare-row dd { display: flex; gap: var(--s-100); align-items: flex-start; }
.compare-row dd .i { margin-top: var(--s-25); }
.compare-col.buy dd .i { color: var(--ink-3); }
.compare-col.rent dd .i { color: var(--accent); }

/* Catalog */
.catalog { display: grid; gap: var(--s-200); }
@media (min-width: 640px) { .catalog { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .catalog { grid-template-columns: repeat(3, 1fr); gap: var(--s-300); } }
.item {
  display: flex; flex-direction: column;
  padding: var(--s-75);
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: var(--r-2xl);
  transition: transform 500ms var(--ease), border-color 300ms var(--ease);
}
.item:hover { transform: translateY(-2px); border-color: var(--line-strong); }
.item.selected { border-color: var(--ink); }
.item-figure {
  position: relative;
  border-radius: var(--r-lg);
  background-color: #FBFAF8;
  background-image: radial-gradient(var(--line) 1px, transparent 1px);
  background-size: 16px 16px;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}
.item-figure > svg, .item-figure > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.item-figure .code {
  position: absolute; top: var(--s-75); left: var(--s-75); z-index: 1;
  font-family: var(--mono); font-size: 0.75rem; line-height: 1rem; color: var(--ink-3);
}
.item-figure .flag {
  position: absolute; top: var(--s-75); right: var(--s-75); z-index: 1;
  font-family: var(--mono); font-size: 0.75rem; line-height: 1rem;
  padding: var(--s-25) var(--s-75);
  background: var(--accent); color: var(--ink);
  border-radius: var(--r-full);
}
.item-body { display: flex; flex-direction: column; gap: var(--s-100); padding: var(--s-200) var(--s-100) var(--s-100); flex: 1; }
.item h3 { font-size: 1.25rem; line-height: 1.75rem; letter-spacing: -0.01em; }
.item p { color: var(--ink-2); font-size: 0.875rem; line-height: 1.25rem; }
.specs { display: grid; margin-top: var(--s-75); font-family: var(--mono); font-size: 0.75rem; line-height: 1rem; }
.specs div { display: flex; justify-content: space-between; gap: var(--s-200); padding-block: var(--s-75); box-shadow: 0 -1px 0 var(--line); }
.specs dt { color: var(--ink-3); flex: none; }
.specs dd { text-align: right; }
.item-foot { margin-top: auto; padding-top: var(--s-200); }
.item .btn[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--ink); }

/* Reviews slider */
.reviews-top { margin-bottom: var(--s-300); }
@media (min-width: 768px) {
  .reviews-top .rating-card { grid-template-columns: auto 1fr auto; align-items: center; gap: var(--s-400); }
}
.slider-track {
  display: flex; gap: var(--s-200);
  overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  padding-bottom: var(--s-100);
  scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent;
}
.slider-track:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: var(--r-lg); }
.slider-track .review { flex: 0 0 min(85%, 380px); scroll-snap-align: start; }
.slider-track .review.short { justify-content: space-between; }
.slider-controls { display: flex; align-items: center; justify-content: space-between; margin-top: var(--s-200); }
.slider-count { font-family: var(--mono); font-size: 0.875rem; line-height: 1.25rem; color: var(--ink-3); }
.slider-buttons { display: flex; gap: var(--s-75); }
.slider-btn {
  width: 48px; height: 48px; display: grid; place-items: center; padding: 0;
  background: transparent; color: var(--ink);
  border: 1px solid var(--line-strong); border-radius: var(--r-full); cursor: pointer;
  transition: background-color 300ms var(--ease), border-color 300ms var(--ease), opacity 300ms var(--ease), transform 500ms var(--ease);
}
.slider-btn:hover:not(:disabled) { background: var(--paper-raised); border-color: var(--ink-3); }
.slider-btn:active:not(:disabled) { transform: scale(0.98); }
.slider-btn:disabled { opacity: 0.4; cursor: default; }

/* Clients */
.client-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-100); }
.client-list li {
  display: flex; align-items: center; justify-content: center;
  min-height: 80px; padding: var(--s-200);
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: var(--r-2xl);
  font-size: 1.25rem; line-height: 1.75rem; font-weight: 600; letter-spacing: -0.01em;
  text-align: center;
}
.client-list li { gap: var(--s-100); }
.client-list img { display: block; height: 28px; width: auto; max-width: 100%; }
.client-list li { padding-inline: var(--s-100); }
.client-list span { font-size: 1rem; line-height: 1.5rem; white-space: nowrap; }
@media (min-width: 1024px) { .client-list { grid-template-columns: repeat(4, 1fr); gap: var(--s-200); } }

/* Featured product: gallery beside the description */
.item-feature { grid-column: 1 / -1; }
.item-feature:hover { transform: none; }
.item-feature .item-figure { aspect-ratio: 4 / 3; background-image: none; }
.item-feature .item-figure img { transition: opacity 300ms var(--ease); }
.item-feature .item-figure img.swap { opacity: 0; }
.item-feature .item-figure .code, .item-feature .item-figure .flag { padding: var(--s-25) var(--s-75); border-radius: var(--r-full); color: var(--ink); }
.item-feature .item-figure .code { background: var(--paper-raised); }
.thumbs { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-75); margin-top: var(--s-75); }
.thumb {
  display: block; width: 100%; padding: 0; overflow: hidden;
  aspect-ratio: 4 / 3; background: var(--paper-raised);
  border: 1px solid var(--line); border-radius: var(--r-lg);
  cursor: pointer; opacity: 0.7;
  transition: opacity 300ms var(--ease), border-color 300ms var(--ease), transform 500ms var(--ease);
}
.thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.thumb:hover { opacity: 1; }
.thumb:active { transform: scale(0.98); }
.thumb[aria-pressed="true"] { opacity: 1; border-color: var(--ink); }
.feature-foot { display: flex; flex-wrap: wrap; gap: var(--s-100); }
.foot-note { font-size: 0.75rem; line-height: 1rem; color: var(--ink-3); text-wrap: pretty; }
@media (min-width: 1024px) {
  .item-feature { flex-direction: row; align-items: flex-start; gap: var(--s-300); }
  .item-feature .feature-gallery { flex: 0 0 52%; min-width: 0; }
  .item-feature .item-body { padding: var(--s-200) var(--s-200) var(--s-200) 0; }
  .item-feature h3 { font-size: 1.875rem; line-height: 2.25rem; }
  .item-feature p { font-size: 1rem; line-height: 1.5rem; }
}

/* Benefits with proof */
.benefits { display: grid; }
.benefit { display: grid; gap: var(--s-200); padding-block: var(--s-400); box-shadow: 0 -1px 0 var(--line); }
.benefit:last-child { box-shadow: 0 -1px 0 var(--line), 0 1px 0 var(--line); }
.benefit-num { font-family: var(--mono); font-size: 0.875rem; line-height: 1.25rem; color: var(--ink-3); }
.benefit h3 { font-size: 1.5rem; line-height: 2rem; letter-spacing: -0.01em; }
.benefit p { color: var(--ink-2); margin-top: var(--s-75); max-width: 460px; }
.benefit figure { display: grid; gap: var(--s-75); padding: var(--s-200) var(--s-300); background: var(--paper-raised); border: 1px solid var(--line); border-radius: var(--r-2xl); align-self: start; }
.benefit blockquote { font-size: 1rem; line-height: 1.5rem; }
.benefit figcaption { display: flex; align-items: center; gap: var(--s-75); font-size: 0.75rem; line-height: 1rem; color: var(--ink-2); font-family: var(--mono); }
.benefit figcaption .i { color: var(--ok); }
.benefit .translation { font-size: 0.875rem; line-height: 1.25rem; color: var(--ink-2); }
@media (min-width: 1024px) {
  .benefit { grid-template-columns: 80px minmax(0, 1fr) 420px; column-gap: var(--s-600); align-items: start; }
}

/* Tagline reveal */
.tagline { background: var(--night); color: var(--night-ink); }
.tagline .container { display: grid; gap: var(--s-400); }
.tagline .eyebrow { color: var(--night-ink-2); }
.reveal-text {
  max-width: 920px;
  font-size: 2.25rem; line-height: 2.5rem;
  font-weight: 600;
  letter-spacing: -0.03em;
}
@media (min-width: 768px) { .reveal-text { font-size: 3rem; line-height: 1; } }
@media (min-width: 1024px) { .reveal-text { font-size: 3.75rem; line-height: 1; } }
.reveal-text .line { display: block; padding-bottom: var(--s-75); }
.word { opacity: 0.3; transition: opacity 500ms var(--ease); }
.word.on { opacity: 1; }
.word.hl { color: var(--accent); }
.tagline-foot { display: flex; flex-wrap: wrap; gap: var(--s-300); align-items: center; justify-content: space-between; padding-top: var(--s-400); box-shadow: 0 -1px 0 var(--night-3); color: var(--night-ink-2); font-size: 0.875rem; line-height: 1.25rem; }
.tagline-foot .mono { color: var(--night-ink); }

/* Steps */
.steps { display: grid; gap: var(--s-200); list-style: none; padding: 0; }
@media (min-width: 1024px) { .steps { grid-template-columns: repeat(3, 1fr); gap: var(--s-300); } }
.step { position: relative; display: grid; gap: var(--s-200); align-content: start; padding: var(--s-300); background: var(--paper-raised); border: 1px solid var(--line); border-radius: var(--r-2xl); }
.step-top { display: flex; justify-content: space-between; align-items: center; }
.step-num { font-family: var(--mono); font-size: 0.75rem; line-height: 1rem; color: var(--ink-3); }
.step-icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: var(--r-xl); background: var(--ink); color: var(--accent); }
.step h3 { font-size: 1.25rem; line-height: 1.75rem; }
.step p { color: var(--ink-2); font-size: 0.875rem; line-height: 1.25rem; }
.step-meta { margin-top: auto; font-family: var(--mono); font-size: 0.75rem; line-height: 1rem; color: var(--ink-3); padding-top: var(--s-200); box-shadow: 0 -1px 0 var(--line); }

/* Reviews */
.reviews { display: grid; gap: var(--s-200); }
@media (min-width: 768px) { .reviews { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .reviews { grid-template-columns: repeat(3, 1fr); gap: var(--s-300); } }
.rating-card { display: grid; gap: var(--s-300); align-content: space-between; padding: var(--s-300); border-radius: var(--r-2xl); background: var(--night); color: var(--night-ink); }
.rating-score { font-family: var(--mono); font-size: 3.75rem; line-height: 1; font-weight: 500; letter-spacing: -0.04em; }
.rating-card .stars { color: var(--accent); }
.rating-card p { color: var(--night-ink-2); font-size: 0.875rem; line-height: 1.25rem; }
.rating-card .link { color: var(--night-ink); }
.rating-card .link:hover { color: var(--accent); }
.review { display: flex; flex-direction: column; gap: var(--s-200); padding: var(--s-300); background: var(--paper-raised); border: 1px solid var(--line); border-radius: var(--r-2xl); }
.review blockquote { font-size: 1rem; line-height: 1.5rem; }
.review.lg blockquote { font-size: 1.125rem; line-height: 1.75rem; }
.review footer { margin-top: auto; display: flex; align-items: center; gap: var(--s-100); }
.avatar { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: var(--r-full); background: var(--paper-sunken); font-family: var(--mono); font-size: 0.875rem; line-height: 1.25rem; font-weight: 500; color: var(--ink-2); }
.review-name { font-weight: 600; font-size: 0.875rem; line-height: 1.25rem; }
.review-meta { display: flex; align-items: center; gap: var(--s-50); font-family: var(--mono); font-size: 0.75rem; line-height: 1rem; color: var(--ink-3); }
.review-meta .i { color: var(--ok); }
.translate-btn { align-self: flex-start; display: inline-flex; align-items: center; gap: var(--s-50); padding: var(--s-50) var(--s-75); font-size: 0.75rem; line-height: 1rem; font-family: var(--mono); color: var(--ink-2); background: var(--paper-sunken); border: 0; border-radius: var(--r-full); cursor: pointer; transition: background-color 300ms var(--ease), color 300ms var(--ease), transform 500ms var(--ease); }
.translate-btn:hover { color: var(--ink); background: var(--line); }
.translate-btn:active { transform: scale(0.98); }
.translation[hidden] { display: none; }
.review .translation { font-size: 0.875rem; line-height: 1.25rem; color: var(--ink-2); padding: var(--s-75) var(--s-100); background: var(--paper-sunken); border-radius: var(--r-lg); }
@media (min-width: 1024px) { .review.span-2 { grid-column: span 2; } }

/* Quote form */
.quote-grid { display: grid; gap: var(--s-400); }
@media (min-width: 1024px) { .quote-grid { grid-template-columns: minmax(0, 1fr) 640px; column-gap: var(--s-700); align-items: start; } }
.quote-side { display: grid; gap: var(--s-300); align-content: start; }
@media (min-width: 1024px) { .quote-side { position: sticky; top: var(--s-900); } }
.contact-list { display: grid; gap: var(--s-75); list-style: none; padding: 0; }
.contact-list a { display: flex; align-items: center; gap: var(--s-100); padding: var(--s-100) var(--s-200); border-radius: var(--r-xl); border: 1px solid var(--line); background: var(--paper-raised); font-weight: 500; transition: border-color 300ms var(--ease), transform 500ms var(--ease); }
.contact-list a:hover { border-color: var(--ink-3); transform: translateY(-1px); }
.contact-list a:active { transform: scale(0.98); }
.contact-list small { margin-left: auto; font-family: var(--mono); font-size: 0.75rem; line-height: 1rem; color: var(--ink-3); }
.person { display: flex; align-items: center; gap: var(--s-100); padding: var(--s-200); border-radius: var(--r-2xl); background: var(--paper-raised); border: 1px solid var(--line); }
.person .avatar { background: var(--ink); color: var(--accent); width: 48px; height: 48px; }
.person strong { display: block; font-weight: 600; }
.person div span { display: block; font-size: 0.875rem; line-height: 1.25rem; color: var(--ink-2); }

.form-card { position: relative; padding: var(--s-300); background: var(--paper-raised); border: 1px solid var(--line); border-radius: var(--r-3xl); }
@media (min-width: 640px) { .form-card { padding: var(--s-400); } }
.form { display: grid; gap: var(--s-300); }
.field { display: grid; gap: var(--s-75); border: 0; padding: 0; min-width: 0; }
.field-row { display: grid; gap: var(--s-300); }
@media (min-width: 640px) { .field-row { grid-template-columns: 1fr 1fr; } }
.label { font-size: 0.875rem; line-height: 1.25rem; font-weight: 600; display: flex; justify-content: space-between; gap: var(--s-100); padding: 0; }
.label .opt { font-weight: 400; color: var(--ink-3); font-family: var(--mono); font-size: 0.75rem; line-height: 1.25rem; }
.input, .select, .textarea {
  width: 100%;
  padding: var(--s-100) var(--s-200);
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-xl);
  font-size: 1rem; line-height: 1.5rem;
  transition: border-color 300ms var(--ease), box-shadow 300ms var(--ease);
  appearance: none;
}
.textarea { resize: vertical; min-height: 96px; }
.select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256' fill='%2357564F'%3E%3Cpath d='M213.66,101.66l-80,80a8,8,0,0,1-11.32,0l-80-80A8,8,0,0,1,53.66,90.34L128,164.69l74.34-74.35a8,8,0,0,1,11.32,11.32Z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; background-size: 16px; padding-right: var(--s-500); }
.input::placeholder, .textarea::placeholder { color: var(--ink-3); }
.input:hover, .select:hover, .textarea:hover { border-color: var(--ink-3); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(245, 184, 0, 0.45); }
.field.invalid .input, .field.invalid .select { border-color: var(--err); }
.field-error { display: none; align-items: center; gap: var(--s-50); font-size: 0.875rem; line-height: 1.25rem; color: var(--err); }
.field.invalid .field-error { display: flex; }

.chips { display: flex; flex-wrap: wrap; gap: var(--s-75); }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip label {
  display: inline-flex; align-items: center; gap: var(--s-75);
  padding: var(--s-75) var(--s-100);
  font-size: 0.875rem; line-height: 1.25rem; font-weight: 500;
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-full);
  cursor: pointer; user-select: none;
  transition: background-color 300ms var(--ease), border-color 300ms var(--ease), color 300ms var(--ease), transform 500ms var(--ease);
}
.chip label:hover { border-color: var(--ink-3); }
.chip label:active { transform: scale(0.98); }
.chip label .i { width: 16px; height: 16px; display: none; }
.chip input:checked + label { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.chip input:checked + label .i { display: block; animation: pop 300ms var(--ease) both; }
.chip input:focus-visible + label { outline: 2px solid var(--ink); outline-offset: 2px; }
@keyframes pop { from { opacity: 0; transform: scale(0.6); } to { opacity: 1; transform: none; } }
.chips-empty { font-size: 0.875rem; line-height: 1.25rem; color: var(--ink-3); }
.chips-empty[hidden] { display: none; }

.segmented { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-50); padding: var(--s-50); background: var(--paper-sunken); border-radius: var(--r-xl); }
@media (min-width: 640px) { .segmented { grid-template-columns: repeat(4, 1fr); } }
.segmented > div { position: relative; }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented label { display: block; text-align: center; padding: var(--s-75); font-size: 0.875rem; line-height: 1.25rem; font-weight: 500; color: var(--ink-2); border-radius: var(--r-lg); cursor: pointer; transition: background-color 300ms var(--ease), color 300ms var(--ease); }
.segmented label:hover { color: var(--ink); }
.segmented input:checked + label { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(19, 18, 9, 0.1); }
.segmented input:focus-visible + label { outline: 2px solid var(--ink); outline-offset: 2px; }

.consent { display: flex; gap: var(--s-100); align-items: flex-start; font-size: 0.875rem; line-height: 1.25rem; color: var(--ink-2); cursor: pointer; }
.consent input { width: 20px; height: 20px; flex: none; accent-color: var(--ink); margin: 0; cursor: pointer; }
.consent a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.form-foot { display: grid; gap: var(--s-200); }
.form-foot .btn { width: 100%; }
.form-note { display: flex; align-items: center; gap: var(--s-75); justify-content: center; text-align: center; font-size: 0.75rem; line-height: 1rem; color: var(--ink-3); font-family: var(--mono); }

/* Loading skeleton on submit */
.btn.loading { pointer-events: none; position: relative; overflow: hidden; }
.btn.loading .btn-label { opacity: 0; }
.btn.loading::after {
  content: ""; position: absolute; inset: 0;
  background: rgba(255, 255, 255, 0.45);
  transform: translateX(-100%);
  animation: sweep 900ms var(--ease) infinite;
}
.btn-loading-label { display: none; }
.btn.loading .btn-loading-label { position: absolute; display: inline-flex; }
@keyframes sweep { to { transform: translateX(100%); } }

.form-success { display: none; gap: var(--s-300); }
.form-card.done .form { display: none; }
.form-card.done .form-success { display: grid; animation: rise 700ms var(--ease) both; }
.success-icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: var(--r-full); background: rgba(30, 122, 70, 0.12); color: var(--ok); }
.form-success h3 { font-size: 1.5rem; line-height: 2rem; }
.form-success p { color: var(--ink-2); }
.form-success pre { white-space: pre-wrap; font-family: var(--mono); font-size: 0.75rem; line-height: 1rem; color: var(--ink-2); padding: var(--s-200); background: var(--paper-sunken); border-radius: var(--r-xl); max-height: 240px; overflow: auto; }
.form-success .actions { display: flex; flex-wrap: wrap; gap: var(--s-100); }
@keyframes rise { from { opacity: 0; transform: translateY(var(--s-300)); } to { opacity: 1; transform: none; } }

/* FAQ */
.faq-grid { display: grid; gap: var(--s-400); }
@media (min-width: 1024px) { .faq-grid { grid-template-columns: 420px minmax(0, 1fr); column-gap: var(--s-700); align-items: start; } .faq-grid .section-head { margin-bottom: 0; position: sticky; top: var(--s-900); } }
.faq-grid .section-head { align-content: start; justify-items: start; }
.faq-list { display: grid; }
.faq-list details { box-shadow: 0 -1px 0 var(--line); }
.faq-list details:last-child { box-shadow: 0 -1px 0 var(--line), 0 1px 0 var(--line); }
.faq-list summary {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-300);
  padding-block: var(--s-300);
  font-size: 1.125rem; line-height: 1.75rem; font-weight: 600;
  cursor: pointer; list-style: none;
  border-radius: var(--r-lg);
  transition: color 300ms var(--ease);
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary:hover { color: var(--accent-text); }
.faq-icon { width: 32px; height: 32px; flex: none; display: grid; place-items: center; border-radius: var(--r-full); border: 1px solid var(--line-strong); transition: transform 500ms var(--ease), background-color 300ms var(--ease), color 300ms var(--ease), border-color 300ms var(--ease); }
.faq-list details[open] .faq-icon { transform: rotate(45deg); background: var(--ink); color: var(--accent); border-color: var(--ink); }
.faq-answer { padding-bottom: var(--s-300); padding-right: var(--s-600); color: var(--ink-2); max-width: 680px; }
.faq-list details[open] .faq-answer { animation: rise 500ms var(--ease) both; }

/* Final CTA */
.final { padding: var(--s-600) var(--s-300); border-radius: var(--r-3xl); background: var(--accent); color: var(--ink); display: grid; gap: var(--s-400); position: relative; overflow: hidden; }
@media (min-width: 1024px) { .final { padding: var(--s-800) var(--s-700); grid-template-columns: minmax(0, 1fr) auto; align-items: end; } }
.final h2 { font-size: 2.25rem; line-height: 2.5rem; letter-spacing: -0.03em; max-width: 680px; position: relative; }
@media (min-width: 1024px) { .final h2 { font-size: 3rem; line-height: 1; } }
.final p { margin-top: var(--s-200); max-width: 520px; color: rgba(19, 18, 9, 0.78); position: relative; }
.final-actions { display: grid; gap: var(--s-100); justify-items: start; position: relative; }
@media (min-width: 1024px) { .final-actions { justify-items: end; } }
.final .reassure { display: inline-flex; align-items: center; gap: var(--s-75); font-size: 0.875rem; line-height: 1.25rem; }
.final-art { position: absolute; right: calc(var(--s-900) * -1); top: calc(var(--s-600) * -1); width: 520px; color: rgba(19, 18, 9, 0.12); pointer-events: none; }

/* Contacts */
.contacts { display: grid; gap: var(--s-200); }
@media (min-width: 1024px) { .contacts { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-300); } }
.contact-card { display: grid; gap: var(--s-300); align-content: start; padding: var(--s-300); background: var(--paper-raised); border: 1px solid var(--line); border-radius: var(--r-2xl); }
@media (min-width: 1024px) { .contact-card { padding: var(--s-400); } }
.contact-card h3 { font-size: 1.5rem; line-height: 2rem; }
.contact-card dl { display: grid; }
.contact-card dl div { display: grid; grid-template-columns: 112px 1fr; gap: var(--s-200); padding-block: var(--s-200); box-shadow: 0 -1px 0 var(--line); }
.contact-card dt { font-family: var(--mono); font-size: 0.75rem; line-height: 1.5rem; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.04em; }
.contact-card dd a { text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 4px; border-radius: var(--r-sm); transition: text-decoration-color 300ms var(--ease), color 300ms var(--ease); }
.contact-card dd a:hover { color: var(--accent-text); text-decoration-color: currentColor; }
.open-state { justify-self: start; display: inline-flex; align-items: center; gap: var(--s-75); font-family: var(--mono); font-size: 0.75rem; line-height: 1rem; padding: var(--s-50) var(--s-75); border-radius: var(--r-full); background: var(--paper-sunken); color: var(--ink-2); margin-top: var(--s-75); }
.open-state::before { content: ""; width: 8px; height: 8px; border-radius: var(--r-full); background: var(--ink-3); }
.open-state.is-open { background: rgba(30, 122, 70, 0.12); color: var(--ok); }
.open-state.is-open::before { background: var(--ok); }
.open-state[hidden] { display: none; }
.map-card { position: relative; border-radius: var(--r-2xl); overflow: hidden; border: 1px solid var(--line); background: #FBFAF8; min-height: 480px; isolation: isolate; }
.map-frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; opacity: 0; transition: opacity 500ms var(--ease); }
.map-card.loaded .map-frame { opacity: 1; }
.map-fallback {
  position: absolute; inset: 0;
  display: grid; place-content: center; justify-items: center; gap: var(--s-200);
  padding: var(--s-300); text-align: center;
  background-image: radial-gradient(var(--line) 1px, transparent 1px);
  background-size: 16px 16px;
}
.map-skeleton { width: 240px; height: 128px; border-radius: var(--r-xl); background: var(--paper-sunken); animation: skel 1400ms var(--ease) infinite alternate; }
.map-card.failed .map-skeleton { animation: none; opacity: 0.5; }
.map-fallback-text { font-family: var(--mono); font-size: 0.75rem; line-height: 1rem; color: var(--ink-2); max-width: 280px; }
@keyframes skel { from { opacity: 0.45; } to { opacity: 1; } }
.contact-actions { display: flex; flex-wrap: wrap; gap: var(--s-100); }

/* Footer */
.footer { background: var(--night); color: var(--night-ink); padding-top: var(--s-800); overflow: hidden; }
.footer-grid { display: grid; gap: var(--s-500); }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.4fr repeat(3, 1fr); gap: var(--s-400); } }
.footer .brand small { color: var(--night-ink-2); }
.footer p { color: var(--night-ink-2); font-size: 0.875rem; line-height: 1.25rem; margin-top: var(--s-200); max-width: 320px; }
.footer h4 { font-family: var(--mono); font-size: 0.75rem; line-height: 1rem; font-weight: 400; text-transform: uppercase; letter-spacing: 0.04em; color: var(--night-ink-2); margin-bottom: var(--s-200); }
.footer ul { list-style: none; padding: 0; display: grid; gap: var(--s-100); font-size: 0.875rem; line-height: 1.25rem; }
.footer ul a { border-radius: var(--r-sm); transition: color 300ms var(--ease); }
.footer ul a:hover { color: var(--accent); }
.footer-art { margin-top: var(--s-700); color: #3A382E; }
.footer-art svg, .footer-art img { width: 100%; height: auto; display: block; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-200); padding-block: var(--s-300); box-shadow: 0 -1px 0 var(--night-3); font-size: 0.75rem; line-height: 1rem; color: var(--night-ink-2); font-family: var(--mono); }
.footer-bottom a { border-radius: var(--r-sm); transition: color 300ms var(--ease); }
.footer-bottom a:hover { color: var(--night-ink); }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(var(--s-400)); transition: opacity 700ms var(--ease), transform 700ms var(--ease); transition-delay: var(--d, 0ms); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
.no-js .word { opacity: 1; }
/* Hero is above the fold: play the entrance on first paint instead of waiting for app.js, so LCP is not held back */
.hero .reveal { animation: rise 700ms var(--ease) var(--d, 0ms) both; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; }
  .reveal { transform: none; transition: opacity 600ms var(--ease); }
  .mobile-menu li { transform: none; }
  .btn:hover, .item:hover, .contact-list a:hover, .btn:active { transform: none; }
  .word { transition: opacity 300ms var(--ease); }
}

/* Simple pages (legal, 404) */
.page { padding-top: calc(var(--s-900) + var(--s-400)); padding-bottom: var(--s-900); min-height: 70vh; }
.page h1 { font-size: 1.875rem; line-height: 2.25rem; letter-spacing: -0.03em; max-width: 680px; background: linear-gradient(90deg, #000000, #666666); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: var(--s-50); }
@media (min-width: 480px) { .page h1 { font-size: 2.25rem; line-height: 2.5rem; } }
@media (min-width: 768px) { .page h1 { font-size: 3rem; line-height: 1; } }
.page .lede { margin-top: var(--s-300); max-width: 560px; color: var(--ink-2); font-size: 1.125rem; line-height: 1.75rem; }
.prose { max-width: 680px; margin-top: var(--s-400); display: grid; gap: var(--s-200); color: var(--ink-2); }
.prose h2 { color: var(--ink); font-size: 1.25rem; line-height: 1.75rem; margin-top: var(--s-300); }
.prose ul { padding-left: var(--s-300); display: grid; gap: var(--s-75); }
.prose a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.back { display: inline-flex; align-items: center; gap: var(--s-75); margin-bottom: var(--s-400); font-size: 0.875rem; line-height: 1.25rem; font-weight: 500; color: var(--ink-2); border-radius: var(--r-sm); transition: color 300ms var(--ease); }
.back:hover { color: var(--ink); }
.back .i { transition: transform 500ms var(--ease); }
.back:hover .i { transform: translateX(calc(var(--s-50) * -1)); }
.nf-art { margin-top: var(--s-600); max-width: 640px; border-radius: var(--r-2xl); border: 1px solid var(--line); background: #FBFAF8; overflow: hidden; }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* Blueprint drawings (inline SVG). Selectors stay flat so <use> clones pick them up. */
.dw * { vector-effect: non-scaling-stroke; }
.ln { fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.lt { fill: none; stroke: var(--ink); stroke-width: 1; vector-effect: non-scaling-stroke; }
.fl { fill: #FFFFFF; stroke: var(--ink); stroke-width: 1.5; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.fs { fill: var(--paper-sunken); stroke: var(--ink); stroke-width: 1.5; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.ac { fill: var(--accent); stroke: var(--ink); stroke-width: 1.5; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.dim { fill: none; stroke: var(--ink-3); stroke-width: 1; vector-effect: non-scaling-stroke; }
.ext { fill: none; stroke: var(--ink-3); stroke-width: 1; stroke-dasharray: 3 3; vector-effect: non-scaling-stroke; }
.tube { fill: none; stroke: var(--ink); stroke-width: 7; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.tube-in { fill: none; stroke: #FFFFFF; stroke-width: 4; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.thread { fill: none; stroke: var(--ink); stroke-width: 7; stroke-dasharray: 1.5 3.5; vector-effect: non-scaling-stroke; }
.hatch line { stroke: var(--ink-3); stroke-width: 1; }
.dw text { font-family: var(--mono); font-size: 12px; fill: var(--ink-2); }
.footer-art .dw .ln { stroke: #4A4739; stroke-width: 1.25; }
.footer-art .dw .lt { stroke: #3A382E; }
.footer-art .dw .ac { fill: var(--accent); stroke: none; }
.footer-art .dw .fl { fill: var(--night); stroke: #4A4739; stroke-width: 1.25; }
.final-art .ln, .final-art .lt, .final-art .fl { fill: none; stroke: currentColor; }
.pin-pulse { transform-box: fill-box; transform-origin: center; animation: pulse 2400ms var(--ease) infinite; }
@keyframes pulse { 0% { transform: scale(0.6); opacity: 0.6; } 100% { transform: scale(2.4); opacity: 0; } }

/* Tagline layout and strength chart */
.tagline-grid { display: grid; gap: var(--s-600); }
@media (min-width: 1024px) { .tagline-grid { grid-template-columns: minmax(0, 1fr) 380px; align-items: end; column-gap: var(--s-700); } }
.strength { display: grid; gap: var(--s-100); }
.strength .axis { fill: none; stroke: #5A5747; stroke-width: 1; vector-effect: non-scaling-stroke; }
.strength .grid { fill: none; stroke: var(--night-3); stroke-width: 1; stroke-dasharray: 3 4; vector-effect: non-scaling-stroke; }
.strength .curve { fill: none; stroke: var(--night-ink); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.strength text { font-family: var(--mono); font-size: 12px; fill: var(--night-ink-2); }
.strength text.t-accent { fill: var(--accent); }
.strength figcaption { font-family: var(--mono); font-size: 0.75rem; line-height: 1rem; color: var(--night-ink-2); }
.form-success:focus { outline: none; }
