@property --dx { syntax: '<length>'; inherits: true; initial-value: 0px; }

/* Base reset (safe areas for the installed app, no default margins). */
html { padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); }
body { margin: 0; }
img { max-width: 100%; }

/* Layout: one reading column set to the left of a single source of light that refracts across a dark field; the minute itself is a full-screen surface holding nothing but the light. */
:root {
  color-scheme: dark;
  --void: #07070B;        /* the universe */
  --night: #0E0E15;       /* raised surfaces */
  --bezel: #121219;
  --light: #FAF8F3;       /* white light */
  --ink: #0B0B10;         /* text on white light */
  --ink-dim: #5E5D68;
  --dim: #A6A4B2;
  --faint: #6E6C7B;
  --hair: rgba(250, 248, 243, .10);
  --hair-2: rgba(250, 248, 243, .20);
  --s1: #FF7B7B; --s2: #FFA963; --s3: #F2D774; --s4: #86E3A5; --s5: #6DD3EE; --s6: #8299FF; --s7: #C38CFF;
  --ring: conic-gradient(from 200deg, var(--s1), var(--s2), var(--s3), var(--s4), var(--s5), var(--s6), var(--s7), var(--s1));
  --f-voice: "Newsreader", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --f-ui: "Hanken Grotesk", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --t-hero: clamp(2.75rem, 10.5vw, 6rem);
  --t-h2: clamp(2.125rem, 6.4vw, 3.5rem);
  --t-body: 1.0625rem;
  --breath: 11s;
  --col: 40rem;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; background: var(--void); }
body {
  background: var(--void); color: var(--light);
  font-family: var(--f-ui); font-size: var(--t-body); line-height: 1.6;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
  overflow-x: hidden;
}
body[data-current="moment"] { overflow: hidden; }
p, h1, h2, h3, figure, blockquote, dl, dd { margin: 0; }
h1, h2, h3 { font-weight: inherit; }
a { color: inherit; }
button { font: inherit; color: inherit; }
::selection { background: rgba(250, 248, 243, .85); color: var(--ink); }
:focus-visible { outline: 2px solid var(--light); outline-offset: 3px; border-radius: 6px; }
.mono { font-family: var(--f-mono); font-feature-settings: "tnum" 1; }

#sky { position: fixed; top: 0; left: 0; width: 100%; height: 100vh; height: 100lvh; display: block; z-index: 0; pointer-events: none; }
.page { position: relative; z-index: 1; max-width: 74rem; margin-inline: auto; }
@media (min-width: 900px) { .page { padding-inline: 32px; } }
.col { max-width: var(--col); min-width: 0; }

