/* ==================================================================
   SITE DESIGN SYSTEM: the modern technology foundry
   Pattern drawings for software: charcoal and graphite, hairline
   drafting rules, mono annotations, crop-marked frames around real
   product screens. Copper speaks for craft and "Built for you";
   teal for technology and "Built by us". Accents stay sparse.

   Two layers:
   1. Chrome (.site-header, .site-footer, .skip-link, tokens) loads on
      every page, including the legacy light pages (ai, security, blog),
      so it never relies on element selectors.
   2. Page styles are scoped to body.ds (the redesigned pages).
   ================================================================== */

/* ---- Self-hosted fonts (latin subsets) ----
   Archivo, Michroma, JetBrains Mono: SIL Open Font License.
   Switzer: Fontshare ITF Free Font License. Files in /fonts.
   Text and mono faces use font-display: optional (preloaded, so they
   nearly always make it) to avoid the layout shift a late swap causes. */
@font-face { font-family: 'Archivo'; font-style: normal; font-weight: 400 800; font-stretch: 62% 125%; font-display: swap; src: url(/fonts/archivo-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Michroma'; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/michroma-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 400 500; font-display: optional; src: url(/fonts/jetbrains-mono-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Switzer'; font-style: normal; font-weight: 400; font-display: optional; src: url(/fonts/switzer-400.woff2) format('woff2'); }
@font-face { font-family: 'Switzer'; font-style: normal; font-weight: 500; font-display: optional; src: url(/fonts/switzer-500.woff2) format('woff2'); }
@font-face { font-family: 'Switzer'; font-style: normal; font-weight: 600; font-display: optional; src: url(/fonts/switzer-600.woff2) format('woff2'); }

:root {
    /* ---- Color: foundry dark ----
       Contrast checked (WCAG 2.x) against --char / --graphite:
       fg 15.6 / 14.4, fg-2 9.7 / 9.0, fg-3 5.8 / 5.4, copper 5.9 / 5.5,
       teal 8.7 / 8.1. --steel (4.4 on graphite) is decorative only. */
    --char-deep: #0B151E;
    --char:      #101C27;   /* Foundry Charcoal: page */
    --graphite:  #17232F;   /* Deep Graphite: cards */
    --graphite-2:#1D2B38;   /* inputs, media wells */
    --graphite-3:#243443;   /* window bars */

    --fg:   #F2F4F5;        /* Off-White */
    --fg-2: #B9C4CC;
    --fg-3: #8499A8;        /* small text, labels */
    --steel: #748A99;       /* Steel Gray: rules and decoration only */

    --rule:        rgba(132, 153, 168, 0.17);
    --rule-strong: rgba(132, 153, 168, 0.32);
    --rule-faint:  rgba(132, 153, 168, 0.075);

    --copper:  #C58B5C;     /* Warm Copper: craft, Built for you, primary action */
    --molten:  #E4A16D;     /* Molten Copper: highlight, hover */
    --teal:    #65C8C7;     /* Digital Teal: technology, Built by us, links */
    --steel-light: #A9B8C3; /* "coming soon" */

    /* ---- Color: foundry light (legacy reading pages) ----
       ink 15.6, text 8.3, muted 5.0, copper-ink 5.5, teal-ink 5.8 on paper. */
    --paper: #F2F4F5;
    --paper-ink: #101C27;
    --paper-text: #3B4A57;
    --paper-muted: #5A6B78;
    --copper-ink: #8E5530;
    --teal-ink: #1B6A69;

    /* ---- Type ---- */
    --font-display: 'Archivo', 'Switzer', system-ui, sans-serif;
    --font-body: 'Switzer', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
    --display-stretch: 108%;

    --fs-hero: clamp(2.5rem, 1.4rem + 4.4vw, 5.1rem);
    --fs-h1:   clamp(2.2rem, 1.45rem + 3vw, 4rem);
    --fs-h2:   clamp(1.8rem, 1.3rem + 1.9vw, 2.9rem);
    --fs-h3:   clamp(1.18rem, 1.08rem + 0.4vw, 1.4rem);
    --fs-lead: clamp(1.07rem, 1rem + 0.35vw, 1.27rem);
    --fs-body: 1rem;
    --fs-sm:   0.9rem;
    --fs-mono: 0.74rem;

    /* ---- Space (4px base) ---- */
    --s-1: 4px;  --s-2: 8px;  --s-3: 12px; --s-4: 16px; --s-5: 24px;
    --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px; --s-10: 128px;

    --wrap: 1240px;
    --gutter: clamp(16px, 4vw, 40px);
    --section: clamp(72px, 9vw, 136px);
    --header-h: 68px;

    --radius: 12px;
    --radius-sm: 8px;

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

/* ==================================================================
   CHROME (all pages)
   ================================================================== */

.skip-link {
    position: absolute; left: 12px; top: -60px; z-index: 200;
    padding: 10px 16px; border-radius: 8px;
    background: var(--copper); color: var(--char);
    font: 600 0.95rem/1 var(--font-body); text-decoration: none;
}
.skip-link:focus { top: 12px; }

.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;
}

/* ---- Header ---- */
.site-header {
    position: sticky; top: 0; z-index: 100;
    height: var(--header-h);
    background: rgba(16, 28, 39, 0.72);
    -webkit-backdrop-filter: saturate(150%) blur(16px);
    backdrop-filter: saturate(150%) blur(16px);
    border-bottom: 1px solid var(--rule);
    font-family: var(--font-body);
    color: var(--fg);
    transition: background-color 0.3s, box-shadow 0.3s;
}
/* A thin molten line along the bottom edge, brightest at the center. */
.site-header::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; pointer-events: none;
    background: linear-gradient(90deg, transparent, rgba(197, 139, 92, 0.0) 15%, rgba(228, 161, 109, 0.75) 50%, rgba(197, 139, 92, 0.0) 85%, transparent);
    opacity: 0; transition: opacity 0.4s;
}
.site-header.is-scrolled { background: rgba(11, 21, 30, 0.9); box-shadow: 0 18px 40px -24px rgba(0, 0, 0, 0.8); }
.site-header.is-scrolled::after { opacity: 1; }
.site-header__inner {
    max-width: calc(var(--wrap) + 2 * var(--gutter));
    height: 100%; margin: 0 auto; padding: 0 var(--gutter);
    display: flex; align-items: center; gap: var(--s-6);
}
.brand-home { display: inline-flex; text-decoration: none; flex-shrink: 0; position: relative; z-index: 3; }
.brand-lockup { display: inline-flex; align-items: center; gap: 12px; color: var(--fg); text-decoration: none; flex-shrink: 0; }
.brand-lockup__mark { width: auto; height: 26px; display: block; }
.brand-lockup__name { font: 700 0.98rem/1 var(--font-display); white-space: nowrap; }
.brand-lockup__name small { display: block; margin-top: 5px; font: 500 0.56rem/1 var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-3); }
.brand-lockup--jwd .brand-lockup__name { letter-spacing: -0.01em; padding-left: 12px; border-left: 1px solid var(--rule-strong); }

