/* Metro Studio — shared styles
   One file, no build step. Colours are tokens on :root; each app page sets its own accent. */

:root {
  --bg: #fbfbfa;
  --bg-alt: #f2f2f0;
  --card: #ffffff;
  --ink: #0b0b0c;
  --ink-2: #3c3c40;
  --muted: #6e6e73;
  --line: rgba(0, 0, 0, 0.08);
  --invert-bg: #0b0b0c;
  --invert-ink: #f5f5f7;
  --invert-muted: #a1a1a6;
  --accent: #0b0b0c;
  --accent-ink: #ffffff;

  /* App palettes, taken from each app's own design tokens */
  --er-teal: #0b383b;
  --er-deep: #06282d;
  --er-elevated: #16494e;
  --er-accent: #62c3c0;
  --er-accent-dark: #0e6b68;
  --er-ivory: #f6f5f1;
  --er-mist: #e7f3f1;

  --mwl-sky-1: #2f8cf0;
  --mwl-sky-2: #9ed8ff;
  --mwl-mint: #73dfcd;
  --mwl-sun: #f6c25b;
  --mwl-towel: #e9866a;
  --mwl-cotton: #fbf6ea;

  --radius-xl: 40px;
  --radius-l: 28px;
  --radius-m: 18px;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 32px);

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", "Helvetica Neue", Arial, sans-serif;
  --serif: "New York", "Iowan Old Style", "Source Serif 4", Georgia, serif;

  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #000000;
    --bg-alt: #0d0d0f;
    --card: #141416;
    --ink: #f5f5f7;
    --ink-2: #d2d2d7;
    --muted: #98989d;
    --line: rgba(255, 255, 255, 0.1);
    --invert-bg: #141416;
    --accent: #f5f5f7;
    --accent-ink: #0b0b0c;
  }
}
:root[data-theme="dark"] {
  --bg: #000000;
  --bg-alt: #0d0d0f;
  --card: #141416;
  --ink: #f5f5f7;
  --ink-2: #d2d2d7;
  --muted: #98989d;
  --line: rgba(255, 255, 255, 0.1);
  --invert-bg: #141416;
  --accent: #f5f5f7;
  --accent-ink: #0b0b0c;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -0.025em; line-height: 1.05; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.center { text-align: center; }
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--bg); padding: 8px 14px; border-radius: 10px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; border-radius: 6px; }

/* ---------- Type scale ---------- */
.eyebrow {
  display: inline-block;
  font-size: 13px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 18px;
}
.display { font-size: clamp(44px, 8.4vw, 104px); letter-spacing: -0.045em; line-height: 0.98; }
.h1 { font-size: clamp(38px, 6vw, 72px); letter-spacing: -0.04em; }
.h2 { font-size: clamp(30px, 4.4vw, 52px); letter-spacing: -0.035em; }
.h3 { font-size: clamp(22px, 2.2vw, 28px); letter-spacing: -0.02em; line-height: 1.15; }
.lede { font-size: clamp(19px, 2vw, 23px); line-height: 1.42; color: var(--muted); letter-spacing: -0.01em; max-width: 40ch; }
.center .lede { margin-left: auto; margin-right: auto; }
.grad-text {
  background: linear-gradient(100deg, var(--ink) 20%, var(--muted));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- Nav (with dropdown menus) ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  transition: background .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.nav:has(.has-menu:hover), .nav:has(.has-menu:focus-within) { background: var(--bg) !important; }
.nav.scrolled {
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom-color: var(--line);
}
.nav > .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; font-size: 18px; letter-spacing: -0.02em; color: inherit; }
.nav-links > ul { display: flex; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav-links a { text-decoration: none; color: inherit; }
.nav-links .top { display: inline-flex; align-items: center; gap: 6px; height: 64px; padding: 0 12px; font-size: 15px; color: var(--ink-2); transition: color .2s; }
.nav-links .top::after { content: ""; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); opacity: .5; transition: transform .2s; }
.nav-links .has-menu:hover .top, .nav-links .has-menu:focus-within .top, .nav-links .current .top { color: var(--ink); }
.nav-links .cta { margin-left: 10px; }
.nav-links .cta .btn { color: var(--accent-ink); }

