/* =========================================================
   Stacklivo — site styles
   Brand: graphite #292F31 · orange #D65C35 · light #F4F0E8
   ========================================================= */

:root {
    --ink: #0a0d0e;
    --ink-2: #0e1213;
    --ink-3: #13181a;
    --ink-4: #1c2326;
    --line: rgba(205, 218, 222, 0.12);
    --line-2: rgba(205, 218, 222, 0.22);
    --text: #eef0ef;
    --soft: #bec5c6;
    --muted: #8b9496;
    --faint: #5c6567;

    --paper: #f4f0e8;
    --paper-ink: #292f31;
    --paper-muted: #5f6567;
    --paper-line: rgba(41, 47, 49, 0.14);

    /* brand ember, tuned for dark backgrounds */
    --signal: #d65c35;
    --signal-rgb: 214, 92, 53;
    --signal-deep: #b2441f;
    --signal-hi: #f0895f;
    --on-signal: #1d0b04;
    --charcoal: #292f31;
    --warn: #f2c35b;

    --f-sans: "Inter Tight", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
    --f-serif: "Instrument Serif", ui-serif, Georgia, serif;
    --f-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

    --gutter: clamp(16px, 3.2vw, 44px);
    --maxw: 1440px;
    --r: 4px;
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-io: cubic-bezier(0.65, 0, 0.35, 1);

    --mark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-2 -6 343 268'%3E%3Cpath d='M119 41 Q123 39 123 46 L123 95 Q123 104 115 108 L75 126 Q62 132 75 140 L207 198 Q217 202 217 211 L217 239 Q217 250 208 253 Q185 262 166 254 L27 194 Q0 183 0 155 L0 116 Q0 94 21 83 Z M177 90 Q190 86 204 92 L326 144 Q339 149 339 162 L339 186 Q339 206 321 215 L270 236 Q259 241 259 230 L259 191 Q259 181 250 177 L162 140 Q153 136 153 127 L153 107 Q153 95 177 90 Z M145 20 L166 5 Q181 -5 197 2 L318 46 Q339 54 339 79 L339 104 Q339 120 326 114 L145 37 Q133 31 145 20 Z'/%3E%3C/svg%3E");
    color-scheme: dark;
}

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

html {
    -webkit-text-size-adjust: 100%;
    scroll-padding-top: 80px;
}

body {
    margin: 0;
    background: var(--ink);
    color: var(--text);
    font-family: var(--f-sans);
    font-size: 16px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: clip;
    text-rendering: optimizeLegibility;
}

h1,
h2,
h3 {
    font-weight: 500;
    margin: 0;
}

a {
    color: inherit;
}

button {
    font: inherit;
    color: inherit;
}

em {
    font-family: var(--f-serif);
    font-style: italic;
    font-weight: 400;
    letter-spacing: -0.01em;
}

::selection {
    background: var(--signal);
    color: var(--on-signal);
}

.mono {
    font-family: var(--f-mono);
    font-feature-settings: "zero" 0;
}

