/* Public site ("Signal" design): home, project pages, the client portal,
   invoices, the blog and tools. Plain CSS, no build step. Only the admin
   uses output.css.

   The page is Barbados at night: a deep sea blue base, the island drawn from
   real bus routes, and lime kept for things that are live (buses, the
   availability dot, the main actions). */

:root {
  --sea-0: #050d15;
  --sea-1: #0a1620;
  --sea-2: #0f1f2c;
  --line: #172838;
  --line-2: #213648;
  --line-3: #35506a;
  --dim: #2a3d4f;
  --mute: #7d8e9e;
  --soft: #b3c0cc;
  --text: #ecf2f5;
  --lime: #c8f560;
  --lime-hi: #dcff8a;
  --lime-deep: #2d3d0e;
  --lime-pale: #f0ffd0;
  --coral: #ff6b4a;
  --sky: #6cb8ff;

  --font: "Bricolage Grotesque", system-ui, sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;

  --nav-h: 76px;
  --gutter: 64px;
  --radius: 32px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.site {
  margin: 0;
  background: var(--sea-0);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* Film grain keeps the dark gradients from banding. */
body.site::before {
  content: ""; position: fixed; inset: 0; z-index: 60; pointer-events: none; opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img { max-width: 100%; display: block; }
a { color: var(--lime); text-decoration: none; }
a:hover { color: var(--lime-hi); }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, p, blockquote, figure, dl, dd { margin: 0; }
[id] { scroll-margin-top: 88px; }
::selection { background: var(--lime); color: var(--sea-0); }

.wrap { width: 100%; max-width: 1440px; margin: 0 auto; padding: 0 var(--gutter); }
.lime { color: var(--lime); }
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--lime); color: var(--sea-0); padding: 10px 16px; border-radius: 10px; }
.skip-link:focus { left: 8px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 56px; padding: 0 28px; border-radius: 999px; border: 0;
  font: inherit; font-size: 17px; font-weight: 650; cursor: pointer; white-space: nowrap;
  transition: transform 0.35s var(--ease), background 0.25s, color 0.25s, border-color 0.25s, box-shadow 0.35s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn--sm { height: 44px; padding: 0 20px; font-size: 15px; }
.btn--lime { background: var(--lime); color: var(--sea-0); box-shadow: 0 0 0 0 rgba(200, 245, 96, 0); }
.btn--lime:hover { background: var(--lime-hi); color: var(--sea-0); box-shadow: 0 10px 40px -8px rgba(200, 245, 96, 0.55); }
.btn--light { background: var(--text); color: var(--sea-0); }
.btn--light:hover { background: #fff; color: var(--sea-0); box-shadow: 0 10px 40px -10px rgba(236, 242, 245, 0.45); }
.btn--ghost { border: 1.5px solid var(--line-3); color: var(--text); background: rgba(5, 13, 21, 0.4); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.btn--ghost:hover { border-color: var(--lime); color: var(--text); }
.btn--ink { background: var(--sea-0); color: var(--text); }
.btn--ink:hover { background: #10202c; color: var(--text); }
.btn[disabled] { opacity: 0.7; cursor: progress; transform: none; }

/* ---------- Nav ---------- */
.site-nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--nav-h);
  border-bottom: 1px solid transparent;
  transition: background 0.35s, border-color 0.35s, height 0.35s var(--ease);
}
.site-nav.is-solid { height: 64px; background: rgba(5, 13, 21, 0.78); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4); border-bottom-color: var(--line); }
.site-nav__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.site-nav__links { display: flex; gap: 8px; font-size: 15px; }
.site-nav__links a { position: relative; padding: 8px 14px; border-radius: 999px; color: var(--soft); transition: color 0.25s, background 0.25s; }
.site-nav__links a:hover { color: var(--text); background: rgba(236, 242, 245, 0.06); }
.site-nav__links a.is-current { color: var(--text); }
.site-nav__links a.is-current::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: var(--lime); }
.site-nav__progress { position: absolute; left: 0; bottom: -1px; height: 2px; width: 100%; background: var(--lime); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); opacity: 0.85; }
.wordmark { font-family: var(--serif); font-size: 32px; line-height: 1; color: var(--text); letter-spacing: -0.01em; }
.wordmark:hover { color: var(--text); }
.wordmark span { color: var(--lime); }

/* ---------- Shared type ---------- */
.section-title { font-size: clamp(48px, 6.4vw, 96px); line-height: 0.95; font-weight: 800; letter-spacing: -0.045em; font-variation-settings: "wdth" 96; }
.section-aside { max-width: 400px; font-size: 19px; line-height: 1.55; color: var(--mute); }

