

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

html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html:focus-within { scroll-behavior: smooth; } }
body { margin: 0; background: var(--paper); color: var(--ink); font: var(--t-body); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--accent); text-underline-offset: 0.22em; text-decoration-thickness: 1px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: var(--s1); }
::selection { background: var(--glow); color: var(--ink); }


h1, h2, h3, h4 { margin: 0; text-wrap: balance; overflow-wrap: break-word; }
h1 { font: var(--t-display); letter-spacing: var(--tracking-display); max-width: 10em; }
h2 { font: var(--t-h2); letter-spacing: var(--tracking-display); max-width: 12em; }
h3 { font: var(--t-h3); }
p { margin: 0 0 var(--s4); max-width: 34em; text-wrap: pretty; }
em { font-style: normal; color: var(--ink-muted); }

h1 em, h2 em, h3 em { font-style: inherit; }
.lead { font: var(--t-lead); color: var(--ink-muted); max-width: 30em; }
.meta { font: var(--t-meta); color: var(--ink-muted); }
.label { display: inline-flex; align-items: center; gap: var(--s2); font: var(--t-label); letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); margin: 0 0 var(--s4); }
.label .icon { width: var(--s4); height: var(--s4); }

.wrap { width: 100%; max-width: var(--frame); margin: 0 auto; padding: 0 var(--gutter); }
.section { position: relative; padding: var(--section) 0; }
.section--surface { background: var(--surface); border-block: 1px solid var(--rule); }
.section--tight { padding: calc(var(--section) * 0.55) 0; }
.section--band { background: var(--band); color: var(--on-band); }
.section--band h2, .section--band h3 { color: var(--on-band); }
.section--band p, .section--band .meta, .section--band em { color: var(--on-band-muted); }
.section--band a:not(.btn) { color: var(--on-band); }
.section--band .label { color: var(--accent-on-band); }
.section-head { display: grid; gap: var(--s3); margin-bottom: var(--s9); }
.section-head p { margin: 0; }
.section-head .label { justify-self: start; }
.section-head--center .label { justify-self: center; }
.decor { position: absolute; inset: 0; overflow: hidden; pointer-events: none; color: var(--rule); z-index: 0; }
.decor svg { width: 100%; height: 100%; }
.section > .wrap { position: relative; z-index: 1; }


.skip { position: absolute; left: var(--s4); top: calc(var(--s10) * -2); z-index: 100; background: var(--ink); color: var(--paper); padding: var(--s3) var(--s4); border-radius: var(--radius); }
.skip:focus { top: var(--s4); }
.banner { background: var(--ink); color: var(--paper); font: var(--t-meta); }
.banner .wrap { padding-block: var(--s3); }
.banner p { margin: 0; max-width: none; color: var(--paper); }
.banner a { color: var(--paper); }


.top { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: saturate(1.4) blur(var(--s3)); border-bottom: 1px solid var(--rule); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: var(--s6); min-height: var(--s10); }
.brand { display: inline-flex; align-items: center; gap: var(--s3); font: var(--weight-display) 1.25rem/1 var(--font-display); color: var(--ink); text-decoration: none; letter-spacing: -0.01em; }
.brand-mark { width: var(--s7); height: var(--s7); color: var(--accent-fill); flex: none; }
.nav { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: var(--s1) var(--s6); }
.nav a:not(.btn) { font: var(--t-meta); color: var(--ink-muted); text-decoration: none; padding: var(--s2) 0; }
.nav a:not(.btn):hover, .nav a[aria-current="page"] { color: var(--ink); }
.nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--accent); }

.menu { display: none; position: relative; }
.menu summary { list-style: none; cursor: pointer; display: grid; place-items: center; width: var(--s9); height: var(--s9); border-radius: var(--radius); color: var(--ink); }
.menu summary::-webkit-details-marker { display: none; }
.menu-panel { position: absolute; right: 0; top: calc(100% + var(--s2)); min-width: min(calc(100vw - var(--s8)), calc(var(--s11) * 3.4)); display: grid; gap: var(--s1); padding: var(--s4); background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius-lg); box-shadow: var(--shadow-hover); }
.menu-panel a:not(.btn) { padding: var(--s3) var(--s2); color: var(--ink); text-decoration: none; border-radius: var(--radius); }
.menu-panel a[aria-current="page"] { color: var(--accent); }
.menu-panel .btn { margin-top: var(--s2); justify-content: center; }
@media (max-width: 900px) { .nav { display: none; } .menu { display: block; } .top .wrap { min-height: var(--s10); } .brand span { max-width: 12em; } }
@media (max-width: 560px) { .banner { font-size: 0.875rem; } .brand { font-size: 1.0625rem; } }


