@import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@400;500;600;700&family=Fira+Sans:wght@300;400;500;600;700&display=swap');

/* =========================================================
   DESIGN TOKENS
   ========================================================= */
:root {
  --green: #87ff71;
  --yellow: #ffce5c;
  --ink: #192617;
  --ink-light: #2e3f2b;
  --ink-fade: #4a6145;
  --white: #f8fff6;
  --off-white: #edfae9;
  --border: #192617;
  --font-body: 'Fira Sans', system-ui, sans-serif;
  --font-mono: 'Fira Code', 'Courier New', monospace;
  --radius: 0;
  --max-w: 1180px;
  --col-gap: 2rem;
  --sidebar-w: 220px;
  --transition: 0.18s ease;
}

/* =========================================================
   RESET & BASE
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 17px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  background: var(--white);
  color: var(--ink);
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: var(--ink); }
a:hover { color: var(--ink-fade); }

/* =========================================================
   ANNOUNCE STRIP
   ========================================================= */
.announce-strip {
  background: var(--ink);
  color: var(--green);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-align: center;
  padding: 0.4rem 1rem;
  letter-spacing: 0.04em;
}

/* =========================================================
   HEADER — two-row
   ========================================================= */
.site-header {
  background: var(--ink);
  border-bottom: 3px solid var(--green);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 1.5rem;
  gap: 1rem;
}

.brand {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--green);
  text-decoration: none;
  letter-spacing: -0.02em;
  flex-shrink: 0;
  white-space: nowrap;
}
.brand:hover { color: var(--yellow); }

.header-ctas {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

/* CTA Buttons */
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  padding: 0.55rem 1rem;
  min-height: 44px;
  text-decoration: none;
  border-radius: var(--radius);
  white-space: nowrap;
  transition: background var(--transition), color var(--transition);
}

.cta-signup {
  background: var(--green);
  color: var(--ink);
  border: 2px solid var(--green);
}
.cta-signup:hover {
  background: var(--yellow);
  border-color: var(--yellow);
  color: var(--ink);
}

.cta-login {
  background: transparent;
  color: var(--green);
  border: 2px solid var(--green);
}
.cta-login:hover {
  background: var(--green);
  color: var(--ink);
}

/* Nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 2px solid var(--green);
  cursor: pointer;
  padding: 8px;
}
.toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--green);
  transition: transform var(--transition), opacity var(--transition);
}

/* Nav row */
.header-nav-row {
  background: var(--ink-light);
  border-top: 1px solid rgba(135,255,113,0.15);
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}
.header-nav-row ol {
  display: flex;
  list-style: none;
  gap: 0;
  flex-wrap: wrap;
}
.header-nav-row ol li a {
  display: flex;
  align-items: center;
  padding: 0.6rem 0.9rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  color: rgba(248,255,246,0.82);
  text-decoration: none;
  letter-spacing: 0.03em;
  border-right: 1px solid rgba(135,255,113,0.1);
  min-height: 44px;
  transition: color var(--transition), background var(--transition);
}
.header-nav-row ol li a:hover {
  color: var(--green);
  background: rgba(135,255,113,0.07);
}

/* =========================================================
   BREADCRUMB
   ========================================================= */
.breadcrumb-bar {
  background: var(--off-white);
  border-bottom: 2px solid var(--ink);
  padding: 0.4rem 1.5rem;
}
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  gap: 0.25rem;
  max-width: var(--max-w);
  margin: 0 auto;
  font-family: var(--font-mono);
  font-size: 0.75rem;
}
.breadcrumb li a { color: var(--ink-fade); text-decoration: underline; }
.breadcrumb li[aria-current] { color: var(--ink); font-weight: 600; }
.bc-sep { color: var(--ink-fade); }

/* =========================================================
   HERO — home
   ========================================================= */
.hero-section {
  min-height: 70vh;
  background: var(--ink);
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
  overflow: hidden;
  clip-path: polygon(0 0, 100% 0, 100% 92%, 0 100%);
  margin-bottom: -3rem;
}

