/* santamonicarealtorrankings.com, v2 "pier at dusk"
   Midnight / amber / ocean teal on white with a warm band tint.
   Outfit (display), Public Sans (body), Azeret Mono (labels). */

:root {
  --white: #FFFFFF;
  --band: #FFF7EF;
  --midnight: #141A2B;
  --midnight-deep: #0D1120;
  --amber: #F2A541;
  --amber-deep: #D98C25;
  --teal: #2E7F8E;
  --teal-deep: #236472;
  --ink: #121826;
  --muted: #5F6675;
  --line: rgba(18, 24, 38, .12);
  --line-strong: rgba(18, 24, 38, .22);
  --tint: rgba(18, 24, 38, .05);

  --f-display: 'Outfit', 'Avenir Next', 'Segoe UI', sans-serif;
  --f-body: 'Public Sans', 'Helvetica Neue', Arial, sans-serif;
  --f-label: 'Azeret Mono', 'SF Mono', Menlo, monospace;

  --page: 1440px;
  --gutter: 48px;
  --rail: 320px;
  --strip-h: 40px;
  --mast-h: 76px;
  --radius: 8px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 26px;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
ul, ol { list-style: none; }
a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--amber); }
b, strong { font-weight: 600; }
small { font-size: inherit; }

[id] { scroll-margin-top: calc(var(--mast-h) + 24px); }

:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 3px; }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 2000;
  padding: 10px 16px; background: var(--midnight); color: var(--white);
  font-family: var(--f-label); font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase;
  border-radius: 4px;
}
.skip:focus { top: 12px; }

/* ---------- Type system ---------- */
h1, h2, h3, .team__rank-no, .hero__stats dd, .steps__no, .rail__stats b, .market__value b {
  font-family: var(--f-display);
  font-weight: 700;
  color: var(--ink);
}
h1 { font-size: clamp(38px, 3.6vw, 54px); line-height: 1.08; letter-spacing: -1.2px; }
h2 { font-size: clamp(28px, 2.5vw, 34px); line-height: 1.15; letter-spacing: -0.6px; }
h3 { font-size: 23px; line-height: 1.2; letter-spacing: -0.3px; font-weight: 500; }

.lbl, .eyebrow {
  font-family: var(--f-label);
  font-weight: 500;
  font-size: 11.5px;
  line-height: 1.3;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow { color: var(--teal); margin-bottom: 14px; }
.eyebrow--amber { color: var(--amber); }

.wrap { width: 100%; max-width: var(--page); margin: 0 auto; padding: 0 var(--gutter); }

.band { padding: 104px 0; }
.band--tint { background: var(--band); }
.band--white { background: var(--white); }

.section-head { max-width: 760px; margin-bottom: 48px; }
.section-head__sub { margin-top: 16px; font-size: 17px; line-height: 28px; color: var(--muted); }

.arr { display: inline-block; font-size: .85em; transition: transform .2s ease; margin-left: 1px; }
a:hover .arr { transform: translate(2px, -2px); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 44px; padding: 0 20px; border-radius: 4px;
  font-family: var(--f-label); font-weight: 500; font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase;
  white-space: nowrap; text-decoration: none; transition: background-color .2s ease, color .2s ease;
}
.btn:hover { text-decoration: none; }
.btn--primary { background: var(--amber); color: var(--midnight); }
.btn--primary:hover { background: var(--amber-deep); }
.btn--secondary { background: var(--midnight); color: var(--white); }
.btn--secondary:hover { background: var(--midnight-deep); }

/* ---------- Top strip + masthead ---------- */
.strip { background: var(--midnight-deep); color: var(--white); height: var(--strip-h); }
.strip__inner { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.strip .lbl { color: rgba(255, 255, 255, .78); }
.strip__right { display: inline-flex; align-items: center; gap: 14px; }
.strip__dot { width: 4px; height: 4px; border-radius: 50%; background: var(--amber); }

.masthead {
  position: sticky; top: 0; z-index: 1000;
  background: var(--white); border-bottom: 1px solid var(--line);
  transition: box-shadow .2s ease;
}
.masthead.is-stuck { box-shadow: 0 8px 24px rgba(18, 24, 38, .08); }
.masthead__inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; height: var(--mast-h); }

.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; flex-shrink: 0; }
.brand:hover { text-decoration: none; }
.brand svg { flex-shrink: 0; border-radius: 8px; }
.brand__text { display: flex; flex-direction: column; gap: 3px; }
.brand__name { font-family: var(--f-display); font-weight: 500; font-size: 19px; line-height: 1; letter-spacing: -0.2px; white-space: nowrap; }
.brand__name b { font-weight: 700; }
.brand__tag { font-size: 10px; letter-spacing: 1.8px; color: var(--teal); }
.brand--light { color: var(--white); }
.brand--light .brand__tag { color: var(--amber); }

