:root {
  --navy: #0b2e63;
  --navy-deep: #061b3d;
  --acid: #d8ff38;
  --paper: #f4f2e9;
  --ink: #0a234d;
  --line: rgba(244, 242, 233, .24);
  --muted: #a7b7cf;
  --red: #ff684f;
  --cyan: #7bdce5;
  --lilac: #c9b9ef;
  --yellow: #f4d365;
  --font-display: "Bahnschrift Condensed", "Arial Narrow", sans-serif;
  --font-body: "Trebuchet MS", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { width: 100%; min-height: 100%; margin: 0; overflow-x: hidden; }
body { background: var(--navy); color: var(--paper); font-family: var(--font-body); -webkit-font-smoothing: antialiased; }
button, input, textarea { font: inherit; }
button { color: inherit; }
button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 2px solid var(--acid); outline-offset: 3px; }

.scene { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; overflow: hidden; pointer-events: none; }
.scene canvas { display: block; width: 100%; height: 100%; }
.grain { position: fixed; inset: 0; z-index: 20; pointer-events: none; opacity: .08; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E"); mix-blend-mode: soft-light; }

.loader { position: fixed; inset: 0; z-index: 100; display: grid; place-content: center; justify-items: center; background: var(--navy); transition: opacity .65s ease, visibility .65s; }
.loader.is-hidden { opacity: 0; visibility: hidden; }
.loader__mark { display: flex; align-items: center; gap: 8px; font-family: var(--font-display); font-size: clamp(34px, 5vw, 68px); font-weight: 900; letter-spacing: -.08em; }
.loader__mark i { color: var(--acid); font-style: normal; font-weight: 300; }
.loader__line { width: 190px; height: 2px; margin: 26px 0 14px; overflow: hidden; background: rgba(255,255,255,.15); }
.loader__line i { display: block; width: 100%; height: 100%; background: var(--acid); transform: translateX(-100%); animation: loadline 1.4s cubic-bezier(.77,0,.18,1) forwards; }
.loader p { margin: 0; color: var(--muted); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; }
@keyframes loadline { to { transform: translateX(0); } }

.header { position: fixed; z-index: 30; top: 0; left: 0; width: 100%; height: 96px; display: flex; align-items: center; padding: 0 3vw; border-bottom: 1px solid var(--line); transition: color .45s, border-color .45s; }
.brand { width: 260px; display: flex; align-items: center; gap: 15px; padding: 0; border: 0; background: none; text-align: left; cursor: pointer; }
.brand__sign { font-family: var(--font-display); font-size: 27px; font-weight: 900; letter-spacing: -.1em; }
.brand__name { font-size: 9px; line-height: 1.15; letter-spacing: .14em; text-transform: uppercase; opacity: .8; }
.nav { display: flex; gap: 34px; margin: auto; }
.nav__item { position: relative; padding: 12px 0; border: 0; background: none; font-size: 12px; letter-spacing: .04em; cursor: pointer; opacity: .48; transition: opacity .25s; }
.nav__item span { margin-right: 7px; font-size: 9px; }
.nav__item::after { content: ""; position: absolute; left: 0; bottom: 4px; width: 100%; height: 2px; background: var(--acid); transform: scaleX(0); transform-origin: left; transition: transform .3s; }
.nav__item:hover, .nav__item.is-active { opacity: 1; }
.nav__item.is-active::after { transform: scaleX(1); }
.header__cta { position: relative; width: 260px; display: grid; place-items: center; padding: 16px 44px; border: 1px solid currentColor; background: transparent; text-align: center; text-transform: uppercase; font-size: 11px; letter-spacing: .1em; cursor: pointer; transition: background .25s, color .25s; }
.header__cta b { position: absolute; right: 18px; color: var(--acid); font-size: 16px; }
.header__cta:hover { background: var(--acid); color: var(--ink); }
.menu-button { display: none; border: 0; background: none; padding: 12px; }
.menu-button span { display: block; width: 24px; height: 1px; margin: 6px; background: currentColor; }

.viewport { position: relative; z-index: 2; overflow: visible; }
.track { width: 100%; }
.screen { position: relative; width: 100%; height: 100vh; min-height: 600px; padding: 122px 4.5vw 38px; overflow: hidden; }
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s .25s, transform .7s .25s; }
.is-current .reveal { opacity: 1; transform: none; }

