/* =============================================================================
   Rise Hollywood Hills — recruiting site
   Hand-written CSS, no build step. Palette is the Rise Group portal's own
   (bg #0f0f0f, surface #1f1d1a, accent #CBB26B), so the site and the agent
   portal read as one brand.

   Every rule tagged [CHECKLIST n.n] is an acceptance criterion from Brett's
   build spec, PART 2. Each one is a defect a previous Appomark build shipped.
   Do not "simplify" them away.
   ============================================================================= */

/* [CHECKLIST 2.3] First rule in the sheet. Without it iOS Safari paints button
   text in system blue while desktop shows the inherited colour, and the bug is
   invisible in desktop testing. */
button,
input,
select,
textarea {
  color: inherit;
  font: inherit;
}

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

:root {
  /* Rise Group portal palette. */
  --bg: #0f0f0f;
  --bg-alt: #141312;
  --surface: #1f1d1a;
  --surface-2: #262523;
  --ink: #ffffff;
  --ink-soft: rgba(255, 255, 255, 0.78);   /* [CHECKLIST 2.3] body minimum */
  --ink-mute: rgba(255, 255, 255, 0.56);
  --ink-footer: rgba(255, 255, 255, 0.92); /* [CHECKLIST 2.3] footer minimum */
  --accent: #cbb26b;
  --accent-bright: #e0cd94;
  --accent-wash: rgba(203, 178, 107, 0.12);
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(255, 255, 255, 0.22);

  /* [CHECKLIST 1.2] Neutral near black, RGB triplet. NEVER a brand colour.
     A brand-tinted scrim once turned every photo on a site green and cost a
     full revision round to trace. */
  --scrim: 10, 9, 8;

  --font-display: "Archivo", "Poppins", system-ui, sans-serif;
  --font-body: "Poppins", system-ui, -apple-system, sans-serif;

  --nav-h: 104px;
  --nav-h-sm: 76px;
  --wrap: 1280px;
  --gutter: 24px;
}

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink-soft);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  font-weight: 300;
  overflow-x: hidden; /* [CHECKLIST 2.5] belt and braces against sideways scroll */
}

/* `height: auto` is load-bearing, not tidiness. Every <img> here carries width and
   height attributes so the browser can reserve the box and avoid layout shift.
   Without height:auto the attribute becomes the USED height, and a 1200x896 photo
   in a 580px column renders 580 wide by 896 tall, badly stretched. */
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.05;
  margin: 0;
  letter-spacing: -0.01em;
}

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

::selection { background: var(--accent); color: #17150f; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--accent);
  color: #17150f;
  padding: 12px 20px;
  font-weight: 600;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ---------------------------------------------------------------- type scale */

.display {
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 112%;
  text-transform: uppercase;
  letter-spacing: -0.015em;
  line-height: 0.94;
  color: var(--ink);
}

.d1 { font-size: clamp(2.75rem, 8.5vw, 6.5rem); }
.d2 { font-size: clamp(2.1rem, 5.4vw, 3.9rem); }
.d3 { font-size: clamp(1.6rem, 3.4vw, 2.5rem); }

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 22px;
}

.lede {
  font-size: clamp(1.03rem, 1.5vw, 1.22rem);
  line-height: 1.65;
  color: var(--ink-soft);
  max-width: 62ch;
}

.muted { color: var(--ink-mute); }
.small { font-size: 0.86rem; line-height: 1.6; }

/* The roofline from the logo, reused as a section mark. */
.chev {
  display: block;
  width: 34px;
  height: 13px;
  margin-bottom: 20px;
  overflow: visible;
}
.chev path {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.6;
}
.chev.center { margin-inline: auto; }

/* ------------------------------------------------------------------- buttons */

.btn {
  /* [CHECKLIST 2.1] inline-flex + nowrap so a button never wraps to two lines. */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  white-space: nowrap;
  padding: 15px 30px;
  border: 1px solid transparent;
  border-radius: 2px;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.25s ease, color 0.25s ease,
              border-color 0.25s ease, transform 0.25s ease;
}

