/* ===================================================================
   rational.group — Bauhaus Composition Machine
   Palette: #FFFFFF #1A1A1A #D40920 #1356A2 #F7D842 #F0F0F0 #2A2A2A #333333
   Type: Josefin Sans (futura-geometric), Nunito Sans, Orbitron
   =================================================================== */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-snap-type: y mandatory;
    scroll-behavior: auto;
    background: #1A1A1A;
}

body {
    font-family: "Nunito Sans", "Inter", system-ui, sans-serif;
    color: #2A2A2A;
    background: #1A1A1A;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    line-height: 1.65;
}

img,
svg {
    display: block;
    max-width: 100%;
}

ul {
    list-style: none;
}

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

/* ============================================================
   NAVIGATION RAIL
   ============================================================ */
.nav-rail {
    position: fixed;
    top: 0;
    right: 0;
    width: 64px;
    height: 100vh;
    background: #1A1A1A;
    border-left: 4px solid #F7D842;
    z-index: 50;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 24px 0;
    color: #FFFFFF;
}

.nav-mark {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: center;
}

.nav-mark .nav-circle,
.nav-mark .nav-square,
.nav-mark .nav-triangle {
    width: 12px;
    height: 12px;
    display: block;
}

.nav-mark .nav-circle {
    background: #1356A2;
    border-radius: 50%;
}

.nav-mark .nav-square {
    background: #D40920;
}

.nav-mark .nav-triangle {
    width: 0;
    height: 0;
    background: transparent;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 12px solid #F7D842;
}

.nav-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
    align-items: center;
}

.nav-list a {
    font-family: "Orbitron", "Inter", monospace;
    font-size: 9px;
    letter-spacing: 0.2em;
    color: #F0F0F0;
    opacity: 0.45;
    transition: opacity 200ms ease, color 200ms ease;
    position: relative;
    display: inline-block;
    width: 24px;
    text-align: center;
}

.nav-list a::before {
    content: "";
    position: absolute;
    left: 50%;
    top: -8px;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background: #FFFFFF;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 200ms ease, transform 300ms ease;
}

.nav-list a:hover {
    opacity: 1;
    color: #F7D842;
}

.nav-list a.active {
    opacity: 1;
    color: #F7D842;
}

.nav-list a.active::before {
    opacity: 1;
    background: #D40920;
    transform: translateX(-50%) scale(1.4);
}

.nav-meta {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-family: "Orbitron", monospace;
    font-size: 9px;
    letter-spacing: 0.3em;
    color: #F0F0F0;
    opacity: 0.55;
}

/* ============================================================
   COMPOSITION MACHINE / SCROLL CONTAINER
   ============================================================ */
.composition-machine {
    width: 100%;
}

.section {
    width: 100vw;
    height: 100vh;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    position: relative;
    overflow: hidden;
    padding-right: 64px; /* space for nav-rail */
    background: #FFFFFF;
}

/* Brief opacity flash on snap entry */
.section.snap-flash::before {
    content: "";
    position: absolute;
    inset: 0;
    background: #1A1A1A;
    opacity: 0.18;
    pointer-events: none;
    z-index: 5;
    animation: snap-flash 150ms ease-out forwards;
}

@keyframes snap-flash {
    0% {
        opacity: 0.18;
    }
    100% {
        opacity: 0;
    }
}

/* ============================================================
   BENTO GRID — base
   ============================================================ */
.bento {
    width: 100%;
    height: 100%;
    display: grid;
    background: #1A1A1A;
    gap: 4px;
    padding: 0;
}

.cell {
    position: relative;
    overflow: hidden;
    padding: 36px 40px;
    background: #FFFFFF;
    border: 0 solid transparent;
    transition: background-color 220ms ease, border-width 400ms ease;
    display: flex;
    flex-direction: column;
}

.cell.in-pulse {
    animation: cell-pulse 400ms ease-in-out;
}

