/*  ============================================================
    Bear Wolf Customs — site.css  v0.1
    Marketing layer for bearwolfcs.com
    ------------------------------------------------------------
    Built ENTIRELY on the DRP design tokens (drp.tokens.css,
    extracted verbatim from drp.v2.css v2.4). No literal colors,
    sizes, or spacing values below this header — if a value is
    not a token, it does not belong here.

    Pure CSS. No JS. Mobile nav uses the checkbox pattern so the
    site keeps the DRP "no script" contract.
    ============================================================ */

/* ── 1. Reset + base ──────────────────────────────────────── */
* { margin:0; padding:0; box-sizing:border-box; }

html { scroll-behavior:smooth; scroll-padding-top:5rem; }

body {
    font-family:var(--font-body);
    font-size:var(--text-base);
    line-height:var(--leading);
    color:var(--slate);
    background:var(--white);
    -webkit-font-smoothing:antialiased;
}

img { max-width:100%; display:block; }
a { color:var(--orange-deep); text-decoration:none; }
a:hover { color:var(--orange); text-decoration:underline; }

h1,h2,h3,h4 { line-height:var(--leading-tight); color:var(--black); font-weight:800; }
h2 { font-size:var(--text-h1); }
h3 { font-size:var(--text-h3); font-weight:700; }

.wrap, .wrap-wide { max-width:1180px; margin:0 auto; padding:0 var(--gutter); }

/*  Every section shares one left rail (.wrap = .wrap-wide), but prose and
    tables stay inside the DRP reading measure so long lines never run the
    full 1180px.                                                            */
.wrap .table-wrapper,
.wrap .faq-list,
.wrap .callout,
.wrap details { max-width:var(--content-max); }

.label {
    font-size:var(--text-xs);
    text-transform:uppercase;
    letter-spacing:0.15em;
    font-weight:700;
    color:var(--orange);
}

.mono { font-family:var(--font-mono); }

.rule {
    border:none; height:2px; width:80px;
    background:var(--orange);
    margin:var(--space-4) 0;
}
.rule.center { margin-left:auto; margin-right:auto; }

/* ── 2. Header / nav ──────────────────────────────────────── */
.site-header {
    position:sticky; top:0; z-index:1000;
    background:var(--black);
    border-bottom:3px solid var(--orange);
}

.nav {
    display:flex; align-items:center; gap:var(--space-4);
    max-width:1180px; margin:0 auto;
    padding:var(--space-3) var(--gutter);
}

.nav-brand { display:flex; align-items:center; gap:var(--space-3); margin-right:auto; }
.nav-brand img { height:40px; width:auto; }
.nav-brand .brand-name {
    font-size:var(--text-xs); font-weight:800;
    text-transform:uppercase; letter-spacing:0.18em;
    color:var(--white); line-height:var(--leading-tight);
}
.nav-brand .brand-sub {
    font-family:var(--font-mono);
    font-size:var(--text-xs); color:var(--gray-mid);
    letter-spacing:0.04em;
}

.nav-links { display:flex; align-items:center; gap:var(--space-4); list-style:none; }
.nav-links a {
    color:var(--gray-mid); text-decoration:none;
    font-size:var(--text-sm); font-weight:600;
    text-transform:uppercase; letter-spacing:0.08em;
    padding:var(--space-1) 0;
    border-bottom:2px solid transparent;
}
.nav-links a:hover { color:var(--white); border-bottom-color:var(--orange); text-decoration:none; }

/* mobile toggle — hidden on desktop */
.nav-toggle, .nav-toggle-label { display:none; }

/* ── 3. Buttons ───────────────────────────────────────────── */
.btn {
    display:inline-block;
    font-family:var(--font-body);
    font-size:var(--text-sm); font-weight:700;
    text-transform:uppercase; letter-spacing:0.08em;
    padding:var(--space-3) var(--space-5);
    border-radius:var(--radius);
    border:2px solid var(--orange);
    background:var(--orange); color:var(--white);
    text-decoration:none;
    transition:background .15s ease, border-color .15s ease, color .15s ease;
}
.btn:hover { background:var(--orange-deep); border-color:var(--orange-deep); color:var(--white); text-decoration:none; }
.btn-ghost { background:transparent; color:var(--orange); }
.btn-ghost:hover { background:var(--orange); border-color:var(--orange); color:var(--white); }
.btn-sm { padding:var(--space-2) var(--space-4); }

