@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-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 {
  --bg: #f4f6f8;
  --surface: #ffffff;
  --tint: #eaeef2;
  --ink: #15191e;
  --ink-2: #353d47;
  --muted: #58626e;
  --line: #d8dde3;
  --line-strong: #b4bcc6;
  --accent: #1f3f9a;
  --accent-hover: #172f78;
  --accent-soft: #e3e9f7;
  --on-accent: #fff;
  --on-ink: #fff;
  --dot: #c3cad3;
  --shadow: #15191e;
  --cyan: #2a9fb0;
  --lime: #b7d64b;
  --dark: #0f1318;
  --dark-2: #171c23;
  --dark-line: #2a313a;
  --dark-text: #e8ecf0;
  --dark-muted: #9aa4b0;
  --dark-accent: #8fb0ff;
  --dark-strong: #fff;
  --dark-faint: #5d6875;
  --dark-dot: #252c35;
  --dark-lit: #152044;
  --dark-placeholder: #7d8793;
  --dark-error: #ff8a80;
  --dark-error-text: #ffb4ab;
  --error: #b3261e;
  --error-bg: #fdf1f0;
  --error-border: #f0c1bd;
  --success: #1d6b45;
  --success-bg: #edf7f1;
  --success-border: #b6d8c4;

  --font-sans: 'Geist', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'Geist Mono', ui-monospace, 'SFMono-Regular', Consolas, monospace;

  --container: 1240px;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --header-h: 72px;
  --radius: 4px;
  --radius-lg: 8px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --section-y: clamp(3.75rem, 7.5vw, 6.5rem);

  color-scheme: light;
}

:root:not([data-theme='light']) {
  --bg: #111519;
  --surface: #181d23;
  --tint: #151a20;
  --ink: #e8ecf0;
  --ink-2: #c3cad3;
  --muted: #9aa4b0;
  --line: #262d36;
  --line-strong: #3a434e;
  --accent: #8fb0ff;
  --accent-hover: #b3c9ff;
  --accent-soft: #1a2647;
  --on-accent: #0f1318;
  --on-ink: #0f1318;
  --dot: #2a313a;
  --shadow: #000;
  --dark: #07090c;
  --dark-2: #0e1115;
  --dark-line: #20262e;
  --dark-faint: #4d5763;
  --dark-dot: #1a1f26;
  --dark-lit: #111c3d;
  --dark-placeholder: #6b7581;
  --error: #ff8a80;
  --error-bg: #2a1715;
  --error-border: #5c2a26;
  --success: #6fcf97;
  --success-bg: #13241b;
  --success-border: #2a5a3f;

  color-scheme: dark;
}

.theme-switching *,
.theme-switching *::before,
.theme-switching *::after {
  transition: none !important;
}

