:root {
    --paper: #0a0a0b;
    --paper-2: #0e0e10;
    --surface: #141416;
    --line: #232329;
    --line-bright: #34343d;
    --ink: #f6f6f7;
    --grey: #9a9aa3;
    --grey-dim: #6b6b74;

    --red: #ff0000;
    --red-ink: #ff3b3b;
    --red-lift: #ff3333;

    --font-display: 'Anton', 'Arial Narrow', sans-serif;
    --font-body: 'Inter', system-ui, sans-serif;
    --font-mono: 'Space Mono', ui-monospace, monospace;

    --nav-h: 68px;
    --pad-x: clamp(18px, 5vw, 72px);

    --shell: 1200px;
    --marker: 176px;
    --gutter: clamp(22px, 3.4vw, 56px);
    --section-y: clamp(54px, 6.5vw, 96px);

    --ch: 14px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

::selection { background: var(--red); color: #fff; }

img { display: block; max-width: 100%; }

a { color: inherit; }

:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

main { flex: 1; }

.sr-only {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    left: 12px;
    top: -60px;
    z-index: 200;
    background: var(--red);
    color: #0a0a0b;
    font-weight: 700;
    font-size: 14px;
    padding: 11px 20px;
    text-decoration: none;
    transition: top 0.18s ease;
}

.skip-link:focus { top: 12px; }

.section { padding: var(--section-y) var(--pad-x); }

.section-line { border-top: 1px solid var(--line); }

.shell { max-width: var(--shell); margin: 0 auto; }

.row {
    display: grid;
    grid-template-columns: var(--marker) minmax(0, 1fr);
    gap: var(--gutter);
    align-items: start;
}

.stack > * + * { margin-top: 22px; }
.stack > * + .actions { margin-top: 30px; }

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

@media (max-width: 900px) {
    .row { grid-template-columns: minmax(0, 1fr); gap: 14px; }
}

.tag {
    font-family: var(--font-mono);
    font-size: 10.5px;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    color: var(--grey-dim);
    display: block;
    padding-top: 8px;
}

@media (max-width: 900px) {
    .tag { padding-top: 0; }
}

.display {
    font-family: var(--font-display);
    font-weight: 400;
    text-transform: uppercase;
    line-height: 0.9;
    letter-spacing: 0.004em;
}

h2.display { font-size: clamp(30px, 4.4vw, 54px); }

.lede {
    color: var(--grey);
    font-size: clamp(15px, 1.5vw, 17px);
    line-height: 1.7;
    max-width: 58ch;
}

.red { color: var(--red-ink); }

.btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 12.5px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    text-decoration: none;
    padding: 17px 30px;
    background: var(--red);
    color: #0a0a0b;
    border: none;
    cursor: pointer;
    transition: background 0.18s ease, color 0.18s ease;
    clip-path: polygon(var(--ch) 0, 100% 0, 100% calc(100% - var(--ch)), calc(100% - var(--ch)) 100%, 0 100%, 0 var(--ch));
}

.btn:hover { background: var(--red-lift); }

.btn .arrow { transition: transform 0.18s ease; }
.btn:hover .arrow { transform: translateX(4px); }

.btn-line {
    background: transparent;
    color: var(--ink);
    border: 1px solid var(--line-bright);
    clip-path: none;
    padding: 16px 29px;
}

.btn-line:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.btn-dark { background: #0a0a0b; color: #fff; }
.btn-dark:hover { background: #000; }

.is-disabled { opacity: 0.32; pointer-events: none; cursor: default; }

.notice {
    position: fixed;
    right: clamp(14px, 3vw, 28px);
    bottom: clamp(14px, 3vw, 28px);
    z-index: 90;
    width: min(330px, calc(100vw - 28px));
    background: var(--surface);
    border: 1px solid var(--line-bright);
    border-left: 3px solid var(--red);
    padding: 16px 44px 17px 18px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55);
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.28s ease, transform 0.28s ease;
}

.notice.in { opacity: 1; transform: none; }

.notice .tag { padding-top: 0; margin-bottom: 7px; color: var(--red-ink); }

.notice p { font-size: 13.5px; line-height: 1.55; color: var(--ink); }

.notice-close {
    position: absolute;
    top: 7px;
    right: 7px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: var(--grey);
    font-size: 19px;
    line-height: 1;
    cursor: pointer;
    transition: color 0.15s ease, background 0.15s ease;
}

.notice-close:hover { color: var(--ink); background: rgba(255, 255, 255, 0.06); }

@media (max-width: 520px) {
    .notice { left: 14px; right: 14px; bottom: 14px; width: auto; }
}

@media (prefers-reduced-motion: reduce) {
    .notice { transform: none; transition: opacity 0.2s ease; }
    .notice.in { transform: none; }
}

.site-nav {
    position: sticky;
    top: 0;
    z-index: 50;
    height: var(--nav-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 0 var(--pad-x);
    background: var(--paper);
    border-bottom: 1px solid var(--line);
}

.nav-logo { display: flex; align-items: center; flex: none; }

.nav-logo img { height: 20px; width: auto; }

.nav-links { display: flex; align-items: center; gap: 30px; }

.nav-links a {
    font-family: var(--font-mono);
    font-size: 11.5px;
    letter-spacing: 0.17em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--grey);
    white-space: nowrap;
    transition: color 0.15s ease;
}

.nav-links a:hover { color: var(--ink); }

.nav-links a[aria-current="page"] { color: var(--ink); }

.nav-links a[aria-current="page"]:not(.nav-cta) { position: relative; }

.nav-links a[aria-current="page"]:not(.nav-cta)::after {
    content: "";
    position: absolute;
    left: 0; right: 0;
    bottom: -25px;
    height: 2px;
    background: var(--red);
}

.nav-links .nav-cta {
    color: #0a0a0b;
    background: var(--red);
    padding: 12px 22px;
    font-weight: 700;
    transition: background 0.15s ease;
    --ch: 9px;
    clip-path: polygon(var(--ch) 0, 100% 0, 100% calc(100% - var(--ch)), calc(100% - var(--ch)) 100%, 0 100%, 0 var(--ch));
}

.nav-links .nav-cta:hover { background: var(--red-lift); color: #0a0a0b; }

.nav-burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    background: none;
    border: 1px solid var(--line-bright);
    cursor: pointer;
    z-index: 70;
}

.nav-burger span {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--ink);
    transition: transform 0.25s ease, opacity 0.2s ease;
}

@media (max-width: 1080px) {
    .nav-burger { display: flex; }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        z-index: 60;
        background: var(--paper);
        border-bottom: 1px solid var(--line);
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 0 var(--pad-x) 20px;
        opacity: 0;
        transform: translateY(-8px);
        pointer-events: none;
        transition: opacity 0.2s ease, transform 0.2s ease;
    }

    .nav-links a {
        font-size: 13px;
        color: var(--ink);
        padding: 19px 0;
        border-bottom: 1px solid var(--line);
    }

    .nav-links a[aria-current="page"]:not(.nav-cta)::after {
        left: -14px; right: auto;
        top: 50%; bottom: auto;
        transform: translateY(-50%);
        width: 3px; height: 16px;
    }

    .nav-links .nav-cta {
        margin-top: 18px;
        text-align: center;
        padding: 18px 22px;
        border-bottom: none;
    }

    body.menu-open .nav-links { opacity: 1; transform: none; pointer-events: auto; }

    body.menu-open .nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    body.menu-open .nav-burger span:nth-child(2) { opacity: 0; }
    body.menu-open .nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 4px;
}