/* ── 4. Hero ──────────────────────────────────────────────── */
.hero {
    background:linear-gradient(160deg, var(--cover-grad-a) 0%, var(--cover-grad-b) 100%);
    color:var(--white);
    padding:calc(var(--space-6) * 1.5) var(--gutter);
    text-align:center;
}
.hero .brand-lockup {
    background:var(--black);
    border-top:4px solid var(--orange);
    border-left:1px solid var(--lockup-line);
    border-right:1px solid var(--lockup-line);
    border-bottom:1px solid var(--lockup-line);
    box-shadow:0 8px 32px rgba(0,0,0,0.55), 0 0 0 1px var(--orange-glow);
    padding:var(--space-5) var(--space-6) 1.75rem;
    margin:0 auto var(--space-5);
    display:inline-flex; flex-direction:column; align-items:center;
    min-width:min(320px, 90vw);
}
.hero .brand-lockup img { height:clamp(72px, 10vw, 120px); width:auto; margin-bottom:0.75rem; }
.hero .brand-lockup .brand-name {
    font-size:var(--text-xs); font-weight:700;
    text-transform:uppercase; letter-spacing:0.18em;
    color:var(--gray-lockup);
}
.hero h1 {
    font-size:var(--text-cover); color:var(--white);
    margin:var(--space-4) auto; max-width:820px;
}
.hero .subtitle {
    font-size:clamp(1rem, 0.95rem + 0.3vw, 1.1rem);
    color:var(--gray-bright);
    max-width:640px; margin:var(--space-4) auto 0; line-height:1.8;
}
.hero-actions { display:flex; gap:var(--space-3); justify-content:center; flex-wrap:wrap; margin-top:var(--space-5); }

/* ── 5. Trust strip ───────────────────────────────────────── */
.strip { background:var(--charcoal); color:var(--gray-bright); border-bottom:1px solid var(--line-dark); }
.strip ul {
    list-style:none; display:flex; flex-wrap:wrap; justify-content:center;
    gap:var(--space-3) var(--space-5);
    padding:var(--space-3) var(--gutter);
    max-width:1180px; margin:0 auto;
    font-family:var(--font-mono); font-size:var(--text-xs);
    text-transform:uppercase; letter-spacing:0.08em;
}
.strip li::before { content:"\2022"; color:var(--orange); margin-right:var(--space-2); }

/* ── 6. Sections ──────────────────────────────────────────── */
.section { padding:var(--space-6) 0; }
.section.alt { background:var(--light); }
.section.dark { background:var(--charcoal); color:var(--gray-bright); }
.section.dark h2, .section.dark h3 { color:var(--white); }

.section-title { margin-bottom:var(--space-2); }
.section-intro { max-width:640px; margin-bottom:var(--space-5); }
.section.dark .section-intro { color:var(--gray-bright); }

/* ── 7. Card grid ─────────────────────────────────────────── */
.grid { display:grid; gap:var(--space-4); }
.grid-3 { grid-template-columns:repeat(auto-fit, minmax(260px, 1fr)); }
.grid-2 { grid-template-columns:repeat(auto-fit, minmax(300px, 1fr)); }

.card {
    background:var(--white);
    border:1px solid var(--line);
    border-top:3px solid var(--orange);
    border-radius:var(--radius);
    padding:var(--space-4);
}
.card h3 { margin-bottom:var(--space-2); }
.card p { font-size:var(--text-sm); }
.card ul { margin:var(--space-3) 0 0 var(--space-4); font-size:var(--text-sm); }
.card li { margin-bottom:var(--space-1); }
.card .card-tag {
    font-family:var(--font-mono); font-size:var(--text-xs);
    color:var(--gray-dim); text-transform:uppercase; letter-spacing:0.08em;
    display:block; margin-bottom:var(--space-2);
}

