/* Roam Motion — one stylesheet, no build step.
   B612 throughout. Dark (ink) and light (paper) bands alternate; signal red for
   eyebrows, the timeline, accents and the primary button. Type-led: no drawn
   graphics; photos appear only when configured in config.js and loaded. */

@font-face {
  font-family: "B612";
  src: url("/assets/fonts/B612-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "B612";
  src: url("/assets/fonts/B612-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #14181F;
  --ink-2: #1A1F28;          /* raised dark surface: separates two dark bands */
  --ink-3: #0E1117;          /* deepest: browser/device frames */
  --paper: #F7F6F3;
  --paper-2: #EEECE7;        /* image-slot ground on light bands */
  --white: #FFFFFF;
  --signal: #E6375C;
  --signal-deep: #C21D45;    /* small signal text on light: 5.9:1 on white */
  --signal-light: #F0627F;   /* small signal text on dark: 5.7:1 on ink */
  --gray-dark: #4A4F57;
  --on-ink: rgba(247, 246, 243, .86);
  --muted-ink: rgba(247, 246, 243, .68);
  --hairline: rgba(20, 24, 31, .13);
  --hairline-ink: rgba(247, 246, 243, .16);
  --max: 1200px;
  --gutter: 24px;
  --header-h: 68px;
  --font: "B612", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

[hidden] { display: none !important; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--gray-dark);
  background: var(--ink);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, p, ol, ul, dl, dd, figure, blockquote { margin: 0; }
ol, ul { padding: 0; list-style: none; }
img, svg, video, iframe { max-width: 100%; }

a { color: inherit; }
a:focus-visible, button:focus-visible, iframe:focus-visible, video:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 3px;
}

.wrap {
  width: min(calc(100% - 2 * var(--gutter)), var(--max));
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: var(--gutter); top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--paper);
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* ---------- surfaces ---------- */

.dark   { background: var(--ink);   color: var(--on-ink); }
.dark-2 { background: var(--ink-2); color: var(--on-ink); }
.light  { background: var(--paper); color: var(--gray-dark); }

.band { padding: clamp(72px, 9vw, 120px) 0; }

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

h1, h2, h3, h4 {
  font-weight: 700;
  letter-spacing: -0.005em;
  text-wrap: balance;
}
.dark h1, .dark h2, .dark h3, .dark h4,
.dark-2 h2, .dark-2 h3 { color: var(--white); }
.light h2, .light h3, .light h4 { color: var(--ink); }

h1 { font-size: clamp(2.6rem, 1.3rem + 4.4vw, 4.5rem); line-height: 1.04; }
h2 { font-size: clamp(1.9rem, 1.2rem + 2.3vw, 2.75rem); line-height: 1.1; }
h3 { font-size: 1.1875rem; line-height: 1.3; }
h4 { font-size: 1.25rem; line-height: 1.3; }
.accent { color: var(--signal); }  /* headline size only: 4.3:1 on ink clears the 3:1 large-text bar */

.eyebrow {
  margin-bottom: 16px;
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .14em;
  line-height: 1.4;
  text-transform: uppercase;
}
.dark .eyebrow, .dark-2 .eyebrow { color: var(--signal-light); }
.light .eyebrow { color: var(--signal-deep); }

.intro {
  max-width: 36em;
  margin-top: 18px;
  font-size: clamp(1.0625rem, 1rem + .4vw, 1.25rem);
  line-height: 1.55;
}
.light .intro { color: var(--ink); }

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

/* White on --signal is 4.1:1, so button text is 19px bold (WCAG "large text"). */
.btn {
  display: inline-block;
  padding: 13px 24px;
  font: inherit;
  font-size: 1.1875rem;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: 3px;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease;
}
.btn-primary { color: var(--white); background: var(--signal); border-color: var(--signal); }
.btn-primary:hover { background: var(--signal-deep); border-color: var(--signal-deep); }
.btn-outline { color: var(--white); background: transparent; border-color: rgba(247, 246, 243, .55); }
.btn-outline:hover { border-color: var(--white); }

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

/* ---------- header (dark, sits on the hero) ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--ink);
  border-bottom: 1px solid var(--hairline-ink);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: var(--header-h);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
  text-decoration: none;
}
/* the red mark (decorative, alt="") beside the live-text wordmark */
.brand-mark { display: block; width: auto; height: 36px; }
.brand-word { color: var(--paper); font-weight: 700; font-size: 1.1875rem; letter-spacing: .02em; }

.site-nav { display: flex; align-items: center; gap: 30px; }
.site-nav a:not(.btn) {
  padding: 8px 0;
  border-bottom: 2px solid transparent;
  color: var(--on-ink);
  font-size: .9375rem;
  text-decoration: none;
  white-space: nowrap;
}
.site-nav a:not(.btn):hover,
.site-nav a:not(.btn):focus-visible { color: var(--white); border-bottom-color: var(--signal); }
.nav-cta { padding: 7px 18px; }

.menu-toggle {
  display: none;
  padding: 8px 14px;
  font: inherit;
  font-size: .875rem;
  font-weight: 700;
  color: var(--white);
  background: transparent;
  border: 1px solid var(--hairline-ink);
  border-radius: 3px;
  cursor: pointer;
}
.menu-toggle[aria-expanded="true"] { border-color: var(--white); }

@media (max-width: 860px) {
  .menu-toggle { display: inline-flex; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 4px var(--gutter) 18px;
    background: var(--ink);
    border-bottom: 1px solid var(--hairline-ink);
  }
  .site-nav.is-open { display: flex; }
  .site-nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--hairline-ink); font-size: 1rem; }
  .nav-cta { margin-top: 14px; padding: 12px 18px; }

  /* no-JS fallback: no toggle, links wrap under the wordmark */
  .no-js .menu-toggle { display: none; }
  .no-js .header-inner { flex-wrap: wrap; padding: 10px 0; }
  .no-js .site-nav {
    display: flex; position: static; flex-direction: row; flex-wrap: wrap; align-items: center;
    width: 100%; gap: 4px 22px; padding: 0; border: 0;
  }
  .no-js .site-nav a:not(.btn) { padding: 6px 0; border-bottom: 2px solid transparent; font-size: .9375rem; }
  .no-js .nav-cta { margin-top: 0; padding: 6px 14px; }
}

