/* ==========================================================================
   ChromaSystem Professional — 2026
   A single, quiet visual system: warm paper, near-black ink, hair photography,
   one iridescent rule. No product renders.
   ========================================================================== */

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body,
h1, h2, h3, h4, p, figure, blockquote, dl, dd, ul, ol {
    margin: 0;
    padding: 0;
}

ul, ol { list-style: none; }

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

button, input, select, textarea { font: inherit; color: inherit; }

button { background: none; border: 0; cursor: pointer; }

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

::selection { background: #14120f; color: #f7f4ef; }

:focus-visible {
    outline: 2px solid #14120f;
    outline-offset: 3px;
}

[hidden] { display: none !important; }

/* ---------- Tokens ---------- */
:root {
    --paper: #f7f4ef;
    --paper-deep: #eee8de;
    --paper-warm: #efe7dc;
    --ink: #14120f;
    --ink-2: #211d19;
    --ink-3: #2d2823;
    --muted: #6d665e;
    --muted-light: #a49a8f;
    --line: #d9d1c5;
    --line-dark: rgba(247, 244, 239, 0.16);
    --white: #fffdfa;

    --iri: linear-gradient(90deg, #5e4b8b 0%, #8f5c95 16%, #cf789e 34%, #efa28e 52%, #f2cf72 72%, #c9b9a7 86%, #7b678d 100%);
    --iri-soft: linear-gradient(90deg, rgba(94, 75, 139, 0.22), rgba(207, 120, 158, 0.22), rgba(242, 207, 114, 0.22), rgba(123, 103, 141, 0.22));

    --blue: #2c6f8a;
    --gold: #c29a37;
    --orange: #d3762e;
    --red: #a62c39;
    --red-violet: #7a3e6b;
    --cyan: #2b9795;
    --clear: #e9e2d6;

    --serif: "Bodoni Moda", "Didot", "Times New Roman", serif;
    --sans: "Manrope", "Avenir Next", "Segoe UI", system-ui, sans-serif;

    --container: 1500px;
    --gutter: clamp(20px, 4vw, 64px);
    --header-h: 78px;
    --radius: 2px;

    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Base ---------- */
html { background: var(--paper); }

body {
    min-height: 100vh;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    opacity: 0.5;
    background:
        radial-gradient(60rem 40rem at 8% -10%, rgba(207, 120, 158, 0.07), transparent 60%),
        radial-gradient(50rem 34rem at 100% 0%, rgba(242, 207, 114, 0.08), transparent 55%);
}

h1, h2, h3, h4 {
    font-family: var(--serif);
    font-weight: 400;
    line-height: 1.02;
    letter-spacing: -0.035em;
    text-wrap: balance;
}

p { color: var(--muted); text-wrap: pretty; }

strong { font-weight: 700; }

em { font-style: italic; }

hr { border: 0; border-top: 1px solid var(--line); }

.skip-link {
    position: absolute;
    left: 16px;
    top: -60px;
    z-index: 100;
    padding: 10px 16px;
    background: var(--ink);
    color: var(--paper);
    font-size: 13px;
    transition: top 180ms ease;
}
.skip-link:focus { top: 12px; }

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

.section { padding-block: clamp(72px, 9vw, 140px); }
.section--tight { padding-block: clamp(52px, 6vw, 88px); }
.section--ink { background: var(--ink); color: var(--paper); }
.section--ink p { color: rgba(247, 244, 239, 0.66); }
.section--paper-deep { background: var(--paper-deep); }

.section-rule { border-top: 1px solid var(--line); }
.rule { height: 1px; background: var(--line); }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: var(--sans);
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.19em;
    line-height: 1.4;
    text-transform: uppercase;
    color: var(--muted);
}
.eyebrow::before {
    content: "";
    width: 26px;
    height: 1px;
    background: currentColor;
    opacity: 0.55;
}
.section--ink .eyebrow { color: rgba(247, 244, 239, 0.55); }
.eyebrow--plain::before { display: none; }

.iri-rule { height: 3px; background: var(--iri); }

.display {
    font-family: var(--serif);
    font-size: clamp(2.6rem, 5.8vw, 5.6rem);
    line-height: 0.99;
    letter-spacing: -0.04em;
    font-weight: 400;
}

.display em { font-style: italic; }

.section-head {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: clamp(24px, 5vw, 80px);
    align-items: end;
    margin-bottom: clamp(36px, 5vw, 64px);
}
.section-head h2 {
    font-size: clamp(2.2rem, 4.8vw, 4.4rem);
}
.section-head p {
    max-width: 42ch;
    font-size: clamp(0.98rem, 1.2vw, 1.08rem);
}
.section-head--center {
    display: block;
    text-align: center;
    max-width: 760px;
    margin-inline: auto;
}
.section-head--center p { margin-inline: auto; }

/* ---------- Buttons & links ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 50px;
    padding: 13px 24px;
    border: 1px solid var(--ink);
    border-radius: 999px;
    font-family: var(--sans);
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    white-space: nowrap;
    transition: background 240ms var(--ease), color 240ms var(--ease), transform 240ms var(--ease), border-color 240ms var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn--dark { background: var(--ink); color: var(--paper); }
.btn--dark:hover { background: var(--ink-3); }
.btn--light { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn--light:hover { background: var(--white); }
.btn--outline { background: transparent; color: var(--ink); }
.btn--outline:hover { background: var(--ink); color: var(--paper); }
.btn--ghost-light { background: transparent; color: var(--paper); border-color: rgba(247, 244, 239, 0.4); }
.btn--ghost-light:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn--full { width: 100%; }
.btn--small { min-height: 42px; padding: 10px 18px; font-size: 10.5px; }

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    border-bottom: 1px solid var(--ink);
    padding-bottom: 5px;
    transition: gap 240ms var(--ease), opacity 240ms var(--ease);
}
.link-arrow:hover { gap: 16px; opacity: 0.72; }
.section--ink .link-arrow { border-color: var(--paper); }

.text-link {
    border-bottom: 1px solid var(--line);
    padding-bottom: 2px;
    transition: border-color 200ms ease;
}
.text-link:hover { border-color: var(--ink); }

/* ---------- Header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(247, 244, 239, 0.88);
    border-bottom: 1px solid rgba(217, 209, 197, 0.65);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    transition: box-shadow 300ms ease, background 300ms ease;
}
.site-header.is-scrolled {
    background: rgba(247, 244, 239, 0.96);
    box-shadow: 0 12px 34px rgba(20, 18, 15, 0.06);
}
.site-header::after {
    content: "";
    display: block;
    height: 3px;
    background: var(--iri);
    opacity: 0.9;
}
.site-header__inner {
    max-width: var(--container);
    margin-inline: auto;
    padding: 0 var(--gutter);
    height: var(--header-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.brand {
    display: inline-flex;
    flex-direction: column;
    gap: 5px;
    flex: 0 0 auto;
    line-height: 1;
}
.brand__name {
    font-family: var(--sans);
    font-size: clamp(0.88rem, 1.1vw, 1.05rem);
    font-weight: 800;
    letter-spacing: 0.055em;
}
.brand__rule {
    display: block;
    width: 100%;
    height: 3px;
    background: var(--iri);
}
.brand__sub {
    font-family: var(--sans);
    font-size: clamp(0.46rem, 0.62vw, 0.56rem);
    font-weight: 500;
    letter-spacing: 0.42em;
    padding-left: 1px;
    color: var(--ink);
}
.brand--footer .brand__name { color: var(--paper); }
.brand--footer .brand__sub { color: rgba(247, 244, 239, 0.72); }

.site-nav__list {
    display: flex;
    align-items: center;
    gap: clamp(18px, 2.6vw, 36px);
}
.site-nav__link {
    position: relative;
    display: inline-block;
    padding: 8px 0;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: var(--ink);
    transition: opacity 200ms ease;
}
.site-nav__link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 2px;
    height: 1px;
    background: var(--ink);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 300ms var(--ease);
}
.site-nav__link:hover::after,
.site-nav__link.is-active::after { transform: scaleX(1); }
.site-nav__link.is-active { font-weight: 700; }

.site-header__actions {
    display: flex;
    align-items: center;
    gap: 18px;
    flex: 0 0 auto;
}
.header-cta {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 8px 18px;
    border: 1px solid var(--ink);
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    transition: background 220ms ease, color 220ms ease;
}
.header-cta:hover { background: var(--ink); color: var(--paper); }

.nav-toggle {
    display: none;
    align-items: center;
    gap: 9px;
    padding: 8px 0;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}
.nav-toggle__icon {
    display: inline-flex;
    flex-direction: column;
    gap: 5px;
    width: 18px;
}
.nav-toggle__icon i {
    display: block;
    height: 1px;
    background: var(--ink);
    transition: transform 260ms var(--ease), opacity 200ms ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle__icon i:first-child { transform: translateY(3px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__icon i:last-child { transform: translateY(-3px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    padding-top: clamp(52px, 7vw, 92px);
}
.hero__inner {
    display: grid;
    grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
    gap: clamp(28px, 4.5vw, 70px);
    align-items: stretch;
    padding-bottom: clamp(36px, 5vw, 56px);
}
.hero__copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding-block: clamp(8px, 1.5vw, 20px);
}
.hero__copy h1 {
    margin-top: 22px;
    font-size: clamp(2.7rem, 4.5vw, 6rem);
    line-height: 0.94;
    letter-spacing: -0.045em;
    max-width: 16ch;
}
.hero__copy h1 em {
    font-style: italic;
    background: linear-gradient(92deg, #513b72 0%, #8d3f6d 28%, #b9564e 58%, #a47a22 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.nowrap { white-space: nowrap; }
.hero__lede {
    max-width: 46ch;
    margin-top: clamp(22px, 3vw, 34px);
    font-size: clamp(1rem, 1.25vw, 1.14rem);
    line-height: 1.6;
    color: var(--muted);
}
.hero__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 22px;
    margin-top: clamp(26px, 3.5vw, 40px);
}
.hero__note {
    max-width: 38ch;
    margin-top: 24px;
    font-size: 11.5px;
    line-height: 1.65;
    color: var(--muted);
}
.hero__note strong { color: var(--ink); font-weight: 700; }
.hero__stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-top: auto;
    padding-top: 26px;
    border-top: 1px solid var(--line);
    width: 100%;
    max-width: 430px;
}
.hero__stat span {
    display: block;
    font-family: var(--sans);
    font-weight: 300;
    font-size: clamp(1.8rem, 3vw, 2.9rem);
    line-height: 1;
    letter-spacing: -0.05em;
}
.hero__stat small {
    display: block;
    margin-top: 7px;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
    line-height: 1.4;
}

.hero__visual {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.hero__strips {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 4px;
    height: auto;
    min-height: clamp(440px, 56vh, 640px);
    flex: 1 1 auto;
}
.hero__caption {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding-top: 9px;
    font-size: 8.5px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
}
.hero__caption span { color: var(--ink); }
.hero-strip {
    position: relative;
    overflow: hidden;
    background: var(--paper-deep);
}
.hero-strip img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 900ms var(--ease);
}
.hero-strip:hover img { transform: scale(1.045); }
.hero-strip figcaption {
    position: absolute;
    left: 12px;
    right: 8px;
    bottom: 14px;
    z-index: 1;
    color: #fff;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    line-height: 1.5;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.55);
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 300ms ease, transform 300ms var(--ease);
}
.hero-strip:hover figcaption { opacity: 1; transform: translateY(0); }

/* ---------- Ticker ---------- */
.ticker {
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: var(--paper);
}
.ticker__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 58px;
    overflow: hidden;
}
.ticker__item {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--muted);
    white-space: nowrap;
}
.ticker__item::before {
    content: "";
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--iri);
}
.ticker__item strong { color: var(--ink); font-weight: 800; }