.sr,
.skip:not(:focus) {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.skip {
    position: fixed;
    z-index: 200;
    top: 12px;
    left: 12px;
    padding: 10px 16px;
    background: var(--signal);
    color: var(--on-signal);
    border-radius: var(--r);
}

.wrap {
    width: 100%;
    max-width: var(--maxw);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

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

/* ---------- page dot field ---------- */
.gl-field {
    position: fixed;
    inset: 0;
    z-index: -1;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

/* ---------- buttons ---------- */
@property --ang {
    syntax: "<angle>";
    inherits: false;
    initial-value: 0deg;
}

.btn {
    --bh: 48px;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    height: var(--bh);
    padding: 0 22px;
    border: 1px solid transparent;
    border-radius: var(--r);
    font-size: 15px;
    font-weight: 500;
    letter-spacing: -0.01em;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color 0.3s, border-color 0.3s, color 0.3s, transform 0.2s;
}

.btn-arrow {
    display: inline-block;
    transition: transform 0.4s var(--ease-out);
}

.btn:hover .btn-arrow {
    transform: translateX(4px);
}

.btn:active {
    transform: translateY(1px);
}

.btn-primary {
    background: var(--signal);
    color: var(--on-signal);
    overflow: hidden;
    isolation: isolate;
}

.btn-primary::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(100deg, transparent 20%, rgba(255, 255, 255, 0.45) 50%, transparent 80%);
    transform: translateX(-120%);
    transition: transform 0.8s var(--ease-out);
}

.btn-primary:hover::before {
    transform: translateX(120%);
}

.btn-primary:hover {
    background: #e36a42;
}

.btn-ghost {
    border-color: var(--line-2);
    color: var(--text);
    background: rgba(255, 255, 255, 0.02);
}

.btn-ghost:hover {
    border-color: var(--signal);
    background: rgba(var(--signal-rgb), 0.08);
}

.btn-sm {
    --bh: 40px;
    padding: 0 16px;
    font-size: 14px;
}

.btn-glow {
    border: 1px solid transparent;
    background:
        linear-gradient(#161b1d, #161b1d) padding-box,
        linear-gradient(var(--line-2), var(--line-2)) border-box;
    color: var(--text);
    animation: spin-ang 4s linear infinite;
}

.btn-glow:hover {
    background:
        linear-gradient(#1f1714, #1f1714) padding-box,
        conic-gradient(from var(--ang), var(--signal), var(--signal-hi), var(--signal)) border-box;
}

@keyframes spin-ang {
    to {
        --ang: 360deg;
    }
}

/* ---------- header ---------- */
.hdr {
    position: fixed;
    z-index: 50;
    top: 12px;
    left: 12px;
    right: 12px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    height: 64px;
    padding: 0 18px;
    border: 1px solid transparent;
    border-radius: 8px;
    transition: background-color 0.4s, border-color 0.4s, transform 0.6s var(--ease-out), backdrop-filter 0.4s;
}

.hdr.scrolled {
    background: rgba(14, 18, 19, 0.62);
    border-color: var(--line);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
    backdrop-filter: blur(16px) saturate(140%);
}

.hdr.away {
    transform: translateY(calc(-100% - 24px));
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text);
    justify-self: start;
}

.brand-mark {
    width: 31px;
    height: 24px;
    color: var(--text);
    transition: color 0.3s;
}

.mk-a {
    fill: currentColor;
}

.mk-b {
    fill: var(--signal);
}

.brand:hover .brand-mark {
    color: #fff;
}

.brand-word {
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.24em;
}

.nav {
    display: flex;
    gap: 2px;
}

.nav a {
    position: relative;
    padding: 8px 14px;
    border-radius: 6px;
    color: var(--soft);
    font-size: 14px;
    text-decoration: none;
    transition: color 0.25s, background-color 0.25s;
    white-space: nowrap;
}

.nav a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.nav a.active {
    color: #fff;
}

.nav a.active::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 2px;
    width: 4px;
    height: 4px;
    margin-left: -2px;
    border-radius: 50%;
    background: var(--signal);
}

.hdr-right {
    justify-self: end;
    display: flex;
    align-items: center;
    gap: 18px;
}

.clock {
    font-size: 11.5px;
    letter-spacing: 0.06em;
    color: var(--muted);
    text-transform: uppercase;
    white-space: nowrap;
}

.clock b {
    color: var(--soft);
    font-weight: 500;
}

.clock i {
    font-style: normal;
    animation: blink 1s steps(1) infinite;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

.progress {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: -1px;
    height: 1px;
    background: linear-gradient(90deg, var(--signal-deep), var(--signal), var(--signal-hi));
    transform-origin: left;
    transform: scaleX(var(--p, 0));
    opacity: 0;
    transition: opacity 0.4s;
}

.hdr.scrolled .progress {
    opacity: 1;
}

.menu-btn {
    display: none;
    width: 44px;
    height: 40px;
    border: 1px solid var(--line-2);
    border-radius: var(--r);
    background: transparent;
    cursor: pointer;
}

.menu-btn-bars,
.menu-btn-bars::before {
    display: block;
    width: 18px;
    height: 1.5px;
    margin: 0 auto;
    background: var(--text);
    transition: transform 0.4s var(--ease-out);
}

.menu-btn-bars {
    position: relative;
    transform: translateY(-3px);
}

.menu-btn-bars::before {
    content: "";
    position: absolute;
    top: 6px;
}

.menu-btn[aria-expanded="true"] .menu-btn-bars {
    transform: translateY(0) rotate(45deg);
}

.menu-btn[aria-expanded="true"] .menu-btn-bars::before {
    transform: translateY(-6px) rotate(-90deg);
}

.menu {
    position: fixed;
    z-index: 45;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 110px var(--gutter) 32px;
    background: rgba(10, 13, 14, 0.96);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
}

.menu[hidden] {
    display: none;
}

.menu nav {
    display: grid;
}

.menu nav a {
    display: flex;
    align-items: baseline;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
    font-size: clamp(1.8rem, 8vw, 2.6rem);
    letter-spacing: -0.04em;
    text-decoration: none;
    animation: rise 0.7s var(--ease-out) both;
}

.menu nav a:nth-child(2) { animation-delay: 0.04s; }
.menu nav a:nth-child(3) { animation-delay: 0.08s; }
.menu nav a:nth-child(4) { animation-delay: 0.12s; }
.menu nav a:nth-child(5) { animation-delay: 0.16s; }
.menu nav a:nth-child(6) { animation-delay: 0.2s; }

.menu nav .mono {
    font-size: 12px;
    letter-spacing: 0.1em;
    color: var(--signal);
}

.menu-foot {
    margin: 0;
    font-size: 13px;
    color: var(--muted);
}

@keyframes rise {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
}

@keyframes fadein {
    from {
        opacity: 0;
    }
}

/* ---------- intro loader ---------- */
.loader {
    display: none;
}

.intro .loader {
    position: fixed;
    z-index: 100;
    inset: 0;
    display: block;
    pointer-events: none;
}

.loader-panels {
    position: absolute;
    inset: 0;
    display: flex;
}

.loader-panels i {
    flex: 1;
    background: var(--ink);
    margin-right: -1px;
    transition: transform 0.95s var(--ease-io);
}

.loader-panels i:nth-child(2) { transition-delay: 0.06s; }
.loader-panels i:nth-child(3) { transition-delay: 0.12s; }
.loader-panels i:nth-child(4) { transition-delay: 0.18s; }
.loader-panels i:nth-child(5) { transition-delay: 0.24s; }

.loader-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    transition: opacity 0.9s ease 0.4s;
}

.loader-meta {
    position: absolute;
    left: var(--gutter);
    right: var(--gutter);
    bottom: 28px;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
    transition: opacity 0.35s;
}

.loader-count {
    color: var(--text);
    font-size: 13px;
    letter-spacing: 0.08em;
}

.loader.out .loader-panels i {
    transform: translateY(-101%);
}

.loader.out .loader-canvas,
.loader.out .loader-meta {
    opacity: 0;
}

/* ---------- cursor ---------- */
.cursor {
    display: none;
}

.has-cursor .cursor {
    position: fixed;
    z-index: 90;
    inset: 0;
    display: block;
    pointer-events: none;
}

.has-cursor,
.has-cursor * {
    cursor: none !important;
}

.has-cursor input,
.has-cursor textarea,
.has-cursor select {
    cursor: text !important;
}

.cursor > * {
    position: absolute;
    left: 0;
    top: 0;
    will-change: transform;
}

.cursor.hide > * {
    opacity: 0;
}

.cursor-dot::before {
    content: "";
    position: absolute;
    left: -3px;
    top: -3px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--signal-hi);
    box-shadow: 0 0 10px rgba(240, 137, 95, 0.8);
}

.cursor-ring::before {
    content: "";
    position: absolute;
    left: -17px;
    top: -17px;
    width: 34px;
    height: 34px;
    border: 1px solid rgba(205, 218, 222, 0.55);
    border-radius: 50%;
    transition: transform 0.4s var(--ease-out), background-color 0.3s, border-color 0.3s;
}

.cursor-ring::after {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    transform: translate(-50%, -50%);
    font-family: var(--f-mono);
    font-size: 9.5px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    white-space: nowrap;
    color: var(--on-signal);
    opacity: 0;
    transition: opacity 0.25s;
}

.cursor.m-link .cursor-ring::before {
    transform: scale(1.5);
    border-color: var(--signal);
    background: rgba(var(--signal-rgb), 0.12);
}

.cursor.m-open .cursor-ring::before {
    transform: scale(2.2);
    border-color: var(--signal);
    background: var(--signal);
}

.cursor.m-open .cursor-ring::after {
    content: "open";
    opacity: 1;
}

.cursor.m-drag .cursor-ring::before {
    transform: scale(2.3);
    border-color: transparent;
    background: rgba(238, 240, 239, 0.94);
}

.cursor.m-drag .cursor-ring::after {
    content: "\2190  drag  \2192";
    opacity: 1;
}

.cursor.m-open .cursor-dot,
.cursor.m-drag .cursor-dot {
    opacity: 0;
}

.cursor.m-open .cursor-tag,
.cursor.m-drag .cursor-tag,
.cursor.m-text .cursor-tag {
    opacity: 0;
}

.cursor.down .cursor-ring::before {
    transform: scale(0.8);
}

.cursor-tag {
    padding: 6px 9px 7px;
    border: 1px dashed rgba(205, 218, 222, 0.42);
    border-radius: 2px;
    background: rgba(10, 13, 14, 0.8);
    font-size: 10.5px;
    line-height: 1.45;
    letter-spacing: 0.03em;
    color: var(--soft);
    white-space: nowrap;
    transition: opacity 0.3s;
}

.cursor-tag b {
    display: block;
    font-size: 9.5px;
    font-weight: 500;
    letter-spacing: 0.14em;
    color: var(--signal);
}

.cursor.pulse .cursor-tag {
    animation: tagpulse 0.6s var(--ease-out);
}

@keyframes tagpulse {
    40% {
        border-color: var(--signal);
        box-shadow: 0 0 0 4px rgba(var(--signal-rgb), 0.15);
    }
}

/* ---------- reveal ---------- */
.js [data-reveal] {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 1s var(--ease-out) var(--rd, 0s), transform 1.2s var(--ease-out) var(--rd, 0s);
}

.js [data-reveal].in {
    opacity: 1;
    transform: none;
}

.js .sec-title[data-reveal],
.js .hero-title {
    opacity: 1;
    transform: none;
}

.sec-title .line,
.hero-title .line {
    display: block;
    overflow: hidden;
    padding-bottom: 0.12em;
    margin-bottom: -0.12em;
}

.sec-title .line > span,
.hero-title .line > span {
    display: inline-block;
}

.js .sec-title[data-reveal] .line > span {
    transform: translateY(110%);
    transition: transform 1.2s var(--ease-out);
}

.js .sec-title[data-reveal] .line:nth-child(2) > span { transition-delay: 0.08s; }
.js .sec-title[data-reveal] .line:nth-child(3) > span { transition-delay: 0.16s; }

.js .sec-title[data-reveal].in .line > span {
    transform: none;
}

/* ---------- hero ---------- */
.hero {
    position: relative;
    isolation: isolate;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    align-items: flex-end;
}

.hero-shade {
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        linear-gradient(to top, var(--ink) 0%, rgba(10, 13, 14, 0.82) 22%, rgba(10, 13, 14, 0) 58%),
        linear-gradient(to right, rgba(10, 13, 14, 0.72) 0%, rgba(10, 13, 14, 0) 55%),
        linear-gradient(to bottom, rgba(10, 13, 14, 0.7) 0%, rgba(10, 13, 14, 0) 18%);
}

.hero-inner {
    position: relative;
    padding-top: 150px;
    padding-bottom: 104px;
    pointer-events: none;
}

.hero-inner a,
.hero-inner p {
    pointer-events: auto;
}

.eyebrow {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    font-size: 12px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
}

.eyebrow .idx {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--signal);
}

