/* Tokens live in tokens.css (generated from modulus-core). The short-name
   vars used below — --bg, --text, --accent, --serif, --sans, etc. —
   are declared there as aliases to the canonical --color-* set. */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

@media (max-width: 880px) {
    html, body { overflow-x: hidden; }
}

body {
    margin: 0;
    min-width: 320px;
    overflow-x: hidden;
    color: var(--text);
    background:
        radial-gradient(circle at 74% 8%, rgba(179, 69, 25, 0.08), transparent 26rem),
        linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 78%);
    font-family: var(--sans);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

a {
    color: inherit;
    text-decoration: none;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 32px;
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
    padding: 18px 0;
    background: rgba(244, 239, 231, 0.78);
    backdrop-filter: blur(18px);
    overflow: hidden;
}

.brand,
.nav-actions,
.primary-nav {
    display: flex;
    align-items: center;
}

.brand {
    gap: 11px;
    font-weight: 800;
    font-size: 23px;
    letter-spacing: -0.02em;
    color: var(--text);
}

.brand-mark {
    display: block;
    width: 32px;
    height: 32px;
}

.brand-word span {
    margin-left: 2px;
    color: var(--accent);
}

.primary-nav {
    justify-content: center;
    gap: 27px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 560;
}

.primary-nav a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.caret {
    width: 9px;
    height: 5px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
    opacity: 0.7;
}

.primary-nav a,
.sign-in {
    transition: color 160ms ease;
}

.primary-nav a:hover,
.sign-in:hover {
    color: var(--text);
}

.nav-actions {
    justify-content: flex-end;
    gap: 18px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 600;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    border: 1px solid transparent;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 720;
    transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease, background 160ms ease;
}

.button:hover {
    transform: translateY(-1px);
}

.button-primary {
    color: #fffaf3;
    background: var(--accent);
    box-shadow: 0 10px 28px rgba(179, 69, 25, 0.22);
}

.button-primary:hover {
    background: var(--accent-dark);
    box-shadow: 0 14px 36px rgba(179, 69, 25, 0.28);
}

.button-secondary {
    background: rgba(255, 252, 246, 0.62);
    border-color: var(--line-strong);
    color: var(--text);
}

.button-secondary:hover {
    background: var(--surface-solid);
    border-color: rgba(37, 33, 29, 0.28);
    box-shadow: 0 12px 32px rgba(45, 40, 35, 0.08);
}

.button-small {
    min-height: 38px;
    padding: 0 16px;
    font-size: 13px;
}

.button .arrow {
    width: 16px;
    height: 12px;
    margin-left: 10px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 160ms ease;
}

.button:hover .arrow {
    transform: translateX(3px);
}

.hero-section {
    position: relative;
    overflow: hidden;
    padding: 88px 0 96px;
}

.hero-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(37, 33, 29, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(37, 33, 29, 0.045) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: linear-gradient(90deg, transparent 0%, black 20%, black 82%, transparent 100%);
    pointer-events: none;
}

.hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 0.86fr) minmax(530px, 1.14fr);
    gap: clamp(44px, 6vw, 88px);
    align-items: center;
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
}

.hero-copy {
    min-width: 0;
    max-width: 590px;
    padding: 28px 0;
}

.eyebrow {
    margin: 0 0 22px;
    color: var(--accent);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    max-width: 11ch;
    margin-bottom: 22px;
    font-family: var(--serif);
    font-size: clamp(46px, 5.4vw, 76px);
    font-weight: 400;
    line-height: 0.98;
    letter-spacing: -0.02em;
}

.hero-lede {
    margin-bottom: 22px;
    color: var(--text);
    font-size: clamp(20px, 2vw, 27px);
    font-weight: 600;
    letter-spacing: -0.01em;
}

.hero-body {
    width: 100%;
    max-width: 460px;
    margin-bottom: 32px;
    color: var(--muted);
    font-size: clamp(16px, 1.4vw, 18px);
    line-height: 1.62;
    overflow-wrap: anywhere;
}

.hero-actions {
    display: flex;
    width: 100%;
    max-width: 100%;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 18px;
}

.availability {
    margin: 0;
    color: var(--faint);
    font-size: 13px;
    font-weight: 650;
}

.availability span {
    margin: 0 12px;
    color: var(--accent);
}

.hero-visual {
    min-width: 0;
}

.montage {
    position: relative;
    width: 100%;
    min-height: 660px;
    isolation: isolate;
    perspective: 1600px;
    perspective-origin: 50% 44%;
    transform: translateY(-50px) scale(1.1);
    transform-origin: 50% 50%;
}

.orbit-stage {
    position: absolute;
    inset: 0;
    transform-style: preserve-3d;
    transform: rotateX(var(--tilt-y, 0deg)) rotateY(var(--tilt-x, 0deg));
    transition: transform 220ms ease-out;
}

/* connectors + orbit ring */
.connectors {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 600px;
    height: 600px;
    transform: translate(-50%, -50%);
    overflow: visible;
    pointer-events: none;
    z-index: 50;
}

.connector {
    stroke: rgba(179, 69, 25, 0.34);
    stroke-width: 1.4;
    stroke-dasharray: 5 6;
    stroke-linecap: round;
    opacity: 0.5;
    transition: opacity 240ms ease;
}

.orbit-ring {
    fill: none;
    stroke: rgba(80, 72, 64, 0.3);
    stroke-width: 1.2;
    stroke-dasharray: 4 6;
    opacity: 0.85;
    transform-origin: center;
}

/* generated accent-node connectors */
.node-link {
    fill: none;
    stroke: rgba(179, 69, 25, 0.45);
    stroke-width: 1.3;
}

.node-dot {
    fill: none;
    stroke: var(--accent);
    stroke-width: 1.3;
}

