/* NS Website Version: 0.01.013 */
/* NerdStrong! — styles.css (clean rewrite)
   Goals:
   - Variable-driven tokens
   - Single canonical hero grid background
   - Opaque surfaces for outlined elements in hero
   - Remove duplicate/overwritten rules + “loose-ness”
*/


/* ==========================================================
   NerdStrong Website
   State: WORKING
   Date: 2026-02-27
   Lineage: Derived from 0.01.001 canonical baseline
   Patch: Version hardening + Services band corner unification + DOM audit fix
========================================================== */

/* ==========================================================
   NERDSTRONG WEBSITE 1.0
   CSS VARIABLE REGISTRY (Authoritative Token Index)

   RULE:
   - All design tokens must be declared in :root.
   - If a variable is added, renamed, or removed,
     this registry MUST be updated immediately.
   - No silent token drift.

   ----------------------------------------------------------
   1. BRAND
   ----------------------------------------------------------
   --brand-primary      (#f28c45)  Vivid Tangerine
   --brand-secondary    (#f78fa2)  Warm Coral Pink
   --brand-teal         (#1f5f73)  Deep Teal Blue
   --brand-slate        (#1e293b)  Deep Slate Navy

   ----------------------------------------------------------
   2. NEUTRAL PALETTE
   ----------------------------------------------------------
   --bg                 (#fafafa)
   --bg-alt             (#f7f5f2)

   --text               (#111111)
   --text-2             (#333333)
   --muted              (#64748b)

   ----------------------------------------------------------
   3. SURFACES + STROKES
   ----------------------------------------------------------
   --surface            (#ffffff)
   --surface-2          (#f3f4f6)
   --surface-3          (#f1f5f9)

   --outline            (rgba(15,23,42,0.10))
   --outline-strong     (rgba(15,23,42,0.16))

   ----------------------------------------------------------
   4. RADII + SHADOW
   ----------------------------------------------------------
   --r-sm               (10px)
   --r-md               (14px)
   --r-lg               (18px)

   --shadow-sm          (0 1px 2px rgba(2,6,23,0.06))
   --shadow-md          (0 10px 30px rgba(2,6,23,0.08))

   ----------------------------------------------------------
   5. LAYOUT
   ----------------------------------------------------------
   --container          (1100px)
   --gutter             (24px)

   ----------------------------------------------------------
   6. TYPOGRAPHY
   ----------------------------------------------------------
   --font               (system stack)
   --lh                 (1.45)

   ----------------------------------------------------------
   7. BUTTONS
   ----------------------------------------------------------
   --btn-bg             (#ffffff)
   --btn-bg-hover       (#f8fafc)
   --btn-border         (rgba(15,23,42,0.14))

   ----------------------------------------------------------
   8. HERO GRID
   ----------------------------------------------------------
   --hero-grid-size     (72px)
   --hero-grid-line     (rgba(15,23,42,0.10))
   --hero-grid-subline  (rgba(15,23,42,0.05))
   --hero-grid-alpha    (0.55)

   ========================================================== */

:root {
  /* Brand */
  --brand-primary: #f28c45; /* Vivid Tangerine */
  --brand-secondary: #f78fa2; /* Warm Coral Pink */
  --brand-teal: #1f5f73; /* Deep Teal Blue */
  --brand-slate: #1e293b; /* Deep Slate Navy */

  /* Neutral palette */
  --bg: #fafafa;
  --bg-alt: #f7f5f2;

  --text: #111111;
  --text-2: #333333;
  --muted: #64748b;

  /* Surfaces + strokes */
  --surface: #ffffff;
  --surface-2: #f3f4f6;
  --surface-3: #f1f5f9;

  --outline: rgba(15, 23, 42, 0.10);
  --outline-strong: rgba(15, 23, 42, 0.16);

  /* Radii + shadow */
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 18px;
  --shadow-sm: 0 1px 2px rgba(2, 6, 23, 0.06);
  --shadow-md: 0 10px 30px rgba(2, 6, 23, 0.08);

  /* Layout */
  --container: 1100px;
  --gutter: 24px;

  /* Typography */
  --font: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji",
    "Segoe UI Emoji";
  --lh: 1.45;

  /* Buttons */
  --btn-bg: #ffffff;
  --btn-bg-hover: #f8fafc;
  --btn-border: rgba(15, 23, 42, 0.14);

  /* Hero grid tokens */
  --hero-grid-size: 72px;
  --hero-grid-line: rgba(15, 23, 42, 0.10);  /* major line */
  --hero-grid-subline: rgba(15, 23, 42, 0.05); /* minor line */
  --hero-grid-alpha: 0.55; /* overall visibility */
}

/* =========================
   Base / Reset
========================= */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  line-height: var(--lh);
  color: var(--text);
  background: var(--bg);
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

p {
  margin: 0 0 14px;
  color: var(--text-2);
}

h1,
h2,
h3 {
  margin: 0 0 12px;
  color: var(--text);
  letter-spacing: -0.02em;
}

h2 {
  font-size: 40px;
  line-height: 1.1;
}

.container {
  width: min(var(--container), calc(100% - (var(--gutter) * 2)));
  margin-inline: auto;
}

