/* ═══════════════════════════════════════════════
   MOIZ IZZY — IzTech Solutions
   Design System: The Ledger
   Palette: Warm Linen · Deep Navy · Warm Gold
   Font: Inter (variable)
   ═══════════════════════════════════════════════ */

/* ─── Custom Properties ───
   Disciplined palette: warm-neutral surfaces · navy primary · gold highlight.
   Teal is aliased to navy so the whole site reads as one cool accent.
   Green & terracotta are reserved for semantic use only (live dot / errors). */
:root {
    /* Surfaces */
    --bg:           #F4F0E8;
    --bg-surface:   #EAE5DA;
    --bg-surface-2: #E0D9CE;
    --bg-dark:      #141414;
    /* Ink */
    --text:         #1A1A1A;
    --text-mid:     #6B6560;
    --white:        #FFFFFF;
    /* Accents — the only two */
    --navy:         #1C3F5E;
    --gold:         #BF8C3C;
    --gold-light:   #D4A54E;
    /* Teal → aliased to navy (one accent across the site) */
    --teal:         #1C3F5E;
    --teal-deep:    #1C3F5E;
    --teal-tint:    #E7ECF1;
    /* Semantic only */
    --live:         #7B9162;
    --terracotta:   #B8654A;

    --font:      'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', 'SF Mono', Menlo, Consolas, monospace;

    --ease-out: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
    --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);

    --dur: 0.35s;

    --radius-sm: 3px;
    --radius: 6px;

    --max-w: 1200px;
    --gutter: clamp(1.25rem, 4vw, 2.5rem);
}

/* ─── Reset ─── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-weight: 400;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    font-feature-settings: "ss01", "cv11", "calt";
}

a {
    color: inherit;
    text-decoration: none;
}

ul { list-style: none; }
button { font-family: var(--font); border: none; background: none; }
img { display: block; max-width: 100%; }

/* ─── Layout Helpers ─── */
.container {
    width: 100%;
    max-width: var(--max-w);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

/* ─── Section Spacing ─── */
section {
    padding-block: clamp(4rem, 10vw, 9rem);
}

/* ─── Section Label ─── */
.section-label {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-mid);
    margin-bottom: 2.75rem;
}

.section-num {
    display: inline-block;
    color: var(--teal-deep);
    font-variant-numeric: tabular-nums;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.section-num-sep {
    display: inline-block;
    color: var(--bg-surface-2);
    font-weight: 400;
    margin: 0 0.125rem;
}

/* ═══════════════════════════════════
   NAVIGATION
   ═══════════════════════════════════ */
.nav {
    position: fixed;
    inset-block-start: 0;
    inset-inline: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.75rem var(--gutter);
    transition: padding var(--dur) var(--ease-out),
                background var(--dur) var(--ease-out),
                border-color var(--dur) var(--ease-out);
}

.nav::after {
    content: '';
    position: absolute;
    inset: 0;
    border-bottom: 1px solid transparent;
    pointer-events: none;
    transition: border-color var(--dur) var(--ease-out);
}

.nav.scrolled {
    padding-block: 1.125rem;
    background: rgba(244, 240, 232, 0.88);
    backdrop-filter: blur(16px) saturate(1.4);
    -webkit-backdrop-filter: blur(16px) saturate(1.4);
}

.nav.scrolled::after {
    border-color: var(--bg-surface);
}

.nav-logo {
    font-size: 0.9375rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--navy);
    line-height: 1;
    display: inline-flex;
    align-items: baseline;
}

.nav-logo-mark {
    font-weight: 800;
    color: var(--navy);
}

.nav-logo-rest {
    font-weight: 500;
    color: var(--text-mid);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2.75rem;
}

.nav-link {
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: var(--text-mid);
    position: relative;
    transition: color var(--dur);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--navy);
    transition: width var(--dur) var(--ease-expo);
}

.nav-link:hover {
    color: var(--navy);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-cta {
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--white);
    background: var(--navy);
    padding: 0.5625rem 1.375rem;
    border-radius: var(--radius-sm);
    transition: background var(--dur), transform var(--dur) var(--ease-expo);
}

.nav-cta:hover {
    background: var(--gold);
    transform: translateY(-2px);
}

.nav-hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    padding: 4px;
}

.nav-hamburger span {
    display: block;
    width: 22px;
    height: 1.5px;
    background: var(--text);
    border-radius: 2px;
    transition: all 0.3s var(--ease-expo);
    transform-origin: center;
}

.nav-hamburger.open span:first-child {
    transform: translateY(3.75px) rotate(45deg);
}

.nav-hamburger.open span:last-child {
    transform: translateY(-3.75px) rotate(-45deg);
}

/* ─── Mobile Menu ─── */
.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 150;
    background: var(--bg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s var(--ease-out);
}

.mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

.mobile-link {
    font-size: clamp(2rem, 8vw, 3.5rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text);
    transition: color var(--dur);
}

.mobile-link:hover { color: var(--navy); }

/* ═══════════════════════════════════
   HERO
   ═══════════════════════════════════ */
.hero {
    position: relative;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-block: 7rem 3.5rem;
    padding-inline: var(--gutter);
    overflow: hidden;
}

.hero-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-name {
    font-size: clamp(4.5rem, 14vw, 14rem);
    font-weight: 900;
    letter-spacing: -0.04em;
    line-height: 0.86;
    color: var(--text);
}

.hero-line {
    display: block;
    overflow: hidden;
    line-height: 0.86;
}

.hero-line-inner {
    display: inline-block;
    transform: translateY(115%);
    will-change: transform;
}

.hero-line:nth-child(2) .hero-line-inner {
    color: var(--navy);
}

.hero-tagline-wrap {
    margin-top: 2.25rem;
    overflow: hidden;
    opacity: 0;
}

.hero-tagline {
    font-size: clamp(1rem, 1.6vw, 1.25rem);
    font-weight: 500;
    letter-spacing: -0.005em;
    color: var(--text-mid);
    font-style: italic;
}

/* Hero Bottom Bar */
.hero-bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    opacity: 0;
}

.hero-meta {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    flex-wrap: wrap;
}

.meta-pair {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.meta-label {
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-mid);
}

.meta-value {
    font-size: 0.875rem;
    color: var(--text);
    font-weight: 400;
}

.meta-sep {
    color: var(--bg-surface-2);
    font-size: 1rem;
}

.meta-avail {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text);
    letter-spacing: 0.01em;
}

/* ─── Live availability dot ─── */
.live-dot {
    width: 7px;
    height: 7px;
    background: var(--live);
    border-radius: 50%;
    position: relative;
    flex-shrink: 0;
    box-shadow: 0 0 0 0 rgba(123, 145, 98, 0.55);
    animation: livePulse 2.4s var(--ease-out) infinite;
}

@keyframes livePulse {
    0%   { box-shadow: 0 0 0 0 rgba(123, 145, 98, 0.55); }
    70%  { box-shadow: 0 0 0 9px rgba(123, 145, 98, 0); }
    100% { box-shadow: 0 0 0 0 rgba(123, 145, 98, 0); }
}

/* ─── Scroll Progress ─── */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 2px;
    width: 0;
    background: var(--navy);
    z-index: 300;
    transition: width 0.1s linear;
    pointer-events: none;
}

/* Social — vertical right rail */
.hero-social {
    position: absolute;
    right: var(--gutter);
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.625rem;
    opacity: 0;
}

.social-link {
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    color: var(--text-mid);
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transition: color var(--dur);
}

.social-link:hover { color: var(--navy); }

/* ═══════════════════════════════════
   MARQUEE STRIP
   ═══════════════════════════════════ */
.marquee-section {
    background: var(--bg-surface);
    padding: 1.25rem 0;
    overflow: hidden;
    border-block: 1px solid var(--bg-surface-2);
    position: relative;
}

.marquee {
    display: flex;
    overflow: hidden;
    user-select: none;
    -webkit-mask-image: linear-gradient(
        90deg,
        transparent 0%,
        #000 8%,
        #000 92%,
        transparent 100%
    );
            mask-image: linear-gradient(
        90deg,
        transparent 0%,
        #000 8%,
        #000 92%,
        transparent 100%
    );
}

.marquee-track {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    gap: 2.25rem;
    padding-right: 2.25rem;
    animation: marqueeScroll 42s linear infinite;
    will-change: transform;
}

.marquee-section:hover .marquee-track {
    animation-play-state: paused;
}

@keyframes marqueeScroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

.marquee-item {
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    color: var(--navy);
    white-space: nowrap;
    text-transform: none;
}

.marquee-dot {
    color: var(--gold);
    font-size: 0.5rem;
    line-height: 1;
}

/* ═══════════════════════════════════
   STATEMENT
   ═══════════════════════════════════ */
.statement {
    border-top: 1px solid var(--bg-surface);
    padding-block: clamp(5rem, 12vw, 10rem);
}

.statement-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: end;
}

.statement-text {
    font-size: clamp(2.25rem, 5.5vw, 5rem);
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.08;
    color: var(--navy);
}

.statement-bio {
    max-width: 520px;
    padding-bottom: 0.25rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.statement-bio p {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: var(--text-mid);
}

/* ═══════════════════════════════════
   WORK
   ═══════════════════════════════════ */
.work {
    border-top: 1px solid var(--bg-surface);
    padding-block: clamp(5rem, 11vw, 10rem);
}

.work .section-header { margin-bottom: 4rem; }

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.25rem;
    margin-bottom: 3rem;
}

.section-header .section-label {
    margin-bottom: 0;
}

