@font-face {
  font-family: "Schibsted Grotesk";
  src: url(fonts/schibsted-grotesk.woff2) format("woff2");
  font-weight: 400 900;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url(fonts/geist-mono.woff2) format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: dark;
  /* palette:start */
  --bg: #0a0a0b;
  --bg-rgb: 10 10 11;
  --surface: #121214;
  --code-bg: #0c0c0e;
  --ink: #f4f4f2;
  --body: #b4b5b8;
  --muted: #8a8b90;
  --accent: #f4f4f2;
  --accent-text: #c8c9cd;
  --accent-hover: #ffffff;
  --on-accent: #0a0a0b;
  --status: #8fe0bd;
  /* palette:end */
  --line: rgb(255 255 255 / 0.08);
  --line-strong: rgb(255 255 255 / 0.18);
  --radius: 16px;
  --sans: "Schibsted Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --header-h: 64px;
  --gutter: clamp(20px, 4vw, 48px);
  --section: clamp(80px, 10vw, 144px);
  --fast: 160ms ease;
  --slow: 640ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--body);
  font: 400 1rem/1.6 var(--sans);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}
h1,
h2,
h3 {
  margin: 0;
  color: var(--ink);
  font-weight: 500;
  text-wrap: balance;
}
p {
  margin: 0;
  text-wrap: pretty;
}
ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}
figure {
  margin: 0;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  color: inherit;
}
img {
  display: block;
}
:focus-visible {
  outline: 2px solid var(--accent-text);
  outline-offset: 3px;
  border-radius: 2px;
}
::selection {
  background: var(--accent);
  color: var(--on-accent);
}
.icon {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.icon-solid {
  fill: currentColor;
  stroke: none;
}
.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
.container {
  width: min(1280px, 100%);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 12px 18px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 600;
  transform: translateY(-200%);
}
.skip-link:focus {
  transform: none;
}

/* ---------- Type ---------- */
.label {
  color: var(--muted);
  font: 500 0.8125rem/1.4 var(--mono);
  letter-spacing: 0.04em;
}
.label.accent {
  color: var(--accent-text);
}
.title {
  font-size: clamp(2.125rem, 1.2rem + 2.6vw, 3.5rem);
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: -0.035em;
}
.title span {
  color: var(--muted);
}
.head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 24rem);
  align-items: end;
  gap: 20px 48px;
  margin-block: 20px clamp(40px, 5vw, 72px);
}
.head > p {
  font-size: 1.0625rem;
}
.section {
  padding-block: var(--section);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 10px 22px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: none;
  font-size: 1rem;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background-color var(--fast),
    border-color var(--fast),
    color var(--fast);
}
.btn:focus-visible {
  border-radius: 10px;
}
.btn .icon-move {
  transition: transform var(--fast);
}
.btn-primary {
  background: var(--accent);
  color: var(--on-accent);
}
.btn-ghost {
  border-color: var(--line-strong);
  color: var(--ink);
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgb(var(--bg-rgb) / 0.72);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}
.site-header .container {
  display: flex;
  align-items: center;
  gap: 16px;
  height: var(--header-h);
}
.brand {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.04em;
}
.brand b {
  color: var(--accent-text);
  font-weight: inherit;
}
/* The logo is larger than the nav: 4px of padding lifts its baseline 2px onto theirs. */
.site-header .brand {
  flex: 1;
  position: relative;
  left: -1px;
  padding-bottom: 4px;
}
.header-end {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
}
.nav-links {
  display: flex;
  gap: 4px;
}
.nav-links a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding-inline: 14px;
  color: var(--body);
  font-size: 0.9375rem;
  transition: color var(--fast);
}
.nav-links a[aria-current] {
  color: var(--ink);
}
.nav-links .nav-contact {
  display: none;
}
.header-cta {
  min-height: 40px;
  padding: 6px 14px;
  font-size: 0.9375rem;
}
.menu-btn {
  display: none;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: none;
  cursor: pointer;
}
.menu-btn .close,
.menu-btn[aria-expanded="true"] .open {
  display: none;
}
.menu-btn[aria-expanded="true"] .close {
  display: block;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-top: clamp(48px, 6vw, 88px);
  text-align: center;
}
.hero .label {
  margin-bottom: 20px;
}
.hero h1 {
  font-size: clamp(2.625rem, 1.2rem + 4.4vw, 5rem);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.04em;
  text-wrap: initial;
}
.hero h1 span {
  color: var(--muted);
}
.lead {
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem);
  line-height: 1.5;
}
.hero .lead {
  max-width: 34rem;
  margin: 20px auto 0;
}
.hero .actions {
  justify-content: center;
  margin-top: 28px;
}
/* A studio shot: the render is opaque, so its edges dissolve into the page. */
.machine {
  position: relative;
  z-index: -1;
  width: min(112vw, 1800px);
  aspect-ratio: 2000 / 867;
  margin: clamp(-150px, -8.6vw, -40px) 0 clamp(-90px, -4vw, -20px) 50%;
  transform: translateX(-50%);
  -webkit-mask-image:
    linear-gradient(transparent 6%, #000 26%, #000 66%, transparent 96%),
    linear-gradient(90deg, transparent, #000 16%, #000 84%, transparent);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(transparent 6%, #000 26%, #000 66%, transparent 96%),
    linear-gradient(90deg, transparent, #000 16%, #000 84%, transparent);
  mask-composite: intersect;
}
.machine img {
  width: 100%;
  height: 100%;
}
.tech {
  border-block: 1px solid var(--line);
}
.tech .container {
  display: grid;
  justify-items: center;
  padding-block: clamp(32px, 4vw, 56px);
}
.tech ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  width: 100%;
}
.tech li {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
}
.tech-primary {
  max-width: 760px;
  gap: 24px 0;
  margin-block: 24px clamp(32px, 4vw, 44px);
  color: var(--ink);
  font-size: 0.9375rem;
}
.tech-primary li {
  flex: 1 1 0;
  gap: 10px;
}
.tech-primary svg {
  width: 32px;
  height: 32px;
  fill: var(--ink);
}
.tech-primary li:nth-child(2) svg {
  scale: 1.3; /* the Go mark is a wide wordmark: it reads small in the same box */
}
/* Fixed cell widths keep a wrapped row centred with no orphan: 6 + 5, then 4 + 4 + 3. */
.tech-supporting {
  max-width: 820px;
  gap: 20px 0;
  margin-top: 20px;
  font-size: 0.875rem;
}
.tech-supporting li {
  flex: 0 0 16.66%;
  gap: 8px;
}
.tech-supporting svg {
  width: 22px;
  height: 22px;
  fill: var(--body);
}
/* MySQL and AWS are wordmark-heavy: they read small in the same box. */
.tech-supporting li:nth-child(7) svg,
.tech-supporting li:nth-child(8) svg {
  scale: 1.3;
}

/* ---------- Hairline grids ---------- */
.cells {
  display: grid;
  gap: 0 clamp(32px, 5vw, 72px);
}
.cell {
  min-width: 0;
  padding-block: 24px clamp(40px, 5vw, 64px);
  border-top: 1px solid var(--line-strong);
}
.cell h3 {
  font-size: clamp(1.375rem, 1.2rem + 0.5vw, 1.625rem);
  line-height: 1.2;
  letter-spacing: -0.03em;
}
.cell h3 + p {
  margin-top: 10px;
}
/* Six services read as one spec sheet: a row each, split by a single rule. */
.services {
  border-bottom: 1px solid var(--line-strong);
}
.service {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1.1fr) minmax(0, 1fr) 176px;
  align-items: start;
  gap: 16px clamp(24px, 3vw, 48px);
  padding-block: 28px;
  border-top: 1px solid var(--line-strong);
}
.service > .label {
  padding-top: 6px;
}
.service h3 {
  font-size: clamp(1.375rem, 1.2rem + 0.5vw, 1.625rem);
  line-height: 1.2;
  letter-spacing: -0.03em;
}
.service h3 + p {
  margin-top: 10px;
}
.service img {
  width: 100%;
  height: auto;
  margin-block: -12px;
}
.focus {
  grid-template-columns: repeat(12, 1fr);
}
.span-7 {
  grid-column: span 7;
}
.span-5 {
  grid-column: span 5;
}
.cell-label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}
.cell-label .icon {
  color: var(--accent-text);
}
.editor {
  margin-top: clamp(24px, 3vw, 32px);
  overflow: hidden;
  background: var(--code-bg);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.editor-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font: 0.8125rem/1.5 var(--mono);
}
.editor pre {
  margin: 0;
  padding: 14px 16px;
  overflow-x: auto;
  color: var(--body);
  font: 0.875rem/1.75 var(--mono);
}
.editor code {
  display: grid;
  font: inherit;
  counter-reset: ln;
}
.editor .l {
  min-height: 1.75em;
  white-space: pre;
  counter-increment: ln;
}
.editor .l::before {
  content: counter(ln);
  display: inline-block;
  width: 2.2em;
  color: var(--muted);
  user-select: none;
}
.kw {
  color: var(--accent-text);
}
.fn {
  color: var(--ink);
}
.str {
  color: var(--status);
}
.note {
  color: var(--muted);
  font-size: 0.8125rem;
}
.editor .note {
  padding: 10px 16px;
  border-top: 1px solid var(--line);
}
.stack {
  display: flex;
  flex-direction: column;
}
.stack > img {
  width: min(100%, 340px);
  height: auto;
  margin: auto;
  padding-block: 8px 20px;
}
.checks {
  display: grid;
  gap: 10px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.checks li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-size: 0.9375rem;
}
.checks .icon {
  color: var(--accent-text);
}
/* ---------- Inside the studio ---------- */
.tabs {
  display: flex;
  gap: clamp(20px, 3vw, 36px);
  border-bottom: 1px solid var(--line);
}
html:not(.js) .tabs {
  display: none;
}
.tabs button {
  position: relative;
  min-width: 44px;
  flex: 0 1 auto;
  min-height: 56px;
  padding: 8px 0;
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 1rem;
  white-space: nowrap;
  cursor: pointer;
  transition: color var(--fast);
}
.tabs button[aria-selected="true"] {
  color: var(--ink);
}
.tabs button[aria-selected="true"]::after {
  content: "";
  position: absolute;
  inset: auto 0 -1px;
  height: 2px;
  background: var(--accent-text);
}
.tabs button:focus-visible {
  outline-offset: -4px;
}
.showcase {
  border-bottom: 1px solid var(--line);
}
.show-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
}
.show-panel[hidden] {
  display: none;
}
.js .panels {
  display: grid;
}
.js .show-panel {
  grid-area: 1 / 1;
  min-width: 0;
}
.js .show-panel[hidden] {
  display: grid;
  visibility: hidden;
}
.show-panel + .show-panel {
  border-top: 1px solid var(--line);
}
.js .show-panel + .show-panel {
  border-top: 0;
}
.show-panel:focus-visible {
  outline-offset: -4px;
}
.scene {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  min-height: 400px;
  padding: 32px clamp(12px, 2vw, 32px);
  border-right: 1px solid var(--line);
}
.scene figure {
  display: contents;
}
.diagram {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  width: 100%;
}
.node {
  display: grid;
  justify-items: center;
  gap: 10px;
  flex: 0 1 180px;
  min-width: 0;
  color: var(--ink);
  font-size: 0.9375rem;
  text-align: center;
}
.node img {
  width: 100%;
  max-width: 180px;
  height: auto;
}
.connector {
  position: relative;
  flex: 0 0 clamp(14px, 3vw, 40px);
  height: 1px;
  margin-top: clamp(38px, 5.2vw, 66px);
  background: var(--line-strong);
}
.connector::before {
  content: "";
  position: absolute;
  top: -3px;
  left: 0;
  width: 100%;
  height: 7px;
  background: radial-gradient(circle 3px at 3px 50%, var(--accent-text) 96%, transparent);
}
.scene figcaption {
  color: var(--muted);
  font: 0.8125rem/1.5 var(--mono);
  text-align: center;
}
.scene-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(28px, 3.4vw, 48px);
}
.scene-copy h3 {
  margin-block: 14px;
  font-size: clamp(1.625rem, 1.3rem + 1.1vw, 2.375rem);
  line-height: 1.1;
  letter-spacing: -0.035em;
}
.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin-top: 24px;
  color: var(--muted);
  font: 0.8125rem/1.5 var(--mono);
}
.disclaimer {
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.875rem;
}