.eyebrow .idx::after {
    content: "";
    width: 28px;
    height: 1px;
    background: currentColor;
    opacity: 0.6;
}

.hero-eyebrow {
    color: var(--soft);
}

.live-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--signal);
    box-shadow: 0 0 0 0 rgba(var(--signal-rgb), 0.6);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    70% {
        box-shadow: 0 0 0 9px rgba(var(--signal-rgb), 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(var(--signal-rgb), 0);
    }
}

.hero-title {
    margin: 22px 0 38px;
    font-size: clamp(3.3rem, 9.4vw, 10.6rem);
    line-height: 0.9;
    letter-spacing: -0.052em;
    font-weight: 500;
}

.hero-title .line {
    padding-bottom: 0.17em;
    margin-bottom: -0.17em;
}

.hero-title .line > span {
    background: linear-gradient(180deg, #ffffff 30%, #b9b1ab 82%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-title em {
    font-size: 1.1em;
    line-height: 0.8;
    padding-right: 0.06em;
}

.hero-title em,
.hero-title em .ch {
    background-image: linear-gradient(180deg, #ffe3d4 14%, #ff8656 58%, #c8461e 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-title.split .line > span,
.hero-title.split em {
    background: none;
}

.hero-title .wd {
    display: inline-block;
    white-space: nowrap;
}

.hero-title .ch {
    display: inline-block;
    padding: 0.1em 0.07em 0.17em 0;
    margin: -0.1em -0.07em -0.17em 0;
    background: linear-gradient(180deg, #ffffff 30%, #b9b1ab 82%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    transition: transform 1.25s var(--ease-out), opacity 0.9s var(--ease-out);
    transition-delay: calc(0.08s + var(--ci) * 26ms);
}

.js:not(.ready) .hero-title .ch {
    transform: translateY(105%);
    opacity: 0;
}

.hero-eyebrow,
.hero-foot,
.hud {
    transition: opacity 1s var(--ease-out) 0.35s, transform 1s var(--ease-out) 0.35s;
}

.hud {
    transition-delay: 0.55s;
}

.js:not(.ready) .hero-eyebrow,
.js:not(.ready) .hero-foot {
    opacity: 0;
    transform: translateY(18px);
}

.js:not(.ready) .hud {
    opacity: 0;
}

.hero-foot {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 32px 48px;
    flex-wrap: wrap;
}

.hero-lede {
    max-width: 47ch;
    margin: 0;
    font-size: clamp(1.02rem, 1.2vw, 1.18rem);
    line-height: 1.55;
    color: var(--soft);
}

.hero-ctas {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.hud {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    gap: 30px;
    padding: 14px var(--gutter);
    border-top: 1px solid var(--line);
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
    background: rgba(10, 13, 14, 0.5);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    white-space: nowrap;
    overflow: hidden;
}

.hud b {
    color: var(--text);
    font-weight: 500;
    font-variant-numeric: tabular-nums;
}

.hud .hud-zero {
    color: var(--signal);
}

.hud-hint {
    color: var(--soft);
}

.hud-scroll {
    margin-left: auto;
}

/* ---------- ticker ---------- */
.ticker {
    position: relative;
    overflow: hidden;
    padding: 26px 0;
    border-bottom: 1px solid var(--line);
    -webkit-mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.ticker-track {
    display: flex;
    width: max-content;
    animation: tick 60s linear infinite;
}

.ticker:hover .ticker-track {
    animation-play-state: paused;
}

.ticker ul {
    display: flex;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ticker li {
    display: flex;
    align-items: center;
    gap: 34px;
    padding-right: 34px;
    font-size: clamp(1.15rem, 1.7vw, 1.6rem);
    letter-spacing: -0.02em;
    color: var(--soft);
    white-space: nowrap;
}

.ticker li::after {
    content: "";
    width: 20px;
    height: 16px;
    background: var(--signal);
    -webkit-mask: var(--mark) center / contain no-repeat;
    mask: var(--mark) center / contain no-repeat;
    opacity: 0.85;
}

@keyframes tick {
    to {
        transform: translateX(-50%);
    }
}

/* ---------- sections ---------- */
.sec {
    position: relative;
    padding: clamp(96px, 12vw, 180px) 0;
}

.sec + .sec:not(.sec-paper):not(.sec-catalog) {
    padding-top: clamp(40px, 5vw, 80px);
}

.sec-head {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: 24px;
    row-gap: 22px;
    margin-bottom: clamp(48px, 6vw, 92px);
}

.sec-head .eyebrow {
    grid-column: 1 / -1;
}

.sec-head .sec-title {
    grid-column: 1 / span 8;
}

.sec-head .sec-lede {
    grid-column: 9 / -1;
    align-self: end;
}

.sec-title {
    font-size: clamp(2.3rem, 5vw, 4.9rem);
    line-height: 0.98;
    letter-spacing: -0.045em;
}

.sec-title em,
.chapter-title em {
    font-size: 1.07em;
    color: var(--signal);
}

.sec-title .line > span {
    padding-right: 0.1em;
}

.sec-lede {
    margin: 0;
    max-width: 44ch;
    color: var(--soft);
    font-size: 1.05rem;
}

/* ---------- bento ---------- */
.bento {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 14px;
}

.tile {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    padding: clamp(22px, 2.4vw, 34px);
    border-radius: var(--r);
    border: 1px solid var(--line);
    background: var(--ink-3);
    color: var(--text);
}

.tile p {
    margin: 0;
}

.tile > p:not(.tile-k),
.tile-body > p:not(.tile-k),
.custom-copy > p:not(.tile-k) {
    color: var(--muted);
    font-size: 15.5px;
    max-width: 46ch;
}

.tile h3 {
    margin: 16px 0 12px;
    font-size: clamp(1.5rem, 2.2vw, 2.15rem);
    line-height: 1.04;
    letter-spacing: -0.035em;
    max-width: 18ch;
}

.tile-k {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 11.5px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--soft);
}

.tile-k span {
    display: inline-grid;
    place-items: center;
    width: 22px;
    height: 22px;
    border: 1px solid currentColor;
    border-radius: 2px;
    font-size: 10.5px;
    letter-spacing: 0;
}

.tile[data-spot]::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(var(--signal-rgb), 0.1), transparent 65%);
    opacity: 0;
    transition: opacity 0.5s;
    pointer-events: none;
}

.tile[data-spot]::after {
    content: "";
    position: absolute;
    inset: -1px;
    z-index: 3;
    border-radius: inherit;
    padding: 1px;
    background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(240, 137, 95, 0.95), transparent 60%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
    opacity: 0;
    transition: opacity 0.5s;
    pointer-events: none;
}

.tile[data-spot]:hover::before,
.tile[data-spot]:hover::after {
    opacity: 1;
}

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 22px 0 0;
    padding: 0;
    list-style: none;
}

.chips li {
    padding: 6px 10px;
    border: 1px solid var(--line-2);
    border-radius: 2px;
    font-size: 10.5px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--soft);
}

/* A — audience (paper) */
.tile-aud {
    grid-column: 1 / span 7;
    grid-row: 1 / span 2;
    min-height: 640px;
    justify-content: flex-end;
    background: var(--paper);
    border-color: transparent;
    color: var(--paper-ink);
}

.tile .field {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.tile-aud .field {
    z-index: -2;
}

.tile-aud .tile-body {
    position: relative;
    pointer-events: none;
}

.tile-aud .tile-body::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: -60px calc(-1 * clamp(22px, 2.4vw, 34px)) calc(-1 * clamp(22px, 2.4vw, 34px));
    background: linear-gradient(to top, var(--paper) 55%, rgba(244, 240, 232, 0));
}

.tile-aud .tile-k,
.tile-aud .chips li {
    color: var(--paper-ink);
}

.tile-aud .chips li {
    border-color: var(--paper-line);
}

.tile-aud .tile-body > p:not(.tile-k) {
    color: var(--paper-muted);
}

.aud-tags span {
    position: absolute;
    z-index: 1;
    left: 0;
    top: 0;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 4px 8px;
    border: 1px solid var(--paper-line);
    border-radius: 2px;
    background: rgba(244, 240, 232, 0.86);
    font-size: 10.5px;
    color: var(--paper-ink);
    white-space: nowrap;
    pointer-events: none;
    will-change: transform;
}

.aud-tags span::before {
    content: "";
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--signal);
}

/* B — intent */
.tile-intent {
    grid-column: 8 / -1;
    min-height: 313px;
}

.bars {
    display: flex;
    align-items: flex-end;
    gap: 5px;
    height: 110px;
    margin-top: auto;
    padding-top: 26px;
}

.bars i {
    flex: 1;
    height: calc(var(--h) * 100%);
    border-radius: 1px;
    background: linear-gradient(to top, rgba(var(--signal-rgb), 0.15), var(--signal));
    transform-origin: bottom;
    animation: bar 2.6s ease-in-out calc(var(--d) * -0.19s) infinite alternate;
}

.bars i:last-child {
    background: linear-gradient(to top, rgba(240, 137, 95, 0.25), var(--signal-hi));
    box-shadow: 0 0 18px rgba(240, 137, 95, 0.45);
}

@keyframes bar {
    0% {
        transform: scaleY(0.72);
    }

    100% {
        transform: scaleY(1);
    }
}

.tile-intent .chips {
    margin-top: 18px;
}

/* C — trend (ember) */
.tile-trend {
    grid-column: 8 / -1;
    min-height: 313px;
    background: var(--signal);
    border-color: transparent;
    color: var(--on-signal);
}

.tile-trend .tile-k,
.tile-trend .chips li {
    color: var(--on-signal);
}

.tile-trend > p:not(.tile-k) {
    color: rgba(29, 11, 4, 0.78);
}

.tile-trend .chips li {
    border-color: rgba(29, 11, 4, 0.28);
}

.tile-trend[data-spot]::before {
    background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, 0.35), transparent 65%);
}