.theme-switching .theme-toggle__knob {
  transition: transform .35s var(--ease-out) !important;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body.nav-open {
  overflow: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
p,
ul,
ol,
dl,
dd,
blockquote,
figure {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

[hidden] {
  display: none !important;
}

section[id],
[id='visszajelzes'] {
  scroll-margin-top: calc(var(--header-h) + 8px);
}

section[tabindex='-1']:focus {
  outline: none;
}

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

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 200;
  padding: .75rem 1rem;
  background: var(--ink);
  color: var(--on-ink);
  border-radius: var(--radius);
  font-weight: 500;
}

.skip-link:focus {
  top: 1rem;
}

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}


/* ---------- Typo & shared ---------- */

.section-index {
  font-family: var(--font-mono);
  font-size: .8125rem;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: 1.25rem;
}

.section-index::before {
  content: '';
  width: 1.5rem;
  height: 1px;
  background: currentColor;
}

.section-title {
  font-size: clamp(2rem, 4.2vw, 3.25rem);
  line-height: 1.08;
  font-weight: 600;
  letter-spacing: -.035em;
  text-wrap: balance;
}

.section-title--xl {
  font-size: clamp(2.4rem, 6vw, 4.75rem);
  letter-spacing: -.045em;
}

.section-lead {
  margin-top: 1.25rem;
  max-width: 38rem;
  font-size: clamp(1.0625rem, 1.4vw, 1.1875rem);
  color: var(--muted);
  text-wrap: pretty;
}

.section-lead__link {
  text-decoration: underline 1px var(--line-strong);
  text-underline-offset: .2em;
  transition: color .25s var(--ease), text-decoration-color .25s var(--ease);
}

@media (hover: hover) and (pointer: fine) {
  .section-lead__link:hover {
    color: var(--accent);
    text-decoration-color: currentColor;
  }
}

.section-head {
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.section-head--split {
  display: grid;
  gap: 1rem 3rem;
}

@media (width >= 900px) {
  .section-head--split {
    grid-template-columns: 1.1fr 1fr;
    align-items: end;
  }

  .section-head--split .section-lead {
    margin-top: 0;
  }
}

.section {
  position: relative;
  padding-block: var(--section-y);
}

.section--tint {
  background: var(--tint);
}

.section--ink {
  background: var(--dark);
  color: var(--dark-text);
}

.section--ink .section-lead {
  color: var(--dark-muted);
}

.section--ink .section-index {
  color: var(--dark-accent);
}

:root:not([data-theme='light']) .section--ink {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

:root:not([data-theme='light']) .site-footer {
  border-top: 1px solid var(--line);
}

:root:not([data-theme='light']) .audit {
  border: 1px solid var(--dark-line);
}


/* ---------- Buttons ---------- */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  min-height: 48px;
  padding: .8rem 1.35rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: .975rem;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -.005em;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: color .3s var(--ease), background-color .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease);
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .45s var(--ease-out);
}

.btn:hover::before {
  transform: scaleX(1);
  transform-origin: left;
}

.btn__arrow {
  display: inline-block;
  transition: transform .35s var(--ease-out);
}

.btn:hover .btn__arrow {
  transform: translateX(4px);
}

.btn--primary {
  background: var(--accent);
  color: var(--on-accent);
}

.btn--primary::before {
  background: var(--ink);
}

.btn--ghost {
  border-color: var(--line-strong);
  color: var(--ink);
  background: transparent;
}

.btn--ghost::before {
  background: var(--ink);
}

.btn--ghost:hover {
  color: var(--on-ink);
  border-color: var(--ink);
}

.btn--light {
  background: var(--dark-strong);
  color: var(--dark);
}

.btn--light::before {
  background: var(--lime);
}

.btn--sm {
  min-height: 40px;
  padding: .55rem 1rem;
  font-size: .9rem;
}

.btn--lg {
  min-height: 54px;
  padding: 1rem 1.6rem;
  font-size: 1rem;
}


/* ---------- Header ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
}

.site-header::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: color-mix(in srgb, var(--bg) 0%, transparent);
  border-bottom: 1px solid transparent;
  transition: background-color .35s var(--ease), border-color .35s var(--ease);
}

.site-header.is-scrolled::before {
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  border-bottom-color: var(--line);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
}

.scroll-progress {
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  pointer-events: none;
}

.scroll-progress__bar {
  display: block;
  height: 100%;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: 100%;
}

.brand {
  display: inline-flex;
  align-items: center;
  color: var(--ink);
}

.brand__logo {
  display: block;
  width: auto;
  height: 18px;
}

.site-header .brand {
  transition: color .25s var(--ease);
}

@media (hover: hover) and (pointer: fine) {
  .site-header .brand:hover {
    color: var(--accent);
  }
}

.nav-toggle {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  min-height: 44px;
  padding: .5rem .25rem .5rem .75rem;
  border: 0;
  background: none;
  font-family: var(--font-mono);
  font-size: .8125rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  cursor: pointer;
  order: 2;
}

.nav-toggle__lines {
  position: relative;
  width: 24px;
  height: 10px;
}

.nav-toggle__lines span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 1.5px;
  background: currentColor;
  transition: transform .35s var(--ease), top .35s var(--ease);
}

.nav-toggle__lines span:first-child {
  top: 0;
}

.nav-toggle__lines span:last-child {
  top: calc(100% - 1.5px);
}

.nav-toggle[aria-expanded='true'] .nav-toggle__lines span:first-child {
  top: 4px;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded='true'] .nav-toggle__lines span:last-child {
  top: 4px;
  transform: rotate(-45deg);
}

.theme-toggle {
  order: 1;
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  min-height: 44px;
  margin-left: auto;
  padding: .5rem .25rem;
  border: 0;
  background: none;
  font-family: var(--font-mono);
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--ink-2);
  cursor: pointer;
  transition: color .25s var(--ease);
}

html:not(.js) .theme-toggle {
  display: none;
}

.theme-toggle__track {
  position: relative;
  width: 30px;
  height: 16px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  transition: border-color .25s var(--ease);
}

.theme-toggle__knob {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  transition: transform .35s var(--ease-out);
}

.theme-toggle[aria-checked='true'] .theme-toggle__knob {
  transform: translateX(14px);
}

.theme-toggle:hover {
  color: var(--ink);
}

.theme-toggle:hover .theme-toggle__track {
  border-color: var(--accent);
}

@media (width <= 480px) {
  .theme-toggle__label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
  }
}

.primary-nav {
  position: fixed;
  inset: var(--header-h) 0 0;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: 2rem var(--gutter) 3rem;
  background: var(--bg);
  background-image: radial-gradient(circle, var(--line) 1px, transparent 1.2px);
  background-size: 24px 24px;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity .3s var(--ease), transform .3s var(--ease), visibility 0s linear .3s;
}

.primary-nav.is-open {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity .3s var(--ease), transform .3s var(--ease), visibility 0s;
}

.primary-nav__list {
  display: flex;
  flex-direction: column;
  counter-reset: nav;
}

.primary-nav__list li {
  counter-increment: nav;
  border-bottom: 1px solid var(--line);
}

.nav-link {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: .9rem 0;
  font-size: 1.6rem;
  font-weight: 500;
  letter-spacing: -.02em;
}

.nav-link::before {
  content: '0' counter(nav);
  font-family: var(--font-mono);
  font-size: .75rem;
  color: var(--muted);
  letter-spacing: .04em;
}

.nav-link.is-active {
  color: var(--accent);
}

@media (width >= 1100px) {
  .nav-toggle {
    display: none;
  }

  .theme-toggle {
    order: 0;
    margin-left: 0;
  }

  .primary-nav {
    position: static;
    flex-direction: row;
    align-items: center;
    gap: 1.75rem;
    margin-left: auto;
    padding: 0;
    background: none;
    overflow: visible;
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .primary-nav__list {
    flex-direction: row;
    gap: 1.6rem;
  }

  .primary-nav__list li {
    border: 0;
  }

  .nav-link {
    position: relative;
    display: inline-block;
    padding: .4rem 0;
    font-size: .925rem;
    letter-spacing: -.005em;
    color: var(--ink-2);
    transition: color .25s var(--ease);
  }

  .nav-link::before {
    content: none;
  }

  .nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform .35s var(--ease-out);
  }

  .nav-link:hover,
  .nav-link.is-active {
    color: var(--accent);
  }

  .nav-link:hover::after,
  .nav-link.is-active::after {
    transform: scaleX(1);
    transform-origin: left;
  }
}


/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding-top: calc(var(--header-h) + clamp(2.5rem, 7vw, 5.5rem));
  padding-bottom: 0;
  overflow: hidden;
}

.hero__grid {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(to right, color-mix(in srgb, var(--accent) 7%, transparent) 1px, transparent 1px),
    linear-gradient(to bottom, color-mix(in srgb, var(--accent) 7%, transparent) 1px, transparent 1px),
    radial-gradient(circle, var(--dot) 1px, transparent 1.2px);
  background-size: 120px 120px, 120px 120px, 24px 24px;
  background-position: -1px -1px, -1px -1px, 0 0;
  -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 55%, transparent 100%);
}

.hero__inner {
  display: grid;
  gap: 3rem;
  align-items: center;
  padding-bottom: clamp(3rem, 6vw, 5rem);
}

.hero__title {
  font-size: clamp(2.2rem, 5.8vw, 5rem);
  font-weight: 600;
  line-height: 1.03;
  letter-spacing: -.055em;
}

.hero__title .line:last-child,
.keyline .line:last-child,
.contact__title .line:last-child {
  color: var(--accent);
}

.hero__lead {
  margin-top: clamp(1.75rem, 3vw, 2.5rem);
  max-width: 35rem;
  font-size: clamp(1.0625rem, 1.5vw, 1.25rem);
  line-height: 1.65;
  color: var(--ink-2);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: clamp(2.25rem, 3.5vw, 3rem);
}

.line {
  display: block;
  overflow: hidden;
  padding-bottom: .06em;
  margin-bottom: -.06em;
}

.line__inner {
  display: block;
}

@media (width >= 1000px) {
  .hero__inner {
    grid-template-columns: 1.45fr 1fr;
    gap: 2rem;
  }
}

@media (width <= 480px) {
  .hero__actions .btn {
    width: 100%;
  }
}

.stack {
  --s: clamp(150px, 19vw, 230px);
  --gap: calc(var(--s) * .34);
  position: relative;
  height: calc(var(--gap) * 4 + var(--s) * .8 + 4rem);
  min-height: 320px;
  margin-inline: auto;
  width: 100%;
  max-width: 520px;
}

.stack__layer {
  --x: 37%;
  position: absolute;
  left: var(--x);
  top: calc(100% - var(--s) * .42 - 2rem - var(--i) * var(--gap));
  width: 0;
  height: 0;
  z-index: calc(var(--i) + 1);
}

.stack__plane {
  position: absolute;
  left: calc(var(--s) / -2);
  top: calc(var(--s) / -2);
  width: var(--s);
  height: var(--s);
  padding: calc(var(--s) * .1);
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: color-mix(in srgb, var(--surface) 78%, transparent);
  box-shadow: -14px 14px 0 -1px color-mix(in srgb, var(--shadow) 4%, transparent);
  transform: rotateX(58deg) rotateZ(-45deg);
  transition: transform .5s var(--ease-out), border-color .3s var(--ease);
}

.stack__tag {
  position: absolute;
  left: calc(var(--s) * .72 + 1.5rem);
  top: 0;
  transform: translateY(-50%);
  display: grid;
  grid-template-columns: auto auto;
  column-gap: .5rem;
  align-items: baseline;
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .08em;
  color: var(--ink-2);
  white-space: nowrap;
}

.stack__tag::before {
  content: '';
  position: absolute;
  right: calc(100% + .5rem);
  top: .6em;
  width: 1.25rem;
  height: 1px;
  background: var(--line-strong);
}

.stack__tag b {
  font-weight: 500;
  color: var(--accent);
}

.stack__tag small {
  grid-column: 2;
  font-size: .64rem;
  color: var(--muted);
  letter-spacing: .04em;
}

.stack__coord {
  position: absolute;
  font-family: var(--font-mono);
  font-size: .68rem;
  color: var(--muted);
  letter-spacing: .04em;
}

.stack__coord--tl {
  top: 0;
  left: 0;
}

.stack__coord--tl::before {
  content: '';
  position: absolute;
  left: -10px;
  top: -10px;
  width: 8px;
  height: 8px;
  border-left: 1px solid var(--accent);
  border-top: 1px solid var(--accent);
}

.stack__coord--br {
  right: 0;
  bottom: .25rem;
}

.stack__plane--site {
  display: flex;
  flex-direction: column;
  gap: 8%;
  border-color: var(--accent);
  background: var(--surface);
}

.stack__plane--design {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: 1fr 1fr;
  gap: 8%;
  align-items: center;
  justify-items: center;
}

.stack__plane--content,
.stack__plane--perf {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 9%;
}

.stack__plane--structure {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7%;
  background: color-mix(in srgb, var(--accent-soft) 75%, transparent);
}

.p-dots {
  display: flex;
  gap: 5%;
}

.p-dots i {
  width: 7%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--line-strong);
}

.p-bar {
  height: 8%;
  border-radius: 2px;
  background: var(--ink);
}

.p-bar--w60 {
  width: 70%;
}

.p-bar--w40 {
  width: 45%;
  background: var(--line-strong);
}

.p-btn {
  width: 36%;
  height: 12%;
  margin-top: auto;
  border-radius: 2px;
  background: var(--accent);
}

.p-swatch {
  width: 60%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--accent);
}

.p-swatch--2 {
  background: var(--cyan);
}

.p-swatch--3 {
  background: var(--lime);
}

.p-type {
  grid-column: 1 / -1;
  font-weight: 600;
  font-size: calc(var(--s) * .22);
  line-height: 1;
  letter-spacing: -.04em;
  color: var(--ink);
}

.p-line {
  height: 5%;
  border-radius: 2px;
  background: var(--line-strong);
}

.p-line--short {
  width: 60%;
}

.p-cell {
  border: 1px dashed var(--accent);
  border-radius: 2px;
}

.p-cell--wide {
  grid-column: 1 / -1;
}

.p-meter {
  position: relative;
  height: 10%;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  overflow: hidden;
}

.p-meter i {
  position: absolute;
  inset: 0 12% 0 0;
  background: var(--cyan);
}

@media (hover: hover) and (pointer: fine) {
  .stack__layer {
    transition: translate .5s var(--ease-out);
  }

  .stack__tag {
    transition: color .3s var(--ease);
  }

  .stack__tag::before {
    transition: background-color .3s var(--ease);
  }

  .stack__layer:hover .stack__plane {
    transform: rotateX(58deg) rotateZ(-45deg) translateZ(12px);
    border-color: var(--accent);
  }

  .stack__layer:hover .stack__plane::after {
    content: '';
    position: absolute;
    inset: -20px;
  }

  .stack__layer:has(~ .stack__layer:hover) {
    translate: 0 -12px;
  }

  .stack__layer:hover ~ .stack__layer {
    translate: 0 6px;
  }

  .stack__layer:hover .stack__tag {
    color: var(--ink);
  }

  .stack__layer:hover .stack__tag::before {
    background: var(--accent);
  }
}

@media (width < 1000px) {
  .stack {
    --s: clamp(130px, 34vw, 200px);
    max-width: 480px;
  }
}

@media (width <= 420px) {
  .stack__tag small {
    display: none;
  }

  .stack__layer {
    --x: 36%;
  }

  .stack__coord--br {
    display: none;
  }
}

.ruler {
  display: flex;
  justify-content: space-between;
  padding: .6rem var(--gutter) .75rem;
  border-top: 1px solid var(--line);
  background-image: repeating-linear-gradient(to right, var(--line-strong) 0 1px, transparent 1px 12px);
  background-size: 100% 6px;
  background-repeat: no-repeat;
  font-family: var(--font-mono);
  font-size: .65rem;
  color: var(--muted);
}

@media (width <= 700px) {
  .ruler span:nth-child(even) {
    display: none;
  }
}


/* ---------- Strip ---------- */

.strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.strip__inner {
  display: grid;
  gap: 1.5rem;
  padding-block: clamp(2rem, 4vw, 3rem);
  align-items: center;
}

.strip__title {
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -.025em;
  text-wrap: balance;
}

.strip__list {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem 0;
  font-family: var(--font-mono);
  font-size: .8125rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--ink-2);
}

