/* ==========================================================================
   Ingenious Technologies — marketing site
   Light editorial design: ivory paper, ink type, serif display headlines,
   hairline rules and a single rust accent used sparingly.
   Plain CSS, no build step.
   1. Tokens   2. Base   3. Layout & type   4. Components
   5. Home sections   6. Inner pages   7. Motion   8. Responsive
   ========================================================================== */

/* 1. Tokens --------------------------------------------------------------- */
:root {
  --bg: #f6f3ec;
  --bg-2: #eeeae0;
  --surface: #fbfaf6;
  --surface-2: #ffffff;
  --line: rgba(22, 20, 17, 0.12);
  --line-2: rgba(22, 20, 17, 0.22);
  --text: #161411;
  --text-2: #4d4840;
  --text-3: #6f6a60;
  --accent: #b8471b;
  --accent-rgb: 184, 71, 27;
  --ok: #2f8f57;
  --error: #b42318;

  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Inter Tight", "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  --container: 1280px;
  --gutter: clamp(16px, 4vw, 48px);
  --section-y: clamp(48px, 6vw, 88px);
  --header-h: 80px;
  --r-sm: 4px;
  --r: 6px;
  --r-lg: 10px;
  --r-xl: 14px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  color-scheme: light;
}

/* Ink areas: the footer, the discovery band and the featured engagement model */
.theme-dark,
.site-footer,
.model.is-featured {
  --bg: #161411;
  --bg-2: #1d1a16;
  --surface: #201d19;
  --surface-2: #27231e;
  --line: rgba(246, 243, 236, 0.12);
  --line-2: rgba(246, 243, 236, 0.24);
  --text: #f6f3ec;
  --text-2: #c9c3b7;
  --text-3: #9d978b;
  --accent: #e8875a;
  --accent-rgb: 232, 135, 90;
  --ok: #5fd08f;
  color-scheme: dark;
  background: var(--bg);
  color: var(--text);
}

/* 2. Base ----------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-optical-sizing: auto;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

/* Faint paper grain — static, so it costs nothing per frame */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

html.menu-open {
  overflow: hidden;
}

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

img {
  height: auto;
}

a {
  color: inherit;
}

button {
  font: inherit;
  color: inherit;
}

::selection {
  background: rgba(var(--accent-rgb), 0.2);
  color: var(--text);
}

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

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: var(--r);
  background: var(--text);
  color: var(--bg);
  font-weight: 500;
  text-decoration: none;
  transform: translateY(-150%);
  transition: transform 0.3s var(--ease);
}

.skip-link:focus {
  transform: none;
}

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

svg.i {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

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

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

.section-alt {
  background: var(--bg-2);
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

p {
  margin: 0;
  text-wrap: pretty;
}

/* Display headlines: Inter Tight, tightly tracked */
.display,
.h1,
.h2 {
  font-family: var(--font-display);
  font-weight: 600;
}

.display {
  font-size: clamp(44px, 6vw, 92px);
  line-height: 1;
  letter-spacing: -0.045em;
}

.h1 {
  font-size: clamp(40px, 5.4vw, 80px);
  line-height: 1.02;
  letter-spacing: -0.042em;
}

.h2 {
  font-size: clamp(32px, 4vw, 58px);
  line-height: 1.05;
  letter-spacing: -0.038em;
}

.h3 {
  font-size: clamp(22px, 2vw, 28px);
  line-height: 1.2;
}

.display em,
.h1 em,
.h2 em,
.statement-text em {
  font-style: normal;
}

/* Only the hero and the closing call to action colour a headline word */
.hero .display em,
.hero .display em .wi,
.cta-panel .h1 em,
.cta-panel .h1 em .wi {
  color: var(--accent);
}

.lead {
  max-width: 56ch;
  color: var(--text-2);
  font-size: clamp(18px, 1.45vw, 21px);
  line-height: 1.55;
}

.muted {
  color: var(--text-2);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--text-2);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  line-height: 1;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--accent);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 28px clamp(32px, 6vw, 96px);
  align-items: end;
  margin-bottom: clamp(48px, 6vw, 88px);
}

.section-head > .eyebrow {
  grid-column: 1 / -1;
}

.section-head-aside {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}

.section-head-aside p {
  color: var(--text-2);
  max-width: 46ch;
}

/* 4. Components ----------------------------------------------------------- */

/* Buttons */
.btn {
  --h: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  height: var(--h);
  padding: 0 26px;
  border: 1px solid transparent;
  border-radius: var(--r);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.005em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}

.btn-icon {
  display: grid;
  place-items: center;
  transition: transform 0.45s var(--ease);
}