.masthead__nav ul { display: flex; gap: 4px; }
.masthead__link {
  display: inline-flex; align-items: center; height: var(--mast-h); padding: 0 12px;
  font-family: var(--f-label); font-weight: 500; font-size: 11.5px; letter-spacing: 1.6px; text-transform: uppercase;
  color: var(--ink); position: relative; text-decoration: none;
}
.masthead__link::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 0; height: 3px;
  background: var(--amber); transform: scaleX(0); transform-origin: left; transition: transform .2s ease;
}
.masthead__link:hover { text-decoration: none; color: var(--teal); }
.masthead__link:hover::after, .masthead__link.is-current::after { transform: scaleX(1); }
.masthead__cta { display: flex; gap: 10px; flex-shrink: 0; }

/* ---------- Hero ---------- */
.hero { background: var(--midnight); color: var(--white); padding: 88px 0 232px; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(900px 500px at 85% 30%, rgba(46, 127, 142, .28), transparent 65%);
  pointer-events: none;
}
.hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; position: relative; }
.hero h1 { color: var(--white); max-width: 14ch; }
.hero__lede { margin-top: 24px; font-size: 18px; line-height: 30px; color: rgba(255, 255, 255, .82); max-width: 58ch; }

.hero__check { margin-top: 32px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px 24px; max-width: 520px; }
.hero__check li {
  position: relative; padding-left: 20px;
  font-family: var(--f-label); font-size: 11.5px; letter-spacing: 1.6px; text-transform: uppercase; line-height: 18px;
  color: rgba(255, 255, 255, .88);
}
.hero__check li::before { content: ""; position: absolute; left: 0; top: 5px; width: 8px; height: 8px; border-radius: 2px; background: var(--amber); }

.hero__stats { margin-top: 40px; padding-top: 32px; border-top: 1px solid rgba(255, 255, 255, .18); display: flex; gap: 48px; flex-wrap: wrap; }
.hero__stats div { display: flex; flex-direction: column; gap: 6px; }
.hero__stats dd { font-size: 40px; line-height: 1; color: var(--white); font-weight: 500; letter-spacing: -1px; }
.hero__stats dt { font-family: var(--f-label); font-size: 11px; letter-spacing: 1.8px; text-transform: uppercase; color: rgba(255, 255, 255, .62); }

.hero__art {
  position: relative; aspect-ratio: 660 / 520; border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, .16);
  background: linear-gradient(180deg, #171E33 0%, #0F1424 62%, #0D1120 100%);
  overflow: hidden;
}
.hero__svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__corner { position: absolute; color: rgba(255, 255, 255, .7); font-size: 10.5px; letter-spacing: 1.8px; }
.hero__corner--tl { top: 20px; left: 24px; }
.hero__corner--tr { top: 20px; right: 24px; color: var(--amber); }
.hero__corner--bl { bottom: 20px; left: 24px; }
.hero__corner--br { bottom: 20px; right: 24px; }

