/* Miru Advisors — site v6 (v4 design system + v5 content)
   Design tokens first; change a value here and it changes everywhere.
   Rules: /DESIGN.md at the repository root. */

@font-face {
  font-family: "Public Sans";
  src: url("../fonts/public-sans-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* color */
  --bg: #F8FAF9;
  --ink: #1C2A26;
  --body: #3F534D;
  --muted: #4A5D57;
  --green: #15453B;
  --sage: #87A797;
  --tint: #E8EFEA;
  --band: #F2F5F3;
  --line: #D9E2DD;
  --on-green: #F8FAF9;
  --on-green-soft: #C3D3CA;
  /* added tokens */
  --brand: #15453B;
  --btn-bg: #15453B;
  --btn-fg: #F8FAF9;
  --btn-hover: #0F362E;
  --surface: #FFFFFF;
  --surface-2: var(--tint);
  --line-strong: #C3D0C9;
  --dim: #A9B8B1;
  --hover: rgba(21, 69, 59, .08);
  --header-bg: rgba(248, 250, 249, .92);
  --on-green-hover: #E8EFEA;
  --on-sage: #0B2A23;
  /* type */
  --font: "Public Sans", "Helvetica Neue", Arial, sans-serif;
  --h1: clamp(2.25rem, 1.2rem + 4.2vw, 3.75rem);
  --h2: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem);
  --lead: clamp(1.4rem, 1rem + 1.7vw, 2.15rem);
  /* layout */
  --wrap: 1180px;
  --pad: clamp(20px, 4vw, 32px);
  --section: clamp(64px, 9vw, 104px);
  --radius: 4px;
  --ease: cubic-bezier(.22, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, dl, dd, ol, ul { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: var(--green); text-underline-offset: 4px; }
::selection { background: var(--sage); color: var(--on-sage); }
input, textarea { caret-color: var(--green); }
html { scrollbar-color: var(--line-strong) var(--bg); }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.num { font-variant-numeric: tabular-nums; }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 2px; }
[id] { scroll-margin-top: 92px; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad); }
.section { padding-block: var(--section); }
.rule-top { border-top: 1px solid var(--line); }
.h2 { font-size: var(--h2); font-weight: 600; line-height: 1.14; letter-spacing: -0.022em; text-wrap: balance; }
.muted { color: var(--body); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--brand); color: var(--on-green); padding: 10px 14px; border-radius: var(--radius); z-index: 100; }
.skip:focus { left: 8px; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 24px;
  background: var(--btn-bg); color: var(--btn-fg);
  border: 1.5px solid var(--btn-bg); border-radius: var(--radius);
  font: 500 1rem/1 var(--font); text-decoration: none; cursor: pointer;
  transition: background .2s, color .2s, transform .2s var(--ease);
}
.btn:hover { background: var(--btn-hover); border-color: var(--btn-hover); color: var(--btn-fg); }
.btn:active { transform: translateY(1px); }
.btn--ghost { background: var(--bg); color: var(--green); border-color: var(--green); }
.btn--ghost:hover { background: var(--tint); color: var(--green); border-color: var(--green); }
.btn--light { background: var(--on-green); color: var(--brand); border-color: var(--on-green); font-weight: 600; }
.btn--light:hover { background: var(--on-green-hover); border-color: var(--on-green-hover); color: var(--brand); }
.btn--sm { min-height: 44px; padding: 0 18px; font-size: .9375rem; }
.link { display: inline-block; padding-block: 10px; font-weight: 500; }

