/* =========================================================
   Elevata — Design System (consolidated final)
   Palette: white / cool-slate accent / brass secondary
   Type: Sora (display) + Karla (body)
   ========================================================= */

:root{
  --bg:#FFFFFF; --surface:#FFFFFF; --surface-alt:#F5F6F4;
  --text:#1E2321; --text-muted:#6B7168;
  --accent:#2C5F73; --accent-strong:#1F4756; --brass:#B8862E;
  --border:#E4E6E2;
  --bg-inverse:#1C2422; --inverse-text:#FFFFFF; --inverse-muted:#A7ACA1;

  --font-display:'Sora','Helvetica Neue',Arial,sans-serif;
  --font-body:'Karla','Helvetica Neue',Arial,sans-serif;
  --font-mono:'IBM Plex Mono','Consolas',ui-monospace,monospace;

  --maxw:1120px; --col:700px; --radius:4px;

  --space-1:0.5rem; --space-2:1rem; --space-3:1.5rem;
  --space-4:2.5rem; --space-5:4rem; --space-6:6rem;
}

*,*::before,*::after{box-sizing:border-box;}
html{-webkit-text-size-adjust:100%; scroll-behavior:smooth;}
body{
  margin:0; background:var(--bg); color:var(--text);
  font-family:var(--font-body); font-size:1.0625rem; line-height:1.6;
  -webkit-font-smoothing:antialiased;
}
a{color:inherit;}
img{max-width:100%; display:block;}
.wrap{max-width:var(--maxw); margin:0 auto; padding:0 1.75rem;}
.col{max-width:var(--col);}

h1,h2,h3,h4{font-family:var(--font-display); font-weight:600; margin:0; letter-spacing:-0.03em; line-height:1.08;}
h1{font-size:clamp(2.35rem, 1.4rem + 4.2vw, 4rem);}
h2{font-size:clamp(1.7rem, 1.2rem + 2vw, 2.4rem);}
h3{font-size:clamp(1.15rem, 1rem + 0.6vw, 1.4rem); font-weight:600;}
p{margin:0 0 1rem; color:var(--text);}
p:last-child{margin-bottom:0;}
.muted{color:var(--text-muted);}
.lead{font-size:1.15rem; color:var(--text-muted);}

.eyebrow{
  font-family:var(--font-mono); font-weight:500; font-size:0.688rem;
  letter-spacing:0.12em; text-transform:uppercase; color:var(--accent-strong);
  display:inline-flex; align-items:center; gap:0.5em;
}
.eyebrow::before{content:""; width:1.4em; height:2px; background:var(--brass); display:inline-block;}
hr.rule{border:none; border-top:1px solid var(--border); margin:0;}

/* ---------- Nav ---------- */
.site-nav{
  position:sticky; top:0; z-index:40; background:rgba(255,255,255,0.92);
  backdrop-filter:blur(10px); -webkit-backdrop-filter:blur(10px);
  border-bottom:1px solid var(--border);
}
.site-nav .wrap{display:flex; align-items:center; justify-content:space-between; height:4.5rem; position:relative;}
/* Mark + wordmark lockup — see includes/mark.php. --mark-size is set per instance; gap is 1/3 chip width per BRAND.md. */
.mark-lockup{display:inline-flex; align-items:center; gap:40px; text-decoration:none;}
.mark-lockup svg{flex:none; display:block;}
.mark-lockup-text{font-family:var(--font-display); font-weight:600; font-size:1.3rem; letter-spacing:-0.025em; color:var(--text);}
.mark-lockup.inverse .mark-lockup-text{color:var(--inverse-text);}
.mark-lockup-text .a-accent{color:var(--brass);}
.nav-links{display:flex; align-items:center; gap:2rem; list-style:none; margin:0; padding:0;}
.nav-links a{font-family:var(--font-display); text-decoration:none; font-size:0.92rem; font-weight:600; color:var(--text-muted); padding:0.3rem 0; border-bottom:2px solid transparent;}
.nav-links a:hover, .nav-links a[aria-current="page"]{color:var(--text); border-bottom-color:var(--brass);}
.nav-cta{display:flex; align-items:center; gap:1.75rem;}
.nav-toggle{
  display:none; background:none; border:1px solid var(--border); border-radius:var(--radius);
  font-family:var(--font-body); font-weight:700; font-size:0.85rem; padding:0.5rem 0.9rem; cursor:pointer; color:var(--text);
}
/* Compact dropdown: anchored under the toggle, sized to its own content — never a full-screen takeover, so it never needs to scroll under normal use. max-height/overflow below are a safety net only, for an unusually short viewport. */
body.nav-open .nav-links{
  display:flex; position:absolute; top:calc(100% + 0.75rem); right:1.75rem; left:auto;
  background:var(--surface); border:1px solid var(--border); border-radius:var(--radius);
  box-shadow:0 16px 40px rgba(30,35,33,0.16); z-index:39;
  flex-direction:column; align-items:stretch; gap:0.15rem; padding:0.6rem;
  min-width:230px; max-width:calc(100vw - 3.5rem);
  max-height:min(70vh, 70dvh); overflow-y:auto;
}
body.nav-open .nav-links li{width:100%;}
body.nav-open .nav-links a{display:block; padding:0.7rem 0.75rem; border-radius:calc(var(--radius) - 1px); border-bottom:none;}
body.nav-open .nav-links a:hover, body.nav-open .nav-links a[aria-current="page"]{background:var(--surface-alt); color:var(--text);}
body.nav-open .nav-cta-mobile{border-top:1px solid var(--border); margin-top:0.35rem; padding-top:0.6rem;}
.nav-cta-mobile{display:none;}

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex; align-items:center; gap:0.5rem; font-family:var(--font-display);
  font-weight:600; font-size:0.92rem; text-decoration:none; padding:0.85rem 1.5rem;
  border-radius:var(--radius); border:1px solid transparent; cursor:pointer; white-space:nowrap;
}
.btn-primary{background:var(--accent); color:var(--bg);}
.btn-primary:hover{background:var(--accent-strong);}
.btn-ghost{border-color:var(--text); color:var(--text); background:transparent;}
.btn-ghost:hover{background:var(--text); color:var(--bg);}
.btn-ghost-inverse{border-color:var(--inverse-muted); color:var(--inverse-text); background:transparent;}
.btn-ghost-inverse:hover{background:var(--inverse-text); color:var(--bg-inverse);}