.btn-icon svg {
  width: 13px;
  height: 13px;
}

.btn:hover .btn-icon {
  transform: translate(2px, -2px);
}

.btn-primary {
  background: var(--text);
  color: var(--bg);
}

.btn-primary:hover {
  background: color-mix(in srgb, var(--text) 84%, var(--accent));
}

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

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

.btn-sm {
  --h: 42px;
  gap: 10px;
  padding: 0 18px;
  font-size: 14px;
}

.btn-block {
  width: 100%;
  justify-content: space-between;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 5px;
  border-bottom: 1px solid var(--line-2);
  color: var(--text);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: gap 0.4s var(--ease), border-color 0.3s;
}

.link-arrow svg {
  width: 13px;
  height: 13px;
}

.link-arrow:hover {
  gap: 13px;
  border-color: var(--text);
}

/* Status */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-2);
  font-size: 14.5px;
  text-decoration: none;
  transition: color 0.3s;
}

.kicker svg {
  width: 12px;
  height: 12px;
  transition: transform 0.4s var(--ease);
}

.kicker:hover {
  color: var(--text);
}

.kicker:hover svg {
  transform: translate(2px, -2px);
}

.live-dot {
  position: relative;
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ok);
}

.live-dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid var(--ok);
  animation: ping 2.4s var(--ease) infinite;
}

@keyframes ping {
  0% { transform: scale(0.6); opacity: 0.9; }
  80%, 100% { transform: scale(1.8); opacity: 0; }
}

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  display: flex;
  align-items: center;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  transition: transform 0.5s var(--ease), background-color 0.4s, border-color 0.4s;
}

.site-header.is-scrolled {
  background: rgba(246, 243, 236, 0.88);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--line);
}

.site-header.is-hidden {
  transform: translateY(-100%);
}

.menu-open .site-header {
  background: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  border-bottom-color: transparent;
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  width: 32px;
  height: 32px;
}

.brand-name {
  display: flex;
  flex-direction: column;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
}

.brand-sub {
  margin-top: 5px;
  color: var(--text-3);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
}

.nav {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.nav-list {
  display: flex;
  gap: clamp(20px, 2.6vw, 40px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-list a {
  position: relative;
  display: block;
  padding: 6px 0;
  color: var(--text-2);
  font-size: 15px;
  text-decoration: none;
  transition: color 0.25s;
}

.nav-list a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.45s var(--ease);
}

.nav-list a:hover,
.nav-list a[aria-current="page"] {
  color: var(--text);
}

.nav-list a:hover::after,
.nav-list a[aria-current="page"]::after {
  transform: scaleX(1);
  transform-origin: left;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.menu-toggle {
  position: relative;
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.menu-toggle span {
  position: absolute;
  left: 13px;
  right: 13px;
  height: 1.5px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.45s var(--ease), top 0.45s var(--ease);
}

.menu-toggle span:nth-child(1) { top: 17px; }
.menu-toggle span:nth-child(2) { top: 24px; }

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  top: 20.5px;
  transform: rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  top: 20.5px;
  transform: rotate(-45deg);
}

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 49;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
  padding: calc(var(--header-h) + 24px) var(--gutter) 32px;
  overflow-y: auto;
  background: var(--bg);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.45s var(--ease), visibility 0.45s;
}

.mobile-menu.is-open {
  opacity: 1;
  visibility: visible;
}

.mobile-menu ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.m-link {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  font-family: var(--font-display);
  font-size: clamp(34px, 9vw, 48px);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.05;
  text-decoration: none;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
  transition-delay: calc(var(--i, 0) * 60ms + 80ms);
}

.m-link[aria-current="page"] {
  color: var(--accent);
}

.m-link small {
  color: var(--text-3);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
}

.mobile-menu.is-open .m-link {
  opacity: 1;
  transform: none;
}

.mobile-menu-foot {
  display: grid;
  gap: 18px;
}

.mobile-menu-foot a:not(.btn) {
  color: var(--text-2);
  text-decoration: none;
}

/* Cards */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 280px;
  padding: clamp(26px, 2.6vw, 40px);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  transition: border-color 0.4s;
}

.card:hover {
  border-color: var(--line-2);
}

.card h3 {
  font-size: clamp(21px, 1.8vw, 24px);
}

.card p {
  color: var(--text-2);
  font-size: 15.5px;
}

/* Tags read as a quiet dotted line of text, not chips */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 0;
  margin: auto 0 0;
  padding: 6px 0 0;
  list-style: none;
  color: var(--text-3);
  font-size: 13.5px;
}

.tags li + li::before {
  content: "·";
  margin-inline: 9px;
  color: var(--line-2);
}