/* Filters */
.work-filters {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.filter-btn {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    color: var(--text-mid);
    border: 1px solid var(--bg-surface-2);
    padding: 0.4rem 1rem;
    border-radius: 100px;
    cursor: pointer;
    transition:
        color var(--dur),
        background var(--dur),
        border-color var(--dur),
        transform 0.2s var(--ease-expo);
}

.filter-btn:hover {
    border-color: var(--navy);
    color: var(--navy);
    transform: translateY(-1px);
}

.filter-btn.active {
    background: var(--navy);
    border-color: var(--navy);
    color: var(--white);
}

/* ═══════════════════════════════════
   THE INDEX  —  Typographic Ledger
   ═══════════════════════════════════ */

.index {
    --ix-grid: 56px 80px minmax(0, 2.4fr) minmax(0, 1.4fr) minmax(0, 1.4fr) 130px;
    --ix-gap:  1.5rem;
    border-top: 1px solid var(--text);
    margin-block: 1rem 2.5rem;
    font-feature-settings: "tnum", "ss01";
}

/* ─── Header row ─── */
.index-head {
    display: grid;
    grid-template-columns: var(--ix-grid);
    gap: var(--ix-gap);
    padding: 1.125rem 1.25rem;
    border-bottom: 1px solid var(--text);
    background: var(--bg);
}

.index-head .ix-col {
    font-size: 0.625rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-mid);
    line-height: 1;
}

/* ─── Body row ─── */
.ix-row {
    display: grid;
    grid-template-columns: var(--ix-grid);
    gap: var(--ix-gap);
    align-items: baseline;
    padding: 1.5rem 1.25rem;
    border-bottom: 1px solid var(--bg-surface);
    cursor: pointer;
    position: relative;
    transition:
        background 0.4s var(--ease-out),
        padding 0.35s var(--ease-out);
}

.ix-row:hover {
    background: var(--bg-surface);
    padding-inline: 1.5rem;
}

/* Subtle gold left-stripe on hover */
.ix-row::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--gold);
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.4s var(--ease-expo);
}

.ix-row:hover::before {
    transform: scaleY(1);
}

/* ─── Columns ─── */
.ix-col {
    min-width: 0;
}

/* No. column — mono, gold */
.ix-col-num {
    font-family: var(--font-mono);
    font-weight: 500;
    font-size: 0.8125rem;
    color: var(--gold);
    letter-spacing: 0;
    font-feature-settings: "tnum";
}

/* Year — mono, muted */
.ix-col-year {
    font-family: var(--font-mono);
    font-weight: 400;
    font-size: 0.875rem;
    color: var(--text-mid);
    font-feature-settings: "tnum";
}

/* Client — Project — the typographic moment */
.ix-col-name {
    align-self: center;
}

.ix-name {
    display: inline;
    font-size: clamp(1.125rem, 1.7vw, 1.5rem);
    font-weight: 800;
    letter-spacing: -0.025em;
    color: var(--text);
    line-height: 1.1;
    transition: color 0.3s var(--ease-out);
}

.ix-row:hover .ix-name {
    color: var(--navy);
}

/* Discipline (type) */
.ix-col-type {
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--text-mid);
    line-height: 1.3;
}

/* Stack (tech) — mono, smaller */
.ix-col-tech {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--text-mid);
    line-height: 1.4;
    letter-spacing: -0.005em;
}

/* Status */
.ix-col-status {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    justify-self: end;
    font-size: 0.8125rem;
    font-weight: 500;
    line-height: 1;
}

.ix-col-status em {
    font-style: italic;
    font-weight: 500;
    color: var(--text);
    transition: color 0.3s;
}

.ix-status-link, .ix-status-static {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--text);
    text-decoration: none;
    transition: color 0.3s, transform 0.3s var(--ease-expo);
}

.ix-status-link:hover {
    color: var(--gold);
}

.ix-arrow {
    display: inline-block;
    font-style: normal;
    font-size: 0.875rem;
    line-height: 1;
    transition: transform 0.35s var(--ease-expo);
}

.ix-row:hover .ix-arrow,
.ix-status-link:hover .ix-arrow {
    transform: translate(3px, -3px);
}

/* Status pulse dot */
.ix-live-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--live);
    box-shadow: 0 0 0 0 rgba(123, 145, 98, 0.55);
    animation: livePulse 2.4s var(--ease-out) infinite;
    flex-shrink: 0;
}

.ix-live-dot-amber {
    background: var(--gold);
    animation: livePulseAmber 2.4s var(--ease-out) infinite;
}

@keyframes livePulseAmber {
    0%   { box-shadow: 0 0 0 0 rgba(191, 140, 60, 0.5); }
    70%  { box-shadow: 0 0 0 8px rgba(191, 140, 60, 0); }
    100% { box-shadow: 0 0 0 0 rgba(191, 140, 60, 0); }
}

/* Status colour by state */
.ix-col-status[data-status="archived"] em {
    color: var(--text-mid);
    text-decoration: line-through;
    text-decoration-thickness: 0.5px;
}

.ix-col-status[data-status="shipping"] em {
    color: var(--gold);
}

/* ─── Expand panel ─── */
.ix-expand {
    grid-column: 1 / -1;
    overflow: hidden;
    max-height: 0;
    margin-top: 0;
    opacity: 0;
    transition:
        max-height 0.55s var(--ease-expo),
        opacity 0.4s var(--ease-out),
        margin-top 0.4s var(--ease-out);
}

.ix-row.expanded .ix-expand {
    max-height: 280px;
    opacity: 1;
    margin-top: 1.25rem;
}

.ix-row.expanded {
    background: var(--bg-surface);
}

.ix-expand-inner {
    padding-top: 1rem;
    border-top: 1px dashed var(--bg-surface-2);
    display: grid;
    grid-template-columns: 56px 80px minmax(0, 1fr);
    gap: var(--ix-gap);
}

.ix-expand-inner > :first-child { grid-column: 3; }

.ix-desc {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: var(--text);
    max-width: 64ch;
    margin-bottom: 1.125rem;
    grid-column: 3;
}

.ix-meta {
    grid-column: 3;
    display: flex;
    flex-wrap: wrap;
    gap: 1.75rem 2.5rem;
}

.ix-meta-pair {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 0;
}

.ix-meta-lbl {
    font-size: 0.625rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-mid);
}

.ix-meta-val {
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    color: var(--text);
    font-weight: 400;
}

.ix-meta-link {
    color: var(--navy);
    text-decoration: none;
    border-bottom: 1px solid var(--bg-surface-2);
    padding-bottom: 1px;
    transition: color 0.3s, border-color 0.3s;
}

.ix-meta-link:hover {
    color: var(--gold);
    border-color: var(--gold);
}

/* ─── Index footer note ─── */
.index-foot {
    font-size: 0.875rem;
    color: var(--text-mid);
    margin-top: 0.5rem;
    text-align: center;
}

.index-foot-link {
    color: var(--navy);
    border-bottom: 1px solid var(--bg-surface-2);
    padding-bottom: 1px;
    transition: color 0.3s, border-color 0.3s;
}

.index-foot-link:hover {
    color: var(--gold);
    border-color: var(--gold);
}

/* ─── Responsive ─── */
@media (max-width: 900px) {
    .index { --ix-grid: 36px 60px minmax(0, 2fr) minmax(0, 1fr) 90px; --ix-gap: 1rem; }
    .ix-col-tech { display: none; }
    .index-head .ix-col-tech { display: none; }
    .ix-expand-inner { grid-template-columns: 36px 60px 1fr; }
    .ix-expand-inner > :first-child { grid-column: 3; }
}

@media (max-width: 600px) {
    .index { --ix-grid: 1fr auto; --ix-gap: 0.75rem; }
    .index-head { display: none; }
    .ix-row {
        grid-template-areas:
            "num    status"
            "name   status"
            "type   year";
        grid-template-columns: 1fr auto;
        gap: 0.5rem 1rem;
        padding: 1.25rem 1rem;
    }
    .ix-col-num    { grid-area: num;  font-size: 0.6875rem; }
    .ix-col-year   { grid-area: year; font-size: 0.6875rem; text-align: right; justify-self: end; }
    .ix-col-name   { grid-area: name; }
    .ix-col-type   { grid-area: type; }
    .ix-col-status { grid-area: status; align-self: start; }
    .ix-col-tech   { display: none; }
    .ix-name       { font-size: 1.25rem; }
    .ix-expand-inner { display: block; }
    .ix-row.expanded .ix-expand { max-height: 360px; }
}

/* ═══════════════════════════════════
   EXPERTISE
   ═══════════════════════════════════ */
.expertise {
    border-top: 1px solid var(--bg-surface);
}

.expertise-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    margin-bottom: 5rem;
}

.expertise-col-title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text);
    letter-spacing: -0.01em;
    margin-bottom: 1.5rem;
}

.expertise-list li {
    font-size: 0.9375rem;
    color: var(--text-mid);
    padding: 0.8125rem 0;
    border-bottom: 1px solid var(--bg-surface);
    transition:
        color var(--dur),
        padding-left 0.25s var(--ease-expo);
    cursor: default;
}

.expertise-list li:hover {
    color: var(--navy);
    padding-left: 0.5rem;
}

/* Education Timeline */
.education {
    border-top: 1px solid var(--bg-surface);
    padding-top: 3.5rem;
}

.edu-timeline {
    display: flex;
    flex-direction: column;
}

.edu-item {
    display: grid;
    grid-template-columns: 130px 1fr;
    gap: 2rem;
    padding: 1.625rem 0;
    border-bottom: 1px solid var(--bg-surface);
    align-items: start;
}

.edu-year {
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--text-mid);
    letter-spacing: 0.03em;
    padding-top: 0.2rem;
}

.edu-qual {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    letter-spacing: -0.01em;
}

.edu-inst {
    font-size: 0.875rem;
    color: var(--text-mid);
    margin-top: 0.3rem;
    line-height: 1.5;
}

/* ═══════════════════════════════════
   STATS — Dark Strip
   ═══════════════════════════════════ */
.stats {
    background: var(--bg-dark);
    padding-block: clamp(3rem, 7vw, 6rem);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    position: relative;
}

.stats-grid::before {
    content: '';
    position: absolute;
    inset-block: 0;
    left: 25%;
    right: 0;
    background:
        repeating-linear-gradient(
            90deg,
            rgba(255,255,255,0.06) 0,
            rgba(255,255,255,0.06) 1px,
            transparent 1px,
            transparent 25%
        );
    pointer-events: none;
}

.stat-item {
    padding: 3rem 2.5rem;
    text-align: center;
    position: relative;
}

.stat-item + .stat-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 20%;
    bottom: 20%;
    width: 1px;
    background: rgba(255,255,255,0.08);
}

