/* ==========================================================================
   Fullizzat — styles
   Palette and grid geometry come straight from the logo:
   ink #14161F, paper #F6F4EF, signal orange #FF5A36, stone #CFCAC0.
   ========================================================================== */

@font-face {
  font-family: 'FZ Display';
  src: url('/fonts/fz-display-bold.woff') format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'FZ Display';
  src: url('/fonts/fz-display-regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'FZ Text';
  src: url('/fonts/fz-text-regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'FZ Text';
  src: url('/fonts/fz-text-bold.woff') format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #14161f;
  --ink-2: #1b1e29;
  --ink-3: #252937;
  --line: #2c303d;
  --line-strong: #3d4152;
  --muted: #a5a8b2;
  --paper: #f6f4ef;
  --sand: #e9e5dc;
  --stone: #cfcac0;
  --ink-soft: #4a4d58;
  --signal: #ff5a36;
  --signal-hover: #ff7352;
  --error: #c2391a;

  --display: 'FZ Display', 'Avenir Next', 'Century Gothic', 'Futura', sans-serif;
  --text: 'FZ Text', 'Helvetica Neue', Helvetica, Arial, sans-serif;

  --wrap: 1240px;
  --gutter: clamp(20px, 5vw, 56px);
  --section-pad: clamp(96px, 13vw, 176px);
  --header-h: 72px;

  --r-cell: 6px;   /* chips, checkboxes: a logo cell at small size */
  --r-control: 10px;
  --r-panel: 20px;
}

/* -------------------------------------------------------------- base */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

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

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

a {
  color: inherit;
}

h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 700;
  margin: 0;
  text-wrap: balance;
}

p {
  margin: 0;
}

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

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

[hidden] {
  display: none !important;
}

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

.skip-link {
  position: fixed;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--signal);
  color: var(--ink);
  font-family: var(--display);
  font-weight: 700;
  border-radius: var(--r-control);
  text-decoration: none;
}
.skip-link:focus {
  top: 16px;
}

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

/* ----------------------------------------------------------- buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 10px 18px;
  border: 1.5px solid transparent;
  border-radius: var(--r-control);
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.9375rem;
  line-height: 1.2;
  letter-spacing: 0.005em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

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

.btn-primary {
  background: var(--signal);
  color: var(--ink);
}
.btn-primary:hover {
  background: var(--signal-hover);
}

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

.btn[disabled] {
  opacity: 0.7;
  cursor: progress;
}

/* ------------------------------------------------------------ header */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-h);
  transition: background-color 0.25s ease, border-color 0.25s ease;
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  background: rgba(20, 22, 31, 0.86);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 100%;
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.brand {
  display: block;
  flex: none;
}
.brand img {
  width: 148px;
  height: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.site-nav ul {
  display: flex;
  gap: 28px;
}

.site-nav ul a {
  font-family: var(--display);
  font-size: 0.9375rem;
  text-decoration: none;
  color: var(--muted);
  transition: color 0.15s ease;
}
.site-nav ul a:hover {
  color: var(--paper);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  margin-right: -10px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--paper);
  cursor: pointer;
}

.menu-toggle-box {
  position: relative;
  display: block;
  width: 22px;
  height: 14px;
  margin: auto;
}
.menu-toggle-box i {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.2s ease, top 0.2s ease;
}
.menu-toggle-box i:first-child {
  top: 2px;
}
.menu-toggle-box i:last-child {
  top: 10px;
}

.nav-open .menu-toggle-box i:first-child {
  top: 6px;
  transform: rotate(45deg);
}
.nav-open .menu-toggle-box i:last-child {
  top: 6px;
  transform: rotate(-45deg);
}

@media (max-width: 960px) {
  .menu-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
    padding: 24px var(--gutter) 32px;
    background: var(--ink);
    border-bottom: 1px solid var(--line);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0.2s;
  }

  .nav-open .site-nav {
    transform: none;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .nav-open {
    background: var(--ink);
    border-bottom-color: var(--line);
  }

  .site-nav ul {
    flex-direction: column;
    gap: 0;
  }

  .site-nav ul a {
    display: block;
    padding: 14px 0;
    font-size: 1.375rem;
    color: var(--paper);
    border-bottom: 1px solid var(--line);
  }

  .nav-cta {
    min-height: 54px;
  }
}