.site-nav { margin-left: auto; display: flex; align-items: center; gap: var(--s-2); }
.site-nav > .forge-canvas { display: none; }
.site-nav__list { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.site-nav__item { position: relative; }
.site-nav__item--mega { position: static; }
.site-nav__link {
    position: relative; display: inline-flex; align-items: center; gap: 6px;
    padding: 10px 13px; border: 0; background: none; border-radius: 8px;
    font: 500 0.95rem/1 var(--font-body); color: var(--fg-2);
    text-decoration: none; cursor: pointer; white-space: nowrap;
    transition: color 0.2s;
}
/* Molten underline: pours out from the center on hover, stays on the current page. */
.site-nav__link::after {
    content: ""; position: absolute; left: 13px; right: 13px; bottom: 3px; height: 2px; border-radius: 2px;
    background: linear-gradient(90deg, var(--copper), var(--molten), var(--copper));
    box-shadow: 0 0 10px rgba(228, 161, 109, 0.7);
    transform: scaleX(0); transition: transform 0.35s var(--ease);
}
.site-nav__link:hover, .site-nav__link[aria-expanded="true"] { color: var(--fg); }
.site-nav__link:hover::after, .site-nav__link[aria-expanded="true"]::after,
.site-nav__link[aria-current="page"]::after, .site-nav__link.is-current::after { transform: scaleX(1); }
.site-nav__link[aria-current="page"], .site-nav__link.is-current { color: var(--fg); }
.site-nav__link svg { width: 12px; height: 12px; transition: transform 0.25s var(--ease); }
.site-nav__link[aria-expanded="true"] svg { transform: rotate(180deg); }

/* ---- Mega panels (desktop) ---- */
.mega {
    position: absolute; left: 0; right: 0; top: 100%;
    background: linear-gradient(180deg, #0f1a24, #0b151e);
    border-bottom: 1px solid var(--rule-strong);
    box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.85);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity 0.25s var(--ease), transform 0.3s var(--ease), visibility 0s linear 0.3s;
}
.mega::before { /* the pour: a molten line drawn across the top as it opens */
    content: ""; position: absolute; left: 0; top: 0; height: 2px; width: 100%;
    background: linear-gradient(90deg, transparent, var(--copper) 20%, var(--molten) 50%, var(--teal) 85%, transparent);
    box-shadow: 0 0 18px rgba(228, 161, 109, 0.55);
    transform: scaleX(0); transform-origin: left; transition: transform 0.7s var(--ease) 0.05s;
}
.site-nav__item.is-open > .mega { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.site-nav__item.is-open > .mega::before { transform: scaleX(1); }
.mega__inner {
    max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 36px var(--gutter) 40px;
    display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 2.15fr); gap: 48px;
}
.mega__kicker { margin: 0 0 12px; font: 500 0.7rem/1 var(--font-mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--copper); }
.mega__kicker--teal { color: var(--teal); }
.mega__title { margin: 0 0 12px; font: 700 1.5rem/1.15 var(--font-display); font-stretch: var(--display-stretch); letter-spacing: -0.02em; color: var(--fg); }
.mega__text { margin: 0 0 22px; font-size: 0.94rem; line-height: 1.55; color: var(--fg-2); }
.mega__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.mega__all { color: var(--fg); font-size: 0.92rem; font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--copper); padding-bottom: 2px; }
.mega__all--teal { border-color: var(--teal); }
.mega__grid, .mega__products, .mega__cats { list-style: none; margin: 0; padding: 0; }
.mega__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.mega__tile {
    display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 4px 14px; align-items: start;
    padding: 14px; border-radius: 12px; border: 1px solid transparent;
    color: var(--fg); text-decoration: none; transition: background-color 0.2s, border-color 0.2s, transform 0.25s var(--ease);
}
.mega__tile:hover, .mega__tile:focus-visible { background: rgba(197, 139, 92, 0.07); border-color: rgba(197, 139, 92, 0.28); transform: translateY(-2px); }
.mega__icon {
    grid-row: span 2; width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center;
    background: linear-gradient(145deg, rgba(197, 139, 92, 0.22), rgba(197, 139, 92, 0.05));
    border: 1px solid rgba(197, 139, 92, 0.35); color: var(--molten);
}
.mega__icon svg { width: 20px; height: 20px; }
.mega__tile b { font-weight: 600; font-size: 0.97rem; }
.mega__tile span:last-child { font-size: 0.84rem; line-height: 1.45; color: var(--fg-3); }
.mega__cats { display: grid; gap: 2px; margin: 4px 0 22px; }
.mega__cats a { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid var(--rule); color: var(--fg-2); text-decoration: none; font-size: 0.95rem; }
.mega__cats a:hover { color: var(--fg); }
.mega__cats span { font: 500 0.75rem/1.6 var(--font-mono); color: var(--teal); }
.mega__products { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.mega__product {
    display: grid; justify-items: start; gap: 6px; padding: 16px; border-radius: 12px; border: 1px solid var(--rule);
    background: rgba(23, 35, 47, 0.6); color: var(--fg); text-decoration: none;
    transition: border-color 0.2s, transform 0.25s var(--ease), background-color 0.2s;
}
.mega__product:hover, .mega__product:focus-visible { border-color: rgba(101, 200, 199, 0.45); background: rgba(101, 200, 199, 0.06); transform: translateY(-2px); }
.mega__product img, .mega__initial { width: 40px; height: 40px; border-radius: 10px; margin-bottom: 6px; }
.mega__initial { display: grid; place-items: center; font: 800 1.15rem/1 var(--font-display); color: #F2F4F5; background: linear-gradient(145deg, #2f8584, #1b5352); border: 1px solid rgba(101, 200, 199, 0.5); }
.mega__product b { font-weight: 600; font-size: 0.95rem; }
.mega__product span { font-size: 0.8rem; color: var(--fg-3); }

.site-nav__cta { margin-left: var(--s-2); }
.site-nav__extras { display: none; }

/* ---- Burger ---- */
.nav-burger {
    display: none; margin-left: auto; position: relative; z-index: 3;
    width: 46px; height: 46px; border-radius: 12px;
    border: 1px solid var(--rule-strong); background: rgba(16, 28, 39, 0.6); color: var(--fg); cursor: pointer;
    align-items: center; justify-content: center;
}
.nav-burger span:first-child, .nav-burger span:first-child::before, .nav-burger span:first-child::after {
    display: block; width: 20px; height: 1.6px; background: currentColor; position: relative; border-radius: 2px;
    transition: transform 0.35s var(--ease), background-color 0.2s;
}
.nav-burger span:first-child::before, .nav-burger span:first-child::after { content: ""; position: absolute; left: 0; }
.nav-burger span:first-child::before { top: -6px; }
.nav-burger span:first-child::after { top: 6px; }
.nav-burger[aria-expanded="true"] { border-color: rgba(228, 161, 109, 0.6); color: var(--molten); }
.nav-burger[aria-expanded="true"] span:first-child { background: transparent; }
.nav-burger[aria-expanded="true"] span:first-child::before { transform: translateY(6px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:first-child::after { transform: translateY(-6px) rotate(-45deg); }

/* ---- Buttons (shared by chrome and pages) ---- */
.btn-x {
    position: relative; overflow: hidden;
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    min-height: 48px; padding: 0 22px; border-radius: 10px;
    font: 600 0.98rem/1 var(--font-body); letter-spacing: -0.005em;
    text-decoration: none; cursor: pointer; border: 1px solid transparent;
    transition: background-color 0.2s, border-color 0.2s, color 0.2s, box-shadow 0.3s, transform 0.2s var(--ease);
}
.btn-x svg { width: 16px; height: 16px; transition: transform 0.2s var(--ease); }
.btn-x:hover svg { transform: translateX(3px); }
.btn-x--primary { background: linear-gradient(180deg, #d69a68, var(--copper)); color: var(--char); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.25) inset, 0 10px 24px -12px rgba(228, 120, 50, 0.7); }
/* Heat shimmer: a hot band sweeps across on hover. */
.btn-x--primary::before {
    content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 50%; pointer-events: none;
    background: linear-gradient(100deg, transparent, rgba(255, 220, 170, 0.55), transparent);
    transform: skewX(-18deg); transition: left 0.6s var(--ease);
}
.btn-x--primary:hover { box-shadow: 0 1px 0 rgba(255, 255, 255, 0.3) inset, 0 14px 32px -10px rgba(228, 120, 50, 0.9); transform: translateY(-1px); }
.btn-x--primary:hover::before { left: 120%; }
.btn-x--ghost { background: transparent; color: var(--fg); border-color: var(--rule-strong); }
.btn-x--ghost:hover { border-color: var(--fg-3); background: rgba(132, 153, 168, 0.06); }
.btn-x--teal { background: transparent; color: var(--fg); border-color: rgba(101, 200, 199, 0.45); }
.btn-x--teal:hover { border-color: var(--teal); background: rgba(101, 200, 199, 0.08); box-shadow: 0 0 24px -8px rgba(101, 200, 199, 0.6); }
.btn-x--sm { min-height: 40px; padding: 0 16px; font-size: 0.9rem; border-radius: 9px; }

.site-header :focus-visible, .site-footer :focus-visible, body.ds :focus-visible {
    outline: 2px solid var(--molten); outline-offset: 3px; border-radius: 6px;
}

/* ---- Mobile: full-screen forge menu ---- */
@media (max-width: 1060px) {
    .nav-burger { display: inline-flex; }
    .site-nav {
        position: fixed; inset: 0; z-index: 2;
        display: flex; flex-direction: column; align-items: stretch; gap: 0;
        margin: 0; padding: calc(var(--nav-top, var(--header-h)) + 18px) var(--gutter) 32px;
        background: radial-gradient(120% 60% at 50% 110%, rgba(150, 70, 25, 0.45), transparent 60%), #0a131b;
        overflow-y: auto; overscroll-behavior: contain;
        opacity: 0; visibility: hidden; clip-path: circle(0% at calc(100% - 44px) var(--burger-y, 34px));
        transition: clip-path 0.6s var(--ease), opacity 0.3s, visibility 0s linear 0.6s;
    }
    .site-nav.is-open { opacity: 1; visibility: visible; clip-path: circle(150% at calc(100% - 44px) var(--burger-y, 34px)); transition-delay: 0s; }
    .site-nav > .forge-canvas { display: block; position: fixed; inset: 0; z-index: -1; pointer-events: none; }
    .site-nav__list { display: block; }
    .site-nav__item, .site-nav__extras, .site-nav__cta {
        opacity: 0; transform: translateY(18px);
        transition: opacity 0.5s var(--ease), transform 0.6s var(--ease);
    }
    .site-nav.is-open .site-nav__item, .site-nav.is-open .site-nav__extras, .site-nav.is-open .site-nav__cta {
        opacity: 1; transform: none; transition-delay: calc(0.12s + var(--i, 0) * 0.06s);
    }
    .site-nav.is-open .site-nav__cta { transition-delay: 0.5s; }
    .site-nav__item { border-bottom: 1px solid rgba(132, 153, 168, 0.16); }
    .site-nav__link {
        width: 100%; justify-content: space-between; padding: 18px 2px; border-radius: 0;
        font: 700 1.75rem/1.1 var(--font-display); font-stretch: var(--display-stretch); letter-spacing: -0.02em; color: var(--fg);
    }
    .site-nav__link::after { left: 2px; right: auto; width: 34px; bottom: 10px; transform-origin: left; }
    .site-nav__link svg { width: 20px; height: 20px; color: var(--molten); }
    .mega {
        position: static; display: none; opacity: 1; visibility: visible; transform: none;
        background: none; border: 0; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none;
    }
    .mega::before { display: none; }
    .site-nav__item.is-open > .mega { display: block; }
    .mega__inner { display: block; padding: 0 0 18px; max-width: none; }
    .mega__intro { display: none; }
    .mega__grid, .mega__products { grid-template-columns: 1fr 1fr; gap: 8px; }
    .mega__tile { grid-template-columns: 1fr; padding: 12px; background: rgba(23, 35, 47, 0.7); border-color: var(--rule); }
    .mega__icon { grid-row: auto; width: 34px; height: 34px; }
    .mega__tile span:last-child { display: none; }
    .mega__product { padding: 12px; }
    .mega__product img, .mega__initial { width: 34px; height: 34px; }
    .site-nav__cta { margin: 28px 0 0; min-height: 54px; font-size: 1.05rem; }
    .site-nav__extras { display: grid; gap: 14px; margin-top: 28px; }
    .site-nav__extras p { margin: 0; font: 500 0.7rem/1 var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-3); }
    .site-nav__apps { display: flex; gap: 12px; }
    .site-nav__apps img { width: 48px; height: 48px; border-radius: 12px; box-shadow: 0 10px 24px -10px rgba(0, 0, 0, 0.8); transition: transform 0.2s var(--ease); }
    .site-nav__apps a:active img { transform: scale(0.94); }
    .site-nav__mail { color: var(--fg-2); font-size: 0.95rem; }
}
@media (max-width: 520px) {
    .brand-lockup__name small { display: none; }
}
body.nav-open { overflow: hidden; }

/* ---- Footer: drawing title block ---- */
.site-footer {
    background: var(--char); color: var(--fg-2);
    border-top: 1px solid var(--rule);
    font-family: var(--font-body); font-size: 0.95rem;
}
.site-footer__inner { max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: var(--s-9) var(--gutter) var(--s-6); }
.site-footer__grid {
    display: grid; gap: var(--s-7) var(--s-6);
    grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)) minmax(0, 1.5fr);
}
.site-footer__brand p { margin: var(--s-4) 0 0; max-width: 32ch; line-height: 1.55; color: var(--fg-2); }
.site-footer__heading {
    margin: 0 0 var(--s-4); padding: 0;
    font: 500 var(--fs-mono)/1 var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--fg-3);
}
.site-footer__links { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer a { color: var(--fg-2); text-decoration: none; transition: color 0.2s; }
.site-footer a:hover { color: var(--fg); }
.site-footer__links a { font-size: 0.93rem; }
.site-footer__brand .btn-x { margin-top: var(--s-5); }
.site-footer__brand .btn-x, .site-footer__brand .btn-x:hover { color: var(--char); }

.site-footer .newsletter { margin: 0; padding: 0; background: none; border: 0; box-shadow: none; }
.site-footer__news p { margin: 0 0 var(--s-4); color: var(--fg-2); font-size: 0.93rem; line-height: 1.5; }
.site-footer__news .newsletter-status { margin: 8px 0 0; }
.site-footer__note { margin: var(--s-5) 0 0; font: 400 0.82rem/1.5 var(--font-body); color: var(--fg-3); }
.site-footer .newsletter-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.site-footer .newsletter-row { display: flex; gap: 8px; }
.site-footer .newsletter-row input {
    flex: 1; min-width: 0; height: 44px; padding: 0 14px; border-radius: 9px;
    background: var(--graphite-2); border: 1px solid var(--rule-strong); color: var(--fg);
    font: 400 16px/1 var(--font-body);
}
.site-footer .newsletter-row input::placeholder { color: var(--fg-3); }
.site-footer .newsletter-row button {
    height: 44px; padding: 0 16px; border-radius: 9px; border: 0; cursor: pointer;
    background: var(--copper); color: var(--char); font: 600 0.9rem/1 var(--font-body);
}
.site-footer .newsletter-status { margin: 8px 0 0; font-size: 0.85rem; color: var(--fg-2); min-height: 1.2em; }
.site-footer .newsletter-hp { position: absolute; left: -9999px; }

.title-block {
    margin-top: var(--s-8);
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
    border: 1px solid var(--rule-strong); border-radius: 4px;
    font: 500 var(--fs-mono)/1.4 var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase;
}
.title-block > div { padding: 12px 14px; border-left: 1px solid var(--rule-strong); }
.title-block > div:first-child { border-left: 0; }
.title-block > div > span { display: block; color: var(--fg-3); font-size: 0.64rem; letter-spacing: 0.14em; margin-bottom: 4px; }
.title-block b { font-weight: 500; color: var(--fg); }

@media (max-width: 1060px) {
    .site-footer__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .site-footer__brand, .site-footer__news { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
    .site-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .title-block { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .title-block > div:nth-child(3) { border-left: 0; }
    .title-block > div:nth-child(n+3) { border-top: 1px solid var(--rule-strong); }
}

/* ==================================================================
   PAGES (body.ds)
   ================================================================== */

body.ds {
    margin: 0; background: var(--char); color: var(--fg-2);
    font: 400 var(--fs-body)/1.6 var(--font-body);
    -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}
:where(body.ds) *, :where(body.ds) *::before, :where(body.ds) *::after { box-sizing: border-box; }
:where(body.ds) img { max-width: 100%; height: auto; display: block; }
:where(body.ds) a { color: var(--teal); }
:where(body.ds) :is(h1, h2, h3, h4) {
    font-family: var(--font-display); font-stretch: var(--display-stretch); color: var(--fg); margin: 0;
    letter-spacing: -0.03em; line-height: 1.04; font-weight: 750;
    text-wrap: balance;
}
:where(body.ds) h3 { font-size: var(--fs-h3); font-weight: 700; letter-spacing: -0.015em; line-height: 1.2; }
:where(body.ds) p { margin: 0; text-wrap: pretty; }
:where(body.ds) ul { margin: 0; padding: 0; }
:where(body.ds) main { display: block; }

.wrap { max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section) 0; position: relative; }
.section + .section { border-top: 1px solid var(--rule); }
.section--alt { background: var(--graphite); }
.section--tight { padding: clamp(56px, 6vw, 88px) 0; }

/* ---- Sheet labels: the drawing-set annotation system ---- */
.sheet {
    display: inline-flex; align-items: center; gap: 10px;
    font: 500 var(--fs-mono)/1 var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--fg-3);
}
.sheet b { color: var(--fg); font-weight: 500; }
.sheet::before { content: ""; width: 22px; height: 1px; background: currentColor; opacity: 0.7; }
.sheet--blue { color: var(--copper); }
.sheet--teal { color: var(--teal); }
.sheet--plain::before { display: none; }

.section-head { display: grid; gap: var(--s-5); max-width: 760px; margin-bottom: var(--s-8); }
.section-head h2 { font-size: var(--fs-h2); }
.section-head p { font-size: var(--fs-lead); line-height: 1.55; color: var(--fg-2); max-width: 62ch; }
.section-head--split {
    max-width: none; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: var(--s-5) var(--s-7);
}
.section-head--split > div { display: grid; gap: var(--s-5); max-width: 760px; }
@media (max-width: 760px) { .section-head--split { grid-template-columns: 1fr; } }

.lead { font-size: var(--fs-lead); line-height: 1.55; color: var(--fg-2); }
.mono { font-family: var(--font-mono); }
.text-link {
    display: inline-flex; align-items: center; gap: 8px;
    font: 600 0.95rem/1.2 var(--font-body); color: var(--fg) !important; text-decoration: none;
    border-bottom: 1px solid var(--rule-strong); padding-bottom: 3px;
    transition: border-color 0.2s;
}
.text-link:hover { border-color: var(--copper); }
.text-link svg { width: 14px; height: 14px; transition: transform 0.2s var(--ease); }
.text-link:hover svg { transform: translateX(3px); }
.text-link--teal:hover { border-color: var(--teal); }

/* ---- Frame: crop-marked container for screens ---- */
.frame { position: relative; }
.frame::before, .frame::after,
.frame > .frame__marks::before, .frame > .frame__marks::after {
    content: ""; position: absolute; width: 14px; height: 14px; pointer-events: none;
    border-color: var(--rule-strong); border-style: solid; border-width: 0;
}
.frame::before { top: -8px; left: -8px; border-top-width: 1px; border-left-width: 1px; }
.frame::after { top: -8px; right: -8px; border-top-width: 1px; border-right-width: 1px; }
.frame > .frame__marks::before { bottom: -8px; left: -8px; border-bottom-width: 1px; border-left-width: 1px; }
.frame > .frame__marks::after { bottom: -8px; right: -8px; border-bottom-width: 1px; border-right-width: 1px; }

.window {
    position: relative; overflow: hidden;
    background: var(--graphite-2); border: 1px solid var(--rule-strong); border-radius: 10px;
    box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.8);
}
.window__bar {
    display: flex; align-items: center; gap: 10px; height: 30px; padding: 0 12px;
    border-bottom: 1px solid var(--rule); background: var(--graphite-3);
    font: 500 0.68rem/1 var(--font-mono); color: var(--fg-3); letter-spacing: 0.02em;
}
.window__bar i { width: 7px; height: 7px; border-radius: 50%; background: var(--rule-strong); display: inline-block; }
.window__bar i + i { margin-left: -5px; }
.window__bar em { font-style: normal; margin-left: 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.window img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top center; }

/* ---- Hero ---- */
.hero-x { position: relative; overflow: hidden; padding: clamp(56px, 8vw, 112px) 0 0; }
.hero-x::before {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background-image:
        linear-gradient(var(--rule-faint) 1px, transparent 1px),
        linear-gradient(90deg, var(--rule-faint) 1px, transparent 1px);
    background-size: 48px 48px;
    -webkit-mask-image: radial-gradient(ellipse 80% 70% at 70% 30%, #000 30%, transparent 75%);
    mask-image: radial-gradient(ellipse 80% 70% at 70% 30%, #000 30%, transparent 75%);
}
.hero-x::after {
    content: ""; position: absolute; width: 900px; height: 600px; right: -260px; top: -220px; pointer-events: none;
    background: radial-gradient(closest-side, rgba(197, 139, 92, 0.18), transparent);
}
.hero-x__grid {
    position: relative; z-index: 1;
    display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px);
    /* Top-aligned, so the stage never moves when the headline font swaps in. */
    align-items: start;
}
.hero-x__copy { display: grid; gap: var(--s-6); }
.hero-x h1 { font-size: var(--fs-hero); line-height: 0.98; letter-spacing: -0.035em; }
.hero-x h1 em { font-style: normal; color: var(--molten); }
.hero-x__lead { font-size: var(--fs-lead); line-height: 1.55; max-width: 54ch; }
.hero-x__actions { display: flex; flex-wrap: wrap; gap: var(--s-3); }

.hero-stage { position: relative; aspect-ratio: 1 / 0.86; margin-top: 8px; }
.hero-stage .window { position: absolute; width: 74%; }
.hero-stage .window img { aspect-ratio: 16 / 10; }
.hero-stage__a { top: 0; right: 0; z-index: 1; }
.hero-stage__b { top: 30%; left: 0; z-index: 2; }
.hero-stage__c { bottom: 0; right: 6%; z-index: 3; width: 58% !important; }
.hero-stage .window { transition: transform 0.6s var(--ease); }
.hero-stage:hover .hero-stage__a { transform: translate(6px, -6px); }
.hero-stage:hover .hero-stage__b { transform: translate(-6px, 0); }
.hero-stage:hover .hero-stage__c { transform: translate(4px, 6px); }

.callout {
    position: absolute; z-index: 4; display: flex; align-items: center; gap: 8px;
    font: 500 0.66rem/1 var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-2);
    white-space: nowrap;
}
.callout::before { content: attr(data-key); display: inline-grid; place-items: center; width: 18px; height: 18px; border: 1px solid var(--teal); color: var(--teal); border-radius: 50%; font-size: 0.62rem; letter-spacing: 0; }
.callout--a { top: -26px; right: 2%; }
.callout--b { bottom: 4px; left: 0; }
.callout--c { bottom: -28px; right: 6%; }

.ledger {
    position: relative; z-index: 1;
    margin-top: clamp(56px, 7vw, 96px);
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
    border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
}
.ledger > div { padding: var(--s-5) var(--s-5) var(--s-5) 0; display: grid; gap: 6px; }
.ledger > div + div { padding-left: var(--s-5); border-left: 1px solid var(--rule); }
.ledger b { font: 800 clamp(1.6rem, 1.2rem + 1.4vw, 2.4rem)/1 var(--font-display); font-stretch: var(--display-stretch); color: var(--fg); letter-spacing: -0.03em; }
.ledger span { font: 500 var(--fs-mono)/1.35 var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-3); }

@media (max-width: 960px) {
    .hero-x__grid { grid-template-columns: 1fr; }
    .hero-stage { max-width: 640px; width: 100%; margin: 24px auto 0; }
    .ledger { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ledger > div:nth-child(3) { padding-left: 0; border-left: 0; }
    .ledger > div:nth-child(n+3) { border-top: 1px solid var(--rule); }
}
@media (max-width: 520px) {
    .callout { font-size: 0.58rem; }
    .callout--b { display: none; }
}

/* ---- Two ways we build ---- */
.duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border: 1px solid var(--rule-strong); border-radius: var(--radius); overflow: hidden; }
.duo__panel { position: relative; padding: clamp(28px, 4vw, 56px); display: grid; gap: var(--s-5); align-content: start; }
.duo__panel + .duo__panel { border-left: 1px solid var(--rule-strong); }
.duo__panel--services { background: linear-gradient(160deg, rgba(197, 139, 92, 0.10), transparent 55%); }
.duo__panel--products { background: linear-gradient(200deg, rgba(101, 200, 199, 0.09), transparent 55%); }
.duo__panel h3 { font-size: clamp(1.9rem, 1.4rem + 1.6vw, 2.8rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.duo__panel > p { font-size: var(--fs-lead); line-height: 1.55; max-width: 46ch; }
.duo__list { list-style: none; display: grid; gap: 0; border-top: 1px solid var(--rule); }
.duo__list li {
    display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--rule);
    color: var(--fg); font-size: 0.97rem;
}
.duo__list li span { font: 500 var(--fs-mono)/1.6 var(--font-mono); letter-spacing: 0.08em; color: var(--fg-3); text-transform: uppercase; }
.duo__panel .btn-x { justify-self: start; margin-top: var(--s-2); }
@media (max-width: 860px) {
    .duo { grid-template-columns: 1fr; }
    .duo__panel + .duo__panel { border-left: 0; border-top: 1px solid var(--rule-strong); }
}

/* ---- Status / meta chips ---- */
.status {
    display: inline-flex; align-items: center; gap: 7px;
    font: 500 0.68rem/1 var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-2);
}
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--fg-3); }
.status--live::before { background: var(--teal); box-shadow: 0 0 0 3px rgba(101, 200, 199, 0.16); }
.status--beta::before { background: var(--molten); }
.status--coming-soon::before { background: var(--steel-light); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; }
.chip {
    display: inline-flex; align-items: center; padding: 5px 9px; border-radius: 6px;
    border: 1px solid var(--rule); color: var(--fg-2);
    font: 500 0.7rem/1 var(--font-mono); letter-spacing: 0.05em;
}