/* =========================
   Header
========================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 250, 250, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-weight: 800;
  color: #0b1220;
  background: #f3f4f6;
  border: 1px solid rgba(15, 23, 42, 0.10);
}

.brand-text {
  display: grid;
  gap: 2px;
  line-height: 1.1;
}

.brand-text strong {
  font-size: 18px;
}

.brand-text span {
  font-size: 13px;
  color: var(--muted);
}

.nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav a {
  font-weight: 650;
  color: #334155;
  padding: 8px 10px;
  border-radius: 10px;
}

.nav a:hover {
  background: rgba(15, 23, 42, 0.04);
}

.nav .nav-cta {
  padding: 9px 14px;
  border: 1px solid rgba(15, 23, 42, 0.14);
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
}

/* =========================
   Buttons
========================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 14px;
  border: 1px solid var(--btn-border);
  background: var(--btn-bg);
  font-weight: 750;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform 140ms ease, background 140ms ease, border-color 140ms ease;
}

.btn:hover {
  background: var(--btn-bg-hover);
  border-color: rgba(15, 23, 42, 0.18);
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--brand-primary);
  border-color: rgba(0, 0, 0, 0.12);
  color: #111111;
}

.btn-primary:hover {
  background: #f39a58;
}

.btn-ghost {
  background: #ffffff;
}

.btn-block {
  width: 100%;
}

/* =========================
   Sections
========================= */
.section {
  padding: 76px 0;
}

.section-alt {
  background: var(--bg-alt);
  border-top: 1px solid rgba(15, 23, 42, 0.06);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.section-head {
  max-width: 760px;
  margin-bottom: 28px;
}

.section-head .kicker {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 18px;
}

/* =========================
   Hero
========================= */
.hero {
  position: relative;
  padding: 60px 0 52px;
  overflow: clip;
  background: var(--bg);
}


/* Fade the grid out at the bottom */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: var(--hero-grid-alpha);
  background-image: linear-gradient(to right, var(--hero-grid-subline) 1px, transparent 1px),
    linear-gradient(to bottom, var(--hero-grid-subline) 1px, transparent 1px),
    linear-gradient(to right, var(--hero-grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--hero-grid-line) 1px, transparent 1px);
  background-size: calc(var(--hero-grid-size) / 2) calc(var(--hero-grid-size) / 2),
    calc(var(--hero-grid-size) / 2) calc(var(--hero-grid-size) / 2),
    var(--hero-grid-size) var(--hero-grid-size),
    var(--hero-grid-size) var(--hero-grid-size);
  background-color: transparent;
  filter: saturate(1.02);
  -webkit-mask-image: linear-gradient(
    to bottom,
    rgba(0,0,0,1) 0%,
    rgba(0,0,0,0.8) 75%,
    rgba(0,0,0,0.4) 85%,
    rgba(0,0,0,0) 95%
  );
  mask-image: linear-gradient(
    to bottom,
    rgba(0,0,0,1) 0%,
    rgba(0,0,0,0.8) 75%,
    rgba(0,0,0,0.4) 85%,
    rgba(0,0,0,0) 95%
  );
}


/* Warm spotlight */
.hero::after {
  content: "";
  position: absolute;
  inset: -10%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(900px 360px at 20% 20%, rgba(242, 140, 69, 0.14), rgba(242, 140, 69, 0) 60%),
    radial-gradient(900px 420px at 78% 12%, rgba(247, 143, 162, 0.12), rgba(247, 143, 162, 0) 62%);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.2fr 0.9fr;
  gap: 28px;
  align-items: start;
}

.eyebrow {
  font-weight: 750;
  color: #475569;
  margin-bottom: 10px;
}

.hero h1 {
  font-size: clamp(42px, 5.2vw, 64px);
  line-height: 1.02;
  margin-bottom: 16px;
}

.accent {
  color: var(--brand-primary);
}

.lead {
  font-size: 18px;
  color: #334155;
}

.cta-row {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 16px;
}

/* Opaque surfaces for any outlined element in hero */
.hero .btn,
.hero .card,
.hero .hero-side,
.hero .hero-mini,
.hero .schedule-card {
  background: var(--surface);
}

/* Right-side card */
.hero-side {
  border-radius: var(--r-lg);
  border: 1px solid var(--outline);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  padding: 22px;
}

.hero-side h3 {
  font-size: 22px;
  margin-bottom: 10px;
}

.hero-side ul {
  margin: 12px 0 18px;
  padding-left: 18px;
  color: #334155;
}

.hero-side li {
  margin: 10px 0;
}

.fine {
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
}

