@font-face {
  font-family: 'Archivo';
  src: url('/assets/fonts/archivo-var-latin.woff2') format('woff2');
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}
@font-face {
  font-family: 'JetBrains Mono';
  src: url('/assets/fonts/jetbrains-mono-var-latin.woff2') format('woff2');
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --ink: #0f100d;
  --ink-2: #181914;
  --ink-3: #23241d;
  --paper: #f3f0e8;
  --paper-2: #e9e5da;
  --white: #fcfbf7;
  --text: #0f100d;
  --muted: #5a594f;
  --muted-ink: #a6a497;
  --line: rgba(15, 16, 13, 0.14);
  --line-strong: rgba(15, 16, 13, 0.85);
  --line-ink: rgba(243, 240, 232, 0.13);
  --bright: #ffc933;
  --bright-hover: #ffd766;
  --ok: #4fd68a;
  --danger: #ff917f;

  --font: 'Archivo', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
  --max: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --header: 68px;
  --radius: 12px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header) + 16px);
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

[hidden] {
  display: none !important;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 760;
  font-stretch: 110%;
  letter-spacing: -0.028em;
  line-height: 1.02;
  text-wrap: balance;
}

p {
  margin: 0;
  text-wrap: pretty;
}

::selection {
  background: var(--bright);
  color: var(--ink);
}

:focus-visible {
  outline: 2px solid var(--bright);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  width: 100%;
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--bright);
  color: var(--ink);
  font-weight: 650;
  border-radius: 8px;
}
.skip:focus {
  top: 12px;
}

.i {
  width: 1.15em;
  height: 1.15em;
  flex: none;
}

.mono-label {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 10px;
  font: inherit;
  font-size: 1rem;
  font-weight: 650;
  font-stretch: 104%;
  letter-spacing: -0.005em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s, transform 0.2s var(--ease);
}
.btn .i {
  transition: transform 0.25s var(--ease);
}
.btn:hover .i {
  transform: translateX(3px);
}
.btn:active {
  transform: translateY(1px);
}
.btn--bright {
  background: var(--bright);
  color: var(--ink);
}
.btn--bright:hover {
  background: var(--bright-hover);
}
.btn--ghost {
  border-color: var(--line-ink);
  color: var(--paper);
}
.btn--ghost:hover {
  border-color: rgba(243, 240, 232, 0.5);
}
.btn--ghost-ink {
  border-color: var(--line);
  color: var(--ink);
}
.btn--ghost-ink:hover {
  border-color: var(--ink);
}
.btn--sm {
  min-height: 40px;
  padding: 0 16px;
  font-size: 0.94rem;
}
.btn[disabled] {
  opacity: 0.7;
  cursor: progress;
}

.link-out {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 650;
  text-decoration: underline;
  text-decoration-color: var(--bright);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}
.link-out:hover {
  text-decoration-color: currentColor;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--ink);
  color: var(--paper);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
.site-header[data-scrolled] {
  border-bottom-color: var(--line-ink);
}
.site-header__in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--header);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 720;
  font-stretch: 112%;
  font-size: 1.16rem;
  letter-spacing: -0.02em;
}
.brand .mark {
  width: 30px;
  height: 30px;
  color: var(--ink-3);
  --mark-line: #f3f0e8;
}
.site-header .brand .mark,
.site-footer .brand .mark {
  color: #2b2c24;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav > a:not(.btn) {
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 520;
  color: rgba(243, 240, 232, 0.78);
  text-decoration: none;
  transition: color 0.2s, background-color 0.2s;
}
.nav > a:not(.btn):hover {
  color: var(--paper);
  background: rgba(243, 240, 232, 0.06);
}
.nav > a.nav__lang {
  display: inline-flex;
  gap: 6px;
  margin: 0 10px 0 6px;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  border: 1px solid var(--line-ink);
}
.nav__lang-on {
  color: var(--bright);
}

