/* ==========================================================================
   Orelian — landing page
   Two-zone stage: a dark cinematic hero (nav + particle field) opening onto a
   light paper body, with one full-bleed aurora "immersion" moment at the
   principles section. Brand: Manrope, Cormorant italic accents,
   violet/pink/sun, coral dot, pill buttons.
   ========================================================================== */

/* ---- Fonts ---------------------------------------------------------- */

@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 400 800; font-display: swap; src: url("../fonts/manrope-latin-ext.6d36d5bdedfa.woff2") format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 400 800; font-display: swap; src: url("../fonts/manrope-latin.938c6e8019b6.woff2") format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

@font-face { font-family: 'Cormorant Garamond'; font-style: italic; font-weight: 500 600; font-display: swap; src: url("../fonts/cormorant-garamond-italic-latin-ext.61d59919981f.woff2") format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Cormorant Garamond'; font-style: italic; font-weight: 500 600; font-display: swap; src: url("../fonts/cormorant-garamond-italic-latin.3e2c4175a96d.woff2") format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ---- Tokens ---------------------------------------------------------- */

:root {
    /* light zone (body default) */
    --paper: #f4f5f9;
    --paper-deep: #eceef5;
    --surface: #ffffff;
    --ink: #08080f;
    --text: rgba(8, 8, 15, 0.86);
    --text-soft: rgba(8, 8, 15, 0.62);
    --text-muted: rgba(8, 8, 15, 0.46);
    --text-faint: rgba(8, 8, 15, 0.34);
    --line: rgba(8, 8, 15, 0.1);
    --line-soft: rgba(8, 8, 15, 0.06);

    /* dark zone (nav, hero, immersion) */
    --d-bg: #07070d;
    --d-text: rgba(244, 245, 255, 0.92);
    --d-text-soft: rgba(244, 245, 255, 0.66);
    --d-text-muted: rgba(244, 245, 255, 0.48);
    --d-text-faint: rgba(244, 245, 255, 0.32);
    --d-line: rgba(244, 245, 255, 0.12);
    --d-line-soft: rgba(244, 245, 255, 0.07);

    /* brand accents */
    --violet: #6c5ce7;
    --violet-deep: #5a4bd6;
    --violet-soft: #9c90f2;
    --violet-wash: rgba(108, 92, 231, 0.07);
    --pink: #ff77c4;
    --sun: #ffd36d;
    --gold: #c7863f;
    --gold-bright: #d9a45c;

    --sans: "Manrope", "Avenir Next", sans-serif;
    --serif: "Cormorant Garamond", Georgia, serif;
    --mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;

    --shell: 1200px;
    --gutter: clamp(1.25rem, 4vw, 3rem);
    --radius-card: 20px;
    --radius-panel: 28px;
    --shadow-card: 0 18px 44px rgba(8, 8, 15, 0.07);
    --shadow-lift: 0 26px 60px rgba(8, 8, 15, 0.12);
    --hero-shell: 1680px;
    --hero-gutter: clamp(1.75rem, 6.6vw, 7rem);
    --hero-copy-shift: clamp(2.5rem, 3.2vw, 4rem);
    --hero-field-width: min(54vw, 960px);
    --hero-field-height: min(74vmin, 780px);
}

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

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    background: var(--paper);
}

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

h1, h2, h3, p, ul, ol, figure { margin: 0; }

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

button { font-family: inherit; cursor: pointer; }

::selection { background: rgba(108, 92, 231, 0.25); }

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

.o-shell {
    max-width: var(--shell);
    margin: 0 auto;
    padding-inline: var(--gutter);
}

/* ---- Reveal ------------------------------------------------------------ */

[data-reveal] {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.7s ease var(--delay, 0ms), transform 0.7s cubic-bezier(0.2, 0.6, 0.2, 1) var(--delay, 0ms);
}

[data-reveal="fade"] { transform: none; }

[data-reveal].is-visible {
    opacity: 1;
    transform: none;
}

/* ---- Nav (dark) ------------------------------------------------------------ */

.o-nav {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(7, 7, 13, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--d-line-soft);
}

.o-nav-inner {
    max-width: var(--shell);
    margin: 0 auto;
    padding: 0 var(--gutter);
    min-height: 4.4rem;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.o-brand {
    display: inline-flex;
    align-items: flex-end;
    gap: 3px;
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #ffffff;
    line-height: 1;
}

.o-brand-mark {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--sun), var(--pink));
    margin-bottom: 1px;
}

.o-nav-links {
    display: flex;
    align-items: center;
    gap: 1.9rem;
    margin-left: auto;
}

.o-nav-links a {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--d-text-muted);
    padding: 0.35rem 0;
    transition: color 0.2s ease;
}

.o-nav-links a:hover { color: #ffffff; }

.o-nav-cta { margin-left: 0.4rem; }

.o-nav-toggle {
    display: none;
    margin-left: auto;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--d-line);
    border-radius: 999px;
    width: 2.7rem;
    height: 2.7rem;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    padding: 0;
}

.o-nav-toggle span {
    display: block;
    width: 1.05rem;
    height: 1.5px;
    border-radius: 2px;
    background: #ffffff;
    transition: transform 0.25s ease;
}

.o-nav.is-open .o-nav-toggle span:nth-child(1) { transform: translateY(3.25px) rotate(45deg); }
.o-nav.is-open .o-nav-toggle span:nth-child(2) { transform: translateY(-3.25px) rotate(-45deg); }

/* ---- Buttons ----------------------------------------------------------- */

.o-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    font-family: var(--sans);
    font-size: 0.92rem;
    font-weight: 700;
    min-height: 48px;
    padding: 0 1.5rem;
    border-radius: 999px;
    border: 1px solid transparent;
    line-height: 1;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.o-btn svg { width: 0.8rem; height: 0.8rem; }

/* white pill — for dark zones */
.o-btn-light {
    background: #ffffff;
    color: var(--ink);
    border-color: #ffffff;
    box-shadow: 0 14px 40px rgba(108, 92, 231, 0.22);
}

