/* Phiro Design · Portfolio
   Plain CSS, no build step. One self-hosted variable font (no Google Fonts CDN).
   Inline style attributes are blocked by the CSP: all styling lives here, JS only sets CSSOM values. */

@font-face {
  font-family: "Bricolage";
  src: url("/fonts/bricolage-grotesque-latin-standard.woff2") format("woff2-variations"), url("/fonts/bricolage-grotesque-latin-standard.woff2") format("woff2");
  font-weight: 200 800;
  font-stretch: 75% 100%;
  font-display: swap;
}

:root {
  --paper: #EDEDE7;
  --paper-2: #E2E2DA;
  --ink: #1C1D1F;
  --muted: #55575B;
  --rule: rgba(28, 29, 31, .14);
  --accent: #2D43F0;        /* cobalt: the only accent, 5.6:1 on paper */
  --accent-press: #2236D6;
  --accent-soft: #D9DDFB;
  --night-muted: #A9ABB0;
  --accent-night: #A3ADFF;  /* cobalt tint for text on ink */

  --font: "Bricolage", system-ui, -apple-system, "Segoe UI", sans-serif;

  --gut: clamp(16px, 4.4vw, 64px);
  --max: 1440px;
  --r-s: 8px;
  --r-m: 12px;
  --r-l: 18px;

  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --ease-in-out: cubic-bezier(.77, 0, .175, 1);

  interpolate-size: allow-keywords;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.6 var(--font);
  font-optical-sizing: auto;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img, svg { display: block; }
button { font: inherit; color: inherit; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--accent); color: #fff; }

.sprite { position: absolute; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: var(--gut); top: -100px; background: var(--ink); color: var(--paper); padding: 10px 14px; z-index: 200; border-radius: var(--r-s); }
.skip:focus { top: 10px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gut); }
.icon { width: 20px; height: 20px; flex: none; }
.icon--lg { width: 30px; height: 30px; }
/* logo: the p takes currentColor (cobalt), "hiro" takes fill (ink) */
.logo__mark { display: block; width: 191px; height: 32px; color: var(--accent); fill: var(--ink); stroke: var(--ink); flex: none; }
.logo__mark--sm { width: 131px; height: 22px; }
.arrow { width: 34px; height: 12px; color: var(--accent); flex: none; transition: transform .2s var(--ease-out); }