/* ---------- Sections ---------- */
section{padding:5.5rem 0;}
section.tight{padding:3.25rem 0;}
.band-inverse{background:var(--bg-inverse); color:var(--inverse-text);}
.band-inverse .muted{color:var(--inverse-muted);}
.band-inverse h2, .band-inverse h1{color:var(--inverse-text);}
.band-surface{background:var(--surface-alt);}
.band-inverse .eyebrow{color:var(--brass);}
.band-inverse .eyebrow::before{background:var(--brass);}

/* ---------- Hero: full-bleed split ---------- */
.hero-split{display:grid; grid-template-columns:minmax(0,560px) 1fr; align-items:stretch; min-height:560px;}
.hero-split-text{display:flex; flex-direction:column; justify-content:center; padding:4rem 3.5rem 4rem 1.75rem; max-width:640px;}
.hero-split-text .eyebrow{margin-bottom:1.25rem;}
.hero-split-text h1{margin-bottom:1.5rem;}
.hero-split-text .lead{font-size:1.2rem; max-width:520px; margin-bottom:2.25rem;}
.hero-ctas{display:flex; gap:1rem; flex-wrap:wrap;}
.hero-split-art{background:var(--surface-alt); position:relative; overflow:hidden;}
.hero-split-art img{width:100%; height:100%; object-fit:cover; object-position:center; display:block;}
.hero-split-art picture{display:block; width:100%; height:100%;}

/* ---------- Pillars ---------- */
.pillars{display:grid; grid-template-columns:repeat(3,1fr); gap:2.5rem;}
.pillar-num{font-family:var(--font-display); font-weight:600; font-size:1.05rem; color:var(--accent-strong); margin-bottom:0.75rem; display:block;}
.pillar h3{margin-bottom:0.6rem;}

/* ---------- Client band ---------- */
.client-band{display:flex; flex-wrap:wrap; gap:0.75rem 1rem; justify-content:center; text-align:center;}
.client-chip{
  font-family:var(--font-display); font-size:0.85rem; font-weight:600; letter-spacing:0.02em; padding:0.6rem 1.1rem;
  border:1px solid var(--border); border-radius:999px; color:var(--text-muted);
}

