:root {
    --ink: #f3f0e9;
    --muted: #aaa69e;
    --dim: #77736c;
    --line: rgba(243, 240, 233, .15);
    --panel: #171716;
    --paper: #e9e5dc;
    --dark: #101010;
    --accent: #e4ff4f;
    --max: 1220px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--dark);
    color: var(--ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

.site-shell { overflow: hidden; }

.site-header,
main,
.site-footer {
    width: min(calc(100% - 48px), var(--max));
    margin-inline: auto;
}

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 88px;
    border-bottom: 1px solid var(--line);
}

.brand { display: inline-flex; align-items: center; }
.brand-logo { display: block; width: 166px; height: auto; filter: invert(1); }
.site-nav { display: flex; align-items: center; gap: 28px; color: var(--muted); font-size: 13px; }
.site-nav a { transition: color .2s ease; }
.site-nav a:hover, .site-nav a:focus-visible { color: var(--ink); }
.site-nav .nav-contact { color: var(--ink); }

.hero { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr); gap: clamp(42px, 8vw, 126px); align-items: center; padding: clamp(76px, 12vw, 150px) 0 clamp(90px, 12vw, 150px); }
.eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 24px; color: var(--accent); font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.eyebrow-mark { width: 22px; height: 1px; background: var(--accent); }
h1, h2, h3, p { margin-top: 0; }
h1, h2 { font-weight: 550; letter-spacing: -.065em; line-height: .96; }
h1 { max-width: 780px; margin-bottom: 30px; font-size: clamp(52px, 7.2vw, 102px); }
h1 em, .panel-title em { color: var(--accent); font-style: normal; }
.hero-lead { max-width: 470px; margin-bottom: 36px; color: var(--muted); font-size: 17px; line-height: 1.65; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 24px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 18px; min-height: 48px; padding: 0 20px; font-size: 13px; font-weight: 700; transition: transform .2s ease, background .2s ease, color .2s ease; }
.button:hover, .button:focus-visible { transform: translateY(-2px); }
.button-light { background: var(--accent); color: var(--dark); }
.button-light:hover, .button-light:focus-visible { background: #f0ff91; }
.button-outline { border: 1px solid var(--line); }
.button-outline:hover, .button-outline:focus-visible { border-color: var(--accent); color: var(--accent); }
.text-link { color: var(--muted); font-size: 13px; }
.text-link:hover, .text-link:focus-visible { color: var(--accent); }

.hero-panel { position: relative; min-height: 475px; background: var(--panel); border: 1px solid var(--line); }
.hero-panel::before, .hero-panel::after { position: absolute; content: ""; width: 10px; height: 10px; border-color: var(--accent); border-style: solid; }
.hero-panel::before { top: -1px; left: -1px; border-width: 1px 0 0 1px; }
.hero-panel::after { right: -1px; bottom: -1px; border-width: 0 1px 1px 0; }
.panel-head, .panel-footer { display: flex; justify-content: space-between; padding: 18px 20px; color: var(--dim); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 10px; letter-spacing: .12em; }
.panel-head { border-bottom: 1px solid var(--line); }
.panel-body { position: relative; display: flex; flex-direction: column; justify-content: space-between; min-height: 418px; padding: 34px 34px 22px; overflow: hidden; }
.panel-body::before { position: absolute; inset: 0; background-image: linear-gradient(rgba(243,240,233,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(243,240,233,.035) 1px, transparent 1px); background-size: 34px 34px; content: ""; }
.panel-core { position: absolute; z-index: 1; top: 42%; left: 50%; display: grid; place-items: center; width: 106px; height: 106px; border: 1px solid var(--accent); border-radius: 50%; transform: translate(-50%, -50%) rotate(-8deg); }
.panel-core img { display: block; width: 72px; height: 72px; object-fit: contain; filter: invert(1); }
.panel-core::before, .panel-core::after { position: absolute; width: 16px; height: 16px; border: 1px solid var(--accent); border-radius: 50%; content: ""; }
.panel-core::before { top: -8px; right: 12px; background: var(--panel); }
.panel-core::after { bottom: 1px; left: -8px; background: var(--accent); }
.panel-orbit { position: absolute; z-index: 0; top: 42%; left: 50%; border: 1px solid rgba(228,255,79,.25); border-radius: 50%; transform: translate(-50%, -50%) rotate(18deg); }
.orbit-one { width: 240px; height: 124px; }
.orbit-two { width: 340px; height: 180px; transform: translate(-50%, -50%) rotate(-32deg); }
.panel-index, .panel-title, .panel-footer { position: relative; z-index: 1; }
.panel-index { margin: 0; color: var(--accent); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; }
.panel-title { margin: auto 0; font-size: clamp(34px, 4vw, 56px); font-weight: 500; letter-spacing: -.07em; line-height: .96; }
.panel-footer { padding: 18px 0 0; }
.panel-pulse { color: var(--accent); }
.panel-pulse i { display: inline-block; width: 6px; height: 6px; margin-right: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(228,255,79,.12); }

.section-intro, .about { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: end; border-top: 1px solid var(--line); }
.section-intro { padding: 86px 0 34px; }
h2 { margin-bottom: 0; font-size: clamp(42px, 5.5vw, 72px); }
.section-note { max-width: 260px; justify-self: end; margin-bottom: 5px; color: var(--muted); font-size: 13px; text-align: right; }

.sites-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.site-card { position: relative; display: flex; min-height: 390px; flex-direction: column; padding: 22px; background: var(--paper); color: var(--dark); transition: background .25s ease, transform .25s ease; }
.site-card:nth-child(3n + 2) { background: #d7d2c7; }
.site-card:nth-child(3n) { background: #c4c0b7; }
.site-card:hover { background: var(--accent); transform: translateY(-5px); }
.card-top { display: flex; justify-content: space-between; margin-bottom: 14px; color: #6f6b64; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 10px; letter-spacing: .1em; }
.card-number { color: var(--dark); }
.card-preview { width: 100%; aspect-ratio: 16 / 9; margin-bottom: 20px; overflow: hidden; background: #b7b3aa; border: 1px solid rgba(16,16,16,.14); }
.card-preview img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.site-card:hover .card-preview img { transform: scale(1.04); }
.card-category { margin-bottom: 10px; color: #6f6b64; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.site-card h3 { max-width: 280px; margin-bottom: 10px; font-size: clamp(24px, 2.2vw, 32px); font-weight: 600; letter-spacing: -.06em; line-height: 1; }
.card-description { max-width: 290px; margin-bottom: 26px; color: #4f4c47; font-size: 13px; line-height: 1.5; }
.card-link { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 16px; border-top: 1px solid rgba(16,16,16,.18); font-size: 12px; font-weight: 750; }
.card-link span { font-size: 20px; font-weight: 400; }
.loading-state { grid-column: 1 / -1; min-height: 160px; margin: 0; padding: 30px 0; color: var(--muted); }
.error-state { color: #ff9e83; }
.noscript-note { margin: 24px 0 0; color: var(--muted); font-size: 13px; }

.private-study { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px; align-items: center; margin-top: 38px; padding: 36px; background: var(--panel); border: 1px solid var(--line); border-left: 2px solid var(--accent); }
.private-study .eyebrow { margin-bottom: 18px; }
.private-study h2 { max-width: 640px; font-size: clamp(30px, 3.8vw, 48px); line-height: 1.04; }
.private-study h2 span { display: block; margin-top: 8px; color: var(--accent); font-size: .63em; letter-spacing: -.04em; }
.private-study-copy>p:last-child { max-width: 530px; margin: 20px 0 0; color: var(--muted); font-size: 14px; line-height: 1.65; }
.private-study-action { display: grid; gap: 12px; justify-items: start; }
.private-study-access { color: var(--ink); font-size: 11px; font-weight: 650; }
.private-study-access::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 8px; background: var(--accent); border-radius: 50%; }
.private-study-window { color: var(--muted); font-size: 11px; }
.private-study-request { color: var(--accent); font-size: 12px; text-underline-offset: 4px; }
.private-study-request:hover { text-decoration: underline; }
.private-study a:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

.about { margin-top: 130px; padding: 86px 0 100px; }
.about-copy { max-width: 420px; justify-self: end; }
.about-copy p { margin-bottom: 28px; color: var(--muted); font-size: 18px; line-height: 1.6; }
.site-footer { display: flex; justify-content: space-between; gap: 20px; padding: 22px 0 34px; border-top: 1px solid var(--line); color: var(--dim); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.site-footer a:hover, .site-footer a:focus-visible { color: var(--accent); }

@media (max-width: 820px) {
    .private-study { grid-template-columns: 1fr; gap: 28px; padding: 30px; }
    .site-header, main, .site-footer { width: min(calc(100% - 36px), var(--max)); }
    .hero { grid-template-columns: 1fr; padding-top: 78px; }
    .hero-panel { min-height: 390px; }
    .panel-body { min-height: 333px; }
    .sites-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
    .private-study { padding: 25px 20px; }
    .private-study .button { gap: 12px; padding-inline: 15px; }
    .site-header { min-height: 72px; }
    .brand-logo { width: 142px; }
    .site-nav { gap: 14px; font-size: 12px; }
    .site-nav a:first-child, .site-nav a:nth-child(2) { display: none; }
    .hero { gap: 58px; padding: 68px 0 88px; }
    h1 { font-size: clamp(48px, 14vw, 72px); }
    .hero-lead { font-size: 15px; }
    .hero-panel { min-height: 360px; }
    .panel-body { min-height: 303px; padding: 28px 22px 18px; }
    .section-intro, .about { grid-template-columns: 1fr; gap: 28px; }
    .section-intro { padding: 70px 0 28px; }
    .section-note, .about-copy { justify-self: start; text-align: left; }
    .sites-grid { grid-template-columns: 1fr; }
    .site-card { min-height: 350px; }
    .about { margin-top: 90px; padding: 70px 0 80px; }
    .site-footer { flex-direction: column; gap: 10px; padding-bottom: 26px; }
}
