/* Brutalist — Design System 02 · personality layer. Tokens: /ds/brutalist/tokens.css */

body { font-weight: 400; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
code { font-family: var(--font-mono); font-size: .88em; }
.doc-lede code { padding: 0 4px; border: 2px solid var(--line); }
.t-caption, .doc-eyebrow, .doc-sub, .field__label, .states figcaption, .spec dt, .roles__head, .contrast th, .table th, .doc-side h2, .tab .count { font-family: var(--font-mono); }

/* ---------- chrome ---------- */
.doc-head { background: var(--bg); border-bottom: 3px solid var(--line); -webkit-backdrop-filter: none; backdrop-filter: none; }
.doc-brand { text-transform: uppercase; font-weight: 700; letter-spacing: .01em; }
.doc-brand small { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .04em; }
.doc-brand__mark { overflow: visible; }
.doc-systems a { border-radius: 0; font-weight: 700; text-transform: uppercase; font-size: 13px; letter-spacing: .02em; }
.doc-systems a[aria-current="page"] { background: var(--ink); color: var(--bg); }
.doc-systems a[aria-current="page"] b { color: inherit; }
.theme-switch { border: 3px solid var(--line); background: var(--surface); padding: 0; gap: 0; }
.theme-switch button { border-radius: 0; text-transform: uppercase; font-weight: 700; font-size: 12px; letter-spacing: .04em; color: var(--ink); }
.theme-switch button[aria-pressed="true"] { background: var(--ink); color: var(--bg); box-shadow: none; }
.doc-side { border-right: 3px solid var(--line); padding-right: 20px; }
.doc-side h2 { color: var(--ink); font-weight: 500; }
.doc-side a { border-radius: 0; text-transform: uppercase; font-weight: 700; font-size: 13px; letter-spacing: .02em; color: var(--ink); }
.doc-side a:hover { background: var(--surface-2); }
.doc-side a[aria-current="true"] { background: var(--ink); color: var(--bg); }
.doc-eyebrow { display: flex; align-items: center; gap: 12px; color: var(--ink); font-weight: 500; }
.doc-eyebrow::before { content: ""; width: 36px; height: 6px; background: currentColor; flex: none; }
.doc-section + .doc-section { border-top-width: 6px; border-top-color: var(--ink); }
.doc-section__head .t-h1 { font-size: clamp(44px, 7vw, 88px); }
.doc-block__head .t-h2 { font-size: clamp(30px, 4vw, 44px); }
.doc-lede { font-weight: 500; }
.doc-stage, .roles, .contrast, .type-rows, .motion-list, .states, .spec, .rules, .list, .table-wrap { box-shadow: var(--elev-2); }
.doc-stage { background: var(--surface); }
.contrast-wrap { padding: 0 8px 8px 0; }

/* ---------- hero ---------- */
.hero { --band: var(--ink); --band-ink: var(--bg); border-bottom: 3px solid var(--line); }
[data-theme="dark"] .hero { --band: var(--surface); --band-ink: var(--ink); }
.hero__band { background: var(--band); color: var(--band-ink); padding: clamp(40px, 7vw, 96px) 0 clamp(40px, 6vw, 72px); overflow: hidden; }
.hero__in { position: relative; display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); column-gap: clamp(24px, 4vw, 64px); align-items: end; }
.hero__kicker { grid-column: 1 / -1; display: flex; align-items: center; gap: 14px; font: 500 13px/1.3 var(--font-mono); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 24px; }
.hero__kicker span { width: 48px; height: 6px; background: currentColor; }
.hero__title { grid-column: 1; font: 700 clamp(84px, 15.5vw, 240px)/.8 var(--font-display); letter-spacing: -.05em; text-transform: uppercase; margin-left: -.04em; }
.hero__title > span { display: block; white-space: nowrap; }
.hero__title b { display: inline-block; width: .16em; height: .16em; margin-left: .04em; background: var(--band-ink); color: transparent; overflow: hidden; vertical-align: .02em; font-size: inherit; line-height: 0; }
.hero__title > span:first-child b { vertical-align: .3em; }
.hero__slogan { grid-column: 1; margin-top: 28px; font: 700 clamp(16px, 1.6vw, 22px)/1.2 var(--font-display); text-transform: uppercase; letter-spacing: .04em; word-spacing: .3em; }
.hero__side { grid-column: 2; grid-row: 2 / span 2; display: grid; gap: 28px; align-content: end; padding-bottom: 6px; }
.hero__lede { font-size: clamp(17px, 1.4vw, 20px); line-height: 1.5; font-weight: 500; }
.hero .btn--primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); box-shadow: 6px 6px 0 0 var(--band-ink); }
.hero .btn--primary:hover { background: var(--accent); box-shadow: 9px 9px 0 0 var(--band-ink); }
.hero .btn--secondary { background: transparent; color: var(--band-ink); border-color: var(--band-ink); box-shadow: 6px 6px 0 0 var(--band-ink); }
.hero .btn--secondary:hover { background: var(--band-ink); color: var(--band); }
.hero__stamp { position: absolute; right: 0; top: -12px; display: grid; justify-items: center; padding: 8px 16px; border: 4px solid var(--band-ink); transform: rotate(-7deg); font: 700 26px/1 var(--font-display); text-transform: uppercase; letter-spacing: .06em; }
.hero__stamp small { font: 500 11px/1.4 var(--font-mono); letter-spacing: .1em; margin-top: 4px; }
.hero__ticker { overflow: hidden; white-space: nowrap; border-top: 3px solid var(--line); background: var(--surface-2); font: 500 13px/44px var(--font-mono); text-transform: uppercase; letter-spacing: .06em; }
.hero__ticker span { display: inline-block; padding-left: 16px; }
.hero__facts { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); margin-top: 40px; border: 3px solid var(--line); box-shadow: var(--elev-2); background: var(--surface); }
.hero__facts div { padding: 14px 16px; display: grid; gap: 6px; border-right: 3px solid var(--line); }
.hero__facts div:last-child { border-right: 0; }
.hero__facts dt { font: 500 12px/1.3 var(--font-mono); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.hero__facts dd { font: 700 34px/1 var(--font-display); text-transform: uppercase; letter-spacing: -.03em; }
.hero__credit { margin: 22px 0 8px; font: 500 12px/1.4 var(--font-mono); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }

/* ---------- buttons ---------- */
.btn { border: 3px solid var(--line); box-shadow: var(--elev-1); text-transform: uppercase; font-weight: 700; letter-spacing: .03em; font-size: 15px; transition: transform var(--dur-micro) var(--ease-standard), box-shadow var(--dur-micro) var(--ease-standard), background-color var(--dur-micro) var(--ease-standard), color var(--dur-micro) var(--ease-standard); }
.btn:hover, .btn.is-hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 0 var(--shadow); }
.btn:active, .btn.is-active { transform: translate(4px, 4px); box-shadow: 0 0 0 0 var(--shadow); }
.btn:focus-visible, .btn.is-focus { outline: 3px solid var(--focus); outline-offset: 4px; }
.btn--primary { background: var(--primary); color: var(--primary-ink); border-color: var(--line); }
.btn--primary:hover, .btn--primary.is-hover { background: var(--primary); }
.btn--secondary { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn--secondary:hover, .btn--secondary.is-hover { background: var(--surface); border-color: var(--line); }
.btn--ghost { border-color: transparent; box-shadow: none; }
.btn--ghost:hover, .btn--ghost.is-hover { background: transparent; box-shadow: none; transform: none; text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 4px; }
.btn--ghost:active, .btn--ghost.is-active { transform: none; }
.btn--danger { background: var(--danger); color: var(--danger-ink); border-color: var(--line); }
.btn--danger:hover, .btn--danger.is-hover { background: var(--danger); }
.btn:disabled, .btn.is-disabled, .btn[aria-disabled="true"] { background: repeating-linear-gradient(-45deg, var(--surface) 0 6px, var(--surface-2) 6px 12px); color: var(--muted); border-color: var(--muted); box-shadow: none; transform: none; text-decoration: none; }
.btn--icon { width: var(--control-h); }
.btn--sm { font-size: 13px; }
.spin { border-radius: 0; border-width: 3px; animation-timing-function: steps(8); }

/* ---------- fields ---------- */
.field__label { font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: .06em; }
.input, .select, .textarea { border: 3px solid var(--line); background: var(--surface); font-weight: 500; }
.input:hover, .select:hover, .textarea:hover, .input.is-hover, .select.is-hover { border-color: var(--line); box-shadow: 4px 4px 0 0 var(--shadow); }
.input:focus, .select:focus, .textarea:focus, .input.is-focus, .select.is-focus { border-color: var(--line); box-shadow: 5px 5px 0 0 var(--focus); }
.input[aria-invalid="true"], .select[aria-invalid="true"], .input.is-error, .select.is-error { border-color: var(--danger); box-shadow: 5px 5px 0 0 var(--danger); }
.input[aria-invalid="true"]:focus, .select[aria-invalid="true"]:focus { box-shadow: 5px 5px 0 0 var(--danger); border-color: var(--danger); }
.input:disabled, .select:disabled, .input.is-disabled { background: repeating-linear-gradient(-45deg, var(--surface) 0 6px, var(--surface-2) 6px 12px); border-color: var(--muted); box-shadow: none; }
.field__msg { font-weight: 500; }
.field__msg.is-error { font-weight: 700; }
.prefix > span { border: 3px solid var(--line); border-right: 0; font-family: var(--font-mono); font-size: 13px; background: var(--surface-2); color: var(--ink); }
.select-wrap > .ic { color: var(--ink); stroke-width: 3; }

.seg { padding: 0; gap: 0; border: 3px solid var(--line); background: var(--surface); box-shadow: var(--elev-1); }
.seg label + label > span { border-left: 3px solid var(--line); }
.seg label > span { border-radius: 0; min-height: 44px; font-weight: 700; text-transform: uppercase; color: var(--ink); }
.seg input:checked + span { background: var(--primary); color: var(--primary-ink); box-shadow: none; }
.seg .count { font: 500 12px/1 var(--font-mono); margin-left: 4px; }

.choice { font-weight: 500; min-height: 48px; }
.cbox, .radio { width: 22px; height: 22px; border: 3px solid var(--line); background: var(--surface); }
.cbox::before { border-color: var(--primary-ink); border-width: 0 0 3px 3px; width: 11px; height: 6px; }
.cbox:checked, .cbox:indeterminate, .cbox.is-checked, .cbox.is-mixed, .radio:checked, .radio.is-checked { background: var(--primary); border-color: var(--line); }
.cbox:indeterminate::before, .cbox.is-mixed::before { border-width: 0 0 3px 0; }
.radio { border-radius: 0; transform: rotate(45deg) scale(.86); }
.radio::before { border-radius: 0; background: var(--primary-ink); }
.cbox:hover, .radio:hover, .cbox.is-hover, .radio.is-hover { border-color: var(--line); box-shadow: 3px 3px 0 0 var(--shadow); }
.cbox.is-error, .cbox[aria-invalid="true"] { border-color: var(--danger); box-shadow: 3px 3px 0 0 var(--danger); }
.cbox:focus-visible, .radio:focus-visible, .switch:focus-visible, .cbox.is-focus, .radio.is-focus, .switch.is-focus { outline: 3px solid var(--focus); outline-offset: 3px; }
.switch { width: 54px; height: 30px; border: 3px solid var(--line); background: var(--surface); }
.switch::before { top: 3px; left: 3px; width: 18px; height: 18px; background: var(--ink); }
.switch:checked, .switch.is-checked { background: var(--primary); border-color: var(--line); }
.switch:checked::before, .switch.is-checked::before { transform: translateX(24px); background: var(--primary-ink); }

/* ---------- cards, stamps, pills ---------- */
.card { border: 3px solid var(--line); box-shadow: var(--elev-2); }
a.card { transition: transform var(--dur-micro) var(--ease-standard), box-shadow var(--dur-micro) var(--ease-standard); }
a.card:hover { transform: translate(-3px, -3px); box-shadow: 11px 11px 0 0 var(--shadow); border-color: var(--line); }
a.card:active { transform: translate(8px, 8px); box-shadow: 0 0 0 0 var(--shadow); }
.bru-cards { align-items: stretch; }
.card--poster, a.card.card--poster { background: var(--accent); color: var(--accent-ink); min-height: 300px; align-content: space-between; }
.poster__t { font: 700 clamp(56px, 6vw, 84px)/.84 var(--font-display); text-transform: uppercase; letter-spacing: -.045em; }
.card__text { font-weight: 600; }
.card__go { display: inline-flex; align-items: center; gap: 8px; justify-self: start; padding: 10px 14px; background: var(--accent-ink); color: var(--accent); font-weight: 700; text-transform: uppercase; font-size: 14px; letter-spacing: .03em; }
.card--ticket { background: var(--surface); gap: 0; padding: 0; }
.ticket__head, .ticket__foot { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; }
.ticket__head { border-bottom: 3px dashed var(--line); }
.ticket__head b { font: 700 22px/1 var(--font-display); }
.ticket__rows { padding: 8px 18px; display: grid; }
.ticket__rows div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 2px solid var(--surface-2); font-size: 14px; }
.ticket__rows dt { font: 500 12px/1.6 var(--font-mono); text-transform: uppercase; color: var(--muted); }
.ticket__rows dd { font-weight: 700; text-align: right; }
.ticket__foot { border-top: 3px dashed var(--line); margin-top: auto; }
.ticket__foot b { font: 700 22px/1 var(--font-display); }
.card--stat .stat { font: 700 clamp(56px, 6vw, 80px)/.9 var(--font-display); letter-spacing: -.05em; text-transform: uppercase; margin: 12px 0; }
.meter { height: 24px; border: 3px solid var(--line); background: var(--surface); }
.meter span { display: block; height: 100%; width: var(--p); background: repeating-linear-gradient(-45deg, var(--ink) 0 4px, transparent 4px 9px); border-right: 3px solid var(--line); }
.stamp { display: inline-flex; align-items: center; height: 34px; padding: 0 12px; border: 3px solid currentColor; color: var(--ink); font: 700 13px/1 var(--font-mono); text-transform: uppercase; letter-spacing: .1em; transform: rotate(-4deg); background: var(--surface); }
.stamp--ok { color: var(--ok); }
.stamp--danger { color: var(--danger); transform: rotate(3deg); }
.stamp--info { color: var(--info); transform: rotate(-2deg); }
.stamp--big { height: 56px; font-size: 22px; padding: 0 20px; border-width: 5px; }
.pill { display: inline-flex; align-items: center; height: 26px; padding: 0 8px; border: 2px solid var(--line); font: 700 12px/1 var(--font-mono); text-transform: uppercase; letter-spacing: .06em; background: var(--surface); color: var(--ink); }
.pill--ok { background: var(--ok); color: var(--danger-ink); }
.pill--warn { background: var(--warn); color: var(--accent-ink); }
.pill--danger { background: var(--danger); color: var(--danger-ink); }
.pill--ink { background: var(--ink); color: var(--bg); }
.avatar { border-radius: 0; border: 2px solid var(--line); font-family: var(--font-mono); }
.avatars .avatar + .avatar { margin-left: -6px; }
.badge { border-radius: 0; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .04em; }
.cr__badge { border-radius: 0; }

