/* =========================================================
   Orcas Media Lab
   Design language adapted from the Modulify "Oriel" template:
   warm cream + ink, Instrument Serif display with ember italics,
   Instrument Sans body, IBM Plex Mono eyebrows.
   ========================================================= */

:root {
    --background: #f7f3ee;
    --foreground: #1a1511;
    --card: #fcfaf6;
    --muted-fg: #60564e;
    --border: #dcd5cc;
    --sand: #ede5db;
    --ink: #120d0a;
    --ink-2: #1b1511;
    --ink-deep: #0c0907;
    --ink-fg: #f4efe7;
    --ink-muted: rgba(244, 239, 231, 0.64);
    --ink-line: rgba(244, 239, 231, 0.12);
    --copper: #b04f1e;
    --ember: #f88534;
    --ember-deep: #b04f1e;
    --product-bg: #f4efe4;

    --font-sans: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
    --font-serif: "Instrument Serif", ui-serif, Georgia, "Times New Roman", serif;
    --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

    --radius: 1rem;
    --radius-lg: 1.75rem;
    --gutter: clamp(20px, 3.2vw, 44px);
    --maxw: 1440px;
    --header-h: 72px;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 8px);
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
}

body {
    margin: 0;
    background: var(--background);
    color: var(--foreground);
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p, figure, blockquote, ol, ul, dl, dd { margin: 0; }
ul, ol { list-style: none; padding: 0; }
em { font-style: italic; }

:focus-visible {
    outline: 2px solid var(--ember);
    outline-offset: 3px;
    border-radius: 6px;
}

.sr-only {
    position: absolute !important;
    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: 16px; top: -60px;
    z-index: 100;
    padding: 10px 16px;
    background: var(--ink-fg);
    color: var(--ink);
    border-radius: 999px;
    font-weight: 500;
    transition: top 0.2s;
}
.skip-link:focus { top: 12px; }

.container {
    width: min(100% - var(--gutter) * 2, var(--maxw));
    margin-inline: auto;
}

.mono { font-family: var(--font-mono); font-weight: 400; }
.muted { color: var(--muted-fg); }
.ink .muted, .site-footer .muted { color: var(--ink-muted); }

/* ---------- Surfaces ---------- */
.ink { background: var(--ink); color: var(--ink-fg); }
.cream { background: var(--background); color: var(--foreground); }
.sand { background: var(--sand); color: var(--foreground); }

.section { padding-block: clamp(88px, 11vw, 168px); }

/* ---------- Type ---------- */
.display-xl,
.display-lg,
.display,
.acc-name,
.bench-name,
.shot-title,
.brand-name,
.footer-wordmark {
    font-family: var(--font-serif);
    font-weight: 400;
    letter-spacing: -0.01em;
}

.display-xl {
    font-size: clamp(4rem, 1.6rem + 8.4vw, 9.5rem);
    line-height: 0.88;
    letter-spacing: -0.025em;
}
.display-lg {
    font-size: clamp(3rem, 1.6rem + 5vw, 6.5rem);
    line-height: 0.95;
    letter-spacing: -0.02em;
}
.display {
    font-size: clamp(2.6rem, 1.5rem + 3.6vw, 5.25rem);
    line-height: 0.98;
    letter-spacing: -0.02em;
}

.display em,
.display-lg em,
.display-xl em { color: var(--copper); }
.ink .display em,
.ink .display-lg em,
.ink .display-xl em { color: var(--ember); }

.lead {
    font-size: clamp(1.02rem, 0.95rem + 0.3vw, 1.15rem);
    line-height: 1.6;
    color: var(--muted-fg);
    max-width: 34rem;
}
.ink .lead { color: var(--ink-muted); }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--copper);
    margin-bottom: 22px;
}
.ink .eyebrow { color: var(--ember); }
.eyebrow .rule {
    display: inline-block;
    width: 28px; height: 1px;
    background: currentColor;
    opacity: 0.55;
}