.node-dot-ring {
    stroke-width: 1.3;
    stroke: rgba(179, 69, 25, 0.7);
}

.montage:hover .connector { opacity: 0.95; }

.montage:hover .orbit-ring {
    animation: ring-spin 16s linear infinite;
}

@keyframes ring-spin {
    to { transform: rotate(360deg); }
}

/* orbit cards */
.layer {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 3;
    width: 224px;
    border: 1px solid rgba(37, 33, 29, 0.1);
    background: rgba(255, 253, 249, 0.97);
    border-radius: 14px;
    box-shadow:
        0 2px 6px rgba(45, 40, 35, 0.08),
        0 18px 34px rgba(45, 40, 35, 0.16),
        0 40px 70px rgba(45, 40, 35, 0.14);
    backdrop-filter: blur(12px);
    transform:
        translate3d(
            calc(-50% + var(--mx, 0px) + var(--ox, 0px) + var(--px, 0px)),
            calc(-50% + var(--my, 0px) + var(--oy, 0px) + var(--py, 0px)), 0)
        rotate(var(--angle, 0deg))
        translateX(var(--radius, 0px))
        rotate(calc(-1 * var(--angle, 0deg)))
        perspective(900px) rotateY(-23deg) rotateX(15deg)
        scale(var(--scale, 1));
    transition: transform 120ms ease-out 0s, box-shadow 120ms ease-out 0s, border-color 120ms ease-out 0s;
}

.sq-card {
    width: var(--w, 192px);
    height: var(--h, 192px);
}

.layer:hover {
    --scale: 1.1;
    z-index: 5;
    border-color: rgba(179, 69, 25, 0.32);
    box-shadow:
        0 4px 10px rgba(45, 40, 35, 0.1),
        0 26px 48px rgba(45, 40, 35, 0.2),
        0 56px 90px rgba(45, 40, 35, 0.16);
}

/* square orbit cards */
.sq-card {
    padding: 16px;
    display: flex;
    flex-direction: column;
}

/* wide variant — 2:1 */
.sq-card.wide {
    --w: 384px;
    --h: 192px;
}

.sq-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.sq-ico {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
}

.sq-ico svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: var(--text);
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.sq-card h3 {
    margin: 0;
    color: var(--text);
    font-family: var(--sans);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.sq-body {
    flex: 1;
    min-height: 0;
    border-radius: 9px;
}

.sq-body-img {
    overflow: hidden;
    border: 1px solid rgba(37, 33, 29, 0.08);
    background: #fff;
}

.sq-body-img img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: fill;
}

.sq-body-data {
    display: flex;
    flex-direction: column;
}

.opening-mark {
    margin: 0 0 7px;
    padding-bottom: 7px;
    border-bottom: 1px solid rgba(37, 33, 29, 0.12);
    color: var(--accent);
    font-family: var(--sans);
    font-size: 15px;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.data-table {
    margin: 0;
    display: grid;
    gap: 1px;
}

.data-table > div {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    padding: 2px 0;
}

.data-table dt {
    color: #8b8278;
    font-size: 9.5px;
    font-weight: 600;
}

.data-table dd {
    margin: 0;
    color: #6b6258;
    font-size: 9.5px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

/* Building code card */
.sq-body-code {
    display: flex;
    flex-direction: column;
}

.code-lead {
    margin: 0 0 7px;
    padding-bottom: 7px;
    border-bottom: 1px solid rgba(37, 33, 29, 0.12);
    color: var(--accent);
    font-size: 13px;
    font-weight: 800;
    line-height: 1.35;
    letter-spacing: -0.005em;
    text-align: center;
}

.code-lead span {
    margin: 0 6px;
    color: rgba(179, 69, 25, 0.55);
}

.code-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 12px;
    row-gap: 2px;
}

.code-list li {
    color: #6b6258;
    font-size: 9px;
    font-weight: 600;
    white-space: nowrap;
}

.code-list li::before {
    content: "·";
    margin-right: 4px;
    color: #b9b1a6;
}

/* Automated Input card */
.sq-body-input {
    display: flex;
    flex-direction: column;
}

.input-list {
    margin: 0 0 10px;
    padding: 0;
    list-style: none;
}

.input-list li {
    position: relative;
    padding: 2px 0 2px 14px;
    color: #4a4036;
    font-size: 11.5px;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: -0.005em;
    white-space: nowrap;
}

.input-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 9px;
    width: 6px;
    height: 6px;
    border: 1.2px solid var(--accent);
    border-radius: 50%;
}

.input-stat {
    margin: auto 0 0;
    padding-top: 8px;
    border-top: 1px solid rgba(37, 33, 29, 0.12);
    color: #6b6258;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.3;
}

.input-stat strong {
    color: var(--accent);
    font-weight: 900;
    font-size: 13px;
}

/* Knows the Trade card */
.sq-body-trade {
    display: flex;
    flex-direction: column;
}

.trade-chips {
    margin: 0 0 8px;
    padding: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 3px 4px;
}

.trade-chips li {
    padding: 1px 6px;
    border: 1px solid rgba(37, 33, 29, 0.18);
    border-radius: 999px;
    color: #4a4036;
    font-size: 9.5px;
    font-weight: 700;
    line-height: 1.4;
    white-space: nowrap;
}

.trade-foot {
    margin: auto 0 0;
    padding-top: 8px;
    border-top: 1px solid rgba(37, 33, 29, 0.12);
    color: #6b6258;
    font-size: 10.5px;
    font-weight: 600;
    line-height: 1.4;
    font-style: italic;
}

/* Pricing card */
.sq-body-price {
    display: flex;
    flex-direction: column;
}

.price-lead {
    margin: 0 0 7px;
    padding-bottom: 7px;
    border-bottom: 1px solid rgba(37, 33, 29, 0.12);
    color: var(--accent);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: -0.005em;
    text-align: center;
}

