/* =========================================================
   Coastline Realty — South Florida
   Design tokens, layout, components, motion.
   ========================================================= */

:root {
  /* South Florida palette */
  --ocean-deep: #0a2540;
  --ocean: #0f3a5f;
  --teal: #2a9d9f;
  --teal-soft: #7dd3c0;
  --coral: #ff7a59;
  --coral-warm: #ff9f6b;
  --sunset: #f6a26b;
  --sand: #f7ede2;
  --cream: #fdfbf7;
  --gold: #c9a36a;
  --ink: #111b2e;
  --ink-soft: #4a5773;
  --line: rgba(17, 27, 46, 0.08);
  --line-strong: rgba(17, 27, 46, 0.16);

  /* Type scale */
  --font-serif: 'Instrument Serif', 'Cormorant Garamond', Georgia, serif;
  --font-accent: 'Instrument Serif', 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Layout */
  --max: 1240px;
  --gutter: clamp(1.25rem, 3vw, 2.5rem);
  --radius: 18px;
  --radius-sm: 10px;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

/* =========================================================
   Reset
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; }
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.08;
  margin: 0;
}
h1 { font-size: clamp(2.8rem, 6.5vw, 5.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.4rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.75rem); }
p { margin: 0 0 1em; }

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.eyebrow { display: none !important; }

/* =========================================================
   Navbar
   ========================================================= */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 0;
  background: rgba(253, 251, 247, 0);
  transition: background 0.4s var(--ease), backdrop-filter 0.4s var(--ease), padding 0.3s var(--ease), box-shadow 0.4s var(--ease);
}
.nav.is-scrolled {
  background: rgba(253, 251, 247, 0.85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  padding: 12px 0;
  box-shadow: 0 1px 0 var(--line);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-serif);
  font-size: 1.35rem;
  letter-spacing: -0.01em;
  color: var(--cream);
  transition: color 0.3s var(--ease);
}
.nav.is-scrolled .brand { color: var(--ocean-deep); }
.brand__mark {
  width: 34px; height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--teal) 0%, var(--ocean-deep) 60%, var(--coral) 120%);
  position: relative;
  overflow: hidden;
  box-shadow: 0 6px 18px -8px rgba(42, 157, 159, 0.6);
}
.brand__mark::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.5) 50%, transparent 70%);
  transform: translateX(-100%);
  animation: shimmer 4.5s var(--ease) infinite;
}
@keyframes shimmer {
  0% { transform: translateX(-100%); }
  60% { transform: translateX(100%); }
  100% { transform: translateX(100%); }
}
.nav__links {
  display: flex;
  gap: 2rem;
  list-style: none;
  padding: 0; margin: 0;
}
.nav__link {
  position: relative;
  font-size: 0.95rem;
  color: var(--cream);
  padding: 6px 0;
  transition: color 0.25s var(--ease);
}
.nav.is-scrolled .nav__link { color: var(--ink); }
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 1.5px;
  background: var(--coral);
  transition: right 0.35s var(--ease);
}
.nav__link:hover { color: var(--coral-warm); }
.nav.is-scrolled .nav__link:hover { color: var(--ocean-deep); }
.nav__link:hover::after,
.nav__link[aria-current="page"]::after { right: 0; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s var(--ease);
  will-change: transform;
}
.btn--primary {
  background: var(--ocean-deep);
  color: var(--cream);
  box-shadow: 0 10px 24px -12px rgba(10, 37, 64, 0.6);
}
.btn--primary:hover {
  background: var(--coral);
  transform: translateY(-2px);
  box-shadow: 0 16px 30px -12px rgba(255, 122, 89, 0.55);
}
.btn--ghost {
  background: transparent;
  color: var(--ocean-deep);
  border: 1px solid var(--line-strong);
}
.btn--ghost:hover {
  background: var(--ocean-deep);
  color: var(--cream);
  border-color: var(--ocean-deep);
  transform: translateY(-2px);
}
.btn__arrow {
  display: inline-block;
  transition: transform 0.3s var(--ease);
}
.btn:hover .btn__arrow { transform: translateX(4px); }

.nav__toggle {
  display: none;
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--ocean-deep);
  color: var(--cream);
  align-items: center;
  justify-content: center;
}

