/* ═══════════════════════════════════════════════════
   LDLC WEBSITE — SHARED STYLESHEET
   Lean Documents and Lean Configuration
   © Atzari Enterprises, L.L.C.
═══════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=DM+Mono:wght@400;500&family=Figtree:wght@300;400;500;600&display=swap');

:root {
  --ink:     #0d1e35;
  --ink2:    #152844;
  --ink3:    #1c3358;
  --ink4:    #243f6e;
  --blue:    #2358a0;
  --blue2:   #2e6bbf;
  --blue3:   #3a80d8;
  --cyan:    #3fb8d4;
  --cyan2:   #5fd0e8;
  --cyan3:   #8de4f5;
  --canvas:  #f4f6f9;
  --canvas2: #e8edf5;
  --canvas3: #dde4ef;
  --rule:    #b8c6d8;
  --text:    #243040;
  --muted:   #5a7090;
  --white:   #ffffff;
  --serif:   'DM Serif Display', Georgia, serif;
  --mono:    'DM Mono', 'Courier New', monospace;
  --sans:    'Figtree', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--canvas);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed; inset: 0;
  background-image:
    linear-gradient(rgba(35,88,160,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(35,88,160,0.06) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none; z-index: 0;
}

/* ── LAYOUT ── */
.wrap { width: min(1160px, calc(100% - 48px)); margin: 0 auto; position: relative; }
.wrap-narrow { width: min(800px, calc(100% - 48px)); margin: 0 auto; position: relative; }
section { padding: 88px 0; position: relative; }
section.tight { padding: 56px 0; }

/* ── HEADER ── */
header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(13,30,53,0.97);
  border-bottom: 1px solid rgba(63,184,212,0.12);
  backdrop-filter: blur(16px);
}
.nav { display: flex; align-items: center; justify-content: space-between; padding: 15px 0; gap: 24px; }
.brand { font-family: var(--mono); font-size: 18px; font-weight: 500; letter-spacing: 0.04em; line-height: 1; text-decoration: none; }
.brand .ld { color: var(--white); }
.brand .lc { color: var(--cyan); }
.brand span { display: block; color: rgba(255,255,255,0.35); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; margin-top: 4px; font-weight: 400; }
nav { display: flex; align-items: center; gap: 4px; }
nav a { color: rgba(255,255,255,0.6); text-decoration: none; font-size: 13px; padding: 8px 13px; border-radius: 6px; transition: color .2s, background .2s; }
nav a:hover, nav a.active { color: var(--white); background: rgba(255,255,255,0.07); }
nav a.cta { color: var(--ink); background: var(--cyan); padding: 9px 16px; font-weight: 600; }
nav a.cta:hover { background: var(--cyan2); }
.nav-mobile-toggle { display: none; background: none; border: none; color: rgba(255,255,255,0.7); font-size: 20px; cursor: pointer; padding: 4px; }

/* ── TYPOGRAPHY ── */
.section-label {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 12px;
}
.section-label.light { color: rgba(255,255,255,0.3); }
h1 {
  font-family: var(--serif);
  font-size: clamp(36px, 5vw, 68px);
  line-height: 1.04; letter-spacing: -0.03em; color: var(--white);
}
h1 em { font-style: italic; color: var(--cyan2); }
h2 {
  font-family: var(--serif);
  font-size: clamp(28px, 3.6vw, 48px);
  line-height: 1.08; letter-spacing: -0.03em; color: var(--ink);
  margin-bottom: 16px;
}
h2 em { font-style: italic; color: var(--blue2); }
h2.on-dark { color: var(--white); }
h2.on-dark em { color: var(--cyan2); }
h3 { font-family: var(--serif); font-size: 26px; letter-spacing: -0.02em; color: var(--ink); margin-bottom: 10px; }
h3.on-dark { color: var(--white); }
.lead { font-size: 18px; color: var(--muted); line-height: 1.7; max-width: 620px; }
.lead.on-dark { color: rgba(255,255,255,0.52); }
.hero-lead { font-size: 17px; color: rgba(255,255,255,0.55); line-height: 1.75; max-width: 440px; margin-bottom: 36px; }
p.body { font-size: 17px; color: var(--text); line-height: 1.8; margin-bottom: 18px; }
p.body strong { color: var(--ink); }
blockquote.pull {
  border-left: 4px solid var(--cyan);
  padding: 16px 20px; margin: 28px 0;
  font-family: var(--serif); font-size: 22px; font-style: italic;
  color: var(--ink); line-height: 1.4;
  background: var(--canvas2); border-radius: 0 10px 10px 0;
}

