/* =========================================================
   Ong Yi Loong — Property Advisor
   Design tokens
   ========================================================= */
:root {
  --color-bg: #FAF6EE;
  --color-surface: #FFFDF8;
  --color-text: #1B2233;
  --color-text-muted: #6B6558;
  --color-accent: #A67C3F;
  --color-accent-dark: #8C6A34;
  --color-navy: #10182B;
  --color-navy-2: #182238;
  --color-border: #E5DFD1;
  --color-on-accent: #FFFFFF;
  --color-on-navy: #F3EFE4;

  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-5: 4rem;
  --space-6: 6rem;
  --space-7: 8rem;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;

  --shadow-card: 0 1px 3px rgba(27,34,51,0.06), 0 8px 24px rgba(27,34,51,0.05);
  --shadow-hover: 0 4px 10px rgba(27,34,51,0.08), 0 16px 36px rgba(27,34,51,0.09);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 76px;
}

/* =========================================================
   Reset
   ========================================================= */
*, *::before, *::after { 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;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.15; margin: 0; color: var(--color-text); }
p { margin: 0 0 1em; }
button { font-family: inherit; cursor: pointer; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.container.narrow { max-width: 780px; }
.center { text-align: center; }

.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--color-navy); color: #fff;
  padding: 0.75rem 1.25rem; z-index: 200; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* =========================================================
   Typography helpers
   ========================================================= */
.eyebrow {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-accent-dark);
  margin: 0 0 1rem;
}
.eyebrow.center { text-align: center; }

.section-title {
  font-size: clamp(1.75rem, 3.2vw, 2.6rem);
  margin-bottom: 1.25rem;
  letter-spacing: -0.01em;
}
.section-title.center { text-align: center; }

.section-lead {
  font-size: 1.125rem;
  color: var(--color-text-muted);
  max-width: 640px;
  margin: 0 auto 2.5rem;
}
.section-lead.center { text-align: center; }

.muted-small { font-size: 0.875rem; color: var(--color-text-muted); }

.pull-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.5rem;
  color: var(--color-accent-dark);
  border-left: 3px solid var(--color-accent);
  padding-left: 1.25rem;
  margin: 1.75rem 0;
}

/* =========================================================
   Buttons
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 1.75rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: transform 220ms var(--ease), box-shadow 220ms var(--ease), background 220ms var(--ease), color 220ms var(--ease), border-color 220ms var(--ease);
  cursor: pointer;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: var(--color-accent);
  color: var(--color-on-accent);
  box-shadow: 0 6px 20px rgba(166,124,63,0.28);
}
.btn-primary:hover { background: var(--color-accent-dark); box-shadow: 0 10px 26px rgba(166,124,63,0.34); }
.btn-outline {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-border);
}
.btn-outline:hover { border-color: var(--color-accent); color: var(--color-accent-dark); }
.btn-ghost-light {
  background: transparent;
  color: var(--color-on-navy);
  border-color: rgba(243,239,228,0.35);
}
.btn-ghost-light:hover { border-color: var(--color-on-navy); }
.btn-sm { padding: 0.6rem 1.25rem; font-size: 0.85rem; }

/* =========================================================
   Header / Nav
   ========================================================= */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--header-h);
  display: flex; align-items: center;
  background: rgba(250,246,238,0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 220ms var(--ease), background 220ms var(--ease);
}
.site-header.scrolled {
  border-bottom-color: var(--color-border);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%;
}
.logo {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.main-nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text);
  position: relative;
  padding: 0.25rem 0;
}
.main-nav a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -2px; height: 1px;
  background: var(--color-accent); transition: right 220ms var(--ease);
}
.main-nav a:hover::after { right: 0; }

.header-actions { display: flex; align-items: center; gap: 1rem; }
.header-actions .btn-primary { display: none; }

