/* Sitelocal homepage */

:root {
  --bg: #ffffff;
  --bg-alt: #faf9f7;
  --surface: #ffffff;
  --ink: #111111;
  --ink-2: #2e2d2b;
  --muted: #54524e;
  --soft: #706d67;
  --line: #e5e3de;
  --line-strong: #cbc8c1;
    --faint: #e3e1db;

  --serif: "Newsreader", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(20px, 4vw, 56px);
  --max: 1240px;
  --section: clamp(56px, 7vw, 104px);
  --section-loose: clamp(88px, 11vw, 160px);
  --header-h: 72px;

  --radius-card: 20px;
  --radius-inner: 12px;
  /* Photo frames and bands, smaller images, cards, pills */
  --r-frame: 28px;
  --r-image: 20px;
  --r-card: 16px;
  --r-pill: 999px;
  --shadow: 0 1px 2px rgba(17, 17, 17, 0.04), 0 6px 24px rgba(17, 17, 17, 0.05);
  --shadow-hover: 0 2px 4px rgba(17, 17, 17, 0.04), 0 14px 36px rgba(17, 17, 17, 0.08);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: var(--header-h);
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0s !important;
    transition-delay: 0s !important;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

body.menu-open { overflow: hidden; }

h1, h2, h3, p, ol, ul, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }

::selection { background: var(--ink); color: #fff; }

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

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--ink);
  color: #fff;
  border-radius: 999px;
  text-decoration: none;
}
.skip:focus { top: 12px; }

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

/* Type */

h1, h2 {
  font-family: var(--serif);
  font-weight: 300;
  text-wrap: balance;
}

h2 {
  font-size: clamp(2.125rem, 1.1rem + 3vw, 3.5rem);
  line-height: 1.08;
  letter-spacing: -0.018em;
}

h3 {
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 20px;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

@media (hover: hover) {
  .btn:hover { transform: translateY(-1px); }
}

.btn-sm { min-height: 44px; padding: 0 18px; font-size: 0.875rem; }

.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #3a3936; }

.btn-line { border-color: var(--line-strong); color: var(--ink); background: transparent; }
.btn-line:hover { border-color: var(--ink); }

.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: #e9e7e2; }

/* Cards */

.card {
  background: var(--surface);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}


/* Scroll reveal (classes are added by main.js, so no-JS shows everything) */

.reveal,
.service.reveal,
.price-card.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}
.reveal.is-in { opacity: 1; transform: none; }

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
.site-header.is-scrolled,
body.menu-open .site-header { border-bottom-color: var(--line); }
body.menu-open .site-header { background: #fff; }

.header-inner {
  display: flex;
  align-items: center;
  height: calc(var(--header-h) - 1px); /* + 1px border = --header-h */
  gap: 32px;
}

.header-inner .wordmark {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.wordmark { text-decoration: none; }
.wordmark img { display: block; width: auto; height: 26px; }

.nav { margin-left: auto; }

.nav-links { display: flex; gap: 8px; }

.nav-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  font-size: 0.9375rem;
  text-decoration: none;
  color: var(--ink-2);
  border-radius: 999px;
  transition: background-color 0.2s ease;
}
.nav-links a:hover { background: var(--bg-alt); }

.menu-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  margin-right: -10px;
  padding: 0 10px;
  background: none;
  border: 0;
  font-size: 0.9375rem;
  font-weight: 500;
  cursor: pointer;
}

.menu-toggle-lines {
  position: relative;
  width: 18px;
  height: 8px;
}
.menu-toggle-lines::before,
.menu-toggle-lines::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.25s ease, top 0.25s ease;
}
.menu-toggle-lines::before { top: 0; }
.menu-toggle-lines::after { top: 6.5px; }

