/* =====================================================================
   Abraham Dauhajre — Technical Consulting
   Design system: "Warm Technical Precision"
   Light, warm off-white · deep-teal accent · Inter + IBM Plex Mono
   WCAG AA. Dark sections used sparingly.
   ===================================================================== */

:root {
  /* --- Surfaces (warm) --- */
  --bg:        #F7F4EF;   /* warm off-white page */
  --bg-soft:   #F1EEE7;   /* soft stone — alternating sections */
  --card:      #FFFFFF;
  --card-2:    #FBFAF7;
  --line:      #E5E1DA;   /* warm border */
  --line-2:    #D9D4CB;   /* stronger border */
  --line-3:    #CBD5E1;   /* cool secondary border (buttons) */

  /* --- Ink --- */
  --text:      #1F2933;   /* charcoal — body/head, AA on --bg */
  --text-2:    #4B5563;   /* secondary, AA on --bg */
  --text-3:    #5C6670;   /* muted, large text only */

  /* --- Accent --- */
  --teal:      #0F766E;
  --teal-strong:#0B5D56;
  --teal-soft: rgba(15,118,110,0.08);
  --teal-line: rgba(15,118,110,0.22);
  --amber:     #B7791F;   /* supporting — subtle highlights only */
  --amber-soft:rgba(183,121,31,0.10);

  /* --- Dark section --- */
  --dk-bg:     #111827;
  --dk-bg-2:   #1B2433;
  --dk-line:   #2A3444;
  --dk-text:   #F9FAFB;
  --dk-text-2: #D1D5DB;
  --dk-accent: #5EEAD4;
  --dk-accent-2:#93C5FD;

  /* --- Type --- */
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* --- Layout --- */
  --container: 1180px;
  --reading: 720px;
  --radius: 12px;
  --radius-lg: 16px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --focus: 0 0 0 3px var(--bg), 0 0 0 5px var(--teal);
}

/* ---- Reset ---------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overflow-wrap: break-word;
}
/* Grid/flex children never blow out their track on long content */
.nav, .hero-grid, .problem-grid, .about-grid, .contact-grid,
.cards > *, .steps > *, .audience > *, .flags > *, .dc-row, .footer-top { min-width: 0; }

img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--teal); color: #fff; }

/* Global focus visibility */
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 3px; }
a:focus-visible, .btn:focus-visible, button:focus-visible,
input:focus-visible, textarea:focus-visible, select:focus-visible { box-shadow: var(--focus); }

.skip-link {
  position: absolute; left: 1rem; top: -3rem; z-index: 100;
  background: var(--teal); color: #fff; padding: 0.6rem 1rem; border-radius: 8px;
  transition: top 0.2s;
}
.skip-link:focus { top: 1rem; }

