/* ============================================================
   Blackthorn Care — dark editorial design system
   ============================================================ */

:root {
  --bg: #1C1017;
  --bg-1: #21131B;
  --bg-2: #2B1A24;
  --bg-footer: #180E14;
  --cream: #FAF5EC;
  --stone: #ECE4D8;
  --sage: #98AC91;
  --green: #86A884;
  --icon-pink: #D7A2B4;
  --berry: #C65D82;
  --berry-dark: #A34A69;
  --berry-bright: #F2A9C6;

  --heading-on-dark: #F4EEE8;
  --text-on-dark: #BFB5B8;
  --text-on-dark-soft: rgba(191, 181, 184, 0.72);
  --heading-on-light: #241726;
  --text-on-light: #4E4152;

  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(255, 255, 255, 0.22);
  --line-on-light: rgba(36, 26, 38, 0.14);

  --font-display: "Playfair Display", Georgia, serif;
  --font-body: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --container: 1260px;
  --radius: 3px;
  --radius-lg: 6px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text-on-dark);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--heading-on-dark);
  line-height: 0.98;
  margin: 0 0 0.4em;
  font-weight: 500;
  letter-spacing: -0.015em;
}

h1 { font-size: clamp(2.8rem, 9vw, 7.5rem); font-weight: 500; }
h2 { font-size: clamp(2rem, 5vw, 3.8rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); font-weight: 600; }
p { margin: 0 0 1em; color: var(--text-on-dark); max-width: 60ch; }
a { color: var(--berry-bright); }

.eyebrow {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--berry-bright);
  display: inline-block;
  margin-bottom: 1.1em;
}

.container { max-width: var(--container); margin: 0 auto; padding: 0 28px; }
.section { padding: 88px 0; border-bottom: 1px solid var(--line); }
.section--tight { padding: 52px 0; }
.section--bleed { padding: 0; border-bottom: 1px solid var(--line); }
.section:last-of-type { border-bottom: none; }

/* Rare light "paper" surface — reserved for forms and one deliberate breathing moment */
.section--light { background: var(--cream); border-bottom: none; }
.section--light h1, .section--light h2, .section--light h3, .section--light h4 { color: var(--heading-on-light); }
.section--light p { color: var(--text-on-light); }
.section--light .eyebrow { color: var(--berry-dark); }

