/* Nightfleet homepage */

:root {
  --night: #0F0F0D;
  --panel: #171613;
  --panel-2: #1D1C19;
  --panel-3: #22201C;
  --sunken: #141310;
  --line: #2E2C27;
  --line-2: #34322C;
  --line-3: #3A3832;
  --line-4: #4A473F;
  --text: #EDE8DD;
  --text-2: #D6D0C3;
  --text-3: #C9C2B3;
  --muted: #A8A193;
  --faint: #6B665C;

  --accent: #C4553A;
  --accent-text: #F0A48D;
  --accent-soft: #F2C1B2;
  --accent-muted: #E2C3B8;
  --held-bg: #1F1814;
  --held-bg-2: #211915;
  --held-line: #4A2E24;
  --held-line-2: #6B4A3E;

  --paper: #F6F3EC;
  --paper-2: #EFEADF;
  --paper-card: #FBF9F4;
  --ink: #1E1E1C;
  --ink-2: #3A3833;
  --ink-3: #2B2A27;
  --ink-muted: #5E5A52;
  --vermilion: #B5452B;

  --serif: 'Shippori Mincho', 'Hiragino Mincho ProN', Georgia, serif;
  --sans: 'Geist', 'Helvetica Neue', sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --wrap: 1280px;
  --gutter: 40px;
}

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

html { scroll-behavior: smooth; overflow-x: clip; }

body {
  margin: 0;
  background: var(--night);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img, svg { display: block; }
a { color: var(--text); text-underline-offset: 5px; }
a:hover { color: var(--accent-text); }
:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 3px; }
.morning :focus-visible { outline-color: var(--vermilion); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gutter); }
.serif { font-family: var(--serif); font-weight: 500; }
.mono { font-family: var(--mono); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  padding: 10px 16px; border-radius: 999px; background: var(--text); color: var(--night);
}
.skip:focus { top: 16px; }

/* ---------- type ---------- */

.eyebrow {
  margin: 0; font-size: 12px; letter-spacing: .3em; text-transform: uppercase; color: var(--muted);
}
.h1 {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(50px, 7.4vw, 104px); line-height: 1.02; letter-spacing: -0.01em; margin: 0;
}
.h2 {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(36px, 4.2vw, 58px); line-height: 1.1; margin: 0;
}
.lede { font-size: 19px; color: var(--text-2); margin: 0; }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 28px; border-radius: 999px; border: 1px solid transparent;
  font: 500 16px/1 var(--sans); text-decoration: none; cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.btn--sm { min-height: 44px; padding: 0 20px; font-size: 14px; }
