:root {
  --bg: #FFFFFF; --fog: #F4F4F4; --rule: #E6E6E6; --ink: #0A0A0A; --mute: #55595F;
  --green: #237A3F; --green-ink: #237A3F; --green-press: #1B6132; --green-soft: #EAF5EE;
  --ink-mute: #B8BCC2; --green-on-ink: #5FD98A; --error: #B42318;
  --display: 'Schibsted Grotesk', system-ui, sans-serif;
  --text: 'Hanken Grotesk', system-ui, sans-serif;
  --gutter: clamp(20px, 5vw, 48px);

  /* One type scale for the whole site; each step grows smoothly between a
     phone and a wide desktop. */
  --fs-xs: 13px;
  --fs-sm: 14px;
  --fs-ui: 15px;
  --fs-body: clamp(16px, 0.2vw + 15.2px, 17px);
  --fs-lede: clamp(17px, 0.45vw + 15.5px, 19px);
  --fs-h4: clamp(19px, 0.55vw + 17px, 22px);
  --fs-h3: clamp(21px, 0.7vw + 18.5px, 24px);
  --fs-h3l: clamp(22px, 1.1vw + 18px, 28px);
  --fs-h2: clamp(32px, 3vw + 20px, 56px);
  --fs-title: clamp(36px, 3.6vw + 22px, 64px);
  --fs-display: clamp(40px, 4.8vw + 22px, 84px);
  --lh-text: 1.55;
}
:root[data-theme="dark"] {
  --bg: #0A0A0A; --fog: #161616; --rule: #2A2A2A; --ink: #F5F5F5; --mute: #A7ABB1;
  --green: #5FD98A; --green-ink: #5FD98A; --green-soft: #10281A;
  --ink-mute: #55595F; --green-on-ink: #237A3F; --error: #F97066;
}