/* header */
.header {
  position: sticky; top: 0; z-index: 50;
  background: var(--header-bg);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
.header.is-stuck { border-bottom-color: var(--line); box-shadow: 0 8px 24px -22px rgba(21, 69, 59, .55); }
.header__in { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 16px; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo__icon { height: 42px; width: auto; }
.logo__word { height: 17px; width: auto; }
.logo__words { display: grid; gap: 6px; justify-items: stretch; }
.logo__words .logo__word { width: 100%; height: auto; }
.logo__adv { width: 100%; height: auto; }
.logo__words { width: 100px; }
.nav { display: flex; align-items: center; gap: 28px; font-size: .9375rem; }
.nav a:not(.btn) { color: var(--ink); text-decoration: none; padding-block: 12px; }
.nav a:not(.btn):hover { color: var(--green); text-decoration: underline; text-underline-offset: 6px; }
.menu-btn { display: none; }

/* hero */
.hero { padding-block: clamp(48px, 8vw, 88px) var(--section); display: grid; gap: clamp(40px, 6vw, 64px); }
.hero__top { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 32px 64px; align-items: end; }
.hero h1 { font-size: var(--h1); font-weight: 650; line-height: 1.06; letter-spacing: -0.04em; max-width: 13em; text-wrap: balance; }
:lang(ko) .hero h1 { letter-spacing: -0.03em; }
/* ASCII Manhattan skyline between the hero text and the phases: the page's one image */
.hero__skyline { margin: 0 0 calc(-1 * clamp(8px, 2vw, 24px)); }
.hero__skyline img { width: 100%; height: auto; }
.hero h1 .line { display: block; white-space: nowrap; } /* headline breaks are set by hand: one phrase per line */
@media (max-width: 380px) { .hero h1 .line { white-space: normal; } }
.hero__side { display: grid; gap: 22px; }
.hero__side p { font-size: 1.125rem; color: var(--body); max-width: 27em; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }

/* phases: the signature element */
.phases { display: grid; gap: 4px; }
.track { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px 12px; }
.track__rail, .track__fill { position: absolute; top: 20px; left: 12.5%; height: 2px; }
.track__rail { right: 12.5%; background: var(--line-strong); transform-origin: left; }
.track__fill { width: 75%; background: var(--green); transform-origin: left; transform: scaleX(var(--progress, 0)); transition: transform .6s var(--ease); }
.tab {
  position: relative; z-index: 1;
  display: grid; justify-items: center; align-content: start; gap: 12px;
  padding: 0 8px 22px; min-height: 44px;
  background: none; border: 0; color: var(--body);
  font: inherit; text-align: center; cursor: pointer;
}
.tab__dot {
  width: 40px; height: 40px; border-radius: 50%;
  border: 2px solid var(--green); background: var(--bg);
  transition: background .35s, transform .35s var(--ease), box-shadow .35s;
}
.tab__name { font-size: 1.3125rem; font-weight: 500; line-height: 1.2; letter-spacing: -0.012em; transition: color .25s; }
.tab__short { font-size: .875rem; line-height: 1.4; color: var(--muted); max-width: 15em; text-wrap: balance; }
.tab:hover .tab__dot { transform: scale(1.08); }
.tab.is-done .tab__dot { background: var(--green); }
.tab[aria-selected="true"] { color: var(--green); }
.tab[aria-selected="true"] .tab__dot { background: var(--sage); box-shadow: 0 0 0 6px rgba(135, 167, 151, .25); }
.tab[aria-selected="true"] .tab__name { font-weight: 600; }

.panel {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 48px;
  padding: clamp(24px, 4vw, 40px); background: var(--tint); border-radius: 8px;
}
.panel + .panel { margin-top: 12px; }
.js .panel[hidden] { display: none; }
.js .panel { margin-top: 0; }
.js .panel.is-entering > * { animation: panel-in .5s var(--ease) both; }
.js .panel.is-entering > *:nth-child(2) { animation-delay: .08s; }
.panel__count { font-size: .875rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.phases__note { margin-top: 14px; font-size: .9375rem; color: var(--muted); }
.panel h2 { font-size: 1.75rem; font-weight: 600; line-height: 1.15; letter-spacing: -0.02em; margin-top: 6px; }
.panel h3 { font-size: 1rem; font-weight: 600; margin-top: 18px; }
.panel p { color: var(--body); margin-top: 6px; }
.panel__get { display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start; gap: 20px; }
.panel__get h3 { margin-top: 4px; }
.no-js-hide { display: none; }
.js .no-js-hide { display: inline-flex; }

/* services */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 40px 64px; }
.split__head { display: grid; gap: 16px; align-content: start; max-width: 22em; }
.svc { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 40px; }
.svc dt { font-size: 1.125rem; font-weight: 600; }
.svc dd { margin-top: 4px; font-size: 1rem; color: var(--body); }
/* services: on pointer devices, the hovered service's title turns green and an underline draws in */
@media (hover: hover) {
  .svc dt { display: inline; padding-bottom: 3px; background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat; transition: color .25s, background-size .4s var(--ease); }
  .svc dd { transition: color .25s; }
  .svc > div:hover dt { color: var(--green); background-size: 100% 2px; }
  .svc > div:hover dd { color: var(--ink); }
}

/* who we work with */
.band { background: var(--band); border-block: 1px solid var(--line); }
.who__head { padding-bottom: 0; }
.who__note { font-size: 1.125rem; color: var(--body); }
/* client types drift left in a loop and fade at both edges; two identical lists make the loop seamless */
.marquee {
  margin-block: clamp(36px, 5vw, 56px) var(--section); overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, black 28%, black 72%, transparent);
  mask-image: linear-gradient(90deg, transparent, black 28%, black 72%, transparent);
}
.marquee__track { display: flex; width: max-content; animation: marquee 48s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__list { display: flex; flex: none; }
.marquee__list li {
  display: flex; align-items: center; gap: 1.1em; padding-right: 1.1em; white-space: nowrap;
  font-size: var(--lead); font-weight: 500; line-height: 1.3; letter-spacing: -0.015em; color: var(--ink);
}
.marquee__list li::before { content: ""; flex: none; width: .28em; height: .28em; border-radius: 50%; background: var(--sage); }

/* ledger rows: name left, description right, like a rent roll (experience, why) */
.ledger { border-top: 1px solid var(--ink); }
.ledger > div { display: grid; grid-template-columns: minmax(0, 15em) minmax(0, 1fr); gap: 6px 32px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.ledger dt { font-weight: 600; }
.ledger dd { color: var(--body); }
.band .ledger > div { border-bottom-color: var(--line-strong); }

/* faq */
.faq { border-top: 1px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 18px 0; min-height: 48px;
  font-size: 1.125rem; font-weight: 600; cursor: pointer; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 11px; height: 11px; border-right: 2px solid var(--green); border-bottom: 2px solid var(--green); transform: rotate(45deg) translate(-3px, -3px); transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(225deg) translate(-3px, -3px); }
.faq details p { padding-bottom: 20px; color: var(--body); max-width: 38em; }
.faq details[open] p { animation: panel-in .4s var(--ease) both; }

/* contact */
.contact { background: var(--brand); color: var(--on-green); color-scheme: light; } /* stays green in both themes */
.contact__in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 48px 80px; }
.contact h2 { font-size: clamp(1.9rem, 1.3rem + 2.4vw, 2.75rem); font-weight: 600; line-height: 1.1; letter-spacing: -0.025em; max-width: 14em; }
.contact__lead { margin-top: 16px; font-size: 1.125rem; color: var(--on-green-soft); max-width: 28em; }
.contact__act { margin-top: 28px; display: grid; gap: 6px; justify-items: start; }
.contact__act .btn { margin-bottom: 14px; }
.contact a:not(.btn) { color: var(--on-green); }
.contact__reply { font-size: .875rem; color: var(--on-green-soft); }
.form { display: grid; gap: 24px; align-content: start; }
.form__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 28px; }
.field { display: grid; gap: 6px; font-size: .9375rem; font-weight: 500; }
.field small { font-size: .8125rem; font-weight: 400; color: var(--on-green-soft); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 44px; padding: 8px 0;
  background: transparent; color: var(--on-green);
  border: 0; border-bottom: 1px solid var(--on-green-soft); border-radius: 0;
  font: 400 1rem/1.4 var(--font);
}
.field textarea { min-height: 104px; resize: vertical; }
.js .field--ref:not(.is-on) { display: none; }
.field select { -webkit-appearance: none; appearance: none; cursor: pointer; padding-right: 24px; background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-position: calc(100% - 11px) 55%, calc(100% - 5px) 55%; background-size: 6px 6px; background-repeat: no-repeat; }
.field select option { color: var(--ink); background: var(--bg); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom-color: var(--on-green); box-shadow: 0 1px 0 var(--on-green); }
.contact :focus-visible { outline-color: var(--on-green); }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: .9375rem; line-height: 1.5; color: var(--on-green-soft); cursor: pointer; }
.check input { flex: none; width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--on-green); }
.form .btn { justify-self: start; }
.form__status { font-size: .9375rem; color: var(--on-green); min-height: 1.4em; }