.has-menu { position: static; }
.menu {
  position: absolute; left: 0; right: 0; top: 64px;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 30px 60px -30px rgba(0,0,0,.25);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .2s, transform .2s, visibility 0s linear .2s;
}
.has-menu:hover .menu, .has-menu:focus-within .menu, .has-menu.open .menu {
  opacity: 1; visibility: visible; transform: none; transition: opacity .2s, transform .2s;
}
.menu-inner { max-width: var(--wrap); margin: 0 auto; padding: 28px var(--gutter) 36px; display: grid; grid-template-columns: 280px 1fr; gap: 40px; }
.menu-lead { display: block; padding: 20px; border-radius: var(--radius-m); background: var(--bg-alt); }
.menu-lead b { display: block; font-size: 20px; letter-spacing: -0.02em; margin-bottom: 6px; }
.menu-lead span { color: var(--muted); font-size: 14px; line-height: 1.45; }
.menu-lead:hover { background: color-mix(in srgb, var(--ink) 8%, var(--bg-alt)); }
.menu-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px 24px; align-content: start; }
.menu-list a { display: block; padding: 10px 12px; border-radius: 12px; transition: background .15s; }
.menu-list a:hover, .menu-list a:focus-visible { background: var(--bg-alt); }
.menu-list b { display: block; font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }
.menu-list span { display: block; color: var(--muted); font-size: 13px; line-height: 1.4; }
.menu-list a.with-icon { display: flex; gap: 12px; align-items: center; }
.menu-list a.with-icon img { width: 36px; height: 36px; border-radius: 9px; flex: none; }
.menu-list .t { color: inherit; }

.menu-btn { display: none; background: none; border: 0; color: inherit; padding: 10px; margin-right: -10px; cursor: pointer; }
.menu-btn span { display: block; width: 20px; height: 1.5px; background: currentColor; margin: 5px 0; transition: transform .25s; }