.nav-toggle {
  width: 40px; height: 40px; border: none; background: none;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.nav-toggle span {
  display: block; width: 22px; height: 2px; background: var(--color-text);
  transition: transform 220ms var(--ease), opacity 220ms var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Desktop inline nav (inside header) */
.main-nav-desktop { display: none; gap: 2rem; }

/* Mobile full-screen nav — deliberately rendered OUTSIDE .site-header.
   backdrop-filter on an ancestor creates a new containing block for
   position:fixed descendants, which would collapse this panel's height. */
.main-nav-mobile {
  display: none;
  position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0;
  z-index: 99;
  background: var(--color-bg);
  flex-direction: column;
  padding: 2rem 1.5rem;
  gap: 0.25rem;
  transform: translateX(100%);
  transition: transform 280ms var(--ease);
  overflow-y: auto;
}
.main-nav-mobile.open { display: flex; transform: translateX(0); }
.main-nav-mobile a { padding: 1rem 0; font-size: 1.15rem; border-bottom: 1px solid var(--color-border); }

@media (min-width: 900px) {
  .main-nav-desktop { display: flex; }
  .header-actions .btn-primary { display: inline-flex; }
  .nav-toggle { display: none; }
  .main-nav-mobile { display: none !important; }
}

.mobile-whatsapp-fab {
  position: fixed; bottom: 1.25rem; right: 1.25rem; z-index: 90;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25D366; color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 22px rgba(37,211,102,0.4);
  transition: transform 220ms var(--ease);
}
.mobile-whatsapp-fab:hover { transform: scale(1.06); }
@media (min-width: 900px) { .mobile-whatsapp-fab { display: none; } }

/* =========================================================
   Hero
   ========================================================= */
/* Vanilla equivalent of a framer-motion clip-path reveal: JS drives
   --mask-radius on scroll, CSS just consumes it. See js/main.js
   "Hero mask reveal". */
.hero {
  background: var(--color-bg);
  padding-top: calc(var(--header-h) + 3rem);
  padding-bottom: var(--space-7);
}
.hero-header-wrap {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}
.hero-headline {
  font-size: clamp(2.25rem, 5.5vw, 3.4rem);
  color: var(--color-text);
  max-width: 16ch;
  margin: 0 auto;
  letter-spacing: -0.01em;
}
.hero-sub {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  max-width: 44ch;
  margin: 1.25rem auto 0;
  color: var(--color-text-muted);
}
.hero-identity {
  margin-top: 2rem;
  display: flex; flex-direction: column; align-items: center; gap: 0.15rem;
}
.hero-name { font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; }
.hero-meta { font-size: 0.85rem; letter-spacing: 0.04em; color: var(--color-text-muted); }
.hero-ctas {
  margin-top: 2.25rem;
  display: flex; flex-wrap: wrap; gap: 1rem;
}
.hero-ctas.center { justify-content: center; }

.hero-photo-mask {
  --mask-radius: 16%;
  width: 100%;
  max-width: 420px;
  aspect-ratio: 4/5;
  margin: 3.5rem auto 0;
  overflow: hidden;
  box-shadow: 0 30px 70px -25px rgba(16,24,43,0.35);
  clip-path: circle(var(--mask-radius) at 50% 50%);
  will-change: clip-path;
}
.hero-photo-mask img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: top center;
}
@media (min-width: 768px) {
  .hero-photo-mask { max-width: 520px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-photo-mask { clip-path: circle(75% at 50% 50%); }
}

/* =========================================================
   Trust strip
   ========================================================= */
.trust-strip {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  padding: 2.25rem 0;
}
.trust-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem 1rem;
  text-align: center;
}
.trust-list li { display: flex; flex-direction: column; gap: 0.25rem; }
.trust-value { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; }
.trust-label { font-size: 0.75rem; color: var(--color-text-muted); letter-spacing: 0.03em; text-transform: uppercase; }
@media (min-width: 700px) { .trust-list { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .trust-list { grid-template-columns: repeat(6, 1fr); gap: 1rem; } }

/* =========================================================
   Sections generic
   ========================================================= */
.section { padding: var(--space-6) 0; }
.section-alt { background: var(--color-surface); border-top: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border); }

/* =========================================================
   Story
   ========================================================= */
.story-video {
  position: relative;
  margin-top: 2.5rem;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 16/9;
  background: var(--color-navy);
  box-shadow: var(--shadow-card);
}
.story-video video { width: 100%; height: 100%; object-fit: cover; display: block; }
.story-copy { margin-top: 2.5rem; }
.story-copy p { font-size: 1.05rem; }

.video-thumb {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  background: var(--color-navy);
  aspect-ratio: 9/16;
}
.video-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 400ms var(--ease); }
.video-thumb:hover img { transform: scale(1.04); }
.play-btn {
  position: absolute; inset: 0; margin: auto; width: 56px; height: 56px;
  background: rgba(255,255,255,0.92);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.play-btn::after {
  content: ""; width: 0; height: 0;
  border-top: 10px solid transparent; border-bottom: 10px solid transparent;
  border-left: 16px solid var(--color-navy);
  margin-left: 4px;
}
.video-caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 1rem 0.9rem 0.75rem;
  background: linear-gradient(0deg, rgba(16,24,43,0.85), transparent);
  color: #fff; font-size: 0.82rem; font-weight: 500;
}