/* ---------- background photos (hero, closing) ----------
   .bg-photo is only ever created by site.js after a configured photo loads. */

.has-photo { position: relative; overflow: hidden; }
.bg-photo { position: absolute; inset: 0; }
.bg-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.bg-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(20, 24, 31, .94) 0%, rgba(20, 24, 31, .82) 45%, rgba(20, 24, 31, .62) 100%);
}
.closing .bg-photo::after { background: rgba(20, 24, 31, .78); }

/* ---------- 1. hero: type only — scale and space, no decoration ---------- */

.hero { padding: clamp(88px, 13vw, 184px) 0 clamp(96px, 14vw, 200px); }
.hero-inner { position: relative; }
.hero .eyebrow { margin-bottom: 24px; }
.hero h1 {
  max-width: 11.5em;
  font-size: clamp(3rem, 1.2rem + 6.4vw, 6.75rem);
  line-height: .98;
  letter-spacing: -0.02em;
}
.hero-sub {
  max-width: 32em;
  margin-top: clamp(28px, 3.2vw, 44px);
  font-size: clamp(1.125rem, 1rem + .7vw, 1.5rem);
  line-height: 1.5;
}
.hero .actions { margin-top: clamp(36px, 4vw, 52px); }

/* demo panel (showDemo): only shown once a real viewer URL / flythrough is set */
.demo {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  align-items: start;
  gap: 24px;
  margin-top: clamp(56px, 7vw, 88px);
}
.demo-viewer {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--ink-3);
  border: 1px solid var(--hairline-ink);
  border-radius: 8px;
}
.demo-viewer iframe { display: block; width: 100%; height: 100%; border: 0; }
.demo-viewer .poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .75; }
.viewer-open { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); white-space: nowrap; }
.demo-fly {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--ink-3);
  border: 1px solid var(--hairline-ink);
  border-radius: 8px;
}
/* only one of the two configured: it takes the full width */
.demo-viewer[hidden] + .demo-fly, .demo-viewer:has(+ .demo-fly[hidden]) { grid-column: 1 / -1; }