/* ---------- Pillars ---------- */
.pillars {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(24px, 4vw, 64px);
}
.pillar {
    padding-top: 24px;
    border-top: 1px solid var(--line);
}
.pillar__number {
    display: block;
    font-family: var(--serif);
    font-size: 13px;
    letter-spacing: 0.05em;
    color: var(--muted);
}
.pillar h3 {
    margin-top: 18px;
    font-size: clamp(1.5rem, 2.4vw, 2.15rem);
}
.pillar p {
    margin-top: 14px;
    max-width: 34ch;
    font-size: 14px;
    line-height: 1.72;
}

/* ---------- Range rail ---------- */
.range-section { overflow: hidden; }
.range-rail {
    display: flex;
    gap: 5px;
    overflow-x: auto;
    padding: 0 var(--gutter) 18px;
    scrollbar-width: thin;
    scrollbar-color: var(--line) transparent;
}
.range-rail::-webkit-scrollbar { height: 3px; }
.range-rail::-webkit-scrollbar-track { background: transparent; }
.range-rail::-webkit-scrollbar-thumb { background: var(--line); }
.range-tile {
    flex: 0 0 clamp(84px, 8.5vw, 118px);
}
.range-tile__image {
    position: relative;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: var(--paper-deep);
}
.range-tile__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 700ms var(--ease);
}
.range-tile:hover img { transform: scale(1.05); }
.range-tile__meta {
    display: flex;
    justify-content: space-between;
    gap: 6px;
    padding-top: 8px;
    font-size: 9.5px;
    line-height: 1.35;
}
.range-tile__code { color: var(--muted); font-weight: 600; letter-spacing: 0.04em; }
.range-tile__name { font-weight: 700; text-align: right; }
.range-foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding-top: 26px;
    border-top: 1px solid var(--line);
}
.range-foot p { font-size: 13px; }