.hero-mini-row {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.hero-mini {
  border: 1px solid var(--outline);
  background: var(--surface);
  border-radius: 14px;
  padding: 14px;
  box-shadow: var(--shadow-sm);
}

.hero-mini strong {
  display: block;
  font-size: 16px;
  margin-bottom: 6px;
}

.hero-mini span {
  color: var(--muted);
  font-size: 14px;
}

/* =========================
   Grids / Cards
========================= */
.grid {
  display: grid;
  gap: 16px;
}

.grid.services {
  grid-template-columns: repeat(2, 1fr);
}

.card {
  border: 1px solid var(--outline);
  border-radius: var(--r-lg);
  background: var(--surface-2);
  box-shadow: var(--shadow-sm);
  padding: 22px;
}

.card h3 {
  margin-bottom: 8px;
}

.card p {
  margin-bottom: 12px;
  color: #334155;
}

/* Service cards with left accent bars */


/* =========================
   Lens
========================= */
.lens {
  padding-top: 34px;
}

.lens-tabs {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 14px 0 18px;
}

.lens-tabs .pill-btn {
  border: 1px solid var(--outline);
  background: var(--surface);
  border-radius: 999px;
  padding: 10px 14px;
  font-weight: 750;
  color: #334155;
  box-shadow: var(--shadow-sm);
}

.lens-tabs .pill-btn[aria-selected="true"] {
  border-color: rgba(242, 140, 69, 0.45);
  background: rgba(242, 140, 69, 0.10);
}

.lens-panels {
  display: grid;
  gap: 14px;
}

.lens-panel .card {
  background: var(--surface);
}

/* =========================
   Proof
========================= */
.grid.proof {
  grid-template-columns: repeat(2, 1fr);
}


.proof-item strong {
  display: block;
  margin-bottom: 6px;
}

/* =========================
   Process (steps list)
========================= */
.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 14px;
}

.steps li {
  display: grid;
  grid-template-columns: 62px 1fr;
  gap: 16px;
  align-items: start;
  padding: 18px;
  border: 1px solid var(--outline);
  background: var(--surface);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
}

.step-num {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-weight: 900;
  background: rgba(247, 143, 162, 0.14);
  border: 1px solid rgba(247, 143, 162, 0.35);
  color: #111111;
}

.step-body h3 {
  margin-bottom: 6px;
}

.step-body p {
  margin: 0;
  color: #334155;
}

/* =========================
   About
========================= */
.about-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 20px;
  align-items: start;
}

.about-lead {
  font-size: 18px;
  color: #334155;
}

.about-card {
  border: 1px solid var(--outline);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.about-card-inner {
  padding: 18px;
}

.ticks {
  margin: 12px 0 0;
  padding-left: 18px;
  color: #334155;
}

.ticks li {
  margin: 8px 0;
}

.about-note {
  margin-top: 14px;
  color: var(--muted);
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--outline);
  background: var(--surface);
  font-weight: 750;
  color: #334155;
  box-shadow: var(--shadow-sm);
  margin-right: 10px;
  margin-top: 10px;
}

/* =========================
   Contact
========================= */
.section.contact {
  background: var(--bg);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 22px;
}

.contact-lead {
  font-size: 18px;
  color: #334155;
}

.contact-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 14px;
}

.contact-card {
  border: 1px solid var(--outline);
  background: var(--surface);
  border-radius: 16px;
  padding: 14px;
  box-shadow: var(--shadow-sm);
}

.cc-k {
  font-size: 12px;
  letter-spacing: 0.08em;
  font-weight: 850;
  color: #64748b;
}

.cc-v {
  margin-top: 6px;
  font-weight: 750;
  color: #111111;
}

.schedule-card {
  border: 1px solid var(--outline);
  background: var(--surface);
  border-radius: var(--r-lg);
  padding: 16px;
  box-shadow: var(--shadow-sm);
  margin-top: 14px;
}

.form {
  border: 1px solid var(--outline);
  background: var(--surface);
  border-radius: var(--r-lg);
  padding: 18px;
  box-shadow: var(--shadow-sm);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.field {
  display: grid;
  gap: 8px;
}

.field label {
  font-weight: 750;
  color: #334155;
}

.field input,
.field textarea {
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.14);
  padding: 12px 12px;
  font: inherit;
  background: #fff;
  color: var(--text);
}

.field textarea {
  min-height: 110px;
  resize: vertical;
}

.field--full {
  grid-column: 1 / -1;
}

.form-actions {
  margin-top: 12px;
}

.form-note {
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
}

.contact-panel {
  border: 1px solid var(--outline);
  background: var(--surface);
  border-radius: var(--r-lg);
  padding: 18px;
  box-shadow: var(--shadow-sm);
}

.contact-panel__note {
  margin-top: 12px;
  color: var(--muted);
}

/* =========================
   Mascot
========================= */
.mascot-section {
  padding: 52px 0;
  background: var(--bg-alt);
  border-top: 1px solid rgba(15, 23, 42, 0.06);
}

.mascot-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
}

.mascot-wrap img {
  max-width: 420px;
  height: auto;
}

/* =========================
   Footer
========================= */
.footer {
  padding: 30px 0;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  background: #ffffff;
}

.footer-inner {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
}

.footer-brand {
  font-weight: 850;
}

.footer-sub {
  color: var(--muted);
  font-size: 13px;
  margin-top: 6px;
}

.footer-right {
  display: flex;
  gap: 12px;
  color: #334155;
}

/* =========================
   Responsive
========================= */


/* =========================
   PROCESS (Pills + Accordion)
   ========================= */

.process-flow {
  /* Adaptive connectors: the 1fr columns absorb leftover space, so spacing stays even
     regardless of pill width. */
  --pf-gap: 22px;
  --pf-pill-border: 2px;
  --pf-line-h: 2px;
  --pf-line-alpha: 0.35;

  display: grid;
  grid-template-columns: auto 1fr auto 1fr auto 1fr auto 1fr auto;
  align-items: start;
  gap: 0;
  margin: 26px 0 26px;
}

.process-pill {
  display: grid;
  justify-items: center;
  gap: 10px;
  min-width: 0;
}


