/* ===== Blue Maple Investments — Stylesheet =====
   Palette: deep navy + warm gold + bone white
   Type:    Cormorant Garamond (serif display) + Inter (sans body)
   ============================================== */

:root {
  --navy-900: #060e22;
  --navy-800: #0a1530;
  --navy-700: #0f1d3d;
  --navy-600: #16264f;
  --gold:     #c9a961;
  --gold-soft:#d8bd80;
  --bone:     #f4efe6;
  --muted:    #9aa3b8;
  --line:     rgba(201, 169, 97, 0.18);
  --white:    #ffffff;

  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --radius: 4px;
  --max:    1200px;
  --ease:   cubic-bezier(.2, .7, .2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  color: var(--bone);
  background: var(--navy-900);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, video, svg, canvas { max-width: 100%; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color .25s var(--ease); }
a:hover { color: var(--gold); }

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Typography helpers ===== */
.eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}
.h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.15;
  color: var(--bone);
  /* Default tight kerning — expands on scroll-into-view (kinetic reveal) */
  letter-spacing: -0.045em;
  transition: letter-spacing 1.4s cubic-bezier(.2, .7, .2, 1);
}
.reveal.is-visible .h2,
.is-visible.h2 {
  letter-spacing: -0.005em;
}
.h2 em, .h3 em {
  font-style: italic;
  color: var(--gold);
  font-weight: 500;
}
.h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  line-height: 1.2;
  color: var(--bone);
  margin-bottom: 18px;
  /* Subtle kinetic reveal — milder than h2 */
  letter-spacing: -0.035em;
  transition: letter-spacing 1.4s cubic-bezier(.2, .7, .2, 1);
}
.reveal.is-visible .h3 {
  letter-spacing: 0;
}
.lead {
  font-size: 1.05rem;
  color: var(--bone);
  margin-bottom: 18px;
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 14px 28px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all .3s var(--ease);
}
.btn--gold {
  background: var(--gold);
  color: var(--navy-900);
  border-color: var(--gold);
}
.btn--gold:hover {
  background: var(--gold-soft);
  border-color: var(--gold-soft);
  color: var(--navy-900);
  transform: translateY(-1px);
}
.btn--ghost {
  background: transparent;
  color: var(--bone);
  border-color: rgba(244, 239, 230, 0.3);
}
.btn--ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
}
.btn--full { width: 100%; }

/* ===== Intro loader (floating maple) ===== */
.intro {
  position: fixed;
  inset: 0;
  z-index: 9999;
  /* Pure deep navy — matches the typical dark background of the video so blend mode keys it out cleanly */
  background: #04081a;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: all;
  overflow: hidden;
  transition: opacity 700ms cubic-bezier(.7,.0,.3,1), visibility 0s linear 700ms;
}
.intro.is-fading {
  opacity: 0;
  visibility: hidden;
}
.intro.is-skipped { display: none; }

/* Soft ambient glow behind the leaf */
.intro::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 60% 50% at center,
    rgba(60, 140, 230, 0.18) 0%,
    rgba(20, 60, 140, 0.08) 35%,
    transparent 70%
  );
  pointer-events: none;
  animation: glowPulse 4s ease-in-out infinite;
}
@keyframes glowPulse {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50%      { opacity: 1;   transform: scale(1.08); }
}

.intro__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  position: relative;
  /* Gentle floating bob over the whole leaf+wordmark unit */
  animation: floatBob 5s ease-in-out infinite;
}
@keyframes floatBob {
  0%, 100% { transform: translateY(-4px); }
  50%      { transform: translateY(4px); }
}

.intro__canvas {
  width: min(80vw, 620px);
  height: auto;
  max-height: 70vh;
  display: block;
  background: transparent;
  /* Soft halo around the leaf */
  filter: drop-shadow(0 0 40px rgba(80, 160, 240, 0.35))
          drop-shadow(0 0 80px rgba(40, 100, 200, 0.2));
  opacity: 0;
  animation: introFadeIn 800ms ease forwards;
}
@keyframes introFadeIn {
  to { opacity: 1; }
}

.intro__wordmark {
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0;
  animation: wordIn 900ms cubic-bezier(.2,.7,.2,1) 1200ms forwards;
  margin-top: -10px;
}
.intro__name {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 2rem;
  letter-spacing: 0.14em;
  color: var(--bone);
  text-transform: uppercase;
}
.intro__sub {
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.5em;
  color: var(--gold);
  margin-top: 6px;
  text-transform: uppercase;
  text-indent: 0.5em;
}
@keyframes wordIn {
  0%   { opacity: 0; transform: translateY(8px); }
  100% { opacity: 1; transform: translateY(0); }
}