.menu-btn {
  display: none;
  align-items: center;
  gap: 10px;
  height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line-ink);
  border-radius: 10px;
  background: transparent;
  color: var(--paper);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
}
.menu-btn__icon,
.menu-btn__icon::before {
  display: block;
  width: 16px;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.25s var(--ease);
}
.menu-btn__icon {
  position: relative;
  transform: translateY(-3px);
}
.menu-btn__icon::before {
  content: '';
  position: absolute;
  top: 6px;
}
.menu-open .menu-btn__icon {
  transform: translateY(0) rotate(45deg);
}
.menu-open .menu-btn__icon::before {
  transform: translateY(-6px) rotate(-90deg);
}

@media (max-width: 899px) {
  .menu-btn {
    display: inline-flex;
  }
  .nav {
    position: fixed;
    inset: var(--header) 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px var(--gutter) 28px;
    background: var(--ink);
    border-bottom: 1px solid var(--line-ink);
    max-height: calc(100dvh - var(--header));
    overflow-y: auto;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.2s, transform 0.25s var(--ease), visibility 0s 0.25s;
  }
  .menu-open .nav {
    visibility: visible;
    opacity: 1;
    transform: none;
    transition: opacity 0.2s, transform 0.25s var(--ease);
  }
  .nav > a:not(.btn) {
    padding: 16px 0;
    border-radius: 0;
    border-bottom: 1px solid var(--line-ink);
    font-size: 1.25rem;
    font-weight: 600;
    font-stretch: 108%;
    color: var(--paper);
  }
  .nav > a:not(.btn):hover {
    background: none;
  }
  .nav > a.nav__lang {
    margin: 16px 0 0;
    align-self: flex-start;
    padding: 8px 12px;
    border: 1px solid var(--line-ink);
    border-radius: 8px;
    font-size: 0.8rem;
  }
  .nav .btn {
    margin-top: 16px;
    min-height: 52px;
  }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--ink);
  color: var(--paper);
  padding: clamp(56px, 9vw, 120px) 0 clamp(190px, 22vw, 300px);
}
.aisle {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
}
.aisle__lines {
  fill: none;
  stroke: rgba(243, 240, 232, 0.07);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}
.aisle__frame {
  fill: none;
  stroke: rgba(243, 240, 232, 0.13);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
  transform-box: view-box;
  transform-origin: 860px 350px;
  opacity: 0;
  animation: aisle 18s cubic-bezier(0.55, 0, 0.95, 0.35) infinite;
}
.aisle__frame:nth-child(2) { animation-delay: -2.25s; }
.aisle__frame:nth-child(3) { animation-delay: -4.5s; }
.aisle__frame:nth-child(4) { animation-delay: -6.75s; }
.aisle__frame:nth-child(5) { animation-delay: -9s; }
.aisle__frame:nth-child(6) { animation-delay: -11.25s; }
.aisle__frame:nth-child(7) { animation-delay: -13.5s; }
.aisle__frame:nth-child(8) { animation-delay: -15.75s; }
@keyframes aisle {
  0% {
    transform: scale(0.03);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  80% {
    opacity: 0.7;
  }
  100% {
    transform: scale(0.9);
    opacity: 0;
  }
}
.aisle__door {
  fill: var(--bright);
}
@media (prefers-reduced-motion: reduce) {
  .aisle__frame {
    animation: none;
    opacity: 0.8;
  }
  .aisle__frame:nth-child(1) { transform: scale(0.06); }
  .aisle__frame:nth-child(2) { transform: scale(0.11); }
  .aisle__frame:nth-child(3) { transform: scale(0.18); }
  .aisle__frame:nth-child(4) { transform: scale(0.28); }
  .aisle__frame:nth-child(5) { transform: scale(0.42); }
  .aisle__frame:nth-child(6) { transform: scale(0.62); }
  .aisle__frame:nth-child(7),
  .aisle__frame:nth-child(8) { display: none; }
}

.hero__eyebrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-ink);
}
.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px 5px 9px;
  border: 1px solid var(--line-ink);
  border-radius: 999px;
  color: var(--paper);
  letter-spacing: 0.06em;
}
.status i {
  position: relative;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ok);
}
.status i::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--ok);
  animation: ping 2.4s ease-out infinite;
}
@keyframes ping {
  0% { transform: scale(1); opacity: 0.6; }
  70%, 100% { transform: scale(2.8); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .status i::after { animation: none; }
}

.hero h1 {
  margin-top: 28px;
  font-size: clamp(2.7rem, 7.4vw, 6.4rem);
  font-weight: 800;
  font-stretch: 112%;
  line-height: 0.95;
  letter-spacing: -0.042em;
}
.hero h1 .line {
  display: block;
}
.hero h1 em {
  font-style: normal;
  color: var(--bright);
}
.hero__lede {
  margin-top: 28px;
  max-width: 54ch;
  font-size: clamp(1.06rem, 1.5vw, 1.25rem);
  line-height: 1.55;
  color: rgba(243, 240, 232, 0.78);
}
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}
.hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--muted-ink);
}
.hero__facts li {
  display: flex;
  align-items: center;
  gap: 10px;
}
.hero__facts li::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--bright);
  flex: none;
}