.eyebrow-sm {
    font-size: 0.68rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.split-head {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    align-items: end;
    gap: 32px 64px;
    margin-bottom: clamp(56px, 7vw, 96px);
}
.split-head .lead { justify-self: end; }

/* ---------- Buttons & links ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1;
    white-space: nowrap;
    transition: background-color 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn .arrow { transition: transform 0.3s var(--ease); }
.btn:hover .arrow { transform: translate(2px, -2px); }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: 0.88rem; }

.btn-light { background: var(--ink-fg); color: var(--ink); }
.btn-light:hover { background: #fff; }

.btn-dark { background: var(--ink); color: var(--ink-fg); }
.btn-dark:hover { background: #2a211b; }

.btn-glass {
    background: rgba(244, 239, 231, 0.08);
    color: var(--ink-fg);
    border: 1px solid rgba(244, 239, 231, 0.22);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
}
.btn-glass:hover { background: rgba(244, 239, 231, 0.16); }

.btn-outline {
    border: 1px solid rgba(26, 21, 17, 0.25);
    color: var(--foreground);
}
.btn-outline:hover { background: rgba(26, 21, 17, 0.06); border-color: rgba(26, 21, 17, 0.45); }

.btn-static { cursor: default; }
.btn-static:active { transform: none; }
.btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-row-center { justify-content: center; }

.text-link {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    padding-bottom: 4px;
    background: linear-gradient(currentColor, currentColor) left bottom / 100% 1px no-repeat;
    transition: background-size 0.4s var(--ease), color 0.3s;
}
.text-link:hover { background-size: 0% 1px; background-position: right bottom; }

.dot {
    display: inline-block;
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--ember);
    box-shadow: 0 0 0 3px rgba(248, 133, 52, 0.2);
}

.sep { opacity: 0.45; margin-inline: 6px; }

.glass-chip {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(18, 13, 10, 0.5);
    border: 1px solid rgba(244, 239, 231, 0.16);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    color: var(--ink-fg);
    font-size: 0.68rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.pill-tag {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    border: 1px solid rgba(244, 239, 231, 0.2);
    border-radius: 999px;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(244, 239, 231, 0.82);
    background: rgba(18, 13, 10, 0.35);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}
.pill-tag .sep { margin-inline: 0; }

.row-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-mono);
    font-size: 0.64rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding: 5px 10px;
    border-radius: 999px;
    border: 1px solid rgba(248, 133, 52, 0.35);
    color: var(--ember);
    white-space: nowrap;
}

/* ---------- Header ---------- */
.site-header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 50;
    color: var(--ink-fg);
    border-bottom: 1px solid transparent;
    transition: background-color 0.5s var(--ease), border-color 0.5s var(--ease), backdrop-filter 0.5s;
}
.site-header.is-scrolled {
    background: rgba(18, 13, 10, 0.9);
    border-bottom-color: var(--ink-line);
    -webkit-backdrop-filter: blur(16px) saturate(1.2);
    backdrop-filter: blur(16px) saturate(1.2);
}
.site-header.menu-open {
    background: var(--ink);
    border-bottom-color: var(--ink-line);
}

.header-inner {
    height: var(--header-h);
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 24px;
}

.brand { display: inline-flex; align-items: center; gap: 12px; justify-self: start; }
.brand img { width: 34px; height: 34px; border-radius: 50%; }
.brand-name { font-size: 1.45rem; line-height: 1; letter-spacing: -0.005em; }

.primary-nav ul { display: flex; gap: 40px; }
.primary-nav a {
    font-size: 0.92rem;
    color: rgba(244, 239, 231, 0.74);
    transition: color 0.25s;
    position: relative;
}
.primary-nav a::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: -6px;
    height: 1px;
    background: var(--ember);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s var(--ease);
}
.primary-nav a:hover,
.primary-nav a[aria-current="page"] { color: var(--ink-fg); }
.primary-nav a:hover::after,
.primary-nav a[aria-current="page"]::after { transform: scaleX(1); }