/* ---- Typography ----------------------------------------------------- */
h1, h2, h3, h4, h5 { font-family: var(--font); font-weight: 600; line-height: 1.14; letter-spacing: -0.02em; margin: 0; color: var(--text); }
h1 { font-size: clamp(2.3rem, 5vw, 3.75rem); letter-spacing: -0.03em; line-height: 1.06; }
h2 { font-size: clamp(1.85rem, 3.4vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
p  { margin: 0 0 1.1em; color: var(--text-2); }
strong { color: var(--text); font-weight: 600; }

.eyebrow {
  font-family: var(--mono); font-weight: 500;
  font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--teal); display: inline-flex; align-items: center; gap: 0.7em;
  margin: 0 0 1.3rem;
}
.eyebrow::before { content: ""; width: 24px; height: 2px; background: var(--teal); border-radius: 2px; }
.eyebrow--plain::before { display: none; }

.lead { font-size: clamp(1.08rem, 1.5vw, 1.28rem); color: var(--text-2); line-height: 1.55; }

/* In-body text links: visibly distinguishable (underline) */
.prose a, a.tlink { color: var(--teal); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose a:hover, a.tlink:hover { color: var(--teal-strong); text-decoration-thickness: 2px; }

/* ---- Layout --------------------------------------------------------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: clamp(1.25rem, 4vw, 2.5rem); position: relative; }
.section { padding-block: clamp(4rem, 8vw, 8rem); }
.section--tight { padding-block: clamp(3.5rem, 6vw, 5.5rem); }
.section--soft { background: var(--bg-soft); border-block: 1px solid var(--line); }
.measure { max-width: var(--reading); }
.divider { border: 0; border-top: 1px solid var(--line); }

/* ---- Buttons -------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55em;
  font-family: var(--font); font-weight: 500; font-size: 1rem;
  padding: 0.85em 1.5em; min-height: 48px; border-radius: var(--radius);
  border: 1.5px solid transparent; cursor: pointer; line-height: 1;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease), transform 0.15s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--teal); color: #fff; }
.btn--primary:hover { background: var(--teal-strong); }
.btn--secondary { background: transparent; color: var(--text); border-color: var(--line-3); }
.btn--secondary:hover { background: var(--card-2); border-color: var(--text-3); }
.btn .arrow { transition: transform 0.2s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }
.btn--on-dark.btn--secondary { color: var(--dk-text); border-color: var(--dk-line); }
.btn--on-dark.btn--secondary:hover { background: var(--dk-bg-2); border-color: var(--dk-text-2); }

.link-arrow {
  font-family: var(--mono); font-size: 0.85rem; letter-spacing: 0.01em; font-weight: 500;
  color: var(--teal); display: inline-flex; align-items: center; gap: 0.45em; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px;
}
.link-arrow:hover { color: var(--teal-strong); }
.link-arrow .arrow { transition: transform 0.2s var(--ease); text-decoration: none; }
.link-arrow:hover .arrow { transform: translateX(3px); }

/* ---- Header / Nav --------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent; transition: border-color 0.3s, background 0.3s;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; flex-direction: row; align-items: center; gap: 0.7rem; font-weight: 600; letter-spacing: -0.02em; color: var(--text); }
.brand .brand-name { font-size: 1.1rem; line-height: 1; }
.brand .brand-lines { display: flex; flex-direction: column; gap: 0.16rem; padding-left: 0.7rem; border-left: 1px solid var(--teal-line); }
.brand .brand-role,
.brand .brand-desc { font-family: var(--mono); font-size: 0.6rem; font-weight: 500; letter-spacing: 0.13em; text-transform: uppercase; white-space: nowrap; line-height: 1; }
.brand .brand-role { color: var(--text-3); }
.brand .brand-desc { color: var(--teal); }
.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a { font-size: 0.95rem; color: var(--text-2); transition: color 0.2s; position: relative; padding: 0.4rem 0; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); }
.nav-links a[aria-current="page"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--teal); border-radius: 2px; }
.nav-cta { display: flex; align-items: center; gap: 1rem; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 8px; color: var(--text); cursor: pointer; width: 44px; height: 44px; align-items: center; justify-content: center; }
.mobile-menu { display: none; }

@media (max-width: 880px) {
  .nav-links, .nav-cta .btn { display: none; }
  .nav-toggle { display: inline-flex; }
  .mobile-menu {
    position: fixed; inset: 72px 0 auto 0; z-index: 49;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: 1rem clamp(1.25rem, 4vw, 2.5rem) 1.75rem;
    display: none; flex-direction: column;
  }
  .mobile-menu.open { display: flex; }
  .mobile-menu a { padding: 0.9rem 0; border-bottom: 1px solid var(--line); color: var(--text); font-size: 1.05rem; min-height: 44px; display: flex; align-items: center; }
  .mobile-menu .btn { margin-top: 1.2rem; }
}

/* ---- Hero ----------------------------------------------------------- */
.hero { padding-block: clamp(3.5rem, 7vw, 6.5rem) clamp(3.5rem, 6vw, 5.5rem); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (max-width: 960px) { .hero-grid { grid-template-columns: 1fr; gap: 2.75rem; } }
.hero h1 { margin-bottom: 1.5rem; }
.hero .lead { max-width: 560px; margin-bottom: 2rem; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.9rem; }
.cred-line { margin-top: 2.2rem; padding-top: 1.6rem; border-top: 1px solid var(--line); font-size: 0.95rem; color: var(--text-2); max-width: 560px; }
.cta-note { font-size: 0.86rem; color: var(--text-3); margin-top: 0.95rem; }
.cta-band .cta-note { color: var(--dk-text-2); margin-top: 1.1rem; }
.cred-line strong { color: var(--text); }

/* ---- Hero diagram card ---------------------------------------------- */
/* Hero sample deliverable — styled as a printed memo, not an app UI */
.memo-card {
  background: var(--card); color: var(--text);
  border: 1px solid var(--teal-line);
  border-radius: var(--radius); padding: 1.5rem 1.6rem 1.55rem;
  box-shadow: 0 22px 44px -26px rgba(31,41,51,0.26);
}
.memo-head { padding-bottom: 0.85rem; margin-bottom: 1.05rem; border-bottom: 1px solid var(--teal-line); }
.memo-title { font-size: 1.15rem; font-weight: 600; letter-spacing: -0.01em; color: var(--text); margin: 0; }
.memo-meta { font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.03em; color: var(--text-3); margin: 0.32rem 0 0; }
.memo-line { display: flex; align-items: baseline; gap: 0.7rem; padding: 0 0.1rem; }
.memo-line--in { margin-bottom: 0.95rem; }
.memo-line--out { margin-top: 0.95rem; }
.memo-line-label { font-size: 0.62rem; letter-spacing: 0.13em; text-transform: uppercase; font-weight: 600; color: var(--text-3); min-width: 3.4rem; }
.memo-line-value { font-size: 0.9rem; color: var(--text); }
.memo-line--out .memo-line-value { font-size: 0.98rem; font-weight: 600; color: var(--teal-strong); }
.memo-rows { border-top: 1px solid rgba(15,118,110,0.12); border-bottom: 1px solid rgba(15,118,110,0.12); }
.memo-row { padding: 0.62rem 0.1rem; }
.memo-row + .memo-row { border-top: 1px solid rgba(15,118,110,0.12); }
.memo-row-head { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; }
.memo-label { font-size: 0.9rem; font-weight: 500; color: var(--text); }
.memo-finding { margin: 0.3rem 0 0; font-size: 0.78rem; line-height: 1.4; color: var(--text-2); }
.hero-caption { margin: 0.95rem auto 0; max-width: 44ch; text-align: center; font-size: 0.82rem; line-height: 1.5; color: var(--text-3); }
.hero-caption-tag { display: inline-block; font-size: 0.58rem; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 600; color: var(--teal); background: var(--teal-soft); border: 1px solid var(--teal-line); border-radius: 5px; padding: 0.15em 0.5em; }

/* Severity chip — never color alone: glyph shape + text + color */
.chip { display: inline-flex; align-items: center; gap: 0.4em; font-size: 0.72rem; letter-spacing: 0.01em; font-weight: 600; padding: 0.22em 0.6em; border-radius: 999px; border: 1px solid; white-space: nowrap; }
.chip .g { font-size: 0.8em; }
.chip.low  { color: var(--teal); border-color: var(--teal-line); background: var(--teal-soft); }
.chip.med  { color: #8A5A0E; border-color: rgba(138,90,14,0.32); background: rgba(138,90,14,0.10); }
.chip.high { color: var(--text); border-color: rgba(31,41,51,0.24); background: rgba(31,41,51,0.06); }
/* Light-context severity labels (accessible, not color-only) */
.riskflag { display: inline-flex; align-items: center; font-family: var(--mono); font-size: 0.74rem; font-weight: 500; letter-spacing: 0.02em; }
.riskflag.low  { color: var(--teal); }
.riskflag.med  { color: var(--amber); }
.riskflag.high { color: var(--text); }

/* ---- Logo strip ----------------------------------------------------- */
.logos .container { padding-block: 2.4rem; }
.logos-label { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-3); margin-bottom: 1.3rem; }
.logos-row { display: flex; flex-wrap: wrap; gap: 1rem 2.4rem; align-items: center; }
.logos-row span { font-weight: 600; font-size: 1.05rem; color: var(--text-2); letter-spacing: -0.01em; transition: color 0.2s; }
.logos-row span:hover { color: var(--text); }

/* ---- Stats band (countable proof) ---------------------------------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.75rem; padding-bottom: 2.2rem; margin-bottom: 2.2rem; border-bottom: 1px solid var(--line); }
@media (max-width: 700px) { .stats { grid-template-columns: repeat(2, 1fr); gap: 1.6rem 1.25rem; } }
.stat .n { font-weight: 600; font-size: clamp(1.9rem, 3.4vw, 2.5rem); letter-spacing: -0.02em; line-height: 1; color: var(--teal); }
.stat .l { font-size: 0.88rem; color: var(--text-2); margin-top: 0.55rem; line-height: 1.4; }

/* ---- Section heads -------------------------------------------------- */
.section-head { max-width: 720px; margin-bottom: 3rem; }
.section-head p { margin-top: 1.1rem; }

/* ---- Service cards -------------------------------------------------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
@media (max-width: 960px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .cards { grid-template-columns: 1fr; } }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 1.75rem 1.65rem; display: flex; flex-direction: column; gap: 0.85rem;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease), transform 0.25s var(--ease);
}
.card:hover { border-color: var(--teal-line); background: var(--card-2); }
.card-cat { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--teal); }
.card h3 { font-size: 1.2rem; }
.card p { font-size: 0.96rem; margin: 0; color: var(--text-2); }
.card .link-arrow { margin-top: auto; padding-top: 0.5rem; }
.card-icon { width: 34px; height: 34px; color: var(--teal); }

/* ---- Process steps -------------------------------------------------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
@media (max-width: 780px) { .steps { grid-template-columns: 1fr; } }
.step { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.9rem 1.7rem; }
.step .step-num { font-family: var(--mono); font-size: 0.82rem; font-weight: 500; color: var(--teal); letter-spacing: 0.06em; margin-bottom: 1.1rem; display: flex; align-items: center; gap: 0.7rem; }
.step .step-num::after { content: ""; height: 1px; flex: 1; background: var(--line); }
.step h3 { font-size: 1.2rem; margin-bottom: 0.55rem; }
.step p { font-size: 0.95rem; margin: 0; }

/* ---- Problem section ------------------------------------------------ */
.problem-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(1.5rem, 5vw, 4rem); align-items: start; }
@media (max-width: 840px) { .problem-grid { grid-template-columns: 1fr; } }
.failure-list { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0.55rem 1.5rem; }
@media (max-width: 500px) { .failure-list { grid-template-columns: 1fr; } }
.failure-list li { font-family: var(--mono); font-size: 0.85rem; color: var(--text-2); display: flex; gap: 0.6rem; align-items: flex-start; }
.failure-list li .fx { color: var(--amber); font-weight: 700; flex: none; }

/* ---- Audience ------------------------------------------------------- */
.audience { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.25rem; }
@media (max-width: 840px) { .audience { grid-template-columns: 1fr; } }
.aud { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.75rem 1.65rem; }
.aud .who { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--teal); margin-bottom: 1rem; }
.aud h3 { font-size: 1.15rem; margin-bottom: 0.8rem; }
.aud ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.5rem; }
.aud ul li { font-size: 0.93rem; color: var(--text-2); padding-left: 1.1rem; position: relative; }
.aud ul li::before { content: "→"; position: absolute; left: 0; color: var(--teal); }