/* =========================================================
   Hero
   ========================================================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 140px 0 80px;
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(180deg, #0a2540 0%, #0f3a5f 55%, #1b4b74 100%);
  color: var(--cream);
}
.hero__media {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.hero__img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.55;
  transform: scale(1.06);
  animation: slow-zoom 20s var(--ease-in-out) infinite alternate;
}
@keyframes slow-zoom {
  0% { transform: scale(1.06) translateY(0); }
  100% { transform: scale(1.14) translateY(-12px); }
}
.hero__gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 900px 600px at 20% 20%, rgba(42, 157, 159, 0.35), transparent 60%),
    radial-gradient(ellipse 700px 500px at 85% 80%, rgba(255, 122, 89, 0.35), transparent 60%),
    linear-gradient(180deg, rgba(10, 37, 64, 0.35) 0%, rgba(10, 37, 64, 0.75) 100%);
  pointer-events: none;
}
.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
}
.hero__content {
  max-width: 640px;
}
.hero__eyebrow {
  color: var(--teal-soft);
}
.hero__eyebrow::before { background: var(--teal-soft); }

.hero__title {
  color: var(--cream);
  margin: 22px 0 24px;
}
.hero__title em,
h1 em, h2 em, h3 em {
  font-family: var(--font-accent);
  font-style: italic;
  font-weight: 400;
  color: var(--coral-warm);
  letter-spacing: -0.01em;
}
.hero__lede {
  font-size: clamp(1.05rem, 1.3vw, 1.2rem);
  color: rgba(253, 251, 247, 0.8);
  max-width: 520px;
  margin-bottom: 36px;
}
.hero__ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.hero .btn--ghost {
  color: var(--cream);
  border-color: rgba(253, 251, 247, 0.3);
}
.hero .btn--ghost:hover {
  background: var(--cream);
  color: var(--ocean-deep);
}

/* Hero stat strip — qualitative only, no numbers */
.hero__marks {
  display: flex;
  gap: 2rem;
  margin-top: 54px;
  padding-top: 28px;
  border-top: 1px solid rgba(253, 251, 247, 0.18);
  flex-wrap: wrap;
}
.hero__mark {
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(253, 251, 247, 0.72);
  display: flex;
  align-items: center;
  gap: 8px;
}
.hero__mark::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--coral-warm);
  box-shadow: 0 0 12px var(--coral-warm);
}

/* Hero visual card */
.hero__card {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 40px 80px -40px rgba(0,0,0,0.6);
  transform: perspective(900px) rotateY(-4deg) rotateX(2deg);
  transition: transform 0.8s var(--ease);
}
.hero__card:hover { transform: perspective(900px) rotateY(-1deg) rotateX(0); }
.hero__card-img { width: 100%; height: 100%; object-fit: cover; }
.hero__card-tag {
  position: absolute;
  top: 18px; left: 18px;
  background: rgba(253, 251, 247, 0.92);
  color: var(--ocean-deep);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}
.hero__card-caption {
  position: absolute;
  bottom: 18px; left: 18px; right: 18px;
  background: rgba(10, 37, 64, 0.72);
  color: var(--cream);
  padding: 14px 18px;
  border-radius: 14px;
  backdrop-filter: blur(8px);
  font-family: var(--font-serif);
  font-size: 1.1rem;
  letter-spacing: -0.01em;
}

/* Palm silhouette corner */
.hero__palm {
  position: absolute;
  right: -40px; bottom: -30px;
  width: 280px; opacity: 0.2;
  pointer-events: none;
  z-index: 0;
  animation: sway 8s var(--ease-in-out) infinite alternate;
  transform-origin: bottom center;
}
@keyframes sway {
  0% { transform: rotate(-1.5deg); }
  100% { transform: rotate(1.5deg); }
}