/* ---------- Case cards (Work index / featured) ---------- */
.case-grid{display:grid; grid-template-columns:repeat(3,1fr); gap:1.75rem; align-items:start;}
.case-card{
  background:var(--surface); border:1px solid var(--border); padding:2rem; border-radius:var(--radius);
  text-decoration:none; color:var(--text); display:flex; flex-direction:column; gap:1rem;
  transition:border-color 0.15s ease, transform 0.15s ease;
}
.case-card:hover{border-color:var(--accent); transform:translateY(-2px);}
.case-card-thumb{
  margin:-2rem -2rem 0.6rem; aspect-ratio:16/10; overflow:hidden;
  background:var(--surface-alt); border-radius:calc(var(--radius) - 1px) calc(var(--radius) - 1px) 0 0;
}
.case-card-thumb img, .case-card-thumb video{width:100%; height:100%; object-fit:cover; object-position:top; display:block;}
.cs-tag{font-family:var(--font-mono); font-size:0.7rem; font-weight:500; letter-spacing:0.08em; text-transform:uppercase; color:var(--accent-strong); display:inline-block;}
.case-card h3{margin:0;}
.case-card .stat-row{display:flex; gap:1.5rem; margin-top:auto; padding-top:1rem; border-top:1px solid var(--border);}
.stat{display:flex; flex-direction:column;}
.stat .num{font-family:var(--font-display); font-size:1.5rem; font-weight:600; color:var(--accent);}
.stat .label{font-size:0.72rem; text-transform:uppercase; letter-spacing:0.06em; color:var(--text-muted);}

/* Compact icon row for a case-card that wants to flag named frameworks/methods without a paragraph of text */
.theory-icons{display:flex; flex-direction:column; gap:0.5rem;}
.theory-icons .chips{display:flex; gap:0.5rem;}
.theory-icons .chip{
  width:32px; height:32px; border-radius:8px; flex:none;
  display:flex; align-items:center; justify-content:center;
  background:var(--accent);
}
.theory-icons .chip.brass{background:var(--brass);}
.theory-icons .chip svg{width:16px; height:16px; stroke:var(--bg); fill:none; stroke-width:2; stroke-linecap:round; stroke-linejoin:round;}
.theory-icons .theory-caption{font-size:0.72rem; color:var(--text-muted); font-weight:700; text-transform:uppercase; letter-spacing:0.04em;}

/* ---------- Work samples grid (lighter-weight than case cards) ---------- */
.sample-grid{display:grid; grid-template-columns:repeat(auto-fit, minmax(230px, 1fr)); gap:1.25rem; align-items:start;}
.sample-card{
  background:var(--surface); border:1px solid var(--border); border-radius:var(--radius); padding:1.5rem;
  text-decoration:none; color:var(--text); display:flex; flex-direction:column; gap:0.6rem;
  transition:border-color 0.15s ease, transform 0.15s ease;
}
.sample-card:hover{border-color:var(--accent); transform:translateY(-2px);}
.sample-card h4{font-family:var(--font-display); font-weight:600; font-size:1rem; margin:0; line-height:1.3;}
.sample-card p{font-size:0.88rem; color:var(--text-muted); margin:0;}
.sample-card .link-out{margin-top:auto; font-size:0.8rem; font-weight:700; color:var(--accent); padding-top:0.5rem;}
.sample-card:hover .link-out{color:var(--accent-strong);}

/* ---------- Case study detail ---------- */
.case-hero{padding-top:3.5rem; padding-bottom:2.5rem;}
.case-hero .client{font-size:0.95rem; color:var(--text-muted); margin-top:0.75rem;}
.glance-row{display:flex; gap:2.5rem; flex-wrap:wrap; margin-top:2.25rem; padding-top:1.75rem; border-top:1px solid var(--border);}
.dossier{display:flex; gap:2.5rem; padding:2.5rem 0; border-top:1px solid var(--border);}
.dossier:last-of-type{border-bottom:1px solid var(--border);}
.dossier-label{flex:0 0 190px;}
.dossier-label .eyebrow{margin:0;}
.dossier-body{flex:1; min-width:0; max-width:var(--col);}
.dossier-body p{margin-bottom:1rem;}
.dossier-body ul{color:var(--text-muted); margin:0 0 1rem; padding-left:1.25rem;}
.tags{display:flex; flex-wrap:wrap; gap:0.5rem; margin-top:0.5rem;}
.tag{font-family:var(--font-display); font-size:0.78rem; font-weight:600; padding:0.35rem 0.8rem; border:1px solid var(--brass); color:var(--accent-strong); border-radius:999px;}
.cs-nav{display:flex; justify-content:space-between; align-items:center; padding:2.5rem 0; border-top:1px solid var(--border); gap:1rem; flex-wrap:wrap;}
.cs-nav a{font-family:var(--font-display); text-decoration:none; font-weight:600; font-size:0.92rem; color:var(--text);}
.cs-nav a:hover{color:var(--accent);}
.quote-pull{font-family:var(--font-display); font-weight:600; font-size:clamp(1.3rem,1rem + 1.2vw,1.8rem); line-height:1.35; max-width:var(--col); border-left:3px solid var(--brass); padding-left:1.75rem; margin:0.5rem 0;}