.stat-number {
    display: block;
    font-size: clamp(2.75rem, 5.5vw, 4.25rem);
    font-weight: 900;
    color: var(--gold);
    letter-spacing: -0.04em;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.stat-number.stat-text {
    font-size: clamp(1.75rem, 4vw, 3rem);
    letter-spacing: -0.02em;
}

.stat-label {
    display: block;
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.38);
    margin-top: 0.875rem;
}

/* ═══════════════════════════════════
   CONTACT
   ═══════════════════════════════════ */
.contact {
    border-top: 1px solid var(--bg-surface);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: start;
}

.contact-headline {
    font-size: clamp(2rem, 4.5vw, 3.75rem);
    font-weight: 700;
    letter-spacing: -0.028em;
    line-height: 1.12;
    color: var(--navy);
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.contact-detail {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.contact-label {
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-mid);
}

.contact-value {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text);
    transition: color var(--dur);
}

a.contact-value:hover { color: var(--navy); }

.contact-social {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.contact-social-link {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-mid);
    padding-bottom: 3px;
    border-bottom: 1px solid var(--bg-surface-2);
    transition: color var(--dur), border-color var(--dur);
}

.contact-social-link:hover {
    color: var(--navy);
    border-color: var(--navy);
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--white);
    background: var(--navy);
    padding: 0.9375rem 2rem;
    border-radius: var(--radius-sm);
    transition:
        background var(--dur),
        transform 0.25s var(--ease-expo);
}

.btn-primary:hover {
    background: var(--gold);
    transform: translateY(-3px);
}

/* ═══════════════════════════════════
   PULL QUOTE
   ═══════════════════════════════════ */
.quote {
    background:
        linear-gradient(180deg, var(--bg) 0%, var(--teal-tint) 50%, var(--bg) 100%);
    border-block: 1px solid var(--bg-surface);
    padding-block: clamp(5rem, 11vw, 9rem);
    position: relative;
    overflow: hidden;
}

.quote::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 800px 300px at 50% 50%,
            rgba(28, 63, 94, 0.07) 0%,
            transparent 70%);
    pointer-events: none;
}

.quote-inner {
    position: relative;
    z-index: 1;
    text-align: center;
}

.quote .section-label {
    margin-inline: auto;
    margin-bottom: 2.5rem;
}

.quote-block {
    max-width: 920px;
    margin-inline: auto;
    position: relative;
}

.quote-mark {
    display: block;
    font-family: 'Inter', serif;
    font-size: clamp(4rem, 9vw, 7rem);
    font-weight: 900;
    line-height: 0.6;
    color: var(--teal);
    margin-bottom: 0.5rem;
    letter-spacing: -0.05em;
}

.quote-text {
    font-size: clamp(1.75rem, 3.5vw, 3rem);
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.2;
    color: var(--navy);
    margin-bottom: 2.25rem;
}

.quote-text em {
    font-style: italic;
    color: var(--teal-deep);
    font-weight: 700;
}

.quote-attr {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-mid);
}

.quote-attr-line {
    display: inline-block;
    width: 32px;
    height: 1px;
    background: var(--teal-deep);
}

/* ═══════════════════════════════════
   STATUS WIDGET (live Bangalore time)
   ═══════════════════════════════════ */
.status-widget {
    position: fixed;
    bottom: 1.5rem;
    left: 1.5rem;
    z-index: 180;
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.625rem 1rem;
    background: rgba(20, 20, 20, 0.85);
    backdrop-filter: blur(14px) saturate(1.5);
    -webkit-backdrop-filter: blur(14px) saturate(1.5);
    color: var(--white);
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    border-radius: 100px;
    box-shadow: 0 12px 32px rgba(20, 20, 20, 0.18);
    transform: translateY(120%);
    opacity: 0;
    transition: transform 0.6s var(--ease-expo), opacity 0.4s;
}

.status-widget.visible {
    transform: translateY(0);
    opacity: 1;
}

.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--live);
    box-shadow: 0 0 0 0 rgba(123, 145, 98, 0.6);
    animation: livePulse 2.4s var(--ease-out) infinite;
}

.status-label {
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.625rem;
}

.status-sep {
    color: rgba(255, 255, 255, 0.25);
}

.status-time {
    font-variant-numeric: tabular-nums;
    font-weight: 600;
    color: var(--white);
}

.status-tz {
    color: var(--gold-light);
    font-size: 0.625rem;
    letter-spacing: 0.12em;
}

/* ═══════════════════════════════════
   FOOTER (monumental)
   ═══════════════════════════════════ */
.footer {
    background: var(--bg-dark);
    color: var(--white);
    padding: clamp(4rem, 9vw, 7rem) 0 2rem;
    position: relative;
    overflow: hidden;
}

.footer-mark {
    position: absolute;
    right: -6vw;
    top: 50%;
    transform: translateY(-50%);
    width: 60vw;
    max-width: 720px;
    opacity: 0.06;
    pointer-events: none;
    user-select: none;
}

.footer-content {
    position: relative;
    z-index: 1;
}

.footer-top {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 4rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-wordmark {
    font-size: clamp(3rem, 9vw, 8rem);
    font-weight: 900;
    letter-spacing: -0.04em;
    line-height: 0.86;
    color: var(--white);
    margin: 0;
}

.footer-line-w {
    display: block;
}

.footer-line-w--alt {
    color: var(--teal);
}

.footer-tagline {
    font-size: 1.0625rem;
    font-style: italic;
    color: rgba(255, 255, 255, 0.55);
    max-width: 320px;
    text-align: right;
    line-height: 1.6;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2.5rem;
    margin-bottom: 4rem;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-label {
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--teal);
    margin-bottom: 0.5rem;
}

.footer-meta {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s;
}

a.footer-meta {
    cursor: pointer;
}

a.footer-meta:hover {
    color: var(--gold-light);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 0.02em;
}

/* ═══════════════════════════════════
   TEAL ACCENT TWEAKS
   ═══════════════════════════════════ */
.marquee-dot { color: var(--teal); }
.writing-date { color: var(--teal-deep); }
.card-tag { color: var(--gold-light); }
.card-live-dot { background: var(--live); }
.nav-logo-mark { color: var(--teal-deep); }

/* ═══════════════════════════════════
   FOUNDER SECTION
   ═══════════════════════════════════ */
.founder {
    border-top: 1px solid var(--bg-surface);
    background: linear-gradient(180deg, var(--bg) 0%, var(--bg-surface) 100%);
}

.founder-grid {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 5rem;
    align-items: start;
}

/* Aside: portrait + personal stats */
.founder-aside {
    position: sticky;
    top: 100px;
}

.portrait-frame {
    width: 100%;
    aspect-ratio: 4 / 5;
    background: linear-gradient(160deg, var(--bg-surface) 0%, var(--bg-surface-2) 100%);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 1.25rem;
    border: 1px solid var(--bg-surface-2);
}

.portrait-placeholder {
    font-size: 4.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--navy);
    opacity: 0.18;
}

.portrait-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 25%;
    display: block;
    transition: transform 1s var(--ease-expo), filter 0.5s;
    filter: saturate(0.95) contrast(1.02);
}

.portrait-frame:hover .portrait-img {
    transform: scale(1.04);
    filter: saturate(1.05) contrast(1.05);
}

.portrait-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.015em;
    line-height: 1.1;
}

.portrait-title {
    font-size: 0.8125rem;
    color: var(--text-mid);
    margin-top: 0.25rem;
    letter-spacing: 0.01em;
}

.founder-stats {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--bg-surface-2);
    display: flex;
    flex-direction: column;
    gap: 1.125rem;
}

.founder-stat {
    display: flex;
    align-items: baseline;
    gap: 0.875rem;
    justify-content: space-between;
}

.founder-stat-num {
    font-size: 1.375rem;
    font-weight: 800;
    color: var(--gold);
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
}

.founder-stat-lbl {
    font-size: 0.75rem;
    color: var(--text-mid);
    letter-spacing: 0.04em;
    text-align: right;
}

/* Main: bio + education */
.founder-main {}

.founder-headline {
    font-size: clamp(1.5rem, 2.6vw, 2.25rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
    color: var(--navy);
    margin-bottom: 2rem;
}

.founder-bio {
    display: flex;
    flex-direction: column;
    gap: 1.125rem;
    margin-bottom: 3rem;
}

.founder-bio p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-mid);
}

.founder-edu {
    border-top: 1px solid var(--bg-surface-2);
    padding-top: 2rem;
}

.founder-edu-title {
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-mid);
    margin-bottom: 1.5rem;
}

.magnetic { will-change: transform; }

/* ═══════════════════════════════════
   REVEAL ANIMATIONS (pre-state)
   ═══════════════════════════════════ */
.reveal-up {
    opacity: 0;
    transform: translateY(28px);
}