/* ---------- tabs ---------- */
.tabs__list { border-bottom: 3px solid var(--line); gap: 0; }
.tab { text-transform: uppercase; font-weight: 700; color: var(--ink); border: 3px solid transparent; border-bottom: 0; letter-spacing: .02em; }
.tab:hover, .tab.is-hover { background: var(--surface-2); }
.tab[aria-selected="true"] { background: var(--ink); color: var(--bg); }
.tab[aria-selected="true"] .count { color: var(--bg); }
.tabs__ink { display: none; }
.tabs--static .tab[aria-selected="true"]::after { display: none; }

/* ---------- toast ---------- */
.toast { border: 3px solid var(--line); border-top-width: 10px; box-shadow: var(--elev-2); background: var(--surface); }
.toast--ok { border-top-color: var(--ok); }
.toast--warn { border-top-color: var(--warn); }
.toast--danger { border-top-color: var(--danger); }
.toast--info { border-top-color: var(--info); }
.toast__icon { border-radius: 0; border: 2px solid var(--line); background: var(--surface); color: var(--ink); }
.toast--ok .toast__icon, .toast--warn .toast__icon, .toast--danger .toast__icon { background: var(--surface); color: var(--ink); }
.toast__title { text-transform: uppercase; font-weight: 700; letter-spacing: .02em; }
.toast__action { color: var(--ink); text-transform: uppercase; font-weight: 700; text-decoration: underline; text-decoration-thickness: 3px; text-decoration-color: var(--accent); text-underline-offset: 4px; border-radius: 0; }
.toast__close { border-radius: 0; }
.toast__timer { height: 4px; background: var(--ink); opacity: 1; }
@keyframes toast-in { 0% { opacity: 0; transform: translateY(24px); } 70% { opacity: 1; transform: translateY(-4px); } 100% { transform: none; } }

