/* ============================================================
   govind.lotlikar.net — Stylesheet v5
   Editorial redesign: paper / ink / deep-green accent
   ============================================================ */

/* ── Self-hosted Inter ──────────────────────────────────────── */
@font-face {
  font-family: 'Inter';
  src: url('fonts/inter-latin-400-normal.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('fonts/inter-latin-600-normal.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('fonts/inter-latin-700-normal.woff2') format('woff2');
  font-weight: 700 900;
  font-style: normal;
  font-display: swap;
}

/* ── Design tokens ──────────────────────────────────────────── */
:root {
  --paper:           #F3F2EE;
  --paper-2:         #E7E6E0;
  --ink:             #101820;
  --muted:           #3C474B;
  --muted-2:         #4B5558;
  --rule-soft:       #9AA3A0;
  --on-dark-muted:   #B9C4C2;
  --on-dark-muted-2: #C9D2D0;
  --dark-rule:       #33424A;
  --accent:          #1F5C4D;
  --accent-on-dark:  #8FD3BE;

  --font-display: 'Inter', ui-sans-serif, system-ui, sans-serif;
  --font-body:    'Instrument Sans', ui-sans-serif, system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', monospace;

  --nav-h:  64px;
  --r:      2px;
  --max-w:  1200px;
}

/* ── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html  { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body  {
  font-family: var(--font-body);
  font-size: 17px;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
}
img, svg { display: block; max-width: 100%; }
a    { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; }
ul   { list-style: none; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  text-wrap: balance;
}
p { text-wrap: pretty; }

/* ── Skip link ──────────────────────────────────────────────── */
.skip-link {
  position: absolute;
  top: 8px;
  left: -999px;
  z-index: 200;
  padding: 10px 18px;
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--r);
}
.skip-link:focus { left: 8px; }

/* ── Layout utility ─────────────────────────────────────────── */
.wrap { width: min(var(--max-w), 100% - 64px); margin-inline: auto; }

/* ── Eyebrow ────────────────────────────────────────────────── */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 18px;
}
.eyebrow--dark { color: var(--accent-on-dark); }

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 22px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--r);
  cursor: pointer;
  text-decoration: none;
  transition: opacity 150ms ease, background 150ms ease, color 150ms ease;
  min-height: 44px;
  white-space: nowrap;
  border: 0;
}
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.btn--accent  { background: var(--accent); color: #fff; border: 0; }
.btn--accent:hover { opacity: 0.85; }

.btn--outline {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--ink);
}
.btn--outline:hover { background: var(--ink); color: var(--paper); }

.btn--nav {
  background: var(--ink);
  color: var(--paper);
  font-size: 14px;
  padding: 10px 18px;
  border: 0;
}
.btn--nav:hover { opacity: 0.8; }

/* Used by JS-generated copy/download/reset buttons */
.btn--secondary {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--rule-soft);
  font-size: 13px;
  padding: 9px 14px;
}
.btn--secondary:hover { border-color: var(--ink); }

.btn--sm { padding: 9px 14px; font-size: 13px; min-height: 36px; }

/* ── Navigation ─────────────────────────────────────────────── */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(243, 242, 238, 0.96);
  border-bottom: 1px solid var(--ink);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.nav-inner {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.brand:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: var(--r); }
.brand-sq { display: none; }
.brand-logo {
  height: 40px;
  width: auto;
  display: block;
  /* Tint to dark green */
  filter: brightness(0) saturate(100%) invert(27%) sepia(44%) saturate(650%) hue-rotate(131deg) brightness(0.85);
}
.nav-links {
  display: flex;
  gap: 32px;
  font-size: 15px;
  color: var(--muted);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: var(--r); }
.navcta { flex-shrink: 0; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  border-radius: var(--r);
  flex-shrink: 0;
}
.hamburger span {
  display: block;
  height: 2px;
  background: var(--ink);
  border-radius: 1px;
  transition: transform 150ms ease, opacity 150ms ease;
}
.hamburger[aria-expanded='true'] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger[aria-expanded='true'] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded='true'] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.hamburger:focus-visible { outline: 2px solid var(--accent); }

