/* 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;
  --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: 40px;
  padding-bottom: 88px;
}
.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, 6.6vw, 100px); margin-bottom: 4px; }
.hero-main .lede { max-width: 540px; }
.hero-main .btn { margin-top: 4px; }
.hero-mark { overflow: visible; max-width: 100%; height: auto; }

/* Arch frame with the real work on a laptop and a phone */
.hero-visual { min-width: 0; }
.hero-arch {
  position: relative;
  width: 100%;
  max-width: 560px;
  margin-left: auto;
  aspect-ratio: 6 / 7;
  border-radius: 999px 999px var(--radius) var(--radius);
  background: var(--navy);
  overflow: hidden;
  animation: hero-arch-in 0.9s ease-out 0.3s both;
}
@media (max-width: 959px) {
  .hero-arch { margin-left: 0; max-width: 520px; }
}
@keyframes hero-arch-in {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
.arch-diamond {
  position: absolute;
  left: 50%;
  top: 15%;
  transform: translateX(-50%);
  fill: var(--brass);
}
.devices {
  position: absolute;
  left: 20%;
  right: 7%;
  top: 33%;
}
.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 */
  .hero-arch { animation: none; }
  .nav-indicator, .nav-link, .menu-icon::before, .menu-icon::after, .capsule { transition: none; }
  .menu-sheet, .sheet-link { animation: none; }
}

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

.work { border-top: 1px solid var(--hairline); }
.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 screenshot (work-equistatus.js).
   The hero is rebuilt at the size it had when the screenshot was taken (a 1903x928 window: a 117px header and an 811px hero,
   whose last 24px fall below the 904px screenshot) and scaled to the card. */
.case-media[data-eq-hero] { position: relative; }
.eq-hero {
  position: absolute;
  top: 12.942%;
  left: 0;
  right: 0;
  height: 89.712%;
  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: 1903px;
  height: 811px;
  padding: 40px 0 56px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transform-origin: 0 0;
  pointer-events: none;
}
.eq-coin { width: 371.2px; height: 371.2px; flex: none; }
.eq-word { position: relative; top: 2.8px; width: 584.6px; margin-top: -22.8px; 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 { width: 64px; height: 1px; margin: 44px 0 30px; background: #c4ad92; transform: scaleX(0); }
.eq-tag {
  position: relative;
  top: 5px;
  margin: 0 0 26px;
  padding: 0 16px;
  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 400px;
  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 520px;
  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 */

/* Type band between the hero and Chapter I */
.type-band {
  overflow: hidden;
  padding: 28px 0 30px;
  border-top: 1px solid var(--hairline);
  user-select: none;
}
.type-row {
  display: flex;
  width: max-content;
  white-space: nowrap;
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(18px, 2.1vw, 33px);
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--navy);
  will-change: transform;
}
.type-row--outline { color: var(--leather); }
.type-row--outline em { font-style: italic; }
.type-run { display: inline-flex; align-items: center; gap: 0.32em; padding-right: 0.32em; }
.tb-mark {
  display: inline-block;
  flex: none;
  width: 0.16em;
  height: 0.16em;
  background: var(--brass);
  transform: rotate(45deg);
}
.type-band + .work { border-top: 0; }

/* 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, .type-row, .chapter-head .section-title, .chapter-head .chapter-label, .talk .section-title { transform: none !important; }
  .chip span, .field input, .field textarea { transition: none; }
}
