/*
   Zustis — Editorial system
   A warm, precise visual language inspired by classic technology campaigns.
*/

:root {
    --paper: #f7f6f2;
    --paper-bright: #fcfbf8;
    --paper-deep: #efede7;
    --ink: #151515;
    --ink-soft: #323232;
    --muted: #696863;
    --muted-light: #696863;
    --line: rgba(21, 21, 21, 0.13);
    --line-strong: rgba(21, 21, 21, 0.24);
    --violet: #7252d3;
    --violet-dark: #5938bd;
    --violet-bright: #a996ea;
    --violet-soft: #e8e0ff;
    --night: #151515;
    --night-soft: #202020;
    --nav-height: 76px;
    --page-gutter: clamp(1.35rem, 4vw, 4.5rem);
    --page-width: 1280px;
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --display: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --reading: "Newsreader", Iowan Old Style, Baskerville, Georgia, serif;
}

html {
    scroll-behavior: smooth;
    background: var(--paper);
}

body {
    margin: 0;
    background: var(--paper) !important;
    color: var(--ink) !important;
    font-family: var(--display) !important;
    font-feature-settings: "ss01" 1, "cv11" 1;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: clip;
}

body::selection,
body *::selection {
    color: var(--ink);
    background: var(--violet-soft);
}

body a {
    text-underline-offset: 0.2em;
}

body .container {
    width: min(100%, var(--page-width));
    max-width: var(--page-width) !important;
    padding-left: var(--page-gutter) !important;
    padding-right: var(--page-gutter) !important;
}

body h1,
body h2,
body h3,
body h4 {
    color: var(--ink);
    letter-spacing: -0.035em;
}

body h1,
body h2 {
    text-wrap: balance;
}

body p {
    text-wrap: pretty;
}

/* ---------- Shared navigation ---------- */

body nav.fixed,
body nav.editorial-nav {
    position: fixed !important;
    inset: 0 0 auto 0 !important;
    width: 100% !important;
    height: var(--nav-height);
    padding: 0 !important;
    color: var(--ink) !important;
    background: rgba(247, 246, 242, 0.82) !important;
    border: 0 !important;
    border-bottom: 1px solid transparent !important;
    box-shadow: none !important;
    -webkit-backdrop-filter: saturate(150%) blur(20px);
    backdrop-filter: saturate(150%) blur(20px);
    transition: height 300ms var(--ease-out), background 300ms ease, border-color 300ms ease !important;
    z-index: 80 !important;
}

body nav.fixed.nav-scrolled,
body nav.editorial-nav.is-scrolled {
    height: 64px;
    padding: 0 !important;
    color: var(--ink) !important;
    background: rgba(247, 246, 242, 0.94) !important;
    border-bottom-color: var(--line) !important;
}

.editorial-nav__inner {
    width: min(100%, var(--page-width));
    height: 100%;
    margin: 0 auto;
    padding: 0 var(--page-gutter);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.editorial-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    color: var(--ink) !important;
    text-decoration: none;
}

.editorial-brand__word {
    font-size: 0.9rem;
    font-weight: 650;
    letter-spacing: 0.28em;
    line-height: 1;
}

.signal-mark {
    position: relative;
    width: 51px;
    height: 10px;
    display: inline-block;
    flex: 0 0 auto;
}

.signal-mark::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 25px;
    height: 3px;
    border-radius: 999px;
    background: var(--ink);
    transform: translateY(-50%);
}

.signal-mark::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 31px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--violet);
    box-shadow: 8px 0 0 -0.75px rgba(114, 82, 211, 0.5), 15px 0 0 -1.25px rgba(114, 82, 211, 0.22);
    transform: translateY(-50%);
}

.editorial-nav__links {
    display: flex;
    align-items: center;
    gap: clamp(1.35rem, 2.3vw, 2.75rem);
}

.editorial-nav__link {
    position: relative;
    padding: 0.65rem 0;
    color: var(--muted) !important;
    font-size: 0.78rem;
    font-weight: 520;
    letter-spacing: 0.02em;
    text-decoration: none;
    transition: color 180ms ease;
}

.editorial-nav__link::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0.25rem;
    left: 0;
    height: 1px;
    background: var(--violet);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 250ms var(--ease-out);
}

.editorial-nav__link:hover,
.editorial-nav__link[aria-current="page"] {
    color: var(--ink) !important;
}

.editorial-nav__link:hover::after,
.editorial-nav__link[aria-current="page"]::after {
    transform: scaleX(1);
    transform-origin: left;
}

.editorial-nav__link--connect {
    padding: 0.65rem 1rem;
    color: var(--paper-bright) !important;
    background: var(--ink);
    border-radius: 999px;
}

.editorial-nav__link--connect:hover,
.editorial-nav__link--connect[aria-current="page"] {
    color: #fff !important;
    background: var(--violet-dark);
}

.editorial-nav__link--connect::after {
    display: none;
}

.editorial-nav__toggle {
    width: 42px;
    height: 42px;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 0;
    color: var(--ink);
    background: transparent;
    border: 1px solid var(--line);
    border-radius: 50%;
}

.editorial-nav__toggle svg,
.editorial-menu__close svg {
    width: 19px;
    height: 19px;
}

#mobile-menu:not(.editorial-menu) {
    display: none !important;
}

.editorial-menu {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: grid;
    grid-template-rows: auto 1fr auto;
    padding: 1.1rem var(--page-gutter) 2.25rem;
    color: var(--ink);
    background: var(--paper);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-12px);
    transition: opacity 220ms ease, transform 300ms var(--ease-out), visibility 220ms;
}

.editorial-menu.is-open {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}

.editorial-menu__top {
    min-height: 54px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.editorial-menu__close {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    padding: 0;
    color: var(--ink);
    background: transparent;
    border: 1px solid var(--line);
    border-radius: 50%;
}

.editorial-menu__links {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 0.15rem;
}

.editorial-menu__links a {
    color: var(--ink);
    font-size: clamp(2.25rem, 10vw, 4.8rem);
    font-weight: 430;
    letter-spacing: -0.055em;
    line-height: 1.08;
    text-decoration: none;
}

.editorial-menu__links a[aria-current="page"] {
    color: var(--violet);
}

.editorial-menu__meta {
    padding-top: 1rem;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

body.menu-open {
    overflow: hidden;
}

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

body .hero-gradient {
    position: relative;
    min-height: min(74rem, 74svh);
    padding-top: var(--nav-height) !important;
    display: flex;
    align-items: center;
    isolation: isolate;
    overflow: hidden;
    color: var(--ink) !important;
    background:
        radial-gradient(circle at 76% 45%, rgba(114, 82, 211, 0.075), transparent 30%),
        linear-gradient(180deg, var(--paper-bright) 0%, var(--paper) 100%) !important;
    border-bottom: 1px solid var(--line);
}

body .hero-gradient::before {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--violet), transparent);
    opacity: 0.3;
}