/* ------------------------------------------------- 3D stage (logo grid) */

.stage {
  position: fixed;
  inset: 0;
  z-index: 30;
  pointer-events: none;
  overflow: hidden;
  perspective: 1500px;
  contain: strict;
}

.rig {
  position: absolute;
  left: 0;
  top: 0;
  width: 0;
  height: 0;
  transform-style: preserve-3d;
  will-change: transform;
}

.cube,
.cube-core,
.cube-shell {
  position: absolute;
  transform-style: preserve-3d;
}

.cube {
  left: -50px;
  top: -50px;
  width: 100px;
  height: 100px;
}

.cube-core,
.cube-shell {
  inset: 0;
}

.face {
  position: absolute;
  inset: 0;
  border-radius: 14px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.cube-shell .face {
  border: 2.5px solid var(--cube-line, #4a4e60);
  border-radius: 14px;
  backface-visibility: visible;
  -webkit-backface-visibility: visible;
}

/* The flat SVG mark shows when 3D is off (no JS, reduced motion) */
.mark-fallback {
  width: 100%;
  height: auto;
  transition: opacity 0.4s ease;
}
.mark-fallback .c-fill {
  fill: var(--paper);
}
.mark-fallback .c-hot {
  fill: var(--signal);
}
.mark-fallback .c-empty {
  fill: none;
  stroke: #4a4e60;
  stroke-width: 2.5;
}
.use-3d .mark-fallback {
  opacity: 0;
  transition: none;
}

/* Anchors: empty boxes that tell the 3D grid where to sit.
   Without 3D (no JS / reduced motion) only the hero keeps its flat mark. */
.anchor {
  position: relative;
  aspect-ratio: 1;
}
html:not(.use-3d) .anchor:not(.hero-anchor) {
  display: none;
}

/* -------------------------------------------------------------- shared */

main > section {
  position: relative;
  padding-block: var(--section-pad);
}

.section-head h2 {
  font-size: clamp(2.125rem, 1.35rem + 3.1vw, 3.75rem);
  line-height: 1.04;
  letter-spacing: -0.022em;
}

.section-head p {
  margin-top: 20px;
  max-width: 34rem;
  font-size: 1.125rem;
  color: var(--muted);
}

[data-depth] {
  transform-origin: 50% 50%;
}

.has-depth [data-depth] {
  will-change: transform, opacity;
}

/* ---------------------------------------------------------------- hero */

.hero {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
}

main > .hero {
  padding-block: calc(var(--header-h) + 48px) 72px;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  align-items: center;
  gap: clamp(32px, 6vw, 96px);
}

.hero h1 {
  font-size: clamp(2.75rem, 1.1rem + 6.4vw, 6.5rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
  max-width: 10.5ch;
}

.lede {
  margin-top: clamp(24px, 3vw, 36px);
  max-width: 36rem;
  font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
  line-height: 1.6;
  color: #c9c9c6;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: clamp(28px, 4vw, 44px);
}

.hero-anchor {
  width: min(100%, 400px);
  justify-self: center;
}

@media (max-width: 860px) {
  .hero {
    align-items: flex-start;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .hero h1 {
    line-height: 1.03;
  }

  .hero-anchor {
    order: -1;
    width: min(46vw, 210px);
    justify-self: start;
    margin-left: 6px;
  }

  .actions .btn {
    flex: 1 1 200px;
  }
}

/* ------------------------------------------------------------ services */

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

.services-inner {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}

.services-aside {
  position: sticky;
  top: calc(var(--header-h) + 40px);
}

.services-anchor {
  width: min(100%, 300px);
  margin-top: clamp(40px, 6vh, 72px);
}

.service {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  column-gap: 24px;
  padding-block: 40px;
  border-top: 1px solid var(--line);
}
.service:first-child {
  border-top: 0;
  padding-top: 8px;
}

.service > :not(.cellmap) {
  grid-column: 2;
}

.service h3 {
  font-size: clamp(1.5rem, 1.25rem + 0.8vw, 1.875rem);
  line-height: 1.15;
  letter-spacing: -0.015em;
}

.service p {
  margin-top: 12px;
  max-width: 36rem;
  color: var(--muted);
}

.cellmap {
  grid-column: 1;
  grid-row: 1 / span 3;
  display: grid;
  grid-template-columns: repeat(3, 10px);
  gap: 4px;
  align-content: start;
  margin-top: 8px;
}
.cellmap i {
  width: 10px;
  height: 10px;
  border-radius: 2.5px;
  background: var(--line-strong);
}
.cellmap[data-cell='0'] i:nth-child(1),
.cellmap[data-cell='1'] i:nth-child(2),
.cellmap[data-cell='2'] i:nth-child(3),
.cellmap[data-cell='3'] i:nth-child(4),
.cellmap[data-cell='4'] i:nth-child(5),
.cellmap[data-cell='5'] i:nth-child(6),
.cellmap[data-cell='6'] i:nth-child(7),
.cellmap[data-cell='7'] i:nth-child(8),
.cellmap[data-cell='8'] i:nth-child(9) {
  background: var(--signal);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}
.tags li {
  padding: 5px 11px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-cell);
  font-size: 0.875rem;
  line-height: 1.4;
  color: #d9d7d1;
}

@media (max-width: 860px) {
  .services-inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .services-aside {
    position: relative;
    top: auto;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
  }

  .services-anchor {
    flex: none;
    width: 112px;
    margin-top: 0;
  }

  .service {
    grid-template-columns: 30px minmax(0, 1fr);
    column-gap: 16px;
    padding-block: 32px;
  }
  .service:first-child {
    border-top: 1px solid var(--line);
    padding-top: 32px;
  }
  .cellmap {
    grid-template-columns: repeat(3, 7px);
    gap: 3px;
    margin-top: 6px;
  }
  .cellmap i {
    width: 7px;
    height: 7px;
    border-radius: 2px;
  }
}

@media (max-width: 520px) {
  .services-aside {
    flex-direction: column;
    align-items: flex-start;
  }
  .services-anchor {
    display: none;
  }
}

/* ---------------------------------------------------------------- work */

.work {
  background: var(--ink-2);
}

.work-inner {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(48px, 7vw, 112px);
  align-items: center;
}

.work-copy h2 {
  font-size: clamp(2.125rem, 1.35rem + 3.1vw, 3.75rem);
  line-height: 1.04;
  letter-spacing: -0.022em;
}

.work-name {
  margin-top: clamp(28px, 3vw, 40px);
  font-size: clamp(1.375rem, 1.15rem + 0.8vw, 1.75rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.work-copy > p {
  margin-top: 14px;
  max-width: 34rem;
  color: var(--muted);
  font-size: 1.0625rem;
}

.work-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 28px;
  margin: 32px 0 0;
  max-width: 34rem;
}

.work-facts div {
  padding-block: 14px;
  border-top: 1px solid var(--line-strong);
}

.work-facts dt {
  font-size: 0.8125rem;
  color: var(--muted);
}

.work-facts dd {
  margin: 2px 0 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.35;
}

.status-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 8px;
  border-radius: 2.5px;
  background: var(--signal);
  vertical-align: 1px;
}

/* App window mock-up: a plain illustration of a desktop form app */

.work-visual {
  --p: 0;
  position: relative;
  perspective: 1400px;
  padding: 24px 0 64px;
}

.app-window {
  position: relative;
  border-radius: 14px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 50px 80px -40px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.06);
  overflow: hidden;
  transform: rotateY(calc(-14deg + var(--p) * 6deg)) rotateX(calc(7deg + var(--p) * 9deg));
  transform-origin: 60% 50%;
}

.app-titlebar {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 38px;
  padding-left: 14px;
  background: var(--sand);
  border-bottom: 1px solid var(--stone);
}

.app-icon {
  display: grid;
  grid-template-columns: repeat(2, 6px);
  gap: 2px;
}
.app-icon i {
  width: 6px;
  height: 6px;
  border-radius: 1.5px;
  background: var(--ink);
}
.app-icon i:nth-child(4) {
  background: var(--signal);
}

.app-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.8125rem;
}

.app-controls {
  display: flex;
  margin-left: auto;
  height: 100%;
}
.app-controls i {
  position: relative;
  width: 44px;
  height: 100%;
}
.app-controls i::before,
.app-controls i::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
}
.app-controls .min::before {
  width: 10px;
  height: 1.5px;
  margin: -1px 0 0 -5px;
  background: var(--ink-soft);
}
.app-controls .max::before {
  width: 9px;
  height: 9px;
  margin: -5px 0 0 -5px;
  border: 1.5px solid var(--ink-soft);
  border-radius: 1.5px;
}
.app-controls .close::before,
.app-controls .close::after {
  width: 12px;
  height: 1.5px;
  margin: -1px 0 0 -6px;
  background: var(--ink-soft);
  transform: rotate(45deg);
}
.app-controls .close::after {
  transform: rotate(-45deg);
}

