/* Aspir. Brand system: The Record (approved 2026-12-01).
   Every color is a token on :root. Citron marks "this week" only, as a fill, never as text. */

@font-face {
  font-family: 'Libre Franklin';
  src: url('fonts/libre-franklin.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: 'Spline Sans Mono';
  src: url('fonts/spline-sans-mono.ttf') format('truetype');
  font-weight: 300 700;
  font-display: swap;
}

:root {
  --cobalt: #2330C8;
  --ink: #10142E;
  --paper: #F3F5FA;
  --white: #FFFFFF;
  --citron: #E6EE4A;
  --muted: #545C7E;
  --line: #CDD3E6;
  --outline: #A7ACE9;
  --gutter: clamp(16px, 5vw, 56px);
  --wrap: 1120px;
  --edge: max(var(--gutter), calc((100% - var(--wrap)) / 2));
  --tilt: clamp(28px, 4.5vw, 72px);
  color-scheme: light;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Libre Franklin', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.6;
}

h1, h2, h3 {
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.01em;
  text-wrap: balance;
  margin-block: 0 0.5em;
}
h1 { font-size: 54px; max-inline-size: 16em; }
h2 { font-size: 28px; }
h3 { font-size: 19px; }
p { margin-block: 0 1em; max-inline-size: 68ch; text-wrap: pretty; }

a { color: var(--cobalt); text-underline-offset: 0.18em; }
a:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 3px; border-radius: 4px; }

/* Header and hero: one cobalt field */
.masthead, .hero { background: var(--cobalt); color: var(--white); }
.masthead a:focus-visible, .hero a:focus-visible { outline: 3px solid var(--white); outline-offset: 3px; }

.masthead {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding-block: 20px;
  padding-inline: var(--edge);
}
.lockup {
  display: inline-flex;
  align-items: center;
  gap: 0;
  font-size: 22px;
  min-block-size: 44px;
  color: var(--white);
  text-decoration: none;
}
.lockup .mark { inline-size: 30px; block-size: auto; margin-inline-end: 0.4em; }
.masthead .mark-dot { fill: var(--citron); }
.lockup .word { font-weight: 800; letter-spacing: -0.035em; }

.hero {
  padding-block: clamp(48px, 9vw, 112px) clamp(56px, 9vw, 112px);
  padding-inline: var(--edge);
}
.lede { font-size: 20px; line-height: 1.5; margin-block: 0.75em 1.5em; }
.actions { display: flex; flex-wrap: wrap; gap: 12px 16px; }
.address { margin-block: 20px 0; font-size: 15px; }
.address .plain { font-weight: 600; }

/* Buttons: at least 44px tall; one filled action per view */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-block-size: 48px;
  padding-inline: 22px;
  border: 2px solid transparent;
  border-radius: 999px;
  font-weight: 700;
  font-size: 16px;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: background-color 160ms ease, color 160ms ease, transform 120ms ease;
}
.btn:active { transform: scale(0.96); }
.btn-small { min-block-size: 44px; padding-inline: 16px; font-size: 15px; background: var(--white); color: var(--cobalt); }
.hero .btn-fill { background: var(--white); color: var(--cobalt); }
.hero .btn-line { border-color: var(--white); color: var(--white); }
.btn-fill { background: var(--cobalt); color: var(--white); }

@media (hover: hover) {
  .hero .btn-line:hover { background: var(--white); color: var(--cobalt); }
  .btn-small:hover, .hero .btn-fill:hover { background: var(--paper); }
  .btn-fill:hover { background: var(--ink); }
}

/* Content bands on paper */
main > .band {
  padding-block: clamp(48px, 7vw, 88px);
  padding-inline: var(--edge);
  border-block-end: 1px solid var(--line);
}

.label {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 12px;
  margin-block-end: 24px;
}

.week {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.week li {
  border-block-start: 3px solid var(--cobalt);
  padding-block-start: 14px;
}
.week .day { display: block; font-weight: 800; margin-block-end: 6px; color: var(--cobalt); }

/* The arc: three stages, the support stepping back */
.arc {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.arc li { border-inline-start: 3px solid var(--cobalt); padding-inline-start: 16px; }
.arc .stage { display: block; font-weight: 800; font-size: 19px; margin-block-end: 6px; color: var(--cobalt); }
.hero .label-hero { color: var(--white); border-color: var(--outline); margin-block: 0 24px; }

/* The record: ink band, the one place mono and citron appear */
#record {
  margin: 0;
  background: var(--ink);
  color: var(--white);
  padding-block: clamp(40px, 6vw, 72px);
  padding-inline: var(--edge);
}
#record .dots { display: block; inline-size: 100%; max-inline-size: 312px; block-size: auto; margin-block-end: 24px; }
#record .dot-filled { fill: var(--white); }
#record .dot-now { fill: var(--citron); }
#record .dot-empty { fill: none; stroke: var(--outline); stroke-width: 2; }
#record .entries { list-style: none; padding: 0; margin-block: 0 16px; }
#record .entries, time { font-family: 'Spline Sans Mono', ui-monospace, monospace; font-weight: 500; }
#record .entries li { padding-block: 10px; border-block-end: 1px solid var(--muted); font-size: 15px; }
#record time { color: var(--outline); margin-inline-end: 12px; }
#record figcaption { font-size: 14px; color: var(--outline); }

.big { font-size: 24px; font-weight: 700; line-height: 1.35; max-inline-size: 34ch; }
.measures {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
  margin-block: 32px;
}
.note { color: var(--muted); font-size: 15px; }

.closing {
  padding-block: clamp(56px, 8vw, 96px);
  padding-inline: var(--edge);
  text-align: center;
}
.closing h2 { margin-inline: auto; }

.footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 12px;
  padding-block: 28px;
  padding-inline: var(--gutter);
  border-block-start: 1px solid var(--line);
  color: var(--muted);
  font-size: 15px;
}
.footer .foot-mark { color: var(--cobalt); display: inline-flex; }
.footer .mark { inline-size: 22px; block-size: auto; }
.footer a { display: inline-flex; align-items: center; min-block-size: 44px; }