.intro__skip {
  position: fixed;
  bottom: 28px;
  right: 28px;
  background: transparent;
  border: 1px solid rgba(244, 239, 230, 0.2);
  color: rgba(244, 239, 230, 0.7);
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 9px 18px;
  border-radius: var(--radius);
  cursor: pointer;
  opacity: 0;
  animation: introFadeIn 500ms ease 1500ms forwards;
  transition: border-color .25s var(--ease), color .25s var(--ease);
}
.intro__skip:hover {
  border-color: var(--gold);
  color: var(--gold);
}
.intro__skip span { margin-left: 4px; }

@media (prefers-reduced-motion: reduce) {
  .intro__canvas, .intro__wordmark, .intro__skip { animation: none; opacity: 1; }
  .intro__inner, .intro::before { animation: none; }
}

/* Lock body scroll while intro is showing */
body.intro-active { overflow: hidden; }

/* ===== Navigation ===== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(6, 14, 34, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: background .3s var(--ease), border-color .3s var(--ease), padding .3s var(--ease);
}
.nav.is-scrolled {
  background: rgba(6, 14, 34, 0.92);
  border-bottom-color: var(--line);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 4px;
  padding-bottom: 4px;
}
.nav__brand {
  display: flex;
  align-items: center;
}
.nav__logo {
  height: 110px;
  width: auto;
  display: block;
  transition: transform .5s var(--ease);
}
.nav__brand:hover .nav__logo {
  transform: scale(1.03);
}
.nav__brand-text {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--bone);
}
.nav__brand-text em {
  font-style: italic;
  color: var(--gold);
  font-weight: 400;
}
.nav__links {
  display: flex;
  gap: 36px;
  align-items: center;
}
.nav__links a {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bone);
  position: relative;
}
.nav__links a:not(.nav__cta)::after {
  content: '';
  position: absolute;
  left: 0; bottom: -6px;
  height: 1px;
  width: 0;
  background: var(--gold);
  transition: width .3s var(--ease);
}
.nav__links a:not(.nav__cta):hover::after { width: 100%; }
.nav__cta {
  border: 1px solid var(--gold);
  padding: 10px 22px;
  border-radius: var(--radius);
  color: var(--gold) !important;
}
.nav__cta:hover {
  background: var(--gold);
  color: var(--navy-900) !important;
}
.nav__toggle {
  display: none;
  background: transparent;
  border: 0;
  cursor: pointer;
  width: 30px;
  height: 30px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}
.nav__toggle span {
  display: block;
  height: 1.5px;
  width: 100%;
  background: var(--bone);
  transition: all .3s var(--ease);
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero__bg-color {
  position: absolute;
  inset: 0;
  background: var(--navy-900);
  z-index: 0;
}

/* ===== Hero photo crossfade (Ken Burns) =====
   Four property photos: each visible ~6s with 1s crossfades, looped. */
.hero__photos {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
}
.hero__photo {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transform: scale(1.06);
  will-change: opacity, transform;
  animation: heroPhotoCycle 32s ease-in-out infinite;
}
.hero__photo--1 { animation-delay:   0s; }
.hero__photo--2 { animation-delay:   8s; }
.hero__photo--3 { animation-delay:  16s; }
.hero__photo--4 { animation-delay:  24s; }
@keyframes heroPhotoCycle {
  0%   { opacity: 0; transform: scale(1.06); }
  3%   { opacity: 1; }
  22%  { opacity: 1; transform: scale(1.14); }
  25%  { opacity: 0; transform: scale(1.14); }
  100% { opacity: 0; transform: scale(1.06); }
}

/* ===== Kinetic hero typography =====
   Each .word starts hidden + offset, then fades up sequentially via per-element delay. */