.o-btn-light:hover {
    transform: translateY(-1px);
    box-shadow: 0 20px 52px rgba(108, 92, 231, 0.32);
}

/* ink pill — for light zones */
.o-btn-ink {
    background: linear-gradient(135deg, var(--ink), #20212a);
    color: #ffffff;
    border-color: rgba(8, 8, 15, 0.82);
    box-shadow: 0 14px 32px rgba(8, 8, 15, 0.18);
}

.o-btn-ink:hover {
    transform: translateY(-1px);
    box-shadow: 0 20px 42px rgba(8, 8, 15, 0.26);
}

/* outline pill — inherits its zone's ink */
.o-btn-ghost {
    background: rgba(255, 255, 255, 0.05);
    color: var(--d-text);
    border-color: var(--d-line);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.o-btn-ghost:hover {
    border-color: rgba(244, 245, 255, 0.35);
    background: rgba(255, 255, 255, 0.1);
}

.o-btn-sm {
    min-height: 42px;
    padding: 0 1.2rem;
    font-size: 0.86rem;
}

/* ---- Hero (dark zone) ------------------------------------------------------ */

.oj-hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(ellipse at 74% 45%, rgba(108, 92, 231, 0.14), transparent 38%),
        radial-gradient(ellipse at 86% 16%, rgba(255, 119, 196, 0.08), transparent 28%),
        linear-gradient(90deg, #07070d 0%, #07070d 48%, #090913 70%, #08080f 100%);
    color: var(--d-text);
    min-height: calc(100vh - 4.4rem);
    min-height: calc(100svh - 4.4rem);
    display: flex;
    align-items: center;
}

.oj-particle-field {
    position: absolute;
    top: 50%;
    right: clamp(1.25rem, 4.6vw, 6.5rem);
    width: var(--hero-field-width);
    height: var(--hero-field-height);
    z-index: 0;
    pointer-events: none;
    opacity: 0;
    transform: translate3d(0, -50%, 0);
    transition: opacity 0.8s ease;
    -webkit-mask-image:
        linear-gradient(90deg, transparent 0%, #000 11%, #000 90%, transparent 100%),
        linear-gradient(180deg, transparent 0%, #000 9%, #000 91%, transparent 100%);
    -webkit-mask-composite: source-in;
    mask-image:
        linear-gradient(90deg, transparent 0%, #000 11%, #000 90%, transparent 100%),
        linear-gradient(180deg, transparent 0%, #000 9%, #000 91%, transparent 100%);
    mask-composite: intersect;
}

.oj-particle-field.is-ready,
.oj-particle-field.is-fallback {
    opacity: 1;
}

.oj-particle-canvas,
.oj-particle-fallback {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
}

.oj-particle-canvas {
    mix-blend-mode: screen;
    filter: saturate(1.15) contrast(1.1) brightness(1.1);
}

.oj-particle-fallback {
    opacity: 0;
}

.oj-particle-field.is-fallback .oj-particle-canvas {
    opacity: 0;
}

.oj-particle-field.is-fallback .oj-particle-fallback {
    opacity: 1;
}

.oj-particle-aura,
.oj-particle-vignette {
    position: absolute;
    pointer-events: none;
}

.oj-particle-aura {
    inset: -24% -18% -26% -32%;
    background:
        radial-gradient(ellipse at 46% 46%, rgba(108, 92, 231, 0.22), transparent 52%),
        radial-gradient(ellipse at 56% 62%, rgba(217, 164, 92, 0.07), transparent 42%);
    filter: blur(28px);
}

.oj-particle-vignette {
    inset: -10%;
    background:
        radial-gradient(ellipse at 52% 50%, transparent 24%, rgba(7, 7, 13, 0.22) 72%, rgba(7, 7, 13, 0.58) 100%);
}

.oj-hero-inner {
    width: 100%;
    max-width: var(--hero-shell);
    position: relative;
    z-index: 1;
    padding-inline: var(--hero-gutter);
    padding-block: clamp(3rem, 8vh, 6rem);
}

.oj-hero-copy {
    max-width: 40rem;
    margin-left: var(--hero-copy-shift);
}

.o-kicker {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--violet-soft);
    margin-bottom: 1.9rem;
}

.o-kicker::before {
    content: "";
    width: 2.2rem;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--violet), var(--pink));
}

.oj-hero h1 {
    font-size: clamp(2.9rem, 6.4vw, 5.2rem);
    font-weight: 800;
    line-height: 1.03;
    letter-spacing: -0.03em;
    color: #ffffff;
    text-shadow: 0 2px 40px rgba(7, 7, 13, 0.45);
}

.oj-hero h1 em {
    font-family: var(--serif);
    font-style: italic;
    font-weight: 500;
    font-size: 1.22em;
    line-height: 0;
    color: var(--gold-bright);
}

.oj-hero-lede {
    margin-top: 1.7rem;
    max-width: 30rem;
    font-size: 1.08rem;
    line-height: 1.7;
    color: var(--d-text-soft);
}

.oj-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 2.4rem;
}

.oj-scroll-cue {
    position: absolute;
    left: var(--gutter);
    bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-family: var(--mono);
    font-size: 0.6rem;
    font-weight: 500;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    color: var(--d-text-faint);
}

.oj-scroll-cue i {
    display: block;
    width: 3.2rem;
    height: 1px;
    background: var(--d-line);
}

/* ---- Side rail (adaptive) --------------------------------------------------- */

.oj-rail {
    position: fixed;
    right: clamp(1rem, 2.5vw, 2.4rem);
    top: 50%;
    transform: translateY(-50%);
    z-index: 30;
    display: flex;
    flex-direction: column;
    gap: 1.15rem;
    align-items: flex-end;
}

.oj-rail a {
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.oj-rail span {
    font-family: var(--mono);
    font-size: 0.58rem;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--text-faint);
    opacity: 0;
    transform: translateX(6px);
    transition: opacity 0.25s ease, transform 0.25s ease, color 0.25s ease;
}

.oj-rail i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    border: 1px solid var(--text-faint);
    background: transparent;
    transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

/* over dark zones the rail flips to light ink */
.oj-rail.on-dark span { color: var(--d-text-faint); }
.oj-rail.on-dark i { border-color: var(--d-text-faint); }

.oj-rail a:hover span { opacity: 1; transform: none; }

.oj-rail a.is-active span { opacity: 1; transform: none; }

.oj-rail a.is-active i {
    background: linear-gradient(180deg, var(--sun), var(--pink));
    border-color: transparent;
    transform: scale(1.25);
}

@media (max-width: 1120px) {
    .oj-rail { display: none; }
}

/* ---- Figure frames ---------------------------------------------------------- */

.o-fig {
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-card);
    background: var(--surface);
    box-shadow: var(--shadow-card);
    overflow: hidden;
}

.o-fig-stage {
    position: relative;
    padding: 0.8rem 0.8rem 0.3rem;
}

.o-fig-stage svg {
    display: block;
    width: 100%;
    height: auto;
}

.o-fig-caption {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    border-top: 1px solid rgba(10, 10, 20, 0.08);
    padding: 0.6rem 1rem;
    font-family: var(--mono);
    font-size: 0.6rem;
    font-weight: 500;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: rgba(10, 10, 20, 0.5);
}

.o-fig-caption strong {
    color: rgba(10, 10, 20, 0.85);
    font-weight: 500;
}

/* Fan chart internals — always dark-on-white */
.fan-grid { stroke: rgba(12, 12, 22, 0.07); stroke-width: 1; }
.fan-frame { stroke: rgba(12, 12, 22, 0.16); stroke-width: 1; fill: none; }
.fan-hist {
    stroke: #12121e;
    stroke-width: 1.8;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.fan-band { fill: var(--violet); stroke: none; }
.fan-band-95 { opacity: 0.09; }
.fan-band-80 { opacity: 0.17; }
.fan-band-50 { opacity: 0.3; }
.fan-median {
    stroke: var(--violet-deep);
    stroke-width: 1.6;
    stroke-dasharray: 5 5;
    fill: none;
}
.fan-sample {
    stroke: #12121e;
    stroke-width: 1;
    opacity: 0.2;
    fill: none;
    stroke-linejoin: round;
}
.fan-today { stroke: rgba(12, 12, 22, 0.3); stroke-width: 1; stroke-dasharray: 2 4; }
.fan-label {
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.12em;
    fill: rgba(12, 12, 22, 0.52);
}
.fan-label-accent { fill: var(--violet-deep); }
.fan-dot { fill: #12121e; }
.fan-dot-halo {
    fill: var(--violet);
    opacity: 0.25;
    transform-origin: center;
    transform-box: fill-box;
    animation: fan-halo 3.2s ease-in-out infinite;
}

@keyframes fan-halo {
    0%, 100% { transform: scale(0.6); opacity: 0.3; }
    50% { transform: scale(1.15); opacity: 0.08; }
}

.fan-hist { stroke-dasharray: 900; stroke-dashoffset: 900; }
.fan-band, .fan-median, .fan-sample, .fan-anno { opacity: 0; }

.is-visible .fan-hist { animation: fan-draw 1.6s cubic-bezier(0.4, 0, 0.2, 1) 0.3s forwards; }
.is-visible .fan-band-95 { animation: fan-fade 0.8s ease 1.6s forwards; --fan-o: 0.09; }
.is-visible .fan-band-80 { animation: fan-fade 0.8s ease 1.75s forwards; --fan-o: 0.17; }
.is-visible .fan-band-50 { animation: fan-fade 0.8s ease 1.9s forwards; --fan-o: 0.3; }
.is-visible .fan-median { animation: fan-fade 0.8s ease 2.1s forwards; --fan-o: 1; }
.is-visible .fan-sample { animation: fan-fade 1.2s ease 2.3s forwards; --fan-o: 0.2; }
.is-visible .fan-anno { animation: fan-fade 0.8s ease 2.4s forwards; --fan-o: 1; }

@keyframes fan-draw { to { stroke-dashoffset: 0; } }
@keyframes fan-fade { to { opacity: var(--fan-o, 1); } }

/* ---- Section scaffolding (light zone) --------------------------------------- */

.o-section {
    padding-block: clamp(4rem, 10vh, 6.5rem);
    position: relative;
}

.o-section-head {
    margin-bottom: clamp(2.2rem, 5vh, 3.4rem);
}

.o-section-no {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 1.1rem;
}

.o-section-no b {
    font-weight: 700;
    color: var(--violet);
}

.o-section-no::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--line-soft);
}

.o-section h2 {
    font-size: clamp(1.9rem, 3.8vw, 2.9rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.025em;
    color: var(--ink);
    text-wrap: balance;
    max-width: 24ch;
}

.o-section h2 em {
    font-family: var(--serif);
    font-style: italic;
    font-weight: 500;
    font-size: 1.22em;
    line-height: 0;
    color: var(--gold);
}

/* ---- Positioning and offers ----------------------------------------------- */

.o-positioning {
    padding-block: clamp(4.5rem, 11vh, 7rem);
    background: var(--paper-deep);
    border-bottom: 1px solid var(--line-soft);
    position: relative;
    isolation: isolate;
    overflow: hidden;
}

.o-title-field-section {
    position: relative;
    isolation: isolate;
    overflow: hidden;
}

.o-title-field-section > .o-shell { position: relative; z-index: 2; }

.o-title-shade {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.76), #000 20%, #000 84%, transparent 100%);
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.76), #000 20%, #000 84%, transparent 100%);
}