.process-pill .pill-sub {
  font-size: 14px;
  letter-spacing: 0.08em;
  font-weight: 900;
  color: var(--brand-primary);
  text-align: center;
  white-space: nowrap;
}

/* Connector: elastic between pills */
.process-connector {
  height: 46px; /* match chip */
  display: flex;
  align-items: center; /* vertical center */
  justify-content: center;
  padding: 0 var(--pf-gap);
}

.process-connector::before {
  content: "";
  display: block;
  width: 100%;
  height: 1px;
  border-radius: 999px;
  background: rgba(242, 140, 69, 0.35); /* primary family */
}

/* Responsive */


/* ==========================================
   PROCESS — Static steps (no accordion)
   Tight, executive, screenshot-aligned
========================================== */

.process-static{
  list-style:none;
  padding:0;
  margin: 28px 0 0;
  display:grid;
  gap: 18px;
}

.process-static__item{
  display:grid;
  grid-template-columns: 78px 1fr;
  gap: 18px;
  align-items:center;

  background: var(--surface);
  border: 1px solid var(--outline);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);

  padding: 18px 22px;
}

.process-static__num{
  width: 64px;
  height: 64px;
  border-radius: 18px;

  display:grid;
  place-items:center;

  font-weight: 900;
  letter-spacing: 0.02em;
  color: var(--text);

  /* warm coral family, contrast-safe with dark text */
  background: rgba(247, 143, 162, 0.14);
  border: 1px solid rgba(247, 143, 162, 0.35);
}

.process-static__body{
  min-width: 0;
}


.process-static__copy{
  margin: 0;
  color: var(--text-2);
  line-height: 1.55;
  max-width: 88ch;
  text-wrap: pretty;
}

/* Tighten vertical rhythm inside Process section only */
#process .section-head{ margin-bottom: 20px; }

/* Responsive: keep the number tile above-left on small screens */


/* ==========================================
   PATCH — Hierarchy separation (pills vs. detail)
   Purpose: reduce perceived repetition without changing structure.
========================================== */
.process-pill .pill-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 999px;
  background: rgba(242, 140, 69, 0.10);
  border: 1px solid rgba(242, 140, 69, 0.35);
  color: #334155;
  font-weight: 750;
  box-shadow: var(--shadow-sm);
  min-height: 46px;
  white-space: nowrap;
}

.process-static__title {
  margin: 0 0 6px;
  font-size: 22px;
  line-height: 1.18;
  letter-spacing: -0.012em;
  font-weight: 850;
}


/* =========================
   Services (4-card grid, tight)
   Contract:
   - container .services-grid
   - cards: .service-card[data-accent="primary|pink|teal|slate"]
   - left accent bar is saturated brand color (no grayscale)
========================= */

.services-grid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}


/* Accent mapping */
.service-card[data-accent="primary"]::before{ background: var(--brand-primary); }
.service-card[data-accent="pink"]::before {
  background: var(--brand-secondary);
}

.service-card[data-accent="teal"]::before {
  background: var(--brand-teal);
}

.service-card[data-accent="slate"]::before {
  background: var(--brand-slate);
}


.service-card h3{
  margin: 0 0 10px;
  font-size: 22px;
  line-height: 1.15;
  letter-spacing: -0.012em;
}

.service-card p{
  margin: 0 0 12px;
  color: #334155;
}

.service-card ul {
  margin: 0;
  padding-left: 18px;
  color: #334155;
}


.service-card li {
  margin: 8px 0;
}


/* Keep it tight on smaller widths */
@media (max-width: 980px) {
.hero-grid {
    grid-template-columns: 1fr;
  }.hero-mini-row {
    grid-template-columns: 1fr;
  }.grid.services,
  .grid.proof {
    grid-template-columns: 1fr;
  }.about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }.contact-cards {
    grid-template-columns: 1fr;
  }.form-grid {
    grid-template-columns: 1fr;
  }.process-flow {
    grid-template-columns: 1fr;
    gap: 10px;
  }.process-connector {
    display: none;
  }.process-pill {
    justify-items: start;
  }.process-pill .pill-sub {
    text-align: left;
  }.process-static__item{
    grid-template-columns: 64px 1fr;
    padding: 16px 18px;
    gap: 14px;
  }.process-static__num{
    width: 56px;
    height: 56px;
    border-radius: 16px;
  }.process-static__title{
    font-size: 20px;
  }.services-grid{
    grid-template-columns: 1fr;
    gap: 14px;
  }.service-card{
    padding: 18px 18px 16px;
  }.service-card h3{
    font-size: 20px;
  }}


/* =========================================
   SERVICES – Color Bar Mapping (Definitive)
   Order:
   UL  = Orange
   UR  = Teal
   LL  = Slate
   LR  = Pink
========================================= */


/* Base left bar */


/* Upper Left – Application Design */


/* Upper Right – Applied AI */


/* Lower Left – Operational Automation */


/* Lower Right – Dataverse & Architecture */


/* =========================================
   SERVICES – Final Color Authority Mapping
========================================= */


/* Upper Left – Application Design */


/* Upper Right – Applied AI */


/* Lower Left – Operational Automation */


/* Lower Right – Dataverse & Architecture */


/* =========================================
   PROOF – add structure + brand signal (no layout change)
========================================= */

#proof .proof-grid .proof-card{
  position: relative;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--outline);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
}