@keyframes cell-pulse {
    0% {
        box-shadow: inset 0 0 0 4px transparent;
    }
    50% {
        box-shadow: inset 0 0 0 8px rgba(0, 0, 0, 0.18);
    }
    100% {
        box-shadow: inset 0 0 0 4px transparent;
    }
}

.cell-label {
    font-family: "Orbitron", "Inter", monospace;
    font-weight: 500;
    font-size: 10px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 18px;
    display: inline-block;
}

/* ----- Cell color variants ----- */
.cell-white {
    background: #FFFFFF;
    color: #1A1A1A;
}

.cell-gray {
    background: #F0F0F0;
    color: #1A1A1A;
}

.cell-red {
    background: #D40920;
    color: #FFFFFF;
}

.cell-blue {
    background: #1356A2;
    color: #FFFFFF;
}

.cell-yellow {
    background: #F7D842;
    color: #1A1A1A;
}

.cell-primary {
    background: #FFFFFF;
    color: #1A1A1A;
}

/* hover behavior — slight tint shift toward assigned primary */
.cell-white:hover {
    background: #FFF8DA; /* yellow @ ~10% */
}

.cell-gray:hover {
    background: #E5EAF2; /* blue @ ~10% */
}

.cell-red:hover {
    background: #C00819;
}

.cell-blue:hover {
    background: #104A91;
}

.cell-yellow:hover {
    background: #F5D02C;
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
.display-headline,
.section-headline,
.practice-title,
.method-title,
.member-name,
.mark-text,
.terminal-text,
.vert-text,
.doctrine-text {
    font-family: "Josefin Sans", "Inter", sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: inherit;
}

.display-headline {
    font-weight: 700;
    font-size: clamp(48px, 6.4vw, 96px);
    line-height: 0.92;
    color: inherit;
    margin-bottom: 32px;
}

.headline-mark {
    color: #D40920;
    position: relative;
    display: inline-block;
}

.section-headline {
    font-weight: 700;
    font-size: clamp(36px, 4.4vw, 64px);
    line-height: 0.95;
    color: inherit;
    margin-bottom: 24px;
}

.cell-blue .section-headline,
.cell-red .section-headline,
.cell-blue .display-headline,
.cell-red .display-headline {
    color: #FFFFFF;
}

.cell-yellow .section-headline,
.cell-yellow .display-headline {
    color: #1A1A1A;
}

.lead {
    font-family: "Nunito Sans", sans-serif;
    font-weight: 400;
    font-size: 18px;
    line-height: 1.55;
    max-width: 56ch;
    color: #333333;
    margin-bottom: 28px;
}

.cell-blue .lead,
.cell-red .lead {
    color: #F0F0F0;
}

.body-text {
    font-family: "Nunito Sans", sans-serif;
    font-size: 16px;
    line-height: 1.65;
    color: #2A2A2A;
    max-width: 50ch;
}

.cell-blue .body-text,
.cell-red .body-text {
    color: #F0F0F0;
}

.cell-yellow .body-text {
    color: #1A1A1A;
}

.kicker {
    font-family: "Josefin Sans", sans-serif;
    font-weight: 400;
    font-size: 22px;
    line-height: 1.25;
    margin-top: auto;
    color: inherit;
}

.big-num {
    font-family: "Josefin Sans", sans-serif;
    font-weight: 300;
    font-size: 160px;
    line-height: 0.85;
    color: #1A1A1A;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.big-num.small {
    font-size: 120px;
    color: #1356A2;
}

/* ============================================================
   GEOMETRIC SHAPES — circle / triangle / square
   ============================================================ */
.shape {
    display: block;
    pointer-events: none;
}

/* CIRCLE — assigned blue */
.shape-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: #1356A2;
}

.shape-circle.shape-blue {
    background: #1356A2;
}

.shape-circle.shape-yellow {
    background: #F7D842;
}

.shape-circle.shape-red {
    background: #D40920;
}

.shape-circle.shape-white-on-blue {
    background: #FFFFFF;
}

