/* Goodfront Web portfolio. Tokens and rationale: review/DESIGN-DIRECTION.md */
:root {
  --limewash: #ECECE7;
  --ink: #1C2723;
  --moss: #2F5640;
  --moss-deep: #234231;
  --lake: #D5E0E1;
  --forest: #16231D;
  --grey: #5D6661;
  --rule: rgba(28, 39, 35, 0.16);
  --on-forest: #E7EAE4;
  --on-forest-soft: #B9C3BC;

  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: clamp(16px, 4vw, 56px);
  --gap: clamp(16px, 2.2vw, 32px);
  --max: 1440px;
  --bar-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--bar-h) + 12px); }
body {
  margin: 0;
  background: var(--limewash);
  color: var(--ink);
  font: 400 1.125rem/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; margin: 0; letter-spacing: -0.012em; text-wrap: balance; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

:focus-visible { outline: 3px solid var(--moss); outline-offset: 3px; border-radius: 2px; }
.contact :focus-visible, .foot :focus-visible { outline-color: #A8C9B2; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: var(--gutter); top: -100px; z-index: 50;
  background: var(--ink); color: var(--limewash); padding: 12px 16px; border-radius: 4px; text-decoration: none;
}
.skip:focus { top: 10px; }

/* ---------- Header ---------- */
.bar { position: sticky; top: 0; z-index: 20; background: var(--limewash); }
.bar::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--rule); opacity: 0; transition: opacity .2s; }
.bar.is-scrolled::after { opacity: 1; }
.bar__inner {
  position: relative; z-index: 3; background: var(--limewash);
  max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter);
  min-height: var(--bar-h); display: flex; flex-wrap: wrap; align-items: center; gap: 4px clamp(16px, 2.5vw, 36px);
}
/* Wrapping only happens with enlarged text; the phone link and menu then drop to a second row, right-aligned. */
.nav { margin-left: auto; }
/* Logo: the wordmark framed by two printer's crop marks, the corners a layout is trimmed to. */
.brand { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; flex: none;
  font: 700 1.3125rem/1 var(--sans); letter-spacing: -0.012em; }
.brand__frame {
  position: relative; display: inline-flex; align-items: baseline; gap: 0.3em;
  /* Per-side padding measured against the letters' ink (tools/measure-logo.mjs): top to the ascenders,
     bottom to the baseline, sides to the outer strokes, so both crop marks sit the same distance from the type. */
  padding: 0.34em 0.462em 0.33em 0.432em; white-space: nowrap;
}
.brand__frame::before, .brand__frame::after { content: ""; position: absolute; width: 0.48em; height: 0.48em; border: 0 solid var(--moss); }
.brand__frame::before { left: 0; top: 0; border-width: 2px 0 0 2px; }
.brand__frame::after { right: 0; bottom: 0; border-width: 0 2px 2px 0; }
.brand__studio { font-weight: 400; color: var(--grey); }
.bar__call {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; flex: none;
  border: 1px solid rgba(28, 39, 35, 0.28); border-radius: 999px; text-decoration: none;
  font: 600 0.9375rem/1 var(--sans); font-variant-numeric: tabular-nums; letter-spacing: 0.01em; color: var(--ink);
  transition: border-color .15s, background-color .15s;
}
.bar__call:hover { border-color: var(--moss); background: rgba(47, 86, 64, 0.06); }
.bar__phone { color: var(--moss); flex: none; }
.bar__wa {
  display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; flex: none;
  border: 1px solid rgba(28, 39, 35, 0.28); border-radius: 50%; color: #128C4A;
  transition: border-color .15s, background-color .15s;
}
.bar__wa:hover { border-color: #128C4A; background: rgba(18, 140, 74, 0.07); }
.nav + .bar__wa { margin-right: calc(-1 * clamp(16px, 2.5vw, 36px) + 10px); }
.menu-button { flex: none; }
.nav__list { display: flex; gap: clamp(20px, 3vw, 40px); }
.nav__list a, .menu-button {
  font: 500 1rem/1 var(--sans); text-decoration: none; display: inline-flex; align-items: center; min-height: 44px;
}
.nav__list a:hover { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }

.menu-button {
  gap: 10px; padding: 0 4px 0 12px; margin-right: -4px; background: none; border: 0; color: var(--ink); cursor: pointer;
}
.menu-button__lines { position: relative; width: 20px; height: 12px; }
.menu-button__lines::before, .menu-button__lines::after {
  content: ""; position: absolute; left: 0; right: 0; height: 2px; background: currentColor; border-radius: 1px;
  transition: transform .2s ease, top .2s ease;
}
.menu-button__lines::before { top: 1px; }
.menu-button__lines::after { top: 9px; }
.menu-button[aria-expanded="true"] .menu-button__lines::before { top: 5px; transform: rotate(45deg); }
.menu-button[aria-expanded="true"] .menu-button__lines::after { top: 5px; transform: rotate(-45deg); }

.menu {
  position: absolute; left: 0; right: 0; top: 100%; z-index: 2;
  background: var(--limewash); padding: 8px var(--gutter) 28px; border-bottom: 1px solid var(--rule);
  max-height: calc(100dvh - var(--bar-h)); overflow-y: auto;
}
.menu__list a {
  display: flex; align-items: center; min-height: 56px; border-top: 1px solid var(--rule);
  font: 400 1.75rem/1.1 var(--serif); text-decoration: none;
}
.menu__contact { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--rule); color: var(--grey); line-height: 2.1; }
.menu__contact a { color: var(--moss); text-underline-offset: 4px; }
.menu-backdrop { position: fixed; inset: 0; background: rgba(22, 35, 29, 0.32); z-index: 1; }
.menu.is-open { animation: drop .18s ease-out both; }
@keyframes drop { from { opacity: 0; transform: translateY(-6px); } }