#proof .proof-grid .proof-card::before{
  content:"";
  position:absolute;
  left:0; top:0; bottom:0;
  width:6px;
  border-radius: var(--r-lg) 0 0 var(--r-lg);
  background: var(--brand-primary);
}

/* assign accents by position (keeps HTML untouched) */
#proof .proof-grid .proof-card:nth-child(1)::before{ background: var(--brand-primary); }
#proof .proof-grid .proof-card:nth-child(2)::before{ background: var(--brand-teal); }
#proof .proof-grid .proof-card:nth-child(3)::before{ background: var(--brand-slate); }
#proof .proof-grid .proof-card:nth-child(4)::before{ background: var(--brand-secondary); }

/* tighten hierarchy */
#proof .proof-grid .proof-card h3{
  letter-spacing: -0.012em;
  line-height: 1.15;
}

#proof .proof-grid .proof-card p{
  color: var(--text-2);
}

/* Lead proof item */
.proof-item--lead {
  grid-column: 1 / -1;
  padding-bottom: 2rem;
  border-bottom: 2px solid var(--brand-primary);
}

/* =========================================
   PROOF – 2x2 Structured Grid Upgrade
========================================= */


.proof-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 2.5rem;
}

.proof-item {
  border: 1px solid var(--outline);
  border-radius: var(--r-lg);
  background: var(--surface);
  padding: 1.5rem 1.75rem;
  box-shadow: var(--shadow-sm);
}


.proof-item h3 {
  margin-bottom: 0.75rem;
  font-size: 1.2rem;
  letter-spacing: -0.01em;
}

.proof-item ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.proof-item li {
  position: relative;
  padding-left: 1.2rem;
  margin-bottom: 0.4rem;
  color: var(--text-2);
}

.proof-item li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--brand-primary);
  font-weight: 600;
}

.proof-closing {
  margin-top: 3rem;
  font-weight: 600;
  font-size: 1.1rem;
  text-align: center;
  letter-spacing: -0.01em;
}

/* =========================================
   PROOF – make it distinct from Services
========================================= */

#proof {
  padding-top: 4.5rem;
  padding-bottom: 4.5rem;
  background: var(--surface-2);
  border: 1px solid var(--outline);
  border-left: 6px solid var(--brand-primary);
  border-right: 6px solid var(--brand-primary);
  border-radius: var(--r-lg);
  padding: 3.25rem 0;
}


#proof .proof-item{
  box-shadow: none;           /* stop looking like Services */
  background: var(--surface); /* still clean */
}

/* =========================================
   SERVICES – Accent bar corner discipline
   Goal: match Proof section band corner quality
========================================= */

/* Ensure the card is the clipping mask */


/* Make the bar a full-height inset that gets clipped by the card */


/* Color mapping (keep whatever mapping you chose) */
.service-card--primary::before {
  background: var(--brand-primary);
}

.service-card--secondary::before {
  background: var(--brand-secondary);
}

.service-card--teal::before {
  background: var(--brand-teal);
}

.service-card--slate::before {
  background: var(--brand-slate);
}


/* =========================================
   SERVICES – Corner treatment to match Proof
   Goal: unify bar + card into one clipped radius
========================================= */

#services .service-card{
  position: relative;
  overflow: hidden;            /* the mask */
  border-radius: var(--r-lg);  /* same radius system */
  background-clip: padding-box;
}

/* Make the bar a simple rectangle; let the card clip the curve */
#services .service-card::before{
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 8px;
  border-radius: 0;            /* IMPORTANT: no self-rounding */
}

/* Keep your per-card colors (match your classes) */
#services .service-card--primary::before   { background: var(--brand-primary); }
#services .service-card--secondary::before { background: var(--brand-secondary); }
#services .service-card--teal::before      { background: var(--brand-teal); }
#services .service-card--slate::before     { background: var(--brand-slate); }

/* =========================
   PATCH — Services: Proof-style integrated accent band (class-based)
   Fixes:
   - Full-height bar (no inset / no pill ends)
   - Bar corners match card radius (Proof-style)
   - Color mapping uses existing .service-card--* classes (not data-accent)
========================= */

.services-grid .service-card{
  position: relative;
  overflow: hidden; /* required so band clips cleanly into card corners */
  padding-left: 26px; /* room for the stronger band */
}

/* Default band geometry (Proof-style corner integration) */
.services-grid .service-card::before{
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;

  width: 8px; /* strong, executive */
  background: var(--brand-primary);

  /* integrate into card curvature */
  border-top-left-radius: var(--r-lg);
  border-bottom-left-radius: var(--r-lg);
}

/* Color mapping — matches your HTML */
.services-grid .service-card.service-card--primary::before{
  background: var(--brand-primary);
}

.services-grid .service-card.service-card--secondary::before{
  background: var(--brand-secondary);
}

.services-grid .service-card.service-card--teal::before{
  background: var(--brand-teal);
}

.services-grid .service-card.service-card--slate::before{
  background: var(--brand-slate);
}

/* ==========================================================
   SERVICES — Canonical left-band corner treatment (Authoritative)
   Intent:
   - Band is included in the card radius (matches Proof section corner treatment)
   - Band runs full height (no inset pill ends)
========================================================== */