* { box-sizing: border-box; }
/* Author display rules would otherwise beat the hidden attribute. */
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink); font-family: var(--text);
  text-wrap: pretty; -webkit-font-smoothing: antialiased;
}
a { color: var(--ink); text-underline-offset: 3px; }
a:hover { color: var(--green-ink); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--green); outline-offset: 3px;
}
img { max-width: 100%; }
@media (max-width: 760px) { [data-hide-mobile] { display: none !important; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Navigation */
.nav {
  position: sticky; top: 0; z-index: 5; border-bottom: 1px solid var(--rule);
  background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(12px);
}
.nav-inner { max-width: 1200px; margin: 0 auto; padding: 16px var(--gutter); display: flex; align-items: center; gap: 22px; }
.nav a { white-space: nowrap; }
.nav-link { text-decoration: none; font-size: var(--fs-ui); }
.nav-link[aria-current="page"] { color: var(--green-ink); font-weight: 500; }

.logo {
  display: inline-flex; align-items: center; margin-right: auto; text-decoration: none; color: inherit;
  font-family: var(--display); font-weight: 500; font-size: var(--fs-h4); letter-spacing: -.03em;
}
.logo:hover { color: inherit; }
.logo-o {
  display: inline-grid; place-items: center; width: 17px; height: 17px; border: 2.5px solid currentColor;
  border-radius: 50%; vertical-align: -.08em; margin: 0 1px;
}
.logo-o i { width: 4px; height: 4px; background: var(--green); border-radius: 50%; }
.logo-sm { font-size: var(--fs-ui); margin: 0; }
.logo-sm .logo-o { width: 12px; height: 12px; border-width: 2px; }
.logo-sm .logo-o i { width: 3px; height: 3px; background: var(--green-on-ink); }

.theme-btn {
  width: 36px; height: 36px; border: 1px solid var(--rule); background: transparent; color: inherit;
  border-radius: 999px; cursor: pointer; display: grid; place-items: center; font-size: var(--fs-sm); flex: none;
}
.theme-btn:hover { background: #237A3F; color: #fff; border-color: #237A3F; }

/* Buttons */
.btn {
  display: inline-block; text-decoration: none; font: inherit; font-size: var(--fs-body); font-weight: 500;
  padding: 16px 28px; border-radius: 999px; border: 0; cursor: pointer;
}
.btn-sm { font-size: var(--fs-ui); padding: 10px 18px; }
.btn-md { font-size: var(--fs-body); padding: 14px 24px; }
.btn-primary { background: var(--ink); color: var(--bg); }
.btn-primary:hover { background: #237A3F; color: #fff; }
.btn-primary:active { background: var(--green-press); color: #fff; }
.btn-primary:disabled, .btn-primary:disabled:hover { opacity: .45; cursor: not-allowed; background: var(--ink); color: var(--bg); }
.btn-outline { border: 1px solid var(--rule); color: var(--ink); background: transparent; }
.btn-outline:hover { background: #237A3F; color: #fff; border-color: #237A3F; }
.btn-outline:active { background: var(--green-press); color: #fff; border-color: var(--green-press); }
.btn-green { background: var(--green-on-ink); color: var(--ink); }
.btn-green:hover { color: var(--ink); filter: brightness(1.1); }
.btn-green:active { filter: brightness(.95); }

/* Layout */
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }
.hero {
  padding: clamp(64px, 10vw, 140px) 0 clamp(48px, 6vw, 80px);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: 48px clamp(32px, 5vw, 80px); align-items: center;
}
.hero-img { margin: 0; }
.hero-img div { aspect-ratio: 3 / 2; max-height: 520px; width: 100%; border-radius: 20px; overflow: hidden; background: var(--fog); }
.hero-img img { width: 100%; height: 100%; object-fit: cover; display: block; }

.display {
  font-family: var(--display); font-weight: 500; font-size: var(--fs-display);
  line-height: 1; letter-spacing: -.035em; margin: 0;
}
.accent { color: var(--green-ink); }
.lede { font-size: var(--fs-lede); line-height: var(--lh-text); max-width: 44ch; margin: 28px 0 0; color: var(--mute); }
.ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 36px; align-items: center; }

.section { padding: clamp(72px, 9vw, 128px) 0; border-top: 1px solid var(--rule); }
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 48px clamp(32px, 6vw, 96px); }
.split-head { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 24px 48px; align-items: end; }
.h2 {
  font-family: var(--display); font-weight: 500; font-size: var(--fs-h2);
  line-height: 1.02; letter-spacing: -.03em; margin: 0;
}
.sub { font-size: var(--fs-body); line-height: var(--lh-text); max-width: 40ch; margin: 20px 0 0; color: var(--mute); }
.split-head .sub { margin: 0; max-width: 48ch; }

/* Definition rows */
.rows { margin: 0; display: grid; gap: 0; }
.rows > div {
  padding: 24px 0; border-top: 1px solid var(--rule);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 16px;
}
.rows > div:first-child { border-top-color: var(--ink); }
.rows > div:last-child { border-bottom: 1px solid var(--rule); }
.rows dt { font-family: var(--display); font-weight: 500; font-size: var(--fs-h4); letter-spacing: -.02em; }
.rows dd { margin: 0; font-size: var(--fs-body); line-height: var(--lh-text); color: var(--mute); }

/* Steps */
.steps {
  list-style: none; margin: 48px 0 0; padding: 0; font-feature-settings: 'tnum' 1;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 40px clamp(24px, 3vw, 40px);
}
.steps li { border-top: 2px solid var(--rule); padding-top: 20px; }
.steps li:first-child { border-top-color: var(--green); }
.steps h3 { font-family: var(--display); font-weight: 500; font-size: var(--fs-h3); line-height: 1.1; letter-spacing: -.02em; margin: 0; }
.steps p { font-size: var(--fs-body); line-height: var(--lh-text); margin: 12px 0 0; color: var(--mute); }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 16px; margin-top: 48px; }
.card { background: var(--fog); border-radius: 16px; padding: 32px 28px; display: flex; flex-direction: column; gap: 14px; }
.card h3 { font-family: var(--display); font-weight: 500; font-size: var(--fs-h3); line-height: 1.05; letter-spacing: -.025em; margin: 0; }
.card p { font-size: var(--fs-body); line-height: var(--lh-text); margin: 0; color: var(--mute); }
.card-dark { background: var(--ink); color: var(--bg); }
.card-dark h3 { color: var(--green-on-ink); }
.card-dark p { color: var(--ink-mute); }

.offer { border: 1px solid var(--rule); border-radius: 16px; padding: 32px 28px; display: flex; flex-direction: column; gap: 16px; }
.offer-title { font-family: var(--display); font-weight: 500; font-size: var(--fs-h3l); letter-spacing: -.025em; line-height: 1.05; }
.dots { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 10px; font-size: var(--fs-body); line-height: var(--lh-text); }
.dots li { display: flex; gap: 12px; }
.dots li::before { content: '·'; color: var(--green-ink); }
.offer .btn { margin-top: 8px; align-self: flex-start; }

/* Closing panel */
.panel {
  margin: clamp(24px, 4vw, 48px) 0 clamp(72px, 9vw, 128px); background: var(--ink); color: var(--bg);
  border-radius: 24px; padding: clamp(48px, 7vw, 96px) clamp(28px, 5vw, 80px);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 40px; align-items: center;
}
.panel h2 {
  font-family: var(--display); font-weight: 500; font-size: var(--fs-h2); line-height: 1.02;
  letter-spacing: -.035em; margin: 0; max-width: 16ch;
}
.panel p { font-size: var(--fs-lede); line-height: var(--lh-text); max-width: 44ch; margin: 20px 0 0; color: var(--ink-mute); }
.panel-cta { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; justify-self: end; }

/* Footer */
.footer { border-top: 1px solid var(--rule); }
.footer-inner {
  max-width: 1200px; margin: 0 auto; padding: 32px var(--gutter); display: flex; flex-wrap: wrap;
  gap: 12px 32px; font-size: var(--fs-sm); line-height: 22px; color: var(--mute); font-feature-settings: 'tnum' 1;
}
.footer-inner a { color: inherit; }
.footer-inner a:first-of-type { margin-left: auto; }

/* Placeholders the owner replaces with real assets */
.slot {
  display: grid; place-items: center; width: 100%; height: 100%; border: 1px dashed var(--rule);
  border-radius: 8px; color: var(--mute); font-size: var(--fs-xs); background: var(--fog);
}
.slot-circle { border-radius: 50%; }

/* Logos strip */
.logos {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 32px 40px;
  margin-top: 20px; padding-bottom: clamp(40px, 5vw, 64px); border-bottom: 1px solid var(--rule);
}
.logos > div { display: flex; align-items: center; min-height: 52px; }
.logos .slot-wrap { height: 52px; width: 160px; }
.logos .logo-img { height: 52px; width: auto; max-width: 180px; object-fit: contain; }
/* Logos are transparent. Trilogy's navy disappears on the dark ground, so
   it renders as a white silhouette there. */
:root[data-theme="dark"] .logos .logo-dark-invert { filter: brightness(0) invert(1); }
/* Logos with a light and a dark version: show the one for the theme. */
.logos .logo-on-dark { display: none; }
:root[data-theme="dark"] .logos .logo-on-light { display: none; }
:root[data-theme="dark"] .logos .logo-on-dark { display: block; }
.logos .wordmark {
  height: 52px; display: flex; align-items: center; font-family: var(--display); font-weight: 500;
  font-size: var(--fs-body); line-height: 1.15; letter-spacing: -.015em; color: var(--ink);
}
.logos span { font-size: var(--fs-sm); line-height: 20px; color: var(--mute); }
.muted-label { font-size: var(--fs-sm); color: var(--mute); }

/* Comparison table */
.table-wrap { margin-top: 48px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.compare { width: 100%; min-width: 760px; border-collapse: separate; border-spacing: 0; font-feature-settings: 'tnum' 1; }
.compare th { text-align: left; font-weight: 500; font-size: var(--fs-sm); padding: 16px 20px; color: var(--mute); border-bottom: 1px solid var(--ink); white-space: nowrap; }
.compare th:first-child { padding-left: 0; }
.compare th.us { font-size: var(--fs-ui); background: var(--ink); color: var(--bg); border-radius: 12px 12px 0 0; border-bottom: 0; }
.compare td { padding: 16px 20px; border-bottom: 1px solid var(--rule); font-size: var(--fs-body); color: var(--mute); white-space: nowrap; }
.compare td:first-child {
  padding-left: 0; color: var(--ink); white-space: normal;
  font-family: var(--display); font-weight: 500; font-size: var(--fs-lede); letter-spacing: -.015em;
}
.compare td.us { background: var(--ink); color: var(--bg); font-weight: 500; border-bottom-color: color-mix(in srgb, var(--bg) 15%, transparent); }
.compare tr.group td { padding: 28px 0 8px; font-size: var(--fs-xs); color: var(--mute); font-family: var(--text); font-weight: 400; border: 0; }
.compare tr.group td.us { border: 0; }
.yes { color: var(--green-ink); font-weight: 600; }
.us .yes { color: var(--green-on-ink); }
.no { color: var(--mute); }
.footnote { font-size: var(--fs-xs); line-height: 20px; margin: 16px 0 0; color: var(--mute); }

/* Testimonials */
.quote { margin: 0; background: var(--fog); border-radius: 16px; padding: 32px 28px; display: flex; flex-direction: column; gap: 24px; }
.quote blockquote { margin: 0; font-family: var(--display); font-weight: 500; font-size: var(--fs-h4); line-height: 1.3; letter-spacing: -.015em; }
.quote figcaption { display: flex; gap: 14px; align-items: center; margin-top: auto; }
.face { width: 48px; height: 48px; border-radius: 50%; overflow: hidden; flex: none; }
.who { font-size: var(--fs-body); font-weight: 500; }
.role { font-size: var(--fs-sm); color: var(--mute); }
.certs { display: flex; flex-wrap: wrap; gap: 16px 40px; align-items: center; margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--rule); }
.certs .slot-wrap { height: 48px; width: 120px; }

/* Forms */
.form-section {
  padding: clamp(56px, 8vw, 112px) 0 clamp(72px, 9vw, 128px);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 48px clamp(32px, 6vw, 96px); align-items: start;
}
.form-title { font-family: var(--display); font-weight: 500; font-size: var(--fs-title); line-height: 1.02; letter-spacing: -.035em; margin: 0; }
.form-intro { font-size: var(--fs-lede); line-height: var(--lh-text); max-width: 40ch; margin: 20px 0 0; color: var(--mute); }
.form { display: grid; gap: 16px; grid-column: span 2; max-width: 640px; }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 16px; }
.field { display: grid; gap: 6px; font-size: var(--fs-sm); color: var(--mute); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 16px; color: var(--ink); padding: 11px 14px; border: 1px solid var(--rule);
  border-radius: 10px; background: var(--bg);
}
.field textarea { resize: vertical; }
.form-foot { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; margin-top: 8px; }
.hint { font-size: var(--fs-sm); color: var(--mute); }
.error { margin: 0; font-size: var(--fs-ui); color: var(--error); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.done-mark { display: inline-grid; place-items: center; width: 48px; height: 48px; border: 4px solid var(--ink); border-radius: 50%; }
.done-mark i { width: 12px; height: 12px; background: var(--green); border-radius: 50%; }
.money { position: relative; display: block; }
.money span { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--ink); font-size: 16px; font-weight: 500; line-height: 1; pointer-events: none; }
.money input { width: 100%; padding-left: 30px; }

/* Call slot picker */
.picker { grid-column: span 2; max-width: 760px; display: grid; gap: 20px; }
.days { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; -webkit-overflow-scrolling: touch; }
.day, .time {
  font: inherit; color: var(--ink); background: transparent; border: 1px solid var(--rule); border-radius: 12px; cursor: pointer;
}
.day { flex: none; padding: 10px 14px; display: grid; gap: 2px; text-align: left; min-width: 76px; }
.day small { color: var(--mute); font-size: var(--fs-xs); }
.day strong { font-family: var(--display); font-weight: 500; font-size: var(--fs-lede); }
.times { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.time { padding: 12px 10px; font-size: var(--fs-body); font-feature-settings: 'tnum' 1; }
.day:hover, .time:hover { border-color: var(--green); }
.day[aria-pressed="true"], .time[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.day[aria-pressed="true"] small { color: inherit; opacity: .75; }
.picker-foot { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.link-btn { font: inherit; font-size: var(--fs-ui); color: var(--mute); background: none; border: 0; padding: 0; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.link-btn:hover { color: var(--green-ink); }
@media (max-width: 760px) { .picker { grid-column: auto; } }

.booking { grid-column: span 2; max-width: 760px; border: 1px solid var(--rule); border-radius: 16px; overflow: hidden; background: var(--fog); min-height: 640px; }
.booking iframe { width: 100%; height: 640px; border: 0; display: block; }
@media (max-width: 760px) { .form, .booking { grid-column: auto; } }

/* Careers */
.role-group { margin-top: 48px; }
.role-group-name { font-size: var(--fs-sm); color: var(--mute); padding-bottom: 12px; border-bottom: 1px solid var(--ink); }
.role-row { display: flex; flex-wrap: wrap; gap: 12px 32px; align-items: center; padding: 24px 0; border-bottom: 1px solid var(--rule); }
.role-row > div { flex: 1 1 240px; min-width: 0; }
.role-title { display: block; text-decoration: none; font-family: var(--display); font-weight: 500; font-size: var(--fs-h4); line-height: 1.15; letter-spacing: -.02em; }
.role-meta { font-size: var(--fs-sm); color: var(--mute); margin-top: 4px; }
.role-row p { margin: 0; flex: 2 1 320px; min-width: 0; font-size: var(--fs-body); line-height: var(--lh-text); color: var(--mute); }
.role-row .btn { flex: none; white-space: nowrap; }
.job-head { padding: clamp(48px, 7vw, 96px) 0 clamp(48px, 6vw, 72px); }
.back { font-size: var(--fs-sm); color: var(--mute); text-decoration: none; }
.job-kicker { font-size: var(--fs-sm); color: var(--green-ink); margin-top: 32px; }
.job-title { font-family: var(--display); font-weight: 500; font-size: var(--fs-title); line-height: 1.02; letter-spacing: -.035em; margin: 12px 0 0; max-width: 18ch; }
.job-desc { font-size: var(--fs-lede); line-height: var(--lh-text); max-width: 56ch; margin: 24px 0 0; color: var(--mute); }
.job-details { padding: clamp(48px, 6vw, 80px) 0; border-top: 1px solid var(--rule); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 40px clamp(32px, 6vw, 96px); }
.job-details h2 { font-family: var(--display); font-weight: 500; font-size: var(--fs-h3l); letter-spacing: -.025em; margin: 0; }
.job-details .dots { margin-top: 20px; gap: 12px; font-size: var(--fs-body); line-height: var(--lh-text); }

/* Long-form text */
.prose { max-width: 720px; margin: 0 auto; padding: clamp(48px, 8vw, 96px) var(--gutter) 96px; font-size: var(--fs-body); line-height: var(--lh-text); }
.prose h1 { font-family: var(--display); font-weight: 500; font-size: var(--fs-title); line-height: 1.04; letter-spacing: -.03em; margin: 0; }
.prose h2 { font-family: var(--display); font-weight: 500; font-size: var(--fs-h3); letter-spacing: -.02em; margin: 40px 0 0; }
.prose p { margin: 12px 0 0; }
.prose .updated { margin-top: 24px; color: var(--mute); }

/* Payment result */
.pay-state { max-width: 640px; }

/* Motion, from the design (Zer0Paper Website.dc.html). The JS in site.js
   marks elements; nothing is hidden unless JavaScript has run. */
[data-reveal] { opacity:0; transform:translateY(48px); filter:blur(8px); transition:opacity .9s cubic-bezier(.16,1,.3,1), transform 1.1s cubic-bezier(.16,1,.3,1), filter .9s cubic-bezier(.16,1,.3,1); will-change:transform,opacity; }
[data-reveal].in { opacity:1; transform:none; filter:none; }
.z0w { display:inline-block; overflow:hidden; vertical-align:top; padding:0 .02em .12em; margin:0 -.02em -.12em; }
.z0wi { display:inline-block; transform:translateY(110%) rotate(4deg); transform-origin:0 100%; transition:transform 1s cubic-bezier(.16,1,.3,1); }
[data-reveal-head].in .z0wi { transform:none; }
.z0f { transition:opacity .35s ease, color .35s ease; }
#z0-progress { position:fixed; top:0; left:0; height:3px; width:100%; background:#237A3F; transform-origin:0 50%; transform:scaleX(0); z-index:50; pointer-events:none; }
@media (prefers-reduced-motion:reduce) {
  .z0wi { transform:none; transition:none; } .z0f { opacity:1 !important; }
  [data-reveal], [data-reveal-head] { opacity:1; transform:none; filter:none; clip-path:none; transition:none; }
  #z0-progress { display:none; }
}

/* 404 */
.nf { min-height: 62vh; display: flex; flex-direction: column; justify-content: center; padding: 64px 0 96px; }
.nf-code {
  margin: 0 0 24px; font-family: var(--display); font-weight: 500; letter-spacing: -.05em; line-height: .9;
  font-size: clamp(96px, 22vw, 220px); display: flex; align-items: center;
}
.nf-o {
  display: inline-grid; place-items: center; width: .74em; height: .74em; margin: 0 .04em;
  border: .11em solid currentColor; border-radius: 50%;
}
.nf-o i { width: .16em; height: .16em; background: var(--green); border-radius: 50%; }

/* Mobile menu: the nav links hide below 760px; this button opens them. */
.menu-btn {
  display: none; width: 36px; height: 36px; border: 1px solid var(--rule); background: transparent; color: inherit;
  border-radius: 999px; cursor: pointer; place-items: center; padding: 0; flex: none;
}
.menu-btn span, .menu-btn span::before, .menu-btn span::after {
  display: block; width: 14px; height: 1.5px; background: currentColor; border-radius: 1px; position: relative;
  transition: transform .2s ease, opacity .2s ease;
}
.menu-btn span::before, .menu-btn span::after { content: ''; position: absolute; left: 0; }
.menu-btn span::before { top: -5px; }
.menu-btn span::after { top: 5px; }
.menu-btn[aria-expanded="true"] span { background: transparent; }
.menu-btn[aria-expanded="true"] span::before { transform: translateY(5px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span::after { transform: translateY(-5px) rotate(-45deg); }
.mobile-nav {
  position: absolute; left: 0; right: 0; top: 100%; background: var(--bg); border-bottom: 1px solid var(--rule);
  padding: 8px var(--gutter) 20px; display: grid;
}
.mobile-nav a { text-decoration: none; font-size: var(--fs-h4); padding: 14px 0; border-bottom: 1px solid var(--rule); }
.mobile-nav a:last-child { border-bottom: 0; }
.mobile-nav a[aria-current="page"] { color: var(--green-ink); }
@media (max-width: 760px) {
  .menu-btn { display: grid; }
  .nav-inner { gap: 10px; }
  .nav-inner > .btn-sm { padding: 9px 14px; font-size: var(--fs-sm); }
}
@media (max-width: 400px) {
  .nav-inner { gap: 8px; }
  .nav-inner > .btn-sm { padding: 9px 12px; font-size: var(--fs-xs); }
}
/* The smallest phones can't fit the nav button; the hero has the same link. */
@media (max-width: 350px) { .nav-inner > .btn-sm { display: none; } }
@media (min-width: 761px) { .mobile-nav { display: none !important; } .nav-wide { gap: 28px; } }
