/* =========================================================
   Zenith site: tokens
   Brand comes from the icon: warm stone, ink frame, navy ridge, gold ridge.
   ========================================================= */

:root {
  --paper: #ECE9E2;
  --paper-2: #F6F4EF;
  --ink: #14171C;
  --ink-2: #4C525B;
  --ink-3: #7A8089;
  --line: rgba(20, 23, 28, .10);
  --navy: #0E3A5C;
  --navy-bright: #3F78A8;
  --gold: #C9994C;
  --gold-soft: #E8C383;
  --night: #0A1622;
  --slab: #0B0D10;

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-round: ui-rounded, "SF Pro Rounded", var(--font);

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease: cubic-bezier(.22, .61, .2, 1);
  --spring: cubic-bezier(.3, 1.25, .5, 1);

  --wrap: 1120px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #10141A;
    --paper-2: #181D24;
    --ink: #ECE9E2;
    --ink-2: #A9AFB7;
    --ink-3: #7D838C;
    --line: rgba(236, 233, 226, .12);
    --navy: #3F78A8;
  }
}



/* ========================================================= base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(var(--wrap), 100% - 48px); margin-inline: auto; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 999px;
  text-decoration: none; transition: top .2s;
}
.skip-link:focus { top: 16px; }

/* ========================================================= header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 78%, transparent);
  -webkit-backdrop-filter: saturate(1.6) blur(18px);
  backdrop-filter: saturate(1.6) blur(18px);
  border-bottom: 1px solid transparent;
  transition: border-color .4s var(--ease);
}
.site-header.scrolled { border-bottom-color: var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 650; letter-spacing: -.01em; text-decoration: none; }
.site-nav { display: flex; align-items: center; gap: 28px; font-size: 15px; }
.site-nav a { text-decoration: none; color: var(--ink-2); transition: color .2s; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--ink); }
.site-nav .btn { color: var(--paper); }

/* ========================================================= buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--ink); color: var(--paper);
  font-weight: 600; font-size: 15px; letter-spacing: -.005em;
  padding: 14px 26px; border-radius: 999px; text-decoration: none;
  transition: transform .35s var(--ease), background .35s var(--ease), box-shadow .35s var(--ease);
  box-shadow: 0 10px 24px -12px rgba(10, 22, 34, .45);
}
.btn:hover { transform: translateY(-1px); background: var(--navy); }
@media (prefers-color-scheme: dark) { .btn:hover { background: var(--gold-soft); } }
.btn-small { padding: 8px 16px; font-size: 14px; box-shadow: none; }
.fine { font-size: 13px; color: var(--ink-3); }

/* ========================================================= motion primitives */
.load-in, .reveal {
  opacity: 0;
  transform: translateY(22px);
  filter: blur(10px);
  transition: opacity 1.2s var(--ease), transform 1.7s var(--ease-out), filter 1.3s var(--ease);
  transition-delay: var(--d, 0s);
}
body.ready .load-in, .reveal.is-in { opacity: 1; transform: none; filter: none; }

/* ========================================================= hero */
.hero {
  position: relative;
  padding: clamp(48px, 9vh, 96px) 24px 40px;
  text-align: center;
  overflow-x: clip;
}
.sun {
  position: absolute; left: 50%; top: -260px; z-index: -1;
  width: 820px; height: 820px; margin-left: -410px; border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 195, 131, .55) 0%, rgba(201, 153, 76, .22) 32%, rgba(201, 153, 76, 0) 66%);
  opacity: 0; transform: translateY(260px) scale(.7);
  transition: opacity 2.2s var(--ease), transform 2.6s var(--ease-out);
}
body.ready .sun { opacity: 1; transform: none; }
@media (prefers-color-scheme: dark) {
  .sun { background: radial-gradient(circle, rgba(232, 195, 131, .30) 0%, rgba(201, 153, 76, .12) 34%, rgba(201, 153, 76, 0) 66%); }
}