.header-cta { justify-self: end; }

.menu-toggle {
    display: none;
    justify-self: end;
    width: 44px; height: 44px;
    border-radius: 999px;
    border: 1px solid rgba(244, 239, 231, 0.22);
    position: relative;
}
.menu-toggle-bar {
    position: absolute;
    left: 13px; right: 13px;
    height: 1.5px;
    background: currentColor;
    transition: transform 0.35s var(--ease), top 0.35s var(--ease);
}
.menu-toggle-bar:nth-of-type(2) { top: 17px; }
.menu-toggle-bar:nth-of-type(3) { top: 25px; }
.menu-open .menu-toggle-bar:nth-of-type(2) { top: 21px; transform: rotate(45deg); }
.menu-open .menu-toggle-bar:nth-of-type(3) { top: 21px; transform: rotate(-45deg); }

.mobile-menu {
    border-top: 1px solid var(--ink-line);
    height: calc(100svh - var(--header-h));
    overflow-y: auto;
    padding: 24px var(--gutter) 40px;
}
.mobile-menu a {
    display: flex;
    align-items: baseline;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid var(--ink-line);
    font-family: var(--font-serif);
    font-size: 2.5rem;
    line-height: 1.1;
}
.mobile-menu a[aria-current="page"] { color: var(--ember); }
.mobile-menu .mono { font-size: 0.72rem; color: var(--ember); letter-spacing: 0.14em; }

/* ---------- Home hero ---------- */
.hero {
    position: relative;
    isolation: isolate;
    min-height: max(100svh, 40rem);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
    background: #050404;
}

.hero-media {
    position: absolute;
    inset: 0;
    z-index: -2;
}
.hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 72% 50%;
    filter: sepia(0.28) saturate(1.15) brightness(1.02);
}

.hero-shade {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(60% 70% at 70% 48%, rgba(248, 133, 52, 0.08), transparent 60%),
        linear-gradient(90deg, rgba(8, 6, 5, 0.9) 0%, rgba(8, 6, 5, 0.55) 34%, rgba(8, 6, 5, 0) 62%),
        linear-gradient(0deg, rgba(8, 6, 5, 0.7) 0%, rgba(8, 6, 5, 0) 34%),
        linear-gradient(180deg, rgba(8, 6, 5, 0.55) 0%, rgba(8, 6, 5, 0) 18%);
}

.hero-inner {
    position: relative;
    padding-top: calc(var(--header-h) + 48px);
    padding-bottom: clamp(64px, 12vh, 128px);
}

.hero-copy { max-width: 44rem; }
.hero-copy .pill-tag { margin-bottom: 30px; }
.hero-copy h1 { margin-bottom: 30px; }
.hero-copy h1 .line { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.hero-copy h1 .line > * { display: inline-block; }
.hero-copy h1 em { color: var(--ember); padding-right: 0.06em; }
.hero-lead {
    max-width: 30rem;
    color: rgba(244, 239, 231, 0.76);
    font-size: clamp(1.02rem, 0.95rem + 0.3vw, 1.15rem);
    margin-bottom: 34px;
}

.hero-caption {
    position: absolute;
    right: 0;
    bottom: clamp(64px, 12vh, 128px);
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(244, 239, 231, 0.55);
}
.hero-caption::before {
    content: "";
    width: 28px; height: 1px;
    background: currentColor;
}

/* ---------- Inner-page hero ---------- */
.page-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding-top: calc(var(--header-h) + clamp(72px, 11vw, 160px));
    padding-bottom: clamp(96px, 11vw, 160px);
}
/* Soft ember light from the top-right, echoing the eclipse on the home page */
.page-hero::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0;
    background:
        radial-gradient(42% 70% at 88% 0%, rgba(248, 133, 52, 0.13), transparent 70%),
        radial-gradient(30% 45% at 96% 8%, rgba(176, 79, 30, 0.16), transparent 70%);
    pointer-events: none;
}
.page-hero .split-head { margin-bottom: clamp(48px, 6vw, 80px); }