.app-body {
  display: grid;
  grid-template-columns: 26% 1fr;
  min-height: 320px;
}

.app-side {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 18px 14px;
  background: #efece5;
  border-right: 1px solid var(--sand);
}

.side-item {
  height: 26px;
  border-radius: 6px;
  background: linear-gradient(var(--stone), var(--stone)) no-repeat 10px 50% / 60% 6px;
}
.side-item.short {
  background-size: 38% 6px;
}
.side-item.is-active {
  background: linear-gradient(var(--paper), var(--paper)) no-repeat 10px 50% / 60% 6px, var(--ink);
}

.app-main {
  display: grid;
  align-content: start;
  gap: 18px;
  padding: 20px 22px 22px;
}

.app-heading {
  width: 46%;
  height: 12px;
  border-radius: 3px;
  background: var(--ink);
}

.app-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 14px;
}

.app-field {
  display: grid;
  gap: 6px;
}
.app-field.wide {
  grid-column: 1 / -1;
}
.app-field i {
  width: 40%;
  height: 6px;
  border-radius: 2px;
  background: #b9b3a7;
}
.app-field b {
  height: 26px;
  border: 1.5px solid var(--stone);
  border-radius: 6px;
  background: #fff;
}
.app-field.tall b {
  height: 52px;
}

