/* Empty Quarter Venture Services — "Dunes at dusk" */

:root {
  --night: #13233A;
  --night-2: #1C3150;
  --sand: #E2B27A;
  --sand-soft: #EFCFA6;
  --salt: #F2F4F3;
  --white: #FFFFFF;
  --ink: #16202E;
  --ink-2: #4A5566;
  --dusk: #8A97A8;
  --mist: #B8C2CE;
  --rule: #D6DBDF;
  --rule-dark: rgba(226, 178, 122, .22);

  --body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: var(--body);
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 48px);
  --top-h: 36px;
  --bar-h: 76px;
  --header-h: calc(var(--top-h) + var(--bar-h));
  --ok: #2E7D57;
}
[hidden] { display: none !important; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
figure { margin: 0; }
p { margin: 0 0 1em; }
h1, h2, h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -.02em;
  text-wrap: balance;
}

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

.skip { position: absolute; left: -9999px; top: 12px; z-index: 100; background: var(--sand); color: var(--night); padding: .7em 1em; font-weight: 600; }
.skip:focus { left: 12px; }

:focus-visible { outline: 3px solid var(--sand); outline-offset: 2px; box-shadow: 0 0 0 2px var(--night); }

/* ---------- Buttons & links ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6em;
  padding: .95em 1.5em;
  border: 1px solid transparent;
  border-radius: 2px;
  font: 600 .95rem/1 var(--body);
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn-sand { background: var(--sand); color: var(--night); }
.btn-sand:hover { background: var(--sand-soft); }
.btn-night { background: var(--night); color: var(--white); }
.btn-night:hover { background: var(--night-2); }
.btn-line { background: transparent; border-color: currentColor; color: inherit; }
.btn-line:hover { background: rgba(255, 255, 255, .08); }
.bg-sand .btn-line:hover, .form .btn-line:hover { background: rgba(19, 35, 58, .08); }

.link { font-weight: 600; text-decoration: none; border-bottom: 2px solid var(--sand); padding-bottom: 2px; }
.link:hover { border-bottom-color: currentColor; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  color: var(--white);
  transition: background-color .3s;
}
.site-header.is-solid, .site-header.is-open { background: rgba(19, 35, 58, .97); }
.header-bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--bar-h); }

/* top bar: scrolling offers on the left, language and login on the right */
.topbar { height: var(--top-h); background: var(--night-2); border-bottom: 1px solid var(--rule-dark); font-size: .84rem; }
.topbar-inner { display: flex; align-items: center; gap: 20px; height: 100%; }
.topbar .marquee { flex: 1; min-width: 0; color: var(--sand-soft); }
.ticker { display: flex; gap: 40px; margin: 0; padding: 0 40px 0 0; list-style: none; white-space: nowrap; }
.ticker li::before { content: "•"; margin-right: 12px; color: var(--sand); }
.util { display: flex; align-items: center; gap: 12px; flex: none; position: relative; }
.lang { font: inherit; color: var(--white); background: transparent; border: 1px solid var(--rule-dark); border-radius: 2px; padding: 3px 6px; cursor: pointer; }
.lang option { color: var(--ink); background: var(--white); }
.lang-note { position: absolute; right: 0; top: calc(100% + 8px); z-index: 60; width: max-content; max-width: 70vw; margin: 0; padding: 8px 12px; background: var(--white); color: var(--ink); box-shadow: 0 10px 30px rgba(5, 12, 22, .3); }
.login-menu { position: relative; }
.login-menu summary { list-style: none; cursor: pointer; padding: 3px 4px; color: var(--white); }
.login-menu summary::-webkit-details-marker { display: none; }
.login-menu summary::after { content: " ▾"; color: var(--sand); }
.login-menu div { position: absolute; right: 0; top: calc(100% + 8px); z-index: 60; display: grid; min-width: 190px; background: var(--white); box-shadow: 0 12px 34px rgba(5, 12, 22, .3); }
.login-menu a { padding: 12px 16px; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--rule); }
.login-menu a:hover { background: var(--salt); }
@media (max-width: 560px) { .topbar .marquee { display: none; } .util { margin-left: auto; } }

/* marquee: two identical copies side by side, the track slides by one copy and loops */
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.marquee-track { display: flex; width: max-content; animation: marquee var(--marquee-s, 45s) linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee { overflow-x: auto; } }

.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand svg { width: 38px; height: 38px; flex: none; }
.brand-name { display: block; font-family: var(--display); font-weight: 600; font-size: 1.08rem; line-height: 1.1; }
.brand-sub { display: block; font-size: .76rem; color: var(--dusk); letter-spacing: .02em; }

.nav { display: flex; align-items: center; gap: clamp(16px, 1.8vw, 28px); }
.nav a:not(.btn) { text-decoration: none; font-size: .93rem; white-space: nowrap; padding-block: 6px; border-bottom: 1px solid transparent; }
.nav a:not(.btn):hover { color: var(--sand); }
.nav a[aria-current="page"] { color: var(--sand); border-bottom-color: var(--sand); }
.nav .btn { padding: .8em 1.2em; }

.menu-btn {
  display: none;
  font: 600 .95rem/1 var(--body);
  color: inherit;
  background: none;
  border: 1px solid var(--rule-dark);
  border-radius: 2px;
  padding: .75em 1em;
  cursor: pointer;
}