/* Technology lists */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 0;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--text);
  font-size: clamp(16px, 1.3vw, 18px);
}

.chips li + li::before {
  content: "/";
  margin-inline: 14px;
  color: var(--line-2);
}

.check-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  display: flex;
  gap: 12px;
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.5;
}

.check-list .i {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  color: var(--accent);
}

/* FAQ */
.faq {
  border-top: 1px solid var(--line);
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 0;
  cursor: pointer;
  font-size: clamp(18px, 1.6vw, 22px);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.3;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq-plus {
  position: relative;
  flex: none;
  width: 20px;
  height: 20px;
  transition: transform 0.5s var(--ease), color 0.3s;
}

.faq-plus::before,
.faq-plus::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 1.5px;
  background: currentColor;
  transform: translate(-50%, -50%);
}

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

.faq details[open] .faq-plus {
  color: var(--accent);
  transform: rotate(45deg);
}

.faq-answer {
  max-width: 72ch;
  padding: 0 60px 30px 0;
  color: var(--text-2);
}

@supports (interpolate-size: allow-keywords) {
  :root {
    interpolate-size: allow-keywords;
  }

  .faq details::details-content {
    height: 0;
    overflow: clip;
    transition: height 0.5s var(--ease), content-visibility 0.5s allow-discrete;
  }

  .faq details[open]::details-content {
    height: auto;
  }
}

/* 5. Home sections -------------------------------------------------------- */

/* Hero */
.hero {
  position: relative;
  padding-top: calc(var(--header-h) + clamp(40px, 6vw, 96px));
  padding-bottom: var(--section-y);
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(24px, 4vw, 64px);
  align-items: center;
}

.hero-copy .display {
  margin-top: 32px;
}

.hero-copy .lead {
  margin-top: 32px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 44px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 32px;
  margin: 56px 0 0;
  padding: 24px 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
  color: var(--text-2);
  font-size: 14px;
}

.hero-meta li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-meta .i {
  width: 16px;
  height: 16px;
  color: var(--accent);
}

.hero-visual {
  position: relative;
  width: 100%;
  max-width: 580px;
  aspect-ratio: 1;
  justify-self: end;
}

/* A hairline orbit just outside the globe's dots */
.hero-visual::before {
  content: "";
  position: absolute;
  inset: 7%;
  border: 1px solid var(--line);
  border-radius: 50%;
}

.globe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* Industries: a calm, centred line on wide screens; scrolls on phones */
.ticker {
  padding: 30px 0;
  overflow: hidden;
  border-block: 1px solid var(--line);
}

.ticker-track {
  display: flex;
  justify-content: center;
}

.ticker ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 26px;
  margin: 0;
  padding: 0 var(--gutter);
  list-style: none;
}

.ticker ul[aria-hidden="true"] {
  display: none;
}

.ticker li {
  color: var(--text-2);
  font-family: var(--font-display);
  font-size: clamp(18px, 1.6vw, 22px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.1;
  white-space: nowrap;
}

.ticker li.sep {
  color: var(--accent);
  font-family: var(--font-sans);
  font-size: 9px;
}

.ticker li.sep:last-child {
  display: none;
}

@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* Statement with scroll-scrubbed words */
.statement-text {
  max-width: 1080px;
  font-family: var(--font-display);
  font-size: clamp(26px, 3.3vw, 48px);
  font-weight: 500;
  letter-spacing: -0.032em;
  line-height: 1.16;
}

.statement .eyebrow {
  margin-bottom: 40px;
}

.js [data-scrub] .sw {
  color: color-mix(in srgb, var(--text) 20%, transparent);
  transition: color 0.4s;
}

.js [data-scrub] .sw.is-lit {
  color: var(--text);
}

/* Services: hairline grid. Each cell draws its own rules so they fade in with
   the cell; column-end cells drop the right rule (see breakpoints below). */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}

.svc-cell {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 320px;
  padding: clamp(28px, 2.8vw, 40px) clamp(22px, 2.4vw, 36px) clamp(28px, 2.8vw, 36px);
  border-bottom: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
  transition: background-color 0.45s;
}

.svc-cell:not(:nth-child(3n)) {
  border-right: 1px solid var(--line);
}

.svc-cell:hover {
  background: var(--surface-2);
}

.svc-cell-num {
  margin-bottom: 28px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.06em;
}

.svc-cell h3 {
  font-family: var(--font-display);
  font-size: clamp(22px, 1.8vw, 26px);
  font-weight: 600;
  letter-spacing: -0.028em;
  line-height: 1.15;
}

.svc-cell p {
  max-width: 40ch;
  color: var(--text-2);
  font-size: 15.5px;
}