/* ---------- Approach ---------- */
.principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px clamp(24px, 3vw, 48px);
}
.principle {
  padding-top: 20px;
  border-top: 1px solid var(--line-strong);
}
.principle > span {
  color: var(--muted);
  font: 500 0.8125rem/1.4 var(--mono);
  letter-spacing: 0.04em;
}
.principle h3 {
  margin-block: clamp(28px, 4vw, 56px) 10px;
  font-size: clamp(1.375rem, 1.2rem + 0.5vw, 1.625rem);
  line-height: 1.2;
  letter-spacing: -0.03em;
}

/* ---------- Contact: no box, the address itself is the call to action ---------- */
.contact {
  padding-bottom: var(--section);
}
.contact-email {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: clamp(16px, 2vw, 24px);
  border-block: 1px solid var(--line-strong);
  color: var(--ink);
  font-size: clamp(1.625rem, 1.2rem + 1.8vw, 2.75rem);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.035em;
}
/* Glyph side bearing: the "h" starts on the rule, not inside it. */
.contact-email span {
  margin-left: -0.08em;
}
.contact-email .icon {
  width: 0.7em;
  height: 0.7em;
  margin-right: -0.14em; /* the arrow's tip, not its viewBox, meets the rule's end */
  stroke-width: 1.5;
  transition: transform var(--fast);
}
.contact-foot {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 24rem);
  gap: 32px 48px;
  margin-top: clamp(24px, 3vw, 36px);
}
.contact-alt {
  margin-top: clamp(24px, 3vw, 36px);
}
.copy-status {
  min-height: 1.5em;
  margin-top: 8px;
  font-size: 0.875rem;
}
html:not(.js) #copy {
  display: none;
}
.contact-foot h3 {
  color: var(--muted);
  font: 500 0.8125rem/1.4 var(--mono);
  letter-spacing: 0.04em;
}
.contact-foot ul {
  display: grid;
  gap: 6px;
  margin-top: 12px;
  font-size: 0.9375rem;
}