/* ---- Services detail blocks ---------------------------------------- */
.service-block { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(1.5rem, 5vw, 4rem); padding-block: clamp(2.5rem, 5vw, 3.5rem); align-items: start; scroll-margin-top: 90px; }
.service-block + .service-block { border-top: 1px solid var(--line); }
@media (max-width: 820px) { .service-block { grid-template-columns: 1fr; gap: 1.5rem; } }
.service-block .s-index { font-family: var(--mono); color: var(--teal); font-size: 0.8rem; font-weight: 500; letter-spacing: 0.05em; margin-bottom: 0.9rem; display: block; }
.service-block h3 { font-size: clamp(1.4rem, 2.6vw, 1.85rem); margin-bottom: 0.9rem; }
.service-block .best-for { margin-top: 1.2rem; font-size: 0.92rem; color: var(--text-3); }
.service-block .best-for strong { color: var(--text-2); }
.deliverables { list-style: none; padding: 0; margin: 0 0 0.5rem; display: grid; gap: 0.6rem; }
.deliverables li { display: flex; gap: 0.75rem; font-size: 0.98rem; color: var(--text-2); }
.deliverables li .chk { flex: none; margin-top: 0.15em; color: var(--teal); }
.deliv-label { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); margin-bottom: 1rem; }

/* ---- Example engagements ------------------------------------------- */
.examples { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.examples li { padding: 1.25rem 0; border-bottom: 1px solid var(--line); display: flex; gap: 1.3rem; align-items: baseline; color: var(--text-2); font-size: 1.05rem; transition: color 0.2s; }
.examples li:hover { color: var(--text); }
.examples li .ex-num { font-family: var(--mono); font-size: 0.78rem; color: var(--teal); flex: none; width: 2.4rem; }

/* ---- Risk flags (diligence page) ----------------------------------- */
.flags { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.25rem; margin-top: 2rem; }
@media (max-width: 720px) { .flags { grid-template-columns: 1fr; } }
.flag { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.6rem; background: var(--card); }
.flag .riskflag { margin-bottom: 0.9rem; }
.flag h4 { font-size: 1.05rem; margin-bottom: 0.5rem; }
.flag p { font-size: 0.93rem; margin: 0; }

/* ---- About ---------------------------------------------------------- */
.about-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: clamp(2rem, 6vw, 4.5rem); align-items: start; }
@media (max-width: 880px) { .about-grid { grid-template-columns: 1fr; } }