/* footer */
.footer { font-size: .9375rem; color: var(--muted); }
.footer__in { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr); gap: 40px 48px; padding-block: 64px 48px; }
.footer__brand { display: grid; gap: 28px; align-content: start; justify-items: start; }
.footer .footer__logo { display: flex; align-items: center; gap: 12px; padding: 0; }
.footer__logo img.on-light { width: 132px; height: auto; }
.footer__stack { width: 132px; }
.footer__stack img { width: 100%; margin: 0 auto; }
.footer__stack img:nth-child(1) { width: 52%; margin-bottom: 14%; }
.footer__stack img:nth-child(3) { margin-top: 8%; }
.footer h2 { font-size: .9375rem; font-weight: 600; color: var(--ink); }
.footer__col ul { margin-top: 10px; }
.footer a { display: inline-block; padding-block: 10px; color: var(--muted); text-decoration: none; }
.footer a:hover { color: var(--green); text-decoration: underline; }
.footer .social { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin: 6px 0 0 -10px; color: var(--ink); }
.footer__base { border-top: 1px solid var(--line); }
.footer__base .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0 28px; padding-block: 8px; font-size: .875rem; }

/* motion */
@keyframes panel-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes dot-in { from { transform: scale(.4); } 60% { transform: scale(1.12); } to { transform: none; } }
@keyframes draw-y { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes skyline-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes pop { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

.js .track__rail { animation: draw 1.2s cubic-bezier(.45, 0, .2, 1) .15s both; }
/* each phase appears as the rail reaches it */
.js .tab { animation: pop .55s var(--ease) both; animation-delay: calc(.15s + var(--i, 0) * .4s); }
.js .tab .tab__dot { animation: dot-in .5s var(--ease) both; animation-delay: calc(.15s + var(--i, 0) * .4s); }
.js .hero__top > * { animation: pop .7s var(--ease) both; }
.js .hero__top > *:nth-child(2) { animation-delay: .12s; }
.js .hero__skyline { animation: skyline-in 1.4s var(--ease) .1s both; }


@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .marquee__track { width: auto; flex-wrap: wrap; padding-inline: var(--pad); }
  .marquee__list { flex-wrap: wrap; }
  .marquee__list[aria-hidden] { display: none; }
}

/* tablet and phone */
@media (max-width: 860px) {
  .hero__top, .split, .panel, .contact__in { grid-template-columns: minmax(0, 1fr); }
  .footer__in { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* phases become a vertical timeline: dot and connector on the left, name and line on the right */
  .track { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .track__rail, .track__fill { display: none; }
  .tab {
    grid-template-columns: 40px minmax(0, 1fr); grid-template-areas: "dot name" "dot short";
    justify-items: start; align-items: center; column-gap: 16px; row-gap: 2px;
    padding: 0 0 24px; text-align: left;
  }
  .tab__dot { grid-area: dot; align-self: start; }
  .tab__name { grid-area: name; font-size: 1.125rem; }
  .tab__short { grid-area: short; max-width: none; }
  .tab:not(:last-of-type)::before, .tab:not(:last-of-type)::after {
    content: ""; position: absolute; left: 19px; top: 44px; bottom: 4px; width: 2px; transform-origin: top;
  }
  .tab:not(:last-of-type)::before { background: var(--line-strong); }
  .tab:not(:last-of-type)::after { background: var(--green); transform: scaleY(0); transition: transform .5s var(--ease); }
  .tab.is-done::after { transform: scaleY(1); }
  .js .tab:not(:last-of-type)::before { animation: draw-y .4s var(--ease) both; animation-delay: calc(.35s + var(--i, 0) * .4s); }
  .tab[aria-selected="true"] { color: var(--green); }
  .split__head { max-width: none; }
}
@media (max-width: 640px) {
  .menu-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; padding: 0; background: none; border: 0; color: var(--ink); cursor: pointer;
  }
  .menu-btn span, .menu-btn span::before, .menu-btn span::after { display: block; width: 22px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; }
  .menu-btn span { position: relative; }
  .menu-btn span::before, .menu-btn span::after { content: ""; position: absolute; left: 0; }
  .menu-btn span::before { top: -7px; }
  .menu-btn span::after { top: 7px; }
  .menu-btn[aria-expanded="true"] span { background: transparent; }
  .menu-btn[aria-expanded="true"] span::before { transform: translateY(7px) rotate(45deg); }
  .menu-btn[aria-expanded="true"] span::after { transform: translateY(-7px) rotate(-45deg); }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 4px;
    padding: 12px var(--pad) 20px; background: var(--bg); border-bottom: 1px solid var(--line);
    font-size: 1.0625rem;
  }
  .js .nav { display: none; }
  .js .nav.is-open { display: flex; }
  .nav .btn { margin-top: 8px; }
  .svc { grid-template-columns: minmax(0, 1fr); }
  .cta-row .btn { width: 100%; }
  .contact__act, .contact__act .btn, .form .btn { width: 100%; }
  .hero__skyline { margin-inline: calc(-1 * var(--pad)); }
  .form__grid, .ledger > div { grid-template-columns: minmax(0, 1fr); }
  .footer__in { grid-template-columns: minmax(0, 1fr); padding-block: 48px 32px; }
}

.nowrap { white-space: nowrap; }
html[lang="ko"] { --font: "Public Sans", "Pretendard Variable", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif; }
:lang(ko) body { word-break: keep-all; }
:lang(ko) .hero h1, :lang(ko) .h2 { line-height: 1.25; }

/* =========================================================
   Shared parts: header tools, language menu, dark mode,
   blog, resources and the unlock form
   ========================================================= */

/* header tools */
.header__in { gap: 12px; }
.nav { margin-left: auto; }
.header__tools { display: flex; align-items: center; gap: 4px; }
.theme-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; padding: 0;
  background: none; border: 0; border-radius: 50%; color: var(--ink); cursor: pointer;
  transition: background .2s;
}
.theme-btn:hover { background: var(--hover); }
.nav a.nav__lang { text-transform: none; letter-spacing: 0; font-size: .9375rem; }
[data-nav][hidden] { display: none !important; }
.on-dark { display: none !important; }