/* Scroll cue */
.scroll-cue {
  position: absolute;
  left: 50%; bottom: 28px;
  transform: translateX(-50%);
  color: rgba(253, 251, 247, 0.6);
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.scroll-cue::after {
  content: "";
  width: 1px; height: 42px;
  background: linear-gradient(180deg, rgba(253,251,247,0.6), transparent);
  animation: cue 2.2s var(--ease-in-out) infinite;
}
@keyframes cue {
  0%, 100% { transform: scaleY(1); transform-origin: top; opacity: 0.6; }
  50% { transform: scaleY(0.3); opacity: 1; }
}

/* =========================================================
   Sections
   ========================================================= */
.section {
  padding: clamp(80px, 12vw, 140px) 0;
  position: relative;
}
.section--sand { background: var(--sand); }
.section--ocean { background: var(--ocean-deep); color: var(--cream); }
.section--ocean h2 { color: var(--cream); }
.section__head {
  max-width: 760px;
  margin-bottom: 56px;
}
.section__head p {
  color: var(--ink-soft);
  font-size: 1.1rem;
  max-width: 620px;
}
.section--ocean .section__head p { color: rgba(253, 251, 247, 0.75); }
.section__title em {
  font-family: var(--font-accent);
  font-style: italic;
  font-weight: 400;
  color: var(--coral);
  letter-spacing: -0.01em;
}

/* =========================================================
   Explore (card grid)
   ========================================================= */
.explore {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
}
.card {
  position: relative;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), border-color 0.5s var(--ease);
  display: flex;
  flex-direction: column;
  min-height: 360px;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 48px -24px rgba(10, 37, 64, 0.25);
  border-color: rgba(42, 157, 159, 0.3);
}
.card__media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, var(--teal), var(--ocean));
}
.card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease);
}
.card:hover .card__media img { transform: scale(1.08); }
.card__body {
  padding: 24px 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.card__kicker {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal);
}
.card__title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  letter-spacing: -0.015em;
}
.card__blurb {
  color: var(--ink-soft);
  font-size: 0.95rem;
}
.card__link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--ocean-deep);
  font-weight: 500;
  position: relative;
  width: max-content;
}
.card__link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 1px;
  background: var(--ocean-deep);
  transform: scaleX(0.3);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.card:hover .card__link::after { transform: scaleX(1); }

/* Feature row */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.feature-row--reverse .feature-row__media { order: 2; }
.feature-row__media {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(10,37,64,0.35);
}
.feature-row__media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.2s var(--ease);
}
.feature-row__media:hover img { transform: scale(1.05); }
.feature-row__media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(10,37,64,0.2) 100%);
  pointer-events: none;
}

/* =========================================================
   Services list
   ========================================================= */
.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
}
.service {
  padding: 36px 32px;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  position: relative;
  overflow: hidden;
  transition: background 0.4s var(--ease);
}
.service:hover { background: var(--cream); }
.service:hover .service__icon { color: var(--coral); transform: translateY(-2px) rotate(-3deg); }
.service__icon {
  width: 44px; height: 44px;
  color: var(--teal);
  margin-bottom: 20px;
  transition: transform 0.5s var(--ease), color 0.4s var(--ease);
}
.service__title {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}
.service__desc {
  color: var(--ink-soft);
  font-size: 0.95rem;
  margin: 0;
}
.service__num {
  position: absolute;
  top: 20px; right: 24px;
  font-family: var(--font-serif);
  font-size: 0.9rem;
  color: var(--line-strong);
  letter-spacing: 0.1em;
}

/* =========================================================
   Portfolio
   ========================================================= */
.portfolio {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 22px;
}
.listing {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--ocean-deep);
  min-height: 320px;
  cursor: pointer;
  transition: transform 0.6s var(--ease);
}
.listing:hover { transform: translateY(-4px); }
.listing img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease), opacity 0.6s var(--ease);
}
.listing:hover img { transform: scale(1.06); }
.listing__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(10,37,64,0.85) 100%);
}
.listing__meta {
  position: absolute;
  left: 22px; right: 22px; bottom: 22px;
  color: var(--cream);
  z-index: 2;
}
.listing__tag {
  display: inline-block;
  padding: 5px 12px;
  background: rgba(253, 251, 247, 0.15);
  backdrop-filter: blur(6px);
  border-radius: 999px;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.listing__title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}
.listing__sub {
  font-size: 0.88rem;
  opacity: 0.8;
}

.listing--lg { grid-column: span 8; min-height: 460px; }
.listing--sm { grid-column: span 4; min-height: 460px; }
.listing--md { grid-column: span 6; }
.listing--tall { min-height: 420px; }

@media (max-width: 820px) {
  .listing--lg, .listing--sm, .listing--md { grid-column: span 12; min-height: 340px; }
}

/* =========================================================
   Listing modal (gallery)
   ========================================================= */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(12px, 3vw, 36px);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}
