/* ============================================================
   AERISTO — Design System
   A leather house, not a manufacturer.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400;1,500&family=JetBrains+Mono:wght@300;400;500&display=swap');

/* ---- Tokens ---------------------------------------------- */
:root {
    --bone:        #F4F4EF;
    --bone-deep:   #ECE9E1;
    --bone-deeper: #E2DED4;
    --tuscany:     #7F2320;
    --tuscany-bri: #9A2C29;
    --tarmac:      #2E2D2B;
    --tarmac-soft: #58564F;
    --tarmac-mute: #6B685F;   /* WCAG-AA on bone (~5.1:1) for small mono labels, captions, eyebrows */
    --navy:        #1F2D44;
    --hairline:    rgba(46, 45, 43, 0.18);
    --hairline-bright: rgba(46, 45, 43, 0.32);

    --font-sans:    'Inter', -apple-system, system-ui, sans-serif;
    --font-display: 'Cormorant Garamond', 'Cormorant', Georgia, serif;
    --font-italic:  'Cormorant Garamond', Georgia, serif;
    --font-mono:    'JetBrains Mono', 'SF Mono', Menlo, monospace;

    --gutter: clamp(24px, 4vw, 64px);
    --maxw:   1680px;

    --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
    --ease-long: cubic-bezier(0.7, 0, 0.3, 1);

    --radius-1: 2px;  /* chips, buttons, pills */
    --radius-2: 3px;  /* panels, surfaces, inputs */
}

/* ---- Display headline rule -----------------------------
   Per BRAND BOOK ADDENDUM v1.4 — display face is Cormorant
   Garamond (Google), set in MIXED CASE source + the
   `font-variant: small-caps` OpenType feature. The result:
   word-initial letter remains full-height (high cap), all
   other letters render as small caps. Generously tracked,
   per the brand book specimen "Aptos Serif w/ smcp".
   Italic Cormorant survives as the single-word pivot,
   rendered as a true italic (NOT small caps).
   ------------------------------------------------------- */
.headline, .h2, .h3,
.hero-headline, .scene-headline, .lib-title, .craft-hero h1,
.feature-headline, .article-title, .masthead-title, .part-title,
.pf-masthead-title, .pf-feat-title, .pf-card-title, .pf-panel-title, .jp-title,
.invite h2, .lab-header h1, .next .next-title,
.entry-j-title, .entry .name, .col-block .col-title, .jc .title,
.j-insitu h3, .j-band .band-title, .j-edge .edge-title, .j-subscribe .js-title,
.pillar h3, .archive-card .moniker, .specimen-name,
.feature-card-id em, .panel-name, .article-body h2,
.foot-mark, .invite-email,
.movements-total .total, .movement .m-title, .pull,
.toc-row .sector {
    font-family: var(--font-display) !important;
    font-weight: 500 !important;
    font-variant: small-caps !important;
    font-variant-caps: small-caps !important;
    font-feature-settings: "smcp" 1, "c2sc" 0, "kern" 1, "liga" 1 !important;
    text-transform: none !important;
    letter-spacing: 0.04em;
}

/* Single-italic Cormorant pivot word stays italic — NOT small caps.
   The italic word is the emotional weight, set as a proper italic. */
.headline em, .h2 em, .h3 em,
.hero-headline em, .scene-headline em, .lib-title em,
.craft-hero h1 em, .feature-headline em, .article-title em,
.masthead-title em, .part-title em, .invite h2 em,
.pf-masthead-title em, .pf-feat-title em, .pf-card-title em, .pf-panel-title em, .jp-title em,
.lab-header h1 em, .next .next-title em, .entry-j-title em,
.entry .name em, .col-block .col-title em, .jc .title em,
.j-insitu h3 em, .j-band .band-title em, .j-edge .edge-title em, .j-subscribe .js-title em,
.pillar h3 em, .archive-card .moniker em, .article-body h2 em,
.foot-mark em, .invite-email em,
.movements-total .total em, .movement .m-title em, .pull em,
.toc-row .sector em, .specimen-name em, .panel-name em {
    font-family: var(--font-display) !important;
    font-style: italic !important;
    font-weight: 400 !important;
    font-variant: normal !important;
    font-variant-caps: normal !important;
    font-feature-settings: "kern" 1, "liga" 1 !important;
    letter-spacing: 0;
    color: var(--tuscany);
}