.hero__title {
  overflow: hidden; /* clips word slide-up below baseline */
}
.hero__title .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(36px);
  animation: wordRise 1.1s cubic-bezier(.2, .7, .2, 1) var(--d, 0s) both;
}
.hero__title em {
  display: inline-block;
}
.hero__title em .word { color: var(--gold); }
@keyframes wordRise {
  0%   { opacity: 0; transform: translateY(36px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* Cascade the surrounding hero copy */
.hero__eyebrow {
  opacity: 0;
  animation: heroFadeUp 1s cubic-bezier(.2, .7, .2, 1) 0.25s both;
}
.hero__sub {
  opacity: 0;
  animation: heroFadeUp 1s cubic-bezier(.2, .7, .2, 1) 1.4s both;
}
.hero__actions {
  opacity: 0;
  animation: heroFadeUp 1s cubic-bezier(.2, .7, .2, 1) 1.65s both;
}
@keyframes heroFadeUp {
  0%   { opacity: 0; transform: translateY(18px); }
  100% { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .hero__photo, .hero__title .word, .hero__eyebrow, .hero__sub, .hero__actions {
    animation: none;
    opacity: 1;
    transform: none;
  }
}
.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(180deg,
    rgba(4, 8, 24, 0.55) 0%,
    rgba(4, 8, 24, 0.25) 40%,
    rgba(4, 8, 24, 0.85) 100%);
  pointer-events: none;
}
.hero__content {
  position: relative;
  z-index: 3;
  padding-top: 150px;
  padding-bottom: 80px;
  max-width: 880px;
}
.hero__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.6rem, 6vw, 5rem);
  line-height: 1.05;
  letter-spacing: -0.015em;
  margin-bottom: 28px;
  color: var(--bone);
}
.hero__title em {
  font-style: italic;
  color: var(--gold);
  font-weight: 400;
}
.hero__sub {
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--bone);
  max-width: 620px;
  margin-bottom: 40px;
  opacity: 0.92;
}
.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.hero__scroll {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}
.hero__scroll span {
  display: block;
  width: 1px;
  height: 50px;
  background: linear-gradient(to bottom, transparent, var(--gold));
  position: relative;
}
.hero__scroll span::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: -3px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  animation: scrollDot 2s infinite var(--ease);
}
@keyframes scrollDot {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(8px); opacity: 0.4; }
}

/* ===== Sections ===== */
.section {
  padding: 110px 0;
  position: relative;
}
.section--dark    { background: var(--navy-900); }
.section--darker  { background: var(--navy-800); }
.section--darkest { background: var(--navy-700); }

.section__head {
  text-align: center;
  margin-bottom: 70px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
.section__sub {
  margin-top: 18px;
  color: var(--muted);
  font-size: 1.05rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 80px;
  align-items: start;
}

.pillars {
  list-style: none;
  margin-top: 30px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}
.pillars li {
  padding: 14px 0;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
}
.pillars li:last-child { border-bottom: 0; }
.pillars strong {
  color: var(--bone);
  font-weight: 500;
  margin-right: 10px;
  font-family: var(--serif);
  font-size: 1.15rem;
  font-style: italic;
}

/* ===== Stats ===== */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}
.stat {
  text-align: center;
  padding: 40px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.015);
  transition: border-color .3s var(--ease), transform .3s var(--ease);
}
.stat:hover {
  border-color: var(--gold);
  transform: translateY(-3px);
}
.stat__num {
  font-family: var(--serif);
  font-size: clamp(2.5rem, 5vw, 3.8rem);
  font-weight: 400;
  color: var(--gold);
  line-height: 1;
  display: inline-block;
}
.stat__suffix {
  font-family: var(--serif);
  font-size: clamp(2.5rem, 5vw, 3.8rem);
  font-weight: 400;
  color: var(--gold);
  line-height: 1;
  display: inline-block;
}
.stat__label {
  margin-top: 16px;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.footnote {
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  font-style: italic;
  letter-spacing: 0.05em;
}

/* ===== Portfolio category header ===== */
.cat {
  display: flex;
  align-items: center;
  gap: 24px;
  margin: 60px 0 28px;
}
.cat:first-of-type { margin-top: 0; }
.cat__title {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 1.6rem;
  color: var(--gold);
  letter-spacing: 0.01em;
  flex-shrink: 0;
}
.cat__line {
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, var(--line), transparent);
}

/* ===== Portfolio carousel ===== */
.carousel {
  position: relative;
  margin: 0 -8px; /* counter the inner padding so arrows can align with section edges */
}
.carousel__track {
  display: flex;
  flex-wrap: nowrap;
  gap: 26px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;            /* Firefox */
  padding: 8px 8px 16px 8px;        /* room for hover lift + edge breathing */
  scroll-padding-left: 8px;
}
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__track .card {
  flex: 0 0 calc((100% - 16px - 52px) / 3); /* 3 cards visible */
  scroll-snap-align: start;
}

