:root {
  --ink: #071715;
  --ink-2: #0c211f;
  --ink-3: #12302c;
  --petrol: #1f8176;
  --petrol-light: #49b7aa;
  --paper: #f1ede3;
  --paper-2: #e4dfd4;
  --white: #fffdf7;
  --muted: #a7b6b2;
  --line: rgba(73,183,170,.28);
  --amber: #c89a4b;
  --danger: #bb6b59;
  --header-h: 72px;
  --radius: 18px;
  --shadow: 0 22px 55px rgba(0,0,0,.24);
  --serif: Georgia, 'Times New Roman', serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--ink); color: var(--white); font-family: var(--sans); line-height: 1.6; overflow-x: hidden; }
body.dialog-open { overflow: hidden; }
a { color: inherit; }
img, svg { max-width: 100%; display: block; }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid var(--petrol-light); outline-offset: 3px; }
.skip-link { position: fixed; left: 1rem; top: -100px; z-index: 1000; background: var(--paper); color: var(--ink); padding: .75rem 1rem; border-radius: 8px; }
.skip-link:focus { top: 1rem; }
.container { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.narrow { width: min(820px, calc(100% - 40px)); margin-inline: auto; }
.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0,0,0,0) !important; white-space: nowrap !important; border: 0 !important; }

/* HEADER */
.site-header { position: sticky; top: 0; z-index: 100; height: var(--header-h); background: rgba(7,23,21,.9); border-bottom: 1px solid rgba(73,183,170,.18); backdrop-filter: blur(16px); }
.nav-shell { height: 100%; display: flex; align-items: center; gap: 1.2rem; }
.brand { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; flex: 0 0 auto; }
.brand-mark { width: 34px; height: 34px; color: var(--petrol-light); }
.brand-name { font-family: var(--serif); font-size: 1.12rem; font-weight: 700; letter-spacing: .01em; }
.main-nav { margin-left: auto; display: flex; align-items: center; gap: .25rem; }
.main-nav a, .nav-button { border: 0; background: transparent; color: var(--muted); text-decoration: none; padding: .6rem .72rem; border-radius: 9px; cursor: pointer; font-size: .88rem; }
.main-nav a:hover, .main-nav a[aria-current='page'], .nav-button:hover { color: var(--white); background: rgba(73,183,170,.1); }
.score-chip { display: inline-flex; align-items: center; gap: .45rem; padding: .48rem .65rem; border: 1px solid var(--line); border-radius: 999px; font-size: .78rem; color: var(--petrol-light); white-space: nowrap; }
.score-chip strong { color: var(--white); min-width: 2ch; text-align: right; }
.lang-switch { display: flex; border: 1px solid var(--line); border-radius: 999px; padding: 2px; }
.lang-switch button { border: 0; border-radius: 999px; background: transparent; color: var(--muted); min-width: 36px; min-height: 34px; cursor: pointer; }
.lang-switch button[aria-pressed='true'] { background: var(--petrol); color: var(--white); }
.menu-toggle { display: none; margin-left: auto; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 10px; background: transparent; color: var(--white); cursor: pointer; }
.menu-toggle span, .menu-toggle::before, .menu-toggle::after { content: ''; display: block; width: 20px; height: 2px; background: currentColor; margin: 5px auto; transition: transform .2s, opacity .2s; }
.menu-toggle[aria-expanded='true'] span { opacity: 0; }
.menu-toggle[aria-expanded='true']::before { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded='true']::after { transform: translateY(-7px) rotate(-45deg); }