/* ---------- Glance card (overlaps hero) ---------- */
.glance-band { padding: 0 0 104px; background: var(--white); }
.glance {
  position: relative; z-index: 2; margin-top: -160px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 24px 60px rgba(13, 17, 32, .22);
  padding: 40px 40px 28px;
}
.glance__head { margin-bottom: 24px; }
.glance__scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.glance__table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 22px; min-width: 820px; }
.glance__table th, .glance__table td { padding: 14px 12px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.glance__table th { font-family: var(--f-label); font-weight: 500; font-size: 10.5px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--line-strong); padding-top: 0; }
.glance__table tbody tr:last-child td { border-bottom: 0; }
.glance__table tbody tr:hover td { background: var(--tint); }
.glance__rank { font-family: var(--f-display); font-weight: 700; font-size: 20px; color: var(--amber); width: 64px; }
.glance__team a { color: var(--ink); font-weight: 600; }
.glance__brk { color: var(--muted); }
.glance__num { text-align: right !important; font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }
.glance__table th.glance__num { font-weight: 500; }
.glance__rating span { color: var(--muted); white-space: nowrap; }
.glance__note { margin-top: 18px; font-size: 13px; line-height: 20px; color: var(--muted); }

.intro { max-width: 760px; margin-top: 64px; font-size: 17px; line-height: 29px; }
.intro p + p { margin-top: 20px; }

/* ---------- About (primer) ---------- */
.primer__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 72px; align-items: start; }
.primer__text { margin-top: 20px; font-size: 17px; line-height: 29px; }
.primer__lead p + p { margin-top: 16px; }
.primer__source { margin-top: 24px; display: flex; flex-direction: column; gap: 6px; }
.primer__terms { border-top: 1px solid var(--line-strong); }
.primer__term { display: grid; grid-template-columns: 180px 1fr; gap: 24px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.primer__term dt { font-family: var(--f-display); font-weight: 500; font-size: 20px; line-height: 1.3; }
.primer__term dd { color: var(--ink); }

/* ---------- Teams + rail ---------- */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) var(--rail); gap: 48px; align-items: start; }
.layout__main { display: flex; flex-direction: column; gap: 32px; }
.layout__rail { position: sticky; top: calc(var(--mast-h) + 24px); }

.rail { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.rail__strip { background: var(--midnight); color: var(--white); padding: 14px 20px; display: flex; justify-content: space-between; }
.rail__strip .lbl { color: rgba(255, 255, 255, .85); }
.rail__strip--sub { background: var(--midnight-deep); }
.rail__index li a { display: grid; grid-template-columns: 36px 1fr auto; gap: 12px; align-items: center; padding: 13px 20px; color: var(--ink); border-bottom: 1px solid var(--line); font-size: 14px; line-height: 20px; }
.rail__index li a:hover { background: var(--tint); text-decoration: none; }
.rail__no { font-family: var(--f-display); font-weight: 700; font-size: 22px; color: var(--amber); line-height: 1; }
.rail__name { font-weight: 600; }
.rail__sides { font-family: var(--f-display); font-weight: 500; font-size: 16px; white-space: nowrap; }
.rail__sides small { font-family: var(--f-label); font-size: 10px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--muted); }
.rail__stats { display: grid; grid-template-columns: 1fr 1fr; }
.rail__stats div { padding: 18px 20px; border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; }
.rail__stats div:nth-child(2n) { border-right: 0; }
.rail__stats b { font-size: 24px; line-height: 1.1; font-weight: 500; letter-spacing: -0.5px; }
.rail__stats span { font-size: 12px; line-height: 17px; color: var(--muted); }
.rail__foot { padding: 14px 20px; font-size: 12px; color: var(--muted); }

.team { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 40px; }
.team__head { display: grid; grid-template-columns: auto 150px 1fr; gap: 28px; align-items: start; }
.team__rank { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 56px; }
.team__rank-no { font-size: 64px; line-height: 1; color: var(--amber); letter-spacing: -2px; }
.team__rank-of { font-family: var(--f-label); font-size: 10px; letter-spacing: 1.8px; text-transform: uppercase; color: var(--muted); }
.team__photo { width: 150px; height: 150px; border-radius: 6px; object-fit: cover; background: var(--tint); }
.team__photo--empty { display: flex; align-items: center; justify-content: center; border: 1px solid var(--line); background: var(--band); color: var(--muted); font-family: var(--f-display); font-weight: 500; font-size: 40px; letter-spacing: 1px; }
.team__ident { padding-top: 6px; min-width: 0; }
.team__name { font-size: 26px; font-weight: 700; letter-spacing: -0.5px; }
.team__brokerage { margin-top: 10px; font-family: var(--f-label); font-size: 11px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--muted); line-height: 18px; }
.team__brokerage span { margin: 0 4px; color: var(--amber); }
.team__lead { margin-top: 14px; font-size: 15px; }
.team__lead .lbl { display: inline-block; margin-right: 8px; }

