/* ==========================================================================
   SA Projects — Design System
   Palette & type scale derived from the Savi on Swan reference.
   ========================================================================== */

:root {
  /* --- Surface -------------------------------------------------------- */
  --bg:            #f4ede3;
  --bg-deep:       #ebe1d2;
  --bg-veil:       #faf6ef;

  /* --- Ink ------------------------------------------------------------ */
  --ink:           #1f1a16;
  --ink-soft:      #5a5048;
  --ink-muted:     #8a8278;

  /* --- Accent --------------------------------------------------------- */
  --warm:          #b04a25;
  --warm-soft:     #d9805a;
  --warm-bright:   #e8956b;

  /* --- Neutrals ------------------------------------------------------- */
  --sand:          #cdb89a;
  --sand-deep:     #a89072;
  --slate:         #2a2a30;
  --olive:         #5e6b4a;

  /* --- Glass ---------------------------------------------------------- */
  --glass:         rgba(255, 250, 242, 0.55);
  --glass-strong:  rgba(255, 250, 242, 0.82);
  --glass-border:  rgba(255, 255, 255, 0.60);
  --glass-dark:    rgba(24, 20, 17, 0.72);

  /* --- Elevation ------------------------------------------------------ */
  --shadow-sm:     0 4px 18px rgba(40, 28, 18, 0.06);
  --shadow-md:     0 18px 50px rgba(40, 28, 18, 0.10);
  --shadow-lg:     0 40px 80px rgba(40, 28, 18, 0.14);
  --shadow-dock:   0 20px 60px rgba(40, 28, 18, 0.25),
                   0 0 0 1px rgba(255, 255, 255, 0.4) inset;

  /* --- Geometry ------------------------------------------------------- */
  --radius:        14px;
  --radius-sm:     8px;
  --radius-lg:     24px;
  --radius-pill:   999px;

  /* --- Type ----------------------------------------------------------- */
  --serif:         'Fraunces', 'Times New Roman', serif;
  --sans:          'Manrope', system-ui, -apple-system, sans-serif;

  /* --- Rhythm --------------------------------------------------------- */
  --gutter:        clamp(1.5rem, 5vw, 6rem);
  --measure:       68ch;
  --section-y:     clamp(4rem, 8vw, 6rem);

  /* --- Motion --------------------------------------------------------- */
  --ease-out:      cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out:   cubic-bezier(0.65, 0, 0.35, 1);
  --dur:           0.8s;
}

/* --------------------------------------------------------------------------
   Reset
   -------------------------------------------------------------------------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* Reserve the scrollbar track permanently. Without this, locking the body
     when the overlay menu opens removes the scrollbar and everything centred
     — the dock especially — jumps sideways by half its width. */
  scrollbar-gutter: stable;
}

/* Honour the OS-level reduced-motion setting everywhere. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: clamp(1rem, 0.95rem + 0.2vw, 1.125rem);
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, video, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { margin: 0; padding: 0; list-style: none; }

::selection { background: var(--warm); color: var(--bg); }

/* --------------------------------------------------------------------------
   Typography
   -------------------------------------------------------------------------- */

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 300;
  line-height: 1.04;
  margin: 0;
  text-wrap: balance;
  font-variation-settings: 'SOFT' 0, 'WONK' 0;
}

.display {
  font-size: clamp(3rem, 8vw, 7.2rem);
  letter-spacing: -0.035em;
  line-height: 0.98;
}

.h1 { font-size: clamp(2.5rem, 6vw, 4.8rem); letter-spacing: -0.02em; }
.h2 { font-size: clamp(2rem, 4.4vw, 3.6rem); letter-spacing: -0.015em; }
.h3 { font-size: clamp(1.5rem, 2.6vw, 2.4rem); letter-spacing: -0.01em; }

/* The reference site's signature move: an italic word in copper inside a
   large serif headline. */
.accent {
  font-style: italic;
  color: var(--warm);
  font-weight: 300;
}

.eyebrow {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin: 0 0 10px;
  display: block;
}
.eyebrow--warm { color: var(--warm); }
.eyebrow--light { color: rgba(255, 250, 242, 0.6); }
.hero__inner .eyebrow--light{padding-top: 35px;}
.lede {
  font-size: clamp(1.15rem, 1.4vw, 1.4rem);
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: var(--measure);
  font-weight: 300;
}

p { margin: 0 0 1.4em; max-width: var(--measure); }
p:last-child { margin-bottom: 0; }

.muted { color: var(--ink-muted); }
.soft  { color: var(--ink-soft); }

/* Small caps metadata line, e.g. "27.6001° S · 153.0396° E" */
.meta {
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-muted);
  font-weight: 500;
}

/* --------------------------------------------------------------------------
   Layout
   -------------------------------------------------------------------------- */

.shell {
  width: 100%;
  max-width: 1440px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.shell--narrow { max-width: 1080px; }
.shell--tight  { max-width: 820px; }

section { position: relative; }

.section    { padding-block: var(--section-y); }
.section--sm { padding-block: clamp(4rem, 7vw, 7rem); }

.section--deep { background: var(--bg-deep); }
.section--dark {
  background: var(--slate);
  color: var(--bg);
}
.section--dark .lede,
.section--dark .soft { color: rgba(244, 237, 227, 0.72); }
.section--dark .muted,
.section--dark .meta { color: rgba(244, 237, 227, 0.5); }

.rule {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(31, 26, 22, 0.16), transparent);
  border: 0;
  margin: 0;
}