/* ═══════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════ */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .nav-hamburger { display: flex; }

    .hero-social { display: none; }

    .hero-name { font-size: clamp(4rem, 18vw, 8rem); }

    .statement-inner {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .expertise-grid {
        grid-template-columns: 1fr;
        gap: 3.5rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats-grid::before { display: none; }

    .stat-item + .stat-item::before { display: none; }

    .stat-item {
        border-bottom: 1px solid rgba(255,255,255,0.07);
        padding: 2.5rem 1.5rem;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3.5rem;
    }

    .edu-item { grid-template-columns: 1fr; gap: 0.5rem; }

    /* Founder section mobile */
    .founder-grid {
        grid-template-columns: 1fr;
        gap: 3.5rem;
    }
    .founder-aside { position: static; }
    .portrait-frame { aspect-ratio: 1 / 1; max-width: 240px; }

    /* Marquee a touch faster on small screens */
    .marquee-track { animation-duration: 28s; }

    /* Footer: collapse to two columns */
    .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
    .footer-top { flex-direction: column; align-items: flex-start; }
    .footer-tagline { text-align: left; }
    .footer-mark { width: 90vw; opacity: 0.04; }
    .footer-bottom { justify-content: flex-start; }

    /* Status widget: smaller, only essentials */
    .status-widget {
        bottom: 1rem;
        left: 1rem;
        padding: 0.5rem 0.875rem;
        font-size: 0.625rem;
    }
    .status-widget .status-label { display: none; }
    .status-widget .status-sep { display: none; }

}

@media (max-width: 480px) {
    .hero-name { font-size: clamp(3.25rem, 20vw, 5.5rem); }
    .stat-item { padding: 2rem 1.25rem; }
    .footer-grid { grid-template-columns: 1fr; gap: 1.75rem; }
}

/* ─── Reduced motion ─── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

/* ═══════════════════════════════════════════════════════════════════════
   ─────────────────────── 2026 REDESIGN LAYER ──────────────────────────
   Below: new sections added in the redesign (hero polish, showcase,
   process, play/game, notebook teaser, project detail, page veil).
   Painted on top of the existing system so old utilities still apply.
   ═══════════════════════════════════════════════════════════════════════ */

/* ─── Extra design tokens ─── */
:root {
    --serif: 'Fraunces', 'Fraunces Fallback', Georgia, serif;
    --lavender:   #B9B0DB;
    --blush:      #E8C7C0;
    --sky:        #B7CFE0;
    --sage-soft:  #C9D6BC;
    --apricot:    #E8C9A0;
    --proj-accent: #1C3F5E;
}

/* ─── Section heading — used across redesigned sections ─── */
.section-h {
    font-family: var(--serif);
    font-weight: 400;
    font-size: clamp(2.25rem, 4.4vw, 4rem);
    letter-spacing: -0.02em;
    line-height: 1.04;
    color: var(--navy);
    margin-bottom: 1.25rem;
    max-width: 18ch;
}

.section-h em {
    font-style: italic;
    color: var(--teal-deep);
    font-weight: 400;
}

.section-sub {
    font-size: 1.0625rem;
    color: var(--text-mid);
    line-height: 1.75;
    max-width: 56ch;
    margin-bottom: 1.5rem;
}

/* ─── Nav additions ─── */
.nav-logo {
    align-items: center;
    gap: 0.5rem;
    position: relative;
}
.nav-logo-sub {
    display: inline-block;
    font-size: 0.6875rem;
    font-weight: 500;
    color: var(--text-mid);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    padding-left: 0.625rem;
    margin-left: 0.5rem;
    border-left: 1px solid var(--bg-surface-2);
    transform: translateY(-1px);
}
.nav-link.nav-cta { padding: 0.55rem 1.125rem; color: var(--white); }
.nav-link.nav-cta:hover { color: var(--white); }
.nav-link.nav-cta::after { display: none; }
.nav--project { background: rgba(244, 240, 232, 0.92); backdrop-filter: blur(14px) saturate(1.4); border-bottom: 1px solid var(--bg-surface); }

/* ═══════════════════════════════════
   HERO — new layers
   ═══════════════════════════════════ */
.hero {
    position: relative;
    isolation: isolate;
}
.hero-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
    /* Base tint so the hero is never flat linen, even if the animated
       mesh layer is suppressed (reduced-motion / old cache). */
    background:
        linear-gradient(135deg,
            rgba(180, 170, 218, 0.32) 0%,
            rgba(206, 212, 230, 0.12) 46%,
            rgba(176, 202, 224, 0.24) 100%);
}
.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-mid);
    margin-bottom: 2.25rem;
    padding: 0.5rem 0.9rem;
    background: rgba(244, 240, 232, 0.7);
    border: 1px solid var(--bg-surface-2);
    border-radius: 100px;
    backdrop-filter: blur(8px);
    align-self: flex-start;
    opacity: 0;
}
.hero-kicker-dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--live);
    box-shadow: 0 0 0 0 rgba(123, 145, 98, 0.6);
    animation: livePulse 2.4s var(--ease-out) infinite;
}

.hero-name em {
    font-style: italic;
    font-family: var(--serif);
    font-weight: 300;
    letter-spacing: -0.01em;
    color: var(--navy);
}
.hero-line:nth-child(2) .hero-line-inner em { color: var(--teal-deep); }

.hero-actions {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 2.25rem;
    opacity: 0;
    transform: translateY(8px);
}

.btn-primary,
.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    padding: 0.95rem 1.6rem;
    border-radius: var(--radius-sm);
    transition: background var(--dur), color var(--dur), border-color var(--dur), transform 0.25s var(--ease-expo);
    cursor: pointer;
}

.btn-ghost {
    color: var(--text);
    background: transparent;
    border: 1px solid var(--text);
}
.btn-ghost:hover {
    background: var(--text);
    color: var(--bg);
    transform: translateY(-3px);
}
.btn-primary--lg { padding: 1.05rem 2rem; font-size: 0.9375rem; }

.hero-side {
    position: absolute;
    right: var(--gutter);
    bottom: clamp(3rem, 6vw, 5rem);
    z-index: 5;
    opacity: 0;
}
.hero-side-link {
    display: inline-flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 0.85rem 1.1rem;
    border-left: 2px solid var(--gold);
    background: rgba(244, 240, 232, 0.6);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    transition: background var(--dur), transform var(--dur) var(--ease-expo);
}
.hero-side-link:hover {
    background: rgba(244, 240, 232, 0.95);
    transform: translateX(4px);
}
.hero-side-label {
    font-size: 0.625rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-mid);
}
.hero-side-value {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--navy);
}

/* ─── Statement pillars ─── */
.statement-lede {
    font-size: 1.125rem !important;
    color: var(--text) !important;
    line-height: 1.7 !important;
}
.statement-pillars {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--bg-surface-2);
}
.pillar {
    display: grid;
    grid-template-columns: 42px 1fr;
    align-items: baseline;
    gap: 0.875rem;
}
.pillar-num {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--gold);
    letter-spacing: 0.05em;
}
.pillar-text {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--text);
}

/* ═══════════════════════════════════
   WORK — section header + showcase
   ═══════════════════════════════════ */
.work-header {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    align-items: end;
    gap: 3rem;
    margin-bottom: 4rem;
}

.showcase {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 1.25rem;
    margin-bottom: 5rem;
}

.showcase-tile {
    grid-column: span 6;
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--bg-surface);
    border: 1px solid var(--bg-surface-2);
    display: flex;
    flex-direction: column;
    cursor: pointer;
    transition: transform 0.5s var(--ease-expo), box-shadow 0.5s var(--ease-out), border-color 0.5s;
    will-change: transform;
    isolation: isolate;
    text-decoration: none;
    color: inherit;
}

.showcase-tile[data-size="wide"]  { grid-column: span 8; }
.showcase-tile[data-size="normal"]{ grid-column: span 4; }
.showcase-tile[data-size="half"]  { grid-column: span 6; }
.showcase-tile[data-size="full"]  { grid-column: span 12; }

.showcase-tile:hover {
    transform: translateY(-6px);
    box-shadow: 0 32px 80px rgba(20, 20, 20, 0.12);
    border-color: var(--tile-accent, var(--navy));
}

.tile-media {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--bg-surface-2);
    isolation: isolate;
}

.showcase-tile[data-size="normal"] .tile-media { aspect-ratio: 4 / 3; }

.tile-img {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: top center;
    transition: transform 1.4s var(--ease-expo);
}
.showcase-tile:hover .tile-img { transform: scale(1.04); }

.tile-iframe-wrap {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: var(--bg-surface);
    overflow: hidden;
}
.tile-iframe {
    position: absolute;
    top: 0;
    left: 0;
    border: 0;
    transform-origin: 0 0;
    color-scheme: light;
    pointer-events: none;
    background: #fff;
}

/* Art fallback (no image, no embed) */
.tile-media--art {
    background: linear-gradient(135deg, var(--tile-accent, var(--navy)), color-mix(in srgb, var(--tile-accent, var(--navy)) 50%, #fff));
}
.tile-art-mark {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--serif);
    font-weight: 300;
    font-style: italic;
    font-size: clamp(4rem, 8vw, 7rem);
    color: rgba(255, 255, 255, 0.92);
    letter-spacing: -0.04em;
    z-index: 2;
}
.tile-art-pattern {
    position: absolute;
    inset: 0;
    background-image:
        repeating-linear-gradient(135deg, rgba(255,255,255,0.07) 0 1px, transparent 1px 14px),
        repeating-linear-gradient(45deg,  rgba(255,255,255,0.04) 0 1px, transparent 1px 22px);
    z-index: 1;
}

/* Live badge over media */
.tile-livebadge {
    position: absolute;
    top: 0.875rem;
    right: 0.875rem;
    z-index: 5;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.6rem;
    background: rgba(20, 20, 20, 0.8);
    backdrop-filter: blur(8px);
    color: var(--white);
    font-size: 0.5625rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    border-radius: 100px;
}
.tile-livedot {
    width: 5px; height: 5px; background: var(--live); border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(123, 145, 98, 0.6);
    animation: livePulse 2.4s var(--ease-out) infinite;
}

/* Tile meta block */
.tile-meta {
    padding: 1.4rem 1.5rem 1.6rem;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.tile-meta-top {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    font-family: var(--font-mono);
    font-size: 0.625rem;
    color: var(--text-mid);
    letter-spacing: 0.08em;
    margin-bottom: 0.35rem;
}
.tile-num { color: var(--gold); font-weight: 600; }
.tile-year { color: var(--text-mid); }

.tile-status {
    margin-left: auto;
    padding: 0.18rem 0.5rem;
    background: var(--teal-tint);
    color: var(--teal-deep);
    font-family: var(--font);
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    border-radius: 100px;
}
.tile-status--amber {
    background: rgba(191, 140, 60, 0.14);
    color: var(--gold);
}

.tile-name {
    font-family: var(--serif);
    font-weight: 500;
    font-size: clamp(1.35rem, 2.2vw, 1.875rem);
    letter-spacing: -0.02em;
    line-height: 1.1;
    color: var(--text);
    margin-bottom: 0.1rem;
    transition: color 0.4s;
}
.showcase-tile:hover .tile-name { color: var(--tile-accent, var(--navy)); }

.tile-tag {
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-mid);
    margin-bottom: 0.55rem;
}

.tile-tagline {
    font-size: 0.9375rem;
    color: var(--text-mid);
    line-height: 1.6;
    margin-bottom: 0.85rem;
}

.tile-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--navy);
    padding-bottom: 0.4rem;
    border-bottom: 1px solid transparent;
    align-self: flex-start;
    transition: color 0.3s, border-color 0.3s, gap 0.3s;
}
.showcase-tile:hover .tile-cta {
    color: var(--tile-accent, var(--gold));
    border-color: currentColor;
    gap: 0.7rem;
}