@media (max-width: 860px) {
  .demo { grid-template-columns: 1fr; }
}

/* ---------- 2. results (hidden until real quotes exist) ---------- */

.results-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px 48px;
}
.stat { display: flex; flex-direction: column; align-items: flex-end; text-align: right; }
.stat-value { color: var(--white); font-size: clamp(2.75rem, 1.8rem + 3vw, 4.25rem); font-weight: 700; line-height: 1; }
.stat-label { margin-top: 10px; max-width: 18em; font-size: .9375rem; }
.quotes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-top: 48px;
}
.quote {
  display: flex;
  flex-direction: column;
  padding: 26px 26px 24px 24px;
  background: var(--ink-2);
  border-left: 3px solid var(--signal);
}
.quote blockquote p { color: var(--white); font-size: 1.0625rem; line-height: 1.55; }
.quote figcaption { margin-top: auto; padding-top: 20px; font-size: .9375rem; }
.quote-name { display: block; color: var(--white); font-weight: 700; }
.quote-role { display: block; color: var(--muted-ink); }
.quote-more { display: inline-block; margin-top: 12px; color: var(--signal-light); font-weight: 700; text-decoration: none; }
.quote-more:hover { text-decoration: underline; }

@media (max-width: 960px) {
  .quotes { grid-template-columns: 1fr; }
  .stat { align-items: flex-start; text-align: left; }
}

/* ---------- 3. how it works: timeline ---------- */

.how-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  align-items: center;
  gap: 48px;
  margin-top: 56px;
}

.timeline {
  --node: 44px;
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0 28px;
}
/* the signal line through the node centres */
.timeline::before {
  content: "";
  position: absolute;
  left: 0; right: 0;
  top: calc(var(--node) / 2 - 1px);
  height: 2px;
  background: var(--signal);
}
.tl-step { position: relative; }
.tl-node {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: var(--node);
  height: var(--node);
  margin-bottom: 22px;
  color: var(--white);
  background: var(--ink-2);
  border: 2px solid var(--signal);
  border-radius: 50%;
  font-size: .9375rem;
  font-weight: 700;
}
.tl-text h3 { font-size: 1.375rem; }
.tl-text p { margin-top: 10px; font-size: 1rem; }

.status-card {
  padding: 22px 22px 8px;
  color: var(--gray-dark);
  background: var(--paper);
  border-radius: 8px;
  box-shadow: 0 24px 50px rgba(0, 0, 0, .3);
}
.status-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 10px; }
.status-title {
  color: var(--ink);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
}
.status-tag {
  padding: 2px 8px;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  font-size: .75rem;
}
.status-card dl { margin-top: 14px; }
.status-card dl div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--hairline);
  font-size: .9375rem;
}
.status-card dd { color: var(--ink); font-weight: 700; }
.status-card dd::before {
  content: "";
  display: inline-block;
  width: 8px; height: 8px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--signal);
  vertical-align: 1px;
}

.how-note { margin-top: 48px; color: var(--white); font-weight: 700; }