.app-actions {
  display: flex;
  justify-content: flex-start;
  gap: 10px;
}

.app-btn {
  display: inline-flex;
  align-items: center;
  height: 30px;
  padding: 0 14px;
  border-radius: 7px;
  background: var(--signal);
  color: var(--ink);
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.75rem;
}
.app-btn.ghost {
  width: 64px;
  background: none;
  border: 1.5px solid var(--stone);
}

.pdf-sheet {
  position: absolute;
  right: -2%;
  bottom: 0;
  width: 34%;
  aspect-ratio: 1 / 1.3;
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 16px 14px;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 30px 50px -18px rgba(0, 0, 0, 0.6);
  transform: translate3d(0, calc(var(--p) * 56px), 0) rotate(calc(4deg + var(--p) * 3deg));
}

.pdf-tag {
  justify-self: end;
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--signal);
  color: var(--ink);
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.625rem;
  letter-spacing: 0.04em;
}

.pdf-line {
  height: 5px;
  border-radius: 2px;
  background: var(--stone);
}
.pdf-line.head {
  width: 60%;
  height: 8px;
  background: var(--ink);
}
.pdf-line.short {
  width: 55%;
}

.pdf-box {
  height: 34px;
  border: 1.5px solid var(--stone);
  border-radius: 4px;
}

@media (max-width: 860px) {
  .work-inner {
    grid-template-columns: 1fr;
  }
  .work-visual {
    max-width: 560px;
    padding-bottom: 48px;
  }
}

@media (max-width: 560px) {
  .work-facts {
    grid-template-columns: 1fr;
  }
  .app-body {
    min-height: 240px;
    grid-template-columns: 22% 1fr;
  }
  .app-main {
    padding: 14px;
    gap: 12px;
  }
  .app-side {
    padding: 12px 8px;
  }
  .pdf-sheet {
    width: 38%;
    padding: 10px;
    gap: 6px;
  }
}