/* Body italics, blockquotes, deks — true italic, not small caps. */
.article-body blockquote, .feature-dek, .article-dek, .closing-line {
    font-family: var(--font-italic) !important;
    font-style: italic !important;
    font-weight: 400 !important;
    font-variant: normal !important;
    text-transform: none !important;
    letter-spacing: 0;
}

/* ---- Reset / Base --------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

body {
    font-family: var(--font-sans);
    font-weight: 400;
    font-size: 15px;
    line-height: 1.55;
    color: var(--tarmac);
    background: var(--bone);
    overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img, video { max-width: 100%; display: block; }
button { font-family: inherit; background: none; border: none; cursor: pointer; color: inherit; }

::selection { background: var(--tuscany); color: var(--bone); }

/* ---- Typography ----------------------------------------- */
.eyebrow {
    font-family: var(--font-sans);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--tarmac-soft);
}

.mono {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.04em;
    color: var(--tarmac-soft);
}

.mono-sm {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.08em;
    color: var(--tarmac-soft);
    text-transform: uppercase;
}

.headline {
    font-family: var(--font-sans);
    font-weight: 300;
    font-size: clamp(40px, 6.4vw, 96px);
    line-height: 1.02;
    letter-spacing: -0.02em;
    text-transform: lowercase;
    color: var(--tarmac);
}

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

.h2 {
    font-family: var(--font-sans);
    font-weight: 300;
    font-size: clamp(28px, 3.6vw, 52px);
    line-height: 1.08;
    letter-spacing: -0.015em;
    text-transform: lowercase;
}
.h2 em { font-family: var(--font-italic); font-style: italic; font-weight: 400; }

.h3 {
    font-family: var(--font-sans);
    font-weight: 400;
    font-size: clamp(18px, 1.5vw, 22px);
    line-height: 1.25;
    letter-spacing: -0.005em;
}
.h3 em { font-family: var(--font-italic); font-style: italic; font-weight: 400; }

.lede {
    font-family: var(--font-sans);
    font-weight: 400;
    font-size: clamp(16px, 1.15vw, 18px);
    line-height: 1.55;
    color: var(--tarmac);
    max-width: 52ch;
}

.body-prose {
    font-size: 15px;
    line-height: 1.6;
    color: var(--tarmac-soft);
    max-width: 60ch;
}

.italic-note {
    font-family: var(--font-italic);
    font-style: italic;
    font-weight: 400;
    font-size: clamp(18px, 1.3vw, 22px);
    line-height: 1.4;
    color: var(--tarmac);
}

/* ---- Layout primitives ---------------------------------- */
.shell {
    width: 100%;
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.rule {
    border: 0;
    border-top: 1px solid var(--hairline);
    margin: 0;
}

.rule-tuscany {
    border-top-color: var(--tuscany);
    border-top-width: 1px;
}

/* ---- Site chrome (top nav) -----------------------------
   Frosted always. Bone-tinted translucent bar with backdrop
   blur — reads against either the dark hero video or the
   bone body. When scrolled past the hero, the tint deepens.
   ------------------------------------------------------- */
.chrome {
    position: fixed;
    top: 0; left: 0; right: 0;
    padding: 22px var(--gutter) 18px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    z-index: 100;
    background: rgba(244, 244, 239, 0.72);
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    border-bottom: 1px solid rgba(46, 45, 43, 0.10);
    transition: background 0.4s var(--ease), border-color 0.4s var(--ease);
}
.chrome.is-scrolled {
    background: rgba(244, 244, 239, 0.92);
    border-bottom-color: var(--hairline);
}

.mark {
    display: inline-flex;
    align-items: center;
    line-height: 0;
    transition: opacity 0.3s var(--ease);
}
.mark:hover { opacity: 0.78; }
.mark img.mark-svg {
    height: 28px;
    width: auto;
    display: block;
}
@media (max-width: 540px) {
    .mark img.mark-svg { height: 22px; }
}

.nav-primary {
    display: flex;
    gap: clamp(20px, 2.6vw, 44px);
    justify-content: center;
}
.nav-primary a {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--tarmac);
    position: relative;
    padding: 4px 0;
    transition: color 0.3s var(--ease);
}
.nav-primary a::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: -2px;
    height: 1px;
    background: var(--tuscany);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s var(--ease);
}
.nav-primary a:hover::after,
.nav-primary a.is-active::after { transform: scaleX(1); }