/* =========================================================
   Track record / award
   ========================================================= */
.award-card {
  display: grid; gap: 2rem; margin-top: 2.5rem; text-align: left;
  grid-template-columns: 1fr;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
}
.award-card img {
  border-radius: var(--radius-md);
  /* Tilted-card hover treatment, adapted from a framer-motion card
     hero: subtle static tilt, lifts and straightens on hover. Pure
     CSS transition — no scroll/JS needed since it's hover-driven. */
  transform: rotate(-3deg);
  box-shadow: 0 20px 40px -18px rgba(16,24,43,0.4);
  transition: transform 300ms var(--ease), box-shadow 300ms var(--ease);
}
.award-card img:hover {
  transform: rotate(0deg) translateY(-8px);
  box-shadow: 0 28px 55px -18px rgba(16,24,43,0.5);
}
@media (prefers-reduced-motion: reduce) {
  .award-card img { transform: none; transition: none; }
  .award-card img:hover { transform: none; }
}
.award-tag {
  display: inline-block; font-family: var(--font-display); font-size: 1.25rem; color: var(--color-accent-dark); margin-bottom: 0.75rem;
}
@media (min-width: 780px) {
  .award-card { grid-template-columns: 320px 1fr; align-items: center; padding: 2.5rem; }
}

/* =========================================================
   Reviews — fanned card stack
   JS drives per-card transform (translateX/Y, rotateZ, scale) via
   inline style based on offset from the active index. Cards show
   uncropped (object-fit: contain) since the images are pre-designed
   testimonial cards, not photos.
   ========================================================= */
.review-stack { margin-top: 3rem; }
.review-stack-stage {
  position: relative;
  height: 420px;
  perspective: 1200px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.review-stack-card {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: min(320px, 78vw);
  aspect-ratio: 4 / 3;
  padding: 0;
  border: none;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-surface);
  box-shadow: var(--shadow-hover);
  cursor: pointer;
  transition: transform 420ms var(--ease), box-shadow 300ms var(--ease);
  will-change: transform;
}
.review-stack-card img { width: 100%; height: 100%; object-fit: cover; background: var(--color-surface); display: block; }
.review-stack-card.is-active { cursor: default; box-shadow: 0 20px 50px -15px rgba(16,24,43,0.35); }
.review-stack-card:focus { outline: none; }
.review-stack-card:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 3px; }

.review-stack-dots {
  margin-top: 1.5rem;
  display: flex; align-items: center; justify-content: center; gap: 0.6rem;
}
.review-stack-dot {
  width: 9px; height: 9px; border-radius: 50%;
  border: none; padding: 0;
  background: var(--color-border);
  cursor: pointer;
  transition: background 200ms var(--ease), transform 200ms var(--ease);
}
.review-stack-dot.is-active { background: var(--color-accent); transform: scale(1.25); }

@media (prefers-reduced-motion: reduce) {
  .review-stack-card { transition: none; }
}

/* =========================================================
   Process — expanding cards
   JS sets grid-template-columns (desktop) / -rows (mobile) so the
   active card grows and siblings compress. No images: navy fill +
   white text on the active card stands in for the original's photo.
   ========================================================= */