.lede { font-size: 1.25rem; max-width: 640px; color: var(--text-on-dark); }
.center { text-align: center; }
.center .lede, .center p { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 16px 30px;
  border-radius: var(--radius);
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .3s var(--ease), background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
@media (max-width: 420px) {
  .btn { white-space: normal; text-align: center; line-height: 1.3; max-width: 100%; }
}
.btn-primary { background: var(--berry); color: var(--heading-on-dark); border-color: var(--berry); }
.btn-primary:hover { background: var(--berry-dark); border-color: var(--berry-dark); }
.btn-outline { background: transparent; color: var(--heading-on-dark); border-color: var(--line-strong); }
.btn-outline:hover { background: rgba(247,241,232,0.08); border-color: var(--heading-on-dark); }
.btn-ghost { background: transparent; color: var(--heading-on-dark); border-color: var(--line-strong); }
.btn-ghost:hover { background: rgba(247,241,232,0.08); border-color: var(--heading-on-dark); }
.section--light .btn-ghost { color: var(--heading-on-light); border-color: var(--line-on-light); }
.section--light .btn-ghost:hover { background: rgba(36,26,38,0.06); border-color: var(--heading-on-light); }
.btn-sm { padding: 11px 20px; font-size: 0.72rem; }

/* ---------- Nav ---------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(27, 18, 23, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  padding: 20px 32px;
  max-width: 1480px;
  margin: 0 auto;
}
.wordmark {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.3rem;
  color: var(--heading-on-dark);
  text-decoration: none;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
  margin-right: 52px;
}
.wordmark svg { width: 24px; height: 24px; color: var(--icon-pink); }
.nav-inner > nav { margin-right: auto; min-width: 0; }
.nav-links { display: flex; align-items: center; gap: 30px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  color: var(--heading-on-dark);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 4px 0;
  position: relative;
  transition: color .2s var(--ease);
  white-space: nowrap;
}
.nav-links a::after {
  content: "";
  position: absolute; left: 0; bottom: -2px;
  width: 0; height: 1px;
  background: var(--berry-bright);
  transition: width .25s var(--ease);
}
.nav-links a:hover { color: var(--berry-bright); }
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { width: 100%; }
.nav-links a[aria-current="page"] { color: var(--berry-bright); }
.nav-cta { display: flex; align-items: center; gap: 18px; flex: none; }
.menu-trigger { display: none; }
@media (max-width: 1340px) {
  .nav-links { display: none; }
  .menu-trigger { display: flex; }
}
.menu-trigger {
  align-items: center;
  gap: 10px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--heading-on-dark);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 6px 2px;
}
.menu-trigger .bars { display: flex; flex-direction: column; gap: 4px; width: 22px; }
.menu-trigger .bars span { display: block; height: 1.5px; background: var(--heading-on-dark); width: 100%; transition: transform .25s var(--ease), opacity .25s var(--ease); }
@media (max-width: 480px) {
  .nav-inner { padding: 14px 16px; }
  .wordmark { font-size: 1rem; gap: 6px; }
  .wordmark svg { width: 19px; height: 19px; }
  .nav-cta { gap: 8px; }
  .nav-cta .btn-sm { padding: 9px 10px; font-size: 0.58rem; letter-spacing: 0.04em; }
  .menu-trigger { gap: 0; }
  .menu-trigger .label { display: none; }
}
.menu-trigger[aria-expanded="true"] .bars span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.menu-trigger[aria-expanded="true"] .bars span:nth-child(2) { opacity: 0; }
.menu-trigger[aria-expanded="true"] .bars span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

/* ---------- Full-screen menu overlay ---------- */
.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: var(--bg-footer);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 28px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity .4s var(--ease), transform .4s var(--ease), visibility 0s linear .4s;
}
.menu-overlay.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity .4s var(--ease), transform .4s var(--ease), visibility 0s linear 0s;
}
.menu-overlay-top { display: flex; align-items: center; justify-content: space-between; }
.menu-close {
  background: none; border: none; cursor: pointer; color: var(--heading-on-dark);
  font-family: var(--font-body); font-weight: 700; font-size: 0.78rem;
  text-transform: uppercase; letter-spacing: 0.12em;
  display: flex; align-items: center; gap: 10px;
}
.menu-close .x { position: relative; width: 20px; height: 20px; }
.menu-close .x::before, .menu-close .x::after { content: ""; position: absolute; top: 50%; left: 0; width: 100%; height: 1.5px; background: var(--heading-on-dark); }
.menu-close .x::before { transform: rotate(45deg); }
.menu-close .x::after { transform: rotate(-45deg); }
.menu-links { list-style: none; margin: 0; padding: 0; }
.menu-links li { border-bottom: 1px solid var(--line); }
.menu-links a {
  display: block;
  padding: 18px 4px;
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 4.2rem);
  font-weight: 450;
  color: var(--heading-on-dark);
  text-decoration: none;
  letter-spacing: -0.01em;
  transition: color .25s var(--ease), padding-left .25s var(--ease);
}
.menu-links a:hover, .menu-links a[aria-current="page"] { color: var(--berry-bright); padding-left: 16px; }
.menu-foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; font-size: 0.85rem; color: var(--text-on-dark-soft); }
.menu-foot a { color: var(--text-on-dark); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--bg);
  background-size: cover;
  background-position: center;
  color: var(--heading-on-dark);
  overflow: hidden;
  padding: 140px 0 110px;
  min-height: 760px;
  display: flex;
  align-items: center;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(27,18,23,0.55), rgba(27,18,23,0.92) 75%), radial-gradient(ellipse at 78% 15%, rgba(193,88,122,0.14), transparent 55%);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 2; max-width: 880px; }
.hero .root-art {
  position: absolute;
  right: -6%;
  top: 50%;
  transform: translateY(-50%);
  width: 42%;
  max-width: 560px;
  opacity: 0.5;
  z-index: 1;
}
.hero-actions { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 40px; }