/* Mobile menu */
.mobile-menu { border-top: 1px solid var(--rule-soft); background: var(--paper); }
.mobile-menu[hidden] { display: none; }
.mobile-menu nav { padding-block: 8px; }
.mobile-menu a {
  display: block;
  padding: 14px 20px;
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
  border-bottom: 1px solid var(--rule-soft);
}
.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu a:hover { color: var(--accent); }
.mobile-cta { padding: 12px 20px 20px; }

/* ── Section defaults ───────────────────────────────────────── */
.section { padding-block: 96px; background: var(--paper); }
.section--paper { background: var(--paper-2); }
.section--ink { background: var(--ink); color: var(--on-dark-muted-2); padding-block: 104px; }
.section-head { max-width: 680px; margin-bottom: 56px; }
.section-head h2 { font-size: clamp(34px, 4vw, 52px); margin-block: 16px 14px; }
.section-head p  { color: var(--muted); line-height: 1.8; }

/* ── Hero ───────────────────────────────────────────────────── */
.hero {
  background: var(--paper);
  padding-top: 8px;
  padding-bottom: 12px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
}
.hero-copy { max-width: 580px; padding-left: 48px; margin-left: auto; margin-right: 0; }
.hero-copy .eyebrow { margin-bottom: 14px; }
.hero-copy h1 {
  font-size: clamp(28px, 3.8vw, 48px);
  margin-bottom: 16px;
  letter-spacing: -0.035em;
  text-wrap: pretty;
}
.hero-copy h1 em { font-style: normal; color: var(--accent); }
.lead {
  font-size: 17px;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 20px;
  max-width: 540px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 14px;
}
.hero-avail {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted-2);
  letter-spacing: 0.04em;
  line-height: 1.6;
}
.hero-visual {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0 auto;
  width: 100%;
  max-width: 480px;
}
.name-photo-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
}
.profile-photo {
  width: 160px;
  height: auto;
  object-fit: contain;
  border-radius: 6px;
  flex-shrink: 0;
}
.name-svg { color: var(--ink); overflow: visible; flex: 1; min-width: 0; }
.name-block {
  flex: 0 0 auto;
}
.name-svg-display {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}
.nsv-line {
  font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
  font-weight: 800;
  fill: var(--accent);
}

/* Clarity panel */
.clarity-panel {
  background: var(--accent);
  color: #fff;
  padding: 12px 16px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 4px 24px rgba(16,24,32,0.18);
}
.clarity-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}
.clarity-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-on-dark);
}
.clarity-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--on-dark-muted-2);
  border: 1px solid rgba(255,255,255,0.25);
  padding: 3px 7px;
  border-radius: 4px;
}
.clarity-title {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 10px;
  text-wrap: balance;
}
.clarity-rows { border-top: 1px solid rgba(255,255,255,0.18); }
.clarity-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-block: 7px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  gap: 16px;
}
.clarity-row-label {
  font-size: 13px;
  color: #fff;
  font-weight: 500;
}
.clarity-row-value {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--on-dark-muted-2);
  text-align: right;
}
.clarity-note {
  margin-top: 12px;
  font-size: 11px;
  font-style: italic;
  color: var(--on-dark-muted);
  line-height: 1.6;
}

/* ── Capability strip ───────────────────────────────────────── */
.cap-strip {
  border-top: 1.5px solid var(--ink);
  border-bottom: 1.5px solid var(--ink);
  background: var(--paper);
  padding-block: 16px;
}
.cap-items {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  justify-content: center;
}
.cap-dot { color: var(--rule-soft); }

/* ── Services ───────────────────────────────────────────────── */
.services-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 64px;
  align-items: start;
}
.services-intro { position: sticky; top: calc(var(--nav-h) + 24px); }
.services-intro h2 { font-size: clamp(34px, 4vw, 52px); margin-block: 16px 14px; }
.services-intro p  { font-size: 14px; color: var(--muted); line-height: 1.7; }
.services-ledger {
  border-top: 1.5px solid var(--ink);
  border-bottom: 1.5px solid var(--ink);
}
.ledger-row {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 0 24px;
  padding-block: 40px;
  border-bottom: 1px solid var(--rule-soft);
}
.ledger-row--last { border-bottom: none; }
.ledger-num {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
  letter-spacing: 0.04em;
  padding-top: 4px;
}
.ledger-body h3 { font-size: 22px; margin-bottom: 12px; letter-spacing: -0.025em; }
.ledger-body > p { font-size: 14px; color: var(--muted); line-height: 1.8; margin-bottom: 14px; }
.ledger-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}
.ledger-bullets li {
  font-size: 14px;
  color: var(--muted);
  padding-left: 16px;
  position: relative;
  line-height: 1.5;
}
.ledger-bullets li::before { content: '›'; position: absolute; left: 0; color: var(--accent); }
.ledger-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  display: inline-block;
}
.ledger-link:hover { text-decoration: underline; }