.process-cards {
  margin-top: 2.5rem;
  display: grid;
  gap: 0.75rem;
  grid-template-columns: 1fr;
  height: 520px;
  transition: grid-template-rows 450ms var(--ease);
}
.process-card {
  position: relative;
  list-style: none;
  cursor: pointer;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  overflow: hidden;
  padding: 1.25rem;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  min-height: 0;
  transition: background 400ms var(--ease), border-color 400ms var(--ease);
}
.process-card[data-active="true"] {
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-end;
  background: var(--color-navy);
  border-color: var(--color-navy);
}
.process-card-num {
  position: static;
  flex-shrink: 0;
  font-family: var(--font-display); font-size: 0.9rem; font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--color-accent-dark);
  transition: color 400ms var(--ease);
}
.process-card[data-active="true"] .process-card-num {
  position: absolute; top: 1.1rem; left: 1.25rem;
  color: rgba(243,239,228,0.55);
}

.process-card-label {
  font-size: 0.95rem; font-weight: 600; color: var(--color-text);
  transition: opacity 250ms var(--ease);
}
.process-card[data-active="true"] .process-card-label { opacity: 0; position: absolute; }

.process-card-content {
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: opacity 300ms 120ms var(--ease);
}
.process-card-content h3 { color: #fff; font-size: 1.25rem; margin-bottom: 0.5rem; }
.process-card-content p { color: rgba(243,239,228,0.85); font-size: 0.92rem; margin: 0; }
.process-card[data-active="true"] .process-card-content { opacity: 1; max-height: none; }

@media (min-width: 900px) {
  .process-cards { height: 380px; }
  .process-card { flex-direction: column; align-items: stretch; }
  .process-card-num { position: absolute; top: 1.1rem; left: 1.25rem; }
  .process-card-label {
    position: absolute; right: 1.1rem; bottom: 1.25rem;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.78rem;
    color: var(--color-text-muted);
  }
  .process-card[data-active="true"] .process-card-label { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .process-cards, .process-card, .process-card-num, .process-card-content { transition: none; }
}

/* =========================================================
   Who I help — single-slide carousel
   One slide visible at a time, with a mouse-move parallax tilt on
   the active slide's image (driven by --x/--y custom properties set
   in JS). Prev/next + dots navigate; track translateX picks the
   active slide. Real listing/marketing photos, not stock.
   ========================================================= */
.who-carousel { margin-top: 2.5rem; }
.who-carousel-viewport {
  overflow: hidden;
  border-radius: var(--radius-lg);
  max-width: 560px;
  margin: 0 auto;
}
.who-carousel-track {
  display: flex;
  list-style: none;
  margin: 0; padding: 0;
  transition: transform 500ms var(--ease);
}
.who-carousel-slide {
  position: relative;
  flex: 0 0 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  perspective: 900px;
}
.who-carousel-media {
  position: absolute; inset: 0;
  transform: rotateX(var(--y, 0deg)) rotateY(var(--x, 0deg)) scale(var(--s, 1));
  transition: transform 400ms var(--ease);
  will-change: transform;
}
.who-carousel-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.who-carousel-slide.is-active:hover .who-carousel-media { transition: none; }
.who-carousel-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(16,24,43,0.75) 0%, rgba(16,24,43,0.15) 45%, transparent 70%);
  pointer-events: none;
}
.who-carousel-caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 1.75rem;
  pointer-events: none;
}
.who-carousel-caption h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  color: #fff;
}
.who-carousel-controls {
  margin-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
}
.who-carousel-btn {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--color-border, rgba(16,24,43,0.18));
  background: var(--color-surface);
  color: var(--color-text);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 200ms var(--ease), color 200ms var(--ease);
}
.who-carousel-btn:hover { background: var(--color-accent); color: #fff; }
.who-carousel-dots { display: flex; gap: 0.5rem; }
.who-carousel-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: rgba(16,24,43,0.2);
  cursor: pointer;
  transition: background 200ms var(--ease), transform 200ms var(--ease);
}
.who-carousel-dot.is-active { background: var(--color-accent); transform: scale(1.3); }
@media (min-width: 640px) {
  .who-carousel-caption { padding: 2.25rem; }
  .who-carousel-caption h3 { font-size: 1.65rem; }
}
@media (prefers-reduced-motion: reduce) {
  .who-carousel-track, .who-carousel-media, .who-carousel-btn, .who-carousel-dot { transition: none; }
}

/* =========================================================
   Marketing
   ========================================================= */