/* ---------- the mark: a point of white light inside its spectrum ---------- */
.mark { position: relative; display: inline-block; flex: none; width: var(--size, 28px); height: var(--size, 28px); vertical-align: middle; }
.mark::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--ring);
  -webkit-mask: radial-gradient(closest-side, transparent 56%, #000 63%, #000 76%, transparent 100%);
          mask: radial-gradient(closest-side, transparent 56%, #000 63%, #000 76%, transparent 100%);
  filter: blur(calc(var(--size, 28px) * .045));
  animation: spin calc(var(--breath) * 6) linear infinite;
}
.mark::after {
  content: ""; position: absolute; inset: 33%; border-radius: 50%; background: var(--light);
  box-shadow: 0 0 calc(var(--size, 28px) * .22) calc(var(--size, 28px) * .03) rgba(250, 248, 243, .6);
}
@keyframes spin { to { transform: rotate(1turn); } }

/* ---------- type ---------- */
.eyebrow { font-size: .75rem; font-weight: 500; text-transform: uppercase; letter-spacing: .16em; color: var(--dim); }
.h1 { font-family: var(--f-voice); font-weight: 250; font-size: var(--t-hero); line-height: 1.01; letter-spacing: -.018em; margin-top: 18px; text-wrap: balance; }
.h1-sm { font-size: clamp(2.5rem, 8vw, 4.5rem); }
.h2 { font-family: var(--f-voice); font-weight: 280; font-size: var(--t-h2); line-height: 1.06; letter-spacing: -.012em; margin-top: 14px; text-wrap: balance; }
.h3 { font-family: var(--f-voice); font-weight: 300; font-size: clamp(1.75rem, 4.4vw, 2.5rem); line-height: 1.1; letter-spacing: -.01em; margin-top: 10px; text-wrap: balance; }
.h1 em, .h2 em, .h3 em, .book-h em { font-style: italic; font-weight: 300; }
.lede { font-size: clamp(1.0625rem, 2.2vw, 1.25rem); color: var(--dim); max-width: 34rem; margin-top: 18px; line-height: 1.55; }
.muted { color: var(--dim); }
.disperse {
  --dx: .018em;
  text-shadow: var(--dx) 0 .03em rgba(255, 123, 123, .75), calc(var(--dx) * -1) 0 .03em rgba(130, 153, 255, .75), 0 calc(var(--dx) * .7) .03em rgba(134, 227, 165, .45);
  animation: converge 2.8s cubic-bezier(.2, .7, .1, 1) .2s both, breathe-dx var(--breath) ease-in-out 3.2s infinite;
}
@keyframes converge { from { --dx: .17em; } to { --dx: .018em; } }
@keyframes breathe-dx { 0%, 100% { --dx: .018em; } 50% { --dx: .045em; } }

/* ---------- controls ---------- */
.btn {
  appearance: none; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 24px; border-radius: 999px; border: 1px solid transparent;
  font-size: .9375rem; font-weight: 500; letter-spacing: .01em; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: box-shadow .5s ease, border-color .3s, background .3s, color .3s, opacity .3s;
}
.btn-light { background: var(--light); color: var(--ink); }
.btn-light:hover { box-shadow: 0 0 34px -6px rgba(250, 248, 243, .5), -12px 0 40px -16px rgba(255, 123, 123, .7), 12px 0 40px -16px rgba(130, 153, 255, .7); }
.btn-line { background: rgba(7, 7, 11, .35); color: var(--light); border-color: var(--hair-2); }
.btn-line:hover { border-color: rgba(250, 248, 243, .5); }
.btn-ink { background: var(--ink); color: var(--light); }
.btn-ghost-ink { background: transparent; color: var(--ink); border-color: rgba(11, 11, 16, .2); }
.btn:disabled { opacity: .4; cursor: not-allowed; box-shadow: none; }
.textlink { appearance: none; background: none; border: 0; padding: 8px 0; color: var(--dim); font-size: .9375rem; cursor: pointer; text-decoration: underline; text-decoration-color: var(--hair-2); text-underline-offset: 4px; }
.textlink:hover { color: var(--light); }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field label { font-size: .8125rem; color: var(--dim); }
.input {
  font: inherit; font-size: 1rem; color: var(--light); width: 100%; min-height: 50px;
  background: rgba(250, 248, 243, .04); border: 1px solid var(--hair-2); border-radius: 14px; padding: 12px 14px;
}
.input::placeholder { color: var(--faint); }
.input:focus { outline: none; border-color: rgba(250, 248, 243, .6); box-shadow: 0 0 0 4px rgba(250, 248, 243, .07); }
.input:disabled { opacity: .5; }
.form-row { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 520px) { .form-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.form-note { font-size: .875rem; color: var(--dim); min-height: 1.4em; }
.pledge .form-note { text-align: center; text-wrap: balance; }

/* ---------- top bar ---------- */
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 16px 8px; }
.brand { appearance: none; background: none; border: 0; padding: 0; color: var(--light); cursor: pointer; display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--f-voice); font-size: 1.3125rem; line-height: 1; letter-spacing: .005em; text-align: left; }
.brand .mark { --size: 22px; }
@media (max-width: 359px) { .brand { font-size: 1.0625rem; } }
.nav { display: flex; align-items: center; gap: 2px; min-width: 0; }
.nl { appearance: none; background: none; border: 0; font-size: .875rem; color: var(--dim); padding: 10px; border-radius: 999px; white-space: nowrap; cursor: pointer; }
.nl:hover, .nl[aria-current="page"] { color: var(--light); }
.lang { display: inline-flex; margin-left: 8px; border: 1px solid var(--hair); border-radius: 999px; padding: 3px; }
.lang button { appearance: none; border: 0; background: transparent; color: var(--dim); font-size: .75rem; font-weight: 600; letter-spacing: .08em; padding: 6px 9px; min-height: 30px; border-radius: 999px; cursor: pointer; }
.lang button[aria-pressed="true"] { background: var(--light); color: var(--ink); }

