/* Ferry website: "Harbor" art direction. Hand-written, no build step, no external dependencies.
   Palette: warm paper, deep ink, signal orange, sea teal, buoy yellow. Flat colour, ink line-art, hard shadows. */

@font-face {
  font-family: "Bricolage";
  src: url("/assets/fonts/bricolage-grotesque.woff2") format("woff2");
  font-weight: 500 800;
  font-stretch: 85% 100%;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --display: "Bricolage", "Avenir Next Condensed", "Arial Narrow", var(--font);
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --ease: cubic-bezier(.2, .8, .2, 1);

  /* fixed brand colours */
  --ink-fixed: #12202F;
  --paper-fixed: #FBF8F1;
  --c-mac: #FF5B1F; --c-win: #0E7C7B; --c-and: #F2B705;

  /* light theme */
  --paper: #F4EFE6;
  --paper-2: #EAE3D6;
  --card: #FBF8F1;
  --screen: #E9E2D3;
  --ink: #12202F;
  --line: rgba(18, 32, 47, .16);
  --muted: #535E6B;
  --orange: #FF5B1F;
  --orange-text: #B13D0C;
  --teal: #0E7C7B;
  --teal-text: #0A6564;
  --yellow: #F2B705;
  --hard: #12202F;
  --link: #0A6564;
  --grain-opacity: .14;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --paper: #0E1621;
  --paper-2: #121D2A;
  --card: #172331;
  --screen: #1E2C3C;
  --ink: #F1EBDF;
  --line: rgba(241, 235, 223, .16);
  --muted: #A9B1BA;
  --orange: #FF6A2E;
  --orange-text: #FF8A57;
  --teal: #1F9E96;
  --teal-text: #4FC7BD;
  --yellow: #F5C22E;
  --hard: #05090E;
  --link: #4FC7BD;
  --grain-opacity: .1;
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root.no-js {
    --paper: #0E1621; --paper-2: #121D2A; --card: #172331; --screen: #1E2C3C; --ink: #F1EBDF; --line: rgba(241, 235, 223, .16);
    --muted: #A9B1BA; --orange: #FF6A2E; --orange-text: #FF8A57; --teal: #1F9E96; --teal-text: #4FC7BD; --yellow: #F5C22E;
    --hard: #05090E; --link: #4FC7BD; --grain-opacity: .1; color-scheme: dark;
  }
}
/* The hotspot band is always "night harbor", in both themes. */
.band-ink {
  --paper: #12202F; --paper-2: #182A3C; --card: #1B2D40; --screen: #223649; --ink: #F1EBDF; --line: rgba(241, 235, 223, .18);
  --muted: #B3BBC4; --orange-text: #FF8A57; --teal-text: #5CCFC4; --link: #5CCFC4; --hard: #070C12;
  color-scheme: dark;
}
[data-theme="dark"] .band-ink { --paper: #0A1119; --paper-2: #101A25; --card: #152230; }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; interpolate-size: allow-keywords; }
body {
  margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.6; color: var(--ink); background: var(--paper);
  -webkit-font-smoothing: antialiased; overflow-x: clip; transition: background-color .35s ease, color .35s ease;
}
/* paper grain */
body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 90; opacity: var(--grain-opacity);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .07 0 0 0 0 .1 0 0 0 0 .15 0 0 0 .5 0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
}
[data-theme="dark"] body::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .95 0 0 0 0 .92 0 0 0 0 .87 0 0 0 .35 0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--link); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2.5px; }
h1, h2, h3 { margin: 0; line-height: 1.08; }
h1, h2 { font-family: var(--display); font-weight: 800; font-stretch: 88%; letter-spacing: -.025em; }
h3 { font-weight: 750; letter-spacing: -.012em; }
p { margin: 0; }
code { font-family: var(--mono); font-size: .86em; background: var(--paper-2); border: 1px solid var(--line); padding: .06em .36em; border-radius: 5px; overflow-wrap: anywhere; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--yellow); color: var(--ink-fixed); }
section[id], #gallery { scroll-margin-top: 78px; }
.container { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: clamp(18px, 4vw, 36px); }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--card); color: var(--ink); padding: 10px 16px; border: 2px solid var(--ink); border-radius: 8px; }
.skip:focus { top: 12px; }
.js .nojs-only { display: none !important; }
.no-js .js-only { display: none !important; }
.mono { font-family: var(--mono); }