.marketing-block { margin-top: 3rem; }
.marketing-block:first-of-type { margin-top: 2.5rem; }
.marketing-block-title { font-size: 1.4rem; margin-bottom: 0.75rem; }
.marketing-block > p { max-width: 720px; color: var(--color-text-muted); }
/* =========================================================
   Data-driven insights — expanding cards (photo treatment)
   Same grid-template expand mechanism as the "How I Work" process
   cards below, driven by JS toggling data-active + inline grid
   styles — reused here with real marketing photos instead of the
   flat-colour fill, since these three cards have actual creatives
   to show. Inactive cards show a sideways label (desktop) or a
   plain label (mobile); the active card reveals icon, title,
   description and a WhatsApp link.
   ========================================================= */
.insight-expand {
  margin-top: 2.5rem;
  display: grid;
  gap: 0.6rem;
  grid-template-columns: 1fr;
  height: 620px;
  list-style: none;
  padding: 0;
  transition: grid-template-rows 450ms var(--ease);
}
.insight-expand-card {
  position: relative;
  cursor: pointer;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-navy);
  min-width: 0;
  min-height: 0;
}
.insight-expand-card img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(55%);
  transform: scale(1.08);
  transition: filter 400ms var(--ease), transform 400ms var(--ease);
}
.insight-expand-card[data-active="true"] img { filter: grayscale(0%); transform: scale(1); }
.insight-expand-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(16,24,43,0.88), rgba(16,24,43,0.25) 55%, transparent);
}
.insight-expand-zoom {
  position: absolute; top: 0.75rem; right: 0.75rem;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(16,24,43,0.55);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  z-index: 2;
  transition: background 200ms var(--ease);
}
.insight-expand-zoom:hover { background: var(--color-accent); }
@media (min-width: 768px) {
  .insight-expand-zoom { top: 1rem; right: 1rem; }
}
.insight-expand-label {
  position: absolute; left: 1.25rem; bottom: 1.25rem;
  transition: opacity 200ms var(--ease);
}
.insight-expand-label span {
  font-size: 0.85rem; font-weight: 600;
  color: rgba(255,255,255,0.9);
}
.insight-expand-card[data-active="true"] .insight-expand-label { opacity: 0; }
.insight-expand-content {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: flex-end;
  gap: 0.5rem;
  padding: 1.5rem;
  opacity: 0;
  transition: opacity 250ms var(--ease);
}
.insight-expand-card[data-active="true"] .insight-expand-content { opacity: 1; }
.insight-expand-icon { color: #fff; }
.insight-expand-content h4 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: #fff;
}
.insight-expand-content p {
  margin: 0;
  max-width: 320px;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.85);
}
.insight-expand-content a {
  align-self: flex-start;
  margin-top: 0.15rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.6);
  padding-bottom: 1px;
}
.insight-expand-content a:hover { border-color: var(--color-accent); color: var(--color-accent); }
@media (min-width: 768px) {
  .insight-expand { grid-template-columns: repeat(3, 1fr); height: 440px; transition: grid-template-columns 450ms var(--ease); }
  .insight-expand-label {
    left: auto; right: 1.1rem; bottom: 1.25rem;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.78rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  .insight-expand, .insight-expand-card, .insight-expand-card img, .insight-expand-label, .insight-expand-content {
    transition: none;
  }
}

/* =========================================================
   Reels — fanned card carousel
   All cards rest in a fanned spread (JS computes translate/rotate/
   scale per card); hovering one straightens + enlarges it and
   pushes its neighbours further apart. Below the hover threshold
   the cards just sit at their resting fan position — still fully
   clickable to play.
   ========================================================= */
.reel-fan {
  position: relative;
  margin-top: 2.5rem;
  height: 330px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.reel-fan .video-thumb {
  position: absolute;
  width: 130px;
  transition: transform 450ms cubic-bezier(0.22, 1, 0.36, 1);
}
.reel-fan .video-thumb:hover img { transform: none; }
@media (min-width: 480px) {
  .reel-fan { height: 380px; }
  .reel-fan .video-thumb { width: 152px; }
}
@media (min-width: 720px) {
  .reel-fan { height: 440px; }
  .reel-fan .video-thumb { width: 178px; }
}
@media (min-width: 1040px) {
  .reel-fan { height: 500px; }
  .reel-fan .video-thumb { width: 200px; }
}
@media (prefers-reduced-motion: reduce) {
  .reel-fan .video-thumb { transition: none; }
}

/* =========================================================
   Listings
   ========================================================= */
.listings-subsection { margin-top: 3rem; }
.listings-subsection:first-of-type { margin-top: 2.5rem; }
.listings-subhead {
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-accent-dark);
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 0.75rem;
}

.listing-grid {
  margin-top: 2rem;
  display: grid; gap: 1.75rem;
  grid-template-columns: 1fr;
}
.listing-card {
  position: relative;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.listing-photo { aspect-ratio: 4/3; overflow: hidden; }
.listing-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 400ms var(--ease); }
.listing-card a:hover .listing-photo img { transform: scale(1.04); }
.placeholder-photo {
  background: repeating-linear-gradient(135deg, #F0EAD9, #F0EAD9 10px, #EAE2CD 10px, #EAE2CD 20px);
  display: flex; align-items: center; justify-content: center;
  color: var(--color-text-muted); font-size: 0.85rem; text-align: center; padding: 1rem;
}
.listing-body { padding: 1.5rem; display: flex; flex-direction: column; gap: 0.75rem; align-items: flex-start; }
.listing-body h4 { font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; margin: 0; }
.listing-meta { color: var(--color-text-muted); font-size: 0.9rem; margin: -0.4rem 0 0; }
.listing-price { font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; color: var(--color-accent-dark); margin: 0; }
.listing-specs { color: var(--color-text-muted); font-size: 0.85rem; margin: -0.4rem 0 0; }
.listing-body .btn { width: 100%; justify-content: center; }

/* Status ribbons — hidden unless the card carries .is-sold / .is-tenanted */
.status-ribbon {
  display: none;
  position: absolute; top: 1rem; left: -2.25rem;
  width: 9rem; padding: 0.35rem 0;
  text-align: center;
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: #fff;
  transform: rotate(-40deg);
  z-index: 2;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}
.status-sold { background: #8C2F2F; }
.status-tenanted { background: var(--color-navy); }
.listing-card.is-sold .status-sold,
.listing-card.is-tenanted .status-tenanted { display: block; }
.listing-card.is-sold .listing-photo,
.listing-card.is-tenanted .listing-photo { filter: grayscale(60%); opacity: 0.7; }

@media (min-width: 640px) { .listing-grid-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 720px) { .listing-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .listing-grid-3 { grid-template-columns: repeat(3, 1fr); } }

/* =========================================================
   Listing carousel wrapper
   Adds a sliding-tracker carousel around the existing listing grid
   — arrows shift the track by one card at a time, clamped at the
   ends. Nothing under .listing-card is touched; only the grid
   becomes a flex track when it's inside this wrapper.
   ========================================================= */
.listing-carousel { position: relative; margin-top: 2rem; }
.listing-carousel-viewport { overflow: hidden; }
.listing-carousel-viewport .listing-grid {
  margin-top: 0;
  display: flex;
  flex-wrap: nowrap;
  transition: transform 500ms ease;
}
.listing-carousel-viewport .listing-grid > .listing-card { flex: 0 0 100%; }
@media (min-width: 720px) {
  .listing-carousel-viewport .listing-grid > .listing-card { flex: 0 0 calc(50% - 0.875rem); }
}
@media (min-width: 980px) {
  .listing-carousel-viewport .listing-grid > .listing-card { flex: 0 0 calc(33.333% - 1.1667rem); }
}
.listing-carousel-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  z-index: 5;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(16,24,43,0.6);
  color: #fff;
  font-size: 1.3rem;
  line-height: 1;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background 200ms var(--ease), opacity 200ms var(--ease);
}
.listing-carousel-arrow.is-prev { left: 0.6rem; }
.listing-carousel-arrow.is-next { right: 0.6rem; }
.listing-carousel-arrow:hover { background: var(--color-accent); }
.listing-carousel-arrow:disabled { opacity: 0.35; cursor: default; }
.listing-carousel-arrow:disabled:hover { background: rgba(16,24,43,0.6); }
.listing-carousel-arrow[hidden] { display: none; }
@media (prefers-reduced-motion: reduce) {
  .listing-carousel-viewport .listing-grid { transition: none; }
}

/* =========================================================
   60s Property Bites
   ========================================================= */
.bites-nav {
  margin-top: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
}
.bites-nav a {
  display: inline-block;
  padding: 0.55rem 1.1rem;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text);
  text-decoration: none;
  background: var(--color-surface);
  transition: background 200ms var(--ease), border-color 200ms var(--ease), color 200ms var(--ease);
}
.bites-nav a:hover {
  background: var(--color-navy);
  border-color: var(--color-navy);
  color: #fff;
}
.bite-project {
  display: grid; gap: 1.5rem;
  grid-template-columns: 1fr;
  margin-top: 3rem;
  padding-top: 3rem;
  border-top: 1px solid var(--color-border);
  scroll-margin-top: calc(var(--header-h) + 1rem);
}
.bite-project:first-of-type { border-top: none; margin-top: 2.5rem; padding-top: 0; }
.bite-tag {
  display: inline-block; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--color-accent-dark); margin-bottom: 0.6rem;
}
.bite-project-header h3 { font-size: 1.6rem; margin: 0; }
.bite-project-body > p { color: var(--color-text-muted); }