.btn-primary {
  background: var(--accent);
  color: #17150f;
  border-color: var(--accent);
}
.btn-primary:hover { background: var(--accent-bright); border-color: var(--accent-bright); transform: translateY(-2px); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }

.btn[disabled] { opacity: 0.42; cursor: not-allowed; transform: none; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.textlink {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(203, 178, 107, 0.35);
  padding-bottom: 3px;
  transition: color 0.2s ease, border-color 0.2s ease, gap 0.2s ease;
}
.textlink:hover { color: var(--accent-bright); border-color: var(--accent-bright); gap: 14px; }

/* ----------------------------------------------------------------- nav */

/* [CHECKLIST 2.1] flex, logo far left, links after it, CTA far right.
   Never a `1fr auto 1fr` grid: it collapses into a squeezed centre cluster. */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

/* [CHECKLIST 2.1] Solid once scrolled past the hero. No shrink, no hide, no blur. */
.nav.is-solid {
  background: var(--bg);
  border-bottom-color: var(--line);
}

/* [CHECKLIST 2.2] While the menu is open the bar stays solid whatever the
   scroll position, so the close X always has a background to sit on. */
body.menu-open .nav { background: var(--bg); }

.nav-inner {
  display: flex;
  align-items: center;
  gap: 34px;
  height: var(--nav-h);
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.nav-logo { flex: 0 0 auto; display: flex; align-items: center; }
.nav-logo img { height: 46px; width: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-left: 8px;
}

.nav-link {
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.nav-link:hover { color: var(--accent); }
.nav-link.is-current { color: var(--accent); border-bottom-color: var(--accent); }

.nav-cta { margin-left: auto; }
.nav-cta .btn { padding: 12px 24px; }

.nav-burger {
  display: none;
  margin-left: auto;
  background: none;
  border: 0;
  padding: 8px;
  color: var(--ink);
  cursor: pointer;
}

/* [CHECKLIST 2.1] Switch to the mobile menu at 1150px, not 1024px. Between
   1024 and 1230 the desktop nav does not fit. */
@media (max-width: 1150px) {
  .nav-inner { height: var(--nav-h-sm); gap: 16px; }
  .nav-logo img { height: 38px; }
  .nav-links, .nav-cta { display: none; }
  .nav-burger { display: block; }
}

/* [CHECKLIST 2.2] Mobile panel. No Home item (the logo is the home link),
   and no scroll, shrink or zoom animation inside. */
.mobile-panel {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: var(--bg);
  display: none;
  flex-direction: column;
  /* Reserve the fixed bar's height plus 40px so content never sits behind the
     bar on an iPhone SE. */
  padding: calc(var(--nav-h-sm) + 40px) var(--gutter) 40px;
  overflow-y: auto;
}
.mobile-panel.is-open { display: flex; }

.mobile-panel a {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--ink);
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}
.mobile-panel a:last-of-type { border-bottom: 0; }
.mobile-panel .btn { margin-top: 26px; align-self: flex-start; }

/* --------------------------------------------------------------- hero */

.hero {
  position: relative;
  /* [CHECKLIST 2.4] 100dvh, NOT 100svh. svh leaves the next section bleeding in
     under the collapsed browser chrome. */
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-h) + 40px) 0 90px;
  overflow: hidden;
}

.hero-media,
.band-media,
.pagehead-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-media img,
.band-media img,
.pagehead-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* [CHECKLIST 2.4] Neutral scrim, roughly .55 top / .30 middle / .60 bottom. */
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(var(--scrim), 0.55) 0%,
    rgba(var(--scrim), 0.30) 45%,
    rgba(var(--scrim), 0.60) 100%
  );
}