/* ---------- Buttons ---------- */
.btn {
  --sh: 3px;
  display: inline-flex; align-items: center; justify-content: center; gap: .6em; padding: .72em 1.2em; border-radius: 10px;
  font-weight: 750; font-size: 1rem; line-height: 1.2; text-decoration: none; cursor: pointer;
  border: 2px solid var(--ink); box-shadow: var(--sh) var(--sh) 0 var(--hard);
  transition: transform .12s var(--ease), box-shadow .12s var(--ease), background-color .2s;
  -webkit-tap-highlight-color: transparent;
}
.btn svg { flex: none; }
.btn:hover { transform: translate(-1px, -1px); box-shadow: calc(var(--sh) + 1px) calc(var(--sh) + 1px) 0 var(--hard); text-decoration: none; }
.btn:active { transform: translate(var(--sh), var(--sh)); box-shadow: 0 0 0 var(--hard); }
.btn-primary { background: var(--orange); color: var(--ink-fixed); border-color: var(--ink-fixed); }
[data-theme="dark"] .btn-primary, .band-ink .btn-primary { border-color: var(--ink-fixed); box-shadow: var(--sh) var(--sh) 0 var(--ink); }
[data-theme="dark"] .btn-primary:hover { box-shadow: calc(var(--sh) + 1px) calc(var(--sh) + 1px) 0 var(--ink); }
[data-theme="dark"] .btn-primary:active { box-shadow: 0 0 0 var(--ink); }
.btn-ghost { background: var(--card); color: var(--ink); }
.btn-ink { background: var(--ink-fixed); color: var(--paper-fixed); border-color: var(--ink-fixed); }
.btn-sm { padding: .48em .9em; font-size: .92rem; border-radius: 9px; --sh: 2px; }
.btn-lg { padding: .8em 1.3em; font-size: 1.05rem; border-radius: 12px; min-height: 60px; --sh: 4px; }
.btn-block { width: 100%; }
.btn-text { display: flex; flex-direction: column; align-items: flex-start; text-align: left; }
.btn-sub { font-family: var(--mono); font-size: .72rem; font-weight: 600; letter-spacing: .02em; margin-top: 3px; opacity: .9; }
.icon-btn {
  width: 42px; height: 42px; display: inline-grid; place-items: center; border-radius: 10px; border: 2px solid var(--ink);
  background: var(--card); color: var(--ink); cursor: pointer; box-shadow: 2px 2px 0 var(--hard); transition: transform .12s, box-shadow .12s;
}
.icon-btn:hover { transform: translate(-1px, -1px); box-shadow: 3px 3px 0 var(--hard); }
.icon-btn:active { transform: translate(2px, 2px); box-shadow: 0 0 0 var(--hard); }
[data-theme="dark"] .icon-btn { box-shadow: none; border-color: var(--line); }
.link-arrow { display: inline-flex; align-items: center; gap: .4em; font-weight: 750; text-decoration: none; color: var(--ink); border-bottom: 2px solid var(--orange); padding-bottom: 2px; }
.link-arrow svg { transition: transform .25s var(--ease); color: var(--orange-text); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- Nav ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: var(--paper); border-bottom: 2px solid transparent; transition: border-color .25s; }
.nav.scrolled { border-bottom-color: var(--ink); }
.nav-inner { display: flex; align-items: center; gap: 18px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 800; font-stretch: 90%; font-size: 1.45rem; letter-spacing: -.02em; color: var(--ink); text-decoration: none; }
.brand-logo { transition: transform .4s var(--ease); }
.brand:hover .brand-logo { transform: rotate(-10deg) translateY(-2px); }
.nav-links { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.nav-links a { color: var(--ink); text-decoration: none; font-weight: 650; font-size: .95rem; padding: 8px 12px; border-radius: 8px; display: inline-flex; align-items: center; gap: 7px; position: relative; }
.nav-links a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px; background: var(--orange); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.theme-toggle .moon { display: none; }
[data-theme="dark"] .theme-toggle .sun { display: none; }
[data-theme="dark"] .theme-toggle .moon { display: block; }
.theme-toggle svg { transition: transform .5s var(--ease); }
.theme-toggle:hover svg { transform: rotate(30deg); }
.menu-toggle { display: none; }
.bars { position: relative; width: 18px; height: 14px; display: block; }
.bars i { position: absolute; left: 0; width: 100%; height: 2px; border-radius: 2px; background: currentColor; transition: transform .3s var(--ease), opacity .2s; }
.bars i:nth-child(1) { top: 0; } .bars i:nth-child(2) { top: 6px; } .bars i:nth-child(3) { top: 12px; }
.nav.open .bars i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav.open .bars i:nth-child(2) { opacity: 0; }
.nav.open .bars i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
@media (max-width: 880px) {
  .menu-toggle { display: inline-grid; }
  .nav-actions { margin-left: auto; }
  .js .nav-links {
    position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; margin: 0;
    padding: 8px clamp(18px, 4vw, 36px) 18px; background: var(--paper); border-bottom: 2px solid var(--ink); border-top: 2px solid var(--ink);
    opacity: 0; transform: translateY(-8px); visibility: hidden; transition: opacity .2s, transform .25s var(--ease), visibility 0s .25s;
  }
  .js .nav.open .nav-links { opacity: 1; transform: none; visibility: visible; transition: opacity .2s, transform .25s var(--ease); }
  .js .nav-links a { padding: 14px 4px; font-size: 1.15rem; font-family: var(--display); font-weight: 750; border-bottom: 1px dashed var(--line); border-radius: 0; }
  .js .nav-links a::after { display: none; }
  .no-js .menu-toggle { display: none; }
  .no-js .nav-inner { flex-wrap: wrap; height: auto; padding-block: 10px; }
  .no-js .nav-links { order: 3; width: 100%; overflow-x: auto; margin: 0; }
}
@media (max-width: 400px) { .nav-cta { display: none; } }

/* ---------- Section labels, waves ---------- */
.kicker { display: inline-flex; flex-wrap: wrap; row-gap: 4px; align-items: center; gap: 12px; font-family: var(--mono); font-size: .76rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
.kicker .rt { display: inline-flex; align-items: center; gap: 8px; color: var(--orange-text); white-space: nowrap; }
.kicker .rt::before { content: ""; width: 11px; height: 11px; border-radius: 50%; border: 2.5px solid currentColor; background: var(--paper); flex: none; }
.kicker .rt::after { content: ""; width: 26px; height: 0; border-top: 2px dashed var(--ink); opacity: .5; margin-left: 4px; }
.wave {
  height: 14px; background: var(--ink); opacity: .85;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='14'%3E%3Cpath d='M0 7c7 0 7-5 14-5s7 5 14 5 7 5 14 5 7-5 14-5' fill='none' stroke='%23000' stroke-width='2'/%3E%3C/svg%3E") repeat-x 0 50% / 56px 14px;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='14'%3E%3Cpath d='M0 7c7 0 7-5 14-5s7 5 14 5 7 5 14 5 7-5 14-5' fill='none' stroke='%23000' stroke-width='2'/%3E%3C/svg%3E") repeat-x 0 50% / 56px 14px;
  animation: drift-wave 14s linear infinite;
}
@keyframes drift-wave { to { -webkit-mask-position: 56px 50%; mask-position: 56px 50%; } }
.alt { background: var(--paper-2); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(36px, 5.5vw, 80px) 0 clamp(52px, 7vw, 96px); }
.hero-inner { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: clamp(28px, 4.5vw, 64px); align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; font-family: var(--mono); font-size: .8rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink); background: var(--card); border: 1.5px solid var(--ink); padding: 6px 14px; border-radius: 999px; }
.eyebrow .sep { color: var(--muted); }
.eyebrow .dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; border: 1.5px solid var(--ink-fixed); }
.d-mac { background: var(--c-mac); } .d-win { background: var(--c-win); } .d-and { background: var(--c-and); }
.hero h1 { font-size: clamp(2.9rem, 6.4vw, 5.3rem); line-height: .94; letter-spacing: -.035em; margin: 24px 0 22px; text-wrap: balance; }
.hl { position: relative; display: inline-block; color: var(--orange-text); white-space: nowrap; }
.hl::after {
  content: ""; position: absolute; left: 0; right: -2px; bottom: -.12em; height: .2em; background: var(--orange);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='12'%3E%3Cpath d='M0 6c5 0 5-4 10-4s5 4 10 4 5 4 10 4 5-4 10-4' fill='none' stroke='%23000' stroke-width='3.4'/%3E%3C/svg%3E") repeat-x 0 50% / .9em 100%;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='12'%3E%3Cpath d='M0 6c5 0 5-4 10-4s5 4 10 4 5 4 10 4 5-4 10-4' fill='none' stroke='%23000' stroke-width='3.4'/%3E%3C/svg%3E") repeat-x 0 50% / .9em 100%;
  transform-origin: left; animation: underline 1.1s .4s var(--ease) both;
}
@keyframes underline { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.lede { font-size: clamp(1.05rem, 1.45vw, 1.2rem); color: var(--muted); max-width: 33em; text-wrap: pretty; }
.lede strong { color: var(--ink); }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.cta-row.center { justify-content: center; }
.os-note { margin-top: 18px; font-size: .95rem; color: var(--ink); background: var(--card); border: 1.5px solid var(--ink); border-left: 6px solid var(--yellow); padding: 10px 14px; border-radius: 8px; max-width: 34em; }
.meta-line { margin-top: 20px; font-family: var(--mono); font-size: .8rem; letter-spacing: .02em; color: var(--muted); }
.meta-line a { color: inherit; }

.map-card { background: var(--card); border: 2px solid var(--ink); border-radius: 16px; box-shadow: 6px 6px 0 var(--hard); overflow: hidden; }
[data-theme="dark"] .map-card { box-shadow: none; }
.map-head, .map-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; font-family: var(--mono); font-size: .7rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding: 10px 16px; }
.map-head { border-bottom: 1.5px solid var(--ink); }
.map-foot { border-top: 1.5px dashed var(--line); }
.map-title b { color: var(--orange-text); font-weight: 700; }
.legend { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 14px; height: 4px; border-radius: 2px; display: inline-block; margin-left: 8px; }
.lg-mac { background: var(--c-mac); } .lg-win { background: var(--c-win); } .lg-and { background: var(--c-and); }
.scene { width: 100%; height: auto; overflow: visible; font-family: var(--font); background:
  radial-gradient(circle at 1px 1px, var(--line) 1px, transparent 1.2px) 0 0 / 22px 22px; }

