/* =============================================================
   helmifriday.com — editorial rebuild
   Fonts: Source Serif 4 (headings), Inter (UI/body), JetBrains Mono (labels)
   ============================================================= */

*, *::before, *::after { box-sizing: border-box; }

/* -------------------------------------------------------------
   THEME SURFACES
   Three surfaces (primary / toneA / inverse) each carry their own
   fg / muted / rule / image colors, and flip between light & dark.
   Sections opt into a surface with .s-p / .s-tonea / .s-inv.
   ------------------------------------------------------------- */
:root {
  --accent: #C84B11;
  --accent-hover: #a83e0d;

  /* primary surface = body/nav default (light) */
  --bg: #F7F4EE;
  --fg: #16130F;
  --muted: rgba(22,19,15,0.62);
  --rule: rgba(22,19,15,0.16);
  --img-bg: #E9E3D6;
  --img-fg: rgba(22,19,15,0.30);
  --cta-fg: #F7F4EE;

  --serif: 'Source Serif 4', Georgia, serif;
  --sans: 'Inter', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --wrap: 1180px;
  --pad: 48px;
  --nav-h: 64px;
  --banner-h: 38px;
  /* Everything fixed to the top of the page stacks to this height */
  --top-h: calc(var(--banner-h) + var(--nav-h));
}

[data-theme="dark"] {
  --bg: #111111;
  --fg: #F5F1EA;
  --muted: rgba(245,241,234,0.62);
  --rule: rgba(245,241,234,0.16);
  --img-bg: #1B1B1B;
  --img-fg: rgba(245,241,234,0.28);
  --cta-fg: #F7F4EE;
}

/* Primary surface (explicit, same as root) */
.s-p {
  --bg: #F7F4EE; --fg: #16130F; --muted: rgba(22,19,15,0.62);
  --rule: rgba(22,19,15,0.16); --img-bg: #E9E3D6; --img-fg: rgba(22,19,15,0.30); --cta-fg: #F7F4EE;
}
[data-theme="dark"] .s-p {
  --bg: #111111; --fg: #F5F1EA; --muted: rgba(245,241,234,0.62);
  --rule: rgba(245,241,234,0.16); --img-bg: #1B1B1B; --img-fg: rgba(245,241,234,0.28); --cta-fg: #F7F4EE;
}

/* toneA surface (white / pure black) */
.s-tonea {
  --bg: #FFFFFF; --fg: #16130F; --muted: rgba(22,19,15,0.62);
  --rule: rgba(22,19,15,0.12); --img-bg: #EDEDED; --img-fg: rgba(22,19,15,0.30); --cta-fg: #FFFFFF;
}
[data-theme="dark"] .s-tonea {
  --bg: #000000; --fg: #F5F1EA; --muted: rgba(245,241,234,0.60);
  --rule: rgba(245,241,234,0.14); --img-bg: #161616; --img-fg: rgba(245,241,234,0.26); --cta-fg: #000000;
}

/* inverse surface (opposite of primary) */
.s-inv {
  --bg: #111111; --fg: #F5F1EA; --muted: rgba(245,241,234,0.62);
  --rule: rgba(245,241,234,0.16); --img-bg: #1B1B1B; --img-fg: rgba(245,241,234,0.28); --cta-fg: #F7F4EE;
}
[data-theme="dark"] .s-inv {
  --bg: #F7F4EE; --fg: #16130F; --muted: rgba(22,19,15,0.62);
  --rule: rgba(22,19,15,0.16); --img-bg: #E9E3D6; --img-fg: rgba(22,19,15,0.30); --cta-fg: #F7F4EE;
}

/* Each surface paints its own background + text */
.s-p, .s-tonea, .s-inv { background: var(--bg); color: var(--fg); }

/* -------------------------------------------------------------
   BASE
   ------------------------------------------------------------- */
html { scroll-behavior: smooth; }