/* The hero photograph is city lights at dusk, so its brightest band sits exactly
   where the left-aligned copy does. A second NEUTRAL gradient from the copy side
   carries the small gold eyebrow, which the vertical scrim alone left marginal.
   Neutral only, same rule as the vertical scrim. */
.hero-media::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to right,
    rgba(var(--scrim), 0.62) 0%,
    rgba(var(--scrim), 0.34) 46%,
    rgba(var(--scrim), 0) 78%
  );
}
@media (max-width: 860px) {
  /* Narrow, the copy spans the full width, so the directional wash becomes a
     flat lift instead. */
  .hero-media::before {
    background: linear-gradient(to right, rgba(var(--scrim), 0.42), rgba(var(--scrim), 0.42));
  }
}

.hero .wrap { position: relative; z-index: 1; }
.hero-copy { max-width: 900px; }
.hero .lede { margin-top: 26px; font-size: clamp(1.05rem, 1.7vw, 1.32rem); }

/* [CHECKLIST 2.4] Any SCROLL cue hides at 860px. */
.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 34px;
  transform: translateX(-50%);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: 0.62rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.scroll-cue span.line {
  width: 1px;
  height: 46px;
  background: linear-gradient(to bottom, var(--accent), transparent);
}
@media (max-width: 860px) { .scroll-cue { display: none; } }

/* ------------------------------------------------------- interior page header */

/* [CHECKLIST 2.4] 44svh with padding-top just clearing the nav and modest
   bottom padding. Never 60vh + flex-end + 120px top, which leaves a dead band
   above the heading on phones. */
.pagehead {
  position: relative;
  min-height: 44svh;
  display: flex;
  align-items: flex-end;
  padding: calc(var(--nav-h) + 24px) 0 52px;
  overflow: hidden;
}
.pagehead-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(var(--scrim), 0.62) 0%,
    rgba(var(--scrim), 0.45) 50%,
    rgba(var(--scrim), 0.72) 100%
  );
}
.pagehead .wrap { position: relative; z-index: 1; }
.pagehead .lede { margin-top: 18px; }

@media (max-width: 1150px) {
  .hero { padding-top: calc(var(--nav-h-sm) + 32px); }
  .pagehead { padding-top: calc(var(--nav-h-sm) + 20px); }
}

/* ------------------------------------------------------------------ sections */

.section { padding: clamp(64px, 9vw, 120px) 0; }
.section-tight { padding: clamp(48px, 6vw, 80px) 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 760px; margin-bottom: 54px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head .lede { margin-top: 20px; }
.section-head.center .lede { margin-inline: auto; }

.rule {
  height: 1px;
  background: var(--line);
  border: 0;
  margin: 0;
}

/* --------------------------------------------------------------- stats band */

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.stat {
  background: var(--bg);
  padding: 34px 26px;
  min-width: 0; /* [CHECKLIST 2.5] grid cells must be allowed to shrink */
}
/* A confirmed number and an unconfirmed [CONFIRM] chip are very different heights,
   so the row is given one shared height and both are bottom-aligned. Otherwise the
   labels beneath them sit on four different lines. */
.stat-value {
  display: flex;
  align-items: flex-end;
  min-height: clamp(1.7rem, 3.2vw, 2.6rem);
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.2vw, 2.6rem);
  font-weight: 800;
  color: var(--ink);
  line-height: 1;
}
.stat-label {
  margin-top: 12px;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.section-alt .stat { background: var(--bg-alt); }

/* An unconfirmed figure is marked, never invented. */
.confirm {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-wash);
  border: 1px dashed rgba(203, 178, 107, 0.45);
  border-radius: 2px;
  padding: 4px 10px;
  line-height: 1.4;
  white-space: nowrap;
  /* [CHECKLIST 2.5] nowrap is right for a two-word chip and catastrophic for a
     sentence: one long inline chip in the footer pushed the document to 691px on
     a 390px phone. Long text belongs in .confirm-block below, and this guard
     stops a future one silently overflowing again. */
  max-width: 100%;
}
@media (max-width: 560px) {
  .confirm { white-space: normal; }
}
/* The inline chip is a two-word label, so uppercase and wide tracking suit it. A
   block is a whole sentence to a member of staff, so it drops both and reads as
   ordinary prose with only the [CONFIRM] marker set apart. */