/* ---------- Code study (dark) ---------- */
.code-study {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    background: var(--line-dark);
    border: 1px solid var(--line-dark);
}
.code-card {
    display: grid;
    grid-template-columns: 42% 58%;
    min-height: 380px;
    background: var(--ink);
}
.code-card__image {
    position: relative;
    overflow: hidden;
}
.code-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.code-card__body {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: clamp(20px, 2.6vw, 36px);
}
.code-card__label {
    margin-bottom: auto;
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: 0.17em;
    text-transform: uppercase;
    color: rgba(247, 244, 239, 0.5);
}
.code-card__code {
    font-family: var(--sans);
    font-weight: 300;
    font-size: clamp(3rem, 5vw, 5rem);
    line-height: 0.9;
    letter-spacing: -0.05em;
    color: var(--paper);
}
.code-card__code .tone {
    position: relative;
    background: var(--iri);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.code-card__name {
    margin-top: 12px;
    font-family: var(--serif);
    font-size: clamp(1.4rem, 2vw, 1.9rem);
    color: var(--paper);
}
.code-card__desc {
    margin-top: 8px;
    font-size: 12px;
    color: rgba(247, 244, 239, 0.55);
}
.code-study__note {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    padding-top: 28px;
    margin-top: 28px;
    border-top: 1px solid var(--line-dark);
}
.code-study__note p { max-width: 54ch; font-size: 13.5px; }
.code-study__note strong { color: var(--paper); font-weight: 600; }

/* ---------- Controllers ---------- */
.controllers {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
}
.controller {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    padding: clamp(20px, 2.6vw, 32px);
    background: var(--paper);
}
.controller__dot {
    flex: 0 0 auto;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background:
        radial-gradient(circle at 32% 26%, rgba(255, 255, 255, 0.55), transparent 34%),
        radial-gradient(circle at 62% 70%, var(--dot), var(--dot));
    box-shadow: inset 0 0 0 1px rgba(20, 18, 15, 0.16), 0 8px 18px rgba(20, 18, 15, 0.1);
}
.controller__name {
    font-family: var(--serif);
    font-size: 1.35rem;
    line-height: 1.1;
    letter-spacing: -0.02em;
}
.controller__desc {
    margin-top: 6px;
    font-size: 12.5px;
    line-height: 1.55;
    color: var(--muted);
}
.controller-note {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
    font-size: 11.5px;
    color: var(--muted);
}
.controller-note span {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: var(--clear);
}

/* ---------- Stats band ---------- */
.stat-band {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    background: var(--line);
    border-block: 1px solid var(--line);
}
.stat {
    padding: clamp(24px, 3.4vw, 44px) clamp(18px, 2.6vw, 32px);
    background: var(--paper);
}
.stat__value {
    font-family: var(--serif);
    font-size: clamp(3rem, 6vw, 6rem);
    line-height: 0.85;
    letter-spacing: -0.055em;
}
.stat__label {
    display: block;
    margin-top: 14px;
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--muted);
}

/* ---------- Lanes ---------- */
.lanes {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
}
.lane {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 380px;
    padding: clamp(28px, 4vw, 56px);
    background: var(--paper);
    overflow: hidden;
}
.lane--ink { background: var(--ink); color: var(--paper); }
.lane--ink p { color: rgba(247, 244, 239, 0.62); }
.lane__step {
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: 0.17em;
    text-transform: uppercase;
    color: var(--muted);
}
.lane--ink .lane__step { color: rgba(247, 244, 239, 0.55); }
.lane h3 {
    margin-top: auto;
    font-size: clamp(2rem, 3.6vw, 3.5rem);
}
.lane p {
    margin-top: 16px;
    max-width: 36ch;
    font-size: 14px;
    line-height: 1.7;
}
.lane__mark {
    position: absolute;
    top: 22px;
    right: 26px;
    font-family: var(--serif);
    font-size: clamp(4rem, 8vw, 7rem);
    line-height: 1;
    color: transparent;
    -webkit-text-stroke: 1px var(--line);
    pointer-events: none;
}
.lane--ink .lane__mark { -webkit-text-stroke-color: rgba(247, 244, 239, 0.16); }

/* ---------- Maker teaser ---------- */
.maker {
    position: relative;
    overflow: hidden;
    background: var(--ink);
    color: var(--paper);
    padding-block: clamp(72px, 9vw, 130px);
}
.maker::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(40rem 24rem at 82% 18%, rgba(207, 120, 158, 0.2), transparent 60%),
        radial-gradient(32rem 22rem at 68% 100%, rgba(242, 207, 114, 0.12), transparent 60%);
    pointer-events: none;
}
.maker__inner {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    gap: clamp(28px, 6vw, 90px);
    align-items: end;
}
.maker h2 {
    margin-top: 22px;
    font-size: clamp(2.7rem, 6vw, 6rem);
    line-height: 0.95;
}
.maker h2 em { font-style: italic; color: #e7b6c8; }
.maker__copy { max-width: 40ch; }
.maker__copy p { color: rgba(247, 244, 239, 0.66); font-size: 14px; line-height: 1.75; }
.maker__copy .maker__status {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 18px;
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: 0.17em;
    text-transform: uppercase;
    color: rgba(247, 244, 239, 0.6);
}
.maker__status::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #e7b6c8;
    box-shadow: 0 0 0 4px rgba(231, 182, 200, 0.12);
}
.maker__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.maker__infinity {
    position: absolute;
    right: -0.06em;
    bottom: -0.28em;
    font-family: var(--serif);
    font-size: clamp(14rem, 30vw, 34rem);
    line-height: 1;
    color: transparent;
    -webkit-text-stroke: 1px rgba(247, 244, 239, 0.1);
    pointer-events: none;
}

/* ---------- CTA ---------- */
.cta {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 32px;
    align-items: center;
    padding-block: clamp(52px, 7vw, 92px);
}
.cta h2 { font-size: clamp(2rem, 4.4vw, 4rem); }
.cta p { margin-top: 12px; max-width: 48ch; font-size: 14px; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Footer ---------- */
.site-footer {
    position: relative;
    background: var(--ink);
    color: var(--paper);
    padding-top: clamp(52px, 6vw, 86px);
}
.site-footer__glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--iri);
}
.site-footer__top {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.5fr) minmax(0, 0.7fr);
    gap: clamp(28px, 6vw, 90px);
    padding-bottom: clamp(40px, 5vw, 72px);
}
.site-footer__statement {
    max-width: 34ch;
    margin-top: 22px;
    color: rgba(247, 244, 239, 0.55);
    font-size: 13px;
    line-height: 1.7;
}
.footer-label {
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: 0.17em;
    text-transform: uppercase;
    color: rgba(247, 244, 239, 0.55);
}
.footer-links { display: grid; gap: 9px; margin-top: 16px; }
.footer-links a {
    font-size: 13px;
    color: rgba(247, 244, 239, 0.78);
    transition: color 200ms ease;
}
.footer-links a:hover { color: var(--paper); }
.site-footer__bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px 24px;
    padding-block: 20px;
    border-top: 1px solid rgba(247, 244, 239, 0.12);
}
.site-footer__bottom p {
    font-size: 10px;
    letter-spacing: 0.05em;
    color: rgba(247, 244, 239, 0.55);
}