.index-wrap { margin-top: 4rem; padding-top: 3rem; border-top: 1px solid var(--bg-surface); }
.index-heading { margin-bottom: 1rem; }
.ix-row { text-decoration: none; color: inherit; }
.ix-row:hover .ix-arrow { transform: translate(3px, -3px); }

/* ═══════════════════════════════════
   PROCESS
   ═══════════════════════════════════ */
.process {
    border-top: 1px solid var(--bg-surface);
    background:
        linear-gradient(180deg, var(--bg) 0%, var(--bg-surface) 50%, var(--bg) 100%);
}
.process .section-h { margin-bottom: 3rem; }
.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}
.process-step {
    background: var(--bg);
    border: 1px solid var(--bg-surface-2);
    border-radius: var(--radius);
    padding: 2rem 1.75rem 1.75rem;
    position: relative;
    transition: transform 0.4s var(--ease-expo), border-color 0.4s, background 0.4s;
}
.process-step:hover {
    transform: translateY(-4px);
    border-color: var(--gold);
    background: var(--white);
}
.process-num {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--gold);
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}
.process-title {
    font-family: var(--serif);
    font-weight: 500;
    font-size: 1.5rem;
    letter-spacing: -0.015em;
    color: var(--navy);
    margin-bottom: 0.625rem;
}
.process-body {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: var(--text-mid);
    margin-bottom: 1.25rem;
}
.process-meta {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    color: var(--text-mid);
    letter-spacing: 0.05em;
    padding-top: 0.85rem;
    border-top: 1px dashed var(--bg-surface-2);
    display: block;
}

/* ─── Capabilities bullet ─── */
.exp-bullet {
    display: inline-block;
    width: 6px; height: 6px;
    background: var(--teal);
    border-radius: 50%;
    margin-right: 0.65rem;
    transform: translateY(-2px);
    transition: background 0.3s, transform 0.3s var(--ease-expo);
}
.expertise-list li:hover .exp-bullet {
    background: var(--gold);
    transform: translateY(-2px) scale(1.4);
}

/* ═══════════════════════════════════
   PLAY — Ledger mini-game
   ═══════════════════════════════════ */
.play {
    border-top: 1px solid var(--bg-surface);
    background:
        radial-gradient(ellipse at top, rgba(185, 176, 219, 0.08), transparent 70%),
        var(--bg);
}
.play-header {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 3rem;
    align-items: end;
    margin-bottom: 3rem;
}
.play-intro {
    font-size: 1rem;
    color: var(--text-mid);
    line-height: 1.7;
}
.play-stage {
    display: flex;
    justify-content: center;
}
.play-frame {
    width: 100%;
    max-width: 920px;
    background: var(--white);
    border: 1px solid var(--bg-surface-2);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(20, 20, 20, 0.1);
}
.play-frame-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.875rem 1.25rem;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--bg-surface-2);
}
.play-frame-dots { display: inline-flex; gap: 6px; }
.play-frame-dots i {
    width: 10px; height: 10px;
    background: var(--bg-surface-2);
    border-radius: 50%;
}
.play-frame-dots i:nth-child(1) { background: #E8807C; }
.play-frame-dots i:nth-child(2) { background: #E8C97C; }
.play-frame-dots i:nth-child(3) { background: #8EBE8B; }
.play-frame-title {
    flex: 1;
    text-align: center;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-mid);
}
.play-frame-title em { color: var(--gold); font-style: italic; }
.play-frame-badge {
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gold);
    background: rgba(191, 140, 60, 0.12);
    padding: 0.25rem 0.6rem;
    border-radius: 100px;
}

.play-canvas-wrap {
    display: grid;
    grid-template-columns: 1fr 220px;
    gap: 1.25rem;
    padding: 1.5rem;
    background: var(--bg);
}
#game-canvas {
    width: 100%;
    height: auto;
    background: var(--bg);
    border-radius: var(--radius-sm);
    cursor: grab;
    touch-action: none;
    user-select: none;
}
#game-canvas:active { cursor: grabbing; }

.play-hud {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-self: stretch;
}
.play-hud-stat {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 0.9rem 1rem;
    background: var(--bg-surface);
    border-radius: var(--radius-sm);
    border: 1px solid var(--bg-surface-2);
}
.play-hud-label {
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-mid);
}
.play-hud-value {
    font-family: var(--font-mono);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--navy);
    font-variant-numeric: tabular-nums;
}
.play-hud-btn {
    margin-top: auto;
    padding: 0.85rem 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--white);
    background: var(--navy);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background 0.3s, transform 0.3s var(--ease-expo);
}
.play-hud-btn:hover { background: var(--gold); transform: translateY(-2px); }

.play-frame-foot {
    padding: 0.875rem 1.25rem;
    background: var(--bg-surface);
    border-top: 1px solid var(--bg-surface-2);
    font-size: 0.8125rem;
    color: var(--text-mid);
    text-align: center;
    line-height: 1.5;
}

@media (max-width: 720px) {
    .play-canvas-wrap { grid-template-columns: 1fr; }
    .play-hud { flex-direction: row; flex-wrap: wrap; }
    .play-hud-stat { flex: 1 1 calc(33% - 0.5rem); }
    .play-hud-btn { flex: 1 1 100%; }
}

/* ═══════════════════════════════════
   FOUNDER — cross link to personal site
   ═══════════════════════════════════ */
.founder-cross {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-top: 2.5rem;
    padding: 1.25rem 1.5rem;
    border: 1px solid var(--bg-surface-2);
    border-radius: var(--radius);
    transition: background 0.4s, border-color 0.4s, transform 0.4s var(--ease-expo);
    background: rgba(255, 255, 255, 0.5);
}
.founder-cross:hover {
    background: var(--white);
    border-color: var(--navy);
    transform: translateY(-2px);
}
.founder-cross-label {
    font-size: 0.875rem;
    color: var(--text);
}
.founder-cross-value {
    font-family: var(--font-mono);
    font-size: 0.875rem;
    color: var(--navy);
    font-weight: 600;
}

/* ═══════════════════════════════════
   NOTEBOOK TEASER (slim, redirects)
   ═══════════════════════════════════ */
.notebook {
    border-top: 1px solid var(--bg-surface);
    background:
        radial-gradient(ellipse at 80% 10%, rgba(232, 199, 192, 0.18), transparent 60%),
        var(--bg);
}
.notebook-inner { display: flex; flex-direction: column; gap: 3rem; }
.notebook-text { max-width: 64ch; }
.notebook-intro {
    font-size: 1.0625rem;
    color: var(--text-mid);
    line-height: 1.75;
}
.notebook-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}
.nb-card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    aspect-ratio: 4 / 5;
    padding: 1.5rem;
    border-radius: var(--radius);
    overflow: hidden;
    color: var(--white);
    background: var(--bg-dark);
    transition: transform 0.5s var(--ease-expo);
    isolation: isolate;
}
.nb-card:hover { transform: translateY(-6px); }

.nb-cover {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.55;
    z-index: 0;
    transition: opacity 0.5s, transform 1.2s var(--ease-expo);
}
.nb-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(20,20,20,0.1) 0%, rgba(20,20,20,0.6) 60%, rgba(20,20,20,0.92) 100%);
    z-index: 1;
}
.nb-card:hover .nb-cover { opacity: 0.78; transform: scale(1.06); }

.nb-date, .nb-title, .nb-snip, .nb-arrow {
    position: relative; z-index: 2;
}
.nb-date {
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--gold-light);
    margin-bottom: 0.625rem;
}
.nb-title {
    font-family: var(--serif);
    font-weight: 400;
    font-size: 2rem;
    letter-spacing: -0.02em;
    line-height: 1;
    margin-bottom: 0.4rem;
}
.nb-snip {
    font-size: 0.875rem;
    font-style: italic;
    color: rgba(255,255,255,0.78);
    margin-bottom: 0.875rem;
}
.nb-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px; height: 32px;
    border: 1px solid rgba(255,255,255,0.22);
    border-radius: 50%;
    color: rgba(255,255,255,0.85);
    transition: border-color 0.3s, color 0.3s, transform 0.3s var(--ease-expo);
}
.nb-card:hover .nb-arrow { border-color: var(--gold); color: var(--gold); transform: translate(2px, -2px); }

.notebook-out {
    display: inline-flex;
    flex-direction: column;
    gap: 0.4rem;
    padding: 1.25rem 1.75rem;
    background: var(--bg-dark);
    color: var(--white);
    border-radius: var(--radius);
    align-self: flex-start;
    transition: background 0.3s, transform 0.3s var(--ease-expo);
}
.notebook-out:hover { background: var(--navy); transform: translateY(-2px); }
.nb-out-label {
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.6);
}
.nb-out-host {
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--white);
}
.nb-out-ar { color: var(--gold-light); margin-left: 0.5rem; }

/* ═══════════════════════════════════
   CONTACT — sub copy
   ═══════════════════════════════════ */
.contact-headline em { font-family: var(--serif); font-weight: 300; font-style: italic; color: var(--teal-deep); }
.contact-sub {
    font-size: 1rem;
    color: var(--text-mid);
    line-height: 1.7;
    margin-top: 1.5rem;
    max-width: 38ch;
}

/* ═══════════════════════════════════
   PAGE VEIL (transitions)
   ═══════════════════════════════════ */
.page-veil {
    position: fixed;
    inset: 0;
    z-index: 500;
    background: var(--bg);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s var(--ease-out);
}
.page-veil.fade-in { opacity: 1; }
.page-veil.active { opacity: 1; pointer-events: all; }

/* ═══════════════════════════════════
   PROJECT DETAIL PAGE
   ═══════════════════════════════════ */
.project-body { padding-top: 0; }
.proj-page { padding-top: 80px; }