@media (max-width: 759px) {
  .aisle {
    inset: auto;
    top: -10px;
    right: -250px;
    width: 1200px;
    height: 800px;
    opacity: 0.75;
  }
  .hero .btn {
    flex: 1 1 100%;
  }
  .hero__facts {
    flex-direction: column;
  }
}

/* ---------- Stage (real screens under the hero) ---------- */

.stage-section {
  position: relative;
  z-index: 2;
  padding-bottom: clamp(40px, 6vw, 72px);
}
.stage {
  position: relative;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  margin-top: calc(-1 * clamp(150px, 18vw, 250px));
}
.browser {
  margin: 0;
  overflow: hidden;
  background: var(--white);
  border: 1px solid rgba(15, 16, 13, 0.12);
  border-radius: var(--radius);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset, 0 40px 80px -40px rgba(15, 16, 13, 0.5), 0 12px 24px -12px rgba(15, 16, 13, 0.18);
}
.browser__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 12px;
  border-bottom: 1px solid rgba(15, 16, 13, 0.08);
  background: #f6f4ee;
}
.browser__bar span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #dcd8cc;
}
.browser__bar em {
  margin-left: 10px;
  padding: 3px 10px;
  border-radius: 6px;
  background: var(--paper-2);
  font-family: var(--mono);
  font-size: 0.68rem;
  font-style: normal;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.stage__site {
  grid-column: 1 / span 9;
  grid-row: 1;
}
.stage__admin {
  grid-column: 7 / span 6;
  grid-row: 1;
  align-self: start;
  margin-top: 30%;
  z-index: 2;
}
.log {
  position: absolute;
  left: clamp(-8px, -1vw, 0px);
  bottom: -28px;
  z-index: 3;
  width: min(440px, 46%);
  padding: 14px 16px 12px;
  background: var(--ink-2);
  color: var(--paper);
  border: 1px solid var(--line-ink);
  border-radius: var(--radius);
  box-shadow: 0 30px 60px -30px rgba(15, 16, 13, 0.6);
  font-family: var(--mono);
  font-size: 0.74rem;
  line-height: 1.5;
}
.log__title {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 10px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--line-ink);
  color: var(--muted-ink);
  letter-spacing: 0.04em;
}
.log__title i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ok);
}
.log ol {
  margin: 0;
  padding: 0;
  list-style: none;
}
.log li {
  display: grid;
  grid-template-columns: auto auto 1fr;
  gap: 12px;
  padding: 3px 0;
}
.js .log li {
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.4s, transform 0.4s var(--ease);
}
.js .log li.is-on {
  opacity: 1;
  transform: none;
}
.log time {
  color: #77766b;
}
.log code {
  font: inherit;
  color: var(--bright);
}
.log span {
  color: rgba(243, 240, 232, 0.72);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.stage__caption {
  margin-top: 56px;
  max-width: 62ch;
  font-size: 0.92rem;
  color: var(--muted);
}
.stage__caption strong {
  color: var(--ink);
  font-weight: 650;
}

@media (max-width: 759px) {
  .stage__site {
    grid-column: 1 / -1;
  }
  .stage__admin {
    grid-column: 4 / -1;
    margin-top: 42%;
    margin-right: -6px;
  }
  .log {
    position: relative;
    grid-column: 1 / -1;
    grid-row: 2;
    left: 0;
    bottom: 0;
    width: 100%;
    margin-top: -24px;
  }
  .log li {
    grid-template-columns: auto 1fr;
    gap: 2px 10px;
  }
  .log span {
    grid-column: 2;
    white-space: normal;
  }
  .stage__caption {
    margin-top: 20px;
  }
}

/* ---------- Sections ---------- */

.section {
  padding-block: clamp(80px, 11vw, 150px);
}
.section--work {
  background: var(--paper-2);
}
.section--ink {
  background: var(--ink);
  color: var(--paper);
}

.label {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.label span {
  display: inline-grid;
  place-items: center;
  min-width: 28px;
  height: 22px;
  padding: 0 6px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 5px;
  letter-spacing: 0.04em;
}
.section--ink .label span {
  background: var(--bright);
  color: var(--ink);
}

.section-head {
  display: grid;
  gap: 20px 48px;
  margin-bottom: clamp(44px, 6vw, 72px);
}
.section-head h2 {
  max-width: 17ch;
  font-size: clamp(2.1rem, 4.6vw, 3.9rem);
  font-weight: 780;
  line-height: 0.98;
  letter-spacing: -0.038em;
}
.section-head__intro {
  max-width: 52ch;
  font-size: 1.08rem;
  color: var(--muted);
}
@media (min-width: 1000px) {
  .section-head {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    align-items: end;
  }
  .section-head .label {
    grid-column: 1 / -1;
    margin-bottom: 0;
  }
  .section-head__intro {
    padding-bottom: 6px;
  }
}

html.js [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
html.js [data-reveal].is-in {
  opacity: 1;
  transform: none;
}

/* ---------- Services ---------- */

.svc {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1.5px solid var(--line-strong);
}
.svc__item {
  position: relative;
  display: grid;
  grid-template-columns: 64px minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 16px 40px;
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
}
.svc__num {
  align-self: start;
  justify-self: start;
  padding: 3px 7px;
  margin-top: 4px;
  border: 1px solid var(--line);
  border-radius: 5px;
  font-family: var(--mono);
  font-size: 0.74rem;
  transition: background-color 0.25s, border-color 0.25s;
}
.svc__item:hover .svc__num {
  background: var(--bright);
  border-color: var(--bright);
}
.svc__main h3 {
  font-size: clamp(1.4rem, 2.3vw, 1.9rem);
  font-weight: 740;
  letter-spacing: -0.03em;
}
.svc__main p {
  margin-top: 12px;
  max-width: 50ch;
  color: var(--muted);
}
.svc__tags {
  display: flex;
  flex-wrap: wrap;
  align-content: start;
  gap: 8px;
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
}
.svc__tags li {
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.88rem;
  line-height: 1.3;
  background: rgba(252, 251, 247, 0.5);
}
@media (max-width: 899px) {
  .svc__item {
    grid-template-columns: 1fr;
    padding: 28px 0;
  }
  .svc__num {
    margin-top: 0;
  }
}

/* ---------- Work ---------- */

.kicker {
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.case {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 40px 32px;
}
.case__title {
  margin-top: 14px;
  font-size: clamp(1.9rem, 3.4vw, 2.75rem);
  font-weight: 780;
  letter-spacing: -0.035em;
}
.case__summary {
  margin-top: 16px;
  color: var(--muted);
}
.case__head .link-out {
  margin-top: 22px;
}
.case__head {
  grid-column: 1 / span 4;
}
.viewer {
  grid-column: 5 / span 8;
  grid-row: 1 / span 2;
}
.case__facts {
  grid-column: 1 / span 4;
  align-self: start;
}
.stats {
  grid-column: 1 / -1;
}
.points {
  grid-column: 1 / -1;
}

.viewer__tabs {
  display: flex;
  gap: 4px;
  width: max-content;
  max-width: 100%;
  margin-bottom: 16px;
  padding: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(252, 251, 247, 0.55);
}
.viewer__tabs::-webkit-scrollbar {
  display: none;
}
.viewer__tabs button {
  flex: none;
  padding: 8px 14px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}
.viewer__tabs button:hover {
  color: var(--ink);
}
.viewer__tabs button[aria-selected='true'] {
  background: var(--ink);
  color: var(--paper);
}
.viewer__panel--phone {
  display: grid;
  place-items: center;
  aspect-ratio: 1600 / 1075;
  border-radius: var(--radius);
  background: var(--ink) radial-gradient(circle at 50% 30%, rgba(255, 201, 51, 0.16), transparent 60%);
}
.phone {
  height: 90%;
  aspect-ratio: 390 / 844;
  overflow: hidden;
  border: 7px solid #050504;
  border-radius: 30px;
  background: #050504;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.7);
}
.phone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  border-radius: 23px;
}
.viewer__note {
  margin-top: 12px;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--muted);
}

.facts {
  margin: 0;
}
.facts > div {
  padding: 14px 0;
  border-top: 1px solid var(--line);
}
.facts dt {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.facts dd {
  margin: 4px 0 0;
  font-size: 0.98rem;
  line-height: 1.45;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin: 24px 0 0;
  padding: 28px 0 0;
  list-style: none;
  border-top: 1.5px solid var(--line-strong);
}
.stats strong {
  display: block;
  font-size: clamp(3rem, 6.4vw, 5.25rem);
  font-weight: 800;
  font-stretch: 115%;
  line-height: 0.9;
  letter-spacing: -0.05em;
}
.stats span {
  display: block;
  margin-top: 12px;
  max-width: 20ch;
  font-size: 0.95rem;
  line-height: 1.4;
  color: var(--muted);
}

.points {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 48px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}
.points li {
  position: relative;
  padding-left: 26px;
  max-width: 56ch;
}
.points li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 9px;
  height: 9px;
  background: var(--bright);
  box-shadow: 0 0 0 1px rgba(15, 16, 13, 0.15);
}

.case--product {
  margin-top: clamp(96px, 12vw, 160px);
  padding-top: clamp(56px, 7vw, 88px);
  border-top: 1px solid var(--line);
  align-items: center;
}
.case__media {
  grid-column: 1 / span 7;
}
.case__body {
  grid-column: 8 / span 5;
}
.case__body .facts {
  margin-top: 28px;
}
.case__point {
  margin-top: 24px;
  padding: 16px 18px;
  border-left: 3px solid var(--bright);
  background: rgba(252, 251, 247, 0.6);
  font-size: 0.98rem;
}
.print {
  position: relative;
  width: 74%;
  margin: -20px -12px 0 auto;
  padding: 18px 18px 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: 0 30px 50px -30px rgba(15, 16, 13, 0.45);
  transform: rotate(-1.2deg);
}
.print figcaption {
  margin-top: 10px;
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--muted);
}

@media (max-width: 999px) {
  .case__head,
  .viewer,
  .case__facts,
  .case__media,
  .case__body {
    grid-column: 1 / -1;
    grid-row: auto;
  }
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 32px;
  }
  .points {
    grid-template-columns: 1fr;
  }
  .print {
    width: 90%;
    margin-top: -24px;
  }
}

