/* Casa Web Co. — homepage styles
   Values match the approved index.html; only the layout tokens below scale with the screen. */

:root {
  /* Brand */
  --navy: #1e3346;
  --leather: #7a4a2a;
  --brass: #b8893a;
  --surface: #faf7f2;
  --surface-2: #f1ebe1;
  --sand: #ebe2d3;        /* hero ground */
  --ink: #1f1a16;
  --muted: #5f554b;
  --hairline: #ddd3c4;

  /* Text on dark grounds (navy band, footer) */
  --on-dark: var(--surface);
  --on-dark-muted: #e8e0d4;
  --on-dark-soft: #d8cfc2;
  --gold-soft: #e2c48c;

  /* Type */
  --font-serif: "Playfair Display", Georgia, serif;
  --font-sans: Inter, system-ui, sans-serif;

  /* Layout */
  --max: 1280px;
  --pad-x: 40px;
  --pad-y: 112px;
  --pad-y-work: 96px;
  --radius: 16px;
  --radius-btn: 8px;
}

@media (max-width: 640px) {
  :root {
    --pad-x: 24px;
    --pad-y: 80px;
    --pad-y-work: 72px;
  }
}

/* ---------- Base ---------- */

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

html { scroll-behavior: smooth; scroll-padding-top: 96px; }

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-sans);
  -webkit-text-size-adjust: 100%;
}

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

a { color: var(--navy); }
a:hover { color: var(--leather); }

:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 3px;
  border-radius: 4px;
}
.on-dark :focus-visible { outline-color: var(--gold-soft); }

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  padding: 12px 18px;
  border-radius: var(--radius-btn);
  background: var(--navy);
  color: var(--surface);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
}
.skip-link:focus { position: fixed; top: 16px; }
.skip-link:hover { color: var(--surface); }

/* --max is the content width (as approved); padding sits outside it */
.wrap {
  max-width: calc(var(--max) + 2 * var(--pad-x));
  margin: 0 auto;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
}

/* Bigger tap area for small text links, without changing their look */
.hit { position: relative; }
.hit::after {
  content: "";
  position: absolute;
  inset: -13px -6px;
}

/* ---------- Type ---------- */

.display {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(56px, 8.75vw, 112px);
  line-height: 0.98;
  letter-spacing: -0.03em;
  color: var(--navy);
}
.display em { font-style: italic; color: var(--leather); }

.section-title {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--navy);
}
.section-title--xl {
  font-size: clamp(40px, 5.625vw, 72px);
  line-height: 1.02;
  max-width: 900px;
}

@media (max-width: 640px) {
  .display { line-height: 1.02; }
  .section-title, .section-title--xl { line-height: 1.05; }
}

.chapter-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 24px;
}
.chapter-label {
  font-family: var(--font-serif);
  font-size: 20px;
  font-style: italic;
  color: var(--leather);
}

.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.body-text { margin: 0; font-size: 17px; line-height: 28px; }
.body-text--muted { color: var(--muted); }

.lede { margin: 0; font-size: 18px; line-height: 30px; color: var(--muted); }
.lede--strong { color: var(--ink); font-weight: 500; }

.text-link { font-size: 15px; font-weight: 600; }

/* ---------- Buttons ---------- */

.btn {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: var(--surface);
  background: var(--btn-ring);       /* the faint ring the beam travels along */
  border-radius: var(--radius-btn);
  transition: transform 0.15s ease;
  --btn-ring: #34506a;
  --btn-edge: 2px;
}
.btn:hover { color: var(--surface); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

/* Light beam: a conic-gradient square, larger than the button's diagonal, spins behind ... */
.btn::before {
  content: "";
  position: absolute;
  z-index: -2;
  left: 50%;
  top: 50%;
  width: 200%;
  aspect-ratio: 1;
  background: conic-gradient(
    from 0deg,
    transparent 0deg 250deg,
    var(--brass) 290deg,
    var(--gold-soft) 330deg,
    #fff6e2 350deg,
    transparent 360deg
  );
  transform: translate(-50%, -50%) rotate(0deg);
  animation: btn-beam 3.2s linear infinite;
}
/* ... a navy mask inset by the ring width, so only the edge shows the beam */
.btn::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: var(--btn-edge);
  border-radius: calc(var(--radius-btn) - var(--btn-edge));
  background: var(--navy);
}
@keyframes btn-beam {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

.btn--sm { padding: 10px 18px; min-height: 44px; }
.btn--md { padding: 14px 24px; min-height: 48px; font-weight: 600; font-size: 15px; }
.btn--lg { padding: 16px 28px; min-height: 52px; font-weight: 600; font-size: 16px; }

/* ---------- Header ---------- */

.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;
}