/* Carousel arrow buttons */
.carousel__btn {
  position: absolute;
  top: 45%;
  transform: translateY(-50%);
  z-index: 5;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(6, 14, 34, 0.92);
  border: 1px solid rgba(201, 169, 97, 0.55);
  color: var(--gold);
  font-family: var(--serif);
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  transition: opacity .3s var(--ease), background .25s, border-color .25s, transform .25s;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  padding: 0;
  padding-bottom: 4px; /* nudge chevron up to optical center */
}
.carousel:hover .carousel__btn,
.carousel:focus-within .carousel__btn { opacity: 1; }
.carousel__btn:hover {
  background: var(--gold);
  color: var(--navy-900);
  border-color: var(--gold);
  transform: translateY(-50%) scale(1.06);
}
.carousel__btn:disabled {
  opacity: 0 !important;
  cursor: default;
  pointer-events: none;
}
.carousel__btn--prev { left: -10px; }
.carousel__btn--next { right: -10px; }

/* Scrub bar with maple leaf position marker */
.carousel__bar {
  position: relative;
  margin: 32px auto 0;
  max-width: 660px;
  height: 56px;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  touch-action: pan-y;
}
.carousel__bar.is-hidden { display: none; }
.carousel__bar-track {
  position: absolute;
  left: 36px; right: 36px;
  top: 50%;
  height: 2px;
  transform: translateY(-50%);
  background: linear-gradient(to right, transparent, rgba(244, 239, 230, 0.2) 12%, rgba(244, 239, 230, 0.2) 88%, transparent);
  border-radius: 1px;
  pointer-events: none;
}
.carousel__bar-fill {
  position: absolute;
  left: 36px;
  top: 50%;
  height: 2px;
  width: 0%;
  transform: translateY(-50%);
  background: linear-gradient(to right, rgba(201, 169, 97, 0.7), rgba(124, 196, 255, 0.75));
  border-radius: 1px;
  pointer-events: none;
  transition: width .05s linear;
}
.carousel__bar-thumb {
  position: absolute;
  top: 50%;
  left: 28px;
  width: 46px;
  height: 46px;
  transform: translate(-50%, -50%);
  cursor: grab;
  filter: drop-shadow(0 4px 14px rgba(124, 196, 255, 0.5))
          drop-shadow(0 0 12px rgba(60, 140, 230, 0.3));
  transition: filter .25s var(--ease), width .2s var(--ease), height .2s var(--ease);
}
.carousel__bar-thumb img {
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
  -webkit-user-drag: none;
  object-fit: contain;
}
.carousel__bar:hover .carousel__bar-thumb,
.carousel__bar.is-dragging .carousel__bar-thumb {
  width: 54px;
  height: 54px;
  filter: drop-shadow(0 6px 18px rgba(124, 196, 255, 0.7))
          drop-shadow(0 0 22px rgba(80, 160, 240, 0.5));
}
.carousel__bar.is-dragging .carousel__bar-thumb { cursor: grabbing; }

/* Update padding for new thumb size */
.carousel__bar-track { left: 28px; right: 28px; }
.carousel__bar-fill  { left: 28px; }

@media (max-width: 720px) {
  .carousel__bar { margin-top: 22px; max-width: 92%; height: 48px; }
  .carousel__bar-track, .carousel__bar-fill { left: 22px; }
  .carousel__bar-track { right: 22px; }
  .carousel__bar-thumb { width: 38px; height: 38px; left: 22px; }
  .carousel__bar:hover .carousel__bar-thumb,
  .carousel__bar.is-dragging .carousel__bar-thumb {
    width: 44px; height: 44px;
  }
}