body {
  margin: 0;
  overflow-x: hidden;
  font-family: var(--sans);
  background: var(--bg);
  color: var(--fg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background .25s ease;
}

h1, h2, h3, h4 { font-family: var(--serif); margin: 0; }

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); text-decoration: underline; }

input, textarea { font-family: var(--sans); }
::placeholder { opacity: .55; color: var(--fg); }

img { max-width: 100%; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }

section[id], header[id], [data-anchor] { scroll-margin-top: var(--top-h); }

/* -------------------------------------------------------------
   JOB-SEEKING BANNER
   Sits above the nav, which is why --top-h exists. Remove the
   markup and this block together to drop it.
   ------------------------------------------------------------- */
.jobbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  height: var(--banner-h);
  background: var(--fg); color: var(--bg);
}
.jobbar-inner {
  max-width: var(--wrap); height: 100%; margin: 0 auto;
  padding: 0 var(--pad);
  display: flex; align-items: center; justify-content: center; gap: 10px;
  font-size: 12.5px; line-height: 1;
}
.jobbar-dot {
  width: 7px; height: 7px; border-radius: 50%; flex: none;
  background: #22C55E; box-shadow: 0 0 0 3px rgba(34,197,94,0.22);
}
.jobbar-text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jobbar-text strong { font-weight: 700; }
.jobbar-link {
  flex: none; font-weight: 600; color: var(--bg);
  text-decoration: underline; text-underline-offset: 3px;
  text-decoration-color: rgba(255,255,255,0.35);
}
.jobbar-link:hover { color: var(--bg); text-decoration-color: currentColor; }
[data-theme="dark"] .jobbar-link { text-decoration-color: rgba(0,0,0,0.35); }

/* -------------------------------------------------------------
   BUTTONS
   ------------------------------------------------------------- */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  padding: 16px 30px;
  border-radius: 0;
  border: none;
  cursor: pointer;
  text-align: center;
  transition: opacity .2s ease, background .2s ease, color .2s ease;
}
.btn:hover { text-decoration: none; }
.btn-accent { background: var(--accent); color: var(--cta-fg); }
.btn-accent:hover { background: var(--accent-hover); color: var(--cta-fg); }
.btn-outline { background: transparent; color: var(--fg); border: 1.5px solid var(--fg); }
.btn-outline:hover { background: var(--fg); color: var(--bg); }
/* Solid button: fg fill by default (black in light), accent on hover (like the nav CTA) */
.btn-solid { background: var(--fg); color: var(--bg); border: 1.5px solid var(--fg); }
.btn-solid:hover { background: var(--accent); border-color: var(--accent); color: var(--cta-fg); }
.btn-sm { padding: 10px 20px; font-size: 12px; }

/* -------------------------------------------------------------
   NAV
   ------------------------------------------------------------- */
.nav {
  position: fixed; top: var(--banner-h); left: 0; right: 0; z-index: 50;
  height: var(--nav-h);
  background: var(--bg);
  border-bottom: 1px solid var(--rule);
  transition: background .25s ease, border-color .25s ease;
}
.nav-inner {
  max-width: var(--wrap); height: 100%; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
  padding: 0 var(--pad);
}
.wordmark {
  font-family: var(--serif); font-weight: 900; font-size: 19px;
  color: var(--fg); white-space: nowrap; flex: none;
}
.wordmark:hover { color: var(--fg); text-decoration: none; }

.nav-desktop { display: flex; align-items: center; gap: 28px; min-width: 0; }
.nav-links { display: flex; gap: 20px; min-width: 0; }
.nav-links a {
  font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: var(--fg); white-space: nowrap;
}
.nav-links a:hover { color: var(--accent); text-decoration: none; }
.nav-links a.current { color: var(--accent); }
.nav-actions { display: flex; align-items: center; gap: 12px; flex: none; }

.icon-btn {
  width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent; border: 1px solid var(--rule); cursor: pointer; color: var(--fg);
  padding: 0;
}
/* Show only ONE icon: moon in light mode (switch to dark), sun in dark mode.
   Scoped to .icon-btn so specificity beats the generic svg rule. */