/* ---------- Journey hero (homepage): headline + quote + full-width branch + stage row ---------- */
.hero--journey { padding: 12px 0 0; min-height: 100vh; align-items: stretch; flex-direction: column; display: flex; border-bottom: 1px solid var(--line); justify-content: center; }
.hero-journey-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; position: relative; z-index: 2; }
.hero-journey-top .eyebrow { margin-bottom: 0.25em; }
.hero-journey-top h1 { margin-bottom: 0.12em; }
.hero-journey-top .lede { font-size: 1rem; line-height: 1.45; margin: 0 0 0.6em; max-width: 500px; }
.hero-journey-top .hero-actions { margin-top: 18px; }
.hero-journey-top .hero-inner { max-width: 540px; }
.hero-journey-top h1 { font-size: clamp(2rem, 4vw, 2.9rem); }
.hero-bg-fern { position: absolute; z-index: 0; opacity: 0.06; pointer-events: none; color: var(--icon-pink); }
.hero-bg-fern--tr { top: 40px; right: 60px; width: 160px; height: 260px; }
.hero-bg-fern--br { bottom: 20px; right: 200px; width: 130px; height: 220px; transform: scaleX(-1) rotate(8deg); }
.hero-quote { max-width: 260px; text-align: right; flex: none; position: relative; padding-top: 34px; }
.hero-quote p { font-size: 0.98rem; line-height: 1.5; color: var(--text-on-dark); margin: 0; position: relative; z-index: 1; }
.hero-quote .quote-mark { display: block; font-family: var(--font-display); color: var(--berry-bright); opacity: 0.35; line-height: 0.5; position: absolute; }
.hero-quote .quote-mark--open { font-size: 4.5rem; top: 0; right: -6px; }
.hero-quote .quote-mark--close { font-size: 4.5rem; bottom: -34px; left: -6px; }
@media (max-width: 1000px) { .hero-quote { display: none; } }