/* Photo carousel — native horizontal scroll-snap; images render at
   their own natural aspect ratio (no crop, no forced letterboxing),
   so the track's height follows the tallest photo. Prev/next arrows
   sit at the sides rather than dots at the bottom. */
.bite-photo-carousel { position: relative; }
.bite-photo-track {
  display: flex;
  align-items: flex-start;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  border-radius: var(--radius-md);
}
.bite-photo-track::-webkit-scrollbar { display: none; }
.bite-photo-slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}
.bite-photo-slide img { width: 100%; height: auto; display: block; }
.bite-photo-arrow {
  position: absolute; top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(16,24,43,0.55);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background 200ms var(--ease), opacity 200ms var(--ease);
}
.bite-photo-arrow.is-prev { left: 0.6rem; }
.bite-photo-arrow.is-next { right: 0.6rem; }
.bite-photo-arrow:hover { background: var(--color-accent); }
.bite-photo-arrow:disabled { opacity: 0.35; cursor: default; }
.bite-photo-arrow:disabled:hover { background: rgba(16,24,43,0.55); }
@media (prefers-reduced-motion: reduce) {
  .bite-photo-track { scroll-behavior: auto; }
}
@media (min-width: 900px) {
  .bite-project { grid-template-columns: 1fr 1fr; align-items: start; }
  .bite-project-header { grid-column: 1 / -1; }
  .bite-featured { grid-template-columns: 1.1fr 0.9fr; }
}