/* --------------------------------------------------------------- stack */

.stack-inner {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}

.keyboard {
  --p: 0;
  display: grid;
  gap: clamp(16px, 2vw, 22px);
  padding: clamp(20px, 3vw, 32px);
  border-radius: 24px;
  background: linear-gradient(180deg, #1d2030, #181a25);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 2px 0 #0d0f15, 0 18px 0 -6px #10121a, 0 60px 80px -40px rgba(0, 0, 0, 0.8);
  transform: perspective(1500px) rotateX(clamp(-6deg, calc(16deg + var(--p) * 22deg), 38deg));
  transform-origin: 50% 60%;
}

.key-row {
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr);
  align-items: center;
  gap: 16px;
}

.row-label {
  font-family: var(--display);
  font-size: 0.9375rem;
  line-height: 1.25;
  color: var(--muted);
}

.keys {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(10px, 1.4vw, 16px);
}

.key {
  --press: 0;
  --travel: 7px;
  position: relative;
  padding-bottom: var(--travel);
}

.key-cap {
  position: relative;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 6px;
  min-height: clamp(84px, 9vw, 112px);
  padding: 12px 8px;
  border-radius: 14px;
  color: var(--ink);
  background: var(--paper);
  background: color-mix(in srgb, var(--signal) calc(var(--press) * 100%), var(--paper));
  box-shadow:
    inset 0 -2px 0 rgba(20, 22, 31, 0.08),
    0 calc(var(--travel) * (1 - var(--press))) 0 #a9a294,
    0 calc(var(--travel) * (1 - var(--press)) + 12px) 18px -10px rgba(0, 0, 0, 0.7);
  transform: translateY(calc(var(--travel) * var(--press)));
  transition: background-color 0.2s ease;
}

.key-sym {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.625rem, 1.2rem + 1.4vw, 2.375rem);
  line-height: 1;
  letter-spacing: -0.02em;
}

.key-name {
  font-size: 0.8125rem;
  line-height: 1.2;
  text-align: center;
  color: var(--ink-soft);
}

.key-logo {
  width: auto;
  height: clamp(30px, 3vw, 40px);
  object-fit: contain;
}
.key.has-logo .key-sym {
  display: none;
}

@media (hover: hover) {
  .key:hover {
    --press: 1;
  }
  .key:hover .key-cap {
    transition: none;
  }
}

@media (max-width: 960px) {
  .stack-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .keyboard {
    padding: 16px 14px 18px;
    border-radius: 18px;
  }
  .key-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .key-cap {
    min-height: 82px;
    border-radius: 11px;
    padding: 10px 4px;
  }
  .key-name {
    font-size: 0.75rem;
  }
}

/* ------------------------------------------------------------- process */

.process {
  background: var(--ink-2);
}

.process-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
}

.process-anchor {
  flex: none;
  width: clamp(120px, 18vw, 230px);
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 40px);
  margin-top: clamp(56px, 7vw, 96px);
  counter-reset: none;
}

.step {
  padding-top: 28px;
  border-top: 1px solid var(--line-strong);
}

.step-num {
  display: block;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.75rem, 2rem + 2vw, 3.75rem);
  line-height: 1;
  letter-spacing: -0.02em;
  color: transparent;
  -webkit-text-stroke: 1.5px #5a5e70;
}

.step h3 {
  margin-top: 28px;
  font-size: 1.375rem;
  line-height: 1.2;
}

.step p {
  margin-top: 10px;
  color: var(--muted);
}

@media (max-width: 960px) {
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 48px;
  }
}

@media (max-width: 560px) {
  .process-head {
    flex-direction: column;
    align-items: flex-start;
  }
  .process-anchor {
    display: none;
  }
  .steps {
    grid-template-columns: 1fr;
    row-gap: 40px;
  }
  .step {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    column-gap: 12px;
  }
  .step-num {
    grid-row: 1 / span 2;
    font-size: 2.5rem;
  }
  .step h3 {
    margin-top: 0;
  }
}

/* -------------------------------------------------------------- models */

.model-list {
  margin-top: clamp(40px, 5vw, 64px);
  border-bottom: 1px solid var(--line);
}