.hero { background: transparent; }
.hero__eyebrow { width: min(420px, 40vw); margin-left: 48%; padding-left: 19px; border-left: 2px solid var(--acid); color: var(--muted); font-size: 12px; line-height: 1.45; text-transform: uppercase; letter-spacing: .12em; }
.hero__title { margin: 3vh auto 0; font-family: var(--font-display); font-size: clamp(82px, 12.4vw, 196px); line-height: .78; letter-spacing: -.055em; font-weight: 900; text-align: center; }
.hero__title span { display: block; }
.hero__title span:last-child { margin-left: 0; font-size: .9em; letter-spacing: -.025em; }
.hero__outline { color: transparent; -webkit-text-stroke: 1px rgba(244,242,233,.88); }
.hero__bottom { display: grid; grid-template-columns: minmax(260px, 390px) 1fr; gap: 6vw; margin: 4vh auto 0; width: min(1120px, 76vw); transition-delay: .4s; }
.hero__bottom > p { margin: 0; font-size: clamp(14px, 1.2vw, 19px); line-height: 1.55; }
.hero__benefits { align-self: start; padding-left: 20px; border-left: 2px solid var(--acid); }
.hero__benefits > strong { display: block; margin-bottom: 12px; color: var(--acid); font-family: var(--font-display); font-size: 22px; line-height: 1; text-transform: uppercase; letter-spacing: .02em; }
.hero__benefits div { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.hero__benefits span { color: var(--muted); font-size: 10px; line-height: 1.45; }
.scroll-cue { position: absolute; left: 4.5vw; bottom: 66px; display: flex; align-items: center; gap: 14px; border: 0; background: none; padding: 0; font-size: 10px; text-transform: uppercase; letter-spacing: .15em; cursor: pointer; }
.scroll-cue i { width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 50%; position: relative; }
.scroll-cue i::before { content: "↓"; position: absolute; inset: 0; display: grid; place-items: center; color: var(--acid); font-style: normal; }
.hero__ticker { position: absolute; left: 0; bottom: 0; display: flex; width: max-content; color: var(--navy-deep); background: var(--acid); font-family: var(--font-display); font-size: 17px; line-height: 31px; letter-spacing: .1em; white-space: nowrap; transform: rotate(-1.1deg) translateY(12px); transform-origin: left; }
.hero__ticker div { animation: ticker 22s linear infinite; }
@keyframes ticker { to { transform: translateX(-100%); } }

.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 4vw; margin-bottom: 3.4vh; }
.section-head h2 { margin: 8px 0 0; font-family: var(--font-display); font-size: clamp(46px, 5.4vw, 85px); line-height: .88; letter-spacing: -.055em; text-transform: uppercase; }
.section-head > p { width: 430px; margin: 0 3vw 6px 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.section-no { color: var(--acid); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; }
.case-grid { height: 48vh; display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(2, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.case-card { position: relative; overflow: hidden; padding: 22px; border: 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(4,22,50,.2); text-align: left; cursor: pointer; transition: color .35s, background .35s; }
.case-card::before { content: ""; position: absolute; inset: 0; background: var(--acid); transform: translateY(102%); transition: transform .45s cubic-bezier(.77,0,.18,1); }
.case-card:hover { color: var(--ink); }
.case-card:hover::before { transform: none; }
.case-card > * { position: relative; z-index: 1; }
.case-card__no { display: block; margin-bottom: 3.5vh; font-family: var(--font-display); font-size: 11px; opacity: .65; }
.case-card h3 { max-width: 90%; margin: 0; font-family: var(--font-display); font-size: clamp(19px, 1.8vw, 29px); line-height: .95; text-transform: uppercase; letter-spacing: -.025em; }
.case-card__arrow { position: absolute; right: 19px; bottom: 17px; font-size: 23px; }

.section-head--compact { margin-bottom: 2.2vh; }
.section-head--compact h2 { font-size: clamp(40px, 4.6vw, 72px); }
.workbench { display: grid; grid-template-columns: .9fr 1.55fr .45fr; gap: 2vw; align-items: stretch; height: 57vh; min-height: 390px; }
.data-pool { display: flex; flex-direction: column; justify-content: center; gap: 9px; padding-right: 1vw; }
.data-card { position: relative; min-height: 48px; display: flex; align-items: center; padding: 10px 14px 10px 38px; border: 1px solid rgba(255,255,255,.32); background: rgba(11,46,99,.82); font-size: 12px; line-height: 1.25; cursor: grab; user-select: none; transition: transform .22s, opacity .22s, border-color .22s; }
.data-card::before { content: ""; position: absolute; left: 14px; width: 10px; height: 10px; background: var(--card-color); }
.data-card:hover, .data-card.is-selected { transform: translateX(9px); border-color: var(--acid); }
.data-card.is-selected { box-shadow: inset 3px 0 var(--acid); }
.data-card.is-placed { opacity: .2; pointer-events: none; transform: scale(.95); }
.data-card.is-wrong { animation: wrong .35s; border-color: var(--red); }
@keyframes wrong { 25% { transform: translateX(-8px); } 75% { transform: translateX(8px); } }
.declaration { position: relative; overflow: hidden; padding: 22px; background: var(--paper); color: var(--ink); border-radius: 1px; }
.declaration::before { content: ""; position: absolute; inset: 10px; border: 1px solid rgba(10,35,77,.18); pointer-events: none; }
.declaration__top { display: flex; justify-content: space-between; padding-bottom: 16px; border-bottom: 1px solid rgba(10,35,77,.28); font-family: var(--font-display); font-size: 15px; font-weight: 700; text-transform: uppercase; }
.declaration__fields { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 14px; }
.drop-field { min-height: 62px; padding: 9px 11px; border: 1px solid var(--field-color); border-left-width: 5px; background: color-mix(in srgb, var(--field-color) 20%, white); cursor: pointer; transition: background .2s, border-color .2s, transform .2s; }
.drop-field:nth-child(3) { grid-column: 1 / -1; }
.drop-field span { display: block; margin-bottom: 8px; color: rgba(10,35,77,.58); font-size: 9px; text-transform: uppercase; letter-spacing: .1em; }
.drop-field strong { display: block; font-size: 12px; font-weight: 400; }
.drop-field.is-over { background: color-mix(in srgb, var(--field-color) 38%, white); border-color: var(--ink); transform: translateY(-2px); }
.drop-field.is-filled { background: color-mix(in srgb, var(--field-color) 10%, white); }
.declaration__stamp { position: absolute; right: -13px; bottom: -16px; color: rgba(10,35,77,.06); font-family: var(--font-display); font-size: 68px; line-height: .64; font-weight: 900; transform: rotate(-8deg); }
.game-status { display: flex; flex-direction: column; justify-content: flex-end; padding-bottom: 20px; }
.game-status strong { color: var(--acid); font-family: var(--font-display); font-size: clamp(44px, 5vw, 80px); line-height: 1; }
.game-status > span { color: var(--muted); font-size: 10px; line-height: 1.4; text-transform: uppercase; letter-spacing: .1em; }
.game-status button { margin-top: 22px; padding: 0; border: 0; border-bottom: 1px solid currentColor; background: none; align-self: flex-start; color: var(--muted); font-size: 10px; text-transform: uppercase; cursor: pointer; }
.document-link { display: none; margin-top: 18px; padding: 13px 15px; border: 1px solid var(--acid); color: var(--acid); font-size: 10px; line-height: 1.35; text-decoration: none; text-transform: uppercase; letter-spacing: .08em; }
.workbench.is-complete .document-link { display: block; animation: linkin .45s both; }
.workbench.is-complete .declaration { animation: complete .65s both; }
.workbench.is-complete .game-status strong { color: var(--paper); }
@keyframes complete { 50% { transform: scale(1.015) rotate(-.3deg); box-shadow: 0 0 0 7px var(--acid); } }
@keyframes linkin { from { opacity: 0; transform: translateY(8px); } }

.contact { background: var(--paper); color: var(--ink); }
.contact .section-no { color: var(--ink); opacity: .55; }
.contact__lead { display: grid; grid-template-columns: 22% 1fr; margin-top: 3vh; }
.contact__lead > p { margin: 8px 0 0; font-size: 13px; line-height: 1.45; }
.contact h2 { margin: 0; font-family: var(--font-display); font-size: clamp(75px, 10.5vw, 165px); line-height: .7; letter-spacing: -.07em; }
.contact h2 span { color: var(--navy); -webkit-text-stroke: 1px var(--navy); }
.contact-form { width: 76%; margin: 6vh 0 0 auto; display: grid; grid-template-columns: 1fr 1fr 1.35fr .9fr; align-items: end; gap: 16px; }
.contact-form label span { display: block; margin-bottom: 9px; font-size: 9px; letter-spacing: .12em; text-transform: uppercase; }
.contact-form input, .contact-form textarea { width: 100%; padding: 9px 0; border: 0; border-bottom: 1px solid rgba(10,35,77,.38); border-radius: 0; background: transparent; color: var(--ink); resize: none; }
.contact-form input::placeholder, .contact-form textarea::placeholder { color: rgba(10,35,77,.38); }
.contact-form__trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.submit { height: 58px; border: 0; background: var(--navy); color: var(--paper); text-transform: uppercase; font-size: 10px; letter-spacing: .1em; cursor: pointer; }
.submit b { margin-left: 13px; color: var(--acid); }
.submit:disabled { cursor: wait; }
.contact-form.is-sending label, .contact-form.is-sending .submit { opacity: .35; transform: translateY(8px); transition: opacity .35s, transform .35s; }
.contact-form.is-sent { animation: form-return .65s ease both; }
.form-note.is-error { color: #a32c24; }
.form-note { grid-column: 1 / -1; margin: 0; color: rgba(10,35,77,.5); font-size: 9px; letter-spacing: .06em; }
.form-note.is-success { color: #197044; }
@keyframes form-return { 0% { opacity: .45; transform: translateY(8px); } 100% { opacity: 1; transform: none; } }
.footer { position: absolute; left: 4.5vw; right: 4.5vw; bottom: 24px; display: flex; justify-content: space-between; padding-top: 14px; border-top: 1px solid rgba(10,35,77,.25); font-size: 10px; text-transform: uppercase; letter-spacing: .1em; }
body[data-screen="3"] .header { color: var(--ink); border-color: rgba(10,35,77,.2); }
body[data-screen="3"] .header__cta b { color: var(--ink); }
body[data-screen="3"] .nav__item::after { background: var(--ink); }

.progress { position: fixed; z-index: 31; right: 3vw; top: 50%; width: 2px; height: 112px; background: var(--line); transform: translateY(-50%); }
.progress i { display: block; width: 100%; height: 25%; background: var(--acid); transition: transform .8s cubic-bezier(.76,0,.16,1), background .4s; transform-origin: top; }
.screen-counter { position: fixed; z-index: 31; right: 2.35vw; bottom: 34px; display: flex; align-items: center; gap: 7px; font-family: var(--font-display); font-size: 10px; }
.screen-counter i { width: 24px; height: 1px; background: currentColor; opacity: .5; }
body[data-screen="3"] .progress { background: rgba(10,35,77,.2); }
body[data-screen="3"] .progress i { background: var(--ink); }
body[data-screen="3"] .screen-counter { color: var(--ink); }

.mail-flight { position: fixed; inset: 0; z-index: 65; overflow: hidden; pointer-events: none; visibility: hidden; }
.mail-flight[aria-hidden="false"] { visibility: visible; }
.mail-flight__letter, .mail-flight__envelope { position: absolute; left: 71vw; top: 69vh; }
.mail-flight__letter { width: min(330px, 42vw); min-height: 168px; padding: 22px 24px; border: 1px solid rgba(10,35,77,.28); background: var(--paper); color: var(--ink); box-shadow: 0 24px 70px rgba(6,27,61,.26); opacity: 0; transform: translate(-50%, -35%) scale(.72); transform-origin: center bottom; }
.mail-flight__letter::before { content: ""; position: absolute; top: 0; left: 0; width: 5px; height: 100%; background: var(--acid); }
.mail-flight__letter > span { display: block; margin-bottom: 22px; color: rgba(10,35,77,.52); font-size: 9px; letter-spacing: .14em; text-transform: uppercase; }
.mail-flight__letter strong { display: block; font-family: var(--font-display); font-size: 25px; line-height: 1; text-transform: uppercase; }
.mail-flight__letter small { display: block; margin-top: 7px; color: rgba(10,35,77,.55); font-size: 10px; }
.mail-flight__letter p { max-height: 54px; overflow: hidden; margin: 19px 0 0; font-size: 12px; line-height: 1.45; }
.mail-flight.is-assembling .mail-flight__letter { opacity: 1; transform: translate(-50%, -50%) scale(1); transition: opacity .36s, transform .58s cubic-bezier(.16,1,.3,1); }
.mail-flight.is-folding .mail-flight__letter { opacity: 0; transform: translate(-50%, -22%) scale(.66, .08); transition: opacity .25s .15s, transform .42s cubic-bezier(.76,0,.24,1); }
.mail-flight__envelope { width: 178px; height: 108px; border: 1px solid var(--acid); background: var(--navy); opacity: 0; transform: translate(-50%, -35%) scale(.64); box-shadow: 0 16px 52px rgba(6,27,61,.35); }
.mail-flight__envelope::before, .mail-flight__envelope::after { content: ""; position: absolute; }
.mail-flight__envelope::before { background: linear-gradient(146deg, transparent 49.2%, rgba(216,255,56,.9) 50%, transparent 50.8%), linear-gradient(214deg, transparent 49.2%, rgba(216,255,56,.9) 50%, transparent 50.8%); }
.mail-flight__envelope::before { inset: 0; }
.mail-flight__envelope::after { left: 0; bottom: 0; width: 0; height: 0; border-bottom: 54px solid rgba(4,22,50,.88); border-left: 88px solid transparent; border-right: 88px solid transparent; }
.mail-flight__flap { position: absolute; z-index: 2; top: -1px; left: -1px; width: 178px; height: 68px; background: var(--acid); clip-path: polygon(0 0, 100% 0, 50% 100%); transform: rotateX(180deg); transform-origin: top; backface-visibility: hidden; }
.mail-flight__spark { position: absolute; z-index: -1; top: 50%; right: 100%; width: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--acid)); opacity: 0; box-shadow: -18px -18px 0 -1px var(--acid), -38px 15px 0 -1px var(--acid), -64px -8px 0 -1px var(--acid); }
.mail-flight.is-folding .mail-flight__envelope { opacity: 1; transform: translate(-50%, -50%) scale(1); transition: opacity .18s .12s, transform .4s .12s cubic-bezier(.16,1,.3,1); }
.mail-flight.is-folding .mail-flight__flap { transform: rotateX(0); transition: transform .35s .18s cubic-bezier(.76,0,.24,1); }
.mail-flight.is-flying .mail-flight__envelope { opacity: 1; animation: mail-away 1.18s cubic-bezier(.58,.02,.82,.38) forwards; }
.mail-flight.is-flying .mail-flight__spark { width: 190px; opacity: 1; transition: width .55s, opacity .2s; }
@keyframes mail-away {
  0% { transform: translate(-50%, -50%) rotate(0) scale(1); }
  30% { transform: translate(-30vw, -12vh) rotate(-9deg) scale(.88); }
  67% { transform: translate(2vw, -38vh) rotate(7deg) scale(.62); }
  100% { transform: translate(33vw, -74vh) rotate(18deg) scale(.2); opacity: 0; }
}

.case-modal { position: fixed; inset: 0; z-index: 70; visibility: hidden; pointer-events: none; }
.case-modal.is-open { visibility: visible; pointer-events: auto; }
.case-modal__backdrop { position: absolute; inset: 0; background: rgba(2,12,29,.74); opacity: 0; transition: opacity .45s; }
.case-modal__panel { position: absolute; top: 0; right: 0; width: min(900px, 78vw); height: 100%; overflow-y: auto; padding: 9vh 5vw; background: var(--paper); color: var(--ink); transform: translateX(102%); transition: transform .6s cubic-bezier(.76,0,.16,1); }
.case-modal.is-open .case-modal__backdrop { opacity: 1; }
.case-modal.is-open .case-modal__panel { transform: none; }
.modal-close { position: absolute; top: 25px; right: 30px; width: 46px; height: 46px; border: 1px solid rgba(10,35,77,.3); border-radius: 50%; background: none; font-size: 26px; cursor: pointer; }
.modal-kicker { color: rgba(10,35,77,.55); font-size: 10px; text-transform: uppercase; letter-spacing: .14em; }
.case-modal h2 { max-width: 700px; margin: 18px 0 22px; font-family: var(--font-display); font-size: clamp(42px, 5.5vw, 82px); line-height: .88; text-transform: uppercase; letter-spacing: -.05em; }
.modal-text { max-width: 690px; font-size: 14px; line-height: 1.65; }
.flow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; margin-top: 6vh; }
.flow-card { position: relative; min-height: 170px; padding: 16px; border: 1px solid rgba(10,35,77,.26); }
.flow-card:not(:last-child)::after { content: "→"; position: absolute; right: -21px; top: 50%; color: rgba(10,35,77,.5); }
.flow-card span { color: rgba(10,35,77,.5); font-size: 9px; text-transform: uppercase; letter-spacing: .1em; }
.flow-card strong { display: block; margin-top: 30px; font-family: var(--font-display); font-size: 20px; text-transform: uppercase; line-height: 1; }
.flow-card p { margin: 14px 0 0; font-size: 11px; line-height: 1.35; }
.flow-icon { width: 38px; height: 38px; display: grid; place-items: center; margin-top: 14px; border: 1px solid rgba(10,35,77,.32); border-radius: 50%; color: var(--ink); font-size: 18px; line-height: 1; }
.modal-details { max-width: 720px; margin-top: 36px; padding-top: 26px; border-top: 1px solid rgba(10,35,77,.2); }
.modal-details p { margin: 0 0 15px; font-size: 13px; line-height: 1.65; }
.modal-details p:first-child { font-weight: 700; }

.modal-action { max-width: 720px; margin-top: 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 26px; }
.modal-action__note { flex: 1 1 300px; margin: 0; color: rgba(10,35,77,.62); font-size: 12px; line-height: 1.5; }
.modal-action__button { display: inline-flex; align-items: center; gap: 14px; padding: 17px 26px; border: 0; background: var(--navy); color: var(--paper); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; cursor: pointer; transition: background .25s, color .25s; }
.modal-action__button b { color: var(--acid); font-size: 15px; }
.modal-action__button:hover { background: var(--acid); color: var(--ink); }
.modal-action__button:hover b { color: var(--ink); }

.tnved { position: fixed; inset: 0; z-index: 80; visibility: hidden; pointer-events: none; }
.tnved.is-open { visibility: visible; pointer-events: auto; }
.tnved__backdrop { position: absolute; inset: 0; background: rgba(2,12,29,.8); opacity: 0; transition: opacity .45s; }
.tnved.is-open .tnved__backdrop { opacity: 1; }
.tnved__panel { position: absolute; top: 0; left: 0; display: flex; flex-direction: column; width: min(720px, 92vw); height: 100%; padding: 40px 38px 24px; background: var(--navy-deep); border-right: 1px solid var(--line); transform: translateX(-102%); transition: transform .6s cubic-bezier(.76,0,.16,1); }
.tnved.is-open .tnved__panel { transform: none; }
.tnved__close { position: absolute; top: 22px; right: 24px; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 50%; background: none; color: var(--paper); font-size: 24px; line-height: 1; cursor: pointer; transition: border-color .25s, color .25s; }
.tnved__close:hover { border-color: var(--acid); color: var(--acid); }
.tnved__kicker { color: var(--acid); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; }
.tnved__panel h2 { margin: 14px 0 20px; font-family: var(--font-display); font-size: clamp(34px, 4.4vw, 58px); line-height: .9; letter-spacing: -.05em; text-transform: uppercase; }
.tnved__modes { display: flex; flex-wrap: wrap; gap: 10px; }
.tnved__mode { padding: 11px 15px; border: 1px solid var(--line); background: none; color: var(--muted); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; transition: color .25s, border-color .25s, background .25s; }
.tnved__mode:hover { border-color: var(--acid); color: var(--paper); }
.tnved__mode.is-active { border-color: var(--acid); background: var(--acid); color: var(--ink); }
.tnved__mode.is-unavailable { opacity: .45; }
.tnved__hint { margin: 14px 0 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.tnved__log { flex: 1; overflow-y: auto; margin: 20px 0 16px; padding-right: 6px; }
.tnved__pane { display: none; flex-direction: column; gap: 13px; }
.tnved__pane.is-current { display: flex; }
.tnved__msg { max-width: 100%; padding: 12px 14px; font-size: 12px; line-height: 1.55; }
.tnved__msg--user { align-self: flex-end; max-width: 88%; border: 1px solid var(--acid); color: var(--acid); }
.tnved__msg--bot { align-self: flex-start; border: 1px solid var(--line); background: rgba(11,46,99,.55); }
.tnved__msg--note { align-self: flex-start; padding: 3px 0 3px 12px; border-left: 2px solid var(--line); color: var(--muted); font-size: 11px; line-height: 1.5; }
.tnved__msg--list { align-self: flex-start; display: flex; flex-direction: column; gap: 11px; padding: 0; }
.tnved__msg--result { align-self: flex-start; padding: 16px; border: 1px solid var(--acid); background: rgba(216,255,56,.07); }
.tnved__text { display: block; }
.tnved__text:empty::before { content: "…"; color: var(--muted); }
.tnved__line, .tnved__bullet, .tnved__heading { display: block; }
.tnved__line { margin-top: 9px; }
.tnved__line:first-child { margin-top: 0; }
.tnved__heading { margin-top: 15px; color: var(--acid); font-family: var(--font-display); font-size: 15px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.tnved__heading:first-child { margin-top: 0; }
.tnved__bullet { position: relative; margin-top: 7px; padding-left: 16px; }
.tnved__bullet::before { content: "—"; position: absolute; left: 0; color: var(--acid); }
.tnved__bullet.is-numbered { padding-left: 0; }
.tnved__bullet.is-numbered::before { content: none; }
.tnved__text b { color: var(--acid); font-weight: 400; }
.tnved__code { display: block; color: var(--acid); font-family: var(--font-display); font-size: 34px; line-height: 1; letter-spacing: .02em; }
.tnved__name { display: block; margin-top: 9px; }
.tnved__meta { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 12px; color: var(--muted); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.tnved__path { margin: 12px 0 0; padding-top: 10px; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; line-height: 1.5; }
.tnved__list-row { padding: 10px 12px; border: 1px solid var(--line); }
.tnved__list-row strong { color: var(--acid); font-family: var(--font-display); font-size: 16px; letter-spacing: .02em; }
.tnved__list-row > span { margin-left: 12px; color: var(--muted); font-size: 10px; text-transform: uppercase; }
.tnved__list-row p { margin: 6px 0 0; color: var(--muted); font-size: 10px; line-height: 1.45; }
.tnved__options { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.tnved__option { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 11px 13px; border: 1px solid var(--line); background: none; color: var(--paper); font-size: 11px; line-height: 1.35; text-align: left; cursor: pointer; transition: border-color .2s, background .2s, transform .2s, opacity .2s; }
.tnved__option b { color: var(--acid); font-family: var(--font-display); font-size: 13px; }
.tnved__option:hover:not(:disabled) { border-color: var(--acid); transform: translateX(5px); }
.tnved__option:disabled { cursor: default; opacity: .4; }
.tnved__option.is-chosen { border-color: var(--acid); background: rgba(216,255,56,.1); opacity: 1; }
.tnved__list-toggle { align-self: flex-start; margin-top: 12px; padding: 0; border: 0; border-bottom: 1px solid currentColor; background: none; color: var(--muted); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; }
.tnved__permission { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; padding-top: 11px; border-top: 1px solid var(--line); }
.tnved__permission > span { flex: 1 1 100%; color: var(--muted); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; }
.tnved__permission button { padding: 8px 12px; border: 1px solid var(--acid); background: none; color: var(--acid); font-size: 10px; text-transform: uppercase; cursor: pointer; }
.tnved__permission button.is-deny { border-color: var(--line); color: var(--muted); }
.tnved__permission button:disabled { opacity: .4; cursor: default; }
.tnved__error { margin-top: 10px; color: var(--red); font-size: 11px; line-height: 1.45; }
.tnved__form { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: end; }
.tnved__field span { display: block; margin-bottom: 8px; color: var(--muted); font-size: 9px; letter-spacing: .12em; text-transform: uppercase; }
.tnved__field textarea { width: 100%; padding: 9px 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; color: var(--paper); font-size: 12px; line-height: 1.45; resize: none; }
.tnved__field textarea::placeholder { color: rgba(167,183,207,.5); }
.tnved__field textarea:focus { border-color: var(--acid); }
.tnved__submit { height: 46px; padding: 0 22px; border: 0; background: var(--acid); color: var(--ink); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; cursor: pointer; }
.tnved__submit b { margin-left: 10px; }
.tnved__submit:disabled { opacity: .4; cursor: wait; }
.tnved__foot { display: flex; align-items: center; gap: 16px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.tnved__status { flex: 1; color: var(--muted); font-size: 10px; line-height: 1.4; letter-spacing: .04em; }
.tnved__session { flex: 0 1 auto; color: var(--muted); font-size: 9px; line-height: 1.4; letter-spacing: .04em; opacity: .75; text-align: right; }
.tnved__reset { padding: 0; border: 0; border-bottom: 1px solid currentColor; background: none; color: var(--muted); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; }
.tnved__ctxreset { padding: 0; border: 0; border-bottom: 1px solid currentColor; background: none; color: var(--muted); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; }
.tnved__ctxreset:disabled { opacity: .5; cursor: default; }
body.is-locked { overflow: hidden; }

@media (max-width: 900px) {
  .header { height: 74px; padding: 0 20px; }
  .brand { width: auto; }
  .brand__name, .header__cta { display: none; }
  .menu-button { display: block; margin-left: auto; cursor: pointer; }
  .nav { position: fixed; top: 74px; left: 0; right: 0; display: none; flex-direction: column; gap: 0; padding: 12px 20px 22px; background: var(--navy-deep); border-bottom: 1px solid var(--line); }
  .nav.is-open { display: flex; }
  .nav__item { padding: 14px 0; text-align: left; }
  .screen { height: auto; min-height: 100vh; padding: 94px 20px 30px; overflow: visible; }
  .hero__eyebrow { width: 70%; margin-left: 28%; }
  .hero__title { margin-top: 8vh; font-size: clamp(58px, 18vw, 105px); line-height: .82; }
  .hero__title span:last-child { margin-left: 0; }
  .hero__bottom { width: 100%; grid-template-columns: 1fr; gap: 25px; margin: 7vh 0 0; }
  .hero__benefits div { grid-template-columns: 1fr; gap: 8px; }
  .scroll-cue { bottom: 57px; left: 20px; }
  .section-head { align-items: flex-start; flex-direction: column; }
  .section-head h2 { font-size: clamp(42px, 12vw, 68px); }
  .section-head > p { width: 100%; margin: 0; }
  .case-grid { height: auto; grid-template-columns: 1fr 1fr; grid-template-rows: repeat(3, 130px); }
  .case-card { padding: 14px; }
  .case-card__no { margin-bottom: 19px; }
  .case-card h3 { font-size: 16px; }
  .workbench { height: auto; grid-template-columns: 1fr; gap: 14px; }
  .data-pool { display: grid; grid-template-columns: 1fr 1fr; }
  .data-card { font-size: 10px; }
  .declaration { min-height: 380px; }
  .game-status { flex-direction: row; align-items: center; gap: 12px; padding: 0; }
  .game-status button { margin: 0 0 0 auto; }
  .document-link { margin: 0; }
  .contact__lead { display: block; margin-top: 3vh; }
  .contact__lead > p { margin-bottom: 5vh; }
  .contact h2 { font-size: clamp(68px, 18vw, 120px); line-height: .75; }
  .contact-form { width: 100%; grid-template-columns: 1fr 1fr; margin-top: 7vh; }
  .submit { align-self: end; }
  .mail-flight__letter, .mail-flight__envelope { left: 50vw; top: 72vh; }
  .mail-flight__letter { width: min(330px, 82vw); }
  .progress, .screen-counter { display: none; }
  .case-modal__panel { width: 100%; padding: 80px 22px 40px; }
  .modal-action { flex-direction: column; align-items: stretch; gap: 16px; }
  .modal-action__button { justify-content: center; }
  .tnved__panel { width: 100%; padding: 76px 20px 18px; border-right: 0; }
  .tnved__panel h2 { font-size: clamp(30px, 9vw, 44px); }
  .tnved__form { grid-template-columns: 1fr; gap: 12px; }
  .tnved__submit { height: 50px; }
  .flow { grid-template-columns: 1fr; gap: 10px; }
  .flow-card { min-height: 110px; }
  .flow-card:not(:last-child)::after { content: "↓"; right: 18px; top: auto; bottom: -17px; z-index: 2; }
}

@media (max-width: 560px) {
  .hero__benefits { display: none; }
  .case-grid { grid-template-columns: 1fr; grid-template-rows: repeat(6, 92px); }
  .case-card { display: flex; align-items: center; gap: 20px; }
  .case-card__no { margin: 0; }
  .case-card h3 { max-width: 76%; }
  .data-pool { grid-template-columns: 1fr; gap: 6px; }
  .data-card { min-height: 38px; }
  .declaration { padding: 18px; min-height: 410px; }
  .declaration__fields { grid-template-columns: 1fr; }
  .drop-field:nth-child(3) { grid-column: auto; }
  .contact-form { grid-template-columns: 1fr; gap: 12px; margin-top: 5vh; }
  .footer { left: 20px; right: 20px; }
  .footer span:nth-child(2) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