/* ---------- Footer ---------- */
.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 40px;
  padding-block: 24px;
  color: var(--muted);
  font-size: 0.875rem;
}
.foot-brand {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px 16px;
}
.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0 8px;
  margin-inline: -8px;
}
.foot-links a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding-inline: 8px;
  color: var(--body);
  transition: color var(--fast);
}

/* ---------- Hover ---------- */
@media (hover: hover) {
  .btn-primary:hover {
    background: var(--accent-hover);
  }
  .btn-ghost:hover {
    border-color: var(--ink);
  }
  .btn:hover .icon-move {
    transform: translateX(3px);
  }
  .contact-email:hover {
    border-color: var(--ink);
  }
  .contact-email:hover .icon {
    transform: translateX(8px);
  }
  .nav-links a:hover,
  .foot-links a:hover,
  .tabs button:hover {
    color: var(--ink);
  }
}

/* ---------- Motion ---------- */
@keyframes packet {
  0% {
    opacity: 0;
    transform: none;
  }
  15%,
  85% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateX(calc(100% - 6px));
  }
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translate(-50%, 28px);
  }
}
@keyframes fade-in {
  from {
    opacity: 0;
  }
}
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
  .machine {
    animation: rise 900ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }
  .connector::before {
    animation: packet 2.8s ease-in-out infinite;
  }
  .js .reveal {
    opacity: 0;
    transform: translateY(16px);
    transition:
      opacity var(--slow),
      transform var(--slow);
  }
  .js .reveal.visible {
    opacity: 1;
    transform: none;
  }
  .js .show-panel:not([hidden]) > * {
    animation: fade-in 240ms ease;
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .head {
    grid-template-columns: 1fr;
  }
  .head > p {
    max-width: 34rem;
  }
  .focus {
    grid-template-columns: 1fr 1fr;
  }
  .span-5 {
    grid-column: span 1;
  }
  .span-7 {
    grid-column: 1 / -1;
  }
  .show-panel {
    grid-template-columns: 1fr;
  }
  .scene {
    min-height: 280px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
}
@media (max-width: 760px) {
  .tech-primary li {
    flex: 0 0 33.33%;
  }
  .machine {
    width: 150vw;
    margin-top: -11vw;
  }
  .service {
    grid-template-columns: minmax(0, 1fr) 96px;
    gap: 14px 16px;
  }
  .service > .label {
    grid-column: 1 / -1;
    padding-top: 0;
  }
  .service img {
    grid-area: 2 / 2;
    margin-block: -6px;
  }
  .service ul {
    grid-column: 1 / -1;
  }
  .principles {
    grid-template-columns: 1fr;
  }
  .principle {
    padding-bottom: 20px;
  }
  .principle h3 {
    margin-top: 20px;
  }
  .menu-btn {
    display: grid;
  }
  html:not(.js) .menu-btn {
    display: none;
  }
  .js .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    margin: 0;
    padding: 8px var(--gutter) 16px;
    background: var(--bg);
    border-bottom: 1px solid var(--line-strong);
  }
  .js .nav-links.open {
    display: flex;
  }
  .nav-links a {
    min-height: 48px;
    padding-inline: 0;
    font-size: 1rem;
  }
  .nav-links a + a {
    border-top: 1px solid var(--line);
  }
  .nav-links .nav-contact {
    display: flex;
  }
}
@media (max-width: 640px) {
  .contact-email .icon {
    display: none;
  }
  .contact-foot {
    grid-template-columns: 1fr;
  }
  .focus {
    grid-template-columns: 1fr;
  }
  .span-5,
  .span-7 {
    grid-column: auto;
  }
  .tabs {
    gap: 0;
  }
  .tabs button {
    flex: 1 1 auto;
    padding-inline: 6px;
    font-size: 0.875rem;
    border-right: 0;
  }
}
@media (max-width: 420px) {
  .tabs button {
    padding-inline: 4px;
    font-size: 0.8125rem;
  }
  .header-cta {
    display: none;
  }
  .hero .actions .btn {
    flex: 1 1 100%;
  }
}