/* ── 8. Numbered process steps ────────────────────────────── */
.steps { counter-reset:step; display:grid; gap:var(--space-4); grid-template-columns:repeat(auto-fit, minmax(220px, 1fr)); }
.step { position:relative; padding-top:var(--space-5); }
.step::before {
    counter-increment:step; content:"0" counter(step);
    position:absolute; top:0; left:0;
    font-family:var(--font-mono); font-size:var(--text-h2); font-weight:500;
    color:var(--orange);
}
.step h3 { font-size:var(--text-h4); text-transform:uppercase; letter-spacing:0.06em; margin-bottom:var(--space-2); }
.step p { font-size:var(--text-sm); }
.section.dark .step h3 { color:var(--white); }

/* ── 9. Spec table ────────────────────────────────────────── */
.table-wrapper { overflow-x:auto; border-radius:var(--radius); }
table { width:100%; border-collapse:collapse; font-size:var(--text-sm); background:var(--white); }
thead th {
    background:var(--charcoal); color:var(--white);
    text-align:left; padding:var(--space-3);
    font-size:var(--text-xs); text-transform:uppercase; letter-spacing:0.08em;
    border-bottom:2px solid var(--orange);
}
tbody td { padding:var(--space-3); border-bottom:1px solid var(--line); vertical-align:top; }
tbody tr:nth-child(even) td { background:var(--paper); }
tbody td:first-child { font-weight:600; color:var(--black); white-space:nowrap; }
td .mono, th .mono { font-family:var(--font-mono); }

/* ── 10. Callout ──────────────────────────────────────────── */
.callout {
    background:var(--orange-tint);
    border-left:3px solid var(--orange);
    border-radius:var(--radius-sm);
    padding:var(--space-4);
    font-size:var(--text-sm);
    margin:var(--space-4) 0;
}
.callout.amber { background:var(--amber-tint); border-left-color:var(--amber); color:var(--amber-deep); }
.callout strong { color:var(--black); }
.callout.amber strong { color:var(--amber-deep); }

/* ── 11. FAQ (details/summary, no JS) ─────────────────────── */
.faq details {
    border-bottom:1px solid var(--line);
    padding:var(--space-3) 0;
}
.faq summary {
    cursor:pointer; font-weight:700; color:var(--black);
    list-style:none; display:flex; align-items:baseline; gap:var(--space-3);
}
.faq summary::-webkit-details-marker { display:none; }
.faq summary::before { content:"+"; color:var(--orange); font-family:var(--font-mono); font-weight:500; }
.faq details[open] summary::before { content:"\2212"; }
.faq details p { margin-top:var(--space-3); font-size:var(--text-sm); }

/* ── 12. Contact ──────────────────────────────────────────── */
.contact-grid { display:grid; gap:var(--space-5); grid-template-columns:repeat(auto-fit, minmax(280px, 1fr)); align-items:start; }
.contact-list { list-style:none; }
.contact-list li { margin-bottom:var(--space-4); }
.contact-list .label { display:block; margin-bottom:var(--space-1); }
.contact-list a, .contact-list span {
    font-family:var(--font-mono); font-size:var(--text-base);
    color:var(--white); word-break:break-word;
}
.contact-list a:hover { color:var(--orange); }
.section.dark .callout { background:var(--black); border-left-color:var(--orange); color:var(--gray-bright); }
.section.dark .callout strong { color:var(--white); }

/* ── 13. Footer ───────────────────────────────────────────── */
.site-footer {
    background:var(--black); color:var(--gray-dim);
    border-top:3px solid var(--orange);
    padding:var(--space-5) 0;
    font-size:var(--text-xs);
}
.footer-inner { display:flex; flex-wrap:wrap; gap:var(--space-4); align-items:center; justify-content:space-between; }
.site-footer a { color:var(--gray-mid); }
.site-footer a:hover { color:var(--orange); }
.site-footer img { height:32px; width:auto; }
.footer-legal { font-family:var(--font-mono); letter-spacing:0.04em; }

/* ── 14. Responsive ───────────────────────────────────────── */
@media (max-width:900px) {
    .nav-toggle-label {
        display:block; cursor:pointer;
        color:var(--white); font-size:var(--text-h3); line-height:1;
        padding:var(--space-2);
    }
    .nav { flex-wrap:wrap; }
    .nav-links {
        display:none; width:100%; flex-direction:column; align-items:flex-start;
        gap:var(--space-3); padding:var(--space-3) 0 var(--space-2);
    }
    .nav-toggle:checked ~ .nav-links { display:flex; }
    .nav-links a { border-bottom:none; }
    .hero { padding:var(--space-6) var(--gutter); }
}