.strip__list li:not(:last-child)::after {
  content: '/';
  margin-inline: .85rem;
  color: var(--accent);
}

@media (width >= 1000px) {
  .strip__inner {
    grid-template-columns: 1fr 1.1fr;
    gap: 3rem;
  }

  .strip__list {
    justify-content: flex-end;
  }
}


/* ---------- Situations plane ---------- */

.plane {
  position: relative;
}

.plane__list {
  display: grid;
  border-top: 1px solid var(--line);
}

.plane__q {
  position: relative;
  padding: 2rem 0;
  border-bottom: 1px solid var(--line);
}

.plane__coord,
.error-page__coord {
  display: inline-block;
  padding: .15rem .45rem;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  font-family: var(--font-mono);
  font-size: .7rem;
  color: var(--muted);
}

.plane__coord {
  margin-bottom: 1rem;
}

.plane__quote {
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -.03em;
  margin-bottom: .75rem;
}

.plane__q p {
  color: var(--ink-2);
  max-width: 30rem;
}

.plane__q .plane__answer {
  margin-top: 1rem;
  font-size: .95rem;
  color: var(--accent);
}

.plane__axis,
.plane__origin {
  display: none;
}

@media (width >= 820px) {
  .plane {
    padding: 0 0 2.75rem 2.75rem;
  }

  .plane__list {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 1fr;
    border: 0;
  }

  .plane__q {
    padding: clamp(2rem, 4vw, 3.25rem);
    border: 0;
    transition: background-color .4s var(--ease);
  }

  .plane__q:hover {
    background: var(--surface);
  }

  .plane__q--1,
  .plane__q--3 {
    border-right: 1px solid var(--ink);
  }

  .plane__q--1,
  .plane__q--2 {
    border-bottom: 1px solid var(--ink);
  }

  .plane__axis {
    display: flex;
    justify-content: space-between;
    position: absolute;
    font-family: var(--font-mono);
    font-size: .7rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--muted);
  }

  .plane__axis--x {
    left: calc(1.75rem - 1px);
    right: 0;
    bottom: 0;
    height: 1.75rem;
    padding: .55rem 1.25rem 0 calc(1rem + 1px);
    border-top: 1px solid var(--line-strong);
  }

  .plane__axis--y {
    left: 0;
    top: 0;
    bottom: 1.75rem;
    width: 1.75rem;
    padding: 1.25rem 0 1rem;
    flex-direction: column;
    align-items: center;
    border-right: 1px solid var(--line-strong);
  }

  .plane__axis::after {
    content: '';
    position: absolute;
    width: 7px;
    height: 7px;
    border: solid var(--line-strong);
  }

  .plane__axis--x::after {
    top: -4px;
    right: 1px;
    border-width: 1px 1px 0 0;
    transform: rotate(45deg);
  }

  .plane__axis--y::after {
    top: 1px;
    right: -4px;
    border-width: 1px 0 0 1px;
    transform: rotate(45deg);
  }

  .plane__axis--y span {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
  }

  .plane__origin {
    display: block;
    position: absolute;
    left: calc(50% + 1.375rem);
    top: calc(50% - 1.375rem);
    transform: translate(-50%, -50%);
    padding: .2rem .5rem;
    background: var(--bg);
    border: 1px solid var(--ink);
    border-radius: 999px;
    font-family: var(--font-mono);
    font-size: .68rem;
    color: var(--ink);
    z-index: 1;
  }
}


/* ---------- Services bento ---------- */

.bento {
  display: grid;
  gap: 1rem;
}

.bento__cell {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 260px;
  padding: clamp(1.5rem, 2.6vw, 2.25rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color .35s var(--ease), transform .35s var(--ease);
}

.bento__cell:hover {
  border-color: var(--accent);
}

.bento__index {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .08em;
  color: var(--accent);
}

.bento__title {
  margin: .9rem 0 .6rem;
  font-size: clamp(1.25rem, 1.9vw, 1.5rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -.025em;
}

.bento__cell p {
  color: var(--muted);
  font-size: .98rem;
}

.bento__art {
  margin-top: auto;
  padding-top: 1.75rem;
}

.bento__cell--build .bento__title {
  font-size: clamp(1.6rem, 2.8vw, 2.25rem);
}

.art-build {
  position: relative;
  padding-right: 2.25rem;
  padding-bottom: 1.75rem;
}

.art-build__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  border-bottom: 0;
  border-radius: 6px 6px 0 0;
}

.art-build__bar i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--line);
}

.art-build__bar span {
  flex: 0 1 40%;
  height: 10px;
  margin-left: 12px;
  border-radius: 999px;
  background: var(--tint);
}

.art-build__body {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line-strong);
  border-radius: 0 0 6px 6px;
  background-image: radial-gradient(circle, var(--line) 1px, transparent 1.2px);
  background-size: 12px 12px;
}

.art-build__hero {
  grid-column: 1 / -1;
  height: 70px;
  border-radius: 3px;
  background: var(--accent);
  transform-origin: left;
  transition: transform .6s var(--ease-out);
}

.art-build__col {
  height: 46px;
  border: 1px solid var(--accent);
  border-radius: 3px;
  background: var(--surface);
}

.bento__cell--build:hover .art-build__hero {
  transform: scaleX(.94);
}

.art-build__dim {
  position: absolute;
  font-family: var(--font-mono);
  font-size: .65rem;
  color: var(--muted);
}

.art-build__dim--x {
  left: 0;
  right: 2.25rem;
  bottom: 0;
  text-align: center;
  border-top: 1px solid var(--line-strong);
  padding-top: .3rem;
}

.art-build__dim--y {
  top: 0;
  bottom: 1.75rem;
  right: 0;
  width: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-left: 1px solid var(--line-strong);
  writing-mode: vertical-rl;
}

.art-renew {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.art-renew__old,
.art-renew__new {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px;
  border-radius: 4px;
  aspect-ratio: 3 / 4;
}

.art-renew__old,
.entry__legacy {
  border: 1px dashed var(--line-strong);
  background: repeating-linear-gradient(45deg, transparent 0 6px, color-mix(in srgb, var(--line-strong) 18%, transparent) 6px 7px);
}

.art-renew__old i,
.entry__legacy i {
  height: 7px;
  background: var(--line-strong);
}

.art-renew__old i:nth-child(2),
.entry__legacy i:nth-child(2) {
  width: 70%;
}

.art-renew__old i:nth-child(4) {
  width: 40%;
  margin-left: auto;
}

.art-renew__new {
  border: 1px solid var(--accent);
  background: var(--surface);
}

.art-renew__new i {
  height: 7px;
  border-radius: 2px;
  background: var(--accent-soft);
}

.art-renew__new i:first-child {
  height: 38%;
  background: var(--accent);
  transform-origin: left;
  transition: transform .6s var(--ease-out);
}

.bento__cell--renew:hover .art-renew__new i:first-child {
  transform: scaleX(.94);
}

.art-renew__new i:last-child {
  width: 50%;
  height: 12px;
  margin-top: auto;
  background: var(--ink);
}

.art-renew__arrow {
  font-family: var(--font-mono);
  color: var(--accent);
}

.art-landing {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 42%;
  padding: 10px;
  margin-top: auto;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
}

.bento__cell .art-landing {
  margin-top: 1.75rem;
}

.art-landing span {
  height: 7px;
  border-radius: 2px;
  background: var(--line);
}

.art-landing span:first-child {
  height: 22px;
  background: var(--ink);
}

.art-landing .art-landing__cta {
  width: 60%;
  height: 14px;
  margin-top: 8px;
  background: var(--accent);
  transition: width .5s var(--ease-out);
}

.bento__cell--landing:hover .art-landing__cta {
  width: 100%;
}

.art-presence {
  width: 100%;
  max-width: 220px;
  height: auto;
  fill: var(--surface);
  stroke: var(--accent);
  stroke-width: 1.3;
}

.art-presence circle {
  transform-box: fill-box;
  transform-origin: center;
  transition: fill .35s var(--ease), transform .5s var(--ease-out);
}

.art-presence circle:nth-of-type(2) {
  fill: var(--accent);
}

.bento__cell--presence:hover .art-presence circle:nth-of-type(1) {
  fill: var(--accent);
}

.bento__cell--presence:hover .art-presence circle:nth-of-type(2) {
  transform: scale(1.15);
  transition-delay: .1s;
}

.bento__cell--presence:hover .art-presence circle:nth-of-type(3) {
  fill: var(--accent);
  transition-delay: .2s;
}

.bento__cell--presence:hover .art-presence circle:nth-of-type(4) {
  fill: var(--accent);
  transition-delay: .3s;
}

.art-mobile {
  display: flex;
  align-items: flex-end;
  gap: 10px;
}

.art-mobile span {
  border: 1.5px solid var(--ink);
  border-radius: 4px;
  transition: transform .45s var(--ease-out);
}

.art-mobile__desk {
  width: 90px;
  height: 60px;
}

.art-mobile__tab {
  width: 48px;
  height: 64px;
}

.art-mobile .art-mobile__phone {
  width: 26px;
  height: 48px;
  border-radius: 6px;
  border-color: var(--accent);
  background: var(--accent-soft);
}

.bento__cell--mobile:hover .art-mobile__phone {
  transform: translateY(-6px);
}

.bento__cell--tune {
  display: grid;
  gap: 2rem;
  min-height: 0;
}

.tune {
  display: grid;
  gap: 1rem;
  align-content: center;
}

.tune li {
  display: grid;
  grid-template-columns: 9.5rem 1fr;
  align-items: center;
  gap: 1rem;
  font-family: var(--font-mono);
  font-size: .78rem;
  color: var(--ink-2);
}

.tune i {
  position: relative;
  height: 6px;
  border-radius: 999px;
  background: var(--tint);
  overflow: hidden;
}

.tune i::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform: scaleX(var(--v));
  transform-origin: left;
  transition: transform 1.2s var(--ease-out) .2s;
}

