/* Foundation */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: none; text-size-adjust: none; background: var(--c-bg); color: var(--c-fg); }
body { min-height: 100dvh; font-family: var(--f-body); font-size: var(--t-body); line-height: 1.5; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; font-kerning: normal; overflow-x: clip; }
img, svg { display: block; max-width: 100%; }
input, button { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-weight: inherit; font-size: inherit; text-wrap: balance; }
p { text-wrap: pretty; }
::selection { background: var(--c-fg); color: var(--c-bg); }
:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 3px; border-radius: 4px; }
#main:focus { outline: none; }
.skip-link { position: fixed; left: var(--gutter); top: var(--gutter); z-index: 101; padding: 0.6em 1em; background: var(--c-fg); color: var(--c-bg); border-radius: 999px; transform: translateY(-300%); }
.skip-link:focus-visible { transform: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Cross-document page transition: the glass pane slides across */
@view-transition { navigation: auto; }
@keyframes pane-in { from { translate: 100% 0; } to { translate: 0 0; } }
@keyframes pane-out { from { translate: 0 0; } to { translate: -100% 0; } }
::view-transition-old(root) { animation: 0.55s var(--ease-io) both pane-out; }
::view-transition-new(root) { animation: 0.55s var(--ease-io) both pane-in; }
@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}

/* Type */
.display { font-family: var(--f-display); font-weight: 500; letter-spacing: -0.04em; line-height: 0.98; }
.said { font-family: var(--f-said); font-style: italic; font-weight: 400; letter-spacing: -0.005em; line-height: 1.22; }
.t-mega { font-size: var(--t-mega); letter-spacing: -0.045em; line-height: 0.94; margin-left: -0.04em; }
.t-xl { font-size: var(--t-xl); letter-spacing: -0.035em; line-height: 1; }
.t-l { font-size: var(--t-l); letter-spacing: -0.025em; line-height: 1.12; }
.t-m { font-size: var(--t-m); letter-spacing: -0.015em; line-height: 1.3; }
.t-s { font-size: var(--t-s); }
.t-xs { font-size: var(--t-xs); }
.muted { color: var(--c-muted); }
.label { font-family: var(--f-body); font-weight: 500; font-size: var(--t-xs); letter-spacing: 0.02em; color: var(--c-muted); }
.num { font-variant-numeric: tabular-nums; }
.measure { max-width: 36rem; }
.link { display: inline-block; padding-block: 0.15rem; background: linear-gradient(currentColor 0 0) left bottom / 100% 1px no-repeat; transition: background-size 0.4s var(--ease); }
@media (hover: hover) { .link:hover { background-size: 100% 2px; } }
.link:focus-visible { background-size: 100% 2px; }

/* Layout */
.wrap { padding-inline: var(--gutter); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); }
.col-1-6 { grid-column: 1 / 7; }
.col-1-7 { grid-column: 1 / 8; }
.col-8-13 { grid-column: 8 / 13; }
.col-7-13 { grid-column: 7 / 13; }
.col-2-11 { grid-column: 2 / 11; }
section { position: relative; }