.card { will-change: transform; }
.card {
  background: var(--navy-700);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .5s var(--ease), border-color .35s var(--ease), box-shadow .5s var(--ease);
  cursor: pointer;
}
.card:hover {
  transform: translateY(-8px);
  border-color: var(--gold);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.5),
              0 0 0 1px rgba(201, 169, 97, 0.15);
}
.card__img {
  width: 100%;
  height: 240px;
  background-size: cover;
  background-position: center;
  background-color: var(--navy-600);
  /* Default: subtly desaturated + dimmer; hover restores full vibrance + zooms */
  filter: saturate(0.7) brightness(0.85) contrast(1.02);
  transform: scale(1);
  transition: transform .8s cubic-bezier(.2, .7, .2, 1),
              filter .6s var(--ease);
}
.card:hover .card__img {
  filter: saturate(1.05) brightness(1) contrast(1.02);
  transform: scale(1.07);
}
.card__body { padding: 26px; }
.card__meta {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}
.card__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.4rem;
  line-height: 1.2;
  color: var(--bone);
  margin-bottom: 10px;
}
.card__desc {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

/* ===== Case studies ===== */
.case {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 70px;
  align-items: center;
  margin-bottom: 100px;
}
.case:last-child { margin-bottom: 0; }
.case--reverse .case__media { order: 2; }
.case__media {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--navy-600);
  aspect-ratio: 4 / 3;
}
.case__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease);
}
.case__media:hover img { transform: scale(1.05); }

/* Placeholder treatment when a case study has no property photo yet */
.case__media--placeholder {
  background: linear-gradient(135deg, #0a1838 0%, #03081a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  border: 1px solid rgba(201, 169, 97, 0.18);
}
.case__placeholder-leaf {
  width: 38% !important;
  height: auto !important;
  object-fit: contain !important;
  opacity: 0.16;
  transition: transform .6s var(--ease), opacity .4s var(--ease);
}
.case__media--placeholder:hover .case__placeholder-leaf {
  transform: scale(1.05);
  opacity: 0.24;
}
.case__placeholder-label {
  position: absolute;
  bottom: 22px;
  left: 24px;
  color: var(--gold);
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.15rem;
  letter-spacing: 0.01em;
}
.case__meta {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 28px 0;
  padding: 24px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.case__meta li { display: flex; flex-direction: column; gap: 4px; }
.case__meta span {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}
.case__meta strong {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--gold);
  font-style: italic;
}

/* ===== Principals ===== */
.people {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.people--two {
  grid-template-columns: repeat(2, 1fr);
  max-width: 880px;
  margin: 0 auto;
  gap: 60px;
}
.person {
  text-align: center;
}
.person__photo {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  margin: 0 auto 24px;
  background-size: cover;
  background-position: center;
  background-color: var(--navy-600);
  border: 2px solid var(--line);
  transition: border-color .3s var(--ease);
}
.person:hover .person__photo { border-color: var(--gold); }
.person__name {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--bone);
  margin-bottom: 6px;
}
.person__role {
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}
.person__bio {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 18px;
}
.person__link {
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--gold);
  font-weight: 500;
}

/* ===== Contact ===== */
.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.contact__details {
  list-style: none;
  margin-top: 36px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}
.contact__details li {
  display: grid;
  grid-template-columns: 110px 1fr;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.contact__details li:last-child { border-bottom: 0; }
.contact__details span {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}
.contact__details a, .contact__details strong {
  color: var(--bone);
  font-family: var(--serif);
  font-size: 1.15rem;
  line-height: 1.4;
}

/* Highlighted office address */
.contact__details-li--addr {
  position: relative;
  padding-left: 14px !important;
  margin-top: 8px;
  border-bottom: 0 !important;
}
.contact__details-li--addr::before {
  content: '';
  position: absolute;
  left: 0;
  top: 18px;
  bottom: 18px;
  width: 2px;
  background: linear-gradient(to bottom, transparent, var(--gold), transparent);
}
.contact__addr {
  display: inline-flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--gold);
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 1.45rem;
  line-height: 1.35;
}
.contact__addr-text {
  display: inline-block;
}
.contact__pin {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  fill: var(--gold);
  margin-top: 4px;
  filter: drop-shadow(0 2px 6px rgba(201, 169, 97, 0.45));
}

.form { display: flex; flex-direction: column; gap: 18px; }
.form label { display: flex; flex-direction: column; gap: 8px; }
.form span {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}
.form input, .form textarea {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
  color: var(--bone);
  font-family: var(--sans);
  font-size: 0.95rem;
  transition: border-color .25s var(--ease), background .25s var(--ease);
}
.form input:focus, .form textarea:focus {
  outline: 0;
  border-color: var(--gold);
  background: rgba(255, 255, 255, 0.05);
}
.form textarea { resize: vertical; }

/* ===== Footer ===== */
.footer {
  background: var(--navy-900);
  border-top: 1px solid var(--line);
  padding: 50px 0 30px;
}
.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}
.footer__brand p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.9rem;
}
.footer__copy {
  color: var(--muted);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
}