.hero-journey-branch { position: relative; width: 100%; margin-top: 4px; }
.hero-journey-branch--full { margin-top: 10px; }
.hero-journey-img { width: 100%; height: auto; display: block; filter: drop-shadow(0 20px 44px rgba(0,0,0,0.45)); }
.hero-journey-dots { position: absolute; inset: 0; }
.jcol { position: absolute; top: 0; bottom: 0; width: 1px; }
.jcol .jline { position: absolute; left: 0; top: var(--dot-top); bottom: 0; width: 1px; background: var(--berry-bright); opacity: 0.55; }
.jcol .jdot {
  position: absolute; left: 0; top: var(--dot-top); transform: translate(-50%, -50%);
  width: 7px; height: 7px; border-radius: 50%; background: var(--berry);
  box-shadow: none;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.jcol:hover .jdot, .jcol:focus-visible .jdot { transform: translate(-50%, -50%) scale(1.7); box-shadow: 0 0 0 6px rgba(193,88,122,0.28), 0 0 18px 6px rgba(193,88,122,0.8); }

.hero-journey-stages { display: grid; grid-template-columns: repeat(8, minmax(0,1fr)); gap: 16px; margin-top: 0; padding-top: 4px; position: relative; z-index: 2; }
.hero-journey-stages--full { gap: 0; padding-top: 4px; }
.hero-journey-stages--full .jstage { padding: 0 14px; }
.jstage h4 { font-family: var(--font-body); font-weight: 700; font-size: 0.85rem; color: var(--berry-bright); margin: 0 0 5px; line-height: 1.25; }
.jstage p { font-size: 0.74rem; margin: 0; color: var(--text-on-dark); line-height: 1.35; }
.jstage .icon { width: 22px; height: 22px; color: var(--icon-pink); margin-bottom: 10px; opacity: 0.9; }
.jstage { scroll-margin-top: 110px; }

.hero-trust-divider { border-top: 1px solid var(--line); margin-top: 56px; position: relative; z-index: 2; }
.hero-trust-row { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 28px; padding: 40px 0; position: relative; z-index: 2; }
.hero-trust-item { display: flex; gap: 16px; align-items: flex-start; padding-left: 28px; border-left: 1px solid var(--line); }
.hero-trust-item > div { min-width: 0; }
.hero-trust-item:first-child { padding-left: 0; border-left: none; }
.hero-trust-item .icon { width: 30px; height: 30px; color: var(--icon-pink); flex: none; opacity: 0.9; }
.hero-trust-item h4 { font-family: var(--font-body); font-weight: 700; font-size: 0.95rem; color: var(--heading-on-dark); margin: 0 0 6px; }
.hero-trust-item p { font-size: 0.82rem; margin: 0; color: var(--text-on-dark); }

@media (max-width: 1000px) {
  .hero-journey-dots { display: none; }
  .hero-journey-stages { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 28px; padding-top: 32px; }
  .hero-trust-row { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .hero-trust-item:nth-child(2n+1) { padding-left: 0; border-left: none; }
}
@media (max-width: 560px) {
  .hero-journey-stages { grid-template-columns: minmax(0,1fr); }
  .hero-trust-row { grid-template-columns: minmax(0,1fr); }
  .hero-trust-item { padding-left: 0; border-left: none; padding-top: 24px; border-top: 1px solid var(--line); }
  .hero-trust-item:first-child { padding-top: 0; border-top: none; }
}
@media (max-width: 880px) {
  .hero { min-height: 620px; }
  .hero .root-art { width: 65%; opacity: 0.22; right: -18%; }
}

/* ---------- Root line divider (signature element) ---------- */
.root-divider { display: block; width: 100%; height: auto; margin: 0 auto; color: var(--line-strong); }
.root-divider path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.2;
  stroke-linecap: round;
  stroke-dasharray: 2400;
  stroke-dashoffset: 2400;
  transition: stroke-dashoffset 1.8s var(--ease);
}
.root-divider.is-drawn path { stroke-dashoffset: 0; }

/* ---------- Reveal on scroll ---------- */
.reveal { transform: translateY(14px); transition: transform .7s var(--ease); }
.reveal.is-visible { transform: translateY(0); }
.reveal-stagger > * { transform: translateY(14px); transition: transform .6s var(--ease); }
.reveal-stagger.is-visible > * { transform: translateY(0); }
.reveal-stagger.is-visible > *:nth-child(1) { transition-delay: 0s; }
.reveal-stagger.is-visible > *:nth-child(2) { transition-delay: .08s; }
.reveal-stagger.is-visible > *:nth-child(3) { transition-delay: .16s; }
.reveal-stagger.is-visible > *:nth-child(4) { transition-delay: .24s; }
.reveal-stagger.is-visible > *:nth-child(5) { transition-delay: .32s; }
.reveal-stagger.is-visible > *:nth-child(6) { transition-delay: .4s; }
.reveal-stagger.is-visible > *:nth-child(7) { transition-delay: .48s; }
.reveal-stagger.is-visible > *:nth-child(8) { transition-delay: .56s; }

/* ---------- Marquee ticker (signature band) ---------- */
.marquee {
  overflow: hidden;
  white-space: nowrap;
  background: var(--bg-1);
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
}
.marquee-track {
  display: inline-flex;
  align-items: center;
  gap: 32px;
  animation: marquee-scroll 26s linear infinite;
  will-change: transform;
}
.marquee-track span.mq-caps {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--heading-on-dark);
}
.marquee-track span.mq-serif {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--berry-bright);
}
.marquee-icon {
  width: 9px; height: 9px;
  border: 1.4px solid var(--icon-pink);
  transform: rotate(45deg);
  flex: none;
}
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Magazine asymmetric grid (dense editorial layout) ---------- */
.magazine-grid { display: grid; grid-template-columns: minmax(0,1.6fr) minmax(0,1fr); gap: 1px; background: var(--line); }
.magazine-feature {
  background: var(--bg-1);
  background-size: cover;
  background-position: center;
  min-height: 460px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  position: relative;
  overflow: hidden;
}
.magazine-feature.has-photo::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(27,18,23,0.1), rgba(27,18,23,0.5));
}
.magazine-feature > * { position: relative; z-index: 1; }
.magazine-list { display: flex; flex-direction: column; gap: 1px; background: var(--line); }
.magazine-item { background: var(--bg); padding: 30px 34px; flex: 1; display: flex; flex-direction: column; justify-content: center; }
.magazine-item h4 { font-family: var(--font-body); font-weight: 700; color: var(--heading-on-dark); margin: 0.25em 0; font-size: 1.05rem; }
.magazine-item p { font-size: 0.88rem; margin: 0; color: var(--text-on-dark-soft); }
@media (max-width: 880px) {
  .magazine-grid { grid-template-columns: minmax(0,1fr); }
  .magazine-feature { min-height: 320px; }
}
/* ---------- Photo band (two-up image accent) ---------- */
.photo-band { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 1px; background: var(--line); }
.photo-band-item {
  position: relative;
  height: 340px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
}
.photo-band-item::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(27,18,23,0) 45%, rgba(27,18,23,0.88));
}
.photo-band-caption { position: relative; z-index: 1; padding: 26px; }
.photo-band-caption .eyebrow { margin-bottom: 0.3em; }
.photo-band-caption h4 { color: var(--heading-on-dark); font-family: var(--font-body); font-weight: 700; margin: 0; font-size: 1.05rem; }
@media (max-width: 880px) { .photo-band { grid-template-columns: minmax(0,1fr); } .photo-band-item { height: 280px; } }