/* =========================================================
   Final CTA / Enquiry form
   ========================================================= */
.final-cta {
  background: var(--color-navy);
  background-image: radial-gradient(circle at 20% 20%, rgba(166,124,63,0.12), transparent 45%);
  color: var(--color-on-navy);
  padding: var(--space-7) 0;
}
.final-cta-title {
  color: #fff;
  font-size: clamp(1.9rem, 3.5vw, 2.75rem);
  margin: 0;
}
.final-cta-sub { font-size: 1.1rem; margin-top: 1.25rem; color: rgba(243,239,228,0.92); }
.final-cta-note { color: rgba(243,239,228,0.65); font-size: 0.95rem; }

.cta-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: start;
}
.cta-trust-points {
  list-style: none;
  margin: 2.25rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.cta-trust-points li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.9rem;
  color: rgba(243,239,228,0.85);
}
.cta-trust-points li::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--color-accent);
  flex-shrink: 0;
}

/* ---- Enquiry form card ---- */
.enquiry-form {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: 0 24px 60px rgba(0,0,0,0.3);
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}
.form-field { display: flex; flex-direction: column; gap: 0.45rem; }
.form-field label {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text);
  letter-spacing: 0.01em;
}
.form-optional { font-weight: 400; color: var(--color-text-muted); font-size: 0.8rem; }

.enquiry-form input[type="text"],
.enquiry-form input[type="tel"],
.enquiry-form textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  font-size: 1rem;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: border-color 200ms var(--ease), box-shadow 200ms var(--ease);
}
.enquiry-form input::placeholder,
.enquiry-form textarea::placeholder { color: var(--color-text-muted); opacity: 0.8; }
.enquiry-form input:focus,
.enquiry-form textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(166,124,63,0.18);
}
.enquiry-form textarea { resize: vertical; min-height: 76px; max-height: 160px; font-family: var(--font-body); }