.o-title-shade--header {
    bottom: auto;
    height: min(42rem, 78vh);
    -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 62%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 0%, #000 62%, transparent 100%);
}

.o-title-shade--cta {
    -webkit-mask-image: radial-gradient(ellipse 90% 110% at 45% 48%, #000 0%, transparent 82%);
    mask-image: radial-gradient(ellipse 90% 110% at 45% 48%, #000 0%, transparent 82%);
}

.o-title-aura {
    position: absolute;
    inset: -12% 38% 18% -10%;
    background:
        radial-gradient(ellipse at 48% 45%, rgba(108, 92, 231, 0.13), transparent 52%),
        radial-gradient(ellipse at 62% 62%, rgba(199, 134, 63, 0.075), transparent 44%);
    filter: blur(40px);
}

.o-positioning-intro {
    display: grid;
    grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
    gap: 1rem clamp(2rem, 6vw, 5rem);
    align-items: start;
}

.o-positioning-intro .o-kicker {
    color: var(--violet-deep);
    grid-column: 1;
}

.o-positioning-intro h2 {
    grid-column: 1;
    font-size: clamp(2rem, 4vw, 3.15rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.03em;
    color: var(--ink);
    text-wrap: balance;
}

.o-positioning-intro h2 em {
    font-family: var(--serif);
    font-size: 1.18em;
    font-weight: 500;
    color: var(--gold);
}

.o-positioning-copy {
    grid-column: 2;
    grid-row: 2;
    padding-top: 0.15rem;
}

.o-positioning-copy p {
    font-size: clamp(1rem, 1.5vw, 1.14rem);
    line-height: 1.75;
    color: var(--text-soft);
    max-width: 46rem;
}

.o-positioning-copy p + p { margin-top: 1.35rem; }

.o-audience-line {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.55rem 0;
    font-size: 0.78rem !important;
    line-height: 1.4 !important;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.o-audience-line strong {
    margin-right: 1rem;
    color: var(--ink);
    font-size: 0.7rem;
}

.o-audience-line span {
    display: inline-flex;
    align-items: center;
    color: var(--text-muted);
}

.o-audience-line span + span::before {
    content: "";
    width: 3px;
    height: 3px;
    margin-inline: 0.7rem;
    border-radius: 50%;
    background: var(--gold);
}

.o-offer-path {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: clamp(3rem, 7vh, 4.5rem);
    position: relative;
}

.o-offer-path::before {
    content: "";
    position: absolute;
    top: 1rem;
    left: 1rem;
    right: calc(33.333% - 1rem);
    height: 1px;
    background: linear-gradient(90deg, var(--violet), var(--gold));
    opacity: 0.55;
}

.o-offer-path article {
    position: relative;
    z-index: 1;
    padding-right: clamp(1.4rem, 3.5vw, 3rem);
}

.o-offer-node {
    display: grid;
    place-items: center;
    width: 2rem;
    height: 2rem;
    margin-bottom: 1.45rem;
    border: 1px solid color-mix(in srgb, var(--violet) 55%, var(--line));
    border-radius: 50%;
    background: var(--paper-deep);
    font-family: var(--mono);
    font-size: 0.61rem;
    letter-spacing: 0.06em;
    color: var(--violet);
}

.o-offer-path small {
    display: block;
    margin-bottom: 0.5rem;
    font-family: var(--mono);
    font-size: 0.62rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--gold-deep, var(--gold));
}

.o-offer-path h3 {
    margin-bottom: 0.7rem;
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--ink);
}

.o-offer-path p {
    font-size: 0.91rem;
    line-height: 1.65;
    color: var(--text-muted);
    max-width: 21rem;
}

.o-proof-strip {
    display: grid;
    grid-template-columns: minmax(12rem, 1.4fr) auto minmax(10rem, 1fr) auto auto;
    align-items: center;
    gap: clamp(0.8rem, 2.5vw, 2rem);
    margin-top: clamp(3rem, 7vh, 4.5rem);
    padding: 1rem 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    color: var(--ink);
    transition: color 0.2s ease, border-color 0.2s ease;
}

.o-proof-strip:hover {
    color: var(--violet-deep);
    border-color: color-mix(in srgb, var(--violet) 45%, var(--line));
}

.o-proof-context,
.o-proof-name {
    font-family: var(--mono);
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.o-proof-context { color: var(--text-muted); }
.o-proof-name { color: var(--violet); }

.o-proof-strip strong {
    font-family: var(--serif);
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    font-style: italic;
    font-weight: 500;
    line-height: 1;
    color: var(--gold);
}

.o-proof-result {
    font-size: 0.9rem;
    font-weight: 700;
}

.o-proof-strip svg {
    width: 1rem;
    height: 1rem;
}

/* ---- Problems index ------------------------------------------------------ */

.o-problems-grid {
    display: grid;
    grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
    gap: clamp(2rem, 6vw, 5rem);
    align-items: start;
}

.o-problems-aside {
    position: sticky;
    top: 6.5rem;
}

.o-problems-aside .o-section-head { margin-bottom: 1.4rem; }

.o-problems-aside > p {
    color: var(--text-soft);
    max-width: 26rem;
    font-size: 0.99rem;
    line-height: 1.7;
}

.o-problems-aside .o-fig {
    margin-top: 2.2rem;
    max-width: 24rem;
}

.o-problem-list {
    padding: 0;
    margin: 0;
    list-style: none;
    border-top: 1px solid var(--line);
}

.o-problem {
    display: grid;
    grid-template-columns: 3rem minmax(0, 1fr);
    gap: 0.3rem 1.2rem;
    padding: 1.35rem 0.6rem 1.45rem 0.4rem;
    border-bottom: 1px solid var(--line-soft);
    transition: background 0.25s ease;
}

.o-problem:hover { background: var(--violet-wash); }

.o-problem .idx {
    font-family: var(--mono);
    font-size: 0.66rem;
    letter-spacing: 0.12em;
    color: var(--violet);
    padding-top: 0.35rem;
    grid-row: span 2;
}

.o-problem h3 {
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: -0.015em;
    line-height: 1.35;
    color: var(--ink);
}

.o-problem p {
    font-size: 0.93rem;
    line-height: 1.65;
    color: var(--text-muted);
    max-width: 38rem;
}

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

.o-projects-list {
    display: grid;
    gap: 1.4rem;
}

.o-project {
    display: grid;
    grid-template-columns: minmax(0, 4.4fr) minmax(0, 6.6fr) auto;
    gap: clamp(1.6rem, 4vw, 3.2rem);
    align-items: center;
    padding: clamp(1.3rem, 2.6vw, 2rem);
    background: var(--surface);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-panel);
    box-shadow: var(--shadow-card);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.o-project:hover {
    box-shadow: var(--shadow-lift);
    transform: translateY(-3px);
}

.o-project-fig {
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-card);
    background: var(--paper);
    overflow: hidden;
}

.o-project-fig svg { display: block; width: 100%; height: auto; }

.o-project-fig figcaption {
    border-top: 1px solid var(--line-soft);
    padding: 0.5rem 0.9rem;
    font-family: var(--mono);
    font-size: 0.58rem;
    font-weight: 500;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: var(--text-faint);
    background: var(--surface);
}

.o-project-body .cat {
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--violet);
    display: block;
    margin-bottom: 0.7rem;
}

.o-project-body h3 {
    font-size: clamp(1.35rem, 2.2vw, 1.7rem);
    font-weight: 800;
    line-height: 1.16;
    letter-spacing: -0.02em;
    color: var(--ink);
    max-width: 24ch;
}

.o-project-body p {
    margin-top: 0.75rem;
    font-size: 0.95rem;
    line-height: 1.65;
    color: var(--text-muted);
    max-width: 34rem;
}

.o-project-cta {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-soft);
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    margin-top: 1.2rem;
    transition: color 0.2s ease;
}