.icon-btn .icon-sun { display: none; }
.icon-btn .icon-moon { display: block; }
[data-theme="dark"] .icon-btn .icon-sun { display: block; }
[data-theme="dark"] .icon-btn .icon-moon { display: none; }

.menu-btn {
  display: none;
  font-family: var(--sans); font-size: 11px; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase;
  padding: 9px 12px; cursor: pointer;
  background: transparent; color: var(--fg);
  border: 1px solid var(--rule); border-radius: 0; white-space: nowrap;
}

.mobile-menu {
  display: none;
  position: fixed; top: var(--top-h); left: 0; right: 0; z-index: 49;
  background: var(--bg); border-bottom: 1px solid var(--rule);
}
.mobile-menu.open { display: block; }
.mobile-menu-inner {
  max-width: var(--wrap); margin: 0 auto;
  display: flex; flex-direction: column; padding: 22px var(--pad); gap: 18px;
}
.mobile-menu a {
  font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--fg);
}
.mobile-menu a:hover { color: var(--accent); text-decoration: none; }
.mobile-menu a.current { color: var(--accent); }
.mobile-actions {
  display: flex; align-items: center; gap: 12px;
  padding-top: 10px; border-top: 1px solid var(--rule);
}

/* -------------------------------------------------------------
   Shared bits
   ------------------------------------------------------------- */
.eyebrow {
  font-size: 11.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted);
}
.placeholder {
  position: relative;
  background: repeating-linear-gradient(45deg, var(--img-bg), var(--img-bg) 10px, var(--img-fg) 10px, var(--img-fg) 11px);
}
.placeholder--135 {
  background: repeating-linear-gradient(135deg, var(--img-bg), var(--img-bg) 10px, var(--img-fg) 10px, var(--img-fg) 11px);
}
.placeholder-cap {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  font-family: var(--mono); font-size: 11px; color: var(--fg);
  background: var(--bg); padding: 5px 10px; text-align: center;
}

/* Real photos filling the image slots (hero + case studies) */
.media-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}
/* Hero portrait: show the whole photo (head + shoulders), top-aligned,
   so a close-up isn't cropped too tight. Panel overlays the lower part. */
.hero-media .media-img { object-fit: contain; object-position: top; }

.section-h2 { font-family: var(--serif); font-weight: 900; color: var(--fg); }

/* -------------------------------------------------------------
   HERO
   ------------------------------------------------------------- */
.hero-inner { padding: calc(148px + var(--banner-h)) var(--pad) 100px; }
.hero-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 0; }
.hero-left { display: flex; flex-direction: column; justify-content: center; padding-right: 40px; }
.hero-eyebrow { white-space: nowrap; text-align: left; margin-bottom: 26px; }

.hero-title { font-family: var(--serif); line-height: .96; text-align: left; font-weight: 900; }
.hero-title .big { display: block; font-size: 128px; color: var(--accent); }
.hero-title .mid { display: block; font-size: 42px; color: var(--fg); margin-top: 6px; }
.hero-title .small { display: block; font-size: 20px; font-weight: 700; color: var(--muted); margin-top: 22px; }
.hero-sub { max-width: 480px; margin: 28px 0 0; font-size: 15.5px; line-height: 1.65; color: var(--fg); text-align: left; }
.hero-cta { margin-top: 30px; }

.hero-media { position: relative; min-height: 560px; margin-top: 0; }
.hero-media .placeholder-cap { top: 42%; max-width: 80%; }
.hero-panel {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 1;
  background: var(--bg); opacity: .96;
  padding: 24px 26px; display: flex; flex-direction: column; gap: 16px;
}
.stat-title { font-family: var(--serif); font-size: 19px; font-weight: 900; color: var(--fg); }
.stat-title.accent { color: var(--accent); font-size: 24px; }
.stat-sub { font-size: 10.5px; letter-spacing: .03em; color: var(--muted); margin-top: 5px; line-height: 1.4; }
.hero-panel-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }

/* -------------------------------------------------------------
   WHAT I DO
   ------------------------------------------------------------- */
.section-pad { padding: 140px var(--pad) 100px; }
.wid-grid { display: grid; grid-template-columns: .9fr 1.6fr; gap: 60px; }
.wid-h2 { font-size: 42px; font-weight: 900; color: var(--fg); line-height: 1.05; }
.wid-intro { margin: 24px 0 0; font-size: 15.5px; line-height: 1.65; color: var(--muted); max-width: 320px; }
.pillars { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.pillar-head {
  display: flex; align-items: baseline; gap: 14px;
  border-bottom: 2px solid var(--fg); padding-bottom: 16px; margin-bottom: 22px;
}
.pillar-num { font-family: var(--serif); font-size: 15px; font-weight: 700; color: var(--accent); }
.pillar-head h3 { font-size: 22px; font-weight: 700; color: var(--fg); }
.pillar-item {
  padding: 14px 0; border-bottom: 1px solid var(--rule);
  font-size: 14.5px; line-height: 1.5; color: var(--fg);
}
.pillar-item:last-child { border-bottom: none; }

/* -------------------------------------------------------------
   HOW I CAN HELP
   ------------------------------------------------------------- */
.help-pad { padding: 100px var(--pad); }
.help-lead { font-family: var(--serif); font-size: 24px; font-weight: 900; color: var(--fg); margin: 0 0 56px; }
.help-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.help-item { display: grid; grid-template-columns: 56px 1fr; gap: 24px; padding: 28px 0; border-top: 1px solid var(--rule); }
.help-num { font-family: var(--serif); font-size: 18px; font-weight: 700; color: var(--accent); }
.help-text { font-size: 15.5px; line-height: 1.65; color: var(--fg); }
.help-text strong { display: block; margin-bottom: 10px; color: var(--fg); font-weight: 700; }
.help-rule { border-top: 1px solid var(--rule); }
.help-closing { margin: 32px 0 0; font-size: 14.5px; line-height: 1.7; color: var(--muted); }

/* -------------------------------------------------------------
   SELECTED WORK
   ------------------------------------------------------------- */
.work-pad { padding: 120px var(--pad) 40px; }
.work-h2 { font-size: 42px; font-weight: 900; color: var(--fg); margin: 0 0 64px; }
.case-row {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px;
  padding: 56px 0; border-top: 1px solid var(--rule); align-items: center;
}
.case-row.reverse { grid-template-columns: 1fr 1.1fr; }
.case-text { order: 1; }
.case-img { order: 2; }
.case-row.reverse .case-text { order: 2; }
.case-row.reverse .case-img { order: 1; }
.case-tag { font-family: var(--mono); font-size: 11px; letter-spacing: .03em; color: var(--accent); margin-bottom: 16px; }
.case-text h3 { font-size: 28px; font-weight: 700; color: var(--fg); line-height: 1.15; }
.case-body { margin: 20px 0 0; font-size: 15px; line-height: 1.65; color: var(--muted); max-width: 460px; }
.case-result {
  margin-top: 24px; font-size: 13px; font-weight: 600; color: var(--fg);
  border-top: 1px solid var(--rule); padding-top: 16px; display: inline-block;
}
.case-actions { margin-top: 18px; }
.case-link { font-size: 14px; font-weight: 600; color: var(--accent); }
.case-note { display: block; margin-top: 6px; font-family: var(--mono); font-size: 11px; color: var(--muted); }
.case-img { position: relative; height: 280px; border: 1px solid rgba(22, 19, 15, 0.22); }
[data-theme="dark"] .case-img { border-color: rgba(245, 241, 234, 0.22); }
.case-img .placeholder-cap { white-space: nowrap; }

/* Zoomable image (dashboard) — click to enlarge */
.zoom-wrap { cursor: zoom-in; }
.zoom-badge {
  position: absolute; bottom: 10px; right: 10px; z-index: 2;
  font-family: var(--mono); font-size: 10px; letter-spacing: .04em;
  background: rgba(0,0,0,0.62); color: #fff; padding: 5px 9px;
  opacity: 0; transition: opacity .2s ease; pointer-events: none;
}
.zoom-wrap:hover .zoom-badge { opacity: 1; }

/* Slideshow — stacked slides that crossfade (see .media-img for positioning) */
.slideshow .slide { opacity: 0; transition: opacity .6s ease; }
.slideshow .slide.is-active { opacity: 1; }
/* UI screenshots: anchor the crop to the top-left so headings stay visible */
.slideshow .slide { object-position: top left; }

/* Dots sit on a dark pill so they read against light screenshots too */
.slide-dots {
  position: absolute; bottom: 10px; left: 10px; z-index: 2;
  display: flex; gap: 7px; align-items: center;
  padding: 6px 9px; background: rgba(0,0,0,0.62);
}
.slide-dot {
  width: 7px; height: 7px; padding: 0; border: none; border-radius: 50%;
  background: rgba(255,255,255,0.45); cursor: pointer;
  transition: background .2s ease;
}
.slide-dot:hover { background: rgba(255,255,255,0.75); }
.slide-dot.is-active { background: #fff; }

/* Lightbox overlay */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  display: none; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.88); padding: 28px; cursor: zoom-out;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 95vw; max-height: 90vh; display: block;
  border: 1px solid rgba(255,255,255,0.16);
  cursor: default;
}
.lightbox-close {
  position: absolute; top: 16px; right: 22px;
  background: none; border: none; color: #fff; font-size: 30px; line-height: 1;
  cursor: pointer; padding: 6px;
}