/* hero scene: ink line-art */
.dev .bezel { fill: var(--card); stroke: var(--ink); stroke-width: 2; }
.dev .screen { fill: var(--screen); stroke: var(--ink); stroke-width: 1.5; }
.dev .base, .dev .stand { fill: var(--card); stroke: var(--ink); stroke-width: 2; stroke-linejoin: round; }
.dev .notch { fill: var(--ink); }
.dev .cam { fill: var(--ink); }
.dev-shadow { display: none; }
.ui-logo, .ui-btn { fill: var(--orange); stroke: var(--ink); stroke-width: 1; }
.ui-line { fill: var(--ink); opacity: .22; }
.ui-card { fill: var(--card); stroke: var(--ink); stroke-opacity: .35; stroke-width: 1; }
.ui-dot { stroke: var(--ink); stroke-width: 1.2; }
.ui-dot.c-mac { fill: var(--c-mac); } .ui-dot.c-win { fill: var(--c-win); } .ui-dot.c-and { fill: var(--c-and); }
.dev-name { font-family: var(--display); font-size: 14.5px; font-weight: 750; fill: var(--ink); }
.dev-os { font-family: var(--mono); font-size: 10px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; fill: var(--muted); }
.mesh line { stroke: var(--ink); stroke-opacity: .28; stroke-width: 1.5; stroke-dasharray: 2 6; stroke-linecap: round; }
.hub-ring { fill: none; stroke: var(--ink); stroke-opacity: .25; stroke-width: 1.5; }
.hub-ring.solid { stroke-opacity: .4; fill: var(--card); }
.hub { fill: var(--teal); stroke: var(--ink); stroke-width: 2; }
.hub-glyph { stroke: var(--paper-fixed); }
.hub-dot { fill: var(--paper-fixed); }
.net-pill { fill: var(--card); stroke: var(--ink); stroke-width: 1.5; }
.net-label { font-family: var(--mono); font-size: 10px; font-weight: 700; letter-spacing: .12em; fill: var(--ink); }
.ripple { fill: none; stroke: var(--ink); stroke-width: 1.5; opacity: 0; transform-box: fill-box; transform-origin: center; animation: ripple 4.2s cubic-bezier(.25, .6, .3, 1) infinite; }
.ripple.r2 { animation-delay: 1.4s; } .ripple.r3 { animation-delay: 2.8s; }
@keyframes ripple { 0% { transform: scale(1); opacity: .45; } 100% { transform: scale(4.1); opacity: 0; } }
.scene.paused .ripple, .scene.paused + * .ripple { animation-play-state: paused; }
.route { fill: none; stroke: var(--orange); stroke-width: 3; stroke-dasharray: 7 7; stroke-linecap: round; }
.route-base { fill: none; stroke: var(--ink); stroke-opacity: .12; stroke-width: 7; stroke-linecap: round; }
.trail { fill: none; stroke: var(--orange); stroke-width: 3; stroke-dasharray: 7 7; stroke-linecap: round; }
.stop { fill: var(--card); stroke: var(--orange); stroke-width: 3; }
.wake { fill: var(--orange); }
.chip-bg { fill: var(--card); stroke: var(--ink); stroke-width: 1.5; }
.chip-sh, .toast-sh { fill: var(--hard); }
[data-theme="dark"] .chip-sh, [data-theme="dark"] .toast-sh { fill: #000; opacity: .55; }
.tile { stroke: var(--ink-fixed); stroke-width: 1.2; }
.chip-text { font-size: 12.5px; font-weight: 700; fill: var(--ink); }
.toast-bg { fill: var(--card); stroke: var(--ink); stroke-width: 1.5; }
.toast-sub { font-family: var(--mono); font-size: 8.5px; font-weight: 700; letter-spacing: .08em; fill: var(--muted); }
.toast-title { font-size: 13px; font-weight: 750; fill: var(--ink); }
.t-decline { fill: var(--card); stroke: var(--ink); stroke-width: 1.2; }
.t-accept { fill: var(--orange); stroke: var(--ink-fixed); stroke-width: 1.2; }
.t-btn-text { font-size: 10.5px; font-weight: 750; fill: var(--ink); }
.t-btn-text.on { fill: var(--ink-fixed); }
.ring-bg { fill: var(--card); stroke: var(--ink); stroke-opacity: .2; stroke-width: 5; }
.ring-edge { fill: none; stroke: var(--ink); stroke-width: 1.5; }
.ring-fg { fill: none; stroke: var(--orange); stroke-width: 5; stroke-linecap: butt; }
.ok { fill: var(--teal); stroke: var(--ink); stroke-width: 2; }
.pulse { fill: none; stroke: var(--ink); stroke-width: 1.5; }
.done-ripple { fill: none; stroke: var(--teal); stroke-width: 2; }
.scene.live #hero-static { display: none; }

/* ---------- Sections ---------- */
.section { padding-block: clamp(68px, 9vw, 124px); position: relative; }
.section-head { max-width: 820px; margin: 0 0 clamp(36px, 5vw, 60px); }
.section h2 { font-size: clamp(2.2rem, 4.6vw, 3.7rem); letter-spacing: -.03em; line-height: .98; text-wrap: balance; }
.sub { color: var(--muted); font-size: clamp(1.03rem, 1.35vw, 1.15rem); margin-top: 18px; text-wrap: pretty; max-width: 40em; }

.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--rd, 0s); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Pairs (transit map) ---------- */
.pairs-body { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.graph-wrap { background: var(--card); border: 2px solid var(--ink); border-radius: 16px; padding: clamp(10px, 2.5vw, 24px); box-shadow: 6px 6px 0 var(--hard); }
[data-theme="dark"] .graph-wrap { box-shadow: none; }
.graph { width: 100%; height: auto; font-family: var(--font); }
.edge path { fill: none; stroke: var(--ink); stroke-opacity: .2; stroke-width: 5; stroke-linecap: round; stroke-dasharray: 2 10; transition: stroke .3s, stroke-opacity .3s, stroke-width .3s; }
.edge.on path { stroke: var(--orange); stroke-opacity: 1; stroke-width: 6; stroke-dasharray: 12 8; animation: march 1s linear infinite; }
@keyframes march { to { stroke-dashoffset: -20; } }
.edge .pkt { fill: var(--card); stroke: var(--ink); stroke-width: 2.5; opacity: 0; transition: opacity .3s; }
.edge .pkt.p2 { fill: var(--yellow); }
.edge.on .pkt { opacity: 1; }
.node-bg { fill: var(--card); stroke: var(--ink); stroke-width: 3; transition: fill .3s; }
.node-ring { fill: none; stroke: var(--orange); stroke-width: 3; stroke-dasharray: 4 5; opacity: 0; transition: opacity .3s; transform-box: fill-box; transform-origin: center; }
.node.on .node-ring { opacity: 1; animation: spin-ring 10s linear infinite; }
@keyframes spin-ring { to { transform: rotate(360deg); } }
.node text { font-family: var(--mono); font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; fill: var(--ink); }
.node use { color: var(--ink); }
.pair-list { display: grid; gap: 10px; }
.pair {
  display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; padding: 12px 16px; border-radius: 12px; cursor: pointer;
  background: var(--card); border: 1.5px solid var(--line); transition: border-color .2s, box-shadow .2s, transform .2s var(--ease);
}
.pair:hover { border-color: var(--ink); transform: translateX(3px); }
.pair[aria-pressed="true"] { border: 1.5px solid var(--ink); box-shadow: 4px 4px 0 var(--orange); transform: translate(-2px, -2px); }
.pair-ic { display: inline-flex; align-items: center; gap: 4px; flex: none; color: var(--ink); padding: 7px 9px; border-radius: 8px; border: 1.5px solid var(--line); background: var(--paper); }
.pair-ic svg { width: 22px; height: 22px; }
.pair-ic b { font-size: .8rem; color: var(--muted); }
.pair[aria-pressed="true"] .pair-ic { background: var(--orange); border-color: var(--ink-fixed); color: var(--ink-fixed); }
.pair[aria-pressed="true"] .pair-ic b { color: var(--ink-fixed); }
.pair-txt { display: flex; flex-direction: column; line-height: 1.3; }
.pair-txt strong { font-size: 1rem; }
.pair-txt small { color: var(--muted); font-size: .88rem; }

/* ---------- Steps ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 28px); position: relative; }
.step { position: relative; background: var(--card); border: 2px solid var(--ink); border-radius: 16px; padding: 12px 12px 26px; box-shadow: 5px 5px 0 var(--hard); transition: transform .2s var(--ease), box-shadow .2s; }
[data-theme="dark"] .step { box-shadow: none; border-color: var(--line); }
.step:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--hard); }
.step h3 { font-family: var(--display); font-size: 1.4rem; font-weight: 800; font-stretch: 90%; margin: 10px 12px 8px; }
.step p { color: var(--muted); margin: 0 12px; font-size: .98rem; }
.step-num { display: inline-block; margin: 18px 12px 0; font-family: var(--mono); font-size: .72rem; font-weight: 700; letter-spacing: .12em; padding: 4px 9px; border-radius: 6px; background: var(--ink); color: var(--paper); }
.step-num::before { content: "STOP 0"; }
.mock { height: 258px; border-radius: 10px; display: grid; place-items: center; padding: 16px; overflow: hidden; background: var(--paper-2); border: 1.5px solid var(--line);
  background-image: radial-gradient(circle at 1px 1px, var(--line) 1px, transparent 1.2px); background-size: 18px 18px; }
.mk-win { width: min(252px, 100%); background: var(--card); border: 1.5px solid var(--ink); border-radius: 10px; box-shadow: 3px 3px 0 var(--hard); padding: 12px; font-size: 12.5px; line-height: 1.3; }
[data-theme="dark"] .mk-win { box-shadow: none; }
.mk-head { display: flex; align-items: center; gap: 8px; font-weight: 750; margin-bottom: 8px; }
.mk-radar { position: relative; width: 14px; height: 14px; border-radius: 50%; background: var(--teal); border: 1.5px solid var(--ink); display: inline-block; flex: none; }
.mk-radar i { position: absolute; inset: -1.5px; border-radius: 50%; border: 1.5px solid var(--ink); opacity: 0; }
.mk-row { display: flex; align-items: center; gap: 10px; padding: 6px; border-radius: 8px; }
.mk-row + .mk-row { border-top: 1px dashed var(--line); }
.mk-row b, .mk-pop-head b { display: block; font-weight: 750; }
.mk-row small, .mk-pop-head small { color: var(--muted); font-size: 11px; }
.mk-av { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; color: var(--ink-fixed); flex: none; border: 1.5px solid var(--ink-fixed); }
.mk-av svg { width: 16px; height: 16px; }
.mk-av.c-mac { background: var(--c-mac); } .mk-av.c-win { background: var(--c-win); color: var(--paper-fixed); } .mk-av.c-and { background: var(--c-and); }
.mk-files { display: grid; gap: 6px; }
.mk-file { display: flex; align-items: center; gap: 8px; padding: 4px 8px; border-radius: 7px; background: var(--paper); border: 1px solid var(--line); font-weight: 650; }
.mk-file i { width: 16px; height: 16px; border-radius: 4px; flex: none; border: 1.2px solid var(--ink-fixed); }
.t-yel { background: var(--yellow); } .t-org { background: var(--orange); } .t-teal { background: var(--teal); }
.mk-file em { margin-left: auto; width: 18px; height: 18px; border-radius: 50%; background: var(--teal); color: var(--paper-fixed); display: grid; place-items: center; }
.mk-file em svg { width: 12px; height: 12px; }
.mk-label { font-family: var(--mono); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin: 10px 0 6px; }
.mk-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.mk-tile { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 7px 4px; border-radius: 8px; border: 1.5px solid var(--line); font-size: 11px; font-weight: 700; }
.mk-tile .mk-av { width: 26px; height: 26px; }
.mk-tile .mk-av svg { width: 14px; height: 14px; }
.mk-tile.pick { border-color: var(--ink); box-shadow: 3px 3px 0 var(--orange); }
.mk-send { display: block; margin: 10px 0 0 auto; width: max-content; padding: 5px 14px; border-radius: 7px; background: var(--orange); color: var(--ink-fixed); border: 1.5px solid var(--ink-fixed); font-weight: 750; font-size: 12px; }
.mk-pop { padding: 14px; display: grid; }
.mk-pop-head { display: flex; gap: 10px; align-items: center; grid-area: 1 / 1; }
.mk-btns, .mk-prog, .mk-done { grid-area: 2 / 1; margin-top: 14px; }
.mk-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mk-b { text-align: center; padding: 6px; border-radius: 7px; background: var(--card); border: 1.5px solid var(--ink); font-weight: 700; }
.mk-b.mk-acc { background: var(--orange); color: var(--ink-fixed); border-color: var(--ink-fixed); }
.mk-prog { height: 10px; border-radius: 6px; background: var(--paper-2); border: 1.5px solid var(--ink); overflow: hidden; align-self: center; opacity: 0; }
.mk-prog i { display: block; height: 100%; width: 100%; background: repeating-linear-gradient(-45deg, var(--orange) 0 6px, #ff7a45 6px 12px); transform-origin: left; transform: scaleX(.2); }
.mk-done { display: flex; align-items: center; gap: 8px; font-weight: 700; opacity: 0; align-self: center; }
.mk-done em { width: 20px; height: 20px; border-radius: 50%; background: var(--teal); color: var(--paper-fixed); display: grid; place-items: center; flex: none; border: 1.5px solid var(--ink); }
.mk-done em svg { width: 12px; height: 12px; }

.js .mock-1 .mk-row { animation: mkRow 6s var(--ease) infinite both; }
.js .mock-1 .r2 { animation-delay: .5s; } .js .mock-1 .r3 { animation-delay: 1s; }
.js .mock-1 .mk-radar i { animation: radar 2s ease-out infinite; }
.js .mock-1 .mk-radar i + i { animation-delay: 1s; }
@keyframes mkRow { 0%, 10% { opacity: 0; transform: translateY(8px); } 18%, 84% { opacity: 1; transform: none; } 92%, 100% { opacity: 0; transform: translateY(-4px); } }
@keyframes radar { 0% { opacity: .8; transform: scale(1); } 100% { opacity: 0; transform: scale(2.8); } }
.js .mock-2 .mk-file em { animation: mkCheck 6s var(--ease) infinite both; }
.js .mock-2 .f2 em { animation-delay: .35s; } .js .mock-2 .f3 em { animation-delay: .7s; }
.js .mock-2 .mk-tile.pick { animation: mkPick 6s var(--ease) infinite both; }
.js .mock-2 .mk-send { animation: mkSend 6s var(--ease) infinite both; }
@keyframes mkCheck { 0%, 8% { transform: scale(0); } 14%, 90% { transform: scale(1); } 96%, 100% { transform: scale(0); } }
@keyframes mkPick { 0%, 38% { border-color: var(--line); box-shadow: 0 0 0 var(--orange); transform: none; } 44%, 92% { border-color: var(--ink); box-shadow: 3px 3px 0 var(--orange); transform: translate(-2px, -2px); } 100% { border-color: var(--line); box-shadow: 0 0 0 var(--orange); transform: none; } }
@keyframes mkSend { 0%, 58% { transform: none; box-shadow: 2px 2px 0 var(--ink-fixed); } 66% { transform: translate(2px, 2px); box-shadow: 0 0 0 var(--ink-fixed); } 72%, 100% { transform: none; box-shadow: 2px 2px 0 var(--ink-fixed); } }
.js .mock-3 .mk-btns { animation: mkBtns 6s var(--ease) infinite both; }
.js .mock-3 .mk-acc { animation: mkAcc 6s var(--ease) infinite both; }
.js .mock-3 .mk-prog { animation: mkProgBox 6s linear infinite both; }
.js .mock-3 .mk-prog i { animation: mkProg 6s linear infinite both; }
.js .mock-3 .mk-done { animation: mkDone 6s var(--ease) infinite both; }
.js .mock-3 .mk-pop { animation: mkPop 6s var(--ease) infinite both; }
@keyframes mkPop { 0% { opacity: 0; transform: translateY(14px); } 7%, 93% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(-6px); } }
@keyframes mkAcc { 0%, 24% { transform: none; box-shadow: 2px 2px 0 var(--ink-fixed); } 28% { transform: translate(2px, 2px); box-shadow: 0 0 0 var(--ink-fixed); } 32%, 100% { transform: none; box-shadow: 2px 2px 0 var(--ink-fixed); } }
@keyframes mkBtns { 0%, 33% { opacity: 1; transform: none; } 37%, 100% { opacity: 0; transform: translateY(-6px); visibility: hidden; } }
@keyframes mkProgBox { 0%, 35% { opacity: 0; } 38%, 74% { opacity: 1; } 77%, 100% { opacity: 0; } }
@keyframes mkProg { 0%, 37% { transform: scaleX(.04); } 72%, 100% { transform: scaleX(1); } }
@keyframes mkDone { 0%, 76% { opacity: 0; transform: scale(.9); } 80%, 94% { opacity: 1; transform: none; } 100% { opacity: 0; } }
.js .mock:not(.play) * { animation-play-state: paused !important; }

/* ---------- Gallery ---------- */
.gallery { margin-top: clamp(60px, 8vw, 100px); }
.gallery-head { display: flex; justify-content: space-between; align-items: end; gap: 18px; flex-wrap: wrap; margin-bottom: clamp(26px, 4vw, 40px); }
.gallery-title { font-family: var(--display); font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 800; font-stretch: 90%; letter-spacing: -.02em; }
.tabs { display: inline-flex; padding: 4px; gap: 4px; border-radius: 12px; background: var(--card); border: 2px solid var(--ink); max-width: 100%; }
.tabs [role="tab"] { display: inline-flex; align-items: center; gap: 8px; border: 0; background: transparent; padding: 9px 16px; border-radius: 8px; font-weight: 750; color: var(--ink); cursor: pointer; transition: background-color .2s, color .2s; }
.tabs [role="tab"] svg { width: 20px; height: 20px; }
.tabs [role="tab"]:hover { background: var(--paper-2); }
.tabs [role="tab"][aria-selected="true"] { color: var(--paper); background: var(--ink); }
.panel { animation: panelIn .45s var(--ease); }
.panel:focus-visible { outline-offset: 8px; }
@keyframes panelIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.no-js .panel[hidden] { display: block; margin-top: 48px; }
.stage-desk { position: relative; padding-bottom: 9%; max-width: 1040px; margin: 0 auto; }
.window { margin: 0; width: 80%; border-radius: 12px; overflow: hidden; border: 2px solid var(--ink-fixed); box-shadow: 8px 8px 0 var(--hard); background: #1e1e1e; }
[data-theme="dark"] .window { border-color: var(--line); box-shadow: none; }
.window-bar { height: 32px; display: flex; align-items: center; padding: 0 14px; position: relative; }
.w-mac .window-bar { background: #1e1e1e; }
.lights { display: flex; gap: 8px; }
.lights i { width: 11px; height: 11px; border-radius: 50%; background: #5b5b5b; }
.window-title { position: absolute; left: 50%; transform: translateX(-50%); font-size: 12.5px; font-weight: 650; color: #b5b5b5; }
.w-win { background: #fff; }
.w-win .window-bar { background: #f3f3f3; border-bottom: 1px solid #e3e3e3; }
.w-win .window-title { position: static; transform: none; color: #333; font-weight: 600; font-size: 12px; }
.wctl { margin-left: auto; display: flex; gap: 18px; align-items: center; }
.wctl i { width: 10px; height: 10px; position: relative; display: block; }
.wctl i:nth-child(1)::before { content: ""; position: absolute; left: 0; right: 0; top: 5px; height: 1.2px; background: #444; }
.wctl i:nth-child(2) { border: 1.2px solid #444; }
.wctl i:nth-child(3)::before, .wctl i:nth-child(3)::after { content: ""; position: absolute; left: -1px; right: -1px; top: 4.5px; height: 1.2px; background: #444; transform: rotate(45deg); }
.wctl i:nth-child(3)::after { transform: rotate(-45deg); }
.window img { width: 100%; }
.float { position: absolute; border-radius: 12px; border: 2px solid var(--ink-fixed); box-shadow: 6px 6px 0 var(--hard); transition: transform .4s var(--ease); }
[data-theme="dark"] .float { box-shadow: 0 0 0 1px var(--line); border-color: #000; }
.fl-menubar { right: 0; top: -3%; width: 27%; }
.fl-popup { left: 5%; bottom: 0; width: 43%; }
.fl-wpop { right: 0; top: 10%; width: 33%; }
.fl-wrecv { right: 6%; bottom: 0; width: 31%; }
.stage-desk:hover .fl-menubar, .stage-desk:hover .fl-wpop { transform: translate(-3px, -6px); }
.stage-desk:hover .fl-popup, .stage-desk:hover .fl-wrecv { transform: translate(3px, -4px); }
.phones { display: flex; justify-content: center; gap: clamp(16px, 3vw, 40px); max-width: 1000px; margin: 0 auto; }
.phone-fig { margin: 0; flex: 0 1 250px; text-align: center; }
.phone { background: var(--ink-fixed); padding: 7px; border-radius: 34px; border: 2px solid var(--ink-fixed); box-shadow: 6px 6px 0 var(--orange); transition: transform .3s var(--ease), box-shadow .3s; }
.phone-fig:nth-child(2) .phone { box-shadow: 6px 6px 0 var(--teal); }
.phone-fig:nth-child(3) .phone { box-shadow: 6px 6px 0 var(--yellow); }
.phone img { border-radius: 27px; width: 100%; }
.phone-fig:hover .phone { transform: translate(-2px, -4px) rotate(-1deg); }
.phone-fig figcaption { margin-top: 16px; font-weight: 700; font-size: .95rem; }
.facts { list-style: none; padding: 0; margin: clamp(30px, 4vw, 46px) auto 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 2px solid var(--ink); max-width: 1040px; }
.facts li { padding: 14px 18px 0 0; font-size: .95rem; color: var(--muted); }
.facts li::before { content: "→"; color: var(--orange-text); font-weight: 800; margin-right: 8px; }
.facts strong { color: var(--ink); }

/* ---------- Features ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border: 2px solid var(--ink); border-radius: 16px; overflow: hidden; background: var(--card); box-shadow: 6px 6px 0 var(--hard); }
[data-theme="dark"] .feature-grid { box-shadow: none; border-color: var(--line); }
.feature { position: relative; padding: 28px 26px 30px; border-right: 1.5px solid var(--line); border-bottom: 1.5px solid var(--line); transition: background-color .25s; }
.feature:nth-child(3n) { border-right: 0; }
.feature:nth-last-child(-n+3) { border-bottom: 0; }
.feature:hover { background: var(--paper); }
.feature h3 { font-size: 1.14rem; margin: 18px 0 8px; }
.feature p { color: var(--muted); font-size: .97rem; }
.f-num { position: absolute; top: 24px; right: 24px; font-family: var(--mono); font-size: .72rem; color: var(--muted); letter-spacing: .1em; }
.f-icon { width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center; background: var(--orange); border: 2px solid var(--ink-fixed); box-shadow: 3px 3px 0 var(--ink-fixed); color: var(--ink-fixed); }
.feature:nth-child(3n+2) .f-icon { background: var(--teal); color: var(--paper-fixed); }
.feature:nth-child(3n+3) .f-icon { background: var(--yellow); }
[data-theme="dark"] .f-icon { box-shadow: none; }
.f-icon svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
.f-icon svg * { transform-box: fill-box; transform-origin: center; }
.f-icon .fill { fill: currentColor; stroke: none; }
.fi-files .f-back { opacity: .55; }
.fi-private .slash { stroke-dasharray: 23; }
.fi-tray svg .pop { transform-origin: top; }
.fi-open .heart { fill: currentColor; stroke: none; }
.js .feature .f-icon * { animation-play-state: paused; }
.js .feature.vis .f-icon * { animation-play-state: running; }
.js .fi-files .f-front { animation: fFront 4s var(--ease) infinite; }
.js .fi-files .f-back { animation: fBack 4s var(--ease) infinite; }
@keyframes fFront { 0%, 60%, 100% { transform: none; } 20%, 40% { transform: translate(-2px, 2px) rotate(-6deg); } }
@keyframes fBack { 0%, 60%, 100% { transform: none; } 20%, 40% { transform: translate(2px, -2px) rotate(6deg); } }
.js .fi-speed .ln { stroke-dasharray: 5 4; animation: dash 1s linear infinite; }
.js .fi-speed .l2 { animation-duration: .8s; } .js .fi-speed .l3 { animation-duration: 1.15s; } .js .fi-speed .l4 { animation-duration: .7s; }
@keyframes dash { to { stroke-dashoffset: -18; } }
.js .fi-resume .spin { animation: spin 4s var(--ease) infinite; }
@keyframes spin { 0%, 15% { transform: rotate(0); } 55%, 100% { transform: rotate(360deg); } }
.js .fi-hotspot .w1 { animation: wave 2.2s ease-in-out infinite; }
.js .fi-hotspot .w2 { animation: wave 2.2s ease-in-out .35s infinite; }
@keyframes wave { 0%, 100% { opacity: .3; } 40% { opacity: 1; } }
.js .fi-private .slash { animation: slash 4s var(--ease) infinite; }
@keyframes slash { 0%, 10% { stroke-dashoffset: 23; } 35%, 100% { stroke-dashoffset: 0; } }
.js .fi-apps rect { animation: app 3.6s var(--ease) infinite; }
.js .fi-apps .a2 { animation-delay: .12s; } .js .fi-apps .a3 { animation-delay: .24s; } .js .fi-apps .a4 { animation-delay: .36s; }
@keyframes app { 0%, 40%, 100% { transform: none; } 15% { transform: scale(.7); } 25% { transform: scale(1.1); } }
.js .fi-bell .bell { animation: bell 3.2s ease-in-out infinite; transform-origin: 50% 10%; }
@keyframes bell { 0%, 40%, 100% { transform: rotate(0); } 5% { transform: rotate(14deg); } 12% { transform: rotate(-12deg); } 19% { transform: rotate(8deg); } 26% { transform: rotate(-5deg); } 32% { transform: rotate(2deg); } }
.js .fi-tray .pop { animation: popdown 3.6s var(--ease) infinite; }
@keyframes popdown { 0%, 62%, 100% { opacity: 1; transform: none; } 74%, 80% { opacity: 0; transform: translateY(-4px) scaleY(.6); } }
.js .fi-open .heart { animation: beat 1.8s ease-in-out infinite; }
@keyframes beat { 0%, 60%, 100% { transform: scale(1); } 15% { transform: scale(1.25); } 30% { transform: scale(.95); } 45% { transform: scale(1.12); } }

/* ---------- Hotspot (night band) ---------- */
.hotspot { background: var(--paper); color: var(--ink); }
.hotspot-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.hotspot .kicker .rt::before { background: var(--paper); }
.ticks { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 12px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; }
.ticks svg { width: 22px; height: 22px; flex: none; color: var(--ink-fixed); background: var(--yellow); border-radius: 50%; padding: 4px; margin-top: 2px; }
.tip { margin-top: 30px; display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border-radius: 12px; border: 1.5px dashed var(--ink); color: var(--muted); font-size: .97rem; }
.tip strong { color: var(--ink); }
.tip-ic { width: 38px; height: 38px; border-radius: 10px; flex: none; display: grid; place-items: center; background: var(--yellow); border: 2px solid var(--ink-fixed); }
.tip-ic svg { width: 20px; height: 20px; fill: var(--ink-fixed); }
.hotspot-art { background: var(--card); border: 2px solid var(--ink); border-radius: 16px; padding: clamp(10px, 2.4vw, 24px); }
.hs { width: 100%; height: auto; font-family: var(--font); overflow: visible; }
.hs .bezel { fill: var(--card); stroke: var(--ink); stroke-width: 2; }
.hs .screen-flat { fill: var(--screen); stroke: var(--ink); stroke-width: 1.5; }
.hs .base { fill: var(--card); stroke: var(--ink); stroke-width: 2; }
.hs-badge rect { fill: var(--paper); stroke: var(--ink); stroke-width: 1.5; }
.hs-badge { color: var(--ink); }
.hs-badge text { font-family: var(--mono); font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; fill: var(--ink); }
.hs-h { font-size: 13px; font-weight: 800; fill: var(--ink); }
.hs-row { fill: var(--card); stroke: var(--ink); stroke-opacity: .4; }
.hs-t { font-size: 9.5px; font-weight: 650; fill: var(--ink); }
.hs-t.b { font-weight: 800; font-size: 12px; }
.hs-name { font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; fill: var(--muted); }
.tg-track { fill: var(--line); stroke: var(--ink); stroke-width: 1; }
.tg-knob { fill: var(--paper-fixed); stroke: var(--ink-fixed); stroke-width: 1; }
.hs-on-track { fill: var(--orange); }
.hs-on-knob { transform: translateX(10px); }
.hs-pill { fill: #0E7C7B; }
.hs-status text { font-size: 10px; font-weight: 750; fill: var(--paper-fixed); }
.hs-netbg { fill: rgba(255, 106, 46, .22); }
.hs-net { color: var(--ink); }
.hs-conn { font-size: 9.5px; font-weight: 800; fill: var(--teal-text); }
.hs-line { fill: var(--ink); opacity: .2; }
.hw { fill: none; stroke: var(--orange); stroke-width: 3; stroke-linecap: round; }
.hw.w2 { opacity: .7; } .hw.w3 { opacity: .4; }
.fx1 { transform: translate(250px, 150px); } .fx2 { transform: translate(206px, 176px); } .fx3 { transform: translate(296px, 168px); }
.js .hs .hs-on-track { animation: hsTrack 10s linear infinite both; }
.js .hs .hs-on-knob { animation: hsKnob 10s var(--ease) infinite both; }
.js .hs .hs-waves { animation: hsShow 10s linear infinite both; }
.js .hs .hw { animation: hsWave 1.6s ease-out infinite; }
.js .hs .hw.w2 { animation-delay: .2s; } .js .hs .hw.w3 { animation-delay: .4s; }
.js .hs .hs-netbg { animation: hsNet 10s linear infinite both; }
.js .hs .hs-conn, .js .hs .hs-status { animation: hsConn 10s linear infinite both; }
.js .hs .hs-flow { animation: hsFlow 10s linear infinite both; }
.js .hs .fx { animation: fxMove 2.4s cubic-bezier(.45, 0, .35, 1) infinite both; }
.js .hs .fx .fy { animation: fyArc 2.4s cubic-bezier(.45, 0, .55, 1) infinite both; }
.js .hs .fx2, .js .hs .fx2 .fy { animation-delay: .8s; }
.js .hs .fx3 { animation-name: fxMoveRev; animation-delay: 1.6s; }
.js .hs .fx3 .fy { animation-delay: 1.6s; }
@keyframes hsTrack { 0%, 8% { fill: rgba(241, 235, 223, .16); } 11%, 96% { fill: #FF6A2E; } 100% { fill: rgba(241, 235, 223, .16); } }
@keyframes hsKnob { 0%, 8% { transform: none; } 11%, 96% { transform: translateX(10px); } 100% { transform: none; } }
@keyframes hsShow { 0%, 11% { opacity: 0; } 15%, 94% { opacity: 1; } 98%, 100% { opacity: 0; } }
@keyframes hsWave { 0% { opacity: 0; } 30% { opacity: 1; } 100% { opacity: 0; } }
@keyframes hsNet { 0%, 20% { fill: rgba(255, 106, 46, 0); } 24%, 95% { fill: rgba(255, 106, 46, .22); } 100% { fill: rgba(255, 106, 46, 0); } }
@keyframes hsConn { 0%, 27% { opacity: 0; } 31%, 95% { opacity: 1; } 99%, 100% { opacity: 0; } }
@keyframes hsFlow { 0%, 33% { opacity: 0; } 37%, 91% { opacity: 1; } 95%, 100% { opacity: 0; } }
@keyframes fxMove { 0% { transform: translate(360px, 160px) scale(.6); opacity: 0; } 12% { opacity: 1; transform: translate(330px, 160px) scale(1); } 85% { opacity: 1; transform: translate(130px, 160px) scale(1); } 100% { transform: translate(104px, 160px) scale(.6); opacity: 0; } }
@keyframes fxMoveRev { 0% { transform: translate(104px, 160px) scale(.6); opacity: 0; } 12% { opacity: 1; transform: translate(130px, 160px) scale(1); } 85% { opacity: 1; transform: translate(330px, 160px) scale(1); } 100% { transform: translate(360px, 160px) scale(.6); opacity: 0; } }
@keyframes fyArc { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-46px); } }
.js .hs:not(.play) * { animation-play-state: paused !important; }

/* ---------- Download (tickets) ---------- */
.dl-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 2.2vw, 28px); align-items: start; }
.dl-card { position: relative; display: flex; flex-direction: column; gap: 18px; background: var(--card); border: 2px solid var(--ink); border-radius: 16px; padding: 24px; box-shadow: 6px 6px 0 var(--hard); }
[data-theme="dark"] .dl-card { box-shadow: none; border-left-color: var(--line); border-right-color: var(--line); border-bottom-color: var(--line); }
#dl-mac { border-top: 10px solid var(--c-mac); } #dl-win { border-top: 10px solid var(--c-win); } #dl-and { border-top: 10px solid var(--c-and); }
.dl-card.mine { box-shadow: 6px 6px 0 var(--orange); }
[data-theme="dark"] .dl-card.mine { border-color: var(--orange); box-shadow: none; }
.mine-badge { position: absolute; top: -14px; right: 18px; background: var(--yellow); color: var(--ink-fixed); border: 2px solid var(--ink-fixed); font-family: var(--mono); font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 3px 10px; border-radius: 6px; transform: rotate(3deg); }
.dl-top { display: flex; align-items: center; gap: 14px; margin-top: 6px; }
.dl-top h3 { font-family: var(--display); font-size: 1.7rem; font-weight: 800; font-stretch: 90%; }
.req { color: var(--muted); font-size: .93rem; }
.dl-ic { width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center; flex: none; border: 2px solid var(--ink-fixed); color: var(--ink-fixed); }
.dl-ic svg { width: 27px; height: 27px; }
#dl-mac .dl-ic { background: var(--c-mac); } #dl-win .dl-ic { background: var(--c-win); color: var(--paper-fixed); } #dl-and .dl-ic { background: var(--c-and); }
.specs { list-style: none; margin: 0; padding: 0; font-size: .92rem; }
.specs li { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px dashed var(--line); }
.specs li:last-child { border-bottom: 0; }
.specs span { color: var(--muted); font-family: var(--mono); font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; padding-top: 2px; }
.specs b { text-align: right; font-weight: 700; }
.perf { position: relative; height: 0; border-top: 2px dashed var(--line); margin: 0 -24px; }
.perf::before, .perf::after { content: ""; position: absolute; top: -12px; width: 22px; height: 22px; border-radius: 50%; background: var(--paper); border: 2px solid var(--ink); }
.perf::before { left: -12px; clip-path: inset(0 0 0 50%); }
.perf::after { right: -12px; clip-path: inset(0 50% 0 0); }
[data-theme="dark"] .perf::before, [data-theme="dark"] .perf::after { border-color: var(--line); }
.seg-group { display: grid; gap: 8px; }
.seg { display: grid; grid-template-columns: 1fr 1fr; padding: 3px; gap: 3px; border-radius: 10px; border: 1.5px solid var(--ink); background: var(--paper); }
.seg button { border: 0; background: transparent; padding: 7px 6px; border-radius: 7px; font-weight: 700; font-size: .9rem; color: var(--ink); cursor: pointer; transition: background-color .15s, color .15s; }
.seg button:hover { background: var(--paper-2); }
.seg button[aria-checked="true"] { background: var(--ink); color: var(--paper); }
.fine { font-size: .85rem; color: var(--muted); margin-top: -6px; }
.alt-links { margin: -6px 0 0; padding-left: 18px; font-size: .9rem; color: var(--muted); }
.qr { display: flex; align-items: center; gap: 14px; padding: 12px; border-radius: 10px; border: 1.5px dashed var(--line); }
.qr svg { flex: none; border-radius: 6px; border: 1.5px solid var(--ink-fixed); }
.qr p { font-size: .86rem; color: var(--muted); }
.install { border-top: 1.5px solid var(--line); padding-top: 14px; }
.install summary { cursor: pointer; font-weight: 750; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 10px; border-radius: 6px; }
.install summary::-webkit-details-marker { display: none; }
.install summary::after, .faq summary::after {
  content: "+"; flex: none; width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--ink); display: grid; place-items: center;
  font-family: var(--mono); font-weight: 700; font-size: 16px; line-height: 1; transition: transform .3s var(--ease), background-color .2s;
}
.install[open] summary::after, .faq details[open] summary::after { transform: rotate(45deg); background: var(--orange); color: var(--ink-fixed); border-color: var(--ink-fixed); }
.install ol { margin: 12px 0 0; padding-left: 20px; color: var(--muted); font-size: .93rem; display: grid; gap: 8px; }
.install b { color: var(--ink); }
details::details-content { block-size: 0; overflow: clip; transition: block-size .35s var(--ease), content-visibility .35s allow-discrete; }
details[open]::details-content { block-size: auto; }
.dl-foot { margin-top: clamp(30px, 4vw, 44px); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; color: var(--muted); font-size: .92rem; }

/* ---------- FAQ ---------- */
.faq-inner { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr); gap: clamp(24px, 5vw, 72px); align-items: start; }
.faq .section-head { position: sticky; top: 100px; }
.faq-list { border-top: 2px solid var(--ink); }
.faq details { border-bottom: 1.5px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 20px 2px; border-radius: 6px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary h3 { font-size: clamp(1.03rem, 1.6vw, 1.15rem); font-weight: 750; transition: color .2s; }
.faq summary:hover h3 { color: var(--orange-text); }
.faq .ans { padding: 0 2px 24px; color: var(--muted); display: grid; gap: 12px; max-width: 46em; }
.faq .ans b { color: var(--ink); }
.faq .ans ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; }

/* ---------- Final CTA (ticket) ---------- */
.final { padding-top: clamp(60px, 8vw, 100px); }
.final-card { position: relative; text-align: center; color: var(--ink-fixed); border-radius: 18px; padding: clamp(28px, 5vw, 56px) clamp(22px, 5vw, 60px) clamp(40px, 6vw, 70px); background: var(--orange); border: 2px solid var(--ink-fixed); box-shadow: 8px 8px 0 var(--hard); }
[data-theme="dark"] .final-card { box-shadow: none; }
.final-card::before, .final-card::after { content: ""; position: absolute; top: 50%; width: 30px; height: 30px; margin-top: -15px; border-radius: 50%; background: var(--paper); border: 2px solid var(--ink-fixed); }
.final-card::before { left: -16px; clip-path: inset(0 0 0 50%); }
.final-card::after { right: -16px; clip-path: inset(0 50% 0 0); }
.ticket-top { display: flex; justify-content: space-between; gap: 12px; font-family: var(--mono); font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; border-bottom: 2px dashed rgba(18, 32, 47, .55); padding-bottom: 14px; margin-bottom: clamp(26px, 4vw, 40px); }
.final-logo { margin: 0 auto 20px; }
.final-card h2 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); }
.final-card p:not(.ticket-top) { margin-top: 12px; font-size: 1.12rem; }
.final-card .btn-ghost { background: var(--paper-fixed); color: var(--ink-fixed); border-color: var(--ink-fixed); }
.final-card .btn { box-shadow: 4px 4px 0 var(--ink-fixed); }
.final-card .btn:hover { box-shadow: 5px 5px 0 var(--ink-fixed); }
.final-card .btn:active { box-shadow: 0 0 0 var(--ink-fixed); }

/* ---------- Footer ---------- */
.footer { background: var(--paper-2); padding: 40px 0 46px; font-size: .93rem; color: var(--muted); }
.footer-inner { display: grid; grid-template-columns: 1.2fr 1fr; gap: 20px 40px; align-items: start; }
.foot-brand p { margin-top: 10px; max-width: 28em; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: flex-end; }
.foot-links a { color: var(--ink); text-decoration: none; font-weight: 650; }
.foot-links a:hover { text-decoration: underline; text-decoration-color: var(--orange); }
.made { grid-column: 1 / -1; font-family: var(--mono); font-size: .76rem; letter-spacing: .03em; border-top: 1.5px dashed var(--line); padding-top: 18px; }
.made .heart { color: var(--orange-text); display: inline-block; animation: beat 1.8s ease-in-out infinite; }
.footer + .wave, .wave + .footer { margin: 0; }
.wave:has(+ .footer), .wave:has(+ .alt) { background: var(--ink); }

/* ---------- Simple pages ---------- */
.page { padding: clamp(48px, 7vw, 96px) 0; }
.prose { max-width: 780px; }
.prose h1 { font-size: clamp(2.5rem, 5.4vw, 4rem); letter-spacing: -.035em; line-height: .98; margin-bottom: 14px; }
.prose h2 { font-size: 1.7rem; margin: 44px 0 12px; }
.prose p, .prose li { color: var(--muted); }
.prose p + p { margin-top: 12px; }
.prose ul { padding-left: 22px; display: grid; gap: 10px; }
.prose b, .prose strong { color: var(--ink); }
.updated { font-family: var(--mono); font-size: .8rem; color: var(--muted); }
.nf { min-height: 70vh; display: grid; place-items: center; text-align: center; }
.nf h1 { font-size: clamp(2.4rem, 6vw, 4rem); letter-spacing: -.035em; margin: 26px 0 12px; }
.nf p { color: var(--muted); max-width: 30em; margin: 0 auto; }
.nf-plane { width: 110px; height: 110px; margin: 0 auto; animation: drift 4s ease-in-out infinite; }
@keyframes drift { 0%, 100% { transform: translate(0, 0) rotate(-4deg); } 50% { transform: translate(10px, -12px) rotate(4deg); } }

/* ---------- Responsive ---------- */
@media (max-width: 1040px) {
  .hero-inner { grid-template-columns: minmax(0, 1fr); }
  .hero-copy { max-width: 720px; }
  .hero-art { max-width: 700px; width: 100%; }
  .pairs-body { grid-template-columns: minmax(0, 1fr); }
  .graph-wrap { max-width: 600px; width: 100%; }
  .pair-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hotspot-inner { grid-template-columns: minmax(0, 1fr); }
  .hotspot-art { max-width: 640px; width: 100%; }
  .faq-inner { grid-template-columns: minmax(0, 1fr); }
  .faq .section-head { position: static; }
}
@media (max-width: 960px) {
  .steps { grid-template-columns: minmax(0, 1fr); max-width: 580px; }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature:nth-child(3n) { border-right: 1.5px solid var(--line); }
  .feature:nth-child(2n) { border-right: 0; }
  .feature:nth-last-child(-n+3) { border-bottom: 1.5px solid var(--line); }
  .feature:last-child { border-bottom: 0; }
  .dl-grid { grid-template-columns: minmax(0, 1fr); max-width: 600px; }
  .facts { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 700px) {
  body { font-size: 16px; }
  .stage-desk { padding-bottom: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
  .window { width: 100%; grid-column: 1 / -1; box-shadow: 5px 5px 0 var(--hard); }
  .float { position: static; width: 100%; box-shadow: 4px 4px 0 var(--hard); }
  .stage-desk:hover .float { transform: none; }
  .phones { justify-content: flex-start; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px 4px 22px; scrollbar-width: thin; }
  .phone-fig { flex: 0 0 64%; scroll-snap-align: center; }
  .pair-list { grid-template-columns: minmax(0, 1fr); }
  .feature-grid { grid-template-columns: minmax(0, 1fr); }
  .feature, .feature:nth-child(3n) { border-right: 0; }
  .feature:nth-last-child(-n+3) { border-bottom: 1.5px solid var(--line); }
  .feature:last-child { border-bottom: 0; }
  .qr { display: none; }
  .footer-inner { grid-template-columns: minmax(0, 1fr); }
  .foot-links { justify-content: flex-start; }
  .map-head .legend { display: none; }
  .dl-foot { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 420px) {
  .btn-lg { width: 100%; }
  .cta-row { width: 100%; }
  .tabs { width: 100%; }
  .tabs [role="tab"] { flex: 1; justify-content: center; padding: 9px 8px; gap: 6px; font-size: .95rem; }
  .tabs [role="tab"] svg { width: 18px; height: 18px; }
  .dl-card { padding: 22px 18px; }
  .perf { margin: 0 -18px; }
  .eyebrow { font-size: .72rem; padding: 5px 11px; }
  .ticket-top { flex-direction: column; align-items: center; gap: 4px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; transition-duration: .001ms !important; }
  .ripple { animation: none !important; opacity: 0; }
  .wave, .js .mock *, .js .hs *, .js .f-icon *, .made .heart, .nf-plane, .edge.on path, .node.on .node-ring { animation: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