body .hero-gradient::after {
    content: "" !important;
    position: absolute !important;
    inset: 0 !important;
    z-index: -2 !important;
    width: auto !important;
    height: auto !important;
    background-image: radial-gradient(rgba(21, 21, 21, 0.11) 0.55px, transparent 0.55px) !important;
    background-size: 22px 22px !important;
    -webkit-mask-image: linear-gradient(to right, transparent 3%, #000 60%, transparent 96%);
    mask-image: linear-gradient(to right, transparent 3%, #000 60%, transparent 96%);
    opacity: 0.12 !important;
    animation: none !important;
    pointer-events: none;
}

body .hero-gradient > .container {
    position: relative;
    z-index: 2;
    padding-top: clamp(5rem, 9vw, 9rem) !important;
    padding-bottom: clamp(5rem, 9vw, 9rem) !important;
    text-align: left !important;
}

body .hero-gradient > .container > [class*="max-w-"] {
    width: min(100%, 860px);
    max-width: 860px !important;
    margin-left: 0 !important;
    margin-right: auto !important;
    text-align: left !important;
}

body .hero-gradient .yet-logo {
    justify-content: flex-start !important;
    gap: 7px !important;
    margin: 0 0 clamp(2.5rem, 5vw, 4rem) !important;
}

body .hero-gradient .yet-logo .now {
    width: 46px !important;
    height: 3px !important;
    background: var(--ink) !important;
}

body .hero-gradient .yet-logo .becoming {
    width: 6px !important;
    height: 6px !important;
    background: var(--violet) !important;
}

body .hero-gradient .yet-logo .future {
    width: 5px !important;
    height: 5px !important;
    background: rgba(114, 82, 211, 0.48) !important;
}

body .hero-gradient .yet-logo .potential {
    width: 4px !important;
    height: 4px !important;
    background: rgba(114, 82, 211, 0.22) !important;
}

body .hero-gradient h1 {
    max-width: 940px;
    margin: 0 0 2rem !important;
    color: var(--ink) !important;
    font-size: clamp(3.8rem, 8.8vw, 8.6rem) !important;
    font-weight: 420 !important;
    letter-spacing: -0.068em !important;
    line-height: 0.91 !important;
    text-transform: none;
}

body .hero-gradient h1 span {
    color: inherit !important;
}

body .hero-gradient h1 span:last-child {
    color: var(--violet) !important;
}

body .hero-gradient p,
body .hero-gradient p.text-gray-300,
body .hero-gradient p.text-gray-400 {
    max-width: 680px !important;
    margin: 0 !important;
    color: var(--muted) !important;
    font-size: clamp(1.05rem, 1.7vw, 1.35rem) !important;
    font-weight: 400 !important;
    letter-spacing: -0.018em;
    line-height: 1.55 !important;
    opacity: 1 !important;
}

body .hero-gradient p span.text-white {
    color: var(--ink) !important;
    font-weight: 550;
}

body .hero-gradient .eyebrow,
body .hero-gradient > .container > .eyebrow,
body .eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    margin-bottom: 2rem;
    color: var(--violet) !important;
    font-size: 0.67rem !important;
    font-weight: 650 !important;
    letter-spacing: 0.18em !important;
    text-transform: uppercase;
}

body .hero-gradient .eyebrow::before,
body .eyebrow::before {
    content: "";
    width: 1.8rem;
    height: 1px;
    background: currentColor;
}

body .hero-gradient .mt-6,
body .hero-gradient .mt-10 {
    justify-content: flex-start !important;
    margin-left: 0 !important;
    color: var(--muted) !important;
}

body .hero-gradient a[class*="border"] {
    color: var(--ink) !important;
    background: rgba(255, 255, 255, 0.5) !important;
    border-color: var(--line-strong) !important;
    border-radius: 999px !important;
}

body .hero-gradient a[class*="border"]:hover {
    color: #fff !important;
    background: var(--ink) !important;
    border-color: var(--ink) !important;
}

body .scroll-hint {
    right: var(--page-gutter) !important;
    bottom: 2.25rem !important;
    left: auto !important;
    color: var(--muted) !important;
}

/* Home hero */
body[data-page="home"] .hero-gradient {
    min-height: 100svh;
}

body[data-page="home"] .hero-gradient > .container {
    min-height: calc(100svh - var(--nav-height));
    display: flex;
    align-items: center;
}

body[data-page="home"] .hero-gradient > .container > div {
    width: min(64%, 880px);
    margin: 0 !important;
}

body[data-page="home"] .hero-gradient h1 {
    max-width: 880px;
    font-size: clamp(4rem, 6vw, 6.6rem) !important;
}

body[data-page="home"] .hero-gradient h1 span {
    white-space: nowrap;
}

body[data-page="home"] .hero-gradient .hero-animate-delay-3 {
    margin-top: 2.6rem !important;
}

body[data-page="home"] .hero-gradient .hero-actions {
    display: flex;
    align-items: center;
    gap: 1.35rem;
}

body[data-page="home"] .hero-gradient .hero-animate-delay-3 a {
    padding: 0.9rem 1.25rem !important;
    color: #fff !important;
    background: var(--ink) !important;
    border: 1px solid var(--ink) !important;
    border-radius: 999px !important;
    font-size: 0.69rem;
    font-weight: 650 !important;
    letter-spacing: 0.12em !important;
}

body[data-page="home"] .hero-gradient .hero-animate-delay-3 a:hover {
    background: var(--violet-dark) !important;
    border-color: var(--violet-dark) !important;
    transform: translateY(-2px) !important;
}

body[data-page="home"] .hero-gradient .hero-actions .hero-secondary {
    padding: 0.85rem 0.25rem !important;
    color: var(--ink) !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    font-size: 0.78rem;
    font-weight: 560 !important;
    letter-spacing: 0.01em !important;
    text-decoration: none;
}

body[data-page="home"] .hero-gradient .hero-actions .hero-secondary:hover {
    color: var(--violet-dark) !important;
    background: transparent !important;
    transform: none !important;
}

body[data-page="home"] .hero-gradient .hero-proof {
    width: min(100%, 680px);
    max-width: 680px !important;
    margin-top: 1.65rem !important;
    padding-top: 1.15rem;
    color: var(--muted-light) !important;
    border-top: 1px solid var(--line);
    font-size: 0.7rem !important;
    font-weight: 560 !important;
    letter-spacing: 0.08em !important;
    line-height: 1.5 !important;
    text-transform: uppercase;
}

body .hero-motion-canvas {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    opacity: 1 !important;
    pointer-events: none;
}

body .hero-motion-fade {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(90deg, var(--paper-bright) 0%, rgba(252, 251, 248, 0.9) 39%, rgba(252, 251, 248, 0.08) 65%, rgba(252, 251, 248, 0.34) 100%) !important;
    pointer-events: none;
}

/* ---------- Section rhythm and typography ---------- */

body main,
body > .min-h-screen {
    background: var(--paper);
}

body section,
body main > div,
body .min-h-screen > div:not(.hero-gradient):not(#mobile-menu):not(.reading-progress) {
    scroll-margin-top: calc(var(--nav-height) + 1.5rem);
}

body [class~="py-24"],
body [class~="md:py-32"] {
    padding-top: clamp(6rem, 10vw, 10rem) !important;
    padding-bottom: clamp(6rem, 10vw, 10rem) !important;
}

body [class~="py-20"],
body [class~="md:py-24"] {
    padding-top: clamp(5rem, 8vw, 8rem) !important;
    padding-bottom: clamp(5rem, 8vw, 8rem) !important;
}

body [class~="bg-white"] {
    background-color: var(--paper-bright) !important;
}

body section.bg-white,
body main > .bg-white,
body .min-h-screen > .bg-white {
    background: var(--paper-bright) !important;
}

body section.bg-gray-50,
body main > .bg-gray-50,
body .min-h-screen > .bg-gray-50,
body div.bg-gray-50[class*="py-"] {
    background: var(--paper-deep) !important;
}

body section.bg-gray-900,
body main > .bg-gray-900,
body .min-h-screen > .bg-gray-900,
body div.bg-gray-900[class*="py-"] {
    color: #f6f4ef !important;
    background: var(--night) !important;
}

body section.bg-gray-900 h1,
body section.bg-gray-900 h2,
body section.bg-gray-900 h3,
body section.bg-gray-900 h4,
body div.bg-gray-900[class*="py-"] h1,
body div.bg-gray-900[class*="py-"] h2,
body div.bg-gray-900[class*="py-"] h3,
body div.bg-gray-900[class*="py-"] h4 {
    color: #f8f7f3 !important;
}

body section.bg-gray-900 p,
body div.bg-gray-900[class*="py-"] p {
    color: #aaa8a1 !important;
}

body section.bg-gray-900 .bg-gray-800,
body div.bg-gray-900[class*="py-"] .bg-gray-800 {
    background: rgba(255, 255, 255, 0.04) !important;
    border-color: rgba(255, 255, 255, 0.13) !important;
}

body h2.text-3xl,
body h2.text-4xl,
body h2[class*="md:text-4xl"] {
    font-size: clamp(2.6rem, 5.6vw, 5.8rem) !important;
    font-weight: 430 !important;
    letter-spacing: -0.058em !important;
    line-height: 0.98 !important;
}

body h3.text-xl,
body h3.text-2xl,
body h3.text-3xl {
    font-weight: 520 !important;
    letter-spacing: -0.036em !important;
}

body .text-blue-600,
body .text-blue-500,
body .text-blue-400,
body .text-blue-300,
body .text-indigo-600,
body .text-indigo-500,
body .text-indigo-400,
body .text-purple-600,
body .text-purple-500,
body .text-purple-400,
body .text-cyan-700,
body .text-cyan-400,
body .text-emerald-700,
body .text-emerald-600,
body .text-emerald-500,
body .text-emerald-400,
body .text-emerald-300,
body .text-amber-400,
body .text-amber-300,
body .text-amber-600,
body .text-amber-500,
body .text-green-700,
body .text-green-600,
body .text-green-500,
body .text-green-400,
body .text-yellow-700,
body .text-yellow-600,
body .text-red-600,
body .text-red-500,
body .text-red-400,
body .text-red-300 {
    color: var(--violet-dark) !important;
}

body [style*="#00ff88"],
body [style*="#004e92"] {
    color: var(--violet-dark) !important;
}

body .bg-blue-50,
body .bg-indigo-50,
body .bg-green-50,
body .bg-red-50 {
    background: rgba(114, 82, 211, 0.055) !important;
}

body .bg-blue-500,
body .bg-blue-600 {
    background-color: var(--violet) !important;
}

body .border-blue-200,
body .border-blue-500,
body .border-indigo-200,
body .border-green-200,
body .border-red-200,
body .border-emerald-500 {
    border-color: rgba(114, 82, 211, 0.28) !important;
}

body .text-gray-900,
body .text-gray-800,
body .text-gray-700 {
    color: var(--ink) !important;
}

body .text-gray-600,
body .text-gray-500 {
    color: var(--muted) !important;
}

body .text-gray-400 {
    color: var(--muted) !important;
}

body .border-gray-100,
body .border-gray-200,
body .border-gray-300 {
    border-color: var(--line) !important;
}

body .border-t {
    border-top-color: var(--line) !important;
}

body .tracking-widest.uppercase,
body p.uppercase.tracking-widest,
body span.uppercase.tracking-widest {
    color: var(--violet-dark) !important;
    font-size: 0.67rem !important;
    font-weight: 650 !important;
    letter-spacing: 0.18em !important;
}

/* ---------- Cards become editorial objects ---------- */

body .research-card,
body .article-card,
body .connect-card,
body .role-card,
body .build-card,
body .paradigm-card {
    position: relative;
    border: 0 !important;
    border-top: 1px solid var(--line-strong) !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
    transform: none !important;
    transition: border-color 220ms ease, color 220ms ease, transform 300ms var(--ease-out) !important;
}

body .research-card,
body .article-card,
body .connect-card,
body .role-card,
body .build-card {
    padding: 2rem 0 !important;
}

/* A role can intentionally be the dark counterpoint in an otherwise light grid. */
body .role-card.bg-gray-900.text-white {
    padding: 2rem !important;
    color: #f8f7f3 !important;
    background: var(--night) !important;
    border: 0 !important;
    border-radius: 1.25rem !important;
}

body .research-card:hover,
body .article-card:hover,
body .connect-card:hover,
body .role-card:hover,
body .build-card:hover,
body .paradigm-card:hover {
    border-color: var(--violet) !important;
    box-shadow: none !important;
    transform: translateY(-3px) !important;
}

body .research-card::after,
body .article-card::after,
body .connect-card::after,
body .build-card::after {
    content: "↗";
    position: absolute;
    top: 1.8rem;
    right: 0;
    color: var(--muted-light);
    font-size: 1.1rem;
    transition: color 180ms ease, transform 220ms var(--ease-out);
}

body .research-card:hover::after,
body .article-card:hover::after,
body .connect-card:hover::after,
body .build-card:hover::after {
    color: var(--violet);
    transform: translate(2px, -2px);
}

body .research-card > div:first-child,
body .connect-card > div:first-child,
body .role-card > div:first-child,
body div[class*="rounded-lg"][class*="bg-gray-100"][class*="justify-center"] {
    width: 2.5rem !important;
    height: 2.5rem !important;
    color: var(--violet) !important;
    background: transparent !important;
    border: 1px solid var(--line-strong);
    border-radius: 50% !important;
}

body .research-card svg,
body .connect-card svg,
body .role-card svg {
    width: 1rem !important;
    height: 1rem !important;
    color: var(--violet) !important;
}

body .article-card img {
    filter: grayscale(1);
    transition: filter 400ms ease, transform 600ms var(--ease-out);
}

body .article-card:hover img {
    filter: grayscale(0.25);
    transform: scale(1.015);
}

body .rounded-xl,
body .rounded-2xl {
    border-radius: 1.25rem;
}

body .shadow-sm,
body .shadow-lg,
body .shadow-xl,
body .shadow-2xl {
    box-shadow: none !important;
}

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

body a[class*="px-"][class*="py-"]:not(.editorial-nav__link),
body button[class*="px-"][class*="py-"] {
    border-radius: 999px !important;
}

body a.bg-white[class*="px-"] {
    color: var(--ink) !important;
    background: #f8f7f3 !important;
}

body a.bg-white[class*="px-"]:hover {
    color: #fff !important;
    background: var(--violet) !important;
}

/* Tailwind 2 does not ship every newer color alias used by the papers. */
body a.bg-amber-600[class*="px-"],
body a.bg-emerald-600[class*="px-"],
body button.bg-amber-600[class*="px-"],
body button.bg-emerald-600[class*="px-"] {
    color: #fff !important;
    background: var(--violet-dark) !important;
}

body a:focus-visible,
body button:focus-visible {
    outline: 2px solid var(--violet) !important;
    outline-offset: 4px !important;
}

/* ---------- Home page composition ---------- */

body[data-page="home"] .hero-gradient + div .max-w-3xl,
body[data-page="home"] main > div .max-w-3xl {
    text-align: left !important;
    margin-left: 0 !important;
}

body[data-page="home"] .hero-gradient + div h2 {
    max-width: 980px;
}

body[data-page="home"] .hero-gradient + div .space-y-6 {
    max-width: 760px;
    margin-top: 3.5rem;
    margin-left: auto;
}

body[data-page="home"] .grid.md\:grid-cols-3 {
    gap: clamp(2rem, 4vw, 5rem) !important;
}

body[data-page="home"] blockquote {
    max-width: 1020px;
    margin: 0 auto;
    font-family: var(--reading);
    font-size: clamp(2.2rem, 5vw, 5rem) !important;
    letter-spacing: -0.045em !important;
    line-height: 1.08 !important;
}

body[data-page="home"] blockquote span {
    color: var(--violet) !important;
}

/* A commercial engagement model without turning the page into a sales deck. */
body[data-page="home"] .home-engagement {
    padding: clamp(6.5rem, 11vw, 11rem) 0;
    background: var(--paper-bright);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

body[data-page="home"] .home-engagement__grid {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: clamp(4rem, 9vw, 10rem);
    align-items: start;
}

body[data-page="home"] .home-engagement__intro h2 {
    max-width: 640px;
    margin: 0;
    font-size: clamp(3rem, 5.4vw, 5.8rem);
    font-weight: 430;
    letter-spacing: -0.06em;
    line-height: 0.98;
}

body[data-page="home"] .home-engagement__intro > p:not(.uppercase) {
    max-width: 570px;
    margin: 2rem 0 0;
    color: var(--muted);
    font-size: 1.08rem;
    line-height: 1.7;
}

body[data-page="home"] .home-engagement__intro > a {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    margin-top: 2.25rem;
    padding-bottom: 0.35rem;
    color: var(--ink);
    border-bottom: 1px solid var(--line-strong);
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    transition: color 180ms ease, border-color 180ms ease;
}

body[data-page="home"] .home-engagement__intro > a:hover {
    color: var(--violet-dark);
    border-color: var(--violet);
}

body[data-page="home"] .home-engagement__steps {
    margin: 0;
    padding: 0;
    list-style: none;
}

body[data-page="home"] .home-engagement__steps li {
    display: grid;
    grid-template-columns: 4.25rem minmax(0, 1fr);
    gap: 1.2rem;
    padding: 2.15rem 0;
    border-top: 1px solid var(--line-strong);
}

body[data-page="home"] .home-engagement__steps li:last-child {
    border-bottom: 1px solid var(--line-strong);
}

body[data-page="home"] .home-engagement__steps li > span {
    padding-top: 0.15rem;
    color: var(--violet);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.14em;
}

body[data-page="home"] .home-engagement__steps h3 {
    margin: 0;
    color: var(--ink);
    font-size: clamp(1.45rem, 2.2vw, 2rem);
    font-weight: 520;
    letter-spacing: -0.04em;
}

body[data-page="home"] .home-engagement__steps p {
    max-width: 580px;
    margin: 0.65rem 0 0;
    color: var(--muted);
    font-size: 0.96rem;
    line-height: 1.65;
}

body[data-page="home"] .home-belief {
    background:
        radial-gradient(circle at 50% 50%, rgba(114, 82, 211, 0.07), transparent 34%),
        var(--paper-bright) !important;
}

body[data-page="home"] .home-closing > .container > div {
    max-width: 1120px !important;
    text-align: left !important;
}

body[data-page="home"] .home-closing__eyebrow {
    margin: 0 0 2rem;
    color: #9b82eb !important;
    font-size: 0.68rem;
    font-weight: 680;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

body[data-page="home"] .home-closing h2 {
    max-width: 980px;
    margin: 0;
    color: #f8f7f3 !important;
    font-size: clamp(3.1rem, 6.2vw, 6.5rem) !important;
    font-weight: 420 !important;
    letter-spacing: -0.06em !important;
    line-height: 0.98 !important;
}

body[data-page="home"] .home-closing__copy {
    max-width: 650px;
    margin: 2rem 0 0;
    color: #aaa8a1 !important;
    font-size: 1.1rem;
    line-height: 1.65;
}

body[data-page="home"] .home-closing__actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-top: 2.8rem;
}

body[data-page="home"] .home-closing__actions a {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.9rem 1.2rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 620;
    text-decoration: none;
}

body[data-page="home"] .home-closing__primary {
    color: var(--ink) !important;
    background: #f8f7f3;
}

body[data-page="home"] .home-closing__primary:hover {
    color: #fff !important;
    background: var(--violet);
}

body[data-page="home"] .home-closing__secondary {
    color: #d0cec7 !important;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

body[data-page="home"] .home-closing__secondary:hover {
    color: #fff !important;
    border-color: rgba(255, 255, 255, 0.5);
}

/* ---------- Published research ---------- */

body[data-page="research"] .research-published {
    padding: clamp(7rem, 11vw, 11rem) 0;
    color: #f7f6f2;
    background:
        radial-gradient(circle at 78% 12%, rgba(114, 82, 211, 0.13), transparent 28rem),
        var(--night);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

body[data-page="research"] .research-published__header {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.55fr);
    gap: clamp(3rem, 8vw, 8rem);
    align-items: end;
    margin-bottom: clamp(5rem, 9vw, 8.5rem);
}

body[data-page="research"] .research-published__eyebrow {
    margin: 0 0 1.6rem;
    color: #9b7cff !important;
    font-size: 0.67rem !important;
    font-weight: 650 !important;
    letter-spacing: 0.2em !important;
    text-transform: uppercase;
}

body[data-page="research"] .research-published h2 {
    margin: 0;
    color: #f7f6f2 !important;
    font-size: clamp(4.5rem, 9vw, 9rem) !important;
    font-weight: 430 !important;
    letter-spacing: -0.075em !important;
    line-height: 0.82 !important;
}

body[data-page="research"] .research-published__intro {
    max-width: 420px;
    margin: 0 0 0.25rem;
    color: #9f9d96 !important;
    font-family: var(--reading) !important;
    font-size: clamp(1.1rem, 1.8vw, 1.35rem) !important;
    line-height: 1.55;
}

body[data-page="research"] .research-publications {
    border-top: 1px solid rgba(255, 255, 255, 0.18);
}

body[data-page="research"] .research-publication {
    display: grid;
    grid-template-columns: minmax(150px, 190px) minmax(0, 1fr);
    gap: clamp(2.5rem, 7vw, 7rem);
    padding: clamp(4.5rem, 8vw, 7.5rem) 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

body[data-page="research"] .research-publication__meta {
    display: grid;
    grid-template-columns: 2.4rem minmax(0, 1fr);
    gap: 1rem;
    align-content: start;
}

body[data-page="research"] .research-publication__index {
    color: #9b7cff;
    font-size: 0.68rem;
    font-weight: 650;
    letter-spacing: 0.14em;
}

body[data-page="research"] .research-publication__meta p {
    margin: 0 0 0.5rem;
    color: #e8e6df !important;
    font-size: 0.65rem !important;
    font-weight: 650 !important;
    letter-spacing: 0.16em !important;
    line-height: 1.4;
    text-transform: uppercase;
}

body[data-page="research"] .research-publication__meta time {
    color: #96948e;
    font-size: 0.75rem;
}

body[data-page="research"] .research-publication__content {
    width: min(100%, 920px);
}

body[data-page="research"] .research-publication h3 {
    max-width: 900px;
    margin: 0 0 1.65rem;
    color: #f7f6f2 !important;
    font-size: clamp(2.8rem, 4.8vw, 5rem) !important;
    font-weight: 440 !important;
    letter-spacing: -0.06em !important;
    line-height: 0.96 !important;
}

body[data-page="research"] .research-publication h3 a {
    color: inherit !important;
    text-decoration: none;
    transition: color 180ms ease;
}

body[data-page="research"] .research-publication h3 a:hover {
    color: #9b7cff !important;
}

body[data-page="research"] .research-publication__dek {
    max-width: 780px;
    margin: 0 0 1.75rem;
    color: #d2d0ca !important;
    font-family: var(--reading) !important;
    font-size: clamp(1.2rem, 2vw, 1.55rem) !important;
    line-height: 1.45;
}

body[data-page="research"] .research-publication__abstract {
    max-width: 760px;
    margin: 0;
    color: #96948e !important;
    font-size: 0.98rem !important;
    line-height: 1.72;
}

body[data-page="research"] .research-publication__abstract strong {
    color: #d8d6d0;
    font-weight: 600;
}

body[data-page="research"] .research-publication__topics {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.5rem;
    margin: 2rem 0 0;
    padding: 0;
    list-style: none;
}

body[data-page="research"] .research-publication__topics li {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    color: #96948e;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

body[data-page="research"] .research-publication__topics li::before {
    content: "";
    width: 0.42rem;
    height: 1px;
    background: #7252d3;
}

body[data-page="research"] .research-publication__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 2rem;
    margin-top: 2.8rem;
}

body[data-page="research"] .research-publication__action {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    padding-bottom: 0.45rem;
    color: #8f8d87 !important;
    font-size: 0.78rem;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    transition: color 180ms ease, border-color 180ms ease;
}

body[data-page="research"] .research-publication__action--primary {
    color: #f7f6f2 !important;
    border-bottom-color: rgba(255, 255, 255, 0.58);
}

body[data-page="research"] .research-publication__action:hover {
    color: #b49cff !important;
    border-bottom-color: #7252d3;
}

body[data-page="research"] .research-publication__audio {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr) minmax(240px, 300px);
    gap: 1.5rem;
    align-items: center;
    margin-top: 3.2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
}

body[data-page="research"] .research-publication__audio-meta {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    color: #a996ea;
    font-size: 0.62rem;
    font-weight: 650;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

body[data-page="research"] .research-publication__audio-meta span:last-child {
    color: #96948e;
}

body[data-page="research"] .research-publication__audio p {
    margin: 0;
    color: #96948e !important;
    font-size: 0.8rem !important;
    line-height: 1.5;
}

body[data-page="research"] .research-publication__audio audio {
    width: 100%;
    height: 34px;
    opacity: 0.72;
    filter: invert(1) grayscale(1);
}

/* ---------- Blog index ---------- */

body[data-page="blog"] .wrap {
    width: min(100%, 1120px);
    max-width: 1120px !important;
    padding: 0 var(--page-gutter) !important;
}

body[data-page="blog"] .masthead {
    min-height: 62vh;
    padding-top: calc(var(--nav-height) + clamp(5rem, 9vw, 9rem)) !important;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-bottom: 1px solid var(--line);
}

body[data-page="blog"] .masthead h1 {
    margin: 0;
    font-size: clamp(5rem, 13vw, 11rem) !important;
    font-weight: 430 !important;
    letter-spacing: -0.075em !important;
    line-height: 0.84 !important;
}

body[data-page="blog"] .masthead .sub {
    max-width: 560px;
    margin-top: 2.4rem;
    color: var(--muted) !important;
    font-family: var(--display) !important;
    font-size: clamp(1.15rem, 2vw, 1.45rem) !important;
    line-height: 1.5;
}

body[data-page="blog"] .masthead + .rule {
    display: none;
}

body[data-page="blog"] .post-item {
    position: relative;
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr) 72px;
    column-gap: clamp(1.5rem, 4vw, 4rem);
    padding: clamp(3rem, 6vw, 5rem) 0 !important;
}

body[data-page="blog"] .post-date {
    grid-column: 1;
    margin: 0;
    color: var(--muted-light) !important;
    font-size: 0.7rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.13em !important;
}

body[data-page="blog"] .post-title {
    grid-column: 2;
    margin: 0 0 1.2rem;
    font-size: clamp(2rem, 4vw, 4.15rem) !important;
    font-weight: 440 !important;
    letter-spacing: -0.055em !important;
    line-height: 1.02 !important;
}

body[data-page="blog"] .post-title a {
    color: var(--ink) !important;
}

body[data-page="blog"] .post-title a:hover {
    color: var(--violet) !important;
}

body[data-page="blog"] .post-desc {
    grid-column: 2;
    max-width: 760px;
    margin: 0;
    color: var(--muted) !important;
    font-family: var(--display) !important;
    font-size: 1rem !important;
    line-height: 1.65;
}

body[data-page="blog"] .post-more {
    grid-column: 3;
    grid-row: 1 / span 2;
    align-self: start;
    justify-self: end;
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    overflow: hidden;
    color: var(--ink) !important;
    font-size: 0;
    border: 1px solid var(--line-strong);
    border-radius: 50%;
    text-decoration: none !important;
}

body[data-page="blog"] .post-more::after {
    content: "↗";
    color: var(--ink);
    font-size: 1rem;
}

body[data-page="blog"] .post-more:hover {
    background: var(--violet);
    border-color: var(--violet);
}

body[data-page="blog"] .post-more:hover::after {
    color: #fff;
}

body[data-page="blog"] .rule {
    margin: 0 !important;
    border-top-color: var(--line) !important;
}

/* ---------- Long-form articles ---------- */

body[data-page="article"] {
    background: var(--paper-bright) !important;
}

body[data-page="article"] .reading-progress,
body[data-page="research-article"] .reading-progress {
    top: 0 !important;
    height: 2px !important;
    background: var(--violet) !important;
    z-index: 120 !important;
}

body[data-page="article"] .post {
    width: min(100%, 920px);
    max-width: 920px !important;
    padding: 0 var(--page-gutter) !important;
}

body[data-page="article"] .post-header {
    padding-top: calc(var(--nav-height) + clamp(6rem, 11vw, 10rem)) !important;
}

body[data-page="article"] h1.post-title {
    max-width: 1060px;
    margin: 0 0 2rem;
    color: var(--ink) !important;
    font-size: clamp(3.5rem, 6vw, 6.1rem) !important;
    font-weight: 430 !important;
    letter-spacing: -0.067em !important;
    line-height: 0.96 !important;
}

body[data-page="article"] .dek {
    max-width: 800px;
    margin-bottom: 3rem;
    color: var(--muted) !important;
    font-family: var(--display) !important;
    font-size: clamp(1.2rem, 2.2vw, 1.65rem) !important;
    font-weight: 400;
    letter-spacing: -0.025em;
    line-height: 1.48 !important;
}

body[data-page="article"] .byline {
    padding: 1.1rem 0 !important;
    color: var(--muted) !important;
    border-color: var(--line) !important;
    font-size: 0.78rem !important;
    letter-spacing: 0.02em;
}

body[data-page="article"] .byline strong {
    color: var(--ink) !important;
}

body[data-page="article"] .prose {
    max-width: 760px;
    margin-top: clamp(4rem, 8vw, 7rem) !important;
    color: var(--ink-soft) !important;
    font-family: var(--reading) !important;
    font-size: clamp(1.18rem, 1.75vw, 1.35rem) !important;
    line-height: 1.76 !important;
}

body[data-page="article"] .prose > p:first-child::first-letter {
    float: left;
    margin: 0.08em 0.12em 0 0;
    color: var(--violet);
    font-family: var(--display);
    font-size: 4.1em;
    font-weight: 430;
    line-height: 0.78;
}

body[data-page="article"] .prose h2 {
    margin: clamp(4rem, 8vw, 7rem) 0 1.4rem !important;
    color: var(--ink) !important;
    font-family: var(--display) !important;
    font-size: clamp(2.25rem, 4.2vw, 3.75rem) !important;
    font-weight: 460 !important;
    letter-spacing: -0.055em !important;
    line-height: 1.02 !important;
}

body[data-page="article"] .prose h3 {
    margin-top: 3.2rem !important;
    color: var(--ink) !important;
    font-family: var(--display) !important;
    font-size: clamp(1.4rem, 2.4vw, 1.85rem) !important;
    font-weight: 520 !important;
    letter-spacing: -0.035em !important;
}

body[data-page="article"] .prose a,
body[data-page="article"] .refs a {
    color: var(--violet-dark) !important;
    text-decoration-color: rgba(89, 56, 189, 0.35) !important;
}

body[data-page="article"] .prose strong {
    color: var(--ink) !important;
}

body[data-page="article"] .prose blockquote {
    margin: 3.5rem 0 !important;
    padding: 0 0 0 1.6rem !important;
    color: var(--ink) !important;
    border-left: 2px solid var(--violet) !important;
    font-size: 1.35em !important;
    line-height: 1.42 !important;
}

body[data-page="article"] .prose code {
    color: var(--ink) !important;
    background: var(--paper-deep) !important;
    border-radius: 0.25rem !important;
}

body[data-page="article"] .prose pre {
    background: var(--night) !important;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem !important;
}

body[data-page="article"] .prose pre code {
    color: #eceae4 !important;
    background: transparent !important;
}

body[data-page="article"] .sep {
    color: var(--muted) !important;
}

body[data-page="article"] .prose figure img {
    border: 1px solid var(--line);
    border-radius: 1rem;
}

body[data-page="article"] .post-foot {
    width: min(100%, 920px);
    max-width: 920px !important;
    padding-left: var(--page-gutter) !important;
    padding-right: var(--page-gutter) !important;
    border-top-color: var(--line) !important;
}

body table {
    width: 100%;
    border-collapse: collapse;
    color: var(--ink-soft);
    background: rgba(255, 255, 255, 0.45);
    font-family: var(--display);
    font-size: 0.88rem;
}

body table th {
    color: var(--ink) !important;
    background: var(--paper-deep) !important;
    font-size: 0.68rem;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

body table thead tr {
    color: var(--ink) !important;
    background: var(--paper-deep) !important;
}

body table th [class*="bg-"] {
    color: #fff !important;
    background: var(--night) !important;
}

body table th .text-gray-500,
body table th .text-gray-400,
body table th .text-gray-300 {
    color: #595853 !important;
}

body table th,
body table td {
    padding: 1rem !important;
    border-color: var(--line) !important;
}

/* ---------- Research papers and simulations ---------- */

body[data-page="research-article"] .hero-gradient h1 {
    max-width: 1050px;
    font-size: clamp(3.8rem, 8vw, 7.7rem) !important;
}

body[data-page="research-article"] .hero-gradient > .container {
    padding-top: clamp(8rem, 12vw, 12rem) !important;
    padding-bottom: clamp(7rem, 11vw, 10rem) !important;
}

body[data-page="research-article"] section > .container.max-w-3xl,
body[data-page="research-article"] section > .container.max-w-4xl {
    max-width: 880px !important;
}

body[data-page="research-article"] section .prose p {
    color: var(--ink-soft) !important;
    font-family: var(--reading);
    font-size: 1.22rem !important;
    line-height: 1.75 !important;
}

body[data-page="research-article"] section h2 {
    font-size: clamp(2.5rem, 5vw, 5rem) !important;
    font-weight: 440 !important;
    letter-spacing: -0.055em !important;
    line-height: 1 !important;
}

body[data-page="research-article"] .hero-gradient .text-gray-400 {
    color: var(--muted) !important;
}

/*
   Dark editorial surfaces need their own readable type system. This covers
   full-width sections and the inset thesis cards used throughout the papers.
*/
body :is(
    section.bg-gray-900,
    main > .bg-gray-900,
    .min-h-screen > .bg-gray-900,
    div.bg-gray-900[class*="py-"],
    div.bg-gray-900.text-white,
    footer.bg-gray-900
) :is(h1, h2, h3, h4, h5, h6, strong) {
    color: #f8f7f3 !important;
}

body :is(
    section.bg-gray-900,
    main > .bg-gray-900,
    .min-h-screen > .bg-gray-900,
    div.bg-gray-900[class*="py-"],
    div.bg-gray-900.text-white
) :is(p, li, em, .text-gray-300, .text-gray-400, .text-gray-500, .text-gray-600) {
    color: #b8b6af !important;
}

body :is(
    section.bg-gray-900,
    main > .bg-gray-900,
    .min-h-screen > .bg-gray-900,
    div.bg-gray-900[class*="py-"],
    div.bg-gray-900.text-white
) :is(
    [class*="text-blue-"],
    [class*="text-indigo-"],
    [class*="text-purple-"],
    [class*="text-cyan-"],
    [class*="text-emerald-"],
    [class*="text-green-"],
    [class*="text-amber-"],
    [class*="text-yellow-"],
    [class*="text-red-"]
) {
    color: var(--violet-bright) !important;
}

body[data-page="research-article"] section.bg-gray-900 .prose p,
body[data-page="research-article"] div.bg-gray-900.text-white .prose p {
    color: #c2c0b9 !important;
}

body[data-page="research-article"] div.bg-gray-900.text-white {
    background: var(--night) !important;
    border-color: rgba(255, 255, 255, 0.13) !important;
}

body[data-page="research-article"] div.bg-gray-900 {
    background: var(--night) !important;
    border-color: rgba(255, 255, 255, 0.13) !important;
}

body[data-page="research-article"] div.bg-gray-900 :is(h1, h2, h3, h4, h5, h6, strong) {
    color: #f8f7f3 !important;
}

body[data-page="research-article"] div.bg-gray-900 :is(p, li, em, .text-gray-300, .text-gray-400, .text-gray-500, .text-gray-600) {
    color: #b8b6af !important;
}

body[data-page="research-article"] div.bg-gray-900 :is(
    [class*="text-blue-"],
    [class*="text-indigo-"],
    [class*="text-purple-"],
    [class*="text-cyan-"],
    [class*="text-emerald-"],
    [class*="text-green-"],
    [class*="text-amber-"],
    [class*="text-yellow-"],
    [class*="text-red-"]
) {
    color: var(--violet-bright) !important;
}

body[data-page="research-article"] section {
    border-color: var(--line) !important;
}

body[data-page="research-article"] section > .container > .text-center:first-child {
    max-width: 900px;
    margin-right: auto;
    margin-left: auto;
}

body[data-page="research-article"] section > .container > .text-center:first-child > p {
    max-width: 760px;
}

body[data-page="research-article"] section :is(.rounded-xl, .rounded-2xl) {
    box-shadow: none !important;
}

body[data-article="ontology"] .overflow-x-auto > table {
    min-width: 720px;
}

body[data-article="ontology"] .table-scroll-hint {
    display: none;
}

body[data-page="careers"] .founder-monogram {
    color: #fff !important;
    background: var(--night) !important;
    border: 1px solid rgba(114, 82, 211, 0.55);
    box-shadow: none !important;
}

/* ---------- Our work and industry field guides ---------- */

body[data-page="built"] .work-hero,
body[data-page="industry"] .industry-hero {
    min-height: 76svh;
    padding: calc(var(--nav-height) + clamp(5rem, 10vw, 10rem)) 0 clamp(5rem, 9vw, 9rem);
    display: flex;
    align-items: flex-end;
    color: var(--ink) !important;
    background:
        radial-gradient(circle at 78% 34%, rgba(114, 82, 211, 0.09), transparent 28%),
        linear-gradient(180deg, var(--paper-bright), var(--paper)) !important;
    border-bottom: 1px solid var(--line);
}

.work-hero__eyebrow,
.industry-eyebrow,
.industry-section__eyebrow,
.work-section__eyebrow {
    margin: 0 0 1.4rem;
    color: var(--violet-dark) !important;
    font-size: 0.68rem !important;
    font-weight: 680;
    letter-spacing: 0.18em;
    line-height: 1.4;
    text-transform: uppercase;
}

.work-hero h1,
.industry-hero h1 {
    max-width: 1080px;
    margin: 0;
    color: var(--ink) !important;
    font-size: clamp(4.6rem, 9.2vw, 9.7rem) !important;
    font-weight: 420 !important;
    letter-spacing: -0.078em !important;
    line-height: 0.84 !important;
}

.work-hero__dek,
.industry-hero__dek {
    max-width: 760px;
    margin: 2.6rem 0 0;
    color: var(--muted) !important;
    font-family: var(--reading) !important;
    font-size: clamp(1.28rem, 2.1vw, 1.7rem) !important;
    line-height: 1.52;
}

.work-hero__proof,
.industry-hero__proof {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem 1.5rem;
    margin: 2.4rem 0 0;
    padding: 1.3rem 0 0;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.67rem;
    font-weight: 620;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.work-position {
    padding: clamp(6rem, 10vw, 10rem) 0;
    background: var(--paper-bright);
}

.work-position__grid,
.industry-thesis__grid {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: clamp(4rem, 9vw, 10rem);
    align-items: start;
}

.work-position h2,
.industry-thesis h2,
.work-section__header h2,
.industry-section__header h2,
.industry-closing h2 {
    margin: 0;
    color: var(--ink) !important;
    font-size: clamp(3.2rem, 6vw, 6.4rem) !important;
    font-weight: 430 !important;
    letter-spacing: -0.065em !important;
    line-height: 0.96 !important;
}

.work-position__copy,
.industry-thesis__copy {
    padding-top: 0.25rem;
}

.work-position__copy p,
.industry-thesis__copy p {
    max-width: 720px;
    margin: 0 0 1.45rem;
    color: var(--ink-soft) !important;
    font-family: var(--reading);
    font-size: clamp(1.2rem, 1.7vw, 1.42rem) !important;
    line-height: 1.72;
}

.work-position__note,
.industry-public-note {
    margin-top: 2.4rem !important;
    padding: 1.3rem 0 0;
    color: var(--muted) !important;
    border-top: 1px solid var(--line-strong);
    font-family: var(--display) !important;
    font-size: 0.82rem !important;
    line-height: 1.65 !important;
}

.work-industries {
    padding: clamp(6rem, 10vw, 10rem) 0;
    color: #f8f7f3;
    background: var(--night);
}

.work-industries .work-section__eyebrow {
    color: var(--violet-bright) !important;
}

.work-industries__header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 460px);
    gap: clamp(3rem, 8vw, 8rem);
    align-items: end;
    margin-bottom: clamp(4rem, 8vw, 7rem);
}

.work-industries__header h2 {
    max-width: 800px;
    margin: 0;
    color: #f8f7f3 !important;
    font-size: clamp(3.5rem, 7vw, 7rem) !important;
    font-weight: 420 !important;
    letter-spacing: -0.07em !important;
    line-height: 0.92 !important;
}

.work-industries__header p:last-child {
    margin: 0;
    color: #aaa8a1 !important;
    font-size: 1rem;
    line-height: 1.7;
}

.industry-ledger {
    margin: 0;
    padding: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    list-style: none;
}

.industry-ledger__item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.industry-ledger__link {
    display: grid;
    grid-template-columns: 5rem minmax(160px, 0.48fr) minmax(0, 1fr) 2.8rem;
    gap: clamp(1.5rem, 4vw, 4.5rem);
    align-items: start;
    padding: clamp(2.8rem, 5vw, 4.8rem) 0;
    color: inherit !important;
    text-decoration: none;
    transition: background 220ms ease;
}

.industry-ledger__number {
    padding-top: 0.45rem;
    color: var(--violet-bright);
    font-size: 0.68rem;
    font-weight: 680;
    letter-spacing: 0.16em;
}

.industry-ledger__name {
    margin: 0;
    color: #f8f7f3 !important;
    font-size: clamp(2rem, 3.4vw, 3.8rem) !important;
    font-weight: 450 !important;
    letter-spacing: -0.052em !important;
    line-height: 1;
}

.industry-ledger__copy p {
    max-width: 690px;
    margin: 0 0 1.25rem;
    color: #b8b6af !important;
    font-size: 1rem;
    line-height: 1.67;
}

.industry-ledger__topics {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem 1.2rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.industry-ledger__topics li {
    color: #96948e !important;
    font-size: 0.64rem;
    font-weight: 620;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.industry-ledger__arrow {
    width: 2.55rem;
    height: 2.55rem;
    display: grid;
    place-items: center;
    color: #f8f7f3;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    transition: color 180ms ease, background 180ms ease, transform 220ms var(--ease-out);
}

.industry-ledger__link:hover .industry-ledger__name {
    color: var(--violet-bright) !important;
}

.industry-ledger__link:hover .industry-ledger__arrow {
    color: var(--night);
    background: #f8f7f3;
    transform: translate(3px, -3px);
}

.work-evidence {
    padding: clamp(6rem, 10vw, 10rem) 0;
    background: var(--paper-deep);
}

.work-evidence__grid {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: clamp(4rem, 8vw, 8rem);
    align-items: center;
}

.work-evidence__copy h2 {
    max-width: 680px;
    margin: 0;
    font-size: clamp(3rem, 5.7vw, 5.8rem) !important;
    font-weight: 430 !important;
    letter-spacing: -0.062em !important;
    line-height: 0.96 !important;
}

.work-evidence__copy > p:not(.work-section__eyebrow) {
    max-width: 620px;
    margin: 2rem 0 0;
    color: var(--muted) !important;
    font-size: 1rem;
    line-height: 1.7;
}

.work-evidence__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem 1.35rem;
    margin-top: 2.4rem;
}

.work-evidence__actions a,
.industry-cta__actions a {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.85rem 1.15rem;
    color: var(--ink) !important;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 640;
    text-decoration: none;
}

.work-evidence__actions a:first-child,
.industry-cta__actions a:first-child {
    color: #fff !important;
    background: var(--ink);
    border-color: var(--ink);
}

.work-evidence__record {
    padding: clamp(2rem, 4vw, 3.5rem);
    color: #f8f7f3;
    background: var(--night-soft);
    border-radius: 1.25rem;
}

.work-evidence__record-label {
    margin: 0 0 2.4rem;
    color: var(--violet-bright) !important;
    font-size: 0.66rem !important;
    font-weight: 680;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.work-evidence__record dl {
    margin: 0;
}

.work-evidence__record div {
    display: grid;
    grid-template-columns: 5rem minmax(0, 1fr);
    gap: 1.2rem;
    padding: 1.2rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.work-evidence__record dt {
    color: #f8f7f3;
    font-size: 1.7rem;
    font-weight: 430;
    letter-spacing: -0.04em;
}

.work-evidence__record dd {
    margin: 0;
    color: #aaa8a1;
    font-size: 0.82rem;
    line-height: 1.55;
}

.industry-back {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    margin-bottom: 3.5rem;
    color: var(--muted) !important;
    font-size: 0.72rem;
    font-weight: 620;
    text-decoration: none;
}

.industry-back:hover {
    color: var(--violet-dark) !important;
}

.industry-hero h1 {
    max-width: 1180px;
    font-size: clamp(4.2rem, 8.2vw, 8.6rem) !important;
}

.industry-hero__meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    margin-top: clamp(3.5rem, 7vw, 6rem);
    border-top: 1px solid var(--line-strong);
    border-bottom: 1px solid var(--line-strong);
}

.industry-hero__meta div {
    padding: 1.5rem clamp(1rem, 2.5vw, 2.2rem) 1.6rem 0;
}

.industry-hero__meta div + div {
    padding-left: clamp(1rem, 2.5vw, 2.2rem);
    border-left: 1px solid var(--line);
}

.industry-hero__meta span {
    display: block;
    margin-bottom: 0.55rem;
    color: var(--muted);
    font-size: 0.62rem;
    font-weight: 650;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.industry-hero__meta strong {
    display: block;
    max-width: 320px;
    color: var(--ink);
    font-size: 0.9rem;
    font-weight: 530;
    line-height: 1.45;
}

.industry-thesis {
    padding: clamp(6rem, 10vw, 10rem) 0;
    background: var(--paper-bright);
}

.industry-thesis__principle {
    margin-top: 2.6rem;
    padding: 2rem 0 0;
    border-top: 1px solid var(--line-strong);
}

.industry-thesis__principle span {
    display: block;
    margin-bottom: 0.8rem;
    color: var(--violet-dark);
    font-size: 0.65rem;
    font-weight: 680;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.industry-thesis__principle strong {
    display: block;
    max-width: 680px;
    color: var(--ink);
    font-family: var(--reading);
    font-size: clamp(1.45rem, 2.5vw, 2.15rem);
    font-weight: 500;
    letter-spacing: -0.025em;
    line-height: 1.35;
}

.industry-use-cases {
    padding: clamp(6rem, 10vw, 10rem) 0;
    background: var(--paper-deep);
}

.industry-section__header,
.work-section__header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 430px);
    gap: clamp(3rem, 8vw, 8rem);
    align-items: end;
    margin-bottom: clamp(4rem, 8vw, 7rem);
}

.industry-section__header > p:last-child,
.work-section__header > p:last-child {
    margin: 0;
    color: var(--muted) !important;
    font-size: 0.96rem;
    line-height: 1.7;
}

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

.industry-case {
    display: grid;
    grid-template-columns: 5.5rem minmax(0, 1fr);
    gap: clamp(1.5rem, 4vw, 4rem);
    padding: clamp(4rem, 7vw, 7rem) 0;
    border-bottom: 1px solid var(--line-strong);
}

.industry-case__number {
    padding-top: 0.35rem;
    color: var(--violet-dark);
    font-size: 0.69rem;
    font-weight: 700;
    letter-spacing: 0.15em;
}

.industry-case__label {
    margin: 0 0 1rem;
    color: var(--violet-dark) !important;
    font-size: 0.66rem !important;
    font-weight: 680;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.industry-case h3 {
    max-width: 880px;
    margin: 0;
    font-size: clamp(2.5rem, 4.6vw, 4.8rem) !important;
    font-weight: 440 !important;
    letter-spacing: -0.06em !important;
    line-height: 0.98 !important;
}

.industry-case__lede {
    max-width: 800px;
    margin: 1.8rem 0 0;
    color: var(--ink-soft) !important;
    font-family: var(--reading);
    font-size: clamp(1.17rem, 1.7vw, 1.4rem) !important;
    line-height: 1.68;
}

.industry-case__detail {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 3.5rem;
    margin-top: 3rem;
    border-top: 1px solid var(--line);
}

.industry-case__detail div {
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--line);
}

.industry-case__detail h4 {
    margin: 0 0 0.65rem;
    color: var(--ink) !important;
    font-size: 0.72rem !important;
    font-weight: 680 !important;
    letter-spacing: 0.12em !important;
    text-transform: uppercase;
}

.industry-case__detail p {
    margin: 0;
    color: var(--muted) !important;
    font-size: 0.9rem !important;
    line-height: 1.65;
}

.industry-architecture {
    padding: clamp(6rem, 10vw, 10rem) 0;
    color: #f8f7f3;
    background: var(--night);
}

.industry-architecture .industry-section__eyebrow,
.industry-architecture .industry-section__header > p:last-child {
    color: var(--violet-bright) !important;
}

.industry-architecture .industry-section__header > p:last-child {
    color: #aaa8a1 !important;
}

.industry-architecture h2 {
    color: #f8f7f3 !important;
}

.industry-stack {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.industry-stack article {
    min-height: 290px;
    padding: 2rem clamp(1.2rem, 2.2vw, 2rem);
}

.industry-stack article + article {
    border-left: 1px solid rgba(255, 255, 255, 0.18);
}

.industry-stack span {
    display: block;
    margin-bottom: 4.5rem;
    color: var(--violet-bright);
    font-size: 0.66rem;
    font-weight: 680;
    letter-spacing: 0.14em;
}

.industry-stack h3 {
    margin: 0 0 1rem;
    color: #f8f7f3 !important;
    font-size: 1.45rem !important;
    font-weight: 520 !important;
    letter-spacing: -0.04em !important;
}

.industry-stack p {
    margin: 0;
    color: #aaa8a1 !important;
    font-size: 0.86rem !important;
    line-height: 1.65;
}

.industry-control {
    display: grid;
    grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
    gap: clamp(3rem, 8vw, 8rem);
    margin-top: clamp(4rem, 8vw, 7rem);
    padding-top: clamp(3rem, 6vw, 5rem);
    border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.industry-control h3 {
    margin: 0;
    color: #f8f7f3 !important;
    font-family: var(--reading);
    font-size: clamp(2rem, 3.3vw, 3.5rem) !important;
    font-weight: 450 !important;
    letter-spacing: -0.04em !important;
    line-height: 1.12;
}

.industry-control ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.industry-control li {
    display: grid;
    grid-template-columns: 8rem minmax(0, 1fr);
    gap: 1.5rem;
    padding: 1.25rem 0;
    color: #aaa8a1;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    font-size: 0.86rem;
    line-height: 1.6;
}

.industry-control li strong {
    color: #f8f7f3 !important;
    font-size: 0.7rem;
    font-weight: 680;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.industry-validation {
    padding: clamp(6rem, 10vw, 10rem) 0;
    background: var(--paper-bright);
}

.industry-sequence {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 0;
    padding: 0;
    border-top: 1px solid var(--line-strong);
    border-bottom: 1px solid var(--line-strong);
    list-style: none;
}

.industry-sequence li {
    min-height: 285px;
    padding: 2rem clamp(1.2rem, 2.2vw, 2rem);
}

.industry-sequence li + li {
    border-left: 1px solid var(--line);
}

.industry-sequence span {
    display: block;
    margin-bottom: 4.5rem;
    color: var(--violet-dark);
    font-size: 0.66rem;
    font-weight: 680;
    letter-spacing: 0.14em;
}

.industry-sequence h3 {
    margin: 0 0 0.85rem;
    font-size: 1.35rem !important;
    font-weight: 520 !important;
    letter-spacing: -0.035em !important;
}

.industry-sequence p {
    margin: 0;
    color: var(--muted) !important;
    font-size: 0.85rem !important;
    line-height: 1.62;
}

.industry-measures {
    display: grid;
    grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
    gap: clamp(3rem, 8vw, 8rem);
    margin-top: clamp(4rem, 7vw, 6rem);
}

.industry-measures h3 {
    margin: 0;
    font-family: var(--reading);
    font-size: clamp(2rem, 3.2vw, 3.35rem) !important;
    font-weight: 460 !important;
    letter-spacing: -0.04em !important;
    line-height: 1.15;
}

.industry-measures dl {
    margin: 0;
    border-top: 1px solid var(--line-strong);
}

.industry-measures dl div {
    display: grid;
    grid-template-columns: minmax(150px, 0.45fr) minmax(0, 1fr);
    gap: 1.5rem;
    padding: 1.2rem 0;
    border-bottom: 1px solid var(--line);
}

.industry-measures dt {
    color: var(--ink);
    font-size: 0.72rem;
    font-weight: 680;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.industry-measures dd {
    margin: 0;
    color: var(--muted);
    font-size: 0.87rem;
    line-height: 1.58;
}

.industry-sources {
    padding: clamp(5rem, 8vw, 7rem) 0;
    background: var(--paper-deep);
    border-top: 1px solid var(--line);
}

.industry-sources__grid {
    display: grid;
    grid-template-columns: minmax(0, 0.65fr) minmax(0, 1.35fr);
    gap: clamp(3rem, 8vw, 8rem);
}

.industry-sources h2 {
    margin: 0;
    font-size: clamp(2rem, 3.4vw, 3.6rem) !important;
    font-weight: 450 !important;
    letter-spacing: -0.05em !important;
    line-height: 1.04;
}

.industry-sources ol {
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: source;
}

.industry-sources li {
    display: grid;
    grid-template-columns: 2rem minmax(0, 1fr);
    gap: 1rem;
    padding: 1rem 0;
    border-top: 1px solid var(--line);
    counter-increment: source;
}

.industry-sources li::before {
    content: counter(source, decimal-leading-zero);
    color: var(--violet-dark);
    font-size: 0.62rem;
    font-weight: 680;
    letter-spacing: 0.1em;
}

.industry-sources a {
    color: var(--ink) !important;
    font-size: 0.82rem;
    font-weight: 560;
    line-height: 1.5;
    text-decoration-color: rgba(21, 21, 21, 0.25);
}

.industry-sources p {
    margin: 0.35rem 0 0;
    color: var(--muted) !important;
    font-size: 0.76rem !important;
    line-height: 1.55;
}

.industry-closing {
    padding: clamp(6rem, 10vw, 10rem) 0;
    background: var(--paper-bright);
}

.industry-related {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: 4rem;
    border-top: 1px solid var(--line-strong);
    border-bottom: 1px solid var(--line-strong);
}

.industry-related a {
    min-height: 150px;
    padding: 1.5rem;
    color: var(--ink) !important;
    text-decoration: none;
}

.industry-related a + a {
    border-left: 1px solid var(--line);
}

.industry-related span {
    display: block;
    margin-bottom: 2.3rem;
    color: var(--violet-dark);
    font-size: 0.62rem;
    font-weight: 680;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.industry-related strong {
    display: block;
    font-size: 1.15rem;
    font-weight: 530;
    letter-spacing: -0.025em;
}

.industry-related a:hover strong {
    color: var(--violet-dark);
}

.industry-cta {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 3rem;
    align-items: end;
    margin-top: clamp(4rem, 8vw, 7rem);
    padding-top: clamp(3rem, 6vw, 5rem);
    border-top: 1px solid var(--line-strong);
}

.industry-cta h3 {
    max-width: 760px;
    margin: 0;
    font-family: var(--reading);
    font-size: clamp(2rem, 4vw, 4.1rem) !important;
    font-weight: 460 !important;
    letter-spacing: -0.045em !important;
    line-height: 1.08;
}

.industry-cta__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.75rem;
}

body .highlight-text {
    color: var(--violet-dark) !important;
    background: linear-gradient(transparent 68%, var(--violet-soft) 68%) !important;
}

body .sim-container,
body .cycle-node,
body .ns-layer,
body .cdt-node {
    border-color: var(--line) !important;
    box-shadow: none !important;
}

body .tab-btn.active {
    color: #fff !important;
    background: var(--violet) !important;
}

body canvas {
    max-width: 100%;
}

/* ---------- Legal pages ---------- */

body[data-page="legal"] .hero-gradient {
    min-height: 52vh;
}

body[data-page="legal"] .hero-gradient h1 {
    font-size: clamp(4rem, 9vw, 8rem) !important;
}

body[data-page="legal"] .hero-gradient + div > .container > .bg-white {
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
}

body[data-page="legal"] .prose {
    max-width: 800px;
    color: var(--ink-soft);
}

body[data-page="legal"] .prose > h2:first-child {
    display: none;
}

body[data-page="legal"] .prose h3 {
    margin-top: 3.8rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--line);
    font-size: clamp(1.5rem, 2.5vw, 2.1rem) !important;
    font-weight: 500 !important;
}

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

body footer,
body footer.bg-gray-900 {
    margin-top: 0 !important;
    padding-top: clamp(5rem, 8vw, 8rem) !important;
    padding-bottom: 2.5rem !important;
    color: #f7f6f2 !important;
    background: var(--night) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.12) !important;
}

body footer .container {
    max-width: var(--page-width) !important;
}

body footer .text-2xl {
    color: #fff !important;
    font-family: var(--display) !important;
    font-size: 1rem !important;
    font-weight: 650 !important;
    line-height: 1 !important;
    letter-spacing: 0.26em !important;
}

body footer .text-2xl > .flex {
    display: flex !important;
    gap: 0.25rem !important;
    margin-right: 0.7rem !important;
}

body footer .text-2xl > .flex > div:first-child {
    width: 1.5rem !important;
    height: 2px !important;
    background: #f7f6f2 !important;
}

body footer .text-2xl > .flex > div:nth-child(2),
body footer .text-2xl > .flex > div:nth-child(3) {
    background: #9b7cff !important;
}

body footer p,
body footer .text-gray-500,
body footer .text-gray-600,
body footer .text-gray-700,
body footer a {
    color: #8e8c86 !important;
}

body footer a:hover {
    color: #fff !important;
}

body footer .border-t,
body footer .border-gray-800 {
    border-color: rgba(255, 255, 255, 0.12) !important;
}

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

@keyframes editorialEnter {
    from { opacity: 0; transform: translateY(28px); }
    to { opacity: 1; transform: translateY(0); }
}

body .hero-animate,
body .hero-animate-delay-1,
body .hero-animate-delay-2,
body .hero-animate-delay-3 {
    animation: editorialEnter 900ms var(--ease-out) both !important;
}

body .hero-animate-delay-1 { animation-delay: 80ms !important; }
body .hero-animate-delay-2 { animation-delay: 160ms !important; }
body .hero-animate-delay-3 { animation-delay: 240ms !important; }

body .reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 700ms var(--ease-out), transform 800ms var(--ease-out) !important;
}

body .reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

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

@media (max-width: 900px) {
    :root { --nav-height: 68px; }

    .editorial-nav__links { display: none; }
    .editorial-nav__toggle { display: inline-flex; }

    .work-position__grid,
    .industry-thesis__grid,
    .work-industries__header,
    .work-evidence__grid,
    .industry-section__header,
    .work-section__header,
    .industry-control,
    .industry-measures,
    .industry-sources__grid,
    .industry-cta {
        grid-template-columns: 1fr;
        gap: 2.75rem;
    }

    .industry-stack,
    .industry-sequence,
    .industry-related {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .industry-stack article:nth-child(3),
    .industry-stack article:nth-child(4),
    .industry-sequence li:nth-child(3),
    .industry-sequence li:nth-child(4),
    .industry-related a:nth-child(3),
    .industry-related a:nth-child(4) {
        border-top: 1px solid rgba(255, 255, 255, 0.18);
    }

    .industry-sequence li:nth-child(3),
    .industry-sequence li:nth-child(4),
    .industry-related a:nth-child(3),
    .industry-related a:nth-child(4) {
        border-top-color: var(--line);
    }

    .industry-stack article:nth-child(3),
    .industry-sequence li:nth-child(3),
    .industry-related a:nth-child(3) {
        border-left: 0;
    }

    .industry-cta__actions {
        justify-content: flex-start;
    }

    body[data-page="research"] .research-published__header {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    body[data-page="research"] .research-published__intro {
        max-width: 620px;
    }

    body[data-page="research"] .research-publication {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    body[data-page="research"] .research-publication__meta {
        max-width: 240px;
    }

    body[data-page="research"] .research-publication__audio {
        grid-template-columns: 110px minmax(0, 1fr);
    }

    body[data-page="research"] .research-publication__audio audio {
        grid-column: 2;
    }

    body[data-page="home"] .hero-gradient > .container > div {
        width: min(100%, 700px);
    }

    body[data-page="home"] .home-engagement__grid {
        grid-template-columns: 1fr;
        gap: 4.5rem;
    }

    body[data-page="home"] .home-engagement__intro {
        max-width: 720px;
    }

    body[data-page="home"] .hero-motion-canvas {
        opacity: 0.48 !important;
        transform: translate(24%, 18%) scale(1.2);
    }

    body[data-page="home"] .hero-motion-fade {
        background: linear-gradient(180deg, rgba(252, 251, 248, 0.95) 0%, rgba(252, 251, 248, 0.82) 58%, rgba(252, 251, 248, 0.18) 100%) !important;
    }

    body[data-page="blog"] .post-item {
        grid-template-columns: 100px minmax(0, 1fr) 52px;
        column-gap: 1.25rem;
    }
}

@media (max-width: 640px) {
    body[data-article="ontology"] .cycle-arrows {
        display: none;
    }

    body[data-article="ontology"] .table-scroll-hint {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin: 0 0 0.7rem;
        color: var(--muted) !important;
        font-size: 0.68rem !important;
        font-weight: 650;
        letter-spacing: 0.12em;
        text-transform: uppercase;
    }

    body[data-page="article"] .table-wrap::before {
        content: "Swipe to compare  \2192";
        position: sticky;
        left: 0;
        display: block;
        width: max-content;
        margin: 0 0 0.7rem;
        color: var(--muted);
        font-family: var(--display);
        font-size: 0.68rem;
        font-weight: 650;
        letter-spacing: 0.12em;
        text-transform: uppercase;
    }

    :root { --page-gutter: 1.25rem; }

    body[data-page="built"] .work-hero,
    body[data-page="industry"] .industry-hero {
        min-height: auto;
        padding-top: calc(var(--nav-height) + 5.5rem);
        padding-bottom: 5rem;
    }

    .work-hero h1,
    .industry-hero h1 {
        font-size: clamp(3.35rem, 17vw, 5rem) !important;
        line-height: 0.9 !important;
        letter-spacing: -0.068em !important;
    }

    .work-position h2,
    .industry-thesis h2,
    .work-section__header h2,
    .industry-section__header h2,
    .industry-closing h2,
    .work-industries__header h2 {
        font-size: clamp(2.8rem, 13vw, 4.25rem) !important;
    }

    .industry-hero__meta {
        grid-template-columns: 1fr;
    }

    .industry-hero__meta div + div {
        padding-left: 0;
        border-top: 1px solid var(--line);
        border-left: 0;
    }

    .industry-ledger__link {
        grid-template-columns: 2.5rem minmax(0, 1fr) 2.5rem;
        gap: 1rem;
        padding: 2.8rem 0;
    }

    .industry-ledger__number {
        grid-column: 1;
    }

    .industry-ledger__name {
        grid-column: 2;
        font-size: clamp(2rem, 10vw, 2.8rem) !important;
    }

    .industry-ledger__copy {
        grid-column: 2 / 4;
    }

    .industry-ledger__arrow {
        grid-column: 3;
        grid-row: 1;
    }

    .industry-case {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .industry-case h3 {
        font-size: clamp(2.35rem, 11vw, 3.4rem) !important;
    }

    .industry-case__detail,
    .industry-stack,
    .industry-sequence,
    .industry-related {
        grid-template-columns: 1fr;
    }

    .industry-stack article,
    .industry-sequence li {
        min-height: 0;
    }

    .industry-stack article + article,
    .industry-sequence li + li,
    .industry-related a + a {
        border-top: 1px solid rgba(255, 255, 255, 0.18);
        border-left: 0;
    }

    .industry-sequence li + li,
    .industry-related a + a {
        border-top-color: var(--line);
    }

    .industry-stack span,
    .industry-sequence span {
        margin-bottom: 2.5rem;
    }

    .industry-control li,
    .industry-measures dl div {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .work-evidence__record div {
        grid-template-columns: 4rem minmax(0, 1fr);
    }

    .work-evidence__actions,
    .industry-cta__actions {
        flex-direction: column;
        align-items: flex-start;
    }

    body[data-page="research"] .research-published {
        padding: 6rem 0;
    }

    body[data-page="research"] .research-published__header {
        margin-bottom: 5rem;
    }

    body[data-page="research"] .research-published h2 {
        font-size: clamp(4rem, 20vw, 5rem) !important;
        line-height: 0.84 !important;
    }

    body[data-page="research"] .research-publication {
        gap: 2rem;
        padding: 4rem 0;
    }

    body[data-page="research"] .research-publication h3 {
        font-size: clamp(2.45rem, 12vw, 3.25rem) !important;
        line-height: 0.98 !important;
    }

    body[data-page="research"] .research-publication__dek {
        font-size: 1.16rem !important;
    }

    body[data-page="research"] .research-publication__topics {
        gap: 0.65rem 1rem;
    }

    body[data-page="research"] .research-publication__actions {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    body[data-page="research"] .research-publication__audio {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    body[data-page="research"] .research-publication__audio-meta {
        flex-direction: row;
        justify-content: space-between;
    }

    body[data-page="research"] .research-publication__audio audio {
        grid-column: auto;
    }

    body .hero-gradient {
        min-height: 78svh;
    }

    body .hero-gradient > .container {
        padding-top: 6rem !important;
        padding-bottom: 5rem !important;
    }

    body .hero-gradient h1,
    body[data-page="home"] .hero-gradient h1,
    body[data-page="research-article"] .hero-gradient h1 {
        font-size: clamp(3rem, 12.5vw, 4.65rem) !important;
        line-height: 0.94 !important;
    }

    body .hero-gradient p br {
        display: none;
    }

    body .hero-gradient .yet-logo {
        margin-bottom: 2.5rem !important;
    }

    body[data-page="home"] .hero-motion-canvas {
        transform: translate(30%, 26%) scale(1.25);
    }

    body[data-page="home"] .hero-gradient h1 span {
        white-space: normal;
    }

    body[data-page="home"] .hero-gradient .hero-actions {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    body[data-page="home"] .hero-gradient .hero-proof {
        margin-top: 1.2rem !important;
        font-size: 0.62rem !important;
    }

    body[data-page="home"] .home-engagement__steps li {
        grid-template-columns: 3rem minmax(0, 1fr);
        gap: 0.75rem;
    }

    body[data-page="home"] .home-closing h2 {
        font-size: clamp(2.75rem, 13vw, 4rem) !important;
    }

    body[data-page="home"] .home-closing__actions {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.9rem;
    }

    body h2.text-3xl,
    body h2.text-4xl,
    body h2[class*="md:text-4xl"] {
        font-size: clamp(2.25rem, 10.5vw, 3.5rem) !important;
    }

    body [class~="py-24"],
    body [class~="md:py-32"] {
        padding-top: 5.5rem !important;
        padding-bottom: 5.5rem !important;
    }

    body .grid.md\:grid-cols-3,
    body .grid.md\:grid-cols-2 {
        gap: 1.25rem !important;
    }

    body[data-page="blog"] .masthead {
        min-height: 54vh;
    }

    body[data-page="blog"] .post-item {
        display: block;
        padding: 3.25rem 0 4rem !important;
    }

    body[data-page="blog"] .post-date {
        margin-bottom: 1.25rem;
    }

    body[data-page="blog"] .post-title {
        padding-right: 2rem;
    }

    body[data-page="blog"] .post-more {
        position: absolute;
        right: 0;
        bottom: 1.75rem;
        width: 42px;
        height: 42px;
    }

    body[data-page="article"] h1.post-title {
        font-size: clamp(2.85rem, 10.8vw, 4.4rem) !important;
    }

    body[data-page="article"] .prose {
        font-size: 1.15rem !important;
    }

    body[data-page="article"] .prose h2 {
        font-size: clamp(2rem, 10vw, 3rem) !important;
    }

    body footer .flex.space-x-6 {
        margin-top: 2rem;
    }
}

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

    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }

    body .reveal {
        opacity: 1;
        transform: none;
    }
}