/* Headshot — swap assets/img/abraham.jpg (portrait, ~4:5). Placeholder shown until then. */
.headshot { width: 100%; height: auto; display: block; border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--card-2); margin-bottom: 1.25rem; }
.headshot-frame { position: relative; }
@media (max-width: 880px) {
  .about-facts { margin-top: 0; }
  .headshot { max-width: 320px; }
}
.about-facts { border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: var(--card); }
.about-facts .fact { padding: 1.15rem 1.4rem; border-bottom: 1px solid var(--line); }
.about-facts .fact:last-child { border-bottom: 0; }
.about-facts .fact .k { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-3); margin-bottom: 0.35rem; }
.about-facts .fact .v { color: var(--text); font-size: 1rem; }
.timeline { list-style: none; padding: 0; margin: 2rem 0 0; }
.timeline li { display: grid; grid-template-columns: 9rem 1fr; gap: 1.5rem; padding: 1.35rem 0; border-top: 1px solid var(--line); }
@media (max-width: 560px) { .timeline li { grid-template-columns: 1fr; gap: 0.35rem; } }
.timeline .t-when { font-family: var(--mono); font-size: 0.82rem; color: var(--teal); }
.timeline .t-role { color: var(--text); font-weight: 600; margin-bottom: 0.25rem; }
.timeline .t-desc { font-size: 0.95rem; color: var(--text-2); }