.hero-collage {
  position: relative;
  overflow: hidden;
}
.hero-img-1 {
  width: 100%;
  height: 100%;
  object-fit: cover;
  clip-path: polygon(0 0, 90% 0, 100% 100%, 0 100%);
}
.hero-img-2 {
  position: absolute;
  bottom: 2rem;
  right: -2rem;
  width: 55%;
  border: 4px solid var(--yellow);
  transform: rotate(2deg);
}

.hero-shape {
  position: absolute;
  z-index: 2;
}
.hero-triangle {
  width: 0;
  height: 0;
  border-left: 60px solid transparent;
  border-right: 60px solid transparent;
  border-bottom: 100px solid var(--yellow);
  top: 1.5rem;
  left: 1.5rem;
  opacity: 0.6;
  transform: rotate(15deg);
}
.hero-circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--green);
  bottom: 3rem;
  left: 3rem;
  opacity: 0.35;
  mix-blend-mode: screen;
}

.hero-squiggle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  opacity: 0.5;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3rem 3rem 6rem 2rem;
  text-align: right;
  position: relative;
  z-index: 5;
}

.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--yellow);
  letter-spacing: 0.12em;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
}

.hero-copy h1 {
  font-family: var(--font-mono);
  font-size: clamp(1.6rem, 3.5vw, 2.8rem);
  font-weight: 700;
  color: var(--green);
  line-height: 1.2;
  margin-bottom: 1rem;
}

.hero-desc {
  color: rgba(248,255,246,0.8);
  font-size: 1.05rem;
  margin-bottom: 2rem;
  max-width: 38ch;
  margin-left: auto;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--green);
  color: var(--ink);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.8rem 2rem;
  min-height: 48px;
  text-decoration: none;
  align-self: flex-end;
  border: 3px solid var(--green);
  transition: background var(--transition), color var(--transition);
  letter-spacing: 0.03em;
}
.btn-primary:hover {
  background: var(--yellow);
  border-color: var(--yellow);
  color: var(--ink);
}

.hero-slant {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: var(--white);
  clip-path: polygon(0 100%, 100% 0, 100% 100%);
  z-index: 6;
}

/* =========================================================
   PAGE BANNER — non-home pages
   ========================================================= */
.page-banner {
  background: var(--ink);
  color: var(--white);
  padding: 2.5rem 1.5rem 3rem;
  position: relative;
  overflow: hidden;
  clip-path: polygon(0 0, 100% 0, 100% 88%, 0 100%);
  margin-bottom: -1.5rem;
}

.banner-shapes { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }

.shape-tri {
  position: absolute;
  top: 1rem;
  right: 5%;
  width: 0; height: 0;
  border-left: 40px solid transparent;
  border-right: 40px solid transparent;
  border-bottom: 70px solid var(--yellow);
  opacity: 0.45;
  transform: rotate(-10deg);
}
.shape-dot-grid {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 180px;
  height: 100px;
  background-image: radial-gradient(circle, var(--green) 1.5px, transparent 1.5px);
  background-size: 14px 14px;
  opacity: 0.25;
}
.shape-circle-lg {
  position: absolute;
  top: -30px;
  right: 10%;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  border: 8px solid var(--yellow);
  opacity: 0.3;
}
.shape-squiggle {
  position: absolute;
  bottom: 1rem;
  right: 15%;
  width: 100px;
  height: 40px;
  background: repeating-linear-gradient(
    90deg,
    transparent,
    transparent 8px,
    var(--green) 8px,
    var(--green) 10px
  );
  opacity: 0.2;
}
.shape-circle-sm {
  position: absolute;
  bottom: 1rem;
  right: 2rem;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--green);
  opacity: 0.2;
}

.banner-copy {
  max-width: var(--max-w);
  margin: 0 auto;
  position: relative;
  z-index: 2;
  padding-top: 1rem;
}

.eyebrow-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--yellow);
  display: block;
  margin-bottom: 0.5rem;
}

.page-banner h1 {
  font-family: var(--font-mono);
  font-size: clamp(1.5rem, 3.5vw, 2.4rem);
  font-weight: 700;
  color: var(--green);
  line-height: 1.2;
  max-width: 36ch;
}

/* =========================================================
   BYLINE
   ========================================================= */
.byline {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: rgba(135,255,113,0.75);
  margin-top: 0.75rem;
  letter-spacing: 0.02em;
}
.byline strong { color: var(--green); }
.byline time { color: var(--yellow); }