/* Floating capsule, sticky at the top; its edges line up with the content edges */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 12px var(--pad-x) 0;
}
.capsule {
  position: relative;
  z-index: 2;
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 7px 7px 7px 22px;
  background: rgba(250, 247, 242, 0.86);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  transition: box-shadow 0.25s ease;
}
.site-header.is-scrolled .capsule { box-shadow: 0 12px 32px rgba(31, 26, 22, 0.09); }

.brand { display: flex; justify-self: start; border-radius: 6px; }
.brand img { height: 88px; width: auto; display: block; }

/* Desktop links with the sliding indicator */
.nav {
  position: relative;
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
}
.nav-indicator {
  position: absolute;
  z-index: 0;
  left: 0;
  top: 50%;
  height: 40px;
  width: var(--ind-w, 0px);
  transform: translate(var(--ind-x, 0px), -50%);
  border-radius: 999px;
  background: var(--surface-2);
  box-shadow: inset 0 0 0 1px var(--hairline);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.38s cubic-bezier(0.3, 0.7, 0.2, 1), width 0.38s cubic-bezier(0.3, 0.7, 0.2, 1), opacity 0.2s ease;
}
.nav-indicator.is-on { opacity: 1; }
.nav-link {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--ink);
  transition: color 0.2s ease;
}
.nav-link:hover, .nav-link[aria-current] { color: var(--navy); }
.nav-link:focus-visible { outline-offset: 0; border-radius: 999px; }

.capsule-actions { display: flex; align-items: center; gap: 8px; justify-self: end; }
.capsule .btn { border-radius: 999px; }
.capsule .btn::after { border-radius: 999px; }