/* Lightbox gallery navigation (only shown when there's more than one image) */
.lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 46px; height: 46px; cursor: pointer;
  display: none; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.10); border: 1px solid rgba(255,255,255,0.22);
  color: #fff; font-size: 22px; line-height: 1; padding: 0;
  transition: background .2s ease;
}
.lightbox-nav:hover { background: rgba(255,255,255,0.22); }
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }
.lightbox.is-gallery .lightbox-nav { display: flex; }

.lightbox-count {
  position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%);
  display: none;
  font-family: var(--mono); font-size: 11px; letter-spacing: .06em;
  color: rgba(255,255,255,0.75);
}
.lightbox.is-gallery .lightbox-count { display: block; }

/* Small screens: scaling a dense dashboard screenshot to fit makes it
   unreadable, so render it at a readable width and let the visitor pan.
   The controls are fixed so they stay put while the image scrolls. */
@media (max-width: 700px) {
  .lightbox {
    align-items: flex-start; justify-content: flex-start;
    overflow: auto; -webkit-overflow-scrolling: touch;
    padding: 62px 14px 52px;
  }
  .lightbox img {
    max-width: none; max-height: none;
    width: 860px; height: auto; margin: auto;
  }
  .lightbox-close, .lightbox-nav, .lightbox-count { position: fixed; }
  .lightbox-nav { width: 38px; height: 38px; font-size: 18px; }
  .lightbox-prev { left: 6px; }
  .lightbox-next { right: 6px; }
}

/* -------------------------------------------------------------
   CERTIFICATIONS
   ------------------------------------------------------------- */
.certs-pad { padding: 80px var(--pad); }
.certs-head { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin: 0 0 32px; }
.certs-h2 { font-size: 28px; font-weight: 900; color: var(--fg); margin: 0; }
.certs-hint { font-family: var(--mono); font-size: 11px; letter-spacing: .04em; color: var(--muted); }
.certs-line {
  font-size: 16px; line-height: 1.8; color: var(--fg);
  border-top: 1px solid var(--rule); padding: 24px 0 0;
}
.certs-line .dot { color: var(--muted); }
/* Certification verification links — subtle dotted underline hints they're clickable */
.cert-link {
  color: var(--fg);
  text-decoration: underline;
  text-decoration-style: dotted;
  text-decoration-color: var(--muted);
  text-underline-offset: 4px;
}
.cert-link:hover {
  color: var(--accent);
  text-decoration-style: solid;
  text-decoration-color: var(--accent);
}

