/* Athena home page. Type 3 and Colour 3 are Carlos's picks (see web/README.md). */

@font-face { font-family: "Red Hat Display"; src: url(fonts/red-hat-display-latin-wght-normal.woff2) format("woff2"); font-weight: 300 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Red Hat Display"; src: url(fonts/red-hat-display-latin-wght-italic.woff2) format("woff2"); font-weight: 300 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Red Hat Text"; src: url(fonts/red-hat-text-latin-wght-normal.woff2) format("woff2"); font-weight: 300 700; font-display: swap; }
@font-face { font-family: "Red Hat Mono"; src: url(fonts/red-hat-mono-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Red Hat Mono"; src: url(fonts/red-hat-mono-latin-500-normal.woff2) format("woff2"); font-weight: 500; font-display: swap; }

/* Type: Red Hat (Type 3, Carlos's pick) */
:root {
  --f-display: "Red Hat Display", system-ui, sans-serif; --w-display: 500; --track-display: -0.035em; --lh-display: 1;
  --f-body: "Red Hat Text", system-ui, sans-serif; --f-label: "Red Hat Mono", ui-monospace, monospace; --w-body: 400; --w-strong: 600;
}

/* Colour: Colour 3, Carlos's pick */
:root {
  --paper: #F2F0F3; --surface: #FFFFFF; --ink: #0E0E10; --muted: #57525F; --line: #DCD7E0;
  --accent: #73306A; --on-accent: #FFFFFF; --soft: #EEE0EC;
  --band: #231726; --band-ink: #F2F0F3; --band-muted: #B3A7B6; --band-accent: #E8A9DD;
}
:root {
  --ok: #1D7349; --warn: #A8351E;
  --pad: clamp(20px, 3.34vw, 64px);
  --bar-h: 64px;
  --fs-display: clamp(2.75rem, 1.6rem + 4.6vw, 9.5rem);
  --fs-h2: clamp(2.25rem, 1.4rem + 3.2vw, 6.75rem);
  --fs-h3: clamp(2rem, 1.25rem + 2.1vw, 5rem);
  --fs-lede: clamp(1.0625rem, 0.9rem + 0.55vw, 1.75rem);
  --fs-body: clamp(1.0625rem, 0.75rem + 0.375vw, 1.375rem);
  --r: 16px;
  --ease: cubic-bezier(.22, .8, .24, 1);
  color-scheme: light;
}
@media (min-width: 960px) { :root { --bar-h: 76px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--bar-h); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--paper); color: var(--ink); font: var(--w-body) var(--fs-body)/1.55 var(--f-body); -webkit-font-smoothing: antialiased; overflow-x: clip; }
h1, h2, h3, p, ol, figure { margin: 0; }
a { color: inherit; text-underline-offset: .2em; }
::selection { background: var(--accent); color: var(--on-accent); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; left: var(--pad); top: -60px; z-index: 30; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 8px; }
.skip:focus { top: 12px; }

.display { font: var(--w-display) var(--fs-display)/var(--lh-display) var(--f-display); letter-spacing: var(--track-display); text-wrap: balance; }
.display--h2 { font-size: var(--fs-h2); }
.display--h3 { font-size: var(--fs-h3); line-height: 1.04; }
.display em { font-style: italic; color: var(--accent); }
.lede { font-size: var(--fs-lede); line-height: 1.5; color: var(--muted); max-width: 44ch; text-wrap: pretty; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; border-radius: 999px; font: var(--w-strong) 1rem/1 var(--f-body); text-decoration: none; transition: background-color .2s ease, color .2s ease, transform .2s var(--ease); }
.btn:active { transform: scale(.97); }
.btn--solid { background: var(--accent); color: var(--on-accent); }
.btn--solid:hover { background: color-mix(in oklab, var(--accent) 82%, black); }
.btn--light { background: var(--band-ink); color: var(--ink); }
.btn--light:hover { background: var(--surface); }
/* The big calls (hero and closing band) grow with the type: 56 px tall and 18 px text at 1920, 64 px and 20 px at 2560 */
.btn--big { min-height: clamp(48px, 28px + 1.5vw, 64px); padding: 0 clamp(24px, 1.7vw, 44px); font-size: clamp(1rem, 12px + .3125vw, 1.25rem); }

/* Header */
.bar { position: fixed; inset: 0 0 auto; z-index: 20; height: var(--bar-h); display: flex; align-items: center; gap: 32px; padding: 0 var(--pad); border-bottom: 1px solid transparent; background: var(--paper); transition: border-color .4s ease, height .3s ease; }
.bar.is-solid { border-color: var(--line); height: calc(var(--bar-h) - 8px); }
.bar__home { display: flex; color: var(--ink); min-height: 44px; align-items: center; }
.bar__logo { width: 120px; height: 27px; }
.bar__nav { display: none; gap: 32px; margin-left: auto; }
.bar__nav a { text-decoration: none; font-weight: 500; padding: 10px 0; }
.bar__nav a:hover { text-decoration: underline; }
.bar__cta { margin-left: auto; min-height: 44px; padding: 0 18px; font-size: .9375rem; }
@media (min-width: 960px) { .bar__nav { display: flex; } .bar__cta { margin-left: 0; } .bar__logo { width: 141px; height: 32px; } }

/* Signature: the record that gathers itself */
.trama { position: relative; }
.trama__stage { min-height: 100svh; display: grid; grid-template-rows: auto 1fr; padding-top: calc(var(--bar-h) + 24px); }
.trama__copy { display: grid; padding: 0 var(--pad); align-content: center; }
.trama__state { grid-area: 1 / 1; display: grid; gap: 20px; justify-items: start; align-content: start; }
.trama__state--order { visibility: hidden; }
.field { position: relative; min-height: 520px; margin-top: 24px; }
.field__threads { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.card { position: absolute; left: 50%; top: 50%; width: min(440px, calc(100% - 2 * var(--pad))); translate: -50% -50%; transform-origin: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px 14px; box-shadow: 0 30px 60px -30px rgb(14 14 16 / .28); font-size: .875rem; }
.card__head { display: flex; gap: 12px; align-items: center; padding-bottom: 12px; }
.card__avatar { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--soft); color: var(--accent); font-weight: var(--w-strong); }
.card__name { font: var(--w-display) 1.5rem/1.1 var(--f-display); letter-spacing: var(--track-display); }
.card__meta { color: var(--muted); font-size: .875rem; }
.card__group { border-top: 1px solid var(--line); padding: 8px 0 4px; }
.card__label { font: var(--w-strong) .875rem/1.4 var(--f-label); color: var(--muted); padding-bottom: 2px; }
.card__row { padding: 3px 0; line-height: 1.35; }
.card__row--ok::before, .card__row--warn::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 8px; background: var(--ok); vertical-align: 1px; }
.card__row--warn::before { background: var(--warn); }
.frags { display: none; }
.frag { position: absolute; left: 0; top: 0; white-space: nowrap; padding: 8px 12px; font-size: .8125rem; line-height: 1.2; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 10px 24px -14px rgb(14 14 16 / .35); will-change: transform; }
.frag--paper { font: italic var(--w-display) .9375rem/1.2 var(--f-display); background: var(--paper); border-style: dashed; }
.frag--chat { background: var(--soft); border-color: transparent; border-radius: 14px 14px 14px 4px; }
@media (max-width: 959px) {
  /* Phone: notes wrap inside the side margins; the record's smallest text stays at 14 px after it is fitted */
  .frag { font-size: .875rem; white-space: normal; max-width: calc(100vw - 2 * var(--pad) - 12px); }
  .frag--paper { font-size: .9375rem; }
  .card { font-size: .875rem; padding: 14px 18px 10px; }
  .card__meta, .card__label { font-size: .875rem; }
  .card__head { padding-bottom: 8px; }
  .card__group { padding: 6px 0 2px; }
  .card__row { padding: 2px 0; }
}
@media (min-width: 960px) {
  .trama__stage { grid-template-rows: none; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); padding-top: var(--bar-h); }
  .field { margin-top: 0; }
  .card { width: min(460px, 70%); font-size: .9375rem; padding: 22px 26px 16px; }
  .card__name { font-size: 1.75rem; }
  .frag { font-size: .875rem; padding: 9px 14px; }
  .frag--paper { font-size: 1rem; }
}
@media (min-width: 1500px) { .card { width: min(600px, 62%); font-size: 1.0625rem; padding: 26px 32px 18px; } .card__name { font-size: 2.125rem; } .card__avatar { width: 48px; height: 48px; } .card__label { font-size: .9375rem; } .frag { font-size: 1rem; padding: 11px 16px; } .frag--paper { font-size: 1.1875rem; } }
@media (min-width: 2200px) { .card { width: min(1000px, 78%); font-size: 1.625rem; padding: 40px 52px 26px; } .card__name { font-size: 3.25rem; } .card__avatar { width: 68px; height: 68px; font-size: 1.5rem; } .card__head { gap: 20px; padding-bottom: 18px; } .card__group { padding: 12px 0 6px; } .card__label { font-size: 1.3125rem; } .card__meta { font-size: 1.3125rem; } .card__row--ok::before, .card__row--warn::before { width: 12px; height: 12px; margin-right: 12px; } .frag { font-size: 1.375rem; padding: 14px 20px; border-radius: 14px; } .frag--paper { font-size: 1.5625rem; } }