.confirm-block {
  display: block;
  white-space: normal;
  padding: 15px 18px;
  margin-top: 18px;
  max-width: 68ch;
  font-size: 0.84rem;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  line-height: 1.6;
  color: var(--accent-bright);
}
.confirm-block::first-line { font-weight: 500; }

@media (max-width: 860px) { .stats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 400px) { .stat { padding: 26px 18px; } }

/* -------------------------------------------------------------------- cards */

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

.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 34px 30px;
  min-width: 0;
  transition: transform 0.3s ease, border-color 0.3s ease, background-color 0.3s ease;
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(203, 178, 107, 0.55);
  background: var(--surface-2);
}
.card h3 { font-size: 1.24rem; margin-bottom: 14px; }
.card p { font-size: 0.95rem; }

.card-num {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--accent);
  display: block;
  margin-bottom: 18px;
}

/* ------------------------------------------------------------------- splits */

.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.split-body { min-width: 0; }
.split-media { min-width: 0; }
.split-media img {
  width: 100%;
  border-radius: 3px;
  border: 1px solid var(--line);
}
.split.reverse .split-body { order: 2; }
.split.reverse .split-media { order: 1; }

/* [CHECKLIST 2.6] On mobile the text always stacks above its photo, in every
   split INCLUDING the reversed ones. Explicit order, never order: 0, because
   DOM order puts the photo first in a reversed split and two photos end up
   touching. */
@media (max-width: 860px) {
  .split { grid-template-columns: minmax(0, 1fr); }
  .split .split-body,
  .split.reverse .split-body { order: 1; }
  .split .split-media,
  .split.reverse .split-media { order: 2; }
}

/* [CHECKLIST 2.6] No z-index: -1 decorations anywhere. They break inside any
   ancestor with a transform, and the reveal animation creates exactly that. */

/* --------------------------------------------------------------- photo band */

.band {
  position: relative;
  padding: clamp(80px, 11vw, 150px) 0;
  overflow: hidden;
}
.band-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(var(--scrim), 0.66) 0%,
    rgba(var(--scrim), 0.50) 50%,
    rgba(var(--scrim), 0.70) 100%
  );
}
.band .wrap { position: relative; z-index: 1; }
.band-copy { max-width: 720px; }
.band-copy.center { margin-inline: auto; text-align: center; }
.band-copy.center .lede { margin-inline: auto; }

/* -------------------------------------------------------------- stack strip */

.stack {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.stack-item {
  flex: 1 1 190px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 22px 22px 24px;
  background: var(--surface);
  transition: border-color 0.3s ease;
}
.stack-item:hover { border-color: rgba(203, 178, 107, 0.5); }
.stack-name {
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
}
.stack-role {
  margin-top: 7px;
  font-size: 0.82rem;
  color: var(--ink-mute);
  line-height: 1.5;
}

/* --------------------------------------------------------------------- team */

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
.agent { min-width: 0; }
.agent-photo {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 3px;
  border: 1px solid var(--line);
  background: var(--surface);
}
.agent-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease, filter 0.5s ease;
  filter: grayscale(100%) contrast(1.02);
}
.agent:hover .agent-photo img { transform: scale(1.05); filter: grayscale(0%); }
.agent-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(var(--scrim), 0.55), transparent 55%);
  opacity: 0.9;
  transition: opacity 0.4s ease;
}
.agent:hover .agent-photo::after { opacity: 0.35; }

/* Initials stand-in for the one roster photo the client has not sent. */
.agent-initials {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
  background: var(--surface-2);
  letter-spacing: 0.06em;
}