/* Menu button: two lines that turn into an X */
.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  background: var(--surface);
  color: var(--navy);
  cursor: pointer;
}
.menu-icon { position: relative; display: block; width: 18px; height: 12px; }
.menu-icon::before, .menu-icon::after {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.25s ease;
}
.menu-icon::before { transform: translateY(-4px); }
.menu-icon::after { transform: translateY(4px); }
.menu-toggle[aria-expanded="true"] .menu-icon::before { transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-icon::after { transform: rotate(-45deg); }

/* Full-screen menu (small screens only) */
.menu-sheet {
  position: fixed;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
  padding: 120px var(--pad-x) 40px;
  background: var(--navy);
  color: var(--on-dark);
  overflow-y: auto;
  animation: sheet-in 0.3s ease-out;
}
.menu-sheet[hidden] { display: none; }
@keyframes sheet-in { from { opacity: 0; } to { opacity: 1; } }
.sheet-nav { display: flex; flex-direction: column; }
.sheet-link {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(250, 247, 242, 0.16);
  font-family: var(--font-serif);
  font-size: clamp(34px, 9vw, 48px);
  line-height: 1.1;
  color: var(--on-dark);
  text-decoration: none;
  animation: sheet-link-in 0.45s cubic-bezier(0.3, 0.7, 0.2, 1) both;
}
.sheet-link:nth-child(2) { animation-delay: 0.05s; }
.sheet-link:nth-child(3) { animation-delay: 0.1s; }
.sheet-link:hover { color: var(--gold-soft); }
.sheet-num { font-size: 0.5em; font-style: italic; color: var(--gold-soft); min-width: 2.2em; }
@keyframes sheet-link-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.sheet-foot {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 15px;
  color: var(--on-dark-soft);
}
.sheet-foot a { color: var(--on-dark); align-self: flex-start; }
.menu-sheet :focus-visible { outline-color: var(--gold-soft); }

html.menu-open { overflow: hidden; }
html.menu-open .capsule { background: var(--surface); }

@media (max-width: 899px) {
  .nav { display: none; }
  .menu-toggle { display: inline-grid; place-items: center; }
  .capsule { grid-template-columns: auto auto; justify-content: space-between; padding-left: 18px; }
}
@media (min-width: 900px) {
  .menu-sheet { display: none !important; }
}
@media (max-width: 640px) {
  .site-header { padding: 10px 16px 0; }
  .capsule { gap: 8px; padding: 6px 6px 6px 14px; }
  .brand img { height: min(68px, calc((100vw - 252px) / 2.35)); } /* as large as fits beside the call and menu buttons, never squashed */
  .capsule .btn--sm { padding: 10px 14px; font-size: 14px; }
}
@media (max-width: 359px) {
  .capsule .btn--sm { padding: 10px 11px; font-size: 13px; }
  .brand img { height: min(60px, calc((100vw - 238px) / 2.35)); }
}

/* ---------- Hero ---------- */

.hero {
  padding-top: 24px;
  padding-bottom: 56px;
}
/* The hero sits in a framed sand panel: a thin brass inner frame with a diamond keystone at the top */
.hero-row {
  position: relative;
  background: var(--sand);
  border-radius: 32px;
  padding: clamp(40px, 5vw, 72px);
}
/* Side by side, the panel fills the rest of the first screen */
@media (min-width: 960px) {
  .hero-row { min-height: min(760px, calc(100svh - 188px)); }
}
.hero-row::before {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(184, 137, 58, 0.5);
  border-radius: 22px;
  pointer-events: none;
}
.hero-row::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 14px;
  width: 12px;
  height: 12px;
  background: var(--brass);
  transform: translate(-50%, -50%) rotate(45deg);
  box-shadow: 0 0 0 6px var(--sand);
}
.hero-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: 56px;
}
@media (min-width: 960px) {
  .hero-row { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 64px; }
}
.hero-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}
.hero-main .display { font-size: clamp(56px, 5.7vw, 88px); margin-bottom: 4px; }
.hero-main .lede { max-width: 540px; }
.hero-main .btn { margin-top: 4px; }
/* The real work under the logo's roof: a large roof line and diamond over the laptop and phone */
.hero-visual { min-width: 0; }
.hero-home {
  position: relative;
  width: 100%;
  max-width: 560px;
  margin-left: auto;
  padding-bottom: 9%;   /* room for the phone, which hangs below the laptop */
}
@media (max-width: 959px) {
  .hero-home { margin-left: 0; max-width: 520px; }
}
.home-roof { display: block; width: 100%; height: auto; overflow: visible; }
.home-roof-line {
  fill: none;
  stroke: var(--navy);
  stroke-width: 3;
  stroke-linejoin: miter;
  stroke-dasharray: 720;
  stroke-dashoffset: 720;
  animation: home-draw 1.4s ease-out 0.2s forwards;
}
.home-diamond {
  fill: var(--brass);
  transform-origin: 280px 110px;
  opacity: 0;
  animation: home-drop 0.6s ease-out 1.3s forwards;
}
@keyframes home-draw { to { stroke-dashoffset: 0; } }
@keyframes home-drop {
  0% { opacity: 0; transform: translateY(-24px) rotate(45deg); }
  100% { opacity: 1; transform: translateY(0) rotate(45deg); }
}
/* The laptop's top edge sits just under the eaves; its base reaches out like a floor between them */
.devices {
  position: relative;
  margin: -7.2% 10% 0;
  animation: hero-devices-in 0.9s ease-out 0.5s both;
}
/* On the light panel: softer shadows, and the phone tucked in so it stays inside the frame on phones */
.devices .laptop-screen { box-shadow: 0 28px 56px rgba(31, 26, 22, 0.24); }
.devices .phone { left: -14%; top: 38%; box-shadow: 0 22px 44px rgba(31, 26, 22, 0.32); }
@keyframes hero-devices-in {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
.laptop-screen {
  padding: 3.2% 3.2% 4%;
  background: #0e1822;
  border: 1px solid rgba(250, 247, 242, 0.14);
  border-bottom: 0;
  border-radius: 14px 14px 0 0;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
}
.laptop-screen img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top;
  border-radius: 3px;
}
.laptop-base {
  position: relative;
  height: 14px;
  margin: 0 -8%;
  background: linear-gradient(#ece6dc, #b7afa3);
  border-radius: 2px 2px 12px 12px;
}
.laptop-base::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: 18%;
  height: 5px;
  transform: translateX(-50%);
  background: #a29a8d;
  border-radius: 0 0 6px 6px;
}
.phone {
  position: absolute;
  left: -22%;
  top: 52%;
  width: 27%;
  aspect-ratio: 100 / 182;   /* matches the 588x1046 mobile screenshot plus the bezel */
  padding: 5px;
  background: #0e1822;
  border: 1px solid rgba(250, 247, 242, 0.18);
  border-radius: 24px;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.45);
}
.phone::before {
  content: "";
  position: absolute;
  z-index: 1;
  left: 50%;
  top: 11px;
  width: 30%;
  height: 7px;
  transform: translateX(-50%);
  background: #0e1822;
  border-radius: 999px;
}
.phone img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  border-radius: 19px;
}