/* ---------- Motion ---------- */
@keyframes rise {
  from { transform: translateY(108%); font-variation-settings: "wdth" 75; }
  to { transform: none; font-variation-settings: "wdth" 100; }
}
@keyframes intro { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes flow { to { stroke-dashoffset: -64; } }
@keyframes ping { 0% { r: 6; opacity: 0.9; } 100% { r: 22; opacity: 0; } }
@keyframes pip-bob { 50% { transform: translateY(-7px); } }
@keyframes hop { 0%, 100% { transform: none; } 35% { transform: translateY(-22px) rotate(-6deg); } 60% { transform: translateY(2px); } }
@keyframes bubble-in { from { opacity: 0; transform: translateY(8px) scale(0.92); } to { opacity: 1; transform: none; } }

.line { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.rise { display: inline-block; animation: rise 1.25s var(--ease) both; animation-delay: calc(var(--t, 0) * 90ms + 250ms); }
.intro { animation: intro 1s var(--ease) both; animation-delay: calc(var(--t, 0) * 90ms + 250ms); }
/* Section titles rise line by line when they reach the screen. */
.split-line { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.split-line > span { display: inline-block; transform: translateY(108%); transition: transform 1.1s var(--ease), font-variation-settings 1.1s var(--ease); transition-delay: calc(var(--n, 0) * 110ms); font-variation-settings: "wdth" 75; }
.is-in .split-line > span { transform: none; font-variation-settings: "wdth" 96; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: max(760px, 100svh); padding-top: var(--nav-h); display: flex; flex-direction: column; overflow: hidden; isolation: isolate; }
.hero__map { position: absolute; inset: 0; z-index: -1; transform-origin: 70% 60%; will-change: transform, opacity; }
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero__map::after { content: ""; position: absolute; inset: auto 0 0 0; height: 180px; background: linear-gradient(to top, var(--sea-0), transparent); pointer-events: none; }
.hero__towns { position: absolute; inset: 0; pointer-events: none; }
.town {
  position: absolute; left: 0; top: 0; display: flex; align-items: center; gap: 8px;
  font-family: var(--serif); font-style: italic; font-size: 17px; line-height: 1; color: var(--soft); white-space: nowrap;
  opacity: 0; transition: opacity 1.2s var(--ease); text-shadow: 0 0 12px var(--sea-0), 0 0 4px var(--sea-0);
}
.town::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--soft); flex: none; }
.town.is-right { flex-direction: row-reverse; }
.town--capital { font-size: 21px; color: var(--text); }
.town--capital::before { display: none; }
.is-drawn .town { opacity: 0.9; }

.hero__inner { position: relative; flex: 1; display: flex; align-items: center; }
.hero__copy { max-width: 720px; padding-block: 48px 32px; }
.hero__title { margin-top: 32px; font-size: clamp(68px, 9.6vw, 148px); line-height: 0.88; font-weight: 800; letter-spacing: -0.05em; }
.hero__lead { margin-top: 36px; max-width: 30em; font-size: 20px; line-height: 1.55; color: var(--soft); text-shadow: 0 0 24px var(--sea-0); }
.hero__ctas { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero__foot { position: relative; display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; padding-bottom: 32px; }
.hero__caption { display: flex; align-items: center; gap: 12px; font-size: 15px; color: var(--mute); }
.hero__caption a { color: var(--soft); text-decoration: underline; text-decoration-color: var(--line-3); text-underline-offset: 3px; }
.hero__caption a:hover { color: var(--text); text-decoration-color: var(--lime); }
.hero__credit { display: block; margin-top: 2px; font-size: 13px; color: var(--mute); opacity: 0.8; }
.hero__credit a { color: inherit; }
.site-footer__meta a { color: var(--soft); }
.hero__key { width: 28px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, rgba(200, 245, 96, 0.2), var(--lime)); flex: none; }
.hero__side { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.hero__note { margin: 0; font-size: 13px; color: var(--mute); opacity: 0.8; }
.hero__legend { margin: 0; padding: 0; list-style: none; display: flex; align-items: center; gap: 22px; font-size: 14px; color: var(--mute); }
.hero__legend li { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.swatch { width: 8px; height: 8px; border-radius: 50%; box-shadow: 0 0 10px currentColor; }
.swatch--board { background: #6cb8ff; color: rgba(108, 184, 255, 0.8); }
.swatch--mini { background: #f5c451; color: rgba(245, 196, 81, 0.8); }
.swatch--zr { background: #ecf2f5; color: rgba(236, 242, 245, 0.6); }
.hero__clock { margin-left: 10px; padding-left: 22px; border-left: 1px solid var(--line-2); font-family: var(--mono); font-size: 13px; font-variant-numeric: tabular-nums; }

/* ---------- Work ---------- */
.work { padding-top: 176px; position: relative; }
.work__head { position: relative; display: flex; justify-content: space-between; align-items: flex-end; gap: 48px; }
.work__deck { margin-top: 96px; padding-bottom: 8vh; }
.work-card {
  --accent: var(--sky);
  --card-h: min(calc(100svh - var(--nav-h) - 72px), 820px);
  position: sticky; top: calc(88px + var(--i) * 14px);
  height: var(--card-h); margin-bottom: 12vh;
  transform-origin: 50% 0;
  transform: scale(calc(1 - var(--cover, 0) * 0.06));
}
.work-card:last-child { margin-bottom: 0; }
.accent-0 { --accent: #6cb8ff; }
.accent-1 { --accent: #a99bff; }
.accent-2 { --accent: #ff8f75; }
.accent-3 { --accent: #3dd9bc; }

.work-card__inner {
  position: relative; height: 100%; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px;
  border-radius: var(--radius); overflow: hidden;
  background:
    radial-gradient(560px circle at var(--mx, 75%) var(--my, 20%), color-mix(in srgb, var(--accent) 11%, transparent), transparent 70%),
    radial-gradient(120% 90% at 100% 0%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 60%),
    color-mix(in srgb, var(--accent) 5%, var(--sea-1));
  border: 1px solid color-mix(in srgb, var(--accent) 20%, var(--line));
  box-shadow: 0 -30px 60px -30px rgba(0, 0, 0, 0.8), 0 40px 80px -40px rgba(0, 0, 0, 0.9);
}
/* Top edge highlight in the card's accent. */
.work-card__inner::before { content: ""; position: absolute; inset: 0 10% auto 10%; height: 1px; background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--accent) 70%, transparent), transparent); z-index: 3; }
/* Darkens a card as the next one slides over it. */
.work-card__inner::after { content: ""; position: absolute; inset: 0; background: var(--sea-0); opacity: calc(var(--cover, 0) * 0.6); pointer-events: none; z-index: 4; }

.work-card__body { position: relative; z-index: 2; display: flex; flex-direction: column; padding: 56px 0 56px 56px; min-width: 0; }
.work-card__label { font-size: 15px; font-weight: 600; color: var(--accent); }
.work-card__title { margin-top: 20px; font-size: clamp(48px, 5.6vw, 88px); line-height: 0.95; font-weight: 800; letter-spacing: -0.045em; font-variation-settings: "wdth" 92; }
.work-card__link { color: var(--text); }
.work-card__link:hover { color: var(--text); }
.work-card__link::after { content: ""; position: absolute; inset: -200vw; z-index: 1; }
.work-card__inner:has(.work-card__link) { cursor: pointer; }
.work-card__desc { margin-top: 24px; max-width: 30em; font-size: 18px; line-height: 1.6; color: var(--soft); }
.work-card__tech { margin: 28px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.work-card__tech li { padding: 5px 12px; border-radius: 999px; font-size: 14px; color: var(--soft); background: rgba(236, 242, 245, 0.05); border: 1px solid rgba(236, 242, 245, 0.08); }
.work-card__actions { margin-top: auto; padding-top: 32px; display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.work-card__cta { display: inline-flex; align-items: center; height: 52px; padding: 0 24px; border-radius: 999px; background: var(--text); color: var(--sea-0); font-weight: 650; transition: transform 0.35s var(--ease), background 0.25s; }
.work-card__inner:hover .work-card__cta { background: var(--accent); transform: translateX(4px); }
.work-card__site { position: relative; z-index: 2; font-size: 16px; font-weight: 600; color: var(--text); }
.work-card__site:hover { color: var(--accent); }

.work-card__art { position: relative; z-index: 2; min-width: 0; }
.work-card__glow { position: absolute; inset: -10% -20% -10% -10%; background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 30%, transparent), transparent 75%); opacity: 0.8; pointer-events: none; }

/* Device frames, in a 3D rig that JS tilts toward the pointer and
   straightens as the card slides into place. */
.devices {
  --enter: 1; --tx: 0; --ty: 0;
  position: absolute; inset: 0; transform-style: preserve-3d;
  transform: perspective(2200px)
    rotateX(calc(6deg + (1 - var(--enter)) * 18deg + var(--ty) * -4deg))
    rotateY(calc(-16deg + var(--tx) * 6deg))
    translateY(calc((1 - var(--enter)) * 80px));
  transition: transform 0.6s var(--ease);
}
.device { position: absolute; background: #03070b; overflow: hidden; }
.device img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.device--browser { border-radius: 14px; border: 1px solid #28415a; box-shadow: 0 50px 100px -30px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(255, 255, 255, 0.03) inset; }
.device--browser img { height: auto; aspect-ratio: 16 / 10; }
.device__bar { height: 30px; display: flex; align-items: center; gap: 7px; padding: 0 14px; background: #0e1a26; border-bottom: 1px solid #1a2a3a; }
.device__bar span { width: 9px; height: 9px; border-radius: 50%; background: var(--line-3); flex: none; }
.device__bar em { margin: 0 auto; padding: 3px 14px; border-radius: 6px; background: #07111a; font-style: normal; font-family: var(--mono); font-size: 11px; color: var(--mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.device--phone { padding: 7px; border-radius: 40px; border: 1px solid #2f4a64; aspect-ratio: 9 / 19.5; box-shadow: 0 60px 90px -30px rgba(0, 0, 0, 0.9), 0 0 0 2px #0a121b inset; }
.device--phone img { border-radius: 33px; }

.devices--pair .device--browser { left: 2%; top: 13%; width: 86%; transform: translateZ(0); }
.devices--pair .device--phone { right: 7%; bottom: 7%; width: 25%; transform: translateZ(110px) rotateY(8deg); }
.devices--solo-browser .device--browser { left: 4%; top: 16%; width: 92%; }
.devices--solo-phone { transform: perspective(2200px) rotateX(calc(4deg + (1 - var(--enter)) * 18deg + var(--ty) * -4deg)) rotateY(calc(-18deg + var(--tx) * 8deg)) translateY(calc((1 - var(--enter)) * 80px)); }
.devices--solo-phone .device--phone { left: 50%; top: 50%; width: 36%; transform: translate(-50%, -50%) translateZ(60px); }

/* No screenshots: the island with a trip across it. */
.work-card__motif { position: absolute; left: 50%; top: 50%; height: 80%; width: auto; overflow: visible; transform: translate(-50%, -50%); }
.motif-net { fill: none; stroke: color-mix(in srgb, var(--accent) 45%, transparent); stroke-width: 0.6; stroke-linejoin: round; stroke-linecap: round; opacity: 0.55; }
.motif-glow { fill: none; stroke: var(--accent); stroke-linejoin: round; }
.motif-glow--1 { stroke-width: 26; opacity: 0.05; }
.motif-glow--2 { stroke-width: 12; opacity: 0.08; }
.motif-label { font-family: var(--serif); font-style: italic; font-size: 15px; fill: var(--soft); }
.motif-land { fill: color-mix(in srgb, var(--accent) 8%, var(--sea-2)); stroke: color-mix(in srgb, var(--accent) 50%, transparent); stroke-width: 1.2; }
.motif-trip { fill: none; stroke: color-mix(in srgb, var(--accent) 35%, transparent); stroke-width: 2; stroke-linecap: round; }
.motif-trip--flow { stroke: var(--accent); stroke-dasharray: 2 14; animation: flow 3s linear infinite; }
.motif-node { fill: var(--sea-0); stroke: var(--accent); stroke-width: 2.5; }
.motif-ping { fill: none; stroke: var(--accent); stroke-width: 2; animation: ping 2.4s ease-out infinite; }
.motif-van { fill: var(--lime); filter: drop-shadow(0 0 6px var(--lime)); }

/* ---------- Services: the stack ---------- */
.services { padding-top: 144px; }
.services__grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 64px; }
.services__visual { position: sticky; top: calc(var(--nav-h) + 16px); height: calc(100svh - var(--nav-h) - 32px); max-height: 860px; display: flex; align-items: center; justify-content: center; }
.iso-stage { position: relative; width: min(100%, 560px); aspect-ratio: 1; }
.iso-stage::after { content: ""; position: absolute; left: 12%; right: 12%; bottom: 8%; height: 18%; border-radius: 50%; background: radial-gradient(closest-side, rgba(200, 245, 96, 0.14), transparent); filter: blur(8px); }
.iso { position: absolute; left: 50%; top: 58%; width: 54%; aspect-ratio: 1; transform: translate(-50%, -50%) rotateX(58deg) rotateZ(-42deg); transform-style: preserve-3d; }
.iso__plate {
  --z: 0; position: absolute; inset: 0; border-radius: 26px;
  background: linear-gradient(135deg, #132636, #0c1a26);
  border: 1.5px solid var(--line-2);
  transform: translateZ(calc(var(--z) * 1px)); transform-style: preserve-3d;
  transition: transform 0.8s var(--ease), border-color 0.4s, background 0.4s, box-shadow 0.4s;
}
.iso__plate::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: #03080d; border: 1.5px solid #0d1b27; transform: translateZ(-16px); }
.iso__plate svg { position: relative; width: 100%; height: 100%; display: block; }
.iso-art { fill: none; stroke: var(--line-3); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; transition: stroke 0.4s; }
.iso-art .iso-led, .iso-art .iso-hub, .iso-art .iso-fill { fill: var(--line-2); transition: fill 0.4s; }
/* Requests travel down the stack and answers come back up, beside the
   plates. Every part lies flat, parallel to the plates: an upright plane
   would slice through them and break the browser's 3D ordering. */
.iso { --top: 60; }
.iso__dot, .iso__packet { position: absolute; left: -9%; top: 64%; border-radius: 50%; }
.iso__dot { width: 5px; height: 5px; margin: -2.5px 0 0 -2.5px; background: rgba(200, 245, 96, 0.35); transform: translateZ(calc(var(--top) * var(--k) * 1px)); transition: transform 0.8s var(--ease); }
.iso__packet { width: 16px; height: 16px; margin: -8px 0 0 -8px; background: var(--lime-pale); box-shadow: 0 0 14px 5px rgba(200, 245, 96, 0.6); animation: packet-down 2.8s var(--ease-io) infinite; }
.iso__packet--up { background: #fff; box-shadow: 0 0 14px 5px rgba(108, 184, 255, 0.6); animation-name: packet-up; animation-delay: -0.7s; }
@keyframes packet-down {
  0% { transform: translateZ(calc(var(--top) * 1px)); opacity: 0; }
  12%, 86% { opacity: 1; }
  100% { transform: translateZ(0); opacity: 0; }
}
@keyframes packet-up {
  0% { transform: translateZ(0); opacity: 0; }
  12%, 86% { opacity: 1; }
  100% { transform: translateZ(calc(var(--top) * 1px)); opacity: 0; }
}
.iso__plate.is-active { border-color: var(--lime); background: linear-gradient(135deg, #1f3417, #132413); box-shadow: 0 0 80px rgba(200, 245, 96, 0.28); }
.iso__plate.is-active .iso-art { stroke: var(--lime); }
.iso__plate.is-active .iso-led, .iso__plate.is-active .iso-hub, .iso__plate.is-active .iso-fill { fill: var(--lime); }

.services__intro { padding-top: 6vh; }
.services__copy .section-aside { margin-top: 28px; }
.layers { margin: 0; padding: 12vh 0 0; list-style: none; }
.layer { padding-block: 12vh; border-top: 1px solid var(--line); opacity: 0.32; transition: opacity 0.5s var(--ease); }
.layer.is-active { opacity: 1; }
.layer h3 { display: flex; align-items: center; gap: 14px; font-size: clamp(30px, 3vw, 44px); line-height: 1.05; font-weight: 750; letter-spacing: -0.03em; }
.layer h3::before { content: ""; width: 12px; height: 12px; border-radius: 4px; border: 2px solid var(--line-3); transform: rotate(45deg); flex: none; transition: background 0.4s, border-color 0.4s; }
.layer.is-active h3::before { background: var(--lime); border-color: var(--lime); }
.layer p { margin-top: 16px; max-width: 28em; font-size: 19px; line-height: 1.6; color: var(--soft); }
.layer .layer__tech { margin-top: 20px; font-family: var(--mono); font-size: 13px; color: var(--mute); }
.mvp { margin-top: 12vh; padding: 36px; border-radius: 24px; background: var(--lime); color: var(--sea-0); }
.mvp h3 { font-size: 28px; font-weight: 750; letter-spacing: -0.02em; }
.mvp p { margin-top: 10px; font-size: 18px; line-height: 1.55; color: var(--lime-deep); }

/* ---------- About ---------- */
.about { padding-top: 220px; }
.about__quote { font-family: var(--serif); font-size: clamp(48px, 7.4vw, 124px); line-height: 1; letter-spacing: -0.02em; max-width: 13em; }
.about__quote .w { color: var(--dim); transition: color 0.35s linear; }
.about__quote .w.is-lit { color: var(--text); }
.no-js .about__quote .w { color: var(--text); }
.about__row { position: relative; margin-top: 96px; display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: 48px; align-items: start; padding-top: 32px; border-top: 1px solid var(--line); }
.about__sign { font-family: var(--serif); font-style: italic; font-size: 24px; color: var(--soft); }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.fact dt { font-size: clamp(30px, 3vw, 44px); line-height: 1; font-weight: 750; letter-spacing: -0.035em; font-variation-settings: "wdth" 90; }
.fact dd { margin-top: 10px; font-size: 16px; line-height: 1.5; color: var(--mute); }

/* ---------- Contact ---------- */
.contact-section { padding-top: 200px; }
.contact { position: relative; overflow: hidden; isolation: isolate; padding: 80px; border-radius: 40px; background: var(--lime); color: var(--sea-0); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 64px; }
.contact__island { position: absolute; left: -4%; bottom: -30%; height: 130%; width: auto; z-index: -1; }
.contact__island path { fill: none; stroke: var(--lime-deep); stroke-width: 1; opacity: 0.14; }
.contact__title { font-size: clamp(56px, 6.6vw, 104px); line-height: 0.92; font-weight: 800; letter-spacing: -0.05em; }
.contact__lead { margin-top: 28px; max-width: 26em; font-size: 20px; line-height: 1.55; color: var(--lime-deep); }
.contact__form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-content: start; }
.field { display: flex; flex-direction: column; gap: 8px; font-size: 14px; font-weight: 650; }
.field--full { grid-column: span 2; }
.field__opt { font-weight: 400; color: var(--lime-deep); }
.field input, .field select, .field textarea {
  width: 100%; height: 54px; border-radius: 14px; border: 2px solid transparent; background: var(--lime-pale);
  padding: 0 16px; font: inherit; font-size: 16px; font-weight: 400; color: var(--sea-0); appearance: none;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23050d15' stroke-width='2'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }
.field textarea { height: 148px; padding: 14px 16px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--sea-0); background: #fff; box-shadow: 0 8px 24px -12px rgba(5, 13, 21, 0.5); }
.contact__form .btn { height: 62px; font-size: 18px; }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Footer ---------- */
.site-footer { margin-top: 128px; border-top: 1px solid var(--line); padding-top: 40px; overflow: hidden; }
.site-footer__top { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; font-size: 16px; color: var(--mute); }
.site-footer__line [data-clock] { color: var(--text); font-variant-numeric: tabular-nums; }
.site-footer__links { display: flex; gap: 28px; }
.site-footer__links a { color: var(--soft); }
.site-footer__links a:hover { color: var(--text); }
.site-footer__meta { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; padding-block: 40px 32px; font-size: 14px; color: var(--mute); }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 90; display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal__overlay { position: absolute; inset: 0; background: rgba(3, 8, 13, 0.82); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.modal__box { position: relative; width: 100%; max-width: 440px; padding: 36px; border-radius: 28px; background: var(--sea-1); border: 1px solid var(--line-2); text-align: center; animation: intro 0.5s var(--ease) both; }
.modal__pip { width: 132px; height: 132px; margin: -12px auto 8px; }
.modal__box h2 { font-size: 30px; font-weight: 800; letter-spacing: -0.03em; }
.modal__box p { margin: 10px 0 24px; color: var(--soft); }

/* ---------- Pip ---------- */
.pip { display: block; width: 100%; height: 100%; overflow: visible; }
.pip .pip-shadow { fill: #000; opacity: 0.4; transform-box: fill-box; transform-origin: center; animation: pip-shadow 3.2s ease-in-out infinite; }
.pip .pip-bob { animation: pip-bob 3.2s ease-in-out infinite; }
.pip .pip-thrust { transform-box: fill-box; transform-origin: center; animation: pip-thrust 0.9s ease-in-out infinite alternate; }
.pip .pip-legs { display: none; }
.pip .pip-legs path { fill: none; stroke: #9fb0c0; stroke-width: 6; stroke-linecap: round; }
.pip .pip-legs rect { fill: #e9eff4; }
.pip .pip-antenna { stroke: #9fb0c0; stroke-width: 4; stroke-linecap: round; }
.pip .pip-beacon { fill: var(--coral); }
.pip .pip-ping { fill: none; stroke: var(--coral); stroke-width: 2; }
.pip .pip-rim { fill: none; stroke: var(--lime); stroke-width: 3; stroke-linecap: round; opacity: 0.75; }
.pip .pip-seam { fill: none; stroke: #7a8fa3; stroke-width: 1.5; opacity: 0.45; }
.pip .pip-spec { fill: #fff; opacity: 0.9; }
.pip .pip-visor-gloss { fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; opacity: 0.14; }
.pip .pip-eyes-open rect { fill: var(--lime); }
.pip .pip-eyes-happy path { fill: none; stroke: var(--lime); stroke-width: 5; stroke-linecap: round; }
.pip .pip-eyes { transition: transform 0.2s ease-out; }
.pip .pip-beam { stroke: var(--lime-pale); stroke-width: 2.5; stroke-linecap: round; }
.pip .pip-beam-glow { stroke: var(--lime); stroke-width: 9; stroke-linecap: round; opacity: 0.35; }
.pip .pip-beam-dot { fill: var(--lime); }
.pip .pip-wrench { stroke: #d5dee6; stroke-width: 8; stroke-linecap: round; }
.pip .pip-wrench-jaw { fill: none; stroke: #d5dee6; stroke-width: 8; stroke-linecap: round; }
.pip .pip-cheek { fill: var(--coral); opacity: 0.32; }
.pip .pip-plane { stroke: #7a8fa3; stroke-width: 1.5; stroke-linejoin: round; }
.pip .pip-plane-fold { fill: none; stroke: var(--lime); stroke-width: 2; }
.pip .pip-hand-left, .pip .pip-hand-idle { animation: pip-hand 3.2s ease-in-out infinite; }
.pip .pip-hand-idle { animation-delay: -1.6s; }

.pip .pip-eyes-happy, .pip .pip-hand-wave, .pip .pip-hand-point, .pip .pip-hand-tool, .pip .pip-hand-send { display: none; }
.pip[data-pose="wave"] .pip-hand-wave, .pip[data-pose="point"] .pip-hand-point,
.pip[data-pose="tool"] .pip-hand-tool, .pip[data-pose="send"] .pip-hand-send { display: inline; }
.pip[data-pose="wave"] .pip-hand-idle, .pip[data-pose="point"] .pip-hand-idle,
.pip[data-pose="tool"] .pip-hand-idle, .pip[data-pose="send"] .pip-hand-idle { display: none; }
.pip[data-pose="wave"] .pip-eyes-open, .pip[data-pose="send"] .pip-eyes-open { display: none; }
.pip[data-pose="wave"] .pip-eyes-happy, .pip[data-pose="send"] .pip-eyes-happy { display: inline; }
.pip[data-pose="sit"] .pip-legs { display: inline; }
.pip[data-pose="sit"] .pip-thrust { display: none; }
.pip[data-pose="sit"] .pip-bob, .pip[data-pose="sit"] .pip-shadow { animation: none; }
@keyframes pip-shadow { 50% { transform: scale(0.82); opacity: 0.28; } }
@keyframes pip-thrust { to { transform: scale(1.15, 0.85); opacity: 0.7; } }
@keyframes pip-hand { 50% { transform: translateY(-4px); } }

/* Where Pip stands. Each stop holds a still Pip. On wide screens with JS,
   the still copies hide and one Pip travels: from Bridgetown on the hero map
   to a dock in the corner, and from there onto the contact card. */
.pip-stop { position: absolute; z-index: 3; pointer-events: none; }
.pip-stop--hero { left: 0; top: 0; width: 176px; height: 176px; opacity: 0; transition: opacity 0.8s var(--ease); }
.is-drawn .pip-stop--hero { opacity: 1; }
.pip-bubble { position: absolute; left: 62%; bottom: 96%; white-space: nowrap; padding: 10px 14px; border-radius: 16px 16px 16px 4px; background: var(--text); color: var(--sea-0); font-size: 14px; font-weight: 600; box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.6); }
.pip-bubble--hero { opacity: 0; }
.is-drawn .pip-bubble--hero { animation: bubble-in 0.6s var(--ease) 0.5s both; }
/* Pip sits on the top edge of the first project card. */
.pip-stop--work { right: 32px; bottom: -116px; width: 150px; height: 150px; z-index: 5; }
.pip-stop--services { left: 6%; bottom: 8%; width: 150px; height: 150px; }
.pip-stop--about { right: 0; top: -150px; width: 150px; height: 150px; }
.pip-stop--contact { position: relative; margin-top: 40px; width: 200px; height: 200px; }

.pip-travel .pip-stop > .pip, .pip-travel .pip-stop > .pip-bubble { visibility: hidden; }
.pip-traveler { position: fixed; left: 0; top: 0; z-index: 45; will-change: transform; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.pip-traveler__body { width: 100%; height: 100%; }
.pip-traveler .pip { transition: transform 0.45s var(--ease); }
.pip-traveler[data-facing="left"] .pip { transform: scaleX(-1); }
.pip-traveler.is-hopping .pip-traveler__body { animation: hop 0.6s var(--ease); }
.pip-traveler__bubble {
  position: absolute; right: 88%; bottom: 78%; width: max-content; max-width: 240px; padding: 10px 14px;
  border-radius: 16px 16px 4px 16px; background: var(--text); color: var(--sea-0); font-size: 14px; line-height: 1.35; font-weight: 600;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.6); pointer-events: none;
  opacity: 0; transform: translateY(8px) scale(0.92); transform-origin: 100% 100%; transition: opacity 0.3s, transform 0.4s var(--ease);
}
.pip-traveler.is-talking .pip-traveler__bubble { opacity: 1; transform: none; }
.pip-traveler:hover .pip .pip-eyes-open { display: none; }
.pip-traveler:hover .pip .pip-eyes-happy { display: inline; }
.pip.is-launching .pip-plane, .pip.is-launching .pip-plane-fold { transform-box: fill-box; transform-origin: center; animation: plane-launch 0.75s var(--ease-io) forwards; }
@keyframes plane-launch { 30% { transform: translate(-6px, 6px) rotate(6deg); } 100% { transform: translate(180px, -240px) rotate(-12deg) scale(0.7); opacity: 0; } }
.pip-traveler[data-side="right"] .pip-traveler__bubble { right: auto; left: 66%; bottom: 92%; border-radius: 16px 16px 16px 4px; transform-origin: 0 100%; }
.pip-traveler { animation: appear 0.8s var(--ease) 0.6s both; }
@keyframes appear { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Route line: one stop per section ---------- */
.route-nav { display: none; }
@media (min-width: 1101px) {
  .route-nav { display: block; position: fixed; left: 20px; top: 50%; z-index: 40; width: 24px; height: min(44vh, 400px); transform: translateY(-50%); }
  body:has(.route-nav) .site-nav__progress { display: none; }
}
.route-nav__track { position: absolute; left: 11px; top: 0; bottom: 0; width: 2px; border-radius: 2px; background: var(--line-2); overflow: hidden; }
.route-nav__fill { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(200, 245, 96, 0.35), var(--lime)); transform-origin: 50% 0; transform: scaleY(var(--route, 0)); }
.route-nav__bus { position: absolute; left: 12px; top: calc(var(--route, 0) * 100%); width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 3px rgba(200, 245, 96, 0.35), 0 0 16px 2px rgba(200, 245, 96, 0.8); }
.route-nav__stop { position: absolute; left: 0; top: calc(var(--at, 0) * 100%); width: 24px; height: 24px; margin-top: -12px; display: grid; place-items: center; border-radius: 50%; }
.route-nav__stop::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--sea-0); border: 2px solid var(--line-3); transition: background 0.3s, border-color 0.3s, transform 0.3s var(--ease); }
.route-nav__stop.is-passed::before { border-color: var(--lime); }
.route-nav__stop.is-current::before { background: var(--lime); border-color: var(--lime); transform: scale(1.3); }
.route-nav__stop span { position: absolute; left: 30px; top: 50%; padding: 4px 10px; border-radius: 999px; background: var(--text); color: var(--sea-0); font-size: 13px; font-weight: 650; white-space: nowrap; pointer-events: none; opacity: 0; transform: translate(-6px, -50%); transition: opacity 0.25s, transform 0.3s var(--ease); }
.route-nav__stop:hover span, .route-nav__stop:focus-visible span { opacity: 1; transform: translate(0, -50%); }

/* ---------- Project page ---------- */
.project-hero { padding-top: 160px; padding-bottom: 64px; }
.back-link { display: inline-flex; align-items: center; gap: 8px; color: var(--soft); font-size: 15px; margin-bottom: 56px; }
.back-link:hover { color: var(--text); }
.project-hero__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; align-items: end; }
.project-hero__label { font-size: 16px; font-weight: 600; color: var(--accent); }
.project-hero__title { margin-top: 16px; font-size: clamp(60px, 9vw, 144px); line-height: 0.9; font-weight: 800; letter-spacing: -0.05em; }
.project-hero__lead { font-size: 21px; line-height: 1.55; color: var(--soft); }
.project-hero__links { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }
.showcase {
  position: relative; height: min(80svh, 780px); border-radius: 40px; overflow: hidden;
  background: radial-gradient(120% 90% at 100% 0%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 60%), color-mix(in srgb, var(--accent) 6%, var(--sea-1));
  border: 1px solid color-mix(in srgb, var(--accent) 20%, var(--line));
}
.devices--stage.devices--pair .device--browser { left: 8%; top: 14%; width: 70%; }
.devices--stage.devices--pair .device--phone { right: 12%; bottom: 8%; width: 20%; }
.devices--stage.devices--solo-browser .device--browser { left: 10%; top: 12%; width: 80%; }
.devices--stage.devices--solo-phone .device--phone { width: 24%; }
.showcase--image { height: auto; background: var(--sea-1); }
.showcase--image img { width: 100%; height: auto; }

.project-body { margin-top: 128px; display: grid; grid-template-columns: 260px minmax(0, 720px); gap: 96px; justify-content: center; }
.project-body__side { position: sticky; top: 104px; align-self: start; display: flex; flex-direction: column; gap: 48px; }
.project-body__heading { font-size: 14px; font-weight: 650; color: var(--mute); margin-bottom: 16px; }
.chips { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { padding: 5px 12px; border-radius: 999px; font-size: 14px; color: var(--soft); background: rgba(236, 242, 245, 0.05); border: 1px solid rgba(236, 242, 245, 0.08); }
.toc ol { margin: 0; padding: 0; list-style: none; border-left: 1px solid var(--line-2); }
.toc a { display: block; padding: 7px 0 7px 18px; margin-left: -1px; border-left: 2px solid transparent; font-size: 15px; color: var(--mute); transition: color 0.25s, border-color 0.25s; }
.toc a:hover { color: var(--text); }
.toc a.is-current { color: var(--text); border-left-color: var(--accent); }
.prose { font-size: 19px; line-height: 1.75; color: var(--soft); }
.prose > :first-child { margin-top: 0; font-size: 24px; line-height: 1.55; color: var(--text); }
.prose h2, .prose h3 { color: var(--text); font-weight: 750; letter-spacing: -0.025em; margin: 2em 0 0.6em; line-height: 1.15; scroll-margin-top: 100px; }
.prose h2 { font-size: 36px; }
.prose h3 { font-size: 30px; }
.prose p, .prose ul, .prose ol { margin: 0 0 1.1em; }
.prose ul { padding-left: 0; list-style: none; }
.prose ul li { position: relative; padding-left: 26px; margin-bottom: 0.4em; }
.prose ul li::before { content: ""; position: absolute; left: 4px; top: 0.72em; width: 8px; height: 8px; border-radius: 2px; background: var(--accent); transform: rotate(45deg); }
.prose strong { color: var(--text); font-weight: 650; }
.prose a { color: var(--text); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; }
.prose code { font-family: var(--mono); font-size: 0.85em; background: var(--sea-1); border: 1px solid var(--line); border-radius: 6px; padding: 2px 6px; }
.prose img { border-radius: 16px; }
.gallery { margin-top: 128px; }
.gallery__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.gallery__grid figure { border-radius: 20px; overflow: hidden; border: 1px solid var(--line); background: var(--sea-1); }
.gallery__grid img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }

.next-project {
  position: relative; margin-top: 160px; display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); min-height: 440px; overflow: hidden;
  border-radius: 40px; color: var(--text);
  background: radial-gradient(100% 120% at 100% 100%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 60%), color-mix(in srgb, var(--accent) 6%, var(--sea-1));
  border: 1px solid color-mix(in srgb, var(--accent) 22%, var(--line));
}
.next-project:hover { color: var(--text); }
.next-project__text { padding: 64px; display: flex; flex-direction: column; justify-content: center; }
.next-project__label { font-size: 16px; font-weight: 600; color: var(--accent); }
.next-project__title { margin-top: 16px; font-size: clamp(52px, 6.6vw, 104px); line-height: 0.92; font-weight: 800; letter-spacing: -0.05em; transition: transform 0.5s var(--ease); }
.next-project:hover .next-project__title { transform: translateX(10px); }
.next-project__desc { margin-top: 20px; max-width: 28em; font-size: 18px; line-height: 1.55; color: var(--soft); }
.next-project__art { position: relative; }
.next-project__shot { position: absolute; left: 6%; top: 18%; width: 120%; max-width: none; border-radius: 14px; border: 1px solid #28415a; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.9); transform: rotate(-4deg); transition: transform 0.6s var(--ease); }
.next-project__shot--phone { left: 30%; top: 12%; width: 34%; border-radius: 28px; }
.next-project:hover .next-project__shot { transform: rotate(-2deg) translateY(-12px); }
.next-project__island { position: absolute; right: 10%; top: 10%; height: 80%; width: auto; }
.next-project__island path { fill: color-mix(in srgb, var(--accent) 10%, var(--sea-2)); stroke: var(--accent); stroke-width: 1.2; }
.project-next { margin-top: 160px; text-align: center; }
.project-next h2 { font-size: clamp(40px, 5vw, 72px); font-weight: 800; letter-spacing: -0.045em; line-height: 1; }
.project-next__ctas { margin-top: 36px; display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }

/* ---------- Small laptops and tablets: the island takes less room ---------- */
@media (max-width: 1180px) and (min-width: 901px) {
  .hero__copy { max-width: 50vw; }
  .hero__title { font-size: 8.4vw; }
  .hero__lead { font-size: 18px; }
  .pip-stop--hero { width: 136px; height: 136px; }
  .hero__legend { gap: 14px; }
}

/* ---------- Tablet ---------- */
@media (max-width: 1100px) {
  :root { --gutter: 40px; }
  .site-nav__links { gap: 0; }
  .work-card { --card-h: auto; position: relative; top: auto; height: auto; margin-bottom: 32px; transform: none; }
  .work-card__inner { grid-template-columns: 1fr; gap: 0; }
  .work-card__inner::after { display: none; }
  .work-card__art { order: -1; height: 460px; }
  .work-card__body { padding: 8px 40px 44px; }
  .services__grid { grid-template-columns: 1fr; gap: 0; }
  .services__visual { position: relative; top: auto; height: 520px; }
  .services__intro { padding-top: 0; order: -1; }
  .services__copy { display: flex; flex-direction: column; }
  .layers { padding-top: 32px; }
  .layer { padding-block: 40px; opacity: 1; }
  .about__row { grid-template-columns: 1fr; }
  .contact { grid-template-columns: 1fr; padding: 56px; gap: 40px; }
  .pip-stop--contact { position: absolute; right: 40px; top: 40px; width: 150px; height: 150px; margin: 0; }
  .project-hero__grid { grid-template-columns: 1fr; }
  .project-body { grid-template-columns: 1fr; gap: 48px; }
  .project-body__side { position: relative; top: auto; }
  .toc { display: none; }
  .next-project { grid-template-columns: 1fr; }
  .next-project__art { height: 320px; }
}

/* ---------- Narrow screens: the island sits below the text ---------- */
@media (max-width: 900px) {
  .hero { min-height: 0; }
  .hero__map { position: relative; inset: auto; z-index: 0; order: 2; height: min(116vw, 860px); margin-top: -8px; }
  .hero__inner { order: 1; flex: none; }
  .hero__foot { order: 3; }
}

/* ---------- Phone ---------- */
@media (max-width: 720px) {
  :root { --gutter: 20px; --nav-h: 64px; --radius: 24px; }
  body.site { font-size: 16px; }
  .site-nav.is-solid { height: 58px; }
  .site-nav__links { display: none; }
  .wordmark { font-size: 28px; }
  .btn { height: 52px; padding: 0 22px; font-size: 16px; }
  .btn--sm { height: 42px; padding: 0 16px; font-size: 14px; }

  .hero__map::after { height: 96px; }
  .hero__copy { padding-block: 32px 24px; }
  .hero__title { margin-top: 24px; font-size: clamp(52px, 16.4vw, 76px); }
  .hero__lead { margin-top: 24px; font-size: 17px; }
  .hero__ctas { margin-top: 28px; }
  .hero__ctas .btn { flex: 1 1 auto; }
  .hero__foot { flex-direction: column; align-items: flex-start; gap: 10px; padding-bottom: 24px; }
  .hero__caption { font-size: 14px; }
  .hero__legend { flex-wrap: wrap; gap: 10px 16px; font-size: 13px; }
  .hero__clock { margin-left: 0; padding-left: 0; border-left: 0; width: 100%; }
  .town { font-size: 14px; }
  .town--capital { font-size: 16px; }
  .pip-stop--hero { width: 110px; height: 110px; }
  .pip-bubble { display: none; }

  .work { padding-top: 120px; }
  .work__head { flex-direction: column; align-items: flex-start; gap: 20px; }
  .section-aside { font-size: 17px; }
  .work__deck { margin-top: 88px; }
  .work-card { margin-bottom: 20px; }
  .work-card__art { height: 300px; }
  .work-card__body { padding: 4px 24px 28px; }
  .work-card__title { margin-top: 12px; font-size: 44px; }
  .work-card__desc { margin-top: 14px; font-size: 16px; }
  .work-card__tech { margin-top: 18px; }
  .work-card__tech li { font-size: 13px; }
  .work-card__actions { padding-top: 24px; gap: 18px; }
  .work-card__cta { height: 46px; padding: 0 20px; font-size: 15px; }
  .devices { transform: perspective(1400px) rotateX(calc(5deg + (1 - var(--enter)) * 14deg)) rotateY(-12deg) translateY(calc((1 - var(--enter)) * 40px)); }
  .devices--pair .device--browser { left: 4%; top: 12%; width: 84%; }
  .devices--pair .device--phone { right: 6%; bottom: 6%; width: 30%; }
  .devices--solo-phone .device--phone { width: 42%; }
  .device--phone { border-radius: 26px; padding: 5px; }
  .device--phone img { border-radius: 21px; }
  .device__bar { height: 22px; }
  .device__bar span { width: 7px; height: 7px; }
  .device__bar em { font-size: 9px; padding: 2px 8px; }
  .pip-stop--work { right: 16px; bottom: -100px; width: 96px; height: 96px; }

  .services { padding-top: 120px; }
  .services__visual { height: 360px; margin-top: 24px; }
  .pip-stop--services { width: 96px; height: 96px; left: 0; bottom: 0; }
  .layer { padding-block: 32px; }
  .layer p { font-size: 17px; }
  .mvp { margin-top: 32px; padding: 26px; }

  .about { padding-top: 140px; }
  .about__row { margin-top: 56px; gap: 32px; }
  .facts { grid-template-columns: 1fr; gap: 24px; }
  .pip-stop--about { top: -110px; width: 100px; height: 100px; }

  .contact-section { padding-top: 140px; }
  .contact { padding: 32px 22px; border-radius: 28px; }
  .contact__lead { font-size: 17px; }
  .contact__form { grid-template-columns: 1fr; }
  .field--full { grid-column: auto; }
  .pip-stop--contact { position: relative; right: auto; top: auto; margin-top: 20px; width: 110px; height: 110px; }

  .site-footer { margin-top: 112px; }
  .site-footer__top { flex-direction: column; align-items: flex-start; }

  .project-hero { padding-top: 112px; padding-bottom: 40px; }
  .back-link { margin-bottom: 32px; }
  .project-hero__title { font-size: clamp(48px, 14vw, 72px); }
  .project-hero__lead { font-size: 18px; }
  .showcase { height: 420px; border-radius: 26px; }
  .devices--stage.devices--pair .device--browser { left: 5%; top: 14%; width: 86%; }
  .devices--stage.devices--pair .device--phone { right: 5%; width: 30%; }
  .devices--stage.devices--solo-phone .device--phone { width: 44%; }
  .project-body { margin-top: 72px; }
  .prose { font-size: 17px; }
  .prose > :first-child { font-size: 20px; }
  .prose h3 { font-size: 25px; }
  .gallery__grid { grid-template-columns: 1fr; }
  .next-project { margin-top: 112px; border-radius: 28px; min-height: 0; }
  .next-project__text { padding: 32px 24px; }
  .next-project__art { height: 240px; }
  .project-next { margin-top: 112px; }
}

/* Reduced motion: calmer, not frozen. The owner's Mac runs with Reduce
   Motion on, and the page is meant to move. The big scroll-driven moves
   stay but travel less; smooth scrolling and pointer tilt go. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .devices { --tx: 0 !important; --ty: 0 !important; }
  .btn:hover { transform: none; }
}

/* ---------- Content pages: client portal, invoice, blog, tools ----------
   Same sea-blue base, lime for what is live or actionable, the same type.
   Tones: lime is good or done, sky is informative, amber needs attention,
   coral is late or wrong. */
body.site { --accent: var(--lime); --amber: #f5c451; }
[hidden] { display: none !important; }

.wrap--page { max-width: calc(980px + 2 * var(--gutter)); }
.wrap--read { max-width: calc(760px + 2 * var(--gutter)); }

.pg-hero { padding: calc(var(--nav-h) + 72px) 0 40px; }
.pg-eyebrow { display: flex; align-items: center; gap: 12px; font-size: 16px; font-weight: 600; color: var(--accent); }
.pg-eyebrow::before { content: ""; width: 28px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, rgba(200, 245, 96, 0.2), var(--lime)); flex: none; }
.pg-title { margin-top: 20px; font-size: clamp(44px, 6.6vw, 104px); line-height: 0.94; font-weight: 800; letter-spacing: -0.045em; font-variation-settings: "wdth" 96; overflow-wrap: anywhere; }
.pg-title--sm { font-size: clamp(38px, 5.2vw, 80px); }
.pg-lead { margin-top: 22px; max-width: 34em; font-size: 20px; line-height: 1.55; color: var(--soft); }
.pg-meta { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; color: var(--mute); font-size: 16px; }
.pg-body { display: flex; flex-direction: column; gap: 24px; }
.pg-end { height: 24px; }

/* Panels hold one topic each, like a work card on the homepage. */
.panel { position: relative; padding: 36px; border-radius: 28px; background: var(--sea-1); border: 1px solid var(--line-2); }
.panel::before { content: ""; position: absolute; inset: 0 10% auto 10%; height: 1px; background: linear-gradient(90deg, transparent, rgba(200, 245, 96, 0.45), transparent); }
.panel__head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 6px 20px; margin-bottom: 26px; }
.panel__title { font-size: clamp(26px, 2.6vw, 36px); line-height: 1.05; font-weight: 750; letter-spacing: -0.03em; }
.panel__note { font-size: 14px; color: var(--mute); }
.panel__sub { margin: 32px 0 14px; font-size: 14px; font-weight: 650; color: var(--mute); }
.panel__sub:first-child { margin-top: 0; }
.panel--accent { background: radial-gradient(120% 90% at 100% 0%, rgba(200, 245, 96, 0.08), transparent 60%), var(--sea-1); }

.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.stat { min-width: 0; padding: 22px; border-radius: 20px; background: var(--sea-2); border: 1px solid var(--line); }
.stat__label { font-size: 13px; font-weight: 650; color: var(--mute); }
.stat__value { margin-top: 8px; font-size: clamp(24px, 2.4vw, 32px); line-height: 1.1; font-weight: 750; letter-spacing: -0.03em; }
.stat__value--sm { font-size: 20px; letter-spacing: -0.02em; }
.stat__sub { margin-top: 6px; font-size: 14px; line-height: 1.45; color: var(--mute); }
.is-ok { color: var(--lime); }
.is-warn { color: var(--amber); }
.is-late { color: var(--coral); }
.meter { height: 8px; margin-top: 16px; border-radius: 999px; background: var(--line); overflow: hidden; }
.meter > span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, rgba(200, 245, 96, 0.5), var(--lime)); box-shadow: 0 0 14px rgba(200, 245, 96, 0.5); }
.meter-label { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 15px; color: var(--mute); }
.meter-label strong { font-size: 22px; font-weight: 750; letter-spacing: -0.02em; color: var(--text); }

.tag { --c: var(--soft); display: inline-flex; align-items: center; gap: 7px; padding: 4px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; line-height: 1.5; white-space: nowrap; color: var(--c); background: color-mix(in srgb, var(--c) 12%, transparent); border: 1px solid color-mix(in srgb, var(--c) 26%, transparent); }
.tag--ok { --c: var(--lime); }
.tag--info { --c: var(--sky); }
.tag--warn { --c: var(--amber); }
.tag--late { --c: var(--coral); }
.tag--mute { --c: var(--mute); }
.tag--dot::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; }

.alert { --c: var(--amber); padding: 22px 24px; border-radius: 20px; color: var(--soft); background: color-mix(in srgb, var(--c) 8%, var(--sea-1)); border: 1px solid color-mix(in srgb, var(--c) 32%, var(--line)); }
.alert__title { font-size: 17px; font-weight: 700; color: var(--c); }
.alert p { margin-top: 6px; font-size: 15px; line-height: 1.55; }
.alert p + p { font-size: 14px; color: var(--mute); }

.rows { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; list-style: none; }
.row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 20px; border-radius: 18px; background: var(--sea-2); border: 1px solid var(--line); color: var(--text); transition: border-color 0.25s, transform 0.35s var(--ease), background 0.25s; }
a.row:hover { color: var(--text); border-color: var(--lime); background: #12263a; transform: translateX(4px); }
.row__main { min-width: 0; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.row__title { font-weight: 650; overflow-wrap: anywhere; }
.row__sub { margin-top: 2px; font-size: 14px; color: var(--mute); }
.row__side { flex: none; display: flex; align-items: center; gap: 14px; text-align: right; font-size: 14px; color: var(--soft); }
.row__arrow { color: var(--mute); transition: color 0.25s, transform 0.35s var(--ease); }
a.row:hover .row__arrow { color: var(--lime); transform: translateX(3px); }
.link { color: var(--lime); font-size: 15px; font-weight: 600; }

.phase { padding: 24px; border-radius: 22px; background: var(--sea-2); border: 1px solid var(--line); }
.phase__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; }
.phase__name { margin: 0; font-size: 22px; font-weight: 750; letter-spacing: -0.02em; }
.phase__list { display: flex; flex-direction: column; gap: 12px; }
.kv { margin: 22px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 28px; }
.kv dt { font-size: 12px; font-weight: 650; letter-spacing: 0.05em; text-transform: uppercase; color: var(--mute); }
.kv dd { margin: 6px 0 0; font-size: 18px; font-weight: 550; line-height: 1.35; }
.kv dd small { display: block; margin-top: 2px; font-size: 13px; font-weight: 400; color: var(--mute); }
.kv .shift { margin-left: 6px; font-size: 14px; font-weight: 600; color: var(--amber); }
.phase__foot { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 14px; line-height: 1.55; color: var(--mute); }
.phase__foot + .phase__foot { margin-top: 10px; padding-top: 0; border-top: 0; }
.phase__foot--plain { margin-top: 12px; padding-top: 0; border-top: 0; }

.steps { display: flex; align-items: center; gap: 0; margin: 0; padding: 0 0 6px; list-style: none; overflow-x: auto; }
.step { display: flex; align-items: center; flex: none; gap: 10px; font-size: 14px; color: var(--mute); text-transform: capitalize; white-space: nowrap; }
.step + .step::before { content: ""; width: 34px; height: 2px; margin-right: 10px; border-radius: 2px; background: var(--line-2); }
.step__dot { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; border: 2px solid var(--line-3); background: var(--sea-0); color: var(--sea-0); }
.step__dot svg { width: 14px; height: 14px; }
.step.is-done { color: var(--soft); }
.step.is-done .step__dot { background: var(--lime); border-color: var(--lime); }
.step.is-active { color: var(--text); font-weight: 600; }
.step.is-active .step__dot { border-color: var(--lime); }
.step.is-active .step__dot::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 10px var(--lime); }
.step.is-skipped { opacity: 0.55; }

.feed { margin: 26px 0 0; padding: 0 0 0 28px; list-style: none; border-left: 2px solid var(--line-2); }
.feed li { position: relative; padding-bottom: 26px; }
.feed li:last-child { padding-bottom: 0; }
.feed li::before { content: ""; position: absolute; left: -35px; top: 8px; width: 12px; height: 12px; border-radius: 4px; background: var(--lime); transform: rotate(45deg); box-shadow: 0 0 12px rgba(200, 245, 96, 0.5); }
.feed__title { font-weight: 650; }
.feed__date { margin-left: 10px; font-size: 13px; color: var(--mute); }
.feed__text { margin-top: 4px; font-size: 15px; line-height: 1.55; color: var(--soft); }

.quote { padding: 20px 22px; border-radius: 18px; background: var(--sea-2); border: 1px solid var(--line); }
.quote__who { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px; font-size: 14px; color: var(--mute); }
.quote__text { margin-top: 10px; font-size: 16px; line-height: 1.55; color: var(--soft); overflow-wrap: anywhere; }
.stack { display: flex; flex-direction: column; gap: 12px; }

/* Forms on a dark panel. The lime contact card on the homepage has its own. */
.form { display: grid; gap: 18px; }
.in { display: flex; flex-direction: column; gap: 8px; font-size: 14px; font-weight: 650; color: var(--soft); }
.in input, .in textarea, .in select { width: 100%; height: 54px; padding: 0 16px; border-radius: 14px; border: 1.5px solid var(--line-2); background: var(--sea-0); font: inherit; font-size: 16px; font-weight: 400; color: var(--text); appearance: none; transition: border-color 0.2s, box-shadow 0.2s; }
.in textarea { height: auto; min-height: 140px; padding: 14px 16px; line-height: 1.5; resize: vertical; }
.in input::placeholder { color: var(--mute); opacity: 0.7; }
.in input:focus, .in textarea:focus, .in select:focus { outline: none; border-color: var(--lime); box-shadow: 0 0 0 4px rgba(200, 245, 96, 0.12); }
.in select { padding-right: 44px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23b3c0cc' stroke-width='2'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; }
.in input[type="file"] { height: auto; padding: 10px; color: var(--soft); cursor: pointer; }
.in input[type="file"]::file-selector-button { margin-right: 14px; padding: 9px 18px; border: 0; border-radius: 999px; background: var(--line-2); color: var(--text); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.form__row { display: flex; align-items: end; gap: 14px; flex-wrap: wrap; }
.form__row .in { flex: 1 1 260px; }

/* ---------- Blog ---------- */
.posts { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.post { display: grid; grid-template-columns: 168px minmax(0, 1fr) auto; gap: 8px 32px; align-items: baseline; padding: 36px 0; border-bottom: 1px solid var(--line); color: var(--text); transition: padding 0.45s var(--ease); }
.post:hover { color: var(--text); padding-left: 14px; }
.post__date { font-family: var(--mono); font-size: 13px; color: var(--mute); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.post__title { font-size: clamp(26px, 3vw, 40px); line-height: 1.1; font-weight: 750; letter-spacing: -0.03em; transition: color 0.25s; }
.post:hover .post__title { color: var(--lime); }
.post__summary { margin-top: 10px; max-width: 36em; color: var(--soft); }
.post__arrow { align-self: center; color: var(--mute); transition: color 0.25s, transform 0.45s var(--ease); }
.post:hover .post__arrow { color: var(--lime); transform: translateX(6px); }
.empty { padding: 72px 0; text-align: center; color: var(--mute); }
.article-meta { margin-top: 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; font-family: var(--mono); font-size: 13px; color: var(--mute); }
.article { padding-bottom: 24px; }
.article__body { margin-top: 56px; }
.prose--post > :first-child { font-size: inherit; line-height: inherit; color: inherit; }
.prose pre { margin: 1.6em 0; padding: 20px 22px; overflow-x: auto; border-radius: 16px; background: var(--sea-1); border: 1px solid var(--line); font-size: 15px; line-height: 1.6; }
.prose pre code { padding: 0; border: 0; background: none; font-size: inherit; }
.prose blockquote { margin: 1.8em 0; padding-left: 22px; border-left: 3px solid var(--lime); color: var(--soft); font-family: var(--serif); font-style: italic; font-size: 1.3em; line-height: 1.4; }
.prose hr { margin: 2.6em 0; border: 0; border-top: 1px solid var(--line); }
.prose ol { padding-left: 1.4em; }
.prose ol li { margin-bottom: 0.4em; padding-left: 4px; }
.prose ol li::marker { color: var(--lime); font-weight: 650; }
.prose table { width: 100%; margin: 1.6em 0; border-collapse: collapse; font-size: 16px; }
.prose th, .prose td { padding: 10px 14px; border-bottom: 1px solid var(--line); text-align: left; }
.prose th { color: var(--text); font-weight: 650; }
.prose h2 { font-size: clamp(28px, 3vw, 36px); }
.prose h3 { font-size: clamp(23px, 2.4vw, 30px); }

/* ---------- Calculator ---------- */
.calc { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 24px; align-items: start; }
.calc__result { position: sticky; top: calc(var(--nav-h) + 24px); }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; padding: 4px; border-radius: 16px; background: var(--sea-0); border: 1.5px solid var(--line-2); }
.seg button { height: 46px; border: 0; border-radius: 12px; background: transparent; color: var(--soft); font: inherit; font-size: 15px; font-weight: 650; cursor: pointer; transition: background 0.25s, color 0.25s; }
.seg button:hover { color: var(--text); }
.seg button.is-active { background: var(--lime); color: var(--sea-0); }
.checklist { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; font-size: 15px; color: var(--soft); }
.checklist li { position: relative; padding-left: 24px; }
.checklist li::before { content: ""; position: absolute; left: 3px; top: 0.6em; width: 8px; height: 8px; border-radius: 2px; background: var(--lime); transform: rotate(45deg); }
.ledger { margin: 0; display: grid; gap: 0; }
.ledger__row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--soft); }
.ledger__row dd { margin: 0; color: var(--text); font-variant-numeric: tabular-nums; text-align: right; }
.ledger__row--sum { border-bottom: 0; color: var(--text); font-weight: 650; }
.ledger__total { margin-top: 14px; padding: 22px; border-radius: 20px; background: var(--lime); color: var(--sea-0); }
.ledger__total span { display: block; font-size: 14px; font-weight: 650; }
.ledger__total strong { display: block; margin-top: 4px; font-size: clamp(28px, 3.4vw, 42px); line-height: 1.05; font-weight: 800; letter-spacing: -0.035em; font-variant-numeric: tabular-nums; }
.fine { font-size: 14px; line-height: 1.55; color: var(--mute); }

/* ---------- Invoice ----------
   The invoice itself is a plain white document in black and grey, like a
   printed one. The page around it keeps the site's dark look. */
.inv-page { padding: calc(var(--nav-h) + 40px) 0 0; }
.inv { max-width: 860px; margin: 0 auto; }
.inv-bar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; margin-bottom: 28px; }
.inv-bar__id strong { display: block; font-size: 24px; font-weight: 750; letter-spacing: -0.02em; }
.inv-bar__id span { font-size: 15px; color: var(--mute); }
.inv-bar__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.inv-help { margin-top: 28px; text-align: center; font-size: 15px; color: var(--mute); }

.doc { --ink: #14181c; --ink-2: #4a545e; --ink-3: #78828c; --rule: #dfe3e7; padding: 56px; border-radius: 6px; background: #fff; color: var(--ink); font-size: 15px; line-height: 1.5; box-shadow: 0 50px 120px -40px rgba(0, 0, 0, 0.9); }
.doc a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.doc__head { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 24px; padding-bottom: 28px; border-bottom: 2px solid var(--ink); }
.doc__brand { font-size: 20px; font-weight: 700; letter-spacing: -0.01em; }
.doc__from { margin-top: 6px; color: var(--ink-2); font-size: 14px; line-height: 1.6; }
.doc__title { text-align: right; }
.doc__title h1 { font-size: 34px; line-height: 1; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.doc__status { display: inline-block; margin-top: 12px; padding: 3px 12px; border: 1.5px solid var(--ink); border-radius: 3px; font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.doc__status--overdue { color: #a61b1b; border-color: #a61b1b; }
.doc__meta { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; padding: 28px 0; }
.doc__label { margin-bottom: 8px; font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }
.doc__client { font-size: 18px; font-weight: 650; line-height: 1.3; }
.doc__client-line { margin-top: 2px; color: var(--ink-2); }
.doc__client-addr { margin-top: 6px; color: var(--ink-2); font-size: 14px; white-space: pre-line; }
.doc__facts { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 24px; }
.doc__facts dt { color: var(--ink-3); }
.doc__facts dd { margin: 0; text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.doc__scroll { overflow-x: auto; }
.doc__table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.doc__table th { padding: 10px 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-2); text-align: right; white-space: nowrap; }
.doc__table th:first-child, .doc__table td:first-child { text-align: left; }
.doc__table td { padding: 14px 0; border-bottom: 1px solid var(--rule); text-align: right; vertical-align: top; }
.doc__table th + th, .doc__table td + td { padding-left: 20px; }
.doc__table td:first-child { font-weight: 600; width: 100%; }
.doc__totals { width: min(100%, 340px); margin: 24px 0 0 auto; font-variant-numeric: tabular-nums; }
.doc__row { display: flex; justify-content: space-between; gap: 16px; padding: 5px 0; color: var(--ink-2); }
.doc__row--off { color: var(--ink); }
.doc__final { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-top: 8px; padding-top: 12px; border-top: 2px solid var(--ink); }
.doc__final span { font-size: 14px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.doc__final strong { font-size: 28px; line-height: 1.1; font-weight: 700; letter-spacing: -0.02em; }
.doc__paid { margin-top: 8px; text-align: right; color: var(--ink-2); font-size: 14px; }
.doc__notes { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--rule); }
.doc__notes p { color: var(--ink-2); white-space: pre-line; }
.doc__pay { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; margin-top: 32px; padding: 22px 24px; border: 1px solid var(--rule); border-radius: 4px; }
.doc__bank { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 24px; }
.doc__bank dt { font-size: 12px; color: var(--ink-3); }
.doc__bank dd { margin: 1px 0 0; font-weight: 600; }
.doc__qr { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; padding-left: 32px; border-left: 1px solid var(--rule); text-align: center; font-size: 12px; color: var(--ink-3); }
.doc__qr img { width: 120px; height: 120px; }
.doc__qr strong { margin-top: 4px; font-size: 14px; color: var(--ink); }
.doc__foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px 24px; margin-top: 40px; padding-top: 18px; border-top: 1px solid var(--rule); color: var(--ink-3); font-size: 13px; }

@media (max-width: 1100px) {
  .calc { grid-template-columns: 1fr; }
  .calc__result { position: static; }
}
@media (max-width: 860px) {
  .stats { grid-template-columns: 1fr; }
  .post { grid-template-columns: minmax(0, 1fr) auto; }
  .post__date { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .pg-hero { padding: calc(var(--nav-h) + 40px) 0 28px; }
  .pg-lead { font-size: 18px; }
  .panel { padding: 24px 20px; border-radius: 24px; }
  .row { flex-direction: column; align-items: flex-start; gap: 6px; padding: 14px 16px; }
  .row__side { text-align: left; }
  .row__side .row__arrow { display: none; }
  .phase { padding: 20px 18px; }
  .kv { gap: 18px 16px; }
  .kv dd { font-size: 16px; }
  .alert { padding: 18px 18px; }
  .post { padding: 28px 0; }
  .inv-page { padding-top: calc(var(--nav-h) + 24px); }
  .doc { padding: 28px 20px; }
  .doc__title { text-align: left; }
  .doc__title h1 { font-size: 28px; }
  .doc__meta { grid-template-columns: 1fr; gap: 24px; }
  .doc__table td + td, .doc__table th + th { padding-left: 12px; }
  .doc__table td:first-child { min-width: 130px; }
  .doc__pay { grid-template-columns: 1fr; padding: 18px; }
  .doc__qr { padding: 18px 0 0; border-left: 0; border-top: 1px solid var(--rule); }
}

/* A printed invoice is a plain page: no site chrome, no dark background. */
@media print {
  .site-nav, .site-footer, .no-print, .inv-help { display: none !important; }
  body.site { background: #fff; color: #000; }
  body.site::before { display: none; }
  .inv-page { padding: 0; }
  .wrap { padding: 0; max-width: none; }
  .inv { max-width: none; }
  .doc { padding: 0; border-radius: 0; box-shadow: none; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
.capitalize { text-transform: capitalize; }
body.site main#main { min-height: 72svh; }
.doc__table td + td { white-space: nowrap; }

/* A phase folds away once it is done and paid. */
details.phase > summary { list-style: none; cursor: pointer; }
details.phase > summary::-webkit-details-marker { display: none; }
.phase__right { display: flex; align-items: center; gap: 12px; }
.phase__chev { color: var(--mute); transition: transform 0.35s var(--ease), color 0.25s; }
details.phase[open] .phase__chev { transform: rotate(180deg); }
details.phase > summary:hover .phase__chev { color: var(--lime); }
.phase__hint { display: none; margin: 2px 0 0; font-size: 14px; color: var(--mute); }
details.phase:not([open]) .phase__hint:not(:empty) { display: block; }
.phase--done { background: transparent; }
.phase--done[open] { background: var(--sea-2); }
.row__title .link { text-decoration: underline; text-decoration-color: rgba(200, 245, 96, 0.4); text-underline-offset: 3px; }
.phase__foot .link, .alert .link { text-decoration: underline; text-underline-offset: 3px; }
