/* ==========================================================================
   muzsoft — design system
   Palette taken from the logo: navy #14223B · teal #278F9C · coral #F17862
   paper #F7F9F6 · mist #E1EDF1 · line #CAD8DA
   ========================================================================== */

:root {
  --navy: #14223b;
  --navy-90: #1b2b48;
  --navy-80: #26385b;
  --teal: #278f9c;
  --teal-ink: #1b6f7a;      /* AA-compliant teal for small text */
  --teal-tint: #e2f1f2;
  --coral: #f17862;
  --coral-tint: #fbe6e0;
  --paper: #f7f9f6;
  --mist: #e1edf1;
  --mist-2: #eef4f5;
  --line: #dde6e7;
  --line-strong: #cad8da;
  --ink: #14223b;
  --ink-2: #48546a;
  --ink-3: #74808f;
  --ok: #1b7a63;
  --ok-tint: #e3f2ed;
  --warn: #a95a22;
  --warn-tint: #fcefe3;
  --danger: #c2412d;

  --radius-s: 10px;
  --radius: 18px;
  --radius-l: 28px;
  --shadow: 0 1px 2px rgba(20, 34, 59, 0.04), 0 8px 24px rgba(20, 34, 59, 0.06);
  --shadow-l: 0 2px 6px rgba(20, 34, 59, 0.04), 0 30px 80px -20px rgba(20, 34, 59, 0.22);

  --max: 1200px;
  --gutter: clamp(20px, 4vw, 40px);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; overflow-x: hidden; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  letter-spacing: -0.006em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "cv11", "ss01", "ss03";
  text-rendering: optimizeLegibility;
}
body.menu-open { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4, p, ul, ol, figure, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
[hidden] { display: none !important; }
::selection { background: var(--navy); color: #fff; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 6px; }

@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; }
}

/* ---------- Layout ---------- */
.container { width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: calc(840px + var(--gutter) * 2); }
.section { padding-block: clamp(88px, 11vw, 160px); }
.section--tight { padding-block: clamp(48px, 6vw, 88px); }
.section--flush-top { padding-top: 0; }
.section--white { background: #fff; }
.section--mist { background: var(--mist-2); }
.section--dark { background: var(--navy); color: #fff; }

/* ---------- Type ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 14px; font-weight: 600; color: var(--teal-ink);
  margin-bottom: 22px;
}
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--coral); }
.display { font-size: clamp(36px, 7.8vw, 108px); line-height: 0.98; letter-spacing: -0.052em; font-weight: 600; }
.h1 { font-size: clamp(36px, 6.2vw, 84px); line-height: 1.01; letter-spacing: -0.048em; font-weight: 600; }
.h2 { font-size: clamp(26px, 4.6vw, 62px); line-height: 1.04; letter-spacing: -0.042em; font-weight: 600; }
.h3 { font-size: clamp(20px, 2vw, 28px); line-height: 1.18; letter-spacing: -0.028em; font-weight: 600; }
.h4 { font-size: clamp(17px, 1.4vw, 19px); line-height: 1.3; letter-spacing: -0.018em; font-weight: 600; }
.lead { font-size: clamp(17px, 1.7vw, 23px); line-height: 1.45; color: var(--ink-2); letter-spacing: -0.014em; }
.muted { color: var(--ink-3); }
.text-2 { color: var(--ink-2); }
.soft { color: var(--ink-3); }
.mono { font-family: var(--mono); font-size: 0.86em; letter-spacing: 0; }
.section--dark .lead { color: rgba(255, 255, 255, 0.68); }
.section--dark .eyebrow { color: #8fd0d8; }
.section--dark .soft { color: rgba(255, 255, 255, 0.45); }

.section-head { max-width: 780px; margin-bottom: clamp(48px, 6vw, 84px); }
.section-head .lead { margin-top: 22px; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.section-head--split { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; max-width: none; flex-wrap: wrap; }
.section-head--split > div { max-width: 720px; }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 50px; padding: 0 24px; border-radius: 999px;
  font-size: 16px; font-weight: 500; letter-spacing: -0.01em; white-space: nowrap;
  border: 1px solid transparent; cursor: pointer; touch-action: manipulation;
  transition: background-color 0.2s var(--ease), color 0.2s, border-color 0.2s, transform 0.2s var(--ease);
}
.btn:active { transform: scale(0.98); }
.btn--primary { background: var(--navy); color: #fff; }
.btn--primary:hover { background: var(--navy-80); }
.btn--secondary { background: #fff; color: var(--ink); border-color: var(--line-strong); }
.btn--secondary:hover { border-color: var(--navy); }
.btn--light { background: #fff; color: var(--navy); }
.btn--light:hover { background: var(--mist); }
.btn--ghost-light { color: #fff; border-color: rgba(255, 255, 255, 0.28); }
.btn--ghost-light:hover { border-color: #fff; }
.btn--sm { height: 38px; padding: 0 16px; font-size: 14px; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: 0.55; cursor: progress; }
.btn__spinner { width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin 0.7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.link-arrow { display: inline-flex; align-items: center; gap: 6px; color: var(--teal-ink); font-weight: 500; }
.link-arrow svg { width: 14px; height: 14px; transition: transform 0.25s var(--ease); }
.link-arrow:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.link-arrow:hover svg { transform: translateX(3px); }
.section--dark .link-arrow { color: #8fd0d8; }

.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 10px; }
.skip:focus { top: 12px; }

/* ---------- Brand ---------- */
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--navy); }
.brand__mark { width: 34px; height: auto; flex: none; }
.brand__word { font-size: 22px; font-weight: 600; letter-spacing: -0.05em; line-height: 1; padding-bottom: 2px; }
.brand__word span { color: var(--teal); font-weight: 500; }

/* ---------- Navigation ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 249, 246, 0.78);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav__inner {
  height: 68px; display: flex; align-items: center; gap: 24px;
  max-width: calc(var(--max) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter);
}
.nav__links { display: flex; gap: 2px; margin-left: auto; }
.nav__links a { font-size: 14.5px; color: var(--ink-2); padding: 8px 12px; border-radius: 8px; transition: color 0.2s; }
.nav__links a:hover { color: var(--ink); }
.nav__links a[aria-current="page"] { color: var(--ink); font-weight: 500; }
.nav__cta { margin-left: 8px; }
.nav__toggle {
  display: none; width: 44px; height: 44px; margin-left: auto; margin-right: -10px;
  background: none; border: 0; cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 6px;
}
.nav__toggle span { width: 20px; height: 1.5px; background: var(--navy); border-radius: 2px; transition: transform 0.3s var(--ease); }
.nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(3.75px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.75px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 68px 0 0; z-index: 49; overflow-y: auto;
  background: var(--paper); padding: 16px var(--gutter) 40px;
  animation: menu-in 0.35s var(--ease); overscroll-behavior: contain;
}
@keyframes menu-in { from { opacity: 0; transform: translateY(-8px); } }
.m-link { display: block; font-size: 30px; font-weight: 600; letter-spacing: -0.035em; padding: 14px 0; border-bottom: 1px solid var(--line); }
.m-link[aria-current="page"] { color: var(--teal-ink); }
.mobile-menu__cta { margin-top: 32px; width: 100%; }
.mobile-menu__mail { margin-top: 20px; text-align: center; }

@media (max-width: 920px) {
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: inline-flex; }
}

/* ---------- Hero ---------- */
.hero { padding-top: clamp(56px, 9vw, 128px); padding-bottom: clamp(72px, 9vw, 128px); overflow: hidden; }
.hero__copy { max-width: 1000px; }
.hero .lead { max-width: 640px; margin-top: 30px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; margin-top: 40px; }
.hero__visual { position: relative; margin-top: clamp(64px, 8vw, 104px); margin-bottom: 96px; }