/* Roof line + diamond animation */
@keyframes cwc-draw { from { stroke-dashoffset: 420; } to { stroke-dashoffset: 0; } }
@keyframes cwc-drop {
  0% { opacity: 0; transform: translateY(-14px) rotate(45deg); }
  100% { opacity: 1; transform: translateY(0) rotate(45deg); }
}
.cwc-roof {
  fill: none;
  stroke: var(--navy);
  stroke-width: 2;
  stroke-dasharray: 420;
  stroke-dashoffset: 420;
  animation: cwc-draw 1.4s ease-out 0.2s forwards;
}
.cwc-diamond {
  fill: var(--brass);
  transform-origin: 110px 54px;
  opacity: 0;
  animation: cwc-drop 0.6s ease-out 1.4s forwards;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cwc-roof { animation: none; stroke-dashoffset: 0; }
  .cwc-diamond { animation: none; opacity: 1; transform: rotate(45deg); }
  .btn { transition: none; }
  .btn::before { animation: none; }   /* beam rests on the edge, still visible */
  .devices { animation: none; }
  .home-roof-line { animation: none; stroke-dashoffset: 0; }
  .home-diamond { animation: none; opacity: 1; transform: rotate(45deg); }
  .nav-indicator, .nav-link, .menu-icon::before, .menu-icon::after, .capsule { transition: none; }
  .menu-sheet, .sheet-link { animation: none; }
}

/* ---------- Chapter I: The Work ---------- */

.work-inner {
  padding-top: var(--pad-y-work);
  padding-bottom: var(--pad-y-work);
  display: flex;
  flex-direction: column;
  gap: 80px;
}

.case {
  display: flex;
  flex-wrap: wrap;
  gap: 56px;
  align-items: center;
}
.case--reverse { flex-wrap: wrap-reverse; }

.case-media {
  flex: 1 1 520px;
  min-width: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--hairline);
}
.case-media img { width: 100%; height: auto; display: block; }

/* EquiStatus card: the equistatus.com hero entrance replayed over the laptop screenshot (work-equistatus.js).
   The hero is rebuilt at the size it had when the screenshot was taken (a 1440x900 window: a 117px header and a
   783px hero), each part at the position measured on the live site, and scaled to the screen. */
