:root {
  color-scheme: dark;
  --bg: #0b0d0c; --surface: #111512; --surface-raised: #171c18;
  --text: #f0f2eb; --muted: #a1aaa1; --accent: #c0e5a5; --accent-dark: #14230e;
  --line: rgba(207, 225, 204, .13); --line-strong: rgba(207, 225, 204, .28);
  --font-heading: 'Segoe UI', Arial, sans-serif; --font-body: 'Segoe UI', Arial, sans-serif;
  --font-mono: 'Cascadia Code', Consolas, 'Courier New', monospace;
  --space-xs: .5rem; --space-sm: 1rem; --space-md: 1.5rem; --space-lg: 2rem;
  --space-xl: 3.5rem; --space-section: clamp(4.5rem, 8vw, 8rem);
  --radius: .5rem; --transition: 180ms ease;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; overflow-x: clip; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.65 var(--font-body); -webkit-font-smoothing: antialiased; overflow: clip; }
/* Clip transformed paint at the content boundary without creating a nested
   scroll container: document height and sticky navigation stay stable. */
main { overflow: clip; }
body.menu-open { overflow: hidden; }
html:has(body.menu-open) { overflow-y: hidden; }
::selection { color: var(--accent-dark); background: var(--accent); }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, a, select, textarea { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a, button { touch-action: manipulation; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; }
[hidden] { display: none !important; }
img, svg { max-width: 100%; }
img { display: block; height: auto; }
figure { margin: 0; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: var(--font-heading); font-weight: 500; letter-spacing: -.045em; line-height: 1.12; text-wrap: balance; }
h1 { font-size: clamp(3rem, 6vw, 6.5rem); }
h2 { font-size: clamp(2rem, 3.5vw, 3.5rem); margin-bottom: var(--space-lg); }
h3 { font-size: 1.45rem; margin-bottom: 1rem; letter-spacing: -.025em; }
p { color: var(--muted); margin-bottom: var(--space-md); }
em { font-style: normal; color: var(--accent); }
ul { padding: 0; }
.shell { width: 100%; padding-inline: 56px; margin-inline: auto; }
.section { padding-block: var(--space-section); border-top: 1px solid var(--line); }
.section-first { padding-top: 2rem; border-top: 0; }
.eyebrow, .mono { font-family: var(--font-mono); font-size: .7rem; line-height: 1.7; font-weight: 400; letter-spacing: .065em; }
.eyebrow { text-transform: uppercase; display: flex; gap: .75rem; align-items: center; margin-bottom: 1.6rem; color: var(--muted); }
.mono { color: var(--muted); }
.muted { color: var(--muted); }
.lead, .body-large { font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.65; }
.status-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: 8px; left: 8px; transform: translateY(-160%); z-index: 200; padding: 12px 20px; color: var(--accent-dark); background: var(--accent); }
.skip-link:focus { transform: none; }
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(11,13,12,.95); border-bottom: 1px solid var(--line); backdrop-filter: blur(14px); }
.header-inner { min-height: 92px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 15px; font-size: .88rem; line-height: 1.4; font-weight: 500; flex-shrink: 0; }
.brand-mark { display: block; width: 50px; height: 50px; object-fit: contain; flex-shrink: 0; }
.brand-role { display: block; font-size: .65rem; color: var(--muted); margin-top: 3px; font-weight: 400; }
.desktop-nav { display: flex; align-items: center; gap: 32px; font-size: .81rem; }
.desktop-nav a { padding-block: 12px; position: relative; color: var(--muted); }
.desktop-nav a::after { content: ''; position: absolute; left: 0; right: 100%; bottom: 6px; height: 1px; background: var(--accent); transition: right var(--transition); }
.desktop-nav a:hover::after, .desktop-nav a[aria-current]::after { right: 0; }
.desktop-nav a:hover, .desktop-nav a[aria-current] { color: var(--text); }
.header-contact { border: 1px solid var(--line-strong); padding: 9px 17px; border-radius: 4px; font-size: .8rem; display: flex; gap: 28px; align-items: center; }
.header-contact:hover { border-color: var(--accent); }
.menu-toggle { background: transparent; border: 1px solid var(--line); border-radius: 4px; width: 44px; height: 44px; padding: 12px; color: var(--text); }
.menu-toggle span { display: block; background: currentColor; height: 1px; margin-block: 5px; }
.mobile-menu { color: var(--text); background: var(--bg); width: min(100%, 560px); max-width: 100%; max-height: 100dvh; height: 100dvh; margin: 0 0 0 auto; padding: 24px; border: 0; border-left: 1px solid var(--line); }
.mobile-menu::backdrop { background: rgba(0,0,0,.72); }
.mobile-menu-top { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 2rem; }
.mobile-menu-top .eyebrow { margin: 0; }
.menu-close { background: transparent; border: 1px solid var(--line); width: 44px; height: 44px; color: var(--text); font-size: 1.8rem; flex-shrink: 0; }
.mobile-menu nav a { display: flex; justify-content: space-between; font-size: 1.7rem; padding: 13px 0; border-bottom: 1px solid var(--line); }
.mobile-menu nav a[aria-current] { color: var(--accent); }
.hero { padding-top: 48px; }
.hero-topline { display: flex; justify-content: space-between; gap: 20px; }
.hero-topline .eyebrow { color: var(--text); }
.hero-topline > .mono { color: #849083; }
.hero-grid { display: grid; grid-template-columns: 1.04fr 1fr; align-items: center; gap: 30px; min-height: 610px; padding-block: 32px 50px; }
.hero h1 { font-size: clamp(4.25rem, 7.4vw, 7.7rem); line-height: .99; letter-spacing: -.06em; margin-bottom: 32px; }
.hero-description { font-size: 1rem; max-width: 390px; line-height: 1.8; margin-bottom: 30px; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 28px; border: 1px solid var(--accent); border-radius: 4px; background: var(--accent); color: var(--accent-dark); padding: 14px 21px; font-size: .8rem; font-weight: 600; line-height: 1.6; transition: background var(--transition), transform var(--transition), border-color var(--transition); }
.button:hover { background: #d2efbd; transform: translateY(-2px); }
.button-ghost { background: transparent; color: var(--text); border-color: var(--line-strong); font-weight: 400; }
.button-ghost:hover { background: var(--surface-raised); border-color: #77926a; }
.button > span { font-size: 1.15rem; line-height: 1; }
.hero-visual { position: relative; min-width: 0; border-left: 1px solid var(--line); border-right: 1px solid var(--line); background: radial-gradient(ellipse at 50% 55%, rgba(118,149,99,.04), transparent 70%); }
.visual-top, .visual-bottom { display: flex; justify-content: space-between; padding: 0 20px; font-size: .57rem; }
.visual-top { align-items: center; }
.visual-cross { font-size: 1.5rem; color: #697465; line-height: 1; }
.visual-bottom { border-top: 1px solid var(--line); padding-top: 16px; }
.architecture-art { display: block; width: 100%; height: auto; margin-block: 12px; }
.hero-bottom { border-top: 1px solid var(--line); padding-block: 24px; display: flex; justify-content: space-between; gap: 20px; font-size: .7rem; color: var(--muted); }
.hero-bottom i { color: #5d685b; margin-inline: 18px; font-style: normal; }
.hero-bottom a { display: flex; gap: 20px; }
.positioning { text-align: center; }
.positioning > div { max-width: 960px; margin-inline: auto; }
.positioning h2 { font-size: clamp(1.9rem, 2.9vw, 2.9rem); line-height: 1.3; }
.positioning .body-large { max-width: 730px; margin-inline: auto; }
.section-glyph { display: block; color: var(--accent); font-size: 3rem; font-weight: 200; letter-spacing: -.1em; margin-top: 48px; }
.text-link { display: inline-flex; align-items: center; gap: 23px; font-size: .82rem; padding-block: 8px; border-bottom: 1px solid var(--line-strong); transition: color var(--transition), border-color var(--transition); }
.text-link:hover { color: var(--accent); border-color: var(--accent); }
.text-link span { font-size: 1.2rem; }
.related-content nav { display: flex; flex-direction: column; gap: var(--space-xs); max-width: 560px; }
.related-content .text-link { justify-content: space-between; border-bottom: 1px solid var(--line); }

.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin-bottom: 45px; }
.section-heading h2 { margin: 0; }
.section-heading > .eyebrow { margin: 0; }
.heading-note { font-size: .85rem; margin: 0; max-width: 330px; }
.hermes-feature { background: #101510; border-block: 1px solid var(--line); }
.hermes-feature .section { border-top: 0; }
.feature-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 75px; }
.product-wordmark { font-size: clamp(3rem, 5vw, 4.5rem); letter-spacing: -.065em; font-weight: 600; display: block; margin-bottom: 30px; line-height: 1.1; }
.product-wordmark > span { color: var(--accent); font-size: .33em; letter-spacing: -.035em; margin-left: 3px; }
.product-wordmark sup { font-size: .35em; color: var(--accent); margin-left: 10px; }
.hermes-feature h2 { font-size: clamp(1.8rem, 2.6vw, 2.65rem); line-height: 1.22; }
.feature-grid > div > p { max-width: 540px; font-size: .95rem; }
.feature-grid .actions { margin-top: 35px; }
.tags { display: flex; flex-wrap: wrap; gap: 7px; margin-block: 25px; }
.tags span { font-family: var(--font-mono); font-size: .62rem; color: #b0bbae; background: rgba(166,193,153,.035); border: 1px solid var(--line); border-radius: 3px; padding: 5px 9px; }
.system-diagram { border: 1px solid var(--line-strong); border-radius: var(--radius); padding: clamp(18px, 3vw, 36px); background-color: #101610; background-image: radial-gradient(rgba(183,210,166,.12) .65px, transparent .65px); background-size: 17px 17px; min-width: 0; }
.diagram-caption { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; margin-bottom: 30px; flex-wrap: wrap; }
.diagram-caption .eyebrow { margin: 0; font-size: .6rem; }
.diagram-caption .mono { font-size: .58rem; }
.core-node { display: flex; align-items: center; justify-content: center; gap: 15px; padding: 18px; border: 1px solid #779c61; border-radius: 5px; background: #1e2a1a; max-width: 360px; margin-inline: auto; }
.core-glyph { width: 35px; height: 35px; font-size: 21px; border: 1px solid #5b794b; display: grid; place-content: center; color: var(--accent); }
.core-node strong { display: block; font-size: 1rem; font-weight: 500; }
.core-node div > span { display: block; font-size: .56rem; color: #adbca5; margin-top: 3px; }
.diagram-stem { width: 1px; height: 28px; background: #576d4b; margin-inline: auto; }
.engine-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 7px; margin: 0; list-style: none; border-top: 1px solid #405339; padding-top: 16px; }
.engine-grid li { padding: 12px 8px; border: 1px solid #34432f; border-radius: 3px; background: #131c12; font-size: .58rem; display: flex; gap: 6px; align-items: center; justify-content: center; }
.node-dot { width: 3px; height: 3px; border-radius: 50%; background: #9abd80; flex-shrink: 0; }
.output-grid { list-style: none; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; margin: 0; padding-top: 16px; border-top: 1px solid #405339; }
.output-grid li { display: flex; justify-content: space-between; align-items: center; border: 1px solid #34432f; background: #101610; padding: 10px 13px; color: #c0cdb8; font-size: .7rem; }
.output-grid span { color: #88a472; }
.project-card {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  border: 1px solid rgba(225, 242, 220, .22);
  border-radius: 24px;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 100% 100%, rgba(173, 213, 151, .09), transparent 55%),
    linear-gradient(125deg, rgba(235, 248, 229, .085), rgba(24, 33, 26, .38) 42%, rgba(15, 22, 18, .62));
  -webkit-backdrop-filter: blur(18px) saturate(125%);
  backdrop-filter: blur(18px) saturate(125%);
  box-shadow: 0 18px 48px -24px rgba(0, 0, 0, .65), inset 0 1px 0 rgba(249, 255, 241, .2);
  transition: border-color 350ms ease, box-shadow 350ms ease;
}
/* A broad inner bevel and a fine, directional rim suggest rounded glass edges. */
.project-card::before, .project-card::after {
  content: '';
  position: absolute;
  pointer-events: none;
  border-radius: inherit;
}
.project-card::before {
  z-index: 1;
  inset: 0;
  background: linear-gradient(115deg, rgba(243, 255, 233, .065), transparent 28%, transparent 74%, rgba(190, 225, 206, .035));
  box-shadow:
    inset 0 2px 2px rgba(246, 255, 238, .27),
    inset 2px 0 3px rgba(223, 248, 212, .17),
    inset -2px -2px 3px rgba(218, 248, 235, .2),
    inset 0 0 0 6px rgba(215, 237, 205, .025),
    inset 0 0 16px rgba(210, 240, 197, .055);
}
.project-card::after {
  z-index: 2;
  inset: -1px;
  padding: 2px;
  background: conic-gradient(from 145deg at 50% 50%,
    rgba(233, 255, 246, .7), rgba(188, 228, 176, .13) 12%,
    rgba(208, 239, 187, .08) 28%, rgba(249, 255, 238, .85) 42%,
    rgba(219, 245, 207, .4) 49%, rgba(197, 228, 188, .08) 61%,
    rgba(180, 218, 202, .06) 78%, rgba(231, 255, 247, .7));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  opacity: .75;
  transition: opacity 350ms ease;
}
.project-card:hover, .project-card:focus-within {
  border-color: rgba(225, 247, 216, .38);
  box-shadow: 0 22px 52px -24px rgba(0, 0, 0, .7), 0 0 24px -12px rgba(192, 229, 165, .17), inset 0 1px 0 rgba(249, 255, 241, .3);
}
.project-card:hover::after, .project-card:focus-within::after { opacity: 1; }
.project-image { display: grid; place-items: center; background: rgba(21, 26, 21, .45); overflow: hidden; }
.project-image img { width: 100%; transition: transform 450ms ease; }
.project-card:hover .project-image img { transform: scale(1.025); }
.project-copy { padding: clamp(24px,4vw,50px); }
.project-copy h3 { font-size: 2.5rem; }
.project-copy h3 a { display: flex; justify-content: space-between; gap: 15px; }
.project-copy h3 a > span { font-size: 1.6rem; color: var(--accent); }
.project-copy > p { font-size: .95rem; }
.project-copy .project-role { font-size: .72rem; margin-top: 25px; }
.project-copy .tags { margin-block: 18px 24px; }
.expertise-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.expertise-grid article { padding: 34px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.index-number { display: block; margin-bottom: 40px; color: #b5c6a6; }
.expertise-grid p { font-size: .9rem; }
.expertise-tags { font-family: var(--font-mono); font-size: .59rem; color: #96a48e; margin-top: 30px; }
.principles { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 40px; }
.principles article { border-top: 1px solid var(--line-strong); padding-top: 25px; }
.principles article > .mono { color: var(--accent); display: block; margin-bottom: 35px; }
.principles article h2 { font-size: 1.65rem; }
.principles p { font-size: .95rem; margin: 0; }
.contact-cta { border-top: 1px solid var(--line); padding-block: var(--space-section); }
.contact-cta > div { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.contact-cta h2 { font-size: clamp(2.7rem, 6.2vw, 6.2rem); line-height: 1.08; }
.contact-cta > p:not(.eyebrow) { margin-top: 15px; }
.round-link { display: grid; place-content: center; width: 100px; height: 100px; flex-shrink: 0; border-radius: 50%; border: 1px solid #4d6340; font-size: 3rem; color: var(--accent); transition: background var(--transition), transform var(--transition); }
.round-link:hover { background: #1e2b18; transform: translate(2px,-2px); }
.site-footer { border-top: 1px solid var(--line); padding-top: 55px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 55px; }
.footer-top .brand { align-self: start; }
.footer-top > p { font-size: .8rem; line-height: 1.8; }
.footer-top nav { display: grid; align-content: start; gap: 9px; font-size: .75rem; color: var(--muted); }
.footer-top nav a:hover { color: var(--accent); }
.footer-bottom { display: flex; justify-content: space-between; gap: 25px; border-top: 1px solid var(--line); padding-block: 25px; font-size: .57rem; color: var(--muted); }
.footer-bottom > div { display: flex; flex-wrap: wrap; gap: 22px; }
.page-intro { padding-block: clamp(65px, 8vw, 120px) 65px; }
.page-intro h1 { max-width: 1040px; margin-bottom: 30px; }
.page-intro .lead { max-width: 710px; margin: 0; }
.intro-actions { margin-bottom: 50px; }
.page-hermes .shell > .system-diagram { margin-bottom: 85px; }
.page-hermes .shell > .system-diagram .engine-grid li, .page-architecture .system-diagram .engine-grid li { font-size: .85rem; padding: 18px 12px; }
.page-hermes .shell > .system-diagram .output-grid li { font-size: .85rem; }
.explorer { display: grid; grid-template-columns: 1fr 1.5fr; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.explorer-choices { border-right: 1px solid var(--line); }
.explorer-choices button { display: flex; align-items: center; gap: 18px; width: 100%; text-align: left; background: transparent; color: var(--muted); border: 0; border-bottom: 1px solid var(--line); padding: 16px 24px; font-size: .83rem; }
.explorer-choices button:last-child { border-bottom: 0; }
.explorer-choices button > span:last-child { margin-left: auto; }
.explorer-choices button:hover { color: var(--text); background: var(--surface); }
.explorer-choices button[aria-pressed="true"] { background: #1c2818; color: var(--accent); box-shadow: inset 2px 0 var(--accent); }
.explorer-choices button:focus-visible { outline-offset: -4px; }
.explorer-details { min-width: 0; background: var(--surface); padding: clamp(25px, 5vw, 70px); display: flex; align-items: center; }
.explorer-details h3 { font-size: clamp(2rem, 3vw, 3rem); }
.explorer-details .eyebrow { color: var(--accent); }
.explorer-details p:not(.eyebrow) { font-size: 1rem; }
.module-contract { display: flex; flex-wrap: wrap; gap: 15px; padding-top: 25px; border-top: 1px solid var(--line-strong); margin-top: 40px; color: #bdcbb6; }
.explorer-details:has(section + section:not([hidden])) { display: block; }
.explorer-details section + section:not([hidden]) { margin-top: 35px; }
.builder-sketch { border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--surface); }
.sketch-bar { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding: 18px; border-bottom: 1px solid var(--line); font-size: .62rem; }
.sketch-bar:last-child { border-bottom: 0; border-top: 1px solid var(--line); }
.sketch-body { display: grid; grid-template-columns: 80px 1fr; }
.sketch-sidebar { border-right: 1px solid var(--line); padding: 15px; font-size: .6rem; color: var(--muted); display: flex; flex-direction: column; gap: 20px; }
.sketch-canvas { padding: 25px; }
.sketch-block, .sketch-columns > div { padding: 25px 14px; text-align: center; border: 1px dashed #526649; color: var(--muted); font-size: .7rem; }
.sketch-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-block: 12px; }
.accent-block { background: #1c2818; border-color: #8fad79; color: var(--accent); }
.architecture-topics { margin-top: 55px; }
.architecture-topics article { display: grid; grid-template-columns: 1fr 1.5fr; gap: 65px; padding-block: 38px; border-top: 1px solid var(--line); }
.architecture-topics article p:last-child { margin: 0; }
.about-statement { display: grid; grid-template-columns: 1fr 1.5fr; gap: 80px; align-items: center; }
.large-monogram { display: grid; place-content: center; position: relative; background: radial-gradient(ellipse at 40% 40%, #293322, #111510 65%); border: 1px solid var(--line); border-radius: var(--radius); font-size: clamp(6rem, 15vw, 13rem); line-height: 1; letter-spacing: -.12em; aspect-ratio: 1; padding-bottom: 20px; color: #c6d0be; }
.large-monogram > span { color: var(--accent); position: absolute; right: 15%; bottom: 14%; }
.large-monogram > img { width: 150px; height: 150px; object-fit: contain; }
.editorial-note { margin-top: 50px; padding: 35px 0; display: grid; grid-template-columns: 1fr 2fr auto; align-items: center; gap: 30px; border-top: 1px solid var(--line); }
.editorial-note p { margin: 0; font-size: .9rem; }
.project-facts { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 35px; padding-block: 28px; border-block: 1px solid var(--line); }
.project-facts dt { color: var(--muted); font: .65rem var(--font-mono); text-transform: uppercase; margin-bottom: 10px; }
.project-facts dd { margin: 0; font-size: .9rem; }
.case-layout { display: grid; grid-template-columns: 210px minmax(0,1fr); gap: 85px; border: 0; }
.case-toc { align-self: start; position: sticky; top: 125px; display: flex; flex-direction: column; gap: 8px; }
.case-toc a { font-size: .75rem; color: var(--muted); padding: 3px 0; }
.case-toc a:hover, .case-toc a[aria-current] { color: var(--accent); }
.case-content section { margin-bottom: 65px; scroll-margin-top: 115px; }
.case-content section h2 { font-size: 2rem; }
.case-content section > p { font-size: 1.1rem; line-height: 1.8; }
.case-content .system-diagram { margin-top: 35px; }
.lab-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 25px; }
.lab-list article { padding: 35px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.lab-list h3 { font-size: 1.8rem; }
.lab-list h3 a { display: flex; justify-content: space-between; gap: 20px; }
.lab-list h3 a span { color: var(--accent); }
.lab-list p:last-child { margin: 0; }
.fine-print { font-size: .76rem; margin-top: 24px; }
.categories { margin-top: 0; }
.empty-state { margin-top: 50px; padding: clamp(25px, 6vw, 70px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.empty-state > .mono { display: block; color: var(--accent); margin-bottom: 35px; }
.empty-state p { max-width: 560px; }
.article-content { max-width: 800px; }
.article-content section { margin-block: 60px; }
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 85px; }
.contact-reasons { list-style: none; margin-block: 30px; }
.contact-reasons li { display: flex; align-items: center; gap: 20px; padding-block: 17px; border-top: 1px solid var(--line); }
.contact-reasons li > span:last-child { margin-left: auto; color: #84917c; }
.contact-brief { padding: 38px; border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius); }
.contact-brief h2 { font-size: 2rem; }
.contact-brief > p:not(.eyebrow) { font-size: .85rem; }
.contact-brief form { display: grid; gap: 12px; }
.contact-brief label { font-size: .8rem; margin-top: 10px; }
select, textarea { display: block; width: 100%; min-width: 0; border: 1px solid var(--line-strong); border-radius: 4px; color: var(--text); background: var(--bg); padding: 13px; font-size: .85rem; }
textarea { resize: vertical; min-height: 140px; }
textarea::placeholder { color: #909d89; }
.contact-brief .button { margin-top: 10px; justify-self: start; }
.contact-brief .fine-print { margin-block: 8px 0; }
.email-link { overflow-wrap: anywhere; }
.metrics { display: grid; grid-template-columns: repeat(auto-fit,minmax(150px,1fr)); gap: 30px; border-top: 1px solid var(--line); padding-block: 40px; }
.metrics > div { display: flex; flex-direction: column-reverse; }
.metrics dt { color: var(--muted); font-size: .8rem; }
.metrics dd { margin: 0 0 10px; font-size: 3rem; }
.screenshots { display: grid; gap: 35px; }
figcaption { font-size: .8rem; color: var(--muted); margin-top: 10px; }
.simple-list { list-style: none; }
.simple-list li { padding-block: 15px; border-top: 1px solid var(--line); }
@media (prefers-reduced-motion: no-preference) {
  .hero-copy { animation: arrive 650ms ease both; }
  .hero-visual { animation: arrive 850ms ease both; }
  @keyframes arrive { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
}
@media (min-width: 1600px) { .hero-grid { min-height: 700px; } }
@media (max-width: 1100px) {
  .shell { padding-inline: 36px; }
  .desktop-nav { gap: 22px; }
  .hero-grid { gap: 20px; min-height: 560px; }
  .hero h1 { font-size: clamp(4rem, 8vw, 6rem); }
  .hero .actions { gap: 12px; }
  .hero .button { padding: 12px 15px; gap: 16px; font-size: .72rem; }
  .feature-grid { gap: 40px; }
  .engine-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .engine-grid li:last-child { grid-column: 1 / -1; }
  .expertise-grid article { padding: 25px; }
  .case-layout { gap: 40px; grid-template-columns: 160px minmax(0,1fr); }
  .contact-layout { gap: 40px; }
  .footer-top { gap: 25px; }
}
@media (max-width: 800px) {
  .shell { padding-inline: 24px; }
  .header-inner { min-height: 78px; flex-wrap: wrap; gap: 12px; padding-block: 12px; }
  .desktop-nav { order: 3; width: 100%; justify-content: space-between; }
  .js-menu .desktop-nav { display: none; }
  .header-contact { margin-left: auto; font-size: .72rem; gap: 15px; }
  .menu-toggle:not([hidden]) { display: block; }
  .hero { padding-top: 30px; }
  .hero-topline > .mono { display: none; }
  .hero-grid { grid-template-columns: 1fr; padding-top: 18px; padding-bottom: 40px; gap: 50px; }
  .hero h1 { font-size: clamp(4.3rem, 12vw, 6.8rem); }
  .hero-description { max-width: 470px; font-size: 1rem; }
  .hero-visual { width: min(100%, 580px); margin-inline: auto; }
  .hero-bottom { font-size: .65rem; }
  .hero-bottom i { margin-inline: 10px; }
  .section-glyph { display: none; }
  .feature-grid { grid-template-columns: 1fr; gap: 50px; }
  .engine-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .engine-grid li:last-child { grid-column: auto; }
  .engine-grid li { font-size: .7rem; padding: 14px 10px; }
  .project-card { grid-template-columns: 1fr; }
  .project-image img { max-height: 380px; object-fit: contain; }
  .project-copy { padding: 32px; }
  .expertise-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 25px; }
  .principles { gap: 25px; }
  .principles h3 { font-size: 1.25rem; }
  .round-link { width: 75px; height: 75px; font-size: 2.6rem; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 35px; }
  .footer-bottom { flex-direction: column; gap: 16px; }
  .explorer { grid-template-columns: 1fr; }
  .explorer-choices { border-right: 0; display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--line); }
  .explorer-choices button { font-size: .7rem; padding: 13px 15px; gap: 10px; }
  .explorer-details { min-height: 360px; }
  .architecture-topics article { grid-template-columns: 1fr; gap: 15px; }
  .architecture-topics .eyebrow { margin: 0; }
  .about-statement { grid-template-columns: 1fr; gap: 45px; }
  .large-monogram { max-width: 400px; width: 100%; font-size: 11rem; }
  .editorial-note { grid-template-columns: 1fr; gap: 20px; }
  .editorial-note .text-link { justify-self: start; }
  .case-layout { grid-template-columns: 1fr; gap: 40px; }
  .case-toc { position: static; flex-direction: row; flex-wrap: wrap; gap: 10px 20px; }
  .case-toc .eyebrow { width: 100%; margin-bottom: 4px; }
  .project-facts { gap: 20px; }
  .project-facts dd { font-size: .75rem; }
  .contact-layout { grid-template-columns: 1fr; }
  .lab-list { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .shell { padding-inline: 20px; }
  .brand { gap: 12px; font-size: .78rem; }
  .brand-mark { width: 40px; height: 40px; }
  .brand-role { font-size: .58rem; }
  .header-contact { padding: 8px 12px; }
  .js-menu .header-contact { display: none; }
  .header-inner .menu-toggle { margin-left: auto; }
  .hero h1 { font-size: clamp(3.4rem, 14vw, 4.7rem); }
  .hero-description { font-size: .93rem; }
  .hero .actions { align-items: stretch; flex-direction: column; }
  .hero .button { padding: 14px 18px; justify-content: space-between; font-size: .78rem; }
  .hero-visual .visual-top, .hero-visual .visual-bottom { padding-inline: 9px; font-size: .48rem; }
  .hero-bottom { flex-direction: column; gap: 15px; }
  .hero-bottom a { justify-content: space-between; }
  .eyebrow { font-size: .62rem; }
  .feature-grid .actions { align-items: flex-start; flex-direction: column; }
  .engine-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .engine-grid li:last-child { grid-column: 1 / -1; }
  .engine-grid li { padding: 12px 6px; font-size: .58rem; }
  .page-hermes .shell > .system-diagram .engine-grid li, .page-architecture .system-diagram .engine-grid li { font-size: .6rem; padding: 13px 6px; }
  .output-grid li { padding: 9px 6px; font-size: .6rem; }
  .core-node { padding: 13px 10px; gap: 10px; }
  .core-node strong { font-size: .85rem; }
  .core-node div > span { font-size: .48rem; }
  .core-glyph { width: 28px; height: 30px; font-size: 18px; }
  .project-copy { padding: 25px; }
  .project-copy h3 { font-size: 2rem; }
  .expertise-grid { grid-template-columns: 1fr; }
  .expertise-grid article { padding: 28px; }
  .index-number { margin-bottom: 25px; }
  .principles { grid-template-columns: 1fr; gap: 35px; }
  .principles article > .mono { margin-bottom: 20px; }
  .principles h3 { font-size: 1.5rem; }
  .contact-cta > div { gap: 15px; }
  .contact-cta h2 { font-size: clamp(2.25rem, 9vw, 2.8rem); }
  .round-link { width: 44px; height: 44px; font-size: 1.5rem; }
  .footer-top > p { font-size: .72rem; }
  .footer-top { gap: 30px 18px; }
  .footer-top > .brand { grid-column: 1 / -1; }
  .footer-top > p { grid-column: 1 / -1; margin-top: -10px; }
  .page-intro h1 { font-size: 2.85rem; }
  .explorer-choices button { padding: 12px 10px; font-size: .65rem; gap: 7px; }
  .explorer-choices button > .mono { font-size: .5rem; }
  .sketch-body { grid-template-columns: 60px 1fr; }
  .sketch-sidebar { padding: 10px; }
  .sketch-canvas { padding: 12px; }
  .sketch-block, .sketch-columns > div { padding: 20px 7px; }
  .project-facts { grid-template-columns: 1fr; }
  .contact-brief, .lab-list article { padding: 24px; }
  .contact-brief .button { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ── Language switch + header actions ─────────────────────────────────────── */
.header-actions { display: flex; align-items: center; gap: 14px; }
.lang-switch { display: inline-flex; align-items: center; border: 1px solid var(--line-strong); border-radius: 4px; overflow: hidden; font: .72rem/1 var(--font-mono); flex-shrink: 0; }
.lang-switch a { padding: 9px 11px; color: var(--muted); letter-spacing: .06em; transition: background var(--transition), color var(--transition); }
.lang-switch a + a { border-left: 1px solid var(--line); }
.lang-switch a:hover { color: var(--text); background: var(--surface); }
.lang-switch a[aria-current] { background: var(--accent); color: var(--accent-dark); }
.mobile-lang { margin-top: 2rem; display: grid; gap: 14px; }
.mobile-lang .lang-switch { font-size: .95rem; }
.mobile-lang .lang-switch a { padding: 14px 18px; flex: 1; text-align: center; }

/* ── Section trailing link ────────────────────────────────────────────────── */
.section-more { margin-top: 45px; }
.lead-narrow { max-width: 780px; margin-bottom: 45px; }

/* ── What I do / services grid ────────────────────────────────────────────── */
.services-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.services-grid article { padding: 32px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.services-grid .index-number { display: block; margin-bottom: 28px; color: #b5c6a6; }
.services-grid h3 { font-size: 1.25rem; margin-bottom: 12px; }
.services-grid p { font-size: .9rem; margin: 0; }

/* ── My impact grid ───────────────────────────────────────────────────────── */
.impact-grid { list-style: none; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.impact-grid li { background: var(--bg); display: flex; gap: 16px; padding: 28px; }
.impact-mark { color: var(--accent); font-size: 1.05rem; line-height: 1.4; }
.impact-grid strong { display: block; font-size: 1.05rem; font-weight: 500; letter-spacing: -.02em; margin-bottom: 7px; color: var(--text); }
.impact-grid p { margin: 0; font-size: .85rem; }

/* ── Process flow ─────────────────────────────────────────────────────────── */
.process-flow { list-style: none; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.process-flow li { background: var(--bg); padding: 28px 24px; }
.process-flow li > .mono { color: var(--accent); display: block; margin-bottom: 20px; font-size: .85rem; }
.process-flow h3 { font-size: 1.1rem; margin-bottom: 9px; }
.process-flow p { font-size: .82rem; margin: 0; }

/* ── Story timeline ───────────────────────────────────────────────────────── */
.timeline { list-style: none; margin: 0; display: grid; }
.timeline li { position: relative; padding: 24px 0 24px 32px; border-left: 1px solid var(--line-strong); border-bottom: 1px solid var(--line); }
.timeline li:last-child { border-bottom: 0; padding-bottom: 0; }
.timeline-dot { position: absolute; left: -6px; top: 30px; width: 11px; height: 11px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--bg); }
.timeline .mono { color: var(--accent); display: block; margin-bottom: 8px; }
.timeline h3 { font-size: 1.25rem; margin-bottom: 8px; }
.timeline p { margin: 0; font-size: .92rem; max-width: 680px; }
.pull-quote { font-family: var(--font-heading); font-weight: 500; font-size: clamp(1.4rem, 2.5vw, 2.1rem); line-height: 1.34; letter-spacing: -.025em; color: var(--text); text-wrap: balance; max-width: 900px; margin: 0 0 55px; padding-left: 24px; border-left: 2px solid var(--accent); }

/* ── Values ───────────────────────────────────────────────────────────────── */
.values-grid { list-style: none; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.values-grid li { display: flex; gap: 15px; align-items: baseline; padding: 24px 26px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 1.02rem; letter-spacing: -.01em; color: var(--text); }
.values-grid .mono { color: var(--accent); font-size: .72rem; flex-shrink: 0; }

/* ── Tag cloud (values/AI/capabilities/proof) ─────────────────────────────── */
.tag-cloud { gap: 9px; margin-block: 10px 0; }
.tag-cloud span { font-size: .74rem; padding: 8px 14px; color: #c3cfb8; }
.proof-cloud span { border-color: var(--line-strong); background: rgba(166,193,153,.05); }

/* ── Experience ───────────────────────────────────────────────────────────── */
.experience-item { border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(28px, 4vw, 46px); background: var(--surface); }
.experience-head { display: flex; justify-content: space-between; gap: 18px; align-items: baseline; flex-wrap: wrap; margin-bottom: 18px; }
.experience-head h3 { font-size: 1.7rem; margin: 0; }
.experience-head .mono { color: var(--accent); }
.experience-item > .body-large { max-width: 820px; }
.experience-detail { display: grid; grid-template-columns: 1.5fr 1fr; gap: 45px; margin-top: 32px; padding-top: 32px; border-top: 1px solid var(--line); }
.experience-detail .eyebrow { margin-bottom: 16px; }
.experience-detail .simple-list li:first-child { border-top: 0; padding-top: 0; }

/* ── Technical capability columns ─────────────────────────────────────────── */
.capability-columns { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 40px 32px; }
.capability-group h3 { font-size: 1.1rem; margin-bottom: 16px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }

@media (max-width: 1100px) {
  .services-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .capability-columns { gap: 32px 26px; }
}
@media (max-width: 800px) {
  .header-actions { gap: 10px; }
  .services-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .impact-grid { grid-template-columns: 1fr; }
  .process-flow { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .values-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .capability-columns { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .experience-detail { grid-template-columns: 1fr; gap: 28px; }
  .experience-head h3 { font-size: 1.4rem; }
}
@media (max-width: 480px) {
  .header-actions { gap: 8px; }
  .lang-switch a { padding: 8px 9px; }
  .services-grid { grid-template-columns: 1fr; }
  .services-grid article { padding: 26px; }
  .process-flow { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; }
  .capability-columns { grid-template-columns: 1fr; gap: 28px; }
  .impact-grid li { padding: 22px; }
  .timeline h3 { font-size: 1.15rem; }
}

/* ══════════════════════════════════════════════════════════════════════════
   3D structures + interactivity
   ══════════════════════════════════════════════════════════════════════════ */

/* ── Shared 3D scene shell ────────────────────────────────────────────────── */
.scene3d { position: relative; height: clamp(310px, 40vw, 460px); margin-block: 12px; perspective: 1000px; perspective-origin: 50% 44%; touch-action: pan-y; overflow: hidden; max-width: 100%; }
.scene3d-stage { position: absolute; left: 50%; top: 54%; width: min(64%, 300px); aspect-ratio: 1; transform-style: preserve-3d; transform: translate(-50%, -50%) rotateX(58deg) rotateZ(45deg); }
@media (prefers-reduced-motion: no-preference) { .scene3d-stage { animation: s3dSpin 34s linear infinite; } }
html.js-3d .scene3d-stage { animation: none; }
@keyframes s3dSpin { from { transform: translate(-50%, -50%) rotateX(58deg) rotateZ(0deg); } to { transform: translate(-50%, -50%) rotateX(58deg) rotateZ(360deg); } }
.s3d-annotations { position: absolute; inset: 0; pointer-events: none; font-size: .5rem; letter-spacing: .14em; color: #9aa79a; }
.s3d-ann { position: absolute; }
.s3d-ann-1 { left: 3%; top: 14%; }
.s3d-ann-2 { right: 3%; top: 44%; }
.s3d-ann-3 { right: 6%; bottom: 22%; }
.s3d-ann-sys { left: 50%; bottom: 2%; transform: translateX(-50%); color: var(--accent); white-space: nowrap; }
.s3d-hint { position: absolute; left: 0; bottom: -2px; font-size: .55rem; color: #7f8c7e; opacity: 0; transition: opacity .3s; }
html.js-3d:not(.is-touch) .scene3d:hover .s3d-hint { opacity: .8; }

/* Core cube (shared by hero + orbit) */
.s3d-core { position: absolute; left: 50%; top: 50%; width: 52px; height: 52px; margin: -26px; transform-style: preserve-3d; transform: translateZ(120px); filter: drop-shadow(0 0 16px rgba(192,229,165,.28)); }
.s3d-core .cf { position: absolute; inset: 0; border: 1px solid var(--accent); background: rgba(192,229,165,.10); }
.cf-fr { transform: translateZ(26px); }
.cf-bk { transform: rotateY(180deg) translateZ(26px); }
.cf-r { transform: rotateY(90deg) translateZ(26px); }
.cf-l { transform: rotateY(-90deg) translateZ(26px); }
.cf-top { transform: rotateX(90deg) translateZ(26px); background: rgba(192,229,165,.26); display: grid; place-items: center; color: var(--accent); font: 700 17px/1 var(--font-mono); }
.cf-bot { transform: rotateX(-90deg) translateZ(26px); background: rgba(120,150,99,.16); }

/* ── Hero scene: layered platform ─────────────────────────────────────────── */
.s3d-slab { position: absolute; inset: 0; border-radius: 12px; transform-style: preserve-3d; border: 1px solid var(--line-strong); background-color: #0f150e; background-image: linear-gradient(rgba(160,190,150,.13) 1px, transparent 1px), linear-gradient(90deg, rgba(160,190,150,.13) 1px, transparent 1px); background-size: 26px 26px; --ext: #17210f; box-shadow: 0 1px var(--ext), 0 2px var(--ext), 0 3px var(--ext), 0 4px var(--ext), 0 5px var(--ext), 0 6px var(--ext), 0 7px var(--ext), 0 8px var(--ext), 0 30px 42px -20px rgba(0,0,0,.85); }
.s3d-slab-1 { transform: translateZ(66px); border-color: #9ec27f; --ext: #24371a; box-shadow: 0 1px var(--ext), 0 2px var(--ext), 0 3px var(--ext), 0 4px var(--ext), 0 5px var(--ext), 0 6px var(--ext), 0 7px var(--ext), 0 8px var(--ext), 0 34px 48px -20px rgba(0,0,0,.9), 0 0 44px -8px rgba(192,229,165,.18); }
.s3d-slab-2 { transform: translateZ(0); }
.s3d-slab-3 { transform: translateZ(-66px); opacity: .8; }
.s3d-node { position: absolute; left: var(--nx); top: var(--ny); width: 9px; height: 9px; margin: -4.5px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px 2px rgba(192,229,165,.5); }
@media (prefers-reduced-motion: no-preference) { .s3d-node { animation: s3dPulse 3.2s ease-in-out infinite; } .s3d-slab-2 .s3d-node { animation-delay: .8s; } }
@keyframes s3dPulse { 0%,100% { opacity: .5; } 50% { opacity: 1; } }
.s3d-mod { position: absolute; left: var(--nx); top: var(--ny); width: 22px; height: 22px; margin: -11px; background: rgba(192,229,165,.16); border: 1px solid var(--accent); transform: translateZ(13px); box-shadow: 0 5px 0 -1px #24331b, 0 0 12px rgba(192,229,165,.2); }
.s3d-pillar { position: absolute; left: var(--px); top: var(--py); width: 2px; height: 132px; margin: -66px 0 0 -1px; transform: rotateX(90deg); transform-origin: 50% 50%; background: linear-gradient(#3c4f2f, #8bad72); opacity: .7; }

/* ── Hermes scene: core + orbiting modules ────────────────────────────────── */
.scene3d-orbit .scene3d-stage { width: min(72%, 330px); }
.orb-disc { position: absolute; inset: 4%; border-radius: 50%; border: 1px dashed rgba(160,190,150,.28); }
.orb-disc-2 { inset: 24%; border-style: solid; border-color: var(--line); }
.orb-spoke { position: absolute; left: 50%; top: 50%; height: 1px; width: 120px; transform-origin: 0 50%; transform: rotateZ(var(--a)); background: linear-gradient(90deg, rgba(140,173,114,.75), rgba(140,173,114,0)); }
.orb-mod { position: absolute; left: 50%; top: 50%; width: 28px; height: 28px; margin: -14px; border: 1px solid var(--accent); background: rgba(192,229,165,.13); transform: rotateZ(var(--a)) translateX(120px) rotateZ(calc(-1 * var(--a))) translateZ(11px); box-shadow: 0 5px 0 -1px #24331b, 0 0 14px rgba(192,229,165,.22); }
.orb-core { transform: translateZ(46px); }

/* ── Home overview: capability strip ──────────────────────────────────────── */
.capability-strip { list-style: none; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 0 52px; border-top: 1px solid var(--line); }
.capability-strip li { display: flex; align-items: center; gap: 16px; padding: 17px 2px; border-bottom: 1px solid var(--line); font-size: 1.02rem; letter-spacing: -.01em; color: var(--text); }
.capability-strip .mono { color: var(--accent); font-size: .72rem; flex-shrink: 0; }
.cap-arrow { margin-left: auto; color: #7d8a76; }

/* ── Case index (distinct from project cards) ─────────────────────────────── */
.case-index { display: grid; }
.case-index-item { padding: 48px 0; border-top: 1px solid var(--line); }
.case-index-item:first-child { border-top: 0; padding-top: 8px; }
.case-index-head h3 { font-size: clamp(2rem, 3.5vw, 2.8rem); margin-bottom: 12px; }
.case-index-head .case-index-role { font-size: .72rem; color: var(--muted); margin-bottom: 18px; }
.case-index-body { display: grid; grid-template-columns: 1fr 1fr; gap: 45px; margin: 30px 0 26px; }
.case-index-body .eyebrow { margin-bottom: 12px; }
.case-index-body p:not(.eyebrow) { font-size: .95rem; margin: 0; }

/* ── Pointer-tilt cards ───────────────────────────────────────────────────── */
html.js-3d [data-tilt] { transform-style: preserve-3d; transition: transform .35s cubic-bezier(.22,.61,.36,1); will-change: transform; }
html.js-3d [data-tilt].is-tilting { transition: transform .05s linear; }

/* ── System diagram → interactive 3D structure ────────────────────────────── */
html.js-3d .system-diagram { perspective: 1300px; overflow: visible; }
.system-diagram .diagram-3d { transform-style: preserve-3d; }
html.js-3d .system-diagram .diagram-3d { transition: transform .3s ease; will-change: transform; }
html.js-3d .system-diagram[data-tilt-scene] { cursor: grab; }
html.js-3d .system-diagram.is-tilting { cursor: grabbing; }
html.js-3d .system-diagram.is-tilting .diagram-3d { transition: transform .06s linear; }
html.js-3d .diagram-3d [data-depth="3"] { transform: translateZ(48px); }
html.js-3d .diagram-3d [data-depth="2"] { transform: translateZ(26px); }
html.js-3d .diagram-3d [data-depth="1"] { transform: translateZ(10px); }
html.js-3d .diagram-3d [data-depth] { transition: transform .3s ease; }

/* ── Scroll reveal ────────────────────────────────────────────────────────── */
html.js-reveal [data-reveal] { opacity: 0; transform: translateY(20px); transition: opacity .7s ease, transform .7s ease; }
html.js-reveal [data-reveal].is-in { opacity: 1; transform: none; }

/* ── Journey rail (passive progress) ──────────────────────────────────────── */
.journey-rail { position: fixed; left: 24px; top: 50%; transform: translateY(-50%); z-index: 40; display: none; padding-left: 14px; }
.journey-rail .journey-title { display: block; font-size: .55rem; color: var(--muted); letter-spacing: .18em; margin-bottom: 14px; padding-left: 2px; }
.journey-progress { position: absolute; left: 3px; top: 30px; bottom: 6px; width: 1px; background: var(--line); }
.journey-progress-fill { display: block; width: 100%; height: 0; background: var(--accent); transition: height .25s ease; }
.journey-rail ol { list-style: none; margin: 0; display: grid; gap: 4px; }
.journey-rail a { display: flex; align-items: center; gap: 13px; padding: 5px 0; color: var(--muted); }
.journey-dot { width: 9px; height: 9px; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--bg); flex-shrink: 0; transition: background .25s, border-color .25s, box-shadow .25s; }
.journey-rail a.is-passed .journey-dot { background: #5c7a49; border-color: #5c7a49; }
.journey-rail a[aria-current] .journey-dot { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 4px rgba(192,229,165,.16); }
.journey-label { font: .68rem/1 var(--font-mono); letter-spacing: .05em; white-space: nowrap; opacity: 0; transform: translateX(-6px); transition: opacity .25s, transform .25s; }
.journey-rail:hover .journey-label, .journey-rail a:focus-visible .journey-label, .journey-rail a[aria-current] .journey-label { opacity: 1; transform: none; }
.journey-rail a[aria-current], .journey-rail a:hover { color: var(--text); }
@media (min-width: 1300px) { .journey-rail { display: block; } }

@media (prefers-reduced-motion: reduce) {
  html.js-reveal [data-reveal] { opacity: 1 !important; transform: none !important; }
}
@media (max-width: 800px) {
  .capability-strip { grid-template-columns: 1fr; gap: 0; }
  .case-index-body { grid-template-columns: 1fr; gap: 22px; }
}

/* Shared smoked glass: translucent centre, rounded bevel, directional rim. */
:is(.tags > span, .round-link, .system-diagram, .core-node, .core-glyph, .engine-grid > li, .output-grid > li) {
  position: relative;
  border: 1px solid rgba(222, 244, 213, .23);
  background-color: rgba(28, 42, 32, .32);
  background-image: linear-gradient(125deg, rgba(240, 255, 231, .13), rgba(205, 237, 213, .025) 38%, rgba(12, 23, 17, .12) 65%, rgba(192, 235, 217, .085));
  -webkit-backdrop-filter: blur(12px) saturate(130%);
  backdrop-filter: blur(12px) saturate(130%);
  box-shadow: inset 0 1px 1px rgba(247, 255, 239, .32), inset 1px 0 2px rgba(226, 249, 214, .12), inset -1px -2px 3px rgba(209, 243, 231, .16), 0 8px 20px -12px rgba(0, 0, 0, .75);
}
:is(.tags > span, .round-link, .system-diagram, .core-node, .core-glyph, .engine-grid > li, .output-grid > li)::after {
  content: '';
  position: absolute;
  inset: -1px;
  z-index: 1;
  padding: 1px;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(248, 255, 236, .7), rgba(216, 248, 210, .12) 28%, transparent 50%, rgba(203, 245, 237, .45) 83%, rgba(243, 255, 235, .65));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
}
.tags > span { border-radius: 8px; color: #d1ddca; }
.system-diagram .core-node { border-radius: 16px; background-color: rgba(91, 131, 69, .16); }
.core-glyph { border-radius: 8px; }
.engine-grid > li, .output-grid > li { border-radius: 9px; }
.system-diagram[data-tilt-scene] {
  border-radius: 22px;
  overflow: hidden;
  background-image: radial-gradient(rgba(183, 210, 166, .13) .65px, transparent .65px), linear-gradient(125deg, rgba(240, 255, 231, .065), transparent 45%, rgba(192, 235, 217, .035));
  background-size: 17px 17px, 100% 100%;
  box-shadow: inset 0 2px 3px rgba(239, 255, 225, .22), inset -2px -2px 4px rgba(209, 243, 231, .13), 0 20px 40px -28px #000;
}
.contact-cta .round-link {
  background-image: radial-gradient(ellipse at 28% 15%, rgba(247, 255, 234, .2), transparent 52%), linear-gradient(145deg, rgba(230, 250, 223, .06), rgba(28, 42, 32, .1) 55%, rgba(191, 235, 219, .16));
  box-shadow: inset 0 2px 3px rgba(246, 255, 236, .4), inset -2px -3px 5px rgba(215, 246, 232, .24), inset 0 0 0 5px rgba(230, 250, 217, .035), 0 12px 28px -16px #000;
}
.round-link:hover, .round-link:focus-visible {
  background-image: radial-gradient(ellipse at 28% 15%, rgba(247, 255, 234, .24), transparent 52%), linear-gradient(145deg, rgba(230, 250, 223, .06), rgba(28, 42, 32, .1) 55%, rgba(191, 235, 219, .16));
  background-color: rgba(94, 133, 74, .28);
  border-color: rgba(235, 255, 220, .6);
}

/* Accesso allo Studio, separato dagli account Hermes. */
.header-management { color:var(--muted,#aeb9af); font-size:11px; white-space:nowrap; padding:8px 10px; border:1px solid #ffffff25; border-radius:6px; }
.header-management:hover { color:#c2e6a6; border-color:#c2e6a680; }
@media(max-width:1200px){.header-management{display:none;}}