/* ---------- Page hero ---------- */
.page-hero {
    padding-top: clamp(52px, 7vw, 90px);
    padding-bottom: clamp(38px, 5vw, 64px);
    border-bottom: 1px solid var(--line);
}
.page-hero__inner {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    gap: clamp(28px, 5vw, 80px);
    align-items: end;
}
.page-hero h1 {
    margin-top: 20px;
    font-size: clamp(3rem, 7vw, 7.2rem);
    line-height: 0.92;
    letter-spacing: -0.045em;
}
.page-hero h1 em { font-style: italic; }
.page-hero__lede {
    max-width: 38ch;
    margin-left: auto;
    font-size: clamp(0.98rem, 1.2vw, 1.1rem);
    line-height: 1.65;
}
.page-hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 22px;
    margin-top: 22px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: var(--muted);
}
.page-hero__meta span { display: inline-flex; align-items: center; gap: 8px; }
.page-hero__meta span::before {
    content: "";
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--iri);
}

/* ---------- Shade catalogue ---------- */
.shade-toolbar {
    position: sticky;
    top: calc(var(--header-h) + 3px);
    z-index: 40;
    background: rgba(247, 244, 239, 0.94);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
}
.shade-toolbar__inner {
    display: flex;
    align-items: center;
    gap: 22px;
    min-height: 66px;
}
.shade-search {
    position: relative;
    flex: 0 1 240px;
}
.shade-depth-select {
    display: none;
    height: 38px;
    padding: 0 30px 0 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: transparent;
    font-size: 11px;
    font-weight: 600;
    color: var(--ink);
    appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
    background-position: calc(100% - 15px) 16px, calc(100% - 10px) 16px;
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
}
.shade-search input {
    width: 100%;
    height: 38px;
    padding: 0 14px 0 36px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: transparent;
    font-size: 12px;
    outline: none;
    transition: border-color 200ms ease, background 200ms ease;
}
.shade-search input:focus { border-color: var(--ink); background: var(--white); }
.shade-search svg {
    position: absolute;
    left: 13px;
    top: 50%;
    width: 15px;
    height: 15px;
    transform: translateY(-50%);
    color: var(--muted);
    pointer-events: none;
}
.shade-chips {
    display: flex;
    gap: 7px;
    overflow-x: auto;
    scrollbar-width: none;
    padding: 12px 0;
    flex: 1 1 auto;
}
.shade-chips::-webkit-scrollbar { display: none; }
.chip-separator {
    flex: 0 0 1px;
    align-self: stretch;
    background: var(--line);
    margin: 0 4px;
}
.chip {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 32px;
    padding: 6px 13px;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--muted);
    white-space: nowrap;
    transition: background 200ms ease, color 200ms ease, border-color 200ms ease;
}
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.is-active { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.chip--depth { min-width: 34px; justify-content: center; padding-inline: 9px; }
.toolbar-count {
    flex: 0 0 auto;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
    white-space: nowrap;
}

.shade-index { padding-block: clamp(40px, 5vw, 62px) clamp(70px, 9vw, 120px); }
.shade-results-note {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: baseline;
    margin-bottom: 22px;
    font-size: 11px;
    color: var(--muted);
}
.shade-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(18px, 2.4vw, 34px) clamp(10px, 1.4vw, 20px);
}
.shade-card {
    display: block;
    min-width: 0;
}
.shade-card__image {
    position: relative;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: var(--paper-deep);
}
.shade-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 900ms var(--ease), filter 400ms ease;
}
.shade-card:hover .shade-card__image img { transform: scale(1.035); }
.shade-card__view {
    position: absolute;
    left: 10px;
    bottom: 10px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 10px;
    background: rgba(20, 18, 15, 0.82);
    color: var(--paper);
    font-size: 8.5px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 260ms ease, transform 260ms var(--ease);
}
.shade-card:hover .shade-card__view { opacity: 1; transform: translateY(0); }
.shade-card__meta {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 6px 10px;
    padding-top: 11px;
    align-items: baseline;
}
.shade-card__name {
    font-family: var(--serif);
    font-size: clamp(1.02rem, 1.3vw, 1.28rem);
    line-height: 1.12;
    letter-spacing: -0.02em;
    min-width: 0;
}
.shade-card__code {
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--muted);
    white-space: nowrap;
}
.shade-card__desc {
    grid-column: 1 / -1;
    font-size: 11.5px;
    line-height: 1.4;
    color: var(--muted);
}
.shade-card__badge {
    display: inline-block;
    margin-left: 5px;
    padding: 1px 5px;
    border: 1px solid var(--line);
    border-radius: 2px;
    font-family: var(--sans);
    font-size: 7.5px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
    vertical-align: 2px;
}
.empty-state {
    padding: 70px 0;
    text-align: center;
}
.empty-state h3 { font-size: 2rem; }
.empty-state p { margin-top: 10px; font-size: 13px; }

/* ---------- Shade dialog ---------- */
.shade-dialog {
    width: min(960px, calc(100vw - 32px));
    max-height: calc(100vh - 40px);
    padding: 0;
    border: 0;
    background: var(--paper);
    color: var(--ink);
    overflow: auto;
}
.shade-dialog::backdrop {
    background: rgba(20, 18, 15, 0.62);
    backdrop-filter: blur(8px);
}
.shade-dialog[open] { animation: dialogIn 360ms var(--ease); }
@keyframes dialogIn {
    from { opacity: 0; transform: translateY(14px) scale(0.99); }
    to { opacity: 1; transform: none; }
}
.shade-dialog__layout {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    min-height: 540px;
}
.shade-dialog__image { position: relative; background: var(--paper-deep); }
.shade-dialog__image img { width: 100%; height: 100%; object-fit: cover; }
.shade-dialog__body {
    display: flex;
    flex-direction: column;
    padding: clamp(26px, 4vw, 52px);
}
.shade-dialog__close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(247, 244, 239, 0.86);
    color: var(--ink);
    font-size: 18px;
    transition: background 200ms ease;
}
.shade-dialog__close:hover { background: var(--paper); }
.shade-dialog__code {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--muted);
}
.shade-dialog h2 {
    margin-top: 12px;
    font-size: clamp(2.6rem, 4.6vw, 4.2rem);
}
.shade-dialog__desc {
    margin-top: 12px;
    font-size: 14px;
    color: var(--muted);
}
.shade-dialog__facts {
    display: grid;
    gap: 0;
    margin-top: 30px;
    border-top: 1px solid var(--line);
}
.shade-dialog__fact {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 11px 0;
    border-bottom: 1px solid var(--line);
    font-size: 11.5px;
}
.shade-dialog__fact dt { color: var(--muted); }
.shade-dialog__fact dd { font-weight: 600; text-align: right; }
.shade-dialog__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: auto;
    padding-top: 30px;
}
.shade-dialog__note {
    margin-top: 18px;
    font-size: 10.5px;
    line-height: 1.6;
    color: var(--muted);
}