/* ── Approach ───────────────────────────────────────────────── */
.approach-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.step { border-top: 4px solid var(--ink); padding-top: 20px; }
.step-num {
  display: block;
  font-family: var(--font-display);
  font-size: 56px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 14px;
  letter-spacing: -0.03em;
}
.step h3 { font-size: 22px; margin-bottom: 10px; }
.step p  { font-size: 14px; color: var(--muted); line-height: 1.8; }

/* ── AI Lab ─────────────────────────────────────────────────── */
.ai-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: start;
}
.ai-intro h2 {
  font-size: clamp(34px, 4vw, 52px);
  color: #fff;
  margin-block: 16px 16px;
  letter-spacing: -0.03em;
}
.ai-intro > p {
  font-size: 15px;
  color: var(--on-dark-muted-2);
  line-height: 1.75;
  margin-bottom: 24px;
}
.ai-feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  margin-bottom: 24px;
}
.ai-feature-list li {
  padding-block: 10px;
  border-bottom: 1px solid var(--dark-rule);
  font-size: 14px;
  color: var(--on-dark-muted-2);
  padding-left: 22px;
  position: relative;
  line-height: 1.5;
}
.ai-feature-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent-on-dark);
  font-size: 12px;
}
.ai-disclaimer {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--on-dark-muted);
  line-height: 1.7;
  border: 1px solid var(--dark-rule);
  padding: 12px 14px;
  border-radius: var(--r);
  letter-spacing: 0.02em;
}

/* Demo widget */
.demo-widget {
  background: var(--paper);
  color: var(--ink);
  border-radius: var(--r);
  padding: 28px;
  border: 1px solid var(--dark-rule);
}
.demo-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}
.demo-header h3 { font-size: 18px; letter-spacing: -0.02em; margin: 0; }
.demo-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--accent);
  background: transparent;
  border: 1px solid var(--accent);
  padding: 5px 9px;
  border-radius: var(--r);
  white-space: nowrap;
  flex-shrink: 0;
}
.demo-mode-bar {
  background: var(--paper-2);
  border: 1px solid var(--rule-soft);
  border-radius: var(--r);
  padding: 8px 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted-2);
  letter-spacing: 0.02em;
  margin-bottom: 16px;
  text-align: center;
}
.demo-hint  { font-size: 13px; color: var(--muted-2); margin-bottom: 4px; }
.demo-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  display: block;
  margin-block: 14px 8px;
  color: var(--muted-2);
}
.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.choice {
  border: 1px solid var(--rule-soft);
  background: var(--paper);
  text-align: left;
  padding: 11px 12px;
  border-radius: var(--r);
  font-size: 13px;
  line-height: 1.4;
  color: var(--muted);
  cursor: pointer;
  min-height: 44px;
  transition: border-color 150ms;
}
.choice:hover { border-color: var(--ink); }
.choice:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.choice.is-active {
  border-color: var(--accent);
  background: #e4eeeb;
  color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent);
}
.demo-textarea {
  width: 100%;
  min-height: 88px;
  resize: vertical;
  border: 1px solid var(--rule-soft);
  border-radius: var(--r);
  padding: 12px;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--ink);
  background: var(--paper);
  outline: none;
  transition: border-color 150ms, box-shadow 150ms;
}
.demo-textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(31,92,77,0.1); }
.demo-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}
.char-count {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted-2);
}