/* ---- Product cards ---- */
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-5); }
.product-card {
    position: relative; display: flex; flex-direction: column;
    background: var(--graphite); border: 1px solid var(--rule); border-radius: var(--radius);
    overflow: hidden; transition: border-color 0.25s, transform 0.35s var(--ease);
}
.product-card:hover { border-color: rgba(101, 200, 199, 0.4); transform: translateY(-3px); }
.product-card__media { position: relative; background: var(--graphite-2); border-bottom: 1px solid var(--rule); overflow: hidden; }
.product-card__media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top center; transition: transform 0.6s var(--ease); }
.product-card:hover .product-card__media img { transform: scale(1.025); }
.product-card__media--icon {
    aspect-ratio: 16 / 10; display: grid; place-items: center;
    background:
        linear-gradient(var(--rule-faint) 1px, transparent 1px) 0 0 / 24px 24px,
        linear-gradient(90deg, var(--rule-faint) 1px, transparent 1px) 0 0 / 24px 24px,
        var(--graphite-2);
}
.product-card__media--icon img { width: 96px; height: 96px; aspect-ratio: 1; border-radius: 22px; box-shadow: 0 20px 40px -16px rgba(0,0,0,.8); }
.product-card__media--mono { aspect-ratio: 16 / 10; display: grid; place-items: center; }
.product-card__media--mono b { font: 800 2.2rem/1 var(--font-display); font-stretch: var(--display-stretch); color: var(--fg); letter-spacing: -0.03em; }
.product-card__body { display: grid; gap: var(--s-3); padding: var(--s-5); flex: 1; align-content: start; }
.product-card__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.product-card__cat { font: 500 0.68rem/1.2 var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-3); }
.product-card h3 a { color: var(--fg); text-decoration: none; }
.product-card h3 a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.product-card p { font-size: 0.95rem; line-height: 1.55; }
.product-card__foot {
    display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; justify-content: space-between;
    padding: 14px var(--s-5); border-top: 1px solid var(--rule);
    font: 500 0.7rem/1.3 var(--font-mono); letter-spacing: 0.06em; color: var(--fg-3); text-transform: uppercase;
}
.product-card__foot span:last-child { color: var(--teal); }
@media (max-width: 1000px) { .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .product-grid { grid-template-columns: 1fr; } }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: var(--s-6); }
.filters[hidden] { display: none; }
.filter {
    min-height: 40px; padding: 0 14px; border-radius: 999px; cursor: pointer;
    border: 1px solid var(--rule-strong); background: transparent; color: var(--fg-2);
    font: 500 0.88rem/1 var(--font-body); transition: all 0.2s;
}
.filter:hover { color: var(--fg); border-color: var(--fg-3); }
.filter[aria-pressed="true"] { background: var(--fg); color: var(--char); border-color: var(--fg); }
.filter span { font-family: var(--font-mono); font-size: 0.72rem; opacity: 0.7; margin-left: 4px; }
.product-card[hidden] { display: none; }