/* ---------- Calculator ---------- */
.calc-page { background: var(--paper); }
.calc-hero {
    padding-top: clamp(48px, 6vw, 76px);
    padding-bottom: clamp(30px, 3vw, 44px);
}
.calc-hero h1 {
    margin-top: 18px;
    font-size: clamp(3rem, 6.6vw, 6.6rem);
    line-height: 0.92;
}
.calc-hero p {
    max-width: 58ch;
    margin-top: 20px;
    font-size: 14px;
}
.calc-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
    gap: clamp(28px, 5vw, 76px);
    align-items: start;
    padding-bottom: clamp(70px, 9vw, 120px);
}
.calc-controls { min-width: 0; }
.calc-step {
    padding: clamp(22px, 3vw, 34px) 0;
    border-top: 1px solid var(--line);
}
.calc-step:first-child { border-top: 0; padding-top: 0; }
.calc-step__head {
    display: flex;
    align-items: baseline;
    gap: 14px;
    margin-bottom: 20px;
}
.calc-step__num {
    font-family: var(--serif);
    font-size: 12px;
    color: var(--muted);
}
.calc-step__title {
    font-family: var(--serif);
    font-size: clamp(1.55rem, 2.3vw, 2.05rem);
    letter-spacing: -0.025em;
}
.calc-step__hint {
    margin-left: auto;
    font-size: 10px;
    color: var(--muted);
    text-align: right;
}

.base-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}
.base-option { position: relative; display: block; cursor: pointer; }
.base-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.base-option__body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-height: 92px;
    padding: 18px 20px;
    border: 1px solid var(--line);
    background: transparent;
    transition: border-color 200ms ease, background 200ms ease;
}
.base-option__body strong {
    font-family: var(--serif);
    font-size: 1.25rem;
    font-weight: 500;
    letter-spacing: -0.02em;
}
.base-option__body small { font-size: 10.5px; color: var(--muted); line-height: 1.45; }
.base-option input:checked + .base-option__body {
    border-color: var(--ink);
    background: var(--white);
    box-shadow: inset 0 -3px 0 var(--iri);
}
.base-option input:focus-visible + .base-option__body {
    outline: 2px solid var(--ink);
    outline-offset: 3px;
}

.volume-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.pill {
    min-height: 40px;
    padding: 8px 17px;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--muted);
    transition: background 200ms ease, color 200ms ease, border-color 200ms ease;
}
.pill:hover { border-color: var(--ink); color: var(--ink); }
.pill.is-active { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.custom-volume {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-left: 4px;
    font-size: 11px;
    color: var(--muted);
}
.custom-volume input {
    width: 92px;
    height: 40px;
    padding: 0 12px;
    border: 1px solid var(--line);
    background: transparent;
    font-size: 13px;
    outline: none;
}
.custom-volume input:focus { border-color: var(--ink); background: var(--white); }
.calc-hint {
    margin-top: 12px;
    font-size: 10.5px;
    color: var(--muted);
}

.shade-select {
    display: flex;
    align-items: center;
    gap: 15px;
    width: 100%;
    padding: 6px;
    border: 1px solid var(--line);
    background: transparent;
    text-align: left;
    transition: border-color 200ms ease, background 200ms ease;
}
.shade-select:hover { border-color: var(--ink); background: var(--white); }
.shade-select__swatch {
    position: relative;
    flex: 0 0 54px;
    width: 54px;
    height: 54px;
    overflow: hidden;
    background: var(--paper-deep);
}
.shade-select__swatch img { width: 100%; height: 100%; object-fit: cover; }
.shade-select__text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.shade-select__text small {
    font-size: 8.5px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
}
.shade-select__text strong {
    font-family: var(--serif);
    font-size: 1.3rem;
    font-weight: 500;
    line-height: 1.15;
    letter-spacing: -0.02em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.shade-select__text em {
    font-style: normal;
    font-size: 10px;
    color: var(--muted);
}
.shade-select__action {
    margin-left: auto;
    padding-right: 12px;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: var(--muted);
}
.shade-select--empty .shade-select__swatch {
    background:
        repeating-linear-gradient(45deg, transparent 0 6px, rgba(20, 18, 15, 0.04) 6px 7px),
        var(--paper-deep);
}

.blend-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 16px;
    font-size: 11.5px;
    color: var(--muted);
}
.blend-toggle input { width: 15px; height: 15px; accent-color: var(--ink); }
.blend-panel {
    margin-top: 14px;
    padding-top: 16px;
    border-top: 1px dashed var(--line);
}
.blend-ratio {
    margin-top: 18px;
}
.blend-ratio__head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 10px;
    font-size: 10.5px;
    color: var(--muted);
}
.blend-ratio__head strong { color: var(--ink); font-size: 12px; letter-spacing: 0.04em; }
.blend-ratio input[type="range"] {
    width: 100%;
    height: 2px;
    appearance: none;
    background: var(--line);
    outline: none;
}
.blend-ratio input[type="range"]::-webkit-slider-thumb {
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--ink);
    border: 3px solid var(--paper);
    box-shadow: 0 0 0 1px var(--ink);
    cursor: grab;
}
.blend-ratio input[type="range"]::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--ink);
    border: 3px solid var(--paper);
    box-shadow: 0 0 0 1px var(--ink);
    cursor: grab;
}
.blend-names {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-top: 8px;
    font-size: 9.5px;
    color: var(--muted);
}
.blend-names span:last-child { text-align: right; }

.calc-error {
    margin-top: 14px;
    padding: 12px 14px;
    border-left: 2px solid #a62c39;
    background: rgba(166, 44, 57, 0.06);
    font-size: 11.5px;
    color: #7f2731;
}