/* ---------- modal & sheet ---------- */
.modal, .sheet { border: 3px solid var(--line); background: var(--surface); }
.modal { box-shadow: var(--elev-3); }
.modal__band { display: flex; justify-content: space-between; align-items: center; padding: 0 0 0 16px; min-height: 44px; background: var(--ink); color: var(--bg); font: 500 12px/1 var(--font-mono); text-transform: uppercase; letter-spacing: .08em; }
.modal__band > span:first-child { display: inline-flex; gap: 8px; align-items: center; }
.modal__band > span:last-child { padding-right: 16px; }
.modal__esc { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 16px; border: 0; background: transparent; color: inherit; font: inherit; text-transform: uppercase; letter-spacing: .08em; }
.modal__esc:hover { background: var(--accent); color: var(--accent-ink); }
.modal__head { padding: 22px 24px 0; }
.modal__head .t-h2 { font-size: 48px; }
.modal__foot { background: var(--surface-2); border-top: 3px solid var(--line); margin-top: 12px; }
.modal-preview { background: repeating-linear-gradient(-45deg, var(--surface-2) 0 10px, var(--bg) 10px 20px); border: 3px solid var(--line); }
.modal-preview .modal { box-shadow: var(--elev-3); }
.sheet { border-width: 0 0 0 3px; box-shadow: -14px 0 0 0 var(--shadow); }
.sheet__head { border-bottom: 3px solid var(--line); background: var(--surface-2); }
.sheet__foot { border-top: 3px solid var(--line); }
@keyframes modal-in { 0% { opacity: 0; transform: translate(14px, 14px); } 70% { opacity: 1; transform: translate(-3px, -3px); } 100% { transform: none; } }