/* ---- Capabilities (spec rows) ---- */
.spec-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--rule-strong); border-left: 1px solid var(--rule-strong); }
.spec {
    position: relative; display: grid; gap: var(--s-4); align-content: start;
    padding: var(--s-6) var(--s-5) var(--s-7); min-height: 230px;
    border-right: 1px solid var(--rule-strong); border-bottom: 1px solid var(--rule-strong);
    color: inherit; text-decoration: none; transition: background-color 0.25s;
}
.spec:hover { background: rgba(197, 139, 92, 0.06); }
.spec__no { font: 500 var(--fs-mono)/1 var(--font-mono); letter-spacing: 0.14em; color: var(--copper); }
.spec h3 { font-size: 1.32rem; }
.spec p { font-size: 0.95rem; line-height: 1.55; max-width: 34ch; }
.spec__arrow { position: absolute; right: var(--s-5); bottom: var(--s-5); width: 18px; height: 18px; color: var(--fg-3); transition: transform 0.25s var(--ease), color 0.25s; }
.spec:hover .spec__arrow { color: var(--copper); transform: translate(3px, -3px); }
@media (max-width: 960px) { .spec-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .spec-grid { grid-template-columns: 1fr; } .spec { min-height: 0; } }

/* ---- Work cards ---- */
.work-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-7) var(--s-6); }
.work-card { display: grid; gap: var(--s-4); align-content: start; }
.work-card__media { position: relative; border-radius: 10px; overflow: hidden; border: 1px solid var(--rule); background: var(--graphite-2); }
.work-card__media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top center; transition: transform 0.6s var(--ease); }
.work-card:hover .work-card__media img { transform: scale(1.02); }
.work-card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; font: 500 0.68rem/1.2 var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-3); }
.work-card__meta .kind { color: var(--copper); }
.work-card__meta .kind--demo { color: var(--steel-light); }
.work-card h3 a { color: var(--fg); text-decoration: none; }
.work-card h3 a:hover { text-decoration: underline; text-decoration-color: var(--copper); text-underline-offset: 4px; }
.work-card p { font-size: 0.97rem; line-height: 1.55; max-width: 60ch; }
.work-card__note { font-size: 0.8rem !important; color: var(--fg-3); font-style: italic; }
.work-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 960px) { .work-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) { .work-grid, .work-grid--3 { grid-template-columns: 1fr; } }

/* ---- Credibility ---- */
.cred { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.cred__big { font: 800 clamp(5rem, 3rem + 9vw, 11rem)/0.85 var(--font-display); font-stretch: var(--display-stretch); letter-spacing: -0.06em; color: transparent; -webkit-text-stroke: 1.5px var(--rule-strong); }
.cred__big span { color: var(--fg); -webkit-text-stroke: 0; }
.evolution { list-style: none; display: grid; gap: 0; margin-top: var(--s-6); border-left: 1px solid var(--rule-strong); }
.evolution li { position: relative; padding: 10px 0 10px 22px; color: var(--fg); font-weight: 500; }
.evolution li::before { content: ""; position: absolute; left: -4px; top: 50%; width: 7px; height: 7px; margin-top: -3.5px; border-radius: 50%; background: var(--char); border: 1px solid var(--fg-3); }
.evolution li:last-child::before { background: var(--teal); border-color: var(--teal); }
.facts { list-style: none; display: grid; gap: 0; border-top: 1px solid var(--rule-strong); }
.facts li { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: var(--s-5); padding: var(--s-5) 0; border-bottom: 1px solid var(--rule); }
.facts dt, .facts .k { font: 500 var(--fs-mono)/1.5 var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-3); }
.facts .v { color: var(--fg); line-height: 1.5; }
.facts .v small { display: block; color: var(--fg-2); font-size: 0.92rem; margin-top: 4px; }
@media (max-width: 860px) { .cred { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .facts li { grid-template-columns: 1fr; gap: 6px; } }

/* ---- Approach ---- */
.steps { list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); counter-reset: step; border-top: 1px solid var(--rule-strong); }
.steps li { counter-increment: step; position: relative; padding: var(--s-6) var(--s-5) 0 0; display: grid; gap: var(--s-3); align-content: start; }
.steps li::before {
    content: counter(step, decimal-leading-zero); font: 500 var(--fs-mono)/1 var(--font-mono); letter-spacing: 0.14em; color: var(--copper);
}
.steps li::after { content: ""; position: absolute; top: -4px; left: 0; width: 7px; height: 7px; border-radius: 50%; background: var(--copper); }
.steps h3 { font-size: 1.15rem; }
.steps p { font-size: 0.93rem; line-height: 1.55; }
@media (max-width: 960px) {
    .steps { grid-template-columns: 1fr; border-top: 0; border-left: 1px solid var(--rule-strong); }
    .steps li { padding: 0 0 var(--s-6) var(--s-6); }
    .steps li::after { top: 2px; left: -4px; }
}

/* ---- Insights ---- */
.insight-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-5); }
.insight { position: relative; display: grid; gap: var(--s-3); align-content: start; }
.insight__media { border-radius: 10px; overflow: hidden; border: 1px solid var(--rule); background: var(--graphite-2); }
.insight__media img { width: 100%; aspect-ratio: 1200 / 630; object-fit: cover; }
.insight__meta { display: flex; gap: 10px; font: 500 0.68rem/1.3 var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-3); }
.insight__meta a { color: var(--copper); text-decoration: none; position: relative; z-index: 2; }
.insight h3 { font-size: 1.12rem; line-height: 1.3; letter-spacing: -0.01em; }
.insight h3 a { color: var(--fg); text-decoration: none; }
.insight h3 a::after { content: ""; position: absolute; inset: 0; }
.insight:hover h3 a { text-decoration: underline; text-decoration-color: var(--copper); text-underline-offset: 4px; }
.insight p { font-size: 0.93rem; line-height: 1.55; }
@media (max-width: 900px) { .insight-grid { grid-template-columns: 1fr; } .insight { grid-template-columns: 200px minmax(0, 1fr); column-gap: var(--s-5); } .insight__media { grid-row: span 3; } }
@media (max-width: 560px) { .insight { grid-template-columns: 1fr; } .insight__media { grid-row: auto; } }