.menu-toggle[aria-expanded="true"] .menu-toggle-lines::before { top: 3.25px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle-lines::after { top: 3.25px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  height: calc(100dvh - var(--header-h));
  background: #fff;
  overflow-y: auto;
  padding: 16px 0 32px;
}
.mobile-menu[hidden] { display: none; }

.mobile-menu .wrap {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 48px;
}

.mobile-links li { border-bottom: 1px solid var(--line); }

.mobile-links a {
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding: 16px 0;
  font-family: var(--serif);
  font-size: 2.125rem;
  font-weight: 300;
  letter-spacing: -0.015em;
  line-height: 1.15;
  text-decoration: none;
}

.mobile-links span {
  font-family: var(--sans);
  font-size: 0.8125rem;
  color: var(--soft);
  letter-spacing: 0;
  min-width: 1ch;
  font-variant-numeric: tabular-nums;
}

.mobile-menu-foot {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.mobile-email {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--muted);
  text-underline-offset: 4px;
}

/* Hero */

.hero { padding-block: clamp(40px, 6vw, 80px) clamp(28px, 4vw, 48px); }

/* Hero content sits in the middle of the screen, Built for closes it at the bottom */
.hero > .wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.hero-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-title {
  max-width: 17em;
  font-size: clamp(2.375rem, 0.9rem + 3.9vw, 4.75rem);
  line-height: 1;
  letter-spacing: -0.025em;
}

.hero-title em {
  display: block;
  font-style: italic;
  color: var(--soft);
}

/* Each headline sentence rises out of its own mask on load */
.hl {
  display: block;
  overflow: hidden;
  padding-bottom: 0.12em;
  margin-bottom: -0.12em;
}
.hl-in { display: block; }

.hero-foot {
  margin-top: clamp(28px, 3.5vw, 44px);
}

.hero-lede {
  max-width: 30em;
  font-size: 1.1875rem;
  line-height: 1.55;
  color: var(--ink-2);
}

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

.hero-note {
  margin-top: 18px;
  font-size: 0.875rem;
  color: var(--muted);
}
.hero-note .hn-sep { margin-inline: 10px; color: var(--soft); }

.btn-arrow { gap: 10px; }
.btn-arrow svg { transition: transform 0.25s var(--ease); }
@media (hover: hover) {
  .btn-arrow:hover svg { transform: translateX(3px); }
}

/* Hero visual: notifications arrive on a phone's lock screen on their own;
   the card is a close-up of that stack, joined to it by two thin lines.
   Hidden on phones so the hero still fits one screen. */

.hero-visual { display: none; }

.hero-visual {
  position: relative;
  width: 480px;
  height: 272px;
  flex-shrink: 0;
}


.hv-phone {
  position: absolute;
  left: 0;
  top: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 136px;
  height: 262px;
  padding: 12px 10px 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 26px;
  box-shadow: 0 2px 6px rgba(17, 17, 17, 0.04), 0 18px 44px rgba(17, 17, 17, 0.08);
}
.hv-phone::after {
  content: "";
  width: 40px;
  height: 4px;
  margin-top: auto;
  border-radius: 999px;
  background: var(--line);
}

.hv-island { width: 42px; height: 12px; border-radius: 999px; background: var(--ink); }
/* Lock screen clock, set to the visitor's own time by main.js */
.hv-time {
  margin-top: 12px;
  font-family: var(--sans);
  font-size: 36px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.hv-stack {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
  margin-top: 38px;
}

.hv-note {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 30px;
  padding: 0 8px;
  border-radius: 9px;
  background: #f1f0ec;
}
/* Miniature versions of the icons in the close-up card */
.hv-note i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  border-radius: 5px;
  background: #fff;
  color: var(--ink);
}
.hv-note > span { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.hv-note b { display: block; height: 3px; border-radius: 999px; background: #bdbab2; }
.hv-note b + b { width: 62%; background: #d6d3cc; }

/* The highlighted area on the phone that the card zooms in on */
.hv-focus {
  position: absolute;
  left: 5px;
  top: 105px;
  width: 126px;
  height: 114px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
}

.hv-zoom {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  color: var(--line-strong);
  pointer-events: none;
}

.hv-inbox {
  position: absolute;
  left: 180px;
  top: 57px;
  width: 300px;
  padding: 14px 14px 6px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 2px 6px rgba(17, 17, 17, 0.04), 0 22px 54px rgba(17, 17, 17, 0.1);
}

.hv-inbox-label {
  margin: 0 0 6px 4px;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.hv-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 4px;
}
.hv-row + .hv-row { border-top: 1px solid var(--line); }

.hv-ic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #f3f2ee;
}

.hv-text { display: flex; flex-direction: column; flex: 1; min-width: 0; line-height: 1.3; }
.hv-text strong { font-size: 0.875rem; font-weight: 600; white-space: nowrap; }
.hv-text small { font-size: 0.75rem; color: var(--muted); }

.hv-dot { flex-shrink: 0; width: 7px; height: 7px; border-radius: 50%; background: var(--ink); }

/* Big screens: copy on the left, visual on the right */
@media (min-width: 1025px) and (min-height: 700px) {
  .hero-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 64px;
    margin-top: clamp(32px, 4vw, 52px);
  }
  .hero-visual { display: block; }
}

/* Tall tablets: visual under the buttons */
@media (min-width: 641px) and (max-width: 1024px) and (min-height: 1000px) {
  .hero-visual { display: block; margin-top: 48px; }
}

/* The sequence: each notification lands on the phone, and the close-up
   shows the same message a moment later. Nothing is clicked. */
@media (prefers-reduced-motion: no-preference) {
  .hv-note { animation: land 0.55s var(--ease) both; }
  .hv-note:nth-child(1) { animation-delay: 1.1s; }
  .hv-note:nth-child(2) { animation-delay: 1.9s; }
  .hv-note:nth-child(3) { animation-delay: 2.7s; }

  .hv-focus { animation: fade-in 0.4s ease 1.35s both; }
  .hv-zoom path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw-line 0.45s var(--ease) 1.4s forwards; }
  .hv-inbox { transform-origin: left center; animation: zoom-in 0.6s var(--ease) 1.5s both; }

  .hv-row { animation: arrive 0.5s var(--ease) both; }
  .hv-row:nth-child(1) { animation-delay: 1.7s; }
  .hv-row:nth-child(2) { animation-delay: 2.1s; }
  .hv-row:nth-child(3) { animation-delay: 2.9s; }
}

@keyframes land {
  from { opacity: 0; transform: translateY(-8px) scale(0.96); }
  to { opacity: 1; transform: none; }
}
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes draw-line { to { stroke-dashoffset: 0; } }
@keyframes zoom-in {
  from { opacity: 0; transform: scale(0.94); }
  to { opacity: 1; transform: none; }
}
@keyframes arrive {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}

/* Built for: a quiet line closing the hero, on the same left edge */

.built-for {
  display: flex;
  align-items: baseline;
  gap: 10px 32px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.built-for-label {
  flex-shrink: 0;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.built-for-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 0;
  font-size: 0.9375rem;
  color: var(--ink-2);
}

.built-for-list li { display: inline-flex; align-items: center; white-space: nowrap; }

.built-for-list li + li::before {
  content: "";
  width: 3px;
  height: 3px;
  margin-inline: 14px;
  border-radius: 50%;
  background: var(--line-strong);
}

@media (prefers-reduced-motion: no-preference) {
  .hero .label,
  .hero-copy,
  .built-for,
  .hero-visual {
    animation: hero-in 1s var(--ease) both;
  }
  .hl-in { animation: line-up 1.1s var(--ease) both; }
  .hl + .hl .hl-in { animation-delay: 0.12s; }
  .hero-copy { animation-delay: 0.3s; }
  .hero-visual { animation-delay: 0.45s; }
  .built-for { animation-delay: 0.6s; }
}

@keyframes line-up {
  from { transform: translateY(105%); }
  to { transform: none; }
}

@keyframes hero-in {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

/* The headline types itself out, each letter clearing from a soft blur (main.js).
   The head script sets .tw before the first paint; if main.js never runs, the
   headline still appears after a moment. */
.tw .hero-title { position: relative; }
.tw .hero-title:not(.tw-on) { animation: tw-safety 0s 2.4s both; }
.tw .hero-title .hl-in { animation: none; }
.tw .hero-copy { animation-delay: 1.5s; }
.tw .built-for { animation-delay: 1.9s; }
.tw-c { opacity: 0; filter: blur(0.07em); transition: opacity 0.4s ease, filter 0.6s var(--ease); }
.tw-c.on { opacity: 1; filter: none; }
.tw-caret {
  position: absolute;
  left: 0;
  top: 0;
  width: 2px;
  border-radius: 1px;
  background: currentColor;
  pointer-events: none;
  transition: opacity 0.5s ease;
}
.tw-caret.is-blink { animation: tw-blink 1s steps(1) 2; }
.tw-caret.is-gone { opacity: 0; }

@keyframes tw-safety {
  from { visibility: hidden; }
  to { visibility: visible; }
}
@keyframes tw-blink {
  50% { opacity: 0; }
}

/* Sections */

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

/* Each section fills at least one screen below the header, content centred */
.screen {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: calc(100vh - var(--header-h));
  min-height: calc(100svh - var(--header-h));
}

/* Problem and Services share one box shape so they read as a pair.
   Problem boxes are quiet; Services boxes are lifted with a shadow. */

.points,
.service-list {
  display: grid;
  gap: clamp(16px, 1.6vw, 24px);
  margin-top: clamp(28px, 3vw, 40px);
}

.point,
.service {
  display: flex;
  flex-direction: column;
  padding: clamp(22px, 2.1vw, 30px);
  border-radius: var(--radius-card);
  background: var(--surface);
}

.point h3,
.service h3 {
  font-family: var(--serif);
  font-size: clamp(1.375rem, 1.1rem + 0.6vw, 1.75rem);
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.2;
  margin-bottom: 10px;
}

.point p,
.service p { color: var(--muted); }

.point h3,
.service h3 { text-wrap: balance; }

/* Four across: titles share a two-line height so the text below starts level */
@media (min-width: 861px) {
  .points .point h3 { min-height: 2.4em; }
}

/* Icon on the left, number on the right, same in every box */
.box-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: clamp(16px, 1.6vw, 22px);
}

.box-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: #f3f2ee;
}

.point .box-icon { color: var(--muted); }
.service .box-icon {
  color: var(--ink);
  transition: background-color 0.3s ease, color 0.3s ease;
}

@media (hover: hover) {
  .service:hover .box-icon { background: var(--ink); color: #fff; }
}

/* Stroke drawing: html.js-anim is only set when motion is allowed and JS runs */
.js-anim .box-icon svg > * {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}
.js-anim .is-drawn .box-icon svg > * {
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 0.9s var(--ease) 0.2s;
}
.js-anim .is-drawn .box-icon svg > :nth-child(2) { transition-delay: 0.45s; }
.js-anim .is-drawn .box-icon svg > :nth-child(n+3) { transition-delay: 0.75s; }

/* Problem */

.problem { background: var(--bg-alt); }
.problem-title { max-width: 17em; }

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


.point { border: 1px solid var(--line); }

.point-num {
  font-size: 0.8125rem;
  color: var(--soft);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

/* Services */

.services-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px 48px;
  flex-wrap: wrap;
}

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

.service {
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .service:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
}

/* Icon, title and number share one row */
.service-top {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}
.service-top h3 { flex: 1; min-width: 0; margin: 0; }
.service-top .service-num { flex-shrink: 0; }

/* Paragraph and list: side by side in a wide box, stacked in a narrow one */
.service { container-type: inline-size; }

.service-body { display: grid; gap: 12px; }
.service-top .box-icon { width: 42px; height: 42px; border-radius: 12px; }
.service-body p { max-width: 34em; }

.incl {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 0.875rem;
  line-height: 1.4;
  color: var(--ink-2);
}

.incl li { position: relative; padding-left: 22px; }
.incl li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.42em;
  width: 9px;
  height: 5px;
  border-left: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(-45deg);
}

/* Mid-width box: paragraph on top, the list underneath in two short columns */
@container (min-width: 360px) {
  .incl {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px 20px;
  }
}

/* Wide box: paragraph and list side by side */
@container (min-width: 530px) {
  .service-body {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 22px;
    align-items: start;
  }
  .incl {
    display: flex;
    gap: 4px;
    padding-top: 0;
    padding-left: 22px;
    border-top: 0;
    border-left: 1px solid var(--line);
  }
}

/* The service paragraph reads a touch smaller so box heights stay even */
.service-body p { font-size: 0.9375rem; line-height: 1.5; }
.service { padding: clamp(18px, 1.6vw, 22px) clamp(20px, 1.9vw, 26px); }
.services .service-list { margin-top: clamp(24px, 2.4vw, 32px); }

.service-num {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
}

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

/* Before and after: a laptop with a draggable divider between a
   do-it-yourself site and ours, and the first month's numbers below. */

.showcase-grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: 32px clamp(32px, 5vw, 80px);
  align-items: center;
}

.showcase-head h2 { max-width: 11em; }

.showcase-lede {
  margin-top: 16px;
  color: var(--muted);
  max-width: 26em;
}

/* Small "Concept" label, lined up with the laptop screen */
.mac-label { margin: 0 6% 14px; }

/* Laptop. Its width follows the screen height so the section fits. */
.mac {
  justify-self: end;
  width: min(100%, calc((100vh - 440px) * 1.62));
  min-width: 0;
}