.js .bento__cell--tune:not(.is-visible) .tune i::after {
  transform: scaleX(0);
}

.bento__cell--tune.is-visible:hover .tune i::after,
html:not(.js) .bento__cell--tune:hover .tune i::after {
  transform: scaleX(min(1, calc(var(--v) + var(--boost, .06))));
  transition-duration: .6s;
}

.bento__cell--tune:hover .tune li:nth-child(1) i::after {
  transition-delay: 0s;
}

.bento__cell--tune:hover .tune li:nth-child(2) i::after {
  transition-delay: .07s;
}

.bento__cell--tune:hover .tune li:nth-child(3) i::after {
  transition-delay: .14s;
}

.bento__cell--tune:hover .tune li:nth-child(4) i::after {
  transition-delay: .21s;
}

@media (width >= 700px) {
  .bento {
    grid-template-columns: 1fr 1fr;
  }

  .bento__cell--build,
  .bento__cell--tune {
    grid-column: 1 / -1;
  }

  .bento__cell--tune {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }
}

@media (width >= 1000px) {
  .bento {
    grid-template-columns: repeat(6, 1fr);
  }

  .bento__cell--build {
    grid-column: span 4;
    grid-row: span 2;
  }

  .bento__cell--renew {
    grid-column: span 2;
    grid-row: span 2;
  }

  .bento__cell--landing,
  .bento__cell--presence,
  .bento__cell--mobile {
    grid-column: span 2;
  }

  .bento__cell--tune {
    grid-column: 1 / -1;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
  }
}


/* ---------- Ledger ---------- */

.ledger-section .section-lead {
  max-width: 44rem;
}

.ledger {
  display: grid;
  gap: 2.5rem;
}

.ledger__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: .9rem;
  margin-bottom: .25rem;
  border-bottom: 2px solid var(--ink);
  font-family: var(--font-mono);
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.ledger__col--us .ledger__head {
  border-color: var(--accent);
  color: var(--accent);
}

.ledger__list li {
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  font-weight: 500;
  letter-spacing: -.02em;
}

.ledger__row {
  display: grid;
  grid-template-columns: 7.5rem 1fr auto;
  align-items: baseline;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}

.ledger__row::after {
  content: '✓';
  font-family: var(--font-mono);
  font-size: .85rem;
  color: var(--accent);
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity .4s var(--ease) .35s, transform .4s var(--ease) .35s;
}

.ledger__row.is-visible::after,
html:not(.js) .ledger__row::after {
  opacity: 1;
  transform: none;
}

.ledger__row dt {
  font-family: var(--font-mono);
  font-size: .85rem;
  font-weight: 500;
  color: var(--accent);
}

.ledger__row dd {
  color: var(--ink-2);
}

@media (width >= 900px) {
  .ledger {
    grid-template-columns: 4fr 7fr;
    gap: 4rem;
  }
}

@media (width <= 480px) {
  .ledger__row {
    grid-template-columns: 1fr auto;
  }

  .ledger__row dd {
    grid-column: 1 / -1;
    grid-row: 2;
  }
}

.keyline {
  margin-top: clamp(4rem, 8vw, 7rem);
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

.keyline p {
  font-size: clamp(1.9rem, 4.6vw, 3.75rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -.045em;
  text-wrap: balance;
}


/* ---------- Tool / annotated mockup ---------- */

.tool__layout {
  display: grid;
  gap: 3rem;
  align-items: center;
}

.mock {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: 0 30px 60px -40px color-mix(in srgb, var(--shadow) 35%, transparent);
  overflow: hidden;
}

.mock__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}

.mock__bar i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--line-strong);
}

.mock__url {
  margin-left: 14px;
  padding: 3px 12px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: .7rem;
  color: var(--muted);
}

.mock__page {
  display: grid;
  gap: 10px;
  padding: clamp(14px, 2.5vw, 24px) clamp(14px, 2.5vw, 24px) clamp(14px, 2.5vw, 24px) clamp(28px, 4vw, 40px);
}

.mock__zone {
  position: relative;
  padding: 14px;
  border: 1px dashed transparent;
  border-radius: 4px;
  transition: border-color .3s var(--ease), background-color .3s var(--ease);
}

.mock__marker {
  position: absolute;
  left: -14px;
  top: 12px;
  transform: translateX(-50%);
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--on-ink);
  font-family: var(--font-mono);
  font-size: .72rem;
  transition: background-color .3s var(--ease), transform .3s var(--ease);
}

.mock__nav {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  font-size: .8rem;
}

.mock__nav b {
  margin-right: auto;
  font-weight: 600;
}

.mock__nav span {
  width: 36px;
  height: 6px;
  border-radius: 2px;
  background: var(--line);
}

.mock__hero {
  display: grid;
  gap: 8px;
}

.mock__h {
  height: 16px;
  width: 80%;
  border-radius: 2px;
  background: var(--ink);
}

.mock__h--short {
  width: 55%;
}

.mock__t {
  height: 8px;
  width: 65%;
  margin-top: 4px;
  border-radius: 2px;
  background: var(--line);
}

.mock__reviews {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.mock__reviews span {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 3px;
  font-size: .7rem;
  letter-spacing: .1em;
  color: #c08a1a;
}

.mock__faq {
  display: grid;
  gap: 6px;
}

.mock__faq span {
  height: 22px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(to right, var(--line) 0 45%, transparent 45%) left 6px / 100% 6px no-repeat;
}

.mock__cta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.mock__btn {
  padding: 8px 14px;
  border-radius: 3px;
  background: var(--accent);
  color: var(--on-accent);
  font-size: .75rem;
  font-weight: 500;
}

.mock__phone {
  font-family: var(--font-mono);
  font-size: .75rem;
  color: var(--muted);
}

.tool__list {
  display: grid;
  gap: .25rem;
}

.tool__item {
  display: grid;
  grid-template-columns: 2.25rem 1fr;
  gap: 1rem;
  padding: 1.25rem 1rem;
  border-radius: var(--radius-lg);
  transition: background-color .3s var(--ease);
}

.tool__num {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid var(--ink);
  border-radius: 50%;
  font-family: var(--font-mono);
  font-size: .8rem;
  transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}

.tool__item h3 {
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -.02em;
  margin-bottom: .3rem;
}

.tool__item p {
  color: var(--muted);
  font-size: .98rem;
}

.tool__item:hover {
  background: var(--surface);
}

.tool__item:hover .tool__num {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
}

.tool__layout:has(.tool__item--1:hover) .mock__zone--1,
.tool__layout:has(.tool__item--2:hover) .mock__zone--2,
.tool__layout:has(.tool__item--3:hover) .mock__zone--3,
.tool__layout:has(.tool__item--4:hover) .mock__zone--4 {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.tool__layout:has(.tool__item--1:hover) .mock__zone--1 .mock__marker,
.tool__layout:has(.tool__item--2:hover) .mock__zone--2 .mock__marker,
.tool__layout:has(.tool__item--3:hover) .mock__zone--3 .mock__marker,
.tool__layout:has(.tool__item--4:hover) .mock__zone--4 .mock__marker {
  background: var(--accent);
  transform: translateX(-50%) scale(1.12);
}

@media (width >= 1000px) {
  .tool__layout {
    grid-template-columns: 7fr 5fr;
    gap: 4rem;
  }
}


/* ---------- Process flow ---------- */

.flow {
  position: relative;
}

.flow__lines {
  display: none;
}

.flow__steps {
  position: relative;
  display: grid;
  gap: 2rem;
  padding-left: 0;
}

.flow__steps::before {
  content: '';
  position: absolute;
  left: 27px;
  top: 28px;
  bottom: 28px;
  width: 1px;
  background: var(--accent);
}

.flow__step {
  position: relative;
  display: grid;
  grid-template-columns: 56px 1fr;
  column-gap: 1.25rem;
}

.flow__node {
  grid-row: span 2;
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: var(--bg);
  font-family: var(--font-mono);
  font-size: .9rem;
  font-weight: 500;
  transition: background-color .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
}

.flow__step:hover .flow__node {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
}

.flow__step--loop .flow__node {
  border-style: dashed;
  border-color: var(--accent);
  color: var(--accent);
}

.flow__step h3 {
  align-self: end;
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -.02em;
  padding-top: .35rem;
}

.flow__step p {
  margin-top: .4rem;
  color: var(--muted);
  font-size: .98rem;
}

.flow__loop {
  margin-top: 2rem;
}

.flow__loop svg {
  display: none;
}

.flow__loop-label {
  display: inline-block;
  padding: .35rem .75rem;
  border: 1px dashed var(--accent);
  border-radius: 14px;
  font-family: var(--font-mono);
  font-size: .75rem;
  color: var(--accent);
}

@media (width >= 900px) {
  .flow__lines {
    display: block;
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 88px;
    overflow: visible;
  }

  .flow__lines path {
    fill: none;
    vector-effect: non-scaling-stroke;
  }

  .flow__track {
    stroke: var(--line-strong);
    stroke-width: 1;
    stroke-dasharray: 3 5;
  }

  .flow__main {
    stroke: var(--accent);
    stroke-width: 1.5;
    stroke-dasharray: 100;
    stroke-dashoffset: 0;
    transition: stroke-dashoffset 1.8s var(--ease-out) .2s;
  }

  .js .flow:not(.is-drawn) .flow__main {
    stroke-dashoffset: 100;
  }

  .flow__steps {
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
  }

  .flow__steps::before {
    content: none;
  }

  .flow__step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .flow__node {
    margin-top: 16px;
    margin-bottom: 1.5rem;
  }

  .flow__step h3 {
    align-self: auto;
    padding-top: 0;
  }

  .flow__step p {
    max-width: 16rem;
  }

  .flow__loop {
    position: relative;
    margin-top: 1.25rem;
    text-align: center;
  }

  .flow__loop svg {
    display: block;
    width: 100%;
    height: 48px;
    overflow: visible;
  }

  .flow__loop path {
    fill: none;
    stroke: var(--accent);
    stroke-width: 1;
    stroke-dasharray: 4 5;
    vector-effect: non-scaling-stroke;
  }

  .flow__loop-label {
    position: relative;
    margin-top: -1.1rem;
    background: var(--bg);
  }
}


/* ---------- Statement ---------- */

.statement {
  position: relative;
  padding-block: clamp(4rem, 9vw, 8rem);
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.statement::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, var(--line) 1px, transparent 1px);
  background-size: calc(100% / 12) 100%;
  opacity: .5;
  pointer-events: none;
}

.statement .container {
  position: relative;
}

.statement__title {
  font-size: clamp(2.2rem, 6.2vw, 5.6rem);
  font-weight: 600;
  line-height: .98;
  letter-spacing: -.055em;
}

.statement__accent {
  color: var(--accent);
}

.statement__text {
  margin-top: clamp(2rem, 4vw, 3rem);
  max-width: 40rem;
  margin-left: auto;
  font-size: clamp(1.0625rem, 1.5vw, 1.25rem);
  color: var(--ink-2);
}


/* ---------- Works / portfolio ---------- */

.works__grid {
  display: grid;
  gap: clamp(3.5rem, 7vw, 5.5rem) 2.5rem;
}

.project {
  position: relative;
  display: grid;
  gap: 1.75rem;
  align-content: start;
}

.project__media {
  position: relative;
  display: block;
  padding: 0 1.25rem 1.5rem 0;
  cursor: pointer;
}

.project__frame {
  position: relative;
  display: block;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background: var(--surface);
  overflow: hidden;
  box-shadow: 0 24px 50px -36px color-mix(in srgb, var(--shadow) 45%, transparent);
  transition: box-shadow .5s var(--ease), border-color .5s var(--ease);
}

.project__bar {
  display: flex;
  align-items: center;
  gap: 5px;
  height: 30px;
  padding: 0 12px;
  border-bottom: 3px solid var(--project-color);
  background: var(--bg);
}

.project__bar i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--line-strong);
}