.price-copy {
    margin: 0;
    color: #6b6258;
    font-size: 10.5px;
    font-weight: 600;
    line-height: 1.45;
}

.price-note {
    margin: auto 0 0;
    color: #a39a8e;
    font-size: 8.5px;
    font-weight: 600;
}

/* center hub — circles (dashed + red) stay at origin */
.hub {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 210px;
    height: 210px;
    transform:
        translate3d(calc(-50% + var(--mx, 0px)), calc(-50% + var(--my, 0px)), 0)
        perspective(900px) rotateY(-30deg) rotateX(15deg);
}

.hub-disc {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: transparent;
    border: 1.5px dashed rgba(80, 72, 64, 0.35);
    animation: hub-disc-spin 28s linear infinite;
    transform-origin: 50% 50%;
}

@keyframes hub-disc-spin {
    to { transform: rotate(-360deg); }
}

/* plate + logo — pulses on the same beat as the red ring but at a different
   scale + phase, producing a parallax breathing effect */
.hub-mark {
    transform: translate(-6px, -11px) scale(1);
    transform-origin: center;
    filter:
        drop-shadow(0 0 6px rgba(179, 69, 25, 0.18))
        drop-shadow(0 0 18px rgba(179, 69, 25, 0.14))
        drop-shadow(0 0 36px rgba(179, 69, 25, 0.10));
    animation:
        hub-glow 4.2s ease-in-out infinite,
        hub-plate-pulse 4.5s ease-in-out infinite;
}

@keyframes hub-glow {
    0%, 100% {
        filter:
            drop-shadow(0 0 6px rgba(179, 69, 25, 0.16))
            drop-shadow(0 0 18px rgba(179, 69, 25, 0.12))
            drop-shadow(0 0 36px rgba(179, 69, 25, 0.08));
    }
    50% {
        filter:
            drop-shadow(0 0 9px rgba(179, 69, 25, 0.22))
            drop-shadow(0 0 24px rgba(179, 69, 25, 0.17))
            drop-shadow(0 0 48px rgba(179, 69, 25, 0.13));
    }
}

/* same period as .hub-disc::before (4.5s) but smaller amplitude → parallax */
@keyframes hub-plate-pulse {
    0%, 100% { transform: translate(-6px, -11px) scale(1); }
    50%      { transform: translate(-6px, -11px) scale(1.035); }
}

/* sunburst — particles emit from hub center to the dashed-disc radius and fade out */
.hub-burst {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1; /* behind plate (plate is z-index 2 on .hub-mark) */
}

.hub-walk-svg {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300px;
    height: 300px;
    transform: translate(-50%, -50%);
    overflow: visible;
}

.hub-walker {
    filter: drop-shadow(0 0 2px rgba(179, 69, 25, 0.55));
}

/* hopper host — actual dot lives inside an SVG appended by JS */
.ring-hopper {
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
}

/* right-angle traces from ring nodes back to hub center — sit behind plate */
.hub-traces-host {
    position: absolute;
    inset: 0;
    z-index: 1; /* below .hub-mark which renders above due to DOM order */
    pointer-events: none;
}

.hub-disc::before {
    content: "";
    position: absolute;
    inset: 21px;
    border-radius: 50%;
    border: 1.5px solid rgba(179, 69, 25, 0.55);
    transform-origin: center;
    animation: hub-pulse 4.5s ease-in-out infinite;
}

@keyframes hub-pulse {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.075); }
}