/* ---------- Process ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 40px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.step {
  position: relative;
  padding-top: 24px;
  border-top: 1.5px solid var(--line-strong);
}
.step::before {
  content: '';
  position: absolute;
  top: -5px;
  left: 0;
  width: 9px;
  height: 9px;
  background: var(--bright);
  box-shadow: 0 0 0 1.5px var(--ink);
}
.step__meta {
  display: flex;
  gap: 10px;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.step__meta span {
  color: var(--ink);
}
.step h3 {
  margin-top: 18px;
  font-size: 1.32rem;
  font-weight: 720;
  letter-spacing: -0.025em;
}
.step p:last-child {
  margin-top: 10px;
  font-size: 0.98rem;
  color: var(--muted);
}
@media (max-width: 1099px) {
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 599px) {
  .steps {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* ---------- Principles ---------- */

.principles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 56px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.principles li {
  padding: 32px 0 40px;
  border-top: 1px solid var(--line-ink);
}
.principles h3 {
  font-size: clamp(1.6rem, 2.8vw, 2.3rem);
  font-weight: 760;
  letter-spacing: -0.035em;
}
.principles h3::before {
  content: '';
  display: block;
  width: 10px;
  height: 10px;
  margin-bottom: 20px;
  background: var(--bright);
}
.principles p {
  margin-top: 14px;
  max-width: 46ch;
  color: var(--muted-ink);
}
@media (max-width: 759px) {
  .principles {
    grid-template-columns: 1fr;
  }
}

