/* Albury Web Design Co. Shared styles for every page. */

:root {
  --ink: #0F1B3D;
  --ink-2: #172552;
  --blue: #4C8DFF;
  --blue-hover: #6BA1FF;
  --blue-text: #2A5BD7;
  --paper: #F3F6FB;
  --white: #FFFFFF;
  --slate: #4A5675;
  --on-ink-muted: #AEBBD8;
  --rule: #D5DDEB;
  --field: #6B7794;
  --error: #B42318;

  --grid-major: rgb(76 141 255 / 0.16);
  --grid-minor: rgb(76 141 255 / 0.07);

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);

  --gutter: 16px;
  --header-h: 72px;
  --section: clamp(80px, 10vw, 144px);
  --radius-card: 20px;
  --radius-mid: 16px;
  --radius-inner: 12px;
  --radius-pill: 999px;
  --shadow-lift: 0 1px 2px rgb(15 27 61 / 0.06), 0 8px 24px rgb(15 27 61 / 0.08);
  --shadow-device: 0 2px 4px rgb(15 27 61 / 0.08), 0 24px 48px -12px rgb(15 27 61 / 0.28);
}
@media (min-width: 768px) {
  :root { --gutter: 32px; --header-h: 80px; }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-padding-top: calc(var(--header-h) + 16px);
}
body {
  margin: 0;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  font-family: "Mona Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
}
main { flex: 1; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p, li { text-wrap: pretty; }
h1, h2, h3 { text-wrap: balance; }
button, input, textarea, select { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--blue-text); outline-offset: 3px; border-radius: 8px; }
.on-ink :focus-visible { outline-color: var(--blue); }
.nowrap { white-space: nowrap; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.wrap { width: min(100% - var(--gutter) * 2, 1240px); margin-inline: auto; }
.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  padding: 12px 18px; border-radius: var(--radius-inner); background: var(--ink); color: var(--white);
  font-weight: 650; text-decoration: none;
}
.skip-link:focus-visible { top: 12px; }

/* Grid paper, used where the page is "on the drawing board" */
.grid-paper {
  background-color: var(--paper);
  background-image:
    linear-gradient(var(--grid-major) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-major) 1px, transparent 1px),
    linear-gradient(var(--grid-minor) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-minor) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
  background-position: -1px -1px;
}