[data-eq-hero] { position: relative; }
.eq-hero {
  position: absolute;
  top: 13%;          /* 117px header of a 900px-tall screenshot */
  left: 0;
  right: 0;
  height: 87%;       /* the 783px hero below it */
  overflow: hidden;
  background: radial-gradient(ellipse 48% 46% at 50% 42%, #eadcc8 0%, #f1e7da 55%, #f6efe6 100%);
  opacity: 0;
  transition: opacity .35s ease;
}
.eq-hero.is-on { opacity: 1; }
.eq-stage { position: absolute; inset: 0; z-index: 1; }
.eq-stage canvas { display: block; }
.eq-content {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  width: 1440px;
  height: 783px;
  transform-origin: 0 0;
  pointer-events: none;
}
.eq-coin { position: absolute; left: 540px; top: 101px; width: 360px; height: 360px; }
.eq-word { position: absolute; left: 436.5px; top: 443.8px; width: 567px; perspective: 900px; }
.eq-word img { width: 100%; height: auto; display: block; }
.eq-word-base { opacity: 0; }
.eq-word img[data-l] { position: absolute; inset: 0; transform-origin: 50% 100%; opacity: 0; transform: translateY(55%) rotateX(-85deg); filter: blur(6px); }
.eq-divider { position: absolute; left: 688px; top: 583px; width: 64px; height: 1px; background: #c4ad92; transform: scaleX(0); }
.eq-tag {
  position: absolute;
  left: 0;
  right: 0;
  top: 618.5px;
  margin: 0;
  padding: 0;
  max-width: none;
  color: #6e0f1a;
  font: 400 26px/1.65 "EQ Source Serif", Georgia, serif;
  letter-spacing: normal;
  text-align: center;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(14px);
}

.case-body {
  flex: 1 1 340px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.case-body .text-link { align-self: flex-start; }
.case-title {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 40px;
  line-height: 46px;
  color: var(--navy);
}

@media (max-width: 640px) {
  .work-inner { gap: 64px; }
  .case { gap: 32px; }
}

/* ---------- Chapter II: The Story ---------- */

.story { background: var(--navy); color: var(--on-dark); }
.story-inner {
  padding-top: var(--pad-y);
  padding-bottom: var(--pad-y);
  display: flex;
  flex-wrap: wrap;
  gap: 72px;
  align-items: center;
}
.portrait { flex: 1 1 360px; min-width: 0; max-width: 460px; }
.portrait img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 20%;
  border-radius: 999px 999px var(--radius) var(--radius);
  display: block;
}
.story-body {
  flex: 999 1 440px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.story .chapter-label { color: var(--gold-soft); }
.story .section-title { color: inherit; }
.story .body-text { color: var(--on-dark-muted); }
.quote {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 34px;
  line-height: 46px;
}
.signature {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 26px;
  color: var(--gold-soft);
}

@media (max-width: 640px) {
  .story-inner { gap: 48px; }
}

/* ---------- Chapter III: What You Get ---------- */

.build {
  padding-top: var(--pad-y);
  padding-bottom: var(--pad-y);
  display: flex;
  flex-direction: column;
  gap: 56px;
}
.build-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}
.build-note {
  margin: 0;
  max-width: 380px;
  font-size: 16px;
  line-height: 26px;
  color: var(--muted);
}

.offers { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; }
.offer {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 24px;
  padding: 28px 0;
  border-top: 1px solid var(--hairline);
}
.offer:first-child { border-top-color: var(--navy); }
.offer:last-child { border-bottom: 1px solid var(--navy); }
.offer-mark { fill: var(--brass); flex: none; }
.offer-name {
  flex: 1 1 320px;
  font-family: var(--font-serif);
  font-size: 32px;
  color: var(--navy);
}
.offer-tag {
  margin-left: 12px;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--leather);
  vertical-align: middle;
}
.offer-desc {
  flex: 2 1 420px;
  font-size: 16px;
  line-height: 26px;
  color: var(--muted);
}

.prices {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.price-card {
  background: var(--surface-2);
  border-radius: var(--radius);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.price-label { font-size: 12px; font-weight: 600; letter-spacing: 0.12em; color: var(--muted); }
.price-value { font-family: var(--font-serif); font-size: 48px; line-height: 1; color: var(--navy); }
.price-unit { font-size: 20px; }
.price-note { font-size: 14px; line-height: 22px; color: var(--muted); }

.price-card--feature { background: var(--navy); color: var(--on-dark); }
.price-card--feature .price-label,
.price-card--feature .price-value { color: inherit; }
.price-card--feature .price-note { color: var(--on-dark-muted); }

/* ---------- Let's talk ---------- */

.talk { background: var(--surface-2); }
.talk-inner {
  padding-top: var(--pad-y);
  padding-bottom: var(--pad-y);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  text-align: center;
}
.talk-mark .roof { fill: none; stroke: var(--navy); stroke-width: 3; }
.talk-mark .diamond { fill: var(--brass); }
.talk-text { max-width: 560px; }

/* ---------- Footer ---------- */

.site-footer { background: var(--ink); color: var(--on-dark); }
.footer-inner {
  padding-top: 48px;
  padding-bottom: 48px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.footer-inner > img { height: 96px; width: auto; display: block; }
.footer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  font-size: 14px;
  color: var(--on-dark-soft);
}
.footer-meta a { color: var(--on-dark); }
.footer-meta a:hover { color: var(--gold-soft); }

/* =========================================================
   Motion layer: type that moves with the scroll, living cursor
   (motion.js sets the transforms; without it everything rests in place)
   ========================================================= */

.h1-line { display: inline-block; will-change: transform; }
main { overflow-x: clip; }   /* moving type never causes sideways scroll */

/* Chapter titles slide into place; the quote lights up word by word */
.chapter-head .section-title, .chapter-head .chapter-label, .talk .section-title { will-change: transform; }
.quote .w { transition: opacity 0.2s linear; }

/* Living cursor (fine pointers only; motion.js adds html.has-cursor) */
.cursor-dot, .cursor-ring {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 200;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
}
html.cursor-visible .cursor-dot, html.cursor-visible .cursor-ring { opacity: 1; }
.cursor-dot { width: 0; height: 0; }
.cursor-dot::before {
  content: "";
  position: absolute;
  left: -4px;
  top: -4px;
  width: 8px;
  height: 8px;
  background: var(--brass);
  transform: rotate(45deg);
  transition: transform 0.25s ease;
}
.cursor-ring { width: 0; height: 0; }
.cursor-ring-inner {
  position: absolute;
  left: -19px;
  top: -19px;
  width: 38px;
  height: 38px;
  border: 1.5px solid var(--navy);
  border-radius: 50%;
  transition: transform 0.35s cubic-bezier(0.3, 0.7, 0.2, 1), background-color 0.25s ease, border-color 0.25s ease;
}
html.cursor-hover .cursor-ring-inner { transform: scale(1.75); background: rgba(184, 137, 58, 0.14); border-color: var(--brass); }
html.cursor-hover .cursor-dot::before { transform: rotate(45deg) scale(0); }
html.cursor-down .cursor-ring-inner { transform: scale(0.8); }
html.cursor-hover.cursor-down .cursor-ring-inner { transform: scale(1.45); }
html.cursor-dark .cursor-ring-inner { border-color: var(--gold-soft); }
html.cursor-idle .cursor-ring-inner { animation: cursor-breathe 2.6s ease-in-out infinite; }
html.cursor-idle .cursor-dot::before { animation: cursor-spin 3.2s cubic-bezier(0.6, 0, 0.3, 1) infinite; }
html.cursor-text .cursor-dot, html.cursor-text .cursor-ring { opacity: 0; }
@keyframes cursor-breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.22); } }
@keyframes cursor-spin { 0% { transform: rotate(45deg); } 60%, 100% { transform: rotate(405deg); } }