.agent-name {
  margin-top: 16px;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.01em;
  line-height: 1.25;
}
.agent-role {
  margin-top: 5px;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

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

@media (max-width: 1024px) {
  .team-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .team-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 720px) { .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) {
  .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .team-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ------------------------------------------------------------------ gallery */

.gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.shot {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 3px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.shot img { width: 100%; height: 100%; object-fit: cover; }

/* The culture photos must be real photos of the real team, so the slots ship as
   marked placeholders rather than stock or AI imagery. */
.shot-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: var(--surface);
  border-style: dashed;
  border-color: rgba(203, 178, 107, 0.35);
  text-align: center;
  padding: 20px;
}
.shot-empty .chev { margin: 0; opacity: 0.75; }
.shot-empty span {
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}
.shot-empty small { color: var(--ink-mute); font-size: 0.76rem; letter-spacing: 0; text-transform: none; }

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

/* --------------------------------------------------------------- quote card */

.quote {
  border: 1px solid var(--line);
  border-left: 2px solid var(--accent);
  background: var(--surface);
  padding: 30px 30px 28px;
  border-radius: 3px;
  min-width: 0;
}
.quote p {
  font-size: 1.02rem;
  line-height: 1.62;
  color: var(--ink-soft);
  font-style: italic;
}
.quote footer {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-top: 22px;
}
.quote footer img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  flex: 0 0 auto;
}
.quote-name { font-size: 0.88rem; color: var(--ink); font-weight: 500; }
.quote-role { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }

/* ---------------------------------------------------------------------- faq */

.faq { border-top: 1px solid var(--line); max-width: 900px; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  text-align: left;
  background: none;
  border: 0;
  padding: 24px 0;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.6vw, 1.16rem);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.35;
}
.faq-q:hover { color: var(--accent); }
.faq-sign {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  position: relative;
}
.faq-sign::before,
.faq-sign::after {
  content: "";
  position: absolute;
  background: var(--accent);
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.faq-sign::before { inset: 8px 0 auto 0; height: 1.5px; }
.faq-sign::after { inset: 0 auto 0 8px; width: 1.5px; }
.faq-item.is-open .faq-sign::after { transform: scaleY(0); opacity: 0; }

.faq-a {
  display: none;
  padding: 0 0 26px;
  max-width: 72ch;
  font-size: 0.97rem;
}
.faq-item.is-open .faq-a { display: block; }

/* --------------------------------------------------------------------- form */

.form-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: clamp(26px, 4vw, 46px);
}

/* [CHECKLIST 2.5] Every grid field carries min-width: 0, and inputs/selects are
   width: 100%. Without this the columns refuse to shrink and the row overflows
   the phone sideways. A previous build demanded 857px on a 390px screen. */
.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.field { min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: 1 / -1; }

.field label {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.field .req { color: var(--accent); }

.field input,
.field select,
.field textarea {
  width: 100%;
  min-width: 0;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 13px 14px;
  color: var(--ink);
  font-size: 0.95rem;
  font-family: var(--font-body);
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input::placeholder,
.field textarea::placeholder { color: rgba(255, 255, 255, 0.34); }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--bg-alt);
}
.field select { appearance: none; cursor: pointer; padding-right: 40px; background-image: none; }
.field.select-wrap { position: relative; }
.field.select-wrap::after {
  content: "";
  position: absolute;
  right: 15px;
  bottom: 20px;
  width: 7px;
  height: 7px;
  border-right: 1.5px solid var(--accent);
  border-bottom: 1.5px solid var(--accent);
  transform: rotate(45deg);
  pointer-events: none;
}
.field select option { background: var(--bg); color: var(--ink); }

/* [CHECKLIST 2.8] Honeypot. Off-screen rather than display:none, which some
   bots skip. */