/* ---------- Branch process banner (preview) ---------- */
.branch-process { position: relative; width: 100%; line-height: 0; }
.branch-process-img { width: 100%; height: auto; display: block; }
.branch-process-labels { position: absolute; top: 0; left: 0; right: 0; }
.branch-label { position: absolute; top: 34px; transform: translateX(-50%); text-align: center; width: 150px; }
.branch-label::after { content: ""; position: absolute; left: 50%; top: 100%; width: 1px; height: 34px; background: var(--line-strong); }
.branch-label .num { display: block; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; color: var(--berry-bright); margin-bottom: 6px; }
.branch-label h4 { font-family: var(--font-body); font-weight: 700; font-size: 0.95rem; color: var(--heading-on-dark); margin: 0; line-height: 1.3; }

.grid { display: grid; gap: 1px; background: var(--line); }
.grid--cards { background: transparent; gap: 24px; align-items: stretch; }
.grid--cards .card { border: 1px solid var(--line); display: flex; flex-direction: column; }
.grid-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
@media (max-width: 880px) { .grid-3, .grid-4 { grid-template-columns: minmax(0,1fr); } .grid-2 { grid-template-columns: minmax(0,1fr); } }

.grid-item-plain { background: var(--bg); padding: 26px; }

.photo-blend {
  -webkit-mask-image: radial-gradient(ellipse 75% 75% at center, black 45%, transparent 92%);
  mask-image: radial-gradient(ellipse 75% 75% at center, black 45%, transparent 92%);
}
.section-photo {
  position: relative;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.section-photo::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(28,16,23,0.94) 0%, rgba(28,16,23,0.82) 32%, rgba(28,16,23,0.45) 58%, rgba(28,16,23,0.15) 82%);
  pointer-events: none;
}
.section-photo .container { position: relative; z-index: 1; }

.card {
  background: var(--bg);
  padding: 40px 34px;
  transition: background .3s var(--ease);
}
.card:hover { background: var(--bg-1); }
.card .icon { width: 40px; height: 40px; margin-bottom: 22px; color: var(--icon-pink); }
.card h3 { margin-bottom: 0.5em; font-family: var(--font-body); font-size: 1.05rem; font-weight: 700; color: var(--heading-on-dark); }
.card ul { margin: 0; padding-left: 1.1em; color: var(--text-on-dark); }
.card ul li { margin-bottom: 0.4em; }
.card p { color: var(--text-on-dark); }

.badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 14px;
  border: 1px solid var(--line-strong);
  color: var(--icon-pink);
  margin-bottom: 1em;
}

/* ---------- Property cards ---------- */
.property-card { background: var(--bg); border: 1px solid var(--line); }
.property-photo {
  height: 380px;
  background:
    repeating-linear-gradient(135deg, rgba(247,241,232,0.035) 0px, rgba(247,241,232,0.035) 1px, transparent 1px, transparent 16px),
    linear-gradient(135deg, var(--bg-1), var(--bg-2));
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex; align-items: center; justify-content: center;
  border-bottom: 1px solid var(--line);
}
.property-photo.has-photo::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(27,18,23,0.05), rgba(27,18,23,0.55));
}
.property-photo svg { position: relative; z-index: 1; width: 84px; height: 84px; color: var(--icon-pink); opacity: 0.65; }
@media (max-width: 880px) { .property-photo { height: 260px; } }
.property-photo .photo-label {
  position: absolute; bottom: 12px; left: 16px;
  font-size: 0.68rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--heading-on-light);
  background: rgba(250,245,236,0.88); padding: 4px 10px;
}
.property-body { padding: 28px; }
.property-body h3 { margin-bottom: 0.2em; font-family: var(--font-display); font-weight: 500; font-size: 1.35rem; }
.property-loc { color: var(--text-on-dark-soft); font-size: 0.88rem; margin-bottom: 16px; }
.property-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.property-meta span { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.04em; border: 1px solid var(--line-strong); padding: 5px 10px; color: var(--text-on-dark); }
.property-status { font-size: 0.8rem; font-weight: 700; margin-bottom: 16px; text-transform: uppercase; letter-spacing: 0.04em; }
.property-status.status-open { color: var(--sage); }
.property-status.status-limited { color: var(--berry-bright); }
.property-status.status-enquire { color: var(--text-on-dark-soft); }