/* ── BUTTONS ── */
.btn {
  display: inline-block; text-decoration: none;
  padding: 12px 22px; border-radius: 8px;
  font-weight: 600; font-size: 14px; letter-spacing: 0.02em;
  transition: all .2s; cursor: pointer; border: none;
  font-family: var(--sans);
}
.btn-primary { background: var(--cyan); color: var(--ink); border: 1.5px solid var(--cyan); }
.btn-primary:hover { background: var(--cyan2); border-color: var(--cyan2); }
.btn-blue { background: var(--blue2); color: var(--white); border: 1.5px solid var(--blue2); }
.btn-blue:hover { background: var(--blue3); border-color: var(--blue3); }
.btn-ghost { background: transparent; color: rgba(255,255,255,0.7); border: 1.5px solid rgba(255,255,255,0.2); }
.btn-ghost:hover { border-color: rgba(255,255,255,0.5); color: var(--white); }
.btn-ghost-dark { background: transparent; color: var(--blue); border: 1.5px solid var(--rule); }
.btn-ghost-dark:hover { border-color: var(--blue); color: var(--blue2); }
.btn-white { background: var(--white); color: var(--blue); border: 1.5px solid var(--white); font-weight: 700; }
.btn-white:hover { background: rgba(255,255,255,0.9); }
.btn-sm { padding: 8px 16px; font-size: 13px; }
.buttons { display: flex; gap: 12px; flex-wrap: wrap; }

/* ── MARQUEE ── */
.marquee-strip { background: var(--blue); padding: 11px 0; overflow: hidden; border-top: 1px solid rgba(63,184,212,0.2); border-bottom: 1px solid rgba(63,184,212,0.2); }
.marquee-inner { display: flex; gap: 0; width: max-content; animation: marquee 36s linear infinite; }
.marquee-inner span { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.85); padding: 0 28px; white-space: nowrap; }
.marquee-inner span::before { content: '◆'; margin-right: 28px; color: var(--cyan); opacity: 0.7; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ── PAGE HERO (interior pages) ── */
.page-hero {
  background: var(--ink);
  padding: 80px 0 72px;
  border-bottom: 1px solid rgba(63,184,212,0.1);
}
.page-hero .eyebrow { font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--cyan); margin-bottom: 22px; }
.page-hero h1 { font-size: clamp(32px, 4vw, 56px); margin-bottom: 20px; }
.page-hero .lead { max-width: 640px; }

/* ── DARK SECTION ── */
.dark { background: var(--ink); }
.dark2 { background: var(--ink2); }
.mid { background: var(--canvas2); }
.mid2 { background: var(--canvas3); }

/* ── CARDS ── */
.card-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; margin-top: 48px; }
.card-grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 20px; margin-top: 48px; }
.card {
  background: var(--white); border: 1px solid var(--rule);
  border-radius: 14px; padding: 28px;
  transition: border-color .2s, box-shadow .2s;
}
.card:hover { border-color: var(--blue2); box-shadow: 0 4px 20px rgba(35,88,160,0.1); }
.card.dark-card { background: var(--ink2); border-color: rgba(63,184,212,0.12); }
.card.dark-card:hover { border-color: rgba(63,184,212,0.35); }
.card-tag { font-family: var(--mono); font-size: 9px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--cyan); margin-bottom: 10px; }
.card h3 { font-size: 20px; color: var(--ink); margin-bottom: 8px; }
.card.dark-card h3 { color: var(--white); }
.card p { font-size: 14px; color: var(--muted); line-height: 1.6; }
.card.dark-card p { color: rgba(255,255,255,0.45); }

/* ── SPLIT LAYOUT ── */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.split.flip { }
.split-3-2 { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 60px; align-items: start; }
.split-2-3 { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 60px; align-items: center; }

/* ── PRINCIPLES LIST ── */
.principles { display: flex; flex-direction: column; gap: 20px; }
.principle { border-left: 3px solid var(--rule); padding: 20px 0 20px 24px; transition: border-color .3s; }
.principle:hover { border-color: var(--blue2); }
.principle .p-num { font-family: var(--mono); font-size: 10px; color: var(--cyan); letter-spacing: 0.15em; margin-bottom: 8px; }
.principle h3 { font-family: var(--serif); font-size: 22px; letter-spacing: -0.02em; color: var(--ink); margin-bottom: 8px; }
.principle p { font-size: 15px; color: var(--muted); line-height: 1.65; }

