/*
  devshipit.com design system, v3.

  Design read: developer portfolio and live-product site for hiring managers and small-business
  clients, in a cinematic dark-studio language (measured from getlayers.ai), laid out on the Lumora
  template's section anatomy, built with native CSS, Canvas/WebGL and Lenis.
  Dials: DESIGN_VARIANCE 8, MOTION_INTENSITY 7, VISUAL_DENSITY 3.

  Measured rules (from getlayers.ai, 1440px):
  - Page ground #060507, text #f5f4f7, muted text #a3a1ad. One theme, dark, for every page.
  - Display type is light (300), tight (-0.03em), two-tone: lead phrase in text colour, tail in muted.
  - Interactive things are pills (9999px). Panels and cards are 24px / 20px. Inputs are 12px.
  - Nav is a capsule of pills; the active pill sits on rgba(255,255,255,.07).
  - Hero is an inset panel (16px from the viewport edge), not a full-bleed band.
  - Surfaces separate by a 1px hairline at 8% white, never by drop shadows.
  - One accent (electric blue) on: primary buttons, the "ship" in the wordmark, focus rings, links.
*/

@font-face {
  font-family: "Onest";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(/assets/fonts/onest-latin-wght-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Onest";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(/assets/fonts/onest-latin-ext-wght-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  color-scheme: dark;
  --bg: #060507;
  --surface: #0e0d10;
  --surface-2: #151418;
  --surface-3: #1d1c21;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --fg: #f5f4f7;
  --fg-2: #a3a1ad;
  --fg-3: #888692;
  --accent: #0169fc;
  --accent-hi: #2f80ff;
  --accent-text: #86b2ff;
  --glass: rgba(18, 17, 20, 0.72);

  --font: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-line: cubic-bezier(0.215, 0.61, 0.355, 1);

  --wrap: 1240px;
  --gutter: 24px;
  --inset: 16px;
  --section: 128px;
  --r-panel: 24px;
  --r-card: 20px;
  --r-control: 12px;

  /* z-index scale */
  --z-header: 50;
  --z-dialog: 110;
  --z-loader: 120;
  --z-grain: 130;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; background: var(--bg); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  letter-spacing: -0.006em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
/* Static film grain on a fixed, non-interactive layer. */
body::after {
  content: ""; position: fixed; inset: 0; z-index: var(--z-grain); pointer-events: none;
  background: url(/assets/img/grain.png); opacity: 0.045; mix-blend-mode: overlay;
}
img, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, p, ul, dl, dd, figure { margin: 0; }
h1, h2, h3 { font-weight: 400; }
ul { padding: 0; list-style: none; }
a { color: var(--accent-text); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
button { font: inherit; color: inherit; }
::selection { background: rgba(1, 105, 252, 0.45); color: #fff; }
:focus-visible { outline: 2px solid var(--accent-hi); outline-offset: 3px; border-radius: 6px; }
.skip { position: fixed; left: 16px; top: -64px; z-index: 200; padding: 10px 16px; border-radius: 9999px; background: var(--fg); color: var(--bg); }
.skip:focus { top: 12px; text-decoration: none; }
.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.icon { width: 1.1em; height: 1.1em; fill: currentColor; flex: none; }
.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; }

/* ---------- type ---------- */
.display, .page-head h1, .err h1 {
  font-weight: 300; letter-spacing: -0.035em; line-height: 1.04; text-wrap: balance;
}
.display { font-size: clamp(40px, 5.6vw, 84px); }
.display-sm { font-weight: 300; font-size: clamp(32px, 3.8vw, 56px); line-height: 1.06; letter-spacing: -0.03em; text-wrap: balance; }
.tone { color: var(--fg-2); }
.lead { font-size: clamp(17px, 1.4vw, 20px); line-height: 1.55; color: var(--fg-2); max-width: 46ch; text-wrap: pretty; }
.muted { color: var(--fg-2); }
.chip-label {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 9999px;
  border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.03); font-size: 14px; color: var(--fg-2);
}

/* ---------- buttons: pills, primary carries the accent, arrow sits in a round badge ---------- */
.btns { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px;
  padding: 12px 24px; border-radius: 9999px; border: 1px solid transparent; background: var(--accent); color: #fff;
  font-size: 16px; font-weight: 500; line-height: 1; letter-spacing: -0.01em; white-space: nowrap; cursor: pointer;
  transition: transform 0.35s var(--ease-spring), background-color 0.25s, border-color 0.25s, color 0.25s;
}
.btn:hover { text-decoration: none; background: #0058d6; }
.btn:active { transform: scale(0.97); }
.btn.arrow { padding: 6px 6px 6px 22px; }
.btn .badge { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 9999px; background: #fff; color: var(--accent); }
.btn .badge .icon { width: 16px; height: 16px; transition: transform 0.35s var(--ease-spring); }
.btn:hover .badge .icon { transform: translate(2px, -2px); }
.btn.ghost { background: rgba(255, 255, 255, 0.05); border-color: var(--line-2); color: var(--fg); }
.btn.ghost:hover { background: rgba(255, 255, 255, 0.09); border-color: rgba(255, 255, 255, 0.24); }
.btn.ghost .badge { background: var(--fg); color: var(--bg); }
.btn.light { background: var(--fg); color: var(--bg); }
.btn.light:hover { background: #fff; }
.btn.light .badge { background: var(--accent); color: #fff; }
.btn .icon { width: 18px; height: 18px; }
.textlink { display: inline-flex; align-items: center; gap: 6px; color: var(--accent-text); }
.textlink .icon { transition: transform 0.3s var(--ease-spring); }
.textlink:hover { text-decoration: none; }
.textlink:hover .icon { transform: translateX(3px); }

/* ---------- header: wordmark, capsule nav with a sliding pill, one contact pill ---------- */
.gnav { position: sticky; top: 0; z-index: var(--z-header); padding: 14px calc(var(--inset) + clamp(8px, 2vw, 28px)); }
.gnav::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0;
  background: rgba(6, 5, 7, 0.7); backdrop-filter: blur(18px) saturate(150%); -webkit-backdrop-filter: blur(18px) saturate(150%);
  border-bottom: 1px solid var(--line); transition: opacity 0.35s ease;
}
.gnav.scrolled::before { opacity: 1; }
.gnav-in { position: relative; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; height: 46px; }
.brand { display: inline-flex; align-items: center; justify-self: start; padding: 6px 0; border-radius: 8px; transition: opacity 0.2s; }
.brand img { height: 24px; width: auto; }
.brand:hover { opacity: 0.85; }
.gnav nav {
  position: relative; display: flex; align-items: center; gap: 0; padding: 4px; border-radius: 9999px; border: 1px solid var(--line-2);
  background: rgba(14, 13, 16, 0.6); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.gnav nav a { position: relative; z-index: 1; padding: 10px 16px; border-radius: 9999px; color: var(--fg-2); font-size: 15px; line-height: 1; transition: color 0.25s; }
.gnav nav a:hover, .gnav nav a.cur, .gnav nav a[aria-current] { color: var(--fg); text-decoration: none; }
.gnav .pill {
  position: absolute; top: 4px; bottom: 4px; left: 0; width: 0; border-radius: 9999px; pointer-events: none; opacity: 0;
  background: rgba(255, 255, 255, 0.09); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  transition: transform 0.45s var(--ease-spring), width 0.45s var(--ease-spring), opacity 0.25s ease;
}
.gnav .pill.on { opacity: 1; }
html:not(.js) .gnav nav a[aria-current] { background: rgba(255, 255, 255, 0.09); }
.gnav-r { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.gnav .btn.arrow { min-height: 46px; padding: 5px 5px 5px 20px; font-size: 15px; }
.gnav .btn .badge { width: 36px; height: 36px; }
.menu-btn {
  display: none; align-items: center; gap: 8px; height: 44px; padding: 0 18px; border-radius: 9999px; border: 1px solid var(--line-2);
  background: rgba(14, 13, 16, 0.6); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); color: var(--fg); font-size: 15px; cursor: pointer;
  transition: transform 0.3s var(--ease-spring), border-color 0.2s;
}
.menu-btn .icon { width: 18px; height: 18px; }
.menu-btn:hover { border-color: rgba(255, 255, 255, 0.3); }
.menu-btn:active { transform: scale(0.96); }
.menu-top .brand img, .foot .brand img { height: 24px; }

/* ---------- footer: closing call to action, link columns, watermark ---------- */
.foot { position: relative; overflow: hidden; margin: var(--section) var(--inset) 0; border-radius: var(--r-panel) var(--r-panel) 0 0; border: 1px solid var(--line); border-bottom: 0; background: var(--surface); }
.foot-cta { position: relative; overflow: hidden; isolation: isolate; }
.foot-cta canvas, .foot-cta .glow { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.foot-cta .glow { background: radial-gradient(60% 90% at 85% 100%, rgba(1, 105, 252, 0.45), transparent 70%), radial-gradient(40% 70% at 10% 0%, rgba(134, 178, 255, 0.12), transparent 70%); }
.foot-cta canvas { opacity: 0; transition: opacity 1.2s ease; }
.foot-cta canvas.on { opacity: 1; }
.foot-cta-in { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; flex-wrap: wrap; padding-block: 112px 88px; }
.foot-cta h2 { max-width: 14ch; }
.foot-cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; padding-block: 64px; border-top: 1px solid var(--line); }
.foot-cols .f-about p { margin-top: 14px; max-width: 30ch; color: var(--fg-2); font-size: 15px; }
.foot h3 { font-size: 14px; font-weight: 500; color: var(--fg-3); margin-bottom: 14px; }
.foot li { line-height: 2.2; font-size: 15px; }
.foot li a { display: inline-block; color: var(--fg-2); transition: color 0.2s, transform 0.3s var(--ease-spring); }
.foot li a:hover { color: var(--fg); text-decoration: none; transform: translateX(4px); }
.foot-legal { position: relative; z-index: 1; display: flex; justify-content: space-between; gap: 12px 32px; flex-wrap: wrap; padding-block: 28px 40px; border-top: 1px solid var(--line); font-size: 13px; color: var(--fg-3); }
.foot .mark-word {
  display: block; padding-bottom: 8px; text-align: center; white-space: nowrap; pointer-events: none; user-select: none;
  font-size: clamp(64px, 17.5vw, 280px); font-weight: 600; letter-spacing: -0.06em; line-height: 0.8; color: rgba(255, 255, 255, 0.04);
}

/* ---------- menu overlay and contact dialog ---------- */
html.lenis, html.lenis body { height: auto; }
.lenis:not(.lenis-autoToggle).lenis-stopped { overflow: clip; }
html.lock, html.intro { overflow: hidden; }

dialog { border: 0; padding: 0; color: inherit; max-width: none; max-height: none; }
dialog::backdrop { background: rgba(6, 5, 7, 0.6); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }

dialog.menu { position: fixed; inset: 0; width: 100%; height: 100%; margin: 0; background: var(--bg); color: var(--fg); }
dialog.menu[open] { display: flex; flex-direction: column; }
dialog.menu::backdrop { background: var(--bg); }
.menu-top, .menu-bot, .menu nav { width: 100%; padding-inline: calc(var(--inset) + 4px); }
.menu-top { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.menu nav { flex: 1; display: flex; align-items: center; }
.menu nav ul { width: 100%; }
.menu nav a { display: flex; align-items: baseline; gap: 16px; padding-block: 6px; font-size: clamp(38px, 10vw, 72px); font-weight: 300; letter-spacing: -0.04em; line-height: 1.08; color: var(--fg-2); transition: color 0.25s; }
.menu nav a i { font-style: normal; font-size: 14px; letter-spacing: 0; color: var(--fg-3); transition: color 0.25s; }
.menu nav a:hover { color: var(--fg); text-decoration: none; }
.menu nav a:hover i { color: var(--accent-text); }
.menu-bot { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; min-height: 76px; border-top: 1px solid var(--line); font-size: 15px; color: var(--fg-2); }
.menu .close { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 9999px; border: 1px solid var(--line-2); background: transparent; color: var(--fg); font-size: 15px; cursor: pointer; }
.menu .close .icon { width: 16px; height: 16px; }
.menu .close:hover { border-color: rgba(255, 255, 255, 0.3); }

dialog.modal { position: fixed; margin: auto; width: min(540px, calc(100vw - 24px)); background: var(--surface); color: var(--fg); border: 1px solid var(--line-2); border-radius: var(--r-panel); padding: 32px; }
.modal .x { position: absolute; top: 16px; right: 16px; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 9999px; border: 1px solid var(--line); background: var(--surface-2); color: var(--fg); cursor: pointer; transition: transform 0.3s var(--ease-spring), background-color 0.2s; }
.modal .x:hover { background: var(--surface-3); }
.modal .x:active { transform: scale(0.92); }
.modal .x .icon { width: 16px; height: 16px; }
.modal h2 { font-size: 30px; font-weight: 300; line-height: 1.1; letter-spacing: -0.03em; padding-right: 48px; }
.modal .sub { margin-top: 10px; font-size: 15px; color: var(--fg-2); }
.modal form { display: grid; gap: 16px; margin-top: 26px; }
.modal label { display: grid; gap: 8px; font-size: 14px; font-weight: 500; color: var(--fg); }
.modal input, .modal textarea { width: 100%; padding: 13px 15px; border-radius: var(--r-control); border: 1px solid var(--line-2); background: var(--surface-2); color: var(--fg); font: inherit; font-size: 16px; resize: none; transition: border-color 0.2s, background-color 0.2s, box-shadow 0.2s; }
.modal input::placeholder, .modal textarea::placeholder { color: var(--fg-3); }
.modal input:focus, .modal textarea:focus { outline: none; border-color: var(--accent-hi); background: var(--surface-3); box-shadow: 0 0 0 3px rgba(1, 105, 252, 0.3); }
.modal .actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 6px; }
.modal .note { font-size: 13px; line-height: 1.4; color: var(--fg-2); max-width: 26ch; }
.modal .topic { display: none; margin-top: 16px; font-size: 14px; color: var(--fg-2); }
.modal .topic.on { display: block; }
.modal .topic b { font-weight: 500; color: var(--fg); }
.modal .done .btns { margin-top: 26px; }

/* ---------- inner pages ---------- */
.page-head { margin: 0 var(--inset); padding-block: 72px 56px; border-radius: var(--r-panel); border: 1px solid var(--line); background: radial-gradient(70% 120% at 100% 0%, rgba(1, 105, 252, 0.16), transparent 60%), var(--surface); }
.back { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; color: var(--fg-2); margin-bottom: 32px; }
.back:hover { color: var(--fg); text-decoration: none; }
.page-head h1 { font-size: clamp(36px, 5vw, 72px); max-width: 18ch; }
.page-head .lead { margin-top: 22px; }
.page-head .updated { margin-top: 16px; font-size: 14px; color: var(--fg-3); }
.page-head .btns { margin-top: 30px; }
.doc { padding-block: 64px 0; }
.doc-in { max-width: 760px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 24px; }
.doc .meta-card { margin-bottom: 48px; }
dl.meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 22px 28px; }
dl.meta dt { font-size: 14px; color: var(--fg-3); }
dl.meta dd { margin-top: 4px; font-size: 16px; font-weight: 500; line-height: 1.4; }
.prose { color: var(--fg-2); font-size: 17px; line-height: 1.7; }
.prose > * + * { margin-top: 18px; }
.prose h2 { margin-top: 56px; font-size: 30px; font-weight: 300; line-height: 1.15; letter-spacing: -0.025em; color: var(--fg); }
.prose h2:first-child { margin-top: 0; }
.prose h2 + * { margin-top: 14px; }
.prose ul { padding-left: 22px; list-style: disc; }
.prose li { margin-top: 10px; padding-left: 4px; }
.prose li::marker { color: var(--fg-3); }
.prose strong { font-weight: 600; color: var(--fg); }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.prose code { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 0.9em; padding: 2px 6px; border-radius: 6px; background: var(--surface-2); color: var(--fg); }
.prose .note { font-size: 14px; color: var(--fg-3); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface); }
table.price { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 15px; }
table.price th, table.price td { text-align: left; vertical-align: top; padding: 15px 18px; border-bottom: 1px solid var(--line); }
table.price tbody tr:last-child > * { border-bottom: 0; }
table.price thead th { font-size: 14px; font-weight: 500; color: var(--fg-3); background: var(--surface-2); }
table.price tbody th { font-weight: 500; color: var(--fg); }
.gallery { display: grid; grid-template-columns: 7fr 5fr; gap: 20px; margin-block: 48px; align-items: start; }
.gallery .wide { grid-column: 1 / -1; }
.gallery figcaption { margin-top: 12px; font-size: 14px; color: var(--fg-3); max-width: 52ch; }
.gallery .phone-fig { max-width: 300px; }
.gallery .phone-fig .phone { position: static; width: 100%; }
.shot { border-radius: var(--r-card); border: 1px solid var(--line-2); }
.phone { border: 6px solid #1d1c21; border-radius: 30px; overflow: hidden; background: #1d1c21; }
.phone img { width: 100%; border-radius: 22px; }
.cta-row { margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--line); }
.err { min-height: 70dvh; display: grid; align-content: center; }
.err h1 { font-size: clamp(40px, 6vw, 88px); }
.err p { margin: 18px 0 30px; color: var(--fg-2); }

/* ---------- motion: entrance order and feedback; collapses fully for reduced motion ---------- */
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 0.05em 0.14em; margin: 0 -0.05em -0.14em; }
.split .w > span { display: inline-block; }
@media (prefers-reduced-motion: no-preference) {
  .js .rv { opacity: 0; transform: translateY(24px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
  .js .rv.in { opacity: 1; transform: none; }
  .js .rv.d1 { transition-delay: 0.09s; }
  .js .rv.d2 { transition-delay: 0.18s; }
  .js .rv.d3 { transition-delay: 0.27s; }
  .js .split .w > span { transform: translateY(110%); opacity: 0; transition: transform 0.9s var(--ease-line), opacity 0.9s var(--ease-line); }
  .js .split.in .w > span { transform: none; opacity: 1; }
  .split .w:nth-child(2) > span { transition-delay: 0.04s; }
  .split .w:nth-child(3) > span { transition-delay: 0.08s; }
  .split .w:nth-child(4) > span { transition-delay: 0.12s; }
  .split .w:nth-child(5) > span { transition-delay: 0.16s; }
  .split .w:nth-child(6) > span { transition-delay: 0.2s; }
  .split .w:nth-child(7) > span { transition-delay: 0.24s; }
  .split .w:nth-child(8) > span { transition-delay: 0.28s; }
  .split .w:nth-child(9) > span { transition-delay: 0.32s; }
  .split .w:nth-child(10) > span { transition-delay: 0.36s; }
  .split .w:nth-child(11) > span { transition-delay: 0.4s; }
  .split .w:nth-child(12) > span { transition-delay: 0.44s; }
  .split .w:nth-child(13) > span { transition-delay: 0.48s; }
  .split .w:nth-child(14) > span { transition-delay: 0.52s; }
  .split .w:nth-child(15) > span { transition-delay: 0.56s; }
  .split .w:nth-child(16) > span { transition-delay: 0.6s; }
  .split .w:nth-child(17) > span { transition-delay: 0.64s; }
  .split .w:nth-child(18) > span { transition-delay: 0.68s; }
  .split .w:nth-child(19) > span { transition-delay: 0.72s; }
  .split .w:nth-child(20) > span { transition-delay: 0.76s; }
  .split .w:nth-child(21) > span { transition-delay: 0.8s; }
  .split .w:nth-child(22) > span { transition-delay: 0.84s; }
  .split .w:nth-child(23) > span { transition-delay: 0.88s; }
  .split .w:nth-child(24) > span { transition-delay: 0.92s; }

  dialog.menu { opacity: 0; transition: opacity 0.35s ease; }
  dialog.menu.open { opacity: 1; }
  .menu nav li { opacity: 0; transform: translateY(18px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
  .menu.open nav li { opacity: 1; transform: none; }
  .menu.open nav li:nth-child(1) { transition-delay: 0.08s; }
  .menu.open nav li:nth-child(2) { transition-delay: 0.125s; }
  .menu.open nav li:nth-child(3) { transition-delay: 0.17s; }
  .menu.open nav li:nth-child(4) { transition-delay: 0.215s; }
  .menu.open nav li:nth-child(5) { transition-delay: 0.26s; }
  .menu.open nav li:nth-child(6) { transition-delay: 0.305s; }
  dialog.modal { opacity: 0; transform: translateY(28px) scale(0.985); transition: opacity 0.3s ease, transform 0.5s var(--ease); }
  dialog.modal.open { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------- breakpoints: sm 640, md 768, lg 1024 ---------- */
@media (max-width: 1023px) {
  :root { --section: 104px; }
  .gnav-in { grid-template-columns: 1fr auto; }
  .js .gnav nav, .js .gnav .btn { display: none; }
  .js .menu-btn { display: inline-flex; }
  .foot-cols { grid-template-columns: 1fr 1fr; }
  .foot-cols .f-about { grid-column: 1 / -1; }
}
@media (max-width: 767px) {
  :root { --gutter: 20px; --inset: 10px; --section: 88px; }
  .gallery { grid-template-columns: 1fr; }
  .gallery .phone-fig { max-width: 260px; }
  .page-head { padding-block: 48px 40px; }
  .foot-cta-in { padding-block: 80px 64px; }
  dialog.modal { padding: 24px; }
  .modal h2 { font-size: 26px; }
}
@media (max-width: 479px) {
  .foot-cols { grid-template-columns: 1fr; gap: 28px; }
}

#top-sentinel { position: absolute; top: 0; left: 0; width: 1px; height: 8px; pointer-events: none; }
@media (max-width: 767px) {
  html:not(.js) .gnav-in { height: auto; flex-wrap: wrap; }
  html:not(.js) .gnav nav a { padding: 8px 10px; font-size: 14px; }
}

/* ---------- breadcrumbs (inner pages) ---------- */
.crumbs { margin-bottom: 32px; font-size: 15px; color: var(--fg-2); }
.crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.crumbs li { display: inline-flex; align-items: center; gap: 10px; }
.crumbs li + li::before { content: "/"; color: var(--fg-3); }
.crumbs a { color: var(--fg-2); }
.crumbs a:hover { color: var(--fg); text-decoration: none; }
.crumbs [aria-current] { color: var(--fg); }

/* ---------- section heading row with a "see all" link ---------- */
.head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }

/* ---------- questions: native details, no script needed ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 26px 4px; cursor: pointer; list-style: none; font-size: clamp(18px, 1.6vw, 22px); line-height: 1.35; color: var(--fg); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { flex: none; width: 20px; height: 20px; color: var(--fg-2); transition: transform 0.35s var(--ease-spring); }
.faq details[open] summary .icon { transform: rotate(45deg); color: var(--accent-text); }
.faq summary:hover { color: var(--accent-text); }
.faq summary:focus-visible { outline: 2px solid var(--accent-hi); outline-offset: 2px; border-radius: var(--r-control); }
.faq .a { padding: 0 4px 28px; max-width: 68ch; color: var(--fg-2); font-size: 16px; line-height: 1.6; }
.faq .a a { color: var(--accent-text); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- process steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: step; }
.steps li { counter-increment: step; padding: 24px; border-radius: var(--r-card); border: 1px solid var(--line); background: var(--surface); }
.steps li::before { content: "0" counter(step); display: block; font-size: 14px; color: var(--fg-3); font-variant-numeric: tabular-nums; }
.steps h3 { margin-top: 28px; font-size: 22px; font-weight: 400; line-height: 1.2; letter-spacing: -0.02em; }
.steps p { margin-top: 10px; color: var(--fg-2); font-size: 15px; line-height: 1.5; }

/* ---------- plain sections on inner pages ---------- */
.block { padding-block: 72px 0; }
.block > .wrap > h2 { font-size: clamp(28px, 3vw, 40px); font-weight: 300; line-height: 1.1; letter-spacing: -0.03em; margin-bottom: 32px; }
@media (max-width: 1023px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 767px) { .steps { grid-template-columns: 1fr; } .block { padding-block: 56px 0; } }
.crumbs ol, ol.steps { list-style: none; padding: 0; margin: 0; }
.prose code { overflow-wrap: anywhere; }
.prose .table-wrap td code { overflow-wrap: normal; white-space: nowrap; }