/* Motion version (JS on, motion allowed): the stage pins while the record gathers */
.motion .trama { height: 270svh; }
.motion .trama__stage { position: sticky; top: 0; height: 100svh; overflow: hidden; }
.motion .trama__state--order { opacity: 0; }
.motion .frags { display: block; }
.motion .card { opacity: 0; visibility: hidden; }
.motion .card__row { opacity: 0; }
.motion .field { min-height: 0; }

/* Problem: words light as you read */
.problem { padding: clamp(48px, 5vw, 96px) var(--pad) clamp(96px, 10vw, 200px); }
.problem__text { font: var(--w-display) clamp(1.9rem, 1rem + 3.3vw, 5.25rem)/1.12 var(--f-display); letter-spacing: var(--track-display); max-width: 30ch; text-wrap: pretty; }
.problem__text .w { opacity: .25; transition: opacity .15s linear; }
.calm .problem__text .w, html:not(.js) .problem__text .w { opacity: 1; }

/* Features: questions on the left, screens on the right */
.features { display: flex; flex-direction: column; gap: 32px; padding: 0 0 clamp(64px, 8vw, 160px); }
.features__copy, .features__screens { display: contents; }
.feat { padding: 0 var(--pad); display: grid; gap: 16px; }
.feat__label { font: var(--w-strong) .9375rem/1.3 var(--f-label); color: var(--accent); }
.feat__text { color: var(--muted); max-width: 46ch; font-size: var(--fs-lede); line-height: 1.5; }
.screen { display: grid; place-items: center; background: var(--soft); padding: 48px 20px; margin-bottom: 40px; }
.feat[data-feat="1"] { order: 1; } .screen[data-for="1"] { order: 2; }
.feat[data-feat="2"] { order: 3; } .screen[data-for="2"] { order: 4; }
.feat[data-feat="3"] { order: 5; } .screen[data-for="3"] { order: 6; }
.feat[data-feat="4"] { order: 7; } .screen[data-for="4"] { order: 8; }
.feat[data-feat="5"] { order: 9; } .screen[data-for="5"] { order: 10; }
@media (min-width: 960px) {
  .features { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 0; padding-bottom: 0; }
  .features__copy { display: grid; position: sticky; top: 0; height: 100svh; align-content: center; padding-top: var(--bar-h); }
  .features__screens { display: block; }
  .feat { grid-area: 1 / 1; opacity: 0; translate: 0 16px; transition: opacity .3s ease, translate .3s var(--ease); visibility: hidden; }
  .feat.is-on { opacity: 1; translate: 0 0; visibility: visible; }
  .screen { min-height: 100svh; margin: 0; padding: var(--bar-h) var(--pad) 0; }
  .screen:nth-child(even) { background: color-mix(in oklab, var(--soft) 55%, var(--paper)); }
}
.ui { width: min(100%, 560px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 1.25em; box-shadow: 0 30px 60px -30px rgb(14 14 16 / .25); display: grid; gap: .5em; font-size: 1.09375rem; }
@media (min-width: 960px) { .ui { width: min(780px, 86%); font-size: 1.125rem; padding: 1.5em; gap: .6em; } }
@media (min-width: 2200px) { .ui { width: 1000px; font-size: 1.5rem; } }
.ui small { display: block; color: var(--muted); font-size: .8125em; font-weight: 400; }
.ui__meta { color: var(--muted); font-size: max(.875rem, .8125em); }
.ui__meta--end { justify-self: end; color: var(--warn); font-weight: var(--w-strong); padding-top: .4em; }
.ui__input { display: flex; align-items: center; gap: .6em; border: 1.5px solid var(--accent); border-radius: 10px; padding: .75em .9em; }
.ui__glass { width: .9em; height: .9em; border: 2px solid var(--muted); border-radius: 50%; position: relative; }
.ui__glass::after { content: ""; position: absolute; width: 2px; height: .45em; background: var(--muted); right: -.25em; bottom: -.4em; rotate: -45deg; }
.ui__caret { width: 1.5px; height: 1.1em; background: var(--accent); margin-left: -.4em; }
.motion .ui__caret { animation: caret 1.1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.ui__row { display: grid; grid-template-columns: 2.4em 1fr auto; gap: .75em; align-items: center; padding: .45em .5em; border-radius: 10px; }
.ui__row--hit { background: var(--soft); }
.ui__dot { display: inline-grid; place-items: center; width: 2.4em; height: 2.4em; border-radius: 50%; background: var(--paper); font-size: max(.875rem, .8125em); font-weight: var(--w-strong); flex: none; }
.ui__num, .ui__date, .ui__hour, .ui__no { color: var(--muted); font: .8125em var(--f-label); font-variant-numeric: tabular-nums; }
.ui__action { color: var(--accent); font-weight: var(--w-strong); border: 1.5px dashed color-mix(in srgb, var(--accent) 45%, transparent); border-radius: 10px; padding: .7em .9em; text-align: center; }
.ui__head { font: var(--w-display) 1.5em/1.2 var(--f-display); letter-spacing: var(--track-display); padding-bottom: .35em; border-bottom: 1px solid var(--line); }
.ui__head small { display: inline; font: max(.875rem, .5em) var(--f-body); letter-spacing: 0; margin-left: .5em; }
.ui__tabs { display: flex; flex-wrap: wrap; gap: .4em; }
.ui__tabs span { font-size: .8125em; padding: .35em .8em; border-radius: 999px; border: 1px solid var(--line); }
.ui__tabs .is-on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.ui__ev { display: grid; grid-template-columns: 4.2em 1fr auto; gap: .75em; padding: .55em 0 .55em 1em; border-left: 2px solid var(--line); align-items: baseline; }
.ui__ev--warn { border-color: var(--warn); }
.ui__tag { font-size: max(.875rem, .8125em); font-weight: var(--w-strong); color: var(--warn); border: 1px solid currentColor; border-radius: 999px; padding: .15em .6em; }
.ui__tag--file { color: var(--muted); }
.ui__slot { display: grid; grid-template-columns: 3.4em 1fr; gap: .75em; align-items: center; min-height: 2.9em; border-top: 1px solid var(--line); }
.ui__appt { display: flex; align-items: baseline; gap: .5em; background: var(--accent); color: var(--on-accent); border-radius: 8px; padding: .45em .75em; font-weight: 500; }
.ui__appt small { display: inline; color: inherit; opacity: .85; }
.ui__appt em { margin-left: auto; font-style: normal; font-size: .8125em; opacity: .9; }
.ui__appt--b { background: var(--soft); color: var(--ink); }
.ui__free { color: var(--muted); font-size: .8125em; border: 1px dashed var(--line); border-radius: 8px; padding: .45em .75em; }
.ui__bubble { background: var(--paper); border-radius: 16px 16px 16px 4px; padding: .75em .9em; max-width: 85%; line-height: 1.45; }
.ui__bubble--in { justify-self: end; background: var(--accent); color: var(--on-accent); border-radius: 16px 16px 4px 16px; min-width: 3em; text-align: center; }
.ui__state { justify-self: end; color: var(--ok); font-weight: var(--w-strong); font-size: .8125em; }
.ui__state::before, .ui__pill--ok::before { content: ""; display: inline-block; width: .55em; height: .55em; border-radius: 50%; background: var(--ok); margin-right: .4em; }
.ui__send { display: grid; grid-template-columns: 1fr auto auto; gap: .75em; align-items: center; padding: .5em 0; border-top: 1px solid var(--line); }
.ui__ch { color: var(--muted); font-size: .8125em; }
.ui__mail { border-top: 1px solid var(--line); padding-top: .6em; color: var(--muted); font-size: .8125em; }
.ui__bill { display: grid; grid-template-columns: 3em 1fr auto; gap: .75em; align-items: center; padding: .65em .25em; border-bottom: 1px solid var(--line); }
.ui__pill { font-size: .8125em; font-weight: var(--w-strong); border-radius: 999px; padding: .25em .7em; background: var(--soft); color: var(--warn); white-space: nowrap; }
.ui__pill--ok { color: var(--ok); }

/* System: five modules around one record */
.system { overflow: clip; background: var(--band); color: var(--band-ink); padding: clamp(80px, 10vw, 180px) var(--pad); display: grid; gap: 48px; align-items: center; }
.system .display em { color: var(--band-accent); }
.system .lede { color: var(--band-muted); }
.system__copy { display: grid; gap: 24px; }
.orbit { position: relative; width: min(100%, 420px); aspect-ratio: 1; justify-self: center; --rot: 0deg; }
.orbit__lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.orbit__ring { fill: none; stroke: var(--band-muted); stroke-opacity: .35; stroke-width: .5; }
.orbit__ring--in { stroke-dasharray: 2 3; }
.orbit__wheel { position: absolute; inset: 0; rotate: var(--rot); }
.orbit__node { --a: calc(var(--i) * 72deg - 90deg); position: absolute; left: 50%; top: 50%; white-space: nowrap; padding: 10px 16px; border-radius: 999px; background: var(--band); border: 1px solid color-mix(in srgb, var(--band-muted) 55%, transparent); font-size: .875rem; transform: translate(-50%, -50%) rotate(var(--a)) translateX(calc(min(100vw - 2 * var(--pad), 420px) * .39)) rotate(calc(-1 * var(--a) - var(--rot))); }
.orbit__mark { position: absolute; left: 50%; top: 50%; width: 26%; height: 26%; translate: -50% -50%; color: var(--band-ink); }
@media (min-width: 960px) {
  .system { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); min-height: 100svh; }
  .orbit { width: min(100%, 78svh, 860px); }
  .orbit__node { font-size: clamp(.9375rem, .6rem + .5vw, 1.25rem); padding: 12px 22px; transform: translate(-50%, -50%) rotate(var(--a)) translateX(calc(min(78svh, 860px, 55vw - 2 * var(--pad)) * .39)) rotate(calc(-1 * var(--a) - var(--rot))); }
}

/* Visit: one visit along a line; on desktop it pins and the dot travels across five steps */
.visit { padding: clamp(96px, 12vw, 200px) var(--pad); }
.visit__title { max-width: 16ch; margin-bottom: clamp(40px, 5vw, 96px); }
.steps-wrap { position: relative; padding-left: 40px; }
.steps { list-style: none; padding: 0; display: grid; gap: 56px; }
.steps__line { position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.steps__dot { position: absolute; left: 50%; top: var(--dot, 0%); width: 16px; height: 16px; translate: -50% -50%; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 18%, transparent); }
.step { display: grid; gap: 12px; align-content: start; }
.step p { color: var(--muted); font-size: var(--fs-lede); line-height: 1.5; max-width: 40ch; }
.step__verb { font: var(--w-display) var(--fs-h3)/1 var(--f-display); letter-spacing: var(--track-display); }
.step .step__ui { display: flex; align-items: center; gap: .75em; flex-wrap: wrap; margin-top: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: .9em 1em; color: var(--ink); font-size: var(--fs-body); max-width: none; box-shadow: 0 20px 40px -28px rgb(14 14 16 / .3); }
.step__ui > span:not([class]) { flex: 1; min-width: 8em; }
.step__ui--msg { flex-direction: column; align-items: stretch; }
.step__ui .ui__bubble { max-width: 100%; }
.motion .step { opacity: .3; transition: opacity .4s ease; }
.motion .step.is-on { opacity: 1; }
@media (min-width: 960px) {
  .visit__stage { display: grid; align-content: center; }
  .steps-wrap { padding: 56px 0 0; }
  .steps { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(24px, 2vw, 48px); }
  .steps__line { left: 0; right: 0; top: 7px; bottom: auto; width: auto; height: 2px; }
  .steps__dot { top: 50%; left: var(--dot, 0%); }
  .motion .visit { height: 240svh; padding: 0 var(--pad); }
  .motion .visit__stage { position: sticky; top: 0; height: 100svh; padding-top: var(--bar-h); }
}
/* Close */
.close { position: relative; background: var(--accent); color: var(--on-accent); min-height: 90svh; display: grid; align-items: end; padding: clamp(96px, 12vw, 200px) var(--pad); overflow: hidden; }
.close__weave { position: absolute; inset: 0; width: 100%; height: 100%; }
.close__copy { position: relative; display: grid; gap: 24px; justify-items: start; }
.close .display em { color: inherit; }
.close .lede { color: color-mix(in srgb, var(--on-accent) 86%, var(--accent)); }

/* Footer */
.foot { padding: 56px var(--pad) 40px; display: grid; gap: 24px; align-items: center; }
.foot__logo { width: 141px; height: 32px; }
.foot__nav { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.foot__nav a, .foot__small a { display: inline-flex; align-items: center; min-height: 44px; }
.foot__small { display: flex; flex-wrap: wrap; align-items: center; column-gap: .4em; color: var(--muted); font-size: .9375rem; }
.foot__by { display: inline-flex; align-items: center; column-gap: .4em; white-space: nowrap; }
.foot__credit img { display: block; width: auto; height: 20px; }
@media (min-width: 960px) { .foot { grid-template-columns: auto 1fr auto; gap: 48px; } }

/* Calm version: no pin, no drifting, everything in its final place */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* Sub-lines inside the visit cards, and the day list on phone */
.step__ui small { display: block; color: var(--muted); font-size: max(.875rem, .8125em); }
@media (max-width: 959px) { .ui__appt em { display: none; } .ui__appt { flex-wrap: wrap; } }
.step__ui :is(.ui__hour, .ui__no, .ui__pill) { font-size: max(.875rem, .8125em); }
@media (max-width: 959px) { .motion .trama__stage { height: auto; min-height: 100svh; } }
@media (max-width: 959px) and (max-height: 700px) { .card { padding: 10px 18px 8px; } .card__head { padding-bottom: 6px; } .card__group { padding: 4px 0 2px; } .card__row { padding: 1px 0; line-height: 1.3; } }

/* Two actions side by side: "Solicitar acceso" and "Iniciar sesión" */
.btns { display: flex; flex-wrap: wrap; gap: 12px; }
.btn--line { background: transparent; color: var(--accent); box-shadow: inset 0 0 0 2px var(--accent); }
.btn--line:hover { background: var(--soft); }
.btn--line-light { background: transparent; color: var(--on-accent); box-shadow: inset 0 0 0 2px var(--on-accent); }
.btn--line-light:hover { background: color-mix(in srgb, var(--on-accent) 14%, transparent); }
.btn:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.close .btn:focus-visible { outline-color: var(--on-accent); }
.bar__acts { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.bar__in { min-height: 44px; padding: 0 18px; font-size: .9375rem; }
@media (min-width: 960px) { .bar__nav ~ .bar__acts { margin-left: 0; } }
button.btn { border: 0; cursor: pointer; }
@media (max-width: 479px) {
  .bar { gap: 10px; }
  .bar__logo { width: 92px; height: 21px; }
  .bar__acts { gap: 6px; }
  .bar__in, .bar__cta { padding: 0 12px; font-size: .875rem; }
  .trama .btns .btn--big, .close .btns .btn--big { padding: 0 18px; }
}

/* Solicitar acceso: its own page, same look as the home page */
.ask { display: grid; gap: clamp(28px, 2.5vw, 48px); align-content: start; padding: calc(var(--bar-h) + 32px) var(--pad) clamp(64px, 6vw, 120px); min-height: 100svh; box-sizing: border-box; }
@media (min-width: 960px) { .ask { padding-top: calc(var(--bar-h) + clamp(32px, 3vw, 72px)); } }
.ask__intro { display: grid; gap: 16px; justify-items: start; }
.ask__sub { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 32px; }
.ask__back { display: inline-flex; align-items: center; min-height: 44px; font-weight: var(--w-strong); color: var(--accent); }
.ask:has(.form__done:not([hidden])) .ask__sub { display: none; }
.ask__panel { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: clamp(20px, 2.6vw, 56px); }
.form { display: grid; gap: clamp(20px, 1.4vw, 32px); }
.form[hidden], .form__done[hidden], .form__alert[hidden] { display: none; }
/* Fields: one column, two from 768, three from 1440; label, input and the hint or error share rows, so inputs in a row line up */
.form__fields { display: grid; grid-template-columns: minmax(0, 1fr); column-gap: clamp(20px, 2vw, 40px); }
@media (min-width: 768px) { .form__fields { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1440px) { .form__fields { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.entry { display: grid; grid-row: span 3; grid-template-rows: subgrid; row-gap: 8px; align-items: end; }
.entry label { font-weight: var(--w-strong); font-size: clamp(1.0625rem, .95rem + .3vw, 1.375rem); }
.entry label small { font-size: inherit; font-weight: var(--w-body); color: var(--muted); }
.entry input { box-sizing: border-box; width: 100%; min-height: clamp(56px, 48px + .6vw, 72px); padding: 0 16px; border: 1.5px solid var(--muted); border-radius: 12px; background: var(--surface); color: var(--ink); font: var(--w-body) clamp(1.125rem, 1rem + .3vw, 1.5rem)/1.3 var(--f-body); }
.entry input:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-color: var(--accent); }
.entry input[aria-invalid="true"] { border: 2px solid var(--warn); }
.entry__after { display: grid; gap: 6px; align-self: start; padding-bottom: clamp(16px, 1.3vw, 28px); }
.entry__hint { margin: 0; color: var(--muted); font-size: clamp(1rem, .9rem + .2vw, 1.25rem); }
.entry__error { margin: 0; color: var(--warn); font-weight: var(--w-strong); font-size: clamp(1rem, .9rem + .2vw, 1.25rem); }
.entry__error:empty { display: none; }
.form__alert { margin: 0; padding: 14px 16px; border: 2px solid var(--warn); border-radius: 12px; color: var(--warn); font-weight: var(--w-strong); background: color-mix(in srgb, var(--warn) 6%, var(--surface)); }
.form__end { display: grid; gap: 20px; }
.form__note { margin: 0; color: var(--muted); }
.form__send { justify-self: start; }
.form__send:disabled { opacity: .7; cursor: progress; }
@media (max-width: 599px) { .form__send { justify-self: stretch; } }
@media (min-width: 768px) { .form__end { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 40px; } }
.form__done { display: grid; gap: 28px; justify-items: start; outline: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* app.athena.do until the app exists: the words, and from 768 the home hero's notes, still */
.soon { min-height: 100svh; display: grid; grid-template-rows: 1fr auto; }
.soon__main { display: grid; align-items: center; gap: clamp(32px, 4vw, 96px); padding: clamp(48px, 5vw, 120px) var(--pad); }
.soon__copy { display: grid; align-content: center; justify-items: start; gap: clamp(20px, 2vw, 40px); }
.soon__logo { width: clamp(141px, 100px + 6vw, 260px); height: auto; margin-bottom: clamp(8px, 2vw, 40px); }
.soon__notes { display: none; }
@media (min-width: 768px) {
  .soon__main { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
  .soon__notes { display: block; position: relative; height: clamp(440px, 56svh, 1000px); }
  .soon__notes .frag { left: var(--x); top: var(--y); transform: rotate(var(--r)); white-space: normal; width: max-content; max-width: 56%; will-change: auto; }
}
.soon__foot { padding-top: 0; }