.wordmark {
  margin: 0;
  font: 750 clamp(84px, 15vw, 188px)/.86 var(--font-display);
  letter-spacing: -.055em;
  padding-right: .04em; /* optical balance for the negative tracking */
}
.hero-sub {
  margin: 18px auto 0;
  font: 600 clamp(22px, 2.6vw, 30px)/1.2 var(--font-display);
  letter-spacing: -.02em;
}
.hero-lede { margin: 14px auto 0; max-width: 34ch; color: var(--ink-2); font-size: 17px; }
.hero-cta { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-top: 32px; }

/* ---------- MacBook mockup: everything inside scales with the figure (cqw) */
.mac {
  container-type: inline-size;
  width: min(1000px, 100%);
  margin: clamp(48px, 8vh, 80px) auto 0;
}
.mac-screen {
  width: 88%; margin: 0 auto;
  background: #0C0E11;
  padding: 1.25cqw 1.25cqw 0;
  border-radius: 2.4cqw 2.4cqw 0 0;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06), 0 50px 90px -40px rgba(10, 22, 34, .55);
}
.mac-display {
  container-type: inline-size;
  position: relative; overflow: hidden;
  aspect-ratio: 16 / 10;
  border-radius: 1.1cqw 1.1cqw 0 0;
  background: var(--night);
}
.wallpaper { position: absolute; inset: 0; width: 100%; height: 100%; }
.mac-base {
  position: relative; height: 1.9cqw;
  background: linear-gradient(#2B2F35, #15171B 70%, #0C0D10);
  border-radius: .3cqw .3cqw 1.6cqw 1.6cqw / .3cqw .3cqw 1.6cqw 1.6cqw;
}
.mac-base span {
  position: absolute; left: 50%; top: 0; width: 14%; height: .7cqw; transform: translateX(-50%);
  background: #121417; border-radius: 0 0 .8cqw .8cqw;
}

.menubar {
  position: absolute; inset: 0 0 auto; height: 2.5cqw; padding: 0 1.4cqw;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(10, 22, 34, .32);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.menubar span { display: flex; align-items: center; gap: 1.1cqw; }
.menubar i { width: 1.1cqw; height: 1.1cqw; border-radius: 50%; background: rgba(255, 255, 255, .85); }
.menubar b { width: 2.6cqw; height: .55cqw; border-radius: 1cqw; background: rgba(255, 255, 255, .55); }
.mb-left b:first-of-type { width: 3.6cqw; background: rgba(255, 255, 255, .8); }
.menubar em { font: 500 1.05cqw/1 var(--font); font-style: normal; color: rgba(255, 255, 255, .85); }

/* ---------- Zenith widgets
   A faithful copy of the app's open notch. Every size is in the app's points
   (SwiftUI values from NotchConstants, MusicWidgetCompact, CalendarWidgetCompact)
   multiplied by --pt, so the hero and the feature cards are the same component at
   different scales. --dom is the dominant color the app takes from the album art. */
.zw {
  --pt: 1px;
  --dom: #E3B061;
  --dom-a: #C9994C;
  --dom-b: #0E3A5C;
  color: #fff; text-align: left;
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  transition: --dom .8s var(--ease);
}
@property --dom { syntax: "<color>"; inherits: true; initial-value: #E3B061; }
.zw svg { display: block; fill: currentColor; }
:where(.zw) button { all: unset; cursor: pointer; display: grid; place-items: center; border-radius: calc(4 * var(--pt)); }
:where(.zw) button:focus-visible { outline: 2px solid var(--dom); outline-offset: 2px; }

.cover {
  background:
    radial-gradient(circle at 50% 40%, var(--dom-a) 0 21%, transparent 22%),
    linear-gradient(transparent 62%, color-mix(in srgb, var(--dom-a) 55%, #000) 62% 66%, transparent 66%),
    linear-gradient(170deg, var(--dom-b), color-mix(in srgb, var(--dom-b) 40%, #000));
}

/* island (closed 185x32, open 640x210, radii from NotchConstants.CornerRadius) */
.island {
  --pt: calc(100cqw / 1100);
  --r: calc(6 * var(--pt));
  position: absolute; left: 50%; top: 0; z-index: 2;
  width: calc(185 * var(--pt)); height: calc(32 * var(--pt));
  transform: translateX(-50%);
  background: #000;
  border-radius: 0 0 calc(14 * var(--pt)) calc(14 * var(--pt));
  transition: width .55s var(--spring), height .55s var(--spring), border-radius .55s var(--spring), --r .55s var(--spring), --dom .8s var(--ease);
}
@property --r { syntax: "<length>"; inherits: true; initial-value: 0px; }
.island::before, .island::after { content: ""; position: absolute; top: 0; width: var(--r); height: var(--r); }
.island::before { left: calc(var(--r) * -1); background: radial-gradient(circle at 0 100%, transparent calc(var(--r) - .5px), #000 var(--r)); }
.island::after { right: calc(var(--r) * -1); background: radial-gradient(circle at 100% 100%, transparent calc(var(--r) - .5px), #000 var(--r)); }
.island.open {
  --r: calc(19 * var(--pt));
  width: calc(640 * var(--pt)); height: calc(210 * var(--pt));
  border-radius: 0 0 calc(24 * var(--pt)) calc(24 * var(--pt));
}
.i-body {
  position: absolute; inset: 0; overflow: hidden; border-radius: inherit;
  opacity: 0; transition: opacity .2s var(--ease);
}
.island:not(.open) .i-body { pointer-events: none; }
.island.open .i-body { opacity: 1; transition: opacity .3s ease-in .12s; }
.bleed {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(calc(320 * var(--pt)) circle at 20% 70%, color-mix(in srgb, var(--dom) 45%, transparent), transparent);
}
.i-top { position: relative; height: calc(32 * var(--pt)); display: flex; align-items: center; justify-content: space-between; padding: 0 calc(8 * var(--pt)); }
.i-tabs { display: flex; gap: calc(6 * var(--pt)); }
.i-tab { width: calc(26 * var(--pt)); height: calc(22 * var(--pt)); color: rgba(255, 255, 255, .3); border-radius: calc(5 * var(--pt)) !important; }
.i-tab.on { color: rgba(255, 255, 255, .9); background: rgba(255, 255, 255, .12); }
.i-tab svg { width: calc(11 * var(--pt)); height: calc(11 * var(--pt)); }
.i-gear { width: calc(26 * var(--pt)); height: calc(22 * var(--pt)); color: rgba(255, 255, 255, .4); }
.i-gear svg { width: calc(12 * var(--pt)); height: calc(12 * var(--pt)); fill: none !important; stroke: currentColor; stroke-width: 2.2; }
.i-content { position: relative; height: calc(178 * var(--pt)); display: flex; }
.i-content > .w-music { width: calc(372 * var(--pt)); flex: none; }
.vdiv { width: calc(.5 * var(--pt)); min-width: .5px; margin: calc(8 * var(--pt)) 0; background: rgba(255, 255, 255, .08); flex: none; }
.i-content > .w-cal { flex: 1; min-width: 0; }

/* music (MusicWidgetCompact) */
.w-music { display: flex; align-items: center; gap: calc(12 * var(--pt)); padding: calc(16 * var(--pt)); height: 100%; }
.w-art { flex: none; width: calc(140 * var(--pt)); height: calc(140 * var(--pt)); border-radius: calc(10 * var(--pt)); }
.w-col { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: calc(6 * var(--pt)); }
.w-head { display: flex; align-items: center; gap: calc(8 * var(--pt)); }
.w-head > div { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: calc(3 * var(--pt)); }
.w-title { font-size: calc(14 * var(--pt)); line-height: calc(18 * var(--pt)); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.w-artist { font-size: calc(11 * var(--pt)); line-height: 1.2; color: rgba(255, 255, 255, .5); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.viz { flex: none; display: flex; align-items: center; gap: calc(2 * var(--pt)); width: calc(28 * var(--pt)); height: calc(20 * var(--pt)); justify-content: center; }
.viz i { width: calc(3 * var(--pt)); height: 100%; border-radius: calc(1.5 * var(--pt)); background: color-mix(in srgb, var(--dom) 80%, transparent); transform: scaleY(.15); }
.playing .viz i { animation: viz .45s ease-in-out infinite alternate; }
.viz i:nth-child(2) { animation-delay: -.2s !important; animation-duration: .38s !important; }
.viz i:nth-child(3) { animation-delay: -.35s !important; animation-duration: .5s !important; }
.viz i:nth-child(4) { animation-delay: -.1s !important; animation-duration: .33s !important; }
.viz i:nth-child(5) { animation-delay: -.28s !important; animation-duration: .42s !important; }
@keyframes viz { from { transform: scaleY(.25); } to { transform: scaleY(1); } }
.w-bar { position: relative; height: calc(16 * var(--pt)); display: flex; align-items: center; cursor: pointer; }
.w-bar > i { position: absolute; left: 0; right: 0; height: calc(3 * var(--pt)); border-radius: calc(3 * var(--pt)); background: rgba(255, 255, 255, .2); transition: height .2s var(--ease); }
.w-bar > b { position: absolute; left: 0; height: calc(3 * var(--pt)); border-radius: calc(3 * var(--pt)); background: var(--dom); transition: height .2s var(--ease); }
.w-bar:hover > i, .w-bar:hover > b { height: calc(8 * var(--pt)); }
.w-times { display: flex; justify-content: space-between; font: 500 calc(9 * var(--pt))/1 ui-monospace, "SF Mono", Menlo, monospace; color: rgba(255, 255, 255, .35); }
.w-ctrls { display: flex; align-items: center; margin-top: calc(2 * var(--pt)); }
.w-ctrls button { flex: 1; color: rgba(255, 255, 255, .8); height: calc(24 * var(--pt)); }
.w-ctrls .sm { color: rgba(255, 255, 255, .4); }
.w-ctrls .sm.on { color: var(--dom); }
.w-ctrls .sm svg { width: calc(12 * var(--pt)); height: calc(12 * var(--pt)); fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.w-ctrls .md svg { width: calc(15 * var(--pt)); height: calc(15 * var(--pt)); }
.w-ctrls .lg { color: #fff; }
.w-ctrls .lg svg { width: calc(20 * var(--pt)); height: calc(20 * var(--pt)); }

/* calendar (CalendarWidgetCompact) */
.w-cal { display: flex; flex-direction: column; height: 100%; }
.c-top { flex: 1; min-height: 0; display: flex; }
.c-date { flex: none; width: calc(80 * var(--pt)); display: flex; flex-direction: column; align-items: center; justify-content: flex-end; padding-bottom: calc(4 * var(--pt)); gap: calc(1 * var(--pt)); }
.c-month { font-size: calc(10 * var(--pt)); font-weight: 500; color: rgba(255, 255, 255, .6); letter-spacing: calc(1 * var(--pt)); }
.c-day { font-size: calc(48 * var(--pt)); line-height: 1; font-weight: 700; color: var(--dom); }
.c-wx { display: flex; flex-direction: column; align-items: center; margin-top: calc(4 * var(--pt)); }
.c-wx span { display: flex; align-items: center; gap: calc(4 * var(--pt)); font-size: calc(11 * var(--pt)); font-weight: 500; color: rgba(255, 255, 255, .8); }
.c-wx svg { width: calc(11 * var(--pt)); height: calc(11 * var(--pt)); color: #FFD60A; }
.c-wx small { font-size: calc(9 * var(--pt)); color: rgba(255, 255, 255, .35); }
.c-top .vdiv { margin: calc(10 * var(--pt)) 0; background: rgba(255, 255, 255, .1); }
.c-events { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: calc(3 * var(--pt)); padding: calc(10 * var(--pt)) calc(8 * var(--pt)) calc(8 * var(--pt)); }
.ev { display: flex; align-items: center; gap: calc(5 * var(--pt)); padding: calc(4 * var(--pt)) calc(6 * var(--pt)); border-radius: calc(5 * var(--pt)); background: rgba(255, 255, 255, .08); animation: ev-in .35s var(--ease-out) both; animation-delay: calc(var(--i) * 40ms); }
@keyframes ev-in { from { opacity: 0; transform: translateY(calc(4 * var(--pt))); } }
.ev .mark { flex: none; width: calc(12 * var(--pt)); height: calc(12 * var(--pt)); display: grid; place-items: center; color: var(--dom); }
.ev .mark svg { width: calc(7 * var(--pt)); height: calc(7 * var(--pt)); }
.ev .mark i { width: calc(5 * var(--pt)); height: calc(5 * var(--pt)); border-radius: 50%; background: var(--dom); }
.ev div { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: calc(1 * var(--pt)); }
.ev strong { font-size: calc(9 * var(--pt)); font-weight: 500; color: rgba(255, 255, 255, .9); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ev small { font-size: calc(8 * var(--pt)); color: rgba(255, 255, 255, .45); white-space: nowrap; }
.ev .join { flex: none; font-size: calc(8 * var(--pt)); font-weight: 600; color: #fff; background: var(--dom); padding: calc(2 * var(--pt)) calc(6 * var(--pt)); border-radius: 99px !important; }
.c-empty { font-size: calc(14 * var(--pt)); font-weight: 500; color: rgba(255, 255, 255, .35); }
.c-bottom { background: rgba(255, 255, 255, .03); padding: calc(4 * var(--pt)); }
.c-bottom hr { margin: 0 calc(8 * var(--pt)); border: 0; height: calc(.5 * var(--pt)); min-height: .5px; background: rgba(255, 255, 255, .08); }
.strip {
  display: flex; justify-content: center; padding: calc(7 * var(--pt)) calc(6 * var(--pt));
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.strip button { width: calc(38 * var(--pt)); flex: none; display: flex !important; flex-direction: column; align-items: center; gap: calc(2 * var(--pt)); }
.strip b { width: calc(16 * var(--pt)); height: calc(16 * var(--pt)); border-radius: 50%; display: grid; place-items: center; font-size: calc(10 * var(--pt)); font-weight: 400; color: rgba(255, 255, 255, .45); }
.strip small { font-size: calc(8 * var(--pt)); color: rgba(255, 255, 255, .2); }
.strip .sel b { font-weight: 700; color: #fff; background: rgba(255, 255, 255, .2); }
.strip .sel small { color: rgba(255, 255, 255, .5); }
.strip .sel.today b { background: color-mix(in srgb, var(--dom) 90%, transparent); color: rgba(0, 0, 0, .7); }
.strip .sel.today small { color: color-mix(in srgb, var(--dom) 70%, transparent); }

/* ---------- segmented control */
.segmented {
  position: relative; display: inline-flex; gap: 2px; margin-top: 28px; padding: 4px;
  background: var(--paper-2); border: 1px solid var(--line); border-radius: 999px;
}
.seg-pill {
  position: absolute; top: 4px; left: 0; height: calc(100% - 8px); width: 0;
  background: var(--ink); border-radius: 999px;
  transition: transform .5s var(--spring), width .5s var(--spring);
}
.segmented button {
  position: relative; z-index: 1; border: 0; background: none; cursor: pointer;
  padding: 8px 18px; border-radius: 999px; font-size: 14px; font-weight: 550; color: var(--ink-2);
  transition: color .3s var(--ease);
}
.segmented button[aria-selected="true"] { color: var(--paper); }

/* ========================================================= ridge line */
.ridge-line { width: min(560px, 70%); height: 56px; margin: 72px auto 0; overflow: visible; }
.ridge-line polyline {
  fill: none; stroke: var(--gold); stroke-width: 2; vector-effect: non-scaling-stroke; stroke-linejoin: round;
  stroke-dasharray: 1700; stroke-dashoffset: 1700;
  transition: stroke-dashoffset 2.4s var(--ease-out);
}
.ridge-line.is-in polyline { stroke-dashoffset: 0; }

/* ========================================================= facts */
.facts {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px;
  padding: 64px 0 40px;
}
.fact svg { width: 30px; height: 30px; margin-bottom: 14px; fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.fact:last-child svg { fill: var(--gold); stroke: var(--gold); }
.fact p { margin: 0; font-size: 15px; color: var(--ink-2); max-width: 30ch; }
.fact strong { color: var(--ink); font-weight: 600; }

/* ========================================================= features */
.features { padding: 120px 0 40px; }
.section-title {
  margin: 0;
  font: 720 clamp(40px, 6.4vw, 76px)/1 var(--font-display);
  letter-spacing: -.045em;
}
.feature {
  display: grid; grid-template-columns: 5fr 6fr; align-items: center; gap: clamp(32px, 6vw, 88px);
  margin-top: clamp(64px, 10vw, 128px);
}
.feature.flip .feature-copy { order: 2; }
.feature h3 { margin: 0 0 14px; font: 650 clamp(26px, 2.8vw, 34px)/1.15 var(--font-display); letter-spacing: -.025em; }
.feature p { margin: 0 0 12px; color: var(--ink-2); max-width: 40ch; }

/* Feature visuals: one open notch hanging from a hairline, like the real thing */
.hang { position: relative; padding-top: 1px; }
.hang::before { content: ""; position: absolute; inset: 0 -8% auto; height: 1px; background: linear-gradient(90deg, transparent, var(--line) 15%, var(--line) 85%, transparent); }
.slab {
  --pt: clamp(1px, .11vw + .45px, 1.45px);
  position: relative; margin: 0 auto; background: #000;
  border-radius: 0 0 calc(24 * var(--pt)) calc(24 * var(--pt));
  box-shadow: 0 40px 80px -40px color-mix(in srgb, var(--dom) 70%, transparent);
  transition: --dom .8s var(--ease), box-shadow .8s var(--ease);
}
.slab::before, .slab::after { content: ""; position: absolute; top: 0; width: calc(19 * var(--pt)); height: calc(19 * var(--pt)); }
.slab::before { left: calc(-19 * var(--pt)); background: radial-gradient(circle at 0 100%, transparent calc(19 * var(--pt) - .5px), #000 calc(19 * var(--pt))); }
.slab::after { right: calc(-19 * var(--pt)); background: radial-gradient(circle at 100% 100%, transparent calc(19 * var(--pt) - .5px), #000 calc(19 * var(--pt))); }
.slab .bleed { border-radius: inherit; }
.slab[data-root="music"] { width: calc(372 * var(--pt)); height: calc(172 * var(--pt)); }
.slab[data-root="calendar"] { width: calc(360 * var(--pt)); height: calc(178 * var(--pt)); }
.slab > .w-music, .slab > .w-cal { position: relative; }
.slab > .w-cal { border-radius: inherit; overflow: hidden; }

/* settings demo, styled like a macOS grouped form */
.prefs {
  max-width: 440px; margin: 0 auto; padding: 6px 18px;
  background: var(--paper-2); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 30px 60px -40px rgba(10, 22, 34, .35);
}
.prefs-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 52px; font-size: 15px; }
.prefs-row + .prefs-row { border-top: 1px solid var(--line); }
.colors-label { color: var(--ink-2); font-size: 14px; }
.prefs:not(.custom) .colors button { opacity: .45; }
.prefs:not(.custom) .colors button:hover { opacity: 1; }
.chips { display: inline-flex; padding: 2px; border-radius: 9px; background: var(--line); }
.chips button {
  border: 0; background: none; cursor: pointer; padding: 6px 12px; border-radius: 7px; font-size: 13px; font-weight: 550; color: var(--ink-2);
  transition: background .25s var(--ease), color .25s var(--ease), box-shadow .25s var(--ease);
}
.chips button[aria-checked="true"] { background: var(--paper); color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .14); }
.colors { display: flex; gap: 10px; }
.colors button {
  width: 24px; height: 24px; padding: 0; border: 0; border-radius: 50%; cursor: pointer; background: var(--c);
  box-shadow: 0 0 0 2px var(--paper-2), 0 0 0 3px transparent; transition: box-shadow .25s var(--ease), transform .3s var(--spring);
}
.colors button:hover { transform: scale(1.1); }
.colors button[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--paper-2), 0 0 0 4px var(--ink); }
.switch {
  appearance: none; -webkit-appearance: none; margin: 0; cursor: pointer; flex: none;
  width: 38px; height: 22px; border-radius: 99px; background: var(--line); position: relative;
  transition: background .25s var(--ease);
}
.switch::after {
  content: ""; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .35s var(--spring);
}
.switch:checked { background: var(--navy); }
.switch:checked::after { transform: translateX(16px); }

/* ========================================================= night (privacy) */
.night {
  position: relative; overflow: hidden;
  margin-top: 140px; padding: clamp(96px, 14vw, 160px) 0;
  background: var(--night); color: #ECE9E2;
}
.contours { position: absolute; inset: auto 0 0; width: 100%; height: 70%; }
.contours polyline { fill: none; stroke: var(--gold); stroke-opacity: .16; stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.night .wrap { position: relative; }
.night-lede { margin: 20px 0 0; max-width: 46ch; font-size: 19px; color: rgba(236, 233, 226, .7); }
.points { display: grid; grid-template-columns: repeat(2, 1fr); gap: 44px 72px; margin: 72px 0 56px; max-width: 900px; }
.point { padding-top: 20px; border-top: 1px solid rgba(201, 153, 76, .45); }
.point h3 { margin: 0 0 8px; font-size: 20px; font-weight: 600; letter-spacing: -.015em; }
.point p { margin: 0; color: rgba(236, 233, 226, .65); max-width: 40ch; }
.text-link { display: inline-block; color: var(--gold-soft); text-underline-offset: 4px; }

/* ========================================================= closing */
.closing { padding: clamp(120px, 16vw, 180px) 24px clamp(100px, 12vw, 140px); text-align: center; }
.closing-icon { margin: 0 auto 32px; filter: drop-shadow(0 0 1px rgba(20, 23, 28, .25)) drop-shadow(0 26px 40px rgba(10, 22, 34, .3)); }

/* ========================================================= footer */
.site-footer { border-top: 1px solid var(--line); font-size: 14px; color: var(--ink-3); }
.site-footer .wrap { display: flex; justify-content: space-between; align-items: center; padding: 28px 0; }
.site-footer nav { display: flex; gap: 22px; }
.site-footer a { color: var(--ink-2); text-underline-offset: 3px; }

/* ========================================================= document pages */
.doc { width: min(68ch, 100% - 48px); margin: clamp(56px, 10vh, 96px) auto 120px; }
.doc h1 { margin: 0; font: 720 clamp(44px, 7vw, 68px)/1 var(--font-display); letter-spacing: -.045em; }
.doc .meta { margin: 16px 0 40px; color: var(--ink-3); font-size: 15px; }
.prose h2 { margin: 2.2em 0 .5em; font: 650 23px/1.25 var(--font-display); letter-spacing: -.02em; }
.prose p, .prose li { color: var(--ink-2); font-size: 17px; line-height: 1.65; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose a { color: var(--navy); text-underline-offset: 3px; }
.prose ul { padding-left: 1.2em; }
.prose li + li { margin-top: .4em; }
.prose code { font-size: .92em; background: var(--paper-2); padding: .1em .35em; border-radius: 6px; }

/* ========================================================= responsive */
@media (max-width: 900px) {
  .facts { grid-template-columns: repeat(2, 1fr); gap: 36px; }
  .feature, .feature.flip { grid-template-columns: 1fr; }
  .feature.flip .feature-copy { order: 0; }
  .points { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 600px) {
  .site-nav a:not(.btn) { display: none; }
  .facts { grid-template-columns: 1fr; }
  .mac-screen { width: 94%; }
  .island { --pt: calc(100cqw / 700); }
  .slab { --pt: calc((100vw - 92px) / 372); }
  .site-footer .wrap { flex-direction: column; gap: 12px; }
}

/* ========================================================= reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
  .load-in, .reveal, .sun { opacity: 1; transform: none; filter: none; }
  .ridge-line polyline { stroke-dashoffset: 0; }
}