.mac-screen {
  position: relative;
  margin: 0 6%;
  padding: clamp(7px, 1.5%, 13px);
  padding-top: clamp(12px, 2.2%, 18px);
  background: #141414;
  border-radius: 16px 16px 6px 6px;
  box-shadow: 0 30px 70px rgba(17, 17, 17, 0.14), 0 4px 10px rgba(17, 17, 17, 0.06);
}

.mac-cam {
  position: absolute;
  left: 50%;
  top: clamp(4px, 0.8%, 7px);
  width: 5px;
  height: 5px;
  margin-left: -2.5px;
  border-radius: 50%;
  background: #3a3a3a;
}

.mac-base {
  position: relative;
  height: clamp(10px, 1.4vw, 16px);
  background: #dddcd8;
  border-radius: 0 0 16px 16px / 0 0 12px 12px;
  box-shadow: inset 0 1px 0 #efeeeb, 0 12px 24px rgba(17, 17, 17, 0.08);
}

/* The laptop opens as it scrolls into view and its screen wakes (main.js adds
   is-shut straight away, then is-open; without JS or with reduced motion it is
   simply open) */
.mac.is-shut { perspective: 2400px; perspective-origin: 50% 92%; }
.mac.is-shut .mac-screen { transform-origin: 50% 100%; transform: rotateX(-88deg); }
.mac.is-shut.is-open .mac-screen { transform: none; transition: transform 1.6s cubic-bezier(0.22, 0.61, 0.24, 1); }
.mac.is-shut .ba::after { content: ""; position: absolute; inset: 0; z-index: 6; background: #0c0c0d; pointer-events: none; }
.mac.is-shut.is-open .ba::after { opacity: 0; transition: opacity 0.9s ease 0.75s; }

.mac-notch {
  position: absolute;
  left: 50%;
  top: 0;
  width: 14%;
  height: 45%;
  transform: translateX(-50%);
  border-radius: 0 0 8px 8px;
  background: #c9c8c4;
}

/* Comparison: two homepages for a made-up business, stacked at the same
   size, with a divider between them. Built in HTML and CSS so they stay sharp. */
.ba {
  --pos: 50%;
  position: relative;
  display: flex;
  flex-direction: column;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 3px;
  background: #fff;
  container-type: inline-size;
}

/* Browser bar: the labels sit in its corners, clear of both sites */
.ba-chrome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2cqi;
  flex-shrink: 0;
  height: clamp(22px, 5cqi, 32px);
  padding: 0 1.4cqi;
  background: #f1f0ec;
  border-bottom: 1px solid #e0ded8;
}

.ba-tag {
  flex-shrink: 0;
  padding: 0.3em 0.8em;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: clamp(9px, 1.4cqi, 11px);
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1.2;
  text-transform: uppercase;
}

.ba-url {
  display: flex;
  align-items: center;
  gap: 0.5em;
  min-width: 0;
  padding: 0.25em 0.9em;
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  font-size: clamp(9px, 1.4cqi, 11.5px);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
}
.ba-url svg { flex-shrink: 0; width: 1em; height: 1em; }
.ba-url-text { overflow: hidden; text-overflow: ellipsis; }
.ba-concept {
  flex-shrink: 0;
  padding: 0 0.5em;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 0.85em;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* The compared area. Horizontal drags move the line, vertical swipes
   still scroll the page (touch-action: pan-y). */
.ba-stage {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  container: bastage / size;
  touch-action: pan-y;
  cursor: ew-resize;
  user-select: none;
  -webkit-user-select: none;
}

/* Each version is its own layer, the old one always above the new one,
   so nothing from one can show through the other */
.ba-pane { position: absolute; inset: 0; overflow: hidden; isolation: isolate; }
.ba-after { z-index: 0; }
.ba-before { z-index: 1; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }

.ba-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos);
  width: 2px;
  margin-left: -1px;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(17, 17, 17, 0.14);
  pointer-events: none;
  z-index: 2;
}

.ba-handle {
  position: absolute;
  left: 50%;
  top: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 4px 16px rgba(17, 17, 17, 0.22);
}
.ba:has(.ba-range:focus-visible) .ba-handle { outline: 2px solid var(--ink); outline-offset: 3px; }

/* A click or tap glides the line to the spot; dragging follows instantly */
.ba.is-jumping .ba-before { transition: clip-path 0.22s var(--ease); }
.ba.is-jumping .ba-line { transition: left 0.22s var(--ease); }

/* Keyboard control: a real range input, invisible and out of the pointer's way */
.ba-range {
  position: absolute;
  z-index: 3;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  pointer-events: none;
}

/* Each version is a long page in a fixed window. With JS, main.js scrolls
   .ba-scroll and adds a copy of the page below it, so the loop never jumps. */
.ba-scroll { position: absolute; top: 0; left: 0; width: 100%; }
.ba.is-auto .ba-scroll { will-change: transform; }

/* ---- After: Northbank Residences as a calm, photographic listing site ----
   Large photos in rounded frames on the warm page, small white cards floating on
   them, hairline index rows and one near-black band. The demo is a miniature of a
   full page, so the four radius values (28 / 20 / 16 / round) are scaled with it. */
.ba-after {
  --rn-bg: #f5f0e6;
  --rn-bg-2: #ede6d8;
  --rn-paper: #fbf8f2;
  --rn-ink: #26231f;
  --rn-muted: #6b6359;
  --rn-hair: rgba(38, 35, 31, 0.15);
  --rn-bronze: #84643f;
  --rn-ph-fill: #e6e0d6;
  --rn-x: 5cqi;
  --rn-r-frame: clamp(10px, 1.95cqi, 28px);
  --rn-r-image: clamp(7px, 1.4cqi, 20px);
  --rn-r-card: clamp(6px, 1.1cqi, 16px);
  --rn-r-pill: var(--r-pill);
  --rn-float-shadow: 0 1px 2px rgba(38, 35, 31, 0.06), 0 10px 28px rgba(38, 35, 31, 0.12);
}

.rn {
  position: relative;
  min-height: 100cqh;
  background: var(--rn-bg);
  color: var(--rn-ink);
  font-family: var(--sans);
  font-size: clamp(9.5px, 1.5cqi, 12.5px);
  line-height: 1.5;
}
.rn img { width: 100%; height: 100%; object-fit: cover; }

.rn-label {
  display: block;
  font-size: clamp(8.5px, 1.2cqi, 10.5px);
  font-weight: 500;
  letter-spacing: 0.2em;
  line-height: 1.3;
  text-transform: uppercase;
  color: var(--rn-muted);
}

.rn-hero-title,
.rn-stat b,
.rn-month-name,
.rn-fig b,
.rn-advisor-title,
.rn-book-title,
.rn-brand,
.rn-foot-brand,
.rn-count,
.rn-contact-title {
  font-family: var(--serif);
  font-weight: 300;
  letter-spacing: -0.01em;
  line-height: 1.1;
}

/* Every photo sits in a frame filled warm grey, with a small bracketed note
   under the image, so a missing photo never leaves a hole */
.rn-frame,
.rn-ph,
.rn-float-ph { position: relative; overflow: hidden; background: var(--rn-ph-fill); }
.rn-frame { border-radius: var(--rn-r-frame); }
.rn-ph,
.rn-float-ph { border-radius: var(--rn-r-image); }
.rn-ph-note {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1em;
  font-size: clamp(7.5px, 1.05cqi, 9.5px);
  letter-spacing: 0.14em;
  text-align: center;
  text-transform: uppercase;
  color: #6b6359;
}
.rn-frame > img,
.rn-ph > img,
.rn-float-ph > img { position: relative; display: block; }

/* Pills: white with near-black text over photos, near-black, light grey or outlined */
.rn-btn,
.rn-cta,
.rn-pill,
.rn-pill-k,
.rn-no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  border-radius: var(--rn-r-pill);
  font-size: clamp(8px, 1.15cqi, 10px);
  letter-spacing: 0.08em;
  line-height: 1.2;
  white-space: nowrap;
}

/* Bar: the name on the left, links in the middle, the viewing button as a black pill */
.rn-nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 2cqi;
  height: clamp(34px, 7.4cqi, 58px);
  padding: 0 var(--rn-x);
  background: var(--rn-bg);
}
.rn-brand { justify-self: start; font-size: clamp(15px, 2.9cqi, 24px); font-weight: 400; letter-spacing: 0.02em; }
.rn-links { display: flex; gap: 2.6cqi; font-size: clamp(9px, 1.35cqi, 11.5px); letter-spacing: 0.02em; color: var(--rn-ink); }
.rn-menu { display: none; width: 16px; height: 7px; border-block: 1px solid var(--rn-ink); }
.rn-btn { justify-self: end; padding: 0.75em 1.3em; background: var(--rn-ink); color: var(--rn-paper); }