.btn { display: inline-flex; align-items: center; gap: var(--s2); min-height: var(--s9); padding: 0 var(--s6); border-radius: var(--radius); font: 600 1rem/1 var(--font-text); text-decoration: none; transition: transform var(--dur-1) var(--ease), background-color var(--dur-1) var(--ease), box-shadow var(--dur-1) var(--ease); }
.btn .icon { width: var(--s5); height: var(--s5); transition: transform var(--dur-1) var(--ease); }
.btn:hover .icon { transform: translateX(var(--s1)); }
.btn--primary, .btn--primary:visited { background: var(--accent-fill); color: var(--accent-label); box-shadow: var(--shadow); }
.btn--primary:hover { color: var(--accent-label); transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.btn--ghost, .btn--ghost:visited { color: var(--ink); box-shadow: inset 0 0 0 1px var(--rule); background: transparent; }
.btn--ghost:hover { color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.section--band .btn--ghost, .section--band .btn--ghost:visited { color: var(--on-band); box-shadow: inset 0 0 0 1px var(--on-band-muted); }
.nav .btn { min-height: var(--s8); padding: 0 var(--s4); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3) var(--s4); margin-top: var(--s7); }


@media (prefers-reduced-motion: no-preference) {
  html.js [data-reveal] { opacity: 0; transform: translateY(var(--s5)); transition: opacity var(--dur-3) var(--ease), transform var(--dur-3) var(--ease); transition-delay: calc(min(var(--i, 0), 4) * var(--stagger)); }
  html.js [data-reveal].is-in { opacity: 1; transform: none; }
}


.lift { transition: transform var(--dur-2) var(--ease), box-shadow var(--dur-2) var(--ease), border-color var(--dur-2) var(--ease); }
@media (hover: hover) and (prefers-reduced-motion: no-preference) { .lift:hover { transform: translateY(calc(var(--s1) * -1)); box-shadow: var(--shadow-hover); } }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }


.brand-logo { height: var(--s9); width: auto; flex: none; background: var(--logo-ground, transparent); padding: var(--logo-pad, 0); box-sizing: content-box; }


.absence-box { display: grid; gap: var(--s5); padding: var(--s8); border: 1px dashed var(--ink-muted); border-radius: var(--radius-lg); background: var(--surface); }
@media (min-width: 760px) { .absence-box { grid-template-columns: auto 1fr; gap: var(--s7); } }
.absence-icon { color: var(--accent); }
.absence-box h2 { font-size: clamp(1.625rem, 2.6vw, 2.125rem); margin-bottom: var(--s4); }
.absence-list { list-style: none; margin: 0 0 var(--s5); padding: 0; display: flex; flex-wrap: wrap; gap: var(--s2) var(--s6); }
.absence-list li { display: inline-flex; align-items: center; gap: var(--s2); color: var(--ink); }
.absence-list .icon { color: var(--ink-muted); }
.absence-box p { font: var(--t-card); }


.foot { border-top: 1px solid var(--rule); background: var(--paper); padding: var(--s10) 0 var(--s7); }
.foot-grid { display: grid; gap: var(--s8); }
@media (min-width: 900px) { .foot-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s2); }
.foot a { color: var(--ink-muted); text-decoration: none; display: inline-flex; align-items: center; gap: var(--s2); }
.foot a:hover { color: var(--ink); }
.foot .icon { color: var(--accent); flex: none; }
.foot-brand .brand { margin-bottom: var(--s3); }
.foot-credit { margin-top: var(--s9); padding-top: var(--s5); border-top: 1px solid var(--rule); }
.foot-min { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s7); align-items: baseline; }


.foot-ways a span, .foot-min .meta { overflow-wrap: anywhere; }


.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s4); counter-reset: step; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(auto-fit, minmax(calc(var(--s11) * 2.3), 1fr)); } }
.step { position: relative; padding: var(--s7) var(--s6); border: 1px solid var(--rule); border-radius: var(--radius-lg); background: var(--surface); display: grid; gap: var(--s3); align-content: start; }
.step { counter-increment: step; }
.step::before { content: counter(step, decimal-leading-zero); font: var(--t-numeral); font-size: 2.5rem; color: var(--accent); letter-spacing: var(--tracking-display); }
.step-icon { color: var(--ink-muted); }
.step p { font: var(--t-card); margin: 0; }
.timeline { list-style: none; margin: 0; padding: 0 0 0 var(--s7); border-left: 2px solid var(--rule); display: grid; gap: var(--s8); }
.timeline li { position: relative; }
.timeline li::before { content: ""; position: absolute; left: calc(var(--s7) * -1 - var(--s2) + -1px); top: var(--s2); width: var(--s4); height: var(--s4); border-radius: 50%; background: var(--paper); box-shadow: inset 0 0 0 3px var(--accent); }
.timeline p { font: var(--t-card); margin: var(--s2) 0 0; }
.step p, .timeline p { color: var(--ink-muted); }


.own { margin: 0 auto; max-width: 30em; text-align: center; display: grid; justify-items: center; gap: var(--s5); }
.own-mark { color: var(--accent); }
.own blockquote { margin: 0; }
.own blockquote p { font: var(--t-quote); max-width: none; margin: 0; text-wrap: balance; }
.pull-grid { display: grid; gap: var(--s8); align-items: center; }
@media (min-width: 900px) { .pull-grid { grid-template-columns: 0.6fr 1.4fr; } }
.pull-object { position: relative; aspect-ratio: 1; width: min(40%, calc(var(--s11) * 3.2)); max-width: calc(var(--s11) * 3.2); color: var(--accent); display: grid; place-items: center; }
.pull-object > svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.pull-mark { position: relative; }
.pull { margin: 0; }
.pull blockquote { margin: 0 0 var(--s5); }
.pull blockquote p { font: var(--t-quote); max-width: 17em; margin: 0; }
.pull figcaption { font: var(--t-body); }
@media (min-width: 900px) { .pull-object { width: 100%; } }


h1, h2 { letter-spacing: -0.03em; }
.section-head { margin-bottom: var(--s10); }
.btn--primary .icon { box-sizing: content-box; padding: var(--s1); margin-right: calc(var(--s2) * -1); border-radius: 50%; background: color-mix(in srgb, var(--accent-label) 18%, transparent); }
.bento-cell, .way, .step, .stat, .work-card { box-shadow: none; border-color: var(--rule); }
.bento-cell:hover, .way:hover, .work-card:hover { border-color: var(--ink); }
.label { letter-spacing: 0.18em; }