/* Demo output */
.demo-output { display: none; margin-top: 18px; border-top: 1px solid var(--rule-soft); padding-top: 18px; }
.demo-output.is-visible { display: block; }
.demo-output h4 { font-size: 16px; margin-bottom: 12px; }
.demo-output h5 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-block: 14px 6px;
  font-weight: 400;
}
.demo-output p, .demo-output li { font-size: 13px; line-height: 1.75; color: var(--muted); }
.demo-output ul { padding-left: 18px; margin-block: 4px; list-style: disc; }

.review-note {
  margin-top: 14px;
  padding: 10px 13px;
  background: var(--paper-2);
  border-radius: var(--r);
  font-size: 12px;
  color: var(--muted-2);
  line-height: 1.6;
  border: 1px solid var(--rule-soft);
}
.demo-actions-row {
  display: flex;
  gap: 8px;
  margin-top: 14px;
  flex-wrap: wrap;
}
.demo-discuss {
  margin-top: 14px;
  padding: 12px 14px;
  background: var(--paper-2);
  border-radius: var(--r);
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
  border: 1px solid var(--rule-soft);
}
.demo-discuss a { font-weight: 600; color: var(--accent); text-decoration: underline; }
.demo-privacy {
  font-size: 11px;
  color: var(--muted-2);
  line-height: 1.6;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--rule-soft);
}

/* ── Experience ─────────────────────────────────────────────── */
.exp-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.exp-intro h2 { font-size: clamp(34px, 4vw, 52px); margin-block: 16px 16px; }
.exp-intro p  { font-size: 15px; color: var(--muted); line-height: 1.8; margin-bottom: 20px; }
.exp-linkedin {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  display: inline-block;
}
.exp-linkedin:hover { text-decoration: underline; }
.exp-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}
.exp-card {
  background: var(--paper);
  border: 1px solid var(--rule-soft);
  border-radius: var(--r);
  padding: 16px 18px;
}
.exp-card strong { display: block; font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.exp-card small  { font-size: 12px; color: var(--muted-2); line-height: 1.4; display: block; }
.exp-placeholder {
  border: 1.5px dashed var(--rule-soft);
  border-radius: var(--r);
  padding: 20px;
}
.exp-mono {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 6px;
}
.placeholder-text {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--rule-soft);
  font-style: italic;
  line-height: 1.5;
}

/* ── Principles strip ───────────────────────────────────────── */
.principles-strip {
  border-top: 1.5px solid var(--ink);
  border-bottom: 1.5px solid var(--ink);
  background: var(--paper);
  padding-block: 56px;
}
.principles-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}
.principle { border-top: 2px solid var(--accent); padding-top: 18px; }
.principle h4 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
  line-height: 1.2;
}
.principle p { font-size: 13px; color: var(--muted); line-height: 1.75; }

/* ── Contact ────────────────────────────────────────────────── */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.contact-h2 {
  font-size: clamp(40px, 5.4vw, 76px);
  margin-block: 16px 20px;
  letter-spacing: -0.035em;
}
.contact-intro p { font-size: 16px; color: var(--muted); line-height: 1.8; max-width: 520px; }
.contact-note-sub { font-size: 14px !important; color: var(--muted-2) !important; margin-top: 12px; }