/* Once the page has scrolled, a copy of the bar stays at the top (main.js), slightly
   see-through with a soft blur and a hairline underneath */
.rn-bar {
  position: absolute;
  z-index: 1;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(245, 240, 230, 0.82);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rn-hair);
  opacity: 0;
  transform: translateY(-100%);
  transition: opacity 0.4s ease, transform 0.5s var(--ease);
  pointer-events: none;
}
.rn-bar.is-on { opacity: 1; transform: none; }

/* Hero: one large photo in a rounded frame, inset by the gutter, the headline and
   buttons in white over a soft shade from the top-left corner */
.rn-hero { position: relative; padding: 0 var(--rn-x); }
.rn-hero-ph { height: 82cqh; }
.rn-hero-ph > img { object-position: 50% 78%; }
.rn-hero-ph::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(130% 110% at 0% 0%, rgba(18, 16, 13, 0.72) 0%, rgba(18, 16, 13, 0.5) 34%, rgba(18, 16, 13, 0.18) 60%, rgba(18, 16, 13, 0) 82%);
  pointer-events: none;
}
.rn-hero-text {
  position: absolute;
  z-index: 1;
  top: 5cqi;
  left: 5cqi;
  right: 5cqi;
  color: #fff;
  text-shadow: 0 1px 14px rgba(18, 16, 13, 0.3);
}
/* Light and airy: open line spacing, the italic line set a little in from the first */
.rn-hero-title {
  display: block;
  max-width: 13em;
  font-size: clamp(22px, 4.8cqi, 46px);
  font-weight: 300;
  line-height: 1.24;
  letter-spacing: 0;
}
.rn-hero-title > span,
.rn-hero-title em { display: block; }
.rn-hero-title em { padding-left: 1.2em; font-style: italic; }
/* Two pills of the same size, lined up under the title */
.rn-hero-ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 1.2cqi; margin-top: 3.4cqi; text-shadow: none; }

/* Each time the tour comes round to the hero, the two title lines and the buttons
   rise in one after another (main.js adds is-in; never with reduced motion) */
.ba.is-auto .rn-hero-title > *,
.ba.is-auto .rn-hero-ctas { opacity: 0; transform: translateY(14px); }
.ba.is-auto .rn-hero.is-in .rn-hero-title > *,
.ba.is-auto .rn-hero.is-in .rn-hero-ctas {
  opacity: 1;
  transform: none;
  transition: opacity 0.9s ease, transform 1.1s var(--ease);
}
.ba.is-auto .rn-hero.is-in .rn-hero-title > em { transition-delay: 0.22s; }
.ba.is-auto .rn-hero.is-in .rn-hero-ctas { transition-delay: 0.5s; }
.rn-hero-ctas .rn-cta,
.rn-hero-ctas .rn-btn { margin: 0; padding: 0.95em 1.5em; border: 1px solid #fff; }
.rn-hero-ctas .rn-cta { background: #fff; color: #1b1915; }
/* The outlined pill keeps a faint dark glass behind it, so its text stays readable on bright sky */
.rn-hero-ctas .rn-btn {
  background: rgba(18, 16, 13, 0.3);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.85);
  color: #fff;
}

/* Two white cards float in the photo's bottom corners */
.rn-float {
  position: absolute;
  z-index: 1;
  bottom: 3cqi;
  padding: 1.6cqi 2cqi;
  background: #fff;
  border-radius: var(--rn-r-card);
  box-shadow: var(--rn-float-shadow);
}
.rn-float-l { left: calc(var(--rn-x) + 3cqi); width: 44cqi; }
.rn-float-r { right: calc(var(--rn-x) + 3cqi); width: 28cqi; padding: 1cqi 1cqi 1.4cqi; }
.rn-hero-hook { margin-top: 0.6cqi; font-weight: 500; line-height: 1.4; }
.rn-float-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.6cqi; margin-top: 1.2cqi; }
.rn-market { display: flex; gap: 1.8cqi; }
.rn-stat { display: flex; flex-direction: column; gap: 0.3cqi; }
.rn-stat b { font-size: clamp(13px, 2cqi, 19px); line-height: 1; font-variant-numeric: tabular-nums; }
.rn-stat small {
  white-space: nowrap;
  font-size: clamp(7.5px, 1cqi, 9px);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rn-muted);
}
.rn-pill { flex-shrink: 0; padding: 0.7em 1.1em; background: #f0ece4; color: var(--rn-ink); }
.rn-float-ph { display: block; aspect-ratio: 5 / 2; }
.rn-pill-k {
  position: absolute;
  top: 0.9cqi;
  right: 0.9cqi;
  padding: 0.45em 0.9em;
  background: #1b1915;
  color: #fff;
}
.rn-float-name { display: block; margin: 1cqi 0.6cqi 0; font-weight: 500; }
.rn-float-sub { display: block; margin: 0.1cqi 0.6cqi 0; font-size: 0.9em; color: var(--rn-muted); }
.rn-pill-more { margin: 1cqi 0.6cqi 0; padding: 0.3em 1.1em 0.3em 0.3em; }
.rn-pill-more i { flex-shrink: 0; width: 2.2em; height: 2.2em; overflow: hidden; border-radius: 50%; background: var(--rn-ph-fill); }

/* Section heads: a label with a hairline either side, and the count under it */
.rn-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1cqi;
  text-align: center;
}
.rn-head .rn-label { display: flex; align-items: center; gap: 2.4cqi; width: 100%; }
.rn-head .rn-label::before,
.rn-head .rn-label::after { content: ""; flex: 1; height: 1px; background: var(--rn-hair); }
.rn-count { font-size: clamp(16px, 2.8cqi, 24px); font-style: italic; }

/* Current residences: listings in two columns, photo first and the details under it,
   the first one across the full width */
.rn-list { padding: 8cqi var(--rn-x) 9cqi; }
.rn-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4.5cqi 3cqi;
  margin-top: 4.5cqi;
}
.rn-card { display: flex; flex-direction: column; }
.rn-card:first-child { grid-column: 1 / 3; }
.rn-card .rn-ph { aspect-ratio: 4 / 3; }
.rn-card:first-child .rn-ph { aspect-ratio: 2 / 1; }
.rn-no {
  position: absolute;
  top: 1.2cqi;
  left: 1.2cqi;
  padding: 0.45em 0.95em;
  background: #fff;
  color: var(--rn-ink);
}
/* A hover zooms the photo a touch inside its still frame */
.rn-ph > img { transition: scale 0.8s var(--ease); }
.rn-card:hover .rn-ph > img { scale: 1.04; }
.rn-card-main { display: flex; justify-content: space-between; align-items: baseline; gap: 2cqi; margin-top: 1.6cqi; }
.rn-name { font-size: clamp(10.5px, 1.65cqi, 14px); font-weight: 500; }
.rn-price { color: var(--rn-muted); white-space: nowrap; }
.rn-card-loc { display: flex; align-items: center; flex-wrap: wrap; gap: 0.15em 0.5em; margin-top: 0.4cqi; font-size: 0.92em; color: var(--rn-muted); }
.rn-pin-ic { flex-shrink: 0; width: 1.1em; height: 1.1em; }
.rn-det::before { content: "·"; margin-right: 0.5em; }