/* Without JS, or above phone width, the inline nav is used. */
.js .menu-button { display: none; }
@media (max-width: 639.98px) {
  .js .nav { display: none; }
  .js .menu-button { display: inline-flex; }
  .bar__inner { column-gap: 8px; }
  .brand { font-size: 1.1875rem; }
  .bar__wa { margin-left: auto; margin-right: 0 !important; }
  .bar__call { padding: 0 12px; font-size: 0.875rem; }
  .bar__phone { display: none; }
  .no-js .bar__call, .no-js .bar__wa { display: none; }
  .menu-button { width: 44px; justify-content: center; padding: 0; margin-right: -10px; }
  .menu-button__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
@media (max-width: 399.98px) {
  .brand { font-size: 1.0625rem; }
  .bar__inner { column-gap: 6px; }
  .bar__call { padding: 0 9px; }
}
@media (max-width: 359.98px) {
  .brand { font-size: 1.1875rem; }
  /* Narrowest phones: "Goodfront" alone so the phone number and menu still fit on one row. */
  .brand__studio { display: none; }
  .bar__wa { display: none; } /* WhatsApp stays one tap away in the menu and contact section */
  .bar__call { margin-left: auto; }
  .brand__frame { padding-right: 0.557em; } /* "Goodfront" ends on a t, which sits closer to its edge than "Web" */
  .bar__inner { column-gap: 6px; }
  .bar__call { padding: 0 9px; }
}

/* ---------- Shared ---------- */
.button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 24px;
  background: var(--moss); color: #fff; border-radius: 4px; text-decoration: none; font-weight: 500;
  transition: background-color .15s;
}
.button:hover { background: var(--moss-deep); }
.link {
  color: var(--moss); font-weight: 500; text-decoration: underline; text-decoration-thickness: 1px;
  text-underline-offset: 5px; display: inline-flex; align-items: center; min-height: 44px;
}
.link:hover { text-decoration-thickness: 2px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }

.pill {
  display: inline-block; font: 500 0.875rem/1 var(--sans); letter-spacing: 0.01em;
  padding: 5px 9px 6px; border: 1px solid currentColor; border-radius: 999px; margin-right: 8px; vertical-align: 1px;
  color: var(--moss);
}

/* Screenshot frames: real captures, a hairline edge, no device chrome. */
.shot {
  display: block; overflow: hidden; border-radius: 6px; background: #DADBD4;
  box-shadow: 0 0 0 1px rgba(28, 39, 35, 0.14);
}
.shot img { width: 100%; }
.shot--phone { border-radius: 16px; }
a.shot { transition: box-shadow .2s; }
a.shot:hover { box-shadow: 0 0 0 1px rgba(28, 39, 35, 0.4); }

/* Desktop + phone captures of one page. Grow factors equal each image's
   width/height ratio, so both share top and bottom edges at any width. */
.pair { display: flex; align-items: flex-start; gap: var(--gap); }
.pair .shot--desktop { flex: 1.6 1 0; min-width: 0; }
.pair .shot--phone { flex: 0.4621 1 0; min-width: 0; }

.wrap, .hero, .work, .all { max-width: var(--max); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }

.section-head {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 14px;
  align-items: end; margin-bottom: clamp(40px, 6vw, 88px);
}
.section-head h2 { grid-column: 1 / 7; font-size: clamp(2rem, 3.6vw, 3.25rem); line-height: 1.08; }
.section-head p { grid-column: 8 / 13; color: var(--grey); max-width: 46ch; }