.proj-hero {
    position: relative;
    padding-block: clamp(3rem, 6vw, 6rem) clamp(3rem, 7vw, 6rem);
    overflow: hidden;
    isolation: isolate;
}
.proj-hero-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, var(--bg) 0%, var(--bg-surface) 100%);
}
.proj-hero-glow {
    position: absolute;
    width: 60vmax; height: 60vmax;
    border-radius: 50%;
    filter: blur(110px);
    top: -20vh; right: -20vw;
    pointer-events: none;
}
.proj-hero-grain {
    position: absolute;
    inset: 0;
    opacity: 0.4;
    background-image:
        radial-gradient(circle at 10% 80%, rgba(28, 63, 94, 0.06) 0%, transparent 40%);
}

.proj-back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-mid);
    margin-bottom: 2.25rem;
    transition: color 0.3s, gap 0.3s;
}
.proj-back:hover { color: var(--navy); gap: 0.7rem; }

.proj-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.proj-hero-meta-top {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-mid);
    letter-spacing: 0.05em;
    margin-bottom: 1.25rem;
}
.proj-meta-sep { color: var(--bg-surface-2); }
.proj-year { color: var(--gold); font-weight: 600; }

.proj-name {
    font-family: var(--serif);
    font-weight: 400;
    font-size: clamp(2.75rem, 6.5vw, 5.5rem);
    letter-spacing: -0.03em;
    line-height: 1.0;
    color: var(--text);
    margin-bottom: 1.25rem;
}

.proj-tagline {
    font-size: clamp(1.125rem, 1.8vw, 1.4rem);
    color: var(--text-mid);
    line-height: 1.5;
    margin-bottom: 2.25rem;
    font-style: italic;
}

.proj-keymeta {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
    margin: 0 0 2rem;
    padding: 1.5rem 0;
    border-top: 1px solid var(--bg-surface-2);
    border-bottom: 1px solid var(--bg-surface-2);
}
.proj-keymeta dt {
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-mid);
    margin-bottom: 0.35rem;
}
.proj-keymeta dd {
    font-size: 0.9375rem;
    color: var(--text);
    line-height: 1.4;
}

.proj-status-pill {
    display: inline-block;
    padding: 0.18rem 0.6rem;
    background: var(--teal-tint);
    color: var(--teal-deep);
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    border-radius: 100px;
}
.proj-status-pill[data-status="shipping"] {
    background: rgba(191, 140, 60, 0.14);
    color: var(--gold);
}

.proj-hero-actions { display: inline-flex; gap: 0.75rem; }

.proj-hero-visual {
    position: relative;
    aspect-ratio: 4 / 3;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--bg-surface);
    box-shadow: 0 32px 80px rgba(20, 20, 20, 0.16);
}

.proj-visual-iframe {
    position: absolute;
    inset: 0;
    overflow: hidden;
    background: #fff;
}
.proj-visual-browser {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 0.875rem;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--bg-surface-2);
    position: relative;
    z-index: 2;
}
.proj-visual-dots { display: inline-flex; gap: 6px; }
.proj-visual-dots i {
    width: 9px; height: 9px;
    background: var(--bg-surface-2);
    border-radius: 50%;
}
.proj-visual-dots i:nth-child(1) { background: #E8807C; }
.proj-visual-dots i:nth-child(2) { background: #E8C97C; }
.proj-visual-dots i:nth-child(3) { background: #8EBE8B; }
.proj-visual-url {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-mid);
}
.proj-visual-iframe iframe {
    position: absolute;
    top: 36px; left: 0;
    width: 100%;
    height: calc(100% - 36px);
    border: 0;
    color-scheme: light;
}
.proj-visual-image {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: top center;
    transition: transform 1.5s var(--ease-expo);
}
.proj-hero-visual:hover .proj-visual-image { transform: scale(1.04); }
.proj-visual-grad {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.proj-visual-grad-mark {
    font-family: var(--serif);
    font-style: italic;
    font-weight: 300;
    font-size: 10rem;
    color: rgba(255,255,255,0.9);
    letter-spacing: -0.04em;
}

/* ─── Results strip ─── */
.proj-results {
    background: var(--bg-dark);
    padding-block: clamp(2rem, 4vw, 3rem);
    color: var(--white);
}
.proj-results-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    list-style: none;
}
.proj-result {
    text-align: center;
    padding: 0 1.5rem;
    border-left: 1px solid rgba(255,255,255,0.08);
}
.proj-result:first-child { border-left: 0; }
.proj-result-val {
    display: block;
    font-family: var(--serif);
    font-weight: 400;
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--gold);
    letter-spacing: -0.025em;
    line-height: 1;
    margin-bottom: 0.625rem;
}
.proj-result-lbl {
    display: block;
    font-size: 0.75rem;
    font-weight: 500;
    color: rgba(255,255,255,0.6);
    letter-spacing: 0.06em;
}

/* ─── Body ─── */
.proj-body-sec { padding-block: clamp(4rem, 8vw, 7rem); }
.proj-body-grid {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 5rem;
    align-items: start;
}
.proj-body-aside {
    position: sticky;
    top: 100px;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}
.proj-aside-card {
    background: var(--bg);
    border: 1px solid var(--bg-surface-2);
    border-radius: var(--radius);
    padding: 1.125rem 1.25rem;
}
.proj-aside-label {
    display: block;
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-mid);
    margin-bottom: 0.625rem;
}
.proj-tech-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}
.proj-tech-list li {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    color: var(--text);
    background: var(--bg-surface);
    padding: 0.28rem 0.55rem;
    border-radius: 100px;
}
.proj-aside-val {
    font-size: 0.875rem;
    color: var(--text);
    line-height: 1.5;
}

.proj-body-main {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}
.proj-section {
    padding-bottom: 2.5rem;
    border-bottom: 1px solid var(--bg-surface-2);
}
.proj-section:last-child { border-bottom: 0; padding-bottom: 0; }
.proj-section-num {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--proj-accent);
    letter-spacing: 0.05em;
}
.proj-section-h {
    font-family: var(--serif);
    font-weight: 400;
    font-size: clamp(1.5rem, 2.6vw, 2.25rem);
    letter-spacing: -0.02em;
    color: var(--navy);
    margin: 0.4rem 0 1rem;
}
.proj-section-body {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: var(--text);
}
.proj-highlights {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}
.proj-highlights li {
    display: grid;
    grid-template-columns: 24px 1fr;
    align-items: baseline;
    font-size: 1rem;
    line-height: 1.65;
    color: var(--text);
    padding: 0.5rem 0;
}
.proj-highlight-mark {
    color: var(--proj-accent);
    font-size: 0.875rem;
}

/* ─── Gallery ─── */
.proj-gallery { padding-block: clamp(3rem, 7vw, 6rem); border-top: 1px solid var(--bg-surface); }
.proj-gallery .section-label { margin-bottom: 2rem; }
.proj-gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}
.proj-shot {
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--bg-surface);
    border: 1px solid var(--bg-surface-2);
}
.proj-shot img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 1.2s var(--ease-expo);
}
.proj-shot:hover img { transform: scale(1.03); }

/* ─── Next project ─── */
.proj-next {
    border-top: 1px solid var(--bg-surface);
    padding-block: clamp(3rem, 6vw, 5rem);
}
.proj-next-link {
    display: flex;
    align-items: baseline;
    gap: 1.5rem;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--bg-surface-2);
    transition: padding 0.4s var(--ease-out);
}
.proj-next-link:hover { padding-left: 1.5rem; }
.proj-next-label {
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-mid);
}
.proj-next-name {
    font-family: var(--serif);
    font-weight: 400;
    font-size: clamp(2rem, 4.5vw, 3.5rem);
    letter-spacing: -0.025em;
    color: var(--navy);
    flex: 1;
    transition: color 0.3s;
}
.proj-next-link:hover .proj-next-name { color: var(--gold); }
.proj-next-arrow {
    font-size: 1.5rem;
    color: var(--gold);
    transition: transform 0.4s var(--ease-expo);
}
.proj-next-link:hover .proj-next-arrow { transform: translateX(8px); }

/* ─── Project CTA ─── */
.proj-cta {
    background: var(--bg-dark);
    color: var(--white);
    padding-block: clamp(4rem, 8vw, 6rem);
    text-align: center;
}
.proj-cta-inner {
    max-width: 640px;
    margin-inline: auto;
}
.proj-cta-h {
    font-family: var(--serif);
    font-weight: 400;
    font-size: clamp(2rem, 4vw, 3rem);
    letter-spacing: -0.02em;
    color: var(--white);
    margin-bottom: 0.875rem;
}
.proj-cta-sub {
    font-size: 1.0625rem;
    color: rgba(255,255,255,0.65);
    margin-bottom: 2rem;
}

/* ═══════════════════════════════════
   RESPONSIVE — redesign layer
   ═══════════════════════════════════ */
@media (max-width: 1024px) {
    .showcase-tile { grid-column: span 6; }
    .showcase-tile[data-size="wide"]  { grid-column: span 12; }
    .showcase-tile[data-size="normal"]{ grid-column: span 6; }
    .work-header { grid-template-columns: 1fr; }
    .process-grid { grid-template-columns: repeat(2, 1fr); }
    .play-header { grid-template-columns: 1fr; }
    .proj-hero-grid { grid-template-columns: 1fr; gap: 2.5rem; }
    .proj-body-grid { grid-template-columns: 1fr; gap: 2.5rem; }
    .proj-body-aside { position: static; flex-direction: row; flex-wrap: wrap; }
    .proj-aside-card { flex: 1 1 calc(33% - 1rem); min-width: 200px; }
}

