/* Verteon — design tokens and components */

/* ---------- Tokens ---------- */
:root {
  color-scheme: light dark;

  --bg: #FFFFFF;
  --surface: #F5F5F7;          /* grey cards, alt sections, footer */
  --surface-raised: #FFFFFF;   /* tiles sitting on a grey card */
  --fg: #1D1D1F;
  --fg-2: #424245;
  --muted: #6E6E73;
  --line: #D2D2D7;
  --line-soft: #F0F0F2;
  --shadow-tile: 0 1px 3px rgba(0, 0, 0, 0.06);

  --accent: #0071E3;
  --accent-hover: #0077ED;
  --link: #0066CC;
  --link-hover: #004C99;
  --eyebrow: #0071E3;

  --ink: #000000;              /* dark feature cards */
  --ink-fg: #F5F5F7;
  --ink-muted: #A1A1A6;
  --ink-link: #2997FF;
  --code-bg: #161617;
  --code-line: #2C2C2E;

  --nav-bg: rgba(255, 255, 255, 0.58);
  --nav-glass: inset 0 1px 0 rgba(255, 255, 255, .9), 0 10px 30px -12px rgba(0, 0, 0, .14);
  --nav-line: rgba(0, 0, 0, 0.08);

  --ok: #28A745;
  --pending: #AEAEB2;

  --radius-xl: 30px;
  --radius-l: 28px;
  --radius-m: 18px;
  --radius-pill: 980px;

  --font: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Geist', 'Helvetica Neue', sans-serif;
  --mono: 'Geist Mono', ui-monospace, monospace;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --nav-h: 60px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --surface: #161617;
    --surface-raised: #2A2A2C;
    --fg: #F5F5F7;
    --fg-2: #D2D2D7;
    --muted: #86868B;
    --line: #424245;
    --line-soft: #2C2C2E;
    --shadow-tile: none;

    --link: #2997FF;
    --link-hover: #66B6FF;
    --eyebrow: #2997FF;

    --ink: #161617;
    --code-bg: #000000;

    --nav-bg: rgba(44, 44, 46, 0.55);
    --nav-glass: inset 0 1px 0 rgba(255, 255, 255, .12), 0 10px 30px -12px rgba(0, 0, 0, .6);
    --nav-line: rgba(255, 255, 255, 0.1);

    --ok: #30D158;
    --pending: #636366;
  }
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--link); }
a:hover { color: var(--link-hover); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3, p { margin: 0; }

.wrap { max-width: 1080px; margin: 0 auto; }
.wrap--wide { max-width: 1240px; }
.wrap--text { max-width: 980px; }

/* ---------- Type ---------- */
.eyebrow { font-size: 17px; font-weight: 600; color: var(--eyebrow); }
.display { font-size: clamp(44px, 7vw, 92px); line-height: 1.02; letter-spacing: -0.045em; font-weight: 600; }
.headline { font-size: clamp(36px, 5vw, 64px); line-height: 1.05; letter-spacing: -0.04em; font-weight: 600; }
.lead { font-size: 21px; line-height: 1.5; color: var(--muted); }
.lead--hero { font-size: clamp(19px, 1.8vw, 24px); line-height: 1.45; }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 50px; padding: 0 26px; border-radius: var(--radius-pill);
  background: var(--accent); color: #FFFFFF;
  font-size: 17px; font-weight: 500; text-decoration: none;
  transition: background-color .2s, transform .2s var(--ease);
}
.btn:hover { background: var(--accent-hover); color: #FFFFFF; }
.btn:active { transform: scale(.97); }
.btn--sm { height: 40px; padding: 0 18px; font-size: 14px; }
.btn--lg { height: 52px; padding: 0 28px; }
.btn--light { background: #FFFFFF; color: #1D1D1F; }
.btn--light:hover { background: #E8E8ED; color: #1D1D1F; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 4px; min-height: 44px;
  font-size: 17px; text-decoration: none;
}
.link-arrow svg { transition: transform .25s var(--ease); }
.link-arrow:hover svg { transform: translateX(3px); }

.actions { display: flex; gap: 28px; align-items: center; flex-wrap: wrap; justify-content: center; }

/* ---------- Load-in ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
.rise { animation: rise 1s var(--ease) both; }
.d1 { animation-delay: .12s; } .d2 { animation-delay: .24s; } .d3 { animation-delay: .4s; }

/* ---------- Global nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 20;
  background: var(--nav-bg);
  /* Liquid glass, always on: translucent fill, light top edge, soft drop shadow. */
  backdrop-filter: blur(24px) saturate(190%);
  -webkit-backdrop-filter: blur(24px) saturate(190%);
  border-bottom: 1px solid var(--nav-line);
  box-shadow: var(--nav-glass);
}
.nav__bar {
  max-width: 1080px; margin: 0 auto; padding: 0 22px; height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.nav__logo { display: flex; align-items: center; gap: 9px; min-height: 44px; text-decoration: none; color: var(--fg); }
.nav__logo:hover { color: var(--fg); }
.nav__logo span { font-weight: 600; font-size: 18px; letter-spacing: -0.02em; }
.nav__links { display: flex; gap: 36px; font-size: 14px; }
.nav__links a { color: var(--fg-2); text-decoration: none; transition: color .2s; }
.nav__links a:hover { color: var(--fg); }
.nav__links a[aria-current="page"] { color: var(--fg); font-weight: 600; }
.nav__end { display: flex; align-items: center; gap: 4px; }
.menu-btn {
  display: none; border: 0; background: transparent; width: 44px; height: 44px;
  align-items: center; justify-content: center; cursor: pointer; color: var(--fg); margin-left: -8px;
}

@media (max-width: 820px) {
  .nav__bar { flex-wrap: wrap; height: auto; min-height: var(--nav-h); row-gap: 0; }
  .nav__links { display: none; }
  .nav__links.open { display: flex; order: 3; flex-basis: 100%; flex-direction: column; gap: 0; padding: 6px 0 12px; }
  .nav__links.open a { padding: 14px 0; border-top: 1px solid var(--nav-line); font-size: 17px; }
  .menu-btn { display: inline-flex; }
  .hide-sm { display: none !important; }
}

/* ---------- Hero ---------- */
.hero { padding: 104px 22px 0; text-align: center; }
.hero__copy { display: flex; flex-direction: column; align-items: center; gap: 22px; }
.hero__copy .lead { margin-top: 6px; max-width: 760px; }
.hero__copy .actions { margin-top: 10px; }

/* Scroll stage: the laptop pins while the board plays through four states.
   main.js writes --enter (the lid opening) and picks the board state.
   On phones the laptop is too short to fill a pinned screen, so it scrolls normally
   and main.js cycles the stages on a timer instead. */
.hero-stage { height: 300vh; margin-top: 40px; }
.hero-sticky {
  position: sticky; top: var(--nav-h);
  height: calc(100vh - var(--nav-h));
  height: calc(100svh - var(--nav-h));
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 28px;
}
@media (max-width: 700px) {
  .hero-stage { height: auto; margin-top: 48px; }
  .hero-sticky { position: static; height: auto; gap: 20px; }
}

.laptop {
  --enter: 1;
  width: min(1040px, 100%, (100vh - var(--nav-h) - 170px) * 1.55);
  transform: scale(calc(.9 + .1 * var(--enter)));
  transform-origin: 50% 100%;
  /* Bezel and corners scale with the laptop, so the frame keeps its thickness in the corners. */
  container-type: inline-size;
  /* Viewer at hinge height. Folded toward the viewer the lid's top edge swells with a fixed perspective,
     so the perspective flattens out while the lid is still closed. */
  perspective: calc(2400px + (1 - var(--enter)) * 9000px); perspective-origin: 50% calc(100% - 20px);
  --bezel: 1.35cqi;
  --lid-r: 2.6cqi;
}
.laptop__lid {
  position: relative;
  background: #1D1D1F;
  border-radius: var(--lid-r) var(--lid-r) .6cqi .6cqi;
  padding: var(--bezel) var(--bezel) 1.7cqi;
  box-shadow: 0 50px 100px -40px rgba(0, 0, 0, 0.45);
  /* --enter opens the lid on the way in.
     Negative angles: with the origin at the hinge, positive rotateX would tip the lid backwards, away from the keyboard. */
  transform: rotateX(calc(-1 * (1 - var(--enter)) * 78deg));
  transform-origin: 50% 100%;
}
.laptop__screen {
  position: relative;
  container-type: inline-size;
  aspect-ratio: 16 / 10; background: #FBFBFD; overflow: hidden;
  border-radius: calc(var(--lid-r) - var(--bezel));
}
.laptop__screen::after { /* glare that fades as the lid opens */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(160deg, rgba(255, 255, 255, .55) 0%, rgba(255, 255, 255, 0) 45%);
  opacity: calc((1 - var(--enter)) * 1.2);
}
.laptop__base {
  position: relative; height: 20px; margin: 0 -5%;
  background: linear-gradient(180deg, #E6E6EA 0%, #C7C7CC 100%);
  border-radius: 0 0 22px 22px;
}
.laptop__base::before {
  content: ""; position: absolute; left: 50%; top: 0; width: 16%; height: 8px;
  transform: translateX(-50%); background: #B8B8BD; border-radius: 0 0 10px 10px;
}
@media (prefers-color-scheme: dark) {
  .laptop__lid { box-shadow: 0 0 0 1px rgba(255, 255, 255, .1), 0 50px 120px -40px rgba(41, 151, 255, .25); }
}

/* App inside the screen — sized in container units so it scales like an image.
   Liquid glass, as in the floating nav: translucent panels with light edges. */
.app {
  position: relative; isolation: isolate;
  height: 100%; display: flex; text-align: left; color: #1D1D1F; letter-spacing: -0.01em;
  font-size: 12px; font-size: clamp(5px, 1.22cqi, 13px);
  background: #F3F5F9;
}

.app__side {
  width: 19%; border-right: 1px solid rgba(255, 255, 255, .6);
  padding: 1.8em 1.1em; display: flex; flex-direction: column; gap: .5em;
  font-size: 1.08em; color: #424245;
  background: rgba(255, 255, 255, .45);
  -webkit-backdrop-filter: blur(1.6em) saturate(180%); backdrop-filter: blur(1.6em) saturate(180%);
}
.app__lights { display: flex; gap: .5em; margin-bottom: 1.4em; }
.app__lights span { width: .9em; height: .9em; border-radius: 50%; }
.app__nav { padding: .6em .8em; border-radius: .7em; }
.app__nav.is-active {
  background: rgba(255, 255, 255, .8); font-weight: 600; color: #1D1D1F;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .9), 0 .2em .6em -.2em rgba(0, 0, 0, .12);
}
.app__main { flex: 1; min-width: 0; padding: 2.2em 2.3em; display: flex; flex-direction: column; gap: 1.6em; }
.app__head { display: flex; justify-content: space-between; align-items: baseline; }
.app__title { font-size: 2em; font-weight: 700; letter-spacing: -0.03em; }
.app__meta { font-family: var(--mono); color: #8E8E93; }
.app__meta span { transition: color .5s; }
.app__meta span.is-on { color: #0071E3; font-weight: 500; }

/* main.js sets data-active (0–3); that column widens and reveals each service's description */
.board {
  position: relative;
  display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; gap: 1em; flex: 1; min-height: 0;
  transition: grid-template-columns .7s var(--ease);
}
.board[data-active="0"] { grid-template-columns: 2.4fr 1fr 1fr 1fr; }
.board[data-active="1"] { grid-template-columns: 1fr 2.4fr 1fr 1fr; }
.board[data-active="2"] { grid-template-columns: 1fr 1fr 2.4fr 1fr; }
.board[data-active="3"] { grid-template-columns: 1fr 1fr 1fr 2.4fr; }
.col {
  position: relative; z-index: 1;
  min-width: 0; border-radius: 1.3em; padding: 1em;
  display: flex; flex-direction: column; gap: .65em; overflow: hidden;
  background: rgba(255, 255, 255, .42);
  -webkit-backdrop-filter: blur(1.6em) saturate(180%); backdrop-filter: blur(1.6em) saturate(180%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .7), inset 0 1px 0 rgba(255, 255, 255, .95),
              0 0 0 .5px rgba(0, 0, 0, .04), 0 .8em 2em -1.4em rgba(0, 0, 0, .18);
  transition: background-color .5s, box-shadow .5s;
}
.col__title { font-weight: 600; color: #6E6E73; transition: color .5s; }
.tile {
  background: rgba(255, 255, 255, .55); border-radius: .95em; padding: .85em;
  font-weight: 600; display: flex; flex-direction: column;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .75);
  opacity: .6; transition: opacity .5s, box-shadow .5s, background-color .5s, padding .5s var(--ease);
}
.tile__name { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tile__text {
  display: block; max-height: 0; overflow: hidden; opacity: 0;
  font-weight: 400; color: #6E6E73; line-height: 1.35;
  transition: max-height .5s var(--ease), opacity .3s, margin-top .5s var(--ease);
}
.col.is-active {
  gap: .9em; background: rgba(255, 255, 255, .3);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .8), inset 0 1px 0 #FFFFFF,
              0 0 0 .5px rgba(0, 0, 0, .05), 0 1em 2.4em -1.4em rgba(0, 0, 0, .22);
}
.col.is-active .col__title { color: #0071E3; }
.col.is-active .tile {
  opacity: 1; padding: 1.1em; background: rgba(255, 255, 255, .78);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .95), inset 0 1px 0 #FFFFFF, 0 .4em 1.2em -.6em rgba(0, 0, 0, .2);
}
.col.is-active .tile__name { white-space: normal; }
.col.is-active .tile__text {
  max-height: 4em; opacity: 1; margin-top: .35em;
  transition: max-height .6s var(--ease), opacity .5s .15s, margin-top .6s var(--ease);
}

.term {
  background: rgba(29, 29, 31, .82); color: #E5E5EA; border-radius: .95em; padding: .85em;
  font-family: var(--mono); font-size: .92em; line-height: 1.6;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12);
  opacity: .6; transition: opacity .5s;
}
.col.is-active .term { opacity: 1; }
.term span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

@container (max-width: 600px) {
  .app { font-size: 2cqi; }
  .app__side { display: none; }
  .app__main { padding: 1.4em; }
  .app__meta { display: none; }
  .tile, .term { padding: .6em; }
  .col { padding: .7em; gap: .45em; }
}

/* Segmented control under the laptop — follows the board state */
.segments {
  --i: 0;
  position: relative; display: grid; grid-template-columns: repeat(4, 1fr);
  padding: 4px; border-radius: var(--radius-pill);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--nav-line);
}
.segments__thumb {
  position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc((100% - 8px) / 4);
  border-radius: var(--radius-pill); background: var(--bg);
  box-shadow: 0 2px 8px rgba(0, 0, 0, .1), 0 0 0 .5px rgba(0, 0, 0, .04);
  transform: translateX(calc(var(--i) * 100%));
  transition: transform .5s var(--ease);
}
.segments button {
  position: relative; border: 0; background: transparent; cursor: pointer;
  font: 500 14px/1 var(--font); letter-spacing: -0.01em; color: var(--muted);
  padding: 0 18px; height: 36px; min-width: 84px; border-radius: var(--radius-pill);
  transition: color .3s;
}
.segments button[aria-pressed="true"] { color: var(--fg); }
@media (prefers-color-scheme: dark) {
  .segments__thumb { background: #3A3A3C; box-shadow: none; }
}

/* ---------- What we do (bento) ---------- */
.what { padding: 140px 22px 24px; }
@media (max-width: 700px) {
  .segments { max-width: 100%; }
  .segments button { min-width: 0; padding: 0 12px; font-size: 13px; }
  .what { padding-top: 96px; }
}
.what__intro { margin: 0 auto 64px; text-align: center; display: flex; flex-direction: column; gap: 20px; align-items: center; }
.what__intro .lead { max-width: 780px; }

.bento { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 520px), 1fr)); gap: 20px; }
.card {
  background: var(--surface); border-radius: var(--radius-xl);
  padding: clamp(32px, 4vw, 56px);
  display: flex; flex-direction: column; gap: 16px; align-items: center; text-align: center; overflow: hidden;
}
.card__title { font-size: clamp(28px, 3vw, 40px); line-height: 1.08; letter-spacing: -0.035em; font-weight: 600; }
.card__text { font-size: 17px; line-height: 1.55; color: var(--muted); max-width: 460px; }
.card__visual { margin-top: 24px; width: 100%; max-width: 420px; }

.card--ink { background: var(--ink); color: var(--ink-fg); }
.card--ink .eyebrow, .card--ink a { color: var(--ink-link); }
.card--ink .card__text { color: var(--ink-muted); }

.card--wide {
  grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; gap: 48px; text-align: left;
  padding: clamp(32px, 5vw, 64px);
}
.card--wide .card__body { flex: 1 1 340px; display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.card--wide .card__title { font-size: clamp(32px, 3.6vw, 48px); line-height: 1.06; }
.card--wide .card__text { font-size: 19px; line-height: 1.5; max-width: none; }

.code-window { flex: 1 1 420px; min-width: 0; background: var(--code-bg); border: 1px solid var(--code-line); border-radius: var(--radius-m); overflow: hidden; }
.code-window__bar { display: flex; align-items: center; gap: 6px; padding: 14px 16px; border-bottom: 1px solid var(--code-line); }
.code-window__bar i { width: 10px; height: 10px; border-radius: 50%; background: #3A3A3C; }
.code-window__bar span { margin-left: 10px; font-family: var(--mono); font-size: 12px; color: #8E8E93; }
.code { margin: 0; padding: 20px 22px; font-family: var(--mono); font-size: 14px; line-height: 1.85; color: #D1D1D6; white-space: pre; overflow: hidden; }
.tk-kw { color: #FF7AB2; } .tk-fn { color: #67B7FF; } .tk-str { color: #FFA14F; } .tk-cm { color: #6C7986; }
@media (max-width: 560px) { .code { font-size: 11px; padding: 16px; } }

.stack { display: flex; flex-direction: column; gap: 8px; align-items: center; }
.stack__layer {
  width: var(--w, 100%); padding: 13px; border-radius: 14px;
  background: var(--surface-raised); box-shadow: var(--shadow-tile);
  font-size: 14px; font-weight: 600;
}
.stack__layer--base { background: var(--fg); color: var(--bg); box-shadow: none; }

.checklist {
  background: var(--surface-raised); border-radius: 20px; padding: 20px; box-shadow: var(--shadow-tile);
  display: flex; flex-direction: column; gap: 4px; text-align: left;
}
.checklist__head { font-size: 13px; font-weight: 600; color: var(--muted); padding-bottom: 8px; }
.checklist__item { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line-soft); font-size: 15px; }
.checklist__item svg { flex: none; color: var(--ok); }
.checklist__item.is-pending svg { color: var(--pending); }

/* ---------- ContractorHub ---------- */
.product-band { padding: 24px 22px; }
.product {
  background: var(--ink); color: var(--ink-fg); border-radius: var(--radius-xl);
  padding: clamp(56px, 7vw, 104px) clamp(24px, 5vw, 64px) 0;
  text-align: center; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; gap: 18px;
}
.product__kicker { font-size: 17px; font-weight: 600; color: var(--ink-muted); }
.product__name { font-size: clamp(48px, 7vw, 96px); line-height: 1; letter-spacing: -0.05em; font-weight: 700; }
.product .lead { color: var(--ink-muted); max-width: 760px; }
.product__tagline { font-size: clamp(22px, 2.4vw, 30px); line-height: 1.25; letter-spacing: -0.03em; font-weight: 600; }
.product__features {
  list-style: none; margin: 12px 0 0; padding: 0; width: 100%; max-width: 980px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 12px; text-align: left;
}
.product__features li { background: #1C1C1E; border-radius: 18px; padding: 18px 20px; display: flex; flex-direction: column; gap: 4px; }
.product__features strong { font-size: 17px; font-weight: 600; }
.product__features span { font-size: 15px; line-height: 1.45; color: var(--ink-muted); }
.product .actions { margin-top: 8px; }
.product .link-arrow { color: var(--ink-link); }

.devices { position: relative; width: 100%; max-width: 900px; margin-top: 56px; display: flex; justify-content: center; }
.device-tablet { width: 86%; background: #2C2C2E; border-radius: 28px 28px 0 0; padding: 14px 14px 0; }
.device-phone { position: absolute; right: 0; bottom: 0; width: 200px; background: #2C2C2E; border-radius: 36px 36px 0 0; padding: 10px 10px 0; }

.ch { background: #F5F5F7; border-radius: 16px 16px 0 0; height: 380px; overflow: hidden; display: flex; text-align: left; color: #1D1D1F; }
.ch__side { width: 170px; background: #0D1B2A; padding: 18px 12px; display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: #A9B6C3; }
.ch__brand { color: #FFFFFF; font-weight: 700; padding: 2px 10px 14px; }
.ch__nav { padding: 8px 10px; border-radius: 8px; }
.ch__nav.is-active { background: #1D3043; color: #FFFFFF; font-weight: 600; }
.ch__main { flex: 1; min-width: 0; padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.ch__title { font-size: 20px; font-weight: 700; letter-spacing: -0.02em; }
.ch__row { background: #FFFFFF; border-radius: 12px; padding: 14px; display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; }
.badge { font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: var(--radius-pill); white-space: nowrap; }
.badge--green { color: #0B5A4C; background: #DDF0EA; }
.badge--amber { color: #7A4300; background: #FBEED8; }
.badge--grey { color: #3A3A3C; background: #E5E5EA; }

.phone { background: #FFFFFF; border-radius: 28px 28px 0 0; height: 300px; padding: 26px 16px 0; display: flex; flex-direction: column; gap: 10px; text-align: left; color: #1D1D1F; }
.phone__notch { width: 60px; height: 6px; border-radius: 3px; background: #1D1D1F; align-self: center; margin-bottom: 8px; }
.phone__title { font-size: 16px; font-weight: 700; }
.phone__doc { background: #F5F5F7; border-radius: 10px; padding: 10px; font-size: 12px; font-weight: 600; }

/* ---------- How we work ---------- */
.how { padding: 140px 22px 120px; }
.how .headline { text-align: center; }
.how .steps { width: 100%; max-width: 1240px; margin-inline: auto; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.step { background: var(--surface); border-radius: var(--radius-l); padding: 36px 30px; display: flex; flex-direction: column; gap: 14px; min-height: 300px; }
.step__num { font-size: 56px; font-weight: 300; letter-spacing: -0.04em; color: var(--eyebrow); line-height: 1; }
.step h3 { margin-top: auto; font-size: 26px; font-weight: 600; letter-spacing: -0.03em; }
.step p { font-size: 16px; line-height: 1.55; color: var(--muted); }

/* ---------- Who we work with ---------- */
.who { padding: 130px 22px 110px; text-align: center; overflow-x: clip; }
.who .wrap { display: flex; flex-direction: column; gap: 28px; align-items: center; }
.who .lead { max-width: 760px; }
.chips { list-style: none; margin: 24px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.chip { padding: 16px 26px; border-radius: var(--radius-pill); background: var(--surface); font-size: 19px; font-weight: 500; }

/* ---------- About / company ---------- */
.about { scroll-margin-top: 70px; padding: 0 22px 130px; }
.about .wrap { display: flex; gap: 64px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 72px; }
.about__col { flex: 1 1 400px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.about__col--facts { gap: 0; }
.about h2 { font-size: clamp(32px, 3.6vw, 48px); line-height: 1.08; letter-spacing: -0.04em; font-weight: 600; }
.about__text { font-size: 17px; line-height: 1.6; color: var(--fg-2); }
.about__text--muted { color: var(--muted); }
.about__note { margin-bottom: 20px; font-size: 15px; line-height: 1.6; color: var(--muted); }
.facts { margin: 0; font-size: 17px; border-bottom: 1px solid var(--line); }
.facts div { display: flex; justify-content: space-between; gap: 16px; padding: 18px 0; border-top: 1px solid var(--line); flex-wrap: wrap; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-weight: 600; }

/* ---------- Final CTA ---------- */
.cta { padding: 0 22px 24px; }
.cta__card {
  background: var(--surface); border-radius: var(--radius-xl);
  padding: clamp(64px, 8vw, 120px) 24px; text-align: center;
  display: flex; flex-direction: column; gap: 20px; align-items: center;
}
.cta__card h2 { font-size: clamp(36px, 5.4vw, 72px); line-height: 1.03; letter-spacing: -0.045em; font-weight: 600; }
.cta__card .btn { margin-top: 12px; }

/* ---------- Footer ---------- */
.footer { background: var(--surface); margin-top: 80px; font-size: 13px; color: var(--muted); }
.footer .wrap { padding: 40px 22px 28px; }
.footer__about { margin: 0 0 24px; padding-bottom: 20px; border-bottom: 1px solid var(--line); line-height: 1.6; }
.footer__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 28px; }
.footer__col { display: flex; flex-direction: column; gap: 10px; }
.footer__col > span:first-child { font-weight: 600; color: var(--fg); }
.footer__col a { color: var(--fg-2); text-decoration: none; }
.footer__col a:hover { color: var(--fg); text-decoration: underline; }
.footer__legal { margin-top: 32px; padding-top: 18px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

.footer--flush { margin-top: 0; }
.footer--ruled { margin-top: 0; border-top: 1px solid var(--line); }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding: 110px 22px 90px; text-align: center; }
.page-hero .wrap { display: flex; flex-direction: column; gap: 22px; align-items: center; }
.page-hero .lead { max-width: 760px; }
.display--xl { font-size: clamp(52px, 8vw, 110px); line-height: 1; letter-spacing: -0.05em; }

/* Local nav under the global one (services) */
.subnav { border-bottom: 1px solid var(--line-soft); }
.subnav .wrap {
  padding: 0 22px; min-height: 52px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.subnav__title { font-size: 21px; font-weight: 600; letter-spacing: -0.02em; }
.subnav nav { display: flex; gap: 24px; font-size: 13px; align-items: center; }
.subnav nav a { color: var(--fg-2); text-decoration: none; }
.subnav nav a:hover { color: var(--fg); }

/* Pill tabs (projects hero) */
.tabs { display: flex; gap: 8px; margin-top: 14px; padding: 4px; background: var(--surface); border-radius: var(--radius-pill); }
.tabs a {
  display: inline-flex; align-items: center; height: 44px; padding: 0 20px; border-radius: var(--radius-pill);
  font-size: 15px; font-weight: 500; text-decoration: none; color: var(--fg);
}
.tabs a.is-active { background: var(--fg); color: var(--bg); }

/* ---------- Services bento ---------- */
.bento-6 { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 20px; }
.span-2 { grid-column: span 2; } .span-3 { grid-column: span 3; } .span-4 { grid-column: span 4; } .span-6 { grid-column: 1 / -1; }
@media (max-width: 900px) { .bento-6 > * { grid-column: 1 / -1; } }

.card--left { align-items: stretch; text-align: left; gap: 14px; }
.card--left .card__text { max-width: 520px; }
.card--row { flex-direction: row; flex-wrap: wrap; gap: 40px; align-items: center; }
.card--row > * { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.card__visual--bottom { margin-top: auto; max-width: none; }

.mini-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.mini { background: #1C1C1E; border-radius: 18px; padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.mini > span { font-size: 13px; color: #8E8E93; }
.skel { height: 8px; width: var(--w, 100%); border-radius: 4px; background: #3A3A3C; }
.mini .block { height: 40px; border-radius: 10px; background: #3A3A3C; }
.mini .block--accent { background: #2997FF; opacity: .85; }

.browser { background: var(--surface-raised); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow-tile); }
.browser__bar { display: flex; gap: 5px; padding: 10px 12px; background: var(--line-soft); }
.browser__bar i { width: 8px; height: 8px; border-radius: 50%; background: var(--pending); }
.browser__body { padding: 18px; display: flex; flex-direction: column; gap: 8px; align-items: center; }

/* 03 · Product Engineering: pill tabs on the left grow open, the stage on the right crossfades (main.js switches) */
.eng { --eng-pill: #E8E8ED; interpolate-size: allow-keywords; }
@media (prefers-color-scheme: dark) { .eng { --eng-pill: #2A2A2C; } }
.eng__head { display: flex; flex-wrap: wrap; gap: 16px 48px; align-items: flex-end; justify-content: space-between; }
.eng__head > div { display: flex; flex-direction: column; gap: 14px; }
.eng__head .card__text { flex: 0 1 440px; }
.eng__body {
  margin-top: 28px; display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr);
  gap: 32px clamp(32px, 5vw, 72px); align-items: center;
}
@media (max-width: 820px) { .eng__body { grid-template-columns: minmax(0, 1fr); } }

.eng__tabs { container-type: inline-size; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.eng__item {
  display: grid; grid-template-rows: auto 0fr; width: fit-content; max-width: 100%;
  background: var(--eng-pill); border-radius: 28px;
  transition: grid-template-rows .5s var(--ease), width .5s var(--ease);
}
.eng__item:has([aria-selected="true"]) { grid-template-rows: auto 1fr; width: 100%; }
.eng__item button {
  display: flex; align-items: center; gap: 14px; width: 100%; min-height: 56px; padding: 0 26px 0 14px;
  border: 0; border-radius: 28px; background: none; cursor: pointer; text-align: left;
  font: 600 17px/1.2 var(--font); letter-spacing: -0.02em; color: var(--fg);
  transition: transform .15s;
}
.eng__item button:active { transform: scale(.97); }
.eng__item button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.eng__icon {
  position: relative; flex: none; width: 28px; height: 28px; border-radius: 50%;
  box-shadow: inset 0 0 0 1.5px currentColor; transition: background-color .3s, color .3s;
}
.eng__icon::before, .eng__icon::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; margin: -0.75px 0 0 -6px;
  border-radius: 1px; background: currentColor; transition: transform .4s var(--ease);
}
.eng__icon::after { transform: rotate(90deg); }
.eng__item button:hover .eng__icon { background: var(--fg); color: var(--eng-pill); }
[aria-selected="true"] .eng__icon { background: var(--fg); color: var(--eng-pill); }
[aria-selected="true"] .eng__icon::after { transform: rotate(0); }
/* Text keeps the open width while the pill grows, so it doesn't reflow mid-animation */
.eng__more { min-height: 0; width: 0; min-width: 100%; overflow: hidden; }
.eng__more p {
  width: calc(100cqi - 52px); margin: 0 26px; padding: 2px 0 24px;
  font-size: 16px; line-height: 1.5; color: var(--fg-2);
  opacity: 0; visibility: hidden; transition: opacity .2s, visibility 0s .2s;
}
.eng__more strong { color: var(--fg); font-weight: 600; }
[aria-selected="true"] + .eng__more p { opacity: 1; visibility: visible; transition: opacity .4s .2s; }

.eng__stage { display: grid; }
/* Panels share one grid cell. data-pos (main.js) says whether a hidden panel sits before or after
   the active one, so the picture slides in from the direction of travel and out the other way. */
.eng__panel { grid-area: 1 / 1; display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.eng__panel[aria-hidden="true"] { visibility: hidden; pointer-events: none; transition: visibility 0s .6s; }
.eng__media {
  overflow: hidden; border-radius: 26px; aspect-ratio: 1408 / 768; background: #EFEFF3;
  transition: opacity .7s var(--ease), transform .9s var(--ease), filter .7s var(--ease);
}
.eng__media img, .eng__hub { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.eng__hub text { font-family: var(--font); }
[data-pos] .eng__media { opacity: 0; filter: blur(14px); transition-duration: .45s, .6s, .45s; }
[data-pos="after"] .eng__media { transform: translateX(10%) scale(.9); }
[data-pos="before"] .eng__media { transform: translateX(-10%) scale(.9); }
[data-pos] .eng__media img, [data-pos] .eng__hub { transform: scale(1.12); transition-duration: .6s; }
@media (prefers-color-scheme: dark) { .eng__media { box-shadow: 0 30px 80px -40px rgba(41, 151, 255, .35); } }

.eng__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 28px; }
@media (max-width: 480px) { .eng__list { grid-template-columns: minmax(0, 1fr); } }
.eng__list li {
  display: flex; flex-direction: column; gap: 4px; padding-top: 14px; border-top: 1px solid var(--line);
  transition: opacity .5s var(--ease), transform .6s var(--ease);
  transition-delay: calc(.25s + var(--i) * .07s);
}
[data-pos] .eng__list li { opacity: 0; transform: translateY(12px); transition-delay: 0s; transition-duration: .25s; }
.eng__list strong { font-size: 16px; font-weight: 600; letter-spacing: -0.02em; }
.eng__list span { font-size: 14px; line-height: 1.45; color: var(--muted); }
.eng__stack { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; transition: opacity .5s .55s; }
[data-pos] .eng__stack { opacity: 0; transition-delay: 0s; transition-duration: .2s; }
.eng__stack li { font-family: var(--mono); font-size: 12px; padding: 6px 10px; border-radius: 8px; background: var(--surface-raised); color: var(--fg-2); }

/* 04 · IT Consulting: roadmap timeline */
.roadmap { list-style: none; margin: auto 0 0; padding: 20px 0 0; display: flex; flex-direction: column; }
.roadmap li {
  position: relative; display: grid; grid-template-columns: 82px minmax(0, 1fr); column-gap: 18px;
  padding: 0 0 18px 26px;
}
.roadmap li::before { /* node */
  content: ""; position: absolute; left: 0; top: 4px; width: 12px; height: 12px; border-radius: 50%;
  background: var(--surface); box-shadow: inset 0 0 0 2px var(--accent);
}
.roadmap li::after { /* rail to the next node */
  content: ""; position: absolute; left: 5px; top: 20px; bottom: 2px; width: 2px; background: var(--line);
}
.roadmap li:last-child { padding-bottom: 0; }
.roadmap li:last-child::after { display: none; }
.roadmap li.is-strong::before { background: var(--accent); }
.roadmap__when { grid-row: span 2; font-family: var(--mono); font-size: 12px; color: var(--muted); padding-top: 3px; }
.roadmap strong { font-size: 16px; font-weight: 600; }
.roadmap li > span:last-child { font-size: 14px; color: var(--muted); line-height: 1.45; }
.roadmap li.is-strong strong { color: var(--eyebrow); }

/* 05 · Maintenance: service status panel */
.status { margin-top: auto; background: var(--surface-raised); border-radius: 18px; padding: 6px 18px; box-shadow: var(--shadow-tile); }
.status__head { display: flex; align-items: center; gap: 10px; padding: 14px 0; font-size: 15px; font-weight: 600; }
.status__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ok) 22%, transparent); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px color-mix(in srgb, var(--ok) 0%, transparent); } }
.status__row { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line-soft); font-size: 14px; }
.status__row > span:first-child { display: flex; align-items: center; gap: 10px; font-weight: 500; }
.status__row > span:first-child::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ok); }
.status__row > span:last-child { color: var(--muted); text-align: right; }

/* 06 · Dedicated resources: specialist cards */
/* Specialists: endless Apple-style carousel, three cards per view; each step slides one card (main.js) */
.team-carousel { margin-top: 18px; --gap: 12px; --per: 3; }
.team-viewport { overflow: hidden; border-radius: 20px; touch-action: pan-y; }
.team-viewport:focus-visible { outline: 2px solid var(--ink-link); outline-offset: 4px; }
.team { list-style: none; margin: 0; padding: 0; display: flex; gap: var(--gap); will-change: transform; }
.team.is-sliding { transition: transform .6s cubic-bezier(.25, .1, .25, 1); }
.team > .person { flex: 0 0 calc((100% - (var(--per) - 1) * var(--gap)) / var(--per)); }
@media (max-width: 900px) { .team-carousel { --per: 2; } }
@media (max-width: 600px) { .team-carousel { --per: 1.15; } }
.carousel__nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 22px; }
.carousel__dots { display: flex; gap: 8px; }
.carousel__dots i { width: 8px; height: 8px; border-radius: 50%; background: #48484A; transition: background-color .3s, width .3s var(--ease); }
.carousel__dots i.is-on { width: 22px; border-radius: 4px; background: #F5F5F7; }
.carousel__paddles { display: flex; gap: 12px; margin-left: auto; }
.carousel__btn {
  width: 36px; height: 36px; border-radius: 50%; border: 0; padding: 0; cursor: pointer;
  display: grid; place-items: center; background: #333336; color: #F5F5F7; transition: background-color .2s, opacity .2s;
}
.carousel__btn:hover { background: #424245; }
.carousel__btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
@media (prefers-reduced-motion: reduce) { .team.is-sliding { transition-duration: .01s; } }
.person { background: #1C1C1E; border-radius: 20px; padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.person__top { display: flex; gap: 12px; align-items: center; }
.person__top > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.person__top strong { font-size: 16px; font-weight: 600; }
.person__top span { font-size: 13px; color: var(--ink-muted); }
.person__avatar { flex: none; width: 52px; height: 52px; border-radius: 50%; object-fit: cover; background: #2C2C2E; }
.person p { font-size: 14px; line-height: 1.5; color: var(--ink-muted); }

/* ---------- Process list (services) ---------- */
.process { padding: 130px 22px 110px; }
.process .wrap { display: flex; flex-direction: column; gap: 56px; }
.process ol { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--line); }
.process li { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 24px; padding: 32px 0; border-top: 1px solid var(--line); align-items: baseline; }
.process li > div { display: flex; flex-direction: column; gap: 8px; }
.process__num { font-size: 44px; font-weight: 300; letter-spacing: -0.04em; color: var(--eyebrow); }
.process h3 { font-size: 28px; font-weight: 600; letter-spacing: -0.03em; }
.process p { font-size: 19px; line-height: 1.5; color: var(--muted); }
@media (max-width: 560px) { .process li { grid-template-columns: 64px minmax(0, 1fr); gap: 12px; } .process__num { font-size: 32px; } }

/* ---------- Delivery model (services) ---------- */
.delivery { background: var(--surface); padding: 120px 22px; }
.delivery .wrap { display: flex; gap: 64px; flex-wrap: wrap; align-items: center; }
.delivery__copy { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.delivery__copy h2 { font-size: clamp(32px, 3.8vw, 52px); line-height: 1.06; letter-spacing: -0.04em; font-weight: 600; }
.delivery__copy p { font-size: 19px; line-height: 1.55; color: var(--fg-2); }
.delivery__copy p + p { font-size: 17px; color: var(--muted); }
.org { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.org__node { padding: 16px 26px; border-radius: var(--radius-pill); background: var(--surface-raised); font-size: 17px; font-weight: 600; box-shadow: var(--shadow-tile); }
.org__line { width: 2px; height: 28px; background: var(--line); }
.org__main { padding: 20px 32px; border-radius: 22px; background: var(--fg); color: var(--bg); font-size: 19px; font-weight: 600; text-align: center; }
.org__main div { font-size: 13px; font-weight: 400; opacity: .65; margin-top: 4px; }
.org__leaves { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.org__leaves div { padding: 12px 18px; border-radius: 16px; background: var(--surface-raised); font-size: 14px; font-weight: 500; }

.cta-plain { padding: 130px 22px; text-align: center; }
.cta-plain .wrap { display: flex; flex-direction: column; gap: 20px; align-items: center; }
.cta-plain h2 { font-size: clamp(36px, 5.4vw, 72px); line-height: 1.03; letter-spacing: -0.045em; font-weight: 600; }
.cta-plain .btn { margin-top: 12px; }

/* ---------- Projects ---------- */
.feature { background: var(--ink); color: var(--ink-fg); border-radius: var(--radius-xl); overflow: hidden; display: flex; flex-wrap: wrap; align-items: stretch; }
.feature__copy { flex: 1 1 420px; min-width: 0; padding: clamp(40px, 5vw, 72px); display: flex; flex-direction: column; gap: 18px; }
.feature__tags { display: flex; gap: 8px; flex-wrap: wrap; }
.feature__tags span { font-size: 13px; font-weight: 600; padding: 6px 12px; border-radius: var(--radius-pill); background: #1C1C1E; color: #D1D1D6; }
.feature h2 { font-size: clamp(44px, 5.4vw, 76px); line-height: 1; letter-spacing: -0.05em; font-weight: 700; }
.feature__tagline { font-size: 22px; line-height: 1.4; font-weight: 500; letter-spacing: -0.02em; }
.feature__text { font-size: 17px; line-height: 1.6; color: var(--ink-muted); }
.feature dl { margin: 8px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; font-size: 15px; }
.feature dt { color: #8E8E93; }
.feature dd { margin: 4px 0 0; font-weight: 600; }
.feature__actions { margin-top: auto; padding-top: 16px; }
.feature__visual { flex: 1 1 480px; min-width: 0; background: #161617; padding: 56px 0 0 48px; display: flex; align-items: flex-end; overflow: hidden; }
@media (prefers-color-scheme: dark) { .feature__visual { background: #0B0B0C; } }

.slot {
  margin-top: 20px; border: 1.5px dashed var(--line); border-radius: var(--radius-xl); padding: 48px;
  display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap;
}
.slot > div { display: flex; flex-direction: column; gap: 8px; }
.slot__code { font-family: var(--mono); font-size: 13px; color: var(--muted); }
.slot h3 { font-size: 28px; font-weight: 600; letter-spacing: -0.03em; color: var(--fg-2); }
.slot p { font-size: 15px; color: var(--muted); max-width: 420px; line-height: 1.55; }

.work { padding: 130px 22px 110px; }
.work .wrap { display: flex; flex-direction: column; gap: 48px; }
.work__head { display: flex; gap: 40px; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; }
.work__head p { font-size: 19px; line-height: 1.5; color: var(--muted); max-width: 520px; }
.work__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 20px; }
.work-card { background: var(--surface); border-radius: var(--radius-l); overflow: hidden; display: flex; flex-direction: column; }
.work-card__art { height: 240px; position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.work-card__body { padding: 30px 32px 34px; display: flex; flex-direction: column; gap: 12px; }
.work-card__body h3 { font-size: clamp(28px, 2.4vw, 32px); line-height: 1.1; font-weight: 600; letter-spacing: -0.035em; }
.work-card__body p { font-size: 15px; line-height: 1.55; color: var(--muted); }

/* ---------- Contact ---------- */
.contact { padding: 110px 22px 120px; background: var(--surface); }
.contact .wrap { max-width: 1180px; display: flex; gap: 64px; flex-wrap: wrap; align-items: flex-start; }
.contact__intro { flex: 1 1 400px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.contact__intro h1 { font-size: clamp(44px, 6vw, 80px); line-height: 1.02; letter-spacing: -0.05em; font-weight: 600; }
.info-cards { margin-top: 24px; display: flex; flex-direction: column; gap: 12px; }
.info-card { background: var(--surface-raised); border-radius: 20px; padding: 22px 24px; display: flex; gap: 16px; align-items: center; }
.info-card__icon { width: 44px; height: 44px; border-radius: 12px; background: var(--surface); color: var(--fg); display: flex; align-items: center; justify-content: center; flex: none; }
.info-card > div { display: flex; flex-direction: column; gap: 3px; }
.info-card > div > span:first-child { font-size: 13px; color: var(--muted); }
.info-card strong, .info-card a { font-size: 17px; font-weight: 600; text-decoration: none; }

.form-panel { flex: 1 1 500px; min-width: 0; background: var(--surface-raised); border-radius: var(--radius-xl); padding: clamp(28px, 4vw, 48px); box-shadow: 0 30px 60px -40px rgba(0, 0, 0, .25); }
.form { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.form__row { display: flex; flex-direction: column; gap: 8px; }
.form__row--full { grid-column: 1 / -1; }
.form label { font-size: 14px; font-weight: 600; }
.field {
  height: 52px; border: 1px solid var(--line); border-radius: 14px; padding: 0 16px;
  font: 17px var(--font); letter-spacing: -0.01em; color: var(--fg); background: var(--bg);
  transition: border-color .2s, box-shadow .2s;
}
.field:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent); }
textarea.field { height: auto; padding: 14px 16px; resize: vertical; }
select.field { padding: 0 14px; }
.field.touched:invalid { border-color: #D70015; }
.form__foot { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 4px; }
.form__status { font-size: 15px; color: var(--muted); }
.form__status.is-error { color: #D70015; }
button.btn { border: 0; cursor: pointer; font-family: var(--font); }
.thanks { min-height: 520px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 16px; }
.thanks[hidden], .form[hidden] { display: none; }
.thanks__mark { width: 64px; height: 64px; border-radius: 50%; background: #E8F5EC; display: flex; align-items: center; justify-content: center; }
.thanks h2 { font-size: 32px; font-weight: 600; letter-spacing: -0.03em; }
.thanks p { font-size: 17px; line-height: 1.55; color: var(--muted); max-width: 360px; }
.link-btn { border: 0; background: transparent; color: var(--link); cursor: pointer; font: 17px var(--font); min-height: 44px; }

/* ---------- Legal ---------- */
.legal { max-width: 760px; margin: 0 auto; padding: 110px 22px 130px; display: flex; flex-direction: column; gap: 22px; }
.legal h1 { font-size: clamp(40px, 5vw, 64px); line-height: 1.04; letter-spacing: -0.045em; font-weight: 600; }
.legal p { font-size: 19px; line-height: 1.6; color: var(--muted); }

/* ---------- Scroll reveal ----------
   main.js adds .is-in when an element enters the viewport.
   Hidden only when JS is on (html.js), so the page never ends up blank. */
.js .reveal {
  opacity: 0; transform: translateY(40px);
  transition: opacity .9s var(--ease), transform .9s var(--ease), filter .9s var(--ease);
  transition-delay: var(--delay, 0s);
}
.js .headline.reveal, .js h2.reveal { filter: blur(10px); }
.js .reveal.is-in { opacity: 1; transform: none; filter: none; }

/* ---------- Page transitions (cross-document View Transitions) ---------- */
/* A plain crossfade: both halves share duration and easing, so pixels that are
   identical on both pages (the nav) stay put instead of dipping. No named groups:
   Chrome renders a captured element's backdrop-filter onto itself, blurring the nav.
   On a page reached this way, html.vt-nav skips the load-in animations. */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .3s; animation-timing-function: ease; }
.vt-nav .rise { animation: none; }

/* ---------- Cursor spotlight on cards (main.js adds .spot, sets --mx/--my) ---------- */
.spot { position: relative; isolation: isolate; --spot-color: rgba(0, 113, 227, .09); }
.spot::after {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
  background: radial-gradient(520px circle at var(--mx, 50%) var(--my, 50%), var(--spot-color), transparent 45%);
  opacity: 0; transition: opacity .5s var(--ease);
}
.spot:hover::after { opacity: 1; }
.card--ink.spot, .product.spot, .feature.spot { --spot-color: rgba(41, 151, 255, .2); }
@media (prefers-color-scheme: dark) { .spot { --spot-color: rgba(41, 151, 255, .14); } }

/* ---------- Typing code ---------- */
.caret {
  display: inline-block; width: .55em; height: 1.15em; margin-left: 1px; vertical-align: text-bottom;
  background: #2997FF; border-radius: 1px; animation: caret 1s steps(1) infinite;
}
@keyframes caret { 50% { opacity: 0; } }

/* ---------- How we work: horizontal rail (main.js adds .is-rail on wide screens) ---------- */
.how__pin { display: flex; flex-direction: column; gap: 56px; }
.how__progress { display: none; }
.how.is-rail { padding: 0; }
.how.is-rail .headline { padding-inline: 22px; }
.how.is-rail .how__pin {
  position: sticky; top: var(--nav-h); height: calc(100vh - var(--nav-h));
  justify-content: center; overflow: hidden;
}
.how.is-rail .steps {
  display: flex; width: max-content; max-width: none; margin: 0; gap: 20px;
  padding-inline: max(22px, calc((100vw - 1240px) / 2));
  transform: translateX(var(--x, 0px)); will-change: transform;
}
.how.is-rail .step { width: clamp(340px, 33vw, 440px); min-height: 380px; padding: 44px 38px; }
.how.is-rail .step__num { font-size: 88px; }
.how.is-rail .how__progress {
  display: block; align-self: center; width: min(1196px, calc(100% - 44px)); height: 2px;
  border-radius: 2px; background: var(--line); overflow: hidden;
}
.how__progress span { display: block; height: 100%; background: var(--accent); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }

/* ---------- Marquee (who we work with) ---------- */
.marquee {
  margin: 36px -22px 0; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee__track { display: flex; width: max-content; }
.marquee.is-running .chips { flex-wrap: nowrap; margin: 0; padding-right: 12px; }
.marquee.is-running .marquee__track { animation: marquee var(--marquee-time, 40s) linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(calc(-1 * var(--group-w, 0px))); } }

/* ---------- Gradient headline text ---------- */
.grad-text {
  color: var(--accent);
  background: linear-gradient(100deg, #0071E3 0%, #00A3E0 30%, #5E5CE6 60%, #0071E3 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: grad-shift 9s ease-in-out infinite alternate;
}
@keyframes grad-shift { to { background-position: 100% 0; } }
@media (prefers-color-scheme: dark) {
  .grad-text { background-image: linear-gradient(100deg, #2997FF 0%, #64D2FF 30%, #7D7AFF 60%, #2997FF 100%); }
}

/* ---------- ContractorHub devices: rise on scroll (main.js sets --rise 0→1) ---------- */
.devices { --rise: 1; }
.device-tablet { transform: translateY(calc((1 - var(--rise)) * 90px)); }
.device-phone { transform: translateY(calc((1 - var(--rise)) * 240px)); }
.badge { transition: background-color .4s, color .4s; }
.badge.is-changing { animation: badge-pop .5s var(--ease); }
@keyframes badge-pop { 40% { transform: scale(1.12); } }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important; scroll-behavior: auto !important;
  }
  .hero-stage { height: auto; margin-top: 80px; }
  .hero-sticky { position: static; height: auto; }
  .segments { display: none; }
  .js .reveal { opacity: 1; transform: none; filter: none; }
  .marquee { -webkit-mask-image: none; mask-image: none; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}

/* ---------- What we build: concept screenshots ---------- */
.work-card__art--shot { height: 280px; align-items: flex-start; justify-content: flex-start; padding: 32px 0 0 32px; }
.work-card__art--shot img { display: block; width: 640px; max-width: none; height: auto; border-radius: 14px 0 0 0; box-shadow: 0 20px 40px -12px rgba(0,0,0,.3); }
.work-card__art--analysis { background: linear-gradient(160deg, #EEEDFD 0%, #DCDAFB 100%); }
.work-card__art--development { background: linear-gradient(160deg, #1C1F27 0%, #07080B 100%); }
.work-card__art--delivery { background: linear-gradient(160deg, #E4F2EE 0%, #CBE5DD 100%); }
@media (prefers-color-scheme: dark) {
  .work-card__art--analysis { background: linear-gradient(160deg, #2A2850 0%, #17162E 100%); }
  .work-card__art--delivery { background: linear-gradient(160deg, #163A32 0%, #0C221D 100%); }
}

/* ---------- Services 01: micro UIs (AI, enterprise systems, cloud) ---------- */
.mini-grid--ui { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); font-size: 12px; color: #D1D1D6; }
.mu { background: #1C1C1E; border: 1px solid #2C2C2E; border-radius: 18px; padding: 16px; display: flex; flex-direction: column; gap: 11px; min-width: 0; }
.mu svg { width: 14px; height: 14px; flex: none; }
.mu__head { display: flex; justify-content: space-between; align-items: center; gap: 8px; color: #8E8E93; }
.mu__pill { font-size: 11px; font-weight: 600; color: #D1D1D6; background: #2C2C2E; padding: 3px 8px; border-radius: 980px; display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.mu__pill--live { color: #64B5FF; background: rgba(41,151,255,.14); }
.mu__pill--live i { width: 6px; height: 6px; border-radius: 50%; background: #2997FF; animation: mu-pulse 1.6s ease-in-out infinite; }
@keyframes mu-pulse { 50% { opacity: .35; } }
.mu__title { font-size: 14px; font-weight: 600; color: #F5F5F7; }
.mu__title--split { display: flex; justify-content: space-between; align-items: baseline; }
.mu__delta { font-size: 13px; color: #30D158; }
.mu__steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.mu__steps li { display: flex; align-items: center; gap: 8px; }
.mu__steps li.is-current { color: #FFFFFF; font-weight: 600; }
.mu__steps li.is-current svg { animation: mu-spin 1.2s linear infinite; }
.mu__steps li.is-pending { color: #8E8E93; }
@keyframes mu-spin { to { transform: rotate(360deg); } }
.mu__chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: auto; }
.mu__chips span { padding: 3px 8px; border-radius: 980px; background: #2C2C2E; font-size: 11px; }
.mu__rows { display: flex; flex-direction: column; gap: 9px; }
.mu__row { display: grid; grid-template-columns: 62px 1fr auto; gap: 8px; align-items: center; }
.mu__row > span:last-child { text-align: right; color: #F5F5F7; }
.mu__bar { height: 6px; border-radius: 3px; background: #2C2C2E; }
.mu__bar b { display: block; height: 6px; border-radius: 3px; background: #2997FF; }
.mu__row.is-low .mu__bar b { background: #FF9F0A; }
.mu__row.is-low > span:last-child { color: #FFB340; font-weight: 600; }
.mu__flow { margin-top: auto; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; padding: 8px 10px; border-radius: 10px; background: #2C2C2E; font-size: 11px; }
.mu__flow span { color: #F5F5F7; }
.mu__flow i { font-style: normal; color: #636366; }
.mu__flow em { font-style: normal; margin-left: auto; color: #8E8E93; }
.mu__spark { width: 100% !important; height: 44px !important; display: block; }
.mu__svc { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.mu__svc span { display: inline-flex; align-items: center; gap: 5px; }
.mu__svc i { width: 6px; height: 6px; border-radius: 50%; background: #30D158; }
.mu__svc em { font-style: normal; color: #8E8E93; }
.mu__ok { margin-top: auto; display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 10px; background: rgba(48,209,88,.12); color: #7EE2A0; font-size: 11px; font-weight: 600; }
@media (prefers-reduced-motion: reduce) { .mu__pill--live i, .mu__steps li.is-current svg { animation: none; } }

/* ---------- ContractorHub showcase (Apple-style screen carousel) ---------- */
.chx { position: relative; overflow: hidden; background: #000000; color: #F5F5F7; margin-top: 120px; padding: clamp(96px, 11vw, 150px) 22px clamp(84px, 9vw, 124px); }
.chx__glow { position: absolute; left: 50%; top: 38%; width: 1200px; height: 760px; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(11,110,95,.42), rgba(11,110,95,0) 72%); pointer-events: none; }
.chx__intro { position: relative; max-width: 1000px; margin: 0 auto; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.chx__kicker { font-size: 17px; font-weight: 600; color: #86868B; }
.chx__name { margin: 0; padding-bottom: 6px; font-size: clamp(56px, 9vw, 124px); line-height: .95; letter-spacing: -0.055em; font-weight: 700; background: linear-gradient(180deg, #FFFFFF 35%, #7FD4BF 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.chx__tagline { margin: 4px 0 0; font-size: clamp(22px, 2.4vw, 32px); line-height: 1.2; font-weight: 600; letter-spacing: -0.025em; }
.chx__lead { margin: 0; max-width: 720px; font-size: 19px; line-height: 1.5; color: #A1A1A6; }
.chx__actions { justify-content: center; margin-top: 12px; }
.chx__btn { background: #0B6E5F; color: #FFFFFF; }
.chx__btn:hover { background: #095C4F; color: #FFFFFF; }
.chx__link { color: #2997FF; }
.chx__stage { position: relative; max-width: 1060px; margin: 72px auto 0; display: flex; flex-direction: column; align-items: center; }
.chx__laptop { width: 100%; padding: 0 4%; }
.chx__bezel { background: #1D1D1F; border: 1px solid #3A3A3C; border-radius: 24px 24px 6px 6px; padding: 12px 12px 16px; box-shadow: 0 60px 120px -40px rgba(11,110,95,.55); }
.chx__screen { position: relative; aspect-ratio: 16 / 10; border-radius: 10px; overflow: hidden; background: #F4F7F6; }
.chx__shot { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top left; opacity: 0; transform: scale(1.045); filter: blur(8px); transition: opacity .9s cubic-bezier(.4,0,.2,1), transform 1.6s cubic-bezier(.2,.7,.2,1), filter .9s ease; }
.chx__shot.is-on { opacity: 1; transform: none; filter: none; }
.chx__base { position: relative; height: 18px; margin: 0 -5%; background: linear-gradient(180deg, #4A4A4F 0%, #2C2C2E 100%); border-radius: 0 0 20px 20px; }
.chx__base span { position: absolute; left: 50%; top: 0; width: 16%; height: 7px; transform: translateX(-50%); background: #1D1D1F; border-radius: 0 0 9px 9px; }
.chx__caption { margin: 40px 0 0; min-height: 58px; max-width: 640px; text-align: center; font-size: 19px; line-height: 1.5; color: #A1A1A6; transition: opacity .2s ease; }
.chx__caption b { color: #F5F5F7; font-weight: 600; }
.chx__caption.is-swapping { opacity: 0; }
.chx__controls { margin-top: 22px; display: flex; align-items: center; gap: 12px; max-width: 100%; }
.chx__rail { display: flex; gap: 4px; padding: 5px; border-radius: 999px; background: rgba(255,255,255,.09); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); overflow-x: auto; max-width: calc(100vw - 110px); scrollbar-width: none; }
.chx__rail::-webkit-scrollbar { display: none; }
.chx__tab { position: relative; flex: none; border: 0; background: transparent; color: #A1A1A6; height: 44px; padding: 0 18px; border-radius: 999px; font: inherit; font-size: 14px; font-weight: 500; cursor: pointer; white-space: nowrap; overflow: hidden; transition: background .35s ease, color .35s ease; }
.chx__tab:hover { color: #F5F5F7; }
.chx__tab.is-on { background: #F5F5F7; color: #1D1D1F; }
.chx__tab:focus-visible, .chx__play:focus-visible { outline: 2px solid #2997FF; outline-offset: 2px; }
.chx__bar { position: absolute; left: 18px; right: 18px; bottom: 7px; height: 2px; border-radius: 2px; background: rgba(0,0,0,.08); opacity: 0; }
.chx__tab.is-on .chx__bar { opacity: 1; }
.chx__bar i { display: block; height: 100%; width: 0; border-radius: 2px; background: #0B6E5F; }
.chx.is-playing .chx__tab.is-on .chx__bar i, .chx.is-paused .chx__tab.is-on .chx__bar i { animation: chx-fill var(--chx-dur, 5s) linear forwards; }
.chx.is-paused .chx__tab.is-on .chx__bar i { animation-play-state: paused; }
@keyframes chx-fill { from { width: 0; } to { width: 100%; } }
.chx__play { width: 44px; height: 44px; flex: none; border: 0; border-radius: 50%; background: rgba(255,255,255,.12); color: #F5F5F7; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.chx__play:hover { background: rgba(255,255,255,.2); }
.chx__ico-play { display: none; }
.chx.is-user-paused .chx__ico-play { display: block; }
.chx.is-user-paused .chx__ico-pause { display: none; }
@media (max-width: 640px) { .chx__laptop { padding: 0; } .chx__base { margin: 0 -3%; } }
@media (prefers-reduced-motion: reduce) {
  .chx__shot { transition: opacity .3s ease; transform: none; filter: none; }
  .chx__tab.is-on .chx__bar i { animation: none !important; width: 100%; }
}

/* ---------- Our Projects: ContractorHub stacked screens ---------- */
.feature dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.chs__nav { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 5px; border-radius: 999px; background: rgba(255,255,255,.08); align-self: flex-start; margin-top: 6px; }
.chs__nav button { border: 0; background: transparent; color: #A1A1A6; height: 40px; padding: 0 16px; border-radius: 999px; font: inherit; font-size: 14px; font-weight: 500; cursor: pointer; transition: background .3s ease, color .3s ease; }
.chs__nav button:hover { color: #F5F5F7; }
.chs__nav button.is-on { background: #F5F5F7; color: #1D1D1F; }
.chs__nav button:focus-visible { outline: 2px solid #2997FF; outline-offset: 2px; }
.feature__visual { padding: 72px 0 0 40px; }
.chs { position: relative; width: 100%; aspect-ratio: 16 / 12.5; cursor: pointer; }
.chs__card { position: absolute; right: 0; bottom: 0; margin: 0; width: 94%; aspect-ratio: 16 / 10; background: #2C2C2E; border-radius: 16px 0 0 0; padding: 10px 0 0 10px; overflow: hidden; box-shadow: 0 30px 70px -20px rgba(0,0,0,.65); transform-origin: 100% 100%; transition: transform 1s cubic-bezier(.2,.7,.2,1), opacity 1s ease, filter 1s ease; }
.chs__card img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top left; border-radius: 8px 0 0 0; }
.chs__card[data-pos="0"] { z-index: 3; transform: none; opacity: 1; filter: none; }
.chs__card[data-pos="1"] { z-index: 2; transform: translate(-13%, -15%) scale(.92); opacity: .8; filter: brightness(.7); }
.chs__card[data-pos="2"] { z-index: 1; transform: translate(-26%, -30%) scale(.84); opacity: .55; filter: brightness(.5); }
@media (max-width: 640px) { .feature__visual { padding: 40px 0 0 24px; } .feature dl { grid-template-columns: 1fr; } .chs__nav { border-radius: 24px; } }
@media (prefers-reduced-motion: reduce) { .chs__card { transition: opacity .3s ease; } }