html.has-cursor, html.has-cursor body, html.has-cursor a, html.has-cursor button, html.has-cursor label { cursor: none; }
html.has-cursor input[type="text"], html.has-cursor input[type="email"], html.has-cursor textarea { cursor: text; }

/* =========================================================
   Shorter "What You Get": two columns on wide screens
   ========================================================= */
@media (min-width: 960px) {
  .offers { display: grid; grid-template-columns: 1fr 1fr; column-gap: 56px; }
  .offer { flex-direction: column; align-items: flex-start; gap: 10px; padding: 26px 0; }
  .offer:nth-child(2) { border-top-color: var(--navy); }
  .offer:last-child { grid-column: 1 / -1; }
  .offer-name { flex: none; font-size: 30px; }
  .offer-desc { flex: none; max-width: 560px; }
}

/* =========================================================
   Contact form in "Let's talk"
   ========================================================= */
.contact-form {
  width: 100%;
  max-width: 720px;
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  text-align: left;
}
.form-row { display: grid; grid-template-columns: 1fr; gap: 22px; }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; margin: 0; padding: 0; border: 0; }
.field > label, .field > legend {
  padding: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}
.optional { margin-left: 6px; font-weight: 400; color: var(--muted); }
.field input, .field textarea {
  width: 100%;
  min-height: 50px;
  padding: 13px 16px;
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field textarea { resize: vertical; min-height: 120px; line-height: 1.5; }
.field input:hover, .field textarea:hover { border-color: #c9bca8; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(30, 51, 70, 0.16); }
.field input[aria-invalid="true"] { border-color: #a3342b; }
.field-error { margin: 0; font-size: 14px; color: #a3342b; }

.chips { flex-direction: row; flex-wrap: wrap; gap: 8px; }
.chips legend { width: 100%; margin-bottom: 8px; }
.chip { position: relative; display: inline-flex; }
.chip input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; }
.chip span {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}
.chip:hover span { border-color: var(--navy); }
.chip input:checked + span { background: var(--navy); border-color: var(--navy); color: var(--surface); }
.chip input:focus-visible + span { outline: 2px solid var(--navy); outline-offset: 3px; }
.chip input:active + span { transform: scale(0.97); }

.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.form-actions .btn { border: 0; font-family: inherit; cursor: pointer; }
.form-actions .btn[disabled] { opacity: 0.7; cursor: progress; }
.form-alt { margin: 0; font-size: 15px; color: var(--muted); }
.form-status { margin: 0; font-size: 15px; line-height: 24px; color: var(--ink); }
.form-status:empty { display: none; }
.form-status.is-error { color: #a3342b; }

.form-done {
  width: 100%;
  max-width: 720px;
  padding: 36px;
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
}
.form-done h3 { margin: 0 0 8px; font-family: var(--font-serif); font-weight: 500; font-size: 32px; color: var(--navy); }
.form-done p { margin: 0; font-size: 17px; line-height: 28px; color: var(--muted); }
.form-done:focus { outline: none; }

@media (max-width: 639px) {
  .form-actions .btn { width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  .h1-line, .chapter-head .section-title, .chapter-head .chapter-label, .talk .section-title { transform: none !important; }
  .chip span, .field input, .field textarea { transition: none; }
}

/* =========================================================
   Hero label and offer line
   ========================================================= */
.hero-label {
  margin: 0 0 -8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--leather);
}
.hero-offer { font-size: 20px; line-height: 30px; }
/* Quiet line under the hero button */
/* Same type and colour as the headline, at half its size */
.hero-note {
  margin: 4px 0 0;
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(24px, 2.85vw, 41px);   /* capped so it stays on one line beside the roof on wide screens */
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--navy);
  text-wrap: balance;
}

/* =========================================================
   Chapter I: each project on a laptop and a phone
   ========================================================= */
.case-devices {
  position: relative;
  overflow: visible;
  border: 0;
  border-radius: var(--radius);
  background: var(--surface-2);
  --pad-a: clamp(28px, 4vw, 52px);     /* top */
  --pad-s: clamp(22px, 3.4vw, 48px);    /* side the phone is not on */
  --pad-p: clamp(60px, 8.5vw, 112px);   /* side the phone sits on */
  --pad-b: clamp(40px, 5.2vw, 72px);    /* bottom */
  padding: var(--pad-a) var(--pad-s) var(--pad-b) var(--pad-p);
}
.case--reverse .case-devices { padding: var(--pad-a) var(--pad-p) var(--pad-b) var(--pad-s); }
.screen { position: relative; overflow: hidden; border-radius: 3px; }
.screen img { border-radius: 0; }
.case-devices .laptop-screen { border-color: rgba(31, 26, 22, 0.18); box-shadow: 0 24px 48px rgba(31, 26, 22, 0.18); }
.case-devices .phone {
  left: 5%;
  top: auto;
  bottom: 6%;
  width: 21%;
  padding: clamp(3px, 0.45vw, 5px);
  border-color: rgba(31, 26, 22, 0.2);
  border-radius: clamp(14px, 2.2vw, 24px);
  box-shadow: 0 18px 40px rgba(31, 26, 22, 0.28);
}
.case-devices .phone img { border-radius: clamp(10px, 1.8vw, 19px); }
.case-devices .phone::before { top: clamp(6px, 0.9vw, 11px); height: clamp(4px, 0.55vw, 7px); }
.case--reverse .case-devices .phone { left: auto; right: 5%; }

/* Photo answers the pointer inside its frame */
.case-devices .screen img, .case-devices .phone img { transition: transform 0.5s cubic-bezier(0.3, 0.7, 0.2, 1); }
.case:hover .case-devices .screen img, .case:hover .case-devices .phone img { transform: scale(1.025); }

.case-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: -4px 0 2px; padding: 0; list-style: none; }
.case-tags li {
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 600;
  line-height: 18px;
  color: var(--navy);
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 999px;
}

/* =========================================================
   Tablets and phones (one column): smaller roof mark, squarer arch,
   and The Story with a small portrait beside its heading
   ========================================================= */
@media (max-width: 899px) {
  .story-inner { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 40px 32px; align-items: center; }
  .story-body { display: contents; }
  .portrait { grid-column: 1; grid-row: 1; max-width: none; }
  .story-body .chapter-head { grid-column: 2; grid-row: 1; flex-direction: column; gap: 4px; }
  .story-body > :not(.chapter-head) { grid-column: 1 / -1; }
}

/* =========================================================
   Phones: the work sooner, shorter chapters
   ========================================================= */
@media (max-width: 640px) {
  /* 1 + 3. Small roof mark, two-line headline, so the laptop and phone show on the first screen */
  .hero { padding-top: 12px; padding-bottom: 48px; padding-left: 16px; padding-right: 16px; }
  .hero-row { gap: 32px; padding: 36px 24px 24px; border-radius: 24px; }
  .hero-row::before { inset: 8px; border-radius: 17px; }
  .hero-row::after { top: 8px; width: 10px; height: 10px; }
  .hero-main { gap: 16px; }
  .hero-label { margin: 0; }
  .hero-main .display { font-size: clamp(38px, 11.4vw, 56px); }
  .hero-offer { font-size: 18px; line-height: 28px; }
  .hero-note { margin-top: 4px; font-size: clamp(19px, 5.7vw, 28px); }


  .story-inner { grid-template-columns: 96px minmax(0, 1fr); gap: 28px 20px; }
  .quote { font-size: 27px; line-height: 36px; }

  /* 4. What You Get: a compact two-column grid */
  .build { gap: 40px; }
  .offers { display: grid; grid-template-columns: 1fr 1fr; column-gap: 20px; }
  .offer { flex-direction: column; align-items: flex-start; gap: 8px; padding: 20px 0; }
  .offer:nth-child(2) { border-top-color: var(--navy); }
  .offer:last-child { grid-column: 1 / -1; }
  .offer-mark { display: none; }
  .offer-name { flex: none; font-size: 22px; line-height: 1.15; }
  .offer-tag { display: block; margin: 6px 0 0; font-size: 11px; }
  .offer-desc { flex: none; font-size: 15px; line-height: 22px; }
  .prices { grid-template-columns: 1fr 1fr; gap: 12px; }
  .price-card { padding: 20px; }
  .price-card--feature { grid-column: 1 / -1; }
  .price-value { font-size: 32px; }
  .price-unit { font-size: 16px; }
}
@media (max-width: 359px) {
  .offers { grid-template-columns: 1fr; }
  .offer:nth-child(2) { border-top-color: var(--hairline); }
  .prices { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .case-devices .screen img, .case-devices .phone img { transition: none; transform: none !important; }
}
.nowrap { white-space: nowrap; }
/* The laptop screen rules are for its screenshot, not the EquiStatus overlay images */
.eq-hero img { aspect-ratio: auto; object-fit: fill; border-radius: 0; height: auto; }

/* Turnstile spam check: out of the form's flow (no gap) until Cloudflare shows a challenge (contact.js adds .is-on) */
.form-turnstile { position: absolute; width: 300px; height: 0; overflow: hidden; pointer-events: none; }
.form-turnstile.is-on { position: static; width: auto; height: auto; overflow: visible; pointer-events: auto; }

/* Interactions */

/* 1. Card entrances: interactions.js hides only cards below the fold, so nothing is hidden without JS */
.reveal-hidden { opacity: 0; transform: translateY(28px); }
.reveal {
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: var(--reveal-delay, 0ms);
}

/* Project cards slide in once from their side (interactions.js); the section clips them so the page never scrolls sideways */
.work--slide { overflow-x: clip; }
.slide-hidden { opacity: 0; }
.slide-hidden.slide-from-left { transform: translateX(calc(-1 * min(14vw, 200px))); }
.slide-hidden.slide-from-right { transform: translateX(min(14vw, 200px)); }
.slide { transition: opacity 0.8s ease, transform 1s cubic-bezier(0.2, 0.7, 0.2, 1); }

/* 2. Count-up prices: equal-width digits, so the price doesn't shift while it counts */
.price-value [data-count] { font-variant-numeric: tabular-nums; }

/* 3. Chapter IV: Questions */
.faq {
  padding-bottom: var(--pad-y);
  display: flex;
  flex-direction: column;
  gap: 56px;
}
.faq-list { display: flex; flex-direction: column; }
.faq-item { border-top: 1px solid var(--hairline); }
.faq-item:first-child { border-top-color: var(--navy); }
.faq-item:last-child { border-bottom: 1px solid var(--navy); }
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 0;
  font-family: var(--font-serif);
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.25;
  color: var(--navy);
  list-style: none;
  cursor: pointer;
  transition: color 0.2s ease;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::marker { content: ""; }
.faq-item summary::after {
  content: "";
  flex: none;
  width: 12px;
  height: 12px;
  background: var(--brass);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
  transition: transform 0.3s ease, background-color 0.3s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); background: var(--leather); }
.faq-item summary:hover { color: var(--leather); }
.faq-item summary:focus-visible { outline: 2px solid var(--brass); outline-offset: 4px; border-radius: 4px; }
.faq-a { overflow: hidden; }
.faq-a p {
  margin: 0;
  padding: 0 0 26px;
  max-width: 720px;
  font-size: 16px;
  line-height: 26px;
  color: var(--muted);
}

@media (prefers-reduced-motion: reduce) {
  .reveal-hidden, .slide-hidden { opacity: 1; transform: none; }
  .reveal, .slide { transition: none; }
  .faq-item summary, .faq-item summary::after { transition: none; }
}