.service-card {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--surface-2);
  border: 1px solid var(--outline);
  box-shadow: var(--shadow-sm);
  padding: 20px 22px 18px 26px;
}


/* ==========================================================
   NerdStrong Website — Patch 0.01.003
   Services corner treatment: match Proof (accent band clipped by card radius)
   Notes:
   - Remove radius on ::before so parent overflow:hidden performs the clipping.
   ========================================================== */

.service-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 8px;
  border-radius: 0;
  background: var(--brand-primary);
  border-top-left-radius: var(--r-lg);
  border-bottom-left-radius: var(--r-lg);
}

/* ==========================================================
   PATCH — Proof section horizontal breathing room
   Goal: Pull accent edge lines 50px in from viewport edge
   Scope: #proof only
========================================================== */

#proof{
  margin-left: 50px;
  margin-right: 50px;
}

/* Maintain responsiveness on small screens */
@media (max-width: 768px){
  #proof{
    margin-left: 20px;
    margin-right: 20px;
  }
}

/* ==========================================================
   PROCESS — Deterministic connector geometry (authoritative)
   Contract:
   1) gap measured from pill chip edge, not pill-sub text
   2) gap is 30px on both sides of every line
   3) every line same length
========================================================== */

#process .process-flow{
  --pf-gap: 30px;
  --pf-line-w: 64px; /* fine tune this number */
  --pf-conn-w: calc(var(--pf-line-w) + (2 * var(--pf-gap)));

  display: grid;
  align-items: start;

  grid-template-columns:
    max-content var(--pf-conn-w)
    max-content var(--pf-conn-w)
    max-content var(--pf-conn-w)
    max-content var(--pf-conn-w)
    max-content;

  column-gap: 0;
  margin: 26px 0;
}

/* Pill column width is defined only by the chip */
#process .process-pill{
  position: relative;
  width: max-content;
  display: grid;
  justify-items: center;

  /* reserve vertical space for the sublabel that is now absolute */
  padding-bottom: 44px;
}

#process .process-pill .pill-chip{
  justify-self: center;
}

/* Sublabel does not affect layout width */
#process .process-pill .pill-sub{
  position: absolute;
  left: 50%;
  top: calc(100% - 34px);
  transform: translateX(-50%);

  width: max-content;
  white-space: nowrap;
  text-align: center;
}

/* Connector cell, fixed width, line centered */
#process .process-connector{
  width: var(--pf-conn-w);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

#process .process-connector::before{
  content: "";
  display: block;
  width: var(--pf-line-w);
  height: 2px;
  background: rgba(242,140,69,0.35);
  border-radius: 999px;
}

/* Mobile behavior */
@media (max-width: 980px){
  #process .process-flow{
    grid-template-columns: 1fr;
    gap: 10px;
  }

  #process .process-connector{
    display: none;
  }

  #process .process-pill{
    justify-items: start;
    padding-bottom: 0;
  }

  #process .process-pill .pill-sub{
    position: static;
    left: auto;
    top: auto;
    transform: none;
    width: auto;
    white-space: normal;
    text-align: left;
  }
}

/* HERO — remove inline style dependency */
#hero .card .lead + .eyebrow{
  margin-top: 1rem;
}

/* ==========================================================
   BUTTON GOVERNANCE — Authoritative
========================================================== */

/* 1. Commitment Button */
.btn-commit{
  background: var(--brand-primary);
  border: 1px solid rgba(0,0,0,0.12);
  color: #111111;
}

.btn-commit:hover{
  background: #f39a58;
}

/* 2. Structural Button */
.btn-struct{
  background: var(--surface);
  border: 1px solid var(--brand-slate);
  color: var(--brand-slate);
}

.btn-struct:hover{
  background: rgba(30,41,59,0.06);
}

/* ==========================================================
   PROJECTS — publish anchor
   Scope: #projects only
========================================================== */

#projects .project-card{
  position: relative;
  border: 1px solid var(--outline);
  border-radius: var(--r-lg);
  background: rgba(255,255,255,0.92);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

/* Accent band, clipped by card radius */
#projects .project-card::before{
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 8px;
  background: var(--brand-primary);
}

#projects .project-summary{
  list-style: none;
  cursor: pointer;
  padding: 20px 22px 18px 26px;
  display: grid;
  grid-template-columns: 1.25fr 0.85fr;
  gap: 18px;
  align-items: start;
}

#projects .project-summary::-webkit-details-marker{ display:none; }

#projects .project-badge{
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 10px;
  font-weight: 900;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid var(--outline);
  background: var(--surface);
  color: var(--text-2);
  margin-bottom: 10px;
}

#projects .project-title{
  margin: 0 0 8px;
  font-size: 26px;
  line-height: 1.15;
  letter-spacing: -0.012em;
}

#projects .project-sub{
  margin: 0 0 10px;
  color: var(--text-2);
  max-width: 80ch;
}

#projects .project-summary__right{
  display: grid;
  gap: 10px;
  justify-items: end;
  align-content: start;
}

#projects .project-metric{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 12px;
  border-radius: 12px;
  font-weight: 900;
  font-size: 13px;
  border: 1px solid var(--outline);
  background: var(--surface);
  color: var(--text-2);
  box-shadow: var(--shadow-sm);
  white-space: nowrap;
}

#projects .metric--primary{
  border-color: rgba(242,140,69,0.35);
  background: rgba(242,140,69,0.10);
}