.o-project-cta svg {
    width: 0.85rem;
    height: 0.85rem;
    transition: transform 0.25s ease;
}

.o-project:hover .o-project-cta { color: var(--violet-deep); }
.o-project:hover .o-project-cta svg { transform: translateX(4px); }

.o-project-arrow {
    align-self: center;
    width: 3rem;
    height: 3rem;
    border: 1px solid var(--line);
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: var(--text-muted);
    transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.o-project-arrow svg { width: 1rem; height: 1rem; }

.o-project:hover .o-project-arrow {
    background: var(--ink);
    border-color: var(--ink);
    color: #ffffff;
}

/* Project figure internals — dark-on-white */
.pfig-grid { stroke: rgba(12, 12, 22, 0.12); stroke-width: 1; }
.pfig-ink { stroke: #12121e; fill: none; }
.pfig-ink-fill { fill: #12121e; }
.pfig-soft { fill: rgba(12, 12, 22, 0.38); }
.pfig-accent { fill: var(--violet); }
.pfig-accent-line { stroke: var(--violet); fill: none; }
.pfig-muted-line { stroke: rgba(12, 12, 22, 0.3); fill: none; }

/* Work figures draw themselves in as each card scrolls into view. */
@media (prefers-reduced-motion: no-preference) {
    .o-project path.pfig-accent-line,
    .o-project .pfig-accent-line path {
        stroke-dasharray: 1;
        stroke-dashoffset: 1;
    }

    .o-project .pfig-accent,
    .o-project .pfig-muted-line {
        opacity: 0;
    }

    .o-project.is-visible path.pfig-accent-line,
    .o-project.is-visible .pfig-accent-line path {
        animation: pfig-draw 1.1s cubic-bezier(0.4, 0, 0.2, 1) 0.5s forwards;
    }

    .o-project.is-visible .pfig-muted-line { animation: fan-fade 0.7s ease 0.55s forwards; --fan-o: 1; }
    .o-project.is-visible .pfig-accent { animation: fan-fade 0.7s ease 0.85s forwards; --fan-o: 1; }
}

@keyframes pfig-draw { to { stroke-dashoffset: 0; } }

/* ---- Process ------------------------------------------------------------- */

.o-process-track {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border-top: 1px solid var(--line);
}

.o-step {
    position: relative;
    padding: 1.9rem 1.7rem 0.4rem 0;
}

.o-step::before {
    content: "";
    position: absolute;
    top: -4.5px;
    left: 0;
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--violet), var(--pink));
}

.o-step + .o-step {
    padding-left: 1.7rem;
    border-left: 1px solid var(--line-soft);
}

.o-step + .o-step::before { left: -4.5px; }

/* The timeline draws itself in: a gradient line sweeps across with a
   travelling spark (the hero's shooting-star language), and each step's
   dot ignites as the spark passes it. */
@media (prefers-reduced-motion: no-preference) {
    .o-process-track { position: relative; }

    .o-process-track::before {
        content: "";
        position: absolute;
        top: -1px;
        left: 0;
        right: 0;
        height: 1px;
        background: linear-gradient(90deg, var(--violet), var(--pink));
        transform: scaleX(0);
        transform-origin: left center;
    }

    .o-process-track::after {
        content: "";
        position: absolute;
        top: -4px;
        left: 0;
        width: 8px;
        height: 8px;
        margin-left: -4px;
        border-radius: 999px;
        background: radial-gradient(circle, rgba(255, 255, 255, 0.95), rgba(140, 120, 255, 0.9) 45%, rgba(140, 120, 255, 0) 72%);
        box-shadow: 0 0 14px 3px rgba(126, 102, 255, 0.5);
        opacity: 0;
    }

    .o-process-track.is-visible::before {
        animation: oj-track-draw 1.7s cubic-bezier(0.55, 0, 0.3, 1) 0.2s forwards;
    }

    .o-process-track.is-visible::after {
        animation: oj-track-spark 1.7s cubic-bezier(0.55, 0, 0.3, 1) 0.2s forwards;
    }

    .o-step::before {
        transform: scale(0.35);
        opacity: 0.25;
        transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.5s ease;
    }

    .o-process-track.is-visible .o-step::before {
        transform: scale(1);
        opacity: 1;
    }

    .o-process-track.is-visible .o-step:nth-child(1)::before { transition-delay: 0.25s; }
    .o-process-track.is-visible .o-step:nth-child(2)::before { transition-delay: 0.6s; }
    .o-process-track.is-visible .o-step:nth-child(3)::before { transition-delay: 1s; }
    .o-process-track.is-visible .o-step:nth-child(4)::before { transition-delay: 1.4s; }
}

@keyframes oj-track-draw { to { transform: scaleX(1); } }

@keyframes oj-track-spark {
    0% { left: 0; opacity: 0; }
    6% { opacity: 1; }
    86% { opacity: 1; }
    100% { left: 100%; opacity: 0; }
}

.o-step .idx {
    font-family: var(--mono);
    font-size: 0.64rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--violet);
    display: block;
    margin-bottom: 1rem;
}