/* ---- Patents list --------------------------------------------------- */
.patents { list-style: none; padding: 0; margin: 0.75rem 0 0; display: grid; gap: 0; }
.patents li { display: flex; flex-wrap: wrap; gap: 0.3rem 0.9rem; align-items: baseline; padding: 0.85rem 0; border-top: 1px solid var(--line); }
.patents li:first-child { border-top: 0; }
.patents .p-title { font-weight: 500; color: var(--text); }
.patents a.p-title { color: var(--teal); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.patents a.p-title:hover { color: var(--teal-strong); }
.patents .pnum { font-family: var(--mono); font-size: 0.78rem; color: var(--text-3); }

/* ---- Writing list --------------------------------------------------- */
.writing { list-style: none; padding: 0; margin: 0.75rem 0 0; display: grid; gap: 0; }
.writing li { padding: 1.1rem 0; border-top: 1px solid var(--line); }
.writing li:first-child { border-top: 0; }
.writing .w-title { display: inline; font-weight: 600; font-size: 1.05rem; color: var(--teal); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.writing .w-title:hover { color: var(--teal-strong); }
.writing .w-meta { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.04em; color: var(--text-3); margin: 0.35rem 0 0.4rem; display: block; }
.writing .w-desc { font-size: 0.95rem; color: var(--text-2); margin: 0; }

/* ---- Long-form article --------------------------------------------- */
.article { max-width: 760px; margin-inline: auto; }
.article-header { margin-bottom: 2.5rem; }
.article-header h1 { font-size: clamp(2rem, 4vw, 2.85rem); line-height: 1.1; margin: 1.1rem 0 1.1rem; }
.article-meta { font-family: var(--mono); font-size: 0.78rem; color: var(--text-3); display: flex; flex-wrap: wrap; gap: 0.4rem 1.1rem; }
.article-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; }
.article-tag { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.04em; color: var(--teal); border: 1px solid var(--teal-line); border-radius: 999px; padding: 0.25em 0.7em; }
.article-note { font-style: italic; color: var(--text-3); border-left: 3px solid var(--teal); padding: 0.2rem 0 0.2rem 1.1rem; margin: 0 0 2.2rem; }
.article-body h2 { font-size: clamp(1.4rem, 2.6vw, 1.8rem); margin: 2.6rem 0 0.9rem; letter-spacing: -0.01em; }
.article-body h3 { font-size: 1.2rem; margin: 1.9rem 0 0.5rem; }
.article-body p { margin: 0 0 1.15em; }
.article-body ul { margin: 0 0 1.2em; padding-left: 1.25rem; }
.article-body li { margin-bottom: 0.45rem; color: var(--text-2); }
.end-cta { margin-top: 3.2rem; padding: 1.9rem; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--bg-soft); }
.end-cta h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }
.end-cta p { margin-bottom: 1.2rem; }