.hub-mark {
    position: relative;
    z-index: 5;
    display: grid;
    place-items: center;
    width: 107px;
    height: 107px;
    border-radius: 27px;
    background: radial-gradient(circle at 50% 28%, #fffdfa, #efebe4 82%);
    box-shadow:
        /* extruded side wall — 10px depth, stacks down + right, white plate w/ light-gray shading */
        1px 1px 0 #f3f1ed,
        2px 2px 0 #ecebe7,
        3px 3px 0 #e4e2de,
        4px 4px 0 #ddd ,
        5px 5px 0 #d6d4d0,
        6px 6px 0 #cfcdc9,
        7px 7px 0 #c8c6c2,
        8px 8px 0 #c1bfbb,
        9px 9px 0 #b9b7b3,
        10px 10px 0 #b1afab,
        /* ambient ground shadow under the extrusion */
        16px 20px 36px rgba(45, 40, 35, 0.20),
        10px 14px 22px rgba(45, 40, 35, 0.12),
        /* top highlight */
        inset 0 1px 0 rgba(255,255,255,0.95);
}

.hub-mark img {
    width: 81px;
    height: 81px;
    border-radius: 20px;
    filter: drop-shadow(2.5px 2.5px 0 rgba(30, 26, 22, 0.45));
}

.hub-text {
    position: absolute;
    top: calc(50% - 68px);
    left: 50%;
    z-index: 10;
    text-align: center;
    white-space: nowrap;
    transform: translate3d(calc(-50% + var(--mx, 0px) + var(--hx, 0px)), calc(var(--my, 0px) + var(--hy, 0px)), 140px);
}

/* soft cream halo behind the text to separate it from the burst/traces */
.hub-text::before {
    content: "";
    position: absolute;
    inset: -14px -28px -10px;
    z-index: -1;
    background: radial-gradient(
        ellipse at center,
        rgba(251, 248, 242, 0.92) 0%,
        rgba(251, 248, 242, 0.75) 28%,
        rgba(251, 248, 242, 0.35) 58%,
        transparent 80%
    );
    pointer-events: none;
}

.hub-kicker {
    display: block;
    position: relative;
    color: var(--accent);
    font-size: 14px;
    font-weight: 900;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.hub-text strong {
    display: block;
    position: relative;
    margin-top: 5px;
    color: var(--text);
    font-family: var(--serif);
    font-size: 16px;
    font-weight: 400;
}

.section-heading h2 .accent {
    color: var(--accent);
}

/* ──────────────────────────────────────────────────────────────────
   Flow section — mirror of hero. Text left, document-flow visual right.
   Inputs (plans + specs decks) → ModulusDFH hub (with Human Review above)
   → Bid proposal on legal portrait.
   ────────────────────────────────────────────────────────────────── */
.flow-section {
    position: relative;
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
    padding: 96px 0 88px;
    border-top: 1px solid var(--line);
}

.flow-head {
    margin-bottom: 40px;
}

.flow-head h2 {
    margin: 0;
    font-family: var(--serif);
    font-size: clamp(38px, 4vw, 58px);
    font-weight: 400;
    line-height: 1;
    letter-spacing: -0.03em;
    white-space: nowrap;
}

.flow-head h2 .accent {
    color: var(--accent);
}

.flow-copy-grid {
    margin-top: 52px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(20px, 3vw, 40px);
}

.flow-col {
    min-width: 0;
}

.flow-subhead {
    margin: 0 0 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
    color: var(--text);
    font-family: var(--sans);
    font-size: 13px;
    font-weight: 820;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.flow-col-body {
    margin: 0;
    max-width: 52ch;
    color: var(--muted);
    font-size: clamp(15px, 1.2vw, 17px);
    line-height: 1.65;
}

.flow-visual {
    width: 100%;
    perspective: 1400px;
    perspective-origin: 50% 50%;
}

.flow-stage {
    position: relative;
    width: 100%;
    min-height: 320px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    transform-style: preserve-3d;
}

.flow-inputs,
.flow-output {
    justify-self: center;
}

.flow-hub {
    justify-self: center;
}

/* SVG layer for trace connectors */
.flow-connectors {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
    pointer-events: none;
    z-index: 1;
}

.flow-connectors .flow-link {
    fill: none;
    stroke: rgba(179, 69, 25, 0.4);
    stroke-width: 1.3;
    stroke-dasharray: 4 5;
}

.flow-connectors .flow-flow-dot {
    fill: rgba(179, 69, 25, 0.85);
}

/* Document stacks (shared) */
.flow-inputs {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 26px;
    position: relative;
    z-index: 2;
    perspective: 900px;
    perspective-origin: 50% 50%;
}

.flow-output {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 22px;
    position: relative;
    z-index: 2;
    perspective: 900px;
    perspective-origin: 50% 50%;
}

.doc-stack {
    position: relative;
    transform: rotateY(23deg) rotateX(15deg);
    transform-style: preserve-3d;
    transition: transform 220ms ease-out;
}

.doc-label {
    margin: 12px 0 0;
    text-align: center;
    color: var(--faint);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.doc-sheet {
    position: absolute;
    inset: 0;
    border: 1px solid rgba(37, 33, 29, 0.12);
    border-radius: 6px;
    background: #fffdf9;
    box-shadow:
        0 1px 2px rgba(45, 40, 35, 0.06),
        0 8px 18px rgba(45, 40, 35, 0.08);
}

/* Plans deck — Arch D proportion, three sheets fanned */
.doc-plans {
    width: 168px;
    height: 112px;
}

.doc-plans .doc-sheet-3 {
    transform: translate(8px, 6px) rotate(2.6deg);
    background: #f6f1e7;
}

.doc-plans .doc-sheet-2 {
    transform: translate(4px, 3px) rotate(1.3deg);
    background: #fbf7ed;
}

.doc-plans .doc-sheet-1 {
    transform: none;
}

.doc-plan-page {
    padding: 8px 10px 12px;
}

.doc-plan-frame {
    position: relative;
    width: 100%;
    height: calc(100% - 12px);
    border: 1px dashed rgba(37, 33, 29, 0.18);
    border-radius: 2px;
}

.doc-plan-room {
    position: absolute;
    border: 1px solid rgba(37, 33, 29, 0.35);
    background: rgba(255, 252, 246, 0.6);
}

.doc-plan-r1 { left: 8%;  top: 14%; width: 28%; height: 38%; }
.doc-plan-r2 { left: 38%; top: 14%; width: 30%; height: 56%; }
.doc-plan-r3 { left: 70%; top: 14%; width: 22%; height: 38%; }

.doc-plan-door {
    position: absolute;
    width: 6px;
    height: 6px;
    border-bottom: 1px solid var(--accent);
    border-right: 1px solid var(--accent);
    border-bottom-right-radius: 100%;
    background: transparent;
}

.doc-plan-d1 { left: 36%; top: 48%; }
.doc-plan-d2 { left: 68%; top: 68%; }

.doc-margin {
    position: absolute;
    right: 4px;
    bottom: 2px;
    font: 700 5px/1 var(--sans);
    color: rgba(37, 33, 29, 0.5);
    letter-spacing: 0.08em;
}

/* Specs deck — letter portrait, two sheets fanned */
.doc-specs {
    width: 110px;
    height: 142px;
}

.doc-specs .doc-sheet-3 {
    transform: translate(-5px, -4px) rotate(-2.2deg);
    background: #efeadf;
}

.doc-specs .doc-sheet-2 {
    transform: translate(-2.5px, -2px) rotate(-1.1deg);
    background: #f6f1e7;
}

.doc-specs .doc-sheet-1 {
    transform: none;
}

.doc-spec-head {
    font: 800 7px/1 var(--sans);
    color: var(--accent);
    letter-spacing: 0.12em;
}

.doc-spec-sub {
    margin: 2px 0 7px;
    padding-bottom: 5px;
    border-bottom: 1px solid rgba(37, 33, 29, 0.12);
    font: 800 6px/1 var(--sans);
    color: var(--text);
    letter-spacing: 0.12em;
}

.doc-spec-lines {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.doc-spec-lines li {
    display: flex;
    align-items: center;
    gap: 6px;
}

.doc-spec-lines li span {
    flex: 0 0 30px;
    font: 700 5.5px/1 var(--sans);
    color: rgba(37, 33, 29, 0.55);
    font-variant-numeric: tabular-nums;
}

.doc-spec-lines li i {
    flex: 1;
    height: 3px;
    background: linear-gradient(90deg, rgba(37,33,29,0.12), rgba(37,33,29,0.06) 70%, transparent);
    border-radius: 1px;
}

/* Hub */
.flow-hub {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 3;
}

/* Orbit area — hosts the dashed ring + pulsing red ring + burst particles */
.flow-hub-orbit {
    position: relative;
    width: 210px;
    height: 210px;
    display: grid;
    place-items: center;
}

/* hub-disc + hub-burst already share .hub-disc and .hub-burst styles
   defined for the hero (dashed ring counter-rotation + red pulse + sunburst).
   No tilt here — straight to camera. */

.flow-hub-mark {
    position: relative;
    z-index: 4;
    width: 86px;
    height: 86px;
    display: grid;
    place-items: center;
    border-radius: 22px;
    background: radial-gradient(circle at 50% 28%, #fffdfa, #efebe4 82%);
    box-shadow:
        0 12px 28px rgba(45, 40, 35, 0.18),
        0 2px 6px rgba(45, 40, 35, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    filter:
        drop-shadow(0 0 6px rgba(179, 69, 25, 0.15))
        drop-shadow(0 0 18px rgba(179, 69, 25, 0.10))
        drop-shadow(0 0 36px rgba(179, 69, 25, 0.06));
    animation:
        hub-glow 4.2s ease-in-out infinite,
        flow-plate-pulse 4.5s ease-in-out infinite;
}

@keyframes flow-plate-pulse {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.035); }
}

.flow-hub-orbit .hub-disc {
    /* override hero's inset:0 (which is sized to .hub at 210px) — here it's already sized to .flow-hub-orbit */
    inset: 0;
}

.flow-hub-orbit .hub-burst {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.flow-hub-mark img {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    filter: drop-shadow(2px 2px 0 rgba(30, 26, 22, 0.35));
}

.flow-hub-caption {
    margin: 14px 0 0;
    color: var(--text);
    font: 700 11px/1 var(--sans);
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

/* Human Review card — floats above the hub */
.flow-review {
    position: absolute;
    top: -76px;
    left: 50%;
    transform: translateX(-50%);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid rgba(37, 33, 29, 0.16);
    background: rgba(255, 252, 246, 0.95);
    box-shadow: 0 12px 28px rgba(45, 40, 35, 0.14);
    white-space: nowrap;
}

.flow-review-ico {
    display: grid;
    place-items: center;
    width: 18px;
    height: 18px;
}

.flow-review-ico svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: var(--accent);
    stroke-width: 1.6;
    stroke-linecap: round;
}

.flow-review-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.flow-review-text strong {
    font: 800 10px/1 var(--sans);
    color: var(--text);
    letter-spacing: 0.04em;
}

.flow-review-text span {
    margin-top: 3px;
    font: 600 9px/1 var(--sans);
    color: var(--muted);
    letter-spacing: 0.04em;
}

/* Proposal — legal portrait, accent total. Mirrors the inputs' 3D tilt. */
.doc-proposal {
    width: 130px;
    height: 168px;
    transform: rotateY(-23deg) rotateX(15deg);
}

.doc-proposal .doc-sheet-1 {
    position: relative;
    transform: none;
    padding: 12px 10px 10px;
    display: flex;
    flex-direction: column;
}

.doc-prop-head {
    font: 900 8px/1 var(--sans);
    color: var(--accent);
    letter-spacing: 0.14em;
}

.doc-prop-sub {
    margin: 3px 0 8px;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(37, 33, 29, 0.12);
    font: 700 7px/1 var(--sans);
    color: var(--text);
    letter-spacing: 0.06em;
}

.doc-prop-lines {
    margin: 0;
    padding: 0;
    list-style: none;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.doc-prop-lines li {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 6px;
}

.doc-prop-lines li span {
    font: 600 6.5px/1.2 var(--sans);
    color: rgba(37, 33, 29, 0.65);
}

.doc-prop-lines li i {
    font: 700 6.5px/1.2 var(--sans);
    color: rgba(37, 33, 29, 0.85);
    font-variant-numeric: tabular-nums;
    font-style: normal;
}

.doc-prop-total {
    margin-top: 8px;
    padding-top: 7px;
    border-top: 1px solid rgba(37, 33, 29, 0.18);
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.doc-prop-total span {
    font: 800 8px/1 var(--sans);
    color: var(--text);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.doc-prop-total strong {
    font: 900 11px/1 var(--sans);
    color: var(--accent);
    font-variant-numeric: tabular-nums;
}

/* Submittal — legal portrait, 3 fanned sheets, door table + elevations */
.doc-submittal {
    width: 130px;
    height: 168px;
    transform: rotateY(-23deg) rotateX(15deg);
}

.doc-submittal .doc-sheet-3 {
    transform: translate(5px, 4px) rotate(2.2deg);
    background: #efeadf;
}

.doc-submittal .doc-sheet-2 {
    transform: translate(2.5px, 2px) rotate(1.1deg);
    background: #f6f1e7;
}

.doc-submittal .doc-sheet-1 {
    transform: none;
    padding: 12px 10px 10px;
    display: flex;
    flex-direction: column;
}

.doc-subm-table {
    margin: 0 0 6px;
    border-collapse: collapse;
    width: 100%;
    table-layout: fixed;
}

.doc-subm-table th {
    padding: 0 1px 1px;
    border-bottom: 1px solid rgba(37, 33, 29, 0.18);
    font: 800 3px/1.1 var(--sans);
    color: rgba(37, 33, 29, 0.55);
    letter-spacing: 0.03em;
    text-align: left;
    text-transform: uppercase;
    overflow: hidden;
}

.doc-subm-table td {
    padding: 0.6px 1px;
    font: 700 3px/1.15 var(--sans);
    color: rgba(37, 33, 29, 0.72);
    font-variant-numeric: tabular-nums;
    overflow: hidden;
    white-space: nowrap;
}

.doc-subm-elevations {
    margin-top: auto;
    padding-top: 6px;
    border-top: 1px solid rgba(37, 33, 29, 0.12);
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 5px;
    height: 46px;
}

/* Frame elevation — 3-sided HM frame, narrow door-frame proportion */
.elev-frame {
    position: relative;
    width: 18%;
    height: 100%;
}

.elev-frame-jamb {
    position: absolute;
    top: 0;
    bottom: 3px;
    width: 0.7px;
    background: rgba(37, 33, 29, 0.85);
}

.elev-frame-left  { left: 0; }
.elev-frame-right { right: 0; }

.elev-frame-head {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 0.7px;
    background: rgba(37, 33, 29, 0.85);
}

.elev-frame-floor {
    position: absolute;
    bottom: 0;
    left: -2px;
    right: -2px;
    height: 0.4px;
    background: rgba(37, 33, 29, 0.35);
}

/* Frame side view — thin double-line profile */
.elev-frame-side {
    width: 3px;
    height: 92%;
    border-left: 0.7px solid rgba(37, 33, 29, 0.85);
    border-right: 0.7px solid rgba(37, 33, 29, 0.85);
    background: transparent;
}

/* Door elevation — 3:7 proportion, upper-half glass */
.elev-door {
    position: relative;
    width: 22%;
    height: 92%;
    border: 1px solid rgba(37, 33, 29, 0.7);
    background: rgba(255, 252, 246, 0.5);
}

.elev-door-glass {
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    height: 42%;
    border: 0.6px solid rgba(37, 33, 29, 0.5);
    background: rgba(220, 230, 240, 0.6);
}

.elev-door-knob {
    position: absolute;
    right: 1.5px;
    bottom: 28%;
    width: 1.5px;
    height: 1.5px;
    border-radius: 50%;
    background: var(--accent);
}

/* Door side view — thin double-line profile */
.elev-door-side {
    width: 2.5px;
    height: 92%;
    border-left: 0.7px solid rgba(37, 33, 29, 0.85);
    border-right: 0.7px solid rgba(37, 33, 29, 0.85);
    background: transparent;
}

/* Tiny callouts */
.elev-call {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 1px;
    pointer-events: none;
}

.elev-call-1 {
    top: 4px;
    left: 100%;
    margin-left: 1px;
}

.elev-call-1b {
    top: 38%;
    right: 100%;
    margin-right: 1px;
    flex-direction: row-reverse;
}

.elev-call-1c {
    bottom: 6px;
    left: 100%;
    margin-left: 1px;
}

.elev-call-2 {
    top: 18%;
    left: 100%;
    margin-left: 1px;
}

.elev-call-2b {
    top: 50%;
    right: 100%;
    margin-right: 1px;
    flex-direction: row-reverse;
}

.elev-call-2c {
    bottom: 14%;
    left: 100%;
    margin-left: 1px;
}

.elev-call-line {
    width: 2px;
    height: 0.4px;
    background: rgba(37, 33, 29, 0.5);
}

.elev-call-txt {
    font: 700 1.8px/1 var(--sans);
    color: rgba(37, 33, 29, 0.55);
    letter-spacing: 0.03em;
    white-space: nowrap;
}

/* BOM — legal portrait, 3 fanned sheets, parts list */
.doc-bom {
    width: 130px;
    height: 168px;
    transform: rotateY(-23deg) rotateX(15deg);
}

.doc-bom .doc-sheet-3 {
    transform: translate(5px, 4px) rotate(2.2deg);
    background: #efeadf;
}

.doc-bom .doc-sheet-2 {
    transform: translate(2.5px, 2px) rotate(1.1deg);
    background: #f6f1e7;
}

.doc-bom .doc-sheet-1 {
    transform: none;
    padding: 12px 10px 10px;
    display: flex;
    flex-direction: column;
}

.doc-bom-table {
    margin: 0;
    flex: 1;
}

.doc-bom-table td {
    padding: 0.4px 1px;
}

@media (max-width: 720px) {
    .flow-stage {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .flow-inputs {
        flex-direction: row;
        justify-content: center;
        gap: 16px;
    }
    .flow-connectors { display: none; }
    .flow-copy-grid {
        grid-template-columns: 1fr;
    }
}

/* ----- Mobile flow layout (≤880px) ----- */
@media (max-width: 880px) {
    .flow-copy-grid { grid-template-columns: 1fr; }

    /* Give the flow section as much device width as possible on phones. */
    .flow-section {
        width: 100%;
        padding-left: 8px;
        padding-right: 8px;
    }
    .flow-visual { width: 100%; }
    .flow-stage {
        min-height: 0;
        grid-template-columns: 1fr;
    }

    .flow-m-row {
        position: relative;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    .flow-m-row-label {
        margin: 0;
        font: 800 11px/1 "Nunito Sans", sans-serif;
        letter-spacing: 0.14em;
        text-transform: uppercase;
        color: var(--accent);
    }

    /* Fan of input papers: leftmost on top, fan opens to the RIGHT.
       Each paper's width is set by --paper-w; slot 0 sits at left:0,
       slot i sits at left: i * step, where step is chosen so the last
       slot's right edge lands at 100%. Larger step = more of each page
       is visible. */
    .flow-m-fan {
        position: relative;
        width: 100%;
    }
    /* Fan container aspect-ratio = (paper-aspect) / (paper-w-fraction)
       so the paper inside lands at its native proportion.
       Plans: ARCH D landscape (3:2 = 1.5). paper-w 90% → fan AR ≈ 1.67 → 5/3.
       Specs: tall letter portrait (8.5/11 ≈ 0.773). paper-w 82% → fan AR ≈ 0.94 → 16/17. */
    .flow-m-fan-plans  { aspect-ratio: 5 / 3; }
    .flow-m-fan-specs  { aspect-ratio: 16 / 17; }
    .flow-m-fan-slot {
        position: absolute;
        top: 0;
        bottom: 0;
        left: calc(var(--i) * (100% - var(--paper-w)) / max(1, (var(--fan-count) - 1)));
        width: var(--paper-w);
    }
    .flow-m-fan-plans .flow-m-fan-slot { --paper-w: 90%; }
    .flow-m-fan-specs .flow-m-fan-slot { --paper-w: 82%; }
    .flow-m-paper {
        position: relative;
        width: 100%;
        height: 100%;
        background: #fffdf9;
        border: 1px solid rgba(37, 33, 29, 0.12);
        border-radius: 5px;
        box-shadow: 6px 6px 12px rgba(45, 40, 35, 0.18),
                    2px 2px 4px rgba(45, 40, 35, 0.10);
        overflow: hidden;
    }
    .flow-m-paper-img {
        position: absolute;
        inset: 4px;
        width: calc(100% - 8px);
        height: calc(100% - 8px);
        object-fit: fill;
        image-rendering: -webkit-optimize-contrast;
        filter: contrast(1.08) saturate(1.1);
    }

    /* Output grid: three flat cards side-by-side. */
    .flow-m-output-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
        width: 100%;
    }
    .flow-m-output {
        aspect-ratio: 3 / 4;
        height: auto;
    }
    .flow-m-doc {
        position: absolute;
        inset: 0;
        padding: 8px 7px;
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }
    .flow-m-doc .doc-prop-head {
        font: 800 7px/1 "Nunito Sans", sans-serif;
    }
    .flow-m-doc .doc-prop-sub {
        font: 600 6px/1 "Nunito Sans", sans-serif;
    }
    .flow-m-doc .doc-prop-lines li {
        font-size: 6px;
    }
    .flow-m-doc .doc-subm-table {
        font-size: 5px;
    }

    /* Hub row */
    .flow-m-hub-row { gap: 6px; }
    .flow-m-hub {
        position: relative;
        width: 120px;
        height: 120px;
    }
    .flow-m-hub .hub-disc { position: absolute; inset: 0; }
    .flow-m-hub .hub-burst { position: absolute; inset: 0; pointer-events: none; }
    .flow-m-hub .flow-hub-mark {
        position: absolute;
        inset: 22px;
        display: grid;
        place-items: center;
    }
    .flow-m-hub .flow-hub-mark img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }
    .flow-m-hub-row .flow-hub-caption {
        margin: 0;
        font: 800 13px/1 "Nunito Sans", sans-serif;
        color: var(--text);
    }
}

.product-stack {
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
    padding: 78px 0 104px;
    border-top: 1px solid var(--line);
}

.section-heading {
    max-width: 720px;
    margin-bottom: 34px;
}

.section-heading h2 {
    margin-bottom: 0;
    font-family: var(--serif);
    font-weight: 400;
    font-size: clamp(38px, 4vw, 58px);
    line-height: 1;
    letter-spacing: -0.03em;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    perspective: 1600px;
    perspective-origin: 50% 50%;
}

.product-panel {
    min-height: 274px;
    padding: 30px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: rgba(255, 252, 246, 0.7);
    transform: rotateY(-10deg) rotateX(6deg);
    transform-origin: center;
    /* shadow falls down-left to match the right edge receding */
    box-shadow:
        -10px 16px 32px rgba(45, 40, 35, 0.14),
        -2px 4px 8px rgba(45, 40, 35, 0.08);
}

.product-panel-featured {
    border-color: rgba(179, 69, 25, 0.24);
    background:
        radial-gradient(circle at 84% 22%, rgba(179, 69, 25, 0.09), transparent 15rem),
        rgba(255, 252, 246, 0.82);
}

.product-status {
    margin-bottom: 28px;
    color: var(--accent);
    font-size: 12px;
    font-weight: 820;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.product-panel h3 {
    margin-bottom: 8px;
    font-family: var(--sans);
    font-weight: 700;
    font-size: 42px;
    line-height: 1;
    letter-spacing: -0.03em;
}

.product-panel h3 span {
    color: var(--accent);
    font-weight: 800;
}

.product-panel strong {
    display: block;
    margin-bottom: 18px;
    font-size: 18px;
}

.product-panel p:last-child {
    max-width: 55ch;
    margin: 0;
    color: var(--muted);
    line-height: 1.62;
}

.product-panel {
    display: flex;
    flex-direction: column;
}

.product-panel p:nth-last-of-type(1) {
    margin-bottom: 0;
}

.product-cta {
    margin-top: 24px;
    align-self: flex-start;
}

.product-cta-row {
    margin-top: 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.product-cta-row .product-cta {
    margin-top: 0;
}

/* ────────────────────────── About ────────────────────────── */
.about-section {
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
    padding: 96px 0 104px;
    border-top: 1px solid var(--line);
}

.about-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr) minmax(0, 1fr);
    gap: clamp(24px, 3vw, 44px);
    align-items: start;
    margin-top: 40px;
    perspective: 1600px;
    perspective-origin: 50% 50%;
}

.about-photo {
    margin: 0;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid var(--line);
    background: var(--surface);
    /* left edge recedes; shadow falls down-right */
    transform: rotateY(18deg) rotateX(6deg);
    transform-origin: center;
    box-shadow:
        20px 24px 42px rgba(45, 40, 35, 0.26),
        6px 8px 14px rgba(45, 40, 35, 0.14);
}

.about-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 4 / 5;
}

.about-body {
    padding: 6px 0;
}

.about-body p {
    margin: 0;
    max-width: 52ch;
    color: var(--muted);
    font-size: clamp(15px, 1.2vw, 17px);
    line-height: 1.7;
}

.about-body strong {
    color: var(--text);
}

.about-aside {
    padding: 30px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: rgba(255, 252, 246, 0.7);
    /* right edge recedes; shadow falls down-left */
    transform: rotateY(-18deg) rotateX(6deg);
    transform-origin: center;
    box-shadow:
        -20px 24px 42px rgba(45, 40, 35, 0.26),
        -6px 8px 14px rgba(45, 40, 35, 0.14);
}

.about-aside-head {
    margin: 0 0 14px;
    color: var(--accent);
    font-family: var(--sans);
    font-size: 13px;
    font-weight: 820;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.about-aside p {
    margin: 0 0 12px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
}

.about-aside p:last-child {
    margin-bottom: 0;
}

.about-aside strong {
    color: var(--text);
}

.about-kicker {
    margin: 56px auto 0;
    max-width: 60ch;
    text-align: center;
    color: var(--text);
    font-family: var(--serif);
    font-weight: 400;
    font-size: clamp(20px, 2vw, 26px);
    line-height: 1.35;
    letter-spacing: -0.01em;
}

@media (max-width: 880px) {
    .about-grid {
        grid-template-columns: 1fr;
    }
    .about-photo img { aspect-ratio: 5 / 4; }
}

/* ────────────────────────── Footer ────────────────────────── */
.site-footer {
    border-top: 1px solid var(--line);
    padding: 36px 0 48px;
}

.footer-inner {
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.site-footer .brand {
    font-size: 20px;
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 600;
}

.footer-nav a {
    transition: color 160ms ease;
}

.footer-nav a:hover {
    color: var(--text);
}

.footer-meta {
    display: flex;
    align-items: center;
    gap: 18px;
    color: var(--faint);
    font-size: 13px;
    font-weight: 600;
}

.footer-meta a {
    color: var(--muted);
}

.footer-meta a:hover {
    color: var(--text);
}

@media (max-width: 720px) {
    .footer-inner { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.001ms !important;
    }

    .orbit-stage { transform: none !important; }
}

@media (max-width: 1040px) {
    .site-header {
        grid-template-columns: 1fr auto;
    }

    .primary-nav {
        display: none;
    }

    .hero-grid {
        grid-template-columns: 1fr;
    }

    .hero-copy {
        max-width: 760px;
    }

    h1 {
        max-width: 12ch;
    }

    .montage {
        max-width: 720px;
        margin: 0 auto;
    }

    .hub-text strong { font-size: 15px; }
}

@media (max-width: 880px) {
    .montage {
        min-height: 0;
        perspective: none;
        transform: none;
        max-width: 100%;
    }

    .hero-visual { width: 100%; }

    .orbit-stage {
        position: relative;
        inset: auto;
        display: flex;
        flex-direction: column;
        gap: 14px;
        transform-style: flat;
        transform: none !important;
    }

    .connectors { display: none; }

    .layer {
        position: relative;
        top: auto;
        left: auto;
        width: auto;
        transform: none !important;
    }

    .layer:hover { transform: translateY(-3px) !important; }

    .out-card { order: 100; }

    /* Mobile-stacked order for hero cards (flex order, only when orbit is flat). */
    .layer[data-name="Knows the Trade"]         { order: 10; }
    .layer[data-name="Trained on Industry Data"]{ order: 11; }
    .layer[data-name="Automates Data Input"]    { order: 12; }
    .layer[data-name="Prices Accurately"]       { order: 13; }
    .layer[data-name="Knows Building Code"]     { order: 14; }
    .layer[data-name="Marks Up Plans"]          { order: 15; }

    .hub {
        position: relative;
        top: auto;
        left: auto;
        order: 0;
        width: auto;
        height: 200px;
        transform: none !important;
    }

    .hub-disc { inset: 0 calc(50% - 100px); }

    .hub-text {
        position: relative;
        top: auto;
        left: auto;
        order: 0;
        margin-top: 6px;
        transform: none !important;
    }
}

@media (max-width: 720px) {
    .site-header {
        width: min(1180px, calc(100% - 32px));
        gap: 16px;
    }

    .sign-in {
        display: none;
    }

    .hero-section {
        padding: 56px 0 68px;
    }

    .hero-grid,
    .product-stack {
        width: min(1180px, calc(100% - 32px));
    }

    .hero-copy,
    .hero-body {
        width: 100%;
        max-width: 100%;
    }

    .hero-copy {
        padding: 20px 0 10px;
    }

    h1 {
        font-size: clamp(48px, 14vw, 66px);
    }

    .button {
        width: 100%;
    }

    .nav-actions {
        flex: 0 0 auto;
    }

    .nav-actions .button {
        width: auto;
    }

    .availability span {
        margin: 0 8px;
    }

    .product-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 520px) {
    .site-header {
        width: 100%;
        padding: 14px 16px;
    }

    .nav-actions {
        display: none;
    }

    .hero-grid,
    .product-stack {
        width: calc(100% - 32px);
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 420px) {
    .brand {
        gap: 8px;
    }

    .brand {
        font-size: 19px;
    }

    .brand-mark {
        width: 28px;
        height: 28px;
    }

    .button-small {
        padding: 0 12px;
        font-size: 12px;
    }
}