.h2 {
  font-size: clamp(34px, 5.2vw, 72px);
  line-height: 1;
  font-weight: 680;
  font-stretch: 80%;
  letter-spacing: -.03em;
  text-wrap: balance;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 24px;
  border-radius: var(--r-m);
  font-size: 16px; font-weight: 560; line-height: 1;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .16s var(--ease-out);
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.btn:active { transform: scale(.97); }
.btn--small { min-height: 44px; padding: 0 16px; font-size: 15px; border-radius: 10px; }
.btn--accent { background: var(--accent); color: #fff; }
.btn--ink { background: var(--ink); color: var(--paper); }
.btn--line { border-color: rgba(28, 29, 31, .35); }
@media (hover: hover) and (pointer: fine) {
  .btn--accent:hover { background: var(--accent-press); }
  .btn--ink:hover { background: var(--accent); color: #fff; }
  .btn--line:hover { border-color: var(--ink); background: var(--ink); color: var(--paper); }
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.site-header[data-scrolled] { border-bottom-color: var(--rule); }
.site-header__inner {
  max-width: var(--max); margin: 0 auto; padding: 12px var(--gut);
  display: flex; align-items: center; gap: 24px;
}
.logo { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.nav { display: none; margin-left: auto; gap: 4px; }
.nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px;
  border-radius: var(--r-s); text-decoration: none; font-size: 15px; font-weight: 500;
  transition: background-color .15s ease;
}
@media (hover: hover) and (pointer: fine) { .nav a:hover { background: var(--paper-2); } }
.site-header .btn { margin-left: auto; }
@media (min-width: 860px) {
  .nav { display: flex; }
  .site-header .btn { margin-left: 8px; }
}

/* ---------- Hero ---------- */
.hero { padding: clamp(28px, 5vw, 64px) 0 clamp(56px, 8vw, 112px); }
.hero__meta {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 15px; color: var(--muted);
  margin-bottom: clamp(18px, 2.4vw, 32px);
}
.dot { margin-top: 8px; width: 9px; height: 9px; border-radius: 50%; background: #1F9D55; flex: none; box-shadow: 0 0 0 4px rgba(31, 157, 85, .16); }
.hero__title {
  font-size: clamp(52px, 8.7vw, 150px);
  line-height: .92;
  font-weight: 720;
  font-stretch: 75%;
  letter-spacing: -.02em;
  max-width: 11.5em;
  text-wrap: balance;
}
/* each word sits in its own mask so the line breaks naturally at every width */
.hero__title .w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 .02em .08em; margin: 0 -.02em -.08em; }
.hero__title .w > span { display: inline-block; }

.hero__grid {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px;
  margin-top: clamp(28px, 4vw, 56px);
}
.lead { font-size: clamp(17px, 1.35vw, 20px); line-height: 1.55; color: var(--muted); max-width: 34em; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

@media (min-width: 1000px) {
  .hero__grid { grid-template-columns: minmax(0, 4.2fr) minmax(0, 7.8fr); gap: clamp(40px, 5vw, 88px); align-items: start; }
  .hero__copy { padding-top: 8px; position: sticky; top: 100px; }
}

/* ---------- Demo (live sample sites) ---------- */
.demo__head { display: flex; flex-direction: column; gap: 12px; margin-bottom: 16px; }
.demo__label { font-size: 15px; font-weight: 560; }
.demo__tabs {
  position: relative;
  display: flex; gap: 2px;
  padding: 4px;
  background: var(--paper-2);
  border-radius: var(--r-m);
  width: max-content; max-width: 100%;
  overflow-x: auto; scrollbar-width: none;
}
.demo__tabs::-webkit-scrollbar { display: none; }
.demo__tabs button {
  position: relative; z-index: 1;
  min-height: 44px; padding: 0 16px;
  border: 0; background: none; border-radius: var(--r-s);
  font-size: 15px; font-weight: 520; white-space: nowrap;
  color: var(--muted); cursor: pointer;
  transition: color .2s ease;
  -webkit-tap-highlight-color: transparent;
}
.demo__tabs button[aria-selected="true"] { color: var(--ink); }
.demo__tabs button:active { transform: scale(.97); }
.demo__indicator {
  position: absolute; top: 4px; bottom: 4px; left: 0;
  background: var(--paper);
  border-radius: var(--r-s);
  box-shadow: 0 1px 2px rgba(28, 29, 31, .12);
  transition: transform .32s var(--ease-out), width .32s var(--ease-out);
}
@media (hover: hover) and (pointer: fine) { .demo__tabs button:hover { color: var(--ink); } }
.demo__progress {
  position: absolute; left: 14px; right: 14px; bottom: 6px; height: 2px;
  border-radius: 2px; background: var(--accent);
  transform: scaleX(0); transform-origin: left center;
  pointer-events: none;
}
/* Narrow screens: 2x2 grid instead of a scrolling strip, selection drawn on the button itself */
@media (max-width: 519px) {
  .demo__tabs { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  .demo__indicator { display: none; }
  .demo__tabs button { transition: color .2s ease, background-color .2s ease; }
  .demo__tabs button[aria-selected="true"] { background: var(--paper); box-shadow: 0 1px 2px rgba(28, 29, 31, .12); }
}

.demo__stage {
  /* sample-site palette, replaced from JS per industry */
  --s-bg: #F4EFE7; --s-ink: #22201C; --s-accent: #2F5D3A; --s-soft: #E3D8C6; --s-art: #B98A57;
  position: relative;
  padding: 0 11% 7% 0;
}
.demo__foot {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px;
  margin-top: 6px; font-size: 14px; color: var(--muted);
}
.demo__pause {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 0 12px; margin: 0 -12px;
  border: 0; background: none; border-radius: var(--r-s);
  font-size: 14px; font-weight: 520; color: var(--ink); cursor: pointer;
}
.demo__pause .icon { width: 18px; height: 18px; }
@media (hover: hover) and (pointer: fine) { .demo__pause:hover { background: var(--paper-2); } }

.browser {
  background: #fff;
  border-radius: var(--r-l);
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(28, 29, 31, .08), 0 30px 60px -30px rgba(28, 29, 31, .35);
}
.browser__bar {
  display: flex; align-items: center; gap: 6px;
  height: 36px; padding: 0 14px;
  background: #F6F6F2; border-bottom: 1px solid rgba(28, 29, 31, .08);
}
.browser__bar i { width: 10px; height: 10px; border-radius: 50%; background: #D5D5CE; }
.browser__url {
  margin: 0 auto; padding: 3px 14px;
  background: #fff; border-radius: 6px;
  font-size: 12px; color: var(--muted);
  min-width: 40%; text-align: center;
}

.phone {
  position: absolute; right: 0; bottom: 0;
  width: 27%;
  padding: 2.2%;
  background: var(--ink);
  border-radius: 13% / 6%;
  box-shadow: 0 30px 50px -24px rgba(28, 29, 31, .55);
}
.phone__screen { aspect-ratio: 9 / 18.5; border-radius: 10% / 5%; overflow: hidden; }

/* The sample site itself: sized in container units so it scales with the frame */
.browser, .phone { container-type: inline-size; }
.site {
  background: var(--s-bg); color: var(--s-ink);
  transition: background-color .45s ease, color .45s ease;
}
.browser .site { aspect-ratio: 16 / 9.6; display: flex; flex-direction: column; padding: 3cqw 4cqw; gap: 3cqw; }
.site__nav { display: flex; align-items: center; gap: 2.6cqw; font-size: 1.55cqw; }
.site__nav b { font-size: 2.1cqw; font-weight: 760; letter-spacing: -.02em; margin-right: auto; }
.site__navcta { padding: .7cqw 1.6cqw; border-radius: 99px; background: var(--s-ink); color: var(--s-bg); }
.site__hero { flex: 1; display: grid; grid-template-columns: 1.15fr 1fr; gap: 4cqw; align-items: center; }
.site__kicker { font-size: 1.5cqw; font-weight: 600; color: var(--s-accent); margin-bottom: 1.4cqw; }
.site__h { font-size: 4.6cqw; line-height: 1; font-weight: 720; letter-spacing: -.035em; text-wrap: balance; }
.site__p { font-size: 1.7cqw; line-height: 1.45; opacity: .75; margin-top: 1.6cqw; max-width: 30em; }
.site__btn {
  display: inline-block; margin-top: 2.4cqw; padding: 1.2cqw 2.6cqw;
  border-radius: var(--s-radius, 1cqw);
  background: var(--s-accent); color: #fff;
  font-size: 1.7cqw; font-weight: 620;
}
.site__art {
  align-self: stretch;
  border-radius: var(--s-radius, 1cqw);
  background-color: var(--s-soft);
  transition: background-color .45s ease;
  position: relative; overflow: hidden;
}
.site__chips { display: flex; gap: 1.4cqw; }
.site__chips span { flex: 1; padding: 1.4cqw 1.8cqw; border-radius: var(--s-radius, 1cqw); background: var(--s-soft); font-size: 1.55cqw; font-weight: 560; transition: background-color .45s ease; }

/* Mobile version inside the phone */
.site--m { display: flex; flex-direction: column; gap: 5.5cqw; padding: 9cqw 6.5cqw 7cqw; }
.site--m .site__nav b { font-size: 7.2cqw; }
.site__burger { width: 8cqw; height: 5cqw; border-top: 1.4cqw solid currentColor; border-bottom: 1.4cqw solid currentColor; }
.site--m .site__art { flex: 1; min-height: 40cqw; border-radius: var(--s-radius-m, 4cqw); }
.site--m .site__h { font-size: 11cqw; }
.site__btn--wide { display: block; text-align: center; margin: 0; padding: 4.5cqw; font-size: 6cqw; border-radius: var(--s-radius-m, 4cqw); }

/* Industry personalities: shape language + artwork (pure CSS, no images) */
[data-theme="handwerk"] { --s-radius: .6cqw; --s-radius-m: 2cqw; }
[data-theme="handwerk"] .site__h { font-stretch: 78%; text-transform: uppercase; letter-spacing: -.01em; }
[data-theme="handwerk"] .site__art {
  background-image:
    repeating-linear-gradient(98deg, transparent 0 7px, rgba(90, 55, 25, .12) 7px 8px, transparent 8px 19px),
    repeating-linear-gradient(94deg, transparent 0 23px, rgba(90, 55, 25, .1) 23px 25px);
}
[data-theme="handwerk"] .site__art::after { content: ""; position: absolute; left: 14%; right: 14%; bottom: 0; height: 38%; background: var(--s-art); border-radius: .6cqw .6cqw 0 0; }

[data-theme="friseur"] { --s-radius: 99px; --s-radius-m: 99px; }
[data-theme="friseur"] .site__h { font-weight: 300; font-stretch: 100%; letter-spacing: -.02em; }
[data-theme="friseur"] .site__art { border-radius: 50% 50% 2cqw 2cqw; }
[data-theme="friseur"] .site--m .site__art { border-radius: 50% 50% 4cqw 4cqw; }
[data-theme="friseur"] .site__art::after { content: ""; position: absolute; width: 70%; aspect-ratio: 1; left: 15%; top: 18%; border-radius: 50%; border: 1.2cqw solid var(--s-art); }
[data-theme="friseur"] .site--m .site__art::after { border-width: 3cqw; }

[data-theme="gastro"] { --s-radius: 1.4cqw; --s-radius-m: 4cqw; }
[data-theme="gastro"] .site__h { font-stretch: 90%; font-weight: 800; letter-spacing: -.04em; }
[data-theme="gastro"] .site__art { background-image: radial-gradient(circle at 50% 50%, #fff 0 30%, transparent 30.5%), radial-gradient(circle at 50% 50%, var(--s-art) 0 40%, transparent 40.5%); }

[data-theme="service"] { --s-radius: 1cqw; --s-radius-m: 3cqw; }
[data-theme="service"] .site__h { font-stretch: 85%; font-weight: 650; }
[data-theme="service"] .site__art {
  background-image: linear-gradient(var(--s-art) 0 0), linear-gradient(var(--s-art) 0 0), linear-gradient(rgba(255, 255, 255, .7) 0 0);
  background-size: 34% 34%, 22% 22%, 34% 34%;
  background-position: 18% 22%, 78% 70%, 74% 20%;
  background-repeat: no-repeat;
}

/* Theme switch: short blur crossfade masks the swap (content changes in the dip) */
.site [data-f], .site__art { transition: opacity .18s ease, filter .18s ease, transform .18s var(--ease-out), background-color .45s ease; }
.demo__stage.is-swapping .site [data-f],
.demo__stage.is-swapping .site__art { opacity: 0; filter: blur(4px); transform: translateY(3px); }
/* the phone settles a beat after the browser: reads as two devices, not one surface */
.demo__stage:not(.is-swapping) .phone [data-f],
.demo__stage:not(.is-swapping) .phone .site__art { transition-delay: 60ms; }

/* ---------- Section label ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
  margin-bottom: 20px;
}
.eyebrow--light { color: rgba(255, 255, 255, .8); }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 0 rgba(255, 255, 255, .6); }

/* ---------- Proof: live measurements (the one cobalt block) ---------- */
.proof { background: var(--accent); color: #fff; padding: clamp(72px, 9vw, 132px) 0; }
.proof__head { max-width: 46rem; }
.proof__lead { margin-top: 22px; max-width: 34em; font-size: 18px; color: rgba(255, 255, 255, .86); }

/* weight comparison: the tiny bar is the punchline */
.weigh { margin-top: clamp(48px, 6vw, 88px); display: grid; gap: 22px; }
.weigh__row { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "label val" "track track"; align-items: baseline; gap: 10px 16px; }
.weigh__label { grid-area: label; font-size: 16px; font-weight: 560; }
.weigh__row:not(.weigh__row--me) .weigh__label, .weigh__row:not(.weigh__row--me) .weigh__val { color: rgba(255, 255, 255, .72); }
.weigh__val { grid-area: val; font-size: 16px; font-weight: 560; font-variant-numeric: tabular-nums; }
.weigh__val b { font-size: clamp(28px, 3.4vw, 44px); font-weight: 700; font-stretch: 75%; letter-spacing: -.02em; margin-right: 4px; }
.weigh__track { grid-area: track; height: 18px; border-radius: 9px; background: rgba(255, 255, 255, .14); overflow: hidden; }
.weigh__track i { display: block; height: 100%; border-radius: inherit; transform-origin: left center; transform: scaleX(var(--to, 1)); }
.weigh__row--me .weigh__track i { --to: .02; background: #fff; }
.weigh__row:not(.weigh__row--me) .weigh__track i { background: rgba(255, 255, 255, .42); }
.weigh__note { font-size: 14px; color: rgba(255, 255, 255, .72); max-width: 44em; }
@media (min-width: 760px) {
  .weigh__row { grid-template-columns: 13em 1fr 7.5em; grid-template-areas: "label track val"; align-items: center; gap: 24px; }
  .weigh__val { text-align: right; }
  .weigh__note { margin-left: calc(13em + 24px); }
}

.stats { margin: clamp(40px, 5vw, 72px) 0 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid rgba(255, 255, 255, .3); }
.stat { padding: 22px 16px 4px 0; }
.stat + .stat { padding-left: 20px; border-left: 1px solid rgba(255, 255, 255, .3); }
.stat dt { font-size: 15px; color: rgba(255, 255, 255, .86); }
.stat dd { margin: 6px 0 0; display: flex; align-items: baseline; gap: 6px; }
.stat dd span { font-size: clamp(40px, 6vw, 88px); line-height: .95; font-weight: 700; font-stretch: 75%; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.stat dd small { font-size: 16px; font-weight: 560; }

/* ---------- Why ---------- */
.why { padding: clamp(72px, 10vw, 144px) 0 clamp(48px, 6vw, 80px); border-top: 1px solid var(--rule); }
.why__title { max-width: 14em; }
.why__grid { display: grid; gap: 36px; margin-top: clamp(40px, 5vw, 72px); }
.why__item .icon { color: var(--accent); }
.why__item h3 { margin: 18px 0 8px; font-size: 24px; line-height: 1.15; font-weight: 640; letter-spacing: -.015em; }
.why__item p { color: var(--muted); max-width: 30em; }
@media (min-width: 760px) { .why__grid { grid-template-columns: repeat(3, 1fr); gap: 40px; } }

/* ---------- Process ---------- */
.process { padding: 0 0 clamp(72px, 10vw, 144px); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.step { position: relative; padding: 24px 0 28px 72px; border-top: 1px solid var(--rule); }
.step__n {
  position: absolute; left: 0; top: 22px;
  width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1.5px solid var(--accent); color: var(--accent);
  font-size: 20px; font-weight: 640;
}
.step h3 { font-size: 24px; font-weight: 640; letter-spacing: -.015em; }
.step p { margin-top: 6px; color: var(--muted); max-width: 30em; }
.step:first-child .step__n, .steps.is-drawn .step__n { background: var(--accent); color: #fff; }
.step__n { transition: background-color .3s ease, color .3s ease; }
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(4, 1fr); gap: 32px; }
  .step { padding: 28px 0 0; border-top: 0; }
  .step::before { content: ""; position: absolute; top: 52px; left: 64px; right: -16px; height: 1px; background: var(--rule); }
  .step:last-child::before { display: none; }
  .step::before { transform-origin: left center; background: var(--accent); transition: transform .45s var(--ease-in-out); }
  .steps.is-waiting .step::before { transform: scaleX(0); }
  .step__n { position: relative; top: 0; margin-bottom: 24px; }
}

/* ---------- About: text + profile card ---------- */
.about { padding: clamp(72px, 10vw, 144px) 0; background: var(--paper-2); }
.about__grid { display: grid; gap: 48px; }
.about__title {
  font-size: clamp(40px, 6vw, 88px); line-height: .95; font-weight: 720; font-stretch: 75%; letter-spacing: -.02em;
  text-wrap: balance; max-width: 13em;
}
.about__title span { display: block; margin-top: .25em; font-size: .5em; line-height: 1.1; font-weight: 600; font-stretch: 85%; letter-spacing: -.015em; color: var(--muted); max-width: 20em; }
.about__text p { margin-top: 18px; color: var(--muted); max-width: 34em; font-size: 18px; }
.about__text .eyebrow + .about__title { margin-top: 0; }
.about__title + p { margin-top: 32px; }
.about__quote {
  margin: 32px 0 0; padding: 4px 0 4px 20px;
  border-left: 3px solid var(--accent);
  font-size: clamp(20px, 1.8vw, 24px); line-height: 1.35; font-weight: 560; letter-spacing: -.01em;
  max-width: 26em;
}
.about__text .actions { margin-top: 32px; }

/* the card reads like a business card on the desk */
.card {
  position: relative; overflow: hidden; isolation: isolate;
  align-self: start;
  background: var(--ink); color: var(--paper);
  border-radius: 24px; padding: clamp(28px, 3vw, 40px);
  box-shadow: 0 1px 2px rgba(28, 29, 31, .12), 0 24px 48px -24px rgba(28, 29, 31, .45);
}
.card__mark { position: absolute; top: clamp(28px, 3vw, 40px); right: clamp(28px, 3vw, 40px); width: 28px; height: 42px; fill: #5B6DFF; }
.card__status {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 14px 7px 12px; border-radius: 999px;
  background: rgba(237, 237, 231, .08); border: 1px solid rgba(237, 237, 231, .14);
  font-size: 14px; font-weight: 560;
}
.card__status .dot { margin-top: 0; }
.card__name { margin-top: clamp(40px, 5vw, 64px); font-size: clamp(36px, 4vw, 52px); line-height: .95; font-weight: 720; font-stretch: 75%; letter-spacing: -.02em; }
.card__role { margin-top: 8px; color: var(--night-muted); font-size: 16px; }
.card__facts { margin: 32px 0 0; max-width: 24rem; }
.card__facts div { display: grid; grid-template-columns: 6.4em 1fr; gap: 14px; padding: 13px 0; border-top: 1px solid rgba(237, 237, 231, .14); }
.card__facts dt { font-size: 14px; color: var(--night-muted); }
.card__facts dd { margin: 0; font-size: 15px; font-weight: 560; }
@media (min-width: 1000px) {
  .about__grid { grid-template-columns: 7fr 5fr; gap: 88px; align-items: center; }
  .card { transform: rotate(1.5deg); transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out); }
}
@media (min-width: 1000px) and (hover: hover) and (pointer: fine) {
  .card:hover { transform: rotate(0deg) translateY(-4px); box-shadow: 0 1px 2px rgba(28, 29, 31, .12), 0 32px 64px -24px rgba(28, 29, 31, .5); }
}

/* ---------- Contact ---------- */
.contact { background: var(--ink); color: var(--paper); padding: clamp(80px, 11vw, 160px) 0 clamp(56px, 7vw, 96px); }
.contact__title {
  font-size: clamp(44px, 8vw, 132px); line-height: .92; font-weight: 720; font-stretch: 75%; letter-spacing: -.02em;
  max-width: 11em; text-wrap: balance;
}
.contact__lead { margin-top: 24px; max-width: 32em; font-size: 18px; color: var(--night-muted); }
.contact__phone {
  display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 4px 24px;
  margin-top: clamp(40px, 6vw, 80px); padding: 28px 0;
  border-top: 1px solid rgba(237, 237, 231, .2); border-bottom: 1px solid rgba(237, 237, 231, .2);
  text-decoration: none;
  transition: transform .16s var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}
.contact__phone:active, .contact__rows a:active { transform: scale(.98); }
.contact__phone-label { grid-column: 1 / -1; font-size: 15px; color: var(--night-muted); }
.contact__phone-num { font-size: clamp(40px, 8.6vw, 140px); line-height: .95; font-weight: 700; font-stretch: 75%; letter-spacing: -.02em; color: var(--accent-night); transition: color .2s ease; }
.contact__phone-arrow { width: clamp(32px, 5vw, 72px); height: clamp(32px, 5vw, 72px); color: var(--accent-night); transition: transform .25s var(--ease-out); margin-bottom: .6vw; }
@media (hover: hover) and (pointer: fine) {
  .contact__phone:hover .contact__phone-num { color: #fff; }
  .contact__phone:hover .contact__phone-arrow { transform: translateX(8px); color: #fff; }
}
.contact__rows { list-style: none; margin: 0; padding: 0; display: grid; }
.contact__rows li { border-bottom: 1px solid rgba(237, 237, 231, .2); }
.contact__rows a { transition: transform .16s var(--ease-out); -webkit-tap-highlight-color: transparent; }
.contact__rows a, .contact__rows div { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 20px; padding: 20px 0; min-height: 64px; text-decoration: none; }
.contact__rows span { font-size: 15px; color: var(--night-muted); }
.contact__rows strong { font-size: clamp(19px, 2vw, 26px); font-weight: 560; letter-spacing: -.01em; overflow-wrap: anywhere; }
@media (hover: hover) and (pointer: fine) { .contact__rows a:hover strong { color: var(--accent-night); } }
@media (min-width: 900px) { .contact__rows { grid-template-columns: repeat(3, 1fr); column-gap: 32px; } .contact__rows a, .contact__rows div { flex-direction: column; } }

/* ---------- Footer (shared with legal pages) ---------- */
.footer {
  max-width: var(--max); margin: 0 auto;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 28px;
  padding: 24px var(--gut) 32px;
  font-size: 14px;
}
.footer p { margin: 0; }
.footer__brand { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; font-weight: 640; }
.footer__brand span { color: var(--muted); font-weight: 400; }
.footer nav { display: flex; gap: 8px; }
.footer nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 8px; text-decoration: none; }
.footer nav a:hover { color: var(--accent); }
.footer__copy { color: var(--muted); }

/* ---------- Load sequence: one orchestrated moment ---------- */
@media (prefers-reduced-motion: no-preference) {
  .hero__title .w > span { transform: translateY(105%); animation: rise .8s var(--ease-out) forwards; }
  .hero__title .w:nth-child(2) > span { animation-delay: .05s; }
  .hero__title .w:nth-child(3) > span { animation-delay: .10s; }
  .hero__title .w:nth-child(4) > span { animation-delay: .15s; }
  .hero__title .w:nth-child(5) > span { animation-delay: .20s; }
  .hero__title .w:nth-child(6) > span { animation-delay: .25s; }
  .hero__meta, .hero__copy { opacity: 0; animation: fade-up .6s var(--ease-out) .35s forwards; }
  .demo { opacity: 0; transform: translateY(24px); animation: fade-up .8s var(--ease-out) .45s forwards; }
  .phone { opacity: 0; transform: translateY(28px); animation: fade-up .7s var(--ease-out) .75s forwards; }
  .steps.is-drawn .step:nth-child(2) .step__n { transition-delay: .15s; }
  .steps.is-drawn .step:nth-child(3) .step__n { transition-delay: .30s; }
  .steps.is-drawn .step:nth-child(4) .step__n { transition-delay: .45s; }
  .steps.is-drawn .step:nth-child(1)::before { transition-delay: .05s; }
  .steps.is-drawn .step:nth-child(2)::before { transition-delay: .20s; }
  .steps.is-drawn .step:nth-child(3)::before { transition-delay: .35s; }
  /* weight bars: the average fills first, then the tiny one lands */
  .weigh__track i { transition: transform 1.1s var(--ease-out); }
  .weigh__row--me .weigh__track i { transition-delay: .7s; }
  .weigh.is-waiting .weigh__track i { transform: scaleX(0); }
  .pulse { animation: pulse 2.4s ease-out infinite; }
  @keyframes pulse { 70%, 100% { box-shadow: 0 0 0 8px rgba(255, 255, 255, 0); } }
  @keyframes rise { to { transform: translateY(0); } }
  @keyframes fade-up { to { opacity: 1; transform: translateY(0); } }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .demo__indicator, .weigh__track i { transition: none; }
  .steps.is-waiting .step::before { transform: none; }
  .site [data-f], .site__art { transition: opacity .2s ease; }
  .demo__stage.is-swapping .site [data-f], .demo__stage.is-swapping .site__art { filter: none; transform: none; }
}

/* ---------- Legal pages ---------- */
.topbar {
  max-width: var(--max); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px var(--gut);
}
.topbar a { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none; font-weight: 600; }
.legal { max-width: var(--max); margin: 0 auto; padding: 32px var(--gut) 88px; border-bottom: 1px solid var(--rule); }
.legal__inner { max-width: 44rem; }
.legal h1 { font-size: clamp(48px, 9vw, 112px); line-height: .92; font-weight: 720; font-stretch: 75%; letter-spacing: -.02em; margin: 0 0 36px; }
.legal h2 { font-size: clamp(22px, 3vw, 28px); line-height: 1.2; font-weight: 640; letter-spacing: -.015em; margin: 40px 0 10px; }
.legal h3 { font-size: 18px; font-weight: 640; margin: 26px 0 6px; }
.legal p, .legal li { color: #34363A; }
.legal p + p { margin-top: 12px; }
.legal address { font-style: normal; }
.legal a { color: var(--accent); text-underline-offset: 3px; }
.back { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-size: 15px; font-weight: 560; min-height: 44px; margin-bottom: 18px; }
.back .arrow { transform: rotate(180deg); }
.back:hover .arrow { transform: rotate(180deg) translateX(4px); }