#projects .metric--pink{
  border-color: rgba(247,143,162,0.35);
  background: rgba(247,143,162,0.10);
}

#projects .metric--teal{
  border-color: rgba(31,95,115,0.35);
  background: rgba(31,95,115,0.08);
}

#projects .metric--slate{
  border-color: rgba(30,41,59,0.28);
  background: rgba(30,41,59,0.06);
}

#projects .project-body{
  border-top: 1px solid rgba(15,23,42,0.06);
  padding: 18px 22px 22px 26px;
}

#projects .project-grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

#projects .project-block{
  border: 1px solid var(--outline);
  border-radius: 16px;
  background: var(--surface);
  padding: 16px;
}

#projects .project-block h4{
  margin: 0 0 10px;
  font-size: 16px;
  letter-spacing: -0.01em;
}

#projects .project-block ul{
  margin: 0;
  padding-left: 18px;
  color: var(--text-2);
}

#projects .project-block li{
  margin: 8px 0;
}

#projects .project-block--wide{
  grid-column: 1 / -1;
}

#projects .impact-grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 10px;
}

#projects .impact-item{
  border: 1px solid rgba(15,23,42,0.10);
  border-radius: 14px;
  padding: 12px;
  background: #ffffff;
}

#projects .impact-k{
  font-size: 12px;
  letter-spacing: 0.08em;
  font-weight: 900;
  color: var(--muted);
  text-transform: uppercase;
}

#projects .impact-v{
  margin-top: 6px;
  font-weight: 900;
  color: #111111;
}

#projects .project-note{
  margin: 14px 0 0;
  color: var(--muted);
}

/* Responsive */
@media (max-width: 980px){
  #projects .project-summary{
    grid-template-columns: 1fr;
  }

  #projects .project-summary__right{
    justify-items: start;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #projects .impact-grid{
    grid-template-columns: 1fr;
  }
}

/* ==========================================================
   EMOTION COLOR MAPPING — OFF BY DEFAULT
   Purpose: map meaning -> color without changing brand tokens.
   Enable by adding: <html data-emotion="on">
========================================================== */

:root[data-emotion="on"]{
  /* Meaning tokens */
  --c-action: var(--brand-primary);     /* Tangerine: forward motion, commitment */
  --c-warmth: var(--brand-secondary);   /* Coral: human warmth, approachability */
  --c-trust: var(--brand-teal);         /* Teal: trust, calm, stability */
  --c-authority: var(--brand-slate);    /* Slate: control, structure, authority */

  /* Default component routing */
  --btn-cta-bg: var(--c-action);
  --btn-cta-hover: #f39a58;
  --chip-structure: var(--c-authority);
  --accent-trust: var(--c-trust);
  --accent-warmth: var(--c-warmth);
}

/* CTA buttons should always use action */
:root[data-emotion="on"] .btn.btn-primary,
:root[data-emotion="on"] .btn-primary{
  background: var(--btn-cta-bg);
  border-color: rgba(0,0,0,0.12);
  color: #111111;
}
:root[data-emotion="on"] .btn.btn-primary:hover,
:root[data-emotion="on"] .btn-primary:hover{
  background: var(--btn-cta-hover);
}

/* Trust accents, use where the intent is reassurance */
:root[data-emotion="on"] .ticks li::before{
  color: var(--accent-trust);
}

/* Authority accents, use for structural chips, marks, and control surfaces */
:root[data-emotion="on"] .brand-mark{
  background: var(--c-authority);
}

/* Warmth accents, for human-facing highlights when appropriate */
:root[data-emotion="on"] .hero-copy .accent{
  background: linear-gradient(90deg, var(--c-action), var(--c-warmth));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ==========================================================
   BUTTON GOVERNANCE — EMOTION ROUTING
========================================================== */

/* Inquiry / Commitment — Forward Motion */
.btn--inquiry{
  background: var(--brand-primary); /* Tangerine */
  color: #111111;
  border: 1px solid rgba(0,0,0,0.12);
}
.btn--inquiry:hover{
  background: #f39a58;
}

/* Decision / Structural Action — Authority */
.btn--decision{
  background: var(--brand-slate); /* Deep Slate Navy */
  color: #ffffff;
  border: 1px solid rgba(0,0,0,0.12);
}
.btn--decision:hover{
  background: #263346;
}

/* Ghost structural */
.btn--decision.btn-ghost{
  background: transparent;
  color: var(--brand-slate);
  border: 1px solid var(--brand-slate);
}

/* ==========================================================
   BUTTON GOVERNANCE — emotion mapping
========================================================== */

.btn--inquiry{
  background: var(--brand-primary); /* Tangerine */
  color: #111111;
  border: 1px solid rgba(0,0,0,0.12);
}
.btn--inquiry:hover{
  background: #f39a58;
}

.btn--decision{
  background: var(--brand-slate); /* Slate */
  color: #ffffff;
  border: 1px solid rgba(0,0,0,0.12);
}
.btn--decision:hover{
  background: #263346;
}

/* Slate ghost variant for decision / evaluation buttons */
.btn--decision.btn-ghost{
  background: transparent;
  color: var(--brand-slate);
  border: 1px solid rgba(30,41,59,0.34);
}
.btn--decision.btn-ghost:hover{
  background: rgba(30,41,59,0.06);
}

/* ==========================================================
   PROJECTS — publish anchor
   Scope: #projects only
========================================================== */

#projects .project-card{
  position: relative;
  border: 1px solid var(--outline);
  border-radius: var(--r-lg);
  background: rgba(255,255,255,0.92);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

/* Accent band clipped by card radius */
#projects .project-card::before{
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 8px;
  background: var(--brand-slate);
}