/* HERO */
.hero { position: relative; min-height: calc(100svh - var(--header-h)); display: grid; align-items: center; overflow: clip; isolation: isolate; background:
  radial-gradient(circle at 82% 22%, rgba(31,129,118,.18), transparent 26%),
  linear-gradient(rgba(73,183,170,.035) 1px, transparent 1px),
  linear-gradient(90deg, rgba(73,183,170,.035) 1px, transparent 1px),
  linear-gradient(145deg, #071715 0%, #071412 55%, #0a201d 100%);
  background-size: auto, 42px 42px, 42px 42px, auto;
}
.hero::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(7,23,21,.96) 0%, rgba(7,23,21,.78) 45%, rgba(7,23,21,.12) 100%); }
.hero-inner { display: grid; grid-template-columns: minmax(0, 1.04fr) minmax(370px, .96fr); gap: clamp(2.5rem, 6vw, 6rem); align-items: center; padding: clamp(3.2rem, 7vw, 6.5rem) 0; }
.eyebrow { display: inline-flex; align-items: center; gap: .75rem; color: var(--petrol-light); font-size: .78rem; letter-spacing: .19em; text-transform: uppercase; font-weight: 700; }
.eyebrow::before { content: ''; width: 42px; height: 1px; background: currentColor; }
.hero h1 { margin: 1.1rem 0 1rem; font-family: var(--serif); font-size: clamp(3.2rem, 7.5vw, 7.6rem); line-height: .91; letter-spacing: -.045em; max-width: 850px; }
.hero-subtitle { max-width: 720px; color: #c8d0ce; font-size: clamp(1.02rem, 1.5vw, 1.28rem); line-height: 1.65; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: .78rem 1.2rem; border: 1px solid transparent; border-radius: 999px; text-decoration: none; cursor: pointer; transition: transform .2s, background .2s, border-color .2s, color .2s; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--petrol); color: var(--white); }
.button-primary:hover { background: #28988b; }
.button-secondary { background: transparent; color: var(--white); border-color: var(--line); }
.button-secondary:hover { border-color: var(--petrol-light); background: rgba(73,183,170,.08); }
.button-paper { background: var(--ink); color: var(--white); }
.button[aria-disabled='true'], .button:disabled { opacity: .48; pointer-events: none; }
.hero-console { position: relative; min-height: 540px; display: grid; place-items: center; }
.console-core { width: min(100%, 520px); aspect-ratio: 1 / 1; border: 1px solid rgba(73,183,170,.34); border-radius: 36px; padding: 30px; background: linear-gradient(145deg, rgba(20,58,53,.74), rgba(4,18,17,.9)); box-shadow: var(--shadow), inset 0 0 0 8px rgba(255,255,255,.012); position: relative; }
.console-core::before { content: ''; position: absolute; inset: 15px; border: 1px dashed rgba(73,183,170,.18); border-radius: 25px; pointer-events: none; }
.console-screen { height: 100%; border-radius: 20px; border: 1px solid var(--line); background: radial-gradient(circle at 50% 45%, rgba(73,183,170,.17), transparent 44%), #05110f; display: grid; place-items: center; padding: 2rem; position: relative; overflow: hidden; }
.console-screen::after { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, rgba(255,255,255,.018), rgba(255,255,255,.018) 1px, transparent 1px, transparent 5px); pointer-events: none; }
.swan-symbol { width: 132px; color: var(--petrol-light); opacity: .9; }
.console-status { position: absolute; left: 26px; bottom: 22px; right: 26px; display: flex; justify-content: space-between; align-items: center; color: var(--petrol-light); font: 700 .7rem/1 var(--sans); letter-spacing: .15em; text-transform: uppercase; }
.console-status i { width: 8px; height: 8px; border-radius: 50%; background: var(--petrol-light); box-shadow: 0 0 14px rgba(73,183,170,.7); }
.cartridge-ring { position: absolute; inset: -24px; pointer-events: none; }
.cartridge { position: absolute; width: 126px; min-height: 82px; border: 1px solid rgba(73,183,170,.34); background: rgba(7,23,21,.94); border-radius: 12px; padding: .8rem; color: var(--muted); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; box-shadow: 0 10px 30px rgba(0,0,0,.3); }
.cartridge strong { display: block; color: var(--white); font-size: .8rem; margin-bottom: .35rem; }
.cartridge:nth-child(1) { left: -22px; top: 38px; }
.cartridge:nth-child(2) { right: -24px; top: 80px; }
.cartridge:nth-child(3) { right: -38px; bottom: 80px; }
.cartridge:nth-child(4) { left: 42%; bottom: -30px; }
.cartridge:nth-child(5) { left: -42px; bottom: 100px; }

/* SECTIONS */
.section { padding: clamp(4.5rem, 8vw, 8rem) 0; }
.section-dark { background: var(--ink); color: var(--white); }
.section-dark-alt { background: var(--ink-2); color: var(--white); }
.section-light { background: var(--paper); color: var(--ink); }
.section-heading { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, .7fr); gap: 2rem; align-items: end; margin-bottom: 3rem; }
.section-heading h2, .page-hero h1 { font-family: var(--serif); font-size: clamp(2.35rem, 5vw, 5rem); line-height: .98; letter-spacing: -.035em; margin: .8rem 0 0; }
.section-heading p { margin: 0; color: inherit; opacity: .72; max-width: 600px; font-size: 1.05rem; }
.section-light .eyebrow { color: #186f66; }
.page-hero { padding: clamp(4rem, 8vw, 7rem) 0 clamp(3rem, 6vw, 5rem); background: radial-gradient(circle at 80% 10%, rgba(73,183,170,.13), transparent 26%), var(--ink); border-bottom: 1px solid var(--line); }
.page-hero p { max-width: 760px; color: #bac6c3; font-size: 1.1rem; }

/* CONSOLE SELECTOR */
.console-grid { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 12px; }
.console-card { min-height: 280px; position: relative; overflow: hidden; padding: 1.25rem; border: 1px solid rgba(73,183,170,.26); border-radius: 16px; background: linear-gradient(165deg, rgba(20,54,50,.88), rgba(4,18,17,.96)); color: var(--white); text-align: left; cursor: pointer; transition: transform .22s, border-color .22s, background .22s; }
.console-card:hover, .console-card:focus-visible { transform: translateY(-7px); border-color: var(--petrol-light); background: linear-gradient(165deg, rgba(26,76,69,.95), rgba(4,18,17,.98)); }
.console-card::after { content: attr(data-code); position: absolute; right: .8rem; bottom: -.3rem; font-family: var(--serif); font-size: 4.5rem; color: rgba(73,183,170,.08); font-weight: 700; }
.console-card .console-number { display: flex; justify-content: space-between; color: var(--petrol-light); font: 700 .68rem/1 var(--sans); letter-spacing: .14em; }
.console-card h3 { font-family: var(--serif); font-size: 1.55rem; line-height: 1.05; margin: 4.5rem 0 .8rem; }
.console-card p { color: var(--muted); font-size: .9rem; margin: 0; }
.console-card .console-line { width: 50%; height: 1px; background: var(--petrol); margin-top: 1.25rem; }

/* CARDS */
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px; }
.project-card, .publication-card, .service-card, .collab-card { border-radius: var(--radius); overflow: hidden; border: 1px solid rgba(73,183,170,.22); background: var(--ink-2); color: var(--white); }
.section-light .project-card, .section-light .publication-card, .section-light .service-card, .section-light .collab-card { background: var(--white); color: var(--ink); border-color: rgba(7,23,21,.14); }
.project-card { display: flex; flex-direction: column; min-height: 100%; }
.card-visual { aspect-ratio: 16 / 9; background: var(--ink); border-bottom: 1px solid var(--line); overflow: hidden; }
.card-visual img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s; }
.project-card:hover .card-visual img { transform: scale(1.03); }
.card-body { padding: 1.35rem; display: flex; flex-direction: column; flex: 1; }
.card-meta { display: flex; flex-wrap: wrap; gap: .45rem; margin-bottom: .9rem; }
.tag { display: inline-flex; align-items: center; min-height: 27px; padding: .25rem .58rem; border-radius: 999px; border: 1px solid rgba(73,183,170,.28); color: var(--petrol-light); font-size: .69rem; letter-spacing: .07em; text-transform: uppercase; }
.tag-amber { border-color: rgba(200,154,75,.4); color: var(--amber); }
.card-body h3 { font-family: var(--serif); font-size: clamp(1.45rem, 2vw, 2rem); line-height: 1.08; margin: 0 0 .65rem; }
.card-body p { color: inherit; opacity: .72; margin: 0 0 1.2rem; }
.card-actions { margin-top: auto; display: flex; flex-wrap: wrap; gap: .55rem; }
.card-link { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: .58rem .85rem; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; font-size: .82rem; cursor: pointer; background: transparent; color: inherit; }
.card-link:hover { background: rgba(73,183,170,.1); border-color: var(--petrol-light); }
.card-link-primary { background: var(--petrol); border-color: var(--petrol); color: var(--white); }
.card-link-disabled { opacity: .48; cursor: not-allowed; }
.publication-card, .service-card { padding: 1.45rem; }
.publication-card h3, .service-card h3, .collab-card h3 { font-family: var(--serif); font-size: 1.55rem; line-height: 1.1; margin: .7rem 0; }
.publication-card p, .service-card p, .collab-card p { opacity: .72; }
.service-detail { border-top: 1px solid rgba(73,183,170,.18); padding-top: .9rem; margin-top: 1rem; font-size: .9rem; }
.service-detail strong { display: block; color: var(--petrol-light); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; }

/* STATS / COLLAB */
.stats-grid { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 12px; }
.stat { padding: 1.35rem; border-left: 1px solid var(--line); }
.stat strong { display: block; font-family: var(--serif); font-size: clamp(2.4rem, 5vw, 4.8rem); line-height: 1; color: var(--white); }
.section-light .stat strong { color: var(--ink); }
.stat span { display: block; margin-top: .5rem; color: var(--muted); font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; }
.section-light .stat span { color: #52635f; }
.collab-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; }
.collab-card { padding: 1.2rem; min-height: 180px; }
.collab-card .serial { color: var(--petrol-light); font-size: .7rem; letter-spacing: .14em; }

/* FILTERS */
.filters { display: flex; flex-wrap: wrap; gap: .55rem; margin-bottom: 2rem; }
.filter-button { min-height: 42px; padding: .55rem .9rem; border: 1px solid rgba(73,183,170,.24); border-radius: 999px; background: transparent; color: inherit; cursor: pointer; }
.filter-button[aria-pressed='true'] { background: var(--petrol); color: var(--white); border-color: var(--petrol); }
.filter-row { display: grid; grid-template-columns: minmax(0,1fr) 220px; gap: .8rem; margin-bottom: 1.5rem; }
.search-input, .filter-select { width: 100%; min-height: 50px; border: 1px solid rgba(73,183,170,.32); border-radius: 12px; background: rgba(255,255,255,.04); color: inherit; padding: .7rem .9rem; }
.section-light .search-input, .section-light .filter-select { background: var(--white); color: var(--ink); border-color: rgba(7,23,21,.18); }
.filter-select option { color: var(--ink); }

/* PROJECT DETAIL */
.detail-layout { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(280px, .55fr); gap: 3rem; align-items: start; }
.detail-visual { border: 1px solid var(--line); border-radius: 24px; overflow: hidden; margin-bottom: 2rem; }
.detail-visual img { width: 100%; }
.prose { font-size: 1.08rem; }
.prose h2 { font-family: var(--serif); font-size: 2rem; margin-top: 2.3rem; }
.prose p { color: inherit; opacity: .82; }
.detail-sidebar { position: sticky; top: calc(var(--header-h) + 24px); border: 1px solid var(--line); border-radius: 18px; padding: 1.3rem; background: var(--ink-2); }
.detail-sidebar dl { margin: 0; }
.detail-sidebar dt { color: var(--petrol-light); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; margin-top: 1.05rem; }
.detail-sidebar dt:first-child { margin-top: 0; }
.detail-sidebar dd { margin: .3rem 0 0; color: #d6dddb; }

/* ABOUT / CONTACT */
.about-grid { display: grid; grid-template-columns: 360px minmax(0,1fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.portrait-placeholder { aspect-ratio: 4 / 5; border-radius: 24px; border: 1px solid var(--line); background: radial-gradient(circle at 50% 34%, rgba(73,183,170,.17), transparent 22%), linear-gradient(145deg, var(--ink-3), #04110f); display: grid; place-items: center; color: var(--petrol-light); overflow: hidden; }
.portrait-placeholder svg { width: 56%; }
.contact-panel { border: 1px solid var(--line); border-radius: 24px; padding: clamp(1.5rem, 4vw, 3rem); background: linear-gradient(145deg, var(--ink-2), #061411); }
.contact-panel h2 { font-family: var(--serif); font-size: clamp(2.2rem, 5vw, 4.4rem); line-height: 1; margin: 0 0 1rem; }
.link-list { display: grid; gap: .65rem; margin-top: 1.5rem; }
.link-list a { display: flex; justify-content: space-between; gap: 1rem; padding: .8rem 0; border-bottom: 1px solid var(--line); text-decoration: none; }

/* SEARCH OVERLAY */
.search-panel { position: fixed; inset: 0; z-index: 300; background: rgba(3,12,11,.92); backdrop-filter: blur(18px); display: none; overflow-y: auto; }
.search-panel.is-open { display: block; }
.search-shell { padding: 5rem 0; }
.search-head { display: flex; justify-content: space-between; gap: 1rem; align-items: start; }
.search-head h2 { font-family: var(--serif); font-size: clamp(2.2rem, 5vw, 4.5rem); margin: 0; }
.icon-button { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: transparent; color: var(--white); cursor: pointer; }
.search-box { margin: 2rem 0 1rem; }
.search-box input { width: 100%; min-height: 64px; border: 0; border-bottom: 2px solid var(--petrol); background: transparent; color: var(--white); font-size: clamp(1.2rem, 3vw, 2rem); padding: .8rem 0; }
.search-results { display: grid; gap: 12px; margin-top: 1.5rem; }
.search-result { border: 1px solid var(--line); border-radius: 14px; padding: 1rem; display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 1rem; align-items: center; }
.search-result h3 { margin: .25rem 0; font-family: var(--serif); font-size: 1.35rem; }
.search-result p { margin: 0; color: var(--muted); }

/* DIALOGS */
.dialog-backdrop { position: fixed; inset: 0; z-index: 400; display: none; place-items: center; padding: 20px; background: rgba(1,9,8,.82); backdrop-filter: blur(10px); }
.dialog-backdrop.is-open { display: grid; }
.dialog { width: min(660px, 100%); max-height: min(90svh, 820px); overflow-y: auto; border: 1px solid rgba(73,183,170,.4); border-radius: 24px; padding: clamp(1.35rem, 4vw, 2.4rem); background: var(--ink-2); box-shadow: var(--shadow); }
.dialog h2 { font-family: var(--serif); font-size: clamp(2rem, 5vw, 3.5rem); line-height: 1; margin: 0 0 1rem; }
.dialog p { color: #c4cecb; }
.dialog-actions { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; margin-top: 1.4rem; }
.check-row { display: flex; gap: .75rem; align-items: start; margin-top: 1.2rem; }
.check-row input { width: 20px; height: 20px; accent-color: var(--petrol); margin-top: .15rem; }
.trophy { width: 86px; height: 86px; color: var(--amber); margin-bottom: 1rem; }
.profile-score { font-family: var(--serif); font-size: 4rem; color: var(--petrol-light); line-height: 1; }

/* FOOTER */
.site-footer { padding: 4rem 0 2rem; background: #04110f; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1.2fr .8fr .8fr; gap: 2.5rem; }
.footer-brand { max-width: 530px; }
.footer-brand h2 { font-family: var(--serif); font-size: 2rem; margin: 0 0 .7rem; }
.footer-brand p { color: var(--muted); }
.footer-links { display: grid; gap: .45rem; align-content: start; }
.footer-links a, .footer-links button { color: var(--muted); text-decoration: none; background: transparent; border: 0; padding: .2rem 0; text-align: left; cursor: pointer; }
.footer-links a:hover, .footer-links button:hover { color: var(--white); }
.footer-score { border: 1px solid var(--line); border-radius: 16px; padding: 1rem; }
.footer-score strong { font-family: var(--serif); font-size: 2.3rem; display: block; color: var(--petrol-light); }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; border-top: 1px solid rgba(73,183,170,.14); margin-top: 3rem; padding-top: 1.4rem; color: #82938f; font-size: .78rem; }

/* REVEAL */
.reveal { opacity: 1; transform: none; }
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }
.hero .reveal, .hero [data-reveal] { opacity: 1 !important; transform: none !important; }
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 600; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; background: var(--paper); color: var(--ink); padding: .75rem 1rem; border-radius: 999px; transition: opacity .2s, transform .2s; box-shadow: var(--shadow); }
.toast.show { opacity: 1; transform: translate(-50%,0); }
.empty-state { padding: 2rem; border: 1px dashed var(--line); border-radius: 16px; color: var(--muted); text-align: center; grid-column: 1 / -1; }

/* LEGAL */
.legal-layout { display: grid; grid-template-columns: 240px minmax(0, 760px); gap: 3rem; align-items: start; }
.legal-nav { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: .5rem; }
.legal-nav a { color: var(--muted); text-decoration: none; }
.legal-copy h2 { font-family: var(--serif); font-size: 2rem; margin-top: 2.6rem; }
.legal-copy h2:first-child { margin-top: 0; }
.legal-copy p, .legal-copy li { color: #c0cbc8; }
.section-light .legal-copy p, .section-light .legal-copy li { color: #374743; }

@media (max-width: 1080px) {
  .main-nav a { padding-inline: .48rem; font-size: .8rem; }
  .hero-inner { grid-template-columns: minmax(0,1fr) 430px; gap: 2rem; }
  .console-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .console-card:nth-child(4), .console-card:nth-child(5) { min-height: 230px; }
  .card-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .stats-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .collab-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 900px) {
  :root { --header-h: 64px; }
  .menu-toggle { display: block; }
  .main-nav { position: fixed; inset: var(--header-h) 0 auto; display: none; padding: 1rem 20px 1.4rem; background: #061512; border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; }
  .main-nav.is-open { display: flex; }
  .main-nav a, .nav-button { min-height: 46px; padding: .75rem; text-align: left; font-size: 1rem; }
  .main-nav .score-chip, .main-nav .lang-switch { align-self: flex-start; }
  .hero { min-height: auto; }
  .hero-inner { grid-template-columns: 1fr; padding: 3.8rem 0 4rem; }
  .hero-console { min-height: 430px; width: min(100%, 530px); margin-inline: auto; }
  .console-core { width: min(86%, 430px); }
  .cartridge { width: 112px; min-height: 70px; }
  .section-heading { grid-template-columns: 1fr; }
  .detail-layout { grid-template-columns: 1fr; }
  .detail-sidebar { position: static; }
  .about-grid { grid-template-columns: 280px minmax(0,1fr); gap: 2rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .legal-layout { grid-template-columns: 1fr; }
  .legal-nav { position: static; display: flex; flex-wrap: wrap; }
}
@media (max-width: 680px) {
  .container, .narrow { width: min(100% - 30px, 1180px); }
  .brand-name { font-size: 1rem; }
  .hero h1 { font-size: clamp(3rem, 15vw, 5rem); }
  .hero-subtitle { font-size: 1rem; }
  .hero-console { min-height: 340px; margin-top: .5rem; }
  .console-core { width: min(76vw, 330px); padding: 20px; border-radius: 26px; }
  .console-screen { padding: 1rem; }
  .swan-symbol { width: 88px; }
  .cartridge-ring { inset: -16px; }
  .cartridge { width: 92px; min-height: 59px; padding: .55rem; font-size: .52rem; }
  .cartridge strong { font-size: .62rem; }
  .cartridge:nth-child(1) { left: -18px; top: 30px; }
  .cartridge:nth-child(2) { right: -16px; top: 45px; }
  .cartridge:nth-child(3) { right: -20px; bottom: 55px; }
  .cartridge:nth-child(4) { bottom: -18px; left: 36%; }
  .cartridge:nth-child(5) { left: -25px; bottom: 62px; }
  .console-grid, .card-grid, .stats-grid, .collab-grid { grid-template-columns: 1fr; }
  .console-card { min-height: 210px; }
  .stat { border-left: 0; border-top: 1px solid var(--line); }
  .filter-row { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .portrait-placeholder { width: min(100%, 330px); }
  .dialog-actions { grid-template-columns: 1fr; }
  .search-result { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; }
  .footer-bottom { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}