/* ---------- Services ---------- */
.service ul {
  display: grid;
  gap: 6px;
  padding-top: 4px;
  font-size: 0.9375rem;
}
.services-more {
  display: flex;
  justify-content: center;
  margin-top: 24px;
}
.page-head {
  padding-block: clamp(48px, 6vw, 88px) clamp(40px, 5vw, 64px);
}
.page-head h1 {
  margin-top: 20px;
  font-size: clamp(2.625rem, 1.2rem + 4.4vw, 5rem);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.04em;
}
.page-head h1 span {
  color: var(--muted);
}
.page-head .lead {
  max-width: 36rem;
  margin-top: 20px;
}
.jump {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 32px;
}
.jump a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding-inline: 14px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  font-size: 0.875rem;
  transition:
    color var(--fast),
    border-color var(--fast);
}
.svc-group {
  display: grid;
  grid-template-columns: minmax(0, 22rem) minmax(0, 1fr);
  gap: 32px clamp(32px, 6vw, 96px);
  padding-block: clamp(36px, 5vw, 64px);
  border-top: 1px solid var(--line);
  scroll-margin-top: var(--header-h);
}
.svc-intro {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  align-self: start;
}
.svc-intro img {
  width: min(100%, 280px);
  height: auto;
  margin-bottom: 8px;
}
.svc-intro h2 {
  margin-top: 8px;
  font-size: clamp(1.625rem, 1.3rem + 1.1vw, 2.25rem);
  line-height: 1.12;
  letter-spacing: -0.035em;
}
.svc-intro p:last-child {
  margin-top: 12px;
}
.svc-cat + .svc-cat {
  margin-top: 40px;
}
.svc-cat h3 {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  font-size: 1.125rem;
  letter-spacing: -0.02em;
}
.svc-cat ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 32px;
  margin-top: 16px;
  font-size: 0.9375rem;
}
.delivery {
  border-top: 1px solid var(--line);
}
.delivery .section-title {
  margin-bottom: 32px;
  font-size: clamp(1.625rem, 1.3rem + 1.1vw, 2.25rem);
  letter-spacing: -0.035em;
}
@media (hover: hover) {
  .jump a:hover {
    border-color: var(--ink);
    color: var(--ink);
  }
}
@media (max-width: 1000px) {
  .svc-group {
    grid-template-columns: 1fr;
  }
  .svc-intro {
    position: static;
  }
}
@media (max-width: 640px) {
  .svc-cat ul {
    grid-template-columns: 1fr;
  }
}
@media (min-width: 761px) and (max-width: 1000px) {
  .service {
    grid-template-columns: 2.5rem minmax(0, 1fr) minmax(0, 1fr);
  }
  .service img {
    display: none;
  }
}