.model {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 5fr) minmax(0, 3fr);
  gap: 32px;
  align-items: baseline;
  padding-block: 32px;
  border-top: 1px solid var(--line);
}

.model h3 {
  font-size: clamp(1.375rem, 1.15rem + 0.8vw, 1.75rem);
  line-height: 1.2;
}

.model p {
  color: var(--muted);
}

.model .model-fit {
  color: var(--paper);
}

.model-fit span {
  display: block;
  margin-bottom: 4px;
  font-family: var(--display);
  font-size: 0.8125rem;
  color: var(--signal);
}

@media (max-width: 760px) {
  .model {
    grid-template-columns: 1fr;
    gap: 10px;
    padding-block: 28px;
  }
  .model-fit {
    margin-top: 6px;
  }
}

/* ------------------------------------------------------------ founders */

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

.founders-inner {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}

.founder-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 2.5vw, 32px);
}

.founder {
  margin: 0;
}

.founder:nth-child(2) {
  margin-top: clamp(32px, 6vw, 88px);
}

.founder img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--r-panel);
  background: var(--sand);
}

.founder figcaption {
  margin-top: 16px;
}

.founder strong {
  display: block;
  font-family: var(--display);
  font-size: clamp(1.125rem, 1rem + 0.5vw, 1.375rem);
  line-height: 1.2;
}

.founder figcaption span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.9375rem;
}

@media (max-width: 860px) {
  .founders-inner {
    grid-template-columns: 1fr;
  }
}

/* ------------------------------------------------------------- contact */

.contact {
  background: var(--paper);
  color: var(--ink);
}

.contact :focus-visible {
  outline-color: var(--ink);
}

.contact .section-head p {
  color: var(--ink-soft);
}

.contact-inner {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}

.contact-anchor {
  width: clamp(150px, 16vw, 220px);
  margin-block: clamp(40px, 5vw, 64px);
}

.direct-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.125rem;
}

.direct-list {
  margin-top: 16px;
  border-top: 1px solid var(--stone);
}

.direct-list li {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding-block: 14px;
  border-bottom: 1px solid var(--stone);
}

.direct-list span {
  flex: none;
  width: 56px;
  font-size: 0.875rem;
  color: var(--ink-soft);
}