.tile-trend[data-spot]::after {
    background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), #fff, transparent 60%);
}

.spark {
    width: 100%;
    height: auto;
    margin-top: auto;
    padding-top: 22px;
    overflow: visible;
}

.spark-area {
    fill: rgba(29, 11, 4, 0.14);
}

.spark-line {
    fill: none;
    stroke: var(--on-signal);
    stroke-width: 2;
    stroke-linejoin: round;
    stroke-dasharray: 1;
    stroke-dashoffset: 0;
}

.js .spark-line {
    stroke-dashoffset: 1;
    transition: stroke-dashoffset 2.2s var(--ease-io) 0.3s;
}

.js .in .spark-line {
    stroke-dashoffset: 0;
}

.spark-dot {
    fill: var(--on-signal);
    animation: dotpulse 2s ease-in-out infinite;
    transform-origin: 320px 9px;
}

@keyframes dotpulse {
    50% {
        transform: scale(1.5);
    }
}

/* D — custom */
.tile-custom {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: clamp(24px, 4vw, 64px);
    align-items: center;
}

.console {
    background: #070909;
    border: 1px solid var(--line);
    border-radius: var(--r);
    font-size: 13.5px;
    color: var(--soft);
    overflow: hidden;
}

.console-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 11px 14px;
    border-bottom: 1px solid var(--line);
    font-size: 11px;
    color: var(--faint);
    letter-spacing: 0.06em;
}

.console-bar i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--ink-4);
}

.console-bar span {
    margin-left: 8px;
}

.console p {
    margin: 0;
}

.console-q {
    padding: 18px 18px 6px;
    color: var(--faint);
}

.console-in {
    padding: 0 18px 18px;
    min-height: 3.4em;
    color: var(--text);
    font-size: 15px;
    line-height: 1.6;
}

.caret {
    display: inline-block;
    width: 0.55em;
    height: 1.1em;
    margin-left: 2px;
    vertical-align: -0.18em;
    background: var(--signal);
    animation: blink 1s steps(1) infinite;
}

.console-out {
    border-top: 1px dashed var(--line-2);
    padding: 14px 18px 16px;
    display: grid;
    gap: 6px;
}