/* ---------- Hero ---------- */
.hero { padding-top: clamp(28px, 5vw, 72px); }
.hero__copy {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 20px;
  align-items: end;
}
.hero h1 { grid-column: 1 / 8; font-size: clamp(2.375rem, 4.9vw, 4.375rem); line-height: 1.04; }
.hero__side { grid-column: 9 / 13; display: grid; gap: 18px; }
.hero__lede { font-size: clamp(1.125rem, 1.4vw, 1.25rem); max-width: 40ch; }
.hero__work { margin: clamp(32px, 4.5vw, 56px) 0 0; }
.hero__work .shot img { animation: settle .7s ease-out both; }
@keyframes settle { from { opacity: 0; } }
figcaption {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 24px;
  margin-top: 12px; font-size: 0.9375rem; color: var(--grey);
}
figcaption strong { color: var(--ink); font-weight: 600; }
figcaption a { color: var(--moss); font-weight: 500; text-underline-offset: 4px; min-height: 44px; display: inline-flex; align-items: center; }

/* ---------- Promises: four plain commitments, ruled columns, no icons ---------- */
.promises { max-width: var(--max); margin: 0 auto; padding: clamp(64px, 8vw, 112px) var(--gutter) 0; }
.promises__list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px var(--gap); }
.promises__list li { border-top: 2px solid var(--moss); padding-top: 20px; }
.promises h3 { font-size: clamp(1.375rem, 1.8vw, 1.625rem); line-height: 1.15; margin-bottom: 10px; }
.promises p { color: #3F4A45; max-width: 34ch; }

/* ---------- Featured work ---------- */
.work { padding-top: clamp(88px, 10vw, 152px); }
.feature {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap);
  align-items: end;
}
.feature + .feature { margin-top: clamp(80px, 10vw, 152px); }
.feature__media { grid-column: 1 / 9; grid-row: 1; }
.feature__text { grid-column: 9 / 13; grid-row: 1; padding-left: clamp(0px, 1.5vw, 24px); }
.feature--flip .feature__media { grid-column: 6 / 13; }
.feature--flip .feature__text { grid-column: 1 / 5; padding-left: 0; padding-right: clamp(0px, 1.5vw, 24px); }
.feature__text h3 { font-size: clamp(1.75rem, 2.4vw, 2.25rem); line-height: 1.1; margin: 16px 0 14px; }
.feature__text p:not(.tag) { max-width: 40ch; }
.feature__text .link { margin-top: 10px; }
.tag { font-size: 0.9375rem; color: var(--grey); }