/* ---- Studio — primary-nav dropdown group --------------
   "Studio" parents Journal + Portfolio. Pure CSS reveal on
   hover + :focus-within (keyboard-accessible: the hidden
   menu uses visibility:hidden so links leave the tab order
   until the trigger is focused). A small ::before bridge
   spans the gap so the menu doesn't drop on mouse travel.
   The .chrome header doesn't clip overflow, so the absolute
   menu is free to escape the bar. ------------------------ */
.nav-group { position: relative; display: inline-flex; }
.nav-group-trigger {
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--tarmac);
    background: none;
    border: 0;
    cursor: pointer;
    padding: 4px 0;
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    line-height: 1.4;
    transition: color 0.3s var(--ease);
}
.nav-group-trigger::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: -2px;
    height: 1px;
    background: var(--tuscany);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s var(--ease);
}
.nav-group:hover .nav-group-trigger,
.nav-group:focus-within .nav-group-trigger { color: var(--tuscany); }
.nav-group:hover .nav-group-trigger::after,
.nav-group:focus-within .nav-group-trigger::after,
.nav-group-trigger.is-active::after { transform: scaleX(1); }
.nav-group-caret {
    font-size: 8px;
    color: var(--tarmac-soft);
    display: inline-block;
    transform: translateY(1px);
    transition: transform 0.3s var(--ease), color 0.3s var(--ease);
}
.nav-group:hover .nav-group-caret,
.nav-group:focus-within .nav-group-caret { transform: translateY(1px) rotate(180deg); color: var(--tuscany); }

.nav-group-menu {
    position: absolute;
    top: calc(100% + 14px);
    left: 50%;
    transform: translateX(-50%) translateY(-6px);
    min-width: 172px;
    display: flex;
    flex-direction: column;
    padding: 10px 0;
    background: rgba(244, 244, 239, 0.97);
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    border: 1px solid var(--hairline);
    box-shadow: 0 18px 44px -26px rgba(46, 45, 43, 0.5);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0s linear 0.3s;
    z-index: 120;
}
.nav-group-menu::before {
    content: '';
    position: absolute;
    top: -14px; left: 0; right: 0; height: 14px;
}
.nav-group:hover .nav-group-menu,
.nav-group:focus-within .nav-group-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0s linear 0s;
}
.nav-group-menu a {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--tarmac);
    padding: 9px 22px;
    white-space: nowrap;
    transition: color 0.25s var(--ease), background 0.25s var(--ease);
}
.nav-group-menu a:hover,
.nav-group-menu a:focus-visible,
.nav-group-menu a.is-active { color: var(--tuscany); background: rgba(46, 45, 43, 0.045); outline: none; }

.chrome-meta {
    text-align: right;
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.12em;
    color: var(--tarmac-soft);
    text-transform: uppercase;
}

/* Mobile nav adapt */
@media (max-width: 820px) {
    .chrome { grid-template-columns: 1fr auto; padding: 16px var(--gutter); }
    .nav-primary { display: none; }
    .chrome-meta { display: none; }
}

/* ---- Mobile index — toggle + full-screen overlay ------
   Editorial mobile navigation. Replaces the hidden primary
   nav below 820px. No hamburger icon — a labelled "INDEX +"
   button matches the existing monospace chrome language.
   Opens a full-bone overlay with section-numbered Cormorant
   links, hairlines drawing in, atelier sig at the bottom.
   ------------------------------------------------------- */
