@font-face { font-family: "Geist"; src: url("/assets/fonts/geist.woff2") format("woff2"); font-weight: 300 700; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("/assets/fonts/geistmono.woff2") format("woff2"); font-weight: 400 600; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("/assets/fonts/serif.woff2") format("woff2"); font-style: normal; font-weight: 400; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("/assets/fonts/serif-italic.woff2") format("woff2"); font-style: italic; font-weight: 400; font-display: swap; }

:root {
  --bg: #050608;
  --card: rgba(12, 13, 18, 0.8);
  --card-solid: #0c0d12;
  --line: rgba(255, 255, 255, 0.07);
  --line-2: rgba(255, 255, 255, 0.13);
  --text: #eef0f5;
  --text-2: #a3a8b4;
  --text-3: #686e7b;

  /* Daniel is green, Alexandre is purple, Habikai is the sunset between them */
  --dan: #6ee7a8;
  --alex: #b07cff;

  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --serif: "Instrument Serif", ui-serif, Georgia, serif;

  --pad: clamp(14px, 1.8vw, 28px);
  --gap: clamp(10px, 1vw, 16px);
  --cp: clamp(14px, 1.4vw, 22px);
  --radius: clamp(18px, 1.6vw, 26px);
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100svh;
  background: var(--bg);
  color: var(--text);
  font: 400 15px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body[data-open] { overflow: hidden; }

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
p, h1, h2, ul, ol { margin: 0; }

:focus-visible { outline: 2px solid #46e0f0; outline-offset: 3px; border-radius: 8px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Backdrop: circuit board, colour washes, film grain ---------- */

.board { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }


.grain { position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: 0.06; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Shell ---------- */

.shell {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; gap: var(--gap);
  width: 100%; max-width: 1680px; min-height: 100svh; margin: 0 auto;
  padding:
    max(calc(var(--pad) * 0.8), env(safe-area-inset-top))
    max(var(--pad), env(safe-area-inset-right))
    max(calc(var(--pad) * 0.7), env(safe-area-inset-bottom))
    max(var(--pad), env(safe-area-inset-left));
}

/* ---------- Header ---------- */

.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; animation: fade 0.8s var(--ease) both; }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand__mark { width: 38px; height: 27px; overflow: visible; transition: transform 0.6s var(--ease); }
.brand:hover .brand__mark { transform: rotate(-8deg) scale(1.06); }
.brand__name { font: 400 25px/1 var(--serif); letter-spacing: 0.005em; }

.top__end { display: flex; align-items: center; gap: 14px; }

.live, .eyebrow, .status, .widget__head, .bottom, .person__class, .floor__code {
  font-family: var(--mono); font-feature-settings: "zero" 0, "ss01";
}

.live { display: inline-flex; align-items: center; gap: 8px; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-2); }
.live i, .status i, .person__class i, .onair { position: relative; width: 7px; height: 7px; border-radius: 50%; background: #ff3d81; flex: none; }
.live i::after, .status i::after, .onair::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid currentColor; color: inherit;
  animation: ping 2.2s var(--ease) infinite;
}
.live i { color: #ff3d81; }

.btn { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; white-space: nowrap; border-radius: 999px; transition: transform 0.3s var(--ease), background 0.3s, border-color 0.3s, filter 0.3s; }
.btn .arrow { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.35s var(--ease); }
.btn:hover .arrow { transform: translate(2px, -2px); }
.btn--ghost { padding: 8px 14px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.02); font: 500 12.5px/1 var(--mono); color: var(--text); }
.btn--ghost:hover { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.24); }
.btn--hab { padding: 11px 16px 11px 18px; background: var(--text); color: #0b0c10; font: 600 14px/1 var(--sans); }
.btn--hab:hover { transform: translateY(-1px); background: #fff; }

/* ---------- Stage: P1 | Habikai | P2 ---------- */

.stage { position: relative; display: grid; gap: var(--gap);
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-areas: "intro intro" "dan alex" "hab hab";
}
.center { display: contents; }
.intro { grid-area: intro; }
.person--dan { grid-area: dan; }
.person--alex { grid-area: alex; }
.habikai { grid-area: hab; }

/* ---------- Cards ---------- */

.card {
  --c: #ff3d81;
  position: relative; isolation: isolate; overflow: hidden;
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: inset 0 0 0 1px var(--line), inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 30px 60px -30px rgba(0, 0, 0, 0.8);
  animation: rise 0.9s var(--ease) both;
  animation-delay: calc(var(--i, 0) * 90ms + 120ms);
}

/* ---------- People ---------- */

.person { --c: var(--dan); display: flex; flex-direction: column; min-height: 0; }
.person--alex { --c: var(--alex); }

.person__media { position: relative; margin: 8px 8px 0; aspect-ratio: 1 / 0.86; border-radius: calc(var(--radius) - 8px); overflow: hidden; flex: none; background: color-mix(in oklab, var(--c) 10%, #0c0d12); }
.person__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--focus, 50% 28%); transition: transform 1.4s var(--ease); }
.person--dan .person__media img { --focus: 40% 26%; }
.person--alex .person__media img { --focus: 50% 24%; }
.person:hover .person__media img { transform: scale(1.04); }

.person__body { position: relative; z-index: 1; padding: 14px var(--cp) var(--cp); display: flex; flex-direction: column; gap: 10px; }

.person__class { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-2); }
.person__class > span { display: inline-flex; align-items: center; gap: 8px; }
.person__class i { width: 6px; height: 6px; background: var(--c); }
.person__social { display: grid; place-items: center; width: 28px; height: 28px; margin: -6px -4px -6px 0; border-radius: 50%; color: var(--text-2); transition: color 0.3s, background 0.3s; }
.person__social svg { width: 16px; height: 16px; fill: currentColor; }
.person__social:hover { color: var(--text); background: rgba(255, 255, 255, 0.07); }

.person__name { font: 400 clamp(34px, min(3vw, 5.4vh), 56px)/0.95 var(--serif); letter-spacing: -0.01em; }
.person__name em { display: block; color: var(--c); }

.person__more { display: flex; flex-direction: column; gap: 12px; }
.person__bio { font-size: 14px; line-height: 1.5; color: var(--text-2); }

.chips { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.chips li { padding: 4px 10px 4px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.02); font: 500 11.5px/1.4 var(--mono); color: var(--text-2); transition: border-color 0.3s, color 0.3s; }
.chips li:hover { border-color: color-mix(in oklab, var(--c) 60%, transparent); color: var(--text); }

.widget { padding: 11px 12px 12px; border-radius: 14px; background: rgba(255, 255, 255, 0.022); box-shadow: inset 0 0 0 1px var(--line); }
.widget__head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 9px; font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); }
.widget__head span { display: inline-flex; align-items: center; gap: 8px; }
.widget__head b { font-weight: 500; color: var(--text); letter-spacing: 0.04em; font-variant-numeric: tabular-nums; }