/* language menu (footer) */
.lang { position: relative; }
.lang summary { display: flex; align-items: center; gap: 8px; min-height: 44px; font-size: .875rem; color: inherit; cursor: pointer; list-style: none; }
.lang summary::-webkit-details-marker { display: none; }
.lang__menu { position: absolute; bottom: 48px; left: 0; z-index: 5; min-width: 220px; padding: 8px 0; background: var(--surface); border-radius: var(--radius); box-shadow: 0 12px 28px -12px rgba(0, 0, 0, .5), 0 0 0 1px var(--line); }
.lang__menu > * { display: block; padding: 11px 16px; font-size: .875rem; color: var(--ink); text-decoration: none; }
.footer .lang__menu a { display: block; padding-block: 11px; color: var(--ink); }
.lang__menu a:hover { background: var(--band); color: var(--green); }
.lang__menu span { font-weight: 600; }
.footer__lang .lang__menu { left: auto; right: 0; }

/* phone and tablet menu */
@media (max-width: 1100px) {
  .menu-btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; background: none; border: 0; color: var(--ink); cursor: pointer; }
  .menu-btn span, .menu-btn span::before, .menu-btn span::after { display: block; width: 22px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .3s var(--ease); }
  .menu-btn span { position: relative; }
  .menu-btn span::before, .menu-btn span::after { content: ""; position: absolute; left: 0; }
  .menu-btn span::before { top: -7px; }
  .menu-btn span::after { top: 7px; }
  .menu-btn[aria-expanded="true"] span { background: transparent; }
  .menu-btn[aria-expanded="true"] span::before { transform: translateY(7px) rotate(45deg); }
  .menu-btn[aria-expanded="true"] span::after { transform: translateY(-7px) rotate(-45deg); }
  .header__in { position: relative; }
  .header__tools { margin-left: auto; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%; margin: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    padding: 8px var(--pad) 20px; background: var(--bg); border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 30px -24px rgba(0, 0, 0, .4);
  }
  .js .nav { display: none; }
  .js .nav.is-open { display: flex; }
  .nav a:not(.btn) { padding-block: 12px; }
  .nav .btn { margin-top: 10px; }
  html:not(.js) .header__in { flex-wrap: wrap; }
  html:not(.js) .header__tools { display: none; }
  html:not(.js) .nav { position: static; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 0 20px; width: 100%; padding: 0; border: 0; box-shadow: none; }
}