.nav-toggle {
    display: none;
    align-items: center;
    gap: 10px;
    padding: 4px 0;
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--tarmac);
    background: none;
    border: 0;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s var(--ease);
    -webkit-tap-highlight-color: transparent;
}
.nav-toggle:hover { color: var(--tuscany); }
.nav-toggle .nav-toggle-mark {
    font-family: var(--font-mono);
    font-size: 14px;
    line-height: 1;
    color: var(--tarmac-soft);
    transition: transform 0.4s var(--ease), color 0.3s var(--ease);
    display: inline-block;
    width: 12px;
    text-align: center;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-mark {
    transform: rotate(45deg);
    color: var(--tuscany);
}

@media (max-width: 820px) {
    .nav-toggle { display: inline-flex; }
}

.nav-overlay {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(244, 244, 239, 0.98);
    backdrop-filter: blur(24px) saturate(140%);
    -webkit-backdrop-filter: blur(24px) saturate(140%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.5s var(--ease-long), visibility 0s linear 0.5s;
}
.nav-overlay.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: opacity 0.5s var(--ease-long), visibility 0s linear 0s;
}
.nav-overlay-inner {
    position: relative;
    height: 100%;
    width: 100%;
    padding: 90px var(--gutter) 32px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}
.nav-overlay-head {
    flex: 0 0 auto;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--hairline);
    transform-origin: left;
    transform: scaleX(0);
    transition: transform 1s var(--ease-long) 0.10s;
}
.nav-overlay.is-open .nav-overlay-head { transform: scaleX(1); }
.nav-overlay-head .label {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--tarmac-mute);
    display: block;
    transform-origin: left;
    transform: scaleX(1);
}

.nav-overlay-list {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    padding: 12px 0;
    justify-content: center;
    gap: 0;
}
.nav-overlay-link {
    display: grid;
    grid-template-columns: 56px 1fr;
    align-items: baseline;
    gap: 18px;
    padding: 22px 0;
    border-bottom: 1px solid var(--hairline);
    color: var(--tarmac);
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.6s var(--ease-long), transform 0.6s var(--ease-long), color 0.3s var(--ease);
}
.nav-overlay.is-open .nav-overlay-link {
    opacity: 1;
    transform: translateY(0);
}
.nav-overlay.is-open .nav-overlay-link:nth-child(1) { transition-delay: 0.18s, 0.18s, 0s; }
.nav-overlay.is-open .nav-overlay-link:nth-child(2) { transition-delay: 0.24s, 0.24s, 0s; }
.nav-overlay.is-open .nav-overlay-link:nth-child(3) { transition-delay: 0.30s, 0.30s, 0s; }
.nav-overlay.is-open .nav-overlay-link:nth-child(4) { transition-delay: 0.36s, 0.36s, 0s; }
.nav-overlay.is-open .nav-overlay-link:nth-child(5) { transition-delay: 0.42s, 0.42s, 0s; }
.nav-overlay.is-open .nav-overlay-link:nth-child(6) { transition-delay: 0.48s, 0.48s, 0s; }

.nav-overlay-link .num {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.16em;
    color: var(--tarmac-mute);
    text-transform: uppercase;
}
.nav-overlay-link .name {
    font-family: var(--font-display);
    font-weight: 500;
    font-variant: small-caps;
    font-feature-settings: "smcp" 1, "kern" 1, "liga" 1;
    letter-spacing: 0.04em;
    font-size: clamp(36px, 9vw, 56px);
    line-height: 1;
    color: var(--tarmac);
}
.nav-overlay-link .name em {
    font-family: var(--font-italic);
    font-style: italic;
    font-weight: 400;
    font-variant: normal;
    color: var(--tuscany);
    letter-spacing: 0;
}
.nav-overlay-link:hover .name,
.nav-overlay-link.is-active .name { color: var(--tuscany); }
.nav-overlay-link.is-active .num { color: var(--tuscany); }

.nav-overlay-link:focus { outline: none; }
.nav-overlay-link:focus-visible {
    outline: none;
}
.nav-overlay-link:focus-visible .num { color: var(--tuscany); }
.nav-overlay-link:focus-visible .name { color: var(--tuscany); }
.nav-overlay-link:focus-visible::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--tuscany);
}
.nav-overlay-link { position: relative; }

.nav-toggle:focus { outline: none; }
.nav-toggle:focus-visible {
    outline: 1px solid var(--tuscany);
    outline-offset: 6px;
}

.nav-overlay-foot {
    flex: 0 0 auto;
    padding-top: 22px;
    border-top: 1px solid var(--hairline);
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 8px 16px;
    transform-origin: left;
    transform: scaleX(0);
    transition: transform 1s var(--ease-long) 0.48s;
}
.nav-overlay.is-open .nav-overlay-foot { transform: scaleX(1); }
.nav-overlay-foot .sig {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--tarmac-soft);
}
.nav-overlay-foot .latin {
    font-family: var(--font-italic);
    font-style: italic;
    font-size: 13px;
    color: var(--tarmac-soft);
}