/* ---------- Timeline ---------- */
.timeline { position: relative; padding-top: 20px; }
.timeline-line { position: relative; height: 1px; background: var(--line); margin: 0 0 56px; overflow: hidden; }
.timeline-line-fill { position: absolute; inset: 0; width: 0%; background: var(--berry); transition: width 1.8s var(--ease); }
.timeline-line.is-filled .timeline-line-fill { width: 100%; }
.timeline-steps { display: grid; grid-template-columns: repeat(9, minmax(0,1fr)); gap: 18px; }
.timeline-step { text-align: left; }
.timeline-dot { width: 9px; height: 9px; background: var(--bg-2); border: 1.5px solid var(--line-strong); transform: rotate(45deg); margin-bottom: 18px; transition: background .4s var(--ease), border-color .4s var(--ease); }
.timeline-step.is-active .timeline-dot { background: var(--berry); border-color: var(--berry); }
.timeline-step .num { font-size: 0.72rem; color: var(--berry-bright); font-weight: 700; letter-spacing: 0.04em; }
.timeline-step h4 { font-size: 1rem; margin: 6px 0 8px; color: var(--heading-on-dark); font-family: var(--font-body); font-weight: 700; }
.timeline-step p { font-size: 0.86rem; margin: 0; color: var(--text-on-dark-soft); }

/* ---------- Step grid (spacious replacement for the 9-across timeline) ---------- */
.step-grid-item .step-num { display: block; font-family: var(--font-body); font-weight: 700; font-size: 0.78rem; letter-spacing: 0.05em; color: var(--berry-bright); margin-bottom: 12px; }
.step-grid-item h3 { font-size: 1.05rem; margin-bottom: 0.35em; }
.step-grid-item p { margin: 0; font-size: 0.92rem; }
@media (max-width: 1000px) {
  .timeline-steps { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .timeline-line { display: none; }
}

/* ---------- Branch timeline (photo + connector dots + icon grid) ---------- */
.branch-timeline-photo {
  position: relative;
  width: 100%;
  height: 300px;
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid var(--line);
}
.branch-timeline-photo::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(27,18,23,0.25), rgba(27,18,23,0.05) 30%, rgba(27,18,23,0.05) 65%, rgba(27,18,23,0.55));
}
.branch-timeline-connectors { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(8, minmax(0,1fr)); }
.branch-timeline-connectors > div { position: relative; }
.branch-timeline-connectors > div::before {
  content: "";
  position: absolute; left: 50%; top: 62%; bottom: -40px;
  width: 1px; background: var(--berry-bright); opacity: 0.7;
}
.branch-timeline-connectors > div::after {
  content: "";
  position: absolute; left: 50%; top: 62%;
  width: 8px; height: 8px; margin-left: -4px; margin-top: -4px;
  background: var(--berry); border-radius: 50%;
  box-shadow: 0 0 10px 3px rgba(193,88,122,0.55);
}
.branch-timeline-grid { display: grid; grid-template-columns: repeat(8, minmax(0,1fr)); gap: 1px; background: var(--line); margin-top: 8px; }
.branch-timeline-item { background: var(--bg); padding: 28px 16px; scroll-margin-top: 110px; }
.branch-timeline-item .icon { width: 26px; height: 26px; color: var(--icon-pink); margin-bottom: 16px; }
.branch-timeline-item .num { font-size: 0.68rem; color: var(--berry-bright); font-weight: 700; letter-spacing: 0.04em; }
.branch-timeline-item h4 { font-size: 0.92rem; margin: 6px 0 8px; color: var(--heading-on-dark); font-family: var(--font-body); font-weight: 700; }
.branch-timeline-item p { font-size: 0.8rem; margin: 0; color: var(--text-on-dark-soft); }
@media (max-width: 1000px) {
  .branch-timeline-connectors { display: none; }
  .branch-timeline-grid { grid-template-columns: repeat(2, minmax(0,1fr)); margin-top: 0; }
  .branch-timeline-item { padding: 24px 16px; }
}