@media (max-width: 768px) {
    .nav-logo-sub { display: none; }
    .nav-link.nav-cta { display: none; }
    .hero-side { display: none; }
    .hero-kicker { font-size: 0.625rem; }
    .hero-actions { flex-wrap: wrap; margin-top: 1.5rem; }

    .showcase-tile,
    .showcase-tile[data-size] { grid-column: span 12 !important; }

    .work-header { gap: 1.5rem; }

    .process-grid { grid-template-columns: 1fr; }

    .play-canvas-wrap { grid-template-columns: 1fr; padding: 1rem; }
    .play-frame-badge { display: none; }

    .notebook-cards { grid-template-columns: 1fr; }

    .proj-results-grid { grid-template-columns: 1fr; gap: 1.5rem; }
    .proj-result { border-left: 0; border-top: 1px solid rgba(255,255,255,0.08); padding: 1.25rem 0 0; }
    .proj-result:first-child { border-top: 0; padding-top: 0; }

    .proj-keymeta { grid-template-columns: 1fr; }
    .proj-gallery-grid { grid-template-columns: 1fr; }

    .proj-next-link { flex-direction: column; gap: 0.5rem; align-items: flex-start; }

    .founder-cross { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
}

@media (max-width: 480px) {
    .nb-card { aspect-ratio: 5 / 6; }
    .nb-title { font-size: 1.625rem; }
    .proj-name { font-size: clamp(2.25rem, 11vw, 3.25rem); }
}

/* ═══════════════════════════════════════════════════════════════════
   CONTACT FORM — Considered, calm, with a satisfying submission
   ═══════════════════════════════════════════════════════════════════ */
.contact .contact-grid {
    grid-template-columns: 0.9fr 1.1fr;
    gap: 5rem;
    align-items: start;
}

.cf-card {
    position: relative;
    background: var(--white);
    border: 1px solid var(--bg-surface-2);
    border-radius: var(--radius);
    padding: clamp(1.75rem, 3vw, 2.5rem);
    box-shadow: 0 24px 60px rgba(28, 63, 94, 0.08);
    overflow: hidden;
}

.cf-form-head { margin-bottom: 1.75rem; }
.cf-form-eyebrow {
    display: block;
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 0.625rem;
}
.cf-form-title {
    font-family: var(--serif);
    font-weight: 400;
    font-size: clamp(1.5rem, 2.4vw, 2rem);
    letter-spacing: -0.02em;
    line-height: 1.1;
    color: var(--navy);
}

.cf-row {
    display: grid;
    gap: 0.75rem;
    margin-bottom: 0.875rem;
}
.cf-row-2 { grid-template-columns: 1fr 1fr; }
@media (max-width: 640px) { .cf-row-2 { grid-template-columns: 1fr; } }

.cf-field {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-bottom: 0.875rem;
    position: relative;
}

.cf-label {
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-mid);
}
.cf-label em { color: var(--gold); font-style: normal; }
.cf-opt { color: var(--bg-surface-2); font-weight: 500; margin-left: 0.35rem; }

.cf-field input,
.cf-field select,
.cf-field textarea {
    width: 100%;
    font-family: var(--font);
    font-size: 0.9375rem;
    color: var(--text);
    background: var(--bg);
    border: 1px solid var(--bg-surface-2);
    border-radius: var(--radius-sm);
    padding: 0.875rem 1rem;
    line-height: 1.5;
    transition: border-color 0.25s, background 0.25s, box-shadow 0.25s;
    -webkit-appearance: none;
    appearance: none;
}
.cf-field textarea { resize: vertical; min-height: 110px; }
.cf-field select {
    background-image: linear-gradient(45deg, transparent 50%, var(--text-mid) 50%),
                      linear-gradient(135deg, var(--text-mid) 50%, transparent 50%);
    background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%;
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
    padding-right: 2.25rem;
    cursor: pointer;
}
.cf-field input::placeholder,
.cf-field textarea::placeholder { color: var(--text-mid); opacity: 0.55; }
.cf-field input:focus,
.cf-field select:focus,
.cf-field textarea:focus {
    outline: none;
    border-color: var(--navy);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(28, 63, 94, 0.08);
}
.cf-field input:invalid:not(:placeholder-shown),
.cf-field textarea:invalid:not(:placeholder-shown) {
    border-color: rgba(184, 101, 74, 0.5);
}
.cf-field input.has-value,
.cf-field select.has-value,
.cf-field textarea.has-value {
    background: var(--white);
}

.cf-counter {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    color: var(--text-mid);
    align-self: flex-end;
    margin-top: 0.25rem;
    font-feature-settings: 'tnum';
}

.cf-turnstile-wrap {
    margin: 0.5rem 0 1rem;
    display: flex;
    justify-content: flex-start;
}
.cf-turnstile { min-height: 0; }

/* ─── Submit button — multi-state ─── */
.cf-actions { display: flex; flex-direction: column; gap: 0.875rem; }

.cf-submit {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    padding: 1.05rem 1.75rem;
    font-size: 0.9375rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--white);
    background: var(--navy);
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: pointer;
    transition: background 0.3s, transform 0.25s var(--ease-expo);
    align-self: flex-start;
    min-width: 200px;
}
.cf-submit:hover { background: var(--gold); transform: translateY(-3px); }
.cf-submit:active { transform: translateY(-1px); }
.cf-submit:disabled { opacity: 0.85; cursor: default; }

.cf-submit-label,
.cf-submit-loading {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    transition: opacity 0.3s, transform 0.3s;
}
.cf-submit-loading {
    position: absolute;
    inset: 0;
    justify-content: center;
    opacity: 0;
    transform: translateY(10px);
}
.cf-submit.is-loading .cf-submit-label { opacity: 0; transform: translateY(-10px); }
.cf-submit.is-loading .cf-submit-loading { opacity: 1; transform: translateY(0); }

.cf-spinner {
    width: 16px; height: 16px;
    border: 2px solid rgba(255,255,255,0.35);
    border-top-color: var(--white);
    border-radius: 50%;
    animation: cfSpin 0.7s linear infinite;
}
@keyframes cfSpin { to { transform: rotate(360deg); } }

.cf-fineprint {
    font-size: 0.75rem;
    color: var(--text-mid);
    line-height: 1.6;
    max-width: 44ch;
}

.cf-error {
    padding: 0.875rem 1rem;
    background: rgba(184, 101, 74, 0.08);
    border: 1px solid rgba(184, 101, 74, 0.25);
    border-radius: var(--radius-sm);
    color: var(--terracotta);
    font-size: 0.875rem;
    margin-top: 1rem;
}

/* ─── Thank-you panel ─── */
.cf-thanks {
    position: relative;
    text-align: center;
    padding: 2rem 1rem 1.5rem;
}
.cf-confetti {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}
.cf-seal {
    position: relative;
    z-index: 2;
    width: 92px;
    height: 92px;
    margin: 0 auto 1.5rem;
    color: var(--gold);
}
.cf-seal svg { width: 100%; height: 100%; display: block; }
.cf-seal-ring { transform-origin: 50% 50%; transform-box: fill-box; }
.cf-seal-disc { transform-origin: 50% 50%; transform-box: fill-box; transform: scale(0); }
.cf-seal-mark { opacity: 0; }

.cf-thanks-eyebrow {
    display: block;
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--teal-deep);
    margin-bottom: 0.625rem;
    position: relative;
    z-index: 2;
}
.cf-thanks-title {
    font-family: var(--serif);
    font-weight: 400;
    font-size: clamp(2rem, 3.6vw, 2.75rem);
    letter-spacing: -0.025em;
    color: var(--navy);
    margin-bottom: 0.875rem;
    position: relative;
    z-index: 2;
}
.cf-thanks-body {
    font-size: 1rem;
    color: var(--text-mid);
    line-height: 1.7;
    max-width: 38ch;
    margin: 0 auto 1.75rem;
    position: relative;
    z-index: 2;
}

.cf-thanks-meta {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    margin: 0 auto 1.75rem;
    max-width: 460px;
    padding: 1.125rem 1rem;
    background: var(--bg);
    border: 1px solid var(--bg-surface-2);
    border-radius: var(--radius);
    position: relative;
    z-index: 2;
    text-align: left;
}
.cf-thanks-meta div { display: flex; flex-direction: column; gap: 0.3rem; padding: 0 0.25rem; }
.cf-thanks-meta dt {
    font-size: 0.5625rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-mid);
}
.cf-thanks-meta dd {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text);
    word-break: break-word;
}
@media (max-width: 560px) {
    .cf-thanks-meta { grid-template-columns: 1fr; gap: 0.875rem; }
}

.cf-thanks-sig {
    font-family: var(--serif);
    font-style: italic;
    font-size: 1rem;
    color: var(--text-mid);
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 2;
}
.cf-thanks-again {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-mid);
    padding: 0.625rem 1.125rem;
    border: 1px solid var(--bg-surface-2);
    border-radius: 100px;
    cursor: pointer;
    transition: color 0.3s, border-color 0.3s, background 0.3s;
    position: relative;
    z-index: 2;
}
.cf-thanks-again:hover {
    color: var(--navy);
    border-color: var(--navy);
    background: var(--bg-surface);
}

/* ─── Contact section responsive ─── */
@media (max-width: 1024px) {
    .contact .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
}

/* ═══════════════════════════════════════════════════════════════════
   LEDGER — leaderboard panel
   Lives INSIDE .play-frame so it shares the same paper, border &
   shadow as the game. Designed to look like a ruled accountant's
   ledger page tucked beneath the play canvas.
   ═══════════════════════════════════════════════════════════════════ */
.play-frame-foot em {
    font-style: italic;
    color: var(--text-mid);
}

.play-ledger {
    border-top: 1px solid var(--bg-surface-2);
    background:
        repeating-linear-gradient(
            to bottom,
            transparent 0,
            transparent 41px,
            rgba(28, 63, 94, 0.025) 41px,
            rgba(28, 63, 94, 0.025) 42px
        ),
        linear-gradient(180deg, var(--bg) 0%, var(--white) 60%);
}

/* ─── Head: small, restrained, no popping pill ─── */
.play-ledger-head {
    display: flex;
    align-items: baseline;
    gap: 0.875rem;
    padding: 1.125rem 1.5rem 0.875rem;
    border-bottom: 1px solid var(--bg-surface);
}
.play-ledger-eyebrow {
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold);
}
.play-ledger-title {
    font-family: var(--serif);
    font-weight: 400;
    font-size: 1.25rem;
    letter-spacing: -0.015em;
    color: var(--navy);
    flex: 1;
}
.play-ledger-title em {
    font-style: italic;
    color: var(--teal-deep);
}
.play-ledger-status {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    color: var(--text-mid);
    letter-spacing: 0.05em;
    text-transform: lowercase;
    font-feature-settings: 'tnum';
}
.play-ledger-status.is-error { color: var(--text-mid); opacity: 0.55; }