@media (max-width: 900px) {
  .menu-btn { display: block; }
  .nav-links {
    position: fixed; inset: 64px 0 0 0; overflow-y: auto; overscroll-behavior: contain;
    background: var(--bg); padding: 8px var(--gutter) 40px;
    opacity: 0; pointer-events: none; transform: translateY(-8px); transition: opacity .2s, transform .2s;
  }
  .nav.open .nav-links { opacity: 1; pointer-events: auto; transform: none; }
  .nav.open { background: var(--bg); border-bottom-color: var(--line); }
  .nav.open .menu-btn span:first-child { transform: translateY(3.25px) rotate(45deg); }
  .nav.open .menu-btn span:last-child { transform: translateY(-3.25px) rotate(-45deg); }
  .nav-links > ul { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-links .top { height: auto; padding: 18px 0 8px; font-size: 24px; font-weight: 700; letter-spacing: -0.02em; color: var(--ink); }
  .nav-links .top::after { display: none; }
  .has-menu { border-bottom: 1px solid var(--line); padding-bottom: 12px; }
  .menu { position: static; opacity: 1; visibility: visible; transform: none; background: none; border: 0; box-shadow: none; transition: none; }
  .menu-inner { display: block; padding: 0; }
  .menu-lead { display: none; }
  .menu-list { grid-template-columns: 1fr; gap: 0; }
  .menu-list a { padding: 8px 0; }
  .menu-list a > span:not(.t), .menu-list .t > span { display: none; }
  .menu-list a.with-icon img { width: 28px; height: 28px; border-radius: 7px; }
  .nav-links .cta { margin: 24px 0 0; }
  .nav-links .cta .btn { width: 100%; min-height: 50px; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 20px; border-radius: 999px;
  background: var(--accent); color: var(--accent-ink);
  font: 600 16px/1 var(--font); letter-spacing: -0.01em; text-decoration: none;
  border: 0; cursor: pointer; transition: transform .2s, opacity .2s;
}
.btn:hover { transform: translateY(-1px); opacity: .9; }
.btn.small { min-height: 36px; padding: 0 16px; font-size: 14px; }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn.large { min-height: 54px; padding: 0 28px; font-size: 17px; }
.link-arrow { text-decoration: none; font-weight: 600; display: inline-flex; gap: 6px; align-items: center; }
.link-arrow::after { content: "→"; transition: transform .2s; }
.link-arrow:hover::after { transform: translateX(3px); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.center .actions { justify-content: center; }

/* Store-style badge (not Apple's artwork; swap for the official badge at launch) */
.store {
  display: inline-flex; align-items: center; gap: 10px; min-height: 54px; padding: 0 22px 0 18px;
  border-radius: 14px; background: #000; color: #fff; text-decoration: none;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.18);
}
.store svg { width: 22px; height: 22px; }
.store small { display: block; font-size: 11px; opacity: .8; line-height: 1.1; }
.store b { display: block; font-size: 18px; line-height: 1.1; font-weight: 600; letter-spacing: -0.01em; }

.chip {
  display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px; border-radius: 999px;
  font-size: 13px; font-weight: 600; background: color-mix(in srgb, currentColor 10%, transparent);
}
.chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

/* ---------- Sections ---------- */
section { position: relative; }
.section { padding: clamp(80px, 12vw, 160px) 0; }
.section.tight { padding: clamp(56px, 8vw, 100px) 0; }
.invert { background: var(--invert-bg); color: var(--invert-ink); }
.invert .muted, .invert .lede, .invert .eyebrow { color: var(--invert-muted); }
.invert .btn { background: var(--invert-ink); color: #0b0b0c; }
.invert .btn.ghost { background: transparent; color: var(--invert-ink); box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.2); }
.invert .grad-text { background-image: linear-gradient(100deg, #fff 20%, #8e8e93); }

/* ---------- Hero ---------- */
.hero { padding: clamp(56px, 9vw, 120px) 0 0; overflow: hidden; }
.hero .display { max-width: 12ch; margin: 0 auto; }
.hero .lede { margin-top: 26px; }
.hero-mark { width: 76px; margin: 0 auto 28px; color: var(--ink); }

/* ---------- Phones ---------- */
.phone {
  position: relative; width: 100%; max-width: 300px; aspect-ratio: 460 / 1000;
  border-radius: 15% / 7%; padding: 3.2%;
  background: #1c1c1e;
  box-shadow: 0 0 0 1.5px #3a3a3c inset, 0 40px 80px -30px rgba(0,0,0,.45), 0 18px 36px -18px rgba(0,0,0,.35);
}
.phone { container-type: inline-size; }
.phone > img, .phone > .screen { width: 100%; height: 100%; border-radius: 12.4% / 5.8%; object-fit: cover; overflow: hidden; }
.phones { display: flex; justify-content: center; align-items: flex-end; gap: clamp(12px, 3vw, 40px); }
.phones .phone:nth-child(1), .phones .phone:nth-child(3) { max-width: 250px; transform: translateY(40px); }
.phones .phone:nth-child(2) { z-index: 2; }
@media (max-width: 640px) {
  .phones .phone:nth-child(1), .phones .phone:nth-child(3) { display: none; }
  .phones .phone:nth-child(2) { max-width: 260px; }
}

/* ---------- Grids & cards ---------- */
.grid { display: grid; gap: 20px; }
.grid.two { grid-template-columns: repeat(2, 1fr); }
.grid.three { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .grid.three { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 760px) { .grid.two, .grid.three { grid-template-columns: 1fr; } }

.card { background: var(--card); border-radius: var(--radius-l); padding: clamp(24px, 3vw, 36px); box-shadow: 0 0 0 1px var(--line); }
.invert .card { background: #1c1c1e; box-shadow: 0 0 0 1px rgba(255,255,255,.08); }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--muted); margin: 0; }
.invert .card p { color: var(--invert-muted); }
.card .icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 22px; background: var(--bg-alt); color: var(--ink); }
.invert .card .icon { background: #2c2c2e; color: #fff; }
.card .icon svg { width: 22px; height: 22px; }

/* ---------- App showcase cards (home) ---------- */
.app-card {
  position: relative; overflow: hidden; border-radius: var(--radius-xl);
  display: grid; grid-template-columns: 1.05fr 1fr; align-items: end; min-height: 620px;
  text-decoration: none; color: inherit; isolation: isolate;
  transition: transform .4s cubic-bezier(.2,.8,.2,1);
}
.app-card:hover { transform: translateY(-4px); }
.app-card + .app-card { margin-top: 20px; }
.app-card .copy { padding: clamp(28px, 5vw, 64px); align-self: center; }
.app-card .app-icon { width: 84px; margin-bottom: 26px; }
.app-card h3 { font-size: clamp(36px, 5vw, 60px); letter-spacing: -0.04em; margin-bottom: 14px; }
.app-card p { font-size: clamp(18px, 1.8vw, 21px); line-height: 1.4; max-width: 30ch; opacity: .78; }
.app-card .visual { display: flex; justify-content: center; padding: 48px 32px 0; }
.app-card .visual .phone { max-width: 290px; margin-bottom: -90px; }
.app-card .meta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 28px; }
@media (max-width: 860px) {
  .app-card { grid-template-columns: 1fr; min-height: 0; }
  .app-card .visual .phone { max-width: 250px; margin-bottom: -120px; }
  .app-card .visual { padding-top: 8px; }
}

.app-icon { border-radius: 22.5%; box-shadow: 0 10px 30px -10px rgba(0,0,0,.35); }

.app-card.enroute {
  background:
    radial-gradient(120% 90% at 85% 0%, #1d5a5c 0%, transparent 60%),
    linear-gradient(160deg, var(--er-teal), var(--er-deep));
  color: var(--er-ivory);
}
.app-card.enroute .chip { color: var(--er-accent); }
.app-card.mwl {
  background:
    radial-gradient(60% 50% at 88% 12%, rgba(246,194,91,.55), transparent 70%),
    linear-gradient(170deg, var(--mwl-sky-1), var(--mwl-sky-2));
  color: #04223f;
}
.app-card.mwl .chip { color: #04396b; }

/* ---------- Feature rows (app pages) ---------- */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.feature + .feature { margin-top: clamp(96px, 12vw, 160px); }
.feature.flip .feature-media { order: -1; }
.feature-media { display: flex; justify-content: center; }
.feature h2 { margin-bottom: 20px; }
.feature .lede { max-width: 34ch; }
.feature ul { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.feature li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; color: var(--ink-2); }
.feature li::before { content: ""; width: 18px; height: 18px; margin-top: 3px; border-radius: 50%; background: var(--accent); opacity: .9;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 0a10 10 0 1 0 0 20 10 10 0 0 0 0-20Zm4.6 7.4-5.3 5.9a1 1 0 0 1-1.5 0l-2.4-2.6 1.4-1.3 1.7 1.8 4.6-5.1 1.5 1.3Z'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 0a10 10 0 1 0 0 20 10 10 0 0 0 0-20Zm4.6 7.4-5.3 5.9a1 1 0 0 1-1.5 0l-2.4-2.6 1.4-1.3 1.7 1.8 4.6-5.1 1.5 1.3Z'/%3E%3C/svg%3E") center/contain no-repeat; }
@media (max-width: 860px) {
  .feature { grid-template-columns: 1fr; }
  .feature.flip .feature-media { order: 0; }
  .feature-media .phone { max-width: 260px; }
}

/* ---------- Stats / principles ---------- */
.principles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border-radius: var(--radius-l); overflow: hidden; box-shadow: 0 0 0 1px var(--line); }
.principles > div { background: var(--card); padding: 32px 28px; }
.principles h3 { font-size: 20px; margin-bottom: 8px; letter-spacing: -0.015em; }
.principles p { color: var(--muted); margin: 0; font-size: 16px; }
@media (max-width: 900px) { .principles { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .principles { grid-template-columns: 1fr; } }

/* ---------- Timeline ---------- */
.timeline { list-style: none; margin: 56px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: t; }
.timeline li { position: relative; padding-top: 28px; border-top: 1.5px solid var(--line); }
.invert .timeline li { border-color: rgba(255,255,255,.14); }
.timeline li::before { content: ""; position: absolute; top: -6px; left: 0; width: 10px; height: 10px; border-radius: 50%; background: currentColor; }
.timeline .when { font-size: 14px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; opacity: .6; display: block; margin-bottom: 10px; }
.timeline h3 { font-size: 24px; margin-bottom: 10px; }
@media (max-width: 760px) { .timeline { grid-template-columns: 1fr; gap: 36px; } }

/* ---------- Big CTA ---------- */
.cta { text-align: center; }
.cta .mail { font-size: clamp(26px, 5vw, 56px); font-weight: 700; letter-spacing: -0.035em; text-decoration: none; display: inline-block; margin-top: 28px; border-bottom: 3px solid currentColor; line-height: 1.15; word-break: break-word; }

/* ---------- Footer ---------- */
.footer { padding: 56px 0 40px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.footer .row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; }
.footer .brand { color: var(--ink); }
.footer h4 { font-size: 13px; color: var(--ink); margin-bottom: 12px; letter-spacing: 0; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--ink); }
.footer .cols { display: flex; flex-wrap: wrap; gap: 56px; }
.footer .legal { margin-top: 48px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }

/* ---------- Prose (privacy) ---------- */
.prose { max-width: 720px; }
.prose h2 { font-size: 28px; margin: 56px 0 16px; }
.prose h3 { font-size: 20px; margin: 32px 0 10px; }
.prose p, .prose li { color: var(--ink-2); }
.prose ul { padding-left: 20px; }
.prose li { margin-bottom: 8px; }

/* ---------- Reveal on scroll (JS adds .js to <html>) ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s cubic-bezier(.2,.8,.2,1), transform .9s cubic-bezier(.2,.8,.2,1); }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal.d1 { transition-delay: .08s; } .js .reveal.d2 { transition-delay: .16s; } .js .reveal.d3 { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } }

/* =========================================================
   Enroute page theme
   ========================================================= */
.theme-enroute { --accent: var(--er-teal); --accent-ink: var(--er-ivory); --bg: var(--er-ivory); --card: #ffffff; --bg-alt: var(--er-mist); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-enroute { --accent: var(--er-accent); --accent-ink: var(--er-deep); --bg: var(--er-deep); --card: var(--er-elevated); --bg-alt: var(--er-teal); --ink: var(--er-ivory); --muted: #a9c4c2; --ink-2: #d9e6e4; --line: rgba(246,245,241,.12); }
}
.theme-enroute .wordmark { font-family: var(--serif); font-weight: 500; letter-spacing: -0.03em; }
.er-hero { background: radial-gradient(90% 70% at 50% 0%, var(--er-mist), transparent 70%); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .er-hero { background: radial-gradient(90% 70% at 50% 0%, #15494d, transparent 70%); } }
.er-band { background: linear-gradient(160deg, var(--er-teal), var(--er-deep)); color: var(--er-ivory); }
.er-band .lede, .er-band .eyebrow { color: #a9c4c2; }
.er-band .btn { background: var(--er-ivory); color: var(--er-teal); }
.platform-pills { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.pill { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; min-width: 96px; padding: 10px 16px; border-radius: 16px; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.pill b { font-size: 26px; letter-spacing: -0.02em; line-height: 1.1; }
.pill span { text-transform: none; letter-spacing: 0; font-size: 13px; }
.pill.confirmed { background: var(--er-teal); color: var(--er-ivory); }
.pill.expected { box-shadow: inset 0 0 0 1.5px var(--muted); border: 0; outline: 1.5px dashed color-mix(in srgb, var(--muted) 60%, transparent); outline-offset: -5px; color: var(--ink); }
.pill.notyet { background: var(--bg-alt); color: var(--muted); }
.route-rule { height: 3px; width: 64px; border-radius: 3px; background: var(--er-accent); margin: 22px auto 0; }

/* =========================================================
   MyWashingLine page theme
   ========================================================= */
.theme-mwl { --accent: #0a5fc2; --accent-ink: #ffffff; --bg: #f7fbff; --bg-alt: #e8f3ff; --card: #ffffff; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-mwl { --accent: var(--mwl-sky-2); --accent-ink: #04223f; --bg: #050d18; --bg-alt: #0c1a2c; --card: #0f1f33; --line: rgba(158,216,255,.12); }
}
.mwl-hero { background: linear-gradient(180deg, var(--mwl-sky-1) 0%, var(--mwl-sky-2) 78%, var(--bg) 100%); color: #04223f; overflow: hidden; }
.mwl-hero .lede { color: rgba(4,34,63,.72); }
.mwl-hero .eyebrow { color: rgba(4,34,63,.6); }
.mwl-hero .sun { position: absolute; width: clamp(120px, 18vw, 220px); aspect-ratio: 1; border-radius: 50%; top: 60px; right: 8%; background: radial-gradient(circle at 35% 35%, #fbe08c, var(--mwl-sun) 60%, #eaa64a); box-shadow: 0 0 120px 30px rgba(246,194,91,.35); pointer-events: none; }
.mwl-hero .line { position: absolute; left: -5%; right: -5%; top: 46%; height: 120px; pointer-events: none; opacity: .9; }
.mwl-band { background: linear-gradient(170deg, var(--mwl-sky-1), #1666c9); color: #fff; }
.mwl-band .lede, .mwl-band .eyebrow { color: rgba(255,255,255,.78); }
.mwl-band .btn { background: #fff; color: #0a5fc2; }

/* CSS-built MyWashingLine screen (illustrative) */
.mwl-screen {
  display: flex; flex-direction: column; gap: 3.4cqw; padding: 20% 6% 8%;
  background: linear-gradient(180deg, #3b95f2 0%, #8fd0ff 55%, #cfeaff 100%);
  color: #04223f; font-size: 4.7cqw; line-height: 1.3; text-align: left;
}
.mwl-screen .loc { font-weight: 700; font-size: 1.9em; letter-spacing: -0.02em; color: #fff; }
.mwl-screen .sub { color: rgba(255,255,255,.85); margin-top: -6px; }
.mwl-screen .glass { background: rgba(255,255,255,.55); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border: .8px solid rgba(255,255,255,.6); border-radius: 6cqw; padding: 3.6cqw 4.2cqw; box-shadow: 0 8px 16px -8px rgba(0,0,0,.15); }
.mwl-screen .score { display: flex; align-items: center; gap: 12px; }
.ring { --v: 82; position: relative; width: 6.2em; aspect-ratio: 1; flex: none; border-radius: 50%; background: conic-gradient(#1aa36b calc(var(--v) * 1%), rgba(4,34,63,.12) 0); -webkit-mask: radial-gradient(circle, transparent 54%, #000 55%); mask: radial-gradient(circle, transparent 54%, #000 55%); }
.ring-wrap { position: relative; }
.ring-wrap .num { position: absolute; inset: 0; display: grid; place-items: center; font-weight: 800; font-size: 1.9em; letter-spacing: -0.03em; }
.mwl-screen .verdict { font-weight: 700; font-size: 1.35em; letter-spacing: -0.02em; }
.mwl-screen .k { color: rgba(4,34,63,.6); font-size: .9em; }
.mwl-screen .row { display: flex; justify-content: space-between; gap: 8px; }
.mwl-screen .bar { height: 8px; border-radius: 4px; background: rgba(4,34,63,.1); position: relative; overflow: hidden; margin-top: 6px; }
.mwl-screen .bar i { position: absolute; top: 0; bottom: 0; left: 25%; width: 40%; background: linear-gradient(90deg, #1aa36b, #8bd36a); border-radius: 4px; }
.mwl-screen .week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; font-size: .85em; }
.mwl-screen .week b { display: block; margin: 4px auto 0; width: 2.2em; height: 2.2em; border-radius: 50%; display: grid; place-items: center; font-size: .95em; color: #fff; }
.g { background: #1aa36b; } .a { background: #e2a23b; } .r { background: #d9534f; }
.mwl-screen .tabs { margin-top: auto; display: flex; justify-content: space-around; padding: 8px; border-radius: 999px; }

.score-scale { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 40px; }
.score-scale div { border-radius: var(--radius-m); padding: 20px; color: #fff; }
.score-scale b { display: block; font-size: 22px; letter-spacing: -0.02em; }
.score-scale span { font-size: 14px; opacity: .9; }
@media (max-width: 760px) { .score-scale { grid-template-columns: repeat(2, 1fr); } }

.tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.tags span { padding: 10px 16px; border-radius: 999px; background: var(--card); box-shadow: 0 0 0 1px var(--line); font-weight: 600; font-size: 15px; }

/* ---------- Mark (inline sprite, inherits currentColor) ---------- */
/* One line weight for every size: it's measured in the logo's own units, so it scales with the mark. */
.mark-s, .mark-l { stroke-width: 15; }
.mark-s { width: 38px; height: 28px; flex: none; }
.mark-l { display: block; }
.footer .mark-s { width: 30px; height: 22px; }
.mwl-hero { margin-top: -64px; padding-top: calc(clamp(56px, 9vw, 120px) + 64px); }
.theme-mwl .nav:not(.scrolled):not(.open):not(:has(.has-menu:hover)):not(:has(.has-menu:focus-within)) { color: #04223f; }
.theme-mwl .nav:not(.scrolled):not(.open):not(:has(.has-menu:hover)):not(:has(.has-menu:focus-within)) .top { color: rgba(4,34,63,.8); }
.theme-mwl .nav:not(.scrolled):not(.open) .btn { background: #04223f; color: #fff; }

/* =========================================================
   Sections v2: projects, services, about
   ========================================================= */
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head .h1, .section-head .h2 { margin: 0; }
.back { display: flex; width: max-content; align-items: center; gap: 6px; text-decoration: none; color: var(--muted); font-size: 15px; margin-bottom: 28px; }
.back::before { content: "←"; }
.back:hover { color: var(--ink); }
.hero:not(.center) .display { margin: 0; }
.hero:not(.center) .lede { margin-top: 26px; }

/* Browser frame */
.browser { border-radius: 14px; overflow: hidden; background: #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.08), 0 30px 60px -30px rgba(0,0,0,.45); }
.browser-bar { display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; background: #f1f1f3; border-bottom: 1px solid rgba(0,0,0,.06); }
.browser-bar i { width: 9px; height: 9px; border-radius: 50%; background: #d6d6da; }
.browser-bar span { margin: 0 auto; transform: translateX(-20px); font-size: 11px; color: #6e6e73; background: #fff; padding: 2px 14px; border-radius: 6px; max-width: 60%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.browser img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.browser.large { border-radius: 18px; }
.browser.large .browser-bar { height: 38px; }
.browser.large .browser-bar i { width: 11px; height: 11px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .browser-bar { background: #2c2c2e; border-color: rgba(255,255,255,.06); } :root:not([data-theme="light"]) .browser-bar span { background: #1c1c1e; color: #98989d; } }

/* Project cards */
.project-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.project-grid > .project-card:first-child:nth-last-child(odd) { grid-column: 1 / -1; }
.project-grid.compact > .project-card:first-child:nth-last-child(odd) { grid-column: auto; }
.project-card { position: relative; display: flex; flex-direction: column; border-radius: var(--radius-xl); overflow: hidden; text-decoration: none; color: var(--pc-ink); background: var(--pc); isolation: isolate; transition: transform .4s cubic-bezier(.2,.8,.2,1); }
.project-card:hover { transform: translateY(-4px); }
.project-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(90% 70% at 85% 0%, rgba(255,255,255,.16), transparent 60%); }
.pc-media { padding: clamp(24px, 4vw, 48px) clamp(24px, 4vw, 48px) 0; }
.pc-media .browser { border-bottom-left-radius: 0; border-bottom-right-radius: 0; transform: translateY(4px); transition: transform .5s cubic-bezier(.2,.8,.2,1); }
.project-card:hover .pc-media .browser { transform: translateY(-4px); }
.pc-copy { padding: 28px clamp(24px, 4vw, 48px) clamp(28px, 4vw, 44px); background: color-mix(in srgb, var(--pc) 88%, #000); }
.pc-meta { display: block; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; opacity: .7; margin-bottom: 10px; }
.project-card h3 { font-size: clamp(26px, 3vw, 36px); letter-spacing: -0.03em; margin-bottom: 10px; }
.project-card p { margin: 0; opacity: .8; max-width: 52ch; font-size: 16px; }
.project-grid > .project-card:first-child:nth-last-child(odd) { display: grid; grid-template-columns: 1.4fr 1fr; }
.project-grid > .project-card:first-child:nth-last-child(odd) .pc-copy { display: flex; flex-direction: column; justify-content: center; background: none; }
.project-grid > .project-card:first-child:nth-last-child(odd) .pc-media { padding-bottom: clamp(24px, 4vw, 48px); }
.project-grid > .project-card:first-child:nth-last-child(odd) .pc-media .browser { border-radius: 14px; transform: none; }
.project-grid.compact > .project-card:first-child:nth-last-child(odd) { display: flex; }
.project-grid.compact > .project-card:first-child:nth-last-child(odd) .pc-copy { background: color-mix(in srgb, var(--pc) 88%, #000); }
.pc-tags { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 18px 0 0; }
.pc-tags li { font-size: 12px; font-weight: 600; padding: 5px 10px; border-radius: 999px; background: color-mix(in srgb, currentColor 12%, transparent); }
.pc-tags.big { margin-top: 24px; }
.pc-tags.big li { font-size: 13px; padding: 7px 14px; background: var(--bg-alt); color: var(--ink-2); }
@media (max-width: 860px) {
  .project-grid { grid-template-columns: 1fr; }
  .project-grid > .project-card:first-child:nth-last-child(odd) { display: flex; }
  .project-grid > .project-card:first-child:nth-last-child(odd) .pc-copy { background: color-mix(in srgb, var(--pc) 88%, #000); }
  .project-grid > .project-card:first-child:nth-last-child(odd) .pc-media { padding-bottom: 0; }
  .project-grid > .project-card:first-child:nth-last-child(odd) .pc-media .browser { border-radius: 14px 14px 0 0; transform: translateY(4px); }
}

.stat-row { display: flex; flex-wrap: wrap; gap: clamp(28px, 6vw, 72px); margin-top: 44px; }
.stat-row b { display: block; font-size: clamp(40px, 5vw, 56px); letter-spacing: -0.04em; line-height: 1; }
.stat-row span { color: var(--muted); font-size: 15px; }

/* Project detail */
.facts { display: flex; flex-wrap: wrap; gap: 14px 48px; margin: 40px 0 0; }
.facts dt { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.facts dd { margin: 0; font-weight: 600; font-size: 17px; }
.facts a { text-decoration: none; border-bottom: 1px solid var(--line); }
.project-stage { margin-top: clamp(48px, 7vw, 88px); }
.project-stage .stage { position: relative; border-radius: var(--radius-xl); background: radial-gradient(90% 80% at 80% 0%, rgba(255,255,255,.18), transparent 60%), var(--pc); padding: clamp(24px, 6vw, 80px) clamp(24px, 6vw, 80px) 0; overflow: hidden; }
.project-stage .browser.large { border-bottom-left-radius: 0; border-bottom-right-radius: 0; max-width: 1000px; }
.stage-phone { position: absolute; right: clamp(16px, 5vw, 72px); bottom: clamp(16px, 4vw, 48px); width: clamp(120px, 20vw, 240px); max-width: none; }
.stage-phone > img { object-position: top; }
@media (max-width: 640px) { .stage-phone { display: none; } }
.project-cols { display: grid; grid-template-columns: 1fr 340px; gap: clamp(32px, 6vw, 96px); align-items: start; }
.prose.case { max-width: 680px; }
.prose.case h2:first-child { margin-top: 0; }
.prose.case p { font-size: 18px; line-height: 1.6; }
.highlights { position: sticky; top: 96px; background: var(--card); border-radius: var(--radius-l); padding: 28px; box-shadow: 0 0 0 1px var(--line); }
.highlights h2 { font-size: 20px; margin-bottom: 16px; }
.highlights ul { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 12px; }
.highlights li { display: grid; grid-template-columns: 18px 1fr; gap: 10px; color: var(--ink-2); font-size: 15px; line-height: 1.45; }
.highlights li::before { content: ""; width: 8px; height: 8px; margin-top: 7px; border-radius: 50%; background: var(--pc); box-shadow: 0 0 0 3px color-mix(in srgb, var(--pc) 25%, transparent); }
.highlights .btn { width: 100%; }
@media (max-width: 900px) { .project-cols { grid-template-columns: 1fr; } .highlights { position: static; } }
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 64px; }
.gallery figure { margin: 0; }
.gallery img { border-radius: var(--radius-m); width: 100%; }
.gallery figcaption { color: var(--muted); font-size: 14px; margin-top: 8px; }
@media (max-width: 640px) { .gallery { grid-template-columns: 1fr; } }

/* Services */
.service-links { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.service-links.light { grid-template-columns: repeat(4, 1fr); }
.service-link { display: flex; flex-direction: column; gap: 8px; padding: 24px; border-radius: var(--radius-l); text-decoration: none; background: #1c1c1e; color: #f5f5f7; min-height: 200px; transition: transform .3s, background .3s; }
.service-link:hover { transform: translateY(-3px); background: #2c2c2e; }
.service-link .n { font-size: 13px; color: #8e8e93; font-weight: 600; }
.service-link b { font-size: 22px; letter-spacing: -0.02em; margin-top: auto; }
.service-link .d { font-size: 14px; color: #a1a1a6; line-height: 1.4; }
.service-links.light .service-link { background: var(--card); color: var(--ink); box-shadow: 0 0 0 1px var(--line); min-height: 160px; }
.service-links.light .service-link .d { color: var(--muted); }
@media (max-width: 1000px) { .service-links, .service-links.light { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .service-links, .service-links.light { grid-template-columns: 1fr; } .service-link { min-height: 0; } }

.service-rows { border-top: 1px solid var(--line); }
.service-row { display: grid; grid-template-columns: 64px 1fr 1fr 40px; gap: 24px; align-items: center; padding: clamp(24px, 3.5vw, 40px) 0; border-bottom: 1px solid var(--line); text-decoration: none; transition: padding .3s; }
.service-row .n { color: var(--muted); font-weight: 600; }
.service-row h2 { font-size: clamp(30px, 4.4vw, 56px); letter-spacing: -0.04em; }
.service-row p { color: var(--muted); margin: 0; font-size: 18px; }
.service-row .go { font-size: 28px; transition: transform .3s; }
.service-row:hover { padding-left: 12px; }
.service-row:hover .go { transform: translateX(6px); }
@media (max-width: 760px) { .service-row { grid-template-columns: 40px 1fr 28px; } .service-row p { grid-column: 2 / 3; } .service-row .go { grid-row: 1; grid-column: 3; } }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.steps li { padding: 28px; border-radius: var(--radius-l); background: #1c1c1e; }
.steps .n { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: #f5f5f7; color: #0b0b0c; font-weight: 700; margin-bottom: 20px; }
.steps h3 { font-size: 22px; margin-bottom: 8px; }
.steps p { color: #a1a1a6; margin: 0; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* About & skills */
.about-mark { width: min(360px, 70%); color: var(--ink); opacity: .9; }
.skills { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border-radius: var(--radius-l); overflow: hidden; box-shadow: 0 0 0 1px var(--line); }
.skill { background: var(--card); padding: clamp(24px, 3vw, 40px); }
.skill h2 { font-size: 26px; letter-spacing: -0.025em; margin-bottom: 18px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.skill ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; color: var(--ink-2); }
.badge { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 4px 8px; border-radius: 999px; background: var(--ink); color: var(--bg); }
@media (max-width: 900px) { .skills { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .skills { grid-template-columns: 1fr; } }
.link-card { display: flex; flex-direction: column; text-decoration: none; transition: transform .3s; }
.link-card:hover { transform: translateY(-3px); }
.link-card .eyebrow { margin-bottom: 14px; }
.link-card .link-arrow { margin-top: 22px; color: var(--ink); }
.invert .link-card .link-arrow { color: #f5f5f7; }
.mail.big { display: inline-block; margin-top: 40px; font-size: clamp(26px, 4.6vw, 52px); font-weight: 700; letter-spacing: -0.035em; text-decoration: none; border-bottom: 3px solid currentColor; word-break: break-word; }

.app-icons { display: flex; justify-content: center; gap: 18px; margin-bottom: 30px; }
.app-icons img { width: 88px; }
.app-icons.big img { width: clamp(110px, 14vw, 150px); }