.btn--light { background: var(--text); border-color: var(--text); color: var(--night); }
.btn--light:hover { background: var(--accent-text); border-color: var(--accent-text); color: var(--night); }
.btn--ghost { border-color: #57534A; color: var(--text); }
.btn--ghost:hover { background: var(--text); color: var(--night); }
.btn--outline { border-color: var(--text); color: var(--text); }
.btn--outline:hover { background: var(--text); color: var(--night); }
.btn--ink { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.btn--ink:hover { background: var(--vermilion); border-color: var(--vermilion); color: var(--paper); }
.btn--ink-outline { border-color: var(--ink); color: var(--ink); }
.btn--ink-outline:hover { background: var(--ink); color: var(--paper); }

/* ---------- header ---------- */

.site-header { position: relative; z-index: 5; }
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 26px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; text-decoration: none; color: var(--text); }
.brand svg { transform: rotate(-4deg); }
.brand span { font-family: var(--serif); font-size: 22px; font-weight: 600; letter-spacing: .05em; }
.nav { display: flex; gap: 30px; font-size: 14px; }
.nav a { color: var(--text-3); text-decoration: none; padding: 12px 0; }
.nav a:hover { color: var(--text); }

/* ---------- hero ---------- */

body { position: relative; }
.sky { position: absolute; top: 0; left: 0; width: 100%; height: 1100px; pointer-events: none; }
.sky circle { fill: var(--text); animation: twinkle 6s ease-in-out infinite; }

.hero__copy { position: relative; z-index: 2; padding-top: 110px; }
.moon { position: absolute; right: 30px; top: 20px; width: 280px; height: 280px; }

.time-pill {
  display: inline-flex; align-items: center; gap: 10px; margin: 0;
  padding: 6px 14px 6px 8px; border: 1px solid var(--line-2); border-radius: 999px;
  background: rgba(26, 25, 22, .7);
  font: 12.5px var(--mono); letter-spacing: .08em; color: var(--text-2);
}
.time-pill b {
  display: inline-flex; align-items: center; gap: 6px; padding: 2px 8px; border-radius: 999px;
  background: #2A2824; color: var(--text); font-weight: 400;
}
.hero .h1 { margin-top: 28px; max-width: 960px; }
.hero__row { display: flex; flex-wrap: wrap; gap: 28px 56px; align-items: flex-end; margin-top: 30px; }
.hero__row .lede { flex: 1 1 460px; max-width: 600px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- stage ---------- */

.stage-wrap { position: relative; padding-top: 96px; }
.glow {
  position: absolute; left: 50%; top: 60px; width: 1100px; max-width: 100%; height: 700px;
  transform: translateX(-50%); pointer-events: none;
  background: radial-gradient(ellipse at 50% 40%, rgba(237, 232, 221, .09), rgba(237, 232, 221, 0) 62%);
}
.stage { position: relative; padding-bottom: 140px; }
.tilt { position: relative; z-index: 1; transform: perspective(2600px) rotateX(9deg); transform-origin: 50% 0; transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.stage:hover .tilt { transform: perspective(2600px) rotateX(4deg); }

/* app window */
.app {
  background: var(--panel); border: 1px solid var(--line-2); border-radius: 16px; overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 2px 0 rgba(0, 0, 0, .4), 0 50px 100px -30px rgba(0, 0, 0, .85), 0 0 0 1px rgba(0, 0, 0, .5);
  font-size: 13px;
}
.app__bar {
  height: 50px; display: flex; align-items: center; gap: 16px; padding: 0 16px;
  background: var(--panel-2); border-bottom: 1px solid var(--line);
}
.lights { display: flex; gap: 8px; flex: none; }
.lights i { width: 12px; height: 12px; border-radius: 50%; background: #3E3B34; }
.seg { display: flex; padding: 3px; background: var(--sunken); border: 1px solid var(--line); border-radius: 9px; font-size: 12.5px; color: var(--text-3); }
.seg span { padding: 4px 12px; border-radius: 6px; }
.seg .is-on { background: #2A2824; color: var(--text); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06); }
.app__spacer { flex: 1; }
.search {
  display: inline-flex; align-items: center; gap: 8px; width: 250px; height: 32px; padding: 0 10px;
  border-radius: 9px; background: var(--sunken); border: 1px solid var(--line); font-size: 12.5px; color: var(--muted);
}
.kbd { margin-left: auto; font: 11px var(--mono); padding: 1px 6px; border: 1px solid var(--line-2); border-radius: 5px; color: var(--muted); }
.qh {
  display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 12px; border-radius: 999px;
  background: #24221E; border: 1px solid var(--line-3); font-size: 12px; color: var(--text); white-space: nowrap;
}

.app__body { display: flex; }
.side {
  width: 232px; flex: none; background: var(--sunken); border-right: 1px solid var(--line);
  padding: 16px 10px; display: flex; flex-direction: column; gap: 2px;
}
.side__label { padding: 2px 10px 8px; font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.side__label--gap { padding-top: 18px; }
.machine { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 9px; }
.machine.is-on { background: var(--panel-3); border: 1px solid var(--line-2); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04); }
.machine__text { flex: 1; min-width: 0; }
.machine__name { display: block; font-family: var(--serif); font-size: 15px; color: var(--text); }
.machine__sub { display: block; font-size: 11.5px; color: var(--muted); }
.machine__sub--held { color: var(--accent-text); }
.dot { width: 7px; height: 7px; border-radius: 50%; flex: none; background: var(--text); }
.dot--ring { background: none; border: 1px solid var(--muted); }
.dot--dim { background: var(--muted); }
.dot--breath { animation: breath 4.8s ease-in-out infinite; }
.diamond { width: 7px; height: 7px; border-radius: 1.5px; transform: rotate(-8deg); background: var(--accent); flex: none; }
.view { display: flex; justify-content: space-between; padding: 6px 10px; color: var(--text-2); }
.view span:last-child { font: 11.5px var(--mono); color: var(--muted); }
.view .count--held { font-size: 11px; padding: 0 7px; border-radius: 999px; background: var(--accent); color: #fff; }
.side__grow { flex: 1; min-height: 30px; }
.netcard { margin: 0 2px; padding: 12px; border-radius: 11px; border: 1px solid var(--line); background: #1A1916; font-size: 12px; color: var(--text-2); }
.netcard div { display: flex; align-items: center; gap: 8px; }
.netcard p { margin: 3px 0 0; color: var(--muted); }

.main { flex: 1; min-width: 0; padding: 22px 24px 24px; }
.main__head { display: flex; flex-wrap: wrap; gap: 12px; align-items: baseline; justify-content: space-between; }
.main__title { font-family: var(--serif); font-size: 28px; }
.main__date { margin-left: 12px; font-size: 12.5px; color: var(--muted); }
.main__next { font-size: 12.5px; color: var(--muted); }

.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-top: 16px; }
.tile { background: var(--panel-2); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04); }
.tile__label { font-size: 11.5px; color: var(--muted); }
.tile__value { display: flex; align-items: baseline; gap: 8px; margin-top: 2px; }
.tile__value b { font-size: 28px; font-weight: 600; letter-spacing: -0.03em; }
.tile__value span { font-size: 12px; color: var(--muted); }
.tile--held { background: #231A16; border-color: var(--held-line); }
.tile--held .tile__label { color: var(--accent-text); }
.tile--held .tile__value span, .tile--held .tile__foot { color: var(--accent-muted); }
.tile__foot { font-size: 11.5px; margin-top: 6px; }
.segbar { display: flex; gap: 3px; margin-top: 8px; }
.segbar i { flex: 1; height: 4px; border-radius: 2px; background: var(--text); }
.segbar i.off { background: var(--line-4); }
.tile--ring { display: flex; align-items: center; gap: 12px; }
.tile--ring b { display: block; font-size: 20px; font-weight: 600; }
.tile--ring small { display: block; font-size: 11px; color: var(--muted); }

.main__cols { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 14px; }
.agents { flex: 3 1 460px; min-width: 0; background: #1A1916; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.agents__head { display: flex; justify-content: space-between; padding: 10px 14px; border-bottom: 1px solid var(--line); font-size: 12.5px; }
.agents__head span:last-child { color: var(--muted); }
.agent { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid #24221E; font-size: 12.5px; }
.agent:last-child { border-bottom: 0; }
.agent--held { background: var(--held-bg-2); }
.badge {
  width: 24px; height: 24px; flex: none; border-radius: 6px; display: grid; place-items: center;
  font: 600 9.5px var(--mono);
}
.badge--cc { background: var(--text); color: var(--night); }
.badge--cx { border: 1px solid #57534A; color: var(--text); }
.agent--held .badge--cx { border-color: var(--held-line-2); color: var(--accent-text); }
.agent__text { flex: 1; min-width: 0; }
.agent__title { display: block; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.agent__meta { font: 11px var(--mono); color: var(--muted); }
.agent--held .agent__meta { color: var(--accent-muted); }
.agent__state { width: 108px; flex: none; font-size: 11px; color: var(--muted); text-align: right; white-space: nowrap; }
.agent__state--held { color: var(--accent-text); }
.progress { display: block; height: 3px; border-radius: 2px; background: var(--line-2); }
.progress i { display: block; height: 3px; border-radius: 2px; background: var(--text); width: var(--p); }
.agent__state .progress + span { display: block; font: 10.5px var(--mono); color: var(--muted); margin-top: 3px; text-align: left; }

.held {
  flex: 2 1 280px; min-width: 0; background: var(--held-bg); border: 1px solid var(--held-line); border-radius: 12px;
  padding: 14px; display: flex; flex-direction: column; gap: 10px;
}
.held__label { display: flex; align-items: center; gap: 10px; font-size: 11.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-text); }
.ripple { position: relative; width: 8px; height: 8px; display: inline-block; flex: none; }
.ripple::before { content: ""; position: absolute; inset: 0; border-radius: 1.5px; background: var(--accent); }
.ripple::after { content: ""; position: absolute; inset: -7px; border: 1px solid var(--accent); border-radius: 50%; animation: ripple 3.6s ease-out infinite both; }
.held__q { font-family: var(--serif); font-size: 17px; line-height: 1.5; color: var(--text); }
.held__meta { font-size: 11.5px; color: var(--accent-muted); }
.diff { border: 1px solid #3A2A23; border-radius: 8px; overflow: hidden; font: 11px/1.7 var(--mono); }
.diff div { padding: 2px 10px; background: #2A1A15; color: var(--accent-soft); }
.diff .diff__path { padding: 5px 10px; background: #17120F; color: var(--muted); border-bottom: 1px solid #3A2A23; }
.held__actions { display: flex; gap: 8px; margin-top: 2px; }
.held__actions span { flex: 1; display: inline-flex; align-items: center; justify-content: center; height: 32px; border-radius: 8px; font-size: 12.5px; }
.held__actions .primary { background: var(--text); color: var(--night); font-weight: 600; }
.held__actions .secondary { border: 1px solid #4A3A32; color: var(--text); }

/* devices */
.devices { position: absolute; inset: 0; pointer-events: none; z-index: 2; }
.phone {
  position: absolute; left: -28px; bottom: 10px; width: 262px; height: 540px; border-radius: 46px; padding: 10px;
  background: #0B0B0A; border: 1px solid var(--line-3);
  box-shadow: 0 40px 80px -20px rgba(0, 0, 0, .9), inset 0 0 0 2px var(--panel-2);
  animation: float 9s ease-in-out infinite;
}
.phone__screen {
  position: relative; height: 100%; border-radius: 37px; overflow: hidden; background: #13120F;
  padding: 18px 14px; display: flex; flex-direction: column; align-items: center;
}
.phone__island { width: 84px; height: 24px; border-radius: 12px; background: #000; }
.phone__focus { margin-top: 14px; display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; background: #24221E; font-size: 10.5px; color: var(--text-2); }
.phone__time { font-family: var(--serif); font-size: 62px; line-height: 1.05; margin-top: 6px; color: var(--text); }
.phone__date { font-size: 12px; color: var(--muted); }
.phone__stack { margin-top: auto; width: 100%; display: flex; flex-direction: column; gap: 8px; }
.notif { padding: 11px 12px; border-radius: 18px; background: rgba(46, 44, 39, .85); border: 1px solid var(--line-3); }
.notif--back { background: rgba(36, 34, 30, .8); border-color: var(--line); transform: scale(.96); opacity: .85; padding: 10px 12px; }
.notif__head { display: flex; align-items: center; gap: 8px; font-size: 11px; color: var(--text); }
.notif__head b { font-weight: 600; }
.notif__head span { margin-left: auto; font-size: 10px; color: var(--muted); }
.notif__title { font-size: 12px; font-weight: 600; color: var(--text); margin-top: 6px; }
.notif__body { font-size: 11.5px; color: var(--text-2); line-height: 1.4; }
.phone__buttons { display: flex; justify-content: space-between; padding: 8px 18px 4px; }
.phone__buttons i { width: 38px; height: 38px; border-radius: 50%; background: #24221E; }

.watch {
  position: absolute; right: -20px; bottom: 60px; width: 176px; height: 212px; border-radius: 50px; padding: 11px;
  background: #0B0B0A; border: 1px solid var(--line-3); box-shadow: 0 30px 60px -18px rgba(0, 0, 0, .9);
  animation: float 10s ease-in-out -4s infinite;
}
.watch__screen { height: 100%; border-radius: 40px; background: #000; padding: 20px 16px; display: flex; flex-direction: column; }
.watch__top { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); }
.watch__ring { display: flex; align-items: center; gap: 12px; margin-top: 12px; line-height: 1.25; }
.watch__ring b { display: block; font-size: 20px; font-weight: 600; }
.watch__ring small { font-size: 10.5px; color: var(--muted); }
.watch__held { margin-top: auto; font-size: 11.5px; color: var(--accent-text); }

/* ---------- sections ---------- */

.section { padding-block: 140px; }
.section--rule { border-top: 1px solid #24221E; }
.section__head { display: flex; flex-wrap: wrap; gap: 24px 64px; align-items: flex-end; justify-content: space-between; }
.section__head > div { max-width: 780px; }
.section__head .h2 { margin-top: 18px; }
.section__head > p { flex: 0 1 400px; margin: 0; color: var(--text-2); }

/* timeline */
.tl {
  margin-top: 56px; background: #161512; border: 1px solid var(--line); border-radius: 16px; overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05), 0 50px 100px -50px rgba(0, 0, 0, .9);
}
.tl__legend { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--line); font-size: 12.5px; color: var(--text-2); }
.tl__legend strong { font-weight: 600; color: var(--text); }
.tl__legend span { display: inline-flex; align-items: center; gap: 6px; }
.tl__legend .range { margin-left: auto; font: 11.5px var(--mono); color: var(--muted); }
.key { width: 14px; height: 6px; border-radius: 3px; background: var(--text-2); }
.key--held { border: 1px solid var(--accent-text); background: repeating-linear-gradient(135deg, rgba(240, 164, 141, .35) 0 3px, transparent 3px 6px); }
.key--upd { width: 10px; height: 10px; border-radius: 0; background: none; border: 1px dashed var(--muted); }
.tl__scroll { overflow-x: auto; }
.tl__inner { min-width: 900px; padding: 18px 18px 30px; }
.tl__axis { display: flex; padding-left: 120px; font: 11px var(--mono); color: var(--muted); }
.tl__axis span { flex: 1; }
.tl__grid { position: relative; margin-top: 8px; }
.tl__bands { position: absolute; top: 0; bottom: 0; left: 120px; right: 0; pointer-events: none; }
.band-quiet { position: absolute; top: 0; bottom: 0; left: 10%; width: 80%; background: rgba(237, 232, 221, .025); border-inline: 1px solid var(--line); }
.band-upd { position: absolute; top: 0; bottom: 0; left: 65%; width: 2.5%; border-inline: 1px dashed var(--faint); background: rgba(237, 232, 221, .04); }
.now { position: absolute; top: -2px; bottom: -6px; left: 72%; border-left: 1px solid var(--accent); }
.now span { position: absolute; top: -20px; left: 0; transform: translateX(-50%); font: 10.5px var(--mono); padding: 1px 6px; border-radius: 4px; background: var(--accent); color: #fff; white-space: nowrap; }
.lane { display: flex; align-items: stretch; border-top: 1px solid #24221E; }
.lane:last-of-type { border-bottom: 1px solid #24221E; }
.lane__label { width: 120px; flex: none; padding: 14px 0; }
.lane__label b { display: block; font-family: var(--serif); font-size: 17px; font-weight: 500; }
.lane__label span { font-size: 11px; color: var(--muted); }
.lane__track { position: relative; flex: 1; height: var(--h, 64px); }
.bar {
  position: absolute; top: var(--t, 20px); left: var(--l); width: var(--w); height: 22px; border-radius: 6px;
  background: var(--text-2); color: var(--night); font-size: 11px; font-weight: 500; padding: 0 8px;
  display: flex; align-items: center; white-space: nowrap; overflow: hidden;
}
.bar--bright { background: var(--text); }
.bar--dim { background: #BDB6A8; }
.bar--open { border-radius: 6px 0 0 6px; }
.bar--held {
  border-radius: 0 6px 6px 0; border: 1px solid var(--accent-text); color: var(--accent-soft); font-weight: 400;
  background: repeating-linear-gradient(135deg, rgba(240, 164, 141, .3) 0 4px, transparent 4px 8px);
}
.lane__note { position: absolute; top: var(--t, 24px); left: var(--l); font-size: 11px; color: var(--muted); line-height: 22px; white-space: nowrap; }
.lane__note--ok { display: inline-flex; align-items: center; gap: 6px; color: var(--text-2); }
.marker { position: absolute; top: calc(var(--t) + 5px); left: var(--l); width: 12px; height: 12px; margin-left: -6px; border-radius: 2px; transform: rotate(45deg); background: var(--accent); box-shadow: 0 0 0 3px #161512; }
.handoff { position: absolute; left: 16.8%; top: 32px; width: 24px; height: 76px; overflow: visible; }
.gpu { position: absolute; left: 30.3%; width: 69.7%; top: 42px; height: 32px; }
.bar--held { padding-left: 22px; }
.tooltip {
  position: absolute; left: calc(var(--l) - 22px); top: var(--t); width: 360px; padding: 12px 14px; border-radius: 12px; z-index: 2;
  background: rgba(36, 34, 30, .96); border: 1px solid var(--line-4); box-shadow: 0 20px 40px -12px rgba(0, 0, 0, .8);
  font-size: 12px; color: var(--text-2);
}
.tooltip::before {
  content: ""; position: absolute; left: 16px; top: -6px; width: 10px; height: 10px; transform: rotate(45deg);
  background: rgba(36, 34, 30, .96); border-left: 1px solid var(--line-4); border-top: 1px solid var(--line-4);
}
.tooltip .mono { font-size: 11px; color: var(--accent-text); }
.tooltip b { display: block; color: var(--text); font-weight: 500; margin-top: 4px; }
.tooltip p { margin: 4px 0 0; }
.tl__upd { position: absolute; left: calc(120px + 65% + 6px); bottom: -22px; font: 10.5px var(--mono); color: var(--muted); }

/* ask */
.ask { display: flex; flex-wrap: wrap; gap: 64px; align-items: center; }
.ask__copy { flex: 1 1 380px; }
.ask__copy .h2 { margin-top: 18px; }
.ask__copy p:last-child { margin: 22px 0 0; max-width: 440px; font-size: 18px; color: var(--text-2); }
.ask__demo { flex: 1 1 560px; min-width: 0; position: relative; }
.ask__demo::before { content: ""; position: absolute; inset: -40px; pointer-events: none; background: radial-gradient(ellipse at 50% 50%, rgba(237, 232, 221, .07), rgba(237, 232, 221, 0) 65%); }
.palette {
  position: relative; background: rgba(29, 28, 25, .94); border: 1px solid var(--line-3); border-radius: 18px; overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 60px 120px -40px rgba(0, 0, 0, .9);
}
.palette__input { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.palette__q { flex: 1; font-size: 17px; color: var(--text); }
.palette__input .kbd { margin-left: 0; }
.palette__body { padding: 20px 22px 18px; }
.palette__src { display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: var(--muted); }
.palette__lead { margin: 14px 0 0; font-family: var(--serif); font-size: 21px; line-height: 1.5; color: var(--text); }
.palette__body p.text { margin: 10px 0 0; font-size: 15px; line-height: 1.7; color: var(--text-2); }
.caret { display: inline-block; width: 8px; height: 17px; margin-left: 3px; vertical-align: -3px; background: var(--text); animation: caret 1s steps(1) infinite; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.chip { display: inline-flex; align-items: center; height: 28px; padding: 0 10px; border-radius: 999px; background: #24221E; border: 1px solid var(--line-2); font: 11px var(--mono); color: var(--text-2); }
.chip--held { background: #2A1A15; border-color: var(--held-line-2); color: var(--accent-soft); }
.palette__foot { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 18px; border-top: 1px solid var(--line); background: #191815; }
.palette__foot span { display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--line-3); font-size: 12.5px; color: var(--text-2); }
.palette__foot .primary { background: var(--text); border-color: var(--text); color: var(--night); font-weight: 600; }

/* bento */
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; margin-top: 56px; }
.card {
  grid-column: span 2; background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 24px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04); display: flex; flex-direction: column; gap: 16px;
}
.card--wide { grid-column: span 3; padding: 26px; gap: 20px; }
.card h3 { font-family: var(--serif); font-weight: 500; font-size: 24px; margin: 0; }
.card--wide h3 { font-size: 26px; }
.card p { margin: 6px 0 0; color: var(--text-2); font-size: 15px; }
.card--wide p { font-size: 16px; }
.settings { background: var(--panel-2); border: 1px solid var(--line); border-radius: 12px; padding: 4px 16px; font-size: 13px; }
.settings div { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.settings div:last-child { border-bottom: 0; }
.settings span:last-child { color: var(--text-2); text-align: right; }
.settings .held-text { color: var(--accent-text); }
.toggle { display: inline-flex; align-items: center; gap: 10px; }
.toggle i { position: relative; width: 36px; height: 20px; border-radius: 999px; background: var(--text); }
.toggle i::after { content: ""; position: absolute; right: 2px; top: 2px; width: 16px; height: 16px; border-radius: 50%; background: var(--night); }
.hand { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 13px; }
.hand__box { flex: 1 1 140px; background: var(--panel-2); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.hand__box--to { background: var(--panel-3); border-color: var(--line-4); }
.hand__box b { display: block; font-family: var(--serif); font-size: 17px; font-weight: 500; }
.hand__box span { color: var(--muted); font-size: 12px; }
.hand__box--to span { color: var(--text-2); }
.axis-row { display: flex; justify-content: space-between; font: 11px var(--mono); color: var(--muted); margin-top: 6px; }
.updates { display: flex; flex-direction: column; gap: 8px; font-size: 13px; }
.updates div { display: flex; justify-content: space-between; padding: 9px 12px; border-radius: 10px; background: var(--panel-2); border: 1px solid var(--line); }
.updates span:last-child { font: 11.5px var(--mono); color: var(--text-2); }

/* dawn + morning */
.dawn { position: relative; height: 170px; }
.dawn svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.morning { background: var(--paper); color: var(--ink); }
.morning a:hover { color: var(--vermilion); }
.morning__inner { padding-block: 110px 140px; display: flex; flex-wrap: wrap; gap: 64px; align-items: flex-start; }
.morning__copy { flex: 1 1 420px; }
.morning__copy .mono { margin: 0; font-size: 13px; letter-spacing: .14em; color: var(--ink-muted); }
.morning__copy .h1 { font-size: clamp(50px, 6vw, 88px); line-height: 1.04; margin-top: 22px; }
.morning__copy > p:not(.mono) { margin: 24px 0 0; max-width: 460px; font-size: 18px; color: var(--ink-2); }
.morning__copy .actions { margin-top: 36px; }
.desk { flex: 1.2 1 520px; min-width: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.letter { grid-row: span 2; background: var(--paper-card); border: 1px solid rgba(30, 30, 28, .08); box-shadow: 0 34px 70px -44px rgba(30, 30, 28, .45); padding: 34px 30px 28px; }
.letter__head { display: flex; justify-content: space-between; font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-muted); }
.letter h3 { font-family: var(--serif); font-weight: 500; font-size: 28px; margin: 18px 0; }
.letter ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; font-family: var(--serif); font-size: 16px; line-height: 1.65; color: var(--ink-3); counter-reset: roman; }
.letter li { display: flex; gap: 12px; }
.letter li::before { counter-increment: roman; content: counter(roman, lower-roman) "."; width: 20px; flex: none; color: var(--ink-muted); font-size: 13px; }
.letter li.big span { font-size: 18px; }
.letter__sign { display: flex; justify-content: flex-end; align-items: center; gap: 12px; margin-top: 22px; font-family: var(--serif); font-size: 14px; letter-spacing: .1em; color: var(--ink-2); }
.letter__sign svg { transform: rotate(6deg); }
.widget { background: rgba(251, 249, 244, .95); border: 1px solid rgba(30, 30, 28, .1); border-radius: 24px; padding: 18px 20px; box-shadow: 0 24px 44px -30px rgba(30, 30, 28, .45); }
.widget__head { display: flex; justify-content: space-between; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-muted); }
.widget__big { font-family: var(--serif); font-size: 24px; margin-top: 6px; }
.widget__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 12px; margin-top: 12px; font-size: 12.5px; color: var(--ink-2); }
.meter { margin-top: 12px; font-size: 12.5px; color: var(--ink-2); }
.meter div { display: flex; justify-content: space-between; }
.meter i { display: block; height: 3px; border-radius: 2px; background: rgba(30, 30, 28, .12); margin: 6px 0 12px; }
.meter i:last-child { margin-bottom: 0; }
.meter i b { display: block; height: 3px; border-radius: 2px; background: var(--ink); width: var(--p); }

.site-footer { border-top: 1px solid rgba(30, 30, 28, .1); background: var(--paper); color: var(--ink-muted); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 28px; padding-block: 28px; font-size: 13px; align-items: center; }
.site-footer .serif { font-size: 16px; color: var(--ink); }
.site-footer nav { margin-left: auto; display: flex; gap: 22px; }
.site-footer nav a { color: var(--ink-2); text-decoration: none; }

/* ---------- motion ---------- */

@keyframes twinkle { 0%, 100% { opacity: .2; } 50% { opacity: .85; } }
@keyframes breath { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
@keyframes ripple { 0% { transform: scale(.5); opacity: 0; } 20% { opacity: .8; } 100% { transform: scale(2.2); opacity: 0; } }
@keyframes caret { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.hero__copy > * { animation: rise 1.2s ease-out both; }
.hero__copy > :nth-child(3) { animation-delay: .15s; }
.hero__copy > :nth-child(4) { animation-delay: .3s; }

.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .9s ease, transform .9s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */

@media (max-width: 1180px) {
  .tilt, .stage:hover .tilt { transform: none; }
  .devices { position: static; display: flex; flex-wrap: wrap; gap: 24px; justify-content: center; margin-top: 28px; }
  .phone, .watch { position: relative; left: auto; right: auto; bottom: auto; animation: none; }
  .stage { padding-bottom: 0; }
}
@media (max-width: 960px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card, .card--wide { grid-column: span 2; }
}
@media (max-width: 860px) {
  .side, .held, .seg, .search { display: none; }
}
@media (max-width: 720px) {
  :root { --gutter: 16px; }
  .nav { display: none; }
  .hero__copy { padding-top: 64px; }
  .moon { width: 150px; height: 150px; right: -6px; top: 30px; }
  .section { padding-block: 96px; }
  .bento { grid-template-columns: minmax(0, 1fr); }
  .card, .card--wide { grid-column: auto; }
  .agent__state { width: 76px; }
  .agent__state .progress + span { display: none; }
  .agent__meta { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile--ring { flex-direction: column; align-items: flex-start; }
  .time-pill { font-size: 11px; letter-spacing: .04em; }
  .site-footer nav { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