.commits__grid { --cols: 22; display: grid; grid-auto-flow: column; grid-template-rows: repeat(7, auto); grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); gap: 3px; }
.commits__grid i { aspect-ratio: 1; border-radius: 2.5px; background: rgba(255, 255, 255, 0.05); animation: pop 0.5s var(--ease) both; animation-delay: calc(var(--w) * 26ms + 700ms); }
.commits__grid i.pad { visibility: hidden; }
.commits__grid i[data-l="1"] { background: color-mix(in oklab, var(--dan) 24%, transparent); }
.commits__grid i[data-l="2"] { background: color-mix(in oklab, var(--dan) 46%, transparent); }
.commits__grid i[data-l="3"] { background: color-mix(in oklab, var(--dan) 72%, transparent); }
.commits__grid i[data-l="4"] { background: var(--dan); }

.onair { background: var(--alex); color: var(--alex); width: 6px; height: 6px; }
.signal__bars { display: flex; align-items: center; gap: 3px; aspect-ratio: var(--cols, 22) / 7.4; }
.signal__bars i { flex: 1; height: calc(var(--h) * 100%); border-radius: 99px; background: var(--alex); opacity: 0.85; transform: scaleY(0.3); animation: wave var(--d) ease-in-out var(--delay) infinite alternate; }

.person__open, .person__close { display: none; }
.person__title { display: inline; }

/* ---------- Habikai ---------- */

.intro { position: relative; text-align: center; padding: clamp(6px, 1.4vh, 18px) 8px clamp(4px, 1vh, 10px); animation: fade 1s var(--ease) both; }
.eyebrow { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-3); }
.intro .eyebrow { margin-bottom: clamp(8px, 1.4vh, 14px); }

.headline { font: 600 clamp(30px, min(3.4vw, 6.2vh), 64px)/1.02 var(--sans); letter-spacing: -0.035em; text-wrap: balance; }