.o-step h3 {
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.15;
    color: var(--ink);
    margin-bottom: 0.7rem;
}

.o-step p {
    font-size: 0.93rem;
    line-height: 1.65;
    color: var(--text-muted);
}

/* ---- Principles: the immersion (dark, full-bleed aurora) -------------------- */

.oj-immersion {
    position: relative;
    padding-block: clamp(8rem, 22vh, 14rem);
    background: url("../images/gradients/aurora_mineral.226c952d8b6f.webp") center / cover no-repeat;
    color: var(--d-text);
}

.oj-immersion::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
        rgba(7, 7, 13, 0.55) 0%,
        rgba(7, 7, 13, 0.42) 18%,
        rgba(7, 7, 13, 0.42) 82%,
        rgba(7, 7, 13, 0.55) 100%);
}

.oj-immersion .o-shell { position: relative; }

.oj-glass {
    background: rgba(7, 7, 13, 0.55);
    backdrop-filter: blur(22px) saturate(1.1);
    -webkit-backdrop-filter: blur(22px) saturate(1.1);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-panel);
    padding: clamp(2rem, 5vw, 4rem);
    box-shadow: 0 40px 110px rgba(4, 4, 10, 0.5);
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .oj-glass { background: rgba(7, 7, 13, 0.86); }
}