/* ---------- Services ---------- */
.services { background: var(--lake); margin-top: clamp(112px, 13vw, 192px); }
.services__inner {
  max-width: var(--max); margin: 0 auto; padding: clamp(72px, 9vw, 136px) var(--gutter);
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap);
}
.services__head { grid-column: 1 / 5; grid-row: 1 / span 3; align-self: start; }
.services__head h2 { font-size: clamp(2rem, 3.6vw, 3.25rem); line-height: 1.08; margin-bottom: 18px; }
.services__head p { color: #46524C; max-width: 32ch; }
.service {
  grid-column: 6 / 13; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: var(--gap);
  padding: 28px 0 32px; border-top: 1px solid rgba(28, 39, 35, 0.22);
}
.service:last-child { border-bottom: 1px solid rgba(28, 39, 35, 0.22); }
.service h3 { font-size: clamp(1.375rem, 1.9vw, 1.75rem); line-height: 1.15; }
.service p { max-width: 52ch; }

/* ---------- All work ---------- */
.all { padding-top: clamp(96px, 12vw, 176px); padding-bottom: clamp(96px, 12vw, 176px); }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(40px, 4.5vw, 64px) var(--gap); }
.entry a { display: block; text-decoration: none; }
.entry__name { display: block; font: 400 1.4375rem/1.2 var(--serif); margin: 16px 0 6px; }
.entry__meta { display: block; font-size: 0.9375rem; color: var(--grey); }
.entry a:hover .entry__name { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.entry a:hover .shot { box-shadow: 0 0 0 1px rgba(28, 39, 35, 0.4); }
.entry a:focus-visible { outline-offset: 6px; }

/* ---------- Contact ---------- */
.contact { background: var(--forest); color: var(--on-forest); }
.contact__inner {
  max-width: var(--max); margin: 0 auto; padding: clamp(88px, 11vw, 168px) var(--gutter) clamp(72px, 8vw, 120px);
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 24px;
}
.contact__intro { grid-column: 1 / 6; }
.contact h2 { font-size: clamp(2.375rem, 4.6vw, 4.25rem); line-height: 1.03; }
.contact__lede { color: var(--on-forest-soft); max-width: 40ch; margin-top: 22px; }
.contact__ways { display: grid; gap: 22px; margin-top: clamp(28px, 4vw, 44px); }
.contact__ways li { display: grid; justify-items: start; gap: 2px; }
.contact__label { font-size: 0.9375rem; color: var(--on-forest-soft); }
.contact__ways a {
  font: 400 clamp(1.5rem, 2.4vw, 2rem)/1.2 var(--serif); color: #fff;
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 7px; text-decoration-color: rgba(255,255,255,.45);
  overflow-wrap: anywhere; min-height: 44px; display: inline-flex; align-items: center;
}
.contact__ways a:hover { text-decoration-color: #fff; }
.contact__wa { gap: 12px; }
.contact__wa .wa-icon { color: #4CD483; flex: none; }

/* ---------- Project form (opens a prefilled message; no server) ---------- */
.brief {
  grid-column: 7 / 13; align-self: start; display: grid; gap: 18px;
  border-top: 2px solid #8FC0A0; padding-top: 24px;
}
.brief h3 { font-size: clamp(1.5rem, 2.2vw, 1.875rem); line-height: 1.15; color: #fff; }
.brief fieldset { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.brief legend { color: var(--on-forest); font-weight: 500; margin-bottom: 10px; padding: 0; }
.brief fieldset label {
  position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px;
  border: 1px solid rgba(231, 234, 228, 0.32); border-radius: 999px; cursor: pointer; color: var(--on-forest); font-size: 1rem;
}
.brief fieldset input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.brief fieldset label:has(input:checked) { background: #E7EAE4; border-color: #E7EAE4; color: var(--forest); font-weight: 500; }
.brief fieldset label:has(input:focus-visible) { outline: 3px solid #A8C9B2; outline-offset: 2px; }
.brief__row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px var(--gap); }
.field { display: grid; gap: 6px; color: var(--on-forest); font-weight: 500; }
.field small { font-size: 0.9375rem; font-weight: 400; color: var(--on-forest-soft); }
.field input, .field textarea {
  width: 100%; font: 400 1.0625rem/1.4 var(--sans); color: #fff; background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(231, 234, 228, 0.3); border-radius: 6px; padding: 12px 14px; min-height: 48px;
}
.field textarea { resize: vertical; min-height: 112px; }
.field input::placeholder, .field textarea::placeholder { color: #93A099; }
.field input:focus, .field textarea:focus { outline: 3px solid #A8C9B2; outline-offset: 1px; border-color: #A8C9B2; }
.field [aria-invalid="true"] { border-color: #F2B8A0; }
.brief__error { color: #F6C7B3; font-weight: 500; }
.brief__send { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.button--wa { background: #1E8F52; gap: 10px; }
.button--wa:hover { background: #18773F; }
.button--ghost { background: transparent; color: #fff; border: 1px solid rgba(231, 234, 228, 0.45); }
.button--ghost:hover { background: rgba(255, 255, 255, 0.08); }
.brief button { font: 500 1rem/1 var(--sans); cursor: pointer; }
.brief__note { font-size: 0.9375rem; color: var(--on-forest-soft); max-width: 60ch; }

/* ---------- Footer ---------- */
.foot { background: var(--forest); color: var(--on-forest-soft); font-size: 1rem; }
.foot__inner, .foot__base { max-width: var(--max); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.foot__inner {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 40px;
  padding-top: clamp(48px, 6vw, 72px); padding-bottom: clamp(40px, 5vw, 64px);
  border-top: 1px solid rgba(231, 234, 228, 0.16);
}
.foot__brand { grid-column: 1 / 5; }
.foot__brand p { margin-top: 18px; max-width: 34ch; }
.foot__col:nth-of-type(1) { grid-column: 6 / 9; }
.foot__col:nth-of-type(2) { grid-column: 9 / 11; }
.foot__col:nth-of-type(3) { grid-column: 11 / 13; }
.foot h2 { font: 600 0.9375rem/1.2 var(--sans); color: var(--on-forest); margin-bottom: 12px; letter-spacing: 0; }
.foot ul { display: grid; gap: 0; }
.foot__col a { color: var(--on-forest); text-decoration: none; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; }
.foot__col a:hover { text-decoration: underline; text-underline-offset: 4px; }
.foot__wa .wa-icon { color: #4CD483; }
.foot__base {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 24px;
  padding-top: 20px; padding-bottom: 28px; font-size: 0.9375rem;
}
.foot__base p { max-width: 70ch; }
.foot__base a { color: var(--on-forest); text-underline-offset: 4px; min-height: 44px; display: inline-flex; align-items: center; }
.foot__base { border-top: 1px solid rgba(231, 234, 228, 0.12); }
.brand--light { color: #fff; margin-left: 0; }
.brand--light .brand__frame::before, .brand--light .brand__frame::after { border-color: #8FC0A0; }
.brand--light .brand__studio { color: var(--on-forest-soft); }
.contact__sms { font: 400 1rem/1.4 var(--sans) !important; color: var(--on-forest-soft) !important; min-height: 44px !important; text-underline-offset: 4px !important; }

/* ---------- Tablet ---------- */
@media (max-width: 1023.98px) {
  .hero h1 { grid-column: 1 / 13; }
  .hero__side { grid-column: 1 / 13; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 18px 32px; }
  .feature, .feature--flip { row-gap: 24px; }
  .feature__media, .feature--flip .feature__media { grid-column: 1 / 13; }
  .feature__text, .feature--flip .feature__text { grid-column: 1 / 13; grid-row: 2; padding: 0; }
  .feature__text { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); column-gap: var(--gap); align-items: start; }
  .feature__text .tag, .feature__text h3 { grid-column: 1; }
  .feature__text h3 { margin: 10px 0 0; }
  .feature__text p:not(.tag), .feature__text .link { grid-column: 2; }
  .feature__text p:not(.tag) { grid-row: 1 / span 2; }
  .feature__text .link { grid-row: 3; margin-top: 0; }
  .services__head { grid-column: 1 / 13; grid-row: auto; margin-bottom: 40px; }
  .service { grid-column: 1 / 13; }
  .section-head h2, .section-head p { grid-column: 1 / 13; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .promises__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact__intro, .brief { grid-column: 1 / 13; }
  .brief { margin-top: 32px; }
  .foot__brand { grid-column: 1 / 13; }
  .foot__col:nth-of-type(n) { grid-column: span 4; }
}

/* ---------- Phone ---------- */
@media (max-width: 639.98px) {
  :root { --bar-h: 60px; }
  body { font-size: 1.0625rem; }
  .hero__side { grid-template-columns: 1fr; }
  .hero h1 { font-size: clamp(2.125rem, 9.6vw, 2.75rem); }
  .feature__text { display: block; }
  .feature__text h3 { margin: 14px 0 10px; }
  .feature__text .link { margin-top: 6px; }
  .service { grid-template-columns: 1fr; row-gap: 10px; padding: 24px 0 26px; }
  .grid { grid-template-columns: 1fr; }
  .promises__list { grid-template-columns: 1fr; gap: 28px; }
  .promises__list li { padding-top: 16px; }
  .section-head { margin-bottom: 40px; }
  .foot__col:nth-of-type(n) { grid-column: span 6; }
  .foot__col:nth-of-type(1) { grid-column: 1 / 13; }
  .brief__row { grid-template-columns: 1fr; }
  .brief__send .button { width: 100%; }
  .foot__col a { min-height: 44px; }
  .foot__base { flex-direction: column; align-items: flex-start; }
}
/* Below 560px a phone capture beside the desktop one would be too small to read;
   the desktop capture takes the full width and each concept's own phone layout is one tap away. */
@media (max-width: 559.98px) {
  .pair .shot--phone { display: none; }
}

/* ---------- Landscape phones ---------- */
@media (max-height: 500px) and (orientation: landscape) {
  .bar { position: relative; }
  html { scroll-padding-top: 12px; }
  .menu { position: absolute; max-height: none; }
  .menu-backdrop { position: absolute; inset: 0 0 auto 0; height: 100vh; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Legal pages ---------- */
.legal { max-width: var(--max); margin: 0 auto; padding: clamp(40px, 6vw, 88px) var(--gutter) clamp(88px, 10vw, 140px); }
.legal__head { max-width: 46rem; margin-bottom: clamp(32px, 4vw, 56px); }
.legal h1 { font-size: clamp(2.25rem, 4.4vw, 3.5rem); line-height: 1.06; margin-bottom: 16px; }
.legal__meta { color: var(--grey); }
.legal__body { max-width: 46rem; }
.legal__body h2 { font-size: clamp(1.375rem, 2vw, 1.75rem); line-height: 1.2; margin: 40px 0 12px; }
.legal__body p, .legal__body li { max-width: 68ch; }
.legal__body p + p { margin-top: 14px; }
.legal__body ul { list-style: disc; padding-left: 1.25em; display: grid; gap: 8px; margin-top: 12px; }
.legal__body a { color: var(--moss); text-underline-offset: 4px; overflow-wrap: anywhere; }