.subscribe {
    margin-top: var(--s-8); padding: clamp(24px, 4vw, 40px);
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-6); align-items: center;
    border: 1px solid var(--rule-strong); border-radius: var(--radius); background: var(--graphite);
}
.subscribe h3 { font-size: 1.4rem; margin-bottom: 8px; }
.subscribe p { font-size: 0.95rem; }
.subscribe .newsletter-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.subscribe .newsletter-row { display: flex; gap: 8px; }
.subscribe input[type="email"] {
    flex: 1; min-width: 0; height: 48px; padding: 0 16px; border-radius: 10px;
    background: var(--graphite-2); border: 1px solid var(--rule-strong); color: var(--fg); font: 400 16px/1 var(--font-body);
}
.subscribe input::placeholder { color: var(--fg-3); }
.subscribe .newsletter-hp { position: absolute; left: -9999px; }
.subscribe .newsletter-status { margin-top: 8px; font-size: 0.88rem; min-height: 1.2em; }
@media (max-width: 760px) { .subscribe { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .subscribe .newsletter-row, .site-footer .newsletter-row { flex-direction: column; } }

/* ---- CTA band ---- */
.cta-x { position: relative; overflow: hidden; padding: var(--section) 0; border-top: 1px solid var(--rule); }
.cta-x::before {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background-image: linear-gradient(var(--rule-faint) 1px, transparent 1px), linear-gradient(90deg, var(--rule-faint) 1px, transparent 1px);
    background-size: 48px 48px;
    -webkit-mask-image: radial-gradient(ellipse 60% 80% at 50% 100%, #000 20%, transparent 70%);
    mask-image: radial-gradient(ellipse 60% 80% at 50% 100%, #000 20%, transparent 70%);
}
.cta-x__inner { position: relative; display: grid; gap: var(--s-6); justify-items: start; max-width: 900px; }
.cta-x h2 { font-size: var(--fs-h1); line-height: 1; letter-spacing: -0.035em; }
.cta-x h2 em { font-style: normal; color: var(--molten); }
.cta-x p { font-size: var(--fs-lead); max-width: 58ch; }
.cta-x__actions { display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: center; }
.cta-x__actions small { font-size: 0.88rem; color: var(--fg-3); margin-left: 6px; }
.cta-x__actions small a { color: var(--fg-2); }

/* ---- Inner page hero ---- */
.page-hero { position: relative; padding: clamp(56px, 7vw, 104px) 0 clamp(48px, 6vw, 80px); border-bottom: 1px solid var(--rule); overflow: hidden; }
.page-hero::before {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background-image: linear-gradient(var(--rule-faint) 1px, transparent 1px), linear-gradient(90deg, var(--rule-faint) 1px, transparent 1px);
    background-size: 48px 48px;
    -webkit-mask-image: linear-gradient(180deg, #000, transparent 90%);
    mask-image: linear-gradient(180deg, #000, transparent 90%);
}
.page-hero__inner { position: relative; display: grid; gap: var(--s-5); max-width: 880px; }
.page-hero h1 { font-size: var(--fs-h1); letter-spacing: -0.035em; line-height: 1; }
.page-hero p { font-size: var(--fs-lead); line-height: 1.55; max-width: 62ch; }
.page-hero__actions { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-2); }

.crumbs { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; font: 500 0.7rem/1.3 var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-3); }
.crumbs a { color: var(--fg-2); text-decoration: none; }
.crumbs a:hover { color: var(--fg); }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--rule-strong); }

/* ---- Service index list ---- */
.svc-list { list-style: none; border-top: 1px solid var(--rule-strong); }
.svc-row {
    position: relative; display: grid; grid-template-columns: 80px minmax(0, 1fr) minmax(0, 1.2fr) 40px; gap: var(--s-5);
    align-items: center; padding: var(--s-6) 0; border-bottom: 1px solid var(--rule-strong);
    color: inherit; text-decoration: none; transition: background-color 0.25s;
}
.svc-row:hover { background: rgba(197, 139, 92, 0.05); }
.svc-row__no { font: 500 var(--fs-mono)/1 var(--font-mono); letter-spacing: 0.14em; color: var(--copper); }
.svc-row h2, .svc-row h3 { font-size: clamp(1.35rem, 1.1rem + 0.9vw, 1.9rem); font-weight: 800; letter-spacing: -0.025em; }
.svc-row p { font-size: 0.97rem; line-height: 1.55; }
.svc-row svg { width: 20px; height: 20px; color: var(--fg-3); justify-self: end; transition: transform 0.25s var(--ease), color 0.25s; }
.svc-row:hover svg { color: var(--copper); transform: translate(3px, -3px); }
@media (max-width: 800px) {
    .svc-row { grid-template-columns: 48px minmax(0, 1fr) 24px; }
    .svc-row p { grid-column: 2 / 3; }
    .svc-row svg { grid-row: 1; grid-column: 3; }
}

/* ---- Service / product detail ---- */
.detail-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 96px); }
.detail-grid > h2 { font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.3rem); }
.ticks { list-style: none; display: grid; border-top: 1px solid var(--rule); }
.ticks li { position: relative; padding: 16px 0 16px 30px; border-bottom: 1px solid var(--rule); color: var(--fg); line-height: 1.5; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 23px; width: 12px; height: 1px; background: var(--copper); }
.ticks--teal li::before { background: var(--teal); }
.sol-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--rule-strong); border-left: 1px solid var(--rule-strong); }
.sol { padding: var(--s-6) var(--s-5); border-right: 1px solid var(--rule-strong); border-bottom: 1px solid var(--rule-strong); display: grid; gap: var(--s-3); align-content: start; scroll-margin-top: calc(var(--header-h) + 24px); }
.sol h3 { font-size: 1.18rem; }
.sol p { font-size: 0.95rem; line-height: 1.55; }
.sol:target { background: rgba(197, 139, 92, 0.07); }
@media (max-width: 860px) { .detail-grid { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .sol-grid { grid-template-columns: 1fr; } }

.note {
    display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; padding: var(--s-5); border: 1px dashed var(--rule-strong); border-radius: 10px;
    font-size: 0.93rem; line-height: 1.55; color: var(--fg-2);
}
.note::before { content: "NOTE"; font: 500 0.66rem/1.6 var(--font-mono); letter-spacing: 0.14em; color: var(--steel-light); }

.spec-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.spec-table th, .spec-table td { text-align: left; padding: 14px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.spec-table th { width: 38%; font: 500 var(--fs-mono)/1.5 var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-3); padding-right: 16px; }
.spec-table td { color: var(--fg); }
.spec-table a { color: var(--teal); }

.product-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.product-hero__icon { width: 72px; height: 72px; border-radius: 18px; }
.product-hero .page-hero__inner { max-width: none; }
@media (max-width: 900px) { .product-hero { grid-template-columns: 1fr; } }

.addon-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--rule-strong); border-left: 1px solid var(--rule-strong); }
.addon { position: relative; display: grid; gap: 8px; align-content: start; padding: var(--s-5); border-right: 1px solid var(--rule-strong); border-bottom: 1px solid var(--rule-strong); text-decoration: none; color: inherit; transition: background-color 0.2s; }
.addon:hover { background: rgba(101, 200, 199, 0.06); }
.addon b { color: var(--fg); font-weight: 600; }
.addon span { font: 500 0.66rem/1 var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--teal); }
.addon p { font-size: 0.9rem; line-height: 1.5; }
@media (max-width: 900px) { .addon-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .addon-grid { grid-template-columns: 1fr; } }

/* ---- About ---- */
.prose { display: grid; gap: var(--s-5); max-width: 66ch; }
.prose p { font-size: 1.08rem; line-height: 1.7; color: var(--fg-2); }
.prose p strong { color: var(--fg); font-weight: 600; }
.prose h2 { font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.3rem); margin-top: var(--s-5); }
.principles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--rule-strong); border-left: 1px solid var(--rule-strong); }
.principles > div { padding: var(--s-6) var(--s-5); border-right: 1px solid var(--rule-strong); border-bottom: 1px solid var(--rule-strong); display: grid; gap: var(--s-3); align-content: start; }
.principles h3 { font-size: 1.2rem; }
.principles p { font-size: 0.95rem; line-height: 1.6; }
@media (max-width: 700px) { .principles { grid-template-columns: 1fr; } }