/* Article header byline */
.article-header .byline {
  color: var(--ink-fade);
  margin-top: 0.5rem;
}
.article-header .byline strong { color: var(--ink); }
.article-header .byline time { color: var(--ink-light); }

/* =========================================================
   STAGE BADGE
   ========================================================= */
.stage-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  margin-bottom: 0.6rem;
  background: var(--yellow);
  color: var(--ink);
}
.stage-awareness { background: var(--green); }
.stage-consideration { background: var(--yellow); }
.stage-decision { background: var(--ink); color: var(--green); }

/* =========================================================
   MAIN LAYOUT — sidebar + content
   ========================================================= */
main {
  padding-top: 3.5rem;
  padding-bottom: 3rem;
}

main > .wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}

main > .wrap > div > article {
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
  gap: var(--col-gap);
  align-items: start;
}

/* SIDEBAR LEFT */
.sidebar-left {
  position: sticky;
  top: 110px;
}

.sidebar-widget {
  background: var(--off-white);
  border: 2px solid var(--ink);
  padding: 1.2rem;
  margin-bottom: 1.25rem;
}

.sidebar-heading {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink);
  margin-bottom: 0.4rem;
}

.sidebar-widget hr {
  border: none;
  border-top: 2px solid var(--green);
  margin-bottom: 0.8rem;
}

.sidebar-widget ol {
  list-style: none;
  padding: 0;
}
.sidebar-widget ol li { margin-bottom: 0.25rem; }
.sidebar-widget ol li a {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--ink-light);
  text-decoration: none;
  display: block;
  padding: 0.3rem 0;
  border-bottom: 1px dashed rgba(25,38,23,0.15);
  transition: color var(--transition);
  min-height: 44px;
  display: flex;
  align-items: center;
}
.sidebar-widget ol li a:hover { color: var(--ink); text-decoration: underline; }

.sidebar-rg { background: var(--ink); }
.sidebar-rg .rg-notice {
  font-size: 0.7rem;
  color: rgba(135,255,113,0.8);
  line-height: 1.5;
}

.sidebar-cta-box { background: var(--green); border-color: var(--ink); }
.sidebar-cta-label {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.6rem;
}
.sidebar-cta-btn {
  width: 100%;
  background: var(--ink);
  color: var(--green);
  border-color: var(--ink);
  font-size: 0.75rem;
}
.sidebar-cta-btn:hover {
  background: var(--ink-light);
  color: var(--green);
}

/* =========================================================
   PAGE CONTENT BODY
   ========================================================= */
.page-content-body {
  min-width: 0;
}

.page-content-body h2 {
  font-family: var(--font-mono);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--ink);
  margin-top: 2rem;
  margin-bottom: 0.25rem;
}

.page-content-body h2 + hr {
  border: none;
  border-top: 3px solid var(--green);
  margin-bottom: 1rem;
}

.page-content-body h3 {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--ink);
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.page-content-body h3 + hr {
  border: none;
  border-top: 2px dashed var(--yellow);
  margin-bottom: 0.75rem;
}

.page-content-body p {
  margin-bottom: 1rem;
  max-width: 72ch;
}

.page-content-body a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--green);
  text-underline-offset: 3px;
}
.page-content-body a:hover {
  text-decoration-color: var(--yellow);
}

.page-content-body ul,
.page-content-body ol {
  padding-left: 1.4rem;
  margin-bottom: 1rem;
}
.page-content-body li { margin-bottom: 0.35rem; }

.page-content-body table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  overflow-x: auto;
  display: block;
}
.page-content-body th {
  background: var(--ink);
  color: var(--green);
  padding: 0.6rem 0.8rem;
  text-align: left;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.page-content-body td {
  padding: 0.55rem 0.8rem;
  border-bottom: 1px solid rgba(25,38,23,0.12);
}
.page-content-body tr:nth-child(even) td { background: var(--off-white); }

.page-content-body blockquote {
  border-left: 5px solid var(--green);
  background: var(--off-white);
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  font-style: italic;
}

/* =========================================================
   ARTICLE LAYOUT specifics
   ========================================================= */
.article-header {
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 3px solid var(--green);
}

.article-header h1 {
  font-family: var(--font-mono);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.25;
}

.article-hero-wrap {
  margin-bottom: 1.5rem;
}
.article-hero-img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
}