@media (max-width: 900px) {
  .week { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  h1 { font-size: 38px; }
  .lede { font-size: 18px; }
  .week { grid-template-columns: 1fr; }
  .arc { grid-template-columns: 1fr; }
  .measures { grid-template-columns: 1fr; gap: 8px; }
  .actions .btn { inline-size: 100%; }
  .label { border-radius: 12px; }
}

@media print {
  .masthead, .hero, #record { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

@media (prefers-reduced-motion: reduce) {
  .btn { transition: none; }
  .btn:active { transform: none; }
}

/* Additions for the demo strip and origin line */
.origin { color: var(--muted); font-size: 16px; margin-block: 0 24px; }
.actions-center { justify-content: center; }
.btn-line { border-color: var(--cobalt); color: var(--cobalt); }
.watch-more { margin-block: 20px 16px; font-weight: 700; }

/* Lift: the rising curve, breath, rising sections, and the reading line (design 2026-12-01).
   Home page only (body.home), except the button lift. Every hidden or moving state sits behind
   html.lift-js and prefers-reduced-motion: no-preference, so without either the page is complete. */

body.home .hero { position: relative; overflow: hidden; isolation: isolate; min-block-size: min(92vh, 860px);
  display: flex; flex-direction: column; justify-content: center;
  padding-block-end: calc(clamp(56px, 9vw, 112px) + var(--tilt)); }
body.home .hero h1 { font-size: clamp(42px, 6.2vw, 86px); line-height: 1.02; letter-spacing: -0.02em; max-inline-size: 13em; }
body.home .hero > :not(.rise):not(.glow) { max-inline-size: min(700px, 60%); position: relative; }
body.home .hero > h1:not(.rise):not(.glow) { max-inline-size: min(1000px, 74%); }
body.home .hero .rise { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; z-index: -1; overflow: visible; }
.rise .area { fill: url(#riseFill); }
.rise stop { stop-color: var(--white); }
.rise .trail { fill: none; stroke: var(--white); stroke-width: 3; stroke-linecap: round; opacity: .85; }
.rise .d { fill: var(--white); }
.rise .d-now { fill: var(--citron); }
.rise .d-halo { fill: var(--citron); fill-opacity: .28; }

.glow { position: absolute; z-index: -2; inset: auto -25% -55% auto; inline-size: 95vmax; block-size: 95vmax; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 255, 255, .14), rgba(255, 255, 255, .06) 45%, rgba(255, 255, 255, 0) 72%);
  pointer-events: none; }

body.home main { position: relative; }
body.home main > .band, body.home main > .closing { border: 0; position: relative; z-index: 1;
  margin-block-start: calc(-1 * var(--tilt)); padding-block-start: calc(clamp(48px, 7vw, 88px) + var(--tilt));
  clip-path: polygon(0 var(--tilt), 100% 0, 100% 100%, 0 100%); }
body.home main > .band:nth-of-type(odd) { background: var(--white); }
body.home main > .band:nth-of-type(even) { background: var(--paper); }
body.home .band h2::before { content: ""; display: block; inline-size: 44px; block-size: 4px; margin-block-end: 18px;
  background: var(--cobalt); border-radius: 2px; transform: skewY(-14deg); transform-origin: left center; }

body.home .closing { overflow: hidden; isolation: isolate; background: var(--cobalt); color: var(--white);
  padding-block-end: clamp(72px, 10vw, 128px); }
body.home .closing h2 { font-size: clamp(32px, 4.4vw, 56px); line-height: 1.08; }
body.home .closing .glow { inset: auto auto -75% 50%; translate: -50% 0; }
body.home .closing .btn-fill { background: var(--white); color: var(--cobalt); }
body.home .closing .btn-line { border-color: var(--white); color: var(--white); }
body.home .closing > :not(.glow) { position: relative; z-index: 1; }
body.home .closing a:focus-visible { outline: 3px solid var(--white); outline-offset: 3px; }

@media (hover: hover) {
  .btn { transition: background-color 160ms ease, color 160ms ease, transform 200ms ease-out; }
  .btn:hover { transform: translateY(-3px); }
}

.spine { position: absolute; inset-block: 0; inset-inline-start: 0; inline-size: 100%; pointer-events: none; z-index: 3; overflow: visible; }
.spine .rail { stroke: var(--line); stroke-width: 2; fill: none; }
.spine .ink { stroke: url(#spineInk); stroke-width: 3; fill: none; stroke-linecap: round; }
.spine stop.s-cobalt { stop-color: var(--cobalt); }
.spine stop.s-white { stop-color: var(--white); }
.spine .node { fill: var(--paper); stroke: var(--cobalt); stroke-width: 2; }
.spine .node.on { fill: var(--cobalt); }
.spine .node.last { stroke: var(--white); fill: var(--cobalt); }
.spine .node.end { fill: var(--citron); }

@media (max-width: 1000px) { .spine { display: none; } }
@media (max-width: 860px) {
  body.home .hero > :not(.rise):not(.glow), body.home .hero > h1:not(.rise):not(.glow) { max-inline-size: none; }
  .rise { opacity: .4; }
  .rise .d { display: none; }
}

@media (prefers-reduced-motion: no-preference) {
  html.lift-js .rise .trail { stroke-dasharray: var(--len); stroke-dashoffset: var(--len); }
  html.lift-js .rise .area { opacity: 0; }
  html.lift-js .rise .d, html.lift-js .rise .d-now, html.lift-js .rise .d-halo { opacity: 0; transform: translateY(40px) scale(.4); transform-box: fill-box; transform-origin: center; }
  html.lift-js body.home .hero.go .rise .trail { animation: draw 2000ms cubic-bezier(.5, 0, .2, 1) 250ms forwards; }
  html.lift-js body.home .hero.go .rise .area { animation: fade 1600ms ease 900ms forwards; }
  html.lift-js body.home .hero.go .rise .d, html.lift-js body.home .hero.go .rise .d-now { animation: pop 700ms cubic-bezier(.2, 1.4, .3, 1) forwards; animation-delay: var(--at); }
  html.lift-js body.home .hero.go .rise .d-halo { animation: halo 1600ms ease-out forwards; animation-delay: calc(var(--at) + 300ms); }
  html.lift-js .glow { transform: scale(.8); opacity: .5; }
  html.lift-js body.home .go > .glow { animation: breath 3600ms cubic-bezier(.45, 0, .25, 1) forwards; }
  html.lift-js body.home .hero h1, html.lift-js body.home .hero .lede, html.lift-js body.home .hero .actions, html.lift-js body.home .hero .address { opacity: 0; transform: translateY(32px); }
  html.lift-js body.home .hero.go h1 { animation: up 900ms cubic-bezier(.2, .8, .2, 1) 60ms forwards; }
  html.lift-js body.home .hero.go .lede { animation: up 900ms cubic-bezier(.2, .8, .2, 1) 200ms forwards; }
  html.lift-js body.home .hero.go .actions { animation: up 900ms cubic-bezier(.2, .8, .2, 1) 340ms forwards; }
  html.lift-js body.home .hero.go .address { animation: up 900ms cubic-bezier(.2, .8, .2, 1) 440ms forwards; }
  html.lift-js .lift-in { opacity: 0; transform: translateY(48px); transition: opacity 700ms ease, transform 1000ms ease-out; transition-delay: var(--stagger, 0ms); }
  html.lift-js .lift-in.in { opacity: 1; transform: none; }
  html.lift-js body.home .band h2::before { transform: skewY(-14deg) scaleX(0); transition: transform 700ms ease-out 250ms; }
  html.lift-js body.home .band h2.in::before { transform: skewY(-14deg) scaleX(1); }
  html.lift-js body.home .hero.go .rise.still .trail { animation: none; stroke-dashoffset: 0; }
  html.lift-js body.home .hero.go .rise.still .area, html.lift-js body.home .hero.go .rise.still .d, html.lift-js body.home .hero.go .rise.still .d-now { animation: none; opacity: 1; transform: none; }
  html.lift-js body.home .hero.go .rise.still .d-halo { animation: none; opacity: .55; transform: none; }
}
html.lift-js .lift-in:focus-within { opacity: 1; transform: none; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade { to { opacity: 1; } }
@keyframes up { to { opacity: 1; transform: none; } }
@keyframes pop { to { opacity: 1; transform: none; } }
@keyframes halo { 0% { opacity: 1; transform: scale(.5); } 100% { opacity: .55; transform: scale(1); } }
@keyframes breath { 0% { transform: scale(.8); opacity: .5; } 45% { transform: scale(1.1); opacity: 1; } 100% { transform: scale(1); opacity: .9; } }

@media print {
  .lift-in, html.lift-js .lift-in { opacity: 1; transform: none; transition: none; animation: none; }
  html.lift-js body.home .hero h1, html.lift-js body.home .hero .lede, html.lift-js body.home .hero .actions, html.lift-js body.home .hero .address { opacity: 1; transform: none; animation: none; }
  html.lift-js body.home .band h2::before { transform: skewY(-14deg); transition: none; }
  .spine, .rise, .glow { display: none; }
}