.play-ledger-refresh {
    width: 26px; height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--bg-surface-2);
    border-radius: 50%;
    color: var(--text-mid);
    background: transparent;
    cursor: pointer;
    transition: color 0.25s, border-color 0.25s, transform 0.5s var(--ease-expo);
}
.play-ledger-refresh:hover {
    color: var(--navy);
    border-color: var(--navy);
    transform: rotate(180deg);
}

/* ─── List: ledger-paper rows ─── */
.play-ledger-list {
    list-style: none;
    margin: 0;
    padding: 0.25rem 0;
    min-height: 84px;
}
.play-ledger-empty {
    padding: 1.5rem;
    text-align: center;
    color: var(--text-mid);
    font-size: 0.875rem;
    font-style: italic;
}

.play-ledger-row {
    display: grid;
    grid-template-columns: 36px 1fr auto auto;
    align-items: baseline;
    gap: 1.25rem;
    padding: 0.55rem 1.5rem;
    font-feature-settings: 'tnum';
    transition: background 0.2s;
    position: relative;
}
.play-ledger-row:hover { background: rgba(28, 63, 94, 0.025); }

.play-ledger-rank {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-mid);
    letter-spacing: 0.04em;
}
.play-ledger-row--top:nth-child(1) .play-ledger-rank { color: var(--gold); font-weight: 700; }

.play-ledger-name {
    font-size: 0.9375rem;
    color: var(--text);
    letter-spacing: -0.005em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.play-ledger-row--top:nth-child(1) .play-ledger-name {
    color: var(--navy);
    font-weight: 500;
    font-family: var(--serif);
    font-style: italic;
    font-size: 1.0625rem;
}

.play-ledger-meta {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    color: var(--text-mid);
    letter-spacing: 0.04em;
}

.play-ledger-score {
    font-family: var(--font-mono);
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--navy);
    font-variant-numeric: tabular-nums;
    min-width: 56px;
    text-align: right;
}
.play-ledger-row--top:nth-child(1) .play-ledger-score { color: var(--gold); }

/* Player's just-saved row */
.play-ledger-row--mine {
    background: linear-gradient(90deg, rgba(191, 140, 60, 0.10), rgba(191, 140, 60, 0));
}
.play-ledger-row--mine::before {
    content: '';
    position: absolute;
    inset: 0 auto 0 0;
    width: 2px;
    background: var(--gold);
}

/* ─── Foot: submit area (single horizontal row, ledger-style) ─── */
.play-ledger-foot {
    padding: 0.875rem 1.5rem;
    border-top: 1px solid var(--bg-surface-2);
    background: var(--bg);
    min-height: 56px;
    position: relative;
}

/* CRITICAL — defeat any later [data-state] rule that would override [hidden] */
.play-ledger-state[hidden],
.play-ledger-state.is-hidden { display: none !important; }

.play-ledger-state {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    flex-wrap: wrap;
}

.play-ledger-foot-label {
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-mid);
}
.play-ledger-foot-value {
    font-size: 0.875rem;
    color: var(--text);
    line-height: 1.4;
    flex: 1;
    min-width: 0;
}
.play-ledger-foot-value b {
    font-family: var(--font-mono);
    font-weight: 600;
    color: var(--navy);
    font-variant-numeric: tabular-nums;
    font-size: 1rem;
}

/* CTA — restrained ghost button (not a thick navy slab) */
.play-ledger-cta {
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--navy);
    background: transparent;
    border: 1px solid var(--navy);
    border-radius: 100px;
    padding: 0.5rem 0.9rem;
    cursor: pointer;
    transition: background 0.25s, color 0.25s, border-color 0.25s;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    position: relative;
    overflow: hidden;
}
.play-ledger-cta:hover {
    background: var(--navy);
    color: var(--white);
}
.play-ledger-cta--primary {
    background: var(--navy);
    color: var(--white);
}
.play-ledger-cta--primary:hover { background: var(--gold); border-color: var(--gold); }
.play-ledger-cta:disabled { opacity: 0.7; cursor: default; }

.play-ledger-send-label,
.play-ledger-send-loading {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: opacity 0.25s, transform 0.25s;
}
.play-ledger-send-loading {
    position: absolute;
    inset: 0;
    justify-content: center;
    opacity: 0;
    transform: translateY(8px);
}
.play-ledger-cta.is-loading .play-ledger-send-label   { opacity: 0; transform: translateY(-8px); }
.play-ledger-cta.is-loading .play-ledger-send-loading { opacity: 1; transform: translateY(0); }

/* ─── Form state ─── */
.play-ledger-form {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    width: 100%;
}
.play-ledger-form-row {
    display: flex;
    gap: 0.75rem;
    align-items: flex-end;
    flex-wrap: wrap;
}
.play-ledger-field {
    flex: 1;
    min-width: 200px;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}
.play-ledger-field-label {
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-mid);
}
.play-ledger-field input {
    font-family: var(--font);
    font-size: 0.9375rem;
    color: var(--text);
    background: var(--white);
    border: 1px solid var(--bg-surface-2);
    border-radius: var(--radius-sm);
    padding: 0.6rem 0.75rem;
    transition: border-color 0.25s, box-shadow 0.25s;
}
.play-ledger-field input:focus {
    outline: none;
    border-color: var(--navy);
    box-shadow: 0 0 0 3px rgba(28, 63, 94, 0.08);
}
.play-ledger-honeypot {
    position: absolute !important;
    left: -9999px;
    width: 1px; height: 1px;
    opacity: 0;
}
.play-ledger-form-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}
.play-ledger-cancel {
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-mid);
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem 0.625rem;
    transition: color 0.25s;
}
.play-ledger-cancel:hover { color: var(--navy); }
.play-ledger-turnstile {
    min-height: 0;
}
.play-ledger-error {
    font-size: 0.8125rem;
    color: var(--terracotta);
    padding: 0.5rem 0.75rem;
    background: rgba(184, 101, 74, 0.08);
    border: 1px solid rgba(184, 101, 74, 0.2);
    border-radius: var(--radius-sm);
}

/* ─── Responsive ─── */
@media (max-width: 640px) {
    .play-ledger-row {
        grid-template-columns: 30px 1fr auto;
        gap: 0.875rem;
        padding: 0.55rem 1.125rem;
    }
    .play-ledger-meta { display: none; }
    .play-ledger-head, .play-ledger-foot { padding-inline: 1.125rem; }
    .play-ledger-form-row { flex-direction: column; align-items: stretch; }
    .play-ledger-form-actions { justify-content: space-between; }
}

/* ═══════════════════════════════════════════════════════════════════
   ───────────────── 2026 MOTION & POLISH LAYER ────────────────────
   ═══════════════════════════════════════════════════════════════════ */

/* ─── Cross-document View Transitions (Chrome) ─── */
@view-transition { navigation: auto; }
::view-transition-group(*) {
    animation-duration: 0.55s;
    animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
}
::view-transition-old(root) { animation-duration: 0.32s; }
::view-transition-new(root) { animation-duration: 0.5s; }

/* ─── Hero: slow-drifting gradient mesh ─── */
.hero-mesh {
    position: absolute;
    inset: -25%;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(60% 58% at 16% 18%, rgba(171, 158, 216, 0.60), transparent 72%),
        radial-gradient(56% 54% at 88% 30%, rgba(164, 198, 227, 0.50), transparent 74%),
        radial-gradient(54% 56% at 60% 94%, rgba(186, 196, 224, 0.42), transparent 74%);
    filter: blur(54px) saturate(1.12);
    animation: heroMesh 28s ease-in-out infinite alternate;
    will-change: transform;
}
@keyframes heroMesh {
    0%   { transform: translate3d(-2%, -1%, 0) scale(1.05) rotate(0deg); }
    50%  { transform: translate3d(2%, 1.5%, 0) scale(1.14) rotate(2deg); }
    100% { transform: translate3d(-1%, 2%, 0) scale(1.07) rotate(-1.5deg); }
}

/* ─── Hero: variable-font italic settle ─── */
.hero-line-inner em {
    font-variation-settings: "wght" var(--hero-wght, 320), "opsz" 130, "SOFT" 0;
}

/* ─── Mask-reveal (per-line clip wipe) ─── */
.reveal-mask {
    clip-path: inset(0 0 105% 0);
    will-change: clip-path;
}

/* ─── Statement drop-cap (editorial) ─── */
.statement-lede::first-letter {
    font-family: var(--serif);
    font-style: italic;
    font-weight: 400;
    font-size: 3.05em;
    line-height: 0.7;
    float: left;
    padding: 0.07em 0.14em 0 0;
    color: var(--teal-deep);
}

/* ─── Showcase tile: accent spine that grows on hover ─── */
.showcase-tile::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 3px;
    z-index: 6;
    background: var(--tile-accent, var(--navy));
    transition: width 0.45s var(--ease-expo);
    border-radius: var(--radius) 0 0 var(--radius);
    pointer-events: none;
}
.showcase-tile:hover::before { width: 6px; }

/* ─── Marquee: JS-driven (velocity reactive) ─── */
.marquee-track.is-js {
    animation: none !important;
    will-change: transform;
}

/* ─── Focus-visible (custom cursor hides the native pointer) ─── */
:focus-visible {
    outline: 2px solid var(--navy);
    outline-offset: 3px;
    border-radius: 2px;
}
a:focus-visible,
.showcase-tile:focus-visible,
.ix-row:focus-visible,
.nav-cta:focus-visible { outline-color: var(--gold); }
/* Inputs get the existing box-shadow ring, not a hard outline */
.cf-field input:focus-visible,
.cf-field select:focus-visible,
.cf-field textarea:focus-visible,
.play-ledger-field input:focus-visible { outline: none; }

/* ─── Reduced motion: quiet everything new ─── */
@media (prefers-reduced-motion: reduce) {
    .hero-mesh { animation: none; }
    .hero-line-inner em { font-variation-settings: "wght" 360, "opsz" 130; }
    .reveal-mask { clip-path: none !important; }
    .marquee-track.is-js { transform: none !important; }
}