.project__url {
  margin-left: 10px;
  font-family: var(--font-mono);
  font-size: .68rem;
  color: var(--muted);
}

.project__screen {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--project-color);
}

.project__screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 0;
  transform-origin: 50% 0;
  transition: object-position 6s cubic-bezier(.45, 0, .25, 1), transform .8s var(--ease-out);
}

.project__phone {
  position: absolute;
  right: 0;
  bottom: 0;
  width: clamp(72px, 20%, 150px);
  aspect-ratio: 390 / 844;
  padding: 4px;
  border-radius: 16px;
  background: var(--dark);
  box-shadow: 0 18px 36px -18px color-mix(in srgb, var(--shadow) 55%, transparent);
  transition: transform .6s var(--ease-out);
}

:root:not([data-theme='light']) .project__phone {
  box-shadow: 0 0 0 1px var(--line-strong), 0 18px 36px -18px color-mix(in srgb, var(--shadow) 55%, transparent);
}

.project__phone img {
  width: 100%;
  height: 100%;
  border-radius: 12px;
  object-fit: cover;
  object-position: 50% 0;
}

.project__media:hover .project__screen img,
.project:has(:focus-visible) .project__screen img {
  object-position: 50% 100%;
  transform: scale(1.03);
}

.project__media:hover .project__frame {
  border-color: var(--project-color);
  box-shadow: 0 36px 70px -40px color-mix(in srgb, var(--shadow) 60%, transparent);
}

.project__media:hover .project__phone {
  transform: translateY(-8px) rotate(-2deg);
}

.project__meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.project__num {
  font-family: var(--font-mono);
  font-size: .85rem;
  color: var(--muted);
}

.project__num::after {
  content: '';
  display: inline-block;
  width: 1.5rem;
  height: 1px;
  margin-left: 1rem;
  vertical-align: middle;
  background: var(--line-strong);
}

.project__badge {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .25rem .6rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: .66rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.project__badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--project-dot, var(--project-accent));
  box-shadow: 0 0 0 1px var(--project-color);
}

.project__name {
  font-size: clamp(1.6rem, 2.8vw, 2.25rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -.04em;
}

.project__category {
  margin-top: .45rem;
  font-family: var(--font-mono);
  font-size: .78rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted);
}

.project__desc {
  margin-top: 1rem;
  color: var(--ink-2);
  max-width: 32rem;
}

.project__tags {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin-top: 1.1rem;
}

.project__tags li {
  padding: .25rem .6rem;
  border-radius: 2px;
  background: var(--tint);
  font-family: var(--font-mono);
  font-size: .72rem;
  color: var(--ink-2);
}

.project__cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  margin-top: 1.4rem;
  padding: .35rem 0;
  font-weight: 600;
  color: var(--ink);
  transition: color .3s var(--ease);
}

.project__cta::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--ink);
  transform-origin: left;
  transition: transform .45s var(--ease-out), background-color .3s var(--ease);
}

.project__arrow {
  display: inline-grid;
  place-items: center;
  width: 1.9rem;
  height: 1.9rem;
  border: 1px solid var(--ink);
  border-radius: 50%;
  font-size: .9rem;
  transition: transform .45s var(--ease-out), background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}

.project__cta:hover,
.project:has(.project__media:hover) .project__cta {
  color: var(--accent);
}

.project__cta:hover::after,
.project:has(.project__media:hover) .project__cta::after {
  background: var(--accent);
  transform: scaleX(.3);
}

.project__cta:hover .project__arrow,
.project:has(.project__media:hover) .project__arrow {
  transform: translateX(6px) rotate(-45deg);
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
}

@media (hover: hover) and (pointer: fine) {
  .project__tags li,
  .project__desc {
    transition: opacity .45s var(--ease), transform .45s var(--ease);
  }

  .project__tags {
    opacity: .55;
  }

  .project:hover .project__tags {
    opacity: 1;
  }

  .project:hover .project__tags li {
    transform: translateY(-2px);
  }

  .project:hover .project__tags li:nth-child(2) {
    transition-delay: .05s;
  }

  .project:hover .project__tags li:nth-child(3) {
    transition-delay: .1s;
  }

  .project__media {
    cursor: none;
  }
}

.works__note {
  margin-top: clamp(3rem, 6vw, 5rem);
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: .78rem;
  color: var(--muted);
  max-width: 48rem;
}

.cursor-label {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 90;
  padding: .55rem .9rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--on-ink);
  font-family: var(--font-mono);
  font-size: .75rem;
  letter-spacing: .04em;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translate3d(-100px, -100px, 0) scale(.6);
  transition: opacity .25s var(--ease), scale .25s var(--ease);
}

.cursor-label.is-visible {
  opacity: 1;
}

@media (width >= 900px) {
  .project {
    grid-template-columns: 8fr 4fr;
    align-items: center;
    gap: 3.5rem;
  }

  .project__phone {
    width: 15%;
  }
}


/* ---------- Entry points & audit ---------- */

.entry__split {
  display: grid;
  gap: 1.5rem;
  align-items: stretch;
}