/* ── VOCAB GRID ── */
.vocab-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 2px; background: rgba(255,255,255,0.04); border-radius: 16px; overflow: hidden; }
.vocab-cell { background: var(--ink2); padding: 26px 20px; transition: background .2s; cursor: default; }
.vocab-cell:hover { background: var(--ink3); }
.vocab-cell .vc-type { font-family: var(--mono); font-size: 9px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--cyan); margin-bottom: 10px; }
.vocab-cell h3 { font-family: var(--mono); font-size: 15px; font-weight: 500; color: var(--white); margin-bottom: 8px; letter-spacing: 0.04em; }
.vocab-cell p { font-size: 13px; color: rgba(255,255,255,0.42); line-height: 1.6; }
.vocab-cell.hi { background: rgba(35,88,160,0.35); }
.vocab-cell.hi:hover { background: rgba(46,107,191,0.45); }
.vocab-cell.hi .vc-type { color: var(--cyan2); }
.vocab-cell.accent { background: rgba(63,184,212,0.1); }
.vocab-cell.accent:hover { background: rgba(63,184,212,0.18); }
.vocab-cell.accent .vc-type { color: var(--cyan2); }

/* ── LIFECYCLE BAR ── */
.lifecycle-bar { padding: 26px 30px; background: rgba(255,255,255,0.03); border: 1px solid rgba(63,184,212,0.1); border-radius: 14px; }
.lifecycle-label { font-family: var(--mono); font-size: 9px; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(255,255,255,0.24); margin-bottom: 18px; }
.lifecycle-flow { display: flex; align-items: center; overflow-x: auto; }
.lf-node { flex: 1; min-width: 80px; text-align: center; }
.lf-inner { background: var(--ink3); border: 1px solid rgba(255,255,255,0.08); border-radius: 8px; padding: 10px 6px; margin: 0 3px; transition: border-color .2s; }
.lf-node:hover .lf-inner { border-color: var(--cyan); }
.lf-tag { font-family: var(--mono); font-size: 7px; color: rgba(255,255,255,0.3); letter-spacing: 0.1em; }
.lf-name { font-size: 11px; color: rgba(255,255,255,0.82); font-weight: 600; margin-top: 4px; }
.lf-arrow { color: rgba(255,255,255,0.18); font-size: 14px; flex-shrink: 0; }
.lf-node.hl .lf-inner { border-color: var(--cyan); background: rgba(63,184,212,0.12); }
.lf-node.hl .lf-name { color: var(--cyan2); }