/* blog and resources: lists */
.list { padding-block: clamp(56px, 8vw, 96px) var(--section); }
.list__head { display: grid; gap: 14px; max-width: 40em; }
.list__head h1 { font-size: var(--h2); font-weight: 600; line-height: 1.12; letter-spacing: -0.025em; }
.list__head p { font-size: 1.125rem; color: var(--body); }
.list__empty { color: var(--body); }
.cards { margin-top: clamp(32px, 5vw, 56px); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 56px; border-top: 1px solid var(--ink); }
.card { display: grid; gap: 10px; align-content: start; padding: 28px 0 32px; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.card:hover { color: var(--ink); }
.card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-size: .8125rem; color: var(--muted); }
.card__title { font-size: 1.375rem; font-weight: 600; line-height: 1.25; letter-spacing: -0.015em; text-wrap: balance; }
.card:hover .card__title { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 5px; }
.card__text { color: var(--body); }
.card__more { font-size: .875rem; font-weight: 600; color: var(--green); }
.tag { padding: 2px 10px; border: 1px solid var(--line); border-radius: 999px; font-size: .75rem; color: var(--muted); }
.badge { padding: 3px 10px; border-radius: 999px; background: var(--btn-bg); color: var(--btn-fg); font-size: .75rem; font-weight: 600; }
.badge--free { background: none; color: var(--green); box-shadow: inset 0 0 0 1px currentColor; }