.contact-links {
  border-top: 1.5px solid var(--ink);
  border-bottom: 1.5px solid var(--ink);
}
.contact-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-block: 24px;
  padding-inline: 4px;
  border-bottom: 1px solid var(--rule-soft);
  color: var(--ink);
  transition: padding-inline 150ms ease, background 150ms ease;
}
.contact-row:last-child { border-bottom: none; }
.contact-row:hover { padding-inline: 12px; background: var(--paper-2); }
.contact-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.contact-value {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

/* ── Footer ─────────────────────────────────────────────────── */
.footer {
  background: var(--ink);
  color: var(--on-dark-muted);
  padding-block: 40px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-copy { font-size: 13px; }
.footer-tag  { font-size: 13px; opacity: 0.7; }

/* ── Toast ──────────────────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: var(--paper);
  padding: 12px 20px;
  border-radius: var(--r);
  font-size: 13px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.25);
  display: none;
  z-index: 1000;
  white-space: nowrap;
  max-width: calc(100% - 40px);
  text-align: center;
}
.toast.is-visible { display: block; }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 880px) {
  .nav-links { display: none; }
  .navcta    { display: none; }
  .hamburger { display: flex; }

  .hero { padding-top: 32px; padding-bottom: 56px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-copy { max-width: 100%; }
  .name-svg  { max-width: 420px; }
  .name-photo-row { gap: 14px; }
  .profile-photo { width: 120px; }

  .services-layout { grid-template-columns: 1fr; gap: 32px; }
  .services-intro  { position: static; }

  .approach-grid { grid-template-columns: 1fr; gap: 28px; }

  .ai-layout { grid-template-columns: 1fr; gap: 40px; }

  .exp-layout { grid-template-columns: 1fr; gap: 40px; }

  .principles-grid { grid-template-columns: 1fr 1fr; gap: 28px; }

  .contact-layout { grid-template-columns: 1fr; gap: 40px; }

  .footer-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 560px) {
  .wrap { width: min(var(--max-w), 100% - 36px); }

  .hero-copy h1 { font-size: 40px; }
  .hero-avail   { font-size: 11px; }
  .name-block { flex: 1 1 0; min-width: 0; }

  .choices  { grid-template-columns: 1fr; }

  .exp-cards { grid-template-columns: 1fr; }

  .principles-grid { grid-template-columns: 1fr; }

  .contact-value { font-size: 18px; }
}

/* ── Accessibility & reduced motion ─────────────────────────── */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
:focus:not(:focus-visible) { outline: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* Batch 2: touch-friendly service links */
.ledger-link { display: inline-flex; align-items: center; min-height: 44px; }

/* ── Experience (Batch 3) ───────────────────────────────────── */
.exp-timeline { list-style: none; margin: 8px 0 24px; padding: 0; border-top: 1.5px solid var(--ink); }
.exp-timeline li { display: grid; grid-template-columns: 150px 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--rule-soft); }
.exp-date { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.04em; color: var(--muted-2); }
.exp-role { font-size: 14px; line-height: 1.5; }
.exp-work { display: grid; gap: 14px; margin-bottom: 20px; }
.exp-card--work { padding: 20px 22px; }
.exp-card--work h3 { font-size: 17px; letter-spacing: -0.02em; margin: 0 0 12px; }
.exp-fields { margin: 0; display: grid; gap: 10px; }
.exp-fields dt { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 2px; }
.exp-fields dd { margin: 0; font-size: 14px; line-height: 1.65; color: var(--muted); }
.exp-group + .exp-group { margin-top: 14px; }
.exp-group h4 { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted-2); margin: 0 0 6px; }
.exp-group ul { margin: 0; padding-left: 18px; font-size: 14px; line-height: 1.65; color: var(--muted); }
.exp-group li + li { margin-top: 6px; }
.exp-run { border-top: 2px solid var(--accent); padding-top: 16px; }
.exp-run h4 { font-size: 16px; font-weight: 700; letter-spacing: -0.02em; margin: 0 0 8px; }
.exp-run p { font-size: 14px; line-height: 1.7; color: var(--muted); }
.exp-metric { font-size: 13px; color: var(--accent); margin-top: 10px; }
.exp-metric strong { font-weight: 700; }
@media (max-width: 560px) {
  .exp-timeline li { grid-template-columns: 1fr; gap: 2px; }
}
.exp-metric strong { display: inline; }

/* ── Mobile hero order (CSS only; HTML source order unchanged) ──
   Stacked layout: name + photo, then copy, then the clarity card.
   .hero-visual is flattened so its children can be ordered against .hero-copy. */
@media (max-width: 880px) {
  .hero-visual { display: contents; }
  .name-photo-row { order: 1; width: 100%; max-width: 480px; margin-inline: auto; }
  .hero-copy      { order: 2; }
  .clarity-panel  { order: 3; width: 100%; max-width: 480px; margin-inline: auto; }
}

/* ── Mobile hero amendment: reclaim width, tighten headline and spacing ── */
@media (max-width: 880px) {
  .hero-copy { padding-left: 0; }
  .hero-grid { gap: 24px; }
}
@media (max-width: 560px) {
  .hero-copy .eyebrow { margin-bottom: 10px; }
  .hero-copy h1 { font-size: 34px; line-height: 1.08; margin-bottom: 12px; }
  .lead { font-size: 16px; line-height: 1.55; margin-bottom: 16px; }
  .hero-actions { margin-bottom: 12px; }
}