@media (max-width:520px) {
    .hero-actions .btn { width:100%; text-align:center; }
    .footer-inner { justify-content:flex-start; }
}

/* ── 15. Print ────────────────────────────────────────────── */
@media print {
    .site-header, .hero-actions, .nav-toggle-label { display:none; }
    body { color:var(--ink); font-size:10pt; }
    .hero, .section.dark, .strip { background:var(--white) !important; color:var(--ink) !important; }
    .hero h1, .section.dark h2, .section.dark h3 { color:var(--ink) !important; }
    .contact-list a, .contact-list span { color:var(--ink) !important; }
    .card { break-inside:avoid; }
}

/* ── 16. Bio block (one-pager: portrait + background) ─────── */
/*  Added 2026-08-25 for the personal home page. Tokens only.  */
.bio-grid {
    display:grid;
    gap:var(--space-5);
    grid-template-columns:minmax(220px, 300px) minmax(320px, 1fr);
    align-items:start;
}

.portrait { margin:0; }
.portrait img {
    width:100%;
    border:1px solid var(--line);
    border-top:3px solid var(--orange);
    border-radius:var(--radius);
    background:var(--light);
    aspect-ratio:1 / 1;
    object-fit:cover;
}
/*  Placeholder state: the logo is not a photo, so it sits inside the
    frame with air around it instead of being cropped to fill.        */
.portrait img.is-placeholder {
    object-fit:contain;
    padding:var(--space-5);
    background:var(--paper);
}
.portrait figcaption {
    font-size:var(--text-sm);
    color:var(--gray-dim);
    padding-top:var(--space-3);
    line-height:var(--leading-tight);
}
.portrait figcaption strong { color:var(--black); font-size:var(--text-base); }
.portrait .pending {
    display:block;
    margin-top:var(--space-2);
    font-family:var(--font-mono);
    font-size:var(--text-xs);
    text-transform:uppercase;
    letter-spacing:0.08em;
    color:var(--orange);
}

.bio-body { max-width:var(--content-max); }
.bio-body p { margin-bottom:var(--space-4); }
.bio-body .lede {
    font-size:clamp(1.05rem, 1rem + 0.3vw, 1.2rem);
    line-height:1.7;
    color:var(--black);
}

.bio-list { list-style:none; margin:0 0 var(--space-4); }
.bio-list li {
    position:relative;
    padding-left:var(--space-4);
    margin-bottom:var(--space-3);
    font-size:var(--text-sm);
}
.bio-list li::before {
    content:"";
    position:absolute;
    left:0; top:0.55em;
    width:var(--space-2); height:2px;
    background:var(--orange);
}
.bio-list strong { color:var(--black); }

@media (max-width:760px) {
    .bio-grid { grid-template-columns:1fr; }
    .portrait { max-width:320px; }
}

/* ── 17. Work gallery (one-pager: pictures over copy) ─────── */
/*  Added 2026-08-25. Tokens only. Placeholder slots are styled
    to read as intentional, not as broken images.               */
.gallery {
    display:grid;
    gap:var(--space-4);
    grid-template-columns:repeat(auto-fit, minmax(280px, 1fr));
    margin-bottom:var(--space-5);
}

.shot { margin:0; }
.shot img,
.shot .slot {
    width:100%;
    aspect-ratio:4 / 3;
    border:1px solid var(--line);
    border-top:3px solid var(--orange);
    border-radius:var(--radius);
    object-fit:cover;
    background:var(--charcoal);
}
.shot figcaption {
    padding-top:var(--space-2);
    font-size:var(--text-sm);
    color:var(--gray-dim);
    line-height:var(--leading-tight);
}

/*  Empty slot: a numbered plate, so an unfilled grid still looks
    deliberate while the photos are being taken.                 */
.shot .slot {
    display:flex; align-items:center; justify-content:center;
    background:var(--charcoal);
}
.shot .slot span {
    font-family:var(--font-mono);
    font-size:var(--text-h2);
    color:var(--orange);
    opacity:0.55;
    letter-spacing:0.08em;
}
.shot.is-empty figcaption {
    font-family:var(--font-mono);
    font-size:var(--text-xs);
    text-transform:uppercase;
    letter-spacing:0.08em;
    color:var(--gray-dim);
}