/* ---------- Main services: the three things people come for ---------- */
/* Subgrid: titles, lists and links share one line across all three columns. */
.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 clamp(32px, 4vw, 56px);
}
.feature {
  display: grid;
  grid-row: span 6;
  grid-template-rows: subgrid;
  padding-top: 24px;
  border-top: 1px solid var(--line-strong);
}
.feature img {
  width: 100%;
  height: auto;
  margin-block: 12px 20px;
}
.feature h3 {
  font-size: clamp(1.5rem, 1.3rem + 0.7vw, 1.875rem);
  line-height: 1.15;
  letter-spacing: -0.035em;
}
.feature h3 + p {
  margin-top: 12px;
}
.feature ul {
  display: grid;
  align-content: start;
  gap: 6px;
  margin-top: 20px;
  font-size: 0.9375rem;
}
.more {
  display: inline-flex;
  justify-self: start;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding-top: 20px;
  color: var(--ink);
  font-weight: 500;
}
.more .icon-move {
  transition: transform var(--fast);
}
.more-label {
  margin-block: clamp(48px, 6vw, 80px) 16px;
}

/* ---------- FAQ ---------- */
.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
  gap: 32px clamp(32px, 6vw, 96px);
}
.faq .title {
  margin-top: 20px;
}
.faq details {
  border-top: 1px solid var(--line-strong);
}
.faq details:last-child {
  border-bottom: 1px solid var(--line-strong);
}
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 60px;
  padding-block: 14px;
  color: var(--ink);
  font-size: 1.0625rem;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary .icon {
  transition: transform var(--fast);
}
.faq details[open] summary .icon {
  transform: rotate(45deg);
}
.faq details p {
  max-width: 40rem;
  padding-bottom: 20px;
}
@media (hover: hover) {
  .more:hover .icon-move {
    transform: translateX(3px);
  }
}
@media (max-width: 1000px) {
  .faq-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 760px) {
  .features {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .feature {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }
  .machine {
    margin-bottom: -16vw;
  }
  .hero h1 {
    text-wrap: balance;
  }
  /* Balance stops at a forced break, so each line of the heading balances on its own. */
  .hero h1 span {
    display: block;
  }
  .hero .lead {
    text-wrap: balance;
  }
  .feature img {
    align-self: center;
    max-width: 340px;
  }
  .tech-supporting li {
    flex-basis: 25%;
  }
}

/* Types once on load, in CSS only: no layout shift, and the text is there without JS. */
.hero-type {
  position: relative;
  width: fit-content;
  margin-inline: auto;
}
.hero-type span {
  display: block;
}
/* Below 375px the label wraps, and a wrapped line can't be revealed left to right. */
@media (prefers-reduced-motion: no-preference) and (min-width: 375px) {
  .hero-type span {
    animation: type-in 1.4s steps(40) 0.2s both;
  }
  .hero-type::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 1px;
    background: currentColor;
    animation:
      type-caret 1.4s steps(40) 0.2s both,
      type-caret-out 0.4s linear 2.2s both;
  }
}
@keyframes type-in {
  from {
    clip-path: inset(0 100% 0 0);
  }
  to {
    clip-path: inset(0 0 0 0);
  }
}
@keyframes type-caret {
  from {
    left: 0;
  }
  to {
    left: 100%;
  }
}
@keyframes type-caret-out {
  to {
    opacity: 0;
  }
}