.team__metrics { display: grid; grid-template-columns: 1fr 1.4fr 1.6fr 1.2fr; margin-top: 32px; border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line); }
.team__metrics > div { padding: 18px 20px 18px 0; display: flex; flex-direction: column; gap: 6px; border-right: 1px solid var(--line); margin-right: 20px; }
.team__metrics > div:last-child { border-right: 0; margin-right: 0; }
.team__metrics dt { font-family: var(--f-label); font-size: 10.5px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--muted); }
.team__metrics dd { font-size: 15px; line-height: 22px; }
.team__metrics .team__big { font-family: var(--f-display); font-weight: 700; font-size: 28px; line-height: 1.1; letter-spacing: -0.5px; }
.team__metrics .team__big small { display: block; margin-top: 4px; font-family: var(--f-body); font-weight: 400; font-size: 13px; line-height: 19px; letter-spacing: 0; color: var(--muted); }

.team__body { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 48px; margin-top: 32px; }
.team__body .lbl { display: block; margin-bottom: 10px; }
.team__stats li { position: relative; padding-left: 18px; font-size: 15px; line-height: 23px; }
.team__stats li + li { margin-top: 8px; }
.team__stats li::before { content: ""; position: absolute; left: 0; top: 9px; width: 6px; height: 6px; border-radius: 50%; background: var(--teal); }
.team__tags { margin-top: 24px; }
.team__tags ul { display: flex; flex-wrap: wrap; gap: 8px; }
.team__tags li { padding: 5px 11px; border-radius: 4px; background: var(--tint); font-size: 13px; line-height: 18px; font-weight: 600; }
.team__spec { margin-top: 24px; font-size: 15px; line-height: 23px; }
.team__bestfor { margin-top: 24px; padding: 16px 20px; border-left: 3px solid var(--amber); background: var(--band); font-size: 15px; line-height: 23px; border-radius: 0 4px 4px 0; }
.team__sales li { position: relative; padding-left: 18px; font-size: 15px; line-height: 23px; }
.team__sales li + li { margin-top: 8px; }
.team__sales li::before { content: ""; position: absolute; left: 0; top: 10px; width: 8px; height: 2px; background: var(--amber); }
.team__bio { margin-top: 24px; font-size: 15px; line-height: 25px; }
.team__links { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 10px 22px; }
.team__links a { font-family: var(--f-label); font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--teal); }

/* ---------- Compare (steps) ---------- */
.steps__list { display: grid; grid-template-columns: 1fr 1fr; gap: 40px 64px; }
.steps__item { display: grid; grid-template-columns: 64px 1fr; gap: 20px; align-items: start; padding-top: 24px; border-top: 1px solid var(--line-strong); }
.steps__no { font-size: 56px; line-height: 1; color: var(--midnight); opacity: .22; letter-spacing: -2px; }
.steps__head { font-size: 22px; margin-bottom: 10px; }
.steps__item p { font-size: 15px; line-height: 25px; }

/* ---------- Neighborhoods ---------- */
.hoods__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.hoods__tile { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 28px 30px; transition: border-color .2s ease, box-shadow .2s ease; }
.hoods__tile:hover { border-color: var(--teal); box-shadow: 0 12px 30px rgba(18, 24, 38, .08); }
.hoods__zip { display: inline-block; padding: 4px 9px; border-radius: 4px; background: var(--midnight); color: var(--amber); font-family: var(--f-label); font-size: 10.5px; letter-spacing: 1.5px; margin-bottom: 18px; }
.hoods__tile h3 { font-size: 21px; font-weight: 700; }
.hoods__tile p { margin-top: 10px; font-size: 14.5px; line-height: 23px; color: var(--muted); }