/* ---------- Diagram tabs + gating ---------- */
.diagram-tabs-nav{display:flex; flex-wrap:wrap; gap:0.6rem; margin-bottom:1.25rem;}
.dtab-btn{
  font-family:var(--font-display); font-weight:600; font-size:0.82rem; padding:0.6rem 1rem;
  background:var(--surface); border:1px solid var(--border); color:var(--text-muted); cursor:pointer; border-radius:999px;
}
.dtab-btn.active{background:var(--accent); border-color:var(--accent); color:var(--bg);}
.dtab-panel{display:none; background:var(--surface); border:1px solid var(--border); border-radius:var(--radius); padding:1.25rem; overflow-x:auto;}
.dtab-panel.active{display:block;}
.dtab-panel svg{width:100%; height:auto; min-width:640px; display:block;}
.dtab-caption{margin-top:1rem; color:var(--text-muted); font-size:0.88rem;}

.dtab-gated{position:relative; overflow:hidden; border-radius:calc(var(--radius) - 1px);}
.dtab-gated-svg{filter:blur(9px); pointer-events:none; user-select:none;}
.dtab-gated-img{filter:blur(9px); pointer-events:none; user-select:none;}
.dtab-gated-svg svg{width:100%; height:auto; min-width:640px; display:block;}
.dtab-gate-overlay{
  position:absolute; inset:0; display:flex; align-items:center; justify-content:center;
  text-decoration:none; padding:2rem; background:rgba(28,36,34,0.28);
}
.dtab-gate-overlay span{
  display:inline-block; max-width:320px; text-align:center; background:var(--bg-inverse); color:var(--bg);
  font-family:var(--font-body); font-weight:700; font-size:0.92rem; line-height:1.45;
  padding:1rem 1.5rem; border-radius:var(--radius); box-shadow:0 4px 18px rgba(0,0,0,0.18);
  transition:background 0.15s ease, transform 0.15s ease;
}
.dtab-gate-overlay:hover span{background:var(--accent-strong); transform:translateY(-1px);}

/* ---------- SCORM sample launcher ---------- */
.sample-launcher{
  display:grid; grid-template-columns:auto 1fr; gap:1.75rem; align-items:center;
  background:var(--surface-alt); border:1px solid var(--border); border-radius:var(--radius);
  padding:1.75rem; margin-top:1rem; cursor:pointer; border-width:1px; text-align:left; width:100%;
  font-family:var(--font-body); color:var(--text);
}
.sample-launcher-icon{
  width:64px; height:64px; border-radius:50%; background:var(--accent); color:var(--bg);
  display:flex; align-items:center; justify-content:center; flex:none;
}
.sample-launcher-icon svg{width:24px; height:24px;}
.sample-launcher h4{font-family:var(--font-display); font-weight:600; font-size:1.05rem; margin:0 0 0.35rem;}
.sample-launcher p{margin:0; color:var(--text-muted); font-size:0.92rem;}
.sample-launcher:hover{border-color:var(--accent);}

.sample-modal{
  display:none; position:fixed; inset:0; z-index:100; background:rgba(20,24,22,0.86);
  align-items:center; justify-content:center; padding:2.5vh 2.5vw;
}
.sample-modal.is-open{display:flex;}
.sample-modal-frame{
  width:100%; height:100%; max-width:1200px; background:var(--bg); border-radius:6px; overflow:hidden;
  position:relative; box-shadow:0 20px 60px rgba(0,0,0,0.4);
}
.sample-modal-frame iframe{width:100%; height:100%; border:none; display:block;}
.sample-modal-frame.is-image{overflow:auto; display:flex; align-items:flex-start; justify-content:center;}
.sample-modal-frame.is-image img{width:100%; height:auto; display:block;}

.map-grid{display:grid; grid-template-columns:repeat(auto-fit, minmax(280px, 1fr)); gap:1.5rem;}
.map-card{
  background:var(--surface); border:1px solid var(--border); border-radius:var(--radius); overflow:hidden;
  cursor:pointer; text-align:left; padding:0; display:flex; flex-direction:column; font-family:var(--font-body);
  transition:border-color 0.15s ease, transform 0.15s ease;
}
.map-card:hover{border-color:var(--accent); transform:translateY(-2px);}
.map-card-thumb{background:var(--surface-alt); overflow:hidden; max-height:220px;}
.map-card-thumb img{width:100%; height:100%; object-fit:cover; object-position:top; display:block;}
.map-card-body{padding:1.25rem 1.5rem;}
.map-card-body h4{font-family:var(--font-display); font-weight:600; font-size:1rem; margin:0 0 0.4rem; color:var(--text);}
.map-card-body p{font-size:0.88rem; color:var(--text-muted); margin:0;}
.map-card-body .link-out{display:inline-block; margin-top:0.75rem; font-size:0.8rem; font-weight:700; color:var(--accent);}
.sample-modal-close{
  position:absolute; top:12px; right:12px; z-index:5; width:38px; height:38px; border-radius:50%;
  background:var(--bg-inverse); color:var(--bg); border:none; cursor:pointer; font-size:1.1rem; line-height:1;
}

