/* ============================================================
 * HOME REDESIGN — editorial evergreen + lime, light & dark
 * Loaded only on / (resumes#home) via content_for :stylesheets and
 * scoped to body.home-root, so /portfolio, /resume and
 * /projects/buck-workflow are untouched.
 *
 * Direction (DESIGN_PRD.md + config/design-brief.jsonc):
 *   - typography-forward: Newsreader display, Hanken Grotesk body,
 *     JetBrains Mono for small labels (fonts already loaded by layout)
 *   - warm paper canvas, deep evergreen ink, electric lime used
 *     sparingly and only behind dark text
 *   - follows the visitor's system light/dark preference
 *   - WCAG AA contrast in both themes, 44px tap targets, visible focus
 * ============================================================ */

body.home-root {
  --rd-bg:        #FBFAF6;
  --rd-surface:   #FFFFFF;
  --rd-tint:      #F1F4EE;
  --rd-ink:       #0E1F1B;
  --rd-ink-soft:  #34453F;
  --rd-ink-mute:  #4B5A55;   /* 7.0:1 on --rd-bg; AA over the veiled canvas */
  --rd-line:      rgba(14, 31, 27, 0.10);
  --rd-line-hi:   rgba(14, 31, 27, 0.18);
  --rd-brand:     #0A3029;   /* evergreen */
  --rd-brand-2:   #075D49;
  --rd-accent:    #0A5F49;   /* accent text on light, 7.4:1 */
  --rd-lime:      #DAFF52;
  --rd-lime-hi:   #CBF437;
  --rd-on-lime:   #061F1B;
  --rd-mark:      rgba(218, 255, 82, 0.75);
  --rd-shadow:    0 1px 2px rgba(14, 31, 27, 0.04), 0 12px 32px -18px rgba(14, 31, 27, 0.18);
  --rd-panel:     #0A3029;
  --rd-panel-ink: #F3F6F1;
  --rd-panel-mute:#BFCBC5;
  /* Veils over the animated WebGL canvas (shared/_black_hole).
     Section veil keeps small muted text AA even over the darkest
     comet pixel; the hero veil is lighter because its text is
     ink / ink-soft (or sits on opaque chips and cards). */
  --rd-veil:      rgba(251, 250, 246, 0.80);  /* --rd-bg @ 80% */
  --rd-veil-hero: rgba(251, 250, 246, 0.66);
  --rd-veil-tint: rgba(241, 244, 238, 0.84);  /* --rd-tint @ 84% */
  --rd-nav-bg:    rgba(251, 250, 246, 0.84);
  --rd-console:   #0B231E;
  --rd-radius:    18px;
  --rd-radius-sm: 10px;
  --rd-f-display: "Newsreader", Georgia, serif;
  --rd-f-body:    "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --rd-f-mono:    "JetBrains Mono", ui-monospace, Menlo, monospace;

  background: var(--rd-bg);
  color: var(--rd-ink);
  font-family: var(--rd-f-body);
  font-size: 17px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  body.home-root {
    --rd-bg:        #071A16;
    --rd-surface:   #0C2621;
    --rd-tint:      #0A211C;
    --rd-ink:       #F1F5F0;
    --rd-ink-soft:  #CFD9D3;
    --rd-ink-mute:  #A8B7B0;  /* 8.5:1 on --rd-bg */
    --rd-line:      rgba(223, 235, 228, 0.10);
    --rd-line-hi:   rgba(223, 235, 228, 0.20);
    --rd-accent:    #DAFF52;
    --rd-mark:      rgba(218, 255, 82, 0.22);
    --rd-shadow:    0 1px 0 rgba(255, 255, 255, 0.03) inset, 0 18px 40px -24px rgba(0, 0, 0, 0.6);
    --rd-panel:     #0E2E27;
    --rd-console:   #051310;
    --rd-veil:      rgba(7, 26, 22, 0.80);
    --rd-veil-hero: rgba(7, 26, 22, 0.72);
    --rd-veil-tint: rgba(10, 33, 28, 0.86);
    --rd-nav-bg:    rgba(7, 26, 22, 0.84);
    color-scheme: dark;
  }
  body.home-root .hm-nav-cta,
  body.home-root .rd-btn--primary { background: var(--rd-lime); color: var(--rd-on-lime); }
  body.home-root .hm-nav-cta:hover,
  body.home-root .rd-btn--primary:hover { background: #fff; color: var(--rd-on-lime); }
  body.home-root .hm-brand-mark { background: var(--rd-lime); color: var(--rd-on-lime); }
}

body.home-root ::selection { background: var(--rd-lime); color: var(--rd-on-lime); }
body.home-root :focus-visible { outline: 3px solid var(--rd-accent); outline-offset: 3px; border-radius: 4px; }
body.home-root .rd-panel :focus-visible { outline-color: var(--rd-lime); }
body.home-root .hm-skip-link { background: var(--rd-brand); color: #fff; }
body.home-root #main:focus { outline: none; }

.rd { display: block; }
:where(.rd) :where(ul, ol) { list-style: none; margin: 0; padding: 0; }
:where(.rd) :where(p, h1, h2, h3) { margin: 0; }

.rd-wrap { max-width: 1180px; margin: 0 auto; padding: 0 clamp(20px, 5vw, 48px); }

/* ---------- Shared type ---------- */
.rd-kicker {
  display: flex; align-items: center; gap: 10px;
  margin: 0 0 18px; font-family: var(--rd-f-mono); font-size: 12px; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--rd-accent);
}
.rd-kicker::before { content: ""; width: 18px; height: 2px; border-radius: 2px; background: currentColor; }
.rd-kicker--on-dark { color: var(--rd-lime); }

.rd-h2 {
  font-family: var(--rd-f-display); font-weight: 400; letter-spacing: -0.02em;
  font-size: clamp(34px, 4.2vw, 52px); line-height: 1.05; color: var(--rd-ink);
}
.rd-h3 {
  font-family: var(--rd-f-display); font-weight: 400; letter-spacing: -0.01em;
  font-size: clamp(24px, 2.2vw, 28px); line-height: 1.15; color: var(--rd-ink);
}
.rd-h3 em, .rd-h2 em { font-style: italic; color: var(--rd-accent); }
.rd-h4 { font-family: var(--rd-f-body); font-weight: 600; font-size: 18px; line-height: 1.3; letter-spacing: -0.005em; color: var(--rd-ink); }

/* ---------- Buttons & links ---------- */
.rd-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 999px;
  font-family: var(--rd-f-body); font-size: 15px; font-weight: 600; letter-spacing: 0;
  text-decoration: none; white-space: nowrap;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease, transform .15s ease;
}
.rd-btn:hover { transform: translateY(-1px); }
.rd-btn--primary { background: var(--rd-brand); color: #fff; }
.rd-btn--primary:hover { background: var(--rd-brand-2); }
.rd-btn--ghost { border: 1px solid var(--rd-line-hi); color: var(--rd-ink); background: var(--rd-surface); }
.rd-btn--ghost:hover { border-color: var(--rd-ink); }
.rd-btn--lime { background: var(--rd-lime); color: var(--rd-on-lime); }
.rd-btn--lime:hover { background: #fff; color: var(--rd-on-lime); }
.rd-btn--outline { border: 1px solid rgba(243, 246, 241, 0.32); color: var(--rd-panel-ink); }
.rd-btn--outline:hover { border-color: var(--rd-lime); color: var(--rd-lime); }

.rd-link {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px;
  font-weight: 600; font-size: 15px; color: var(--rd-ink); text-decoration: none;
  background-image: linear-gradient(var(--rd-accent), var(--rd-accent));
  background-size: 100% 2px; background-position: 0 calc(100% - 10px); background-repeat: no-repeat;
  transition: color .15s;
}
.rd-link:hover { color: var(--rd-accent); }

/* ---------- Tags ---------- */
.rd-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.rd-tags li {
  font-family: var(--rd-f-mono); font-size: 12px; line-height: 1; letter-spacing: 0.01em;
  padding: 8px 11px; border-radius: 999px;
  background: var(--rd-tint); color: var(--rd-ink-soft); border: 1px solid var(--rd-line);
}
.rd-tags--quiet li { background: transparent; }

/* ---------- Nav (shared partial, restyled for /) ---------- */
body.home-root .hm-nav {
  background: var(--rd-nav-bg);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--rd-line);
}
body.home-root .hm-nav-inner { max-width: 1180px; padding: 12px clamp(20px, 5vw, 48px); }
body.home-root .hm-brand { color: var(--rd-ink); min-height: 44px; }
body.home-root .hm-brand-mark { border-radius: 10px; background: var(--rd-brand); color: var(--rd-lime); }
body.home-root .hm-brand-name { font-family: var(--rd-f-body); font-size: 16px; font-weight: 600; letter-spacing: -0.01em; }
body.home-root .hm-nav-links { font-family: var(--rd-f-body); font-size: 15px; letter-spacing: 0; gap: 6px; }
body.home-root .hm-nav-links a { color: var(--rd-ink-mute); padding: 10px 14px; border-radius: 999px; }
body.home-root .hm-nav-links a:hover,
body.home-root .hm-nav-links a.on { color: var(--rd-ink); background: var(--rd-tint); }
body.home-root .hm-nav-cta {
  font-family: var(--rd-f-body); font-size: 14px; font-weight: 600; letter-spacing: 0;
  background: var(--rd-brand); color: #fff; border-radius: 999px; padding: 12px 18px;
}
body.home-root .hm-nav-cta:hover { background: var(--rd-lime); color: var(--rd-on-lime); }
body.home-root .hm-burger { width: 44px; height: 44px; border-radius: 12px; color: var(--rd-ink); border-color: var(--rd-line-hi); }
body.home-root .hm-drawer { background: var(--rd-bg); border-left-color: var(--rd-line); }
body.home-root .hm-drawer-head { border-bottom-color: var(--rd-line); }
body.home-root .hm-drawer-close { width: 44px; height: 44px; color: var(--rd-ink-mute); }
body.home-root .hm-drawer-nav { font-family: var(--rd-f-body); }
body.home-root .hm-drawer-nav a { font-size: 17px; color: var(--rd-ink-soft); }
body.home-root .hm-drawer-nav a:hover,
body.home-root .hm-drawer-nav a.on { color: var(--rd-ink); background: var(--rd-tint); }
body.home-root .hm-overlay { background: rgba(6, 31, 27, 0.45); }

/* ---------- Hero ---------- */
.rd-hero {
  position: relative; overflow: hidden; isolation: isolate; background: var(--rd-veil-hero);
  padding: clamp(48px, 8vw, 112px) 0 clamp(56px, 7vw, 96px);
}
.rd-hero::before {
  /* thin architectural grid, fading out toward the bottom */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(var(--rd-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--rd-line) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 30% 20%, #000 20%, transparent 75%);
          mask-image: radial-gradient(ellipse 80% 70% at 30% 20%, #000 20%, transparent 75%);
  opacity: .6;
}
.rd-hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(40px, 5vw, 72px); align-items: center; }

.rd-eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 5px 16px 5px 5px; margin-bottom: 28px;
  border: 1px solid var(--rd-line-hi); border-radius: 999px; background: var(--rd-surface);
  font-family: var(--rd-f-mono); font-size: 12px; letter-spacing: 0.06em; color: var(--rd-ink-soft);
}
.rd-eyebrow-headshot { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex: none; }

.rd-h1 {
  font-family: var(--rd-f-display); font-weight: 400;
  font-size: clamp(44px, 6.2vw, 80px); line-height: 1.0; letter-spacing: -0.03em;
  color: var(--rd-ink); margin-bottom: 32px; text-wrap: balance;
}
.rd-h1-mark {
  font-style: italic; white-space: nowrap;
  background-image: linear-gradient(transparent 62%, var(--rd-mark) 62%, var(--rd-mark) 92%, transparent 92%);
  padding: 0 .04em;
}
.rd-h1-brace { font-family: var(--rd-f-mono); font-style: normal; font-weight: 500; font-size: .55em; vertical-align: .16em; color: var(--rd-accent); }

.rd-lead { font-size: clamp(18px, 1.5vw, 20px); line-height: 1.6; color: var(--rd-ink-soft); max-width: 34em; margin-bottom: 28px; text-wrap: pretty; }

.rd-hero-proof { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; }
.rd-hero-proof li {
  font-size: 14px; color: var(--rd-ink-mute);
  padding: 8px 14px; border-radius: 999px; border: 1px solid var(--rd-line); background: var(--rd-surface);
}
.rd-hero-proof strong { color: var(--rd-ink); font-weight: 700; margin-right: 4px; }

.rd-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }
.rd-hero-note { font-size: 14px; color: var(--rd-ink-soft); max-width: 30em; }