/* ---- Responsive video embed ---------------------------------------- */
.embed { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); background: #000; margin: 1.5rem 0; }
.embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---- Writing hub ---------------------------------------------------- */
.writing-hub { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.25rem; }
.writing-hub li { border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--card); padding: 1.7rem 1.65rem; transition: border-color 0.25s, background 0.25s; }
.writing-hub li:hover { border-color: var(--teal-line); background: var(--card-2); }
.writing-hub .wh-kind { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--teal); margin-bottom: 0.7rem; }
.writing-hub h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }
.writing-hub h3 a { color: var(--text); }
.writing-hub h3 a:hover { color: var(--teal); }
.writing-hub .wh-desc { font-size: 0.96rem; color: var(--text-2); margin: 0 0 0.9rem; }
.writing-hub .wh-meta { font-family: var(--mono); font-size: 0.74rem; color: var(--text-3); }

/* ---- FAQ ------------------------------------------------------------ */
.faq-list { max-width: 760px; }
.faq-item { padding: 1.7rem 0; border-top: 1px solid var(--line); }
.faq-item:first-child { border-top: 0; padding-top: 0; }
.faq-item h3 { font-size: 1.2rem; margin-bottom: 0.6rem; letter-spacing: -0.01em; }
.faq-item p { margin: 0; color: var(--text-2); }
.faq-item p + p { margin-top: 0.7rem; }

/* ---- Elsewhere / profile links ------------------------------------- */
.elsewhere { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 0.9rem; }
.elsewhere a { font-family: var(--mono); font-size: 0.78rem; color: var(--text-2); border: 1px solid var(--line-2); border-radius: 999px; padding: 0.4em 0.9em; transition: border-color 0.2s, color 0.2s; }
.elsewhere a:hover { color: var(--teal); border-color: var(--teal-line); }

/* ---- Dark CTA band -------------------------------------------------- */
.cta-band { background: var(--dk-bg); color: var(--dk-text); }
.cta-band .container { text-align: center; padding-block: clamp(4rem, 8vw, 6.5rem); }
.cta-band .eyebrow { color: var(--dk-accent); }
.cta-band .eyebrow::before { background: var(--dk-accent); }
.cta-band h2 { color: var(--dk-text); max-width: 640px; margin-inline: auto; margin-bottom: 1.2rem; }
.cta-band p { color: var(--dk-text-2); max-width: 560px; margin-inline: auto; margin-bottom: 2rem; }
.cta-band .hero-ctas { justify-content: center; }

/* ---- Contact -------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2rem, 6vw, 4.5rem); align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-methods { display: grid; gap: 1rem; }
.contact-method { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.5rem; background: var(--card); display: flex; flex-direction: column; gap: 0.45rem; transition: border-color 0.25s, background 0.25s; }
.contact-method:hover { border-color: var(--teal-line); background: var(--card-2); }
.contact-method .cm-label { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--teal); }
.contact-method .cm-value { font-size: 1.2rem; font-weight: 600; color: var(--text); letter-spacing: -0.01em; overflow-wrap: anywhere; }
.contact-method .cm-sub { font-size: 0.9rem; color: var(--text-2); margin: 0; }

form.lead-form { display: grid; gap: 1.2rem; }
.field { display: grid; gap: 0.45rem; }
.field label { font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-2); font-weight: 500; }
.field label .req { color: var(--teal); }
.field input, .field textarea, .field select {
  font-family: var(--font); font-size: 1rem; color: var(--text);
  background: var(--card); border: 1.5px solid var(--line-2); border-radius: 10px;
  padding: 0.75em 0.85em; width: 100%; min-height: 48px; transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:hover, .field textarea:hover, .field select:hover { border-color: var(--line-3); }
.form-note { font-size: 0.85rem; color: var(--text-3); }
/* Honeypot — kept out of view and out of the tab order; bots fill it, humans don't */
.hp-field { position: absolute !important; left: -9999px !important; top: auto; width: 1px; height: 1px; overflow: hidden; }
.form-status { font-size: 0.95rem; padding: 0.85rem 1rem; border-radius: 10px; display: none; }
.form-status.show { display: block; }
.form-status.ok { background: var(--teal-soft); color: var(--teal-strong); border: 1px solid var(--teal-line); }
.form-status.err { background: var(--amber-soft); color: var(--amber); border: 1px solid rgba(183,121,31,0.35); }