/* ── 18. Hero lineage line + video tiles ──────────────────── */
/*  Added 2026-08-25.                                          */
.hero .lineage {
    font-family:var(--font-mono);
    font-size:var(--text-sm);
    color:var(--gray-bright);
    max-width:560px;
    margin:var(--space-4) auto 0;
    padding-top:var(--space-4);
    border-top:2px solid var(--orange);
    line-height:1.7;
}

/*  Video tiles sit in the same grid cell shape as the photos.  */
.shot video {
    width:100%;
    aspect-ratio:4 / 3;
    border:1px solid var(--line);
    border-top:3px solid var(--orange);
    border-radius:var(--radius);
    object-fit:cover;
    background:var(--charcoal);
    display:block;
}

/*  Shot-list captions: the bold half names the subject.        */
.shot figcaption strong { color:var(--black); }
.shot.is-empty figcaption { text-transform:none; letter-spacing:0; }
.shot.is-empty figcaption strong {
    font-family:var(--font-body);
    text-transform:uppercase;
    letter-spacing:0.08em;
}

/*  Motion is decorative here — respect the OS setting.         */
@media (prefers-reduced-motion:reduce) {
    .shot video { animation:none; }
}

/* ── 19. Hero portrait + 3-up record grid ─────────────────── */
/*  Added 2026-08-25: the headshot leads the page, and the work
    gallery became three pieces of evidence rather than six.    */
.hero-portrait {
    margin:0 auto var(--space-5);
    max-width:min(220px, 60vw);
}
.hero-portrait img {
    width:100%;
    aspect-ratio:1 / 1;
    object-fit:cover;
    border-top:4px solid var(--orange);
    border-left:1px solid var(--lockup-line);
    border-right:1px solid var(--lockup-line);
    border-bottom:1px solid var(--lockup-line);
    background:var(--black);
    box-shadow:0 8px 32px rgba(0,0,0,0.55), 0 0 0 1px var(--orange-glow);
}
.hero-portrait img.is-placeholder {
    object-fit:contain;
    padding:var(--space-4);
}
.hero-portrait figcaption {
    padding-top:var(--space-3);
    font-family:var(--font-mono);
    font-size:var(--text-xs);
    letter-spacing:0.06em;
    color:var(--gray-mid);
    line-height:var(--leading-tight);
}
.hero-portrait figcaption strong { color:var(--white); }
.hero-portrait .pending {
    display:block;
    margin-top:var(--space-1);
    text-transform:uppercase;
    letter-spacing:0.08em;
    color:var(--orange);
}

/*  Three pieces of evidence read better as a fixed 3-up than as
    an auto-fit grid that can strand one tile on its own row.    */
.gallery-3 { grid-template-columns:repeat(auto-fit, minmax(260px, 1fr)); }

/*  The bio no longer shares a row with a portrait.              */
.bio-solo { max-width:var(--content-max); }

/* ── 20. Record captions carry real sentences now ─────────── */
.shot figcaption strong { display:inline-block; margin-bottom:var(--space-1); }
.shot.is-empty figcaption { font-family:var(--font-body); font-size:var(--text-sm); }
/*  A still-empty tile must not restyle its own title - all three headings
    have to match whether or not the photo has landed yet.                 */
.shot.is-empty figcaption strong {
    font-family:var(--font-body);
    font-size:var(--text-base);
    text-transform:none;
    letter-spacing:normal;
}
.shot figcaption .pending {
    display:block;
    margin-top:var(--space-2);
    font-family:var(--font-mono);
    font-size:var(--text-xs);
    text-transform:uppercase;
    letter-spacing:0.08em;
    color:var(--orange);
}

/* ── 21. Named record tiles (one face per generation) ─────── */
.shot figcaption .who {
    display:block;
    font-family:var(--font-mono);
    font-size:var(--text-xs);
    text-transform:uppercase;
    letter-spacing:0.1em;
    color:var(--orange);
    margin-bottom:var(--space-1);
}
.shot figcaption strong { display:block; margin-bottom:var(--space-2); }

/*  For a tall photo: <figure class="shot portrait-crop">        */
.shot.portrait-crop img { aspect-ratio:3 / 4; }