/* ---------- Console (illustrative) ---------- */
.rd-console-wrap { position: relative; }
.rd-console {
  border-radius: var(--rd-radius); overflow: hidden; background: var(--rd-console); color: #CFD9D3;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 50px 80px -50px rgba(6, 31, 27, 0.65), 0 0 0 8px color-mix(in srgb, var(--rd-ink) 4%, transparent);
  font-family: var(--rd-f-mono);
}
.rd-console-bar { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid rgba(255, 255, 255, 0.07); }
.rd-console-dots { display: inline-flex; gap: 6px; }
.rd-console-dots i { width: 10px; height: 10px; border-radius: 50%; background: #23413A; }
.rd-console-dots i:first-child { background: var(--rd-lime); }
.rd-console-title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11.5px; color: #8FA39B; letter-spacing: .03em; }
.rd-console-status { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; color: var(--rd-lime); }
.rd-console-status-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--rd-lime); animation: rdPulse 2s ease-out infinite; }

.rd-console-rows { padding: 14px 18px 10px; }
.rd-row { display: flex; align-items: center; gap: 12px; padding: 7px 0; }
.rd-row-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; background: #23413A; transition: background .3s; }
.rd-row-name { width: 96px; flex: none; font-size: 13px; color: #859C94; transition: color .3s; }
.rd-row-track { flex: 1; height: 3px; border-radius: 3px; background: #15302A; }
.rd-row-state { width: 60px; flex: none; text-align: right; font-size: 11px; color: #859C94; }
.rd-row[data-state="running"] .rd-row-dot { background: var(--rd-lime); animation: rdPulse 1.4s ease-out infinite; }
.rd-row[data-state="running"] .rd-row-name { color: #F1F5F0; }
.rd-row[data-state="running"] .rd-row-track {
  background: linear-gradient(90deg, #15302A 0%, var(--rd-lime) 50%, #15302A 100%);
  background-size: 200% 100%; animation: rdShimmer 1.3s linear infinite;
}
.rd-row[data-state="running"] .rd-row-state { color: var(--rd-lime); }
.rd-row[data-state="done"] .rd-row-dot { background: #5FC59B; }
.rd-row[data-state="done"] .rd-row-name { color: #CFD9D3; }
.rd-row[data-state="done"] .rd-row-track { background: #2E7D62; }
.rd-row[data-state="done"] .rd-row-state { color: #5FC59B; }

.rd-console-log-wrap { padding: 12px 18px 16px; border-top: 1px solid rgba(255, 255, 255, 0.07); background: rgba(0, 0, 0, 0.18); }
.rd-console-log { height: 84px; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; font-size: 11.5px; line-height: 1.85; }
.rd-log-line { animation: rdFloatUp .35s ease-out; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rd-log-src { color: #7F978F; }
.rd-log-msg { color: #AFC0B9; }
.rd-log-line--ok .rd-log-msg { color: #5FC59B; }
.rd-console-prompt { font-size: 11.5px; color: var(--rd-lime); margin-top: 2px; }
.rd-console-cursor { display: inline-block; width: 7px; height: 14px; vertical-align: -2px; background: var(--rd-lime); animation: rdBlink 1.1s step-end infinite; }
.rd-console-label { margin-top: 12px; text-align: right; font-family: var(--rd-f-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--rd-ink-soft); }

@keyframes rdPulse { 0% { box-shadow: 0 0 0 0 rgba(218, 255, 82, .55); } 100% { box-shadow: 0 0 0 7px rgba(218, 255, 82, 0); } }
@keyframes rdShimmer { from { background-position: -160% 0; } to { background-position: 260% 0; } }
@keyframes rdBlink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }
@keyframes rdFloatUp { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- Proof ---------- */
.rd-proof { padding: 0 0 clamp(64px, 8vw, 104px); background: var(--rd-veil); }
.rd-proof-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--rd-line); border-radius: var(--rd-radius); background: var(--rd-surface);
  box-shadow: var(--rd-shadow); overflow: hidden;
}
.rd-proof-card { padding: clamp(24px, 3vw, 36px); }
.rd-proof-card + .rd-proof-card { border-left: 1px solid var(--rd-line); }
.rd-proof-num {
  font-family: var(--rd-f-display); font-weight: 400; font-size: clamp(48px, 5.4vw, 68px);
  line-height: 1; letter-spacing: -0.03em; color: var(--rd-ink); margin-bottom: 14px;
}
.rd-proof-num span { color: var(--rd-accent); font-style: italic; }
.rd-proof-text { font-size: 15px; line-height: 1.55; color: var(--rd-ink-mute); max-width: 26em; }
.rd-proof-text strong { color: var(--rd-ink); font-weight: 600; }

/* ---------- Sections ---------- */
.rd-section { padding: clamp(72px, 9vw, 128px) 0; background: var(--rd-veil); }
.rd-section--tint { background: var(--rd-veil-tint); border-block: 1px solid var(--rd-line); }
.rd-section--flush { padding-top: 0; padding-bottom: 0; }
#contact.rd-section { padding-bottom: clamp(48px, 6vw, 80px); }
.rd-proof + .rd-section { padding-top: clamp(16px, 2vw, 32px); }
.rd-section-head { margin-bottom: clamp(32px, 4vw, 52px); }
.rd-section-head--split { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }

/* Services */
.rd-svc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.rd-card {
  background: var(--rd-surface); border: 1px solid var(--rd-line); border-radius: var(--rd-radius);
  box-shadow: var(--rd-shadow); padding: clamp(24px, 2.6vw, 32px);
}
.rd-svc { display: flex; flex-direction: column; gap: 16px; transition: border-color .2s, transform .2s; }
.rd-svc:hover { border-color: var(--rd-line-hi); transform: translateY(-2px); }
.rd-svc p { color: var(--rd-ink-soft); font-size: 16px; line-height: 1.6; flex: 1; }
.rd-svc-num {
  display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px;
  border-radius: 12px; background: var(--rd-lime); color: var(--rd-on-lime);
  font-family: var(--rd-f-mono); font-size: 13px; font-weight: 600;
}

/* Selected work */
.rd-work-list { display: grid; gap: 14px; }
.rd-work {
  display: grid; grid-template-columns: 200px minmax(0, 1fr) 48px; gap: 28px; align-items: start;
  padding: clamp(22px, 2.6vw, 32px); border-radius: var(--rd-radius);
  background: var(--rd-surface); border: 1px solid var(--rd-line); box-shadow: var(--rd-shadow);
  color: inherit; text-decoration: none; transition: border-color .2s, transform .2s;
}
.rd-work:hover { border-color: var(--rd-accent); transform: translateY(-2px); }
.rd-work-meta { font-family: var(--rd-f-mono); font-size: 12px; letter-spacing: .04em; line-height: 1.6; color: var(--rd-ink-mute); padding-top: 8px; }
.rd-work-title { font-family: var(--rd-f-display); font-weight: 400; font-size: clamp(26px, 2.6vw, 32px); line-height: 1.1; letter-spacing: -0.015em; color: var(--rd-ink); margin-bottom: 10px; }
.rd-work-desc { color: var(--rd-ink-soft); max-width: 40em; margin-bottom: 16px; }
.rd-work-arrow {
  display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px;
  border-radius: 50%; border: 1px solid var(--rd-line-hi); color: var(--rd-ink); font-size: 18px;
  transition: background .2s, color .2s, border-color .2s;
}
.rd-work:hover .rd-work-arrow { background: var(--rd-lime); border-color: var(--rd-lime); color: var(--rd-on-lime); }

/* Process */
.rd-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; counter-reset: step; }
.rd-step { position: relative; padding-top: 28px; border-top: 2px solid var(--rd-line-hi); }
.rd-step:first-child { border-top-color: var(--rd-accent); }
.rd-step-num { display: block; font-family: var(--rd-f-mono); font-size: 12px; letter-spacing: .1em; color: var(--rd-ink-mute); margin-bottom: 14px; }
.rd-step:first-child .rd-step-num { color: var(--rd-accent); }
.rd-step .rd-h4 { margin-bottom: 8px; }
.rd-step p { color: var(--rd-ink-soft); font-size: 16px; }

/* Approach & contact panels */
.rd-panel {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--rd-panel); color: var(--rd-panel-ink);
  border-radius: calc(var(--rd-radius) + 6px);
  padding: clamp(36px, 6vw, 80px);
}
.rd-panel::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse at 85% 0%, #000 10%, transparent 65%);
          mask-image: radial-gradient(ellipse at 85% 0%, #000 10%, transparent 65%);
}
.rd-approach-quote {
  font-family: var(--rd-f-display); font-weight: 400; font-size: clamp(30px, 3.8vw, 48px);
  line-height: 1.15; letter-spacing: -0.02em; max-width: 22em; margin-bottom: clamp(36px, 5vw, 60px);
  text-wrap: balance;
}
.rd-approach-quote em { color: var(--rd-lime); }
.rd-approach-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.rd-approach-item { padding-top: 20px; border-top: 1px solid rgba(243, 246, 241, 0.18); }
.rd-approach-item .rd-h4 { color: var(--rd-panel-ink); margin-bottom: 8px; }
.rd-approach-item p { color: var(--rd-panel-mute); font-size: 15.5px; }

/* Experience + toolkit */
.rd-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(48px, 7vw, 96px); }
.rd-timeline { margin-bottom: 20px; border-left: 2px solid var(--rd-line-hi); }
.rd-timeline-item {
  position: relative; display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding: 18px 0 18px 24px;
}
.rd-timeline-item::before {
  content: ""; position: absolute; left: -7px; top: 26px; width: 12px; height: 12px; border-radius: 50%;
  background: var(--rd-bg); border: 2px solid var(--rd-line-hi);
}
.rd-timeline-item:first-child::before { background: var(--rd-lime); border-color: var(--rd-brand); }
.rd-timeline-item + .rd-timeline-item { border-top: 1px solid var(--rd-line); }
.rd-exp-role { font-weight: 600; font-size: 17px; color: var(--rd-ink); }
.rd-exp-company { font-size: 15px; color: var(--rd-ink-mute); }
.rd-exp-when { font-family: var(--rd-f-mono); font-size: 12.5px; color: var(--rd-ink-mute); white-space: nowrap; }

.rd-toolkit { display: grid; gap: 28px; }
.rd-tool-label { font-family: var(--rd-f-mono); font-size: 12px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--rd-ink-mute); margin-bottom: 12px; }

/* Contact */
.rd-contact { text-align: left; }
.rd-contact-title {
  font-family: var(--rd-f-display); font-weight: 400; font-size: clamp(34px, 4.6vw, 60px);
  line-height: 1.05; letter-spacing: -0.025em; max-width: 18em; margin-bottom: 36px; color: var(--rd-panel-ink);
  text-wrap: balance;
}
.rd-contact > .rd-btn { margin-bottom: 16px; }
.rd-contact-links { display: flex; flex-wrap: wrap; gap: 12px; }

/* Footer */
.rd-footer { padding: 0 0 48px; background: var(--rd-veil); color: var(--rd-ink-mute); font-size: 14px; }
.rd-footer-inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid var(--rd-line); padding-top: 28px; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .rd-hero-grid { grid-template-columns: minmax(0, 1fr); }
  .rd-console-wrap { max-width: 640px; }
  .rd-svc-grid { grid-template-columns: minmax(0, 1fr); }
  .rd-steps, .rd-approach-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 36px; }
  .rd-work { grid-template-columns: minmax(0, 1fr) 48px; }
  .rd-work-meta { grid-column: 1 / -1; padding-top: 0; }
  .rd-work-body { grid-column: 1; }
  .rd-work-arrow { grid-column: 2; grid-row: 2; }
}
@media (max-width: 760px) {
  body.home-root { font-size: 16px; }
  .rd-proof-grid { grid-template-columns: minmax(0, 1fr); }
  .rd-proof-card + .rd-proof-card { border-left: 0; border-top: 1px solid var(--rd-line); }
  .rd-split { grid-template-columns: minmax(0, 1fr); }
  .rd-hero-actions .rd-btn { flex: 1 1 auto; }
  .rd-h1-mark { white-space: normal; }
}
@media (max-width: 560px) {
  .rd-steps, .rd-approach-grid { grid-template-columns: minmax(0, 1fr); row-gap: 28px; }
  .rd-work { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .rd-work-arrow { display: none; }
  .rd-panel { border-radius: var(--rd-radius); padding: 32px 22px; }
  .rd-contact-links .rd-btn { flex: 1 1 100%; }
  .rd-row-name { width: 80px; }
  .rd-eyebrow { font-size: 11px; letter-spacing: .03em; }
}

@media (prefers-reduced-motion: reduce) {
  .rd-btn:hover, .rd-svc:hover, .rd-work:hover { transform: none; }
}

/* Closed drawer is fully hidden so its links can't be tabbed to
   off-screen; visibility flips after the slide-out finishes. */
body.home-root .hm-drawer { visibility: hidden; transition: transform .25s ease, visibility 0s linear .25s; }
body.home-root .hm-drawer.pf-side--open { visibility: visible; transition: transform .25s ease, visibility 0s; }