/* ---------- empty, skeleton, lists ---------- */
.empty { border: 3px dashed var(--line); background: var(--surface); }
.empty__glyph { border-radius: 0; background: var(--ink); color: var(--bg); }
.empty .t-h2 { font-size: 40px; }
.skel { border-radius: 0; background: repeating-linear-gradient(-45deg, var(--surface-2) 0 6px, var(--bg) 6px 12px); }
.list__item b { text-transform: uppercase; letter-spacing: .01em; }

/* ---------- foundations tweaks ---------- */
.chip { border-radius: 0; box-shadow: inset 0 0 0 2px var(--line); }
.chip::after { border-radius: 0; inset: 2px; }
.cr__sample { border-radius: 0; outline: 2px solid var(--line); }
.space-bar { background: var(--ink); border-radius: 0; height: 20px; opacity: 1; }
.radius-tile__shape { border: 3px solid var(--line); background: var(--surface-2); }
.radius-tile:not(:first-child) { display: none; }
.radius-tile:first-child { grid-column: 1 / -1; }
.radius-tile:first-child .radius-tile__shape { height: 140px; display: grid; place-items: center; }
.elev-grid { background: var(--bg); border: 3px solid var(--line); }
.elev-tile__shape { border: 3px solid var(--line); border-radius: 0; }
.motion-track { border-radius: 0; border: 3px solid var(--line); background: var(--surface); height: 48px; }
.motion-dot { border-radius: 0; background: var(--accent); outline: 3px solid var(--line); top: 7px; left: 7px; width: 28px; height: 28px; }
.curve path.c { stroke-width: 3; }
.lab__out { border: 3px solid var(--line); box-shadow: var(--elev-2); }
.lab__ratio { text-transform: uppercase; font-weight: 700; }
.type-row__meta b { font-family: var(--font-mono); text-transform: uppercase; }