/* -------------------------------------------------------------
   ABOUT TEASER
   ------------------------------------------------------------- */
.about-grid { display: grid; grid-template-columns: .7fr 1.3fr; gap: 60px; }
.about-h2 { font-size: 34px; font-weight: 900; color: var(--fg); line-height: 1.1; }
.about-body { margin: 0; font-size: 17px; line-height: 1.75; color: var(--fg); max-width: 640px; }
.about-link { display: inline-block; margin-top: 24px; font-size: 14px; font-weight: 600; color: var(--accent); }

/* -------------------------------------------------------------
   CONTACT (wired form)
   ------------------------------------------------------------- */
.contact-inner { padding: 60px var(--pad) 120px; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; padding-top: 8px; }
.contact-h2 { font-size: 38px; font-weight: 900; color: var(--fg); line-height: 1.1; }
.contact-intro { margin: 24px 0 0; font-size: 15.5px; line-height: 1.65; color: var(--muted); max-width: 420px; }
.contact-form { display: flex; flex-direction: column; gap: 16px; }
.contact-form input,
.contact-form textarea {
  background: transparent; border: none; border-bottom: 1.5px solid var(--rule);
  padding: 12px 2px; font-size: 15px; color: var(--fg); outline: none;
}
.contact-form textarea { resize: none; }
.contact-form input:focus,
.contact-form textarea:focus { border-bottom-color: var(--accent); }
.contact-form .btn { align-self: flex-start; margin-top: 8px; }
.contact-form .btn:disabled { opacity: .5; cursor: not-allowed; }
.cf-turnstile { margin-top: 4px; }
.form-status { margin: 4px 0 0; font-size: 13.5px; min-height: 1.2em; color: var(--muted); }
.form-status.is-error { color: var(--accent); }
.form-status.is-success { color: var(--fg); font-weight: 600; }

/* -------------------------------------------------------------
   FOOTER
   ------------------------------------------------------------- */
.footer { border-top: 1px solid var(--rule); }
.footer-inner {
  max-width: var(--wrap); margin: 0 auto; padding: 32px var(--pad);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13.5px; color: var(--muted);
}
.footer-inner a { color: var(--muted); }
.footer-inner a:hover { color: var(--accent); }

/* -------------------------------------------------------------
   ABOUT PAGE
   ------------------------------------------------------------- */
.about-hero-inner { padding: calc(148px + var(--banner-h)) var(--pad) 100px; }
.back-link { font-size: 13px; font-weight: 600; color: var(--muted); }
.back-link:hover { color: var(--accent); }
.about-hero-eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin: 32px 0 24px; }
.about-hero-title { font-family: var(--serif); font-weight: 900; line-height: 1.06; text-align: left; }
.about-hero-title .l1 { display: block; font-size: 52px; color: var(--fg); text-wrap: pretty; }
.about-hero-title .l2 { display: block; font-size: 34px; color: var(--fg); margin-top: 12px; text-wrap: pretty; }
.about-hero-title .l3 { display: block; font-size: 22px; font-weight: 700; color: var(--muted); margin-top: 16px; text-wrap: pretty; }
.about-hero-sub { max-width: 600px; margin: 28px 0 0; font-size: 16.5px; line-height: 1.7; color: var(--fg); text-wrap: pretty; }