@media (max-width: 1240px) {
  .menu-btn { display: inline-flex; }
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 4px var(--gutter) 28px;
    background: var(--night);
    border-top: 1px solid var(--rule-dark);
  }
  .site-header.is-open .nav { display: flex; }
  .nav a:not(.btn) { padding: 16px 0; border-bottom: 1px solid var(--rule-dark); font-size: 1.1rem; }
  .nav a[aria-current="page"] { border-bottom-color: var(--rule-dark); }
  .nav .btn { margin-top: 24px; padding: 1em; }
}

/* ---------- Dune contour canvas ---------- */

.dunes { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Home hero: video reel ---------- */
/* layers: video (0) → legibility gradient (2) → text and controls (3) */

.hero {
  position: relative;
  min-height: max(640px, 100svh);
  /* --mx/--my: cursor position (-1..1), --sp: scroll progress (0..1), both set by site.js */
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: var(--night);
  color: var(--white);
  overflow: hidden;
}
.hero::before, .page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(19, 35, 58, .94) 0%, rgba(19, 35, 58, .6) 42%, rgba(19, 35, 58, 0) 78%),
    linear-gradient(0deg, rgba(19, 35, 58, .95) 0%, rgba(19, 35, 58, 0) 38%);
}
.hero::before {
  z-index: 2;
  /* shade only where text sits (left, bottom, behind the header) so the landmarks stay vivid */
  background:
    linear-gradient(180deg, rgba(19, 35, 58, .65) 0%, rgba(19, 35, 58, 0) 20%),
    linear-gradient(90deg, rgba(19, 35, 58, .9) 0%, rgba(19, 35, 58, .5) 38%, rgba(19, 35, 58, 0) 66%),
    linear-gradient(0deg, rgba(19, 35, 58, .92) 0%, rgba(19, 35, 58, 0) 34%);
}

/* depth: the footage drifts against the cursor and closes into a rounded frame on scroll */
.reel-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  transform: translate3d(calc(var(--mx, 0) * -18px), calc(var(--my, 0) * -12px), 0) scale(1.06);
  transition: transform .9s cubic-bezier(.2, .7, .2, 1);
}
/* clip only once scrolled: an idle clip-path costs a mask on every video frame */
.reel.is-framed .reel-media { clip-path: inset(calc(var(--sp) * 6%) calc(var(--sp) * 5%) round calc(var(--sp) * 28px)); }
/* one pre-built video holds every scene with its crossfades and slow zoom (assets/video/reel.mp4):
   separate stacked clips with a CSS zoom stuttered. Jumping to a scene fades out a snapshot. */