.calc-summary { position: sticky; top: calc(var(--header-h) + 24px); }
.summary-card {
    background: var(--ink);
    color: var(--paper);
    padding: clamp(22px, 2.8vw, 34px);
    box-shadow: 0 30px 70px rgba(20, 18, 15, 0.16);
}
.summary-card .eyebrow { color: rgba(247, 244, 239, 0.55); }
.summary-card h2 {
    margin-top: 10px;
    font-size: clamp(1.8rem, 2.6vw, 2.5rem);
    line-height: 1.02;
}
.summary-card__sub {
    margin-top: 6px;
    font-size: 10.5px;
    color: rgba(247, 244, 239, 0.55);
}
.summary-numbers {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    margin-top: 26px;
    background: rgba(247, 244, 239, 0.14);
    border: 1px solid rgba(247, 244, 239, 0.14);
}
.summary-number {
    padding: 16px 14px;
    background: var(--ink);
}
.summary-number span {
    display: block;
    font-family: var(--sans);
    font-weight: 300;
    font-size: clamp(1.9rem, 3vw, 2.7rem);
    line-height: 0.95;
    letter-spacing: -0.05em;
}
.summary-number small {
    display: block;
    margin-top: 7px;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    line-height: 1.4;
    color: rgba(247, 244, 239, 0.5);
}
.summary-total {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
    padding: 13px 0;
    border-bottom: 1px solid rgba(247, 244, 239, 0.14);
    font-size: 10px;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: rgba(247, 244, 239, 0.5);
}
.summary-total strong { font-family: var(--sans); font-size: 1.05rem; font-weight: 700; letter-spacing: 0.01em; text-transform: none; color: var(--paper); }
.breakdown {
    margin-top: 20px;
    display: grid;
    gap: 0;
}
.breakdown__title {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(247, 244, 239, 0.55);
    margin-bottom: 9px;
}
.breakdown__row {
    display: grid;
    grid-template-columns: 10px minmax(0, 1fr) auto;
    align-items: center;
    gap: 9px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(247, 244, 239, 0.1);
    font-size: 11px;
}
.breakdown__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--dot);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}
.breakdown__name { color: rgba(247, 244, 239, 0.75); }
.breakdown__amount { font-weight: 600; text-align: right; color: var(--paper); }
.breakdown__amount small { font-weight: 400; color: rgba(247, 244, 239, 0.55); }
.breakdown__bar {
    grid-column: 1 / -1;
    height: 2px;
    margin-top: 2px;
    background: rgba(247, 244, 239, 0.12);
}
.breakdown__bar span { display: block; height: 100%; background: var(--dot); }
.summary-card .btn { margin-top: 22px; }
.summary-note {
    margin-top: 14px;
    font-size: 10px;
    line-height: 1.6;
    color: rgba(247, 244, 239, 0.55);
}
.summary-empty {
    padding: 40px 0 30px;
    font-size: 12px;
    color: rgba(247, 244, 239, 0.55);
    line-height: 1.7;
}

/* ---------- Shade picker dialog ---------- */
.picker-dialog {
    width: min(1100px, calc(100vw - 28px));
    max-height: calc(100vh - 36px);
    padding: 0;
    border: 0;
    background: var(--paper);
    color: var(--ink);
    overflow: hidden;
}
.picker-dialog::backdrop {
    background: rgba(20, 18, 15, 0.6);
    backdrop-filter: blur(7px);
}
.picker-dialog[open] { animation: dialogIn 320ms var(--ease); }
.picker {
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 36px);
}
.picker__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    padding: 18px 22px;
    border-bottom: 1px solid var(--line);
    background: var(--paper);
}
.picker__title {
    font-family: var(--serif);
    font-size: 1.4rem;
    margin-right: auto;
}
.picker__search { position: relative; flex: 0 1 260px; }
.picker__search input {
    width: 100%;
    height: 38px;
    padding: 0 14px 0 34px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: transparent;
    font-size: 12px;
    outline: none;
}
.picker__search input:focus { border-color: var(--ink); background: var(--white); }
.picker__search svg {
    position: absolute;
    top: 50%;
    left: 12px;
    width: 14px;
    height: 14px;
    transform: translateY(-50%);
    color: var(--muted);
    pointer-events: none;
}
.picker__close {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--line);
    font-size: 16px;
}
.picker__close:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.picker__filters {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding: 12px 22px;
    border-bottom: 1px solid var(--line);
    scrollbar-width: none;
}
.picker__filters::-webkit-scrollbar { display: none; }
.picker__grid {
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 10px;
    padding: 18px 22px 24px;
    overflow-y: auto;
}
.picker-item {
    display: block;
    text-align: left;
    min-width: 0;
}
.picker-item__image {
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: var(--paper-deep);
    outline: 1px solid transparent;
    transition: outline-color 180ms ease;
}
.picker-item:hover .picker-item__image { outline-color: var(--ink); }
.picker-item img { width: 100%; height: 100%; object-fit: cover; }
.picker-item__name {
    display: block;
    margin-top: 5px;
    font-size: 9.5px;
    font-weight: 600;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.picker-item__code {
    display: block;
    font-size: 8px;
    color: var(--muted);
    letter-spacing: 0.04em;
}
.picker-item.is-pending .picker-item__code::after {
    content: " · pending";
    color: #a62c39;
}
.picker__empty {
    grid-column: 1 / -1;
    padding: 40px 0;
    text-align: center;
    font-size: 12px;
    color: var(--muted);
}

/* ---------- System page ---------- */
.system-hero {
    padding-top: clamp(52px, 7vw, 92px);
    padding-bottom: clamp(40px, 5vw, 70px);
}
.system-hero h1 {
    margin-top: 20px;
    font-size: clamp(3rem, 7vw, 7.4rem);
    line-height: 0.92;
}
.system-hero h1 em { font-style: italic; }
.system-hero__lede {
    max-width: 52ch;
    margin-top: 24px;
    font-size: clamp(1rem, 1.3vw, 1.15rem);
    line-height: 1.65;
}
.system-strips {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    margin-top: clamp(36px, 5vw, 60px);
}
.system-strips figure { overflow: hidden; background: var(--paper-deep); }
.system-strips img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
}
.system-strips figcaption {
    padding-top: 9px;
    font-size: 9.5px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
}

.chapter {
    display: grid;
    grid-template-columns: minmax(150px, 0.28fr) minmax(0, 1fr);
    gap: clamp(24px, 5vw, 80px);
    padding-block: clamp(56px, 7vw, 100px);
    border-top: 1px solid var(--line);
}
.chapter__aside { position: sticky; top: calc(var(--header-h) + 28px); align-self: start; }
.chapter__num {
    font-family: var(--serif);
    font-size: 11px;
    color: var(--muted);
}
.chapter__label {
    margin-top: 8px;
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--ink);
}
.chapter__content { min-width: 0; }
.chapter__content > h2 {
    max-width: 18ch;
    font-size: clamp(2.2rem, 4.6vw, 4.4rem);
}
.chapter__content > p {
    max-width: 62ch;
    margin-top: 20px;
    font-size: 14px;
    line-height: 1.75;
}
.chapter__content > p.lede {
    font-size: clamp(1.05rem, 1.5vw, 1.3rem);
    line-height: 1.6;
    color: var(--ink);
}
.chapter__content .display { margin-bottom: 18px; }

.component-list {
    margin-top: 34px;
    border-top: 1px solid var(--line);
}
.component {
    display: grid;
    grid-template-columns: 54px minmax(120px, 0.3fr) minmax(0, 1fr);
    gap: 18px;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
}
.component__dot {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background:
        radial-gradient(circle at 32% 26%, rgba(255, 255, 255, 0.6), transparent 35%),
        radial-gradient(circle at 62% 70%, var(--dot), var(--dot));
    box-shadow: inset 0 0 0 1px rgba(20, 18, 15, 0.16);
}
.component__name { font-family: var(--serif); font-size: 1.35rem; letter-spacing: -0.02em; }
.component__desc { font-size: 12.5px; color: var(--muted); line-height: 1.55; }
.component--clear .component__dot {
    background: var(--clear);
    box-shadow: inset 0 0 0 1px var(--line);
}