/* ---------- Accordion (brands & projects) ---------- */
.acc { border-bottom: 1px solid var(--ink-line); }
.acc-item { border-top: 1px solid var(--ink-line); }
.acc-summary {
    display: grid;
    grid-template-columns: 64px minmax(0, 1.1fr) minmax(0, 1fr) 170px 44px;
    align-items: center;
    gap: 16px;
    padding: 26px 0;
    cursor: pointer;
    list-style: none;
}
.acc-summary::-webkit-details-marker { display: none; }
.acc-summary:focus-visible { outline-offset: 6px; }
.acc-num { font-size: 0.72rem; color: var(--ink-muted); letter-spacing: 0.14em; }
.acc-name {
    font-size: clamp(2rem, 1.4rem + 1.8vw, 3.25rem);
    line-height: 1.05;
    transition: color 0.3s, transform 0.5s var(--ease);
}
.acc-meta { color: var(--ink-muted); font-size: 0.95rem; }
.acc-summary .row-status { justify-self: end; }
a.row-status { transition: background-color 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease); }
a.row-status:hover { background: var(--ember); border-color: var(--ember); color: var(--ink); }
.acc-icon {
    grid-column: -2;
    justify-self: end;
    position: relative;
    width: 44px; height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(244, 239, 231, 0.22);
    transition: background-color 0.35s var(--ease), border-color 0.35s var(--ease), color 0.35s var(--ease), transform 0.5s var(--ease);
}
.acc-icon::before,
.acc-icon::after {
    content: "";
    position: absolute;
    left: 50%; top: 50%;
    width: 14px; height: 1.5px;
    margin: -0.75px 0 0 -7px;
    background: currentColor;
}
.acc-icon::after { transform: rotate(90deg); }
.acc-summary:hover .acc-name { color: var(--ember); transform: translateX(6px); }
.acc-summary:hover .acc-icon { border-color: var(--ember); }
.acc-item[open] .acc-name { color: var(--ember); }
.acc-item[open] .acc-icon {
    background: var(--ink-fg);
    border-color: var(--ink-fg);
    color: var(--ink);
    transform: rotate(45deg);
}

.acc-panel { padding: 8px 0 clamp(48px, 6vw, 80px); }
.acc-item[open] .acc-panel { animation: panel-in 0.7s var(--ease); }
@keyframes panel-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.acc-intro { color: var(--ink-muted); font-size: 1.05rem; max-width: 40rem; margin-bottom: 32px; }

/* Smooth open/close where the browser supports animating to height: auto */
@supports (interpolate-size: allow-keywords) {
    :root { interpolate-size: allow-keywords; }
    .acc-item::details-content {
        block-size: 0;
        overflow-y: clip;
        transition: block-size 0.6s var(--ease), content-visibility 0.6s allow-discrete;
    }
    .acc-item[open]::details-content { block-size: auto; }
}

/* ---------- Venture panel (one layout for every brand) ---------- */
.venture {
    display: grid;
    grid-template-columns: minmax(0, 440px) minmax(0, 1fr);
    align-items: center;
    gap: clamp(32px, 6vw, 96px);
}
.venture-media {
    position: relative;
    aspect-ratio: 4 / 5;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--ink-2);
    border: 1px solid var(--ink-line);
}
.venture-media img { width: 100%; height: 100%; object-fit: cover; }
.venture-media.is-product { background: var(--product-bg); }
.venture-media.is-product img { object-fit: contain; padding: 12%; }
.venture-media figcaption { position: absolute; left: 16px; bottom: 16px; }

