/* ==========================================================================
   Open Laboratory
   Design tokens, layout primitives and components.
   Shape system: one documented radius scale.
     interactive controls (buttons, icon buttons) = pill,
     large media (hero photograph)                       = 20px,
     surfaces and cards (figures, idea cards)            = 16px,
     small inputs and viewer buttons                     = 12px.
   ========================================================================== */

@font-face {
    font-family: "Geist";
    font-style: normal;
    font-weight: 300 700;
    font-display: swap;
    src: url("../fonts/geist-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304,
        U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: "Geist Mono";
    font-style: normal;
    font-weight: 400 500;
    font-display: swap;
    src: url("../fonts/geist-mono-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304,
        U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    --ink-900: #06070a;
    --ink-800: #0a0c11;
    --ink-700: #101318;
    --ink-600: #161a21;

    --line: rgba(255, 255, 255, 0.14);
    --line-soft: rgba(255, 255, 255, 0.08);

    --text: #e9ecf1;
    --text-muted: #9aa3b0;
    --text-dim: #7d8794;

    --accent: #df1e37;
    --accent-hover: #f22945;
    --accent-text: #ff7183;
    --accent-soft: rgba(223, 30, 55, 0.12);

    --radius: 12px;
    --r-xl: 20px;
    --r-lg: 16px;
    --r-pill: 999px;

    --shadow-soft: 0 24px 70px rgba(0, 0, 0, 0.45);

    --wrap: 1240px;
    --gutter: clamp(20px, 5vw, 64px);
    --header-h: 72px;

    --font-sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica,
        Arial, sans-serif;
    --font-mono: "Geist Mono", ui-monospace, SFMono-Regular, "SF Mono", "Cascadia Mono", Consolas,
        "Liberation Mono", monospace;

    --ease: cubic-bezier(0.22, 0.68, 0.24, 1);
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */

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

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

body {
    margin: 0;
    background: var(--ink-900);
    color: var(--text);
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.7;
    font-weight: 400;
    letter-spacing: 0;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

body.is-locked {
    overflow: hidden;
}

h1,
h2,
h3 {
    margin: 0;
    font-weight: 600;
    line-height: 1.12;
    letter-spacing: 0;
}

p {
    margin: 0;
}

img {
    max-width: 100%;
    height: auto;
}

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

ul,
ol,
dl,
dd,
figure {
    margin: 0;
    padding: 0;
}

li {
    list-style: none;
}

button {
    font: inherit;
    color: inherit;
}

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

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

.skip-link {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 200;
    padding: 10px 16px;
    border-radius: var(--r-pill);
    background: var(--accent);
    color: #fff;
    font-weight: 600;
    transform: translateY(-160%);
    transition: transform 0.2s var(--ease);
}

.skip-link:focus {
    transform: translateY(0);
}

.wrap {
    width: 100%;
    max-width: var(--wrap);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.ico {
    width: 18px;
    height: 18px;
    flex: none;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.site-header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 100;
    border-bottom: 1px solid transparent;
    transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease);
}

.site-header[data-scrolled="true"] {
    background: rgba(6, 7, 10, 0.82);
    border-bottom-color: var(--line-soft);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
    backdrop-filter: blur(16px) saturate(140%);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: var(--header-h);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.brand-mark {
    width: 34px;
    height: 34px;
    object-fit: contain;
}

.brand-name {
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.01em;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-link {
    position: relative;
    display: inline-block;
    padding: 8px 14px;
    color: var(--text-muted);
    font-size: 0.9375rem;
    transition: color 0.2s var(--ease);
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 2px;
    height: 1px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s var(--ease);
}

.nav-link:hover,
.nav-link.is-active {
    color: var(--text);
}

.nav-link:hover::after,
.nav-link.is-active::after {
    transform: scaleX(1);
}

.nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 0;
    background: transparent;
    border: 1px solid var(--line);
    border-radius: var(--r-pill);
    cursor: pointer;
    transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}

.nav-toggle:hover {
    border-color: var(--accent);
    background: var(--accent-soft);
}

.nav-toggle .ico {
    width: 20px;
    height: 20px;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
    position: relative;
    min-height: 100dvh;
    padding-top: calc(var(--header-h) + clamp(18px, 3.6vh, 42px));
    padding-bottom: clamp(30px, 4.6vh, 58px);
    overflow: hidden;
    border-bottom: 1px solid var(--line);
    background:
        radial-gradient(92% 72% at 5% -8%, rgba(223, 30, 55, 0.17), transparent 60%),
        radial-gradient(74% 66% at 97% 8%, rgba(80, 94, 128, 0.16), transparent 64%),
        linear-gradient(180deg, #0a0c11 0%, var(--ink-900) 100%);
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: linear-gradient(var(--line-soft) 1px, transparent 1px),
        linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
    background-size: 96px 96px;
    -webkit-mask-image: radial-gradient(120% 92% at 10% 0%, #000 0%, transparent 74%);
    mask-image: radial-gradient(120% 92% at 10% 0%, #000 0%, transparent 74%);
    pointer-events: none;
}

.hero-shell {
    position: relative;
    display: grid;
    grid-template-rows: auto auto;
    align-content: center;
    gap: clamp(18px, 3.5vh, 34px);
    width: 100%;
    max-width: 1600px;
    margin-inline: auto;
    padding-inline: var(--gutter);
    min-height: calc(
        100dvh - var(--header-h) - clamp(18px, 3.6vh, 42px) - clamp(30px, 4.6vh, 58px)
    );
}

.hero-top {
    display: grid;
    gap: clamp(10px, 1.6vh, 18px);
}

.eyebrow {
    margin-bottom: 0;
    color: var(--accent-text);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.16em;
}

.hero-title {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    column-gap: 0.18em;
    font-size: clamp(3rem, 6.5vw, 6.5rem);
    line-height: 0.92;
    font-weight: 600;
    text-transform: uppercase;
}

.hero-title-line {
    display: block;
}

.hero-title-outline {
    color: transparent;
    -webkit-text-stroke: 1px rgba(233, 236, 241, 0.55);
}

.hero-bottom {
    display: grid;
    grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
    gap: clamp(28px, 4vw, 64px);
    align-items: center;
    min-height: 0;
}

.hero-copy {
    display: grid;
    align-content: center;
    gap: clamp(16px, 2.4vh, 26px);
    max-width: 32rem;
}

.hero-lede {
    max-width: 28rem;
    color: var(--text-muted);
    font-size: clamp(1.125rem, 1.45vw, 1.3125rem);
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px 28px;
}

.hero-figure {
    position: relative;
    height: auto;
    width: 100%;
    border: 1px solid var(--line);
    border-radius: var(--r-xl);
    background: var(--ink-800);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.hero-figure img {
    position: static;
    width: 100%;
    height: auto;
    display: block;
    filter: saturate(0.85) contrast(1.05);
}

/* --------------------------------------------------------------------------
   Buttons and links
   -------------------------------------------------------------------------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 24px;
    border: 1px solid transparent;
    border-radius: var(--r-pill);
    background: var(--accent);
    color: #fff;
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease),
        color 0.2s var(--ease), transform 0.12s var(--ease);
}

.btn .ico {
    width: 17px;
    height: 17px;
    transition: transform 0.25s var(--ease);
}

.btn:hover {
    background: var(--accent-hover);
    box-shadow: 0 14px 34px rgba(223, 30, 55, 0.24);
}

.btn:hover .ico {
    transform: translate(2px, -2px);
}

.btn:active {
    transform: translateY(1px);
}

.btn[disabled] {
    opacity: 0.6;
    cursor: progress;
}

.btn-ghost {
    background: transparent;
    border-color: var(--line);
    color: var(--text);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--accent);
    color: #fff;
}

.btn-ghost:hover .ico {
    transform: none;
}

.btn-block {
    width: 100%;
}

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.9375rem;
    font-weight: 500;
    transition: color 0.2s var(--ease);
}

.link-arrow .ico {
    width: 16px;
    height: 16px;
    transition: transform 0.25s var(--ease);
}

.link-arrow:hover {
    color: var(--text);
}

.link-arrow:hover .ico {
    transform: translateX(3px);
}

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */

.section {
    position: relative;
    padding-block: clamp(72px, 9vw, 132px);
    scroll-margin-top: calc(var(--header-h) + 8px);
    border-bottom: 1px solid var(--line-soft);
}

.section-head {
    max-width: 46rem;
    margin-bottom: clamp(36px, 5vw, 60px);
}

.section-title {
    font-size: clamp(1.875rem, 3.6vw, 3rem);
    line-height: 1.05;
}

.section-deck {
    margin-top: 18px;
    max-width: 42rem;
    color: var(--text-muted);
    font-size: 1.0625rem;
    line-height: 1.65;
}

.lead {
    color: var(--text);
    font-size: clamp(1.125rem, 1.8vw, 1.4375rem);
    line-height: 1.55;
}

/* About ------------------------------------------------------------------- */

.about-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: clamp(32px, 5vw, 72px);
    align-items: start;
}

.frame {
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    background: var(--ink-800);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.about-figure {
    aspect-ratio: 4 / 5;
}

.about-figure img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-body p + p {
    margin-top: 20px;
}

.about-body .lead {
    margin-bottom: 24px;
}

.about-body p:not(.lead) {
    color: var(--text-muted);
}

.facts {
    margin-top: 36px;
    border-top: 1px solid var(--line-soft);
}

.fact {
    display: grid;
    grid-template-columns: minmax(120px, 0.4fr) minmax(0, 1fr);
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid var(--line-soft);
}

.fact dt {
    color: var(--text-dim);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    line-height: 2;
}

.fact dd {
    margin: 0;
    color: var(--text);
    font-size: 0.9375rem;
}

/* Projects ---------------------------------------------------------------- */

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

.project-row {
    position: relative;
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr) 220px;
    gap: clamp(20px, 3vw, 48px);
    padding: clamp(24px, 3vw, 38px) 0;
    border-bottom: 1px solid var(--line-soft);
    transition: padding-left 0.3s var(--ease);
}

.project-row::before {
    content: "";
    position: absolute;
    left: 0;
    top: -1px;
    bottom: -1px;
    width: 2px;
    background: var(--accent);
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.3s var(--ease);
}

.project-row:hover::before {
    transform: scaleY(1);
}

.project-row:hover {
    padding-left: 20px;
}

.project-index {
    color: var(--text-dim);
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    letter-spacing: 0.08em;
    line-height: 2;
    transition: color 0.25s var(--ease);
}

.project-row:hover .project-index {
    color: var(--accent-text);
}

.project-name {
    font-size: clamp(1.25rem, 2vw, 1.625rem);
    margin-bottom: 12px;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: inherit;
    transition: color 0.2s var(--ease);
}

.project-link .ico {
    width: 18px;
    height: 18px;
    opacity: 0.55;
    transition: opacity 0.2s var(--ease), transform 0.25s var(--ease);
}

.project-link:hover {
    color: var(--accent-text);
}

.project-link:hover .ico {
    opacity: 1;
    transform: translate(2px, -2px);
}

.project-main p {
    max-width: 52ch;
    color: var(--text-muted);
    font-size: 0.9375rem;
}

.project-meta {
    align-self: start;
    color: var(--text-dim);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    line-height: 2;
    text-align: right;
}

/* Gallery ----------------------------------------------------------------- */

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 16px;
}

.tile {
    position: relative;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    background: var(--ink-800);
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 16 / 10;
    box-shadow: var(--shadow-soft);
}

.tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(0.85) contrast(1.05);
    transition: transform 0.6s var(--ease), filter 0.4s var(--ease);
}

.tile:hover img {
    transform: scale(1.04);
    filter: saturate(1) contrast(1.05);
}

.tile::after {
    content: "";
    position: absolute;
    inset: 0;
    border: 1px solid transparent;
    border-radius: inherit;
    transition: border-color 0.3s var(--ease);
}

.tile:hover::after {
    border-color: var(--accent);
}

.tile-wide {
    grid-column: span 7;
}

.tile-tall {
    grid-column: span 5;
}

/* Philosophy -------------------------------------------------------------- */

.philosophy-grid,
.founders-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
    gap: clamp(32px, 5vw, 80px);
    align-items: start;
}

.philosophy-aside,
.founders-aside {
    position: sticky;
    top: calc(var(--header-h) + 32px);
}

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

.principle {
    padding: clamp(26px, 3vw, 40px) 0;
    border-bottom: 1px solid var(--line-soft);
}

.principle h3 {
    font-size: clamp(1.25rem, 2vw, 1.5rem);
    margin-bottom: 14px;
}

.principle p {
    max-width: 62ch;
    color: var(--text-muted);
}

.principle p + p,
.principle p + .indicators {
    margin-top: 16px;
}

.indicators {
    margin-top: 20px;
    border-top: 1px solid var(--line-soft);
}

.indicator {
    display: grid;
    grid-template-columns: minmax(140px, 0.32fr) minmax(0, 1fr);
    gap: 20px;
    padding: 14px 0;
    border-bottom: 1px solid var(--line-soft);
}

.indicator dt {
    color: var(--accent-text);
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    letter-spacing: 0.04em;
    line-height: 1.9;
}

.indicator dd {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.9375rem;
}

/* Founders ---------------------------------------------------------------- */

.founders-body h3 {
    font-size: clamp(1.5rem, 2.6vw, 2.125rem);
    margin-bottom: 20px;
}

.founders-body p {
    max-width: 60ch;
    color: var(--text-muted);
}

.founders-body p + p {
    margin-top: 18px;
}

.founders-aside .facts {
    margin-top: 32px;
}

/* Ideas ------------------------------------------------------------------- */

.idea-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.idea {
    display: grid;
    grid-template-rows: auto 1fr auto;
    gap: 16px;
    padding: clamp(24px, 3vw, 36px);
    border: 1px solid var(--line-soft);
    border-radius: var(--r-lg);
    background: var(--ink-800);
}

.idea-name {
    color: var(--accent-text);
    font-family: var(--font-mono);
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.idea-statement {
    margin: 0;
    max-width: 34ch;
    font-size: clamp(1.25rem, 2.2vw, 1.75rem);
    font-weight: 500;
    line-height: 1.3;
}

.idea-credit {
    margin: 0;
    color: var(--text-dim);
    font-size: 0.9375rem;
}

.idea-open {
    margin-top: 36px;
    max-width: 62ch;
    color: var(--text-muted);
}

/* Contact ----------------------------------------------------------------- */

.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: clamp(32px, 5vw, 80px);
    align-items: start;
}

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

.contact-item {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 16px;
    padding: 22px 0;
    border-bottom: 1px solid var(--line-soft);
}

.contact-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: var(--r-pill);
    background: var(--accent-soft);
    color: var(--accent-text);
}

.contact-icon .ico {
    width: 20px;
    height: 20px;
}

.contact-info h3 {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-dim);
}

.contact-info p {
    margin-top: 6px;
    color: var(--text-muted);
    font-size: 0.9375rem;
}

.contact-link {
    display: inline-block;
    margin-top: 6px;
    color: var(--text);
    font-size: 1.0625rem;
    border-bottom: 1px solid var(--line);
    transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.contact-link:hover {
    color: var(--accent-text);
    border-color: var(--accent);
}

.contact-form h3 {
    font-size: clamp(1.25rem, 2vw, 1.5rem);
    margin-bottom: 24px;
}

/* Forms ------------------------------------------------------------------- */

.form {
    display: grid;
    gap: 18px;
}

.field-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.field {
    display: grid;
    gap: 8px;
}

.field label {
    color: var(--text-dim);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.form-control {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--ink-800);
    color: var(--text);
    font-family: inherit;
    font-size: 0.9375rem;
    line-height: 1.5;
    transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}

.form-control::placeholder {
    color: var(--text-dim);
}

.form-control:hover {
    border-color: rgba(255, 255, 255, 0.24);
}

.form-control:focus {
    outline: none;
    border-color: var(--accent);
    background: var(--ink-700);
}

textarea.form-control {
    resize: vertical;
    min-height: 148px;
}

.field.has-error .form-control {
    border-color: var(--accent);
}

.field-error {
    color: var(--accent-text);
    font-size: 0.8125rem;
}

.form-status {
    min-height: 0;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.form-status:empty {
    display: none;
}

.form-status[data-state="success"] {
    color: #6ee7a8;
}

.form-status[data-state="error"] {
    color: var(--accent-text);
}

.form-status a {
    border-bottom: 1px solid currentColor;
}

/* Honeypot field: kept out of view for people, visible to naive bots. */
.hp-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Footer ------------------------------------------------------------------ */

.site-footer {
    background: var(--ink-800);
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(32px, 5vw, 64px);
    padding-block: clamp(48px, 6vw, 80px);
}

.footer-brand .brand-mark {
    width: 40px;
    height: 40px;
}

.footer-name {
    margin-top: 16px;
    font-size: 1.0625rem;
    font-weight: 600;
}

.footer-note {
    margin-top: 10px;
    max-width: 34ch;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.footer-heading {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-bottom: 16px;
}

.footer-nav ul {
    display: grid;
    gap: 10px;
}

.footer-nav a {
    color: var(--text-muted);
    font-size: 0.9375rem;
    transition: color 0.2s var(--ease);
}

.footer-nav a:hover {
    color: var(--text);
}

.footer-contact .contact-link {
    font-size: 0.9375rem;
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-block: 24px;
    border-top: 1px solid var(--line-soft);
    color: var(--text-dim);
    font-size: 0.875rem;
}

/* --------------------------------------------------------------------------
   Lightbox
   -------------------------------------------------------------------------- */

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(16px, 4vw, 56px);
}

.lightbox[hidden] {
    display: none;
}

.lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(4, 5, 7, 0.94);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}

.lightbox-figure {
    position: relative;
    margin: 0;
    max-width: 100%;
}

.lightbox-figure img {
    display: block;
    max-width: 100%;
    max-height: 82vh;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
}

.lightbox-close,
.lightbox-nav {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    padding: 0;
    background: rgba(10, 12, 17, 0.9);
    border: 1px solid var(--line);
    border-radius: var(--r-pill);
    color: var(--text);
    cursor: pointer;
    transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}

.lightbox-close:hover,
.lightbox-nav:hover {
    border-color: var(--accent);
    background: var(--accent-soft);
}

.lightbox-close {
    top: 0;
    right: 0;
}

.lightbox-prev {
    left: 0;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-next {
    right: 0;
    top: 50%;
    transform: translateY(-50%);
}

/* --------------------------------------------------------------------------
   Motion
   -------------------------------------------------------------------------- */

.reveal {
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.js .reveal {
    opacity: 0;
    transform: translateY(16px);
}

.js .reveal.is-visible {
    opacity: 1;
    transform: none;
}

.js [data-hero-item] {
    opacity: 0;
    transform: translateY(18px);
    animation: hero-rise 0.9s var(--ease) forwards;
}

.js [data-hero-item]:nth-child(1) {
    animation-delay: 0.08s;
}

.js [data-hero-item]:nth-child(2) {
    animation-delay: 0.18s;
}

.js [data-hero-item]:nth-child(3) {
    animation-delay: 0.28s;
}

.js [data-hero-item]:nth-child(4) {
    animation-delay: 0.38s;
}

.js .hero-figure[data-hero-item] {
    animation-delay: 0.24s;
}

@keyframes hero-rise {
    to {
        opacity: 1;
        transform: none;
    }
}

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

    .js .reveal,
    .js [data-hero-item] {
        opacity: 1;
        transform: none;
        animation: none;
        transition: none;
    }

    .tile img,
    .project-row,
    .project-row::before {
        transition: none;
    }
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1080px) {
    .hero-bottom {
        grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    }

    .project-row {
        grid-template-columns: 48px minmax(0, 1fr);
    }

    .project-meta {
        grid-column: 2;
        text-align: left;
    }
}

@media (max-width: 900px) {
    :root {
        --header-h: 64px;
    }

    .nav-toggle {
        display: inline-flex;
    }

    .site-nav {
        position: fixed;
        inset: 0;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        padding: 96px var(--gutter) var(--gutter);
        background: var(--ink-900);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-8px);
        transition: opacity 0.28s var(--ease), transform 0.28s var(--ease),
            visibility 0.28s var(--ease);
    }

    .site-nav.is-open {
        opacity: 1;
        visibility: visible;
        transform: none;
    }

    .nav-list {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
        width: 100%;
    }

    .nav-link {
        padding: 12px 0;
        font-size: 1.75rem;
        font-weight: 500;
        color: var(--text);
    }

    .nav-link::after {
        display: none;
    }

    .site-nav.is-open + .nav-toggle,
    .nav-toggle[aria-expanded="true"] {
        position: relative;
        z-index: 2;
    }

    .hero {
        min-height: 0;
        padding-top: calc(var(--header-h) + 28px);
    }

    .about-grid,
    .idea-grid,
    .philosophy-grid,
    .founders-grid,
    .contact-grid,
    .footer-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .hero-shell {
        grid-template-rows: auto auto;
        align-content: start;
        min-height: 0;
    }

    .hero-bottom {
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
        align-items: start;
    }

    .hero-figure {
        aspect-ratio: 16 / 10;
        height: auto;
        min-height: 0;
        max-height: none;
    }

    .hero-copy {
        max-width: none;
        align-content: start;
    }

    .hero-title {
        font-size: clamp(2.6rem, 12vw, 4.6rem);
    }

    .philosophy-aside,
    .founders-aside {
        position: static;
    }

    .gallery-grid {
        gap: 12px;
    }

    .tile-wide,
    .tile-tall {
        grid-column: span 12;
    }

}

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

    .fact,
    .indicator {
        grid-template-columns: minmax(0, 1fr);
        gap: 4px;
    }

    .fact dt,
    .indicator dt {
        line-height: 1.6;
    }

    .contact-item {
        grid-template-columns: 40px minmax(0, 1fr);
    }

    .contact-icon {
        width: 40px;
        height: 40px;
    }

    .lightbox-close,
    .lightbox-nav {
        width: 42px;
        height: 42px;
    }
}

/* --------------------------------------------------------------------------
   Print
   -------------------------------------------------------------------------- */

@media print {
    .site-header,
    .lightbox,
    .nav-toggle {
        display: none !important;
    }

    body {
        background: #fff;
        color: #000;
    }

    .section {
        break-inside: avoid;
    }
}