/* ---------- screens ---------- */
.screen { border: 3px solid var(--line); box-shadow: var(--elev-2); background: var(--bg); }
.app-nav { display: flex; align-items: center; gap: 16px; padding: 0 16px; min-height: 56px; background: var(--ink); color: var(--bg); }
.app-nav__logo { font: 700 18px/1 var(--font-display); text-transform: uppercase; letter-spacing: -.01em; }
.app-nav nav { display: flex; gap: 4px; margin-left: 12px; }
.app-nav nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; color: inherit; text-decoration: none; font-weight: 700; text-transform: uppercase; font-size: 13px; letter-spacing: .04em; border-bottom: 4px solid transparent; }
.app-nav nav a[aria-current="page"] { border-bottom-color: var(--accent); }
.app-nav nav a:hover { border-bottom-color: currentColor; }
.app-nav__meta { margin-left: auto; font: 500 12px/1 var(--font-mono); text-transform: uppercase; letter-spacing: .08em; }
.app-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.app-head p { font-family: var(--font-mono); text-transform: uppercase; font-size: 12px; color: var(--muted); }
.screen .seg { margin-bottom: 20px; }
.table { font-size: 15px; }
.table th { background: var(--surface-2); color: var(--ink); border-bottom: 3px solid var(--line); }
.table td { border-top: 3px solid var(--line); font-weight: 500; }
.table tbody tr:nth-child(even) td { background: color-mix(in srgb, var(--surface-2) 55%, var(--surface)); }
.table td b { text-transform: uppercase; }
.table-wrap { border: 3px solid var(--line); }
#projects-empty { margin-top: 20px; }