@media (max-width: 1100px) {
  .how-grid { grid-template-columns: minmax(0, 1fr); }
  .status-card { max-width: 340px; }
}
@media (max-width: 400px) {
  .status-title { white-space: normal; }
}
/* phones: the timeline turns vertical, line down the left */
@media (max-width: 760px) {
  .timeline { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .timeline::before { top: 0; bottom: 0; left: calc(var(--node) / 2 - 1px); right: auto; width: 2px; height: auto; }
  .tl-step {
    display: grid;
    grid-template-columns: var(--node) minmax(0, 1fr);
    column-gap: 18px;
    padding-bottom: 36px;
  }
  .tl-step:last-child { padding-bottom: 0; }
  .tl-node { margin: 0; }
  .tl-text { padding-top: 9px; }
}

/* ---------- 4. what we do ---------- */

.group { margin-top: 56px; }
.group + .group { margin-top: 64px; }
.group-label {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--gray-dark);
  font-size: .875rem;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.group-label::after { content: ""; flex: 1; height: 1px; background: var(--hairline); }
.svc-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 24px;
}
.svc {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--hairline);
  border-top: 3px solid var(--signal);
  border-radius: 8px;
}
/* only created by site.js once a configured card photo has loaded */
.svc-media { aspect-ratio: 400 / 220; }
.svc-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.svc-body { display: flex; flex-direction: column; flex: 1; padding: 30px 30px 30px; }
.svc-num { color: var(--signal-deep); font-size: .8125rem; font-weight: 700; letter-spacing: .12em; }
.svc h4 { margin-top: 10px; font-size: 1.4375rem; }
.svc-body > p:not(.svc-num) { margin-top: 12px; font-size: 1rem; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.chips li {
  padding: 4px 12px;
  color: var(--gray-dark);
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  font-size: .8125rem;
}
.svc-link {
  align-self: flex-start;
  margin-top: auto;
  padding-top: 20px;
  color: var(--signal-deep);
  font-weight: 700;
  text-decoration: none;
}
.svc-link::after { content: " →"; }
.svc-link:hover { text-decoration: underline; }

@media (max-width: 760px) {
  .svc-grid { grid-template-columns: 1fr; gap: 18px; }
  .svc-body { padding: 22px 20px 22px; }
}

/* ---------- 5. why (slim) ---------- */

.why { padding: clamp(56px, 6vw, 80px) 0; }
.why h2 { font-size: clamp(1.6rem, 1.15rem + 1.5vw, 2.125rem); }
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 56px);
  margin-top: 36px;
}
.why-grid article { padding-top: 18px; border-top: 2px solid var(--signal); }
.why-grid p { margin-top: 10px; font-size: 1rem; }

@media (max-width: 820px) {
  .why-grid { grid-template-columns: 1fr; gap: 28px; }
}

/* ---------- 6. closing CTA ---------- */

.closing {
  padding: clamp(88px, 11vw, 150px) 0;
  border-top: 1px solid var(--hairline-ink);
}
.closing h2 { font-size: clamp(2.2rem, 1.2rem + 3.4vw, 3.75rem); }
.closing-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.closing .intro { margin-inline: auto; }
.closing .actions { justify-content: center; }
.contact-line {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 28px;
  margin-top: 32px;
  font-size: 1rem;
}
.contact-line a { color: var(--white); font-weight: 700; text-decoration: none; border-bottom: 2px solid var(--signal); overflow-wrap: anywhere; }
.contact-line a:hover { border-bottom-color: var(--white); }

/* ---------- 404 (404.html): type only, same scale as the hero ---------- */

.notfound {
  min-height: 60vh;
  padding: clamp(88px, 12vw, 168px) 0 clamp(96px, 13vw, 184px);
}
.notfound h1 {
  max-width: 12em;
  font-size: clamp(2.6rem, 1.3rem + 4.6vw, 5rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
}
.notfound .actions { margin-top: clamp(32px, 4vw, 48px); }
.notfound-contact { margin-top: 28px; font-size: 1rem; }
.notfound-contact a { color: var(--white); font-weight: 700; text-decoration: none; border-bottom: 2px solid var(--signal); }
.notfound-contact a:hover { border-bottom-color: var(--white); }

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

.site-footer {
  padding: 64px 0 32px;
  font-size: .9375rem;
  border-top: 1px solid var(--hairline-ink);
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  gap: 40px;
}
.footer-mark { gap: 10px; }
.footer-mark .brand-mark { height: 30px; }
.footer-mark .brand-word { font-size: 1.125rem; }
.footer-brand p { margin-top: 10px; max-width: 22em; }
.footer-head {
  color: var(--white);
  font-size: .8125rem;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.footer-list { margin-top: 14px; }
.footer-list li + li { margin-top: 8px; }
.footer-list a { text-decoration: none; overflow-wrap: anywhere; }
.footer-list a:hover { color: var(--white); text-decoration: underline; text-decoration-color: var(--signal); }
.footer-legal {
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid var(--hairline-ink);
  font-size: .8125rem;
}

@media (max-width: 960px) {
  .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}