/* ===== Reveal animation ===== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Responsive ===== */

/* Small laptops & landscape tablets */
@media (max-width: 1024px) {
  .carousel__track .card { flex: 0 0 calc((100% - 16px - 26px) / 2); } /* 2 cards visible */
  .nav__logo { height: 88px; }
  .hero__content { padding-top: 130px; }
  .hero__title { font-size: clamp(2.4rem, 5.5vw, 4rem); }
}

/* Tablets / small landscape */
@media (max-width: 960px) {
  .grid-2 { grid-template-columns: 1fr; gap: 30px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .case, .case--reverse .case__media { grid-template-columns: 1fr; gap: 30px; }
  .case--reverse .case__media { order: 0; }
  .case__meta { grid-template-columns: repeat(2, 1fr); }
  .people { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
  .contact { grid-template-columns: 1fr; gap: 50px; }
  .section { padding: 80px 0; }
  .section__head { margin-bottom: 50px; }
}

/* Phones / portrait tablets — mobile nav kicks in */
@media (max-width: 720px) {
  .carousel { margin: 0 -18px; }                          /* full-bleed scroller for swipe */
  .carousel__track { padding: 8px 18px 16px 18px; }
  .carousel__track .card { flex: 0 0 84%; }                /* 1 card + peek of next */
  .carousel__btn { display: none; }                        /* swipe instead */
  .cat { gap: 16px; margin: 40px 0 20px; }
  .cat__title { font-size: 1.3rem; }

  /* Nav: shrink logo + tighter padding so the bar isn't too tall */
  .nav__logo { height: 60px; }
  .nav__inner { padding-top: 6px; padding-bottom: 6px; }
  .nav__links {
    position: fixed;
    top: 76px; left: 0; right: 0;
    background: rgba(6, 14, 34, 0.98);
    backdrop-filter: blur(12px);
    flex-direction: column;
    padding: 30px;
    gap: 24px;
    border-bottom: 1px solid var(--line);
    transform: translateY(-120%);
    transition: transform .35s var(--ease);
  }
  .nav__links.is-open { transform: translateY(0); }
  .nav__toggle { display: flex; }
  .nav__toggle.is-open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  .nav__toggle.is-open span:nth-child(2) { opacity: 0; }
  .nav__toggle.is-open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

  /* Hero: tighter padding + smaller fonts to fit small screens */
  .hero { min-height: 90vh; }
  .hero__content { padding-top: 100px; padding-bottom: 60px; }
  .hero__title { font-size: clamp(2rem, 7vw, 2.8rem); }
  .hero__sub { font-size: 0.98rem; }
  .hero__actions { flex-direction: column; gap: 12px; align-items: stretch; }
  .hero__actions .btn { text-align: center; }

  /* Hero animation on phones — viewBox slice-crops sides; nothing extra needed,
     skyline center stays visible. Hide left/right edge buildings via CSS clip if needed. */

  /* Section heads: less breathing room */
  .h2 { font-size: clamp(1.7rem, 5vw, 2.2rem); }
  .section { padding: 64px 0; }

  /* Cards: tighter image height */
  .card__img { height: 220px; }
  .card__body { padding: 22px; }

  /* Person photo a bit smaller */
  .person__photo { width: 150px; height: 150px; }
}

/* Phones */
@media (max-width: 480px) {
  .container { padding: 0 18px; }
  .stats { grid-template-columns: 1fr; gap: 16px; }
  .stat { padding: 28px 16px; }
  .case__meta { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .case__meta strong { font-size: 1.2rem; }
  .contact__details li { grid-template-columns: 1fr; gap: 4px; padding: 12px 0; }
  .form input, .form textarea { font-size: 16px; /* prevents iOS zoom on focus */ }
  .footer__inner { flex-direction: column; align-items: flex-start; gap: 12px; text-align: left; }
  .nav__logo { height: 52px; }
  .hero__content { padding-top: 88px; }
  .section { padding: 56px 0; }
  .case { margin-bottom: 56px; }
  .card__img { height: 200px; }
  .h3 { font-size: 1.4rem; }
  .person__photo { width: 130px; height: 130px; }
}

/* Very small phones (≤360px) — extra-compact */
@media (max-width: 360px) {
  .hero__title { font-size: 1.85rem; }
  .nav__logo { height: 46px; }
}
