/* ===== GHFTA · design tokens & fine details ===== */

:root {
    --gp-blue: #0055A5;
    --gp-blue-900: #003F7A;
    --gp-gold: #FFCC00;
    --gp-ink: #1F2937;
    --gp-cream: #FAF6EC;
    --gp-paper: #F5F0E6;
    --gp-veld: #4E5A3A;
    --gp-bark: #6B5942;
}

html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; }

/* Paper grain overlay */
.paper-grain {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    opacity: .5;
    mix-blend-mode: multiply;
    background-image:
        radial-gradient(rgba(107,89,66,0.08) 1px, transparent 1px),
        radial-gradient(rgba(31,41,55,0.04) 1px, transparent 1px);
    background-size: 3px 3px, 7px 7px;
    background-position: 0 0, 1px 1px;
}

/* ===== Navigation links ===== */
.nav-link {
    position: relative;
    padding: 0.55rem 0.85rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(31,41,55,0.75);
    transition: color .2s ease;
    letter-spacing: -0.005em;
}
.nav-link:hover { color: var(--gp-blue); }
.nav-link::after {
    content: "";
    position: absolute;
    left: 0.85rem;
    right: 0.85rem;
    bottom: 0.3rem;
    height: 2px;
    background: var(--gp-gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .25s ease;
}
.nav-link:hover::after { transform: scaleX(1); }
.nav-link-active {
    color: var(--gp-blue);
}
.nav-link-active::after { transform: scaleX(1); }

/* ===== Editorial helpers ===== */
.eyebrow {
    font-family: "Geist Mono", ui-monospace, monospace;
    font-size: 11px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(31,41,55,0.55);
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
}
.eyebrow::before {
    content: "";
    width: 1.75rem;
    height: 1px;
    background: var(--gp-gold);
}

.display-serif {
    font-family: "Fraunces", ui-serif, Georgia, serif;
    font-optical-sizing: auto;
    letter-spacing: -0.015em;
}

/* ===== Marquee ticker ===== */
.marquee {
    overflow: hidden;
    white-space: nowrap;
    position: relative;
}
.marquee__track {
    display: inline-flex;
    gap: 3rem;
    animation: marquee 38s linear infinite;
    padding-right: 3rem;
}
@keyframes marquee {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.marquee:hover .marquee__track { animation-play-state: paused; }

/* ===== Card lift ===== */
.card-lift {
    transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s ease, border-color .3s ease;
}
.card-lift:hover {
    transform: translateY(-4px);
    box-shadow: 0 22px 40px -28px rgba(0,63,122,0.35);
    border-color: rgba(0,85,165,0.35);
}

/* ===== Number plate ===== */
.plate {
    font-family: "Geist Mono", monospace;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.02em;
}

/* ===== Hero crosshair ===== */
.crosshair {
    position: absolute;
    width: 180px;
    height: 180px;
    pointer-events: none;
    opacity: 0.9;
}
.crosshair::before, .crosshair::after {
    content: "";
    position: absolute;
    background: var(--gp-gold);
}
.crosshair::before { left: 50%; top: 0; bottom: 0; width: 1px; transform: translateX(-0.5px); }
.crosshair::after  { top: 50%; left: 0; right: 0; height: 1px; transform: translateY(-0.5px); }
.crosshair span {
    position: absolute;
    inset: 25%;
    border: 1px solid rgba(255,204,0,0.9);
    border-radius: 50%;
}
.crosshair span::before {
    content: "";
    position: absolute;
    inset: 40%;
    border: 1px solid rgba(255,204,0,0.9);
    border-radius: 50%;
}

/* ===== Staggered reveal on load ===== */
.reveal { opacity: 0; transform: translateY(16px); animation: reveal .9s cubic-bezier(.2,.7,.2,1) forwards; }
.reveal-1 { animation-delay: .05s; }
.reveal-2 { animation-delay: .18s; }
.reveal-3 { animation-delay: .31s; }
.reveal-4 { animation-delay: .44s; }
.reveal-5 { animation-delay: .57s; }
@keyframes reveal {
    to { opacity: 1; transform: translateY(0); }
}

/* ===== Hero image wash ===== */
.hero-wash {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(110deg, rgba(0,63,122,0.88) 0%, rgba(0,63,122,0.55) 45%, rgba(0,63,122,0.20) 75%, transparent 100%),
        linear-gradient(0deg, rgba(0,20,40,0.45), transparent 60%);
}

/* ===== Rules (hairline dividers) ===== */
.hairline {
    height: 1px;
    background: linear-gradient(to right, rgba(31,41,55,0.22), rgba(31,41,55,0.05));
}
.hairline-gold { background: linear-gradient(to right, var(--gp-gold), transparent); }

/* ===== Tables ===== */
.results-table {
    width: 100%;
    border-collapse: collapse;
    font-variant-numeric: tabular-nums;
}
.results-table thead th {
    font-family: "Geist Mono", monospace;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 10.5px;
    color: rgba(31,41,55,0.6);
    padding: 0.85rem 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(31,41,55,0.18);
    background: transparent;
}
.results-table tbody td {
    padding: 1.1rem 1rem;
    font-size: 15px;
    border-bottom: 1px solid rgba(31,41,55,0.08);
    transition: background .2s ease;
}
.results-table tbody tr:hover td { background: rgba(0,85,165,0.035); }
.results-table tbody tr:nth-child(1) td { font-weight: 500; }
.results-table .total { font-family: "Geist Mono", monospace; font-weight: 600; color: var(--gp-blue-900); }

.pos-badge {
    display: inline-flex;
    width: 28px; height: 28px;
    align-items: center; justify-content: center;
    font-family: "Geist Mono", monospace;
    font-size: 12px;
    background: rgba(31,41,55,0.06);
    border-radius: 2px;
}
.pos-badge.pos-1 { background: var(--gp-gold); color: var(--gp-ink); font-weight: 600; }
.pos-badge.pos-2 { background: #D6D6D6; color: var(--gp-ink); font-weight: 600; }
.pos-badge.pos-3 { background: #D4A373; color: #fff; font-weight: 600; }

/* ===== Status pills ===== */
.pill {
    display: inline-flex; align-items: center; gap: 0.4rem;
    padding: 0.22rem 0.6rem;
    border-radius: 999px;
    font-family: "Geist Mono", monospace;
    font-size: 10.5px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    border: 1px solid currentColor;
    white-space: nowrap;
}
.pill-gold { color: #8a6b00; background: rgba(255,204,0,0.18); border-color: rgba(255,204,0,0.8); }
.pill-blue { color: var(--gp-blue); background: rgba(0,85,165,0.08); border-color: rgba(0,85,165,0.4); }
.pill-green { color: #2d5a3f; background: rgba(78,90,58,0.1); border-color: rgba(78,90,58,0.45); }

/* ===== Gallery diagonal grid ===== */
.diag-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: 80px;
    gap: 10px;
}
.diag-grid > * { overflow: hidden; position: relative; }
.diag-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s cubic-bezier(.2,.7,.2,1); }
.diag-grid > *:hover img { transform: scale(1.04); }

/* ===== Drop cap ===== */
.dropcap::first-letter {
    font-family: "Fraunces", serif;
    font-weight: 500;
    font-size: 4.8rem;
    float: left;
    line-height: 0.88;
    margin: 0.3rem 0.7rem -0.3rem 0;
    color: var(--gp-blue);
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex; align-items: center; gap: 0.6rem;
    padding: 0.85rem 1.3rem;
    font-weight: 500;
    font-size: 0.95rem;
    border-radius: 2px;
    transition: all .25s ease;
    white-space: nowrap;
}
.btn-primary { background: var(--gp-blue); color: #fff; }
.btn-primary:hover { background: var(--gp-blue-900); transform: translateY(-1px); box-shadow: 0 10px 24px -12px rgba(0,85,165,0.55); }
.btn-ghost { background: transparent; color: var(--gp-ink); border: 1px solid rgba(31,41,55,0.25); }
.btn-ghost:hover { border-color: var(--gp-ink); background: var(--gp-ink); color: var(--gp-cream); }
.btn-gold { background: var(--gp-gold); color: var(--gp-ink); font-weight: 600; }
.btn-gold:hover { background: #ffd933; transform: translateY(-1px); }

/* ===== Print/small map svg ===== */
.topo-pattern {
    background-image:
        radial-gradient(circle at 20% 30%, rgba(0,85,165,0.04) 0, transparent 40%),
        radial-gradient(circle at 85% 70%, rgba(255,204,0,0.06) 0, transparent 40%);
}

/* ===== Section numbers ===== */
.section-num {
    font-family: "Geist Mono", monospace;
    font-size: 11px;
    color: var(--gp-gold-700, #D9AE00);
    letter-spacing: 0.25em;
}

/* z-index over grain */
header, main, footer { position: relative; z-index: 2; }

/* Custom selection */
::selection { background: var(--gp-gold); color: var(--gp-ink); }

/* Subtle focus */
a:focus-visible, button:focus-visible { outline: 2px solid var(--gp-blue); outline-offset: 3px; }