/* ---------- home ---------- */
.hero { padding-block: clamp(48px, 11vh, 120px) clamp(56px, 9vw, 112px); }
.cd { display: flex; align-items: flex-start; gap: clamp(14px, 4.5vw, 44px); margin-top: clamp(34px, 6vw, 56px); }
.cd-u { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.cd-n { font-family: var(--f-voice); font-weight: 200; font-size: clamp(2.75rem, 12.5vw, 6.25rem); line-height: .9; white-space: nowrap; }
.dg { display: inline-block; width: .56em; text-align: center; }
.cd-l { font-size: .6875rem; font-weight: 500; text-transform: uppercase; letter-spacing: .16em; color: var(--faint); }
.local { margin-top: 24px; font-size: .9375rem; color: var(--dim); }
.local b { color: var(--light); font-weight: 500; }
.open-left { margin-top: 26px; font-family: var(--f-mono); font-size: .9375rem; color: var(--light); }

.band { padding-block: clamp(72px, 12vw, 140px); scroll-margin-top: 16px; }
.elevens { display: grid; grid-template-columns: repeat(2, auto); justify-content: start; gap: 24px clamp(28px, 8vw, 96px); margin-top: 36px; }
.el-n { font-family: var(--f-voice); font-weight: 200; font-size: clamp(2.5rem, 8vw, 4.25rem); line-height: 1; }
.el-l { font-size: .875rem; color: var(--dim); margin-top: 10px; }


.mf-list { list-style: none; margin: 44px 0 0; padding: 0; display: flex; flex-direction: column; gap: clamp(34px, 6vw, 56px); max-width: 40rem; }
.mf-list li { display: grid; grid-template-columns: 2.75rem minmax(0, 1fr); gap: 4px; }
.mf-num { font-size: .6875rem; font-weight: 600; letter-spacing: .16em; color: var(--faint); padding-top: .85em; }
.mf-list p { font-family: var(--f-voice); font-weight: 300; font-size: clamp(1.3125rem, 3.3vw, 1.75rem); line-height: 1.4; text-wrap: pretty; }
.mf-list em { font-style: italic; }
.mf-close { margin-top: clamp(48px, 8vw, 80px); font-family: var(--f-voice); font-style: italic; font-weight: 300; font-size: var(--t-h2); line-height: 1; }

.ways { display: grid; gap: 28px 48px; margin-top: 36px; max-width: 54rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 760px) { .ways { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.way { display: flex; flex-direction: column; gap: 8px; padding-top: 18px; border-top: 1px solid var(--hair-2); min-width: 0; }
.way h3 { font-family: var(--f-voice); font-weight: 300; font-size: 1.625rem; line-height: 1.15; }
.way p { color: var(--dim); }

.there-grid { display: grid; gap: 44px; grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 960px) { .there-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); } }
.tally { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-top: 30px; }
.count { font-family: var(--f-voice); font-weight: 200; font-size: clamp(3.5rem, 12vw, 6rem); line-height: 1; }
.tally-l { color: var(--dim); }
.people { list-style: none; margin: 24px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.person { display: inline-flex; align-items: center; gap: 9px; max-width: 100%; padding: 5px 12px 5px 5px; border: 1px solid var(--hair); border-radius: 999px; background: rgba(14, 14, 21, .7); font-size: .875rem; min-width: 0; }
.person .av { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: .6875rem; font-weight: 600; color: var(--light); background: radial-gradient(circle at 50% 50%, rgba(var(--c), .62), rgba(var(--c), .1) 72%); box-shadow: inset 0 0 0 1px rgba(var(--c), .4); }
.person .pn { overflow-wrap: anywhere; min-width: 0; }
.person .pp { color: var(--faint); overflow-wrap: anywhere; }
.person .px { appearance: none; border: 0; background: none; color: var(--faint); font-size: .75rem; cursor: pointer; padding: 2px 4px; text-decoration: underline; }
.people .more, .people .none { color: var(--dim); font-size: .875rem; padding: 7px 4px; }
.card { border: 1px solid var(--hair); border-radius: 24px; padding: 24px; background: rgba(14, 14, 21, .72); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.see-all { display: inline-block; margin-top: 14px; }
.person.me { border-color: rgba(250, 248, 243, .45); }
.on-list-t { font-family: var(--f-voice); font-size: 1.3125rem; line-height: 1.4; text-wrap: balance; }
.on-list .people { margin-top: 18px; }
.on-list-a { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 20px; margin-top: 22px; }
.listview { padding-block: 8px 96px; }
.people-all { margin-top: 0; }
#listJoin { margin-top: 32px; }
.pledge { display: flex; flex-direction: column; gap: 14px; }
.pledge .btn { width: 100%; }

.cal { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }

.split { display: grid; gap: 44px; grid-template-columns: minmax(0, 1fr); align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.stores { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.store { display: inline-flex; align-items: center; gap: 10px; min-height: 54px; padding: 8px 20px 8px 14px; border-radius: 14px; border: 1px solid var(--hair-2); background: var(--void); color: var(--light); text-decoration: none; cursor: pointer; transition: border-color .3s, box-shadow .5s; }
.store:hover { border-color: rgba(250, 248, 243, .5); box-shadow: 0 0 30px -10px rgba(250, 248, 243, .35); }
.store svg { width: 24px; height: 24px; flex: none; }
.store span { display: flex; flex-direction: column; line-height: 1.1; }
.store small { font-size: .6875rem; color: var(--dim); }
.store b { font-size: 1.125rem; font-weight: 600; letter-spacing: -.01em; }
/* The app: on phones the store buttons sit under the notification; side by side they return under the text. */
.app-split { gap: 28px; }
.app-split > .col { margin-bottom: 16px; }
.app-split > .stores { margin-top: 0; justify-content: center; }
@media (min-width: 900px) {
  .app-split { column-gap: 44px; row-gap: 0; }
  .app-split > .col { grid-column: 1; grid-row: 1; align-self: end; margin-bottom: 0; }
  .app-split > .lockmini { grid-column: 2; grid-row: 1 / span 2; }
  .app-split > .stores { grid-column: 1; grid-row: 2; align-self: start; margin-top: 28px; justify-content: flex-start; }
}
.lockmini { position: relative; max-width: 380px; width: 100%; justify-self: center; border-radius: 30px; border: 1px solid var(--hair); padding: 34px 16px 18px; overflow: hidden;
  background: radial-gradient(120% 70% at 80% 0%, rgba(130, 153, 255, .16), transparent 60%), radial-gradient(90% 60% at 0% 100%, rgba(255, 123, 123, .12), transparent 60%), var(--night); }
.lm-date { text-align: center; color: var(--dim); font-size: .9375rem; }
.lm-time { text-align: center; font-weight: 200; font-size: 4.5rem; line-height: 1; letter-spacing: -.02em; margin-bottom: 30px; }
.notif { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 12px; padding: 13px 14px; border-radius: 22px; background: rgba(46, 46, 60, .6); border: 1px solid var(--hair); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.app-ico { grid-row: span 3; width: 40px; height: 40px; border-radius: 11px; background: var(--void); border: 1px solid var(--hair-2); display: grid; place-items: center; }
.app-ico .mark { --size: 22px; }
.n-h { display: flex; justify-content: space-between; gap: 8px; font-size: .8125rem; color: var(--dim); }
.n-h b { color: var(--light); font-weight: 600; }
.n-t { font-size: .9375rem; line-height: 1.35; }
.n-s { font-size: .875rem; color: var(--dim); line-height: 1.35; }

.priv { list-style: none; margin: 30px 0 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); column-gap: 40px; max-width: 52rem; }
@media (min-width: 760px) { .priv { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.priv li { display: flex; align-items: center; gap: 14px; padding-block: 16px; border-top: 1px solid var(--hair); }
.priv svg { flex: none; width: 20px; height: 20px; }


.foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 32px; padding-block: 44px calc(56px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--hair); color: var(--dim); font-size: .875rem; }
.foot nav { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.fl { appearance: none; color: var(--dim); background: none; border: 0; padding: 6px 0; cursor: pointer; font-size: .875rem; }
.fl:hover { color: var(--light); }

/* ---------- wall ---------- */
.wallview { padding-block: 8px 96px; }
.wall-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px 28px; padding-block: 40px 30px; }
.wall-count { font-family: var(--f-mono); color: var(--dim); font-size: .9375rem; }
.status { color: var(--dim); font-size: .9375rem; margin-bottom: 20px; }
.traces { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; }
@media (min-width: 640px) { .traces { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .traces { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px 18px; } }
.trace { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.trace-art { appearance: none; display: block; width: 100%; max-width: 100%; aspect-ratio: 1; padding: 0; border: 1px solid var(--hair); border-radius: 18px; overflow: hidden; background: var(--night); cursor: pointer; transition: box-shadow .6s, border-color .6s; }
.trace-art:hover { border-color: var(--hair-2); }
.trace-art canvas { display: block; width: 100%; height: 100%; }
.trace.is-new .trace-art { border-color: rgba(250, 248, 243, .6); box-shadow: 0 0 46px -8px rgba(250, 248, 243, .5); }
.trace figcaption { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.t-name { font-size: .9375rem; overflow-wrap: anywhere; }
.t-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: .75rem; color: var(--faint); }
.t-meta .sep { opacity: .6; }
.tag { font-size: .625rem; font-weight: 600; text-transform: uppercase; letter-spacing: .12em; border: 1px solid var(--hair-2); border-radius: 999px; padding: 2px 7px; color: var(--dim); }
.t-remove { appearance: none; background: none; border: 0; padding: 2px 0; color: var(--faint); font-size: .75rem; text-decoration: underline; cursor: pointer; }
.t-remove[data-armed] { color: var(--s1); }
.empty { border: 1px dashed var(--hair-2); border-radius: 24px; padding: clamp(28px, 6vw, 56px); display: flex; flex-direction: column; align-items: flex-start; gap: 14px; background: rgba(14, 14, 21, .5); }
.empty .mark { --size: 40px; }
.empty h2 { font-family: var(--f-voice); font-weight: 300; font-size: 1.75rem; }
.empty p { color: var(--dim); max-width: 32rem; }

/* ---------- the minute ---------- */
.moment { position: fixed; inset: 0; z-index: 20; color: var(--light); -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.m-bar { position: absolute; z-index: 12; top: 0; left: 0; right: 0; display: flex; align-items: center; justify-content: space-between; gap: 10px; pointer-events: none; transition: opacity 1.6s;
  padding: calc(env(safe-area-inset-top, 0px) + 12px) max(16px, env(safe-area-inset-right, 0px)) 12px max(16px, env(safe-area-inset-left, 0px)); }
.m-bar > * { pointer-events: auto; }
/* During the hold the bar is gone, and cannot be pressed by a finger that lands on it. It comes back, like the words, once the finger has been gone for a moment. */
.moment[data-screen="stage"] .m-bar { transition: opacity 1.4s ease .6s, visibility 0s linear .6s; }
.moment[data-hold="holding"] .m-bar, .moment[data-hold="complete"] .m-bar { opacity: 0; visibility: hidden; transition: opacity .7s ease, visibility 0s linear .7s; }
.moment[data-hold="holding"] .m-bar > *, .moment[data-hold="complete"] .m-bar > * { pointer-events: none; }
.m-x { appearance: none; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 8px 14px 8px 10px; border-radius: 999px; border: 1px solid var(--hair); background: rgba(14, 14, 21, .5); color: var(--dim); font-size: .875rem; cursor: pointer; }
.m-x svg { width: 16px; height: 16px; }
.moment[data-screen="done"] .m-x { background: rgba(11, 11, 16, .05); border-color: rgba(11, 11, 16, .14); color: var(--ink); }
.m-chip { display: inline-flex; align-items: center; gap: 8px; font-size: .6875rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
/* Over the field, whatever is written sits on a dark plate: it reads on every colour, and on white light. */
.moment[data-screen="stage"] .m-x, .moment[data-screen="stage"] .m-chip, .moment[data-screen="stage"] .m-left:not(:empty), .m-card {
  background: rgba(7, 7, 11, .8); border: 1px solid var(--hair-2); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.moment[data-screen="stage"] .m-x { color: var(--light); }
.moment[data-screen="stage"] .m-chip { min-height: 40px; padding: 3px 4px 3px 14px; border-radius: 999px; }
.moment[data-screen="stage"] .m-left:not(:empty) { min-height: 40px; display: inline-flex; align-items: center; padding: 0 14px; border-radius: 999px; color: var(--light); }
.moment[data-screen="stage"] .m-bar { flex-wrap: wrap; }   /* three plates don't fit on a narrow phone: the time left drops below */
.moment[data-screen="stage"] .m-left { margin-left: auto; white-space: nowrap; }
.seg button { white-space: nowrap; }
.seg { display: inline-flex; border: 1px solid var(--hair); border-radius: 999px; padding: 2px; }
.seg button { appearance: none; border: 0; background: none; color: var(--dim); font-size: .75rem; font-weight: 500; letter-spacing: .02em; text-transform: none; padding: 5px 9px; min-height: 28px; border-radius: 999px; cursor: pointer; }
.seg button[aria-pressed="true"] { background: rgba(250, 248, 243, .14); color: var(--light); }
.m-left { font-family: var(--f-mono); font-size: .8125rem; color: var(--dim); min-width: 1px; text-align: right; }
.m-stage { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; cursor: pointer; touch-action: none; outline: none; -webkit-tap-highlight-color: transparent;
  padding: calc(env(safe-area-inset-top, 0px) + 84px) max(24px, env(safe-area-inset-right, 0px)) calc(env(safe-area-inset-bottom, 0px) + 64px) max(24px, env(safe-area-inset-left, 0px)); }
.m-field { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; }
/* The words leave as soon as a finger lands, and only come back once it has been gone for a moment. */
.m-card { position: relative; max-width: 30rem; display: flex; flex-direction: column; gap: 12px; padding: 28px 28px 26px; border-radius: 28px; text-wrap: balance; transition: opacity 1.4s ease .6s, filter 1.4s ease .6s; }
.m-stage:focus-visible .m-card { border-color: rgba(250, 248, 243, .7); }
.moment[data-hold="holding"] .m-card, .moment[data-hold="complete"] .m-card { opacity: 0; filter: blur(8px); transition-duration: .7s; transition-delay: 0s; }
/* Nothing may draw a box where the finger lands: the plate itself goes at once, and only its words fade. */
.moment[data-hold="holding"] .m-card, .moment[data-hold="complete"] .m-card { background: transparent; border-color: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
.m-prompt { font-family: var(--f-voice); font-weight: 300; font-size: clamp(1.625rem, 6vw, 2.25rem); line-height: 1.15; }
.m-sub { color: var(--dim); font-size: 1rem; }
.m-key { color: var(--faint); font-size: .8125rem; }
@media (hover: none) { .m-key { display: none; } }
.m-status { color: var(--light); font-size: .9375rem; }
.m-status:empty { margin-top: -12px; }
.m-after { position: absolute; left: 24px; right: 24px; top: calc(env(safe-area-inset-top, 0px) + 18%); font-family: var(--f-voice); font-weight: 300; font-size: clamp(1.0625rem, 5vw, 1.375rem); line-height: 1.25; text-wrap: balance; color: var(--ink); opacity: 0; pointer-events: none; }
.moment[data-hold="complete"] .m-after { opacity: 1; transition: opacity 2.4s ease .4s; }

.m-gate { position: absolute; inset: 0; z-index: 6; display: flex; align-items: center; overflow-y: auto;
  padding: calc(env(safe-area-inset-top, 0px) + 80px) max(20px, env(safe-area-inset-right, 0px)) calc(env(safe-area-inset-bottom, 0px) + 40px) max(20px, env(safe-area-inset-left, 0px)); }
.gate-in { width: 100%; max-width: 34rem; margin-inline: auto; display: flex; flex-direction: column; gap: 6px; }
.gate-in .cd { margin-top: 26px; }
.gate-in .cd-n { font-size: clamp(2.25rem, 10vw, 3.75rem); }

.m-done { position: absolute; inset: 0; z-index: 9; background: var(--light); color: var(--ink); display: flex; align-items: center; overflow-y: auto; -webkit-user-select: text; user-select: text; animation: appear .9s ease both;
  padding: calc(env(safe-area-inset-top, 0px) + 84px) max(24px, env(safe-area-inset-right, 0px)) calc(env(safe-area-inset-bottom, 0px) + 40px) max(24px, env(safe-area-inset-left, 0px)); }
@keyframes appear { from { opacity: 0; } }
.done-in { width: 100%; max-width: 32rem; margin-inline: auto; display: flex; flex-direction: column; gap: 16px; animation: rise 1.4s cubic-bezier(.2, .7, .1, 1) .15s both; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.done-k { font-size: .75rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-dim); }
.done-t { font-family: var(--f-voice); font-weight: 250; font-size: clamp(3rem, 12vw, 5rem); line-height: .98; letter-spacing: -.02em; }
.done-time { font-family: var(--f-mono); font-size: .9375rem; }
.done-b { color: var(--ink-dim); font-size: 1.0625rem; max-width: 26rem; }
.done-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.done-in .textlink { color: var(--ink-dim); text-decoration-color: rgba(11, 11, 16, .25); align-self: flex-start; }
.done-in :focus-visible { outline-color: var(--ink); }

.m-draw { position: absolute; inset: 0; z-index: 6; overflow-y: auto; -webkit-overflow-scrolling: touch; -webkit-user-select: text; user-select: text;
  padding: calc(env(safe-area-inset-top, 0px) + 72px) max(16px, env(safe-area-inset-right, 0px)) calc(env(safe-area-inset-bottom, 0px) + 40px) max(16px, env(safe-area-inset-left, 0px)); }
.draw-in { width: 100%; max-width: 34rem; margin-inline: auto; display: flex; flex-direction: column; gap: 18px; }
.draw-in .lede { margin-top: 0; }
.padbox { position: relative; width: 100%; max-width: 100%; aspect-ratio: 1; border-radius: 24px; overflow: hidden; border: 1px solid var(--hair-2); background: var(--night); touch-action: none; -webkit-user-select: none; user-select: none; }
.padbox canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: crosshair; }
.pad-hint { position: absolute; left: 0; right: 0; bottom: 18px; text-align: center; color: var(--faint); font-size: .875rem; pointer-events: none; transition: opacity .4s; }
.tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 14px; }
.pens, .sizes { display: flex; flex-wrap: wrap; gap: 2px; }
.tools-r { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pen, .size { appearance: none; width: 36px; height: 36px; padding: 0; border-radius: 50%; border: 1px solid transparent; background: transparent; display: grid; place-items: center; cursor: pointer; }
.pen span { width: 14px; height: 14px; border-radius: 50%; background: var(--c); box-shadow: 0 0 10px 1px var(--c); transition: width .2s, height .2s; }
.pen[aria-pressed="true"], .size[aria-pressed="true"] { border-color: var(--hair-2); background: rgba(250, 248, 243, .07); }
.pen[aria-pressed="true"] span { width: 19px; height: 19px; }
.size span { width: var(--s); height: var(--s); border-radius: 50%; background: var(--light); }
.tool-btn { appearance: none; min-height: 36px; padding: 6px 13px; border-radius: 999px; border: 1px solid var(--hair); background: none; color: var(--dim); font-size: .8125rem; cursor: pointer; }
.tool-btn:disabled { opacity: .35; cursor: default; }
.draw-form { display: flex; flex-direction: column; gap: 14px; margin-top: 4px; }
.draw-form .btn { width: 100%; }

/* ---------- floating ---------- */
.pchip { position: fixed; z-index: 30; left: max(12px, env(safe-area-inset-left, 0px)); bottom: calc(env(safe-area-inset-bottom, 0px) + 12px); max-width: calc(100% - 24px); display: flex; align-items: center; gap: 10px; padding: 6px 6px 6px 14px; border-radius: 999px; border: 1px solid var(--hair-2); background: rgba(14, 14, 21, .88); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); font-size: .8125rem; color: var(--dim); }
.pchip b { color: var(--light); font-weight: 500; }
.pchip span { min-width: 0; overflow-wrap: anywhere; }
.pchip button { appearance: none; flex: none; border: 0; border-radius: 999px; background: var(--light); color: var(--ink); font-size: .8125rem; font-weight: 500; padding: 7px 12px; cursor: pointer; }
.toast { position: fixed; z-index: 40; left: 50%; bottom: calc(env(safe-area-inset-bottom, 0px) + 22px); transform: translate(-50%, 16px); opacity: 0; pointer-events: none; max-width: calc(100% - 32px); padding: 12px 20px; border-radius: 999px; background: var(--light); color: var(--ink); font-size: .9375rem; font-weight: 500; text-align: center; transition: opacity .35s, transform .35s; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- design book ---------- */
.book { padding-block: 8px 120px; }
.book-intro { padding-block: 48px 64px; }
.book-h { font-family: var(--f-voice); font-weight: 250; font-size: clamp(2.75rem, 9vw, 5.5rem); line-height: 1; letter-spacing: -.02em; margin-top: 18px; text-wrap: balance; }
.book-s { padding-block: clamp(56px, 9vw, 96px); border-top: 1px solid var(--hair); }
.book-grid { display: grid; gap: 22px 56px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 960px) { .book-grid { grid-template-columns: minmax(0, 20rem) minmax(0, 1fr); } }
.book-grid > * { min-width: 0; }
.book-p { color: var(--dim); margin-top: 14px; max-width: 34rem; }
.timebar { display: flex; flex-wrap: wrap; gap: 8px; align-content: flex-start; }
.chipbtn { appearance: none; min-height: 40px; padding: 8px 15px; border-radius: 999px; border: 1px solid var(--hair-2); background: rgba(14, 14, 21, .6); color: var(--light); font-size: .875rem; cursor: pointer; }
.chipbtn:hover { border-color: rgba(250, 248, 243, .5); }
.chipbtn[aria-pressed="true"] { background: var(--light); color: var(--ink); border-color: var(--light); }
.demo { position: relative; width: 100%; max-width: 100%; aspect-ratio: 4 / 5; border-radius: 24px; overflow: hidden; border: 1px solid var(--hair); background: var(--night); }
@media (min-width: 640px) { .demo { aspect-ratio: 16 / 10; } }
.demo canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.demo-ctl { position: absolute; left: 16px; right: 16px; bottom: 14px; display: flex; align-items: center; gap: 14px; font-size: .8125rem; color: var(--dim); }
.demo-ctl input { flex: 1; min-width: 0; accent-color: var(--light); }
.demo-cap { margin-top: 14px; font-size: .875rem; color: var(--faint); max-width: 40rem; }
.prin { display: grid; gap: 0; }
.prin div { display: grid; gap: 6px; padding-block: 20px; border-top: 1px solid var(--hair); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 760px) { .prin div { grid-template-columns: minmax(0, 12rem) minmax(0, 1fr); gap: 24px; } }
.prin dt { font-family: var(--f-voice); font-weight: 300; font-size: 1.375rem; line-height: 1.25; }
.prin dd { color: var(--dim); }
.swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 12.5rem), 1fr)); gap: 12px; }
.sw { border: 1px solid var(--hair); border-radius: 18px; overflow: hidden; background: var(--night); min-width: 0; }
.sw-c { height: 92px; background: var(--c); border-bottom: 1px solid var(--hair); }
.sw-b { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 3px; font-size: .8125rem; color: var(--dim); }
.sw-b b { color: var(--light); font-weight: 500; font-size: .9375rem; }
.sw-b .mono { font-size: .75rem; color: var(--faint); }
.spec { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; margin-top: 18px; }
.sp { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.sp i { display: block; height: 78px; border-radius: 14px; background: radial-gradient(circle at 50% 58%, var(--c), rgba(7, 7, 11, 0) 70%), var(--void); box-shadow: inset 0 0 0 1px var(--hair); }
.sp span { font-family: var(--f-mono); font-size: .625rem; color: var(--faint); overflow-wrap: anywhere; }
.typerow { display: grid; gap: 10px; padding-block: 26px; border-top: 1px solid var(--hair); }
.typerow:first-child { border-top: 0; padding-top: 0; }
.typerow .meta { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .8125rem; color: var(--faint); }
.typerow .meta b { color: var(--light); font-weight: 500; }
.ts-voice { font-family: var(--f-voice); font-weight: 250; font-size: clamp(2rem, 6vw, 3.5rem); line-height: 1.04; letter-spacing: -.015em; }
.ts-ui { font-size: 1.25rem; font-weight: 400; line-height: 1.45; max-width: 34rem; }
.ts-mono { font-family: var(--f-mono); font-size: 1rem; }
.scale { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 22px; margin-top: 8px; color: var(--dim); }
.scale span { font-family: var(--f-voice); font-weight: 250; line-height: 1; }
.marks { display: flex; flex-wrap: wrap; align-items: center; gap: 28px 36px; }
.mk-big .mark { --size: 132px; }
.mk-cap { font-size: .75rem; color: var(--faint); margin-top: 10px; font-family: var(--f-mono); }
.appicon { width: 76px; height: 76px; border-radius: 19px; background: var(--void); border: 1px solid var(--hair-2); display: grid; place-items: center; box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .9); }
.appicon .mark { --size: 44px; }
.widget { width: 168px; height: 168px; border-radius: 28px; background: var(--night); border: 1px solid var(--hair); padding: 16px; display: flex; flex-direction: column; justify-content: space-between; }
.widget .mark { --size: 22px; }
.w-n { font-family: var(--f-voice); font-weight: 200; font-size: 2.75rem; line-height: 1; }
.w-l { font-size: .75rem; color: var(--dim); margin-top: 4px; }
.w-d { font-family: var(--f-mono); font-size: .6875rem; color: var(--faint); }
.wordmark { font-family: var(--f-voice); font-size: clamp(1.25rem, 6vw, 2.25rem); line-height: 1; display: inline-flex; align-items: center; gap: .39em; }
.wordmark .mark { --size: .944em; }
.shots { display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 2px 18px; margin-top: 30px; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; scrollbar-color: var(--hair-2) transparent; }
.shot { flex: none; width: 236px; scroll-snap-align: start; display: flex; flex-direction: column; gap: 14px; }
.shot figcaption { font-size: .8125rem; color: var(--dim); line-height: 1.5; }
.shot figcaption b { display: block; color: var(--light); font-weight: 500; font-size: .9375rem; margin-bottom: 2px; }
.phone { width: 236px; aspect-ratio: 9 / 19.5; border-radius: 38px; padding: 7px; background: var(--bezel); border: 1px solid var(--hair-2); box-shadow: 0 40px 70px -40px rgba(0, 0, 0, .95); }
.screen { position: relative; width: 100%; height: 100%; border-radius: 31px; overflow: hidden; background: var(--void); font-size: 10px; line-height: 1.4; color: var(--light); }
.sc-island { position: absolute; z-index: 3; top: 9px; left: 50%; width: 64px; height: 18px; margin-left: -32px; border-radius: 10px; background: #000; }
.sc-pad { position: absolute; inset: 0; padding: 4.4em 1.6em 1.8em; display: flex; flex-direction: column; gap: .9em; }
.sc-rays { position: absolute; inset: 0;
  background: conic-gradient(from 190deg at 80% 8%, transparent 0deg, rgba(255, 123, 123, .34) 6deg, rgba(255, 169, 99, .3) 11deg, rgba(242, 215, 116, .28) 16deg, rgba(134, 227, 165, .28) 21deg, rgba(109, 211, 238, .28) 26deg, rgba(130, 153, 255, .3) 31deg, rgba(195, 140, 255, .34) 36deg, transparent 42deg);
  -webkit-mask-image: radial-gradient(circle at 80% 8%, #000, transparent 88%); mask-image: radial-gradient(circle at 80% 8%, #000, transparent 88%); filter: blur(2px); }
.sc-rays::after { content: ""; position: absolute; left: calc(80% - 5px); top: calc(8% - 5px); width: 10px; height: 10px; border-radius: 50%; background: var(--light); box-shadow: 0 0 16px 5px rgba(250, 248, 243, .55); }
.sc-brand { display: flex; align-items: center; gap: .6em; font-family: var(--f-voice); font-size: 1.35em; position: relative; }
.sc-eyebrow { font-size: .72em; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); margin-top: 2.4em; position: relative; }
.sc-h { font-family: var(--f-voice); font-weight: 250; font-size: 3.1em; line-height: 1.02; letter-spacing: -.012em; position: relative; }
.sc-h em { font-style: italic; }
.sc-cd { display: flex; gap: 1.1em; margin-top: .8em; position: relative; }
.sc-cd span { display: flex; flex-direction: column; gap: .35em; }
.sc-cd b { font-family: var(--f-voice); font-weight: 200; font-size: 2.6em; line-height: 1; }
.sc-cd i { font-style: normal; font-size: .62em; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }
.sc-sub { font-size: 1.12em; color: var(--dim); position: relative; }
.sc-btns { display: flex; flex-wrap: wrap; gap: .6em; margin-top: auto; position: relative; }
.sc-btn { display: inline-flex; align-items: center; justify-content: center; height: 3.4em; padding: 0 1.4em; border-radius: 999px; font-size: 1em; font-weight: 500; position: relative; }
.sc-btn.light { background: var(--light); color: var(--ink); }
.sc-btn.line { border: 1px solid var(--hair-2); }
.sc-btn.ink { background: var(--ink); color: var(--light); }
.sc-btn.wide { width: 100%; }
.sc-lock { background: radial-gradient(120% 70% at 75% 0%, rgba(130, 153, 255, .2), transparent 60%), radial-gradient(90% 60% at 10% 100%, rgba(255, 123, 123, .14), transparent 60%), var(--void); }
.sc-lock-top { text-align: center; padding-top: 4.6em; }
.sc-lock-date { font-size: 1.15em; color: var(--dim); }
.sc-lock-time { font-weight: 200; font-size: 6.2em; line-height: 1; letter-spacing: -.02em; }
.sc-notif { position: absolute; left: .9em; right: .9em; top: 48%; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .9em; padding: 1.1em; border-radius: 1.9em; background: rgba(46, 46, 60, .62); border: 1px solid var(--hair); }
.sc-icon { width: 3.6em; height: 3.6em; border-radius: 1em; background: var(--void); border: 1px solid var(--hair-2); display: grid; place-items: center; }
.sc-n-h { display: flex; justify-content: space-between; font-size: .92em; color: var(--dim); }
.sc-n-h b { color: var(--light); font-weight: 600; }
.sc-n-t { font-size: 1.15em; line-height: 1.3; margin-top: .15em; }
.sc-n-s { color: var(--dim); margin-top: .2em; }
.sc-center { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2.6em; text-align: center; padding: 2em 1.6em; }
canvas.sc-field { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }   /* the stills of the minute; p.sc-field, further down, is a form field in another mock-up */
.sc-top { position: absolute; top: 4em; right: 1.2em; font-family: var(--f-mono); font-size: .9em; padding: .5em 1em; border-radius: 999px; background: rgba(7, 7, 11, .8); border: 1px solid var(--hair-2); }
.sc-card { position: relative; display: flex; flex-direction: column; gap: .9em; padding: 2em 1.4em; border-radius: 1.9em; background: rgba(7, 7, 11, .8); border: 1px solid var(--hair-2); }
.sc-prompt { font-family: var(--f-voice); font-weight: 300; font-size: 1.9em; line-height: 1.15; position: relative; }
.sc-after { position: absolute; left: 1.6em; right: 1.6em; top: 20%; text-align: center; font-family: var(--f-voice); font-weight: 300; font-size: 1.45em; line-height: 1.25; color: var(--ink); }
.sc-white { background: var(--light); color: var(--ink); padding: 5.4em 1.8em 1.8em; display: flex; flex-direction: column; gap: 1.1em; }
.sc-white .k { font-size: .72em; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-dim); }
.sc-white .t { font-family: var(--f-voice); font-weight: 250; font-size: 3.9em; line-height: .98; letter-spacing: -.02em; }
.sc-white .m { font-family: var(--f-mono); font-size: .95em; }
.sc-white .b { font-size: 1.15em; color: var(--ink-dim); }
.sc-white .sc-btn { margin-top: auto; }
.sc-col { padding: 4.4em 1.4em 1.6em; display: flex; flex-direction: column; gap: .9em; }
.sc-h2 { font-family: var(--f-voice); font-weight: 300; font-size: 2.4em; line-height: 1.04; }
.sc-h2 em { font-style: italic; }
.sc-padmock { aspect-ratio: 1; border-radius: 1.7em; background: var(--night); border: 1px solid var(--hair-2); display: grid; place-items: center; overflow: hidden; }
.sc-padmock svg { width: 82%; height: 82%; }
.sc-pens { display: flex; gap: .75em; justify-content: center; padding-block: .3em; }
.sc-pens i { width: 1.15em; height: 1.15em; border-radius: 50%; background: var(--c); box-shadow: 0 0 .8em var(--c); }
p.sc-field { border: 1px solid var(--hair-2); border-radius: 1.1em; padding: .9em 1em; font-size: 1.1em; }
.sc-col .sc-btn { margin-top: auto; }
.sc-meta { font-family: var(--f-mono); font-size: .9em; color: var(--dim); }
.sc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .8em .7em; margin-top: .5em; }
.sc-tile { display: flex; flex-direction: column; gap: .35em; min-width: 0; }
.sc-tile svg { display: block; width: 100%; height: auto; aspect-ratio: 1; background: var(--night); border-radius: 1em; border: 1px solid var(--hair); }
.sc-tile span { font-size: .82em; color: var(--dim); }
.tablewrap { overflow-x: auto; border: 1px solid var(--hair); border-radius: 18px; background: rgba(14, 14, 21, .6); }
.tablewrap + .tablewrap { margin-top: 16px; }
table { width: 100%; min-width: 540px; border-collapse: collapse; font-size: .9375rem; }
th, td { text-align: left; vertical-align: top; padding: 12px 16px; border-bottom: 1px solid var(--hair); }
th { font-size: .6875rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }
td { color: var(--dim); }
td:first-child { color: var(--light); }
td.mono { white-space: nowrap; color: var(--light); }
tr:last-child td { border-bottom: 0; }
.notes { display: grid; gap: 0; margin-top: 20px; }
.notes div { padding-block: 18px; border-top: 1px solid var(--hair); }
.notes h3 { font-family: var(--f-voice); font-weight: 300; font-size: 1.375rem; }
.notes p { color: var(--dim); margin-top: 6px; max-width: 46rem; }
.voice { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 760px) { .voice { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.voice ul { margin: 12px 0 0; padding-left: 1.1em; color: var(--dim); display: grid; gap: 6px; }
.voice h3 { font-size: .75rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--faint); }

@media (prefers-reduced-motion: reduce) {
  .mark::before, .disperse { animation: none !important; }
  .m-done, .done-in { animation: none; }
  * { scroll-behavior: auto !important; }
}