#projects .project-summary{
  padding: 20px 22px 18px 26px;
  display: grid;
  grid-template-columns: 1.25fr 0.85fr;
  gap: 18px;
  align-items: start;
}

#projects .project-badge{
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 10px;
  font-weight: 900;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid var(--outline);
  background: var(--surface);
  color: var(--text-2);
  margin-bottom: 10px;
}

#projects .project-title{
  margin: 0 0 8px;
  font-size: 26px;
  line-height: 1.15;
  letter-spacing: -0.012em;
}

#projects .project-sub{
  margin: 0 0 10px;
  color: var(--text-2);
  max-width: 80ch;
}

#projects .project-summary__right{
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-end;
  justify-content: flex-start;
}

#projects .project-metric{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 12px;
  border-radius: 12px;
  font-weight: 900;
  font-size: 13px;
  border: 1px solid var(--outline);
  background: var(--surface);
  color: var(--text-2);
  box-shadow: var(--shadow-sm);
  white-space: nowrap;
}

#projects .metric--primary{ border-color: rgba(242,140,69,0.35); background: rgba(242,140,69,0.10); }
#projects .metric--pink{ border-color: rgba(247,143,162,0.35); background: rgba(247,143,162,0.10); }
#projects .metric--teal{ border-color: rgba(31,95,115,0.35); background: rgba(31,95,115,0.08); }
#projects .metric--slate{ border-color: rgba(30,41,59,0.28); background: rgba(30,41,59,0.06); }

#projects .project-toggle{
  margin-top: 6px;
  width: 100%;
  max-width: 220px;
}

#projects .project-body{
  border-top: 1px solid rgba(15,23,42,0.06);
  padding: 18px 22px 22px 26px;
}

#projects .project-grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

#projects .project-block{
  border: 1px solid var(--outline);
  border-radius: 16px;
  background: var(--surface);
  padding: 16px;
}

#projects .project-block h4{
  margin: 0 0 10px;
  font-size: 16px;
  letter-spacing: -0.01em;
}

#projects .project-block ul{
  margin: 0;
  padding-left: 18px;
  color: var(--text-2);
}

#projects .project-block li{ margin: 8px 0; }

#projects .project-block--wide{ grid-column: 1 / -1; }

#projects .impact-grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 10px;
}

#projects .impact-item{
  border: 1px solid rgba(15,23,42,0.10);
  border-radius: 14px;
  padding: 12px;
  background: #ffffff;
}

#projects .impact-k{
  font-size: 12px;
  letter-spacing: 0.08em;
  font-weight: 900;
  color: var(--muted);
  text-transform: uppercase;
}

#projects .impact-v{
  margin-top: 6px;
  font-weight: 900;
  color: #111111;
}

#projects .project-note{
  margin: 14px 0 0;
  color: var(--muted);
}

/* Responsive */
@media (max-width: 980px){
  #projects .project-summary{
    grid-template-columns: 1fr;
  }
  #projects .project-summary__right{
    align-items: flex-start;
  }
  #projects .impact-grid{
    grid-template-columns: 1fr;
  }
}

/* ==========================================================
   NAV — Mobile menu (authoritative)
   Fixes:
   - Do NOT hide .nav on mobile
   - Show .nav-toggle on mobile
   - Collapse .nav-menu until .is-open
========================================================== */

/* a11y helper */
.sr-only{
  position:absolute;
  width:1px; height:1px;
  padding:0; margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0;
}

/* Desktop defaults */
.nav-toggle{ display:none; }

.nav-menu{
  display:flex;
  align-items:center;
  gap: 10px;
}

/* Simple hamburger */
.hamburger{
  width: 18px;
  height: 2px;
  background: rgba(15,23,42,0.65);
  position: relative;
  border-radius: 99px;
}
.hamburger::before,
.hamburger::after{
  content:"";
  position:absolute;
  left:0;
  width: 18px;
  height: 2px;
  background: rgba(15,23,42,0.65);
  border-radius: 99px;
}
.hamburger::before{ top: -6px; }
.hamburger::after{ top: 6px; }

/* Mobile */
@media (max-width: 980px){

  /* override your earlier rule that hides the entire nav */
  .nav{ display:flex; }

  .nav-toggle{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid var(--outline);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
    cursor:pointer;
  }

  /* collapse menu by default */
  .nav-menu{
    display:none;
    position:absolute;
    right: 0;
    top: calc(100% + 10px);
    min-width: 220px;
    padding: 10px;
    border-radius: 14px;
    border: 1px solid var(--outline);
    background: var(--surface);
    box-shadow: var(--shadow-md);
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    z-index: 60;
  }

  /* anchor dropdown to nav container */
  .nav{ position: relative; }

  .nav-menu a{
    padding: 10px 12px;
    border-radius: 12px;
  }

  .nav-menu.is-open{ display:flex; }
}

#projects .project-card::before{
  background: var(--brand-slate);
}