:root {
    color-scheme: dark;
    --bg: #0b0a07;
    --text: #f4efe6;
    --text-dim: #b7ab96;
    --accent: #f5a623;
    --border: #393329;
    --ease: cubic-bezier(.22, 1, .36, 1);
}
* { box-sizing: border-box; }
body {
    margin: 0;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    background: var(--bg);
    color: var(--text);
    font-family: 'Space Grotesk', sans-serif;
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; }
.error-header, .error-main, .error-footer { width: min(1380px, calc(100% - 112px)); margin-inline: auto; }
.error-header { display: flex; align-items: center; justify-content: space-between; min-height: 120px; gap: 24px; }
.brand { display: inline-flex; }
.brand img { width: 180px; height: 90px; object-fit: contain; }
.header-link { display: inline-flex; align-items: center; gap: 20px; min-height: 44px; font-size: 14px; }
.header-link span { color: var(--accent); font-size: 20px; }
.header-link:hover, .error-footer a:hover { color: var(--accent); }
.error-main { flex: 1; display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 20px; padding-block: 36px 56px; }
.error-copy { position: relative; z-index: 2; }
.status { display: flex; align-items: center; gap: 10px; margin: 0 0 28px; color: var(--accent); font-family: 'JetBrains Mono', monospace; font-size: 10px; line-height: 1.7; letter-spacing: .1em; }
.status span { flex: 0 0 6px; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
h1 { font-size: clamp(38px, 4.4vw, 66px); font-weight: 500; line-height: 1.08; letter-spacing: -.055em; margin: 0 0 28px; }
h1 em { font-style: normal; color: var(--accent); }
.description { max-width: 44ch; font-size: 16px; line-height: 1.8; color: var(--text-dim); margin: 0; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 36px; }
.button { min-height: 52px; padding: 14px 22px; border-radius: 999px; border: 1px solid var(--border); display: inline-flex; align-items: center; justify-content: center; gap: 12px; font-size: 14px; font-weight: 600; transition: background .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease); }
.button svg { width: 20px; height: 20px; }
.button-primary { background: var(--accent); border-color: var(--accent); color: #171107; }
.button-primary:hover { background: #ffbf50; border-color: #ffbf50; transform: translateY(-2px); }
.button-secondary:hover { background: #201b12; border-color: var(--accent); transform: translateY(-2px); }
.button:active { transform: translateY(1px); }
.reassurance { font-size: 12px; color: var(--text-dim); line-height: 1.6; margin: 28px 0 0; }
.eagle-scene { position: relative; margin: 0; min-width: 0; isolation: isolate; background: radial-gradient(ellipse at 55% 60%, #34251477, transparent 67%); }
.scene-code { position: absolute; z-index: -1; top: -5%; left: -4%; font-size: clamp(180px, 24vw, 365px); font-weight: 700; line-height: 1; letter-spacing: -.07em; color: #dca84c12; -webkit-text-stroke: 1px #b78c433d; user-select: none; }
.eagle { display: block; position: relative; width: 100%; height: auto; filter: drop-shadow(0 24px 20px #0008); }
.ground { position: absolute; bottom: 3%; left: 16%; width: 72%; height: 12%; background: radial-gradient(ellipse, #0009, transparent 70%); }
figcaption { position: relative; text-align: center; font-family: 'JetBrains Mono', monospace; font-size: 10px; line-height: 1.8; letter-spacing: .04em; color: var(--text-dim); margin-top: 4px; }
figcaption span { color: var(--accent); margin-right: 8px; }
.error-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 28px; padding-block: 24px; border-top: 1px solid var(--border); font-size: 12px; color: var(--text-dim); }
.error-footer > span:first-child { font-size: 10px; letter-spacing: .18em; }
.error-footer a { display: inline-flex; align-items: center; min-height: 44px; gap: 12px; }
@media (max-width: 1000px) {
    .error-header, .error-main, .error-footer { width: calc(100% - 64px); }
    .error-main { gap: 0; }
    .button { padding-inline: 18px; }
    .desktop-break { display: none; }
}
@media (max-width: 700px) {
    .error-header, .error-main, .error-footer { width: calc(100% - 40px); }
    .error-header { min-height: 90px; }
    .brand img { width: 140px; height: 70px; }
    .header-link { gap: 10px; font-size: 12px; }
    .error-main { grid-template-columns: 1fr; padding-block: 28px 36px; gap: 56px; }
    h1 { font-size: clamp(36px, 9.7vw, 58px); }
    .status { font-size: 9px; margin-bottom: 20px; }
    .description { font-size: 15px; max-width: 42ch; }
    .actions { gap: 12px; margin-top: 28px; }
    .button { min-height: 50px; font-size: 13px; padding-inline: 16px; }
    .eagle-scene { width: min(100%, 460px); margin-inline: auto; }
    .scene-code { font-size: clamp(160px, 50vw, 260px); left: 0; }
    .error-footer { gap: 8px 16px; }
    .error-footer a { flex-basis: 100%; }
}
@media (prefers-reduced-motion: no-preference) {
    .eagle { animation: arrive .7s var(--ease) both; }
    @keyframes arrive { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
}
@media (prefers-reduced-motion: reduce) { .button { transition: none; } }