/* =========================================================
   CARDS + GRID
   ========================================================= */
.articles-grid-section {
  padding: 4rem 0 3rem;
  background: var(--off-white);
  border-top: 3px solid var(--ink);
}

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section-header {
  margin-bottom: 2rem;
}

.section-title {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.25rem;
}

.section-header hr {
  border: none;
  border-top: 3px solid var(--green);
  max-width: 80px;
}

.card-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--ink);
  color: var(--white);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: -15px;
  right: -15px;
  width: 50px;
  height: 50px;
  background: var(--yellow);
  transform: rotate(45deg);
  opacity: 0.35;
}

.card-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--yellow);
}

.card h3 {
  font-family: var(--font-mono);
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.3;
}
.card h3 a {
  color: var(--green);
  text-decoration: none;
}
.card h3 a:hover { color: var(--yellow); }

.card p {
  font-size: 0.88rem;
  color: rgba(248,255,246,0.75);
  line-height: 1.5;
  flex: 1;
}

.card-date {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: rgba(255,206,92,0.7);
}

.card-link {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--green);
  text-decoration: none;
  border-top: 1px dashed rgba(135,255,113,0.3);
  padding-top: 0.5rem;
  margin-top: auto;
  min-height: 44px;
  display: flex;
  align-items: center;
}
.card-link:hover { color: var(--yellow); }

/* Child cards div inside content */
.child-cards-section {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 2px solid var(--ink);
}
.child-cards-section h2 {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}
.child-cards-section hr {
  border: none;
  border-top: 3px solid var(--green);
  max-width: 60px;
  margin-bottom: 1.5rem;
}

/* =========================================================
   SLANT DIVIDER
   ========================================================= */
.slant-divider {
  height: 60px;
  background: var(--ink);
  clip-path: polygon(0 0, 100% 60%, 100% 100%, 0 100%);
  margin-top: 1rem;
}

/* =========================================================
   AUTHOR SECTION — about page
   ========================================================= */
.author-section {
  margin-bottom: 2.5rem;
}

.author-card {
  background: var(--ink);
  color: var(--white);
  padding: 2rem;
  position: relative;
  overflow: hidden;
}

.author-card::after {
  content: '';
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 100px;
  height: 100px;
  background: var(--green);
  transform: rotate(30deg);
  opacity: 0.15;
}

.author-identity {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.author-avatar-placeholder {
  width: 72px;
  height: 72px;
  flex-shrink: 0;
  background: var(--green);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

.author-identity h2 {
  font-family: var(--font-mono);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--green);
  margin-bottom: 0.2rem;
}

.author-identity hr {
  border: none;
  border-top: 2px solid var(--yellow);
  max-width: 50px;
  margin-bottom: 0.4rem;
}

.author-credentials {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--yellow);
  letter-spacing: 0.04em;
}

.author-bio {
  font-size: 0.95rem;
  color: rgba(248,255,246,0.85);
  line-height: 1.65;
}

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  background: var(--ink);
  color: var(--white);
  padding-top: 0;
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 3rem 1.5rem 2rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.footer-col dt {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--green);
  margin-bottom: 0.75rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid var(--green);
}

.footer-col dd {
  margin: 0;
  margin-bottom: 0.4rem;
  font-size: 0.85rem;
  line-height: 1.5;
  color: rgba(248,255,246,0.7);
}

.footer-col dd a {
  color: rgba(248,255,246,0.7);
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  transition: color var(--transition);
  font-size: 0.82rem;
}
.footer-col dd a:hover { color: var(--green); }

.rg-footer {
  font-size: 0.72rem !important;
  color: rgba(135,255,113,0.55) !important;
  line-height: 1.5;
  margin-top: 0.5rem;
}