/* Frame: four corners */
.frame { position: fixed; inset: 0; z-index: var(--z-header); pointer-events: none; }
.frame > * { pointer-events: auto; transition: translate 0.6s var(--ease), opacity 0.4s; }
.frame .frame__tl, .frame .frame__tr, .frame .frame__bl, .frame .frame__br { position: absolute; }
.frame__tl { left: var(--gutter); top: calc(var(--gutter) * 0.8); }
.frame__tr { right: var(--gutter); top: calc(var(--gutter) * 0.8); }
.frame__bl { left: var(--gutter); bottom: calc(var(--gutter) * 0.8); }
.frame__br { right: var(--gutter); bottom: calc(var(--gutter) * 0.8); }
html.frame-away .frame__tl, html.frame-away .frame__tr { translate: 0 -220%; }
.brand { display: flex; align-items: center; gap: 0.6rem; font-family: var(--f-display); font-weight: 500; font-size: 1rem; letter-spacing: -0.02em; height: 36px; }
.brand__mark { transition: rotate 0.5s var(--ease), background 0.3s; }
@media (hover: hover) { .brand:hover .brand__mark { rotate: -10deg; background: var(--c-accent); } }
.brand:focus-visible .brand__mark { rotate: -10deg; background: var(--c-accent); }
.brand__mark { width: 26px; height: 26px; border-radius: 8px; background: var(--c-fg); color: var(--c-bg); display: grid; place-items: center; font-size: 0.9rem; font-weight: 500; box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.25); }
.nav { display: flex; gap: 1.2rem; align-items: center; height: 36px; font-size: var(--t-s); font-weight: 500; }
.nav__a { display: inline-block; padding: 0.45rem 0.1rem; background: linear-gradient(currentColor 0 0) left calc(100% - 0.3rem) / 0% 1px no-repeat; transition: background-size 0.45s var(--ease); }
@media (hover: hover) { .nav__a:hover { background-size: 100% 1px; } .nav__a:hover .roll > span { translate: 0 -105%; } .nav__a:hover .roll > span + span { translate: 0 0; } }
.nav__a:focus-visible { background-size: 100% 1px; outline-offset: 0; }
.nav__a[aria-current="page"] { background-size: 100% 1px; }
.roll { display: inline-grid; overflow: clip; line-height: 1.3; height: 1.3em; }
.roll > span { grid-area: 1 / 1; transition: translate 0.5s var(--ease); }
.roll > span + span { translate: 0 105%; }
@media (hover: hover) { .roll:hover > span { translate: 0 -105%; } .roll:hover > span + span { translate: 0 0; } }
.roll:focus-visible > span { translate: 0 -105%; } .roll:focus-visible > span + span { translate: 0 0; }

.clock { display: flex; align-items: center; gap: 0.6rem; font-size: var(--t-s); font-weight: 500; height: 36px; }
.clock__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c-accent); }
.clock__label { color: var(--c-muted); }
.meter { display: inline-flex; align-items: center; gap: 2px; height: 14px; margin-left: 0.2rem; }
.meter i { display: block; width: 2px; height: 4px; border-radius: 2px; background: var(--c-accent); animation: meter 1.6s ease-in-out infinite; animation-delay: calc(var(--k) * -0.28s); }
@keyframes meter { 0%, 100% { height: 4px; } 35% { height: 13px; } 60% { height: 7px; } }
html:not(.motion) .meter i { animation: none; height: 7px; }