.oj-immersion .o-section-no { color: var(--d-text-faint); }
.oj-immersion .o-section-no b { color: var(--pink); }
.oj-immersion .o-section-no::after { background: var(--d-line); }

.oj-immersion h2 { color: #ffffff; }

.o-principles-grid {
    display: grid;
    grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
    gap: clamp(2rem, 5vw, 4.5rem);
    align-items: start;
}

.o-principles-aside { position: sticky; top: 6.5rem; }

.o-principles-aside .o-section-head { margin-bottom: 1.4rem; }

.o-principles-aside p {
    color: var(--d-text-soft);
    max-width: 24rem;
    font-size: 0.98rem;
    line-height: 1.7;
}

.o-principle-list {
    padding: 0;
    margin: 0;
    list-style: none;
    border-top: 1px solid var(--d-line);
}

.o-principle {
    display: grid;
    grid-template-columns: 3rem minmax(0, 1fr);
    gap: 0.3rem 1.2rem;
    padding: 1.4rem 0;
    border-bottom: 1px solid var(--d-line-soft);
}

.o-principle .idx {
    font-family: var(--mono);
    font-size: 0.66rem;
    letter-spacing: 0.12em;
    color: var(--pink);
    padding-top: 0.35rem;
    grid-row: span 2;
}

.o-principle h3 {
    font-size: 1.12rem;
    font-weight: 800;
    letter-spacing: -0.015em;
    line-height: 1.3;
    color: #ffffff;
}

.o-principle p {
    font-size: 0.93rem;
    line-height: 1.65;
    color: var(--d-text-muted);
    max-width: 36rem;
    margin-top: 0.3rem;
}

/* ---- Founder ------------------------------------------------------------- */

.o-founder {
    position: relative;
    padding-block: clamp(5rem, 12vh, 8rem);
    background: var(--paper);
    overflow: hidden;
}

.o-founder::before {
    content: "";
    position: absolute;
    inset: -18% 42% -12% -14%;
    background:
        radial-gradient(ellipse at 48% 42%, rgba(108, 92, 231, 0.11), transparent 54%),
        radial-gradient(ellipse at 64% 68%, rgba(199, 134, 63, 0.075), transparent 46%);
    filter: blur(42px);
    pointer-events: none;
}

.o-founder .o-shell { position: relative; }

.o-founder-grid {
    display: grid;
    grid-template-columns: minmax(0, 4.7fr) minmax(0, 6.3fr);
    gap: clamp(3rem, 7vw, 6rem);
    align-items: start;
}

.o-founder-portrait {
    position: relative;
    margin: 0;
}

.o-founder-portrait::before {
    content: "";
    position: absolute;
    inset: 1.15rem -1.15rem -1.15rem 1.15rem;
    border: 1px solid rgba(108, 92, 231, 0.22);
    pointer-events: none;
}

.o-founder-image-wrap {
    position: relative;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: #171719;
    box-shadow: 0 28px 70px rgba(8, 8, 15, 0.18);
}

.o-founder-image-wrap::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(7, 7, 13, 0.18), transparent 30%);
    pointer-events: none;
}

.o-founder-image-wrap img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    filter: saturate(0.9) contrast(1.02);
    transition: transform 1.2s cubic-bezier(0.22, 1, 0.36, 1), filter 0.5s ease;
}

.o-founder-portrait.is-visible .o-founder-image-wrap img { transform: scale(1.015); }

.o-founder-portrait figcaption {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 1rem;
    font-family: var(--mono);
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.o-founder-portrait figcaption strong {
    font-size: 0.7rem;
    color: var(--ink);
}

.o-founder-portrait figcaption span {
    font-size: 0.61rem;
    color: var(--text-muted);
}

.o-founder-content { padding-top: clamp(0.2rem, 2vw, 1.4rem); }
.o-founder-content .o-section-no { margin-bottom: clamp(2rem, 4vh, 3rem); }

.o-founder blockquote {
    margin: 0;
    max-width: 19ch;
    font-size: clamp(2.25rem, 4.3vw, 4.15rem);
    font-weight: 800;
    line-height: 1.07;
    letter-spacing: -0.035em;
    color: var(--ink);
    text-wrap: balance;
}

.o-founder blockquote em {
    font-family: var(--serif);
    font-size: 1.14em;
    font-weight: 500;
    font-style: italic;
    color: var(--gold);
}

.o-founder-story {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(1.5rem, 3vw, 2.5rem);
    margin-top: clamp(2.5rem, 6vh, 4rem);
}

.o-founder-story p,
.o-founder-direct > p:first-child {
    font-size: 0.96rem;
    line-height: 1.75;
    color: var(--text-soft);
}

.o-founder-story p:first-child::first-line { color: var(--ink); }

.o-founder-direct {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(12rem, 0.75fr);
    gap: clamp(1.5rem, 3vw, 2.5rem);
    align-items: start;
    margin-top: 2.2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--line);
}