.process {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    margin-top: 34px;
    background: var(--line);
    border: 1px solid var(--line);
}
.process__step {
    padding: clamp(18px, 2.4vw, 28px);
    background: var(--paper);
}
.process__step span {
    font-family: var(--serif);
    font-size: 11px;
    color: var(--muted);
}
.process__step h3 {
    margin-top: 24px;
    font-size: clamp(1.3rem, 1.9vw, 1.7rem);
}
.process__step p { margin-top: 10px; font-size: 11.5px; line-height: 1.6; }

.note-box {
    margin-top: 34px;
    padding: 22px 24px;
    border-left: 3px solid var(--iri);
    background: var(--paper-deep);
    font-size: 12.5px;
    line-height: 1.7;
    color: var(--muted);
}
.note-box strong { color: var(--ink); }

/* ---------- Contact ---------- */
.contact-page { background: var(--paper); }
.contact-hero {
    padding-top: clamp(52px, 7vw, 92px);
    padding-bottom: clamp(40px, 5vw, 64px);
    border-bottom: 1px solid var(--line);
}
.contact-hero h1 {
    margin-top: 20px;
    font-size: clamp(3rem, 7.5vw, 8rem);
    line-height: 0.9;
}
.contact-hero h1 em { font-style: italic; }
.contact-hero p {
    max-width: 48ch;
    margin-top: 24px;
    font-size: 15px;
    line-height: 1.7;
}
.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: clamp(28px, 5vw, 80px);
    padding-block: clamp(50px, 7vw, 100px);
}
.contact-email {
    display: block;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--line);
}
.contact-email span {
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--muted);
}
.contact-email a {
    display: block;
    margin-top: 12px;
    font-family: var(--serif);
    font-size: clamp(1.35rem, 2.55vw, 2.25rem);
    line-height: 1.1;
    letter-spacing: -0.03em;
    overflow-wrap: anywhere;
    border-bottom: 1px solid transparent;
    transition: border-color 200ms ease;
}
.contact-email a:hover { border-color: var(--ink); }
.contact-lines {
    display: grid;
    gap: 0;
    margin-top: 34px;
    border-top: 1px solid var(--line);
}
.contact-line {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 20px;
    padding: 17px 0;
    border-bottom: 1px solid var(--line);
}
.contact-line__title {
    font-family: var(--serif);
    font-size: 1.35rem;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--ink);
}
.contact-line p { margin-top: 4px; font-size: 11.5px; color: var(--muted); }
.contact-line a {
    flex: 0 0 auto;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    border-bottom: 1px solid var(--ink);
    padding-bottom: 3px;
}
.contact-line a:hover { opacity: 0.6; }
.contact-aside {
    background: var(--ink);
    color: var(--paper);
    padding: clamp(26px, 4vw, 48px);
}
.contact-aside .eyebrow { color: rgba(247, 244, 239, 0.55); }
.contact-aside h2 {
    margin-top: 18px;
    font-size: clamp(2rem, 3.5vw, 3.2rem);
}
.contact-aside p {
    margin-top: 16px;
    color: rgba(247, 244, 239, 0.62);
    font-size: 13px;
    line-height: 1.75;
}
.contact-aside ul {
    margin-top: 26px;
    display: grid;
    gap: 9px;
    font-size: 12px;
    color: rgba(247, 244, 239, 0.72);
}
.contact-aside li { display: flex; gap: 10px; }
.contact-aside li::before { content: "—"; color: rgba(247, 244, 239, 0.3); }
.contact-aside .btn { margin-top: 30px; }

/* Anchor offset for sticky header */
[id] { scroll-margin-top: calc(var(--header-h) + 24px); }

/* ---------- Reveal ---------- */
.js [data-reveal] {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 800ms var(--ease), transform 800ms var(--ease);
}
.js [data-reveal].is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .js [data-reveal] { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
    .site-nav__list { gap: 18px; }
    .shade-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .picker__grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
    .calc-layout { grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr); gap: 36px; }
}

@media (max-width: 980px) {
    :root { --header-h: 70px; }
    .site-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        display: none;
        background: var(--paper);
        border-bottom: 1px solid var(--line);
        box-shadow: 0 24px 40px rgba(20, 18, 15, 0.08);
    }
    .site-nav.is-open { display: block; }
    .site-nav__list {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 10px var(--gutter) 18px;
    }
    .site-nav__link {
        display: block;
        padding: 13px 0;
        border-bottom: 1px solid var(--line);
        font-size: 14px;
    }
    .site-nav__link::after { display: none; }
    .nav-toggle { display: inline-flex; }
    .header-cta { display: none; }

    .hero__inner { grid-template-columns: 1fr; gap: 34px; }
    .hero__note { max-width: 52ch; }
    .hero__stats { margin-top: 28px; }
    .hero__copy h1 { max-width: none; }
    .hero__strips { height: clamp(320px, 58vw, 500px); min-height: 0; flex: 0 0 auto; }

    .section-head { grid-template-columns: 1fr; align-items: start; gap: 18px; }
    .section-head p { max-width: 52ch; }
    .pillars { grid-template-columns: 1fr; gap: 26px; }
    .pillar { padding-top: 18px; }
    .pillar h3 { margin-top: 10px; }
    .pillar p { margin-top: 8px; }

    .code-study { grid-template-columns: 1fr; }
    .code-card { min-height: 300px; }
    .code-study__note { flex-direction: column; align-items: flex-start; gap: 16px; }

    .controllers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .stat-band { grid-template-columns: 1fr; }
    .stat { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; }
    .stat__label { margin-top: 0; }

    .lanes { grid-template-columns: 1fr; }
    .lane { min-height: 300px; }

    .maker__inner { grid-template-columns: 1fr; align-items: start; }
    .maker__copy { max-width: 52ch; }
    .cta { grid-template-columns: 1fr; gap: 24px; }
    .site-footer__top { grid-template-columns: 1fr 1fr; }
    .site-footer__brand { grid-column: 1 / -1; }

    .page-hero__inner { grid-template-columns: 1fr; gap: 22px; }
    .page-hero__lede { margin-left: 0; max-width: 52ch; }

    .shade-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .shade-toolbar__inner { flex-wrap: wrap; gap: 9px; padding-block: 9px; }
    .shade-search { flex: 1 1 100%; }
    .shade-depth-select { display: block; flex: 0 0 auto; }
    .shade-chips { order: 3; flex-basis: 100%; padding: 2px 0 0; }
    .chip--depth,
    .chip-separator { display: none; }
    .toolbar-count { order: 2; margin-left: auto; }

    .chapter { grid-template-columns: 1fr; gap: 18px; }
    .chapter__aside { position: static; display: flex; align-items: baseline; gap: 12px; }
    .chapter__label { margin-top: 0; }

    .contact-grid { grid-template-columns: 1fr; }

    .calc-layout { grid-template-columns: 1fr; gap: 30px; }
    .calc-summary { position: static; }
    .calc-summary .summary-card { max-width: 560px; }
    .shade-dialog__layout { grid-template-columns: 1fr; }
    .shade-dialog__image { aspect-ratio: 16 / 10; }
    .shade-dialog__image img { object-position: center 30%; }
    .shade-dialog__body { min-height: 0; }
}