/* Glass */
.glass { position: relative; background: var(--c-glass); -webkit-backdrop-filter: blur(24px) saturate(160%); backdrop-filter: blur(24px) saturate(160%); border: 1px solid var(--c-glass-edge); border-radius: var(--radius); box-shadow: inset 0 1px 0 #fff, inset 0 -1px 0 rgb(255 255 255 / 0.4), 0 24px 60px rgb(14 18 32 / 0.12), 0 2px 6px rgb(14 18 32 / 0.06); overflow: clip; isolation: isolate; }
.glass::before { content: ""; position: absolute; left: 20%; top: -30%; width: 60%; aspect-ratio: 1; z-index: -1; pointer-events: none; border-radius: 50%; background: radial-gradient(closest-side, rgb(255 255 255 / 0.95) 0%, rgb(205 228 255 / 0.5) 40%, rgb(10 132 255 / 0.06) 70%, rgb(10 132 255 / 0) 100%); translate: calc(var(--gx, 0) * 70%) calc(var(--gy, 0) * 70%); will-change: translate; }
.glass--flat { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgb(255 255 255 / 0.62); }
.glass--pill { border-radius: 999px; }

/* Buttons */
.btn { position: relative; isolation: isolate; overflow: clip; display: inline-flex; align-items: center; gap: 0.6rem; height: 44px; padding: 0 1.25rem; border-radius: 999px; font-family: var(--f-body); font-weight: 500; font-size: var(--t-s); white-space: nowrap; transition: color 0.3s; }
.btn--primary { background: var(--c-fg); color: var(--c-bg); box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.2); }
.btn--primary .btn__fill { background: var(--c-accent); }
.btn--primary:active { color: #fff; }
.btn--glass { background: var(--c-glass); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border: 1px solid var(--c-glass-edge); box-shadow: inset 0 1px 0 #fff, 0 6px 20px rgb(14 18 32 / 0.08); color: var(--c-fg); }
.btn--glass .btn__fill { background: var(--c-fg); }
.btn--glass.is-filled, .btn--glass:active { color: var(--c-bg); }
.btn__fill { position: absolute; inset: 0; z-index: -1; clip-path: circle(0% at var(--fx, 50%) var(--fy, 50%)); transition: clip-path 0.6s var(--ease); }
.btn.is-filled .btn__fill, .btn:active .btn__fill { clip-path: circle(150% at var(--fx, 50%) var(--fy, 50%)); }
.btn .arrow { transition: translate 0.4s var(--ease); }
.btn.is-filled .arrow { translate: 4px 0; }
@media (prefers-reduced-motion: reduce) {
  .btn__fill { transition: none; }
  .btn:focus-visible .btn__fill { clip-path: none; }
  .btn--glass:focus-visible { color: var(--c-bg); }
}
@media (prefers-reduced-motion: reduce) and (hover: hover) {
  .btn:hover .btn__fill { clip-path: none; }
  .btn--glass:hover { color: var(--c-bg); }
}

/* Loader: a clock that becomes the corner clock */
#loader { position: fixed; inset: 0; z-index: var(--z-loader); background: var(--c-bg); display: grid; place-items: center; }
.loader__clock { font-family: var(--f-display); font-weight: 500; font-size: clamp(3rem, 12vw, 9rem); letter-spacing: -0.05em; line-height: 1; font-variant-numeric: tabular-nums; }
.loader__meta { position: absolute; left: var(--gutter); bottom: calc(var(--gutter) * 0.8); font-size: var(--t-s); color: var(--c-muted); }
html:not(.js) #loader, #loader[hidden] { display: none; }

/* Reveals */
html.motion [data-reveal] { opacity: 0; translate: 0 28px; transition: opacity 0.9s var(--ease), translate 1.1s var(--ease); transition-delay: var(--d, 0s); }
html.motion [data-reveal="side"] { translate: 36px 0; }
html.motion [data-reveal].in, html.motion [data-reveal]:focus-within { opacity: 1; translate: 0 0; }
html.motion [data-reveal]:focus-within:not(.in) { transition: none; }
html.motion [data-lines] > .line { display: block; overflow: clip; padding-bottom: 0.1em; margin-bottom: -0.1em; }
html.motion [data-lines] > .line > span { display: block; translate: 0 110%; rotate: 1.5deg; transform-origin: left top; transition: translate 1.1s var(--ease), rotate 1.1s var(--ease); transition-delay: calc(var(--i, 0) * 80ms + var(--d, 0s)); }
html.motion [data-lines].in > .line > span { translate: 0 0; rotate: 0deg; }

/* Notes (the margin) */
.note { padding: 1.1rem 1.2rem 1.2rem; display: flex; flex-direction: column; gap: 0.75rem; font-size: var(--t-s); }
.note__head { display: flex; align-items: center; gap: 0.5rem; }
.note__who { display: inline-flex; align-items: center; gap: 0.4rem; height: 22px; padding: 0 0.55rem; border-radius: 999px; background: rgb(10 132 255 / 0.14); color: #0062C4; font-weight: 500; font-size: var(--t-xs); }
.note__who::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--c-accent); }
.note__time { color: var(--c-muted); font-size: var(--t-xs); font-variant-numeric: tabular-nums; margin-left: auto; }
.note__lead { font-family: var(--f-display); font-weight: 500; font-size: var(--t-m); letter-spacing: -0.02em; line-height: 1.2; }
.note__lead small { display: block; font-family: var(--f-body); font-size: var(--t-xs); font-weight: 500; color: var(--c-muted); letter-spacing: 0.02em; margin-bottom: 0.3rem; }
.note__points { display: flex; flex-direction: column; gap: 0.35rem; color: var(--c-fg); }
.note__points li { display: flex; gap: 0.6rem; align-items: baseline; }
.note__points li::before { content: ""; flex: 0 0 auto; width: 6px; height: 6px; border-radius: 50%; background: var(--c-accent); position: relative; top: -2px; }
.note__points b { font-weight: 500; }
.note__src { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.note__src span { height: 24px; padding: 0 0.6rem; border-radius: 999px; background: rgb(14 18 32 / 0.07); font-size: var(--t-xs); display: inline-flex; align-items: center; color: var(--c-muted); }
.note--quiet .note__lead { color: var(--c-muted); }
.note__ok { display: inline-flex; align-items: center; gap: 0.4rem; color: var(--c-ok); font-weight: 500; font-size: var(--t-xs); }

/* Hero */
.hero { min-height: 100svh; display: grid; align-content: end; padding-block: calc(var(--gutter) * 2.8) calc(var(--gutter) * 1.4 + 60px); row-gap: calc(var(--u) * 2.4); }
.hero__title { grid-column: 1 / 13; max-width: 14ch; }
.hero__title em { font-family: var(--f-said); font-style: italic; font-weight: 400; letter-spacing: -0.02em; }
.hero__row { grid-column: 1 / 13; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: end; }
.hero__copy { grid-column: 1 / 6; display: flex; flex-direction: column; gap: 1.4rem; }
.hero__copy p { font-size: var(--t-m); line-height: 1.35; letter-spacing: -0.01em; max-width: 30ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; }
.hero__fine { font-size: var(--t-xs); color: var(--c-muted); }
.hero__scene { grid-column: 7 / 13; position: relative; min-height: 21rem; }
.scene__said { position: absolute; left: 0; right: 24%; bottom: 58%; font-size: var(--t-l); color: var(--c-muted); }
.wave { display: inline-flex; align-items: center; gap: 3px; height: 28px; vertical-align: middle; margin-left: 0.6rem; }
.wave i { display: block; width: 4px; border-radius: 2px; background: var(--c-accent); opacity: 0.55; height: 6px; animation: wave 1.3s ease-in-out infinite; animation-delay: calc(var(--k) * -0.11s); }
@keyframes wave { 0%, 100% { height: 5px; } 30% { height: calc(10px + var(--a, 0) * 1px); } 65% { height: 9px; } }
html:not(.motion) .wave i { animation: none; height: calc(6px + var(--a, 0) * 0.5px); }
.scene__said .who { display: block; font-family: var(--f-body); font-style: normal; font-size: var(--t-xs); font-weight: 500; letter-spacing: 0.02em; color: var(--c-muted); margin-bottom: 0.5rem; }
.scene__note { position: absolute; right: 0; bottom: 0; width: min(22rem, 100%); }

/* Live: the signature */
.live { padding-block: calc(var(--gutter) * 2) 0; }
.live__head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: end; margin-bottom: calc(var(--gutter) * 1.5); }
.live__head h2 { grid-column: 1 / 8; }
.live__head p { grid-column: 8 / 13; max-width: 30ch; }
.live__stage { position: relative; overflow-x: clip; }
.live__track { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); }
.live__lines { grid-column: 1 / 8; display: flex; flex-direction: column; }
.turn { min-height: 62svh; display: flex; flex-direction: column; justify-content: center; gap: 0.8rem; padding-block: 10svh; border-top: 1px solid var(--c-line); transition: color 0.5s; }
.turn:first-child { border-top: 0; }
.turn__meta { display: flex; gap: 0.8rem; align-items: center; font-size: var(--t-xs); font-weight: 500; color: var(--c-muted); font-variant-numeric: tabular-nums; }
.turn__meta b { font-weight: 500; color: var(--c-fg); }
.turn__said { font-size: var(--t-l); max-width: 22ch; color: var(--c-muted); transition: color 0.6s; }
.turn.is-active .turn__said { color: var(--c-fg); }
.live__margin { grid-column: 8 / 13; }
.live__sticky { position: sticky; top: 50svh; translate: 0 -50%; }
.margin { position: relative; min-height: 15rem; }
.margin .note { position: absolute; inset: 0 auto auto 0; width: 100%; opacity: 0; translate: 36px 0; transition: opacity 0.6s var(--ease), translate 0.9s var(--ease); pointer-events: none; }
.margin .note.is-on { opacity: 1; translate: 0 0; pointer-events: auto; position: relative; }
.margin .note:not(.is-on) { visibility: hidden; }
.live__fine { grid-column: 8 / 13; margin-top: 1rem; font-size: var(--t-xs); color: var(--c-muted); }