.venture-title {
    font-family: var(--font-serif);
    font-weight: 400;
    font-size: clamp(2.3rem, 1.6rem + 2.2vw, 3.75rem);
    line-height: 1;
    letter-spacing: -0.015em;
    margin-bottom: 20px;
}
.venture-title em { color: var(--ember); }
.venture-lead { color: var(--ink-muted); font-size: 1.05rem; max-width: 36rem; margin-bottom: 32px; }

.venture-facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 32px;
    margin-bottom: 36px;
}
.venture-facts li { padding: 16px 0; border-top: 1px solid var(--ink-line); }
.venture-facts strong { display: block; font-weight: 500; margin-bottom: 4px; }
.venture-facts span { color: var(--ink-muted); font-size: 0.92rem; line-height: 1.5; }

.venture-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
.venture-note { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-muted); }

/* ---------- Principles (about) ---------- */
.principles {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.principles li {
    padding-top: 22px;
    border-top: 1px solid var(--foreground);
}
.principles .mono { font-size: 0.72rem; color: var(--copper); letter-spacing: 0.14em; }
.principles h3 {
    font-family: var(--font-serif);
    font-weight: 400;
    font-size: clamp(1.6rem, 1.3rem + 0.8vw, 2.1rem);
    line-height: 1.08;
    margin: 36px 0 12px;
}
.principles p { color: var(--muted-fg); font-size: 0.95rem; max-width: 22rem; }

/* ---------- About outro (home) ---------- */
.about-outro {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 28px 48px;
    margin-top: clamp(64px, 8vw, 112px);
    padding: clamp(28px, 4vw, 48px);
    border-radius: var(--radius-lg);
    background: var(--sand);
}
.about-outro p {
    font-family: var(--font-serif);
    font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.4rem);
    line-height: 1.12;
    letter-spacing: -0.01em;
    max-width: 28ch;
}
.about-outro p em { color: var(--copper); }

/* ---------- Photography ---------- */
.triptych {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.shot-open {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 5;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: #000;
    border: 1px solid var(--ink-line);
    cursor: zoom-in;
}
.shot-open img {
    width: 100%; height: 100%;
    object-fit: cover;
    transform: scale(1.02);
    transition: transform 1.4s var(--ease);
}
.shot-open:hover img { transform: scale(1.08); }
.shot figcaption {
    display: grid;
    grid-template-columns: 36px 1fr auto;
    align-items: baseline;
    padding: 18px 4px 0;
}
.shot figcaption .mono { font-size: 0.72rem; color: var(--ember); }
.shot-title { font-size: 1.6rem; line-height: 1.1; }
.shot figcaption .shot-meta { font-size: 0.68rem; letter-spacing: 0.14em; color: var(--ink-muted); text-transform: uppercase; }

/* ---------- Workbench (hobby code) ---------- */
.bench { border-bottom: 1px solid var(--ink-line); }
.bench li { border-top: 1px solid var(--ink-line); }
.bench a {
    display: grid;
    grid-template-columns: 64px minmax(0, 0.9fr) minmax(0, 1.6fr) minmax(0, 0.7fr) 32px;
    align-items: baseline;
    gap: 16px 24px;
    padding: 24px 0;
}
.bench .bench-num { font-size: 0.72rem; color: var(--ember); letter-spacing: 0.14em; }
.bench-name { font-size: clamp(1.6rem, 1.3rem + 0.8vw, 2.1rem); line-height: 1.1; transition: color 0.3s; }
.bench-desc { color: var(--ink-muted); font-size: 0.97rem; }
.bench .bench-tags { font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-muted); }
.bench-arrow { justify-self: end; color: var(--ink-muted); transition: transform 0.4s var(--ease), color 0.3s; }
.bench a:hover .bench-name,
.bench a:hover .bench-arrow { color: var(--ember); }
.bench a:hover .bench-arrow { transform: translate(3px, -3px); }
.bench-more { margin-top: 32px; }