/* ── ONTOLOGY BADGE ── */
.ont-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em;
  padding: 4px 10px; border-radius: 5px;
}
.ont-badge.doc   { background: rgba(63,184,212,0.12); color: var(--cyan2); border: 1px solid rgba(63,184,212,0.25); }
.ont-badge.info  { background: rgba(35,88,160,0.2);   color: #7ab0e0;      border: 1px solid rgba(35,88,160,0.35); }
.ont-badge.work  { background: rgba(26,107,74,0.15);  color: #5bc49a;      border: 1px solid rgba(26,107,74,0.3); }
.ont-badge.acct  { background: rgba(160,120,40,0.15); color: #c8a84b;      border: 1px solid rgba(160,120,40,0.3); }
.ont-badge.part  { background: rgba(120,40,120,0.15); color: #c084c0;      border: 1px solid rgba(120,40,120,0.3); }

/* ── CASCADE DEMO ── */
.cascade-ui { background: rgba(255,255,255,0.03); border: 1px solid rgba(63,184,212,0.15); border-radius: 16px; overflow: hidden; }
.cascade-header { background: rgba(63,184,212,0.08); border-bottom: 1px solid rgba(63,184,212,0.12); padding: 16px 24px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.cascade-header-title { font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(255,255,255,0.5); }
.cascade-status { font-family: var(--mono); font-size: 11px; color: rgba(255,255,255,0.3); letter-spacing: 0.06em; }
.cascade-status.active { color: var(--cyan2); }
.cascade-body { display: grid; grid-template-columns: 1fr 1.6fr; gap: 0; min-height: 460px; }
.cascade-left { border-right: 1px solid rgba(63,184,212,0.1); padding: 28px 24px; }
.cascade-left-label { font-family: var(--mono); font-size: 9px; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(255,255,255,0.28); margin-bottom: 16px; }
.trigger-doc { background: rgba(63,184,212,0.12); border: 1.5px solid rgba(63,184,212,0.5); border-radius: 10px; padding: 16px 18px; margin-bottom: 16px; cursor: pointer; transition: background .2s, border-color .2s; }
.trigger-doc:hover { background: rgba(63,184,212,0.2); border-color: var(--cyan); }
.trigger-doc.fired { background: rgba(63,184,212,0.25); border-color: var(--cyan2); }
.doc-id { font-family: var(--mono); font-size: 10px; color: var(--cyan2); letter-spacing: 0.1em; margin-bottom: 4px; }
.doc-type-label { font-family: var(--mono); font-size: 9px; color: rgba(255,255,255,0.4); letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 6px; }
.doc-title { font-size: 13px; color: rgba(255,255,255,0.82); line-height: 1.4; }
.trigger-badge { display: inline-block; margin-top: 10px; font-family: var(--mono); font-size: 9px; letter-spacing: 0.1em; background: rgba(63,184,212,0.2); color: var(--cyan2); padding: 3px 10px; border-radius: 4px; }
.trigger-instructions { font-size: 13px; color: rgba(255,255,255,0.38); line-height: 1.6; margin-top: 8px; }
.cascade-right { padding: 28px 24px; overflow-y: auto; max-height: 460px; }
.cascade-right-label { font-family: var(--mono); font-size: 9px; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(255,255,255,0.28); margin-bottom: 16px; }
.cascade-idle { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 300px; text-align: center; color: rgba(255,255,255,0.2); }
.cascade-idle p { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; margin-top: 16px; }
.cascade-tree { display: none; flex-direction: column; gap: 6px; }
.cascade-tree.visible { display: flex; }
.ct-group { margin-bottom: 10px; }
.ct-group-label { font-family: var(--mono); font-size: 8px; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(255,255,255,0.25); margin-bottom: 6px; padding-left: 20px; }
.ct-item { display: flex; align-items: flex-start; gap: 10px; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.07); border-radius: 8px; padding: 10px 14px; opacity: 0; transform: translateX(16px); transition: opacity 0.35s ease, transform 0.35s ease, background .2s, border-color .2s; cursor: default; }
.ct-item.shown { opacity: 1; transform: translateX(0); }
.ct-item:hover { background: rgba(63,184,212,0.07); border-color: rgba(63,184,212,0.2); }
.ct-item.impact-high { border-color: rgba(63,184,212,0.35); }
.ct-item.impact-med  { border-color: rgba(35,88,160,0.4); }
.ct-icon { width: 28px; height: 28px; border-radius: 6px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-family: var(--mono); font-size: 8px; font-weight: 500; }
.ct-icon.high { background: rgba(63,184,212,0.2); color: var(--cyan2); }
.ct-icon.med  { background: rgba(35,88,160,0.3); color: #7ab0e0; }
.ct-icon.low  { background: rgba(255,255,255,0.06); color: rgba(255,255,255,0.4); }
.ct-content { flex: 1; min-width: 0; }
.ct-doc-id { font-family: var(--mono); font-size: 9px; color: rgba(255,255,255,0.4); letter-spacing: 0.08em; }
.ct-doc-title { font-size: 12px; color: rgba(255,255,255,0.78); margin-top: 2px; line-height: 1.35; }
.ct-reason { font-size: 11px; color: rgba(255,255,255,0.35); margin-top: 4px; font-style: italic; }
.ct-badge { flex-shrink: 0; font-family: var(--mono); font-size: 8px; letter-spacing: 0.08em; padding: 3px 8px; border-radius: 4px; align-self: flex-start; margin-top: 2px; }
.ct-badge.high { background: rgba(63,184,212,0.15); color: var(--cyan2); }
.ct-badge.med  { background: rgba(35,88,160,0.2); color: #7ab0e0; }
.ct-badge.low  { background: rgba(255,255,255,0.06); color: rgba(255,255,255,0.35); }
.cascade-summary { display: none; margin-top: 16px; padding: 14px 18px; background: rgba(63,184,212,0.08); border: 1px solid rgba(63,184,212,0.2); border-radius: 10px; }
.cascade-summary.visible { display: block; }
.cascade-summary p { font-family: var(--mono); font-size: 11px; color: rgba(255,255,255,0.55); letter-spacing: 0.05em; line-height: 1.7; }
.cascade-summary strong { color: var(--cyan2); }
.btn-reset { background: transparent; color: rgba(255,255,255,0.35); border: 1px solid rgba(255,255,255,0.15); font-size: 12px; padding: 7px 14px; border-radius: 6px; cursor: pointer; font-family: var(--mono); letter-spacing: 0.08em; transition: all .2s; display: none; }
.btn-reset:hover { color: rgba(255,255,255,0.7); border-color: rgba(255,255,255,0.35); }
.btn-reset.visible { display: inline-block; }

/* ── CTA BAND ── */
.cta-band { background: var(--blue); padding: 80px 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.cta-band h2 { color: var(--white); margin-bottom: 8px; }
.cta-band p { color: rgba(255,255,255,0.7); font-size: 18px; }

/* ── FOOTER ── */
footer { background: var(--ink); color: rgba(255,255,255,0.4); padding: 44px 0; font-size: 12px; font-family: var(--mono); letter-spacing: 0.06em; }
.footer-inner { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 32px; border-bottom: 1px solid rgba(255,255,255,0.07); margin-bottom: 28px; }
.footer-brand strong { font-size: 18px; letter-spacing: 0.04em; }
.footer-brand .ld { color: var(--white); }
.footer-brand .lc { color: var(--cyan); }
.footer-brand p { color: rgba(255,255,255,0.35); font-size: 10px; margin-top: 6px; line-height: 1.6; }
.footer-col h4 { color: rgba(255,255,255,0.6); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 14px; }
.footer-col a { display: block; color: rgba(255,255,255,0.38); text-decoration: none; font-size: 12px; margin-bottom: 8px; transition: color .2s; }
.footer-col a:hover { color: rgba(255,255,255,0.75); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; }
.footer-bottom span { color: rgba(255,255,255,0.25); }

/* ── REVEAL ANIMATIONS ── */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.65s ease, transform 0.65s ease; }
.reveal.visible { opacity: 1; transform: none; }
.reveal-left { opacity: 0; transform: translateX(-24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal-left.visible { opacity: 1; transform: none; }

/* ── SERVICE ITEM ── */
.service-item { padding: 32px 0; border-bottom: 1px solid var(--rule); display: grid; grid-template-columns: 0.35fr 1fr; gap: 40px; align-items: start; }
.service-item:last-child { border-bottom: none; }
.service-label { font-family: var(--mono); font-size: 10px; color: var(--muted); letter-spacing: 0.14em; text-transform: uppercase; padding-top: 4px; }
.service-content h3 { font-family: var(--serif); font-size: 24px; letter-spacing: -0.02em; color: var(--ink); margin-bottom: 10px; }
.service-content p { font-size: 15px; color: var(--muted); line-height: 1.65; margin-bottom: 14px; }
.service-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.service-tag { font-family: var(--mono); font-size: 9px; letter-spacing: 0.1em; color: var(--blue); background: var(--canvas2); border: 1px solid var(--canvas3); border-radius: 4px; padding: 4px 10px; }

/* ── MAP NODES (LDLC Map page) ── */
.map-node-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; margin-top: 40px; }
.map-node { background: var(--ink2); border: 1px solid rgba(63,184,212,0.15); border-radius: 10px; padding: 18px 16px; cursor: pointer; transition: all .2s; }
.map-node:hover { background: var(--ink3); border-color: rgba(63,184,212,0.4); transform: translateY(-2px); }
.map-node.active { border-color: var(--cyan); background: rgba(63,184,212,0.12); }
.mn-id { font-family: var(--mono); font-size: 9px; color: rgba(255,255,255,0.35); letter-spacing: 0.1em; margin-bottom: 4px; }
.mn-type { font-family: var(--mono); font-size: 8px; color: var(--cyan); letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 6px; }
.mn-title { font-size: 12px; color: rgba(255,255,255,0.78); line-height: 1.35; }

/* ── TRACE PATH ── */
.trace-path { display: flex; flex-wrap: wrap; align-items: center; gap: 0; margin: 32px 0; }
.trace-node { background: var(--ink3); border: 1px solid rgba(63,184,212,0.2); border-radius: 8px; padding: 10px 16px; font-family: var(--mono); font-size: 11px; }
.trace-node .tn-id { color: rgba(255,255,255,0.35); font-size: 9px; display: block; margin-bottom: 2px; }
.trace-node .tn-name { color: rgba(255,255,255,0.8); }
.trace-node.hl { border-color: var(--cyan); background: rgba(63,184,212,0.12); }
.trace-node.hl .tn-name { color: var(--cyan2); }
.trace-arrow { color: rgba(255,255,255,0.2); font-size: 18px; padding: 0 6px; flex-shrink: 0; }

/* ── RESOURCE ITEMS ── */
.resource-list { display: flex; flex-direction: column; gap: 0; }
.resource-item { display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: center; padding: 20px 0; border-bottom: 1px solid var(--rule); }
.resource-item:last-child { border-bottom: none; }
.ri-tag { font-family: var(--mono); font-size: 9px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--cyan); margin-bottom: 4px; }
.ri-title { font-size: 16px; color: var(--ink); font-weight: 500; margin-bottom: 4px; }
.ri-desc { font-size: 13px; color: var(--muted); }

/* ── CONTACT FORM ── */
.form-group { margin-bottom: 22px; }
.form-group label { display: block; font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 12px 16px; background: var(--white);
  border: 1.5px solid var(--rule); border-radius: 8px;
  font-family: var(--sans); font-size: 15px; color: var(--text);
  transition: border-color .2s;
  appearance: none;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  outline: none; border-color: var(--blue2);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.checkbox-group { display: flex; flex-direction: column; gap: 10px; }
.checkbox-group label { display: flex; align-items: center; gap: 10px; font-family: var(--sans); font-size: 14px; color: var(--text); letter-spacing: 0; text-transform: none; cursor: pointer; }
.checkbox-group input[type=checkbox] { width: 16px; height: 16px; flex-shrink: 0; }

/* ── ABOUT STATS ── */
.stat-row { display: grid; grid-template-columns: repeat(3,1fr); gap: 32px; margin-top: 48px; }
.stat-box { text-align: center; }
.stat-num { font-family: var(--serif); font-size: clamp(48px,7vw,80px); line-height: 1; color: var(--ink); letter-spacing: -0.04em; }
.stat-num span { color: var(--blue2); }
.stat-label { font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-top: 8px; }

/* ── RESPONSIVE ── */
@media (max-width: 960px) {
  .split, .split-3-2, .split-2-3 { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: repeat(2,1fr); }
  .vocab-grid { grid-template-columns: repeat(2,1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .cascade-body { grid-template-columns: 1fr; }
  .cascade-right { max-height: none; }
  .service-item { grid-template-columns: 1fr; gap: 8px; }
  .map-node-grid { grid-template-columns: repeat(2,1fr); }
  .stat-row { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  nav { display: none; }
  .nav-mobile-toggle { display: block; }
  .card-grid { grid-template-columns: 1fr; }
  .vocab-grid { grid-template-columns: 1fr 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  section { padding: 56px 0; }
  .book-card { padding: 32px; grid-template-columns: 1fr !important; }
  .stat-row { grid-template-columns: 1fr 1fr; }
}

/* ── BOOK CARD ── */
.book-card { background: var(--ink); border-radius: 20px; padding: 56px 60px; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 60px; align-items: center; position: relative; overflow: hidden; border: 1px solid rgba(63,184,212,0.1); }
.book-card::before { content: '"'; position: absolute; top: -60px; right: 30px; font-family: var(--serif); font-size: 320px; color: rgba(63,184,212,0.04); line-height: 1; pointer-events: none; }
.book-card h2 { color: var(--white); margin-bottom: 16px; }
.book-card .book-body { color: rgba(255,255,255,0.52); font-size: 17px; line-height: 1.75; margin-bottom: 28px; }
.book-aside { background: rgba(63,184,212,0.06); border: 1px solid rgba(63,184,212,0.15); border-radius: 16px; padding: 32px; }
.book-aside blockquote { font-family: var(--serif); font-size: 20px; font-style: italic; color: rgba(255,255,255,0.82); line-height: 1.45; margin-bottom: 16px; }
.book-aside cite { font-family: var(--mono); font-size: 10px; color: rgba(255,255,255,0.28); letter-spacing: 0.12em; }

/* misc */
.mono-note { font-family: var(--mono); font-size: 11px; color: rgba(255,255,255,0.25); letter-spacing: 0.06em; margin-top: 20px; text-align: center; }
.divider { border: none; border-top: 1px solid var(--rule); margin: 48px 0; }
.divider.dark { border-color: rgba(255,255,255,0.07); }