/* ---------- About + FAQ ---------- */

.split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 64px 80px;
}
.split h2 {
  font-size: clamp(2rem, 3.6vw, 3rem);
  font-weight: 780;
  letter-spacing: -0.036em;
}
.about > p:not(.label) {
  margin-top: 20px;
  max-width: 48ch;
  color: var(--muted);
}
.about h2 + p:not(.label) {
  margin-top: 28px;
  color: var(--ink);
  font-size: 1.12rem;
}
.facts--compact {
  margin-top: 32px;
}
.faq h2 {
  margin-bottom: 32px;
}
.faq__list details {
  border-top: 1px solid var(--line);
}
.faq__list details:last-child {
  border-bottom: 1px solid var(--line);
}
.faq__list summary {
  position: relative;
  padding: 22px 48px 22px 0;
  list-style: none;
  cursor: pointer;
  font-size: 1.12rem;
  font-weight: 650;
  font-stretch: 104%;
  letter-spacing: -0.01em;
  line-height: 1.35;
}
.faq__list summary::-webkit-details-marker {
  display: none;
}
.faq__list summary::before,
.faq__list summary::after {
  content: '';
  position: absolute;
  right: 6px;
  top: 50%;
  width: 14px;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.25s var(--ease);
}
.faq__list summary::after {
  transform: rotate(90deg);
}
.faq__list details[open] summary::after {
  transform: rotate(0deg);
}
.faq__list summary:hover {
  color: #3a3a32;
}
.faq__list details p {
  max-width: 62ch;
  padding: 0 48px 24px 0;
  color: var(--muted);
}
@media (max-width: 899px) {
  .split {
    grid-template-columns: 1fr;
  }
}