.split { display: grid; grid-template-columns: .7fr 1.3fr; gap: 60px; }
.split-even { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.narrow-h2 { font-size: 34px; font-weight: 900; color: var(--fg); line-height: 1.1; }
.story-col { display: flex; flex-direction: column; gap: 22px; max-width: 640px; }
.story-col p { margin: 0; font-size: 16.5px; line-height: 1.75; color: var(--fg); }
.hiw-intro { margin: 24px 0 0; font-size: 15.5px; line-height: 1.65; color: var(--muted); max-width: 320px; }
.hiw-item { padding: 24px 0; border-top: 1px solid var(--rule); font-size: 15.5px; line-height: 1.65; color: var(--fg); }
.hiw-item strong { color: var(--fg); font-weight: 700; }
.skills-foot { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--rule); font-size: 14px; color: var(--muted); }
.skills-foot strong { color: var(--fg); }
.pointer-body { margin: 0; font-size: 16.5px; line-height: 1.75; color: var(--fg); }
.resume-body { margin: 0; font-size: 16.5px; line-height: 1.75; color: var(--fg); max-width: 520px; }
.resume-note { margin-top: 12px; font-family: var(--mono); font-size: 11px; color: var(--muted); }

/* Resume gate form */
.resume-form { display: flex; flex-direction: column; gap: 18px; max-width: 520px; margin-top: 28px; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.resume-form input[type="text"],
.resume-form input[type="email"] {
  width: 100%; background: transparent; border: none; border-bottom: 1.5px solid var(--rule);
  padding: 12px 2px; font-size: 15px; color: var(--fg); outline: none;
}
.resume-form input:focus { border-bottom-color: var(--accent); }
.consent { display: flex; align-items: flex-start; gap: 10px; font-size: 13.5px; line-height: 1.5; color: var(--muted); cursor: pointer; }
.consent input { margin-top: 3px; flex-shrink: 0; accent-color: var(--accent); }
.resume-form .btn { align-self: flex-start; }
.resume-form .btn:disabled { opacity: .5; cursor: not-allowed; }
.resume-linkedin { display: inline-block; margin-top: 18px; font-size: 14px; font-weight: 600; color: var(--accent); }

@media (max-width: 560px) {
  .form-row-2 { grid-template-columns: 1fr; }
}
.closing-split { align-items: start; }

/* -------------------------------------------------------------
   RESPONSIVE — single breakpoint at 1040px (per handoff)
   ------------------------------------------------------------- */
@media (min-width: 1040px) {
  .mobile-menu { display: none !important; }
}

@media (max-width: 1039px) {
  .nav-desktop { display: none; }
  .menu-btn { display: block; }

  .jobbar-extra { display: none; }

  .hero-grid { grid-template-columns: 1fr; }
  .hero-left { padding-right: 0; }
  .hero-eyebrow { white-space: normal; }
  .hero-media { margin-top: 40px; min-height: 420px; }
  .hero-title .big { font-size: 96px; }
  .hero-title .mid { font-size: 34px; }

  .wid-grid { grid-template-columns: 1fr; }
  .pillars { grid-template-columns: 1fr; }
  .help-grid { grid-template-columns: 1fr; }

  .case-row,
  .case-row.reverse { grid-template-columns: 1fr; gap: 32px; }
  .case-row .case-img,
  .case-row.reverse .case-img { order: 1; }
  .case-row .case-text,
  .case-row.reverse .case-text { order: 2; }

  .about-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }

  .split, .split-even { grid-template-columns: 1fr; }
  .about-hero-title .l1 { font-size: 42px; }
  .about-hero-title .l2 { font-size: 28px; }
}

@media (max-width: 560px) {
  :root { --pad: 24px; }
  .jobbar-mid { display: none; }
  .jobbar-inner { gap: 8px; font-size: 11.5px; }
  .hero-inner { padding: calc(120px + var(--banner-h)) var(--pad) 72px; }
  .hero-title .big { font-size: 72px; }
  .hero-title .mid { font-size: 27px; }
  .hero-title .small { font-size: 17px; }
  .hero-eyebrow { font-size: 10.5px; letter-spacing: .06em; }
  .hero-media { min-height: 600px; } /* taller so face + smile clear the stat panel */
  .hero-panel-row2 { grid-template-columns: 1fr; gap: 14px; }
  .section-pad, .help-pad { padding: 80px var(--pad); }
  .work-pad { padding: 80px var(--pad) 20px; }
  .footer-inner { flex-direction: column; gap: 10px; align-items: flex-start; }
}