.console-out p {
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.console-out .dots {
    flex: 1;
    border-bottom: 1px dotted var(--faint);
    transform: translateY(-4px);
}

.console-out [data-o] {
    color: var(--signal);
    transition: opacity 0.4s, transform 0.4s var(--ease-out);
}

.console-out.wait [data-o] {
    opacity: 0;
    transform: translateX(-6px);
}

/* ---------- selected work (light section) ---------- */
.kinds {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    margin: 0 0 clamp(56px, 7vw, 96px);
    padding: 0;
    list-style: none;
}

.kinds li {
    padding-top: 18px;
    border-top: 1px solid var(--paper-line);
}

.kinds p {
    margin: 12px 0 0;
    max-width: 34ch;
    color: var(--paper-muted);
    font-size: 15px;
}

.kind-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--f-mono);
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--paper-ink);
}

.kind-tag i {
    width: 8px;
    height: 8px;
    border-radius: 2px;
    background: var(--signal);
}

.projects {
    display: grid;
    gap: clamp(64px, 8vw, 120px);
}

.proj {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: clamp(28px, 4vw, 64px);
    align-items: center;
}

.proj-flip .proj-shot {
    order: 2;
}

.proj-shot {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    border-radius: 8px;
    overflow: hidden;
    background: var(--charcoal);
    text-align: left;
    cursor: pointer;
    box-shadow: 0 40px 80px -44px rgba(41, 47, 49, 0.55), 0 0 0 1px rgba(41, 47, 49, 0.08);
    transition: transform 0.7s var(--ease-out), box-shadow 0.7s var(--ease-out);
}

.proj-shot:hover {
    transform: translateY(-6px);
    box-shadow: 0 54px 90px -44px rgba(41, 47, 49, 0.6), 0 0 0 1px rgba(var(--signal-rgb), 0.5);
}

.proj-shot img,
.sheet-shot img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    object-position: top center;
}

.proj-shot img {
    transition: transform 1.2s var(--ease-out);
}

.proj-shot:hover img {
    transform: scale(1.025);
}

.shot-bar {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    background: #1f2426;
}

.shot-bar i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #3c4447;
}

.shot-bar b {
    margin-left: 10px;
    overflow: hidden;
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.04em;
    color: #9aa3a5;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.proj-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
    margin: 0;
}

.status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 4px 10px;
    border: 1px solid var(--paper-line);
    border-radius: 999px;
    font-size: 10.5px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--paper-muted);
}

.status::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #3d8a5c;
}

.status.is-dev::before {
    background: #c9952b;
}

.proj-info h3 {
    margin: 16px 0 14px;
    font-size: clamp(1.6rem, 2.6vw, 2.4rem);
    line-height: 1.05;
    letter-spacing: -0.035em;
    color: var(--paper-ink);
}

.proj-sum {
    max-width: 52ch;
    margin: 0;
    color: var(--paper-muted);
}

.proj-points {
    display: grid;
    gap: 8px;
    margin: 22px 0;
    padding: 0;
    list-style: none;
    color: var(--paper-ink);
    font-size: 15px;
}

.proj-points li {
    display: flex;
    align-items: baseline;
    gap: 12px;
}

.proj-points li::before {
    content: "";
    flex: none;
    width: 9px;
    height: 5px;
    border-left: 1.5px solid var(--signal);
    border-bottom: 1.5px solid var(--signal);
    transform: translateY(-3px) rotate(-45deg);
}

.proj-facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 20px;
    margin: 0 0 26px;
}

.proj-facts div {
    padding: 10px 0;
    border-top: 1px solid var(--paper-line);
}

.proj-facts dt {
    font-size: 10.5px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--paper-muted);
}

.proj-facts dd {
    margin: 4px 0 0;
    font-size: 12.5px;
    color: var(--paper-ink);
}

.proj-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.btn-dark {
    border: 0;
    background: var(--charcoal);
    color: var(--paper);
}

.btn-dark:hover {
    background: var(--signal);
    color: #fff;
}

.btn-line {
    border-color: rgba(41, 47, 49, 0.3);
    color: var(--paper-ink);
}

.btn-line:hover {
    border-color: var(--signal);
    color: var(--signal-deep);
}

/* case study sheet extras */
.sheet-kind {
    margin: -8px 0 26px;
    padding: 12px 14px;
    border-left: 2px solid var(--signal);
    background: rgba(var(--signal-rgb), 0.08);
    color: var(--soft);
    font-size: 14.5px;
}

.sheet-shot {
    margin: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #1f2426;
}

.sheet-shot figcaption {
    padding: 10px 12px;
    font-size: 10.5px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
}

.sheet-uses.sheet-pending li::before {
    content: "\25CB";
    color: var(--muted);
}

[data-s="pendingWrap"][hidden],
[data-s="stackWrap"][hidden] {
    display: none;
}

@media (max-width: 960px) {
    .kinds,
    .proj {
        grid-template-columns: minmax(0, 1fr);
    }

    .kinds {
        gap: 0;
    }

    .kinds li {
        padding-bottom: 18px;
    }

    .proj-flip .proj-shot {
        order: 0;
    }
}

@media (max-width: 640px) {
    .proj-facts {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* ---------- method chapter ---------- */
.chapter {
    position: relative;
    height: 420vh;
}

.chapter-pin {
    position: sticky;
    top: 0;
    height: 100vh;
    height: 100svh;
    overflow: hidden;
}

.chapter-pin::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        linear-gradient(90deg, var(--ink) 0%, rgba(10, 13, 14, 0.9) 28%, rgba(10, 13, 14, 0) 48%),
        linear-gradient(to bottom, var(--ink) 0%, rgba(10, 13, 14, 0) 14%, rgba(10, 13, 14, 0) 86%, var(--ink) 100%);
}

.chapter-copy {
    position: absolute;
    z-index: 3;
    left: calc(var(--gutter) + 18px);
    top: 50%;
    width: min(34vw, 440px);
    transform: translateY(-50%);
}

.chapter-title {
    margin: 20px 0 34px;
    font-size: clamp(2.2rem, 3.7vw, 3.6rem);
    line-height: 1;
    letter-spacing: -0.045em;
}

.chapter-steps {
    display: grid;
    margin: 0;
    padding: 0;
    list-style: none;
}

.chapter-steps li {
    display: grid;
    grid-template-columns: 38px 1fr;
    padding: 14px 0;
    border-top: 1px solid var(--line);
    opacity: 0.34;
    transition: opacity 0.5s;
}

.chapter-steps li.done {
    opacity: 0.55;
}

.chapter-steps li.on {
    opacity: 1;
}

.chapter-steps li > .mono {
    padding-top: 6px;
    font-size: 11.5px;
    letter-spacing: 0.08em;
    color: var(--signal);
}

.chapter-steps h3 {
    font-size: 1.4rem;
    letter-spacing: -0.03em;
}

.st-body {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.6s var(--ease-out);
}

.st-body > p {
    overflow: hidden;
    margin: 0;
    color: var(--soft);
    font-size: 15px;
    max-width: 40ch;
    transition: padding 0.6s var(--ease-out);
}

.chapter-steps li.on .st-body {
    grid-template-rows: 1fr;
}

.chapter-steps li.on .st-body > p {
    padding-top: 8px;
}

.chapter-rail {
    position: absolute;
    left: -18px;
    top: 0;
    bottom: 0;
    width: 1px;
    background: var(--line);
}

.chapter-rail i {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, var(--signal-deep), var(--signal), var(--signal-hi));
    transform-origin: top;
    transform: scaleY(var(--p, 0));
}