/* blog and resources: one article */
.article { max-width: 760px; padding-block: clamp(40px, 6vw, 72px) var(--section); }
.article__back { display: inline-block; padding-block: 10px; margin-bottom: 18px; font-size: .875rem; font-weight: 500; text-underline-offset: 4px; }
.article h1 { margin-top: 14px; font-size: var(--h2); font-weight: 700; line-height: 1.12; letter-spacing: -0.028em; text-wrap: balance; }
.article__summary { margin-top: 16px; font-size: 1.25rem; line-height: 1.5; color: var(--body); }
.prose { margin-top: 36px; font-size: 1.0625rem; line-height: 1.7; }
.prose + .prose, .locked .prose { margin-top: 0; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { margin-top: 1.8em; font-size: 1.5rem; font-weight: 600; line-height: 1.25; letter-spacing: -0.015em; }
.prose h3 { margin-top: 1.5em; font-size: 1.1875rem; font-weight: 600; }
.prose p, .prose li { color: var(--body); }
.prose strong { color: var(--ink); font-weight: 600; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: .45em; }
.prose figure { margin: 1.6em 0; }
.prose figure img { width: 100%; border-radius: var(--radius); }
.prose figcaption { margin-top: 8px; font-size: .875rem; color: var(--muted); }
.prose blockquote { margin-inline: 0; padding-left: 18px; border-left: 3px solid var(--sage, #87A797); font-size: 1.1875rem; color: var(--ink); }
.article-cta { margin-top: 56px; padding: 28px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; background: var(--surface-2); border-radius: 8px; }
.article-cta h2 { font-size: 1.25rem; font-weight: 600; letter-spacing: -0.01em; }
.article-cta p { margin-top: 4px; color: var(--body); font-size: 1rem; }

/* the locked part of a resource */
.locked { position: relative; margin-top: 1.1em; }
.locked::before { content: ""; position: absolute; left: 0; right: 0; top: -90px; height: 90px; background: linear-gradient(to bottom, transparent, var(--bg)); pointer-events: none; }
.locked__blur { filter: blur(7px); opacity: .55; user-select: none; pointer-events: none; max-height: 640px; overflow: hidden; }
.gate {
  position: absolute; left: 50%; top: 24px; transform: translateX(-50%);
  width: min(100%, 460px); padding: 28px; display: grid; gap: 14px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .45);
}
.gate h2 { font-size: 1.5rem; font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; }
.gate > p { color: var(--body); font-size: 1rem; }
.gate__field { display: grid; gap: 6px; font-size: .875rem; font-weight: 500; }
.gate__field input, .gate__field select {
  width: 100%; min-height: 46px; padding: 0 12px;
  background: var(--bg); color: var(--ink); border: 1px solid var(--line-strong); border-radius: 6px;
  font: 400 1rem/1.3 var(--font);
}
.gate__field input:focus, .gate__field select:focus { outline: 2px solid var(--green); outline-offset: 1px; }
.gate .btn { width: 100%; margin-top: 4px; }
.gate p.gate__fine { font-size: .8125rem; color: var(--muted); }
.gate p.gate__status { font-size: .875rem; font-weight: 500; color: var(--ink); min-height: 1.3em; }
.gate p.gate__status:empty { display: none; }
.hp { position: absolute; left: -9999px; }
.unlocked { animation: unlocked .7s var(--ease) both; }
@keyframes unlocked { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.page { max-width: 760px; padding-block: clamp(56px, 8vw, 96px); }
.page h1 { font-size: var(--h2); font-weight: 700; letter-spacing: -0.025em; line-height: 1.14; }
.page h2 { margin-top: 36px; font-size: 1.25rem; font-weight: 600; }
.page p { margin-top: 12px; line-height: 1.65; color: var(--body); }
.page .btn { margin-top: 28px; }

@media (max-width: 760px) {
  .cards { grid-template-columns: minmax(0, 1fr); }
  .gate { position: relative; left: auto; top: auto; transform: none; width: 100%; padding: 22px; }
  .locked__blur { max-height: 220px; margin-top: 18px; }
  .locked { display: flex; flex-direction: column-reverse; }
  .article-cta .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .unlocked { animation: none; } }

/* =========================================================
   Dark mode. Follows the device setting, or the visitor's
   choice from the button in the header.
   ========================================================= */
:root[data-theme="dark"] { color-scheme: dark; --bg: #0E1C18; --ink: #ECF1EE; --body: #B5C3BC; --muted: #9BADA4; --green: #9CC5B1; --tint: #16302A; --band: #12251F; --line: #27433B; --line-strong: #35564C; --dim: #4F675E; --surface: #14271F; --btn-bg: #D5E4DB; --btn-fg: #0E1C18; --btn-hover: #FFFFFF; --hover: rgba(255, 255, 255, .08); --header-bg: rgba(14, 28, 24, .9); }
:root[data-theme="dark"] .on-light { display: none !important; }
:root[data-theme="dark"] .on-dark { display: block !important; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { color-scheme: dark; --bg: #0E1C18; --ink: #ECF1EE; --body: #B5C3BC; --muted: #9BADA4; --green: #9CC5B1; --tint: #16302A; --band: #12251F; --line: #27433B; --line-strong: #35564C; --dim: #4F675E; --surface: #14271F; --btn-bg: #D5E4DB; --btn-fg: #0E1C18; --btn-hover: #FFFFFF; --hover: rgba(255, 255, 255, .08); --header-bg: rgba(14, 28, 24, .9); }
  :root:not([data-theme="light"]) .on-light { display: none !important; }
  :root:not([data-theme="light"]) .on-dark { display: block !important; }
}