.lede { max-width: 50ch; margin: clamp(10px, 1.6vh, 16px) auto 0; font-size: clamp(14px, 1vw, 16.5px); color: var(--text-2); text-wrap: balance; }
.t-dan, .t-alex { font-weight: 500; }
.t-dan { color: var(--dan); }
.t-alex { color: var(--alex); }

.habikai { --c: #ff3d81; --phone-w: clamp(110px, min(13vw, (100dvh - 400px) * 0.4), 232px); --logo-h: clamp(34px, min(3.4vw, 6vh), 60px);
  display: grid; grid-template-columns: minmax(0, 1fr) var(--phone-w); grid-template-rows: minmax(0, 1fr);
  column-gap: clamp(16px, 2vw, 34px); padding: var(--cp) var(--cp) var(--cp) calc(var(--cp) + 4px); min-height: 0;
}
.habikai > :not(.habikai__skyline) { position: relative; z-index: 1; }

.habikai__skyline { position: absolute; left: 0; right: 0; bottom: 0; z-index: 0; width: 100%; height: auto; max-width: none; opacity: 0.32; image-rendering: pixelated; pointer-events: none;
  -webkit-mask-image: linear-gradient(to top, #000 30%, transparent); mask-image: linear-gradient(to top, #000 30%, transparent);
}

.habikai__copy { container-type: inline-size; display: flex; flex-direction: column; gap: clamp(8px, 1.25vh, 14px); min-width: 0; min-height: 0; }
.habikai__brand { display: flex; align-items: center; gap: clamp(8px, 0.9vw, 14px); font-size: inherit; }
.habikai__icon { flex: none; width: var(--logo-h); height: var(--logo-h); border-radius: 24%; image-rendering: pixelated; box-shadow: 0 0 0 1px var(--line-2); }
.habikai__logo { flex: 0 1 auto; min-width: 0; width: auto; height: var(--logo-h); object-fit: contain; object-position: left center; image-rendering: pixelated; }
.habikai__tagline { font: italic 400 clamp(21px, min(1.8vw, 3.3vh), 32px)/1.1 var(--serif); color: var(--text); text-wrap: balance; }
.habikai__desc { font-size: 14px; color: var(--text-2); max-width: 48ch; }

.floors { list-style: none; padding: 0; margin-top: auto; display: grid; gap: 4px; }
.floor { position: relative; width: 100%; display: flex; align-items: baseline; gap: 12px; padding: 8px 12px 9px; border: 0; border-radius: 12px; background: transparent; text-align: left; cursor: pointer; transition: background 0.35s, box-shadow 0.35s; }
.floor:hover { background: rgba(255, 255, 255, 0.025); }
.floor__code { flex: none; font-size: 11px; letter-spacing: 0.06em; color: var(--lc); opacity: 0.75; transition: opacity 0.3s; }
.floor__name { flex: none; font-weight: 550; font-size: 14.5px; line-height: 1.3; color: var(--text-2); transition: color 0.3s; }
.floor__sub { flex: 1 1 auto; min-width: 0; text-align: right; font-size: 12.5px; line-height: 1.3; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.floor.is-active { background: rgba(255, 255, 255, 0.04); box-shadow: inset 0 0 0 1px var(--line); }
.floor.is-active .floor__name { color: var(--text); }
.floor.is-active .floor__code { opacity: 1; }
.floor__bar { position: absolute; left: 12px; right: 12px; bottom: 0; height: 1.5px; border-radius: 2px; overflow: hidden; opacity: 0; transition: opacity 0.3s; }
.floor__bar i { display: block; height: 100%; background: var(--lc); transform: scaleX(0); transform-origin: left; }
.floor.is-active .floor__bar { opacity: 1; }
.floor.is-active .floor__bar i { animation: fill 4.8s linear forwards; }
.habikai:hover .floor__bar i, .habikai:focus-within .floor__bar i { animation-play-state: paused; }
@container (max-width: 340px) { .floor__sub { display: none; } }

.habikai__foot { display: flex; align-items: center; gap: 10px 16px; flex-wrap: wrap; }
.habikai__note { font-size: 12.5px; color: var(--text-3); }

.phone { position: relative; align-self: safe center; justify-self: end; width: var(--phone-w); aspect-ratio: 390 / 844; padding: calc(var(--phone-w) * 0.032); border-radius: calc(var(--phone-w) * 0.15);
  background: #16171d;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1), 0 30px 60px -24px rgba(0, 0, 0, 0.9);
}
.phone__screen { position: relative; height: 100%; border-radius: calc(var(--phone-w) * 0.12); overflow: hidden; background: #03040a; }
.phone__screen::after { content: ""; position: absolute; top: 1.6%; left: 50%; width: 28%; height: 2.6%; transform: translateX(-50%); border-radius: 99px; background: #000; }
.shot { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.05); transition: opacity 0.7s var(--ease), transform 1s var(--ease); }
.shot.is-active { opacity: 1; transform: none; }

.status { position: absolute; z-index: 2; top: -16px; left: 50%; translate: -50% 0; display: inline-flex; align-items: center; gap: 7px; padding: 6px 10px 5px; border-radius: 999px; background: rgba(12, 13, 18, 0.94); box-shadow: inset 0 0 0 1px var(--line-2), 0 10px 24px -8px rgba(0, 0, 0, 0.9); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text); white-space: nowrap; }
.status i { width: 6px; height: 6px; background: #ffd36b; color: #ffd36b; }

/* ---------- Footer ---------- */

.bottom { display: flex; justify-content: space-between; align-items: center; gap: 8px 20px; flex-wrap: wrap; font-size: 11px; letter-spacing: 0.06em; color: var(--text-3); animation: fade 1s var(--ease) 0.5s both; }
.bottom a { text-decoration: none; transition: color 0.3s; }
.bottom a:hover { color: var(--text); }

.scrim { position: fixed; inset: 0; z-index: 40; background: rgba(3, 4, 6, 0.72); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); opacity: 0; pointer-events: none; transition: opacity 0.35s; }
body[data-open] .scrim { opacity: 1; pointer-events: auto; }

/* ---------- Desktop (960+): one screen, no scroll ---------- */

@media (min-width: 960px) {
  .stage { grid-template-columns: minmax(230px, 1fr) minmax(0, 1.62fr) minmax(230px, 1fr); grid-template-areas: "dan center alex"; }
  .center { grid-area: center; display: flex; flex-direction: column; gap: var(--gap); min-height: 0; }
  .habikai { flex: 1; }
  .person__media { flex: 1 1 auto; aspect-ratio: auto; min-height: 120px; }
}

@media (min-width: 960px) and (min-height: 560px) {
  body { display: grid; align-items: center; }
  .shell { height: min(100dvh, 1100px); min-height: 0; }
  .stage { flex: 1; min-height: 0; }
}

@media (min-width: 960px) and (max-height: 880px) { .person__bio { display: none; } }
@media (min-width: 960px) and (max-height: 780px) { .chips, .habikai__note { display: none; } }
@media (min-width: 960px) and (max-height: 720px) { .habikai__desc { display: none; } }
@media (min-width: 960px) and (max-height: 660px) { .lede, .intro .eyebrow { display: none; } .floor { padding-block: 6px 7px; } }
@media (min-width: 960px) and (max-width: 1199px) { .habikai__eyebrow, .person__title { display: none; } .habikai__note { display: none; } }

/* ---------- Under 960: people become compact cards, details one tap away ---------- */

@media (max-width: 959px) {
  .intro { padding-block: 14px 6px; }
  .person { cursor: pointer; }
  .person__media { aspect-ratio: 1 / 0.78; }
  .person__more { display: none; }
  .person__open { display: block; position: absolute; inset: 0; z-index: 4; padding: 0; border: 0; background: transparent; border-radius: inherit; cursor: pointer; }
  .person__open span { position: absolute; top: 14px; right: 14px; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: rgba(5, 6, 8, 0.6); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
  .person__open svg, .person__close svg { width: 12px; height: 12px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; }

  .person.is-open { position: fixed; z-index: 50; left: 50%; top: 50%; translate: -50% -50%; width: min(460px, 100vw - 24px); max-height: calc(100dvh - 24px); overflow-y: auto; overscroll-behavior: contain; cursor: auto; animation: none; background: var(--card-solid); box-shadow: inset 0 0 0 1px var(--line-2), 0 40px 120px -20px rgba(0, 0, 0, 0.9); }
  .person.is-open .person__media { margin: 8px 8px 0; aspect-ratio: 1 / 0.8; }
  .person.is-open .person__body { padding: 16px 18px 18px; gap: 12px; }
  .person.is-open .person__class { font-size: 11px; }
  .person.is-open .person__title { display: inline; }
  .person.is-open .person__social { display: grid; }
  .person.is-open .person__name { font-size: 44px; }
  .person.is-open .person__name em { display: inline; }
  .person.is-open .person__more { display: flex; }
  .person.is-open .person__open { display: none; }
  .person.is-open .person__close { display: grid; place-items: center; position: absolute; z-index: 5; top: 18px; right: 18px; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 50%; background: rgba(5, 6, 8, 0.7); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2); cursor: pointer; }
  .person--dan { view-transition-name: dan; }
  .person--alex { view-transition-name: alex; }

  .habikai { --phone-w: clamp(150px, 22vw, 210px); --logo-h: clamp(40px, 6vw, 54px); }
}

/* ---------- Phone ---------- */

@media (max-width: 719px) {
  :root { --pad: 14px; --gap: 10px; --cp: 14px; --radius: 20px; }
  .live { display: none; }
  .btn--ghost { padding: 7px 12px; font-size: 12px; }
  .brand__name { font-size: 23px; }

  .intro { padding: 2px 4px 0; }
  .intro .eyebrow { display: none; }
  .headline { font-size: clamp(28px, 8vw, 36px); }
  .lede { margin-top: 8px; font-size: 13.5px; max-width: 34ch; }

  .person__media { margin: 6px 6px 0; aspect-ratio: 1 / 0.72; border-radius: calc(var(--radius) - 6px); }
  .person__open span { top: 12px; right: 12px; width: 26px; height: 26px; }
  .person__body { padding: 10px 12px 12px; gap: 5px; }
  .person__class { font-size: 9.5px; letter-spacing: 0.1em; }
  .person__class > span { gap: 6px; }
  .person__title, .person__social { display: none; }
  .person__name { font-size: clamp(23px, 6.6vw, 30px); }

  .habikai { --phone-w: clamp(92px, 27vw, 128px); --logo-h: clamp(28px, 8.4vw, 36px); column-gap: 12px; padding: 14px; }
  .habikai__eyebrow, .habikai__desc, .habikai__note, .status__where { display: none; }
  .habikai__copy { gap: 9px; }
  .habikai__tagline { font-size: clamp(19px, 5.4vw, 23px); }
  .floors { gap: 2px; }
  .floor { padding: 5px 8px 6px; gap: 8px; border-radius: 10px; }
  .floor__code { font-size: 9.5px; }
  .floor__name { font-size: 13px; }
  .floor__bar { left: 8px; right: 8px; }
  .btn--hab { width: 100%; justify-content: center; padding: 10px 14px; font-size: 13.5px; }
  .phone { align-self: end; }
  .status { top: -10px; padding: 5px 8px 4px; font-size: 9px; gap: 6px; }

  .bottom { justify-content: center; font-size: 10px; }
  .bottom > a { display: none; }
}

@media (max-width: 719px) and (min-height: 700px) {
  .person__media { aspect-ratio: 1 / 0.82; }
}

@media (max-width: 719px) and (max-height: 700px) {
  .lede { display: none; }
}

@media (max-width: 719px) and (min-height: 800px) {
  .intro .eyebrow { display: block; margin-bottom: 8px; font-size: 10px; }
}

@media (max-width: 719px) and (min-height: 900px) {
  .habikai__desc { display: block; font-size: 13px; }
}

@media (max-width: 719px) and (max-height: 600px) {
  :root { --gap: 8px; }
  .headline { font-size: 26px; }
  .person__media { aspect-ratio: 1 / 0.64; }
  .person__name { font-size: 22px; }
  .habikai { --phone-w: 88px; }
  .habikai__copy { gap: 7px; }
  .habikai__tagline { font-size: 18px; }
  .floor { padding-block: 4px 5px; }
  .btn--hab { padding-block: 9px; }
}

@media (max-width: 359px) {
  .btn--ghost { display: none; }
}

/* ---------- Motion ---------- */

@keyframes rise { from { opacity: 0; transform: translateY(18px) scale(0.985); } }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: scale(0.4); } }
@keyframes fill { to { transform: scaleX(1); } }
@keyframes wave { to { transform: scaleY(1); } }
@keyframes ping { 0% { transform: scale(0.6); opacity: 0.9; } 80%, 100% { transform: scale(1.6); opacity: 0; } }

::view-transition-group(*) { animation-duration: 0.45s; animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
  .signal__bars i { transform: none; }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}