.svc-cell .tags {
  padding-top: 18px;
}

.svc-cell-arrow {
  position: absolute;
  top: clamp(26px, 2.6vw, 38px);
  right: clamp(22px, 2.4vw, 36px);
  color: var(--text-3);
  transition: transform 0.5s var(--ease), color 0.3s;
}

.svc-cell-arrow svg {
  width: 15px;
  height: 15px;
}

.svc-cell:hover .svc-cell-arrow {
  color: var(--accent);
  transform: translate(3px, -3px);
}

.discovery {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px 48px;
  margin-top: clamp(40px, 5vw, 64px);
  padding: clamp(32px, 4vw, 56px);
  border-radius: var(--r-lg);
}

.discovery-copy {
  display: grid;
  gap: 16px;
  max-width: 640px;
}

.discovery h3 {
  font-family: var(--font-display);
  font-size: clamp(26px, 2.6vw, 38px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

.discovery p {
  color: var(--text-2);
}

/* Stats */
.stats {
  border-block: 1px solid var(--line);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.stat {
  padding: clamp(36px, 5vw, 72px) clamp(16px, 2.4vw, 36px);
  border-left: 1px solid var(--line);
}

.stat:first-child {
  border-left: 0;
  padding-left: 0;
}

.stat-num {
  font-family: var(--font-display);
  font-size: clamp(52px, 6vw, 92px);
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 0.95;
}

.stat-num .unit {
  color: var(--accent);
}

.stat-label {
  margin-top: 18px;
  color: var(--text-2);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* Work cards */
.work-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(48px, 6vw, 88px) clamp(20px, 3vw, 40px);
  align-items: start;
}

.work-card > a,
.work-card > div {
  display: flex;
  flex-direction: column;
  gap: 18px;
  color: inherit;
  text-decoration: none;
}

.work-cover {
  position: relative;
  aspect-ratio: 4 / 3;
  margin-bottom: 6px;
  overflow: hidden;
  border-radius: var(--r);
  background: #161411;
}

.work-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.4s var(--ease);
}

.work-card a:hover .work-cover img {
  transform: scale(1.035);
}

.work-view {
  position: absolute;
  right: 18px;
  bottom: 18px;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #f6f3ec;
  color: #161411;
  opacity: 0;
  transform: scale(0.6) rotate(-45deg);
  transition: opacity 0.4s, transform 0.6s var(--ease);
}

.work-view svg {
  width: 15px;
  height: 15px;
}

.work-card a:hover .work-view {
  opacity: 1;
  transform: none;
}

.work-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 16px;
  color: var(--text-3);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.work-meta span:first-child {
  color: var(--accent);
}

.work-title {
  font-family: var(--font-display);
  font-size: clamp(22px, 2vw, 28px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.18;
}

.work-desc {
  color: var(--text-2);
  font-size: 15.5px;
}

.work-results {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 48px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.work-results strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(26px, 2.2vw, 32px);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.work-results span {
  color: var(--text-3);
  font-size: 13.5px;
}

.work-foot {
  display: flex;
  justify-content: center;
  margin-top: clamp(56px, 7vw, 96px);
}

/* Process */
.process-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(40px, 7vw, 112px);
  align-items: start;
}

.process-intro {
  position: sticky;
  top: calc(var(--header-h) + 48px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}

.process-intro p {
  color: var(--text-2);
  max-width: 42ch;
}

.steps {
  margin: 0;
  padding: 0;
  list-style: none;
  border-bottom: 1px solid var(--line);
}

.step {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  gap: 12px 24px;
  padding: clamp(32px, 4vw, 48px) 0;
  border-top: 1px solid var(--line);
  transition: opacity 0.6s var(--ease);
}

.js .step {
  opacity: 0.35;
}

.js .step.is-active {
  opacity: 1;
}

.step-num {
  padding-top: 12px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.06em;
}

.step h3 {
  font-family: var(--font-display);
  font-size: clamp(26px, 2.6vw, 36px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

.step p {
  margin-top: 16px;
  color: var(--text-2);
  max-width: 48ch;
}

.step .tags {
  margin-top: 18px;
}

.step-time {
  padding-top: 14px;
  color: var(--text-3);
  font-size: 13px;
  white-space: nowrap;
}

/* Tech stack */
.stack {
  border-top: 1px solid var(--line);
}

.stack-row {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 14px 32px;
  align-items: baseline;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.stack-row h3 {
  color: var(--text-3);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* Why us */
.features {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}

.feature {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 40px clamp(16px, 2vw, 32px) 8px 0;
}

.feature + .feature {
  padding-left: clamp(16px, 2vw, 32px);
  border-left: 1px solid var(--line);
}

.feature .i {
  width: 28px;
  height: 28px;
  margin-bottom: 20px;
  color: var(--accent);
}

.feature h3 {
  font-size: 20px;
}

.feature p {
  color: var(--text-2);
  font-size: 15.5px;
}

/* Testimonials */
.quote-slider {
  display: grid;
}

.quotes {
  display: grid;
}

.quote {
  grid-area: 1 / 1;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(18px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease), visibility 0.8s;
}

.quote.is-active {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.quote-slider > .eyebrow {
  justify-self: start;
  margin-bottom: clamp(40px, 5vw, 64px);
}

.quote blockquote {
  max-width: 30ch;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(26px, 3.2vw, 44px);
  font-weight: 500;
  line-height: 1.18;
  letter-spacing: -0.03em;
  text-indent: -0.45em;
}

.quote blockquote::before {
  content: "\201C";
  color: var(--accent);
}

.quote blockquote::after {
  content: "\201D";
  color: var(--accent);
}

.quote figcaption {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 44px;
}

.avatar {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--text);
  color: var(--bg);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.quote cite {
  display: block;
  font-style: normal;
  font-weight: 500;
}

.quote figcaption span {
  color: var(--text-3);
  font-size: 14.5px;
}

.slider-controls {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: clamp(48px, 6vw, 72px);
}

.slider-bar {
  position: relative;
  flex: 1;
  height: 1px;
  overflow: hidden;
  background: var(--line-2);
}

.slider-bar span {
  position: absolute;
  inset: 0;
  background: var(--text);
  transform: scaleX(0);
  transform-origin: 0 50%;
}

.slider-bar span.is-running {
  animation: fill 9s linear forwards;
}

.quote-slider:hover .slider-bar span,
.quote-slider:focus-within .slider-bar span {
  animation-play-state: paused;
}

@keyframes fill {
  to { transform: scaleX(1); }
}

.slider-count {
  color: var(--text-3);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.slider-count b {
  color: var(--text);
  font-weight: 500;
}

.slider-btns {
  display: flex;
  gap: 8px;
}

.slider-btn {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  padding: 0;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}

.slider-btn:hover {
  border-color: var(--text);
  background: var(--text);
  color: var(--bg);
}

.slider-btn .i {
  width: 18px;
  height: 18px;
}

.slider-btn.prev .i {
  transform: rotate(180deg);
}

/* CTA */
.cta-panel {
  text-align: center;
}

.cta-panel .h1 {
  max-width: 16ch;
  margin: 32px auto 0;
}

.cta-panel p {
  max-width: 50ch;
  margin: 28px auto 0;
  color: var(--text-2);
  font-size: clamp(16px, 1.3vw, 19px);
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 44px;
}

/* Footer */
.site-footer {
  position: relative;
  padding-top: var(--section-y);
  overflow: hidden;
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
  gap: 48px;
}

.footer-brand p {
  max-width: 34ch;
  margin-top: 24px;
  color: var(--text-2);
  font-size: 15.5px;
}

.footer-address {
  margin-top: 20px;
  color: var(--text-3);
  font-size: 14px;
  font-style: normal;
  line-height: 1.6;
}

.footer-status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
  color: var(--text-2);
  font-size: 14px;
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
}

.footer-cols h2 {
  margin-bottom: 20px;
  color: var(--text-3);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.footer-cols ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-cols a {
  overflow-wrap: anywhere;
  color: var(--text-2);
  font-size: 15px;
  text-decoration: none;
  transition: color 0.25s;
}

.footer-cols a:hover {
  color: var(--text);
}

.footer-wordmark {
  margin-top: clamp(56px, 8vw, 104px);
  padding-bottom: 0.12em;
  margin-bottom: -0.06em;
  background: linear-gradient(180deg, rgba(246, 243, 236, 0.2), rgba(246, 243, 236, 0.03));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-family: var(--font-display);
  font-size: clamp(72px, 19.5vw, 300px);
  font-weight: 700;
  letter-spacing: -0.065em;
  line-height: 0.95;
  text-align: center;
  white-space: nowrap;
  user-select: none;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding: 24px 0 32px;
  border-top: 1px solid var(--line);
  color: var(--text-3);
  font-size: 13.5px;
}

.to-top {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--text-2);
  cursor: pointer;
  font-size: 13.5px;
}

.to-top:hover {
  color: var(--text);
}

.to-top svg {
  width: 13px;
  height: 13px;
  transform: rotate(-45deg);
}

/* 6. Inner pages ---------------------------------------------------------- */
.page-hero {
  position: relative;
  padding-top: calc(var(--header-h) + clamp(40px, 6vw, 96px));
  padding-bottom: clamp(40px, 5vw, 72px);
}

.page-hero .h1 {
  max-width: 20ch;
  margin-top: 32px;
}

.page-hero .lead {
  margin-top: 32px;
}

.jump {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 48px 0 0;
  padding: 0;
  list-style: none;
}

.jump a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  color: var(--text-2);
  font-size: 14px;
  text-decoration: none;
  transition: color 0.3s, border-color 0.3s, background-color 0.3s;
}

.jump a span {
  color: var(--accent);
  font-size: 12px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.jump a:hover {
  border-color: var(--text);
  color: var(--text);
}

/* Service detail rows */
.svc {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
  gap: clamp(32px, 6vw, 96px);
  padding-block: var(--section-y);
  border-top: 1px solid var(--line);
}

/* The section around the rows already supplies the bottom space */
.svc:last-child {
  padding-bottom: 0;
}

.svc-intro {
  position: sticky;
  top: calc(var(--header-h) + 40px);
  align-self: start;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
}

.svc-num {
  color: var(--accent);
  font-size: 13px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.06em;
}

.svc-intro .h2 {
  font-size: clamp(30px, 3.2vw, 46px);
}

.svc-intro p {
  color: var(--text-2);
  max-width: 44ch;
}

.svc-body {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.svc-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}

.svc-item {
  padding: 28px 28px 32px 0;
  border-bottom: 1px solid var(--line);
}

.svc-item:nth-child(odd) {
  border-right: 1px solid var(--line);
}

.svc-item:nth-child(even) {
  padding-left: 28px;
  padding-right: 0;
}

.svc-item h3 {
  margin-bottom: 10px;
  font-size: 18px;
  letter-spacing: -0.015em;
}

.svc-item p {
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.55;
}

.svc-stack {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px 24px;
}

.svc-stack > span {
  color: var(--text-3);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.svc-stack .chips {
  font-size: 15.5px;
}

.svc-stack .chips li + li::before {
  margin-inline: 10px;
}

/* Engagement models */
.models {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.model {
  gap: 20px;
  min-height: 0;
}

.model-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.model h3 {
  font-family: var(--font-display);
  font-size: clamp(22px, 2vw, 26px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.badge {
  padding: 5px 10px;
  border: 1px solid rgba(var(--accent-rgb), 0.5);
  border-radius: 999px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}

.model-best {
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--text-3);
  font-size: 14px;
}

.model-best strong {
  color: var(--text);
  font-weight: 500;
}

.model .check-list {
  margin-top: auto;
}

/* Industries */
.industries {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}

.industry {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: clamp(28px, 3vw, 44px) clamp(22px, 2.6vw, 40px);
  border-bottom: 1px solid var(--line);
  transition: background-color 0.4s;
}

.industry:not(:nth-child(3n)) {
  border-right: 1px solid var(--line);
}

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

.industry .i {
  width: 28px;
  height: 28px;
  margin-bottom: 20px;
  color: var(--accent);
}

.industry h3 {
  font-size: 20px;
}

.industry p {
  color: var(--text-2);
  font-size: 15px;
}

/* Two-column text layouts */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 7vw, 112px);
  align-items: start;
}

.split-sticky {
  position: sticky;
  top: calc(var(--header-h) + 48px);
}

.prose {
  display: grid;
  gap: 22px;
  color: var(--text-2);
  font-size: clamp(16.5px, 1.3vw, 18.5px);
}

.prose strong {
  color: var(--text);
  font-weight: 500;
}

/* Work page filters */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: clamp(40px, 5vw, 64px);
}

.filter {
  padding: 10px 18px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: transparent;
  color: var(--text-2);
  cursor: pointer;
  font-size: 14px;
  transition: color 0.3s, background-color 0.3s, border-color 0.3s;
}

.filter:hover {
  color: var(--text);
  border-color: var(--text);
}

.filter[aria-pressed="true"] {
  border-color: var(--text);
  background: var(--text);
  color: var(--bg);
}

.work-card.is-hidden {
  display: none;
}

.work-card.is-entering {
  animation: fade-up 0.7s var(--ease) both;
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(24px); }
}

/* About — story visual */
.story-visual {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: var(--bg-2);
}

.story-visual .globe {
  inset: 6%;
  width: 88%;
  height: 88%;
}

.story-badge {
  position: absolute;
  left: 24px;
  bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-2);
  font-size: 13.5px;
}

/* Values */
.values {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.value {
  min-height: 260px;
}

.value-num {
  color: var(--accent);
  font-size: 13px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.06em;
}

.value h3 {
  margin-top: auto;
  font-family: var(--font-display);
  font-size: clamp(24px, 2.2vw, 30px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.12;
}

/* Careers */
.roles {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.role a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 16px 32px;
  align-items: center;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
  transition: padding 0.5s var(--ease), background-color 0.4s;
}

.role a:hover {
  padding-inline: 20px;
  background: var(--surface-2);
}

.role h3 {
  font-family: var(--font-display);
  font-size: clamp(20px, 1.8vw, 24px);
  font-weight: 600;
  letter-spacing: -0.03em;
}

.role-meta {
  color: var(--text-3);
  font-size: 13.5px;
}

.role-arrow {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  transition: background-color 0.3s, color 0.3s, transform 0.5s var(--ease);
}

.role-arrow svg {
  width: 14px;
  height: 14px;
}

.role a:hover .role-arrow {
  background: var(--text);
  color: var(--bg);
  transform: rotate(45deg);
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}

.contact-aside {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.contact-aside .h1 {
  margin-top: 32px;
}

.contact-aside .lead {
  margin-top: 28px;
}

.contact-list {
  margin: 0;
  border-top: 1px solid var(--line);
}

.contact-item {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.contact-item dt {
  color: var(--text-3);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.contact-item dd {
  margin: 0;
  text-align: right;
}

.contact-item a {
  text-decoration: none;
  border-bottom: 1px solid var(--line-2);
  transition: border-color 0.3s;
}

.contact-item a:hover {
  border-color: var(--text);
}

.next-steps {
  display: grid;
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: ns;
}

.next-steps li {
  position: relative;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 16px;
  counter-increment: ns;
}

.next-steps li::before {
  content: counter(ns, decimal-leading-zero);
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  color: var(--accent);
  font-size: 12px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.next-steps strong {
  display: block;
  font-weight: 500;
}

.next-steps span {
  color: var(--text-2);
  font-size: 15px;
}

.form-card {
  position: relative;
  padding: clamp(24px, 3.6vw, 48px);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: var(--surface-2);
  box-shadow: 0 40px 80px -56px rgba(22, 20, 17, 0.28);
}

.form {
  display: grid;
  gap: 28px;
}

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

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

.field label,
.fieldset legend {
  color: var(--text-2);
  font-size: 14px;
  font-weight: 500;
}

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

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

.fieldset legend {
  margin-bottom: 12px;
  padding: 0;
}

.input {
  width: 100%;
  height: 52px;
  padding: 0 16px;
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-size: 16px;
  transition: border-color 0.25s, box-shadow 0.25s, background-color 0.25s;
}

.input::placeholder {
  color: var(--text-3);
}

.input:hover {
  border-color: color-mix(in srgb, var(--text) 40%, transparent);
}

.input:focus {
  outline: none;
  border-color: var(--text);
  background: var(--surface-2);
  box-shadow: 0 0 0 4px rgba(var(--accent-rgb), 0.12);
}

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

textarea.input {
  height: auto;
  min-height: 150px;
  padding: 14px 16px;
  line-height: 1.55;
  resize: vertical;
}

.field-error {
  min-height: 0;
  color: var(--error);
  font-size: 13px;
}

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

.choices {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.choice {
  position: relative;
}

.choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.choice span {
  display: inline-flex;
  align-items: center;
  padding: 10px 16px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  color: var(--text-2);
  cursor: pointer;
  font-size: 14px;
  line-height: 1.2;
  transition: color 0.25s, background-color 0.25s, border-color 0.25s;
}

.choice span:hover {
  border-color: var(--text);
  color: var(--text);
}

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

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

.form-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
}

.form-foot p {
  max-width: 34ch;
  color: var(--text-3);
  font-size: 13px;
}

.form-status {
  padding: 14px 18px;
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  font-size: 14.5px;
}

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

.form-status.is-success {
  border-color: rgba(47, 143, 87, 0.4);
  background: rgba(47, 143, 87, 0.08);
  color: #1f6b3f;
}

.form-status.is-error {
  border-color: rgba(180, 35, 24, 0.35);
  background: rgba(180, 35, 24, 0.06);
  color: #8f1d14;
}

.btn[disabled] {
  opacity: 0.6;
  pointer-events: none;
}

/* 404 */
.notfound {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: calc(var(--header-h) + 40px) var(--gutter) 80px;
  text-align: center;
}

.notfound-code {
  color: var(--accent);
  font-family: var(--font-display);
  font-size: clamp(120px, 24vw, 300px);
  font-weight: 700;
  letter-spacing: -0.07em;
  line-height: 0.9;
}

.notfound .h2 {
  margin-top: 8px;
}

.notfound p {
  max-width: 40ch;
  margin: 24px auto 40px;
  color: var(--text-2);
}

.notfound .btn {
  margin-inline: auto;
}

/* 7. Motion --------------------------------------------------------------- */
@view-transition {
  navigation: auto;
}

::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 0.35s;
}

.js [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 1.1s var(--ease), transform 1.1s var(--ease);
  transition-delay: calc(var(--d, 0) * 80ms);
}

.js [data-reveal].is-in {
  opacity: 1;
  transform: none;
}

/* Word-by-word headline reveal (spans injected by main.js) */
.w {
  display: inline-block;
  margin: 0 -0.08em -0.14em;
  padding: 0 0.08em 0.14em;
  overflow: hidden;
  vertical-align: top;
}

.wi {
  display: inline-block;
  transform: translateY(110%);
  transition: transform 1.2s var(--ease);
  transition-delay: calc(var(--i, 0) * 50ms + 120ms);
}

.is-split.is-in .wi {
  transform: none;
}

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

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

  .js [data-reveal],
  .wi {
    opacity: 1;
    transform: none;
  }
}

/* 8. Responsive ----------------------------------------------------------- */
@media (max-width: 1120px) {
  .svc-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .svc-cell:not(:nth-child(3n)) {
    border-right: 0;
  }

  .svc-cell:nth-child(odd) {
    border-right: 1px solid var(--line);
  }

  .features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .feature:nth-child(3) {
    padding-left: 0;
    border-left: 0;
  }

  .feature:nth-child(n + 3) {
    border-top: 1px solid var(--line);
    margin-top: 28px;
  }

  .models {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 960px) {
  :root {
    --header-h: 68px;
  }

  .nav,
  .header-actions .btn {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .hero-inner,
  .section-head,
  .process-grid,
  .split,
  .svc,
  .contact-grid,
  .footer-top {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-visual {
    justify-self: center;
    max-width: 480px;
    margin-top: 16px;
  }

  .process-intro,
  .svc-intro,
  .split-sticky {
    position: static;
  }

  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stat:nth-child(3) {
    border-left: 0;
    padding-left: 0;
  }

  .stat:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }

  .stack-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .industries {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .industry:not(:nth-child(3n)) {
    border-right: 0;
  }

  .industry:nth-child(odd) {
    border-right: 1px solid var(--line);
  }
}

@media (max-width: 680px) {
  body {
    font-size: 16px;
  }

  .svc-grid,
  .work-grid,
  .values,
  .svc-list,
  .form-row,
  .industries,
  .features {
    grid-template-columns: minmax(0, 1fr);
  }

  .svc-cell,
  .svc-cell:nth-child(odd),
  .svc-item:nth-child(odd),
  .industry:nth-child(odd) {
    border-right: 0;
  }

  .svc-cell {
    min-height: 0;
    padding-inline: 0;
  }

  .svc-cell:hover {
    background: transparent;
  }

  .svc-cell-arrow {
    right: 0;
  }

  .svc-cell-num {
    margin-bottom: 8px;
  }

  .svc-item,
  .svc-item:nth-child(even) {
    padding: 24px 0;
  }

  .industry {
    padding-inline: 0;
  }

  .discovery .btn {
    width: 100%;
  }

  .card {
    min-height: 0;
  }

  /* The industries line scrolls on phones instead of wrapping into a block */
  .ticker {
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  }

  .ticker-track {
    justify-content: flex-start;
    width: max-content;
    animation: marquee 40s linear infinite;
  }

  .ticker ul,
  .ticker ul[aria-hidden="true"] {
    display: flex;
    flex-wrap: nowrap;
    padding: 0 26px 0 0;
  }

  .ticker li.sep:last-child {
    display: list-item;
  }

  .feature,
  .feature + .feature {
    padding: 28px 0 0;
    border-left: 0;
  }

  .feature:nth-child(n + 2) {
    margin-top: 28px;
    border-top: 1px solid var(--line);
  }

  .step {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .step-time {
    grid-column: 2;
    padding-top: 0;
    order: -1;
  }

  .footer-cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-cols > div:last-child {
    grid-column: 1 / -1;
  }

  .role a {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .role-meta {
    grid-row: 2;
  }

  .hero-actions .btn {
    flex: 1 1 auto;
  }

  .slider-btn {
    width: 46px;
    height: 46px;
  }

  .faq-answer {
    padding-right: 0;
  }
}

/* Utilities ---------------------------------------------------------------- */
.pt-0 {
  padding-top: 0;
}

.flow {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}

.flow-lg {
  gap: 32px;
}
