/* Right Here With You · rhwy.io
   Dark depth. Motion is built on native CSS scroll-driven animations; without support
   (or with reduced motion) the page falls back to a calm static layout. */

@font-face {
  font-family: "Archivo";
  src: url(/fonts/archivo.woff2) format("woff2-variations"), url(/fonts/archivo.woff2) format("woff2");
  font-weight: 100 900; font-stretch: 62% 125%; font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url(/fonts/jetbrains-mono.woff2) format("woff2-variations"), url(/fonts/jetbrains-mono.woff2) format("woff2");
  font-weight: 100 800; font-display: swap;
}

@property --h { syntax: "<number>"; inherits: true; initial-value: 220; }

:root {
  --bg: #04060b;
  --bg-2: #080d18;
  --panel: rgb(12 18 32 / .72);
  --line: rgb(140 170 220 / .16);
  --line-2: rgb(140 170 220 / .28);
  --text: #e6ecf5;
  --muted: #8a97ab;
  --dim: #5d6a80;
  --cyan: #5ce1ff;
  --warm: #ffb547;
  --warm-2: #ffd08a;
  --danger: #ff6b5e;
  --ok: #5fe3a1;
  --radius: 14px;
  --sans: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --pad: clamp(20px, 5vw, 64px);
  color-scheme: dark;
  accent-color: var(--warm);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 17px/1.6 var(--sans); font-stretch: 100%;
  text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  timeline-scope: --descent, --l-you, --l-screen, --l-browser, --l-device, --l-network, --l-internet;
}
img, svg { display: block; max-width: 100%; }
[hidden]:not(.toast) { display: none !important; }
a { color: var(--cyan); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #9ef0ff; }
:focus-visible { outline: 2px solid var(--warm); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { line-height: 1.08; margin: 0 0 .5em; font-weight: 800; letter-spacing: -.02em; text-wrap: balance; }
h2 { font-size: clamp(30px, 4.6vw, 56px); font-stretch: 92%; }
h3 { font-size: 20px; letter-spacing: -.01em; }
p { margin: 0 0 1em; text-wrap: pretty; }
.mono { font-family: var(--mono); }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--warm); color: #000; padding: 8px 14px; border-radius: 8px; font-weight: 700; }
.skip:focus { top: 12px; }
.eyebrow { font: 600 13px/1 var(--mono); letter-spacing: .18em; text-transform: uppercase; color: var(--cyan); margin-bottom: 18px; }
.lead { font-size: clamp(18px, 1.6vw, 21px); color: #c3cddc; max-width: 62ch; }
.depth { font: 600 12px/1 var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--cyan); margin-bottom: 14px; }

/* ---------------------------------------------------------------- buttons, inputs */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 22px; border-radius: 999px; border: 1px solid var(--line-2);
  background: rgb(255 255 255 / .04); color: var(--text); font: 650 15px/1 var(--sans);
  text-decoration: none; cursor: pointer; transition: background .2s, border-color .2s, transform .2s, box-shadow .2s;
}
.btn:hover { background: rgb(255 255 255 / .08); color: var(--text); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-warm { background: var(--warm); border-color: var(--warm); color: #1a1003; box-shadow: 0 0 0 0 rgb(255 181 71 / .5), 0 8px 30px -8px rgb(255 181 71 / .55); }
.btn-warm:hover { background: var(--warm-2); color: #1a1003; }
.btn-ghost { background: transparent; }
.btn-sm { min-height: 36px; padding: 0 14px; font-size: 14px; }
.link-btn { background: none; border: 0; padding: 0; color: var(--cyan); font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.link-btn:hover { color: #9ef0ff; }
.input {
  width: 100%; min-height: 48px; padding: 12px 16px; border-radius: 12px; border: 1px solid var(--line-2);
  background: rgb(4 8 16 / .7); color: var(--text); font: 400 16px/1.4 var(--sans);
  transition: border-color .2s, box-shadow .2s;
}
.input::placeholder { color: var(--dim); }
.input:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 4px rgb(92 225 255 / .12); }
textarea.input { resize: vertical; min-height: 120px; }
select.input { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 22px) 52%, calc(100% - 16px) 52%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
@supports (appearance: base-select) {
  select.input, select.input::picker(select) { appearance: base-select; }
  select.input { background-image: none; padding-right: 16px; }
  select.input::picker(select) { background: #0c1322; border: 1px solid var(--line-2); border-radius: 12px; padding: 6px; color: var(--text); }
  select.input option { padding: 10px 12px; border-radius: 8px; }
  select.input option:hover, select.input option:focus-visible { background: rgb(92 225 255 / .1); }
  select.input option:checked { color: var(--warm); }
  select.input::picker-icon { color: var(--muted); }
}

/* ---------------------------------------------------------------- top bar */
.top {
  position: fixed; inset: 0 0 auto; z-index: 50; display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 14px var(--pad); background: linear-gradient(rgb(4 6 11 / .85), rgb(4 6 11 / 0));
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; }
.brand:hover { color: var(--text); }
.brand-name { font: 700 16px/1 var(--sans); letter-spacing: -.005em; margin: 0; }
.brand-name b { color: var(--warm); font-weight: 800; }
.brand-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--warm); box-shadow: 0 0 0 4px rgb(255 181 71 / .15), 0 0 18px var(--warm); animation: breathe 3.2s ease-in-out infinite; }
@keyframes breathe { 50% { box-shadow: 0 0 0 8px rgb(255 181 71 / .06), 0 0 28px var(--warm); } }
.top-nav { display: flex; align-items: center; gap: clamp(12px, 2.4vw, 28px); }
.top-nav a:not(.btn) { color: #c3cddc; text-decoration: none; font-size: 15px; font-weight: 550; }
.top-nav a:not(.btn):hover { color: var(--text); }
@media (max-width: 760px) { .top-nav a:not(.btn) { display: none; } .brand-name { font-size: 15px; } }

/* ---------------------------------------------------------------- hero */
.hero { position: relative; min-height: 100svh; display: grid; place-items: center; padding: 120px var(--pad) 80px; overflow: clip; isolation: isolate; }
.hero-planes { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hp { position: absolute; inset: 0; }
.hp-stars {
  background:
    radial-gradient(1px 1px at 12% 18%, #fff8 50%, transparent 51%), radial-gradient(1px 1px at 72% 12%, #fff6 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 38% 72%, #fff7 50%, transparent 51%), radial-gradient(1px 1px at 86% 64%, #fff5 50%, transparent 51%),
    radial-gradient(1px 1px at 22% 88%, #fff6 50%, transparent 51%), radial-gradient(1.5px 1.5px at 58% 34%, #fff5 50%, transparent 51%),
    radial-gradient(1px 1px at 92% 30%, #fff7 50%, transparent 51%), radial-gradient(1px 1px at 6% 52%, #fff5 50%, transparent 51%);
  background-size: 420px 420px;
}
.hp-grid {
  inset: 45% -50% -40%; transform-origin: 50% 0; transform: perspective(500px) rotateX(62deg);
  background-image: linear-gradient(rgb(92 225 255 / .16) 1px, transparent 1px), linear-gradient(90deg, rgb(92 225 255 / .16) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(transparent, #000 30%, #000 60%, transparent);
}
.hp-rings { margin: auto; width: min(120vmin, 1100px); height: auto; aspect-ratio: 1; inset: 0; }
.hp-rings circle { fill: none; stroke: rgb(92 225 255 / .18); stroke-width: 1; vector-effect: non-scaling-stroke; }
.hp-rings circle:nth-child(2) { stroke: rgb(92 225 255 / .13); }
.hp-rings circle:nth-child(3) { stroke: rgb(92 225 255 / .1); stroke-dasharray: 4 10; }
.hp-rings circle:nth-child(4) { stroke: rgb(92 225 255 / .07); }
.hp-rings circle:nth-child(5) { stroke: rgb(92 225 255 / .05); }
.hp-rings .ping { stroke: var(--warm); stroke-width: 1.5; transform-origin: center; transform-box: fill-box; animation: ping 4s cubic-bezier(.2,.6,.3,1) infinite; }
@keyframes ping { from { transform: scale(.4); opacity: .9; } to { transform: scale(4.2); opacity: 0; } }
.hp-glow { background: radial-gradient(40% 35% at 50% 52%, rgb(255 181 71 / .14), transparent 70%), radial-gradient(70% 60% at 50% 60%, rgb(40 90 200 / .22), transparent 70%); }
.hp-dust {
  background:
    radial-gradient(2px 2px at 20% 30%, rgb(92 225 255 / .5), transparent 60%), radial-gradient(3px 3px at 80% 70%, rgb(92 225 255 / .35), transparent 60%),
    radial-gradient(2px 2px at 65% 20%, rgb(255 181 71 / .5), transparent 60%), radial-gradient(3px 3px at 30% 80%, rgb(92 225 255 / .3), transparent 60%);
  background-size: 300px 300px;
}
.hero-copy { position: relative; max-width: 980px; text-align: center; }
.hero-title { font-size: clamp(54px, 11vw, 168px); line-height: .92; font-weight: 850; font-stretch: 88%; letter-spacing: -.045em; margin-bottom: 28px; }
.ht-line { display: inline-block; }
.ht-line:last-child { background: linear-gradient(180deg, #fff 10%, var(--warm-2) 70%, var(--warm)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { margin: 0 auto 34px; }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.scroll-hint { position: absolute; bottom: 28px; left: 50%; translate: -50% 0; width: 26px; height: 42px; border: 1.5px solid var(--line-2); border-radius: 14px; }
.scroll-hint span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--warm); animation: hint 1.8s ease-in-out infinite; }
@keyframes hint { 60% { transform: translateY(12px); opacity: 0; } 61% { transform: none; opacity: 0; } }

/* ---------------------------------------------------------------- descent (static base layout) */
.descent { position: relative; background: linear-gradient(var(--bg), var(--bg-2) 20%, #070a17 80%, var(--bg)); }
.scene { --h: 220; position: relative; min-height: 88svh; display: grid; align-items: center; padding: 90px var(--pad); overflow: clip; isolation: isolate; border-top: 1px solid var(--line); }
.scene[data-layer="you"] { --h: 40; }
.scene[data-layer="screen"] { --h: 10; }
.scene[data-layer="browser"] { --h: 205; }
.scene[data-layer="device"] { --h: 250; }
.scene[data-layer="network"] { --h: 175; }
.scene[data-layer="internet"] { --h: 280; }
.glow { position: absolute; inset: 0; z-index: -2; background: radial-gradient(60% 55% at 68% 50%, oklch(55% .16 var(--h) / .28), transparent 70%), radial-gradient(30% 30% at 70% 50%, oklch(75% .14 var(--h) / .18), transparent 70%); }
.space { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.fly { position: absolute; left: 50%; top: 50%; translate: calc(-50% + var(--x, 0px)) calc(-50% + var(--y, 0px)); }
.art { --x: 22vw; --y: 0px; --z0: -300px; width: min(44vw, 560px); height: auto; overflow: visible; opacity: .85; }
.art * { fill: none; stroke: rgb(140 200 255 / .55); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.art .warm { stroke: var(--warm); }
.art .danger { stroke: var(--danger); }
.art .waves { animation: breathe-o 1.6s ease-in-out infinite; }
@keyframes breathe-o { 50% { opacity: .3; } }
.chip {
  white-space: nowrap; padding: 9px 14px; border-radius: 10px; font-size: 14px; font-weight: 550; color: #d6e2f2;
  background: rgb(14 22 40 / .78); border: 1px solid var(--line-2); box-shadow: 0 10px 40px -10px rgb(0 0 0 / .8), inset 0 1px 0 rgb(255 255 255 / .05);
}
.chip.mono { font-family: var(--mono); font-size: 13px; }
.chip.danger { color: #ffc2bc; border-color: rgb(255 107 94 / .5); background: rgb(50 12 14 / .8); }
.chip.note { background: #ffe58a; color: #3a2c00; border-color: #ffe58a; font-family: var(--mono); rotate: -4deg; }
.c1 { --x: -30vw; --y: -27vh; --z0: 100px; }
.c2 { --x: 28vw;  --y: -31vh; --z0: -200px; }
.c3 { --x: -24vw; --y: 29vh;  --z0: 0px; }
.c4 { --x: 31vw;  --y: 26vh;  --z0: -350px; }
.c5 { --x: 4vw;   --y: -39vh; --z0: -300px; }
.c6 { --x: -2vw;  --y: 38vh;  --z0: 150px; }
.panel {
  position: relative; max-width: 470px; padding: 30px 30px 24px; border-radius: 18px; background: var(--panel);
  border: 1px solid var(--line); backdrop-filter: blur(14px) saturate(1.2); box-shadow: 0 30px 80px -30px rgb(0 0 0 / .8);
}
.panel h2 { font-size: clamp(28px, 3.4vw, 42px); }
.panel p { color: #c3cddc; }
.here { margin: 18px 0 0; padding-top: 16px; border-top: 1px solid var(--line); font-size: 15px; }
.here span { color: var(--warm); font-weight: 700; }
.here a { color: var(--warm-2); }
.spacers { display: none; }
.bottom { padding: 18vh var(--pad); text-align: center; }
.bottom-line { font-size: clamp(26px, 3.6vw, 44px); font-weight: 750; letter-spacing: -.02em; line-height: 1.2; margin: 0; }
.bottom-line em { font-style: normal; color: var(--warm); }

/* depth gauge */
.gauge { position: fixed; left: clamp(10px, 2vw, 28px); top: 50%; translate: 0 -50%; z-index: 40; display: flex; gap: 12px; opacity: 0; pointer-events: none; }
.gauge-track { position: relative; width: 2px; height: 240px; background: linear-gradient(var(--line-2), rgb(140 170 220 / .06)); border-radius: 2px; }
.gauge-orb { position: absolute; left: 50%; top: 0; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: var(--warm); box-shadow: 0 0 0 5px rgb(255 181 71 / .14), 0 0 22px var(--warm); }
.gauge-stops { list-style: none; margin: 0; padding: 0; height: 240px; display: flex; flex-direction: column; justify-content: space-between; translate: 0 -8px; }
.gauge-stops li { font: 600 10.5px/16px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--dim); transition: color .3s; }
.gauge-stops li.on { color: var(--warm); }
@media (max-width: 900px) { .gauge-stops { display: none; } }

/* static fallback tweaks (no scroll timelines, or reduced motion) */
.scene .art { translate: none; left: auto; top: 50%; right: 4vw; transform: translateY(-50%); width: min(40vw, 460px); opacity: .5; }
.scene .chip { font-size: 12px; opacity: .55; }
@media (max-width: 760px) {
  .scene { padding: 80px 20px; min-height: auto; }
  .scene .art { right: -10vw; width: 80vw; opacity: .25; }
  .scene .chip { display: none; }
}

/* ---------------------------------------------------------------- scroll-driven depth (progressive enhancement) */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    /* hero: planes move at different rates as you scroll away from it */
    .hp { animation: linear both; animation-timeline: scroll(root); animation-range: 0 100svh; }
    .hp-stars { animation-name: hp-stars; }
    .hp-grid  { animation-name: hp-grid; }
    .hp-rings { animation-name: hp-rings; }
    .hp-glow  { animation-name: hp-glow; }
    .hp-dust  { animation-name: hp-dust; }
    .hero-copy { animation: hero-copy linear both; animation-timeline: scroll(root); animation-range: 0 90svh; }
    .scroll-hint { animation: fade-out linear both; animation-timeline: scroll(root); animation-range: 0 20svh; }
    @keyframes hp-stars { to { transform: translateY(-12vh) scale(1.15); } }
    @keyframes hp-grid  { to { transform: perspective(500px) rotateX(62deg) translateY(30%); opacity: .2; } }
    @keyframes hp-rings { to { transform: scale(3.4); opacity: 0; } }
    @keyframes hp-glow  { to { transform: scale(1.6); opacity: .3; } }
    @keyframes hp-dust  { to { transform: translateY(-40vh) scale(2.2); opacity: 0; } }
    @keyframes hero-copy { to { transform: translateY(-18vh) scale(.92); opacity: 0; filter: blur(6px); } }
    @keyframes fade-out { to { opacity: 0; } }

    /* descent: one sticky stage, six scenes stacked in it, each driven by its own spacer's timeline */
    .descent { view-timeline: --descent block; }
    .stage { position: sticky; top: 0; height: 100svh; overflow: clip; }
    .scene { position: absolute; inset: 0; min-height: 0; border: 0; padding: 0 var(--pad); padding-left: calc(var(--pad) + 70px); }
    .space { perspective: 1000px; perspective-origin: 50% 50%; }
    .spacers { display: block; }
    .spacer { height: 150svh; }
    .spacer[data-layer="you"]      { view-timeline: --l-you block; }
    .spacer[data-layer="screen"]   { view-timeline: --l-screen block; }
    .spacer[data-layer="browser"]  { view-timeline: --l-browser block; }
    .spacer[data-layer="device"]   { view-timeline: --l-device block; }
    .spacer[data-layer="network"]  { view-timeline: --l-network block; }
    .spacer[data-layer="internet"] { view-timeline: --l-internet block; }
    .scene[data-layer="you"]      * { animation-timeline: --l-you; }
    .scene[data-layer="screen"]   * { animation-timeline: --l-screen; }
    .scene[data-layer="browser"]  * { animation-timeline: --l-browser; }
    .scene[data-layer="device"]   * { animation-timeline: --l-device; }
    .scene[data-layer="network"]  * { animation-timeline: --l-network; }
    .scene[data-layer="internet"] * { animation-timeline: --l-internet; }

    .scene .art, .scene .chip { right: auto; top: 50%; left: 50%; opacity: 1; display: block; translate: calc(-50% + var(--x, 0px)) calc(-50% + var(--y, 0px)); }
    .scene .art { width: min(44vw, 560px); transform: none; }
    .scene .chip { font-size: 14px; }
    .scene .chip.mono { font-size: 13px; }
    .fly { animation-name: fly; animation-duration: auto; animation-fill-mode: both; animation-timing-function: linear; animation-range: cover 0% cover 100%; will-change: transform, opacity; }
    .art { animation-name: fly-art; }
    @keyframes fly {
      0%   { transform: translateZ(calc(var(--z0) - 1400px)); opacity: 0; }
      25%  { opacity: 1; }
      55%  { transform: translateZ(var(--z0)); }
      78%  { opacity: 1; }
      100% { transform: translateZ(calc(var(--z0) + 750px)); opacity: 0; }
    }
    @keyframes fly-art {
      0%   { transform: translateZ(-1800px) rotateY(-14deg); opacity: 0; }
      30%  { opacity: .9; }
      50%  { transform: translateZ(-300px) rotateY(0deg); }
      78%  { opacity: .7; }
      100% { transform: translateZ(700px) rotateY(10deg); opacity: 0; }
    }
    .glow { animation: glow linear both; animation-range: cover 0% cover 100%; }
    @keyframes glow { 0% { opacity: 0; transform: scale(.6); } 35%, 65% { opacity: 1; } 100% { opacity: 0; transform: scale(1.5); } }
    .panel { animation: panel linear both; animation-range: cover 0% cover 100%; }
    @keyframes panel {
      0%, 29% { opacity: 0; transform: translateY(60px) scale(.96); visibility: hidden; filter: blur(8px); }
      30% { visibility: visible; }
      40%, 60% { opacity: 1; transform: none; filter: none; }
      71% { visibility: visible; }
      72%, 100% { opacity: 0; transform: translateY(-60px) scale(.98); visibility: hidden; filter: blur(8px); }
    }
    /* gauge follows you down */
    .gauge { animation: gauge-show linear both; animation-timeline: --descent; animation-range: cover 8% cover 92%; }
    @keyframes gauge-show { 0% { opacity: 0; } 6%, 94% { opacity: 1; } 100% { opacity: 0; } }
    .gauge-orb { animation: orb linear both; animation-timeline: --descent; animation-range: contain 0% contain 100%; }
    @keyframes orb { from { top: 0; } to { top: 100%; } }

    @media (max-width: 760px) {
      .scene { align-items: end; padding: 0 16px 28px; }
      .panel { padding: 22px 20px 18px; }
      .scene .art { --x: 0px; --y: -22vh; width: 86vw; }
      .scene .chip { display: block; font-size: 12px; }
      .scene .chip.mono { font-size: 11.5px; }
      .c1 { --x: -18vw; } .c2 { --x: 16vw; } .c3 { --x: -14vw; --y: -6vh; } .c4 { --x: 14vw; --y: 2vh; } .c6 { display: none !important; }
    }
  }
}

/* ---------------------------------------------------------------- sections: tools, how, contact */
.tools-intro, .tool, .how, .contact { padding: clamp(80px, 12vh, 140px) var(--pad); max-width: 1240px; margin: 0 auto; }
.tools-intro { padding-bottom: 40px; }
.tool-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-top: 40px; }
.tool-card {
  display: grid; gap: 6px; padding: 24px; border-radius: var(--radius); border: 1px solid var(--line); background: linear-gradient(160deg, rgb(20 30 54 / .6), rgb(8 12 22 / .6));
  color: var(--text); text-decoration: none; transition: border-color .25s, transform .25s, background .25s;
}
.tool-card:hover { color: var(--text); border-color: rgb(92 225 255 / .45); transform: translateY(-3px); }
.tool-card.warm:hover { border-color: rgb(255 181 71 / .6); }
.tool-card b { font-size: 21px; letter-spacing: -.01em; }
.tool-card span:last-child { color: var(--muted); font-size: 15px; }
.tc-k { font: 600 12px/1 var(--mono); color: var(--cyan); letter-spacing: .2em; }
.tool-card.warm .tc-k { color: var(--warm); }
.tool { border-top: 1px solid var(--line); }
.tool-head { max-width: 760px; margin-bottom: 32px; }
.tool-head p:last-child { color: #c3cddc; font-size: 18px; }
.tool-warm .depth { color: var(--warm); }

/* entrance animation for content sections (view timelines) */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .tool-head, .tool-cards, .how-grid article, .contact-form, .contact-copy, .lx-form {
      animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 60%;
    }
    @keyframes rise { from { opacity: 0; transform: translateY(40px); } }
  }
}

/* Link X-ray */
.lx-form { display: flex; gap: 12px; }
.lx-form .input { flex: 1; font-family: var(--mono); font-size: 15px; }
@media (max-width: 640px) { .lx-form { flex-direction: column; } }
.lx-examples { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 14px 0 0; font-size: 14px; color: var(--muted); }
.lx-out:empty { display: none; }
.lx-out { margin-top: 32px; display: grid; gap: 18px; }
.lx-verdict { padding: 26px 28px; border-radius: 18px; border: 1px solid var(--line-2); background: rgb(12 18 32 / .7); }
.lx-verdict[data-level="danger"] { border-color: rgb(255 107 94 / .6); background: linear-gradient(160deg, rgb(70 14 16 / .55), rgb(12 18 32 / .7)); }
.lx-verdict[data-level="warn"] { border-color: rgb(255 181 71 / .55); background: linear-gradient(160deg, rgb(60 40 8 / .45), rgb(12 18 32 / .7)); }
.lx-verdict[data-level="ok"] { border-color: rgb(95 227 161 / .4); }
.lx-word { font-size: clamp(26px, 3.2vw, 38px); font-weight: 800; letter-spacing: -.02em; margin: 0 0 6px; }
.lx-verdict[data-level="danger"] .lx-word { color: var(--danger); }
.lx-verdict[data-level="warn"] .lx-word { color: var(--warm); }
.lx-verdict[data-level="ok"] .lx-word { color: var(--ok); }
.lx-dest { margin: 16px 0 0; }
.lx-dest-k { font: 600 12px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); display: block; margin-bottom: 8px; }
.lx-host { font: 500 clamp(17px, 2.2vw, 24px)/1.35 var(--mono); word-break: break-all; }
.lx-host .sub { color: var(--dim); }
.lx-host .reg { color: #fff; background: rgb(92 225 255 / .12); border-radius: 6px; padding: 0 4px; box-shadow: inset 0 -2px 0 var(--cyan); }
.lx-verdict[data-level="danger"] .lx-host .reg { background: rgb(255 107 94 / .16); box-shadow: inset 0 -2px 0 var(--danger); }
.lx-host .odd { color: var(--danger); text-decoration: underline wavy; text-underline-offset: 4px; }
.lx-chain { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; counter-reset: hop; }
.lx-chain li { counter-increment: hop; display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; padding: 12px 16px; border-radius: 12px; border: 1px dashed var(--line-2); font-size: 14px; }
.lx-chain li::before { content: counter(hop); grid-row: span 2; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: rgb(92 225 255 / .1); color: var(--cyan); font: 600 12px var(--mono); }
.lx-chain .via { color: var(--muted); }
.lx-chain code { font-family: var(--mono); word-break: break-all; color: var(--text); }
.lx-findings { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.lx-findings li { display: grid; grid-template-columns: 14px 1fr; gap: 14px; padding: 16px 18px; border-radius: 12px; background: rgb(12 18 32 / .55); border: 1px solid var(--line); }
.lx-findings li::before { content: ""; width: 10px; height: 10px; margin-top: 7px; border-radius: 50%; background: var(--muted); }
.lx-findings li[data-level="danger"]::before { background: var(--danger); box-shadow: 0 0 12px var(--danger); }
.lx-findings li[data-level="warn"]::before { background: var(--warm); }
.lx-findings li[data-level="ok"]::before { background: var(--ok); }
.lx-findings b { display: block; margin-bottom: 2px; }
.lx-findings span { color: #b5c0d0; font-size: 15px; }
.lx-findings code { font-family: var(--mono); font-size: .92em; word-break: break-all; }
.lx-clean { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line); }
.lx-clean code { flex: 1; min-width: 0; font: 13px/1.5 var(--mono); word-break: break-all; color: #c3cddc; }
.lx-note { color: var(--muted); font-size: 14px; }
.lx-error { color: var(--danger); }

/* Call Companion */
.call { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
@media (max-width: 900px) { .call { grid-template-columns: 1fr; } }
.call-bar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.call-timer { font-size: 22px; color: var(--warm); display: inline-flex; align-items: center; gap: 8px; }
.call-timer::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--danger); animation: breathe-o 1s infinite; }
.call-meter { --lvl: 0; padding: 18px 20px; border-radius: 14px; border: 1px solid var(--line); background: rgb(12 18 32 / .6); margin-bottom: 14px; }
.cm-bar { height: 8px; border-radius: 4px; background: rgb(255 255 255 / .06); overflow: hidden; }
.cm-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--ok), var(--warm) 50%, var(--danger)); border-radius: 4px; clip-path: inset(0 calc(100% - var(--lvl) * 1%) 0 0 round 4px); transition: clip-path .5s cubic-bezier(.2,.8,.2,1); }
.cm-word { margin: 12px 0 0; font-weight: 700; font-size: 19px; }
.call-meter[data-level="1"] .cm-word { color: var(--warm-2); }
.call-meter[data-level="2"] .cm-word { color: var(--warm); }
.call-meter[data-level="3"] .cm-word { color: var(--danger); }
.call-meter[data-level="3"] { border-color: rgb(255 107 94 / .55); box-shadow: 0 0 0 4px rgb(255 107 94 / .08); }
.call-say { padding: 20px 22px; border-radius: 14px; background: linear-gradient(160deg, rgb(255 181 71 / .14), rgb(255 181 71 / .04)); border: 1px solid rgb(255 181 71 / .45); margin-bottom: 18px; }
.cs-k { font: 600 12px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--warm); margin-bottom: 10px; }
.cs-line { font-size: clamp(20px, 2.4vw, 26px); font-weight: 700; line-height: 1.3; margin: 0; letter-spacing: -.01em; }
.call-chips { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.cc {
  text-align: left; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line-2); background: rgb(12 18 32 / .5);
  color: var(--text); font: 550 15px/1.35 var(--sans); cursor: pointer; transition: border-color .2s, background .2s, transform .15s;
}
.cc:hover { border-color: rgb(92 225 255 / .45); }
.cc:active { transform: scale(.98); }
.cc[aria-pressed="true"] { border-color: var(--warm); background: rgb(255 181 71 / .1); }
.cc[aria-pressed="true"][data-sev="3"] { border-color: var(--danger); background: rgb(255 107 94 / .12); }
.cc small { display: block; color: var(--muted); font-weight: 400; font-size: 13px; margin-top: 4px; }
.cc[aria-pressed="true"] small { color: #d7c3a6; }
.call-side { padding: 20px; border-radius: 14px; border: 1px solid var(--line); background: rgb(8 12 22 / .6); position: sticky; top: 90px; }
.call-side h3 { font-size: 15px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); font-weight: 650; }
.call-feed { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 8px; font-size: 14px; max-height: 360px; overflow: auto; }
.call-feed li { display: grid; grid-template-columns: 52px 1fr; gap: 8px; }
.call-feed time { font: 12px/1.6 var(--mono); color: var(--dim); }
.call-after { margin-top: 20px; padding: 20px 22px; border-radius: 14px; border: 1px solid var(--line-2); background: rgb(12 18 32 / .6); }
.call-after ol { margin: 0; padding-left: 20px; display: grid; gap: 6px; color: #c3cddc; }

/* Triage */
.triage { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 24px; align-items: start; }
@media (max-width: 960px) { .triage { grid-template-columns: 1fr; } }
.tr-paths { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.tr-path { text-align: left; padding: 18px; border-radius: 14px; border: 1px solid var(--line-2); background: rgb(12 18 32 / .55); color: var(--text); font: 600 16px/1.35 var(--sans); cursor: pointer; transition: border-color .2s, transform .2s, background .2s; }
.tr-path:hover { border-color: var(--warm); background: rgb(255 181 71 / .06); transform: translateY(-2px); }
.tr-path span { display: block; font-size: 22px; margin-bottom: 8px; }
.tr-card { padding: 26px; border-radius: 18px; border: 1px solid var(--line-2); background: rgb(12 18 32 / .6); }
.tr-card h3 { font-size: 24px; }
.tr-calm { color: var(--warm-2); font-size: 17px; }
.tr-back { margin-bottom: 18px; }
.tr-q { display: grid; grid-template-columns: 1fr auto; gap: 12px 18px; align-items: center; padding: 14px 0; border-top: 1px solid var(--line); }
.tr-q p { margin: 0; font-weight: 550; }
.seg { display: inline-flex; border: 1px solid var(--line-2); border-radius: 999px; overflow: hidden; }
.seg button { background: none; border: 0; color: var(--muted); font: 600 14px var(--sans); padding: 8px 14px; cursor: pointer; min-height: 38px; }
.seg button + button { border-left: 1px solid var(--line-2); }
.seg button[aria-pressed="true"] { background: var(--warm); color: #1a1003; }
@media (max-width: 560px) { .tr-q { grid-template-columns: 1fr; } }
.tr-plan { display: grid; gap: 22px; margin-top: 24px; }
.tr-phase h4 { margin: 0 0 10px; font: 650 13px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--warm); display: flex; align-items: center; gap: 10px; }
.tr-phase h4::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.tr-phase[data-phase="hour"] h4 { color: var(--cyan); }
.tr-phase[data-phase="today"] h4 { color: var(--muted); }
.tr-step { display: grid; grid-template-columns: 26px 1fr; gap: 12px; padding: 12px 14px; border-radius: 12px; cursor: pointer; transition: background .2s; }
.tr-step:hover { background: rgb(255 255 255 / .03); }
.tr-step input { width: 22px; height: 22px; margin: 2px 0 0; cursor: pointer; }
.tr-step b { display: block; font-weight: 650; }
.tr-step span { color: #b5c0d0; font-size: 15px; }
.tr-step:has(input:checked) b { text-decoration: line-through; text-decoration-color: var(--warm); color: var(--muted); }
.tr-done { margin-top: 26px; padding: 20px; border-radius: 14px; border: 1px solid rgb(255 181 71 / .4); background: rgb(255 181 71 / .06); }
.tr-log { padding: 20px; border-radius: 18px; border: 1px solid var(--line-2); background: rgb(6 10 18 / .8); position: sticky; top: 90px; }
.tr-log-head { display: flex; justify-content: space-between; align-items: baseline; }
.tr-log h3 { font-size: 15px; text-transform: uppercase; letter-spacing: .12em; color: var(--warm); font-weight: 650; }
.log-list { list-style: none; margin: 0 0 14px; padding: 12px; border-radius: 10px; background: #03050a; border: 1px solid var(--line); height: 300px; overflow: auto; font-size: 12.5px; line-height: 1.55; display: grid; align-content: start; gap: 6px; }
.log-list li { display: grid; grid-template-columns: 62px 1fr; gap: 8px; }
.log-list time { color: var(--dim); }
.log-list .src { color: var(--cyan); }
.log-list .src-call { color: var(--warm); }
.log-list .src-note { color: var(--ok); }
.log-list li.empty { display: block; color: var(--dim); font-family: var(--sans); font-size: 14px; }
.log-note { display: flex; gap: 8px; margin-bottom: 14px; }
.log-note .input { min-height: 38px; padding: 8px 12px; font-size: 14px; }
.log-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 12px; }

/* How */
.how { border-top: 1px solid var(--line); }
.how-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin-top: 40px; }
.how-grid article { padding: 28px; border-radius: var(--radius); border: 1px solid var(--line); background: linear-gradient(170deg, rgb(20 30 54 / .5), rgb(8 12 22 / .4)); }
.how-grid p { color: #b5c0d0; margin: 0; }
.how-k { display: inline-block; font: 600 11.5px/1 var(--mono); letter-spacing: .18em; text-transform: uppercase; color: var(--warm); margin-bottom: 18px; }

/* Contact */
.contact { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(30px, 5vw, 80px); border-top: 1px solid var(--line); }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } }
.contact-form { display: grid; gap: 16px; padding: 28px; border-radius: 18px; border: 1px solid var(--line-2); background: rgb(12 18 32 / .55); }
.field { display: grid; gap: 6px; }
.field label { font-size: 14px; font-weight: 600; color: #c3cddc; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
.input:user-invalid { border-color: var(--danger); }
.attached { border: 1px solid rgb(255 181 71 / .45); border-radius: 12px; padding: 12px 14px; background: rgb(255 181 71 / .05); }
.attached-head { display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap; margin-bottom: 8px; }
.attached-head b { color: var(--warm); }
.attached-head .link-btn { margin-left: auto; }
.attached-pre { margin: 0; max-height: 180px; overflow: auto; font-size: 12px; line-height: 1.5; color: #b5c0d0; white-space: pre-wrap; word-break: break-word; }
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.form-status { margin: 0; font-size: 15px; }
.form-status[data-kind="ok"] { color: var(--ok); }
.form-status[data-kind="err"] { color: var(--danger); }

/* Footer */
.foot { padding: 60px var(--pad) 50px; border-top: 1px solid var(--line); text-align: center; display: grid; gap: 6px; }
.foot p { margin: 0; }

/* Toast */
.toast { position: fixed; left: 50%; bottom: 24px; translate: -50% 0; z-index: 60; padding: 12px 18px; border-radius: 12px; background: #111a2c; border: 1px solid var(--line-2); box-shadow: 0 20px 50px -10px #000; font-size: 15px; transition: opacity .3s, translate .3s; }
.toast[hidden] { display: block; opacity: 0; translate: -50% 20px; pointer-events: none; }

/* View transitions between tool states */
@media (prefers-reduced-motion: no-preference) {
  ::view-transition-old(trmain), ::view-transition-new(trmain) { animation-duration: .28s; }
}
.tr-main { view-transition-name: trmain; }
