/* ==========================================================================
   VebTechno — site stylesheet
   Palette and type are carried over from the previous site.
   ========================================================================== */

:root {
  --ink: #0e1417;
  --ink-70: #3c484f;
  --ink-50: #5e6a71;
  --ink-30: #9aa4a9;
  --paper: #f7f4ec;
  --paper-2: #efe9dc;
  --card: #fffdf8;
  --line: #ded6c6;
  --line-soft: #e9e3d6;
  --accent: #c2451c;
  --accent-ink: #8f3113;
  --accent-soft: #f6e3d9;
  --forest: #17453a;
  --forest-soft: #e4ece7;
  --white: #ffffff;

  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --wrap: 1240px;
  --gutter: clamp(20px, 5vw, 48px);
  --section: clamp(72px, 9vw, 132px);
  --radius: 18px;
  --radius-sm: 11px;
  --shadow-sm: 0 1px 2px rgba(14, 20, 23, 0.05), 0 8px 22px rgba(14, 20, 23, 0.045);
  --shadow-md: 0 2px 8px rgba(14, 20, 23, 0.06), 0 24px 60px rgba(14, 20, 23, 0.11);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

body.nav-open { overflow: hidden; }

img, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }

a { color: inherit; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

::selection { background: var(--accent); color: var(--white); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 3px;
}

.skip {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 200;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-weight: 600;
  text-decoration: none;
  transition: top 0.2s ease;
}
.skip:focus { top: 16px; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.wrap--narrow { max-width: 900px; }
.wrap--prose { max-width: 760px; }

.section { padding-block: var(--section); }
.section--tight { padding-block: clamp(44px, 6vw, 84px); }
.section--paper2 { background: var(--paper-2); }
.section--ink { background: var(--ink); color: var(--paper); }
.section--forest { background: var(--forest); color: var(--paper); }
.section--flush-top { padding-top: 0; }

.section--ink .lede,
.section--forest .lede { color: #cfd6d3; }
.section--ink .eyebrow,
.section--forest .eyebrow { color: #efb79f; }
.section--ink .eyebrow::before,
.section--forest .eyebrow::before { background: currentColor; }

/* --------------------------------------------------------------- type ---- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 18px;
  color: var(--accent-ink);
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  line-height: 1;
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
  opacity: 0.65;
  flex: none;
}

.display {
  margin: 0 0 0.28em;
  font-family: var(--serif);
  font-size: clamp(3rem, 1.2rem + 5.4vw, 5.7rem);
  font-weight: 500;
  font-variation-settings: "opsz" 144;
  letter-spacing: -0.038em;
  line-height: 0.97;
  text-wrap: balance;
}
.display em {
  font-style: italic;
  color: var(--accent);
  font-variation-settings: "opsz" 144;
}

h1, h2, h3, h4 {
  margin: 0 0 0.5em;
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.08;
  text-wrap: balance;
}
h1 { font-size: clamp(2.5rem, 1.4rem + 3.4vw, 4.2rem); }
h2 { font-size: clamp(2rem, 1.25rem + 2.5vw, 3.4rem); }
h3 { font-size: clamp(1.25rem, 1.05rem + 0.6vw, 1.65rem); letter-spacing: -0.015em; }
h4 { font-size: 1.05rem; letter-spacing: -0.01em; }

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 28px 64px;
  align-items: end;
  margin-bottom: clamp(36px, 5vw, 64px);
}
.section-head h2 { margin-bottom: 0; }
.section-head .lede { margin-bottom: 4px; }

.lede {
  max-width: 62ch;
  margin: 0 0 1.4em;
  color: var(--ink-70);
  font-size: clamp(1.06rem, 1rem + 0.28vw, 1.24rem);
  line-height: 1.62;
}

.small { font-size: 0.88rem; line-height: 1.55; color: var(--ink-50); }
.muted { color: var(--ink-50); }
.accent { color: var(--accent-ink); }
.mt-2 { margin-top: 1.2rem !important; }
.mt-3 { margin-top: 2rem !important; }
.mt-4 { margin-top: 3rem !important; }

.rule {
  height: 1px;
  margin: 0;
  border: 0;
  background: var(--line);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--accent-ink);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
}
.link-arrow span { transition: transform 0.25s var(--ease); }
.link-arrow:hover span { transform: translateX(4px); }

/* ------------------------------------------------------------ buttons ---- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 13px 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 0.94rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn svg { flex: none; transition: transform 0.25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }

.btn--accent { background: var(--accent); color: var(--white); }
.btn--accent:hover { background: var(--accent-ink); }

.btn--ink:hover { background: #243036; }

.btn--ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}
.btn--ghost:hover { border-color: var(--ink); background: transparent; }

.btn--light { background: var(--paper); color: var(--ink); }
.btn--light:hover { background: var(--white); }

.btn--sm { min-height: 40px; padding: 10px 18px; font-size: 0.86rem; }
.btn--block { width: 100%; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

/* ------------------------------------------------------------- header ---- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 70;
  border-bottom: 1px solid transparent;
  background: rgba(247, 244, 236, 0.86);
  backdrop-filter: blur(14px) saturate(1.1);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
  transition: border-color 0.25s ease, background 0.25s ease;
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(247, 244, 236, 0.94);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 78px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex: none;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.24rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-decoration: none;
}
.brand img { width: 30px; height: 30px; }

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-inline: auto;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 12px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--ink-70);
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.18s ease, background 0.18s ease;
}
.nav-link:hover,
.nav-link[aria-current="page"] { color: var(--ink); background: rgba(14, 20, 23, 0.045); }
.nav-link[aria-current="page"] { font-weight: 600; }

.nav-link__chev { transition: transform 0.22s var(--ease); }
.has-menu.is-open .nav-link__chev { transform: rotate(180deg); }

.nav-item { position: relative; }
.has-menu { display: flex; }

.menu {
  position: absolute;
  top: calc(100% + 10px);
  left: -8px;
  width: min(560px, calc(100vw - 64px));
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
  box-shadow: var(--shadow-md);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.22s var(--ease), visibility 0.2s;
}
.has-menu:hover .menu,
.has-menu:focus-within .menu,
.has-menu.is-open .menu {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.menu a {
  display: grid;
  gap: 2px;
  padding: 12px 13px;
  border-radius: 10px;
  color: var(--ink);
  text-decoration: none;
  transition: background 0.16s ease;
}
.menu a:hover { background: var(--paper); }
.menu strong { font-size: 0.9rem; font-weight: 600; line-height: 1.3; }
.menu span { color: var(--ink-50); font-size: 0.78rem; line-height: 1.4; }
.menu a.menu-all {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
  padding: 12px 13px;
  border-top: 1px solid var(--line-soft);
  border-radius: 0 0 10px 10px;
  color: var(--accent-ink);
  font-size: 0.85rem;
  font-weight: 600;
}

.header-actions { display: flex; align-items: center; gap: 10px; flex: none; }

.nav-toggle {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  position: absolute;
  left: 50%;
  width: 18px;
  height: 1.5px;
  background: var(--ink);
  transform: translateX(-50%);
  transition: transform 0.25s var(--ease), opacity 0.2s ease;
  content: "";
}
.nav-toggle span { top: 50%; margin-top: -0.75px; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
body.nav-open .nav-toggle span { background: transparent; }
body.nav-open .nav-toggle span::before { transform: translateX(-50%) translateY(6px) rotate(45deg); }
body.nav-open .nav-toggle span::after { transform: translateX(-50%) translateY(-6px) rotate(-45deg); }

.nav-cta { display: none; }

/* --------------------------------------------------------------- hero ---- */

.hero {
  position: relative;
  overflow: clip;
  padding-top: clamp(40px, 6vw, 80px);
  padding-bottom: clamp(36px, 5vw, 70px);
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: clamp(24px, 4vw, 58px);
  align-items: center;
  min-height: min(74vh, 700px);
}

.hero__copy { position: relative; z-index: 2; }
.hero__copy .display { max-width: 12ch; }
.hero__copy .lede { max-width: 50ch; }
.hero__copy .proof { max-width: 440px; }

.hero__stage {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  max-height: 660px;
  z-index: 1;
}
.hero__stage::before {
  content: "";
  position: absolute;
  inset: 8% 4% 10% 8%;
  border: 1px solid var(--line-soft);
  border-radius: 50%;
  opacity: 0.8;
}
.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  cursor: grab;
}
.hero__canvas:active { cursor: grabbing; }

.hero__caption {
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: 2%;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--ink-50);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.hero__caption span:last-child { text-align: right; }

.grain {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

.proof {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
}
.proof li {
  position: relative;
  padding-left: 15px;
  color: var(--ink-70);
  font-size: 0.82rem;
  font-weight: 500;
}
.proof li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}
.section--ink .proof li,
.section--forest .proof li { color: #cfd6d3; }

/* ------------------------------------------------------ 3D fallback ---- */

.scene-fallback {
  position: absolute;
  inset: 0;
  display: none;
  place-items: center;
  perspective: 1000px;
}
.no-3d .scene-fallback { display: grid; }
.no-3d .hero__canvas { display: none; }

.scene-fallback__stack {
  position: relative;
  width: min(66%, 360px);
  aspect-ratio: 1 / 1;
  transform-style: preserve-3d;
  transform: rotateX(52deg) rotateZ(-34deg);
}
.scene-fallback__layer {
  position: absolute;
  inset: 12%;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
  box-shadow: 0 22px 40px rgba(14, 20, 23, 0.13);
}
.scene-fallback__layer:nth-child(1) { transform: translateZ(0); background: var(--forest-soft); }
.scene-fallback__layer:nth-child(2) { transform: translateZ(46px); background: var(--ink); border-color: #243036; }
.scene-fallback__layer:nth-child(3) { transform: translateZ(92px); }

/* ------------------------------------------------------------ marquee ---- */

.marquee {
  position: relative;
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: var(--paper);
  padding-block: 18px;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee 38s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__group {
  display: flex;
  align-items: center;
  gap: 34px;
  padding-right: 34px;
  color: var(--ink-50);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}
.marquee__group i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.7;
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* -------------------------------------------------------------- grids ---- */

.grid { display: grid; gap: 20px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* ------------------------------------------------------------ practice ---- */

.practice {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: clamp(24px, 3vw, 34px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  overflow: hidden;
  transition: border-color 0.25s ease, transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.practice::after {
  content: "";
  position: absolute;
  right: -40px;
  top: -40px;
  width: 120px;
  height: 120px;
  border: 1px solid var(--line-soft);
  border-radius: 50%;
  transition: transform 0.5s var(--ease), border-color 0.3s ease;
}
.practice:hover {
  border-color: var(--ink);
  transform: translateY(-4px);
  box-shadow: var(--shadow-sm);
}
.practice:hover::after { transform: scale(1.25); border-color: var(--accent); }

.practice__num {
  display: block;
  margin-bottom: 28px;
  color: var(--accent-ink);
  font-family: var(--serif);
  font-size: 0.9rem;
  font-style: italic;
}
.practice h3 { margin-bottom: 10px; font-size: clamp(1.35rem, 1.1rem + 0.8vw, 1.8rem); }
.practice > p { color: var(--ink-70); font-size: 0.95rem; line-height: 1.6; }
.practice ul {
  display: grid;
  gap: 9px;
  margin: 4px 0 26px;
  padding: 0;
  list-style: none;
}
.practice li {
  position: relative;
  padding-left: 18px;
  color: var(--ink-70);
  font-size: 0.88rem;
  line-height: 1.45;
}
.practice li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.58em;
  width: 6px;
  height: 1px;
  background: var(--accent);
}
.practice .link-arrow { margin-top: auto; }

/* ---------------------------------------------------------------- card ---- */

.card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: clamp(22px, 2.6vw, 30px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
}
.card h3 { font-size: 1.28rem; margin-bottom: 8px; }
.card p { color: var(--ink-70); font-size: 0.94rem; line-height: 1.58; }
.card__num {
  display: block;
  margin-bottom: 16px;
  color: var(--accent-ink);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.card__list {
  display: grid;
  gap: 8px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}
.card__list li {
  position: relative;
  padding-left: 17px;
  color: var(--ink-70);
  font-size: 0.88rem;
  line-height: 1.48;
}
.card__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 6px;
  height: 1px;
  background: var(--accent);
}
.card--link {
  color: inherit;
  text-decoration: none;
  transition: border-color 0.22s ease, transform 0.3s var(--ease);
}
.card--link:hover { border-color: var(--accent); transform: translateY(-3px); }
.card--link .link-arrow { margin-top: auto; padding-top: 20px; }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 11px;
  border-radius: 999px;
  background: var(--forest-soft);
  color: var(--forest);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}
.tag::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}
.tag--sample { background: var(--accent-soft); color: var(--accent-ink); }
.tag--light { background: rgba(247, 244, 236, 0.1); color: var(--paper); }

/* ---------------------------------------------------------------- work ---- */

.work-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.work-grid--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.work-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--card);
  color: inherit;
  text-decoration: none;
  transform-style: preserve-3d;
  transition: border-color 0.25s ease, box-shadow 0.3s var(--ease), transform 0.2s var(--ease);
}
.work-card:hover {
  border-color: var(--ink);
  box-shadow: var(--shadow-md);
}
.work-card__media {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  padding: 6%;
  border-radius: 12px;
  background:
    linear-gradient(150deg, rgba(255, 253, 248, 0.9), rgba(239, 233, 220, 0.6)),
    var(--paper-2);
  overflow: hidden;
}
.work-card__media::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 34px 34px;
  opacity: 0.45;
  mask-image: linear-gradient(160deg, #000, transparent 72%);
  -webkit-mask-image: linear-gradient(160deg, #000, transparent 72%);
}
.work-card__media img {
  position: relative;
  width: 100%;
  max-width: 520px;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 18px 38px rgba(14, 20, 23, 0.14);
  transform: translateZ(34px);
  transition: transform 0.45s var(--ease);
}
.work-card:hover .work-card__media img { transform: translateZ(40px) scale(1.018); }
.work-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 20px 12px 12px;
}
.work-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  color: var(--ink-50);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.work-card h3 {
  margin-bottom: 8px;
  font-size: clamp(1.22rem, 1.05rem + 0.55vw, 1.55rem);
  line-height: 1.14;
}
.work-card p { color: var(--ink-70); font-size: 0.9rem; line-height: 1.55; }
.work-card .link-arrow { margin-top: auto; padding-top: 18px; }

/* ----------------------------------------------------------- dark band ---- */

.standard-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin-top: clamp(30px, 4vw, 54px);
  border-top: 1px solid rgba(247, 244, 236, 0.18);
}
.standard {
  padding: 26px 26px 4px 0;
  border-right: 1px solid rgba(247, 244, 236, 0.13);
}
.standard:last-child { border-right: 0; padding-right: 0; }
.standard:not(:first-child) { padding-left: 26px; }
.standard h3 { color: var(--paper); font-size: 1.12rem; margin-bottom: 8px; }
.standard p { color: #b9c3c4; font-size: 0.88rem; line-height: 1.55; }
.standard__k {
  display: block;
  margin-bottom: 30px;
  color: #efb79f;
  font-family: var(--serif);
  font-size: 0.86rem;
  font-style: italic;
}

.statement {
  max-width: 19ch;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2.2rem, 1.2rem + 3.6vw, 4.4rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.02;
}
.statement em { color: #efb79f; font-style: italic; }

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(32px, 6vw, 90px);
  align-items: center;
}

/* ------------------------------------------------------------- process ---- */

.process-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(34px, 6vw, 90px);
  align-items: center;
}

.steps { display: grid; }
.step {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 18px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
}
.step:last-child { border-bottom: 1px solid var(--line); }
.step__n {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-top: 2px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--accent-ink);
  font-family: var(--serif);
  font-size: 0.78rem;
  font-style: italic;
}
.step h3 { margin-bottom: 5px; font-size: 1.2rem; }
.step p { margin: 0; color: var(--ink-70); font-size: 0.92rem; line-height: 1.56; }
.section--ink .step,
.section--forest .step { border-color: rgba(247, 244, 236, 0.16); }
.section--ink .step__n,
.section--forest .step__n { border-color: rgba(247, 244, 236, 0.28); color: #efb79f; }
.section--ink .step p,
.section--forest .step p { color: #b9c3c4; }

/* --------------------------------------------------------- 3D layer stack ---- */

.stack-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 520px;
  perspective: 1100px;
}
.stack {
  position: relative;
  width: min(88%, 450px);
  aspect-ratio: 1 / 1;
  transform-style: preserve-3d;
  transform: rotateX(56deg) rotateZ(-36deg);
  transition: transform 0.6s var(--ease);
}
.stack-stage:hover .stack { transform: rotateX(50deg) rotateZ(-28deg) translateZ(10px); }

.stack__layer {
  position: absolute;
  inset: 8%;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
  box-shadow: 0 26px 46px rgba(14, 20, 23, 0.14);
  transform: translateZ(var(--z));
  transform-style: preserve-3d;
  overflow: hidden;
}
.stack__layer::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.55;
}
.stack__layer--data { background: var(--forest-soft); --z: 0px; }
.stack__layer--app { background: var(--ink); border-color: #243036; --z: 82px; }
.stack__layer--app::before { opacity: 0.16; }
.stack__layer--ui { background: var(--card); --z: 164px; }

.stack__bar {
  position: absolute;
  left: 12%;
  right: 12%;
  height: 8px;
  border-radius: 999px;
  background: var(--line);
}
.stack__bar--accent { background: var(--accent); width: 34%; right: auto; }
.stack__bar--forest { background: var(--forest); }
.stack__chip {
  position: absolute;
  right: 12%;
  top: 13%;
  width: 26%;
  height: 15%;
  border-radius: 7px;
  background: var(--paper-2);
  border: 1px solid var(--line);
}
.stack__dots { position: absolute; left: 12%; top: 12%; display: flex; gap: 6px; }
.stack__dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--line); display: block; }
.stack__label {
  position: absolute;
  left: 50%;
  bottom: -8px;
  transform: translateX(-50%) translateZ(1px);
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--ink-70);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}
.stack__layer--app .stack__label { background: var(--ink); color: var(--paper); border-color: #3c484f; }

.stack-legend {
  position: absolute;
  right: 0;
  bottom: 0;
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.stack-legend li {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-50);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.stack-legend i { width: 18px; height: 1px; background: var(--accent); }

/* ---------------------------------------------------------- engagement ---- */

.price {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: clamp(24px, 3vw, 32px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
}
.price--feature {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}
.price--feature p,
.price--feature .price__meta,
.price--feature li { color: #b9c3c4; }
.price--feature .tag { background: rgba(247, 244, 236, 0.1); color: var(--paper); }
.price--feature .card__list li::before { background: #efb79f; }
.price__amount {
  margin: 22px 0 6px;
  font-family: var(--serif);
  font-size: clamp(1.7rem, 1.4rem + 1vw, 2.15rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.price__meta { color: var(--ink-50); font-size: 0.86rem; line-height: 1.5; margin-bottom: 18px; }
.price .card__list { margin-bottom: 26px; }
.price .btn { margin-top: auto; }

/* ----------------------------------------------------------------- faq ---- */

.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  position: relative;
  padding: 22px 44px 22px 0;
  list-style: none;
  cursor: pointer;
  font-family: var(--serif);
  font-size: clamp(1.08rem, 1rem + 0.3vw, 1.25rem);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.3;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after,
.faq summary::before {
  content: "";
  position: absolute;
  right: 6px;
  top: 50%;
  width: 14px;
  height: 1.5px;
  margin-top: -0.75px;
  background: var(--accent-ink);
  transition: transform 0.25s var(--ease);
}
.faq summary::before { transform: rotate(90deg); }
.faq details[open] summary::before { transform: rotate(0); }
.faq__body {
  max-width: 72ch;
  padding: 0 44px 24px 0;
  color: var(--ink-70);
  font-size: 0.94rem;
  line-height: 1.65;
}
.section--ink .faq { border-color: rgba(247, 244, 236, 0.18); }
.section--ink .faq details { border-color: rgba(247, 244, 236, 0.18); }
.section--ink .faq summary { color: var(--paper); }
.section--ink .faq summary::after,
.section--ink .faq summary::before { background: #efb79f; }
.section--ink .faq__body { color: #b9c3c4; }

/* ------------------------------------------------------------ cta band ---- */

.cta-band {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) auto;
  gap: 30px;
  align-items: center;
  padding: clamp(30px, 4.4vw, 54px);
  border-radius: 22px;
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute;
  right: -90px;
  top: -120px;
  width: 340px;
  height: 340px;
  border: 1px solid rgba(247, 244, 236, 0.14);
  border-radius: 50%;
}
.cta-band::after {
  content: "";
  position: absolute;
  right: 20px;
  bottom: -180px;
  width: 300px;
  height: 300px;
  border: 1px solid rgba(194, 69, 28, 0.4);
  border-radius: 50%;
}
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { color: var(--paper); font-size: clamp(1.8rem, 1.3rem + 1.8vw, 2.7rem); margin-bottom: 8px; }
.cta-band p { color: #b9c3c4; max-width: 52ch; margin: 0; }
.cta-band .btn { white-space: nowrap; }
.section--ink .cta-band { background: var(--forest); }

/* ------------------------------------------------------------- footer ---- */

.site-footer {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: var(--paper);
  padding-top: clamp(52px, 7vw, 84px);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 32px;
  padding-bottom: 52px;
}
.footer-brand .brand { color: var(--paper); margin-bottom: 16px; }
.footer-brand p { max-width: 34ch; color: #9fb0b6; font-size: 0.88rem; line-height: 1.6; }
.footer-brand .footer-note {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(247, 244, 236, 0.14);
  color: #7f8f95;
  font-size: 0.74rem;
  line-height: 1.55;
  max-width: 40ch;
}
.footer-col h4 {
  margin: 0 0 16px;
  color: #7f8f95;
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.footer-col ul { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.footer-col a {
  color: #d4dbd9;
  font-size: 0.88rem;
  text-decoration: none;
  transition: color 0.16s ease;
}
.footer-col a:hover { color: var(--paper); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  padding-block: 22px;
  border-top: 1px solid rgba(247, 244, 236, 0.14);
  color: #7f8f95;
  font-size: 0.78rem;
}
.footer-bottom a { color: inherit; text-decoration: none; }
.footer-bottom a:hover { color: var(--paper); }
.footer-wordmark {
  margin: 10px 0 -0.18em;
  color: rgba(247, 244, 236, 0.055);
  font-family: var(--serif);
  font-size: clamp(4.4rem, 15vw, 13rem);
  font-weight: 600;
  letter-spacing: -0.05em;
  line-height: 0.74;
  text-align: center;
  user-select: none;
  pointer-events: none;
}

/* -------------------------------------------------------------- forms ---- */

.form { display: grid; gap: 18px; }
.field { display: grid; gap: 7px; }
.field--row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label {
  color: var(--ink-70);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card);
  color: var(--ink);
  font: 400 0.95rem/1.45 var(--sans);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(194, 69, 28, 0.12);
}
.consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--ink-70);
  font-size: 0.82rem;
  line-height: 1.5;
}
.consent input { margin-top: 3px; flex: none; }
.consent a { color: var(--accent-ink); }
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form__note { color: var(--ink-50); font-size: 0.8rem; line-height: 1.5; }
.form__note[hidden] { display: none; }

/* ------------------------------------------------------------- article ---- */

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin: 0 0 18px;
  color: var(--ink-50);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.article-meta a { color: var(--accent-ink); text-decoration: none; }

.page-hero { padding-top: clamp(50px, 7vw, 92px); padding-bottom: clamp(36px, 5vw, 64px); }
.page-hero .lede { max-width: 58ch; }

.prose { max-width: 74ch; font-size: 1.02rem; line-height: 1.72; }
.prose h2 {
  margin: 2.6em 0 0.7em;
  padding-top: 1.1em;
  border-top: 1px solid var(--line);
  font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
}
.prose h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.prose h3 { margin: 2em 0 0.6em; font-size: 1.24rem; }
.prose ul,
.prose ol { margin: 0 0 1.4em; padding-left: 1.25em; }
.prose li { margin-bottom: 0.55em; }
.prose li::marker { color: var(--accent); }
.prose a { color: var(--accent-ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose strong { font-weight: 600; color: var(--ink); }

/* ---------------------------------------------------------- work detail ---- */

.work-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(32px, 5vw, 70px);
  align-items: center;
  padding-top: clamp(34px, 4vw, 56px);
}
.work-hero__media {
  display: grid;
  place-items: center;
  padding: 7%;
  border: 1px solid var(--line);
  border-radius: 20px;
  background:
    linear-gradient(150deg, rgba(255, 253, 248, 0.9), rgba(239, 233, 220, 0.55)),
    var(--paper-2);
}
.work-hero__media img { width: 100%; height: auto; border-radius: 8px; box-shadow: var(--shadow-md); }
.work-hero h1 { max-width: 16ch; }

.sample-note {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 22px 0 0;
  padding: 14px 16px;
  border: 1px solid #e9c9b9;
  border-radius: 12px;
  background: #fbf0e9;
  color: #6e3520;
  font-size: 0.82rem;
  line-height: 1.55;
}
.sample-note svg { flex: none; margin-top: 2px; }

.facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 26px;
  margin: 28px 0 0;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.facts dt {
  margin: 0;
  color: var(--ink-50);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.facts dd { margin: 5px 0 0; color: var(--ink); font-size: 0.92rem; line-height: 1.45; }

.flow {
  display: grid;
  gap: 9px;
  margin: 1.2em 0;
  padding: 0;
  list-style: none;
  counter-reset: flow;
}
.flow li {
  position: relative;
  padding: 13px 15px 13px 48px;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  background: var(--card);
  font-size: 0.94rem;
  line-height: 1.5;
}
.flow li::before {
  counter-increment: flow;
  content: counter(flow);
  position: absolute;
  left: 14px;
  top: 13px;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  font-size: 0.68rem;
  font-weight: 600;
}

.spec { display: grid; gap: 14px; margin: 1.2em 0; }
.spec dt { color: var(--ink); font-weight: 600; font-size: 0.88rem; }
.spec dd { margin: 0; color: var(--ink-70); font-size: 0.94rem; line-height: 1.6; }

.pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 1.2em 0; padding: 0; list-style: none; }
.pills li {
  padding: 6px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  color: var(--ink-70);
  font-size: 0.74rem;
  font-weight: 500;
}

.demo-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 2em 0; }
.demo {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
}
.demo h4 { margin: 0 0 6px; font-family: var(--sans); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.04em; color: var(--ink-50); text-transform: uppercase; }
.demo p { margin: 0; font-size: 0.9rem; line-height: 1.5; color: var(--ink-70); }

/* -------------------------------------------------------------- chips ---- */

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0 0; }
.chip {
  padding: 8px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--ink-70);
  font: 600 0.8rem/1 var(--sans);
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.is-active { background: var(--ink); border-color: var(--ink); color: var(--paper); }

.is-filtered { display: none !important; }

/* -------------------------------------------------------------- kpi ---- */

.kpi { border: 1px solid var(--line); border-radius: 14px; background: var(--card); overflow: hidden; }
.kpi__row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 13px 18px;
  border-bottom: 1px solid var(--line-soft);
  font-size: 0.88rem;
}
.kpi__row:last-child { border-bottom: 0; }
.kpi__label { color: var(--ink-50); }
.kpi__value { color: var(--ink); font-weight: 600; text-align: right; }
.kpi__value--good { color: var(--forest); }

.checklist { display: grid; gap: 10px; margin: 1.2em 0; padding: 0; list-style: none; }
.checklist li { display: flex; gap: 10px; align-items: flex-start; color: var(--ink-70); font-size: 0.94rem; line-height: 1.5; }
.checklist svg { flex: none; margin-top: 3px; color: var(--forest); }

/* -------------------------------------------------------- cookie consent ---- */

.vt-consent {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 90;
  max-width: 720px;
  margin: 0 auto;
  padding: 18px 20px;
  border: 1px solid #2b363b;
  border-radius: 14px;
  background: var(--ink);
  color: var(--paper);
  box-shadow: 0 18px 44px rgba(14, 20, 23, 0.28);
  font: 15px/1.55 var(--sans);
}
.vt-consent[hidden] { display: none; }
.vt-consent p { margin: 0 0 14px; max-width: 62ch; color: #d5dbdd; font-size: 0.88rem; }
.vt-consent a { color: var(--paper); text-decoration: underline; text-underline-offset: 2px; }
.vt-consent__row { display: flex; flex-wrap: wrap; gap: 10px; }
.vt-consent button {
  padding: 9px 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: 600 0.85rem/1 var(--sans);
  cursor: pointer;
}
.vt-consent__yes { background: var(--accent); color: var(--white); }
.vt-consent__no { background: transparent; color: var(--paper); border-color: #3c484f; }

/* -------------------------------------------------------------- reveal ---- */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
}
.reveal.is-in { opacity: 1; transform: none; }
.reveal--d1 { transition-delay: 0.08s; }
.reveal--d2 { transition-delay: 0.16s; }
.reveal--d3 { transition-delay: 0.24s; }

/* ------------------------------------------------------------ responsive ---- */

@media (max-width: 1160px) {
  .site-header {
    z-index: 80;
    background: var(--paper);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .nav {
    position: fixed;
    inset: 0;
    z-index: 75;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 104px var(--gutter) 36px;
    background: var(--paper);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.25s ease, transform 0.3s var(--ease), visibility 0.25s;
    overflow-y: auto;
  }
  body.nav-open .nav { opacity: 1; visibility: visible; transform: none; }

  .nav-item { display: block; }
  .nav-link {
    display: flex;
    justify-content: space-between;
    width: 100%;
    padding: 17px 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    font-family: var(--serif);
    font-size: 1.5rem;
    font-weight: 500;
    letter-spacing: -0.02em;
  }
  .nav-link:hover,
  .nav-link[aria-current="page"] { background: transparent; color: var(--accent-ink); }

  .menu {
    position: static;
    width: 100%;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    display: none;
    grid-template-columns: 1fr;
    gap: 0;
  }
  .has-menu.is-open .menu { display: grid; opacity: 1; visibility: visible; transform: none; }
  .has-menu:hover .menu { opacity: 0; visibility: hidden; }
  .has-menu.is-open:hover .menu { opacity: 1; visibility: visible; }
  .menu a { padding: 13px 4px; border-bottom: 1px solid var(--line-soft); border-radius: 0; }
  .menu a.menu-all { border-top: 0; margin-top: 0; padding: 14px 4px; }

  .nav-cta {
    display: inline-flex;
    margin-top: 26px;
    align-self: flex-start;
  }
  .nav-toggle { display: block; }
  .header-actions .btn { display: none; }
  .brand, .header-actions { position: relative; z-index: 76; }

  .hero__grid { grid-template-columns: 1fr; gap: 8px; min-height: 0; }
  .hero__copy .display { max-width: 15ch; }
  .hero__stage { aspect-ratio: 4 / 3; max-height: 520px; margin-top: 18px; }
  .hero__caption { bottom: 0; }

  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .standard-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .standard:nth-child(2) { border-right: 0; }
  .standard:nth-child(3),
  .standard:nth-child(4) { border-top: 1px solid rgba(247, 244, 236, 0.13); }
  .standard:nth-child(3) { padding-left: 0; }

  .process-grid { grid-template-columns: 1fr; }
  .stack-stage { min-height: 420px; order: -1; }
  .stack { width: min(62%, 340px); }

  .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  .section-head { grid-template-columns: 1fr; gap: 10px; }
  .split { grid-template-columns: 1fr; }
  .cta-band { grid-template-columns: 1fr; }
  .cta-band .btn { justify-self: start; }
  .work-hero { grid-template-columns: 1fr; }
  .work-hero__media { order: 2; }
  .facts { grid-template-columns: 1fr 1fr; }
  .demo-grid { grid-template-columns: 1fr; }
  .grid--3 { grid-template-columns: 1fr; }
  .work-grid { grid-template-columns: 1fr; }
  .field--row { grid-template-columns: 1fr; }
  .statement { max-width: 22ch; }
  .footer-wordmark { text-align: left; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .display { font-size: clamp(2.7rem, 2rem + 4vw, 3.6rem); }
  .hero { padding-top: 26px; }
  .hero__stage { aspect-ratio: 1 / 1; }
  .hero__caption { display: none; }
  .proof { gap: 8px 16px; }
  .standard-grid { grid-template-columns: 1fr; }
  .standard { padding: 22px 0 !important; border-right: 0; border-top: 1px solid rgba(247, 244, 236, 0.13); }
  .standard:first-child { border-top: 0; }
  .standard__k { margin-bottom: 14px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; }
  .grid--2 { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr; }
  .stack-stage { min-height: 340px; }
  .stack { width: min(74%, 300px); }
  .stack-legend { display: none; }
  .cta-band { padding: 26px 22px; border-radius: 18px; }
  .article-meta { font-size: 0.7rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .marquee__track { animation: none; }
  .work-card, .work-card__media img, .practice, .btn { transition: none !important; }
}

@media print {
  .site-header, .site-footer, .vt-consent, .vt-bot, .vt-bot__launcher, .hero__stage { display: none !important; }
  body { background: #fff; color: #000; }
}

/* ------------------------------------------------------------ additions ---- */

[id] { scroll-margin-top: 104px; }

.subnav {
  position: sticky;
  top: 78px;
  z-index: 40;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 0;
  background: rgba(247, 244, 236, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.subnav a {
  padding: 7px 13px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--ink-50);
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}
.subnav a:hover { color: var(--ink); border-color: var(--line); }
.subnav a.is-current { color: var(--paper); background: var(--ink); border-color: var(--ink); }

.service-row {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(26px, 5vw, 76px);
  padding: clamp(34px, 4.5vw, 58px) 0;
  border-top: 1px solid var(--line);
}
.service-row:last-of-type { border-bottom: 1px solid var(--line); }
.service-row__intro .card__num { margin-bottom: 14px; }
.service-row__intro h2 { font-size: clamp(1.7rem, 1.35rem + 1.3vw, 2.5rem); margin-bottom: 0; }
.service-row__body > p { color: var(--ink-70); font-size: 1rem; line-height: 1.65; max-width: 58ch; }
.service-row__body .card__list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px 22px;
  margin: 20px 0 18px;
}
.service-row__good {
  margin: 0 0 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
  color: var(--ink-50);
  font-size: 0.82rem;
  line-height: 1.5;
}
.service-row__good strong { color: var(--ink); font-weight: 600; }

.value-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.value {
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
}
.value h3 { font-size: 1.12rem; margin-bottom: 6px; }
.value p { margin: 0; color: var(--ink-70); font-size: 0.9rem; line-height: 1.55; }

.note-list {
  display: grid;
  gap: 12px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}
.note-list li {
  position: relative;
  padding-left: 20px;
  color: var(--ink-70);
  font-size: 0.94rem;
  line-height: 1.55;
}
.note-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 7px;
  height: 7px;
  border: 1px solid var(--accent);
  border-radius: 50%;
}

.side-card {
  position: sticky;
  top: 108px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
}
.side-card h3 { font-size: 1.1rem; }
.side-card p { color: var(--ink-70); font-size: 0.9rem; line-height: 1.55; }

@media (max-width: 860px) {
  .service-row { grid-template-columns: 1fr; gap: 16px; }
  .service-row__body .card__list { grid-template-columns: 1fr; }
  .value-grid { grid-template-columns: 1fr; }
  .side-card { position: static; }
  .subnav { top: 78px; }
}

body.nav-open .vt-bot__launcher,
body.nav-open .vt-bot,
body.nav-open .vt-consent { display: none !important; }

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 286px;
  gap: clamp(36px, 5vw, 72px);
  align-items: start;
}
.article-layout .prose { max-width: none; }
.article-aside { position: sticky; top: 108px; }
.article-aside h4 {
  margin: 0 0 12px;
  color: var(--ink-50);
  font-family: var(--sans);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.toc { display: grid; gap: 2px; }
.toc a {
  display: block;
  padding: 5px 0 5px 12px;
  border-left: 1px solid var(--line);
  color: var(--ink-70);
  font-size: 0.82rem;
  line-height: 1.35;
  text-decoration: none;
  transition: color 0.16s ease, border-color 0.16s ease;
}
.toc a:hover { color: var(--accent-ink); border-color: var(--accent); }
@media (max-width: 980px) {
  .article-layout { grid-template-columns: 1fr; gap: 28px; }
  .article-aside { position: static; order: -1; }
  .article-aside .side-card { padding: 16px 18px; }
  .article-aside .side-card .toc { display: none; }
  .article-aside .side-card h4,
  .article-aside .side-card .rule { display: none; }
  .article-aside .side-card p { margin-bottom: 10px; }
}

.stack-list { border-top: 1px solid var(--line); }
.stack-row {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.stack-row h3 {
  margin: 9px 0 0;
  color: var(--ink-50);
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.stack-row .pills { margin: 0; }
.stack-row .pills li { background: var(--card); }
@media (max-width: 700px) {
  .stack-row { grid-template-columns: 1fr; gap: 6px; padding: 18px 0; }
  .stack-row h3 { margin-top: 0; }
}