/* Before / After pair */
.pair { padding-block: calc(var(--gutter) * 4); }
.pair__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: calc(var(--gutter) * 2); align-items: start; }
.pair__text { grid-column: 1 / 5; display: flex; flex-direction: column; gap: 1rem; position: sticky; top: calc(var(--gutter) * 3); }
.pair__text p { max-width: 30ch; }
.pair__cards { grid-column: 6 / 13; display: flex; flex-direction: column; gap: var(--gutter); }
.card { padding: 1.3rem 1.4rem; display: flex; flex-direction: column; gap: 0.9rem; }
.card__head { display: flex; align-items: baseline; gap: 0.8rem; }
.card__head h3 { font-family: var(--f-display); font-weight: 500; font-size: var(--t-m); letter-spacing: -0.02em; }
.card__head .label { margin-left: auto; }
.row { display: flex; align-items: center; gap: 0.8rem; padding: 0.7rem 0; border-top: 1px solid var(--c-line); font-size: var(--t-s); }
.row:first-of-type { border-top: 0; }
.row__text { flex: 1 1 auto; min-width: 0; }
.row__text small { display: block; color: var(--c-muted); font-size: var(--t-xs); }
.chip { height: 24px; padding: 0 0.6rem; border-radius: 999px; font-size: var(--t-xs); font-weight: 500; display: inline-flex; align-items: center; gap: 0.35rem; white-space: nowrap; background: rgb(14 18 32 / 0.07); color: var(--c-muted); }
.chip--ok { background: rgb(31 157 85 / 0.14); color: #167A41; }
.chip--wait { background: rgb(255 159 10 / 0.18); color: #8A5300; }
.chip--draft { background: rgb(10 132 255 / 0.14); color: #0062C4; }
.check { display: inline-flex; align-items: center; gap: 0.6rem; }
.check input { width: 16px; height: 16px; margin: 0; accent-color: var(--c-accent); }

/* Statement */
.statement { padding-block: calc(var(--gutter) * 3) calc(var(--gutter) * 4); border-top: 1px solid var(--c-line); }
.statement__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: calc(var(--gutter) * 2); }
.statement__text { grid-column: 1 / 9; }
.statement__text .t-xl { max-width: 20ch; }
.statement__aside { grid-column: 9 / 13; display: flex; flex-direction: column; gap: 0.5rem; align-self: end; }
.change { display: grid; grid-template-columns: 3.2rem 1fr; gap: 0.6rem; padding: 0.6rem 0; border-top: 1px solid var(--c-line); font-size: var(--t-s); }
.change time { color: var(--c-muted); font-size: var(--t-xs); font-variant-numeric: tabular-nums; padding-top: 0.15rem; }
.change s { color: var(--c-muted); text-decoration-thickness: 1px; }

/* Modes index */
.modes { padding-block: calc(var(--gutter) * 2) calc(var(--gutter) * 4); }
.modes__head { display: flex; align-items: end; justify-content: space-between; gap: var(--gutter); margin-bottom: var(--gutter); }
@media (max-width: 767px) { .modes__head { flex-direction: column; align-items: start; } }
.modes__head p { max-width: 36ch; }
.index { list-style: none; padding: 0; border-top: 1px solid var(--c-line); }
.index li { border-bottom: 1px solid var(--c-line); }
.index a { display: grid; grid-template-columns: 2.4rem 5fr 6fr 1.2rem; column-gap: var(--gutter); align-items: center; padding-block: 1.1rem; position: relative; }
.index__n { font-size: var(--t-xs); color: var(--c-muted); font-variant-numeric: tabular-nums; }
.index__name { font-family: var(--f-display); font-weight: 500; font-size: var(--t-l); letter-spacing: -0.025em; transition: translate 0.5s var(--ease); }
.index__note { font-size: var(--t-s); color: var(--c-muted); transition: translate 0.6s var(--ease), color 0.4s; }
.index__note b { font-weight: 500; color: var(--c-fg); }
.index__arrow { color: var(--c-muted); transition: translate 0.4s var(--ease), color 0.3s; }
@media (hover: hover) {
  .index a:hover .index__name { translate: 10px 0; }
  .index a:hover .index__note { translate: -10px 0; }
  .index a:hover .index__arrow { translate: 6px 0; color: var(--c-fg); }
}
.index a:focus-visible .index__arrow { translate: 6px 0; color: var(--c-fg); }
@media (prefers-reduced-motion: reduce) and (hover: hover) { .index a:hover .index__name { text-decoration: underline; text-underline-offset: 0.2em; } }

/* Keys: facts */
.keys { padding-block: calc(var(--gutter) * 3) calc(var(--gutter) * 4); border-top: 1px solid var(--c-line); }
.keys__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: calc(var(--gutter) * 2); }
.keys__text { grid-column: 1 / 6; display: flex; flex-direction: column; gap: 1rem; }
.keys__text p { max-width: 32ch; }
.facts { grid-column: 7 / 13; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gutter); }
.fact { display: flex; flex-direction: column; gap: 0.6rem; padding-top: 0.8rem; border-top: 1px solid var(--c-fg); }
.fact__big { font-family: var(--f-display); font-weight: 500; font-size: var(--t-xl); letter-spacing: -0.04em; line-height: 0.95; }
.fact p { font-size: var(--t-s); color: var(--c-muted); }
.keys__row { grid-column: 1 / 13; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.field { display: inline-flex; align-items: center; height: 44px; padding: 0 1.1rem; }
.field input { border: 0; background: transparent; outline: none; width: 15rem; max-width: 56vw; font-size: var(--t-s); }
.field:focus-within { outline: 2px solid var(--c-accent); outline-offset: 3px; }
.keys__row .chip { height: 32px; padding: 0 0.9rem; font-size: var(--t-s); background: var(--c-glass); border: 1px solid var(--c-glass-edge); color: var(--c-fg); box-shadow: inset 0 1px 0 #fff; }

/* Quotes (fictional placeholders) */
.quotes { padding-block: calc(var(--gutter) * 2) calc(var(--gutter) * 4); }
.quotes__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: var(--gutter); }
.quote { grid-column: span 4; display: flex; flex-direction: column; gap: 1rem; padding-top: 1rem; border-top: 1px solid var(--c-line); }
.quote p { font-size: var(--t-m); line-height: 1.3; }
.quote footer { font-size: var(--t-xs); color: var(--c-muted); }
.quote:nth-child(2) { grid-column: 6 / 10; margin-top: calc(var(--gutter) * 2); }
.quote:nth-child(3) { grid-column: 9 / 13; margin-top: calc(var(--gutter) * 4); }
.quote:nth-child(2) + .quote { grid-column: 9 / 13; }

/* Footer */
.foot { padding-block: calc(var(--gutter) * 3) calc(var(--gutter) * 2 + 72px); border-top: 1px solid var(--c-line); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: calc(var(--gutter) * 2); }
.foot__title { grid-column: 1 / 13; max-width: 12ch; }
.foot__actions { grid-column: 1 / 7; display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; }
.foot__links { grid-column: 7 / 13; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gutter); font-size: var(--t-s); }
.foot__links ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 0.4rem; }
.foot__links li:first-child { color: var(--c-muted); font-size: var(--t-xs); margin-bottom: 0.3rem; }
.foot__links a { display: inline-block; padding-block: 0.22rem; background: linear-gradient(currentColor 0 0) left calc(100% - 0.2rem) / 0% 1px no-repeat; transition: background-size 0.4s var(--ease); }
@media (hover: hover) { .foot__links a:hover { background-size: 100% 1px; } }
.foot__links a:focus-visible { background-size: 100% 1px; }
.foot__small { grid-column: 1 / 13; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; font-size: var(--t-xs); color: var(--c-muted); padding-top: var(--gutter); border-top: 1px solid var(--c-line); }