.entry__side {
  padding: clamp(1.75rem, 3.5vw, 3rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.entry__side h3 {
  margin-top: 1.75rem;
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  font-weight: 600;
  letter-spacing: -.03em;
  line-height: 1.15;
}

.entry__side p {
  margin-top: .75rem;
  color: var(--muted);
  max-width: 28rem;
}

.entry__art {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  height: 150px;
  border-radius: var(--radius);
}

.entry__art--new {
  border: 1.5px dashed var(--line-strong);
  background-image: radial-gradient(circle, var(--line) 1px, transparent 1.2px);
  background-size: 16px 16px;
}

.entry__plus {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 1.75rem;
  font-weight: 300;
  transition: transform .5s var(--ease-out);
}

.entry__side:hover .entry__plus {
  transform: rotate(90deg);
}

.entry__art--old {
  background: var(--bg);
}

.entry__legacy,
.entry__modern {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 38%;
  height: 110px;
  padding: 10px;
  border-radius: 3px;
  transition: transform .6s var(--ease-out), opacity .6s var(--ease);
}

.entry__legacy i:first-child {
  height: 18px;
}

.entry__legacy i:nth-child(3) {
  width: 40%;
  margin-left: auto;
}

.entry__modern {
  border: 1px solid var(--accent);
  background: var(--surface);
}

.entry__modern i {
  height: 8px;
  border-radius: 2px;
  background: var(--accent-soft);
}

.entry__modern i:first-child {
  height: 40px;
  background: var(--accent);
}

.entry__modern::after {
  content: '';
  width: 45%;
  height: 12px;
  margin-top: auto;
  border-radius: 2px;
  background: var(--ink);
}

.entry__side:hover .entry__legacy {
  transform: translateX(-6px) scale(.96);
  opacity: .6;
}

.entry__side:hover .entry__modern {
  transform: translateX(6px);
}

.entry__or {
  align-self: center;
  justify-self: center;
  display: grid;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: var(--tint);
  font-family: var(--font-mono);
  font-size: .75rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

@media (width >= 900px) {
  .entry__split {
    grid-template-columns: 1fr auto 1fr;
    gap: 0;
  }

  .entry__or {
    position: relative;
    z-index: 1;
    margin-inline: -1.75rem;
  }
}

.audit {
  display: grid;
  gap: 2rem;
  margin-top: clamp(3rem, 6vw, 4.5rem);
  padding: clamp(2rem, 4.5vw, 3.5rem);
  border-radius: var(--radius-lg);
  background: var(--dark);
  color: var(--dark-text);
  background-image: linear-gradient(to right, color-mix(in srgb, var(--dark-strong) 4%, transparent) 1px, transparent 1px);
  background-size: 48px 100%;
}

.audit__title {
  font-size: clamp(1.5rem, 2.8vw, 2.2rem);
  font-weight: 600;
  letter-spacing: -.03em;
  line-height: 1.15;
}

.audit__text p {
  margin-top: .75rem;
  color: var(--dark-muted);
  max-width: 30rem;
}

.audit__form {
  display: grid;
  gap: .75rem;
  align-self: center;
}

.audit__input {
  width: 100%;
  min-height: 54px;
  padding: .85rem 1rem;
  border: 1px solid var(--dark-line);
  border-radius: var(--radius);
  background: var(--dark-2);
  color: var(--dark-text);
  font-family: var(--font-mono);
  font-size: .95rem;
  transition: border-color .3s var(--ease);
}

.audit__input::placeholder {
  color: var(--dark-placeholder);
}

.audit__input:focus {
  outline: none;
  border-color: var(--lime);
}

.audit__input[aria-invalid='true'] {
  border-color: var(--dark-error);
}

.audit__error {
  grid-column: 1 / -1;
  min-height: 1.2em;
  font-size: .875rem;
  color: var(--dark-error-text);
}

.audit__error:empty {
  display: none;
}

@media (width >= 640px) {
  .audit__form {
    grid-template-columns: 1fr auto;
  }
}

@media (width >= 1000px) {
  .audit {
    grid-template-columns: 1fr 1.1fr;
    align-items: center;
    gap: 3rem;
  }
}


/* ---------- Audience ---------- */

.audience__inner {
  display: grid;
  gap: 2.5rem;
}

.audience__list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 1.5rem;
  align-content: start;
  counter-reset: audience;
}

.audience__list li {
  display: grid;
  gap: .35rem;
  padding: .9rem 0 1.1rem;
  border-top: 1px solid var(--line);
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -.015em;
  color: var(--ink);
  counter-increment: audience;
  transition: color .3s var(--ease), border-color .3s var(--ease);
}

.audience__list li::before {
  content: counter(audience, decimal-leading-zero);
  content: counter(audience, decimal-leading-zero) / '';
  font-family: var(--font-mono);
  font-size: .7rem;
  font-weight: 400;
  letter-spacing: .08em;
  color: var(--muted);
  transition: color .3s var(--ease);
}

.audience__list li:hover {
  color: var(--accent);
  border-top-color: var(--accent);
}

.audience__list li:hover::before {
  color: var(--accent);
}

.audience__list .audience__more {
  grid-column: 1 / -1;
  padding-bottom: 0;
  border-top-style: dashed;
  border-top-color: var(--line-strong);
  font-size: .95rem;
  font-weight: 400;
  font-style: italic;
  color: var(--muted);
  counter-increment: none;
}

.audience__list .audience__more::before {
  content: '+';
  content: '+' / '';
}

.audience__list .audience__more:hover {
  color: var(--muted);
  border-top-color: var(--line-strong);
}

.audience__list .audience__more:hover::before {
  color: var(--muted);
}

@media (width >= 700px) {
  .audience__list {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (width >= 1000px) {
  .audience__inner {
    grid-template-columns: 4fr 8fr;
    gap: 4rem;
  }

  .audience__list {
    grid-template-columns: repeat(4, 1fr);
    margin-top: 50px;
  }
}


/* ---------- Tech ---------- */

.tech__inner {
  display: grid;
  gap: 3rem;
}

.pipeline {
  position: relative;
  padding: 1.5rem;
  border: 1px solid var(--dark-line);
  border-radius: var(--radius-lg);
  background-image: radial-gradient(circle, var(--dark-dot) 1px, transparent 1.2px);
  background-size: 20px 20px;
}

.pipeline__label {
  display: block;
  margin-bottom: 1.25rem;
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .06em;
  color: var(--dark-muted);
}

.pipeline__nodes {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.pipeline__node {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .55rem .8rem;
  border: 1px solid var(--dark-line);
  border-radius: var(--radius);
  background: var(--dark);
  font-family: var(--font-mono);
  font-size: .78rem;
  letter-spacing: .08em;
  color: var(--dark-muted);
  transition: color .5s var(--ease), border-color .5s var(--ease), background-color .5s var(--ease);
}

.pipeline__node b {
  font-weight: 400;
  font-size: .66rem;
  color: var(--dark-faint);
  transition: color .5s var(--ease);
}

.pipeline__node.is-lit {
  border-color: var(--dark-accent);
  color: var(--dark-strong);
  background: var(--dark-lit);
}

.pipeline__node.is-lit b {
  color: var(--lime);
}

.pipeline__track {
  display: none;
}

@media (width >= 1000px) {
  .tech__inner {
    grid-template-columns: 5fr 7fr;
    gap: 5rem;
    align-items: start;
  }

  .tech__visual {
    position: sticky;
    top: calc(var(--header-h) + 3rem);
  }

  .pipeline {
    padding: 2rem 2rem 2rem 4.5rem;
  }

  .pipeline__nodes {
    flex-direction: column;
    gap: 1.6rem;
  }

  .pipeline__node {
    position: relative;
    padding: .85rem 1rem;
    font-size: .85rem;
  }

  .pipeline__node::before {
    content: '';
    position: absolute;
    left: calc(-2.5rem - 5px);
    top: 50%;
    width: 9px;
    height: 9px;
    border: 1px solid var(--dark-faint);
    border-radius: 50%;
    background: var(--dark);
    transform: translateY(-50%);
    transition: background-color .5s var(--ease), border-color .5s var(--ease);
  }

  .pipeline__node::after {
    content: '';
    position: absolute;
    left: -2.5rem;
    top: 50%;
    width: 2.5rem;
    height: 1px;
    background: var(--dark-line);
  }

  .pipeline__node.is-lit::before {
    background: var(--lime);
    border-color: var(--lime);
  }

  .pipeline__node.is-lit::after {
    background: var(--dark-accent);
  }

  .pipeline__track {
    display: block;
    position: absolute;
    left: 2rem;
    top: calc(2rem + 1.25rem + 1.2rem + 1.4rem);
    bottom: calc(2rem + 1.4rem);
    width: 1px;
    background: var(--dark-line);
  }

  .pipeline__fill {
    position: absolute;
    inset: 0;
    background: var(--dark-accent);
    transform: scaleY(var(--progress, 0));
    transform-origin: top;
    transition: transform .3s linear;
  }

  .pipeline__pulse {
    position: absolute;
    left: -2px;
    top: 0;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--lime);
    box-shadow: 0 0 10px var(--lime);
    animation: pulse-flow 3.2s linear infinite;
  }
}

@keyframes pulse-flow {
  0% {
    top: 0;
    opacity: 0;
  }

  10% {
    opacity: 1;
  }

  90% {
    opacity: 1;
  }

  100% {
    top: 100%;
    opacity: 0;
  }
}

.tech__benefits {
  border-top: 1px solid var(--dark-line);
}

.benefit {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: .4rem 1rem;
  padding: 2rem 0;
  border-bottom: 1px solid var(--dark-line);
}

.benefit__index {
  grid-row: span 2;
  padding-top: .45rem;
  font-family: var(--font-mono);
  font-size: .75rem;
  color: var(--dark-accent);
}

.benefit h3 {
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  font-weight: 600;
  letter-spacing: -.035em;
  line-height: 1.15;
}

.benefit p {
  color: var(--dark-muted);
  max-width: 32rem;
}

.spec {
  margin-top: 3rem;
  padding: 1.5rem;
  border: 1px dashed var(--dark-line);
  border-radius: var(--radius-lg);
}

.spec__title {
  font-family: var(--font-mono);
  font-size: .75rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--dark-muted);
  margin-bottom: 1rem;
}

.spec__list {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 0;
}

.spec__list div {
  display: flex;
  flex-direction: column-reverse;
  gap: .25rem;
  padding-right: 1.75rem;
  margin-right: 1.75rem;
  border-right: 1px solid var(--dark-line);
}

.spec__list div:last-child {
  border: 0;
  margin: 0;
  padding: 0;
}

.spec__list dt {
  font-family: var(--font-mono);
  font-size: .72rem;
  color: var(--dark-muted);
}

.spec__list dd {
  font-size: 2.5rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -.04em;
  color: var(--dark-strong);
  font-variant-numeric: tabular-nums;
}

.spec__note {
  margin-top: 1.25rem;
  padding-top: .9rem;
  border-top: 1px dashed var(--dark-line);
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .02em;
  color: var(--dark-muted);
}

.spec__note::before {
  content: '// ';
  color: var(--dark-faint);
}


/* ---------- About ---------- */

.why {
  max-width: 64rem;
}

.why__title {
  font-size: clamp(2rem, 5vw, 4.25rem);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -.045em;
  text-wrap: balance;
}

.why__title span {
  color: var(--muted);
}

.why__text {
  margin-top: 2rem;
  max-width: 42rem;
  font-size: clamp(1.125rem, 1.7vw, 1.35rem);
  line-height: 1.55;
  color: var(--ink-2);
}

.notes {
  margin-top: clamp(3.5rem, 7vw, 6rem);
  border-top: 1px solid var(--ink);
}

.notes__row {
  display: grid;
  gap: .75rem;
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--line);
}

.notes__side {
  font-family: var(--font-mono);
  font-size: .78rem;
  letter-spacing: .04em;
  color: var(--accent);
  text-transform: uppercase;
}

.notes__text {
  font-size: clamp(1.0625rem, 1.5vw, 1.2rem);
  color: var(--ink-2);
  max-width: 46rem;
}

@media (width >= 900px) {
  .notes__row {
    grid-template-columns: 3fr 9fr;
    gap: 3rem;
    padding: 2.25rem 0;
  }

  .notes__side {
    padding-top: .3rem;
  }
}


/* ---------- FAQ ---------- */

.faq__inner {
  max-width: calc(58rem + var(--gutter) * 2);
}

.faq__list {
  border-top: 1px solid var(--ink);
}

.faq__item {
  border-bottom: 1px solid var(--line-strong);
}

.faq__q {
  display: grid;
  grid-template-columns: 3.75rem 1fr 1.5rem;
  align-items: center;
  gap: 1rem;
  padding: 1.35rem 0;
  font-size: clamp(1.0625rem, 1.6vw, 1.25rem);
  font-weight: 500;
  letter-spacing: -.015em;
  cursor: pointer;
  list-style: none;
  transition: color .25s var(--ease);
}

.faq__q::-webkit-details-marker {
  display: none;
}

.faq__q:hover {
  color: var(--accent);
}

.faq__num {
  font-family: var(--font-mono);
  font-size: .75rem;
  font-weight: 400;
  color: var(--muted);
}

.faq__icon {
  position: relative;
  width: 1.5rem;
  height: 1.5rem;
  border: 1px solid currentColor;
  border-radius: 50%;
}

.faq__icon::before,
.faq__icon::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 9px;
  height: 1px;
  background: currentColor;
  transform: translate(-50%, -50%);
  transition: transform .35s var(--ease);
}

.faq__icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.faq__item[open] .faq__icon::after {
  transform: translate(-50%, -50%) rotate(0deg);
}

.faq__item[open] .faq__q {
  color: var(--accent);
}

.faq__a {
  overflow: hidden;
}

.faq__a p {
  padding: 0 2.5rem 1.6rem 4.75rem;
  color: var(--ink-2);
  max-width: 44rem;
}

@media (width <= 560px) {
  .faq__q {
    grid-template-columns: 1fr 1.5rem;
  }

  .faq__num {
    display: none;
  }

  .faq__a p {
    padding: 0 0 1.4rem;
  }
}


/* ---------- Contact ---------- */

.contact__head {
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.contact__title {
  font-size: clamp(2.2rem, 5.6vw, 4.75rem);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -.05em;
  max-width: 62rem;
}

.sheet {
  border: 1px solid var(--ink);
  border-radius: var(--radius-lg);
  background: var(--surface);
  overflow: hidden;
}

.sheet__head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: .75rem clamp(1.25rem, 3vw, 2rem);
  background: var(--dark);
  color: var(--dark-text);
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.sheet__group {
  display: grid;
  gap: 1.25rem;
  margin: 0;
  padding: clamp(1.5rem, 3vw, 2.25rem) clamp(1.25rem, 3vw, 2rem);
  border: 0;
  border-bottom: 1px solid var(--line);
  min-width: 0;
}

.sheet__legend {
  float: left;
  width: 100%;
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: .25rem;
  padding: 0;
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: -.02em;
}

.sheet__legend span {
  font-family: var(--font-mono);
  font-size: .75rem;
  font-weight: 500;
  color: var(--accent);
  padding: .15rem .45rem;
  border: 1px solid var(--accent);
  border-radius: 2px;
}

.sheet__fields {
  display: grid;
  gap: 1.25rem;
}

@media (width >= 900px) {
  .sheet__group {
    grid-template-columns: 14rem 1fr;
    column-gap: 3rem;
    align-items: start;
  }

  .sheet__group > .form-field,
  .sheet__group > .sheet__fields {
    grid-column: 2;
  }
}

@media (width >= 640px) {
  .sheet__fields--2 {
    grid-template-columns: 1fr 1fr;
  }
}

.form-field {
  display: grid;
  gap: .4rem;
  min-width: 0;
}

.form-field label,
.choice__legend {
  font-size: .9rem;
  font-weight: 500;
  color: var(--ink-2);
}

.req {
  color: var(--accent);
}

.form-field input:not([type='radio']):not([type='checkbox']),
.form-field textarea {
  width: 100%;
  min-height: 50px;
  padding: .8rem .95rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--bg);
  font-size: 1rem;
  transition: border-color .25s var(--ease), background-color .25s var(--ease), box-shadow .25s var(--ease);
}

.form-field textarea {
  min-height: 140px;
  resize: vertical;
}

.form-field input:not([type='radio']):not([type='checkbox']):hover,
.form-field textarea:hover {
  border-color: var(--muted);
}

.form-field input:not([type='radio']):not([type='checkbox']):focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--surface);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.form-field.is-invalid input:not([type='radio']):not([type='checkbox']),
.form-field.is-invalid textarea {
  border-color: var(--error);
}