.direct-list a {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.1875rem);
  text-decoration: none;
  overflow-wrap: anywhere;
}
.direct-list a:hover {
  text-decoration: underline;
  text-decoration-color: var(--signal);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.form-card {
  background: #fff;
  border: 1px solid var(--sand);
  border-radius: var(--r-panel);
  padding: clamp(24px, 4vw, 44px);
  box-shadow: 0 1px 0 rgba(20, 22, 31, 0.04), 0 24px 48px -32px rgba(20, 22, 31, 0.25);
}

.contact-form {
  display: grid;
  gap: 22px;
}

.field {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.field label,
.field legend {
  font-weight: 700;
  font-size: 0.9375rem;
  line-height: 1.3;
}

.optional {
  font-weight: 400;
  color: var(--ink-soft);
}

.field input,
.field textarea {
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  border: 1.5px solid var(--stone);
  border-radius: var(--r-control);
  background: #fbfaf7;
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

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

.field input::placeholder,
.field textarea::placeholder {
  color: #8d8f97;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--ink);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(255, 90, 54, 0.22);
}

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

.field-error {
  min-height: 0;
  font-size: 0.875rem;
  color: var(--error);
}
.field-error:empty {
  display: none;
}

.field-hint {
  margin-top: -2px;
  font-size: 0.875rem;
  color: var(--ink-soft);
}

.choices {
  margin: 0;
  padding: 0;
  border: 0;
}

.choices legend {
  padding: 0;
  margin-bottom: 8px;
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 4px;
}

.choice {
  position: relative;
  display: block;
  cursor: pointer;
}

.choice input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.choice span {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 52px;
  padding: 12px 14px 12px 46px;
  border: 1.5px solid var(--stone);
  border-radius: var(--r-control);
  background: #fbfaf7;
  font-size: 0.9688rem;
  line-height: 1.3;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.choice span::before {
  content: '';
  position: absolute;
  left: 14px;
  top: 50%;
  width: 20px;
  height: 20px;
  margin-top: -10px;
  border: 1.5px solid #b9b3a7;
  border-radius: var(--r-cell);
  background: #fff;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.choice span::after {
  content: '';
  position: absolute;
  left: 21px;
  top: 50%;
  width: 6px;
  height: 11px;
  margin-top: -7px;
  border: solid var(--ink);
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg) scale(0.6);
  opacity: 0;
  transition: opacity 0.12s ease, transform 0.12s ease;
}

.choice:hover span {
  border-color: #a9a294;
}

.choice input:checked + span {
  border-color: var(--ink);
  background: var(--paper);
}

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

.choice input:checked + span::after {
  opacity: 1;
  transform: rotate(45deg) scale(1);
}

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

.choices[aria-invalid='true'] .choice span {
  border-color: var(--error);
}

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

.form-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 20px;
  margin-top: 4px;
}

.form-note {
  font-size: 0.875rem;
  color: var(--ink-soft);
}

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

.form-status {
  padding: 14px 16px;
  border-radius: var(--r-control);
  font-size: 0.9688rem;
}

.form-status.is-error {
  background: #fdeee9;
  color: #8e2a12;
}

.form-success {
  display: grid;
  gap: 16px;
  justify-items: start;
}

.form-success h3 {
  font-size: clamp(1.5rem, 1.25rem + 1vw, 2rem);
  line-height: 1.15;
}

.form-success p {
  color: var(--ink-soft);
  max-width: 32rem;
}

.form-success .btn-ghost {
  color: var(--ink);
  border-color: var(--stone);
}
.form-success .btn-ghost:hover {
  border-color: var(--ink);
}

.success-mark {
  display: grid;
  grid-template-columns: repeat(3, 14px);
  gap: 5px;
}
.success-mark i {
  width: 14px;
  height: 14px;
  border-radius: 3.5px;
  background: var(--ink);
}
.success-mark i:nth-child(5) {
  background: var(--signal);
}

@media (max-width: 860px) {
  .contact-inner {
    grid-template-columns: 1fr;
  }
  .contact-anchor {
    width: 140px;
    margin-block: 36px;
  }
}

@media (max-width: 560px) {
  .field-row,
  .choice-grid {
    grid-template-columns: 1fr;
  }
  .form-footer .btn {
    width: 100%;
  }
}

/* -------------------------------------------------------------- footer */

.site-footer {
  position: relative;
  z-index: 1;
  background: var(--ink);
  padding-top: 72px;
  font-size: 0.9375rem;
  color: var(--muted);
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 3fr) minmax(0, 4fr);
  gap: 40px;
}

.footer-brand img {
  width: 156px;
  height: auto;
}

.footer-brand p {
  margin-top: 18px;
  max-width: 22rem;
}

.footer-nav,
.footer-contact {
  display: grid;
  gap: 10px;
  align-content: start;
}

.site-footer a {
  text-decoration: none;
  width: fit-content;
}
.site-footer a:hover {
  color: var(--paper);
}

.footer-contact a {
  color: var(--paper);
  font-family: var(--display);
}

.footer-base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 56px;
  padding-block: 24px 32px;
  /* hairline only as wide as the content, not the padded wrapper */
  background: linear-gradient(var(--line), var(--line)) no-repeat center top / calc(100% - 2 * var(--gutter)) 1px;
  font-size: 0.875rem;
}

@media (max-width: 760px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
}

/* --------------------------------------------- plain result/404 pages */

.plain-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.plain-card {
  width: min(100%, 560px);
  display: grid;
  gap: 20px;
  justify-items: start;
}

.plain-card h1 {
  font-size: clamp(2rem, 1.5rem + 2vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.plain-card p,
.plain-card li {
  color: var(--muted);
}

.plain-card ul {
  list-style: disc;
  padding-left: 1.2em;
}

.plain-logo img {
  width: 150px;
  height: auto;
}

/* ---------------------------------------------------------- motion off */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}

@media print {
  .stage,
  .site-header,
  .form-card {
    display: none;
  }
  body,
  .contact {
    background: #fff;
    color: #000;
  }
}