/* Enterprise page */
.ent-hero { min-height: 72svh; display: grid; align-content: end; padding-block: calc(var(--gutter) * 3.2) calc(var(--gutter) * 2 + 60px); row-gap: calc(var(--u) * 3); }
.ent-hero__title { max-width: 14ch; }
.ent-hero__row { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: end; }
.ent-hero__copy { grid-column: 1 / 6; font-size: var(--t-m); line-height: 1.35; max-width: 30ch; }
.ent-hero__side { grid-column: 8 / 13; display: flex; flex-direction: column; gap: var(--gutter); align-items: end; }
.ent-hero__side .note { width: min(22rem, 100%); }
.ent-hero__actions { display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: end; }
.split { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: calc(var(--gutter) * 2); padding-block: calc(var(--gutter) * 3); border-top: 1px solid var(--c-line); }
.split__text { grid-column: 1 / 5; display: flex; flex-direction: column; gap: 1rem; position: sticky; top: calc(var(--gutter) * 3); }
.split__text p { max-width: 30ch; }
.split__said { font-size: var(--t-m); color: var(--c-muted); max-width: 24ch; margin-top: 0.4rem; }
.split__said .who { display: block; font-family: var(--f-body); font-style: normal; font-size: var(--t-xs); font-weight: 500; letter-spacing: 0.02em; margin-bottom: 0.4rem; }
.split__body { grid-column: 6 / 13; display: flex; flex-direction: column; gap: var(--gutter); }
.policy { display: grid; grid-template-columns: 1fr auto; gap: 0.8rem; align-items: center; padding: 0.8rem 0; border-top: 1px solid var(--c-line); font-size: var(--t-s); }
.policy:first-child { border-top: 0; }
.policy small { display: block; color: var(--c-muted); font-size: var(--t-xs); }
.switch { width: 36px; height: 22px; border-radius: 999px; background: var(--c-ok); position: relative; box-shadow: inset 0 1px 2px rgb(0 0 0 / 0.15); }
.switch::after { content: ""; position: absolute; top: 2px; left: 16px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgb(0 0 0 / 0.25); }
.switch--off { background: rgb(14 18 32 / 0.18); } .switch--off::after { left: 2px; }
.audit { display: grid; grid-template-columns: 3.4rem 1fr; gap: 0.6rem; padding: 0.55rem 0; border-top: 1px solid var(--c-line); font-size: var(--t-s); }
.audit time { color: var(--c-muted); font-size: var(--t-xs); font-variant-numeric: tabular-nums; padding-top: 0.15rem; }
.pathway { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gutter); }
.pathway .fact { border-top-color: var(--c-line); }
.pathway .fact__big { font-size: var(--t-l); }