@media (min-width: 821px) {
    .nav-overlay { display: none; }
}

/* Lock body scroll while overlay is open + lift chrome above overlay so
   the toggle stays tappable as the close affordance. */
body.nav-open {
    overflow: hidden;
}
body.nav-open .chrome,
body.nav-open .chrome.is-scrolled {
    z-index: 201;
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border-bottom-color: transparent !important;
}

/* Reduced motion — overlay snaps */
@media (prefers-reduced-motion: reduce) {
    .nav-overlay,
    .nav-overlay-head,
    .nav-overlay-link,
    .nav-overlay-foot,
    .nav-group-menu,
    .nav-group-caret {
        transition-duration: 0.01ms !important;
        transition-delay: 0s !important;
    }
}

/* ---- Buttons / CTAs ------------------------------------ */
.cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--tarmac);
    border-bottom: 1px solid var(--tarmac);
    padding-bottom: 6px;
    transition: gap 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.cta:hover { gap: 16px; color: var(--tuscany); border-color: var(--tuscany); }

.cta-quiet {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--tarmac-soft);
    transition: color 0.3s var(--ease), gap 0.3s var(--ease);
}
.cta-quiet:hover { color: var(--tuscany); gap: 16px; }

.cta .arrow, .cta-quiet .arrow {
    display: inline-block;
    transition: transform 0.3s var(--ease);
}
.cta:hover .arrow, .cta-quiet:hover .arrow { transform: translateX(4px); }

/* ---- Reveal animation hooks ---------------------------- */
.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 1s var(--ease-long), transform 1s var(--ease-long);
}
.reveal.is-in {
    opacity: 1;
    transform: translateY(0);
}
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }
.reveal[data-delay="4"] { transition-delay: 0.32s; }
.reveal[data-delay="5"] { transition-delay: 0.40s; }
.reveal[data-delay="6"] { transition-delay: 0.48s; }

.rule-draw {
    transform-origin: left;
    transform: scaleX(0);
    transition: transform 1.6s var(--ease-long);
}
.rule-draw.is-in { transform: scaleX(1); }
.rule-draw.from-right { transform-origin: right; }

.split-line {
    display: block;
    overflow: hidden;
}
.split-line > span {
    display: inline-block;
    transform: translateY(110%);
    transition: transform 1s var(--ease-long);
}
.split-line.is-in > span { transform: translateY(0); }
.split-line[data-delay="1"] > span { transition-delay: 0.08s; }
.split-line[data-delay="2"] > span { transition-delay: 0.16s; }
.split-line[data-delay="3"] > span { transition-delay: 0.24s; }
.split-line[data-delay="4"] > span { transition-delay: 0.32s; }

/* ---- Footer -------------------------------------------- */
.foot {
    margin-top: 120px;
    padding: 60px var(--gutter) 32px;
    border-top: 1px solid var(--hairline);
}
.foot-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 48px;
    max-width: var(--maxw);
    margin: 0 auto;
}
.foot-mark {
    font-family: var(--font-sans);
    font-weight: 300;
    font-size: 34px;
    letter-spacing: -0.01em;
    line-height: 1.05;
    text-transform: lowercase;
    color: var(--tarmac);
}
.foot-mark em { font-family: var(--font-italic); font-style: italic; }

.foot-col .foot-col-title {
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--tarmac-soft);
    margin-top: 0;
    margin-bottom: 18px;
}