/* ---------- Contact ---------- */

.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 56px 72px;
  align-items: start;
}
.contact h2 {
  font-size: clamp(2.1rem, 4.2vw, 3.5rem);
  font-weight: 780;
  letter-spacing: -0.038em;
}
.contact__intro > p {
  margin-top: 22px;
  max-width: 44ch;
  color: rgba(243, 240, 232, 0.78);
}
.contact__intro .mono-label {
  margin-top: 40px;
  color: var(--muted-ink);
}
.contact__steps {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: s;
}
.contact__steps li {
  counter-increment: s;
  display: grid;
  grid-template-columns: 32px 1fr;
  padding: 12px 0;
  border-top: 1px solid var(--line-ink);
  font-size: 0.98rem;
}
.contact__steps li::before {
  content: counter(s, decimal-leading-zero);
  font-family: var(--mono);
  font-size: 0.74rem;
  line-height: 1.9;
  color: var(--bright);
}
.contact__direct {
  margin-top: 28px !important;
  color: var(--muted-ink) !important;
}
.contact__direct a {
  color: var(--paper);
  font-weight: 600;
}

.form {
  position: relative;
  padding: clamp(20px, 3.2vw, 36px);
  background: var(--ink-2);
  border: 1px solid var(--line-ink);
  border-radius: 16px;
}
.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 16px;
}
.field {
  margin: 0 0 18px;
  padding: 0;
  border: 0;
  min-width: 0;
}
.field label,
.field legend {
  display: block;
  margin-bottom: 8px;
  padding: 0;
  font-size: 0.92rem;
  font-weight: 600;
}
.field small {
  font-weight: 400;
  color: var(--muted-ink);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line-ink);
  border-radius: 10px;
  background: rgba(243, 240, 232, 0.04);
  color: var(--paper);
  font: inherit;
  font-size: 1rem;
  line-height: 1.4;
  transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
}
.field textarea {
  resize: vertical;
  min-height: 132px;
}
.field input::placeholder,
.field textarea::placeholder {
  color: #7b7a70;
}
.field input:hover,
.field select:hover,
.field textarea:hover {
  border-color: rgba(243, 240, 232, 0.28);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--bright);
  box-shadow: 0 0 0 3px rgba(255, 201, 51, 0.22);
  background: rgba(243, 240, 232, 0.06);
}
.field [aria-invalid='true'] {
  border-color: var(--danger);
}
.field select {
  appearance: none;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m5 8 5 5 5-5' fill='none' stroke='%23a6a497' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 18px;
}
.field select option {
  background: var(--ink-2);
  color: var(--paper);
}
.field__err {
  margin-top: 6px;
  font-size: 0.86rem;
  color: var(--danger);
}
.field__err:empty {
  display: none;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chips legend {
  width: 100%;
  float: left;
}
.chip {
  position: relative;
  margin: 0 !important;
  font-weight: 500 !important;
  cursor: pointer;
}
.chip input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.chip span {
  display: inline-block;
  padding: 8px 14px;
  border: 1px solid var(--line-ink);
  border-radius: 999px;
  font-size: 0.92rem;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}
.chip:hover span {
  border-color: rgba(243, 240, 232, 0.35);
}
.chip input:checked + span {
  background: var(--bright);
  border-color: var(--bright);
  color: var(--ink);
}
.chip input:focus-visible + span {
  outline: 2px solid var(--bright);
  outline-offset: 2px;
}

.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  margin-top: 8px;
}
.form__consent {
  max-width: 34ch;
  font-size: 0.86rem;
  color: var(--muted-ink);
}
.form__consent a {
  color: var(--paper);
}
.form__done {
  padding: 24px 0 8px;
}
.form__done:focus {
  outline: none;
}
.form__done-title {
  font-size: 1.9rem;
  font-weight: 780;
  font-stretch: 110%;
  letter-spacing: -0.03em;
  color: var(--bright);
}
.form__done p + p {
  margin-top: 10px;
  color: rgba(243, 240, 232, 0.8);
}
.form.is-done > :not([data-done]) {
  display: none;
}
.form__error {
  margin-top: 18px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 145, 127, 0.4);
  border-radius: 10px;
  background: rgba(255, 145, 127, 0.07);
  font-size: 0.95rem;
}
.form__error .link-out {
  margin-top: 8px;
}