/* ---------- Market ---------- */
.market__scroll { overflow-x: auto; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.market__table { width: 100%; border-collapse: collapse; min-width: 760px; }
.market__table th, .market__table td { padding: 20px 24px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.market__table thead th { font-family: var(--f-label); font-weight: 500; font-size: 10.5px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--muted); padding: 16px 24px; background: var(--tint); }
.market__table tbody tr:last-child th, .market__table tbody tr:last-child td { border-bottom: 0; }
.market__table tbody th { font-weight: 600; font-size: 15px; line-height: 23px; width: 34%; }
.market__value b { display: block; font-size: 24px; line-height: 1.15; letter-spacing: -0.5px; font-weight: 700; white-space: nowrap; }
.market__value small { display: block; margin-top: 4px; font-size: 13px; line-height: 19px; color: var(--muted); }
.market__period { color: var(--muted); font-size: 14px; white-space: nowrap; }
.market__src { font-size: 14px; }
.market__note { margin-top: 24px; max-width: 760px; font-size: 14px; line-height: 23px; color: var(--muted); }

/* ---------- Map ---------- */
.mapwrap__frame { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--tint); }
.mapwrap__frame iframe { display: block; width: 100%; height: 460px; border: 0; }

/* ---------- FAQ ---------- */
.faq__list { max-width: 860px; border-top: 1px solid var(--line-strong); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 22px 0; cursor: pointer; list-style: none; font-family: var(--f-display); font-weight: 500; font-size: 19px; line-height: 1.35; }
.faq__q::-webkit-details-marker { display: none; }
.faq__q:hover { color: var(--teal); }
.faq__glyph { position: relative; flex-shrink: 0; width: 28px; height: 28px; border: 1px solid var(--line-strong); border-radius: 50%; }
.faq__glyph::before, .faq__glyph::after { content: ""; position: absolute; left: 50%; top: 50%; background: var(--ink); transform: translate(-50%, -50%); transition: transform .2s ease; }
.faq__glyph::before { width: 12px; height: 2px; }
.faq__glyph::after { width: 2px; height: 12px; }
.faq__item[open] .faq__glyph { background: var(--midnight); border-color: var(--midnight); }
.faq__item[open] .faq__glyph::before, .faq__item[open] .faq__glyph::after { background: var(--amber); }
.faq__item[open] .faq__glyph::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq__a { padding: 0 60px 26px 0; font-size: 16px; line-height: 27px; }

/* ---------- Footer ---------- */
.footer { background: var(--midnight); color: rgba(255, 255, 255, .8); padding: 80px 0 32px; }
.footer a { color: rgba(255, 255, 255, .85); }
.footer a:hover { color: var(--white); }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.4fr; gap: 48px; padding-bottom: 56px; border-bottom: 1px solid rgba(255, 255, 255, .14); }
.footer__brand p { margin-top: 20px; font-size: 14px; line-height: 23px; max-width: 36ch; }
.footer__title { font-size: 11px; color: var(--amber); margin-bottom: 18px; letter-spacing: 2px; }
.footer__col li { font-size: 14px; line-height: 22px; }
.footer__col li + li { margin-top: 8px; }
.footer__hoods span { font-family: var(--f-label); font-size: 10px; letter-spacing: 1px; color: rgba(255, 255, 255, .5); margin-left: 4px; }
.footer__teams a span { font-family: var(--f-display); font-weight: 700; color: var(--amber); margin-right: 6px; }
.footer__bottom { padding-top: 28px; display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: start; }
.footer__bottom p { font-size: 13px; line-height: 21px; color: rgba(255, 255, 255, .62); max-width: 88ch; }
.footer__links { white-space: nowrap; }
.footer__links > span { margin: 0 10px; color: var(--amber); }
.footer__links a { font-family: var(--f-label); font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; }

/* ---------- Responsive ---------- */
@media (max-width: 1240px) {
  :root { --rail: 288px; }
  .masthead__link { padding: 0 9px; letter-spacing: 1.2px; }
  .team__head { grid-template-columns: auto 140px 1fr; gap: 24px; }
}