.modal.is-open {
  pointer-events: auto;
  opacity: 1;
}
.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 37, 64, 0.72);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
}
.modal__panel {
  position: relative;
  width: min(1160px, 100%);
  max-height: calc(100vh - 48px);
  background: var(--cream);
  border-radius: 20px;
  box-shadow: 0 60px 100px -40px rgba(0,0,0,0.6);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: scale(0.96) translateY(16px);
  opacity: 0;
  transition: transform 0.45s var(--ease), opacity 0.35s var(--ease);
}
.modal.is-open .modal__panel {
  transform: scale(1) translateY(0);
  opacity: 1;
}
.modal__close {
  position: absolute;
  top: 14px; right: 14px;
  width: 42px; height: 42px;
  border-radius: 999px;
  background: rgba(253, 251, 247, 0.9);
  color: var(--ocean-deep);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease);
  box-shadow: 0 6px 18px -8px rgba(0,0,0,0.3);
}
.modal__close:hover {
  transform: rotate(90deg);
  background: var(--coral);
  color: var(--cream);
}
.modal__stage {
  position: relative;
  flex: 1 1 auto;
  min-height: 320px;
  background: var(--ocean-deep);
  overflow: hidden;
}
.modal__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.45s var(--ease);
}
.modal__img.is-ready {
  opacity: 1;
}
.modal__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px; height: 48px;
  border-radius: 999px;
  background: rgba(253, 251, 247, 0.88);
  color: var(--ocean-deep);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s var(--ease), transform 0.3s var(--ease);
  box-shadow: 0 8px 18px -8px rgba(0,0,0,0.4);
  z-index: 2;
}
.modal__nav:hover {
  background: var(--coral);
  color: var(--cream);
}
.modal__nav--prev { left: 18px; }
.modal__nav--next { right: 18px; }
.modal__nav--prev:hover { transform: translateY(-50%) translateX(-3px); }
.modal__nav--next:hover { transform: translateY(-50%) translateX(3px); }

.modal__counter {
  position: absolute;
  left: 18px; top: 18px;
  padding: 6px 12px;
  background: rgba(10, 37, 64, 0.55);
  color: var(--cream);
  border-radius: 999px;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  backdrop-filter: blur(6px);
  z-index: 2;
}

.modal__body {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: clamp(60px, 8vw, 90px) clamp(22px, 3vw, 40px) clamp(18px, 2.4vw, 28px);
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 24px;
  align-items: end;
  overflow: hidden;
  background: linear-gradient(180deg, transparent 0%, rgba(10, 37, 64, 0.15) 45%, rgba(10, 37, 64, 0.7) 100%);
  pointer-events: none;
}
.modal__body > * { pointer-events: auto; }
.modal__info { min-width: 0; }
.modal__tag {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal-soft);
  margin-bottom: 6px;
  text-shadow: 0 1px 8px rgba(0,0,0,0.4);
}
.modal__title {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 2vw, 2rem);
  letter-spacing: -0.01em;
  color: var(--cream);
  margin: 0 0 4px;
  text-shadow: 0 2px 16px rgba(0,0,0,0.45);
}
.modal__sub {
  color: rgba(253, 251, 247, 0.92);
  font-size: 0.98rem;
  margin: 0 0 10px;
  text-shadow: 0 1px 10px rgba(0,0,0,0.4);
}
.modal__caption {
  font-size: 0.92rem;
  color: rgba(253, 251, 247, 0.78);
  margin: 0 0 16px;
  font-style: italic;
  text-shadow: 0 1px 10px rgba(0,0,0,0.4);
}
.modal__cta {
  margin-top: 4px;
}
.modal__thumbs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 2px;
  scrollbar-width: thin;
}
.modal__thumbs::-webkit-scrollbar { height: 6px; }
.modal__thumbs::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 3px; }
.modal__thumb {
  flex: 0 0 auto;
  width: 84px;
  height: 60px;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid rgba(253, 251, 247, 0.3);
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
  cursor: pointer;
  background: var(--ocean);
  padding: 0;
  box-shadow: 0 6px 14px -8px rgba(0,0,0,0.5);
}
.modal__thumb img {
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0.8;
  transition: opacity 0.3s var(--ease);
}
.modal__thumb:hover img { opacity: 1; }
.modal__thumb.is-active {
  border-color: var(--coral);
}
.modal__thumb.is-active img { opacity: 1; }

body.modal-open {
  overflow: hidden;
}

@media (max-width: 780px) {
  .modal__body {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .modal__thumbs { max-height: 140px; }
  .modal__nav { width: 40px; height: 40px; }
}

/* =========================================================
   Marquee (neighborhoods)
   ========================================================= */
.marquee {
  overflow: hidden;
  padding: 28px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--cream);
}
.marquee__track {
  display: flex;
  gap: 3rem;
  white-space: nowrap;
  animation: marquee 32s linear infinite;
  width: max-content;
}
.marquee__item {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 2.6vw, 2.4rem);
  color: var(--ocean-deep);
  letter-spacing: -0.02em;
  display: inline-flex;
  align-items: center;
  gap: 3rem;
}
.marquee__item::after {
  content: "✦";
  color: var(--coral);
  font-size: 0.8em;
}
@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* =========================================================
   About / bio
   ========================================================= */