/* ---------- Contact CTA ---------- */
.cta {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    padding-block: clamp(120px, 14vw, 200px) clamp(140px, 16vw, 240px);
    text-align: center;
}
.cta-glow {
    position: absolute;
    z-index: -1;
    left: 50%;
    bottom: 0;
    width: min(1400px, 150vw);
    aspect-ratio: 1;
    transform: translate(-50%, 86%);
    border-radius: 50%;
    background: var(--ink-deep);
    box-shadow:
        0 0 0 1px rgba(248, 133, 52, 0.55),
        0 -8px 40px 0 rgba(248, 133, 52, 0.35),
        0 -40px 160px 20px rgba(248, 133, 52, 0.18),
        0 -120px 320px 80px rgba(176, 79, 30, 0.18);
}
.cta-inner { display: flex; flex-direction: column; align-items: center; }
.cta h2 { max-width: 14ch; margin-bottom: 26px; }
.cta .lead { margin: 0 auto 38px; text-align: center; }

/* ---------- Footer ---------- */
.site-footer {
    background: var(--ink-deep);
    color: var(--ink-fg);
    border-top: 1px solid var(--ink-line);
    padding-top: clamp(64px, 8vw, 96px);
    overflow: hidden;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
    gap: 40px;
}
.footer-brand p { color: var(--ink-muted); max-width: 22rem; margin-top: 18px; font-size: 0.95rem; }
.footer-col .eyebrow-sm { color: var(--ember); margin-bottom: 18px; }
.footer-col li + li { margin-top: 10px; }
.footer-col a { color: rgba(244, 239, 231, 0.82); transition: color 0.25s; }
.footer-col a:hover { color: var(--ember); }

.footer-wordmark {
    margin-top: clamp(56px, 8vw, 112px);
    font-size: clamp(3rem, 17.4vw, 16.5rem);
    line-height: 0.8;
    letter-spacing: -0.035em;
    white-space: nowrap;
    color: transparent;
    background: linear-gradient(180deg, rgba(244, 239, 231, 0.16) 0%, rgba(244, 239, 231, 0.02) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    user-select: none;
    text-align: center;
}
.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
    padding: 24px 0 32px;
    border-top: 1px solid var(--ink-line);
    font-size: 0.85rem;
    color: var(--ink-muted);
}