.hp {
  position: absolute;
  left: -5000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 24px;
  font-size: 0.84rem;
  line-height: 1.55;
  color: var(--ink-mute);
}
.consent input {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--accent);
  cursor: pointer;
}
.consent a { color: var(--accent); border-bottom: 1px solid rgba(203, 178, 107, 0.4); }

/* [CHECKLIST 2.5] The submit gets its own auto-sized cell, never crammed into a
   field column. */
.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 28px;
}

.form-note {
  margin: 0;
  font-size: 0.8rem;
  color: var(--ink-mute);
}

.form-status {
  display: none;
  margin-top: 20px;
  padding: 15px 18px;
  border-radius: 2px;
  font-size: 0.92rem;
  border: 1px solid;
}
.form-status.is-shown { display: block; }
.form-status.ok { border-color: rgba(203, 178, 107, 0.5); background: var(--accent-wash); color: var(--ink); }
.form-status.err { border-color: rgba(232, 122, 106, 0.5); background: rgba(232, 122, 106, 0.1); color: #f0b7ad; }

/* [CHECKLIST 2.5] 2 columns at 860, 1 column at 560. */
@media (max-width: 860px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 860px) { .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) {
  .field-grid,
  .grid-2,
  .grid-3,
  .grid-4 { grid-template-columns: minmax(0, 1fr); }
  .form-actions .btn { width: 100%; }
}

/* ------------------------------------------------------------------- footer */

.footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
  padding: 70px 0 34px;
  color: var(--ink-footer); /* [CHECKLIST 2.3] */
}
.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.3fr;
  gap: 44px;
  padding-bottom: 46px;
}
.footer-col { min-width: 0; }
.footer-logo { height: 68px; width: auto; margin-bottom: 20px; }
.footer-tag { font-size: 0.92rem; color: var(--ink-soft); max-width: 34ch; }

.footer-head {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}
.footer-nav { display: flex; flex-direction: column; gap: 11px; }
.footer-nav a { font-size: 0.92rem; color: var(--ink-footer); }
.footer-nav a:hover { color: var(--accent); }

.socials { display: flex; gap: 12px; margin-top: 20px; }
.socials a {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink-footer);
  transition: border-color 0.25s ease, color 0.25s ease;
}
.socials a:hover { border-color: var(--accent); color: var(--accent); }

.brokerage {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.brokerage img { width: 132px; height: auto; flex: 0 0 auto; margin-top: 2px; }
.brokerage p { font-size: 0.82rem; color: var(--ink-soft); margin: 0; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 26px;
  padding-top: 26px;
  font-size: 0.8rem;
  color: var(--ink-mute);
}
.footer-bottom .eho {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.footer-bottom .eho svg { flex: 0 0 auto; }
.footer-bottom a:hover { color: var(--accent); }
.footer-bottom .spacer { margin-left: auto; }

@media (max-width: 860px) {
  .footer-top { grid-template-columns: minmax(0, 1fr); gap: 34px; }
  .brokerage { flex-direction: column; gap: 12px; }
  .footer-bottom .spacer { margin-left: 0; }
}

/* ------------------------------------------------------------------- reveal */

/* Default is VISIBLE. The observer opts elements into the animation, so a JS
   failure leaves a readable page rather than a blank one. */
[data-reveal] { opacity: 1; }
.js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.js [data-reveal].is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  * { scroll-behavior: auto !important; }
}

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 20px); }

/* --------------------------------------------------------------- long copy */

.prose { max-width: 74ch; }
.prose h2 { font-size: clamp(1.35rem, 2.6vw, 1.85rem); margin: 46px 0 16px; }
.prose h3 { font-size: 1.1rem; margin: 32px 0 12px; }
.prose ul { margin: 0 0 1.1em; padding-left: 20px; }
.prose li { margin-bottom: 8px; }
.prose a { color: var(--accent); border-bottom: 1px solid rgba(203, 178, 107, 0.4); }