.ch-layer {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
}

.ch-stage {
    position: absolute;
    left: 48%;
    right: 6%;
    top: 14%;
    bottom: 18%;
}

.ch-ev {
    position: absolute;
    left: var(--x);
    top: var(--y);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 9px;
    border: 1px solid var(--line-2);
    border-radius: 2px;
    background: rgba(10, 13, 14, 0.74);
    font-family: var(--f-mono);
    font-size: 10.5px;
    letter-spacing: 0.04em;
    color: var(--soft);
    white-space: nowrap;
    opacity: 0;
    transform: translateY(10px) scale(0.96);
    transition: opacity 0.45s, transform 0.6s var(--ease-out);
}

.ch-ev i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #e3e7e8;
    box-shadow: 0 0 8px rgba(227, 231, 232, 0.8);
}

.ch-ev.on {
    opacity: 1;
    transform: none;
}

.ch-scan {
    position: absolute;
    left: 0;
    bottom: 13%;
    margin-left: 14px;
    padding: 6px 10px;
    border: 1px solid rgba(var(--signal-rgb), 0.55);
    border-radius: 2px;
    background: rgba(40, 16, 6, 0.72);
    font-size: 10.5px;
    letter-spacing: 0.04em;
    color: var(--text);
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s;
    will-change: transform;
}

.ch-scan b {
    margin-right: 8px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--signal-hi);
}

.ch-scan.on {
    opacity: 1;
}

.ch-coh {
    position: absolute;
    left: 0;
    top: 0;
    border: 1px dashed rgba(205, 218, 222, 0.55);
    opacity: 0;
    transition: opacity 0.5s;
    will-change: transform;
}

.ch-coh::before,
.ch-coh::after {
    content: "";
    position: absolute;
    width: 7px;
    height: 7px;
    border: 1px solid var(--signal-hi);
}

.ch-coh::before {
    left: -4px;
    top: -4px;
}

.ch-coh::after {
    right: -4px;
    bottom: -4px;
}

.ch-coh span {
    position: absolute;
    left: -1px;
    bottom: 100%;
    margin-bottom: 8px;
    padding: 3px 7px;
    border: 1px solid var(--line-2);
    background: rgba(10, 13, 14, 0.78);
    font-size: 10.5px;
    color: var(--text);
    white-space: nowrap;
}

.ch-coh span b {
    margin-left: 6px;
    font-weight: 500;
    color: var(--signal);
}

.ch-coh.on {
    opacity: 1;
}

.ch-dest {
    position: absolute;
    left: 0;
    top: 0;
    padding: 7px 13px 7px 27px;
    border: 1px solid rgba(var(--signal-rgb), 0.6);
    border-radius: 2px;
    background: rgba(34, 14, 6, 0.82);
    font-size: 11.5px;
    letter-spacing: 0.06em;
    color: var(--text);
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.6s;
    transition-delay: calc(var(--d) * 110ms);
    will-change: transform;
}

.ch-dest::before {
    content: "";
    position: absolute;
    left: 10px;
    top: 50%;
    width: 7px;
    height: 7px;
    margin-top: -3.5px;
    border-radius: 50%;
    background: var(--signal-hi);
    box-shadow: 0 0 10px var(--signal-hi);
}

.ch-dest.on {
    opacity: 1;
}

.ch-cap {
    position: absolute;
    z-index: 3;
    right: var(--gutter);
    bottom: 22px;
    margin: 0;
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
}

.ch-cap span {
    color: var(--signal);
    margin-right: 10px;
}

.chapter-fallback {
    display: none;
    padding-block: clamp(96px, 12vw, 180px);
}

.steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.steps li {
    padding-top: 22px;
    border-top: 1px solid var(--line-2);
}

.step-n {
    font-size: 12px;
    color: var(--signal);
}

.steps h3 {
    margin: 12px 0 8px;
    font-size: 1.5rem;
    letter-spacing: -0.03em;
}

.steps p {
    margin: 0;
    color: var(--muted);
}

.no-pin .chapter {
    height: auto;
}

.no-pin .chapter-pin {
    display: none;
}

.no-pin .chapter-fallback {
    display: block;
}

/* ---------- trust (paper) ---------- */
.sec-paper {
    background: var(--paper);
    color: var(--paper-ink);
}

.sec-paper .eyebrow {
    color: var(--paper-muted);
}

.sec-paper .eyebrow .idx {
    color: var(--signal-deep);
}

.sec-paper .sec-lede {
    color: var(--paper-muted);
}

.sec-paper .sec-title em {
    color: var(--signal-deep);
}

.trust-grid {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: clamp(32px, 5vw, 80px);
    align-items: start;
}

.record {
    position: sticky;
    top: 100px;
    margin: 0;
    overflow: hidden;
    border-radius: 6px;
    background: #0e1213;
    color: #e3e6e6;
    box-shadow: 0 40px 80px -40px rgba(40, 20, 10, 0.55), 0 0 0 1px rgba(18, 22, 23, 0.08);
}

.record-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
}

.record-state {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--warn);
    transition: color 0.4s;
}

.record-state::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 10px currentColor;
}

.record.safe .record-state {
    color: var(--signal);
}

.record-body {
    position: relative;
    padding: 18px 16px 20px;
    font-size: 13px;
    line-height: 2;
    overflow: hidden;
}

.record-body::before {
    content: "{";
    display: block;
    color: var(--faint);
}

.record-body::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -40px;
    height: 40px;
    background: linear-gradient(to bottom, transparent, rgba(var(--signal-rgb), 0.16) 75%, var(--signal) 100%);
    opacity: 0;
    pointer-events: none;
}

.record.scanning .record-body::after {
    animation: scan 1.7s var(--ease-io) forwards;
}

@keyframes scan {
    0% {
        opacity: 1;
        transform: translateY(0);
    }

    90% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        transform: translateY(400px);
    }
}

.rec-row {
    display: flex;
    gap: 12px;
    margin: 0;
    padding-left: 16px;
    white-space: nowrap;
}

.rk {
    flex: none;
    width: 13ch;
    color: var(--muted);
}

.rv {
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.4s;
}

.rec-close {
    margin: 0;
    color: var(--faint);
}

.rec-row.is-pii .rv {
    color: var(--warn);
}

.rec-row.is-new .rv {
    color: var(--faint);
}

.rec-row.done .rv {
    color: var(--signal);
}

.rec-row.dropped .rv {
    color: var(--faint);
    text-decoration: line-through;
}

.record figcaption {
    padding: 12px 16px 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 11px;
    letter-spacing: 0.04em;
    color: var(--muted);
}

.principles {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 clamp(24px, 3vw, 48px);
    margin: 0;
    padding: 0;
    list-style: none;
}