@media (max-width: 899px) {
  .contact__grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 559px) {
  .form__row {
    grid-template-columns: 1fr;
  }
  .form__foot .btn {
    width: 100%;
  }
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--ink);
  color: var(--paper);
  border-top: 1px solid var(--line-ink);
  padding: 64px 0 32px;
}
.site-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr));
  gap: 40px 32px;
}
.site-footer__brand p {
  margin-top: 16px;
  max-width: 32ch;
  color: var(--muted-ink);
  font-size: 0.95rem;
}
.site-footer .mono-label {
  color: var(--muted-ink);
}
.site-footer ul {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}
.site-footer li {
  padding: 4px 0;
  font-size: 0.95rem;
}
.site-footer li a {
  color: rgba(243, 240, 232, 0.86);
  text-decoration: none;
}
.site-footer li a:hover {
  color: var(--paper);
  text-decoration: underline;
}
.site-footer li small {
  display: block;
  color: var(--muted-ink);
  font-size: 0.8rem;
}
.site-footer__base {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--line-ink);
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--muted-ink);
}
.site-footer__base a {
  color: inherit;
}
.site-footer__base a:hover {
  color: var(--paper);
}
@media (max-width: 899px) {
  .site-footer__grid {
    grid-template-columns: 1fr 1fr;
  }
  .site-footer__brand {
    grid-column: 1 / -1;
  }
}

/* ---------- Document pages (privacy, 404) ---------- */

.doc {
  padding-block: clamp(64px, 9vw, 120px);
  min-height: 60vh;
}
.doc__in {
  max-width: calc(760px + var(--gutter) * 2);
}
.doc h1 {
  margin-top: 14px;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -0.04em;
}
.doc h1 + * {
  margin-top: 24px;
}
.doc section {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.doc h2 {
  font-size: 1.3rem;
  font-weight: 720;
  letter-spacing: -0.02em;
}
.doc section p {
  margin-top: 10px;
  color: #33332c;
}
.doc > .wrap > p:last-child {
  margin-top: 48px;
}
.doc .btn {
  margin: 8px 8px 0 0;
}