/* Success confirmation that replaces the form on submit */
.form-sent { text-align: center; padding: clamp(2rem, 5vw, 3rem) 1.5rem; border: 1px solid var(--teal-line); border-radius: var(--radius-lg); background: var(--card); }
.form-sent-check { width: 58px; height: 58px; margin: 0 auto 1.2rem; border-radius: 50%; background: var(--teal-soft); color: var(--teal); border: 1.5px solid var(--teal-line); display: flex; align-items: center; justify-content: center; font-size: 1.9rem; line-height: 1; }
.form-sent h3 { font-size: 1.4rem; margin-bottom: 0.55rem; }
.form-sent p { color: var(--text-2); margin: 0; max-width: 44ch; margin-inline: auto; }

/* ---- Page hero (subpages) ------------------------------------------ */
.page-hero { padding-block: clamp(3rem, 6vw, 5rem) clamp(2rem, 3vw, 3rem); }
.page-hero h1 { font-size: clamp(2.1rem, 4.5vw, 3.1rem); margin-bottom: 1.2rem; }
.page-hero .lead { max-width: 660px; }

/* ---- Footer --------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-soft); padding-block: 3.5rem 2.5rem; }
.footer-top { display: flex; justify-content: space-between; gap: 2.5rem; flex-wrap: wrap; padding-bottom: 2.5rem; border-bottom: 1px solid var(--line); }
.footer-brand { max-width: 340px; }
.footer-brand .brand { margin-bottom: 1rem; }
.footer-brand p { font-size: 0.92rem; color: var(--text-3); margin: 0; }
.footer-cols { display: flex; gap: clamp(2rem, 6vw, 4.5rem); flex-wrap: wrap; }
.footer-col h5 { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-3); margin: 0 0 1rem; font-weight: 500; }
.footer-col a { display: block; font-size: 0.93rem; color: var(--text-2); padding: 0.35rem 0; transition: color 0.2s; }
.footer-col a:hover { color: var(--teal); }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-top: 2rem; font-size: 0.85rem; color: var(--text-3); }

/* ---- Reveal animation ----------------------------------------------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1 !important; transform: none !important; } }

/* ---- Utilities ------------------------------------------------------ */
.mono { font-family: var(--mono); }
.center { text-align: center; }
.stack > * + * { margin-top: 1.1rem; }
.mt-2 { margin-top: 2rem; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* =====================================================================
   Responsive refinements — tablet & phone
   ===================================================================== */

/* Tablet landscape / small desktop (≤ 1024px) */
@media (max-width: 1024px) {
  .service-block { grid-template-columns: 0.9fr 1.1fr; }
}

/* Tablet portrait (≤ 834px) — iPad etc. */
@media (max-width: 834px) {
  .audience { grid-template-columns: 1fr 1fr; }        /* 2-up reads better than 1 */
  .flags { grid-template-columns: 1fr 1fr; }
  .contact-methods { display: grid; grid-template-columns: 1fr 1fr; }
}

/* Phone (≤ 600px) */
@media (max-width: 600px) {
  body { font-size: 16px; }
  .audience, .flags, .contact-methods { grid-template-columns: 1fr; }
  .hero-ctas { gap: 0.75rem; }
  .hero-ctas .btn { flex: 1 1 auto; }                  /* full-width, easy tap targets */
  .cta-band .hero-ctas .btn { flex: 1 1 100%; }
  .footer-top { flex-direction: column; gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; align-items: flex-start; }
  .examples li { gap: 0.9rem; font-size: 1rem; }
  .examples li .ex-num { width: 1.8rem; }
  .failure-list { gap: 0.6rem; }
  .memo-card { padding: 1.25rem 1.1rem 1.1rem; }
  .service-block .best-for a.link-arrow { font-size: 0.8rem; }
}

/* Very small phones (≤ 360px) */
@media (max-width: 360px) {
  .brand .brand-name { font-size: 0.98rem; }
  .brand .brand-role { font-size: 0.55rem; letter-spacing: 0.1em; }
  .brand .brand-desc { font-size: 0.55rem; letter-spacing: 0.1em; }
  h1 { font-size: 2.05rem; }
}