.principles li {
    padding: 22px 0 34px;
    border-top: 1px solid var(--paper-line);
}

.principles li:nth-child(even) {
    --rd: 0.08s;
}

.principles .mono {
    font-size: 11.5px;
    letter-spacing: 0.1em;
    color: var(--signal-deep);
}

.principles h3 {
    margin: 12px 0 8px;
    font-size: 1.35rem;
    letter-spacing: -0.03em;
}

.principles p {
    margin: 0;
    color: var(--paper-muted);
    font-size: 15.5px;
    max-width: 38ch;
}

/* ---------- contact ---------- */
.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: clamp(32px, 5vw, 80px);
    align-items: start;
}

.contact-info .sec-title {
    margin: 22px 0 24px;
}

.contact-dl {
    display: grid;
    gap: 14px;
    margin: 44px 0 0;
}

.contact-dl div {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 12px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
}

.contact-dl dt {
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
    padding-top: 3px;
}

.contact-dl dd {
    margin: 0;
}

.contact-dl a {
    text-decoration: none;
    background: linear-gradient(var(--signal), var(--signal)) 0 100% / 0 1px no-repeat;
    transition: background-size 0.4s var(--ease-out);
}

.contact-dl a:hover {
    background-size: 100% 1px;
}

.form {
    display: grid;
    gap: 24px;
    padding: clamp(22px, 3vw, 40px);
    border: 1px solid var(--line);
    border-radius: var(--r);
    background: var(--ink-2);
}

.field-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.fld {
    display: grid;
    gap: 8px;
}

.fld > span {
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
}

.fld input,
.fld select,
.fld textarea {
    width: 100%;
    padding: 10px 0 12px;
    border: 0;
    border-bottom: 1px solid var(--line-2);
    border-radius: 0;
    background: transparent;
    color: var(--text);
    font: inherit;
    font-size: 16px;
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.fld input:focus,
.fld select:focus,
.fld textarea:focus {
    border-bottom-color: var(--signal);
    box-shadow: 0 1px 0 var(--signal);
}

.fld.bad input,
.fld.bad select,
.fld.bad textarea {
    border-bottom-color: #ff7b6b;
}

.fld select {
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%238b9496' stroke-width='1.5'/%3E%3C/svg%3E") right 2px center / 12px 8px no-repeat;
}

.fld select option {
    background: var(--ink-3);
    color: var(--text);
}

.fld textarea {
    resize: vertical;
    min-height: 124px;
    line-height: 1.5;
}

.form-foot {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

.form-status {
    margin: 0;
    font-size: 12px;
    letter-spacing: 0.04em;
    color: var(--muted);
}

.form-status.ok {
    color: var(--signal);
}

.form-status.err {
    color: #ff8f80;
}

.btn-submit {
    border: 0;
}

/* ---------- footer ---------- */
.ftr {
    position: relative;
    overflow: hidden;
    padding-top: clamp(80px, 10vw, 150px);
}

.ftr::before {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 60%;
    z-index: -1;
    background: radial-gradient(60% 80% at 50% 100%, rgba(var(--signal-rgb), 0.14), transparent 70%);
    pointer-events: none;
}

.receipt {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: clamp(32px, 5vw, 80px);
    align-items: center;
    padding-bottom: clamp(80px, 10vw, 140px);
}

.receipt-copy .sec-title {
    margin: 22px 0 24px;
}

.receipt-copy .btn {
    margin-top: 32px;
}

.receipt-card {
    margin: 0;
    border: 1px solid var(--line);
    border-radius: var(--r);
    background: rgba(14, 18, 19, 0.92);
    font-size: 11px;
}

.receipt-top {
    display: flex;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid var(--line);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
}

.receipt-top span:last-child {
    color: var(--signal);
}

.receipt-map {
    display: block;
    width: 100%;
    height: 200px;
    border-bottom: 1px solid var(--line);
}

.receipt-dl {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 0;
}

.receipt-dl div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 16px;
    border-bottom: 1px solid var(--line);
}

.receipt-dl div:nth-child(odd) {
    border-right: 1px solid var(--line);
}

.receipt-dl div:nth-last-child(-n + 2) {
    border-bottom: 0;
}

.receipt-dl dt {
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--faint);
}

.receipt-dl dd {
    margin: 0;
    color: var(--text);
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.receipt-dl .hl dd {
    color: var(--signal);
}

.ftr-top {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 48px;
    padding-bottom: 56px;
    border-bottom: 1px solid var(--line);
}

.ftr-logo {
    display: block;
    width: 170px;
    height: auto;
    margin-bottom: 26px;
    padding: 10px 14px;
    border-radius: 6px;
    background: #f6f5f3;
}

.ftr-tag {
    max-width: 16ch;
    margin: 0 0 28px;
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    font-weight: 500;
    line-height: 1.05;
    letter-spacing: -0.035em;
}

.ftr-cols {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.ftr-cols p {
    margin: 0 0 14px;
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
}

.ftr-cols a {
    display: block;
    width: fit-content;
    padding: 5px 0;
    color: #d3d8d9;
    text-decoration: none;
    transition: color 0.25s;
}

.ftr-cols a:hover {
    color: #fff;
}

.ftr-legal {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 28px;
    padding-block: 20px;
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
}

.ftr-legal a {
    margin-left: auto;
    text-decoration: none;
}

.ftr-legal a:hover {
    color: var(--text);
}

.wm {
    position: relative;
    margin: clamp(20px, 4vw, 56px) var(--gutter) 0;
    aspect-ratio: 742 / 118;
    overflow: hidden;
}

.wm-svg {
    width: 100%;
    height: auto;
    overflow: visible;
}

/* when the dot field draws the wordmark, hide the vector copy */
.field-on .wm-svg {
    opacity: 0;
}

/* ---------- spec sheet ---------- */
.sheet {
    width: min(1180px, calc(100vw - 2 * var(--gutter)));
    max-width: none;
    max-height: calc(100dvh - 40px);
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--text);
    overflow: visible;
}

.sheet::backdrop {
    background: rgba(6, 8, 9, 0.74);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    animation: fadein 0.5s ease both;
}

.sheet[open] {
    animation: rise 0.6s var(--ease-out) both;
}

.sheet-panel {
    max-height: calc(100dvh - 40px);
    overflow: auto;
    padding: clamp(20px, 3vw, 40px);
    border: 1px solid var(--line-2);
    border-radius: 6px;
    background: #0e1213;
    box-shadow: 0 60px 120px -40px rgba(0, 0, 0, 0.85);
}

.sheet-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--line);
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
}

.sheet-top b {
    font-weight: 500;
    color: var(--signal);
}

.sheet-close {
    height: 34px;
    padding: 0 14px;
    border: 1px solid var(--line-2);
    border-radius: 999px;
    background: none;
    font-family: var(--f-mono);
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text);
    cursor: pointer;
    transition: border-color 0.3s;
}

.sheet-close:hover {
    border-color: var(--signal);
}

.sheet-grid {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: clamp(24px, 4vw, 56px);
    padding-top: 28px;
}