/* ---------- Values grid ---------- */
.values-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1px; background: var(--line); }
.value-item { padding: 34px; background: var(--bg); }
.value-item h4 { font-family: var(--font-body); font-weight: 700; color: var(--heading-on-dark); margin-bottom: 8px; font-size: 1rem; }
.value-item p { font-size: 0.92rem; margin: 0; color: var(--text-on-dark); }
@media (max-width: 880px) { .values-grid { grid-template-columns: minmax(0,1fr) minmax(0,1fr); } }

/* ---------- Icon rows ---------- */
.icon-row { display: flex; gap: 18px; align-items: flex-start; padding: 22px 0; border-top: 1px solid var(--line); }
.icon-row:first-child { border-top: none; }
.icon-row .icon { flex: none; width: 38px; height: 38px; color: var(--icon-pink); }
.icon-row > div { min-width: 0; flex: 1; }

/* ---------- Forms (deliberate light "paper" surface) ---------- */
.form { background: var(--cream); border: 1px solid var(--line-on-light); padding: 44px; }
.form h3 { color: var(--heading-on-light); }
.form-row { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 20px; margin-bottom: 20px; }
@media (max-width: 700px) { .form-row { grid-template-columns: minmax(0,1fr); } }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 20px; }
.field label { font-size: 0.78rem; font-weight: 700; color: var(--heading-on-light); text-transform: uppercase; letter-spacing: 0.04em; }
.field input, .field select, .field textarea {
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 13px 14px;
  border-radius: var(--radius);
  border: 1px solid var(--line-on-light);
  background: #fff;
  color: var(--heading-on-light);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 3px solid var(--sage);
  outline-offset: 1px;
  border-color: var(--green);
}
.field-file {
  border: 1px dashed var(--line-on-light);
  padding: 18px;
  text-align: center;
  color: var(--text-on-light);
  font-size: 0.88rem;
  background: #fff;
}
.checkbox-row { display: flex; gap: 10px; align-items: flex-start; font-size: 0.88rem; color: var(--text-on-light); }
.form-note { font-size: 0.82rem; color: var(--text-on-light); margin-top: 8px; }
.form-note a { color: var(--berry-dark); }

/* ---------- Placeholder callout ---------- */
.placeholder-note {
  background: var(--bg-1);
  border: 1px dashed var(--line-strong);
  padding: 18px 22px;
  font-size: 0.88rem;
  color: var(--sage);
  margin: 26px 0;
}
.section--light .placeholder-note { background: var(--stone); border-color: var(--green); color: var(--green); }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-footer); color: var(--text-on-dark-soft); padding: 88px 0 36px; }
.footer-grid { display: grid; grid-template-columns: minmax(0,1.4fr) minmax(0,1fr) minmax(0,1fr) minmax(0,1fr); gap: 44px; margin-bottom: 56px; }
.footer-grid h4 { color: var(--heading-on-dark); font-family: var(--font-body); font-size: 0.78rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 18px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 11px; }
.footer-grid a { color: var(--text-on-dark-soft); text-decoration: none; font-size: 0.92rem; }
.footer-grid a:hover { color: var(--heading-on-dark); }
.footer-bottom { border-top: 1px solid var(--line); padding-top: 26px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 0.78rem; }
.footer-legal { display: flex; gap: 20px; flex-wrap: wrap; }
@media (max-width: 880px) { .footer-grid { grid-template-columns: minmax(0,1fr) minmax(0,1fr); } }

/* ---------- Two-column layout ---------- */
.split { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 64px; align-items: start; }
@media (max-width: 880px) { .split { grid-template-columns: minmax(0,1fr); gap: 36px; } }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--berry);
  color: var(--heading-on-dark);
  padding: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 28px;
}
.cta-band h2 { color: var(--heading-on-dark); margin-bottom: 0.2em; font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
.cta-band p { color: rgba(247,241,232,0.85); margin: 0; }
.cta-band .btn-primary { background: var(--heading-on-dark); color: var(--berry-dark); border-color: var(--heading-on-dark); }
.cta-band .btn-primary:hover { background: var(--cream); }

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--berry); color: var(--heading-on-dark); padding: 12px 20px; z-index: 999;
}
.skip-link:focus { left: 0; }

/* ---------- Utility ---------- */
.mt-0 { margin-top: 0; }
.text-sage { color: var(--icon-pink); }
.small { font-size: 0.85rem; }