/* TRIANGLE — assigned yellow */
.shape-triangle {
    width: 0;
    height: 0;
    background: transparent;
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 104px solid #F7D842;
}

.shape-triangle.shape-yellow {
    border-bottom-color: #F7D842;
}

.shape-triangle.shape-blue {
    border-bottom-color: #1356A2;
}

.shape-triangle.shape-red {
    border-bottom-color: #D40920;
}

.shape-triangle.shape-black-on-yellow {
    border-bottom-color: #1A1A1A;
}

/* SQUARE — assigned red */
.shape-square {
    width: 110px;
    height: 110px;
    background: #D40920;
}

.shape-square.shape-red {
    background: #D40920;
}

.shape-square.shape-blue {
    background: #1356A2;
}

.shape-square.shape-yellow {
    background: #F7D842;
}

.shape-square.shape-white-on-red {
    background: #FFFFFF;
}

/* mini variants */
.shape.mini {
    transform: scale(0.42);
    transform-origin: top left;
}

/* ============================================================
   SHAPE CHOREOGRAPHY — entry animations
   ============================================================ */
.section .shape {
    opacity: 0;
}

.section.is-active .shape {
    opacity: 1;
}

/* circles roll in from right */
.section.is-active .shape-circle.floating-shape {
    animation: roll-in 800ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes roll-in {
    0% {
        opacity: 0;
        transform: translateX(60vw) rotate(-540deg);
    }
    100% {
        opacity: 1;
        transform: translateX(0) rotate(0deg);
    }
}

/* triangles drop from above */
.section.is-active .shape-triangle.floating-shape {
    animation: drop-in 800ms cubic-bezier(0.22, 1, 0.36, 1) 80ms forwards;
}

@keyframes drop-in {
    0% {
        opacity: 0;
        transform: translateY(-50vh) rotate(15deg);
    }
    60% {
        opacity: 1;
        transform: translateY(8px) rotate(-3deg);
    }
    100% {
        opacity: 1;
        transform: translateY(0) rotate(0);
    }
}

/* squares slide in from left */
.section.is-active .shape-square.floating-shape {
    animation: slide-in 800ms cubic-bezier(0.22, 1, 0.36, 1) 160ms forwards;
}

@keyframes slide-in {
    0% {
        opacity: 0;
        transform: translateX(-50vw);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ============================================================
   ROTATING FOCAL SHAPES — 2rpm = 30s/rev
   ============================================================ */
.rotor {
    animation: rotate-2rpm 30s linear infinite;
    transform-origin: center;
}

.rotor.rev {
    animation-direction: reverse;
}

.rotor-slow {
    animation: rotate-2rpm 45s linear infinite;
}

.rotor-slow.rev {
    animation-direction: reverse;
}

/* circles still rotate visibly via inner mark — add a subtle inner divider */
.rotor.shape-circle::after,
.rotor-slow.shape-circle::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    background: rgba(255, 255, 255, 0.28);
}

.rotor.shape-circle,
.rotor-slow.shape-circle {
    position: relative;
}

@keyframes rotate-2rpm {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* ============================================================
   SECTION 01 — MANIFEST GRID
   ============================================================ */
.bento-manifest {
    grid-template-columns: 60% 40%;
    grid-template-rows: 38% 32% 30%;
    grid-template-areas:
        "main tag"
        "main meta"
        "main vert";
}

.cell-manifest-main {
    grid-area: main;
    background: #FFFFFF;
    padding: 64px;
    justify-content: center;
    border-right: 4px solid #D40920;
}

.cell-manifest-tag {
    grid-area: tag;
    background: #F7D842;
    border-bottom: 4px solid #1356A2;
    justify-content: space-between;
}

.cell-manifest-meta {
    grid-area: meta;
    background: #FFFFFF;
    border-bottom: 4px solid #F7D842;
}

.cell-manifest-vert {
    grid-area: vert;
    background: #D40920;
    color: #FFFFFF;
    justify-content: space-between;
}

.manifest-shapes {
    position: absolute;
    right: 64px;
    bottom: 64px;
    display: flex;
    gap: 24px;
    align-items: flex-end;
}

.cell-content {
    position: relative;
    z-index: 2;
}

.meta-list {
    display: grid;
    gap: 10px;
    font-family: "Josefin Sans", sans-serif;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #1A1A1A;
}

.meta-list li {
    display: flex;
    align-items: baseline;
    gap: 14px;
    border-bottom: 1px solid #F0F0F0;
    padding-bottom: 6px;
}

.meta-num {
    font-family: "Orbitron", monospace;
    font-size: 11px;
    letter-spacing: 0.2em;
    color: #D40920;
    min-width: 28px;
}

.bar-stack {
    display: flex;
    gap: 10px;
    margin: 12px 0;
}

.bar {
    width: 18px;
    height: 64px;
}

.bar-yellow {
    background: #F7D842;
}

.bar-blue {
    background: #1356A2;
}

.bar-white {
    background: #FFFFFF;
}

.vert-text {
    font-family: "Josefin Sans", sans-serif;
    font-weight: 700;
    font-size: 22px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    line-height: 1.1;
    color: #FFFFFF;
}

.rotating-shape {
    align-self: flex-start;
    margin-top: 6px;
}

.rotating-shape .shape-circle {
    width: 88px;
    height: 88px;
}

/* ============================================================
   SECTION 02 — DOCTRINE GRID
   ============================================================ */
.bento-doctrine {
    grid-template-columns: 40% 20% 20% 20%;
    grid-template-rows: 50% 50%;
    grid-template-areas:
        "main circle triangle square"
        "main quote quote quote";
}

.cell-doctrine-1 {
    grid-area: main;
    background: #FFFFFF;
    border-right: 4px solid #1356A2;
    border-bottom: 4px solid #F7D842;
    padding: 56px;
    justify-content: center;
}

.cell-doctrine-circle {
    grid-area: circle;
    background: #1356A2;
    color: #FFFFFF;
    border-right: 4px solid #F7D842;
    border-bottom: 4px solid #D40920;
    align-items: flex-start;
    justify-content: space-between;
}

.cell-doctrine-triangle {
    grid-area: triangle;
    background: #F7D842;
    color: #1A1A1A;
    border-right: 4px solid #D40920;
    border-bottom: 4px solid #1356A2;
    align-items: flex-start;
    justify-content: space-between;
}

.cell-doctrine-square {
    grid-area: square;
    background: #D40920;
    color: #FFFFFF;
    border-bottom: 4px solid #1A1A1A;
    align-items: flex-start;
    justify-content: space-between;
}

.cell-doctrine-quote {
    grid-area: quote;
    background: #F0F0F0;
    align-items: flex-start;
    justify-content: center;
}

.doctrine-shape {
    align-self: center;
    margin: 18px 0;
    position: relative;
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.doctrine-shape .shape-circle {
    width: 100px;
    height: 100px;
}

.doctrine-shape .shape-triangle {
    border-left-width: 50px;
    border-right-width: 50px;
    border-bottom-width: 86px;
}

.doctrine-shape .shape-square {
    width: 92px;
    height: 92px;
}

.doctrine-text {
    font-weight: 700;
    font-size: 14px;
    line-height: 1.4;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: auto;
}

.doctrine-text {
    color: inherit;
}

.cell-doctrine-circle .doctrine-text,
.cell-doctrine-square .doctrine-text {
    color: #FFFFFF;
}

.quote {
    font-family: "Josefin Sans", sans-serif;
    font-weight: 400;
    font-size: clamp(24px, 2.4vw, 32px);
    line-height: 1.25;
    color: #1A1A1A;
    max-width: 70%;
    font-style: normal;
}

.quote cite {
    display: block;
    font-family: "Orbitron", monospace;
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #1356A2;
    margin-top: 18px;
    font-style: normal;
}

/* ============================================================
   SECTION 03 — PRACTICES GRID
   ============================================================ */
.bento-practices {
    grid-template-columns: 32% 22% 22% 24%;
    grid-template-rows: 40% 60%;
    grid-template-areas:
        "header  p1 p2 p3"
        "header  p4 p4 p5";
}

.cell-practice-header {
    grid-area: header;
    background: #FFFFFF;
    border-right: 4px solid #1A1A1A;
    padding: 56px;
    justify-content: center;
    position: relative;
}

.practice-shapes {
    margin-top: 28px;
    display: flex;
    gap: 24px;
    align-items: flex-end;
    height: 60px;
}

.cell-practice-1 {
    grid-area: p1;
    background: #D40920;
    color: #FFFFFF;
    border-right: 4px solid #F7D842;
    border-bottom: 4px solid #1356A2;
}

.cell-practice-2 {
    grid-area: p2;
    background: #1356A2;
    color: #FFFFFF;
    border-right: 4px solid #D40920;
    border-bottom: 4px solid #F7D842;
}

.cell-practice-3 {
    grid-area: p3;
    background: #F7D842;
    color: #1A1A1A;
    border-bottom: 4px solid #D40920;
}

.cell-practice-4 {
    grid-area: p4;
    background: #FFFFFF;
    color: #1A1A1A;
    border-right: 4px solid #1356A2;
    position: relative;
}

.cell-practice-5 {
    grid-area: p5;
    background: #F0F0F0;
    color: #1A1A1A;
}

.practice-title {
    font-family: "Josefin Sans", sans-serif;
    font-weight: 700;
    font-size: clamp(20px, 2vw, 28px);
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin: 14px 0 14px 0;
}

.practice-body {
    font-family: "Nunito Sans", sans-serif;
    font-size: 14px;
    line-height: 1.55;
    margin-top: auto;
    max-width: 32ch;
}

.cell-practice-1 .practice-body,
.cell-practice-2 .practice-body {
    color: #F0F0F0;
}

.floating-mini {
    position: absolute;
    right: 32px;
    bottom: 32px;
    transform: scale(1.5);
    transform-origin: bottom right;
}

/* ============================================================
   SECTION 04 — METHOD GRID
   ============================================================ */
.bento-method {
    grid-template-columns: 50% 25% 25%;
    grid-template-rows: 50% 50%;
    grid-template-areas:
        "main m1 m2"
        "main m3 m4";
}

.cell-method-main {
    grid-area: main;
    background: #F7D842;
    color: #1A1A1A;
    padding: 56px;
    justify-content: center;
    border-right: 4px solid #D40920;
    position: relative;
}

.method-rotor {
    position: absolute;
    right: 56px;
    bottom: 56px;
    width: 140px;
    height: 140px;
}

.method-rotor .shape-circle {
    width: 140px;
    height: 140px;
}

.cell-method-1 {
    grid-area: m1;
    background: #FFFFFF;
    border-right: 4px solid #1356A2;
    border-bottom: 4px solid #D40920;
}

.cell-method-2 {
    grid-area: m2;
    background: #1356A2;
    color: #FFFFFF;
    border-bottom: 4px solid #F7D842;
}

.cell-method-3 {
    grid-area: m3;
    background: #D40920;
    color: #FFFFFF;
    border-right: 4px solid #1A1A1A;
}

.cell-method-4 {
    grid-area: m4;
    background: #F0F0F0;
    color: #1A1A1A;
}

.method-title {
    font-family: "Josefin Sans", sans-serif;
    font-weight: 700;
    font-size: clamp(28px, 3vw, 44px);
    line-height: 0.95;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin: 12px 0 12px;
}

.method-body {
    font-family: "Nunito Sans", sans-serif;
    font-size: 14px;
    line-height: 1.55;
    max-width: 28ch;
}

.cell-method-2 .method-body,
.cell-method-3 .method-body {
    color: #F0F0F0;
}

.method-svg {
    width: 80px;
    height: 80px;
    margin-top: auto;
    align-self: flex-start;
}

/* ============================================================
   SECTION 05 — COLLECTIVE GRID
   ============================================================ */
.bento-collective {
    grid-template-columns: 45% 18% 18% 19%;
    grid-template-rows: 65% 35%;
    grid-template-areas:
        "main c1 c2 c3"
        "main meta meta meta";
}

.cell-collective-main {
    grid-area: main;
    background: #1356A2;
    color: #FFFFFF;
    padding: 56px;
    justify-content: center;
    border-right: 4px solid #F7D842;
    position: relative;
}

.collective-rotor {
    position: absolute;
    right: 56px;
    bottom: 56px;
    width: 130px;
    height: 130px;
}

.collective-rotor .shape-square {
    width: 130px;
    height: 130px;
}

.cell-collective-1 {
    grid-area: c1;
    background: #FFFFFF;
    color: #1A1A1A;
    border-right: 4px solid #D40920;
    border-bottom: 4px solid #1356A2;
}

.cell-collective-2 {
    grid-area: c2;
    background: #F7D842;
    color: #1A1A1A;
    border-right: 4px solid #1356A2;
    border-bottom: 4px solid #D40920;
}

.cell-collective-3 {
    grid-area: c3;
    background: #D40920;
    color: #FFFFFF;
    border-bottom: 4px solid #F7D842;
}

.cell-collective-meta {
    grid-area: meta;
    background: #F0F0F0;
    color: #1A1A1A;
    flex-direction: row;
    align-items: center;
    gap: 36px;
    padding: 32px 56px;
}

.cell-collective-meta .cell-label {
    margin-bottom: 0;
}

.member-name {
    font-family: "Josefin Sans", sans-serif;
    font-weight: 700;
    font-size: clamp(22px, 2vw, 30px);
    line-height: 0.95;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 24px;
}

.member-role,
.member-loc {
    font-family: "Nunito Sans", sans-serif;
    font-size: 13px;
    line-height: 1.5;
    margin-top: 6px;
}

.cell-collective-3 .member-role,
.cell-collective-3 .member-loc {
    color: #F0F0F0;
}

.meta-text {
    font-family: "Nunito Sans", sans-serif;
    font-size: 14px;
    color: #2A2A2A;
    max-width: 40ch;
}

/* ============================================================
   SECTION 06 — CONTACT GRID
   ============================================================ */
.bento-contact {
    grid-template-columns: 55% 22% 23%;
    grid-template-rows: 36% 30% 34%;
    grid-template-areas:
        "main shape grid"
        "main mark grid"
        "foot foot foot";
}

.cell-contact-main {
    grid-area: main;
    background: #FFFFFF;
    color: #1A1A1A;
    padding: 64px;
    justify-content: center;
    border-right: 4px solid #D40920;
    border-bottom: 4px solid #1356A2;
}

.cell-contact-shape {
    grid-area: shape;
    background: #D40920;
    color: #FFFFFF;
    border-right: 4px solid #F7D842;
    border-bottom: 4px solid #1A1A1A;
    justify-content: space-between;
    position: relative;
}

.contact-rotor {
    width: 100px;
    height: 100px;
    align-self: center;
    margin: auto;
}

.contact-rotor .shape-circle {
    width: 100px;
    height: 100px;
}

.cell-contact-grid {
    grid-area: grid;
    background: #F7D842;
    color: #1A1A1A;
    border-bottom: 4px solid #1356A2;
    padding: 32px;
}

.grid-svg-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 12px;
}

.grid-svg {
    width: 90%;
    aspect-ratio: 1 / 1;
}

.cell-contact-mark {
    grid-area: mark;
    background: #1356A2;
    color: #FFFFFF;
    border-bottom: 4px solid #D40920;
    justify-content: center;
}

.mark-text {
    font-family: "Josefin Sans", sans-serif;
    font-weight: 700;
    font-size: clamp(24px, 2.2vw, 30px);
    line-height: 0.95;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #FFFFFF;
}

.mark-dot {
    color: #F7D842;
    font-weight: 700;
}

.cell-contact-foot {
    grid-area: foot;
    background: #F0F0F0;
    color: #1A1A1A;
    flex-direction: row;
    align-items: center;
    gap: 32px;
    padding: 24px 56px;
}

.cell-contact-foot .cell-label {
    margin-bottom: 0;
    flex-shrink: 0;
}

.foot-text {
    font-family: "Nunito Sans", sans-serif;
    font-size: 13px;
    line-height: 1.55;
    color: #2A2A2A;
    max-width: 80ch;
}

.contact-list {
    display: grid;
    gap: 12px;
    margin-top: 16px;
}

.contact-list li {
    font-family: "Josefin Sans", sans-serif;
    font-weight: 400;
    font-size: 18px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 16px;
}

.contact-list .cell-label {
    margin-bottom: 0;
}

.terminal-text {
    font-family: "Orbitron", monospace;
    font-size: 14px;
    letter-spacing: 0.3em;
    color: #FFFFFF;
    margin-top: auto;
}

/* ============================================================
   RESPONSIVE — keep bento integrity, scale type
   ============================================================ */
@media (max-width: 960px) {
    .nav-rail {
        width: 48px;
    }

    .section {
        padding-right: 48px;
    }

    .cell {
        padding: 24px 26px;
    }

    .cell-manifest-main,
    .cell-doctrine-1,
    .cell-practice-header,
    .cell-method-main,
    .cell-collective-main,
    .cell-contact-main {
        padding: 32px;
    }

    .bento-manifest {
        grid-template-columns: 55% 45%;
    }

    .bento-doctrine {
        grid-template-columns: 40% 30% 30%;
        grid-template-rows: 35% 35% 30%;
        grid-template-areas:
            "main circle triangle"
            "main square square"
            "quote quote quote";
    }

    .bento-practices {
        grid-template-columns: 36% 32% 32%;
        grid-template-rows: 32% 34% 34%;
        grid-template-areas:
            "header header header"
            "p1 p2 p3"
            "p4 p4 p5";
    }

    .bento-method {
        grid-template-columns: 50% 50%;
        grid-template-rows: 40% 30% 30%;
        grid-template-areas:
            "main main"
            "m1 m2"
            "m3 m4";
    }

    .bento-collective {
        grid-template-columns: 50% 25% 25%;
        grid-template-rows: 50% 25% 25%;
        grid-template-areas:
            "main c1 c1"
            "main c2 c3"
            "meta meta meta";
    }

    .bento-contact {
        grid-template-columns: 60% 40%;
        grid-template-rows: 30% 30% 25% 15%;
        grid-template-areas:
            "main shape"
            "main mark"
            "grid grid"
            "foot foot";
    }

    .manifest-shapes {
        right: 32px;
        bottom: 32px;
        gap: 14px;
        transform: scale(0.7);
        transform-origin: bottom right;
    }

    .display-headline {
        font-size: clamp(36px, 8vw, 64px);
    }

    .big-num {
        font-size: 96px;
    }
}

@media (max-width: 640px) {
    .nav-rail {
        width: 36px;
        padding: 14px 0;
    }

    .section {
        padding-right: 36px;
        height: auto;
        min-height: 100vh;
    }

    .nav-meta {
        display: none;
    }

    .bento-manifest,
    .bento-doctrine,
    .bento-practices,
    .bento-method,
    .bento-collective,
    .bento-contact {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        grid-template-areas: none;
    }

    .cell {
        grid-area: auto !important;
        min-height: 60vh;
    }

    .cell-collective-meta,
    .cell-contact-foot {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 24px;
        min-height: auto;
    }

    .display-headline {
        font-size: clamp(36px, 12vw, 56px);
    }
}