.footer-bar {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 1rem 1.5rem;
  border-top: 1px solid rgba(135,255,113,0.2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: rgba(248,255,246,0.45);
}

.footer-bar-links {
  display: flex;
  gap: 1.25rem;
}
.footer-bar-links a {
  color: rgba(248,255,246,0.45);
  text-decoration: none;
  font-size: 0.72rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.footer-bar-links a:hover { color: var(--green); }

/* =========================================================
   SCROLL REVEAL ANIMATIONS
   ========================================================= */
@media (prefers-reduced-motion: no-preference) {
  .reveal-item {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.45s ease, transform 0.45s ease;
  }
  .reveal-item.is-visible {
    opacity: 1;
    transform: none;
  }
  .reveal-list .reveal-item:nth-child(2) { transition-delay: 0.08s; }
  .reveal-list .reveal-item:nth-child(3) { transition-delay: 0.16s; }
  .reveal-list .reveal-item:nth-child(4) { transition-delay: 0.24s; }
  .reveal-list .reveal-item:nth-child(5) { transition-delay: 0.32s; }
  .reveal-list .reveal-item:nth-child(6) { transition-delay: 0.40s; }
}

/* =========================================================
   MEMPHIS DECORATIVE PATTERNS
   ========================================================= */
.articles-grid-section::before {
  content: '';
  display: block;
  height: 6px;
  background: repeating-linear-gradient(
    90deg,
    var(--green) 0px,
    var(--green) 20px,
    var(--yellow) 20px,
    var(--yellow) 40px,
    var(--ink) 40px,
    var(--ink) 60px
  );
}

/* =========================================================
   RESPONSIVE — tablet (≤900px)
   ========================================================= */
@media (max-width: 900px) {
  main > .wrap > div > article {
    grid-template-columns: 180px 1fr;
    gap: 1.25rem;
  }
  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }
  .hero-section {
    grid-template-columns: 1fr;
    clip-path: polygon(0 0, 100% 0, 100% 95%, 0 100%);
  }
  .hero-collage { min-height: 280px; }
  .hero-copy {
    padding: 2rem 1.5rem 5rem;
    text-align: left;
  }
  .btn-primary { align-self: flex-start; }
  .hero-desc { margin-left: 0; }
}

/* =========================================================
   RESPONSIVE — mobile (≤768px)
   ========================================================= */
@media (max-width: 768px) {
  /* Nav collapse */
  .nav-toggle {
    display: flex;
  }

  .header-nav-row {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 200;
    border-top: 2px solid var(--green);
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  }

  .header-nav-row.nav-open {
    display: block;
  }

  .header-nav-row ol {
    flex-direction: column;
    flex-wrap: nowrap;
  }

  .header-nav-row ol li a {
    border-right: none;
    border-bottom: 1px solid rgba(135,255,113,0.1);
    padding: 0.9rem 1.25rem;
  }

  .site-header {
    position: sticky;
    top: 0;
    z-index: 100;
  }

  /* Brand row compact */
  .header-brand-row {
    padding: 0.5rem 1rem;
  }

  .brand {
    font-size: 0.9rem;
  }

  /* CTA compact */
  .cta {
    padding: 0.4rem 0.65rem;
    font-size: 0.7rem;
    min-height: 44px;
  }

  /* Layout: stack sidebar below */
  main > .wrap > div > article {
    grid-template-columns: 1fr;
  }

  .sidebar-left {
    position: static;
    order: 2;
  }

  .article-main,
  .page-content-body {
    order: 1;
  }

  /* Hero stacked */
  .hero-section {
    min-height: auto;
    padding-bottom: 3rem;
  }
  .hero-copy {
    padding: 1.5rem 1rem 3rem;
  }
  .hero-copy h1 {
    font-size: 1.5rem;
  }

  /* Page banner */
  .page-banner {
    padding: 1.5rem 1rem 2.5rem;
  }
  .page-banner h1 {
    font-size: 1.3rem;
  }

  /* Cards */
  .card-grid {
    grid-template-columns: 1fr;
  }

  /* Footer */
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    padding: 2rem 1rem;
  }

  .footer-bar {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
  }

  .footer-bar-links {
    flex-wrap: wrap;
    justify-content: center;
  }

  /* Author div */
  .author-identity {
    flex-direction: column;
  }

  /* Tables scroll */
  .page-content-body table {
    font-size: 0.8rem;
  }
}

/* =========================================================
   UTILITY
   ========================================================= */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}

a[data-cta],button[aria-controls]{min-height:44px;min-width:44px;box-sizing:border-box}main p a{text-decoration:underline}