/* Visually-hidden but screen-reader-available utility (global). */
.sr-only {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.foot-col ul { list-style: none; }
.foot-col li { margin-bottom: 8px; }
.foot-col a {
    font-size: 13px;
    color: var(--tarmac);
    transition: color 0.3s var(--ease);
}
.foot-col a:hover { color: var(--tuscany); }

.foot-base {
    max-width: var(--maxw);
    margin: 60px auto 0;
    padding-top: 24px;
    border-top: 1px solid var(--hairline);
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 16px;
}
.foot-base .latin {
    font-family: var(--font-italic);
    font-style: italic;
    font-size: 14px;
    color: var(--tarmac-soft);
}

/* New footer brand block — logo, tag, search, contact, address, phone.
   Ported from the homepage so every page can use the unified footer. */
.foot-logo { display: inline-flex; line-height: 0; margin-bottom: 18px; transition: opacity .3s var(--ease); }
.foot-logo:hover { opacity: .78; }
.foot-logo img { height: 30px; width: auto; display: block; }
.foot-tag { font-family: var(--font-italic); font-style: italic; font-size: 16px; line-height: 1.4; color: var(--tarmac-soft); margin: 0 0 22px; }
.foot-tag em { color: var(--tuscany); }
.foot-search {
    display: flex; align-items: center; max-width: 280px;
    border: 1px solid var(--hairline-bright); border-radius: 2px; background: var(--bone-deep); margin-bottom: 20px;
}
.foot-search input {
    flex: 1; min-width: 0; border: 0; background: transparent; padding: 10px 12px;
    font-family: var(--font-sans); font-size: 13px; color: var(--tarmac); outline: none;
}
.foot-search input::placeholder { color: var(--tarmac-mute); }
.foot-search button { border: 0; background: transparent; padding: 9px 13px; cursor: pointer; color: var(--tarmac-soft); transition: color .25s; }
.foot-search button:hover { color: var(--tuscany); }
.foot-contact {
    display: inline-flex; align-items: center; gap: 9px;
    font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
    color: var(--tarmac); border: 1px solid var(--tarmac); border-radius: 2px; padding: 11px 22px;
    text-decoration: none; transition: background .25s, color .25s;
}
.foot-contact:hover { background: var(--tarmac); color: var(--bone); }
.foot-addr { font-size: 13px; line-height: 1.6; color: var(--tarmac); margin: 0 0 14px; }
.foot-phone { font-size: 13px; color: var(--tarmac); margin: 0 0 18px; }
.foot-phone a { color: var(--tarmac); text-decoration: none; transition: color .25s; }
.foot-phone a:hover { color: var(--tuscany); }
.foot-phone .k { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.16em; color: var(--tarmac-mute); margin-right: 8px; }
.foot-contact-sm {
    font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
    color: var(--tuscany); text-decoration: none; display: inline-flex; gap: 6px; align-items: center;
    border-bottom: 1px solid transparent; padding-bottom: 2px; transition: border-color .25s;
}
.foot-contact-sm:hover { border-bottom-color: var(--tuscany); }

@media (max-width: 820px) {
    .foot-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
    .foot-mark, .foot-brand { grid-column: 1 / -1; }
    .foot-mark { font-size: 28px; }
}

/* ---- Utility ------------------------------------------- */
.tuscany { color: var(--tuscany); }
.tarmac-soft { color: var(--tarmac-soft); }
.center { text-align: center; }
.italic { font-family: var(--font-italic); font-style: italic; font-weight: 400; }

.hide-mobile { display: initial; }
@media (max-width: 820px) { .hide-mobile { display: none; } }

/* ---- Reduce motion -------------------------------------
   When the visitor has asked the OS to reduce motion, every
   CSS animation and transition is defanged to near-instant,
   and the scroll-reveal classes (.reveal / .split-line /
   .rule-draw) are forced to their fully-visible end state so
   content isn't stranded behind an opacity:0 + .is-in gate.

   JS-side companion gates (cannot be expressed in CSS):
   - aeristo.js gates Lenis init so the page uses native scroll.
   - index.html cs-preview controller pauses its autoplay loop.
   Page-specific motion (sectors parallax, color-space WebGL)
   needs its own per-page matchMedia gate when those pages
   come up for $impeccable harden.
   -------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto !important; }
    *, *::before, *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
    .reveal, .split-line > span, .rule-draw { opacity: 1 !important; transform: none !important; }
}

/* ============================================================
   DESIGN STUDIO — Homepage preview section
   Full-bleed Nano Banana leather render background with
   headline, description and CTA into the studio.
   ============================================================ */
.ds-preview {
    position: relative;
    width: 100%;
    min-height: clamp(560px, 72vh, 760px);
    display: flex;
    align-items: center;
    overflow: hidden;
    /* Design Studio node-graph palette (mirrors design-studio.html) */
    --ws-bg: #0E1016;
    --ws-wire: rgba(110,200,255,0.52);
    --ws-wire-glow: rgba(86,194,255,0.45);
    --cat-source: #2DD4BF;
    --cat-modifier: #F4B23E;
    --cat-op: #8B7CFF;
    --cat-output: #5AA0FF;
}
/* --- bottom layer: the photoreal Pattern 427 V2 render --- */
.ds-render {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center 46%;
    transform: scale(1.03);
    will-change: transform;
    transition: transform 0.8s ease;
}
.ds-preview:hover .ds-render { transform: scale(1.06); }
.ds-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(105deg,
            rgba(13,10,7,0.84) 0%,
            rgba(13,10,7,0.62) 36%,
            rgba(13,10,7,0.30) 60%,
            rgba(13,10,7,0.10) 80%,
            transparent 100%),
        linear-gradient(180deg,
            rgba(13,10,7,0.22) 0%,
            transparent 30%,
            transparent 68%,
            rgba(13,10,7,0.34) 100%);
}