/* Residence of the month: the page's one near-black band, inset like the hero */
.rn-month { padding: 0 var(--rn-x); }
.rn-band {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: 5cqi;
  align-items: center;
  padding: 6cqi;
  border-radius: var(--rn-r-frame);
  background: #161513;
  color: #fff;
}
.rn-band .rn-head { align-items: flex-start; text-align: left; }
.rn-band .rn-label { color: #b9b2a7; }
.rn-band .rn-head .rn-label::before { display: none; }
.rn-band .rn-head .rn-label::after { background: rgba(255, 255, 255, 0.18); }
.rn-month-name { display: block; margin-top: 2.4cqi; font-size: clamp(20px, 4.6cqi, 40px); line-height: 1.05; letter-spacing: -0.015em; }
.rn-month-sub { display: block; margin-top: 1cqi; color: #c9c2b7; }
.rn-desc { margin-top: 2cqi; max-width: 30em; line-height: 1.65; color: #c9c2b7; }
.rn-figs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 3cqi;
}
.rn-fig { display: flex; flex-direction: column; gap: 0.8cqi; padding: 0 2cqi; }
.rn-fig:first-child { padding-left: 0; }
.rn-fig + .rn-fig { border-left: 1px solid rgba(255, 255, 255, 0.18); }
.rn-fig small {
  white-space: nowrap;
  font-size: clamp(7.5px, 1cqi, 9px);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #b9b2a7;
}
.rn-fig b { font-size: clamp(18px, 3.6cqi, 32px); line-height: 1; letter-spacing: -0.02em; }
.rn-link {
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
  margin-top: 3.4cqi;
  padding: 0.95em 1.5em;
  border-radius: var(--rn-r-pill);
  background: #fff;
  color: #1b1915;
  font-size: clamp(8px, 1.15cqi, 10px);
  letter-spacing: 0.08em;
}
.rn-link svg { width: 1.2em; height: 1.2em; }
.rn-month-ph { aspect-ratio: 4 / 5; }

/* Locations: an index of large rows between hairlines, then the map */
.rn-map { padding: 9cqi var(--rn-x) 8cqi; }
.rn-map-in { margin-top: 4.5cqi; }
.rn-index { border-bottom: 1px solid var(--rn-hair); }
.rn-index li {
  display: grid;
  grid-template-columns: 4cqi minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 2cqi;
  padding: 1.7cqi 0;
  border-top: 1px solid var(--rn-hair);
}
.rn-index span { font-size: 0.82em; letter-spacing: 0.12em; color: var(--rn-muted); }
.rn-index b { font-family: var(--serif); font-size: clamp(16px, 3.2cqi, 28px); font-weight: 300; line-height: 1.1; letter-spacing: -0.01em; }
.rn-index em { font-style: normal; color: var(--rn-muted); }
.rn-mapbox { margin-top: 4cqi; border-radius: var(--rn-r-image); }

.rn-mapbox { position: relative; aspect-ratio: 21 / 9; overflow: hidden; background: #ece5d7; }
.rn-geo { position: absolute; inset: 0; width: 100%; height: 100%; }
.rn-roads { stroke: #cdbfa8; stroke-width: 1.2; stroke-dasharray: 4 5; }
.rn-water { stroke: #c6ccc4; }
.rn-geo-lake { font-family: var(--serif); font-size: 13px; font-style: italic; fill: #8e968f; }
.rn-geo-n { fill: #b3a893; font-family: var(--sans); font-size: 11px; text-anchor: middle; }

/* Each pin names the house, with its town underneath */
.rn-pin { position: absolute; left: var(--x); top: var(--y); }
.rn-pin i {
  position: absolute;
  left: -4px;
  top: -4px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--rn-bronze);
  box-shadow: 0 0 0 2px var(--rn-paper);
}
.rn-pin i::after {
  content: "";
  position: absolute;
  inset: -5px;
  border: 1px solid var(--rn-bronze);
  border-radius: 50%;
  opacity: 0;
}
.rn-pin b {
  position: absolute;
  left: 9px;
  top: 0;
  transform: translateY(-50%);
  padding: 0.2em 0.5em 0.25em;
  background: rgba(251, 248, 242, 0.88);
  font-family: var(--serif);
  font-size: clamp(9px, 1.25cqi, 11px);
  font-weight: 400;
  line-height: 1.15;
  white-space: nowrap;
}
.rn-pin small {
  display: block;
  font-family: var(--sans);
  font-size: 0.72em;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rn-muted);
}
.rn-pin-l b { left: auto; right: 9px; text-align: right; }

/* Private viewings: the headline large on the left, the advisor and the booking
   form on the right, then one wide photo */
.rn-contact { padding: 1cqi var(--rn-x) 4cqi; }
.rn-contact-in {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 5cqi;
}
.rn-contact-title { display: block; margin-top: 1.6cqi; font-size: clamp(24px, 5.6cqi, 50px); line-height: 1; letter-spacing: -0.02em; }
.rn-steps { display: grid; margin-top: 4cqi; border-bottom: 1px solid var(--rn-hair); }
.rn-steps li {
  display: flex;
  align-items: center;
  gap: 1.4cqi;
  padding: 1.3cqi 0;
  border-top: 1px solid var(--rn-hair);
  font-size: clamp(9px, 1.3cqi, 11.5px);
}
.rn-steps i {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 1.9em;
  height: 1.9em;
  border: 1px solid var(--rn-ink);
  border-radius: 50%;
  font-family: var(--serif);
  font-style: normal;
  line-height: 1;
}
.rn-advisor-top { display: grid; grid-template-columns: 18% minmax(0, 1fr); gap: 2.2cqi; align-items: center; }
.rn-portrait {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #e1d9cb;
  box-shadow: inset 0 0 0 1px rgba(38, 35, 31, 0.08);
}
.rn-portrait span {
  font-family: var(--serif);
  font-size: clamp(12px, 2.4cqi, 22px);
  font-weight: 300;
  letter-spacing: 0.04em;
  color: #5e574e;
}
.rn-advisor-title,
.rn-book-title { display: block; font-size: clamp(14px, 2.4cqi, 21px); }
.rn-advisor-text { margin-top: 0.6cqi; color: var(--rn-muted); }
/* The form: soft rounded fields on white */
.rn-book {
  display: flex;
  flex-direction: column;
  margin-top: 2.6cqi;
  padding: 2.6cqi;
  background: #fff;
  border-radius: var(--rn-r-card);
  box-shadow: 0 1px 2px rgba(38, 35, 31, 0.05);
}
.rn-field { display: block; margin-top: 1.4cqi; }
.rn-field small {
  display: block;
  font-size: clamp(8px, 1.05cqi, 9.5px);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rn-muted);
}
.rn-field > span {
  display: block;
  min-height: 2.5em;
  margin-top: 0.5em;
  padding: 0.6em 0.9em;
  background: #fff;
  border: 1px solid rgba(38, 35, 31, 0.2);
  border-radius: var(--rn-r-card);
  font-size: clamp(10px, 1.45cqi, 12.5px);
}
.rn-field > .rn-chips { display: flex; gap: 0.6em; min-height: 0; padding: 0; border: 0; }
.rn-chips b {
  padding: 0.35em 1.1em;
  border: 1px solid rgba(38, 35, 31, 0.2);
  border-radius: var(--rn-r-pill);
  font-size: 0.9em;
  font-weight: 400;
}
.rn-chips .is-on { background: var(--rn-ink); border-color: var(--rn-ink); color: var(--rn-paper); }
.rn-cta {
  margin-top: 2.2cqi;
  padding: 1em 1.4em;
  background: var(--rn-ink);
  color: var(--rn-paper);
}
.rn-contact-ph { margin-top: 6cqi; aspect-ratio: 21 / 9; }

.rn-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2cqi;
  margin-top: 6cqi;
  padding-top: 2cqi;
  border-top: 1px solid var(--rn-hair);
  font-size: clamp(8.5px, 1.2cqi, 10.5px);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rn-muted);
}
.rn-foot-brand { font-size: clamp(12px, 1.9cqi, 16px); letter-spacing: 0.02em; text-transform: none; color: var(--rn-ink); }
.rn-credit { display: inline-flex; align-items: center; gap: 0.8em; }
.rn-credit img { width: auto; height: clamp(11px, 1.7cqi, 15px); opacity: 0.75; }

/* "Just listed" card: fixed to the corner, outside the scrolling page */
.rn-toast {
  position: absolute;
  z-index: 1;
  right: 3cqi;
  bottom: 3cqi;
  display: none;
  align-items: center;
  gap: 1.4cqi;
  padding: 1.4cqi 2.2cqi;
  background: #fff;
  border-radius: var(--rn-r-card);
  box-shadow: var(--rn-float-shadow);
  color: var(--rn-ink);
  pointer-events: none;
}
.rn-toast i { flex-shrink: 0; width: 6px; height: 6px; border-radius: 50%; background: var(--rn-bronze); }
.rn-toast small {
  display: block;
  font-size: clamp(8px, 1.05cqi, 9.5px);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--rn-muted);
}
.rn-toast b { display: block; font-family: var(--serif); font-size: clamp(11px, 1.8cqi, 15px); font-weight: 400; line-height: 1.25; }

/* Motion, only once main.js starts the tour (never with reduced motion):
   photos drift, listings fade up, pins land one by one, the card slides in.
   Everything pauses while the box is off screen. */
.ba.is-auto .rn-drift { animation: rn-drift 28s ease-in-out infinite alternate; }
.ba.is-auto .rn-card:nth-child(even) .rn-drift { animation-duration: 34s; animation-direction: alternate-reverse; }
.ba.is-auto .rn-card { opacity: 0; transform: translateY(3cqi); transition: opacity 1.3s ease, transform 1.5s var(--ease); }
.ba.is-auto .rn-card.is-in { opacity: 1; transform: none; }
.ba.is-auto .rn-pin { opacity: 0; }
.ba.is-auto .rn-mapbox.is-in .rn-pin { animation: rn-pin-in 0.9s var(--ease) calc(0.3s + var(--i) * 0.45s) both; }
.ba.is-auto .rn-mapbox.is-in .rn-pin i::after { animation: rn-pulse 3.2s ease-out calc(1.1s + var(--i) * 0.45s) infinite; }
.ba.is-auto .rn-toast { display: flex; opacity: 0; transform: translateX(16px); transition: opacity 0.9s ease, transform 1.2s var(--ease); }
.ba.is-auto .rn-toast.is-on { opacity: 1; transform: none; }
.ba.is-auto:not(.is-live) .rn-drift,
.ba.is-auto:not(.is-live) .rn-pin,
.ba.is-auto:not(.is-live) .rn-pin i::after { animation-play-state: paused; }

@keyframes rn-drift {
  from { transform: scale(1.03); }
  to { transform: scale(1.11) translate3d(-1.5%, -1%, 0); }
}
@keyframes rn-pin-in {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}
@keyframes rn-pulse {
  0% { opacity: 0.7; transform: scale(0.6); }
  70%, 100% { opacity: 0; transform: scale(2.2); }
}

/* ---- Before: the same agency around 2012 ---- */
.ro {
  position: relative;
  min-height: 100cqh;
  padding: 1.6cqi 0;
  background: #c8ccd2;
  color: #333;
  font-family: "Times New Roman", Times, serif;
  font-size: clamp(9px, 1.45cqi, 11.5px);
  line-height: 1.25;
}

.ro-col {
  width: 68%;
  margin: 0 auto;
  background: #fff;
  border: 1px solid #9a9fa6;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.25);
}

.ro-banner {
  padding: 1.8cqi 2.4cqi;
  background: linear-gradient(#86b8ec 0%, #4386d4 48%, #2463b4 52%, #3a7acb 100%);
  border-bottom: 2px solid #1b4f93;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
  color: #fff;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.45);
}
.ro-title { display: block; font-family: Arial, Helvetica, sans-serif; font-size: clamp(12px, 3cqi, 22px); font-weight: bold; line-height: 1.1; }
.ro-tag { display: block; margin-top: 0.2em; font-size: clamp(9px, 1.4cqi, 11px); font-style: italic; }

.ro-nav {
  padding: 0.6cqi 2.4cqi;
  background: linear-gradient(#f7f7f7, #d9d9d9);
  border-bottom: 1px solid #b7b7b7;
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(8.5px, 1.3cqi, 10.5px);
  color: #999;
}
.ro-nav span { color: #1a4fa0; text-decoration: underline; }

.ro-feat { padding: 1.8cqi 2.4cqi 1.6cqi; text-align: center; }
.ro-alert { font-family: Arial, Helvetica, sans-serif; font-size: clamp(10px, 1.9cqi, 15px); font-weight: bold; color: #e00000; }
/* Forced into the wrong shape, as old templates did */
.ro-feat-img { width: 46%; height: 9cqi; margin: 0.8cqi auto 0; border: 2px solid #1b4f93; object-fit: fill; }
.ro-feat-txt { margin-top: 0.7cqi; }
.ro-price { font-family: Arial, Helvetica, sans-serif; font-weight: bold; color: #0033cc; }

.ro-list, .ro-detail, .ro-map { padding: 0 2.4cqi 1.8cqi; }
.ro-h { margin-bottom: 0.6cqi; font-size: clamp(10px, 1.7cqi, 13.5px); font-weight: bold; color: #1f4f96; text-decoration: underline; }

.ro-table { width: 100%; border-collapse: collapse; border: 1px solid #999; font-size: inherit; }
.ro-table th {
  padding: 0.3cqi 0.6cqi;
  background: linear-gradient(#eee, #ccc);
  border: 1px solid #999;
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(8.5px, 1.15cqi, 10px);
  text-align: left;
}
.ro-table td { padding: 0.8cqi 0.8cqi; border: 1px solid #bbb; vertical-align: top; }
.ro-table tr:nth-child(odd) td { background: #f2f2f2; }
.ro-table td.ro-price { white-space: nowrap; }
.ro-thumb { width: 9cqi; height: 6.5cqi; border: 1px solid #666; object-fit: fill; }
.ro-link { display: block; font-weight: bold; color: #1a4fa0; text-decoration: underline; }
.ro-det { display: block; font-family: Arial, Helvetica, sans-serif; font-size: clamp(8.5px, 1.15cqi, 9.5px); color: #999; }

.ro-detail { display: flow-root; }
.ro-para { font-size: clamp(9px, 1.35cqi, 11px); line-height: 1.15; text-align: justify; color: #444; }
.ro-float { float: left; width: 13cqi; height: 10cqi; margin: 0.3cqi 1cqi 0.2cqi 0; border: 1px solid #666; object-fit: fill; }

.ro-mapbox {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  width: 58%;
  height: 13cqi;
  background: #e5e5e5;
  border: 1px solid #999;
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(8.5px, 1.2cqi, 10px);
  color: #777;
}
.ro-spin { width: 1.3em; height: 1.3em; border: 2px dotted #999; border-radius: 50%; }

.ro-foot {
  padding: 1.2cqi 2.4cqi 1.6cqi;
  border-top: 1px solid #ccc;
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(8.5px, 1.1cqi, 9.5px);
  line-height: 1.45;
  text-align: center;
  color: #888;
}
.ro-counter span {
  display: inline-block;
  margin-left: 1px;
  padding: 0 0.25em;
  background: #111;
  color: #4f4;
  font-family: "Courier New", Courier, monospace;
}

/* Narrow box (phones): the new site switches to its phone layout, the old
   one just squeezes, as real ones did */
@container bastage (max-width: 480px) {
  .ba-after { --rn-x: 5cqi; }
  .rn-links { display: none; }
  .rn-nav { grid-template-columns: auto 1fr auto; height: 40px; }
  .rn-menu { display: block; grid-column: 3; grid-row: 1; justify-self: end; }
  .rn-nav .rn-btn { grid-column: 2; grid-row: 1; padding: 0.6em 1em; }

  /* Hero: a shorter photo, the cards stacked under it at full width */
  .rn-hero-ph { height: 70cqh; }
  .rn-hero-ph::after { background: radial-gradient(170% 140% at 0% 0%, rgba(18, 16, 13, 0.74) 0%, rgba(18, 16, 13, 0.5) 40%, rgba(18, 16, 13, 0.16) 70%, rgba(18, 16, 13, 0) 92%); }
  .rn-hero-text { top: 6cqi; left: 5.5cqi; right: 5.5cqi; }
  .rn-hero-title { font-size: clamp(19px, 7.6cqi, 34px); }
  .rn-hero-ctas { flex-wrap: nowrap; gap: 2cqi; margin-top: 3.4cqi; }
  .rn-hero-ctas .rn-cta,
  .rn-hero-ctas .rn-btn { padding: 0.9em 1.15em; }
  .rn-float { position: static; width: auto; margin-top: 2.4cqi; padding: 4cqi; }
  .rn-float-r { padding: 2.4cqi 2.4cqi 3.2cqi; }
  .rn-float-name, .rn-float-sub, .rn-pill-more { margin-inline: 1.6cqi; }
  .rn-float-row { margin-top: 3cqi; }
  .rn-market { gap: 4cqi; }

  /* Listings in one column */
  .rn-grid { grid-template-columns: minmax(0, 1fr); gap: 6cqi; }
  .rn-card:first-child { grid-column: auto; }
  .rn-card:first-child .rn-ph { aspect-ratio: 4 / 3; }

  /* The band stacks; its facts get hairlines between them instead */
  .rn-band { grid-template-columns: minmax(0, 1fr); gap: 5cqi; padding: 7cqi 6cqi; }
  .rn-figs { grid-template-columns: minmax(0, 1fr); }
  .rn-fig, .rn-fig:first-child { flex-direction: row; justify-content: space-between; align-items: baseline; padding: 2.2cqi 0; }
  .rn-fig + .rn-fig { border-left: 0; border-top: 1px solid rgba(255, 255, 255, 0.18); }
  .rn-month-ph { aspect-ratio: 4 / 3; }

  /* Index rows: the town moves under the name */
  .rn-index li { grid-template-columns: 7cqi minmax(0, 1fr); row-gap: 0.4cqi; padding: 2.6cqi 0; }
  .rn-index em { grid-column: 2; }
  .rn-index b { font-size: clamp(16px, 6cqi, 26px); }
  .rn-mapbox { aspect-ratio: 4 / 3; }

  .rn-contact-in { grid-template-columns: minmax(0, 1fr); gap: 7cqi; }
  .rn-book { padding: 5cqi; }
  .rn-advisor-top { grid-template-columns: 22% minmax(0, 1fr); gap: 4cqi; }
  .rn-contact-ph { aspect-ratio: 4 / 3; }

  .ro { padding: 2cqi 0; }
  .ro-col { width: 94%; }
  .ro-feat-img { width: 64%; height: 12cqi; }
  .ro-thumb { width: 14cqi; height: 10cqi; }
  .ro-float { width: 22cqi; height: 16cqi; }
  .ro-mapbox { width: 80%; height: 22cqi; }
}

/* What the concept shows: three quiet lines with a check mark */
.showcase-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px clamp(16px, 2vw, 32px);
  margin-top: clamp(28px, 3.4vw, 44px);
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 0.9375rem;
  line-height: 1.45;
  color: var(--ink-2);
}
.showcase-points li { position: relative; padding-left: 24px; text-wrap: pretty; }
.showcase-points li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.42em;
  width: 9px;
  height: 5px;
  border-left: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(-45deg);
}

/* Process: one thin line joining the four steps */

.process { background: var(--bg-alt); }

.timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
  margin-top: clamp(48px, 6vw, 80px);
}

.step { position: relative; display: flex; flex-direction: column; }

@supports (grid-template-rows: subgrid) {
  @media (min-width: 861px) {
    .timeline { grid-template-rows: repeat(4, auto); row-gap: 0; }
    .step {
      display: grid;
      grid-row: span 4;
      grid-template-rows: subgrid;
      row-gap: 0;
      align-content: start;
    }
    .timeline .step-get { margin-top: 0; }
  }
}

.step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 20px;
  left: 52px;
  right: -20px;
  height: 1px;
  background: var(--line-strong);
}

.step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-bottom: 28px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: var(--bg-alt);
  font-family: var(--serif);
  font-size: 1.125rem;
  line-height: 1;
}

.step-num { transition: background-color 0.4s ease, color 0.4s ease; }
.step::after { transform-origin: left center; }

.js-anim .timeline .step::after { transform: scaleX(0); }
.js-anim .timeline.is-drawn .step::after {
  transform: none;
  transition: transform 0.55s var(--ease);
}
.js-anim .timeline.is-drawn .step-num { background: var(--ink); color: #fff; }
.js-anim .timeline.is-drawn .step:nth-child(1)::after { transition-delay: 0.3s; }
.js-anim .timeline.is-drawn .step:nth-child(2) .step-num { transition-delay: 0.75s; }
.js-anim .timeline.is-drawn .step:nth-child(2)::after { transition-delay: 0.95s; }
.js-anim .timeline.is-drawn .step:nth-child(3) .step-num { transition-delay: 1.4s; }
.js-anim .timeline.is-drawn .step:nth-child(3)::after { transition-delay: 1.6s; }
.js-anim .timeline.is-drawn .step:nth-child(4) .step-num { transition-delay: 2.05s; }

.step h3 { margin-bottom: 8px; }
.step-text { margin-bottom: 18px; color: var(--muted); max-width: 22em; }

/* "You get" sits at the bottom, so the four lines align across the row */
.step-get {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line-strong);
  max-width: 22em;
  font-size: 0.9375rem;
  line-height: 1.45;
  color: var(--ink-2);
}
.step-get strong { font-weight: 600; color: var(--ink); }

/* Avoid a single word left alone on the last line of these short texts */
.step-text, .step-get, .service-body p, .incl li { text-wrap: pretty; }

/* Pricing: the founding offer is lifted with a dark edge and a shadow,
   the care plan sits quietly beside it */

.price-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 1.6vw, 24px);
  margin-top: clamp(28px, 3vw, 40px);
}

.price-card {
  display: flex;
  flex-direction: column;
  padding: clamp(24px, 2.6vw, 36px);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  container-type: inline-size;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.price-main {
  background: var(--surface);
  border-color: var(--ink);
  box-shadow: var(--shadow);
}
.price-care { background: var(--bg-alt); }

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .price-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
}

.price-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
}

.price-card h3 {
  font-family: var(--serif);
  font-size: clamp(1.375rem, 1.1rem + 0.6vw, 1.75rem);
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.2;
}

.price-pill {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 12px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.price-main .price-pill { background: var(--ink); color: #fff; }

.price-line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
  margin-top: clamp(18px, 2vw, 26px);
}

.price-num {
  font-family: var(--serif);
  font-size: clamp(2.75rem, 2rem + 2vw, 3.75rem);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.025em;
}

.price-was,
.price-per { font-size: 0.9375rem; color: var(--muted); }

.price-desc { margin-top: 14px; max-width: 30em; color: var(--muted); }

.price-list {
  display: grid;
  gap: 8px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 0.9375rem;
  line-height: 1.4;
  color: var(--ink-2);
}
.price-care .price-list { border-top-color: #e3e1db; }

.price-list li { position: relative; padding-left: 24px; text-wrap: pretty; }
.price-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.42em;
  width: 9px;
  height: 5px;
  border-left: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(-45deg);
}

/* Wide card: the list runs in two short columns */
@container (min-width: 500px) {
  .price-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 24px; }
}

.price-note {
  margin-top: clamp(20px, 2.4vw, 28px);
  font-size: 0.875rem;
  color: var(--muted);
}

/* FAQ */

.faq-inner {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: 40px clamp(40px, 8vw, 120px);
  align-items: start;
}

.faq-head {
  position: sticky;
  top: calc(var(--header-h) + 32px);
}

.accordion { border-bottom: 1px solid var(--line); }
.accordion details { border-top: 1px solid var(--line); }

.accordion summary {
  position: relative;
  display: block;
  padding: 26px 52px 26px 0;
  font-size: clamp(1.0625rem, 0.97rem + 0.35vw, 1.25rem);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.35;
  cursor: pointer;
  list-style: none;
  border-radius: 6px;
}
.accordion summary::-webkit-details-marker { display: none; }

/* Plus / minus drawn with two thin lines */
.accordion summary::before,
.accordion summary::after {
  content: "";
  position: absolute;
  right: 6px;
  top: 50%;
  width: 14px;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.3s var(--ease), opacity 0.3s ease;
}
.accordion summary::after { transform: rotate(90deg); }
.accordion details[open] summary::after { transform: rotate(0deg); opacity: 0; }

.answer { padding: 0 52px 30px 0; }
.answer p { color: var(--muted); max-width: 38em; }

.answer { overflow: hidden; }

/* Contact */

.faq, .contact { padding-block: var(--section-loose); }
/* One light grey box on white holds the heading and the form, so the form is the focus */
.contact-box {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 40px clamp(40px, 6vw, 96px);
  align-items: start;
  padding: clamp(28px, 5vw, 72px);
  background: #f4f3ef;
  border-radius: 28px;
}

.contact-head { padding-top: 8px; }
.contact-head h2 { max-width: 9em; }

.contact-lede {
  margin-top: 24px;
  color: var(--muted);
  max-width: 26em;
}

/* What happens next: three small steps that take the worry out of sending */
.next-steps {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid #e3e1db;
  max-width: 26em;
}

.next-steps li {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-size: 0.9375rem;
  color: var(--ink-2);
}

.next-num {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  font-family: var(--serif);
  font-size: 0.8125rem;
  line-height: 1;
  transform: translateY(-1px);
}


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

.field { display: flex; flex-direction: column; gap: 8px; }
.field-full { grid-column: 1 / -1; }

.field label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink-2);
}

.optional { font-weight: 400; color: var(--soft); }

.field input,
.field textarea {
  width: 100%;
  padding: 13px 14px;
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  font-size: 1rem;
  line-height: 1.4;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.field textarea { resize: vertical; min-height: 116px; }

.field input::placeholder,
.field textarea::placeholder { color: var(--soft); opacity: 1; }

.field input:hover,
.field textarea:hover { border-color: #a9a69f; }

.field input:focus,
.field textarea:focus {
  outline: none;
  background: #fff;
  border-color: var(--ink);
  box-shadow: 0 0 0 1px var(--ink);
}

.field.is-invalid input,
.field.is-invalid textarea { border-color: #9b2c1a; box-shadow: 0 0 0 1px #9b2c1a; }

.contact-form { position: relative; }
.contact-form[hidden] { display: none; }

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

.form-foot {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px 24px;
  margin-top: 8px;
}

.contact-form button[disabled] { cursor: progress; }
.contact-form button[disabled]:not(.is-sending) { opacity: 0.55; }

/* Sending: a thin ring turns beside the words, the button keeps its width */
.btn-spin {
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  margin-right: 10px;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Sent: the form fades away, then a check mark draws itself above the thank-you */
.contact-form { transition: opacity 0.35s ease, transform 0.35s var(--ease); }
.contact-form.is-leaving { opacity: 0; transform: translateY(-8px); }
.success-check { display: block; margin-bottom: 20px; color: var(--ink); }

@media (prefers-reduced-motion: no-preference) {
  .form-success.is-in .success-check circle,
  .form-success.is-in .success-check path { stroke-dasharray: 1; stroke-dashoffset: 1; }
  .form-success.is-in .success-check circle { animation: draw-line 0.8s var(--ease) 0.1s forwards; }
  .form-success.is-in .success-check path { animation: draw-line 0.45s var(--ease) 0.7s forwards; }
  .form-success.is-in p { animation: hero-in 0.7s var(--ease) 0.35s both; }
  .form-error:not([hidden]) { animation: hero-in 0.4s var(--ease) both; }
}
@media (prefers-reduced-motion: reduce) {
  .btn-spin { display: none; }
  .contact-form { transition: none; }
}

.form-error {
  font-size: 0.9375rem;
  color: #9b2c1a;
  max-width: 28em;
}
.form-error a { text-underline-offset: 3px; }

.form-success { padding: 24px 0; }
.form-success p {
  font-family: var(--serif);
  font-size: clamp(1.75rem, 1.2rem + 1.4vw, 2.5rem);
  font-weight: 300;
  letter-spacing: -0.015em;
  line-height: 1.15;
}
.form-success:focus { outline: none; }

/* Footer */

.site-footer { padding-block: 40px 48px; }

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px 32px;
  font-size: 0.9375rem;
  color: var(--muted);
}

/* Centred rather than baseline-aligned: the logo's tall letters make it look lifted on a shared baseline */
.footer-brand { display: flex; align-items: center; gap: 16px; }
.footer-logo { width: auto; height: 20px; opacity: 0.72; }

.footer-email { color: var(--ink-2); text-underline-offset: 4px; padding-block: 10px; }
.footer-copy { justify-self: end; }

/* Tablet */

@media (max-width: 1024px) {
  /* Dots look stray once the list wraps, so switch to a tidy grid */
  .built-for { flex-direction: column; gap: 14px; }
  .built-for-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px 24px;
    width: 100%;
  }
  .built-for-list li { white-space: normal; }
  .built-for-list li + li::before { display: none; }


  .faq-inner,
  .contact-box { grid-template-columns: minmax(0, 1fr); }
  .faq-head { position: static; }
  .contact-head h2 { max-width: 14em; }
}

/* Navigation collapses */

@media (max-width: 860px) {
  .showcase-grid { grid-template-columns: minmax(0, 1fr); }
  .showcase-head h2 { max-width: 14em; }
  .mac { width: min(100%, 640px); }

  :root { --header-h: 64px; }

  .nav { display: none; }
  .header-cta { margin-left: auto; }
  .menu-toggle { display: inline-flex; }
  .header-inner { gap: 16px; }

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

  /* Timeline turns vertical: the line runs down the left */
  .timeline { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .step {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    column-gap: 20px;
    padding-bottom: 40px;
  }
  .step:last-child { padding-bottom: 0; }
  .step-num { grid-row: 1 / span 3; margin-bottom: 0; }
  .step > :not(.step-num) { grid-column: 2; }
  .step h3 { padding-top: 8px; }
  .step-text { margin-bottom: 14px; }
  .step-text, .step-get { max-width: 40em; }
  .step::after { transform-origin: center top; }
  .js-anim .timeline .step::after { transform: scaleY(0); }
  .step:not(:last-child)::after {
    top: 52px;
    bottom: 12px;
    left: 20px;
    right: auto;
    width: 1px;
    height: auto;
  }
}

/* Phone */

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

  .showcase-points { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .mac-screen { margin: 0 4%; border-radius: 10px 10px 4px 4px; }
  .mac-label { margin-inline: 4%; }
  .ba { aspect-ratio: 5 / 4; }

  .header-cta { display: none; }
  .menu-toggle { margin-left: auto; }
  .wordmark img { height: 22px; }

  .hero-lede { font-size: 1.0625rem; }
  .actions .btn { flex: 1 1 auto; }
  .hero-note .hn-sep { display: none; }
  .hero-note span { display: block; }
  /* Phones get the first sentence only; the rest is covered by Services */
  .lede-more { display: none; }

  .built-for-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 16px; font-size: 0.875rem; }


  .services-head { flex-direction: column; align-items: flex-start; }
  .points, .service-list { grid-template-columns: minmax(0, 1fr); }
  .points, .service-list { gap: 12px; margin-top: 32px; }
  .price-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; margin-top: 32px; }
  .point, .service { padding: 22px 22px 24px; border-radius: 16px; }
  .point h3, .service h3 { font-size: 1.3125rem; margin-bottom: 6px; }
  .box-top { margin-bottom: 16px; }
  .box-icon { width: 46px; height: 46px; border-radius: 12px; }

  .contact-box { padding: 28px 20px; border-radius: 20px; }

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

  .footer-inner { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .footer-copy { justify-self: start; margin-top: 16px; }
}

/* Short screens (small phones, landscape): keep the hero within one screen */

@media (max-height: 720px) {
  .hero-title { font-size: clamp(2rem, 0.9rem + 3.6vw, 4.25rem); }
  .hero-lede { margin-top: 20px; font-size: 1rem; }
  .actions { margin-top: 24px; }
  .built-for { margin-top: 28px; padding-top: 16px; }
  .hero .label { margin-bottom: 14px; }
}

/* Short laptop screens: less padding so each full-screen section still fits */

@media (max-height: 880px) and (min-width: 641px) {
  .screen { padding-block: clamp(32px, 5vh, 48px); }
  .screen h2 { font-size: clamp(2rem, 1rem + 2vw, 2.75rem); }
  .hero-foot { margin-top: 24px; }
  .built-for { margin-top: 32px; }
}

@media (max-height: 740px) and (min-width: 641px) {
  .screen { padding-block: 24px; }
}

/* Very small phones */
@media (max-width: 360px) and (max-height: 720px) {
  .hero-title { font-size: 1.625rem; }
  .hero-foot { margin-top: 14px; }
  .hero-lede { font-size: 0.9375rem; line-height: 1.45; }
  .actions { margin-top: 16px; }
  .built-for { margin-top: 20px; padding-top: 14px; gap: 10px; }
  .built-for-list { gap: 4px 12px; font-size: 0.8125rem; }
}

.problem .points { margin-top: clamp(24px, 2.4vw, 32px); }

/* Short phones (iPhone SE, small Androids): a tighter hero so it still fits one screen */
@media (max-width: 640px) and (max-height: 760px) {
  .hero-note { display: none; }
  .hero { padding-block: 24px 20px; }
  .hero-title { font-size: 2rem; }
  .hero-foot { margin-top: 16px; }
  .hero-lede { font-size: 0.9375rem; line-height: 1.5; }
  .actions { margin-top: 18px; }
  .built-for { margin-top: 24px; padding-top: 14px; gap: 10px; }
  .built-for-list { gap: 4px 12px; font-size: 0.8125rem; }
}

/* The smallest phones (320px wide) get the most compact hero; kept last so it wins */
@media (max-width: 360px) and (max-height: 720px) {
  .hero-title { font-size: 1.625rem; }
  .hero .label { font-size: 0.6875rem; margin-bottom: 10px; }
}

@media (max-width: 360px) and (max-height: 600px) {
  .hero { padding-block: 16px 14px; }
  .hero-title { font-size: 1.5rem; }
  .hero-lede { font-size: 0.875rem; }
  .actions .btn { min-height: 44px; padding: 0 16px; }
  .built-for { margin-top: 16px; }
}

/* The narrowest phones: a square screen so both sample sites fit */
@media (max-width: 360px) {
  .ba { aspect-ratio: 1 / 1; }
}

/* Laptop and tablet-landscape screens (up to 920px tall): slightly smaller
   service boxes so the section still fits one screen */
@media (max-height: 920px) and (min-width: 861px) {
  .services .service-list { margin-top: 20px; gap: 12px; }
  .service { padding: 16px 20px; }
  .service-top { margin-bottom: 10px; }
  .service-top .box-icon { width: 36px; height: 36px; border-radius: 10px; }
  .service-top .box-icon svg { width: 26px; height: 26px; }
  .service-top h3 { font-size: 1.25rem; }
  .service-body { gap: 10px; }
  .service-body p { font-size: 0.875rem; line-height: 1.45; }
  .incl { font-size: 0.8125rem; gap: 4px 18px; }
}