.bio {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}
.bio__portrait {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(10,37,64,0.4);
}
.bio__portrait img { width: 100%; height: 100%; object-fit: cover; }
.bio__portrait::before {
  content: "";
  position: absolute;
  inset: -18px;
  border: 1px solid var(--coral);
  border-radius: calc(var(--radius) + 10px);
  transform: rotate(-1.5deg);
  z-index: -1;
  pointer-events: none;
}
.bio__content h2 { margin-bottom: 18px; }
.bio__lede {
  font-size: 1.25rem;
  color: var(--ink-soft);
  font-family: var(--font-serif);
  font-style: italic;
  margin-bottom: 22px;
  letter-spacing: -0.01em;
}
.values {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 18px;
  margin-top: 36px;
}
.value {
  padding: 20px 22px;
  border-left: 2px solid var(--coral);
  background: var(--cream);
  border-radius: 0 12px 12px 0;
  transition: transform 0.4s var(--ease);
}
.value:hover { transform: translateX(4px); }
.value__title {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  margin-bottom: 4px;
  color: var(--ocean-deep);
}
.value__desc {
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin: 0;
}

/* =========================================================
   Contact
   ========================================================= */
.contact {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.form {
  display: grid;
  gap: 18px;
  background: var(--cream);
  padding: clamp(28px, 4vw, 44px);
  border-radius: var(--radius);
  border: 1px solid var(--line);
}
.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field label {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.field input, .field textarea, .field select {
  padding: 14px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  font: inherit;
  background: #fff;
  color: var(--ink);
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(42, 157, 159, 0.12);
}
.field textarea { min-height: 140px; resize: vertical; }

.info-stack {
  display: grid;
  gap: 22px;
}
.info-card {
  padding: 26px 28px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease);
}
.info-card:hover { transform: translateY(-3px); border-color: var(--teal-soft); }
.info-card__label {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 10px;
}
.info-card__value {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: var(--ocean-deep);
  letter-spacing: -0.01em;
}
.info-card__sub {
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin-top: 6px;
}

/* =========================================================
   Footer
   ========================================================= */
.footer {
  background: var(--ocean-deep);
  color: rgba(253, 251, 247, 0.75);
  padding: 80px 0 40px;
  position: relative;
  overflow: hidden;
}
.footer::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--teal), transparent);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 60px;
}
.footer__brand {
  color: var(--cream);
}
.footer__brand p {
  margin-top: 14px;
  max-width: 320px;
  font-size: 0.92rem;
}
.footer__col h4 {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal-soft);
  margin-bottom: 18px;
}
.footer__col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer__col a {
  font-size: 0.95rem;
  transition: color 0.3s var(--ease);
}
.footer__col a:hover { color: var(--coral-warm); }
.footer__bottom {
  padding-top: 28px;
  border-top: 1px solid rgba(253,251,247,0.12);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
}
.socials { display: flex; gap: 14px; }
.social {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(253,251,247,0.2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.social:hover {
  background: var(--coral);
  border-color: var(--coral);
  transform: translateY(-2px);
}

/* =========================================================
   Motion reveal
   ========================================================= */
[data-reveal] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
[data-reveal].is-in {
  opacity: 1;
  transform: translateY(0);
}
[data-reveal-delay="1"] { transition-delay: 0.08s; }
[data-reveal-delay="2"] { transition-delay: 0.16s; }
[data-reveal-delay="3"] { transition-delay: 0.24s; }
[data-reveal-delay="4"] { transition-delay: 0.32s; }
[data-reveal-delay="5"] { transition-delay: 0.4s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__card { max-width: 440px; margin: 0 auto; transform: none; }
  .feature-row { grid-template-columns: 1fr; }
  .feature-row--reverse .feature-row__media { order: 0; }
  .bio { grid-template-columns: 1fr; }
  .contact { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .nav__links { display: none; }
  .nav__toggle { display: inline-flex; }
  .form__row { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 2rem; }
  .hero { padding-top: 120px; }
  .hero__marks { gap: 1.2rem; }
}

/* Mobile nav panel */
.nav__panel {
  position: fixed;
  top: 0; left: 0; right: 0;
  background: var(--cream);
  padding: 90px 24px 32px;
  border-bottom: 1px solid var(--line);
  transform: translateY(-100%);
  transition: transform 0.45s var(--ease);
  z-index: 90;
  box-shadow: 0 20px 40px -20px rgba(10,37,64,0.2);
}
.nav__panel.is-open { transform: translateY(0); }
.nav__panel ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.nav__panel a {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  color: var(--ocean-deep);
}