.reel-media video, .reel-snap {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.reel-snap { opacity: 0; transition: opacity .6s ease; }
.reel-snap.is-shown { opacity: 1; transition: none; }
.reel-media::after { content: ""; position: absolute; inset: 0; background: rgba(19, 35, 58, .2); }

.hero-inner {
  position: relative;
  z-index: 3;
  width: 100%;
  padding-top: calc(var(--header-h) + 64px);
  padding-bottom: 56px;
  transform: translateY(calc(var(--sp, 0) * -56px));
  opacity: calc(1 - var(--sp, 0) * 2);
}
.hero-lead { font-size: clamp(1.05rem, 1.35vw, 1.22rem); color: #D3DAE2; max-width: 50ch; margin-bottom: 36px; }

.eyebrow { margin: 0 0 14px; font-size: .8rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: #8A6536; }
.hero .eyebrow, .page-hero .eyebrow, .bg-night .eyebrow { color: var(--sand); }

/* the headline words rise out of a mask one after another on load */
.hero-title { font-size: clamp(2.3rem, 4.8vw, 4.4rem); max-width: 17ch; margin-bottom: 24px; }
.hero-title .word { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .12em; margin-bottom: -.12em; }
.hero-title .word > span { display: inline-block; transform: translateY(110%); }
.reel.is-ready .hero-title .word > span { transform: none; transition: transform .9s cubic-bezier(.2, .7, .2, 1) calc(.15s + var(--i) * 70ms); }

/* names the scene on screen; sits bottom-right on wide screens, under the buttons on phones */
.reel-captions { position: absolute; right: var(--gutter); bottom: 56px; display: grid; }
.caption { grid-area: 1 / 1; justify-self: end; display: flex; align-items: center; gap: 8px; margin: 0; font-size: .9rem; color: #E1E6EC; text-shadow: 0 1px 10px rgba(19, 35, 58, .9); opacity: 0; transform: translateY(8px); transition: opacity .4s, transform .4s; }
.caption.is-active { opacity: 1; transform: none; transition: opacity .6s .2s, transform .8s .2s; }
.caption svg { width: 16px; height: 16px; color: var(--sand); flex: none; }
@media (max-width: 720px) { .reel-captions { position: static; margin-top: 24px; } .caption { justify-self: start; } }

.reel-nav { position: relative; z-index: 3; border-top: 1px solid var(--rule-dark); }
.reel-nav-inner { display: flex; align-items: center; gap: clamp(16px, 3vw, 40px); }
.reel-tabs { flex: 1; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: clamp(12px, 2.5vw, 32px); }
.reel-tab {
  position: relative;
  margin: -1px 0 0;
  padding: 0 0 24px;
  border: 0;
  background: none;
  color: var(--mist);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.reel-bar { display: block; height: 2px; margin-bottom: 18px; background: rgba(255, 255, 255, .16); overflow: hidden; }
.reel-tab[aria-current="true"] .reel-bar { background: rgba(255, 255, 255, .42); }
.reel-bar i { display: block; height: 100%; background: var(--sand); transform: scaleX(0); transform-origin: left; }
.reel-label { font-family: var(--display); font-weight: 600; font-size: 1rem; transition: color .2s; }
.reel-tab:hover, .reel-tab[aria-current="true"] { color: var(--white); }
.reel-tab:focus-visible { outline-offset: 4px; }

/* hover or keyboard focus on a scene name opens a live preview of that clip */
.reel-preview {
  position: absolute;
  left: 0;
  bottom: calc(100% + 18px);
  width: 240px;
  padding: 6px;
  border: 1px solid var(--rule-dark);
  border-radius: 6px;
  background: rgba(19, 35, 58, .92);
  box-shadow: 0 20px 44px rgba(5, 12, 22, .45);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px) scale(.96);
  transform-origin: bottom left;
  transition: opacity .2s, transform .25s, visibility 0s .25s;
  pointer-events: none;
}
.reel-preview video { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 3px; }
.reel-preview-place { display: block; padding: 8px 4px 2px; font-size: .85rem; color: var(--white); }
@media (hover: hover) {
  .reel-tab:hover .reel-preview, .reel-tab:focus-visible .reel-preview {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity .25s, transform .35s cubic-bezier(.2, .7, .2, 1), visibility 0s;
  }
}

@media (max-width: 720px) {
  /* text spans the full width on phones, so darken from the bottom instead of the left */
  .hero::before { background: linear-gradient(180deg, rgba(19, 35, 58, .88) 0%, rgba(19, 35, 58, .5) 10%, rgba(19, 35, 58, 0) 24%), linear-gradient(0deg, rgba(19, 35, 58, .96) 0%, rgba(19, 35, 58, .8) 45%, rgba(19, 35, 58, .1) 80%); }
  .reel-label { display: none; }
  .reel-tab { margin: 0; padding: 21px 0; }
  .reel-bar { margin-bottom: 0; height: 3px; }
}

/* ---------- Inner page hero ---------- */

.page-hero {
  position: relative;
  padding: calc(var(--header-h) + clamp(72px, 10vw, 128px)) 0 clamp(56px, 7vw, 96px);
  background: var(--night);
  color: var(--white);
  overflow: hidden;
}
.page-hero .dunes { opacity: .7; }
.page-hero .wrap { position: relative; z-index: 2; }
.page-hero h1 { font-size: clamp(2.3rem, 4.8vw, 4.2rem); max-width: 18ch; margin-bottom: 24px; }
.page-hero .h1-pair { max-width: 26ch; } /* two short sentences, each starting a line and wrapping evenly */
.h1-pair span { display: block; text-wrap: balance; }
.page-hero p { font-size: clamp(1.05rem, 1.35vw, 1.2rem); color: #C9D1DB; max-width: 58ch; margin: 0; }

/* ---------- Sections ---------- */

.section { padding-block: clamp(72px, 10vw, 128px); }
.bg-salt { background: var(--salt); }
.bg-night { background: var(--night); color: var(--white); }
.bg-sand { background: var(--sand); color: var(--night); }

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 20px clamp(32px, 6vw, 96px);
  align-items: end;
  margin-bottom: clamp(40px, 5vw, 64px);
}
.section-head h2, .h2 { font-size: clamp(2rem, 3.8vw, 3.2rem); }
.section-head p { margin: 0; color: var(--ink-2); max-width: 56ch; }
.bg-night .section-head p { color: var(--mist); }

.split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
.split-even { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.split-top { align-items: start; }
.split h2 { margin-bottom: 24px; }
.muted { color: var(--ink-2); }
.bg-night .muted { color: var(--mist); }
.measure { max-width: 60ch; }

.photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.photo-wide img { aspect-ratio: 16 / 9; }

@media (max-width: 900px) {
  .section-head, .split, .split-even { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Service rows (home) ---------- */

.svc-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.svc-list a {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr) 28px;
  gap: 12px clamp(24px, 4vw, 64px);
  align-items: center;
  padding: 26px 0;
  border-bottom: 1px solid var(--rule);
  text-decoration: none;
  transition: background-color .25s, padding .25s;
}
.svc-list h3 { font-size: clamp(1.2rem, 1.9vw, 1.55rem); }
.svc-list p { margin: 0; color: var(--ink-2); }
.svc-list svg { width: 24px; height: 24px; color: var(--ink-2); transition: transform .25s, color .25s; }
.svc-list a:hover { background: var(--salt); padding-inline: 20px; }
.svc-list a:hover svg { transform: translateX(4px); color: var(--ink); }

@media (max-width: 760px) {
  .svc-list a { grid-template-columns: minmax(0, 1fr) 24px; padding: 20px 0; }
  .svc-list h3 { grid-column: 1; grid-row: 1; }
  .svc-list svg { grid-column: 2; grid-row: 1; }
  .svc-list p { grid-column: 1 / -1; grid-row: 2; font-size: .98rem; }
}

/* ---------- Brand-to-market path ---------- */

.path {
  --path-line: rgba(226, 178, 122, .5);
  --path-dot: var(--sand);
  --path-fill: var(--night);
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  row-gap: 36px;
  counter-reset: stage;
}
.path-light { --path-line: #D9C4A6; --path-dot: #B98A52; --path-fill: var(--white); }
/* the route line is drawn per stop, so it stays continuous however the grid wraps */
.path li {
  counter-increment: stage;
  position: relative;
  padding: 62px 14px 0 0;
  background: linear-gradient(var(--path-line), var(--path-line)) 0 35px / 100% 1px no-repeat;
}
.path li::before {
  content: counter(stage, decimal-leading-zero);
  position: absolute;
  top: 0;
  left: 0;
  font-size: .9rem;
  font-variant-numeric: tabular-nums;
  color: var(--path-dot);
}
.path-light li::before { color: var(--ink-2); }
.path li::after {
  content: "";
  position: absolute;
  top: 30px;
  left: 0;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 2px solid var(--path-dot);
  background: var(--path-fill);
}
.path li:last-child::after { background: var(--path-dot); }
.path span { display: block; font-family: var(--display); font-weight: 500; font-size: 1.08rem; line-height: 1.2; }

.svc-block .path { grid-template-columns: repeat(4, minmax(0, 1fr)); }

@media (max-width: 900px) {
  .path, .svc-block .path { position: relative; grid-template-columns: minmax(0, 1fr); row-gap: 0; }
  .path::before { content: ""; position: absolute; top: 8px; bottom: 8px; left: 5px; width: 1px; background: var(--path-line); }
  .path li { display: flex; align-items: baseline; gap: 16px; padding: 0 0 22px 36px; background: none; }
  .path li:last-child { padding-bottom: 0; }
  .path li::before { position: static; flex: none; width: 1.6em; }
  .path li::after { top: 5px; }
}

/* ---------- Route map ---------- */

.map svg { width: 100%; height: auto; overflow: visible; }
.map .ring { fill: none; stroke: #C5CDD3; stroke-width: 1; }
.map .route { fill: none; stroke: #B98A52; stroke-width: 2; stroke-linecap: round; }
.map .node { fill: var(--salt); stroke: var(--night); stroke-width: 2; }
.map .hub { fill: var(--night); }
.map .hub-ring { fill: none; stroke: #B98A52; stroke-width: 2; }
.map text { font-family: var(--display); font-weight: 600; font-size: 22px; fill: var(--ink); }
.map .sub { font-family: var(--body); font-weight: 400; font-size: 17px; fill: var(--ink-2); }
.map .hub-label { font-size: 30px; }
@media (max-width: 600px) {
  .map text { font-size: 32px; }
  .map .hub-label { font-size: 40px; }
  .map .sub { display: none; }
}

.roles { list-style: none; margin: 32px 0 0; padding: 0; border-top: 1px solid var(--rule); }
.roles li { padding: 15px 0; border-bottom: 1px solid var(--rule); font-family: var(--display); font-weight: 500; font-size: 1.15rem; }

/* ---------- Chips ---------- */

.chips { list-style: none; margin: 28px 0 36px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { border: 1px solid var(--rule); border-radius: 2px; padding: .5em .85em; font-size: .92rem; line-height: 1.3; }
.bg-night .chips li { border-color: var(--rule-dark); color: #DDE3EA; }

/* ---------- Lined tiles (audiences, reasons, values) ---------- */

.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 clamp(24px, 3vw, 48px); border-top: 1px solid var(--rule); }
.tiles-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tiles-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tile ul { margin: 12px 0 0; padding-left: 18px; color: var(--ink-2); font-size: .96rem; }
.tile .link { display: inline-block; margin-top: 14px; }
.section-head .link-row { margin-top: 18px; }
.tiles-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.tile { padding: 28px 0 32px; border-bottom: 1px solid var(--rule); }
.tile h3 { font-size: 1.25rem; margin-bottom: 10px; }
.tile p { margin: 0; color: var(--ink-2); font-size: .98rem; }
.tile-cta p { margin-bottom: 14px; }
.bg-night .tiles, .bg-night .tile { border-color: var(--rule-dark); }
.bg-night .tile p { color: var(--mist); }

@media (max-width: 1040px) {
  .tiles, .tiles-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tiles-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 580px) {
  .tiles, .tiles-2, .tiles-3, .tiles-5 { grid-template-columns: minmax(0, 1fr); }
  .tile { padding: 22px 0 24px; }
}

/* ---------- Approach steps ---------- */

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 clamp(24px, 4vw, 56px); counter-reset: step; }
.steps li { counter-increment: step; padding: 28px 0 44px; border-top: 1px solid var(--rule-dark); }
.steps li::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  margin-bottom: 18px;
  font-family: var(--display);
  font-weight: 500;
  font-size: 2.4rem;
  line-height: 1;
  color: var(--sand);
}
.steps h3 { font-size: 1.4rem; margin-bottom: 8px; }
.steps p { margin: 0; color: var(--mist); max-width: 34ch; }

@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .steps { grid-template-columns: minmax(0, 1fr); } .steps li { padding-bottom: 32px; } }

/* ---------- CTA band ---------- */

.cta { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 32px clamp(40px, 6vw, 96px); align-items: end; }
.cta h2 { font-size: clamp(2.2rem, 4.6vw, 4rem); margin-bottom: 20px; }
.cta p { max-width: 46ch; margin-bottom: 32px; font-size: 1.1rem; }
.cta-contacts { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(19, 35, 58, .25); }
.cta-contacts li { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 14px 0; border-bottom: 1px solid rgba(19, 35, 58, .25); }
.cta-contacts span { font-size: .92rem; }
.cta-contacts a { font-family: var(--display); font-weight: 600; font-size: 1.2rem; text-decoration: none; white-space: nowrap; }
.cta-contacts a:hover { text-decoration: underline; }

@media (max-width: 900px) { .cta { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Footer ---------- */

.site-footer { background: var(--night); color: #C9D1DB; padding: 72px 0 32px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 3fr) repeat(3, minmax(0, 2fr)) minmax(0, 4fr); gap: 40px; }
.footer-addr { font-style: normal; color: var(--dusk); max-width: 34ch; margin: 20px 0 0; }
.social { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.social a { padding: 4px 9px; border: 1px solid var(--rule-dark); border-radius: 2px; font-size: .82rem; }
.social a:hover { border-color: var(--sand); color: var(--sand); }
.community { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 1.5fr); gap: 12px; margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--rule-dark); }
.community h2 { grid-column: 1 / -1; margin: 0 0 4px; }
.join { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px; border: 1px solid var(--rule-dark); text-decoration: none; }
.join span { color: var(--sand); font-weight: 600; flex: none; }
.join:hover { border-color: var(--sand); }
.newsletter { display: flex; flex-wrap: wrap; gap: 8px; }
.newsletter input { flex: 1; min-width: 0; font: inherit; padding: .7em .9em; border: 1px solid var(--rule-dark); border-radius: 2px; background: rgba(255, 255, 255, .06); color: var(--white); }
.newsletter .btn { padding: .7em 1.1em; }
.newsletter .form-note { flex-basis: 100%; }
.site-footer .footer-tags { display: flex; flex-wrap: wrap; gap: 8px 28px; list-style: none; margin: 32px 0 0; padding: 0; color: var(--mist); font-size: .9rem; }
.footer-tags a:hover { color: var(--sand); }
.legal-links { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.legal-links a:hover { color: var(--sand); }
@media (max-width: 1000px) { .community { grid-template-columns: minmax(0, 1fr); } }
.site-footer .brand { color: var(--white); }
.site-footer h2 { font-family: var(--body); font-size: .95rem; font-weight: 600; letter-spacing: 0; color: var(--white); margin-bottom: 16px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer a { text-decoration: none; overflow-wrap: anywhere; }
.site-footer ul a:hover { color: var(--sand); }
.footer-tag { color: var(--dusk); max-width: 34ch; margin: 20px 0 0; }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--rule-dark); color: var(--dusk); font-size: .86rem; }

@media (max-width: 900px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer-grid > :first-child { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- About ---------- */

.image-band img { width: 100%; height: clamp(240px, 38vw, 620px); object-fit: cover; }

.checklist { list-style: none; margin: 24px 0 28px; padding: 0; }
.checklist li { position: relative; padding: 11px 0 11px 28px; border-top: 1px solid var(--rule); }
.checklist li::before { content: ""; position: absolute; left: 0; top: 1.4em; width: 14px; height: 2px; background: #B98A52; }
.checklist-2 { columns: 2; column-gap: 40px; }
.checklist-2 li { break-inside: avoid; }
@media (max-width: 600px) { .checklist-2 { columns: 1; } }

.statement { margin: 24px 0 20px; font-family: var(--display); font-weight: 500; font-size: clamp(1.35rem, 2.4vw, 1.9rem); line-height: 1.3; max-width: 32ch; }

/* Who we are: one line through a client's journey. Grey where most setup companies stop,
   a dot where the company is formed, then sand for everything EQVS keeps doing. */
.who-lead { margin-top: 0; max-width: 36ch; }
.beyond { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr); margin-top: clamp(56px, 8vw, 104px); }
.beyond-part { display: contents; } /* labels share row 1 and lines share row 2, so the two lines meet */
.beyond-label { grid-row: 1; align-self: end; margin: 0 0 20px; padding-right: 32px; font-size: 1.05rem; font-weight: 500; line-height: 1.35; color: var(--ink-2); }
.beyond-list { grid-row: 2; position: relative; list-style: none; margin: 0; padding: 22px 32px 0 0; border-top: 2px solid var(--rule); }
.beyond-eqvs > * { grid-column: 2; padding-right: 0; padding-left: 32px; }
.beyond-eqvs .beyond-label { color: var(--ink); font-size: clamp(1.6rem, 2.8vw, 2.3rem); line-height: 1.1; }
.beyond-eqvs .beyond-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(4, auto); grid-auto-flow: column; column-gap: 32px; border-top: 3px solid var(--sand); } /* read down each column, in journey order */
.beyond-eqvs .beyond-list::before { content: ""; position: absolute; left: -8px; top: -9.5px; width: 16px; height: 16px; border-radius: 50%; background: var(--sand); box-shadow: 0 0 0 5px var(--white); }
.beyond-eqvs .beyond-list::after { content: ""; position: absolute; right: -2px; top: -8.5px; border-style: solid; border-width: 7px 0 7px 11px; border-color: transparent transparent transparent var(--sand); }
.beyond-list li { position: relative; padding: 9px 0 9px 24px; line-height: 1.35; color: var(--ink-2); }
.beyond-list li::before { content: ""; position: absolute; left: 0; top: 1.05em; width: 12px; height: 2px; background: var(--mist); }
.beyond-eqvs li::before { background: #B98A52; }
.beyond-eqvs a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--rule); text-underline-offset: .25em; transition: color .2s, text-decoration-color .2s; }
.beyond-eqvs a:hover { color: #8A6536; text-decoration-color: currentColor; }
@media (max-width: 900px) {
  .beyond { grid-template-columns: minmax(0, 1fr); }
  .beyond-label, .beyond-list, .beyond-eqvs > * { grid-row: auto; grid-column: 1; padding-inline: 0; }
  .beyond-eqvs .beyond-label { margin-top: 48px; }
}
@media (max-width: 600px) { .beyond-eqvs .beyond-list { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; grid-auto-flow: row; } }

.chain { list-style: none; margin: 0; padding: 0; position: relative; }
.chain::before { content: ""; position: absolute; left: 6px; top: 22px; bottom: 22px; width: 1px; background: linear-gradient(180deg, rgba(226, 178, 122, .35), var(--sand)); }
.chain li { position: relative; padding: 13px 0 13px 42px; font-family: var(--display); font-weight: 500; font-size: clamp(1.1rem, 2vw, 1.5rem); line-height: 1.2; }
.chain li::before { content: ""; position: absolute; left: 1px; top: 50%; width: 11px; height: 11px; margin-top: -6px; border-radius: 50%; border: 2px solid var(--sand); background: var(--night); }
.chain li:last-child { color: var(--sand); }
.chain li:last-child::before { background: var(--sand); }

.founder { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 96px); align-items: start; scroll-margin-top: var(--header-h); }
.monogram {
  position: relative;
  aspect-ratio: 4 / 5;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--night);
  color: var(--sand);
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(4rem, 9vw, 7rem);
}
.monogram span { position: relative; z-index: 1; }
.monogram .dunes { opacity: .5; }
.founder-role { color: var(--ink-2); font-size: 1.05rem; margin: 10px 0 28px; }
.founder h2 { font-size: clamp(2rem, 3.6vw, 3rem); }
.founder h3 { font-size: 1.15rem; margin-top: 36px; }

.equation { font-family: var(--display); font-weight: 500; font-size: clamp(1.5rem, 3.4vw, 2.8rem); line-height: 1.3; margin: 0 0 40px; }
.equation b { color: var(--sand); font-weight: 400; padding-inline: .15em; }

@media (max-width: 900px) {
  .founder { grid-template-columns: minmax(0, 1fr); }
  .monogram { aspect-ratio: 16 / 10; max-width: 520px; }
}

/* ---------- Services page ---------- */

.svc-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.svc-index { position: sticky; top: calc(var(--header-h) + 32px); }
.svc-index ul { list-style: none; margin: 0; padding: 0; }
.svc-index a { display: block; padding: 8px 0 8px 16px; border-left: 2px solid var(--rule); color: var(--ink-2); font-size: .95rem; line-height: 1.35; text-decoration: none; }
.svc-index a:hover { color: var(--ink); border-left-color: #B98A52; }

.svc-block { padding-bottom: clamp(56px, 7vw, 88px); margin-bottom: clamp(56px, 7vw, 88px); border-bottom: 1px solid var(--rule); scroll-margin-top: calc(var(--header-h) + 24px); }
.svc-block:last-child { padding-bottom: 0; margin-bottom: 0; border-bottom: 0; }
.svc-block h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); margin-bottom: 20px; }
.svc-block > p { color: var(--ink-2); max-width: 62ch; }
.svc-block h3 { font-size: 1.1rem; margin-top: 32px; }
.svc-block .photo { margin-top: 36px; }
.svc-block .tiles { margin-top: 32px; }
.svc-block > .eyebrow { color: #8A6536; }
.svc-block .path { margin-top: 40px; }

.note { margin: 32px 0 0; padding-left: 18px; border-left: 3px solid var(--sand); font-family: var(--display); font-weight: 500; font-size: 1.15rem; line-height: 1.4; max-width: 54ch; }

@media (max-width: 900px) {
  .svc-layout { grid-template-columns: minmax(0, 1fr); }
  .svc-index { display: none; }
}

/* ---------- Industries ---------- */

.industry-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 0 clamp(24px, 3vw, 48px); border-top: 1px solid var(--rule); }
.industry-grid li { padding: 22px 0; border-bottom: 1px solid var(--rule); font-family: var(--display); font-weight: 500; font-size: clamp(1.2rem, 2vw, 1.5rem); line-height: 1.2; }

/* ---------- Contact ---------- */

.contact { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.contact .h2 { margin-bottom: 28px; }
.contact-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.contact-list li { padding: 20px 0; border-bottom: 1px solid var(--rule); }
.contact-list span { display: block; color: var(--ink-2); font-size: .9rem; margin-bottom: 4px; }
.contact-list a { font-family: var(--display); font-weight: 600; font-size: clamp(1.15rem, 2vw, 1.4rem); text-decoration: none; overflow-wrap: anywhere; }
.contact-list a.email { font-family: var(--body); font-size: 1.02rem; }
.contact-list a:hover { text-decoration: underline; }

.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 24px; padding: clamp(24px, 4vw, 48px); background: var(--salt); }
.form h2 { grid-column: 1 / -1; font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
.field { display: grid; gap: 8px; align-content: start; }
.field-full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: .92rem; }
.field label small { font-weight: 400; color: var(--ink-2); font-size: .85rem; }
.field input:not([type=checkbox]):not([type=radio]), .field select, .field textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--white);
  border: 1px solid #BFC7CF;
  border-radius: 2px;
  padding: .75em .9em;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline-offset: 0; border-color: var(--night); }
.form-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 12px; }
.form-hint { grid-column: 1 / -1; margin: 0; color: var(--ink-2); font-size: .9rem; }

@media (max-width: 900px) { .contact { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 600px) { .contact-list a.email { font-size: .9rem; } .form { grid-template-columns: minmax(0, 1fr); } .form-actions .btn { flex: 1 1 100%; } }

/* ---------- News and events ---------- */

.news-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: clamp(40px, 5vw, 56px) clamp(24px, 3vw, 36px); }
.news-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.news-wide { grid-column: 1 / -1; }
.news-card { display: flex; flex-direction: column; height: 100%; scroll-margin-top: calc(var(--header-h) + 24px); }
.news-media { position: relative; margin-bottom: 20px; overflow: hidden; background: var(--rule); }
.news-media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.news-date { position: absolute; left: 0; top: 0; margin: 0; padding: 12px 14px 10px; min-width: 72px; background: var(--sand); color: var(--night); font-family: var(--display); font-weight: 600; font-size: .85rem; line-height: 1; text-align: center; }
.news-date b { display: block; margin-bottom: 4px; font-size: 2.1rem; }
.news-meta { display: flex; flex-wrap: wrap; gap: 2px 14px; margin: 0 0 10px; font-size: .92rem; color: var(--ink-2); }
.news-kind { font-weight: 600; color: #8A6536; }
.news-body h3 { margin-bottom: 10px; font-size: clamp(1.2rem, 1.7vw, 1.4rem); line-height: 1.2; }
.news-body h3 a { text-decoration: none; }
.news-body h3 a:hover { text-decoration: underline; text-decoration-color: var(--sand); text-underline-offset: .2em; }
.news-body .muted { margin: 0; }
.news-body .link { align-self: flex-start; margin-top: 18px; }
.news-body { display: flex; flex-direction: column; align-items: flex-start; flex: 1; }
.news-card:target h3 { text-decoration: underline; text-decoration-color: var(--sand); text-decoration-thickness: 3px; text-underline-offset: .2em; }
/* the lead story sits side by side with its picture */
.news-card.is-featured { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 24px clamp(32px, 5vw, 64px); align-items: center; }
.is-featured .news-media { margin: 0; }
.is-featured h3 { font-size: clamp(1.6rem, 2.8vw, 2.3rem); line-height: 1.1; }
.news-more { margin: 40px 0 0; }

@media (max-width: 900px) {
  .news-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .news-card.is-featured { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) { .news-grid-3 { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Home: divisions cards ---------- */

.div-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 2vw, 24px); }
.div-card { display: flex; flex-direction: column; height: 100%; background: var(--white); border: 1px solid var(--rule); text-decoration: none; overflow: hidden; transition: border-color .25s, box-shadow .25s; }
.div-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.div-card:hover { border-color: var(--sand); box-shadow: 0 14px 34px rgba(19, 35, 58, .12); }
.div-card:hover img { transform: scale(1.04); }
.div-card-body { position: relative; padding: 0 20px 24px; }
.icon { display: grid; place-items: center; width: 52px; height: 52px; background: var(--night); color: var(--sand); }
.icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.div-card .icon { position: relative; margin: -26px 0 18px; }
.div-card h3 { font-size: 1.2rem; margin-bottom: 8px; }
.div-card p { margin: 0; color: var(--ink-2); font-size: .97rem; }
.more { margin: 36px 0 0; text-align: center; }
@media (max-width: 1000px) { .div-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .div-cards { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Conversation strip ---------- */

.section-tight { padding-block: clamp(40px, 5vw, 64px); }
.talk { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px clamp(24px, 4vw, 56px); align-items: center; }
.talk .talk-list { grid-column: 1 / -1; grid-row: 2; }
.talk h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); margin-bottom: 8px; }
.talk p { margin: 0; color: var(--ink-2); }
.talk-list { list-style: none; margin: 0; padding: 24px 0 0; border-top: 1px solid var(--rule); display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 16px 24px; }
.talk-list a { display: flex; gap: 12px; align-items: flex-start; text-decoration: none; font-size: .9rem; color: var(--ink-2); overflow-wrap: anywhere; }
.talk-list b { display: block; color: var(--ink); font-size: 1rem; }
.talk-list svg { width: 28px; height: 28px; flex: none; fill: none; stroke: var(--night); stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.talk-list a:hover b { text-decoration: underline; text-decoration-color: var(--sand); text-underline-offset: .2em; }
@media (max-width: 1000px) { .talk-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .talk { grid-template-columns: minmax(0, 1fr); } .talk .btn { justify-self: start; grid-row: 3; } .talk-list { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Partners ---------- */

.partner-strip { display: flex; gap: 14px; margin: 0; padding: 0 14px 0 0; list-style: none; }
.partner-strip li { flex: none; padding: 18px 28px; border: 1px solid var(--rule); background: var(--white); font-weight: 600; font-size: 1.05rem; white-space: nowrap; }
.partner-strip small { display: block; font-weight: 400; font-size: .8rem; color: var(--ink-2); }
.place { display: inline-block; margin-bottom: 10px; font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #8A6536; }

/* ---------- Forms: signup, login, careers ---------- */

.form-wrap { max-width: 900px; margin-inline: auto; }
.form-note { grid-column: 1 / -1; margin: 0; font-size: .92rem; font-weight: 600; }
.form-note:empty { display: none; }
fieldset.form { border: 0; margin: 0; min-width: 0; }
.forgot { grid-column: 1 / -1; display: grid; gap: 16px; }
.forgot summary { cursor: pointer; width: fit-content; }
.lead { grid-column: 1 / -1; margin: -8px 0 0; color: var(--ink-2); }
.field-label { font-weight: 600; font-size: .92rem; }
.field-label small { font-weight: 400; color: var(--ink-2); font-size: .85rem; }
.form-actions { align-items: center; }
.field:has(.mk-toggle:not(:checked)) .picks { display: none; }
.panel .form-note { margin-top: 14px; color: var(--sand-soft); }

.stepper { list-style: none; margin: 0 0 24px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; counter-reset: st; }
.stepper li { counter-increment: st; border-top: 3px solid var(--rule); padding-top: 10px; color: var(--ink-2); font-size: .85rem; }
.stepper li::before { content: "Step " counter(st) " of 3"; }
.stepper b { display: block; color: var(--ink); font-size: 1.05rem; }
.stepper .is-done { border-color: var(--ok); }
.stepper .is-done b::after { content: " ✓"; color: var(--ok); }
.stepper [aria-current] { border-color: var(--sand); }
@media (max-width: 560px) { .stepper li:not([aria-current]) { display: none; } .stepper { grid-template-columns: minmax(0, 1fr); } }

.picks { display: flex; flex-wrap: wrap; gap: 8px; }
.pick { position: relative; display: inline-flex; padding: .5em .95em; border: 1px solid #BFC7CF; border-radius: 999px; background: var(--white); font-size: .92rem; cursor: pointer; user-select: none; }
.pick input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.pick:has(input:checked) { background: var(--night); border-color: var(--night); color: var(--white); }
.pick:has(input:checked)::before { content: "✓"; margin-right: 6px; color: var(--sand); }
.pick:has(input:focus-visible) { outline: 3px solid var(--sand); outline-offset: 2px; }

.with-btn { display: flex; gap: 8px; }
.with-btn input { flex: 1; min-width: 0; }
.with-btn .btn { flex: none; padding: .75em 1em; }
.field .dial { flex: 0 0 5.2em; text-align: center; background: var(--rule); }
.otp { display: flex; flex-wrap: wrap; gap: 8px; }
.field .otp input { width: 9em; letter-spacing: .3em; text-align: center; }
.verify-status { margin: 0; font-size: .86rem; color: var(--ink-2); }
.verify-status:empty { display: none; }
.verify[data-verified] .verify-status { color: var(--ok); font-weight: 600; }

.check { display: flex; gap: 10px; align-items: flex-start; }
.field .check { font-weight: 400; font-size: .95rem; }
.check input { flex: none; margin-top: .3em; accent-color: var(--night); width: 1.05em; height: 1.05em; }

.docs { grid-column: 1 / -1; display: grid; gap: 10px; }
.doc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, auto); gap: 8px 16px; align-items: center; padding: 14px 16px; background: var(--white); border: 1px solid var(--rule); }
.doc label { font-weight: 600; }
.doc small { display: block; font-weight: 400; color: var(--ink-2); font-size: .85rem; }
.field .doc input[type=file], .doc input[type=file] { border: 0; padding: 0; background: none; max-width: 270px; font-size: .88rem; }
.tag { display: inline-block; margin-left: 6px; padding: 2px 7px; border-radius: 2px; background: var(--sand-soft); color: var(--night); font-size: .7rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; vertical-align: middle; }
.tag-quiet { background: var(--rule); color: var(--ink-2); }
@media (max-width: 600px) { .doc { grid-template-columns: minmax(0, 1fr); } }

.done { padding: clamp(32px, 5vw, 64px); background: var(--salt); text-align: center; }
.done .mark { display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 20px; border-radius: 50%; background: #E3F1E9; color: var(--ok); font-size: 1.8rem; }
.done h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); margin-bottom: 14px; }
.done p { max-width: 52ch; margin-inline: auto; color: var(--ink-2); }
.done .actions { justify-content: center; margin-top: 24px; }

.login-grid { display: grid; grid-template-columns: minmax(0, 1fr); max-width: 760px; gap: clamp(24px, 4vw, 48px); align-items: start; }
.panel { padding: clamp(24px, 4vw, 48px); background: var(--night); color: var(--white); scroll-margin-top: calc(var(--header-h) + 24px); }
.panel h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); margin-bottom: 14px; }
.panel p { color: var(--mist); }

.map-frame iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; }
.prose { max-width: 70ch; }
.prose h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); margin: 48px 0 14px; scroll-margin-top: calc(var(--header-h) + 24px); }
.prose h2:first-child { margin-top: 0; }

/* ---------- Motion preferences ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------- Customer portal and partner dashboard ---------- */

.part-title { margin-top: 56px; scroll-margin-top: calc(var(--header-h) + 24px); }
.part { display: grid; gap: 12px; margin-top: 16px; }
.part + .form, .part-title + .form { margin-top: 16px; }
.card { display: grid; gap: 12px; padding: 20px 22px; background: var(--white); border: 1px solid var(--rule); }
.card.is-focus { border-color: var(--sand); box-shadow: 0 0 0 3px var(--sand-soft); }
.card-head { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; justify-content: space-between; }
.card-head h3 { margin: 0; font-size: 1.15rem; }
.card p, .card ul { margin: 0; }
.card .tag { margin: 0; }
.card-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.card .field { margin-top: 12px; }
.card .form-note { color: #A3361F; }
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: .94rem; }
.table th, .table td { padding: 8px 12px 8px 0; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: top; }
.table th { font-weight: 600; color: var(--ink-2); }
.kv { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 4px 16px; margin: 0; }
.kv:empty { display: none; }
.kv dt { color: var(--ink-2); }
.kv dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.sign { display: grid; gap: 12px; padding-top: 16px; border-top: 1px solid var(--rule); }
.sign h4 { margin: 0; font-size: 1.05rem; }
.sign-pad { display: block; width: 100%; max-width: 600px; aspect-ratio: 3 / 1; margin-bottom: 8px; background: var(--salt); border: 1px dashed #BFC7CF; touch-action: none; cursor: crosshair; }
.sign .otp input { width: 9em; padding: .75em; border: 1px solid #BFC7CF; letter-spacing: .3em; text-align: center; font: inherit; }
.updates { padding-left: 18px; color: var(--ink-2); }
.tile h3 a { color: inherit; text-decoration: none; }
.tile h3 a:hover { text-decoration: underline; }