.o-founder-location {
    display: grid;
    gap: 0.7rem;
    font-family: var(--mono);
    font-size: 0.61rem;
    line-height: 1.4;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.o-founder-location span {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.o-founder-location span::before {
    content: "";
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--gold);
}

/* ---- CTA (light) ------------------------------------------------------------ */

.oj-cta {
    position: relative;
    overflow: hidden;
    padding-block: clamp(5rem, 14vh, 9rem);
}

.oj-cta .o-shell {
    position: relative;
    z-index: 1;
}

.oj-cta-field {
    position: absolute;
    inset: 0;
    pointer-events: none;
    -webkit-mask-image: radial-gradient(ellipse 62% 90% at 74% 46%, #000 0%, transparent 74%);
    mask-image: radial-gradient(ellipse 62% 90% at 74% 46%, #000 0%, transparent 74%);
}

.oj-cta-field canvas {
    width: 100%;
    height: 100%;
    display: block;
}

.oj-cta h2 {
    font-size: clamp(2.2rem, 4.8vw, 3.6rem);
    max-width: 20ch;
}

.oj-cta-copy {
    max-width: 42rem;
    margin-top: 1.35rem;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-soft);
}

.oj-cta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.6rem;
    margin-top: 2.6rem;
}

.oj-cta-mail {
    font-family: var(--mono);
    font-size: 0.74rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    border-bottom: 1px solid var(--line);
    padding-bottom: 0.2rem;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.oj-cta-mail:hover { color: var(--violet-deep); border-color: var(--violet-deep); }

/* ---- Footer (light) ----------------------------------------------------------- */

.o-footer {
    border-top: 1px solid var(--line-soft);
    background: var(--paper-deep);
}

.o-footer-inner {
    max-width: var(--shell);
    margin: 0 auto;
    padding: 2.2rem var(--gutter) 2.4rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem 2.5rem;
}

.o-footer .o-brand {
    font-size: 1.15rem;
    color: var(--ink);
}

.o-footer .o-brand-mark { margin-bottom: 2px; }

.o-footer-tag {
    font-size: 0.86rem;
    color: var(--text-muted);
}

.o-footer-links {
    margin-left: auto;
    display: flex;
    gap: 1.6rem;
}

.o-footer-links a {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-muted);
    transition: color 0.2s ease;
}

.o-footer-links a:hover { color: var(--ink); }

.o-footer-legal {
    width: 100%;
    border-top: 1px solid var(--line-soft);
    padding-top: 1.2rem;
    font-family: var(--mono);
    font-size: 0.6rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-faint);
}

/* ---- Contact modal (light) ---------------------------------------------------- */

.contact-overlay {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: grid;
    place-items: center;
    padding: 1.2rem;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.contact-overlay.is-open {
    visibility: visible;
    opacity: 1;
}

.contact-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(8, 8, 15, 0.5);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.contact-modal {
    position: relative;
    width: min(30rem, 100%);
    max-height: calc(100vh - 2.4rem);
    max-height: calc(100dvh - 2.4rem);
    overflow-y: auto;
    background: var(--surface);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-panel);
    box-shadow: var(--shadow-lift);
    padding: clamp(1.7rem, 4vw, 2.5rem);
    transform: translateY(14px);
    transition: transform 0.3s cubic-bezier(0.2, 0.6, 0.2, 1);
}

.contact-overlay.is-open .contact-modal { transform: none; }

.contact-close {
    position: absolute;
    top: 1.1rem;
    right: 1.1rem;
    width: 2.3rem;
    height: 2.3rem;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: transparent;
    color: var(--text-muted);
    font-size: 1.15rem;
    line-height: 1;
    display: grid;
    place-items: center;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.contact-close:hover { color: var(--ink); border-color: rgba(8, 8, 15, 0.4); }

.contact-modal-title {
    font-size: 1.7rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.1;
    color: var(--ink);
}

.contact-modal-sub {
    margin-top: 0.5rem;
    font-size: 0.92rem;
    color: var(--text-muted);
}

.contact-form { margin-top: 1.6rem; }

.contact-field { margin-bottom: 1.15rem; }

.contact-field label {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.45rem;
}

.contact-field-required { color: var(--violet); }

.contact-field-optional {
    text-transform: none;
    letter-spacing: 0.04em;
    font-weight: 500;
    color: var(--text-faint);
}

.contact-field input,
.contact-field textarea {
    width: 100%;
    font-family: var(--sans);
    font-size: 0.95rem;
    color: var(--text);
    background: var(--paper);
    border: 1px solid var(--line-soft);
    border-radius: 12px;
    padding: 0.75rem 0.95rem;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
    resize: vertical;
}

.contact-field input::placeholder,
.contact-field textarea::placeholder { color: var(--text-faint); }

.contact-field input:focus,
.contact-field textarea:focus {
    outline: none;
    border-color: var(--violet);
    background: var(--surface);
    box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.14);
}

.contact-field-error {
    display: none;
    margin-top: 0.4rem;
    font-size: 0.78rem;
    color: #c0392b;
}