/* ---------- Contact form: hairline fields, no boxes ---------- */
html:not(.js) .contact-form {
  display: none; /* it posts with fetch; without JS, the email link and Telegram remain */
}
.contact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px clamp(24px, 3vw, 40px);
}
.field-wide {
  grid-column: 1 / -1;
}
.field label {
  display: block;
  color: var(--muted);
  font: 500 0.8125rem/1.4 var(--mono);
  letter-spacing: 0.04em;
}
.field input,
.field textarea {
  display: block;
  width: 100%;
  min-height: 44px;
  padding: 8px 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--muted);
  border-radius: 0;
  color: var(--ink);
  font: inherit;
  font-size: 1rem; /* below 16px, iOS zooms the page on focus */
  transition: border-color var(--fast);
}
.field textarea {
  resize: vertical;
}
/* The underline is the focus indicator: it brightens and thickens instead of a ring. */
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 1px 0 var(--ink);
}
.hp {
  position: absolute;
  left: -9999px;
}
.form-end {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
}
.form-end .btn:disabled {
  opacity: 0.5;
  cursor: progress;
}
.form-note {
  color: var(--muted);
  font-size: 0.875rem;
}
.contact-form .copy-status {
  margin-top: -12px;
}
.contact-side h3 + ul + h3 {
  margin-top: 32px;
}
.contact-side .actions {
  margin-top: 12px;
}
@media (max-width: 1000px) {
  .contact-foot {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 640px) {
  .contact-form {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- Privacy ---------- */
.page-head .actions {
  margin-top: 28px;
}
.prose {
  max-width: 40rem;
  padding-bottom: clamp(64px, 8vw, 112px);
}
.prose h2 {
  margin-top: 32px;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}
.prose h2:first-child {
  margin-top: 0;
}
.prose p {
  margin-top: 8px;
}
.prose a,
.form-note a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.form-note a {
  display: inline-block;
  padding-block: 3px; /* reaches the 24px minimum target */
}

/* ---------- Language switch ---------- */
.lang-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  color: var(--body);
  font: 500 0.8125rem/1 var(--mono);
  letter-spacing: 0.04em;
  transition: color var(--fast);
}
@media (hover: hover) {
  .lang-link:hover {
    color: var(--ink);
  }
}
