:root {
    --paper: #f4f1e8;
    --ink: #171717;
    --blue: #1754a5;
    --blue-dark: #0b2d5c;
    --yellow: #f2c94c;
    --red: #b7352c;
    --grey: #c8c5bd;
    --line: rgba(23, 23, 23, .22);
    --max: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font: 1rem/1.65 Arial, Helvetica, sans-serif;
}
a { color: inherit; }
.skip-link { position: absolute; left: -10000px; top: auto; }
.skip-link:focus { left: 1rem; top: 1rem; z-index: 10; padding: .5rem 1rem; background: var(--yellow); }
.content-width { width: min(var(--max), calc(100% - 3rem)); margin-inline: auto; }
.site-header {
    width: min(var(--max), calc(100% - 3rem));
    min-height: 5.5rem;
    margin: auto;
    display: flex;
    align-items: center;
    gap: 2rem;
    border-bottom: 2px solid var(--ink);
}
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; font: 700 1.45rem/1 monospace; }
.brand-disk { display: grid; place-items: center; width: 2.1rem; height: 2.1rem; background: var(--ink); border-radius: .2rem; transform: rotate(-4deg); }
.brand-disk span { width: .9rem; height: .5rem; border: 2px solid var(--paper); border-top: 0; }
.main-nav { display: flex; gap: 1.4rem; margin-right: auto; font-size: .86rem; }
.main-nav a, .language-switcher a, .site-footer a { text-decoration: none; }
.main-nav a:hover, .site-footer a:hover, .text-link:hover { color: var(--blue); }
.language-switcher { display: flex; gap: .25rem; font: .78rem monospace; }
.language-switcher a { padding: .25rem .4rem; border: 1px solid transparent; }
.language-switcher a.active, .language-switcher a:hover { border-color: var(--ink); background: var(--yellow); }
.hero { min-height: 38rem; display: grid; grid-template-columns: 1fr .9fr; align-items: center; gap: 4rem; padding-block: 5rem; }
.eyebrow { margin: 0 0 1rem; color: var(--blue-dark); font: 700 .72rem/1.4 monospace; letter-spacing: .1em; text-transform: uppercase; }
h1, h2, h3 { margin: 0; line-height: 1.05; letter-spacing: -.04em; }
h1 { max-width: 8ch; font-size: clamp(3.7rem, 9vw, 7.4rem); }
h2 { font-size: clamp(2.2rem, 5vw, 4.2rem); }
h3 { font-size: 2.2rem; }
.hero-text { max-width: 34rem; margin: 2rem 0; font-size: 1.12rem; }
.button { display: inline-flex; align-items: center; gap: 1.2rem; padding: .8rem 1rem; background: var(--yellow); border: 2px solid var(--ink); box-shadow: 4px 4px 0 var(--ink); font-weight: 700; text-decoration: none; }
.button:hover, .button:focus-visible { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); }
.button-dark { background: var(--blue); color: white; box-shadow: 4px 4px 0 var(--ink); }
.insert-scene { position: relative; min-height: 26rem; border: 2px solid var(--ink); background: white; overflow: hidden; box-shadow: 8px 8px 0 var(--ink); }
.screen { position: absolute; top: 13%; right: 12%; width: 53%; height: 39%; border: 5px solid var(--ink); background: var(--blue); box-shadow: inset 0 0 0 5px var(--paper); }
.screen:before { content: 'INSERT'; position: absolute; left: 13%; top: 17%; color: white; font: 700 1rem monospace; }
.screen-line { position: absolute; left: 13%; top: 50%; width: 63%; height: 4px; background: var(--yellow); }
.screen-line.short { top: 63%; width: 40%; }
.scene-disk { position: absolute; bottom: 8%; left: 13%; width: 9rem; aspect-ratio: 1; padding-top: 3rem; background: var(--ink); border-radius: .5rem; transform: rotate(-18deg); box-shadow: 5px 5px 0 var(--grey); }
.disk-label { display: block; margin: auto; width: 5.8rem; padding: .3rem; background: var(--yellow); text-align: center; font: 700 .8rem monospace; }
.disk-shutter { position: absolute; bottom: 10%; left: 18%; width: 64%; height: 1.1rem; border: 3px solid var(--paper); border-top: 0; }
.hand { position: absolute; right: 5%; bottom: -5%; width: 11rem; height: 13rem; transform: rotate(-8deg); }
.palm { position: absolute; right: 0; bottom: 0; width: 8rem; height: 8rem; border: 3px solid var(--ink); border-radius: 45% 45% 25% 30%; background: var(--paper); }
.finger { position: absolute; z-index: 1; right: 4rem; top: .1rem; width: 3rem; height: 11rem; border: 3px solid var(--ink); border-radius: 2rem 2rem 1rem 1rem; background: var(--paper); transform: rotate(18deg); }
.split-section { display: grid; grid-template-columns: .8fr 1.2fr; gap: 4rem; padding-block: 7rem; border-top: 1px solid var(--line); }
.large-copy { max-width: 43rem; margin: 0; font-size: clamp(1.35rem, 2.5vw, 2rem); line-height: 1.35; }
.facts, .projects-section { padding-block: 5rem 7rem; }
.section-heading { max-width: 42rem; margin-bottom: 2.5rem; }
.section-heading > p:last-child { max-width: 36rem; }
.fact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.fact-card { min-height: 13rem; padding: 1.4rem; border: 2px solid var(--ink); background: var(--grey); }
.fact-card:nth-child(2) { background: var(--yellow); transform: translateY(1.5rem); }
.fact-card:nth-child(3) { background: var(--blue); color: white; }
.fact-number { display: block; margin-bottom: 3rem; font: 700 1rem monospace; }
.fact-card p { margin: 0; font-weight: 700; line-height: 1.4; }
.project-card { display: grid; grid-template-columns: 10rem 1fr auto; gap: 2.5rem; align-items: center; padding: 2rem; border: 2px solid var(--ink); background: white; box-shadow: 8px 8px 0 var(--blue); }
.project-icon { display: grid; place-items: center; width: 8rem; height: 8rem; background: var(--yellow); border: 2px solid var(--ink); transform: rotate(4deg); }
.project-icon span { width: 4rem; height: 4rem; border: 8px solid var(--ink); border-radius: 50%; }
.project-details p:not(.eyebrow) { max-width: 35rem; margin: .8rem 0 1.5rem; }
.project-meta { align-self: stretch; display: flex; flex-direction: column; justify-content: space-between; color: var(--blue-dark); font: .7rem monospace; text-align: right; }
.site-footer { display: flex; justify-content: space-between; gap: 2rem; padding-block: 2.5rem; border-top: 2px solid var(--ink); font-size: .82rem; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 1.2rem; }
.page-intro { min-height: 36rem; padding-block: 7rem; }
.page-intro h1 { max-width: none; margin-bottom: 2.5rem; }
.prose { max-width: 48rem; font-size: 1.1rem; }
.prose p { margin: 0 0 1.4rem; }
.prose code { padding: .1rem .3rem; background: var(--grey); font-family: monospace; }
.text-link { display: inline-block; margin-top: 2rem; color: var(--blue-dark); font-weight: 700; }

@media (max-width: 760px) {
    .content-width, .site-header { width: min(100% - 2rem, var(--max)); }
    .site-header { min-height: 4.5rem; flex-wrap: wrap; gap: .8rem 1rem; padding-block: .8rem; }
    .main-nav { order: 3; width: 100%; gap: 1rem; }
    .language-switcher { margin-left: auto; }
    .hero { min-height: 0; grid-template-columns: 1fr; gap: 3rem; padding-block: 4rem 5rem; }
    .insert-scene { min-height: 20rem; }
    .split-section { grid-template-columns: 1fr; gap: 1.5rem; padding-block: 4rem; }
    .facts, .projects-section { padding-block: 4rem; }
    .fact-grid { grid-template-columns: 1fr; }
    .fact-card:nth-child(2) { transform: none; }
    .project-card { grid-template-columns: 5rem 1fr; gap: 1.3rem; padding: 1.2rem; }
    .project-icon { width: 5rem; height: 5rem; }
    .project-icon span { width: 2.5rem; height: 2.5rem; border-width: 5px; }
    .project-meta { grid-column: 2; flex-direction: row; text-align: left; }
    h1 { font-size: clamp(3.4rem, 16vw, 5rem); }
    .site-footer { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; transform: none !important; } }