/* ---------- Type ---------- */
.display {
  margin: 0;
  font-weight: 820;
  font-stretch: 116%;
  letter-spacing: -0.035em;
  line-height: 0.96;
  font-size: clamp(40px, 6.4vw, 94px);
}
.h2 {
  margin: 0;
  font-weight: 780;
  font-stretch: 112%;
  letter-spacing: -0.028em;
  line-height: 1.02;
  font-size: clamp(32px, 4.2vw, 58px);
}
.h3 { margin: 0; font-weight: 700; font-size: 21px; line-height: 1.25; letter-spacing: -0.005em; }
.lede { margin: 20px 0 0; max-width: 38ch; font-size: clamp(17px, 1.35vw, 20px); line-height: 1.5; color: var(--slate); }
.on-ink { color: var(--white); }
.on-ink .lede { color: var(--on-ink-muted); }
.muted { color: var(--slate); }
.on-ink .muted { color: var(--on-ink-muted); }
.text-link {
  color: var(--blue-text); font-weight: 650; text-decoration: underline;
  text-decoration-thickness: 1.5px; text-underline-offset: 4px;
  transition: text-decoration-color 160ms ease;
}
.on-ink .text-link { color: var(--white); }
@media (hover: hover) and (pointer: fine) {
  .text-link:hover { text-decoration-color: transparent; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px;
  border: 1.5px solid transparent; border-radius: var(--radius-pill);
  font-weight: 650; font-size: 16px; line-height: 1; text-decoration: none; white-space: nowrap;
  cursor: pointer; touch-action: manipulation;
  user-select: none; -webkit-user-select: none; -webkit-touch-callout: none;
  transition: transform 160ms var(--ease-out), background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}
.btn:active { transform: scale(0.97); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-primary { background: var(--blue); color: var(--ink); }
.btn-line { background: transparent; border-color: currentColor; color: var(--ink); }
.on-ink .btn-line { color: var(--white); }
.btn-small { min-height: 44px; padding: 0 18px; font-size: 15px; }
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { background: var(--blue-hover); }
  .btn-line:hover { background: rgb(15 27 61 / 0.05); }
  .on-ink .btn-line:hover { background: rgb(255 255 255 / 0.08); }
}
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* Round icon controls */
.ctl {
  display: grid; place-items: center; width: 44px; height: 44px; padding: 0;
  border: 1.5px solid currentColor; border-radius: var(--radius-pill); background: transparent;
  cursor: pointer; touch-action: manipulation;
  transition: transform 160ms var(--ease-out), background-color 160ms ease;
}
.ctl:active { transform: scale(0.94); }
.ctl svg { width: 20px; height: 20px; }
@media (hover: hover) and (pointer: fine) {
  .ctl:hover { background: rgb(15 27 61 / 0.05); }
}

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  padding-top: env(safe-area-inset-top, 0px);
}
/* Frosted backing fades in once the page moves (opacity only) */
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgb(243 246 251 / 0.86);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  backdrop-filter: blur(14px) saturate(1.4);
  box-shadow: 0 1px 0 rgb(15 27 61 / 0.08);
  opacity: 0; transition: opacity 200ms ease;
}
.site-header[data-scrolled]::before { opacity: 1; }
.header-in { display: flex; align-items: center; gap: 8px; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 10px; min-height: 44px; margin-right: auto; text-decoration: none; }
.brand img { width: 38px; height: 38px; flex: none; }
.brand-name { font-weight: 720; font-stretch: 112%; font-size: 15px; line-height: 1.1; letter-spacing: -0.01em; }
.brand-name span { display: block; font-weight: 500; font-stretch: 100%; }
.nav-links { display: none; list-style: none; margin: 0; padding: 0; gap: 2px; }
.nav-links a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px;
  border-radius: var(--radius-pill); font-weight: 560; font-size: 15px; text-decoration: none;
  transition: background-color 160ms ease;
}
.nav-links a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; text-decoration-color: var(--blue-text); }
@media (hover: hover) and (pointer: fine) {
  .nav-links a:hover { background: rgb(15 27 61 / 0.06); }
}
.menu-btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px;
  border: 1.5px solid var(--ink); border-radius: var(--radius-pill); background: transparent;
  font-weight: 650; font-size: 15px; cursor: pointer; touch-action: manipulation;
  user-select: none; -webkit-user-select: none;
  transition: transform 160ms var(--ease-out), background-color 160ms ease;
}
.menu-btn:active { transform: scale(0.97); }
.menu-btn svg { width: 18px; height: 18px; }
.menu-btn .i-close { display: none; }
.menu-btn[aria-expanded="true"] .i-menu { display: none; }
.menu-btn[aria-expanded="true"] .i-close { display: block; }
.header-call { display: none; }
@media (min-width: 560px) { .header-call { display: inline-flex; } }
@media (min-width: 900px) {
  .nav-links { display: flex; }
  .menu-btn { display: none; }
  .header-call { margin-left: 10px; }
}