/* --- upper layer: the Design Studio node graph (wipes away under the scan) --- */
.ds-schematic {
    position: absolute;
    inset: 0;
    z-index: 2;
    overflow: hidden;
    background:
        radial-gradient(130% 130% at 76% 32%, rgba(22,46,68,0.55) 0%, rgba(14,16,22,0.985) 58%),
        linear-gradient(180deg, var(--ws-bg) 0%, #0a0c11 100%);
    clip-path: inset(0 0 0 0);
    will-change: clip-path;
    animation: dsReveal 16s linear infinite;
}
.ds-grid {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(124,156,188,0.11) 1px, transparent 1.5px);
    background-size: 30px 30px;
    opacity: 0.6;
    -webkit-mask-image: radial-gradient(120% 120% at 76% 32%, #000 35%, transparent 78%);
            mask-image: radial-gradient(120% 120% at 76% 32%, #000 35%, transparent 78%);
}
.ds-wires { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.ds-wire {
    fill: none;
    stroke: var(--ws-wire);
    stroke-width: 1.8;
    stroke-linecap: round;
    filter: drop-shadow(0 0 5px var(--ws-wire-glow));
}
.dsn {
    position: absolute;
    transform: translate(-50%, -50%);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    background: linear-gradient(180deg, #1b202b 0%, #141821 100%);
    border: 1px solid rgba(255,255,255,0.09);
    border-radius: 10px;
    box-shadow: 0 12px 28px rgba(0,0,0,0.45), inset 0 1px 0 rgba(255,255,255,0.05);
    font-family: var(--font-sans);
    white-space: nowrap;
    color: var(--cat-source);
}
.dsn--mod { color: var(--cat-modifier); }
.dsn--op  { color: var(--cat-op); }
.dsn--out {
    color: var(--cat-output);
    background: linear-gradient(180deg, #16294a 0%, #0f1d33 100%);
    border-color: rgba(90,160,255,0.42);
    box-shadow: 0 12px 30px rgba(8,24,52,0.6), 0 0 22px rgba(90,160,255,0.28), inset 0 1px 0 rgba(255,255,255,0.06);
}
.dsn-dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 10px currentColor; }
.dsn-ttl { font-size: 12.5px; font-weight: 600; letter-spacing: 0.01em; color: #E8EBF2; }
.dsn-tag {
    font-family: var(--font-mono);
    font-size: 9.5px;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: #9AA6BD;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.07);
    padding: 2px 6px;
    border-radius: 5px;
}
.dsn-sw { width: 13px; height: 13px; border-radius: 3px; background: #0E6E78; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.2); }
.dsn-play { font-size: 9px; color: #BFE0FF; transform: translateY(0.5px); }

/* the luminous render line that sweeps across as the graph becomes leather */
.ds-scan {
    position: absolute;
    top: 0; bottom: 0; left: 0;
    width: 2px;
    z-index: 3;
    background: linear-gradient(180deg, transparent 0%, rgba(191,239,255,0.95) 18%, #56C2FF 50%, rgba(191,239,255,0.95) 82%, transparent 100%);
    box-shadow: 0 0 20px 5px rgba(86,194,255,0.6);
    opacity: 0;
    will-change: left, opacity;
    animation: dsScan 16s linear infinite;
}
.ds-scan::before {
    content: "";
    position: absolute;
    top: 0; bottom: 0; right: 0;
    width: 180px;
    background: linear-gradient(90deg, transparent, rgba(86,194,255,0.16));
    pointer-events: none;
}

@keyframes dsReveal {
    0%, 28%   { clip-path: inset(0 0 0 0); }
    42%, 74%  { clip-path: inset(0 0 0 100%); }
    88%, 100% { clip-path: inset(0 0 0 0); }
}
@keyframes dsScan {
    0%, 28%   { left: 0;    opacity: 0; }
    29%       { left: 0;    opacity: 1; }
    42%       { left: 100%; opacity: 1; }
    43%       { left: 100%; opacity: 0; }
    74%       { left: 100%; opacity: 0; }
    75%       { left: 100%; opacity: 1; }
    88%       { left: 0;    opacity: 1; }
    89%, 100% { left: 0;    opacity: 0; }
}

.ds-inner {
    position: relative;
    z-index: 4;
    max-width: var(--maxw);
    margin: 0 auto;
    width: 100%;
    padding: 90px var(--gutter);
}
.ds-tag-caption {
    position: absolute;
    right: clamp(16px, var(--gutter), 64px);
    bottom: 22px;
    z-index: 4;
    font-family: var(--font-mono);
    font-size: 9.5px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(244,244,239,0.62);
    text-shadow: 0 1px 10px rgba(0,0,0,0.6);
    pointer-events: none;
}
.ds-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #E2A88F;                     /* warm rose — readable on the dark render */
    margin-bottom: 28px;
}
.ds-mark {
    font-size: 14px;
    color: #E2A88F;
}
.ds-logo, .cs-logo {
    display: block;
    height: 26px;
    width: auto;
    margin-bottom: 22px;
    opacity: 0.92;
}
.ds-headline {
    font-family: var(--font-display);
    font-variant: small-caps;
    font-weight: 500;
    font-size: clamp(42px, 5.5vw, 86px);
    line-height: 0.96;
    letter-spacing: 0.03em;
    color: var(--bone);
    margin: 0 0 26px;
    max-width: 14ch;
    text-shadow: 0 1px 26px rgba(13,10,7,0.5);
}
.ds-headline em {
    font-family: var(--font-italic);
    font-variant: normal;
    font-style: italic;
    font-weight: 400;
    letter-spacing: 0;
    color: #C0383F;                     /* brighter crimson reads on the dark render */
}
.ds-lede {
    font-family: var(--font-sans);
    font-size: clamp(14px, 1.1vw, 16.5px);
    line-height: 1.65;
    color: rgba(244,244,239,0.84);
    max-width: 44ch;
    margin: 0 0 38px;
    text-shadow: 0 1px 14px rgba(13,10,7,0.55);
}
.ds-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--bone);
    text-decoration: none;
    border: 1px solid rgba(244,244,239,0.38);
    padding: 13px 26px;
    border-radius: 3px;
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}
.ds-cta:hover {
    background: var(--tuscany);
    border-color: var(--tuscany);
    color: var(--bone);
}
.ds-arrow { transition: transform 0.18s ease; }
.ds-cta:hover .ds-arrow { transform: translateX(4px); }

/* Tablet & below: the node-graph fade is a desktop delight; show the
   exceptional render statically and keep the copy legible. */
@media (max-width: 1024px) {
    .ds-schematic, .ds-scan, .ds-tag-caption { display: none; }
    .ds-preview { min-height: clamp(480px, 64vh, 640px); }
}
@media (max-width: 680px) {
    .ds-preview { min-height: 440px; }
    .ds-inner { padding: 60px var(--gutter); }
    .ds-overlay {
        background: linear-gradient(180deg,rgba(13,10,7,0.72) 0%,rgba(13,10,7,0.56) 58%,rgba(13,10,7,0.40) 100%);
    }
}

/* Reduced motion: hold the resting state — the photoreal render, no sweep. */
@media (prefers-reduced-motion: reduce) {
    .ds-schematic { animation: none; clip-path: inset(0 0 0 100%); }
    .ds-scan { display: none; }
    .ds-render { transition: none; }
}