.form-field.is-invalid .chip span {
  border-color: var(--error);
}

.form-error {
  font-size: .85rem;
  color: var(--error);
}

.form-error:empty {
  display: none;
}

.choice {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}

.choice__legend {
  padding: 0;
  margin-bottom: .6rem;
}

.choice__options {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.chip {
  position: relative;
  cursor: pointer;
}

.chip input {
  position: absolute;
  inset: 0;
  opacity: 0;
  margin: 0;
  cursor: pointer;
}

.chip span {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  min-height: 42px;
  padding: .55rem 1rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--bg);
  font-size: .925rem;
  transition: border-color .25s var(--ease), background-color .25s var(--ease), color .25s var(--ease);
}

.chip span::before {
  content: '';
  width: 8px;
  height: 8px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  transition: background-color .25s var(--ease), border-color .25s var(--ease);
}

.chip:hover span {
  border-color: var(--muted);
}

.chip input:checked + span {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
}

.chip input:checked + span::before {
  background: var(--accent);
  border-color: var(--accent);
}

.chip input:focus-visible + span {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  min-height: 44px;
  font-family: var(--font-mono);
  font-size: .75rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-2);
  cursor: pointer;
  transition: color .25s var(--ease), opacity .25s var(--ease);
}

.switch input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
  pointer-events: none;
}

.switch__track {
  position: relative;
  flex: none;
  width: 30px;
  height: 16px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  transition: border-color .25s var(--ease), background-color .25s var(--ease);
}

.switch__knob {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--muted);
  transition: transform .35s var(--ease-out), background-color .25s var(--ease);
}

.switch:has(input:checked) {
  color: var(--ink);
}

.switch input:checked + .switch__track {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.switch input:checked + .switch__track .switch__knob {
  background: var(--accent);
  transform: translateX(14px);
}

.switch input:focus-visible + .switch__track {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.switch:has(input:disabled) {
  opacity: .45;
  cursor: not-allowed;
}

@media (hover: hover) and (pointer: fine) {
  .switch:not(:has(input:disabled)):hover {
    color: var(--ink);
  }

  .switch:not(:has(input:disabled)):hover .switch__track {
    border-color: var(--accent);
  }
}

.switch--text {
  font-family: var(--font-sans);
  font-size: .9rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}

.sheet__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: clamp(1.5rem, 3vw, 2rem);
}

.sheet__note {
  font-size: .85rem;
  color: var(--muted);
}

.sheet__link {
  color: var(--ink-2);
  text-decoration: underline 1px var(--line-strong);
  text-underline-offset: .2em;
  transition: color .25s var(--ease), text-decoration-color .25s var(--ease);
}

@media (hover: hover) and (pointer: fine) {
  .sheet__link:hover {
    color: var(--accent);
    text-decoration-color: currentColor;
  }
}

.form-trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.sheet__foot .btn:disabled {
  opacity: .6;
  cursor: progress;
  pointer-events: none;
}

.form-status {
  margin: 0 clamp(1.25rem, 3vw, 2rem) clamp(1.25rem, 3vw, 2rem);
  padding: 1.1rem 1.25rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-size: .975rem;
}

.form-status:empty {
  display: none;
}

.form-status:focus {
  outline: none;
}

.form-status.is-success {
  border-color: var(--success-border);
  background: var(--success-bg);
  color: var(--success);
}

.form-status.is-error {
  border-color: var(--error-border);
  background: var(--error-bg);
  color: var(--error);
}

.form-status strong {
  display: block;
  margin-bottom: .2rem;
}

@media (width <= 560px) {
  .sheet__foot .btn {
    width: 100%;
  }

  .sheet__head span:last-child {
    display: none;
  }
}

.contact__strip {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}

.contact__strip li {
  display: grid;
  gap: .2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.contact__label {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}

.contact__strip a {
  font-size: 1.15rem;
  font-weight: 500;
  justify-self: start;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size .4s var(--ease-out), color .25s var(--ease);
}

.contact__strip a:hover {
  color: var(--accent);
  background-size: 100% 1px;
}

@media (width >= 760px) {
  .contact__strip {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
}


/* ---------- Footer ---------- */

.site-footer {
  padding: clamp(3rem, 6vw, 4.5rem) 0 2rem;
  background: var(--dark);
  color: var(--dark-text);
}

.schematic {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--dark-muted);
}

.schematic i {
  position: relative;
  flex: 1;
  height: 1px;
  background: var(--dark-line);
}

.schematic i::after {
  content: '';
  position: absolute;
  right: 0;
  top: -3px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: 1px solid var(--dark-muted);
  background: var(--dark);
}

.schematic span:nth-of-type(2) {
  color: var(--dark-accent);
}

.schematic span:last-child {
  color: var(--lime);
}

.site-footer__main {
  display: grid;
  gap: 2rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--dark-line);
}

.brand--footer {
  color: var(--dark-strong);
}

.brand--footer .brand__logo {
  height: 16px;
}

.site-footer__tagline {
  margin-top: .6rem;
  color: var(--dark-muted);
  font-size: .95rem;
}

.site-footer__nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.5rem;
}