/* ---- Custom select (reason / property type) ---- */
.select-field { position: relative; }
.select-trigger {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  font-size: 1rem;
  font-family: var(--font-body);
  text-align: left;
  color: var(--color-text);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: border-color 200ms var(--ease), box-shadow 200ms var(--ease);
}
.select-trigger:hover { border-color: var(--color-accent); }
.select-value.is-placeholder { color: var(--color-text-muted); }
.select-chevron { color: var(--color-text-muted); flex-shrink: 0; transition: transform 200ms var(--ease); }
.select-field.is-open .select-trigger {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(166,124,63,0.18);
}
.select-field.is-open .select-chevron { transform: rotate(180deg); }

.select-panel {
  position: absolute; top: calc(100% + 0.45rem); left: 0; right: 0;
  z-index: 20;
  margin: 0; padding: 0.4rem;
  list-style: none;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-hover);
  max-height: 260px;
  overflow-y: auto;
  color: var(--color-text);
}
.select-panel[hidden] { display: none; }
.select-panel li {
  padding: 0.65rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  color: var(--color-text);
  cursor: pointer;
  transition: background 150ms var(--ease), color 150ms var(--ease);
}
.select-panel li:hover { background: rgba(166,124,63,0.1); color: var(--color-accent-dark); }
.select-panel li.is-selected { color: var(--color-accent-dark); font-weight: 600; }

/* ---- Errors ---- */
.form-error {
  display: none;
  font-size: 0.8rem;
  color: #A6423A;
}
.form-field.has-error .form-error { display: block; }
.form-field.has-error input,
.form-field.has-error .select-trigger { border-color: #A6423A; }

.form-submit { width: 100%; justify-content: center; margin-top: 0.25rem; }
.form-hint { margin: 0.6rem 0 0; text-align: center; font-size: 0.8rem; color: var(--color-text-muted); }

@media (min-width: 900px) {
  .cta-grid { grid-template-columns: 1fr 1.05fr; gap: 4rem; }
  .enquiry-form { padding: 2.25rem; }
}

.final-identity {
  margin-top: 3.5rem; padding-top: 2rem;
  border-top: 1px solid rgba(243,239,228,0.15);
}
.final-identity p { margin: 0.15rem 0; color: rgba(243,239,228,0.85); }
.final-name { font-family: var(--font-display); font-size: 1.3rem; color: #fff; font-weight: 600; }

/* =========================================================
   Footer
   ========================================================= */
.site-footer { background: var(--color-navy); color: rgba(243,239,228,0.6); padding: 2.5rem 0; }
.footer-inner {
  display: flex; flex-direction: column; gap: 1.5rem;
  align-items: flex-start;
}
.footer-name { font-family: var(--font-display); color: #fff; font-size: 1.1rem; margin-bottom: 0.25rem; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.footer-nav a { font-size: 0.85rem; }
.footer-nav a:hover { color: #fff; }
.footer-copy { max-width: 30ch; }
@media (min-width: 900px) {
  .footer-inner { flex-direction: row; justify-content: space-between; align-items: center; }
  .footer-copy { text-align: right; }
}

/* =========================================================
   Scroll reveal
   ========================================================= */
.reveal {
  opacity: 0; transform: translateY(18px);
  transition: opacity 700ms var(--ease), transform 700ms var(--ease);
}
.reveal.in-view { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* =========================================================
   Lightbox
   ========================================================= */
.lightbox {
  position: fixed; inset: 0; z-index: 300;
  display: flex; align-items: center; justify-content: center;
  padding: 2rem;
}
.lightbox[hidden] { display: none; }
.lightbox-backdrop { position: absolute; inset: 0; background: rgba(16,24,43,0.92); }
.lightbox-inner { position: relative; z-index: 1; max-width: 420px; width: 100%; }
.lightbox-inner video { width: 100%; border-radius: var(--radius-md); max-height: 85vh; background: #000; }
.lightbox-inner.is-image { max-width: 1200px; display: flex; justify-content: center; }
.lightbox-inner.is-image img {
  max-width: 100%;
  max-height: 90vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius-md);
  background: #000;
}
.lightbox-close {
  position: absolute; top: -3rem; right: 0;
  background: none; border: none; color: #fff; font-size: 2rem; line-height: 1;
}