.sheet[open] .sheet-grid > * {
    animation: rise 0.8s var(--ease-out) both;
}

.sheet[open] .sheet-side {
    animation-delay: 0.1s;
}

.sheet-main h2 {
    max-width: 16ch;
    font-size: clamp(2rem, 3.6vw, 3.4rem);
    line-height: 1;
    letter-spacing: -0.045em;
}

.sheet-def {
    max-width: 52ch;
    margin: 18px 0 26px;
    font-size: 1.05rem;
    color: var(--soft);
}

.sheet-spec {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 24px;
    margin: 0 0 8px;
}

.sheet-spec div {
    padding: 10px 0;
    border-top: 1px solid var(--line);
}

.sheet-spec dt,
.sheet-h {
    font-size: 10.5px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
}

.sheet-spec dd {
    margin: 4px 0 0;
    font-size: 13px;
    color: var(--text);
}

.sheet-h {
    margin: 22px 0 10px;
}

.sheet .chips {
    margin-top: 0;
}

.sheet-uses {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
    color: var(--soft);
}

.sheet-uses li::before {
    content: "\2192";
    margin-right: 10px;
    color: var(--signal);
}

.sheet-side {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sheet-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.sheet-ctas [hidden] {
    display: none;
}

.sheet-note[hidden] {
    display: none;
}

.sheet-cta {
    align-self: flex-start;
}

.sheet-note {
    margin: 28px 0 0;
    padding-top: 16px;
    border-top: 1px solid var(--line);
    font-size: 11px;
    color: var(--faint);
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1180px) {
    .clock {
        display: none;
    }

}

@media (max-width: 960px) {
    .nav {
        display: none;
    }

    .menu-btn {
        display: block;
    }

    .hdr {
        grid-template-columns: 1fr auto;
    }

    .sec-head .sec-title,
    .sec-head .sec-lede {
        grid-column: 1 / -1;
    }

    .bento > .tile {
        grid-column: 1 / -1;
        grid-row: auto;
    }

    .tile-aud {
        min-height: 560px;
    }

    .tile-custom {
        grid-template-columns: minmax(0, 1fr);
    }

    .trust-grid,
    .contact-grid,
    .ftr-top,
    .receipt {
        grid-template-columns: minmax(0, 1fr);
    }

    .record {
        position: relative;
        top: 0;
    }

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

    /* pinned chapter: copy on top, visual below */
    .chapter-pin::before {
        background: linear-gradient(to bottom, var(--ink) 0%, rgba(10, 13, 14, 0.92) 34%, rgba(10, 13, 14, 0) 52%, rgba(10, 13, 14, 0) 90%, var(--ink) 100%);
    }

    .chapter-copy {
        left: var(--gutter);
        right: var(--gutter);
        top: 86px;
        width: auto;
        transform: none;
    }

    .chapter-title {
        margin: 14px 0 16px;
        font-size: clamp(1.9rem, 8vw, 2.6rem);
    }

    .chapter-steps li:not(.on) {
        display: none;
    }

    .chapter-steps li {
        border-top: 0;
        padding: 0;
    }

    .chapter-rail {
        position: relative;
        left: 0;
        width: 100%;
        height: 2px;
        margin-top: 14px;
    }

    .chapter-rail i {
        transform-origin: left;
        transform: scaleX(var(--p, 0));
    }

    .ch-stage {
        left: 6%;
        right: 6%;
        top: 52%;
        bottom: 8%;
    }

    .ch-scan {
        bottom: auto;
        top: 50%;
    }

    .ch-dest {
        padding: 5px 8px 5px 19px;
        font-size: 9.5px;
    }

    .ch-dest::before {
        left: 7px;
        width: 6px;
        height: 6px;
        margin-top: -3px;
    }

    .ch-coh span {
        font-size: 9px;
    }

    .ch-coh span b {
        display: none;
    }

    .ch-cap {
        display: none;
    }
}

@media (max-width: 640px) {
    .hdr .btn-glow {
        display: none;
    }

    .hero-title {
        font-size: clamp(2.9rem, 13.6vw, 4.4rem);
        margin: 18px 0 26px;
    }

    .hero-inner {
        padding-bottom: 92px;
    }

    .hud {
        gap: 18px;
    }

    .hud-hint,
    .hud-fig,
    .hud-scroll {
        display: none;
    }

    .tile-aud {
        min-height: 520px;
    }

    .field-row,
    .principles,
    .steps,
    .receipt-dl {
        grid-template-columns: minmax(0, 1fr);
    }

    .receipt-dl div:nth-child(odd) {
        border-right: 0;
    }

    .receipt-dl div:nth-last-child(2) {
        border-bottom: 1px solid var(--line);
    }

    .ftr-cols {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sheet-grid,
    .sheet-spec {
        grid-template-columns: minmax(0, 1fr);
    }

    .ftr-legal a {
        margin-left: 0;
    }
}

@media (min-width: 1700px) and (min-aspect-ratio: 21/20) {
    .chapter-steps li {
        grid-template-columns: 48px 1fr;
        padding: 18px 0;
    }

    .chapter-steps h3 {
        font-size: 1.8rem;
    }

    .chapter-title {
        font-size: clamp(3.6rem, 3.3vw, 4.9rem);
    }

    .ch-ev,
    .ch-scan,
    .ch-coh span {
        font-size: 12.5px;
    }

    .ch-dest {
        font-size: 13px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .ticker-track {
        animation: none;
    }
}

/* =========================================================
   All-dark theme
   The light sections (Work, Quality, audience tile) use the
   same graphite background and dot field as the rest.
   ========================================================= */
:root {
    --paper: var(--ink-3);
    --paper-ink: var(--text);
    --paper-muted: var(--muted);
    --paper-line: var(--line);
}

.sec-paper {
    background: transparent;
    color: var(--text);
    border-top: 1px solid var(--line);
}

.sec-paper .eyebrow .idx,
.sec-paper .sec-title em,
.principles .mono {
    color: var(--signal);
}

.tile-aud {
    background: var(--ink-3);
    border-color: var(--line);
}

.tile-aud .tile-body::before {
    background: linear-gradient(to top, var(--ink-3) 55%, rgba(19, 24, 26, 0));
}

.tile-aud .tile-k,
.tile-aud .chips li {
    color: var(--soft);
}

.tile-aud .chips li {
    border-color: var(--line-2);
}

.aud-tags span {
    background: rgba(10, 13, 14, 0.82);
    border-color: var(--line-2);
    color: var(--text);
}

.record {
    box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.7), 0 0 0 1px var(--line);
}

.proj-shot {
    box-shadow: 0 40px 80px -44px rgba(0, 0, 0, 0.8), 0 0 0 1px var(--line);
}

.btn-dark {
    background: var(--text);
    color: var(--ink);
}

.btn-dark:hover {
    background: var(--signal);
    color: #fff;
}

.btn-line {
    border-color: var(--line-2);
    color: var(--text);
}

.btn-line:hover {
    color: var(--signal-hi);
}

.ftr-logo {
    padding: 0;
    background: none;
}