.order { display: block; }
.order__form { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(280px, 1fr); gap: 28px; align-items: start; }
.order__main { display: grid; gap: 20px; }
.order__main .t-h1 { font-size: clamp(56px, 8vw, 104px); line-height: .82; }
.formats { border: 0; margin: 0; padding: 0; display: grid; gap: 12px; }
.formats legend { margin-bottom: 8px; }
.format { position: relative; display: block; cursor: pointer; }
.format input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.format > span { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 16px; align-items: center; padding: 14px 16px; border: 3px solid var(--line); background: var(--surface); box-shadow: var(--elev-1); transition: transform var(--dur-micro) var(--ease-standard), box-shadow var(--dur-micro) var(--ease-standard), background-color var(--dur-micro); }
.format b { font: 700 20px/1.1 var(--font-display); text-transform: uppercase; }
.format small { grid-column: 1; font-size: 14px; color: var(--muted); }
.format em { grid-column: 2; grid-row: 1 / span 2; font: 700 22px/1 var(--font-display); font-style: normal; }
.format:hover > span { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 0 var(--shadow); }
.format input:checked + span { background: var(--accent); color: var(--accent-ink); }
.format input:checked + span small { color: var(--accent-ink); }
.format input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 4px; }
.order__row { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 20px; align-items: start; }
.stepper { display: flex; align-items: stretch; }
.stepper .btn { box-shadow: none; }
.stepper .btn:hover { transform: none; background: var(--surface-2); }
.stepper .input { width: 64px; text-align: center; border-left: 0; border-right: 0; font: 700 20px/1 var(--font-display); padding: 0; }
.order__sum { display: grid; gap: 14px; padding: 20px; border: 3px solid var(--line); background: var(--surface); box-shadow: var(--elev-2); position: sticky; top: 90px; }
.order__sum dl { display: grid; }
.order__sum dl div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 2px solid var(--surface-2); font-size: 15px; }
.order__sum dt { color: var(--ink-2); }
.order__sum dd { font-weight: 700; }
.order__total { border-bottom: 0 !important; padding-top: 14px !important; }
.order__total dt { font: 700 16px/1.2 var(--font-display); text-transform: uppercase; color: var(--ink); align-self: end; }
.order__total dd { font: 700 34px/1 var(--font-display); }
.order__sum .t-small { color: var(--muted); }
.order__done { display: grid; gap: 16px; justify-items: start; padding: 24px 0; }
.order__done .stamp { margin-bottom: 8px; }

@media (max-width: 1080px) {
  .hero__in { grid-template-columns: 1fr; }
  .hero__side { grid-column: 1; grid-row: auto; margin-top: 32px; }
  .hero__stamp { top: auto; bottom: 0; }
  .hero__facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero__facts div:nth-child(3) { border-right: 0; }
  .hero__facts div:nth-child(-n+3) { border-bottom: 3px solid var(--line); }
  .order__form { grid-template-columns: 1fr; }
  .order__sum { position: static; }
}
@media (max-width: 759px) {
  .hero__title { font-size: clamp(64px, 21vw, 120px); }
  .hero__stamp { display: none; }
  .hero__facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero__facts div { border-right: 3px solid var(--line) !important; border-bottom: 3px solid var(--line); }
  .hero__facts div:nth-child(even) { border-right: 0 !important; }
  .hero__facts div:nth-last-child(-n+2) { border-bottom: 0; }
  .doc-side { border: 0; }
  .app-nav nav { display: none; }
  .table { min-width: 680px; }
  .order__row { grid-template-columns: 1fr; }
  .doc-stage, .roles, .contrast, .type-rows, .motion-list, .states, .spec, .rules, .list, .table-wrap, .card, .screen { box-shadow: 4px 4px 0 0 var(--shadow); }
  .tabbar { border-top: 3px solid var(--line); background: var(--bg); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .tabbar a { border-radius: 0; text-transform: uppercase; font-family: var(--font-mono); font-weight: 500; }
  .tabbar a[aria-current="true"] { background: var(--ink); color: var(--bg); }
}
.states { grid-template-columns: repeat(auto-fill, minmax(176px, 1fr)); }
.states--wide { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