.menu-panel {
  position: absolute; left: var(--gutter); right: var(--gutter); top: calc(100% - 4px);
  padding: 8px; border-radius: var(--radius-card); background: var(--white);
  box-shadow: 0 0 0 1px rgb(15 27 61 / 0.06), 0 16px 40px -8px rgb(15 27 61 / 0.24);
  transform-origin: top right;
  transition: opacity 180ms var(--ease-out), transform 180ms var(--ease-out), visibility 0s;
}
.menu-panel[hidden] {
  display: block; visibility: hidden; opacity: 0; transform: translateY(-6px) scale(0.98); pointer-events: none;
  transition: opacity 140ms var(--ease-out), transform 140ms var(--ease-out), visibility 0s 140ms;
}
.menu-panel ul { list-style: none; margin: 0; padding: 0; }
.menu-panel a {
  display: flex; align-items: center; min-height: 52px; padding: 0 16px; border-radius: var(--radius-inner);
  font-weight: 650; font-size: 18px; text-decoration: none;
}
.menu-panel a[aria-current="page"] { background: var(--paper); }
.menu-panel .menu-call { margin: 8px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.menu-panel .menu-call .btn { padding: 0 12px; }
@media (min-width: 900px) { .menu-panel { display: none !important; } }

/* ---------- Page heads (inner pages) ---------- */
.page-head { padding: calc(var(--header-h) + clamp(48px, 8vw, 104px)) 0 clamp(48px, 7vw, 88px); }
.page-head .display { max-width: 15ch; }
.page-head .lede { max-width: 46ch; }

/* ---------- Sections ---------- */
.section { padding: var(--section) 0; }
.section-head { display: grid; gap: 4px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head .h2 { max-width: 18ch; }
.band-white { background: var(--white); }
.band-ink { background: var(--ink); }

/* ---------- Home hero (Blueprint) ---------- */
.hero { position: relative; height: 230vh; }
@media (min-width: 960px) { .hero { height: 280vh; } }
.hero-pin { position: sticky; top: 0; height: 100svh; overflow: hidden; }
.hero-grid {
  display: grid; grid-template-rows: auto 1fr; gap: 0; height: 100%;
  padding-top: calc(var(--header-h) + 12px); padding-bottom: 16px;
}
@media (min-width: 960px) {
  .hero-grid { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr; align-items: center; gap: 32px; padding-top: var(--header-h); padding-bottom: 0; }
}
.hero-copy .display { max-width: 10ch; }
.hero-copy .lede { display: none; }
@media (min-width: 600px) { .hero-copy .lede { display: block; } }
@media (max-width: 599px) {
  .hero-copy .display { font-size: 38px; }
  .hero-copy .cta-row { margin-top: 20px; gap: 10px; }
}
.hero-steps { display: none; list-style: none; margin: 32px 0 0; padding: 0; gap: 14px; }
@media (min-width: 960px) { .hero-steps { display: grid; } }
.hero-steps li { display: flex; align-items: center; gap: 12px; color: var(--slate); font-weight: 500; transition: color 200ms ease; }
.hero-steps li::before {
  content: ""; flex: none; width: 14px; height: 14px; border: 2px solid currentColor; border-radius: var(--radius-pill);
  transition: background-color 200ms ease, border-color 200ms ease;
}
.hero-steps li[data-on] { color: var(--ink); font-weight: 700; }
.hero-steps li[data-on]::before { background: var(--blue-text); border-color: var(--blue-text); }
.hero-stage { position: relative; min-height: 0; height: 100%; }
.hero-stage canvas {
  position: absolute; inset: 0; width: 100%; height: 100%; display: block;
  opacity: 0; transition: opacity 300ms var(--ease-out);
}
.hero-stage.is-ready canvas { opacity: 1; }
.hero-poster {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain;
}
.hero-stage.has-3d .hero-poster { display: none; }
.hero-hint {
  position: absolute; left: 50%; bottom: max(24px, env(safe-area-inset-bottom, 0px)); margin: 0;
  padding: 8px 16px; border-radius: var(--radius-pill); background: var(--white); color: var(--slate);
  font-size: 15px; font-weight: 560; white-space: nowrap; translate: -50% 0;
  box-shadow: var(--shadow-lift);
  transition: opacity 240ms ease;
}
.hero-hint[data-hide], .hero:not(.is-live) .hero-hint { opacity: 0; }

@media (prefers-reduced-motion: reduce) {
  .hero { height: auto; }
  .hero-pin { position: relative; height: auto; min-height: 100svh; }
  .hero-grid { min-height: 100svh; }
  .hero-stage { min-height: 60svh; }
  .hero-stage.has-3d .hero-poster { display: block; }
  .hero-stage canvas { display: none; }
  .hero-steps li { color: var(--ink); }
  .hero-hint { display: none; }
}

/* ---------- Annotated phone ("spec drawing") ---------- */
.spec { overflow: hidden; }
.spec .section-head { justify-items: start; }
.spec-stage { --w: 260px; position: relative; margin-inline: auto; width: 100%; }
.device {
  position: relative; width: var(--w); margin-inline: auto; padding: 9px;
  border-radius: calc(var(--w) * 0.155); background: #06070B;
  box-shadow: 0 0 0 2px #B4B9C3, 0 0 0 3px #8E949F, var(--shadow-device);
}
.device-screen {
  position: relative; overflow: hidden; aspect-ratio: 390 / 844;
  border-radius: calc(var(--w) * 0.155 - 9px); background: var(--white);
}
.device-screen { display: flex; flex-direction: column; }
.device-screen > img { flex: 1; min-height: 0; width: 100%; object-fit: cover; object-position: top; }
.device-status {
  flex: none; display: flex; align-items: center; justify-content: space-between;
  aspect-ratio: 390 / 54; padding: 0 9% 0 13%; background: var(--white); color: #000;
  font-family: -apple-system, "SF Pro Text", "Mona Sans", system-ui, sans-serif; font-weight: 600;
  font-size: calc(var(--w) * 0.042); line-height: 1;
}
.device-status::before { content: "9:41"; }
.device-status::after { content: ""; width: 18%; aspect-ratio: 70 / 14; background: url("images/status-icons.svg") no-repeat center / contain; }
.device-island {
  position: absolute; z-index: 2; top: 2.6%; left: 50%; width: 32.3%; aspect-ratio: 126 / 37;
  border-radius: var(--radius-pill); background: #000; translate: -50% 0;
}
.spec-notes { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 14px; counter-reset: note; }
.spec-notes li { display: flex; align-items: baseline; gap: 12px; counter-increment: note; font-weight: 560; }
.spec-notes li::before {
  content: counter(note); flex: none; display: grid; place-items: center; width: 28px; height: 28px;
  border-radius: var(--radius-pill); background: var(--blue-text); color: var(--white); font-size: 14px; font-weight: 700;
  font-variant-numeric: tabular-nums; translate: 0 -2px;
}
.spec-line, .spec-dot { display: none; }
.spec-pin {
  position: absolute; z-index: 3; left: calc(var(--x) * 100%); top: calc(var(--y) * 100%);
  display: grid; place-items: center; width: 26px; height: 26px; translate: -50% -50%;
  border-radius: var(--radius-pill); background: var(--blue-text); color: var(--white);
  font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums;
  box-shadow: 0 0 0 3px var(--white);
}
@media (min-width: 900px) {
  .spec-stage { --w: 300px; max-width: 1080px; }
  .spec-pin { display: none; }
  .spec-notes { margin: 0; position: absolute; inset: 0; display: block; }
  .spec-notes li {
    position: absolute; top: calc(9px + var(--y) * (var(--w) - 18px) * 844 / 390);
    display: flex; align-items: center; gap: 0; translate: 0 -50%;
  }
  .spec-notes li::before { display: none; }
  .spec-notes li[data-side="left"] { left: 0; right: calc(50% + var(--w) / 2 - 9px - var(--x) * (var(--w) - 18px)); flex-direction: row; }
  .spec-notes li[data-side="right"] { right: 0; left: calc(50% - var(--w) / 2 + 9px + var(--x) * (var(--w) - 18px)); flex-direction: row-reverse; }
  .spec-notes p { margin: 0; max-width: 23ch; font-size: 17px; line-height: 1.35; }
  .spec-notes li[data-side="left"] p { text-align: right; }
  .spec-line {
    display: block; flex: 1; min-width: 32px; height: 1.5px; margin: 0 12px; background: var(--blue-text);
  }
  li[data-side="left"] .spec-line { transform-origin: right center; }
  li[data-side="right"] .spec-line { transform-origin: left center; }
  .spec-dot {
    display: block; flex: none; width: 12px; height: 12px; border-radius: var(--radius-pill);
    background: var(--blue-text); box-shadow: 0 0 0 3px var(--white), 0 0 0 4.5px var(--blue-text);
  }
  li[data-side="left"] .spec-dot { margin-right: -6px; }
  li[data-side="right"] .spec-dot { margin-left: -6px; }
}

/* ---------- Work preview (home) ---------- */
.feature-work {
  display: grid; gap: 32px; padding: clamp(20px, 3vw, 32px); border-radius: var(--radius-card);
  background: var(--white); box-shadow: var(--shadow-lift);
}
@media (min-width: 900px) { .feature-work { grid-template-columns: 1.4fr 1fr; align-items: center; gap: 48px; } }
.feature-shots { position: relative; padding-bottom: 8%; }
.feature-shots .shot-desk {
  width: 88%; border-radius: var(--radius-inner);
  outline: 1px solid rgb(0 0 0 / 0.1); outline-offset: -1px; box-shadow: var(--shadow-lift);
}
.feature-shots .device { --w: clamp(96px, 22%, 150px); position: absolute; right: 0; bottom: 0; padding: 5px; }
.feature-shots .device-screen { border-radius: calc(var(--w) * 0.155 - 5px); }
.tag {
  display: inline-flex; align-items: center; gap: 8px; min-height: 30px; padding: 0 12px;
  border-radius: var(--radius-pill); background: var(--paper); font-size: 14px; font-weight: 650;
}
.tag-live::before { content: ""; width: 8px; height: 8px; border-radius: var(--radius-pill); background: #16A34A; }
.feature-copy .h3 { margin-top: 16px; font-size: clamp(22px, 2vw, 28px); }
.feature-copy p { margin: 12px 0 0; color: var(--slate); }
.link-row { display: flex; flex-wrap: wrap; gap: 12px 24px; margin-top: 24px; }

.sample-pair { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 24px; }
@media (min-width: 768px) { .sample-pair { grid-template-columns: 1fr 1fr; } }
.sample-card {
  display: grid; grid-template-columns: auto 1fr; align-items: center; gap: clamp(20px, 3vw, 32px);
  padding: clamp(20px, 3vw, 32px); border-radius: var(--radius-card); background: var(--white); box-shadow: var(--shadow-lift);
}
.sample-card .device { --w: clamp(110px, 30vw, 150px); padding: 5px; }
.sample-card .device-screen { border-radius: calc(var(--w) * 0.155 - 5px); }
.sample-card .h3 { margin-top: 12px; }
.sample-card p { margin: 6px 0 0; color: var(--slate); }
.reel-more { margin: 32px 0 0; }

/* ---------- Step rail (scroll progress timeline) ---------- */
.steps-layout { display: grid; gap: 40px; }
@media (min-width: 900px) {
  .steps-layout { grid-template-columns: 0.9fr 1.1fr; gap: 64px; align-items: start; }
  .steps-layout .section-head { position: sticky; top: calc(var(--header-h) + 40px); margin-bottom: 0; }
}
.rail-wrap { position: relative; }
.rail { position: relative; list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(32px, 4vw, 48px); }
.rail-base, .rail-fill {
  position: absolute; left: 19px; top: var(--rail-start, 20px); bottom: var(--rail-end, 20px); width: 2px; border-radius: 2px;
}
.rail-base { background: var(--rule); }
.rail-fill { background: var(--blue-text); transform-origin: top center; transform: scaleY(0); }
.rail li { position: relative; display: grid; grid-template-columns: 40px 1fr; gap: 20px; }
.rail-num {
  position: relative; z-index: 1; display: grid; place-items: center; width: 40px; height: 40px;
  border: 2px solid var(--rule); border-radius: var(--radius-pill); background: var(--white);
  font-weight: 700; font-variant-numeric: tabular-nums; color: var(--slate);
  transition: background-color 200ms ease, border-color 200ms ease, color 200ms ease;
}
.rail li[data-reached] .rail-num { background: var(--blue-text); border-color: var(--blue-text); color: var(--white); }
.rail .h3 { padding-top: 7px; }
.rail p { margin: 8px 0 0; max-width: 44ch; color: var(--slate); }
.band-white .rail-num { background: var(--paper); }
.band-white .rail li[data-reached] .rail-num { background: var(--blue-text); }
@media (prefers-reduced-motion: reduce) {
  .rail-fill { transform: none; }
  .rail-num { background: var(--blue-text) !important; border-color: var(--blue-text); color: var(--white); }
}

/* ---------- Closing call to action ---------- */
.closing { padding: clamp(88px, 11vw, 160px) 0; }
.closing .h2 { font-size: clamp(40px, 6vw, 84px); max-width: 14ch; }
.closing .lede { max-width: 44ch; }
.closing .email-line { margin: 28px 0 0; }

/* ---------- Footer ---------- */
.site-footer { padding: 56px 0 calc(40px + env(safe-area-inset-bottom, 0px)); background: var(--ink-2); color: var(--white); }
.footer-top { display: grid; gap: 28px; }
@media (min-width: 768px) { .footer-top { grid-template-columns: 1fr auto; align-items: start; } }
.footer-brand .brand { margin: 0; }
.footer-brand p { margin: 14px 0 0; max-width: 36ch; color: var(--on-ink-muted); }
.footer-links { display: flex; flex-wrap: wrap; gap: 4px 8px; list-style: none; margin: 0; padding: 0; }
.footer-links a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; margin-left: -10px;
  border-radius: var(--radius-pill); font-weight: 560; text-decoration: none;
}
@media (hover: hover) and (pointer: fine) {
  .footer-links a:hover { background: rgb(255 255 255 / 0.08); }
}
.footer-contact { display: flex; flex-wrap: wrap; gap: 4px 24px; margin-top: 32px; padding-top: 24px; border-top: 1px solid rgb(255 255 255 / 0.14); }
.footer-contact a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 650; text-decoration: none; overflow-wrap: anywhere; }
.footer-contact p { margin: 0; display: flex; align-items: center; min-height: 44px; color: var(--on-ink-muted); }

/* ---------- Mobile call bar ---------- */
.callbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom, 0px));
  background: rgb(255 255 255 / 0.92);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  backdrop-filter: blur(14px) saturate(1.4);
  box-shadow: 0 -1px 0 rgb(15 27 61 / 0.08);
  transform: translateY(110%);
  transition: transform 180ms var(--ease-out);
}
.callbar[data-show] { transform: none; transition-duration: 240ms; }
.callbar .btn { min-height: 48px; }
@media (min-width: 900px) { .callbar { display: none; } }
@media (prefers-reduced-motion: reduce) {
  .callbar { transition: opacity 160ms ease; transform: none; opacity: 0; pointer-events: none; }
  .callbar[data-show] { opacity: 1; pointer-events: auto; }
}

