/* Select American Homes
   Colors come from the logo: lime #b7d432, gray #a9abae, black.
   The logo has black lettering, so it always sits on a white surface. */

@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope.woff2") format("woff2");
  font-weight: 500 800;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("../fonts/inter.woff2") format("woff2");
  font-weight: 400 600;
  font-display: swap;
}

:root {
  color-scheme: light;

  --ink: #14160f;
  --ink-2: #1f2218;
  --ink-soft: #3f4238;
  --muted: #5f6257;
  --line: #e2e4da;
  --paper: #ffffff;
  --mist: #f4f5ef;
  --lime: #b7d432;
  --lime-hover: #c6e041;
  --lime-deep: #536709;
  --lime-tint: #eef4cf;
  --on-ink: #ffffff;
  --on-ink-soft: #c9ccbf;
  --on-ink-line: #33362b;

  --font-head: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;

  --gutter: clamp(20px, 5vw, 48px);
  --section: clamp(80px, 10vw, 136px);
  --radius: 20px;
  --radius-lg: 32px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 12px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink-soft);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img,
svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

ul,
ol,
dl,
dd,
figure,
blockquote {
  margin: 0;
  padding: 0;
}

ul,
ol {
  list-style: none;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-head);
  font-weight: 800;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.75rem, 1.7rem + 4vw, 4.75rem);
  line-height: 1.03;
}

h2 {
  font-size: clamp(2.125rem, 1.5rem + 2.9vw, 3.75rem);
  line-height: 1.06;
}

h3 {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

p {
  margin: 0;
}

a {
  color: inherit;
  text-underline-offset: 3px;
}

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

.hero :focus-visible,
.section-ink :focus-visible,
.site-footer :focus-visible {
  outline-color: var(--lime);
}

.container {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--on-ink);
}

.skip-link:focus {
  top: 12px;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 20px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--lime-tint);
  color: var(--lime-deep);
  font-family: var(--font-head);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.section-ink .eyebrow {
  background: rgba(183, 212, 50, 0.14);
  color: var(--lime);
}

.lead {
  margin-top: 22px;
  font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.3125rem);
  line-height: 1.55;
}

.lead a {
  color: var(--ink);
  font-weight: 500;
  text-decoration-color: var(--lime);
  text-decoration-thickness: 3px;
}

.section {
  padding-block: var(--section);
}

.section-mist {
  background: var(--mist);
}

.section-ink {
  background: var(--ink);
  color: var(--on-ink-soft);
}

.section-ink h2 {
  color: var(--on-ink);
}

.section-head {
  max-width: 820px;
  margin-bottom: clamp(40px, 5vw, 72px);
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 12px 28px;
  border: 0;
  border-radius: 999px;
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.25s var(--ease);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn svg {
  transition: transform 0.25s var(--ease);
}

.btn:hover svg {
  transform: translateX(4px);
}

.btn-lime {
  background: var(--lime);
  color: var(--ink);
}

.btn-lime:hover {
  background: var(--lime-hover);
}

.btn-dark {
  background: var(--ink);
  color: var(--on-ink);
}

.btn-dark:hover {
  background: #2d3024;
}

.btn-ghost {
  border: 1.5px solid rgba(255, 255, 255, 0.32);
  color: var(--on-ink);
}

.btn-ghost:hover {
  border-color: var(--on-ink);
}

.link-arrow,
.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  /* The ring keeps the dark button visible over dark sections too */
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.85), 0 10px 26px rgba(20, 22, 15, 0.22);
  color: var(--on-ink);
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.link-arrow:hover,
.nav-toggle:hover,
.nav-toggle[aria-expanded="true"] {
  background: var(--lime);
  color: var(--ink);
}

/* Floating logo and menu button. The logo keeps its own white plate. */

.site-header {
  position: fixed;
  top: 12px;
  right: var(--scrollbar-width, 0px);
  left: 0;
  z-index: 50;
  padding-inline: clamp(12px, 3vw, 32px);
  pointer-events: none;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 1208px;
  margin-inline: auto;
}