/* ---------- Lightbox ---------- */
.lightbox {
    width: min(92vw, 1100px);
    max-height: 92vh;
    padding: 0;
    border: 0;
    border-radius: var(--radius-lg);
    background: #000;
    color: var(--ink-fg);
    overflow: hidden;
}
.lightbox::backdrop { background: rgba(8, 6, 5, 0.86); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.lightbox img { width: 100%; max-height: calc(92vh - 56px); object-fit: contain; background: #000; }
.lightbox-caption { padding: 16px 20px; font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-muted); }
.lightbox-close {
    position: absolute;
    top: 14px; right: 14px;
    width: 42px; height: 42px;
    border-radius: 999px;
    font-size: 1.5rem;
    line-height: 1;
    background: rgba(18, 13, 10, 0.6);
    border: 1px solid var(--ink-line);
    color: var(--ink-fg);
}

/* =========================================================
   Motion (only when <html class="motion-ok">)
   ========================================================= */
.motion-ok .hero-rise {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 1s var(--ease), transform 1.1s var(--ease);
}
.motion-ok .hero h1 .hero-rise { transform: translateY(105%); }
.motion-ok .hero-media img {
    transform: scale(1.08);
    opacity: 0;
    transition: transform 2.6s var(--ease), opacity 1.6s ease;
}
.motion-ok .hero-caption {
    opacity: 0;
    transition: opacity 1.2s var(--ease) 1s;
}
.motion-ok .hero.is-in .hero-media img { transform: scale(1); opacity: 1; }
.motion-ok .hero.is-in .hero-rise { opacity: 1; transform: none; }
.motion-ok .hero.is-in .hero-caption { opacity: 1; }
.motion-ok .hero.is-in .pill-tag { transition-delay: 0.15s; }
.motion-ok .hero.is-in h1 .line:nth-child(1) .hero-rise { transition-delay: 0.25s; }
.motion-ok .hero.is-in h1 .line:nth-child(2) .hero-rise { transition-delay: 0.37s; }
.motion-ok .hero.is-in .hero-lead { transition-delay: 0.55s; }
.motion-ok .hero.is-in .btn-row { transition-delay: 0.65s; }

.motion-ok [data-reveal],
.motion-ok [data-reveal-group] > * {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.9s var(--ease), transform 1s var(--ease);
}
.motion-ok [data-reveal].is-visible,
.motion-ok [data-reveal-group].is-visible > * { opacity: 1; transform: none; }
.motion-ok [data-reveal-group].is-visible > :nth-child(2) { transition-delay: 0.08s; }
.motion-ok [data-reveal-group].is-visible > :nth-child(3) { transition-delay: 0.16s; }
.motion-ok [data-reveal-group].is-visible > :nth-child(4) { transition-delay: 0.24s; }
.motion-ok [data-reveal-group].is-visible > :nth-child(5) { transition-delay: 0.32s; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1024px) {
    .primary-nav,
    .header-cta { display: none; }
    .menu-toggle { display: block; }
    .header-inner { grid-template-columns: 1fr auto; }

    .split-head { grid-template-columns: minmax(0, 1fr); }
    .split-head .lead { justify-self: start; }

    .principles { grid-template-columns: repeat(2, 1fr); row-gap: 48px; }

    .bench a { grid-template-columns: 56px minmax(0, 1fr) minmax(0, 1.6fr) 32px; }
    .bench .bench-tags { grid-column: 3; grid-row: 2; }

    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
    .hero-caption { display: none; }

    .acc-summary { grid-template-columns: 44px minmax(0, 1fr) auto 44px; }
    .acc-meta { display: none; }

    .venture { grid-template-columns: minmax(0, 1fr); }
    .venture-media { width: min(100%, 420px); }

    .triptych { grid-template-columns: 1fr; }
    .shot-open { aspect-ratio: 1; }

    .bench a { grid-template-columns: 44px minmax(0, 1fr) 24px; row-gap: 6px; }
    .bench-name { grid-column: 2; grid-row: 1; }
    .bench-desc { grid-column: 2; grid-row: 2; }
    .bench .bench-tags { grid-column: 2; grid-row: 3; }
    .bench-arrow { grid-column: 3; grid-row: 1; }
}

@media (max-width: 600px) {
    :root { --header-h: 64px; }
    .brand-name { font-size: 1.3rem; }
    .brand img { width: 30px; height: 30px; }

    .hero { min-height: 100svh; }
    .hero-media img { object-position: 76% 38%; }
    .hero-shade {
        background:
            linear-gradient(0deg, var(--ink) 0%, rgba(18, 13, 10, 0.88) 38%, rgba(18, 13, 10, 0.2) 70%),
            linear-gradient(180deg, rgba(8, 6, 5, 0.6) 0%, rgba(8, 6, 5, 0) 20%);
    }
    .hero-inner { padding-bottom: 40px; }
    .hero-copy .pill-tag { font-size: 0.6rem; letter-spacing: 0.12em; }
    .btn-row .btn { flex: 1 1 auto; justify-content: center; }

    .acc-summary { grid-template-columns: 32px minmax(0, 1fr) 40px; padding: 20px 0; }
    .acc-summary .row-status { display: none; }
    .acc-icon { width: 40px; height: 40px; }

    .venture-facts { grid-template-columns: 1fr; }
    .venture-actions .btn { flex: 1 1 auto; justify-content: center; }

    .principles { grid-template-columns: 1fr; row-gap: 36px; }
    .principles h3 { margin-top: 20px; }
    .about-outro .btn-row { width: 100%; flex-direction: column; }

    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .cta .btn-row { width: 100%; flex-direction: column; }
    .cta .btn { font-size: 0.9rem; }
}