.site-footer a {
  transition: color .25s var(--ease);
}

.site-footer__nav a,
.site-footer__contact a {
  color: var(--dark-text);
  font-size: .95rem;
}

.site-footer a:hover {
  color: var(--lime);
}

.site-footer__contact {
  display: grid;
  gap: .35rem;
  justify-items: start;
}

.socials {
  display: flex;
  gap: 1rem;
  margin-top: .6rem;
}

.socials a {
  font-family: var(--font-mono);
  font-size: .75rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--dark-muted);
}

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.5rem;
  font-family: var(--font-mono);
  font-size: .75rem;
  color: var(--dark-muted);
}

.site-footer__bottom ul {
  display: flex;
  gap: 1.5rem;
}

.site-footer__bottom a {
  font-size: .75rem;
  color: var(--dark-muted);
}

@media (width >= 1000px) {
  .site-footer__main {
    grid-template-columns: 1fr auto 1fr;
    align-items: start;
    gap: 3rem;
  }

  .site-footer__nav ul {
    justify-content: center;
    padding-top: .3rem;
  }

  .site-footer__contact {
    justify-items: end;
    text-align: right;
  }
}


/* ---------- Error page ---------- */

.error-page {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  padding-top: calc(var(--header-h) + clamp(2rem, 6vw, 4rem));
  overflow: hidden;
}

.error-page__inner {
  flex: 1;
  display: grid;
  gap: 2.5rem;
  align-content: center;
  padding-bottom: clamp(3rem, 6vw, 5rem);
}

.error-page__code {
  display: grid;
  gap: .75rem;
  justify-items: start;
  font-family: var(--font-mono);
}

.error-page__num {
  font-size: clamp(5.5rem, 17vw, 11rem);
  font-weight: 500;
  line-height: .9;
  letter-spacing: -.06em;
  color: var(--ink);
}

.error-page__num span {
  color: var(--accent);
}

.error-page__coord {
  letter-spacing: .04em;
}

.error-page .section-index {
  margin-bottom: 1rem;
}

.error-page__foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .5rem 1.5rem;
  padding-block: 1rem 1.25rem;
  font-family: var(--font-mono);
  font-size: .75rem;
  color: var(--muted);
}

.error-page__foot a {
  color: var(--ink-2);
  transition: color .25s var(--ease);
}

.error-page__foot a:hover {
  color: var(--accent);
}

@media (width >= 900px) {
  .error-page__inner {
    grid-template-columns: 1.3fr 1fr;
    align-items: center;
    gap: 4rem;
  }

  .error-page__code {
    order: 2;
    justify-items: end;
  }
}


/* ---------- Legal pages ---------- */

.legal-page {
  position: relative;
  padding-top: calc(var(--header-h) + clamp(2rem, 6vw, 4rem));
  overflow: clip;
}

.legal-page .hero__grid {
  bottom: auto;
  height: 32rem;
}

.legal__head {
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
}

.legal__meta {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: 2rem;
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .04em;
}

.legal__meta div {
  display: flex;
  gap: .5rem;
  padding: .3rem .6rem;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  background: var(--bg);
}

.legal__meta dt {
  color: var(--muted);
  text-transform: uppercase;
}

.legal__meta dd {
  color: var(--ink);
}

.legal__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2.5rem;
  padding-block: clamp(2rem, 4vw, 3rem) var(--section-y);
  border-top: 1px solid var(--line);
}

.legal__toc-title {
  margin-bottom: .75rem;
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
}

.legal__toc ol {
  list-style: none;
  counter-reset: toc;
  border-top: 1px solid var(--line);
}

.legal__toc li {
  counter-increment: toc;
  border-bottom: 1px solid var(--line);
}

.legal__toc a {
  display: flex;
  gap: .75rem;
  padding: .55rem 0;
  font-size: .9rem;
  color: var(--ink-2);
  transition: color .25s var(--ease);
}

.legal__toc a::before {
  content: counter(toc, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: .75rem;
  line-height: 1.6;
  color: var(--muted);
}

@media (hover: hover) and (pointer: fine) {
  .legal__toc a:hover {
    color: var(--accent);
  }
}

.legal__body {
  max-width: 46rem;
  color: var(--ink-2);
}

.legal__section + .legal__section {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
}

.legal__section h2 {
  display: flex;
  align-items: baseline;
  gap: .9rem;
  margin-bottom: 1.1rem;
  font-size: clamp(1.4rem, 2.4vw, 1.75rem);
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -.025em;
  color: var(--ink);
}

.legal__num {
  font-family: var(--font-mono);
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .04em;
  color: var(--accent);
}

.legal__section h3 {
  margin: 1.75rem 0 .5rem;
  font-family: var(--font-mono);
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink);
}

.legal__section p,
.legal__section ul {
  margin-bottom: 1rem;
}

.legal__section ul {
  padding-left: 1.25rem;
  list-style: disc;
}

.legal__section li + li {
  margin-top: .4rem;
}

.legal__section li::marker {
  color: var(--accent);
}

.legal__section strong {
  font-weight: 600;
  color: var(--ink);
}

.legal__section a {
  color: var(--accent);
  text-decoration: underline 1px color-mix(in srgb, var(--accent) 40%, transparent);
  text-underline-offset: .2em;
  transition: text-decoration-color .25s var(--ease);
}

@media (hover: hover) and (pointer: fine) {
  .legal__section a:hover {
    text-decoration-color: currentColor;
  }
}

.legal__section code {
  padding: .05rem .3rem;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--tint);
  font-family: var(--font-mono);
  font-size: .82em;
  color: var(--ink);
  vertical-align: text-bottom;
}

.legal__data {
  margin-bottom: 1rem;
  border-top: 1px solid var(--line);
}

.legal__data div {
  display: grid;
  gap: .15rem 1.5rem;
  padding: .7rem 0;
  border-bottom: 1px solid var(--line);
}

.legal__data dt {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .06em;
  line-height: 1.9;
  text-transform: uppercase;
  color: var(--muted);
}

.legal__data dd {
  color: var(--ink);
}

.legal__table-wrap {
  margin-bottom: 1rem;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.legal__table {
  width: 100%;
  min-width: 40rem;
  border-collapse: collapse;
  font-size: .9rem;
}

.legal__table th,
.legal__table td {
  padding: .8rem 1rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.legal__table tbody tr:last-child > * {
  border-bottom: 0;
}

.legal__table thead th {
  background: var(--tint);
  font-family: var(--font-mono);
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
}

.legal__table tbody th {
  font-weight: 600;
  color: var(--ink);
}

.legal__links {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.5rem;
  list-style: none;
}

@media (width >= 640px) {
  .legal__data div {
    grid-template-columns: 11rem 1fr;
  }
}

@media (width >= 900px) {
  .legal__layout {
    grid-template-columns: 15rem minmax(0, 1fr);
    gap: clamp(3rem, 6vw, 6rem);
  }

  .legal__toc {
    position: sticky;
    top: calc(var(--header-h) + 1.5rem);
    align-self: start;
  }
}


/* ---------- Reveal & motion ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .8s var(--ease-out), transform .8s var(--ease-out);
  transition-delay: var(--reveal-delay, 0s);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

.js .reveal-lines .line__inner {
  transform: translateY(105%);
  transition: transform 1s var(--ease-out);
}

.js .reveal-lines .line:nth-child(2) .line__inner {
  transition-delay: .12s;
}

.js .reveal-lines.is-visible .line__inner {
  transform: none;
}

.js .project.reveal .project__screen img {
  clip-path: inset(0 0 100% 0);
  transition: clip-path 1.1s var(--ease-out) .15s, object-position 6s cubic-bezier(.45, 0, .25, 1), transform .8s var(--ease-out);
}

.js .project.reveal.is-visible .project__screen img {
  clip-path: inset(0 0 0 0);
}

@keyframes stack-open {
  from {
    transform: translateY(calc(var(--i) * var(--gap) * .78));
    opacity: 0;
  }

  to {
    transform: none;
    opacity: 1;
  }
}

.js .stack__layer {
  animation: stack-open 1.3s var(--ease-out) both;
  animation-delay: calc(.25s + (4 - var(--i)) * .07s);
}

.js .stack__tag {
  animation: fade-in .6s var(--ease) both;
  animation-delay: calc(1.1s + var(--i) * .08s);
}

@keyframes fade-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    transition-delay: 0s !important;
  }

  .js .reveal,
  .js .reveal-lines .line__inner {
    opacity: 1;
    transform: none;
  }

  .js .project.reveal .project__screen img {
    clip-path: none;
  }

  .pipeline__pulse {
    display: none;
  }
}