/* ---------- Tool frame: consistent branded chrome around a screenshot or
   screen-recording sample, so wildly different source tools (Trello green,
   an olive Vyond video, a white authoring-tool UI) all read as one system. ---------- */
.tool-frame{
  background:var(--surface); border:1px solid var(--border); border-radius:var(--radius);
  overflow:hidden; box-shadow:0 1px 2px rgba(30,35,33,0.05);
  display:block; text-decoration:none; color:inherit;
}
/* Hero collage frames double as links to the matching work example - hover signals that. */
.work-hero-collage a.tool-frame{transition:border-color 0.15s ease, transform 0.15s ease;}
.work-hero-collage a.tool-frame:hover{border-color:var(--accent); transform:translateY(-2px);}
.tool-frame-bar{
  display:flex; align-items:center; gap:0.6rem; padding:0.65rem 0.9rem;
  background:var(--bg-inverse);
}
.tool-frame-dots{display:flex; gap:0.4rem; flex:none;}
.tool-frame-dots span{width:7px; height:7px; border-radius:50%; background:var(--inverse-muted); opacity:0.55;}
.tool-frame-label{
  font-family:var(--font-body); font-weight:700; font-size:0.72rem; letter-spacing:0.06em;
  text-transform:uppercase; color:var(--inverse-muted); white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
.tool-frame-media{position:relative; background:var(--surface-alt); overflow:hidden; aspect-ratio:16/10;}
.tool-frame-media img, .tool-frame-media video{width:100%; height:100%; object-fit:cover; display:block;}
.tool-frame-media.ratio-wide{aspect-ratio:16/9;}
.tool-frame-media.placeholder-media{background:var(--accent); display:flex; align-items:center; justify-content:center; width:100%; border:0; padding:0; cursor:pointer; font-family:inherit;}
.tool-frame-media.placeholder-media span{position:relative; z-index:1; font-family:var(--font-mono); font-weight:500; font-size:0.75rem; letter-spacing:0.1em; text-transform:uppercase; color:var(--inverse-text);}
.tool-frame-media.placeholder-media.has-video-bg{background:var(--bg-inverse);}
.tool-frame-media.placeholder-media video{position:absolute; inset:0; width:100%; height:100%; object-fit:cover; z-index:0;}
.tool-frame-media.placeholder-media.has-video-bg::after{content:""; position:absolute; inset:0; background:rgba(28,36,34,0.45); z-index:0;}
.tool-frame-caption{padding:1.5rem 1.75rem;}
.tool-frame-caption h4{font-family:var(--font-display); font-weight:600; font-size:1rem; margin:0 0 0.4rem;}
.tool-frame-caption p{font-size:0.92rem; color:var(--text-muted); margin:0;}
.tool-frame-caption .link-out{display:inline-block; margin-top:0.75rem; font-size:0.8rem; font-weight:700; color:var(--accent);}
.tool-frame-caption .link-out:hover{color:var(--accent-strong);}
.tool-frame-caption button.link-out{background:none; border:0; padding:0; cursor:pointer; font-family:inherit;}
.tool-frame-media.placeholder-media.has-image-bg{background:var(--bg-inverse);}
.tool-frame-media.placeholder-media img{position:absolute; inset:0; width:100%; height:100%; object-fit:cover; z-index:0;}
.tool-frame-media.placeholder-media.has-image-bg::after{content:""; position:absolute; inset:0; background:rgba(28,36,34,0.5); z-index:0;}

/* ---------- Work page: category jump-nav ---------- */
.work-category-nav{
  display:flex; flex-wrap:wrap; gap:0.6rem; margin-top:1.75rem; padding-top:1.75rem;
  border-top:1px solid var(--border);
}
.work-category-nav a{
  font-family:var(--font-display); font-weight:600; font-size:0.85rem; text-decoration:none;
  color:var(--accent-strong); background:var(--surface-alt); border:1px solid var(--border);
  border-radius:999px; padding:0.5rem 1.05rem; transition:border-color 0.15s, color 0.15s;
}
.work-category-nav a:hover{border-color:var(--accent); color:var(--accent);}
.work-section-head{display:flex; align-items:baseline; justify-content:space-between; gap:1rem; flex-wrap:wrap;}
.work-section-head a.back-to-top{font-family:var(--font-display); font-weight:600; font-size:0.8rem; color:var(--text-muted); text-decoration:none;}
.work-section-head a.back-to-top:hover{color:var(--accent);}

/* ---------- Sample grid: category grouping ---------- */
.sample-group{margin-top:2.25rem;}
.sample-group:first-child{margin-top:0;}
.sample-group-label{
  font-family:var(--font-mono); font-weight:500; font-size:0.72rem; letter-spacing:0.1em;
  text-transform:uppercase; color:var(--text-muted); margin:0 0 0.9rem;
}
/* ---------- Work hero: text + collage of tool frames ---------- */
.work-hero{display:grid; grid-template-columns:minmax(0,1fr) minmax(0,460px); gap:3.5rem; align-items:center;}
.work-hero-collage{display:grid; grid-template-columns:1.15fr 1fr; grid-template-rows:1fr 1fr; gap:0.9rem; height:100%; min-height:360px;}
.work-hero-collage .tool-frame:first-child{grid-row:1 / 3;}
.work-hero-collage .tool-frame-media{aspect-ratio:auto; height:100%;}

/* ---------- Interactive sample grid (rapid-authoring demos) ---------- */
.interactive-grid{display:grid; grid-template-columns:repeat(2, 1fr); gap:1.75rem;}

/* ---------- Sample card thumbnail (optional, e.g. a still from a linked video) ---------- */
.sample-card-thumb{
  margin:-1.5rem -1.5rem 0.6rem; aspect-ratio:16/10; overflow:hidden;
  background:var(--surface-alt); border-radius:calc(var(--radius) - 1px) calc(var(--radius) - 1px) 0 0;
}
.sample-card-thumb img{width:100%; height:100%; object-fit:cover; display:block;}

/* ---------- Framework grid (named-methodology breakdown) ---------- */
.framework-grid{display:grid; grid-template-columns:repeat(auto-fit, minmax(200px, 1fr)); gap:1.25rem;}
.framework-card{background:var(--surface); border:1px solid var(--border); border-radius:var(--radius); padding:1.5rem;}
.framework-icon{width:40px; height:40px; border-radius:8px; display:flex; align-items:center; justify-content:center; color:var(--bg); margin-bottom:1.1rem;}
.framework-icon.teal{background:var(--accent);}
.framework-icon.brass{background:var(--brass);}
.framework-icon svg{width:20px; height:20px;}
.framework-tag{font-family:var(--font-mono); font-weight:500; font-size:0.7rem; letter-spacing:0.1em; text-transform:uppercase; color:var(--accent-strong); display:block; margin-bottom:0.5rem;}
.framework-card h4{margin-bottom:0.6rem;}
.framework-card p{font-size:0.86rem; color:var(--text-muted); margin:0;}
.framework-note{margin-top:2rem; padding-top:1.5rem; border-top:1px solid var(--border); font-size:0.85rem; color:var(--text-muted);}

/* ---------- Services ---------- */
.offer-card{background:var(--surface); border:1px solid var(--border); border-radius:var(--radius); padding:2.75rem; margin-bottom:2rem;}
.offer-head{display:flex; justify-content:space-between; align-items:flex-start; gap:1.5rem; flex-wrap:wrap; margin-bottom:1.25rem;}
.price-tag{font-family:var(--font-display); font-weight:600; font-size:1.6rem; color:var(--accent); white-space:nowrap;}
.offer-list{margin:1.5rem 0 0; padding:0; list-style:none; display:flex; flex-direction:column; gap:0.6rem;}
.offer-list li{display:flex; gap:0.75rem; align-items:baseline;}
.offer-list li::before{content:"—"; color:var(--brass); flex:none;}
.process-list{list-style:none; margin:0; padding:0; display:flex; flex-direction:column;}
.process-item{display:flex; gap:1.75rem; padding:1.75rem 0; border-top:1px solid var(--border);}
.process-item:last-child{border-bottom:1px solid var(--border);}
.process-num{font-family:var(--font-display); font-weight:600; font-size:1.4rem; color:var(--accent-strong); flex:0 0 3rem;}

/* ---------- Services: callouts + policy grid ---------- */
.offer-callout{
  background:var(--surface-alt); border:1px dashed var(--border); border-radius:var(--radius);
  padding:1.75rem 2rem; margin-bottom:1.5rem;
}
.offer-callout h3{margin-bottom:0.5rem;}
.offer-addon{background:var(--surface); border:1px solid var(--border); border-radius:var(--radius); padding:1.75rem 2rem; margin-bottom:2rem;}
.offer-addon .offer-head{margin-bottom:0.75rem;}
.price-tag-sm{font-family:var(--font-display); font-weight:600; font-size:1.1rem; color:var(--accent-strong); white-space:nowrap;}

.policy-grid{display:grid; grid-template-columns:repeat(3, 1fr); gap:1.5rem;}
.policy-card h3{font-size:1rem; margin-bottom:0.85rem;}
.policy-card ul{list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:0.6rem;}
.policy-card li{font-size:0.85rem; color:var(--text-muted); padding-left:1rem; position:relative;}
.policy-card li::before{content:"—"; position:absolute; left:0; color:var(--brass);}

/* ---------- About ---------- */
.about-intro{display:flex; align-items:center; justify-content:space-between; gap:2.5rem; flex-wrap:wrap;}
.about-intro-text{flex:1 1 380px;}
.about-photo{flex:0 0 200px; width:200px; aspect-ratio:1/1; border-radius:var(--radius); overflow:hidden; border:1px solid var(--border); background:var(--surface-alt);}
.about-photo img{width:100%; height:100%; object-fit:cover; object-position:center 20%;}
.about-grid{display:grid; grid-template-columns:1.2fr 0.8fr; gap:3.5rem; align-items:start;}
.skill-list{display:flex; flex-wrap:wrap; gap:0.6rem; padding:0; margin:1rem 0 0; list-style:none;}
.skill-list li{font-family:var(--font-display); font-size:0.82rem; font-weight:600; padding:0.5rem 0.9rem; background:var(--surface-alt); border:1px solid var(--border); color:var(--text-muted); border-radius:var(--radius);}
/* Sub-group label inside a skill-list stack — deliberately NOT .eyebrow (brass rule caps at one per view; About already spends its brass on the page eyebrow). */
.skill-group-label{font-family:var(--font-body); font-size:0.72rem; font-weight:700; text-transform:uppercase; letter-spacing:0.04em; color:var(--text-muted); margin:1.75rem 0 0.5rem;}
.skill-group-label:first-child{margin-top:0;}

/* ---------- Contact / form ---------- */
.form-grid{display:grid; grid-template-columns:1fr 1fr; gap:1.25rem; margin-top:2.5rem;}
.form-grid .full{grid-column:1 / -1;}
label{display:block; font-family:var(--font-mono); font-size:0.7rem; font-weight:500; letter-spacing:0.12em; text-transform:uppercase; color:var(--text-muted); margin-bottom:0.5rem;}
input, select, textarea{
  width:100%; font-family:var(--font-body); font-size:1rem; padding:0.8rem 0.9rem;
  background:var(--surface); border:1px solid var(--border); color:var(--text); border-radius:var(--radius);
}
input:focus, select:focus, textarea:focus{outline:2px solid var(--accent); outline-offset:1px;}
textarea{resize:vertical; min-height:120px;}
.hp-field{position:absolute; left:-9999px; top:-9999px;}
.form-note{margin-top:1.5rem; font-size:0.85rem; color:var(--text-muted);}
.alert{background:var(--surface-alt); border:1px solid var(--border); border-left:3px solid var(--accent); padding:1.1rem 1.4rem; border-radius:var(--radius); margin:1.75rem 0;}
.alert.error{border-left-color:#B0403A;}

/* ---------- Booking panel (Zoom Scheduler embed) ---------- */
.booking-panel{margin:2.5rem auto 0; max-width:960px;}
.booking-panel-frame{border:1px solid var(--border); border-radius:var(--radius); overflow:hidden; background:var(--surface);}
.booking-panel-frame iframe{width:100%; min-height:640px; border:0; display:block;}
.booking-placeholder{padding:3rem 2rem; text-align:center; background:var(--surface-alt);}
.booking-placeholder h4{font-family:var(--font-display); font-weight:600; font-size:1.1rem; margin-bottom:0.5rem;}
.booking-placeholder p{max-width:420px; margin:0 auto; color:var(--text-muted); font-size:0.92rem;}
.divider-or{display:flex; align-items:center; gap:1rem; margin:3rem 0 2rem; color:var(--text-muted); font-family:var(--font-mono); font-size:0.72rem; font-weight:500; text-transform:uppercase; letter-spacing:0.12em;}
.divider-or::before, .divider-or::after{content:""; flex:1; height:1px; background:var(--border);}

/* ---------- CTA band ---------- */
.cta-band{text-align:center;}
.cta-band h2{margin-bottom:1.5rem; max-width:640px; margin-left:auto; margin-right:auto;}
.cta-band .hero-ctas{justify-content:center;}

/* ---------- Footer ---------- */
footer{padding:3.5rem 0 2.5rem; border-top:1px solid var(--border);}
.footer-row{display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:1.5rem;}
.footer-links{display:flex; gap:1.75rem; list-style:none; margin:0; padding:0; flex-wrap:wrap;}
.footer-links a{font-family:var(--font-display); text-decoration:none; font-size:0.88rem; color:var(--inverse-muted); font-weight:600;}
.footer-links a:hover{color:var(--inverse-text);}
.copyright{font-size:0.8rem; color:var(--inverse-muted); margin-top:2rem;}

/* ---------- Grid-tile system ----------
   The mark's 3×3 field, reused as a layout primitive for services, program
   phases, and credential/compliance blocks. Fill state carries meaning:
   accent = active/complete, surface-alt = pending, brass = the single
   current/terminal step (one brass tile per view, max). ---------- */
.tile-grid{display:grid; grid-template-columns:repeat(3,1fr); gap:6px;}
.tile{
  border-radius:calc(var(--radius) - 1px); background:var(--surface-alt);
  padding:1rem 1.1rem; display:flex; flex-direction:column; justify-content:flex-end; gap:0.35rem; min-height:96px;
}
.tile-num{font-family:var(--font-mono); font-size:0.68rem; font-weight:500; letter-spacing:0.06em;}
.tile-label{font-family:var(--font-display); font-size:0.85rem; font-weight:600; letter-spacing:-0.01em;}
.tile-pending{background:var(--surface-alt);}
.tile-pending .tile-num, .tile-pending .tile-label{color:var(--text-muted);}
.tile-active{background:var(--accent);}
.tile-active .tile-num, .tile-active .tile-label{color:var(--bg);}
.tile-current{background:var(--brass);}
.tile-current .tile-num, .tile-current .tile-label{color:var(--bg-inverse);}

/* Ghost-field pattern — decorative background for inverse/accent sections
   (hero panels, section breaks). Tiles the mark's 14-unit-cell/4-unit-gutter
   proportions edge-to-edge at low opacity; needs a dark/accent host background. */
.grid-pattern{position:relative; isolation:isolate;}
.grid-pattern::before{
  content:""; position:absolute; inset:0; z-index:0; pointer-events:none;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18'%3E%3Crect width='14' height='14' fill='%23FFFFFF' fill-opacity='0.14'/%3E%3C/svg%3E");
  background-size:36px 36px;
}
.grid-pattern > .wrap{position:relative; z-index:1;}

/* Fill-in motion: bottom-left → center → top-right, ~120ms stagger, ease-out,
   opacity + 2px rise. Apply .grid-animate to a .tile-grid to trigger on load. */
@keyframes tile-fill-in{ from{opacity:0; transform:translateY(2px);} to{opacity:1; transform:none;} }
.grid-animate .tile{opacity:0; animation:tile-fill-in 900ms ease-out forwards;}
.grid-animate .tile:nth-child(1){animation-delay:0ms;}
.grid-animate .tile:nth-child(2){animation-delay:120ms;}
.grid-animate .tile:nth-child(3){animation-delay:240ms;}
.grid-animate .tile:nth-child(4){animation-delay:360ms;}
.grid-animate .tile:nth-child(5){animation-delay:480ms;}
.grid-animate .tile:nth-child(6){animation-delay:600ms;}
@media (prefers-reduced-motion: reduce){
  .grid-animate .tile{animation:none; opacity:1; transform:none;}
}

/* ---------- Responsive ---------- */
@media (max-width: 880px){
  .nav-links{display:none;}
  .nav-toggle{display:inline-block;}
  .nav-cta .btn-primary{display:none;}
  .nav-cta-mobile{display:block; margin-top:0.5rem; width:100%;}
  .nav-cta-mobile .btn{width:100%; justify-content:center;}
  .hero-split{grid-template-columns:1fr;}
  .hero-split-text{padding:3rem 1.75rem 0;}
  .hero-split-art{min-height:280px;}
  .about-intro{flex-direction:column-reverse; align-items:flex-start; gap:1.75rem;}
  .about-photo{width:150px; flex-basis:150px;}
  .about-grid{grid-template-columns:1fr;}
  .pillars{grid-template-columns:1fr; gap:2.25rem;}
  .case-grid{grid-template-columns:1fr;}
  .form-grid{grid-template-columns:1fr;}
  .dossier{flex-direction:column; gap:1rem;}
  .dossier-label{flex:none;}
  .sample-launcher{grid-template-columns:1fr; text-align:center;}
  .sample-launcher-icon{margin:0 auto;}
  .work-hero{grid-template-columns:1fr; gap:2.25rem;}
  .work-hero-collage{grid-template-columns:1fr; grid-template-rows:none; min-height:0;}
  .work-hero-collage .tool-frame:first-child{grid-row:auto;}
  .work-hero-collage .tool-frame-media{aspect-ratio:16/10; height:auto;}
  .interactive-grid{grid-template-columns:1fr;}
  .tile-grid{grid-template-columns:1fr;}
  section{padding:3.5rem 0;}
}