@media (max-width: 1100px) {
  :root { --gutter: 32px; }
  .hero__grid { grid-template-columns: 1fr; gap: 48px; }
  .hero { padding: 64px 0 220px; }
  .hero h1 { max-width: 20ch; }
  .hero__art { max-width: 720px; }
  .layout { grid-template-columns: 1fr; }
  .layout__rail { position: static; }
  .primer__grid { grid-template-columns: 1fr; gap: 40px; }
  .hoods__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .masthead__cta .btn--secondary { display: none; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  :root { --mast-h: 64px; }
  .masthead__inner { height: auto; flex-wrap: wrap; gap: 0 16px; padding: 12px 0 0; }
  .brand { order: 1; }
  .masthead__cta { order: 2; margin-left: auto; }
  .masthead__nav { order: 3; width: 100%; margin: 6px calc(-1 * var(--gutter)) 0; padding: 0 var(--gutter); overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .masthead__nav::-webkit-scrollbar { display: none; }
  .masthead__nav ul { gap: 0; width: max-content; }
  .masthead__link { height: 44px; padding: 0 10px; }
  .masthead__link:first-child { padding-left: 0; }
  .masthead__link::after { left: 10px; right: 10px; }
  .masthead__link:first-child::after { left: 0; }
  [id] { scroll-margin-top: 130px; }
  .btn { height: 38px; padding: 0 14px; font-size: 11px; }
  .band { padding: 72px 0; }
  .team { padding: 28px; }
  .team__metrics { grid-template-columns: 1fr 1fr; }
  .team__metrics > div { border-right: 0; margin-right: 0; padding-right: 0; }
  .team__metrics > div:nth-child(odd) { border-right: 1px solid var(--line); padding-right: 20px; margin-right: 20px; }
  .team__metrics > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .team__body { grid-template-columns: 1fr; gap: 32px; }
  .steps__list { grid-template-columns: 1fr; gap: 32px; }
  .glance { padding: 28px 24px 20px; margin-top: -150px; }
}

@media (max-width: 640px) {
  :root { --gutter: 20px; }
  body { font-size: 15.5px; line-height: 25px; }
  .brand__name { font-size: 16px; white-space: normal; line-height: 1.1; }
  .brand__name b { display: block; }
  .brand__tag { display: none; }
  .brand svg { width: 30px; height: 30px; }
  .strip .strip__right .lbl:first-child { display: none; }
  .strip .strip__dot { display: none; }
  .hero { padding: 48px 0 200px; }
  .hero__check { grid-template-columns: 1fr 1fr; gap: 10px 16px; }
  .hero__check li { font-size: 10.5px; letter-spacing: 1.2px; }
  .hero__stats { gap: 20px 22px; margin-top: 32px; padding-top: 24px; }
  .hero__stats dd { font-size: 32px; }
  .hero__stats dt { font-size: 10px; letter-spacing: 1.4px; }
  .hero__corner { font-size: 9.5px; letter-spacing: 1.4px; }
  .hero__corner--tl, .hero__corner--bl { left: 16px; }
  .hero__corner--tr, .hero__corner--br { right: 16px; }
  .hero__corner--tr { display: none; }
  .glance { margin-top: -140px; padding: 24px 18px 16px; }
  .glance-band { padding-bottom: 72px; }
  .intro { margin-top: 48px; font-size: 16px; line-height: 27px; }
  .primer__term { grid-template-columns: 1fr; gap: 8px; padding: 20px 0; }
  .section-head { margin-bottom: 32px; }
  .team { padding: 22px 18px; }
  .team__head { grid-template-columns: auto 1fr; gap: 16px 20px; }
  .team__rank { min-width: 44px; }
  .team__rank-no { font-size: 48px; }
  .team__photo { width: 120px; height: 120px; }
  .team__ident { grid-column: 1 / -1; padding-top: 0; }
  .team__name { font-size: 23px; }
  .team__metrics { grid-template-columns: 1fr 1fr; margin-top: 24px; }
  .team__metrics .team__big { font-size: 24px; }
  .hoods__grid { grid-template-columns: 1fr; gap: 16px; }
  .hoods__tile { padding: 22px 20px 24px; }
  .mapwrap__frame iframe { height: 340px; }
  .faq__q { font-size: 17px; padding: 18px 0; }
  .faq__a { padding-right: 0; }
  .footer { padding-top: 56px; }
  .footer__grid { grid-template-columns: 1fr; gap: 36px; }
  .footer__bottom { grid-template-columns: 1fr; gap: 16px; }
  .footer__links { white-space: normal; }
}