/* 404 */
.nf { min-height: 100svh; display: grid; align-content: center; row-gap: calc(var(--gutter) * 2); padding-block: calc(var(--gutter) * 4); }
.nf__row { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: end; row-gap: var(--gutter); }
.nf__said { grid-column: 1 / 8; font-size: var(--t-xl); color: var(--c-muted); max-width: 16ch; }
.nf__note { grid-column: 8 / 13; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .roll > span { transition: none; translate: none !important; }
  .roll > span + span { visibility: hidden; }
  .roll:focus-visible { text-decoration: underline; text-underline-offset: 0.35em; }
  .glass::before { display: none; }
}
@media (prefers-reduced-motion: reduce) and (hover: hover) { .roll:hover { text-decoration: underline; text-underline-offset: 0.35em; } }

/* Tablet and phone */
@media (max-width: 1023px) {
  .hero__copy { grid-column: 1 / 8; }
  .hero__scene { grid-column: 1 / 13; min-height: 18rem; margin-top: var(--gutter); }
  .pair__text, .split__text { position: static; grid-column: 1 / 13; }
  .pair__cards, .split__body { grid-column: 1 / 13; }
  .statement__text { grid-column: 1 / 13; } .statement__aside { grid-column: 1 / 13; }
  .keys__text { grid-column: 1 / 13; } .facts { grid-column: 1 / 13; }
  .quote, .quote:nth-child(2), .quote:nth-child(3) { grid-column: span 6; margin-top: 0; }
  .foot__links { grid-column: 1 / 13; }
  .foot__actions { grid-column: 1 / 13; }
  .ent-hero__copy { grid-column: 1 / 9; } .ent-hero__side { grid-column: 1 / 13; align-items: start; } .ent-hero__actions { justify-content: start; }
}
@media (max-width: 767px) {
  :root { --t-mega: clamp(2.9rem, 0.8rem + 12.5vw, 5rem); }
  .frame__bl { display: none; }
  .frame .frame__br { translate: 0 160%; opacity: 0; pointer-events: none; }
  html.past-hero .frame .frame__br { translate: 0 0; opacity: 1; pointer-events: auto; }
  .frame__tr .nav { gap: 1rem; }
  .nav .nav--hide { display: none; }
  .hero { padding-top: calc(var(--gutter) * 5); row-gap: calc(var(--u) * 2.4); }
  .hero__title { max-width: 11ch; }
  .hero__copy p { font-size: var(--t-body); }
  .scene__said { position: static; margin-bottom: 1rem; font-size: var(--t-m); }
  .scene__note { position: static; width: 100%; }
  .hero__scene { min-height: 0; }
  .live__head h2, .live__head p { grid-column: 1 / 13; }
  .live__lines { grid-column: 1 / 13; }
  .live__margin { display: none; }
  .turn { min-height: 0; padding-block: 1.6rem; }
  .turn__said { font-size: var(--t-m); max-width: none; }
  .turn .note { margin-top: 0.8rem; }
  .live__fine { grid-column: 1 / 13; }
  .facts { grid-template-columns: 1fr; }
  .pathway { grid-template-columns: 1fr; }
  .index a { grid-template-columns: 2rem 1fr 1.2rem; }
  .index__note { grid-column: 2; }
  .quote, .quote:nth-child(2), .quote:nth-child(3) { grid-column: 1 / 13; }
  .foot__links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nf__said, .nf__note { grid-column: 1 / 13; }
  .change { grid-template-columns: 3rem 1fr; }
}
@media (min-width: 768px) { html.js .turn .note { display: none; } }
@media (prefers-reduced-motion: reduce) and (min-width: 768px) { .live__margin { display: none; } .turn .note { display: flex; margin-top: 1rem; max-width: 26rem; } .live__lines { grid-column: 1 / 13; } .turn__said { max-width: 28ch; } }