/* Delivery console (hero product shot) */
.console {
  background: #fff; border: 1px solid var(--line); border-radius: 22px;
  box-shadow: var(--shadow-l); overflow: hidden; margin-left: clamp(0px, 9vw, 132px);
}
.console__bar {
  height: 44px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 0 16px; border-bottom: 1px solid var(--line); background: #fbfcfb;
}
.dots { display: flex; gap: 7px; }
.dots i { width: 11px; height: 11px; border-radius: 50%; background: #dce4e6; }
.console__url { font-family: var(--mono); font-size: 12px; color: var(--ink-3); background: var(--mist-2); padding: 4px 16px; border-radius: 7px; }
.console__body { display: grid; grid-template-columns: 210px 1fr; min-height: 460px; }
.console__side { border-right: 1px solid var(--line); padding: 20px 12px; display: flex; flex-direction: column; gap: 2px; font-size: 13.5px; color: var(--ink-2); background: #fcfdfc; }
.side__label { font-size: 11px; font-weight: 600; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.07em; padding: 14px 10px 8px; }
.side__label:first-child { padding-top: 0; }
.side__item { padding: 7px 10px; border-radius: 8px; display: flex; align-items: center; gap: 10px; }
.side__item::before { content: ""; width: 13px; height: 13px; border-radius: 4px; border: 1.5px solid currentColor; opacity: 0.45; }
.side__item.is-active { background: var(--mist-2); color: var(--ink); font-weight: 500; }
.side__item.is-active::before { background: var(--teal); border-color: var(--teal); opacity: 1; }
.side__item b { margin-left: auto; font-weight: 500; font-size: 11px; background: var(--coral-tint); color: #b2462f; padding: 1px 7px; border-radius: 99px; }
.console__main { padding: 24px 28px 18px; display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.console__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.console__head p { font-size: 12.5px; color: var(--ink-3); }
.console__head h3 { font-size: 20px; letter-spacing: -0.025em; font-weight: 600; margin-top: 2px; }
.avatars { display: flex; align-items: center; gap: 12px; }
.avatars span { display: flex; }
.avatars i { width: 28px; height: 28px; border-radius: 50%; border: 2px solid #fff; margin-left: -8px; display: grid; place-items: center; font-style: normal; font-size: 10.5px; font-weight: 600; color: #fff; background: var(--navy); }
.avatars i:nth-child(2) { background: var(--teal); }
.avatars i:nth-child(3) { background: var(--coral); }
.avatars i:nth-child(4) { background: var(--mist); color: var(--ink-2); }

.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 500; padding: 3px 10px; border-radius: 999px; background: var(--mist-2); color: var(--ink-2); white-space: nowrap; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill--ok { background: var(--ok-tint); color: var(--ok); }
.pill--wait { background: var(--warn-tint); color: var(--warn); }
.pill--run { background: var(--teal-tint); color: var(--teal-ink); }

.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.kpi { border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.kpi span { font-size: 12px; color: var(--ink-3); display: block; }
.kpi strong { font-size: 26px; letter-spacing: -0.035em; font-weight: 600; display: inline-block; margin-top: 4px; }
.kpi small { font-size: 14px; color: var(--ink-3); font-weight: 500; margin-left: 1px; }
.kpi em { font-style: normal; font-size: 12px; font-weight: 500; color: var(--ok); margin-left: 8px; }

.chart { border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px 10px; }
.chart__head { display: flex; justify-content: space-between; font-size: 12px; color: var(--ink-3); }
.chart__head b { color: var(--ink); font-weight: 600; }
.chart__legend { display: flex; gap: 14px; }
.chart__legend span { display: inline-flex; align-items: center; gap: 6px; }
.chart__legend span::before { content: ""; width: 10px; height: 2px; background: var(--teal); }
.chart__legend span + span::before { background: var(--line-strong); }
.chart svg { width: 100%; height: 132px; margin-top: 8px; }

.releases li { display: grid; grid-template-columns: 68px 1fr auto 64px; gap: 14px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); font-size: 13.5px; }
.releases code { font-family: var(--mono); font-size: 11.5px; color: var(--ink-3); }
.releases time { font-size: 12px; color: var(--ink-3); text-align: right; }

.terminal {
  position: absolute; left: 0; bottom: -96px; width: min(400px, 36%);
  background: #0f1a2e; color: #d6e2ea; border-radius: 16px; overflow: hidden;
  box-shadow: 0 40px 80px -20px rgba(20, 34, 59, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
  font-family: var(--mono); font-size: 12.5px;
}
.terminal__bar { height: 34px; display: flex; align-items: center; gap: 12px; padding: 0 14px; background: #14223b; border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
.terminal__bar .dots i { background: rgba(255, 255, 255, 0.16); width: 10px; height: 10px; }
.terminal__bar span { font-size: 11px; color: #6f8199; }
.terminal__body { padding: 16px 18px 18px; line-height: 1.8; }
.ln { white-space: pre; overflow: hidden; text-overflow: ellipsis; }
.js .reveal .ln { opacity: 0; }
.js .reveal.is-in .ln { animation: ln 0.35s var(--ease) forwards; }
.js .reveal.is-in .ln:nth-child(2) { animation-delay: 0.7s; }
.js .reveal.is-in .ln:nth-child(3) { animation-delay: 1.1s; }
.js .reveal.is-in .ln:nth-child(4) { animation-delay: 1.5s; }
.js .reveal.is-in .ln:nth-child(5) { animation-delay: 1.9s; }
.js .reveal.is-in .ln:nth-child(6) { animation-delay: 2.4s; }
@keyframes ln { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.t-dim { color: #6f8199; }
.t-ok { color: #5cc5b5; }
.t-coral { color: var(--coral); }
.t-teal { color: #7fcad3; }
.caret { display: inline-block; width: 7px; height: 14px; background: #7fcad3; vertical-align: -2px; animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

@media (max-width: 1024px) {
  .console { margin-left: 0; }
  .terminal { position: relative; left: auto; bottom: auto; width: auto; max-width: 520px; margin: -40px 20px 0; }
  .hero__visual { margin-bottom: 0; }
  .console__main { padding-bottom: 56px; }
}
@media (max-width: 900px) {
  .console__body { grid-template-columns: 1fr; min-height: 0; }
  .console__side { display: none; }
}
@media (max-width: 760px) {
  .console__body { grid-template-columns: 1fr; min-height: 0; }
  .console__side { display: none; }
  .console__main { padding: 18px 18px 52px; }
  .chart__legend { display: none; }
  .console__url { padding: 4px 10px; font-size: 11px; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .kpi:nth-child(3) { display: none; }
  .releases li { grid-template-columns: 1fr auto; }
  .releases code, .releases time { display: none; }
  .avatars span { display: none; }
  .terminal { margin: -32px 10px 0; font-size: 11.5px; }
}

/* ---------- Stack strip ---------- */
.stack { border-block: 1px solid var(--line); }
.stack__inner { display: flex; align-items: center; gap: 24px 48px; padding-block: 30px; flex-wrap: wrap; }
.stack__label { font-size: 14px; color: var(--ink-3); white-space: nowrap; }
.stack__list { display: flex; flex-wrap: wrap; gap: 12px 34px; font-size: 16.5px; font-weight: 500; color: var(--ink-2); letter-spacing: -0.015em; }

/* ---------- Bento ---------- */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tile {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  background: #fff; border-radius: var(--radius-l); padding: 40px; min-height: 460px;
  box-shadow: 0 0 0 1px rgba(20, 34, 59, 0.05);
}
.tile--wide { grid-column: span 2; }
.tile--full { grid-column: 1 / -1; min-height: 0; display: grid; grid-template-columns: 1fr 1.3fr; gap: 48px; align-items: center; }
.tile__eyebrow { font-size: 14px; font-weight: 600; color: var(--teal-ink); margin-bottom: 12px; }
.tile p.tile__text { color: var(--ink-2); margin-top: 14px; max-width: 460px; font-size: 16.5px; }
.tile__visual { margin-top: auto; padding-top: 36px; }
.tile__visual--center { display: flex; justify-content: center; }
.tile--dark { background: var(--navy); color: #fff; }
.tile--dark .tile__eyebrow { color: #8fd0d8; }
.tile--dark p.tile__text { color: rgba(255, 255, 255, 0.68); }

@media (max-width: 1024px) {
  .bento { grid-template-columns: 1fr 1fr; }
  .tile--wide { grid-column: 1 / -1; }
  .tile--full { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 680px) {
  .bento { grid-template-columns: 1fr; }
  .tile { min-height: 0; padding: 28px; }
}

/* skeleton bars used inside mock UIs */
.sk { display: block; height: 8px; border-radius: 4px; background: var(--mist); }
.w-30 { width: 30%; } .w-40 { width: 40%; } .w-50 { width: 50%; } .w-60 { width: 60%; } .w-70 { width: 70%; } .w-80 { width: 80%; }

/* mini browser */
.mb { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--paper); box-shadow: var(--shadow); margin-bottom: -80px; }
.mb__bar { height: 32px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 12px; background: #fff; border-bottom: 1px solid var(--line); }
.mb__bar .dots i { width: 8px; height: 8px; }
.mb__url { font-family: var(--mono); font-size: 10.5px; color: var(--ink-3); background: var(--mist-2); padding: 2px 14px; border-radius: 5px; }
.mb__body { display: grid; grid-template-columns: 150px 1fr; min-height: 270px; }
.mb__side { border-right: 1px solid var(--line); padding: 18px 16px; display: flex; flex-direction: column; gap: 14px; background: #fff; }
.mb__side .sk:first-child { background: var(--navy); height: 10px; margin-bottom: 8px; }
.mb__main { padding: 18px; display: grid; gap: 12px; grid-template-columns: repeat(3, 1fr); align-content: start; }
.mb__stat { background: #fff; border-radius: 10px; padding: 12px 14px; border: 1px solid var(--line); display: grid; gap: 8px; }
.mb__stat strong { font-size: 20px; letter-spacing: -0.035em; font-weight: 600; }
.mb__graph { grid-column: 1 / -1; background: #fff; border-radius: 10px; border: 1px solid var(--line); padding: 14px; }
.mb__graph svg { width: 100%; height: 96px; }
@media (max-width: 560px) { .mb__body { grid-template-columns: 1fr; } .mb__side { display: none; } .mb__main { grid-template-columns: 1fr 1fr; } .mb__stat:nth-child(3) { display: none; } }

/* phone */
.phone { width: 214px; border-radius: 40px; background: var(--navy); padding: 9px; box-shadow: var(--shadow-l); margin-bottom: -96px; flex: none; }
.phone__screen { position: relative; background: var(--paper); border-radius: 32px; height: 380px; overflow: hidden; padding: 44px 14px 14px; }
.phone__screen::before { content: ""; position: absolute; top: 10px; left: 50%; width: 72px; height: 21px; border-radius: 12px; background: var(--navy); transform: translateX(-50%); }
.ph-hi { font-size: 11px; color: var(--ink-3); }
.ph-title { font-size: 19px; font-weight: 600; letter-spacing: -0.03em; margin-bottom: 12px; }
.ph-card { background: var(--navy); color: #fff; border-radius: 16px; padding: 14px; display: grid; gap: 2px; margin-bottom: 12px; position: relative; overflow: hidden; }
.ph-card::after { content: ""; position: absolute; right: 14px; top: 14px; width: 8px; height: 8px; border-radius: 50%; background: var(--coral); }
.ph-card span { font-size: 10.5px; color: rgba(255, 255, 255, 0.6); }
.ph-card strong { font-size: 18px; letter-spacing: -0.03em; }
.ph-card em { font-style: normal; font-size: 11px; color: #8fd0d8; }
.ph-row { display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 12px; padding: 10px; margin-bottom: 8px; }
.ph-row i { width: 26px; height: 26px; border-radius: 8px; background: var(--teal-tint); flex: none; }
.ph-row div { flex: 1; display: grid; gap: 6px; }
.ph-row .sk { height: 6px; }

/* infra diagram */
.diagram { width: 100%; height: auto; }
.diagram rect { fill: #fff; stroke: var(--line-strong); }
.diagram text { font-family: var(--mono); font-size: 11px; fill: var(--ink-2); text-anchor: middle; }
.diagram .wire { fill: none; stroke: var(--teal); stroke-width: 1.5; stroke-dasharray: 4 5; animation: flow 1.6s linear infinite; }
.diagram .hot rect { fill: var(--navy); stroke: var(--navy); }
.diagram .hot text { fill: #fff; }
.diagram .dot { fill: var(--coral); }
@keyframes flow { to { stroke-dashoffset: -18; } }

/* design swatches */
.design-kit { display: grid; gap: 14px; }
.swatches { display: flex; gap: 10px; }
.swatches i { flex: 1; height: 64px; border-radius: 14px; position: relative; }
.swatches i::after { content: attr(data-hex); position: absolute; left: 10px; bottom: 8px; font-family: var(--mono); font-style: normal; font-size: 10px; color: rgba(255, 255, 255, 0.85); }
.sw-navy { background: var(--navy); } .sw-teal { background: var(--teal); } .sw-coral { background: var(--coral); }
.sw-mist { background: var(--mist); } .swatches .sw-mist::after { color: var(--ink-2); }
.specimen { display: flex; align-items: center; gap: 16px; border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.specimen > span { font-size: 44px; font-weight: 600; letter-spacing: -0.05em; line-height: 1; }
.specimen b { display: block; font-size: 14px; font-weight: 600; }
.specimen small { font-size: 12px; color: var(--ink-3); font-family: var(--mono); }
.kit-row { display: flex; gap: 8px; align-items: center; }
.kit-btn { height: 32px; padding: 0 14px; border-radius: 99px; font-size: 12.5px; font-weight: 500; display: inline-flex; align-items: center; background: var(--navy); color: #fff; }
.kit-btn--ghost { background: #fff; color: var(--ink); border: 1px solid var(--line-strong); }
.kit-toggle { margin-left: auto; width: 40px; height: 24px; border-radius: 99px; background: var(--teal); position: relative; }
.kit-toggle::after { content: ""; position: absolute; right: 3px; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; }

/* bar chart */
.bars { display: flex; align-items: flex-end; gap: 8px; height: 160px; }
.bars i { flex: 1; background: var(--mist); border-radius: 6px 6px 3px 3px; }
.bars i.hi { background: var(--teal); }
.bars i.top { background: var(--navy); }
.bars-meta { display: flex; justify-content: space-between; font-size: 12px; color: var(--ink-3); margin-top: 10px; font-family: var(--mono); }
.tile--dark .bars i { background: rgba(255, 255, 255, 0.12); }
.tile--dark .bars i.hi { background: var(--teal); }
.tile--dark .bars i.top { background: var(--coral); }
.tile--dark .bars-meta { color: rgba(255, 255, 255, 0.45); }

/* uptime */
.status-card { border: 1px solid var(--line); border-radius: 18px; padding: 22px; }
.status-card__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; font-size: 14px; gap: 12px; }
.status-card__head b { font-weight: 600; }
.uptime { display: flex; gap: 3px; height: 40px; }
.uptime i { flex: 1; border-radius: 3px; background: #5cb8a5; }
.uptime i.warn { background: #f2b36d; }
.uptime-meta { display: flex; justify-content: space-between; font-size: 12px; color: var(--ink-3); margin-top: 10px; }
.status-rows { margin-top: 18px; display: grid; gap: 0; }
.status-rows li { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); font-size: 14px; }
@media (max-width: 560px) { .uptime i:nth-child(-n+40) { display: none; } }

/* ---------- Process steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid rgba(255, 255, 255, 0.16); }
.step { position: relative; padding: 36px 32px 0 0; }
.step::before { content: ""; position: absolute; top: -4px; left: 0; width: 7px; height: 7px; border-radius: 50%; background: var(--coral); }
.step__num { font-family: var(--mono); font-size: 13px; color: rgba(255, 255, 255, 0.45); }
.step h3 { margin-top: 18px; font-size: 24px; letter-spacing: -0.028em; font-weight: 600; }
.step p { color: rgba(255, 255, 255, 0.66); margin-top: 12px; font-size: 16px; }
.step__time { display: inline-block; margin-top: 22px; font-size: 13px; font-weight: 500; color: #8fd0d8; }
.steps--light { border-top-color: var(--line-strong); }
.steps--light .step__num { color: var(--ink-3); }
.steps--light .step p { color: var(--ink-2); }
.steps--light .step__time { color: var(--teal-ink); }
@media (max-width: 960px) { .steps { grid-template-columns: 1fr 1fr; row-gap: 56px; } }
@media (max-width: 600px) { .steps { grid-template-columns: 1fr; border-top: 0; row-gap: 0; } .step { padding: 28px 0 28px 28px; border-left: 1px solid rgba(255, 255, 255, 0.16); } .step::before { left: -4px; top: 34px; } .steps--light .step { border-left-color: var(--line-strong); } }

.timeline-bar { margin-top: 72px; border-radius: 14px; background: rgba(255, 255, 255, 0.05); padding: 22px 24px; display: grid; grid-template-columns: repeat(12, 1fr); gap: 4px; position: relative; }
.timeline-bar span { height: 10px; border-radius: 3px; background: rgba(255, 255, 255, 0.1); }
.timeline-bar span.d { background: rgba(143, 208, 216, 0.5); }
.timeline-bar span.b { background: var(--teal); }
.timeline-bar span.l { background: var(--coral); }
.timeline-bar__labels { grid-column: 1 / -1; display: flex; justify-content: space-between; font-family: var(--mono); font-size: 11.5px; color: rgba(255, 255, 255, 0.45); margin-top: 12px; }
@media (max-width: 600px) { .timeline-bar { display: none; } }

/* ---------- Facts ---------- */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.fact { padding-top: 26px; border-top: 1px solid var(--line-strong); }
.fact strong { display: block; font-size: clamp(36px, 4.8vw, 68px); letter-spacing: -0.055em; font-weight: 600; line-height: 1; }
.fact strong small { font-size: 0.5em; letter-spacing: -0.03em; color: var(--ink-3); margin-left: 2px; }
.fact p { margin-top: 18px; color: var(--ink-2); font-size: 16px; max-width: 260px; }
@media (max-width: 960px) { .facts { grid-template-columns: 1fr 1fr; row-gap: 48px; } }
@media (max-width: 520px) { .facts { grid-template-columns: 1fr; } }

/* ---------- Work / case studies ---------- */
.cases { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.case { display: flex; flex-direction: column; background: #fff; border-radius: var(--radius-l); overflow: hidden; box-shadow: 0 0 0 1px rgba(20, 34, 59, 0.05); transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease); }
.case:hover { transform: translateY(-4px); box-shadow: 0 0 0 1px rgba(20, 34, 59, 0.05), var(--shadow-l); }
.case__media { aspect-ratio: 16 / 11; position: relative; overflow: hidden; display: grid; place-items: center; padding: 36px; }
.case__media--navy { background: var(--navy); }
.case__media--teal { background: #d8ebed; }
.case__media--coral { background: #f9e1da; }
.case__media--mist { background: var(--mist); }
.case__body { padding: 30px 34px 34px; display: flex; flex-direction: column; flex: 1; }
.case__meta { font-size: 14px; color: var(--ink-3); display: flex; gap: 8px; flex-wrap: wrap; }
.case__meta span + span::before { content: "·"; margin-right: 8px; }
.case h3 { margin-top: 10px; }
.case__body > p { margin-top: 12px; color: var(--ink-2); font-size: 16.5px; }
.case__results { display: flex; gap: 36px; margin-top: auto; padding-top: 24px; flex-wrap: wrap; }
.case__results > div { border-top: 1px solid var(--line); padding-top: 16px; flex: 1; min-width: 120px; }
.case__results strong { display: block; font-size: 26px; letter-spacing: -0.04em; font-weight: 600; }
.case__results span { font-size: 13.5px; color: var(--ink-3); }
.case--feature { grid-column: 1 / -1; display: grid; grid-template-columns: 1.25fr 1fr; }
.case--feature .case__media { aspect-ratio: auto; min-height: 460px; }
.case--feature .case__body { padding: 48px; justify-content: center; }
.case.is-hidden { display: none; }
@media (max-width: 960px) {
  .cases { grid-template-columns: 1fr; }
  .case--feature { grid-template-columns: 1fr; }
  .case--feature .case__media { min-height: 0; aspect-ratio: 16 / 11; }
  .case--feature .case__body { padding: 30px 34px 34px; }
}
@media (max-width: 520px) { .case__media { padding: 20px; } .case__body { padding: 24px; } }

/* project feature labels (instead of results figures) */
.case__highlights { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 24px; }
.case__highlights li { font-size: 13.5px; font-weight: 500; padding: 6px 12px; border-radius: 999px; background: var(--mist-2); color: var(--ink-2); }

/* AI conversation mock */
.convo { width: 100%; max-width: 470px; background: #fff; border-radius: 18px; padding: 18px; display: grid; gap: 10px; font-size: 13.5px; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.35); }
.convo__head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.convo__head strong { display: block; font-size: 15px; letter-spacing: -0.02em; }
.convo__head small { font-size: 12px; color: var(--ink-3); }
.convo__event { justify-self: center; margin-top: 4px; }
.wave { display: flex; align-items: center; gap: 3px; height: 22px; }
.wave i { width: 3px; border-radius: 2px; background: var(--teal); animation: wave 1.1s ease-in-out infinite; }
.wave i:nth-child(1) { height: 30%; } .wave i:nth-child(2) { height: 70%; animation-delay: 0.15s; } .wave i:nth-child(3) { height: 100%; animation-delay: 0.3s; }
.wave i:nth-child(4) { height: 60%; animation-delay: 0.45s; } .wave i:nth-child(5) { height: 35%; animation-delay: 0.6s; }
@keyframes wave { 50% { transform: scaleY(0.45); } }
/* On narrow screens let the conversation set its own height instead of being cropped */
@media (max-width: 960px) {
  .case__media:has(.convo) { aspect-ratio: auto; }
}
@media (max-width: 600px) {
  .convo .msg:nth-of-type(n + 3) { display: none; }
}
.msg { max-width: 84%; padding: 9px 13px; border-radius: 15px; line-height: 1.4; }
.msg small { display: block; font-size: 10.5px; font-weight: 600; opacity: 0.6; margin-bottom: 2px; }
.msg--in { justify-self: start; background: var(--mist-2); border-bottom-left-radius: 5px; }
.msg--out { justify-self: end; background: var(--navy); color: #fff; border-bottom-right-radius: 5px; }
.msg--ai { justify-self: stretch; max-width: none; display: grid; gap: 7px; padding: 12px 13px; background: var(--teal-tint); border-bottom-left-radius: 5px; }
.msg--ai .sk { background: rgba(27, 111, 122, 0.22); height: 7px; }

/* copilot mock */
.copilot { width: 100%; max-width: 520px; display: grid; grid-template-columns: 1fr 1.1fr; background: #fff; border-radius: 16px; overflow: hidden; box-shadow: 0 30px 60px -24px rgba(20, 34, 59, 0.3); font-size: 12.5px; }
.copilot__doc { padding: 20px 18px; display: grid; gap: 11px; align-content: start; }
.copilot__doc .copilot__title { height: 11px; background: var(--navy); margin-bottom: 6px; }
.copilot__panel { border-left: 1px solid var(--line); background: #fbfcfb; padding: 14px; display: grid; gap: 10px; align-content: start; }
.copilot__label { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 13px; }
.copilot__label b { width: 18px; height: 18px; border-radius: 6px; background: linear-gradient(135deg, var(--teal), var(--navy)); }
.copilot .msg { max-width: none; }
.copilot__actions { display: flex; gap: 6px; }
.copilot__actions .kit-btn { height: 28px; font-size: 12px; padding: 0 12px; }
@media (max-width: 520px) { .copilot { grid-template-columns: 1fr; } .copilot__doc { display: none; } }

/* restaurant menu (inside phone mock) */
.menu-row { display: flex; justify-content: space-between; gap: 8px; background: #fff; border-radius: 10px; padding: 9px 11px; margin-bottom: 7px; font-size: 11.5px; }
.menu-row b { font-weight: 600; }
.ph-cta { width: 100%; justify-content: center; height: 34px; margin-top: 6px; background: var(--coral); }

/* browser mock used inside a case card (no bleed) */
.mb--flat { width: 100%; max-width: 520px; margin-bottom: 0; }
.case__media .mb__body { min-height: 0; }

/* mock panels inside case media */
.mock { width: 100%; max-width: 520px; background: #fff; border-radius: 16px; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.35); padding: 18px; font-size: 13px; }
.mock__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-bottom: 12px; }
.mock__head strong { font-size: 15px; letter-spacing: -0.02em; }
.mock__row { display: grid; grid-template-columns: 82px 1fr auto auto; gap: 14px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.mock__row code { font-family: var(--mono); font-size: 11px; color: var(--ink-3); }
.mock__row b { font-weight: 600; font-variant-numeric: tabular-nums; }
@media (max-width: 520px) { .mock__row { grid-template-columns: 1fr auto; } .mock__row code, .mock__row b { display: none; } }

.map { width: 100%; max-width: 520px; position: relative; }
.map svg { width: 100%; height: auto; border-radius: 16px; background: #fff; box-shadow: 0 30px 60px -24px rgba(20, 34, 59, 0.3); }
.map .route { fill: none; stroke: var(--teal); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.map .road { fill: none; stroke: var(--mist); stroke-width: 7; stroke-linecap: round; }
.map__card { position: absolute; right: -10px; bottom: 22px; background: var(--navy); color: #fff; border-radius: 14px; padding: 12px 14px; font-size: 12px; box-shadow: var(--shadow-l); display: grid; gap: 2px; }
.map__card b { font-size: 17px; letter-spacing: -0.02em; }
.map__card span { color: rgba(255, 255, 255, 0.6); }
@media (max-width: 520px) { .map__card { right: 8px; bottom: 8px; } }

.phones { display: flex; gap: 18px; align-items: flex-end; transform: translateY(28%); }
.phones .phone { margin-bottom: 0; width: 190px; }
.phones .phone + .phone { transform: translateY(-36px); }
.phones .phone__screen { height: 360px; }
@media (max-width: 520px) { .phones .phone { width: 150px; } .phones .phone__screen { height: 300px; } .phones .phone + .phone { display: none; } }

.comp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; width: 100%; max-width: 520px; }
.comp { background: #fff; border-radius: 14px; padding: 16px; display: grid; gap: 10px; align-content: start; box-shadow: var(--shadow); }
.comp--span { grid-column: span 2; }
.comp small { font-family: var(--mono); font-size: 10.5px; color: var(--ink-3); }
.comp input { all: unset; height: 32px; border: 1px solid var(--line-strong); border-radius: 8px; padding: 0 10px; font-size: 12.5px; color: var(--ink-3); }
.comp .avatars { justify-content: flex-start; padding-left: 8px; }
@media (max-width: 520px) { .comp-grid { grid-template-columns: 1fr 1fr; } .comp--span { grid-column: 1 / -1; } .comp:last-child { display: none; } }

/* filter buttons */
.seg { display: flex; gap: 8px; flex-wrap: wrap; }
.seg button { height: 40px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line-strong); background: #fff; font-size: 14.5px; font-weight: 500; cursor: pointer; color: var(--ink-2); transition: all 0.2s var(--ease); touch-action: manipulation; }
.seg button:hover { color: var(--ink); border-color: var(--ink-3); }
.seg button[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }

/* ---------- CTA band ---------- */
.cta {
  position: relative; overflow: hidden; background: var(--navy); color: #fff;
  border-radius: var(--radius-l); padding: clamp(40px, 7vw, 96px);
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: end;
}
.cta .lead { color: rgba(255, 255, 255, 0.68); margin-top: 22px; max-width: 520px; }
.cta__actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: flex-end; position: relative; }
.cta__mark { position: absolute; right: -60px; top: -80px; width: 520px; color: rgba(255, 255, 255, 0.045); pointer-events: none; }
.cta > div { position: relative; }
@media (max-width: 860px) { .cta { grid-template-columns: 1fr; } .cta__actions { justify-content: flex-start; } }

/* ---------- Inner page hero ---------- */
.page-hero { padding-top: clamp(64px, 9vw, 128px); padding-bottom: clamp(56px, 7vw, 96px); }
.page-hero .lead { max-width: 700px; margin-top: 28px; }
.page-hero__actions { display: flex; gap: 14px 28px; align-items: center; flex-wrap: wrap; margin-top: 36px; }
.back-link { display: inline-flex; align-items: center; gap: 6px; font-size: 14.5px; color: var(--ink-2); margin-bottom: 32px; }
.back-link:hover { color: var(--ink); }
.back-link svg { width: 14px; height: 14px; }

/* ---------- Services detail ---------- */
.service { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(36px, 7vw, 112px); align-items: center; padding-block: clamp(64px, 8vw, 112px); border-top: 1px solid var(--line); }
.service:first-child { border-top: 0; padding-top: 0; }
.service:nth-child(even) .service__visual { order: -1; }
.service__copy .lead { margin-top: 18px; }
.service__num { font-family: var(--mono); font-size: 13px; color: var(--ink-3); display: block; margin-bottom: 18px; }
.ticks { margin-top: 32px; border-top: 1px solid var(--line); }
.ticks li { display: flex; gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
.ticks li::before { content: ""; flex: none; width: 18px; height: 18px; margin-top: 3px; border-radius: 50%; background: var(--teal-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-4.8' fill='none' stroke='%231b6f7a' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.chip { font-size: 13px; font-weight: 500; padding: 6px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--ink-2); }
.panel { position: relative; background: #fff; border-radius: var(--radius-l); min-height: 440px; padding: 44px; display: flex; flex-direction: column; justify-content: center; overflow: hidden; box-shadow: 0 0 0 1px rgba(20, 34, 59, 0.05); }
.panel--mist { background: var(--mist); }
.panel--navy { background: var(--navy); }
.panel--bleed { justify-content: flex-start; padding-bottom: 0; }
.panel .phone { margin: 0 auto -110px; }
.panel .mb { margin-bottom: -60px; }
@media (max-width: 900px) {
  .service { grid-template-columns: 1fr; }
  .service:nth-child(even) .service__visual { order: 0; }
  .panel { min-height: 340px; padding: 28px; }
}

/* ---------- Cards ---------- */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { background: #fff; border-radius: var(--radius); padding: 34px; display: flex; flex-direction: column; box-shadow: 0 0 0 1px rgba(20, 34, 59, 0.05); }
.card__tag { font-size: 13px; font-weight: 600; color: var(--teal-ink); margin-bottom: 18px; }
.card h3 { font-size: 24px; letter-spacing: -0.03em; font-weight: 600; line-height: 1.2; }
.card > p { color: var(--ink-2); margin-top: 12px; font-size: 16px; }
.card dl { margin-top: 28px; padding-top: 4px; display: grid; gap: 0; }
.card dl div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 14.5px; }
.card dt { color: var(--ink-3); }
.card dd { font-weight: 500; text-align: right; }
.card--featured { background: var(--navy); color: #fff; }
.card--featured .card__tag { color: #8fd0d8; }
.card--featured > p, .card--featured dt { color: rgba(255, 255, 255, 0.62); }
.card--featured dl div { border-top-color: rgba(255, 255, 255, 0.12); }
@media (max-width: 960px) { .cards-3 { grid-template-columns: 1fr 1fr; } .cards-3 > *:last-child:nth-child(odd) { grid-column: 1 / -1; } }

/* principles grid */
.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 56px 48px; }
.principle { border-top: 1px solid var(--line-strong); padding-top: 26px; }
.principle span { font-family: var(--mono); font-size: 13px; color: var(--ink-3); }
.principle h3 { margin-top: 14px; font-size: 22px; letter-spacing: -0.028em; font-weight: 600; }
.principle p { margin-top: 10px; color: var(--ink-2); font-size: 16px; }
.section--dark .principle { border-top-color: rgba(255, 255, 255, 0.16); }
.section--dark .principle span { color: rgba(255, 255, 255, 0.45); }
.section--dark .principle p { color: rgba(255, 255, 255, 0.66); }
@media (max-width: 960px) { .principles { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .principles { grid-template-columns: 1fr; gap: 36px; } }

/* split text block */
.split { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(32px, 7vw, 120px); align-items: start; }
.split__body p { font-size: clamp(16px, 1.9vw, 19px); line-height: 1.6; color: var(--ink-2); letter-spacing: -0.012em; }
.split__body p + p { margin-top: 22px; }
.split__body strong { color: var(--ink); font-weight: 600; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line-strong); }
.faq details { border-bottom: 1px solid var(--line-strong); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 24px; padding: 28px 0; font-size: clamp(16px, 1.6vw, 21px); font-weight: 600; letter-spacing: -0.022em; touch-action: manipulation; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 16px; height: 16px; margin-top: 6px;
  background: linear-gradient(currentColor, currentColor) center / 16px 1.6px no-repeat, linear-gradient(currentColor, currentColor) center / 1.6px 16px no-repeat;
  transition: transform 0.3s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 48px 30px 0; color: var(--ink-2); max-width: 760px; }
.faq details > div p + p { margin-top: 12px; }
.faq details > div a { color: var(--teal-ink); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Careers ---------- */
.perks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.perk { background: #fff; border-radius: var(--radius); padding: 28px; box-shadow: 0 0 0 1px rgba(20, 34, 59, 0.05); }
.perk svg { width: 28px; height: 28px; color: var(--teal); }
.perk h3 { margin-top: 22px; font-size: 18px; font-weight: 600; letter-spacing: -0.02em; }
.perk p { margin-top: 8px; color: var(--ink-2); font-size: 15px; }
@media (max-width: 1024px) { .perks { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .perks { grid-template-columns: 1fr; } }

.roles-toolbar { display: flex; gap: 16px; flex-wrap: wrap; justify-content: space-between; align-items: center; margin-bottom: 28px; }
.search { position: relative; flex: 0 1 340px; }
.search svg { position: absolute; left: 16px; top: 50%; width: 16px; height: 16px; transform: translateY(-50%); color: var(--ink-3); pointer-events: none; }
.search input { width: 100%; height: 44px; border-radius: 999px; border: 1px solid var(--line-strong); background: #fff; padding: 0 18px 0 42px; font-size: 16px; transition: border-color 0.2s, box-shadow 0.2s; }
.search input:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px rgba(39, 143, 156, 0.16); }
.roles-count { font-size: 14px; color: var(--ink-3); margin-bottom: 14px; }
.roles { border-top: 1px solid var(--line-strong); }
.role { display: grid; grid-template-columns: 1.7fr 1fr 0.8fr 44px; gap: 24px; align-items: center; padding: 26px 12px; margin-inline: -12px; border-bottom: 1px solid var(--line-strong); border-radius: 0; transition: background-color 0.2s; }
.role:hover { background: #fff; }
.role__title { font-size: 20px; font-weight: 600; letter-spacing: -0.024em; }
.role__sub { font-size: 14.5px; color: var(--ink-3); margin-top: 2px; }
.role__col { font-size: 15px; color: var(--ink-2); }
.role__meta { display: none; }
.role__summary { display: block; max-width: 520px; }
.role__arrow { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; transition: all 0.25s var(--ease); }
.role__arrow svg { width: 14px; height: 14px; }
.role:hover .role__arrow { background: var(--navy); border-color: var(--navy); color: #fff; }
.roles-empty { padding: 48px 0; text-align: center; color: var(--ink-2); }
.roles-general { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; margin-top: 40px; padding: 30px 34px; border-radius: var(--radius); background: var(--mist-2); }
.roles-general h3 { font-size: 20px; font-weight: 600; letter-spacing: -0.022em; }
.roles-general p { color: var(--ink-2); margin-top: 4px; font-size: 15.5px; }
@media (max-width: 760px) {
  .role { grid-template-columns: 1fr 44px; }
  .role__col, .role__summary { display: none; }
  .role__meta { display: inline; }
  .search { flex-basis: 100%; }
}

/* role page */
.job { display: grid; grid-template-columns: 1fr 360px; gap: clamp(40px, 7vw, 112px); align-items: start; }
.job__aside { position: sticky; top: 100px; background: #fff; border-radius: var(--radius); padding: 30px; box-shadow: 0 0 0 1px rgba(20, 34, 59, 0.05); }
.job__aside dl { display: grid; margin-bottom: 24px; }
.job__aside dl div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.job__aside dt { color: var(--ink-3); }
.job__aside dd { font-weight: 500; text-align: right; }
.job__aside .muted { font-size: 13.5px; margin-top: 14px; text-align: center; }
@media (max-width: 960px) { .job { grid-template-columns: 1fr; } .job__aside { position: static; order: -1; } }

.prose { color: var(--ink-2); font-size: 17.5px; line-height: 1.65; overflow-wrap: break-word; }
.prose > * + * { margin-top: 18px; }
.prose h2 { color: var(--ink); font-size: 26px; letter-spacing: -0.03em; font-weight: 600; line-height: 1.2; margin-top: 56px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { color: var(--ink); font-size: 19px; letter-spacing: -0.02em; font-weight: 600; margin-top: 32px; }
.prose ul li { position: relative; padding-left: 24px; }
.prose ul li + li { margin-top: 10px; }
.prose ul li::before { content: ""; position: absolute; left: 4px; top: 0.72em; width: 6px; height: 6px; border-radius: 50%; background: var(--teal); }
.prose a { color: var(--teal-ink); text-decoration: underline; text-underline-offset: 3px; }
.prose strong { color: var(--ink); font-weight: 600; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 22px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 20px; }
.form-grid .field--full { grid-column: 1 / -1; }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field > label, .label { font-size: 14.5px; font-weight: 500; color: var(--ink); }
.label .opt, .field > label .opt { color: var(--ink-3); font-weight: 400; }
.hint { font-size: 13.5px; color: var(--ink-3); }
.input,
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field input[type="url"],
.field select, .field textarea {
  width: 100%; height: 52px; padding: 0 16px;
  border: 1px solid var(--line-strong); border-radius: 12px; background: #fff;
  font-size: 16px; transition: border-color 0.2s, box-shadow 0.2s; -webkit-appearance: none; appearance: none;
}
.field textarea { height: auto; min-height: 168px; padding: 14px 16px; resize: vertical; line-height: 1.55; }
.field select {
  padding-right: 44px; cursor: pointer;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4' fill='none' stroke='%2374808f' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") right 16px center / 16px no-repeat;
}
.field input::placeholder, .field textarea::placeholder { color: #a3adb9; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--ink-3); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px rgba(39, 143, 156, 0.16); }
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-color: var(--danger); }
.field.is-invalid input:focus, .field.is-invalid textarea:focus { box-shadow: 0 0 0 4px rgba(194, 65, 45, 0.14); }
.field__error { font-size: 13.5px; color: var(--danger); font-weight: 500; }
.field__error:empty { display: none; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: var(--ink-2); cursor: pointer; line-height: 1.5; }
.check input { width: 20px; height: 20px; accent-color: var(--navy); margin: 1px 0 0; flex: none; cursor: pointer; }
.check a { color: var(--teal-ink); text-decoration: underline; text-underline-offset: 3px; }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-alert { font-size: 15px; padding: 14px 18px; border-radius: 12px; background: #fbe9e5; color: #8f3222; }
.form-foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.form-foot .hint { max-width: 360px; }

/* choice cards (checkbox / radio) */
.choices { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.choices--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 700px) { .choices--3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .choices, .choices--3 { grid-template-columns: 1fr; } }
.choice { position: relative; display: block; cursor: pointer; touch-action: manipulation; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice__box {
  position: relative; display: flex; flex-direction: column; gap: 3px; height: 100%;
  padding: 17px 18px 17px 52px; border: 1px solid var(--line-strong); border-radius: 14px; background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
}
.choice__box::before { content: ""; position: absolute; left: 18px; top: 19px; width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid var(--line-strong); background: #fff; transition: all 0.2s var(--ease); }
.choice input[type="radio"] + .choice__box::before { border-radius: 50%; }
.choice__box strong { font-size: 16px; font-weight: 600; letter-spacing: -0.015em; }
.choice__box small { font-size: 13.5px; color: var(--ink-3); line-height: 1.4; }
.choice:hover .choice__box { border-color: var(--ink-3); }
.choice input:checked + .choice__box { border-color: var(--navy); box-shadow: 0 0 0 1px var(--navy); }
.choice input[type="checkbox"]:checked + .choice__box::before {
  border-color: var(--navy);
  background: var(--navy) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.3l2.5 2.5L12 5.3' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.choice input[type="radio"]:checked + .choice__box::before { border: 6px solid var(--navy); }
.choice input:focus-visible + .choice__box { outline: 2px solid var(--teal); outline-offset: 2px; }
.choices--compact .choice__box { padding-block: 14px; }
.choices--compact .choice__box::before { top: 16px; }
.group.is-invalid .choice__box { border-color: #e3a497; }

/* dropzone */
.drop { position: relative; border: 1.5px dashed var(--line-strong); border-radius: 14px; padding: 28px 20px; text-align: center; background: var(--paper); transition: all 0.2s; }
.drop:hover, .drop.is-over { border-color: var(--teal); background: var(--teal-tint); }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.drop svg { width: 26px; height: 26px; margin: 0 auto 10px; color: var(--teal); }
.drop strong { font-weight: 600; font-size: 15.5px; }
.drop p { font-size: 13.5px; color: var(--ink-3); margin-top: 4px; }
.drop.has-file { border-style: solid; border-color: var(--teal); background: #fff; }
.field.is-invalid .drop { border-color: var(--danger); }

/* project form */
.project { display: grid; grid-template-columns: 1fr 340px; gap: clamp(40px, 6vw, 96px); align-items: start; }
.stepper { background: #fff; border-radius: var(--radius-l); padding: clamp(26px, 4vw, 52px); box-shadow: 0 0 0 1px rgba(20, 34, 59, 0.05); }
.progress { margin-bottom: 40px; }
.progress__meta { display: flex; justify-content: space-between; font-size: 13.5px; color: var(--ink-3); margin-bottom: 12px; }
.progress__meta b { color: var(--ink); font-weight: 600; }
.progress__track { height: 4px; background: var(--mist); border-radius: 2px; overflow: hidden; }
.progress__fill { height: 100%; width: 25%; background: var(--navy); border-radius: 2px; transition: width 0.5s var(--ease); }
.pane h2 { font-size: clamp(22px, 3vw, 36px); letter-spacing: -0.035em; font-weight: 600; line-height: 1.12; outline: none; }
.pane > p.text-2 { margin-top: 10px; margin-bottom: 32px; }
.pane .group + .group, .pane .group + .field, .pane .field + .group { margin-top: 32px; }
.group > .label { display: block; margin-bottom: 12px; }
.group .field__error { margin-top: 10px; }
.pane-actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 44px; padding-top: 26px; border-top: 1px solid var(--line); }
.pane-actions .btn--secondary[hidden] + * { margin-left: auto; }
.pane-actions__right { margin-left: auto; display: flex; gap: 12px; }
.aside-card { position: sticky; top: 100px; }
.aside-card h2 { font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.next-list li { display: grid; grid-template-columns: 32px 1fr; gap: 14px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.next-list li > span { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; font-size: 12px; font-weight: 600; font-family: var(--mono); color: var(--ink-2); }
.next-list b { font-weight: 600; font-size: 15.5px; letter-spacing: -0.01em; }
.next-list p { font-size: 14.5px; color: var(--ink-2); margin-top: 2px; }
.aside-contact { margin-top: 28px; padding: 22px; border-radius: var(--radius); background: var(--mist-2); font-size: 14.5px; color: var(--ink-2); }
.aside-contact a { color: var(--ink); font-weight: 600; display: inline-block; margin-top: 4px; }
@media (max-width: 960px) { .project { grid-template-columns: 1fr; } .aside-card { position: static; } }

/* success state */
.success { padding-block: 8px; }
.success__icon { width: 56px; height: 56px; border-radius: 50%; background: var(--ok-tint); color: var(--ok); display: grid; place-items: center; margin-bottom: 28px; }
.success__icon svg { width: 26px; height: 26px; }
.success h2, .success h3 { font-size: clamp(22px, 3vw, 36px); letter-spacing: -0.035em; font-weight: 600; line-height: 1.12; outline: none; }
.success > p { color: var(--ink-2); margin-top: 14px; font-size: 17px; max-width: 560px; }
.ref { font-family: var(--mono); font-size: 14px; background: var(--mist-2); color: var(--ink); padding: 3px 10px; border-radius: 8px; white-space: nowrap; }
.success .next-list { margin-top: 32px; border-top: 1px solid var(--line); max-width: 560px; }
.success__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 36px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(40px, 7vw, 112px); align-items: start; }
.channels { display: grid; border-top: 1px solid var(--line-strong); }
.channel { padding: 28px 0; border-bottom: 1px solid var(--line-strong); }
.channel h2 { font-size: 14px; font-weight: 600; color: var(--teal-ink); }
.channel p { color: var(--ink-2); margin-top: 6px; font-size: 16px; }
.channel a.big { display: inline-block; margin-top: 10px; font-size: 22px; font-weight: 600; letter-spacing: -0.028em; overflow-wrap: break-word; word-break: break-all; max-width: 100%; }
.channel a.big:hover { color: var(--teal-ink); }
.form-card { background: #fff; border-radius: var(--radius-l); padding: clamp(26px, 4vw, 48px); box-shadow: 0 0 0 1px rgba(20, 34, 59, 0.05); }
.form-card > h2 { font-size: clamp(22px, 2.5vw, 28px); letter-spacing: -0.032em; font-weight: 600; }
.form-card > p { color: var(--ink-2); margin-top: 8px; margin-bottom: 32px; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- Mission & vision ---------- */
.mv { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.mv__card {
  display: flex; flex-direction: column; gap: 40px; min-height: 400px;
  background: #fff; border-radius: var(--radius-l); padding: clamp(32px, 5vw, 56px);
  box-shadow: 0 0 0 1px rgba(20, 34, 59, 0.05);
}
.mv__card--dark { background: var(--navy); color: #fff; }
.mv__label { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; color: var(--teal-ink); }
.mv__label::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--coral); }
.mv__card--dark .mv__label { color: #8fd0d8; }
.mv__statement { font-size: clamp(22px, 2.7vw, 38px); line-height: 1.16; letter-spacing: -0.035em; font-weight: 600; }
.mv__note { margin-top: auto; font-size: 15px; color: var(--ink-3); }
.mv__card--dark .mv__note { color: rgba(255, 255, 255, 0.5); }
@media (max-width: 860px) { .mv { grid-template-columns: 1fr; } .mv__card { min-height: 0; } }

/* ---------- Goals ---------- */
.goals { border-top: 1px solid var(--line-strong); }
.goal { display: grid; grid-template-columns: 72px 1.15fr 1fr; gap: 24px 40px; padding: 36px 0; border-bottom: 1px solid var(--line-strong); align-items: start; }
.goal__num { font-family: var(--mono); font-size: 13px; color: var(--ink-3); padding-top: 6px; }
.goal h3 { font-size: 24px; letter-spacing: -0.03em; font-weight: 600; line-height: 1.2; }
.goal p { color: var(--ink-2); margin-top: 8px; font-size: 16.5px; max-width: 440px; }
.goal__target { display: grid; grid-template-columns: auto 1fr; gap: 10px 20px; padding: 20px 22px; border-radius: 14px; background: var(--mist-2); font-size: 15px; }
.goal__target dt { color: var(--ink-3); font-size: 13.5px; padding-top: 1px; }
.goal__target dd { font-weight: 500; }
.goal__target dd:first-of-type { font-weight: 600; color: var(--teal-ink); }
.goals__foot { margin-top: 36px; color: var(--ink-2); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
@media (max-width: 860px) { .goal { grid-template-columns: 1fr; gap: 14px; } .goal__num { padding-top: 0; } }

/* home mission band */
.mission-band { display: grid; grid-template-columns: 1fr 2.2fr; gap: 40px; align-items: start; }
.mission-band__text { font-size: clamp(22px, 3.4vw, 46px); line-height: 1.14; letter-spacing: -0.04em; font-weight: 600; }
.mission-band__text span { color: var(--ink-3); }
.mission-band__links { display: flex; gap: 14px 28px; flex-wrap: wrap; margin-top: 32px; }
@media (max-width: 860px) { .mission-band { grid-template-columns: 1fr; gap: 0; } }

/* ---------- Policies ---------- */
.doc { display: grid; grid-template-columns: 220px 1fr; gap: clamp(40px, 7vw, 112px); align-items: start; }
.toc { position: sticky; top: 100px; }
.toc__title { font-size: 13px; font-weight: 600; color: var(--ink-3); margin-bottom: 14px; }
.toc nav { display: flex; flex-direction: column; border-left: 1px solid var(--line-strong); }
.toc a { padding: 7px 0 7px 16px; margin-left: -1px; border-left: 2px solid transparent; font-size: 14.5px; color: var(--ink-2); transition: color 0.2s, border-color 0.2s; }
.toc a:hover { color: var(--ink); }
.toc a.is-active { color: var(--ink); font-weight: 500; border-left-color: var(--teal); }
.policies { min-width: 0; max-width: 760px; }
.policy { padding-bottom: 64px; margin-bottom: 64px; border-bottom: 1px solid var(--line); scroll-margin-top: 96px; }
.policy:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.policy__tag { font-family: var(--mono); font-size: 13px; color: var(--teal-ink); margin-bottom: 12px; }
.policy > h2 { font-size: clamp(22px, 3vw, 38px); letter-spacing: -0.038em; font-weight: 600; line-height: 1.1; margin-bottom: 22px; }
.policy .prose h3 { margin-top: 28px; }
@media (max-width: 900px) {
  .doc { grid-template-columns: 1fr; gap: 40px; }
  .toc { position: static; }
  .toc nav { flex-direction: row; flex-wrap: wrap; gap: 8px; border-left: 0; }
  .toc a { margin: 0; padding: 7px 14px; border: 1px solid var(--line-strong); border-radius: 999px; background: #fff; font-size: 14px; }
  .toc a.is-active { border-color: var(--navy); }
}

/* ---------- Legal ---------- */
.legal-meta { font-size: 14.5px; color: var(--ink-3); margin-top: 20px; }
.legal { padding-bottom: clamp(80px, 10vw, 140px); }

/* ---------- 404 ---------- */
.notfound { min-height: 64vh; display: grid; place-items: center; text-align: center; padding-block: 96px; }
.notfound__code { font-family: var(--mono); font-size: 14px; color: var(--teal-ink); margin-bottom: 20px; }
.notfound .lead { margin: 22px auto 0; max-width: 520px; }
.notfound .page-hero__actions { justify-content: center; }

/* ---------- Footer ---------- */
.footer { background: #fff; border-top: 1px solid var(--line); padding-top: 80px; font-size: 14.5px; }
.footer__top { display: grid; grid-template-columns: 1.1fr 2fr; gap: 56px; padding-bottom: 64px; }
.footer__brand p { color: var(--ink-2); margin-top: 18px; max-width: 300px; }
.footer__mail { display: inline-block; margin-top: 18px; font-weight: 600; font-size: 16px; letter-spacing: -0.015em; }
.footer__mail:hover { color: var(--teal-ink); }
.footer__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.footer__h { font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 18px; letter-spacing: 0; }
.footer li + li { margin-top: 11px; }
.footer__cols a { color: var(--ink-2); transition: color 0.2s; }
.footer__cols a:hover { color: var(--ink); }
.footer__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 26px; border-top: 1px solid var(--line); color: var(--ink-3); font-size: 13px; }
.footer__legal { display: flex; align-items: center; gap: 22px; }
.footer__legal li + li { margin-top: 0; }
.footer__bottom p { margin: 0; }
.footer__legal a:hover { color: var(--ink); }
@media (max-width: 900px) { .footer__top { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .footer__cols { grid-template-columns: 1fr 1fr; } .footer__cols > div:last-child { grid-column: 1 / -1; } }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .reveal-d1 { transition-delay: 0.08s; }
.js .reveal-d2 { transition-delay: 0.16s; }
.js .reveal-d3 { transition-delay: 0.24s; }

/* utilities */
.mt-0 { margin-top: 0 !important; }
.center { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
@media (min-width: 761px) { .br-sm { display: none; } }
@media (max-width: 760px) { .br-lg { display: none; } }

/* =========================================================
   Production-grade responsive additions
   ========================================================= */

/* Prevent long titles from blowing out role grid cells */
.role > div { min-width: 0; }

/* Text overflow protection on content-heavy elements */
.case__body > p,
.split__body p,
.perk p,
.card > p,
.goal p,
.fact p,
.footer__brand p { overflow-wrap: break-word; }

/* cards-3: drop to single column at ≤600px */
@media (max-width: 600px) {
  .cards-3 { grid-template-columns: 1fr; }
  .cards-3 > *:last-child:nth-child(odd) { grid-column: auto; }
}

/* FAQ answer: remove right padding waste at narrow screens */
@media (max-width: 600px) {
  .faq details > div { padding-right: 0; }
}

/* Roles general CTA: stack & full-width button at mobile */
@media (max-width: 560px) {
  .roles-general { padding: 24px 20px; gap: 18px; }
  .roles-general .btn { width: 100%; text-align: center; }
}

/* CTA band: stack buttons vertically on small screens */
@media (max-width: 540px) {
  .cta__actions { flex-direction: column; align-items: stretch; }
  .cta__actions .btn { width: 100%; text-align: center; }
}

/* Project wizard pane actions: stack at very narrow screens */
@media (max-width: 480px) {
  .pane-actions { flex-direction: column; gap: 10px; }
  .pane-actions .btn--secondary[hidden] + * { margin-left: 0; }
  .pane-actions__right { margin-left: 0; width: 100%; }
  .pane-actions .btn { width: 100%; justify-content: center; }
}

/* Contact channels: scale email link at very narrow screens */
@media (max-width: 480px) {
  .channel a.big { font-size: 18px; letter-spacing: -0.02em; }
}

/* Success action buttons: stack at narrow screens */
@media (max-width: 480px) {
  .success__actions { flex-direction: column; align-items: stretch; }
  .success__actions .btn { width: 100%; text-align: center; }
}

/* Hero console: tighten inner padding at very small screens */
@media (max-width: 480px) {
  .console__main { padding: 14px 14px 36px; gap: 14px; }
  .releases li { font-size: 12px; gap: 8px; }
}

/* Application form: responsive top margin (replaces inline style) */
.job-apply { margin-top: clamp(40px, 6vw, 80px); }

/* Services app panel: responsive padding (replaces inline style) */
.panel--app-bg { justify-content: flex-end; padding-top: 60px; background: #F9E1DA; }
@media (max-width: 900px) { .panel--app-bg { padding-top: 44px; } }

/* Safe-area insets for notched/island devices (iPhone X+) */
@supports (padding: env(safe-area-inset-bottom)) {
  .nav__inner {
    padding-left: calc(var(--gutter) + env(safe-area-inset-left));
    padding-right: calc(var(--gutter) + env(safe-area-inset-right));
  }
  .mobile-menu {
    padding-left: calc(var(--gutter) + env(safe-area-inset-left));
    padding-right: calc(var(--gutter) + env(safe-area-inset-right));
    padding-bottom: calc(40px + env(safe-area-inset-bottom));
  }
  .footer__bottom {
    padding-bottom: calc(26px + env(safe-area-inset-bottom));
  }
}

/* ---- Additional responsive polish ---- */

/* Defensive min-width on 2-col grid children to prevent text blowout */
.service__copy,
.service__visual,
.case__body,
.case__media,
.split__body { min-width: 0; }

/* Status card head: wrap cleanly on narrow tiles */
.status-card__head { flex-wrap: wrap; }

/* Footer email: overflow protection for long addresses */
.footer__mail { overflow-wrap: break-word; word-break: break-word; }

/* Form footer: stack hint + submit button on mobile */
@media (max-width: 540px) {
  .form-foot { flex-direction: column; gap: 16px; align-items: flex-start; }
  .form-foot .hint { max-width: none; }
  .form-foot .btn { width: 100%; text-align: center; }
}

/* Hero/page-hero CTA buttons: full-width on extra-narrow phones */
@media (max-width: 400px) {
  .hero__actions .btn,
  .page-hero__actions .btn { width: 100%; text-align: center; }
}

/* Tile-full (Care section): reduce gap at mobile */
@media (max-width: 480px) {
  .tile--full { gap: 20px; }
}

/* Tile, card and perk padding: tighten at extra-small phones (≤360px) */
@media (max-width: 360px) {
  .tile { padding: 20px; }
  .card { padding: 22px; }
  .perk { padding: 20px; }
  .status-card { padding: 16px; }
  .status-card__head { font-size: 13px; }
  .roles-general { padding: 20px 16px; }
  .stepper { padding: 20px; }
  .form-card { padding: 20px; }
}