.field { display: flex; flex-direction: column; gap: 9px; }

.field.wide { grid-column: 1 / -1; }

.field label {
    font-family: var(--font-mono);
    font-size: 10.5px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--grey-dim);
}

.field label .req { color: var(--red-ink); }

.field input,
.field textarea {
    width: 100%;
    background: var(--surface);
    border: 1px solid var(--line);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.5;
    padding: 14px 15px;
    transition: border-color 0.16s ease, background 0.16s ease;
}

.field input::placeholder,
.field textarea::placeholder { color: #5c5c65; }

.field input:focus,
.field textarea:focus { border-color: var(--red); background: var(--paper-2); }

.field textarea { min-height: 168px; resize: vertical; }

.field-note {
    font-family: var(--font-mono);
    font-size: 10.5px;
    letter-spacing: 0.05em;
    line-height: 1.55;
    color: var(--grey-dim);
}

.hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.form-foot {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 22px;
}

.form-status {
    font-family: var(--font-mono);
    font-size: 12.5px;
    line-height: 1.5;
    letter-spacing: 0.04em;
    margin: 0;
}

.form-status.ok { color: #6ee7a0; }
.form-status.err { color: #ff7a7a; }

@media (max-width: 620px) {
    .form-grid { grid-template-columns: minmax(0, 1fr); }
}

.index { list-style: none; }

.index-row {
    border-top: 1px solid var(--line);
    transition: background 0.22s ease;
}

.index-row:last-child { border-bottom: 1px solid var(--line); }

.index-row:hover { background: var(--paper-2); }

.index-inner { padding: clamp(24px, 3vw, 38px) var(--pad-x); }

.index-n {
    font-family: var(--font-display);
    font-size: clamp(26px, 3vw, 40px);
    line-height: 1;
    color: var(--red);
}

.index-body {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.6fr);
    gap: var(--gutter);
    align-items: baseline;
}

.index-h {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(20px, 2.3vw, 28px);
    text-transform: uppercase;
    line-height: 1;
    letter-spacing: 0.006em;
}

.index-p { color: var(--grey); font-size: 15px; max-width: 54ch; }

@media (max-width: 900px) {
    .index-body { grid-template-columns: minmax(0, 1fr); gap: 10px; }
    .index-n { display: block; margin-bottom: 12px; }
}

.band { background: var(--paper-2); border-top: 2px solid var(--red); }

.band h2 { font-size: clamp(34px, 5.4vw, 68px); }

.band h2 em { font-style: normal; color: var(--red); }

.band-note {
    font-size: clamp(15px, 1.5vw, 17px);
    line-height: 1.65;
    max-width: 52ch;
    color: var(--grey);
}

.statement-lead {
    font-size: clamp(19px, 2.2vw, 27px);
    line-height: 1.44;
    font-weight: 500;
    letter-spacing: -0.011em;
    max-width: 46ch;
}

.slate {
    display: flex;
    flex-wrap: wrap;
    border-top: 1px solid var(--line);
    margin-top: var(--section-y);
}

.slate-item {
    flex: 1 1 220px;
    padding: 18px 26px 0 0;
    display: flex;
    align-items: baseline;
    gap: 12px;
}

.slate-item + .slate-item { border-left: 1px solid var(--line); padding-left: 26px; }

.slate-item .k { color: var(--red-ink); padding-top: 0; }

.slate-item .v {
    font-family: var(--font-mono);
    font-size: 11.5px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--grey);
}

@media (max-width: 700px) {
    .slate-item { flex: 1 1 100%; padding: 14px 0 0; }
    .slate-item + .slate-item { border-left: none; padding-left: 0; }
}

.photo {
    position: relative;
    overflow: hidden;
    background: var(--surface);
    background-size: cover;
    background-position: center;
}

.photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.55s ease;
}