.brand,
.nav-toggle,
.link-arrow {
  position: relative;
  z-index: 2;
  pointer-events: auto;
}

.brand {
  flex: none;
  display: block;
  padding: 7px 18px;
  border-radius: 20px;
  background: var(--paper);
  box-shadow: 0 10px 26px rgba(20, 22, 15, 0.14);
}

.brand img {
  width: auto;
  height: 52px;
}

.nav-toggle-bars,
.nav-toggle-bars::before {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.25s var(--ease);
}

.nav-toggle-bars {
  position: relative;
  transform: translateY(-3px);
}

.nav-toggle-bars::before {
  content: "";
  position: absolute;
  top: 6px;
  left: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars {
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before {
  transform: translateY(-6px) rotate(-90deg);
}

/* Full-screen menu */

.site-nav {
  position: fixed;
  inset: 0;
  z-index: 1;
  overflow-y: auto;
  background:
    radial-gradient(60% 70% at 90% 100%, rgba(183, 212, 50, 0.2) 0%, rgba(183, 212, 50, 0) 70%),
    var(--ink);
  color: var(--on-ink-soft);
  pointer-events: auto;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s;
}

.site-nav.is-open {
  opacity: 1;
  visibility: visible;
}

.menu-inner {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  align-items: end;
  gap: 32px 48px;
  min-height: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding: 104px var(--gutter) 40px;
}

.menu-links a {
  display: inline-block;
  padding-block: 0.1em;
  color: var(--on-ink);
  font-family: var(--font-head);
  font-size: clamp(1.875rem, min(7.5vh, 9vw), 4.25rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.12;
  text-decoration: none;
  transition: color 0.2s ease, transform 0.3s var(--ease);
}

.menu-links a:hover,
.menu-links a:focus-visible {
  color: var(--lime);
  transform: translateX(10px);
}

.menu-side p,
.menu-side a {
  display: block;
  overflow-wrap: anywhere;
}

.menu-side a {
  padding-block: 5px;
  color: var(--on-ink);
  font-weight: 500;
  text-decoration: none;
}

.menu-side a:hover {
  color: var(--lime);
}

.menu-side-title {
  margin-top: 24px;
  margin-bottom: 6px;
  color: var(--lime);
  font-family: var(--font-head);
  font-size: 0.875rem;
  font-weight: 700;
}

.menu-side-title:first-child {
  margin-top: 0;
}

html.menu-open,
html.menu-open body {
  overflow: hidden;
}

/* Without script the button can't work, so the links simply show as a list */
html:not(.js) .site-header {
  position: absolute;
}

html:not(.js) .nav-toggle,
html:not(.js) .menu-side {
  display: none;
}

html:not(.js) .site-nav {
  position: static;
  padding: 10px 20px;
  border-radius: 20px;
  background: var(--paper);
  opacity: 1;
  visibility: visible;
}

html:not(.js) .menu-inner {
  display: block;
  min-height: 0;
  padding: 0;
}

html:not(.js) .menu-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
}

html:not(.js) .menu-links a {
  color: var(--ink);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0;
}

/* Hero */

.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(128px, 13vw, 176px) clamp(88px, 8vw, 112px);
  background:
    radial-gradient(60% 70% at 12% 0%, rgba(183, 212, 50, 0.2) 0%, rgba(183, 212, 50, 0) 70%),
    var(--ink);
  color: var(--on-ink-soft);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(40px, 5vw, 72px);
  padding-left: max(var(--gutter), calc((100% - 1240px) / 2 + var(--gutter)));
}

.hero h1 {
  color: var(--on-ink);
}

.hero h1 em {
  color: var(--lime);
  font-style: normal;
}

.hero-tag {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  margin-bottom: 24px;
  padding: 7px 16px 7px 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: var(--on-ink);
  font-family: var(--font-head);
  font-size: 0.875rem;
  font-weight: 600;
}

.pulse {
  position: relative;
  width: 9px;
  height: 9px;
  margin-right: 2px;
  border-radius: 50%;
  background: var(--lime);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

.hero-media {
  position: relative;
}

.hero-media > img {
  width: 100%;
  aspect-ratio: 5 / 4;
  max-height: 640px;
  border-radius: var(--radius-lg) 0 0 var(--radius-lg);
  object-fit: cover;
  object-position: 58% 60%;
}

.hero-card {
  position: absolute;
  bottom: -36px;
  left: -36px;
  padding: 20px 26px 20px 22px;
  border-radius: var(--radius);
  background: var(--lime);
  box-shadow: 0 22px 44px rgba(0, 0, 0, 0.35);
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.55;
}

.hero-card strong {
  display: block;
  margin-bottom: 8px;
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.hero-card li {
  position: relative;
  padding-left: 22px;
}

.hero-card li::before {
  content: "";
  position: absolute;
  top: 0.42em;
  left: 2px;
  width: 11px;
  height: 6px;
  border-bottom: 2px solid var(--ink);
  border-left: 2px solid var(--ink);
  transform: rotate(-45deg);
}

/* Ticker */

.ticker {
  overflow: hidden;
  background: var(--lime);
  color: var(--ink);
  font-family: var(--font-head);
  font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.3125rem);
  font-weight: 800;
  letter-spacing: -0.015em;
}

.ticker-track {
  display: flex;
  width: max-content;
}

.ticker ul {
  display: flex;
  flex: none;
}

.ticker li {
  display: flex;
  align-items: center;
  padding-block: 16px;
  white-space: nowrap;
}

.ticker li::after {
  content: "";
  width: 7px;
  height: 7px;
  margin-inline: clamp(24px, 3vw, 44px);
  border-radius: 50%;
  background: var(--ink);
}

/* Steps */

.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  counter-reset: step;
}

.steps li {
  display: flex;
  flex-direction: column;
  padding: 26px 24px 30px;
  border-radius: var(--radius);
  background: var(--mist);
  counter-increment: step;
  transition: background-color 0.3s ease, color 0.3s ease, translate 0.3s var(--ease);
}

.steps li::before {
  content: counter(step, decimal-leading-zero);
  margin-bottom: clamp(36px, 5vw, 72px);
  color: var(--lime-deep);
  font-family: var(--font-head);
  font-size: 2.75rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  transition: color 0.3s ease;
}

.steps h3 {
  font-size: 1.5rem;
  transition: color 0.3s ease;
}

.steps p {
  margin-top: 10px;
  font-size: 0.975rem;
  line-height: 1.55;
}

.steps li:hover {
  background: var(--ink);
  color: var(--on-ink-soft);
}

.steps li:hover::before {
  color: var(--lime);
}

.steps li:hover h3 {
  color: var(--on-ink);
}

/* Bento */

.bento {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.tile {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
  min-height: 300px;
  padding: 28px;
  border-radius: var(--radius);
  background: var(--paper);
  transition: translate 0.3s var(--ease), box-shadow 0.3s ease;
}

.tile:hover {
  box-shadow: 0 18px 40px rgba(20, 22, 15, 0.09);
}

.tile p {
  margin-top: 10px;
  font-size: 1rem;
  line-height: 1.55;
}

.tile-wide {
  grid-column: span 2;
}

.tile-wide h3 {
  font-size: clamp(1.5rem, 1.3rem + 0.9vw, 2.125rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.12;
}

.tile-wide p {
  max-width: 46ch;
  font-size: 1.0625rem;
}

.tile-lime {
  background: var(--lime);
  color: var(--ink);
}

.tile-ink {
  background: var(--ink);
  color: var(--on-ink-soft);
}

.tile-ink h3 {
  color: var(--on-ink);
}

.tile-figure {
  color: var(--ink);
  font-family: var(--font-head);
  font-size: clamp(4.5rem, 3rem + 5vw, 7.5rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 0.9;
}

.tile-icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--lime);
  color: var(--ink);
}

.tile-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Due diligence */

.numbers {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(40px, 6vw, 96px);
}

.numbers-media {
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.numbers-media img {
  width: 100%;
  aspect-ratio: 1 / 1.05;
  object-fit: cover;
  object-position: 50% 50%;
}

.numbers-list {
  margin-top: 32px;
}

.numbers-list > div {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  column-gap: 18px;
  padding-block: 20px;
  border-top: 1px solid var(--on-ink-line);
}

.numbers-list .tile-icon {
  grid-row: span 2;
}

.numbers-list dt {
  color: var(--on-ink);
  font-family: var(--font-head);
  font-size: 1.1875rem;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.numbers-list dd {
  margin-top: 2px;
  font-size: 1rem;
  line-height: 1.55;
}

/* Markets */

.route {
  margin-bottom: 14px;
  padding: clamp(20px, 3vw, 40px) clamp(16px, 3vw, 44px);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(50% 90% at 92% 10%, rgba(183, 212, 50, 0.18) 0%, rgba(183, 212, 50, 0) 70%),
    var(--ink);
}

.route-wide {
  width: 100%;
  height: auto;
}

.route-line {
  fill: none;
  stroke: var(--lime);
  stroke-width: 8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.route-border {
  stroke: #666a5b;
  stroke-width: 2;
  stroke-dasharray: 3 8;
  stroke-linecap: round;
}

.route-stop {
  fill: var(--ink);
  stroke: var(--on-ink);
  stroke-width: 3;
}

.route-city {
  fill: var(--ink);
  stroke: var(--lime);
  stroke-width: 6;
}

.route-state {
  fill: var(--on-ink-soft);
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.route-town {
  fill: var(--on-ink-soft);
  font-family: var(--font-body);
  font-size: 16px;
}

.route-label {
  fill: var(--on-ink);
  font-family: var(--font-head);
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.route-pill {
  fill: var(--lime);
}

.route-pill-text {
  fill: var(--ink);
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 800;
}

.route-mini {
  display: none;
  align-items: center;
  gap: 10px;
  color: var(--on-ink);
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 0.95rem;
}

.route-mini-line {
  position: relative;
  flex: 1;
  height: 6px;
  border-radius: 3px;
  background: var(--lime);
}

.route-mini-line span {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--on-ink-soft);
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
}

.market-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.market {
  padding: clamp(26px, 3.4vw, 44px);
  border-radius: var(--radius-lg);
  background: var(--mist);
}

.market h3 {
  font-size: clamp(1.625rem, 1.3rem + 1.1vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.market > p {
  margin-top: 12px;
  min-height: 3.3em;
}

.stats {
  margin-top: 26px;
}

.stats > div {
  display: grid;
  grid-template-columns: 8.5rem minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding-block: 16px;
  border-top: 1px solid #d8dacf;
}

.stats dt {
  color: var(--ink);
  font-family: var(--font-head);
  font-size: 2.125rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.stats dd {
  font-size: 0.975rem;
  line-height: 1.45;
}

.fine-print {
  margin-top: 22px;
  color: var(--muted);
  font-size: 0.8125rem;
  line-height: 1.55;
}

/* Gallery */

.gallery {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-rows: clamp(200px, 21vw, 300px);
  gap: 14px;
}

.gallery li {
  overflow: hidden;
  border-radius: var(--radius);
  grid-column: span 3;
}

.gallery li:nth-child(1) {
  grid-column: span 7;
  grid-row: span 2;
}

.gallery li:nth-child(2) {
  grid-column: span 5;
}

.gallery li:nth-child(3) {
  grid-column: span 5;
}

.gallery li:nth-child(n + 4) {
  grid-column: span 4;
}

.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}

.gallery li:hover img {
  transform: scale(1.05);
}

/* About */

.about {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: center;
  gap: clamp(40px, 7vw, 104px);
}

.about-media {
  position: relative;
}

.about-media::before {
  content: "";
  position: absolute;
  inset: 28px -20px -20px 28px;
  border-radius: 999px 999px var(--radius-lg) var(--radius-lg);
  background: var(--lime);
}

.about-media img {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 999px 999px var(--radius-lg) var(--radius-lg);
  object-fit: cover;
}

.about blockquote {
  margin-block: 30px;
}

.about blockquote p {
  color: var(--ink);
  font-family: var(--font-head);
  font-size: clamp(1.5rem, 1.25rem + 1.1vw, 2.125rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.about blockquote footer {
  margin-top: 10px;
  color: var(--lime-deep);
  font-size: 0.95rem;
  font-weight: 600;
}

.about-copy > p:not(.eyebrow) + p {
  margin-top: 16px;
}

/* Two-column layout with a sticky intro */

.split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: start;
  gap: clamp(40px, 7vw, 96px);
}

.split-intro {
  position: sticky;
  top: 112px;
}

/* FAQ */

.faq-list {
  display: grid;
  gap: 10px;
}

.faq-list details {
  border-radius: var(--radius);
  background: var(--paper);
}

.faq-list summary {
  position: relative;
  padding: 22px 76px 22px 26px;
  color: var(--ink);
  font-family: var(--font-head);
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.35;
  list-style: none;
  border-radius: var(--radius);
  cursor: pointer;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::before {
  content: "";
  position: absolute;
  top: 50%;
  right: 18px;
  width: 38px;
  height: 38px;
  margin-top: -19px;
  border-radius: 50%;
  background:
    linear-gradient(var(--ink), var(--ink)) center / 14px 2px no-repeat,
    linear-gradient(var(--ink), var(--ink)) center / 2px 14px no-repeat,
    var(--mist);
  transition: background-color 0.2s ease;
}

.faq-list details[open] summary::before {
  background:
    linear-gradient(var(--ink), var(--ink)) center / 14px 2px no-repeat,
    var(--lime);
}

.faq-body {
  padding: 0 26px 24px;
}

.faq-body ul {
  list-style: disc;
  padding-left: 20px;
}

.faq-body li + li {
  margin-top: 4px;
}

.faq-body a {
  color: var(--ink);
  font-weight: 500;
}

/* Contact */

.contact-panel {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  align-items: start;
  gap: clamp(32px, 5vw, 72px);
  padding: clamp(24px, 5vw, 72px);
  border-radius: var(--radius-lg);
  background: var(--lime);
  color: var(--ink);
}

.contact-copy h2 {
  font-size: clamp(2.25rem, 1.5rem + 3.2vw, 4.25rem);
}

.contact-copy .lead {
  color: var(--ink);
}

.contact-list {
  margin-top: 36px;
}

.contact-list li {
  padding-block: 14px;
  border-top: 1px solid rgba(20, 22, 15, 0.25);
}

.contact-list span {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
}

.contact-list a {
  display: inline-block;
  padding-block: 6px;
  color: var(--ink);
  font-family: var(--font-head);
  font-size: min(4.2vw, 1.375rem); /* keeps the full email address on one line */
  font-weight: 800;
  letter-spacing: -0.01em;
  overflow-wrap: anywhere;
  text-decoration: none;
}

.contact-list a:hover {
  text-decoration: underline;
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding: clamp(20px, 3vw, 36px);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 24px 50px rgba(83, 103, 9, 0.28);
}

.field-full {
  grid-column: 1 / -1;
}

.field label {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
  font-size: 0.925rem;
  font-weight: 500;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 50px;
  padding: 11px 14px;
  border: 1.5px solid #b9bcaf;
  border-radius: 12px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field textarea {
  display: block;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--ink);
  outline: none;
  box-shadow: 0 0 0 4px rgba(183, 212, 50, 0.55);
}

.form-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
}

.form-note {
  flex: 1 1 220px;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.45;
}

/* Footer */

.site-footer {
  padding-block: clamp(48px, 6vw, 80px) 32px;
  background: var(--ink);
  color: var(--on-ink-soft);
  font-size: 0.95rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 4fr) minmax(0, 3fr);
  gap: 32px;
}

.logo-plate {
  display: inline-block;
  margin-bottom: 18px;
  padding: 12px 18px;
  border-radius: 16px;
  background: var(--paper);
}

.logo-plate img {
  width: auto;
  height: 60px;
}

.footer-brand p {
  max-width: 34ch;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 24px;
}

.footer-links a,
.footer-contact a {
  display: inline-block;
  padding-block: 2px;
  color: var(--on-ink);
  text-decoration: none;
  overflow-wrap: anywhere;
}

.footer-links a:hover,
.footer-contact a:hover {
  color: var(--lime);
}

.footer-contact li + li {
  margin-top: 8px;
}

.footer-legal {
  margin-top: 40px;
  font-size: 0.8125rem;
  line-height: 1.55;
}

.footer-legal p {
  padding-top: 16px;
}

.footer-legal p:first-child {
  border-top: 1px solid var(--on-ink-line);
}

.footer-legal a {
  color: var(--on-ink);
}

/* Disclaimer page */

.legal-page {
  max-width: 780px;
  padding-block: 136px clamp(56px, 8vw, 96px);
}

.legal-page h1 {
  font-size: clamp(2.25rem, 1.7rem + 2.4vw, 3.5rem);
}

.legal-page h2 {
  margin-top: 40px;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
}

.legal-page p,
.legal-page ul {
  margin-top: 14px;
}

.legal-page ul {
  list-style: disc;
  padding-left: 22px;
}

.legal-page li + li {
  margin-top: 8px;
}

/* Motion, only for visitors who haven't asked to reduce it */

@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  }

  .js [data-reveal].is-in {
    opacity: 1;
    transform: none;
  }

  .js .steps li:nth-child(2),
  .js .bento li:nth-child(2),
  .js .bento li:nth-child(5),
  .js .market-grid .market:nth-child(2) {
    transition-delay: 0.08s;
  }

  .js .steps li:nth-child(3),
  .js .bento li:nth-child(3),
  .js .bento li:nth-child(6) {
    transition-delay: 0.16s;
  }

  .js .steps li:nth-child(4) {
    transition-delay: 0.24s;
  }

  .js .steps li:nth-child(5) {
    transition-delay: 0.32s;
  }

  /* Hover colors shouldn't wait on the reveal stagger */
  .js .steps li.is-in,
  .js .bento li.is-in {
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease), background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
  }

  .js .steps li.is-in:hover,
  .js .bento li.is-in:hover {
    transform: translateY(-4px);
    transition-delay: 0s;
  }

  .js .route-line {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    transition: stroke-dashoffset 1.8s var(--ease) 0.2s;
  }

  .js .route.is-in .route-line {
    stroke-dashoffset: 0;
  }

  .ticker-track {
    animation: ticker 38s linear infinite;
  }

  .ticker:hover .ticker-track {
    animation-play-state: paused;
  }

  .pulse::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: var(--lime);
    animation: pulse 2.2s ease-out infinite;
  }

  .hero-copy > *,
  .hero-media {
    animation: rise 0.9s var(--ease) both;
  }

  .hero-copy > :nth-child(2) {
    animation-delay: 0.08s;
  }

  .hero-copy > :nth-child(3) {
    animation-delay: 0.16s;
  }

  .hero-copy > :nth-child(4) {
    animation-delay: 0.24s;
  }

  .hero-media {
    animation-delay: 0.16s;
  }
}

/* Printouts should include sections that haven't been scrolled to */
@media print {
  .js [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }
}

@keyframes ticker {
  to {
    transform: translateX(-50%);
  }
}

@keyframes pulse {
  to {
    opacity: 0;
    transform: scale(3);
  }
}

/* Movement only: the hero stays visible even if an animation never runs */
@keyframes rise {
  from {
    transform: translateY(24px);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
  }
}

/* Laptop and small tablet */

@media (max-width: 1120px) {
  .bento {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tile {
    min-height: 260px;
  }

  /* Five columns get too narrow, so the steps become rows */
  .steps {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  .steps li {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
    column-gap: 12px;
    padding: 24px;
  }

  .steps li::before {
    grid-row: span 2;
    margin-bottom: 0;
  }
}

@media (max-width: 920px) {
  .hero-grid,
  .split,
  .numbers,
  .about,
  .contact-panel,
  .market-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-copy {
    padding-right: var(--gutter);
  }

  .hero-media > img {
    aspect-ratio: 3 / 2;
    max-height: none;
  }

  .hero-card {
    position: relative;
    bottom: auto;
    left: auto;
    width: fit-content;
    margin: -44px 0 0 16px;
  }

  .hero {
    padding-bottom: 56px;
  }

  .split-intro {
    position: static;
  }

  .about-media {
    max-width: 480px;
    margin-right: 20px;
  }

  .numbers-media img {
    aspect-ratio: 3 / 2;
  }

  .market > p {
    min-height: 0;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .menu-inner {
    grid-template-columns: minmax(0, 1fr);
    align-content: space-between;
    padding-top: 92px;
  }
}

/* Phone */

@media (max-width: 640px) {
  body {
    font-size: 1rem;
  }

  .brand {
    padding: 5px 13px;
    border-radius: 16px;
  }

  .brand img {
    height: 44px;
  }

  .nav-toggle,
  .link-arrow {
    min-height: 48px;
    padding-inline: 18px;
  }

  .hero-actions .btn {
    flex: 1 1 auto;
  }

  .hero-tag {
    font-size: 0.8125rem;
  }

  .steps li {
    grid-template-columns: 58px minmax(0, 1fr);
    column-gap: 8px;
    padding: 20px;
  }

  .steps li::before {
    font-size: 2rem;
  }

  .steps h3 {
    font-size: 1.3125rem;
  }

  .bento {
    grid-template-columns: minmax(0, 1fr);
  }

  .tile-wide {
    grid-column: auto;
  }

  .tile {
    gap: 28px;
    min-height: 0;
    padding: 24px;
  }

  .numbers-list > div {
    grid-template-columns: 44px minmax(0, 1fr);
    column-gap: 14px;
  }

  .numbers-list .tile-icon {
    width: 44px;
    height: 44px;
  }

  .route {
    padding: 38px 16px 22px;
  }

  .route-wide {
    display: none;
  }

  .route-mini {
    display: flex;
  }

  .stats > div {
    grid-template-columns: 6.25rem minmax(0, 1fr);
  }

  .stats dt {
    font-size: 1.625rem;
  }

  /* Swipeable photo strip that peeks the next image */
  .gallery {
    display: flex;
    gap: 12px;
    margin-inline: calc(var(--gutter) * -1);
    padding-inline: var(--gutter);
    overflow-x: auto;
    scroll-padding-inline: var(--gutter);
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .gallery::-webkit-scrollbar {
    display: none;
  }

  .gallery li,
  .gallery li:nth-child(n) {
    flex: 0 0 84%;
    aspect-ratio: 3 / 2;
    scroll-snap-align: start;
  }

  .faq-list summary {
    padding: 18px 64px 18px 20px;
    font-size: 1.0625rem;
  }

  .faq-list summary::before {
    right: 14px;
  }

  .faq-body {
    padding: 0 20px 20px;
  }

  .contact-panel {
    padding: 28px 20px 20px;
  }

  .contact-form {
    grid-template-columns: minmax(0, 1fr);
  }

  .form-foot .btn {
    width: 100%;
  }

  .form-note {
    flex-basis: 100%;
  }

  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-links {
    gap: 0 24px;
  }

  .footer-links a,
  .footer-contact a {
    padding-block: 9px;
  }

  .footer-contact li + li {
    margin-top: 0;
  }
}