/* ---------- Work page ---------- */
.case { display: grid; gap: 40px; }
@media (min-width: 960px) { .case { grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; } }
.case-shots { position: relative; padding: 0 0 10% 0; }
.case-shots .shot-desk {
  width: 90%; border-radius: var(--radius-inner);
  outline: 1px solid rgb(0 0 0 / 0.1); outline-offset: -1px; box-shadow: var(--shadow-device);
}
.case-shots .device { --w: clamp(110px, 28%, 180px); position: absolute; right: 0; bottom: 0; padding: 6px; }
.case-shots .device-screen { border-radius: calc(var(--w) * 0.155 - 6px); }
.built-list { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 14px; }
.built-list li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; }
.built-list svg { width: 22px; height: 22px; margin-top: 2px; color: var(--blue-text); }

.showcase { display: grid; gap: 28px; }
@media (min-width: 960px) { .showcase { grid-template-columns: 320px 1fr; gap: 48px; align-items: start; } }
.sample-list {
  list-style: none; margin: 0; padding: 0 var(--gutter) 6px; display: flex; gap: 8px;
  overflow-x: auto; scroll-snap-type: x proximity; scroll-padding-inline: var(--gutter);
  margin-inline: calc(var(--gutter) * -1); overscroll-behavior-x: contain; scrollbar-width: none;
}
.sample-list::-webkit-scrollbar { display: none; }
.sample-list li { flex: none; scroll-snap-align: start; }
.sample-btn {
  display: grid; gap: 2px; min-height: 56px; padding: 10px 16px; text-align: left;
  border: 1.5px solid var(--rule); border-radius: var(--radius-inner); background: var(--white);
  cursor: pointer; touch-action: manipulation; user-select: none; -webkit-user-select: none;
  transition: border-color 160ms ease, background-color 160ms ease, transform 160ms var(--ease-out);
}
.sample-btn:active { transform: scale(0.98); }
.sample-btn strong { font-weight: 650; line-height: 1.25; }
.sample-btn span { font-size: 14px; color: var(--slate); line-height: 1.3; }
.sample-btn[aria-pressed="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
@media (hover: hover) and (pointer: fine) {
  .sample-btn:hover { border-color: var(--field); }
}
@media (min-width: 960px) {
  .sample-list { display: grid; gap: 8px; margin: 0; padding: 0; overflow: visible; }
  .sample-btn { width: 100%; }
}
.viewer { display: grid; justify-items: center; gap: 20px; }
.viewer-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; width: 100%; }
.viewer-cap { margin: 0; min-width: 0; }
.viewer-cap strong { display: block; font-size: 19px; line-height: 1.25; }
.viewer-cap span { color: var(--slate); font-size: 15px; }
.seg { display: none; padding: 4px; border-radius: var(--radius-pill); background: var(--white); box-shadow: inset 0 0 0 1.5px var(--rule); }
@media (min-width: 768px) { .seg { display: inline-flex; } }
.seg button {
  min-height: 40px; padding: 0 16px; border: 0; border-radius: var(--radius-pill); background: transparent;
  font-weight: 600; font-size: 15px; cursor: pointer; touch-action: manipulation;
  transition: background-color 160ms ease, color 160ms ease;
}
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--white); }
.viewer-frame { width: 100%; display: grid; justify-items: center; }
.viewer .device { --w: min(320px, 78vw); }
.viewer-laptop { display: none; width: 100%; max-width: 860px; }
.viewer[data-mode="laptop"] .device { display: none; }
.viewer[data-mode="laptop"] .viewer-laptop { display: block; }
.laptop-screen {
  position: relative; overflow: hidden; aspect-ratio: 16 / 10; padding: 0;
  border: 10px solid #06070B; border-bottom-width: 14px; border-radius: 16px 16px 6px 6px; background: var(--white);
  box-shadow: var(--shadow-device);
}
.laptop-screen > img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.laptop-base { height: 14px; margin: 0 -4%; border-radius: 0 0 14px 14px; background: linear-gradient(#C9CED7, #9EA4AF); }
.live-frame { position: absolute; left: 0; top: 0; border: 0; transform-origin: top left; background: var(--white); }
.viewer-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 20px; align-items: center; }
.viewer-note { margin: 0; max-width: 52ch; text-align: center; font-size: 15px; color: var(--slate); }

/* ---------- How it works page ---------- */
.two-col { display: grid; gap: 24px; }
@media (min-width: 900px) { .two-col { grid-template-columns: 1fr 1fr; gap: 32px; } }
.panel { padding: clamp(24px, 3vw, 36px); border-radius: var(--radius-card); background: var(--white); box-shadow: var(--shadow-lift); }
.panel .h3 { font-size: 24px; }
.panel > p { margin: 10px 0 0; color: var(--slate); }
.check-list { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 12px; }
.check-list li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; }
.check-list svg { width: 22px; height: 22px; margin-top: 2px; color: var(--blue-text); }
.panel-extra { margin-top: 24px; }
.panel-extra-head p { margin: 10px 0 0; color: var(--slate); }
@media (min-width: 900px) {
  .panel-extra { margin-top: 32px; display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
  .panel-extra .check-list { margin-top: 0; }
}
.need-list { columns: 2 240px; column-gap: 32px; margin: 0; padding: 0 0 0 20px; }
.need-list li { margin-bottom: 10px; break-inside: avoid; }
.faq { display: grid; gap: 12px; max-width: 820px; }
.faq details { border-radius: var(--radius-mid); background: var(--white); box-shadow: inset 0 0 0 1px var(--rule); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 60px; padding: 14px 20px; cursor: pointer; list-style: none;
  font-weight: 650; font-size: 18px; line-height: 1.3;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { width: 20px; height: 20px; flex: none; transition: transform 200ms var(--ease-out); }
.faq details[open] summary svg { transform: rotate(45deg); }
.faq details p { margin: 0; padding: 0 20px 20px; max-width: 62ch; color: var(--slate); }

/* ---------- Contact page ---------- */
.contact-grid { display: grid; gap: 40px; }
@media (min-width: 960px) { .contact-grid { grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: start; } }
.contact-big {
  display: inline-block; margin-top: 8px; font-weight: 800; font-stretch: 112%; letter-spacing: -0.02em;
  font-size: clamp(34px, 4.6vw, 56px); line-height: 1.05; text-decoration: none; font-variant-numeric: tabular-nums;
}
.contact-list { margin: 36px 0 0; display: grid; gap: 24px; }
.contact-list dt { font-weight: 650; }
.contact-list dd { margin: 4px 0 0; }
.contact-list a { overflow-wrap: anywhere; }
.form-card { padding: clamp(24px, 3vw, 40px); border-radius: var(--radius-card); background: var(--white); box-shadow: var(--shadow-lift); }
.form-card .h3 { font-size: 24px; }
.form-intro { margin: 8px 0 0; color: var(--slate); }
.field { display: grid; gap: 6px; margin-top: 20px; }
.field label { font-weight: 650; }
.optional { font-weight: 450; color: var(--slate); }
.hint { margin: 0; font-size: 15px; color: var(--slate); }
.field input, .field textarea {
  width: 100%; min-height: 52px; padding: 12px 14px;
  border: 1.5px solid var(--field); border-radius: var(--radius-inner); background: var(--white);
  font-size: 17px; line-height: 1.4;
  transition: border-color 160ms ease;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus-visible, .field textarea:focus-visible { outline: none; border-color: var(--blue-text); box-shadow: 0 0 0 3px rgb(42 91 215 / 0.25); }
.field [aria-invalid="true"] { border-color: var(--error); }
.field-error { margin: 0; font-size: 15px; font-weight: 600; color: var(--error); }
.field-error:empty { display: none; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 28px; }
.form-actions .btn[aria-disabled="true"] { opacity: 0.6; pointer-events: none; }
.form-status { margin: 0; font-weight: 600; }
.form-status[data-error] { color: var(--error); }
.form-done h3:focus { outline: none; }
.form-done p { margin: 10px 0 0; color: var(--slate); }

/* ---------- 404 ---------- */
.lost { padding: calc(var(--header-h) + clamp(64px, 12vw, 160px)) 0 var(--section); }

/* ---------- Page-to-page wipe ----------
   Leaving a page, a blueprint-blue sheet and then an ink sheet rise over it
   with curved leading edges, and the next page's name is drawn on the ink.
   The next page starts covered: the ink lifts first and the blue trails it. */
.page-wipe { position: fixed; inset: 0; z-index: 200; overflow: hidden; pointer-events: none; visibility: hidden; }
.page-wipe-sheet {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  transform: translateY(114%);
  background-color: var(--sheet);
  background-image:
    linear-gradient(var(--sheet-major) 1px, transparent 1px),
    linear-gradient(90deg, var(--sheet-major) 1px, transparent 1px),
    linear-gradient(var(--sheet-minor) 1px, transparent 1px),
    linear-gradient(90deg, var(--sheet-minor) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
}
.page-wipe-sheet.is-blue { --sheet: var(--blue); --sheet-major: rgb(255 255 255 / 0.28); --sheet-minor: rgb(255 255 255 / 0.11); }
.page-wipe-sheet.is-ink { --sheet: var(--ink); --sheet-major: var(--grid-major); --sheet-minor: var(--grid-minor); }
.page-wipe-edge { position: absolute; left: 0; width: 100%; height: 14%; fill: var(--sheet); }
.page-wipe-edge.is-top { bottom: calc(100% - 1px); transform-origin: 50% 100%; }
.page-wipe-edge.is-bottom { top: calc(100% - 1px); transform-origin: 50% 0; transform: scaleY(0); }
.page-wipe-title { display: inline-grid; justify-items: start; max-width: calc(100% - 32px); }
.page-wipe-name {
  color: var(--white); font-size: clamp(40px, 8vw, 112px); font-weight: 820; font-stretch: 116%;
  letter-spacing: -0.035em; line-height: 1; text-wrap: balance;
}
.page-wipe-rule { width: 100%; height: 3px; margin-top: 16px; border-radius: 2px; background: var(--blue); transform-origin: 0 50%; }

html[data-wipe] .page-wipe { visibility: visible; }
html[data-wipe="out"] .page-wipe-sheet { animation: wipe-cover 420ms var(--ease-drawer) both; }
html[data-wipe="out"] .page-wipe-sheet .is-top { animation: wipe-flatten 420ms var(--ease-drawer) both; }
html[data-wipe="out"] .page-wipe-sheet.is-ink,
html[data-wipe="out"] .is-ink .is-top { animation-delay: 70ms; }
html[data-wipe="out"] .page-wipe-name { animation: wipe-name-in 300ms var(--ease-out) 170ms both; }
html[data-wipe="out"] .page-wipe-rule { animation: wipe-draw 320ms var(--ease-out) 200ms both; }
html[data-wipe="in"] .page-wipe-sheet { transform: translateY(0); animation: wipe-lift 640ms var(--ease-in-out) both; }
html[data-wipe="in"] .page-wipe-sheet .is-top { transform: scaleY(0); }
html[data-wipe="in"] .page-wipe-sheet .is-bottom { animation: wipe-trail 640ms var(--ease-in-out) both; }
html[data-wipe="in"] .page-wipe-sheet.is-blue,
html[data-wipe="in"] .is-blue .is-bottom { animation-delay: 90ms; }
@keyframes wipe-cover { from { transform: translateY(114%); } to { transform: translateY(0); } }
@keyframes wipe-flatten { from { transform: scaleY(1); } to { transform: scaleY(0); } }
@keyframes wipe-lift { from { transform: translateY(0); } to { transform: translateY(-114%); } }
@keyframes wipe-trail { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes wipe-name-in { from { opacity: 0; transform: translateY(18px); } }
@keyframes wipe-draw { from { transform: scaleX(0); } }
@keyframes wipe-fade-in { from { opacity: 0; } }
@keyframes wipe-fade-out { to { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  /* One ink sheet with the page name fades in and out instead of sweeping */
  .page-wipe-sheet.is-blue, .page-wipe-edge { display: none; }
  html[data-wipe] .page-wipe-sheet, html[data-wipe] .page-wipe-name, html[data-wipe] .page-wipe-rule { animation: none; transform: none; }
  html[data-wipe="out"] .page-wipe { animation: wipe-fade-in 160ms ease both; }
  html[data-wipe="in"] .page-wipe { animation: wipe-fade-out 200ms ease 60ms both; }
  .btn, .ctl, .menu-btn, .sample-btn { transition: none; }
  .btn:active, .ctl:active, .menu-btn:active, .sample-btn:active { transform: none; }
  .menu-panel { transition: opacity 120ms ease; }
  .menu-panel[hidden] { transform: none; }
}

/* Keyword line above the home headline: says what and where on the first screen */
.hero-kicker {
  display: block; margin-bottom: 14px;
  font-size: 15px; font-weight: 650; font-stretch: 100%; letter-spacing: 0; line-height: 1.3;
  color: var(--blue-text);
}
@media (min-width: 960px) { .hero-kicker { font-size: 17px; margin-bottom: 18px; } }