@media (max-width: 720px) {
    :root { --gutter: 20px; }
    body { font-size: 15px; }
    .hero__copy h1 { font-size: clamp(2.75rem, 12vw, 4.6rem); }
    .hero__strips {
        grid-template-columns: repeat(7, 1fr);
        gap: 3px;
        height: 46vh;
        min-height: 280px;
        padding-inline: 3px;
    }
    .hero-strip figcaption { display: none; }
    .ticker__inner { justify-content: flex-start; overflow-x: auto; gap: 26px; }
    .ticker__inner::-webkit-scrollbar { display: none; }

    .range-rail { gap: 4px; padding-bottom: 12px; }
    .range-tile { flex-basis: 78px; }

    .code-card { grid-template-columns: 1fr; }
    .code-card__image { aspect-ratio: 16 / 10; }
    .code-card__body { min-height: 220px; padding: 22px; }
    .code-card__label { margin-bottom: 20px; }

    .controllers { grid-template-columns: 1fr; }
    .controller { align-items: center; }
    .component { grid-template-columns: 44px 1fr; }
    .component__desc { grid-column: 2 / -1; }

    .process { grid-template-columns: 1fr; }
    .process__step h3 { margin-top: 12px; }

    .shade-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 9px; }
    .shade-card__name { font-size: 1rem; }
    .shade-card__view { display: none; }
    .shade-card__desc { font-size: 10.5px; }

    .site-footer__top { grid-template-columns: 1fr; gap: 30px; }

    .shade-dialog__body { padding: 24px 20px 28px; }
    .shade-dialog h2 { font-size: 2.6rem; }
    .shade-dialog__actions .btn { width: 100%; }

    .picker__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .picker__head { padding: 14px; }
    .picker__filters { padding-inline: 14px; }
    .picker__grid { padding: 14px; }
    .picker__title { width: 100%; }

    .base-options { grid-template-columns: 1fr; }
    .calc-step__hint { display: none; }
    .summary-numbers { grid-template-columns: 1fr 1fr; }

    .contact-line { flex-direction: column; align-items: flex-start; gap: 8px; }
    .contact-hero h1 { font-size: clamp(2.8rem, 14vw, 5rem); }
}

@media (max-width: 440px) {
    .hero__stats { grid-template-columns: repeat(3, 1fr); gap: 8px; }
    .hero__stat small { font-size: 8px; }
    .shade-card__name { font-size: 0.95rem; }
    .shade-card__code { font-size: 9px; }
    .header-cta { display: none; }
    .brand__sub { letter-spacing: 0.32em; }
    .summary-numbers { grid-template-columns: 1fr; }
}

/* ---------- Utilities & small states ---------- */
.is-visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}
html.dialog-open,
body:has(dialog[open]) { overflow: hidden; }
.picker-item.is-selected .picker-item__image {
    outline: 2px solid var(--ink);
    outline-offset: -2px;
}
.picker-item.is-selected .picker-item__name { font-weight: 800; }
.summary-card .calc-error {
    background: rgba(255, 255, 255, 0.06);
    border-left-color: #e79aa2;
    color: #f4d4d6;
}

/* ---------- System: code anatomy & family grid ---------- */
.code-anatomy {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) 190px;
    gap: clamp(20px, 3vw, 40px);
    align-items: center;
    margin-top: 34px;
    padding: clamp(20px, 3vw, 34px);
    border: 1px solid var(--line);
    background: var(--paper-deep);
}
.code-anatomy__code {
    font-family: var(--sans);
    font-weight: 300;
    font-size: clamp(4.6rem, 9vw, 8.5rem);
    line-height: 0.82;
    letter-spacing: -0.05em;
    white-space: nowrap;
}
.code-anatomy__code::after {
    content: "";
    display: block;
    width: 100%;
    height: 3px;
    margin-top: 14px;
    background: var(--iri);
}
.code-anatomy__legend {
    display: grid;
    gap: 18px;
    padding-left: clamp(18px, 2.4vw, 30px);
    border-left: 1px solid var(--line);
}
.code-anatomy__legend div {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 3px 12px;
    align-items: baseline;
}
.code-anatomy__legend strong {
    font-family: var(--sans);
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.02em;
}
.code-anatomy__legend span {
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}
.code-anatomy__legend em {
    grid-column: 2 / -1;
    font-style: normal;
    font-size: 11px;
    line-height: 1.5;
    color: var(--muted);
}
.code-anatomy__example {
    display: grid;
    gap: 9px;
}
.code-anatomy__example img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    max-height: 190px;
}
.code-anatomy__example p { display: grid; gap: 2px; font-size: 10.5px; color: var(--muted); }
.code-anatomy__example strong { color: var(--ink); font-weight: 700; }

.family-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    margin-top: 34px;
    border: 1px solid var(--line);
    background: var(--line);
}
.family-item {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    padding: 15px 18px;
    background: var(--paper);
    font-size: 12.5px;
    transition: background 200ms ease;
}
.family-item:hover { background: var(--paper-deep); }
.family-item strong {
    font-family: var(--serif);
    font-size: 1.35rem;
    font-weight: 400;
    color: var(--muted);
}
.family-item--all {
    background: var(--ink);
    color: var(--paper);
}
.family-item--all:hover { background: var(--ink-3); }
.family-item--all strong { color: var(--paper); }
.chapter__note {
    max-width: 62ch;
    margin-top: 22px;
    font-size: 12px;
    line-height: 1.7;
    color: var(--muted);
}

@media (max-width: 980px) {
    .code-anatomy { grid-template-columns: auto minmax(0, 1fr); }
    .code-anatomy__example { grid-column: 1 / -1; grid-template-columns: 100px minmax(0, 1fr); align-items: center; }
    .code-anatomy__example img { max-height: 140px; }
}

@media (max-width: 640px) {
    .code-anatomy { grid-template-columns: 1fr; }
    .code-anatomy__legend { padding-left: 0; padding-top: 18px; border-left: 0; border-top: 1px solid var(--line); }
    .family-grid { grid-template-columns: 1fr; }
}

/* Inline wrappers used inside links/buttons need block layout for aspect-ratio. */
.shade-card__image,
.range-tile__image,
.picker-item__image,
.shade-select__swatch { display: block; }

fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