.contact-field.has-error input,
.contact-field.has-error textarea { border-color: #c0392b; }

.contact-field.has-error .contact-field-error { display: block; }

.contact-submit {
    width: 100%;
    margin-top: 0.4rem;
}

.contact-submit:disabled {
    opacity: 0.55;
    cursor: default;
}

.contact-success {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1.4rem 0 0.6rem;
}

.contact-success-icon {
    flex-shrink: 0;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: var(--violet-wash);
    border: 1px solid rgba(108, 92, 231, 0.35);
    display: grid;
    place-items: center;
    color: var(--violet-deep);
}

.contact-success-icon svg { width: 1.1rem; height: 1.1rem; }

.contact-success strong {
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: -0.015em;
    color: var(--ink);
}

.contact-success p {
    margin-top: 0.3rem;
    font-size: 0.92rem;
    color: var(--text-muted);
}

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

@media (max-width: 980px) {
    .oj-hero { min-height: 0; }

    .oj-particle-field {
        right: -24vw;
        width: min(94vw, 640px);
        height: min(72vmin, 560px);
    }

    .oj-particle-field.is-ready,
    .oj-particle-field.is-fallback {
        opacity: 0.82;
    }

    .oj-hero-inner { padding-block: 3.5rem 4.5rem; }

    .oj-hero-copy { margin-left: 0; }

    .oj-scroll-cue { display: none; }

    .o-problems-grid,
    .o-principles-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 2.2rem;
    }

    .o-positioning-intro { grid-template-columns: minmax(0, 1fr); }
    .o-positioning-intro .o-kicker,
    .o-positioning-intro h2,
    .o-positioning-copy { grid-column: 1; }
    .o-positioning-copy { grid-row: auto; padding-top: 0; }
    .o-positioning-intro h2 { max-width: 18ch; margin-bottom: 0.8rem; }

    .o-problems-aside,
    .o-principles-aside { position: static; }

    .o-process-track { grid-template-columns: repeat(2, minmax(0, 1fr)); }

    .o-step:nth-child(odd) { padding-left: 0; border-left: none; }
    .o-step:nth-child(odd)::before { left: 0; }
    .o-step:nth-child(even) { padding-left: 1.7rem; }
    .o-step { padding-bottom: 1.6rem; }

    .o-project {
        grid-template-columns: minmax(0, 1fr);
        gap: 1.4rem;
    }

    .o-project-fig { max-width: 26rem; }

    .o-project-arrow { display: none; }

    .o-founder-grid {
        grid-template-columns: minmax(15rem, 0.78fr) minmax(0, 1.22fr);
        gap: 3rem;
    }

    .o-founder-story,
    .o-founder-direct { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 900px) {
    .o-nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: #0b0b14;
        border-bottom: 1px solid var(--d-line);
        box-shadow: 0 24px 40px rgba(0, 0, 0, 0.5);
        padding: 0.4rem var(--gutter) 1rem;
        display: none;
    }

    .o-nav.is-open .o-nav-links { display: flex; }

    .o-nav-links a {
        padding: 0.85rem 0;
        border-bottom: 1px solid var(--d-line-soft);
    }

    .o-nav-cta { display: none; }

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

@media (max-width: 760px) {

    .oj-hero h1 { font-size: clamp(2.4rem, 10vw, 3.2rem); }

    .oj-particle-field {
        top: 46%;
        right: -70vw;
        width: 112vw;
        height: 78vw;
        max-height: 28rem;
    }

    .oj-particle-field.is-ready,
    .oj-particle-field.is-fallback {
        opacity: 0.28;
    }

    .oj-particle-aura { opacity: 0.7; }

    .oj-hero-actions .o-btn { flex: 1 1 100%; }

    .o-offer-path {
        grid-template-columns: minmax(0, 1fr);
        gap: 2rem;
    }
    .o-offer-path::before {
        top: 1rem;
        bottom: 1rem;
        left: 1rem;
        right: auto;
        width: 1px;
        height: auto;
        background: linear-gradient(180deg, var(--violet), var(--gold));
    }
    .o-offer-path article { padding: 0 0 0 3.25rem; }
    .o-offer-node { position: absolute; top: 0; left: 0; }

    .o-proof-strip {
        grid-template-columns: auto minmax(0, 1fr) auto;
        gap: 0.55rem 1rem;
    }
    .o-proof-context { grid-column: 1 / -1; }
    .o-proof-name { display: none; }

    .o-problem,
    .o-principle { grid-template-columns: 2.1rem minmax(0, 1fr); }

    .o-process-track { grid-template-columns: minmax(0, 1fr); }

    .o-step,
    .o-step:nth-child(even) {
        padding-left: 0;
        border-left: none;
        padding-top: 1.5rem;
        border-top: 1px solid var(--line-soft);
    }

    .o-step:nth-child(even)::before { left: 0; }

    .o-step:first-child { border-top: none; }

    .o-founder { padding-block: 4.5rem; }
    .o-founder-grid { grid-template-columns: minmax(0, 1fr); gap: 3.2rem; }
    .o-founder-portrait { width: min(100%, 30rem); }
    .o-founder-portrait::before { inset: 0.75rem -0.75rem -0.75rem 0.75rem; }
    .o-founder blockquote { font-size: clamp(2.2rem, 10vw, 3.2rem); }
    .o-founder-story { gap: 1.25rem; }
    .o-founder-direct { gap: 1.5rem; }
    .o-founder-location { grid-template-columns: repeat(2, minmax(0, 1fr)); }

    .o-footer-links { margin-left: 0; }
}

/* ---- Reduced motion -------------------------------------------------------------- */

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

    [data-reveal] {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .oj-particle-field { transition: none; }

    .fan-hist { stroke-dasharray: none; stroke-dashoffset: 0; animation: none !important; }
    .fan-band-95 { opacity: 0.09; animation: none !important; }
    .fan-band-80 { opacity: 0.17; animation: none !important; }
    .fan-band-50 { opacity: 0.3; animation: none !important; }
    .fan-median, .fan-anno { opacity: 1; animation: none !important; }
    .fan-sample { opacity: 0.2; animation: none !important; }
    .fan-dot-halo { animation: none; }

    .o-btn, .o-project, .o-problem, .contact-modal { transition: none; }
}