.photo img.loaded { opacity: 1; }

.photo.is-empty::after {
    content: attr(data-empty);
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 16px;
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--grey-dim);
    background: repeating-linear-gradient(45deg, #131316, #131316 10px, #17171b 10px, #17171b 20px);
}

.site-footer {
    border-top: 1px solid var(--line);
    padding: var(--section-y) var(--pad-x) 26px;
    margin-top: auto;
}

.footer-cols {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(24px, 3vw, 44px);
}

.footer-col .tag { margin-bottom: 14px; padding-top: 0; }

.footer-col a {
    display: block;
    font-size: 14px;
    text-decoration: none;
    color: var(--grey);
    padding: 11px 0;
    width: fit-content;
    transition: color 0.15s ease;
}

.footer-col a:hover { color: var(--ink); }

.footer-social { display: flex; align-items: center; gap: 12px; }

.footer-social svg { width: 16px; height: 16px; flex: none; }

.footer-bottom {
    max-width: var(--shell);
    margin: var(--section-y) auto 0;
    border-top: 1px solid var(--line);
    padding-top: 22px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--grey-dim);
}

@media (max-width: 760px) {
    .footer-cols { grid-template-columns: minmax(0, 1fr); gap: 26px; }
}

html.js .reveal {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

html.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    html.js .reveal { opacity: 1; transform: none; transition: none; }
    * { animation-duration: 0.001s !important; }
}