/* Asymmetric two-column split — the reference leans on this heavily. */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(2.5rem, 6vw, 7rem);
  align-items: start;
}
.split--even   { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.split--center { align-items: center; }
.split--flip > :first-child { order: 2; }

.grid {
  display: grid;
  gap: clamp(1.25rem, 2.5vw, 2rem);
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
}
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(390px, 100%), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); }
section.section .shell.shell--tight.center .cluster {
    justify-content: center;
}

.stack   { display: grid; gap: 1.5rem; }
.stack-sm { display: grid; gap: 0.75rem; }
.stack-lg { display: grid; gap: 3rem; }

.cluster {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

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

.btn {
  --btn-bg: var(--ink);
  --btn-fg: var(--bg);
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
  padding: 1.05em 2.1em;
  border-radius: var(--radius-pill);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out);
  will-change: transform;
}

/* Copper wipe that fills from the bottom on hover. */
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--warm);
  transform: translateY(101%);
  transition: transform 0.55s var(--ease-out);
  z-index: -1;
}
.btn:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.btn:hover::after { transform: translateY(0); }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  box-shadow: inset 0 0 0 1px rgba(31, 26, 22, 0.25);
}
.btn--ghost:hover { --btn-fg: var(--bg); }

.btn--warm { --btn-bg: var(--warm); }
.btn--warm::after { background: var(--ink); }

.btn--light {
  --btn-bg: var(--bg);
  --btn-fg: var(--ink);
}
.btn--light::after { background: var(--warm); }
.btn--light:hover { --btn-fg: var(--bg); }

.btn--onDark {
  --btn-bg: transparent;
  --btn-fg: var(--bg);
  box-shadow: inset 0 0 0 1px rgba(244, 237, 227, 0.3);
}

/* Understated text link with a rule that draws in from the left. */
.link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--warm);
  padding-bottom: 0.35em;
}
.link::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s var(--ease-out);
}
.link:hover::after { transform: scaleX(1); transform-origin: left; }
.link svg, .link .arrow { transition: transform 0.4s var(--ease-out); }
.link:hover .arrow { transform: translateX(4px); }

/* --------------------------------------------------------------------------
   Cards & surfaces
   -------------------------------------------------------------------------- */

.card {
  position: relative;
  padding: clamp(1.75rem, 3vw, 2.75rem);
  border-radius: var(--radius-lg);
  background: var(--glass);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow-sm);
  transition: transform 0.6s var(--ease-out), box-shadow 0.6s var(--ease-out);
}
.card--solid { background: var(--bg-veil); backdrop-filter: none; }
.card--lift:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }

.card--dark {
  background: var(--glass-dark);
  border-color: rgba(255, 255, 255, 0.12);
  color: var(--bg);
}

/* Numeric stat block. */
.stat { display: grid; gap: 0.4rem; }
.stat__value {
  font-family: var(--serif);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--warm);
}
.stat__label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-muted);
  line-height: 1.5;
}
.stat__sub { font-size: 0.8rem; color: var(--ink-muted); }
.section--dark .stat__label { color: rgba(244, 237, 227, 0.55); }
.section--dark .stat__value { color: var(--warm-bright); }

/* Pill badge, e.g. "NOW SELLING", "WHOLESALE INVESTORS ONLY" */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.5em 1.1em;
  border-radius: var(--radius-pill);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  background: rgba(176, 74, 37, 0.1);
  color: var(--warm);
  border: 1px solid rgba(176, 74, 37, 0.22);
}
.badge--live::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--warm);
  animation: pulse 2.4s var(--ease-in-out) infinite;
}
.badge--neutral {
  background: rgba(31, 26, 22, 0.06);
  color: var(--ink-soft);
  border-color: rgba(31, 26, 22, 0.12);
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.35; transform: scale(0.8); }
}

/* --------------------------------------------------------------------------
   Media
   -------------------------------------------------------------------------- */

.media {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--bg-deep);
}
.media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease-out);
}
.media--tall  { aspect-ratio: 3 / 4; }
.media--wide  { aspect-ratio: 16 / 10; }
.media--square { aspect-ratio: 1; }
.media--hero  { aspect-ratio: 21 / 9; }

.media__caption {
  position: absolute;
  left: 1.25rem; bottom: 1.25rem;
  padding: 0.55em 1.1em;
  border-radius: var(--radius-pill);
  background: var(--glass-strong);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
}

/* Warm scrim so light text stays legible over photography. */
.scrim::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(24, 18, 14, 0.55) 0%,
    rgba(24, 18, 14, 0.18) 40%,
    rgba(24, 18, 14, 0.72) 100%
  );
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   Utilities
   -------------------------------------------------------------------------- */

.center     { text-align: center; }
.center p, .center .lede { margin-inline: auto; }
.full-bleed { width: 100vw; margin-inline: calc(50% - 50vw); }
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

:where(a, button, input, select, textarea):focus-visible {
  outline: 2px solid var(--warm);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}
header .dock__brand img, footer .dock__brand img {
    max-width: 80px;
}