/* ---- Forms ---- */
.form-x { display: grid; gap: var(--s-5); }
.form-x__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-5); }
.field { display: grid; gap: 8px; }
.field label, .field legend { font: 600 0.9rem/1.3 var(--font-body); color: var(--fg); padding: 0; }
.field label small, .field legend small { font-weight: 400; color: var(--fg-3); margin-left: 4px; }
.field input, .field select, .field textarea {
    width: 100%; min-height: 50px; padding: 12px 14px; border-radius: 10px;
    background: var(--graphite-2); border: 1px solid var(--rule-strong); color: var(--fg);
    font: 400 16px/1.4 var(--font-body);
    transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { min-height: 160px; resize: vertical; }
.field select { appearance: none; -webkit-appearance: none; padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238499A8' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 16px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--copper); box-shadow: 0 0 0 3px rgba(197, 139, 92, 0.25); }
.field [aria-invalid="true"] { border-color: #F27D7D; }
.field__error { font-size: 0.85rem; color: #FF9C9C; min-height: 0; }
.field__error:empty { display: none; }
.field__hint { font-size: 0.85rem; color: var(--fg-3); }
.form-x__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-x__status { padding: 14px 16px; border-radius: 10px; font-size: 0.95rem; line-height: 1.5; }
.form-x__status:empty { display: none; }
.form-x__status.is-error { background: rgba(242, 125, 125, 0.1); border: 1px solid rgba(242, 125, 125, 0.4); color: #FFC4C4; }
.form-x__status.is-success { background: rgba(101, 200, 199, 0.1); border: 1px solid rgba(101, 200, 199, 0.4); color: #C9F5EA; }
.form-x button[type="submit"][disabled] { opacity: 0.6; cursor: progress; }
@media (max-width: 640px) { .form-x__row { grid-template-columns: 1fr; } }

.contact-layout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.contact-aside { display: grid; gap: var(--s-6); position: sticky; top: calc(var(--header-h) + 32px); }
.contact-aside .facts li { grid-template-columns: 1fr; gap: 6px; }
.route-card { display: grid; gap: var(--s-3); padding: var(--s-5); border: 1px solid rgba(101, 200, 199, 0.35); border-radius: var(--radius); background: rgba(101, 200, 199, 0.04); }
.route-card h2 { font-size: 1.2rem; letter-spacing: -0.015em; }
.route-card p { font-size: 0.93rem; }
@media (max-width: 900px) { .contact-layout { grid-template-columns: 1fr; } .contact-aside { position: static; } }

/* ---- Reveal (only applied by JS to below-the-fold content) ---- */
.will-reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.will-reveal.is-revealed { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; scroll-behavior: auto !important; }
    .will-reveal { opacity: 1; transform: none; }
    .hero-stage:hover .window { transform: none !important; }
}

/* ==================================================================
   WORDMARK LOCKUPS (brand board)
   Michroma, extended and squared. "JONES" sets the measure; "THE" and
   "FOUNDRY" are tracked out in copper to the same width. All sizes are
   em-relative: set font-size on .wm to scale the whole lockup.
   ================================================================== */
.wm { display: inline-flex; align-items: center; gap: 0.62em; color: var(--fg); text-decoration: none; line-height: 1; font-family: 'Michroma', var(--font-display); font-weight: 400; }
.wm__mark { flex-shrink: 0; width: 2.5em; height: 2.5em; display: block; }
.wm__rule { align-self: stretch; width: 1px; margin: 0.1em 0.12em; background: linear-gradient(180deg, transparent, var(--copper) 20%, var(--copper) 80%, transparent); }
.wm__text { display: inline-grid; justify-items: start; }
.wm__the { font-size: 0.36em; letter-spacing: 0.98em; -webkit-text-stroke: 0.02em currentColor; color: var(--copper); margin-bottom: 0.5em; }
.wm__jones { font-size: 1em; letter-spacing: 0.04em; -webkit-text-stroke: 0.03em currentColor; paint-order: stroke fill; }
.wm__foundry { font-size: 0.47em; letter-spacing: 0.6em; -webkit-text-stroke: 0.02em currentColor; color: var(--copper); margin-top: 0.5em; }
.wm__desc { font: 500 0.27em/1.3 var(--font-body); letter-spacing: 0.28em; text-transform: uppercase; color: var(--fg-2); margin-top: 1.2em; white-space: nowrap; }
.wm--light { color: var(--paper-ink); }
.wm--light .wm__the, .wm--light .wm__foundry { color: var(--copper-ink); }
.wm--light .wm__desc { color: var(--paper-text); }
/* Stacked: mark above, centered text */
.wm--stacked { flex-direction: column; gap: 0.7em; }
.wm--stacked .wm__rule { display: none; }
.wm--stacked .wm__text { justify-items: center; }
.wm--stacked .wm__mark { width: 3.4em; height: 3.4em; }
/* Inline (text only): THE over "JONES FOUNDRY" on one line */
.wm--inline .wm__line { white-space: nowrap; letter-spacing: 0.04em; -webkit-text-stroke: 0.03em currentColor; }
.wm--inline .wm__line b { font-weight: 400; color: var(--copper); }
.wm--light.wm--inline .wm__line b { color: var(--copper-ink); }
.wm--inline .wm__the { margin-bottom: 0.45em; }

/* Footer sizing (the header lockup is set further down) */
.site-footer__brand .wm { font-size: 20px; }

/* ==================================================================
   WHY A FOUNDRY? — the signature sequence
   ================================================================== */
.foundry { position: relative; overflow: hidden; background: var(--char-deep); }
.foundry::before {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: radial-gradient(ellipse 50% 60% at 8% 30%, rgba(197, 139, 92, 0.13), transparent 70%),
                radial-gradient(ellipse 45% 60% at 95% 85%, rgba(101, 200, 199, 0.10), transparent 70%);
}
.foundry .wrap { position: relative; }
.foundry__intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-6) clamp(32px, 6vw, 96px); align-items: end; margin-bottom: var(--s-8); }
.foundry__intro h2 { font-size: var(--fs-h1); letter-spacing: -0.035em; line-height: 0.98; }
.foundry__intro h2 em { font-style: normal; color: var(--molten); }
.foundry__intro p { font-size: var(--fs-lead); line-height: 1.6; }
.foundry__intro p + p { margin-top: var(--s-4); color: var(--fg); font-weight: 500; }
@media (max-width: 860px) { .foundry__intro { grid-template-columns: 1fr; } }

.forge { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); position: relative; }
.forge::before {
    content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px;
    background: linear-gradient(90deg, var(--copper), var(--steel) 50%, var(--teal));
    opacity: 0.6;
}
.forge__stage { position: relative; display: grid; gap: var(--s-3); align-content: start; padding: var(--s-6) var(--s-4) 0; }
.forge__stage:first-child { padding-left: 0; }
.forge__stage:last-child { padding-right: 0; }
.forge__stage + .forge__stage { border-left: 1px solid var(--rule); }
.forge__stage::before {
    content: ""; position: absolute; top: -4px; left: 0; width: 7px; height: 7px; border-radius: 50%;
    background: color-mix(in srgb, var(--copper) calc(100% - var(--i) * 25%), var(--teal));
}
.forge__stage + .forge__stage::before { left: -4px; }
.forge__art { width: 100%; height: auto; aspect-ratio: 200 / 140; margin-bottom: var(--s-3); border: 1px solid var(--rule); border-radius: 10px; background: rgba(23, 35, 47, 0.55); overflow: visible; }
.forge__no { font: 500 var(--fs-mono)/1 var(--font-mono); letter-spacing: 0.14em; color: color-mix(in srgb, var(--copper) calc(100% - var(--i) * 25%), var(--teal)); }
.forge h3 { font-size: 1.25rem; }
.forge__line { color: var(--fg); font-weight: 600; font-size: 0.97rem; line-height: 1.4; }
.forge p:last-child { font-size: 0.93rem; line-height: 1.55; }

/* drawing primitives */
.forge__art * { vector-effect: non-scaling-stroke; }
.f-draw { fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.f-thick { stroke-width: 2.4; }
.f-copper { stroke: var(--copper); }
.f-steel { stroke: var(--steel); }
.f-steel-strong { stroke: #A9B8C3; }
.f-teal { stroke: var(--teal); }
.f-teal-faint { stroke: rgba(101, 200, 199, 0.3); }
.f-fill-copper { fill: var(--copper); }
.f-fill-steel { fill: var(--steel); }
.f-soft { fill: rgba(169, 184, 195, 0.28); }
.f-panel { fill: var(--graphite-2); stroke: rgba(101, 200, 199, 0.55); stroke-width: 1.2; }
.f-live { fill: var(--teal); }
.f-block { stroke: none; }
.f-b1 { fill: #E4A16D; } .f-b2 { fill: #C58B5C; } .f-b3 { fill: #A9734A; } .f-b4 { fill: #93592F; }

/* Motion: stages assemble in order once the section scrolls into view. */
@media (prefers-reduced-motion: no-preference) {
    [data-forge].will-reveal { opacity: 1; transform: none; }
    [data-forge].will-reveal .forge__stage { opacity: 0.25; transition: opacity 0.6s var(--ease) calc(var(--i) * 0.28s); }
    [data-forge].will-reveal .f-draw { stroke-dashoffset: 0; }
    [data-forge].is-revealed .forge__stage { opacity: 1; }
    [data-forge].is-revealed .f-b4 { animation: f-settle 0.9s var(--ease) 1.2s both; }
    [data-forge].is-revealed .f-live { animation: f-pulse 2.4s ease-in-out 2s infinite; }
}
@keyframes f-settle { from { transform: translate(10px, 6px); } to { transform: translate(0, 0); } }
@keyframes f-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
/* Without motion the fourth block is drawn already in place. */
@media (prefers-reduced-motion: reduce) { .f-b4 { transform: none !important; } }

@media (max-width: 1060px) {
    .forge { grid-template-columns: 1fr; }
    .forge::before { left: 0; right: auto; top: 0; bottom: 0; width: 1px; height: auto; background: linear-gradient(180deg, var(--copper), var(--steel) 50%, var(--teal)); }
    .forge__stage, .forge__stage + .forge__stage {
        grid-template-columns: minmax(0, 220px) minmax(0, 1fr); column-gap: var(--s-5);
        padding: 0 0 var(--s-7) var(--s-6); border-left: 0;
    }
    .forge__stage::before, .forge__stage + .forge__stage::before { top: 4px; left: -3px; }
    .forge__art { grid-row: span 4; margin: 0; }
}
@media (max-width: 560px) {
    .forge__stage, .forge__stage + .forge__stage { grid-template-columns: 1fr; }
    .forge__art { grid-row: auto; max-width: 320px; }
}
.duo__list a { color: var(--fg); text-decoration: none; }
.duo__list a:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--copper); }
.duo__panel--products .duo__list a:hover { text-decoration-color: var(--teal); }
.detail-grid h2 { font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.3rem); }
/* Legacy light pages: a solid header reads cleaner than frosted glass over paper. */
body:not(.ds) .site-header { background: var(--char); }
body:not(.ds) .site-footer { margin-top: 0; }
.foundry__intro--story { align-items: start; }
.foundry__intro--story > div:first-child { position: sticky; top: calc(var(--header-h) + 32px); }
@media (max-width: 860px) { .foundry__intro--story > div:first-child { position: static; } }
@media (max-width: 560px) { .hide-sm { display: none; } }

/* ---- Name-change announcement (chrome, every page) ---- */
.announce {
    position: relative; z-index: 101;
    background: linear-gradient(90deg, rgba(197, 139, 92, 0.16), rgba(101, 200, 199, 0.10)), var(--char-deep);
    border-bottom: 1px solid rgba(197, 139, 92, 0.35);
    color: var(--fg); font: 400 0.9rem/1.4 var(--font-body);
}
.announce p {
    max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 10px var(--gutter);
    display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 12px; text-align: center;
}
.announce b { font-weight: 600; color: var(--fg); }
.announce a { display: inline-flex; align-items: center; gap: 6px; color: var(--molten); text-decoration: none; font-weight: 500; white-space: nowrap; }
.announce a:hover { text-decoration: underline; text-underline-offset: 3px; }
.announce a svg { width: 14px; height: 14px; }
.announce__mark { display: inline-flex; }
@media (max-width: 560px) { .announce { font-size: 0.84rem; } .announce__mark { display: none; } }
.rename { margin-top: var(--s-6); padding: var(--s-5); border: 1px solid rgba(197, 139, 92, 0.4); border-radius: 10px; background: rgba(197, 139, 92, 0.06); display: grid; gap: var(--s-3); justify-items: start; }
.rename__line { font: 700 1.25rem/1.3 var(--font-display); font-stretch: var(--display-stretch); color: var(--fg); letter-spacing: -0.015em; }
.rename__line span { color: var(--fg-2); font-weight: 600; }
.rename__line b { color: var(--molten); font-weight: 700; }
.rename p:not(.rename__line) { font-size: 0.97rem; line-height: 1.55; }

/* Long names ("Jones Web Designs & Development") must wrap on phones. */
:where(body.ds) :is(h1, h2, h3) { overflow-wrap: break-word; }
@media (max-width: 560px) { .detail-grid h2 { font-size: 1.55rem; } }

/* ==================================================================
   3D CASTING HERO
   ================================================================== */
.hero-x--3d { padding: 0; min-height: clamp(640px, 92vh, 940px); display: flex; isolation: isolate; background: #0d1720; }
.hero-x--3d::before, .hero-x--3d::after { display: none; }
.hero-3d { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.hero-3d__poster, .hero-3d__canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-3d__canvas { opacity: 0; transition: opacity 1.2s var(--ease); cursor: pointer; }
.hero-3d.is-live .hero-3d__canvas { opacity: 1; }
/* Legibility: darken behind the copy, fade into the next section. */
.hero-3d::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background:
        linear-gradient(90deg, rgba(13, 23, 32, 0.92) 0%, rgba(13, 23, 32, 0.7) 32%, rgba(13, 23, 32, 0) 58%),
        linear-gradient(180deg, rgba(13, 23, 32, 0) 70%, var(--char) 100%);
}
.hero-x__over { position: relative; width: 100%; display: flex; flex-direction: column; justify-content: space-between; padding-top: clamp(72px, 12vh, 140px); padding-bottom: 32px; pointer-events: none; }
.hero-x__over a, .hero-x__over button { pointer-events: auto; }
.hero-x--3d .hero-x__copy { max-width: 600px; }
.hero-x--3d .hero-x__lead { color: var(--fg); opacity: 0.86; }
.hero-x--3d .ledger { margin-top: 48px; background: linear-gradient(180deg, rgba(16, 28, 39, 0), rgba(16, 28, 39, 0.65)); }
@media (max-width: 860px) {
    .hero-x--3d { min-height: 0; }
    .hero-x__over { padding-top: 40px; }
    .hero-3d::after {
        background: linear-gradient(180deg, rgba(13, 23, 32, 0.94) 0%, rgba(13, 23, 32, 0.75) 40%, rgba(13, 23, 32, 0) 62%, rgba(13, 23, 32, 0) 82%, var(--char) 100%);
    }
    .hero-x--3d .hero-x__copy { margin-bottom: min(92vw, 440px); }
}
/* backdrop-filter makes the header the containing block for the fixed
   mobile menu; drop it while the menu is open so the menu covers the screen. */
body.nav-open .site-header { -webkit-backdrop-filter: none; backdrop-filter: none; background: #0a131b; }

/* ==================================================================
   FORGE LAYER (site-wide): embers canvas + molten seams
   ================================================================== */
.forge-canvas { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.page-hero, .cta-x, .site-footer { position: relative; overflow: hidden; isolation: isolate; }
.page-hero > .wrap, .cta-x > .wrap, .site-footer__inner { position: relative; z-index: 1; }
.page-hero { background: radial-gradient(90% 120% at 85% 120%, rgba(150, 70, 25, 0.22), transparent 60%); }
.site-footer { background: radial-gradient(80% 90% at 50% 130%, rgba(160, 75, 25, 0.35), transparent 65%), var(--char-deep); }

/* Molten seams: each boundary pours across once, left to right. */
.section { position: relative; }
.section + .section::after, .cta-x::after, .site-footer::after, .page-hero::after {
    content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 2px; z-index: 2; pointer-events: none;
    background: linear-gradient(90deg, transparent 0%, rgba(197, 139, 92, 0.6) 18%, var(--molten) 50%, rgba(197, 139, 92, 0.6) 82%, transparent 100%);
    box-shadow: 0 0 14px rgba(228, 161, 109, 0.55), 0 0 2px rgba(255, 210, 160, 0.8);
    transform: scaleX(0); transform-origin: left center; opacity: 0.8;
    transition: transform 1.8s cubic-bezier(0.65, 0, 0.35, 1);
}
.page-hero::after { top: auto; bottom: -1px; }
.is-poured.section + .section::after, .section + .section.is-poured::after,
.cta-x.is-poured::after, .site-footer.is-poured::after, .page-hero.is-poured::after { transform: scaleX(1); }
@media (prefers-reduced-motion: reduce) {
    .section + .section::after, .cta-x::after, .site-footer::after, .page-hero::after { transform: scaleX(1); transition: none; }
}

/* ==================================================================
   SERVICE DIAGRAMS (tools/site/lib/diagrams.mjs)
   8s loops; each element enters at its --d delay. Reduced motion shows
   the finished state.
   ================================================================== */
.dg { margin: 0; position: relative; border: 1px solid var(--rule-strong); border-radius: 18px; overflow: hidden;
      background: radial-gradient(90% 70% at 50% 100%, rgba(150, 70, 25, 0.22), transparent 70%), linear-gradient(180deg, #121f2b, #0d1720);
      box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.02) inset; }
.dg svg { display: block; width: 100%; height: auto; }
.dg rect, .dg path, .dg circle { vector-effect: non-scaling-stroke; }
.dg-label { font: 600 13px var(--font-body); fill: var(--fg); }
.dg-small { font: 500 11px var(--font-body); fill: var(--fg-2); }
.dg-small--user { fill: var(--teal); }
.dg-mono { font: 500 10px var(--font-mono); letter-spacing: 0.12em; fill: var(--fg-3); }
.dg-mono--time { fill: var(--molten); letter-spacing: 0.04em; font-size: 10.5px; }
.dg-faint { stroke: rgba(132, 153, 168, 0.25); fill: none; }
.dg-faint-fill { fill: rgba(132, 153, 168, 0.28); }
.dg-chip rect:first-child, .dg-card > rect:first-child, .dg-row > rect, .dg-device rect:first-child, .dg-toast rect {
    fill: #17232F; stroke: rgba(132, 153, 168, 0.32); stroke-width: 1;
}
.dg-ico { fill: rgba(197, 139, 92, 0.5); }
.dg-flow { fill: none; stroke: url(#dg-heat); stroke-width: 2; stroke-dasharray: 5 9; stroke-linecap: round; animation: dg-dash 1.2s linear infinite; opacity: 0.9; }
.dg-flow--out { stroke: #65C8C7; }
.dg-flow--sync { stroke: #65C8C7; }
.dg-core-box { fill: #1d2b38; stroke: #E4A16D; stroke-width: 1.5; }
.dg-core-glow { fill: rgba(228, 120, 50, 0.55); animation: dg-pulse 2.4s ease-in-out infinite; }
.dg-core-lines { stroke: #E4A16D; stroke-width: 3; stroke-linecap: round; fill: none; }
.dg-bar { fill: url(#dg-cool); transform-box: fill-box; transform-origin: 50% 100%; }
.dg-block { fill: rgba(197, 139, 92, 0.22); stroke: rgba(228, 161, 109, 0.55); stroke-width: 1; }
.dg-block--teal { fill: rgba(101, 200, 199, 0.18); stroke: rgba(101, 200, 199, 0.6); }
.dg-device--phone rect:first-child { fill: #131f2a; }
.dg-dot { fill: rgba(132, 153, 168, 0.45); }
.dg-live { fill: #65C8C7; }
.dg-node { fill: #17232F; stroke: rgba(132, 153, 168, 0.5); stroke-width: 1.5; }
.dg-chain { stroke: rgba(132, 153, 168, 0.3); stroke-width: 2; fill: none; }
.dg-chain--hot { stroke: #E4A16D; stroke-dasharray: 210; stroke-dashoffset: 210; }
.dg-shield path:first-child { fill: rgba(101, 200, 199, 0.12); stroke: #65C8C7; stroke-width: 1.5; }
.dg-check { fill: none; stroke: #65C8C7; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.dg-input { fill: #0f1a24; stroke: rgba(132, 153, 168, 0.4); }
.dg-type { fill: rgba(242, 244, 245, 0.75); transform-box: fill-box; transform-origin: 0 50%; }
.dg-submit { fill: #C58B5C; }
.dg-cell { fill: rgba(101, 200, 199, 0.55); }
.dg-outline { fill: none; stroke: rgba(132, 153, 168, 0.3); stroke-dasharray: 4 6; }
.dg-wire { fill: none; stroke: rgba(228, 161, 109, 0.7); stroke-dasharray: 5 5; }
.dg-solid { fill: #1d2b38; stroke: rgba(132, 153, 168, 0.35); }
.dg-piece--hero .dg-solid { fill: url(#dg-heat); opacity: 0.25; }
.dg-hero-copy rect { fill: rgba(242, 244, 245, 0.85); }
.dg-hero-copy .dg-faint-fill { fill: rgba(242, 244, 245, 0.4); }
.dg-cta { fill: #C58B5C !important; }
.dg-cursor path { fill: #F2F4F5; stroke: #0d1720; stroke-width: 1.5; }

@media (prefers-reduced-motion: no-preference) {
    .dg-chip, .dg-card, .dg-row, .dg-block, .dg-toast, .dg-hero-copy, .dg-submit {
        animation: dg-in 8s var(--ease) infinite; animation-delay: calc(var(--d, 0) * 1s); opacity: 0;
    }
    .dg-bar { animation: dg-grow 8s var(--ease) infinite; animation-delay: calc(var(--d, 0) * 1s); transform: scaleY(0); }
    .dg-type { animation: dg-typing 8s steps(14) infinite; animation-delay: calc(var(--d, 0) * 1s); transform: scaleX(0); }
    .dg-piece .dg-wire { animation: dg-in 8s var(--ease) infinite; animation-delay: calc(var(--d, 0) * 1s); opacity: 0; }
    .dg-piece .dg-solid { animation: dg-solidify 8s var(--ease) infinite; animation-delay: calc(var(--d, 0) * 1s + 0.6s); opacity: 0; }
    .dg-row .dg-node { animation: dg-node 8s var(--ease) infinite; animation-delay: calc(var(--d, 0) * 1s); }
    .dg-chain--hot { animation: dg-chain 8s var(--ease) infinite; animation-delay: 0.3s; }
    .dg-shield { animation: dg-pulse 3s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
    .dg-cursor { animation: dg-cursor 8s var(--ease) infinite; animation-delay: calc(var(--d, 0) * 1s); opacity: 0; }
}
@keyframes dg-in { 0% { opacity: 0; transform: translateY(10px); } 7% { opacity: 1; transform: none; } 82% { opacity: 1; transform: none; } 92%, 100% { opacity: 0; transform: translateY(-4px); } }
@keyframes dg-grow { 0% { transform: scaleY(0); } 10% { transform: scaleY(1); } 82% { transform: scaleY(1); } 92%, 100% { transform: scaleY(0); } }
@keyframes dg-typing { 0% { transform: scaleX(0); } 12% { transform: scaleX(1); } 82% { transform: scaleX(1); } 92%, 100% { transform: scaleX(0); } }
@keyframes dg-solidify { 0% { opacity: 0; } 8% { opacity: 1; } 80% { opacity: 1; } 90%, 100% { opacity: 0; } }
@keyframes dg-node { 0% { fill: #17232F; stroke: rgba(132, 153, 168, 0.5); } 6%, 80% { fill: #E4A16D; stroke: #E4A16D; } 92%, 100% { fill: #17232F; } }
@keyframes dg-chain { 0% { stroke-dashoffset: 210; } 45%, 80% { stroke-dashoffset: 0; } 92%, 100% { stroke-dashoffset: 210; } }
@keyframes dg-dash { to { stroke-dashoffset: -28; } }
@keyframes dg-pulse { 0%, 100% { opacity: 0.55; } 50% { opacity: 1; } }
@keyframes dg-cursor { 0% { opacity: 0; transform: translate(60px, 40px); } 8% { opacity: 1; } 18% { transform: translate(0, 0); } 21% { transform: translate(0, 0) scale(0.9); } 24% { transform: translate(0, 0) scale(1); } 80% { opacity: 1; } 90%, 100% { opacity: 0; } }

/* ---- Service page extras ---- */
.svc-hero-dg { align-self: center; }
.spotlight { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.spotlight__media { position: relative; border-radius: 14px; overflow: hidden; border: 1px solid var(--rule-strong); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.85); }
.spotlight__media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.spotlight__media--icon { aspect-ratio: 16 / 10; display: grid; place-items: center; background: radial-gradient(70% 70% at 50% 60%, rgba(101, 200, 199, 0.18), transparent 70%), var(--graphite-2); }
.spotlight__media--icon img { width: 140px; height: 140px; aspect-ratio: 1; border-radius: 32px; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.9); }
.spotlight__tag { display: inline-block; margin-bottom: 14px; font: 500 0.72rem/1 var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--teal); }
.spotlight__tag--client { color: var(--molten); }
.spotlight h3 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2.1rem); margin-bottom: 14px; }
.spotlight p { font-size: 1.04rem; line-height: 1.65; margin-bottom: 18px; }
.spotlight .ticks { margin-bottom: 22px; }
@media (max-width: 860px) { .spotlight { grid-template-columns: 1fr; } }

.stack-groups { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--rule-strong); border-left: 1px solid var(--rule-strong); }
.stack-groups > div { padding: 22px; border-right: 1px solid var(--rule-strong); border-bottom: 1px solid var(--rule-strong); display: grid; gap: 14px; align-content: start; transition: background-color 0.25s; }
.stack-groups > div:hover { background: rgba(197, 139, 92, 0.05); }
.stack-groups h3 { font: 500 0.72rem/1 var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--copper); }
@media (max-width: 900px) { .stack-groups { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.faq { border-top: 1px solid var(--rule-strong); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 20px 0; font: 600 1.08rem/1.35 var(--font-body); color: var(--fg); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--rule-strong); color: var(--molten); font: 400 1.2rem/1 var(--font-body); transition: transform 0.3s var(--ease), background-color 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); background: rgba(197, 139, 92, 0.12); }
.faq details p { padding: 0 48px 22px 0; font-size: 1rem; line-height: 1.65; color: var(--fg-2); }

/* Header lockup: THE JONES FOUNDRY on one line beside the mark, at every
   width. On phones it scales to fill the space up to the menu button. */
.site-header .wm { font-size: 16px; gap: 0.6em; }
.site-header .wm__mark { width: 2.3em; height: 2.3em; }
.site-header .wm__text { display: flex; align-items: baseline; gap: 0.5em; white-space: nowrap; }
.site-header .wm__the, .site-header .wm__jones, .site-header .wm__foundry {
    font-size: 1em; margin: 0; letter-spacing: 0.08em;
}
.site-header .wm__jones { color: var(--fg); }
@media (max-width: 1240px) and (min-width: 1061px) { .site-header .wm { font-size: 13.5px; } }
@media (max-width: 760px) { .site-header .wm { font-size: clamp(11px, 3.45vw, 17px); gap: 0.55em; } }

/* ==================================================================
   FOUNDRY DARK FOR THE AI AND SECURITY PAGES
   These long-standing pages keep their own markup and tools (scanner,
   AI finder, intake forms) but take the foundry look: style.css and
   security.css are built on these tokens, so remapping them here
   converts the pages. body.ds-dark is set by tools/site/build.mjs.
   ================================================================== */
body.ds-dark {
    --bg: #101C27; --bg-2: #17232F; --bg-3: #1D2B38; --bg-tint: #17232F;
    --ink: #F2F4F5; --ink-2: #F2F4F5; --text: #B9C4CC; --text-2: #8499A8; --text-dim: #748A99;
    --line: rgba(132, 153, 168, 0.17); --line-soft: rgba(132, 153, 168, 0.1); --line-strong: rgba(132, 153, 168, 0.32);
    --accent: #65C8C7; --accent-light: #65C8C7; --accent-2: #C58B5C;
    --cream: #1D2B38; --sky: #1D2B38; --peach: rgba(197, 139, 92, 0.18); --blush: rgba(101, 200, 199, 0.18);
    --lavender: rgba(197, 139, 92, 0.25); --rose: rgba(240, 106, 74, 0.25);
    --dark: #0B151E; --dark-2: #17232F; --on-dark: #F2F4F5; --on-dark-dim: rgba(242, 244, 245, 0.6);
    --sh-xs: none; --sh-sm: 0 10px 30px -18px rgba(0, 0, 0, 0.8); --sh-md: 0 18px 40px -20px rgba(0, 0, 0, 0.85);
    --sh-lg: 0 30px 60px -28px rgba(0, 0, 0, 0.9); --sh-card: 0 20px 40px -26px rgba(0, 0, 0, 0.85);
    --tok-comment: #748A99; --tok-key: #E4A16D; --tok-str: #65C8C7; --tok-fn: #E4A16D; --tok-var: #A9B8C3; --tok-punc: #8499A8; --tok-num: #65C8C7;
    background: var(--bg); color: var(--text);
}
body.ds-dark :is(h1, h2, h3, h4) { font-family: var(--font-display); font-stretch: var(--display-stretch); letter-spacing: -0.025em; color: var(--ink); }
/* Buttons: copper primary, outlined secondary, same as the rest of the site. */
body.ds-dark .btn { border-radius: 10px; font-family: var(--font-body); font-weight: 600; }
body.ds-dark .btn-primary, body.ds-dark .btn-light {
    background: linear-gradient(180deg, #d69a68, #C58B5C); color: #101C27;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.25) inset, 0 10px 24px -12px rgba(228, 120, 50, 0.7);
}
body.ds-dark .btn-primary:hover, body.ds-dark .btn-light:hover { background: linear-gradient(180deg, #e4a874, #cf9563); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.3) inset, 0 14px 32px -10px rgba(228, 120, 50, 0.9); }
body.ds-dark .btn-secondary { background: transparent; color: #F2F4F5; border-color: rgba(101, 200, 199, 0.45); }
body.ds-dark .btn-secondary:hover { border-color: #65C8C7; background: rgba(101, 200, 199, 0.08); }
/* Cards and inputs that were plain white. */
body.ds-dark input, body.ds-dark select, body.ds-dark textarea { background: #1D2B38; color: #F2F4F5; border-color: rgba(132, 153, 168, 0.32); }
body.ds-dark input::placeholder, body.ds-dark textarea::placeholder { color: #8499A8; }
body.ds-dark a { color: #65C8C7; }
body.ds-dark .btn, body.ds-dark .site-header a, body.ds-dark .site-footer a { color: inherit; }
body.ds-dark .btn-primary, body.ds-dark .btn-light { color: #101C27; }
/* Forge embers behind the page header, like every other page. */
body.ds-dark .sec-hero { position: relative; isolation: isolate; overflow: hidden; background: radial-gradient(90% 120% at 85% 120%, rgba(150, 70, 25, 0.25), transparent 60%); }
body.ds-dark .sec-hero > .forge-canvas { z-index: -1; }
body.ds-dark section + section { position: relative; }
/* Section label pills: dark glass with a copper mark. */
body.ds-dark .badge { background: rgba(23, 35, 47, 0.8); border: 1px solid rgba(132, 153, 168, 0.3); color: #B9C4CC; box-shadow: none; font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; }
body.ds-dark .badge-mark { background: rgba(197, 139, 92, 0.18); color: #E4A16D; box-shadow: none; }
body.ds-dark .badge-mark svg { stroke: currentColor; }

/* ---- Brand film ---- */
.film { margin: 0 0 var(--s-8); display: grid; gap: var(--s-4); }
.film__frame { position: relative; border-radius: 16px; overflow: hidden; border: 1px solid rgba(197, 139, 92, 0.4); background: #0d1720;
    box-shadow: 0 50px 100px -50px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.02) inset, 0 0 60px -20px rgba(228, 120, 50, 0.35); }
.film__video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: #0d1720; }
.film__play {
    position: absolute; left: 80%; top: 48%; width: 92px; height: 92px; margin: -46px 0 0 -46px; border-radius: 50%; border: 0; cursor: pointer;
    display: grid; place-items: center; color: #101C27;
    background: radial-gradient(circle at 35% 30%, #f0bb8a, #C58B5C 60%, #9c6a40);
    box-shadow: 0 0 0 10px rgba(197, 139, 92, 0.18), 0 0 50px rgba(228, 120, 50, 0.6);
    transition: transform 0.25s var(--ease), box-shadow 0.25s;
}
.film__play svg { width: 38px; height: 38px; margin-left: 5px; }
.film__play:hover { transform: scale(1.06); box-shadow: 0 0 0 14px rgba(197, 139, 92, 0.22), 0 0 70px rgba(228, 120, 50, 0.8); }
.film.is-playing .film__play { opacity: 0; pointer-events: none; }
.film__caption { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; }
.film__caption b { font: 700 1.1rem/1.3 var(--font-display); font-stretch: var(--display-stretch); color: var(--fg); }
.film__caption span { font-size: 0.95rem; color: var(--fg-3); }
@media (prefers-reduced-motion: no-preference) {
    .film__play { animation: film-pulse 2.6s ease-in-out infinite; }
}
@keyframes film-pulse { 0%, 100% { box-shadow: 0 0 0 10px rgba(197, 139, 92, 0.18), 0 0 50px rgba(228, 120, 50, 0.55); } 50% { box-shadow: 0 0 0 18px rgba(197, 139, 92, 0.08), 0 0 70px rgba(228, 120, 50, 0.75); } }
@media (max-width: 560px) { .film__play { width: 68px; height: 68px; margin: -34px 0 0 -34px; } .film__play svg { width: 28px; height: 28px; } }

/* ---- Footer mascot: the Foundry Smith from the brand film ---- */
.footer-smith { position: relative; display: flex; justify-content: flex-end; align-items: flex-end; gap: 4px; margin-top: var(--s-6); margin-bottom: -1px; pointer-events: none; }
.footer-smith__img { width: auto; height: 200px; display: block; transform-origin: 60% 100%; }
.footer-smith__bubble {
    pointer-events: auto; position: relative; align-self: flex-start; margin-top: 18px;
    padding: 12px 16px; border-radius: 14px; background: #F2F4F5; color: #101C27 !important; text-decoration: none;
    font: 500 0.92rem/1.35 var(--font-body); box-shadow: 0 16px 30px -16px rgba(0, 0, 0, 0.8);
    transition: transform 0.25s var(--ease), background-color 0.2s;
}
.footer-smith__bubble b { display: block; font-weight: 700; color: #8E5530; }
.footer-smith__bubble::after { /* tail pointing at the smith */
    content: ""; position: absolute; right: -9px; bottom: 16px; border: 9px solid transparent; border-left-color: #F2F4F5; border-right: 0;
}
.footer-smith__bubble:hover { transform: translateY(-2px) rotate(-1deg); background: #fff; }
.footer-smith + .title-block { margin-top: 0; }
@media (prefers-reduced-motion: no-preference) {
    .footer-smith__img { animation: smith-idle 4.5s ease-in-out infinite; }
    .site-footer.is-poured .footer-smith__bubble { animation: bubble-pop 0.6s var(--ease) 0.4s both; }
}
@keyframes smith-idle { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-3px) rotate(-1.2deg); } }
@keyframes bubble-pop { from { opacity: 0; transform: translateY(8px) scale(0.92); } to { opacity: 1; transform: none; } }
@media (max-width: 640px) {
    .footer-smith { justify-content: center; }
    .footer-smith__img { height: 160px; }
    .footer-smith__bubble { font-size: 0.85rem; margin-top: 10px; }
}
/* Desktop: the smith stands in the free space under the newsletter column. */
@media (min-width: 1061px) { .footer-smith { margin-top: -112px; } }
/* Stacked newsletter row on small phones: keep the input full height. */
@media (max-width: 420px) { .subscribe .newsletter-row input, .site-footer .newsletter-row input { flex: none; width: 100%; } }
/* AI/security pages: keep the shared footer identical to every other page. */
body.ds-dark .site-footer .site-footer__heading { font: 500 var(--fs-mono)/1 var(--font-mono); font-stretch: normal; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-3); }
body.ds-dark .site-footer .btn-x--primary, body.ds-dark .site-header .btn-x--primary { color: #101C27; }
body.ds-dark .site-footer .newsletter-row button { flex: none; padding: 0 16px; }
body.ds-dark .site-footer .newsletter-row input { padding: 0 14px; }
/* Legacy back-to-top button: copper to match. */
.scroll-top-btn { background: linear-gradient(180deg, #d69a68, #C58B5C) !important; color: #101C27 !important; box-shadow: 0 10px 24px -12px rgba(228, 120, 50, 0.7) !important; }
body.ds-dark .site-footer .newsletter-row input { flex: 1 1 auto; width: auto; min-width: 0; }
.site-footer .newsletter { display: block; width: 100%; min-width: 0; max-width: 100%; }
.site-footer .newsletter-row { width: 100%; }
