/* ============================================================
   Nordre Rede — Landing Page Styles
   Northern Nest · A modern Scandinavian residential community
   ============================================================ */

/* ---------- Self-hosted Sansation font (headings only) ---------- */
@font-face {
  font-family: 'Sansation';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../assets/fonts/Sansation-Regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Sansation';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../assets/fonts/Sansation-Bold.woff2') format('woff2');
}

/* ---------- Design Tokens ---------- */
:root {
  /* Brand palette */
  --graphite:      #2E2E33;
  --dark-metal:    #3A3A3F;
  --ice-blue:      #A7C7E7;
  --ice-blue-deep: #6FA3D6;
  --wood:          #C8A57A;
  --wood-deep:     #A8845A;
  --snow:          #FFFFFF;

  /* Surfaces (dark base theme) */
  --bg-dark:       #1C1C20;
  --bg-dark-2:     #232328;
  --bg-dark-3:     #2A2A30;
  --bg-light:      #F6F4F0;
  --bg-light-2:    #ECE8E1;

  /* Text */
  --text-on-dark:  #F2F2F5;
  --text-mute-d:   rgba(242, 242, 245, 0.62);
  --text-on-light: #232328;
  --text-mute-l:   #6B6B73;

  /* Lines */
  --line-dark:     rgba(255, 255, 255, 0.10);
  --line-light:    rgba(35, 35, 40, 0.10);

  /* Gradient brand */
  --grad-brand:    linear-gradient(115deg, #A7C7E7 0%, #C8A57A 100%);
  --grad-brand-soft: linear-gradient(115deg, rgba(167,199,231,0.16), rgba(200,165,122,0.16));
  --grad-dark:     linear-gradient(160deg, #232328 0%, #1C1C20 100%);

  /* Shadows */
  --shadow-card:   0 18px 50px -22px rgba(0,0,0,0.55);
  --shadow-card-l: 0 20px 48px -24px rgba(35,35,40,0.30);
  --shadow-soft:   0 8px 30px -14px rgba(0,0,0,0.45);
  --shadow-pop:    0 26px 70px -28px rgba(0,0,0,0.65);

  /* Radii */
  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 26px;
  --r-xl: 36px;
  --r-pill: 999px;

  /* Layout */
  --maxw: 1200px;
  --gutter: clamp(20px, 5vw, 56px);

  /* Type */
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
  --font-display: 'Sansation', 'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  background: var(--bg-dark);
  color: var(--text-on-dark);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
/* All headings use the display font (Sansation); body copy keeps Inter */
h1, h2, h3, h4, h5 { font-family: var(--font-display); }

::selection { background: var(--ice-blue); color: var(--graphite); }

/* ---------- Layout helpers ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-top: clamp(48px, 6.5vw, 92px); padding-bottom: clamp(72px, 10vw, 140px); position: relative; }
/* sections that have a brush divider need extra top room so content clears it,
   AND must stack above the previous section so the divider (top:-90px, which
   overflows upward into the prior block) isn't painted over by its background. */
.section:has(> .divider) { padding-top: clamp(78px, 9vw, 130px); z-index: 2; }
.section--dark  { background: var(--bg-dark); color: var(--text-on-dark); }
.section--dark-grad { background: var(--grad-dark); color: var(--text-on-dark); }
.section--light { background: var(--bg-light); color: var(--text-on-light); }
.section--light-2 { background: var(--bg-light-2); color: var(--text-on-light); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 600; letter-spacing: 3px; text-transform: uppercase;
  margin-bottom: 18px;
}
.section--dark .eyebrow { color: var(--ice-blue); }
.section--light .eyebrow, .section--light-2 .eyebrow { color: var(--wood-deep); }
.eyebrow::before { content: ""; width: 26px; height: 1px; background: currentColor; opacity: .7; }

.h2 {
  font-family: var(--font-display);
  font-size: clamp(39px, 6vw, 68px);
  line-height: 1.08; font-weight: 800; letter-spacing: -0.02em;
}
.h2 .grad {
  background: var(--grad-brand);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.section--light .h2, .section--light-2 .h2 { color: var(--text-on-light); }
.lead { font-size: clamp(17px, 2vw, 20px); color: var(--text-mute-d); max-width: 60ch; }
.section--light .lead, .section--light-2 .lead { color: var(--text-mute-l); }

/* ---------- Buttons ---------- */
.btn {
  --bd: 1.5px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 30px; border-radius: var(--r-pill);
  font-size: 15.5px; font-weight: 600; letter-spacing: .2px;
  transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s, background .3s, color .3s;
  position: relative; white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary {
  background: var(--grad-brand); color: var(--graphite);
  box-shadow: 0 14px 34px -14px rgba(167,199,231,.6);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 22px 44px -16px rgba(167,199,231,.7); }

/* Gradient outline button */
.btn-ghost {
  background:
    linear-gradient(var(--bg-dark), var(--bg-dark)) padding-box,
    var(--grad-brand) border-box;
  border: var(--bd) solid transparent;
  color: var(--text-on-dark);
}
.section--light .btn-ghost,
.section--light-2 .btn-ghost,
.section.cta .btn-ghost {
  background:
    linear-gradient(var(--bg-light), var(--bg-light)) padding-box,
    var(--grad-brand) border-box;
  border: var(--bd) solid transparent;
  color: var(--text-on-light);
}
.btn-ghost:hover { transform: translateY(-3px); box-shadow: var(--shadow-soft); }

.btn-light {
  background: var(--snow); color: var(--graphite);
}
.btn-light:hover { transform: translateY(-3px); box-shadow: var(--shadow-soft); }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px var(--gutter);
  transition: background .4s, padding .4s, box-shadow .4s, border-color .4s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(28,28,32,.82);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  padding-block: 13px;
  border-bottom: 1px solid var(--line-dark);
  box-shadow: 0 10px 30px -20px rgba(0,0,0,.8);
}
.nav__logo { display: flex; align-items: center; gap: 12px; }
.nav__logo svg { height: 38px; width: auto; }
.nav__links { display: flex; align-items: center; gap: 26px; }
.nav__links a { font-size: 14px; font-weight: 600; color: #E8C896; text-transform: uppercase; letter-spacing: .6px; transition: color .25s; }
.nav__links a:hover { color: #F5DDB0; }
.nav__cta { display: flex; align-items: center; gap: 14px; }
.nav__cta .btn { padding: 11px 22px; font-size: 14px; }
.nav__burger { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.nav__burger span { width: 24px; height: 2px; background: var(--text-on-dark); border-radius: 2px; transition: .3s; }

@media (max-width: 1080px) {
  .nav__links, .nav__cta .btn-ghost { display: none; }
  .nav__burger { display: flex; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: center;
  padding-top: 120px; overflow: hidden;
  background: var(--bg-dark);
}
/* vivid photo layer — bright, full-saturation, anchored to the right.
   The slow Ken-Burns zoom lives on the ::before so the JS parallax transform on
   the container itself doesn't clobber the animation. */
.hero__img {
  position: absolute; inset: 0; z-index: 0; overflow: hidden;
  will-change: transform;
}
.hero__img::before {
  content: ""; position: absolute; inset: -8%;
  background: url('../assets/img/hero-family-hires.jpg') right center / cover no-repeat;
  animation: heroZoom 20s ease-in-out infinite alternate;
  transform-origin: 70% 50%;
}
@keyframes heroZoom { from { transform: scale(1); } to { transform: scale(1.12); } }
@media (prefers-reduced-motion: reduce) { .hero__img::before { animation: none; } }
/* readability scrim: dark only on the LEFT where text sits, fading to clear on the right,
   plus a bottom fade for the scroll cue. This keeps the RIGHT side of the photo vivid. */
.hero__scrim {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(90deg, var(--bg-dark) 0%, rgba(28,28,32,.94) 22%, rgba(28,28,32,.55) 46%, rgba(28,28,32,.12) 70%, transparent 92%),
    linear-gradient(180deg, rgba(28,28,32,.55) 0%, transparent 28%, transparent 72%, rgba(28,28,32,.7) 100%);
}
/* brand-tinted glow accents for a richer, warmer vibe */
.hero__glow {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(40% 50% at 16% 60%, rgba(167,199,231,.22), transparent 70%),
    radial-gradient(38% 45% at 30% 90%, rgba(200,165,122,.18), transparent 70%);
}
.hero__inner { position: relative; z-index: 2; max-width: 950px; padding-right: 180px; }
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 13px; font-weight: 600; letter-spacing: 3.5px; text-transform: uppercase;
  color: var(--ice-blue); margin-bottom: 26px;
  padding: 9px 18px; border: 1px solid rgba(167,199,231,.3); border-radius: var(--r-pill);
  background: rgba(167,199,231,.08);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.hero__eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--grad-brand); box-shadow: 0 0 12px rgba(167,199,231,.6); }
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(60px, 10.9vw, 101px); line-height: .96; font-weight: 900; letter-spacing: -0.03em;
  margin-bottom: 26px;
  text-shadow: 0 6px 40px rgba(0,0,0,.45);
}
.hero h1 .grad {
  background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__sub {
  font-size: clamp(17px, 2.1vw, 21px); color: rgba(242,242,245,.82); max-width: 50ch; margin-bottom: 40px;
  text-shadow: 0 2px 20px rgba(0,0,0,.5);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 56px; }
/* On smaller screens, text spans the full width over the photo, so use a stronger
   vertical scrim to keep it readable while still letting colour show through. */
@media (max-width: 860px) {
  .hero__img { background-position: center center; }
  .hero__scrim {
    background:
      linear-gradient(180deg, rgba(28,28,32,.85) 0%, rgba(28,28,32,.62) 40%, rgba(28,28,32,.78) 100%);
  }
  .hero__inner { max-width: 100%; padding-right: 0; }
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(4, auto);
  column-gap: clamp(28px, 5vw, 52px);
  row-gap: 22px;
  justify-content: start;
}
@media (max-width: 640px) {
  .hero__stats { grid-template-columns: repeat(2, auto); }
}
.hero__stat .num {
  font-size: clamp(30px, 4vw, 42px); font-weight: 800; letter-spacing: -.02em;
  background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent;
  line-height: 1;
}
.hero__stat .lbl { font-size: 13px; color: var(--text-mute-d); letter-spacing: 1px; text-transform: uppercase; margin-top: 8px; }

/* ---------- Intro / About (dark) ---------- */
.about__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 5vw, 72px); align-items: center; }
.about__media { position: relative; }
.about__media img { border-radius: var(--r-lg); box-shadow: var(--shadow-pop); width: 100%; height: 100%; object-fit: cover; }
.about__media .badge {
  position: absolute; left: -18px; bottom: 28px;
  background: var(--bg-light); color: var(--text-on-light);
  border-radius: var(--r-md); padding: 18px 22px; box-shadow: var(--shadow-card);
  display: flex; gap: 14px; align-items: center;
}
.about__media .badge .b-num { font-size: 28px; font-weight: 800; color: var(--wood-deep); line-height: 1; }
.about__media .badge .b-lbl { font-size: 12.5px; color: var(--text-mute-l); max-width: 14ch; }
.about__copy p { color: var(--text-mute-d); margin-top: 22px; }
.about__copy .checklist { display: grid; gap: 14px; margin-top: 30px; }
.about__copy .checklist li { display: flex; gap: 14px; align-items: flex-start; color: var(--text-on-dark); }
.about__copy .checklist .ic { flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--grad-brand-soft); display: grid; place-items: center; color: var(--ice-blue); }
.about__copy .checklist svg { width: 13px; height: 13px; }

@media (max-width: 860px) {
  .about__grid { grid-template-columns: 1fr; }
  .about__media .badge { left: 0; }
}

/* ---------- Master Plan (light) ---------- */
.plan { overflow-x: clip; }
.plan__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; flex-wrap: wrap; margin-bottom: 50px; }
.plan__head .lead { margin-top: 18px; }
.plan__switch { display: flex; gap: 8px; padding: 6px; background: rgba(35,35,40,.06); border-radius: var(--r-pill); }
.plan__switch button {
  padding: 10px 20px; border-radius: var(--r-pill); font-size: 14px; font-weight: 600;
  color: var(--text-mute-l); transition: .3s;
}
.plan__switch button.active { background: var(--snow); color: var(--graphite); box-shadow: var(--shadow-soft); }

.plan__stage {
  position: relative; border-radius: var(--r-xl); overflow: hidden;
  box-shadow: var(--shadow-card-l); background: var(--snow);
  aspect-ratio: 16 / 11;
}
.plan__stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .6s ease; }
.plan__stage img.active { opacity: 1; }
.plan__legend {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 30px;
}
.plan__legend .item {
  background: var(--snow); border-radius: var(--r-md); padding: 20px; box-shadow: var(--shadow-card-l);
  display: flex; gap: 14px; align-items: flex-start;
}
.plan__legend .swatch { width: 14px; height: 14px; border-radius: 4px; flex: none; margin-top: 4px; }
.plan__legend .l-ttl { font-weight: 700; color: var(--text-on-light); font-size: 15px; }
.plan__legend .l-desc { font-size: 13.5px; color: var(--text-mute-l); margin-top: 4px; }
@media (max-width: 760px) { .plan__legend { grid-template-columns: 1fr 1fr; } }

/* ---------- House Types (dark) ---------- */
.houses__head { text-align: center; max-width: 700px; margin: 0 auto 56px; }
.houses__head .lead { margin: 18px auto 0; }
.houses__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 26px; }
.house-card {
  background: var(--bg-dark-2); border: 1px solid var(--line-dark); border-radius: var(--r-lg);
  overflow: hidden; transition: transform .4s cubic-bezier(.2,.8,.2,1), box-shadow .4s, border-color .4s;
  position: relative;
}
.house-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-pop); border-color: rgba(167,199,231,.35); }
.house-card__media { aspect-ratio: 4/3; overflow: hidden; position: relative; }
.house-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.house-card:hover .house-card__media img { transform: scale(1.06); }
.house-card__tag {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  background: rgba(28,28,32,.7); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  color: var(--ice-blue); font-size: 12px; font-weight: 700; letter-spacing: 1px;
  padding: 7px 14px; border-radius: var(--r-pill); border: 1px solid var(--line-dark);
}
.house-card__badge {
  position: absolute; top: 14px; right: 14px; z-index: 2;
  background: var(--grad-brand); color: var(--graphite);
  font-size: 11px; font-weight: 800; letter-spacing: .5px;
  padding: 6px 12px; border-radius: var(--r-pill);
  box-shadow: 0 6px 16px -8px rgba(167,199,231,.7);
}
.house-card__body { padding: 26px; }
.house-card__area { font-size: 32px; font-weight: 800; letter-spacing: -.02em; }
.house-card__area .unit { font-size: 18px; color: var(--text-mute-d); font-weight: 600; }
.house-card__price { color: var(--wood); font-size: 14.5px; font-weight: 600; margin-top: 6px; }
.house-card__specs { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line-dark); }
.house-card__specs span { font-size: 13.5px; color: var(--text-mute-d); display: inline-flex; gap: 7px; align-items: center; }
.house-card__specs .ic { color: var(--ice-blue); }

/* ---------- Features / Infrastructure (light) ---------- */
.feat__head { text-align: center; max-width: 680px; margin: 0 auto 56px; }
.feat__head .lead { margin: 18px auto 0; }
.feat__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 26px; }
.feat__grid--6 { grid-template-columns: repeat(3, 1fr); }
.feat-card {
  border-radius: var(--r-lg); overflow: hidden; background: var(--snow);
  box-shadow: var(--shadow-card-l); display: flex; flex-direction: column;
  transition: transform .4s, box-shadow .4s;
}
.feat-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-pop); }
.feat-card__media { aspect-ratio: 16/11; overflow: hidden; }
.feat-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.feat-card:hover .feat-card__media img { transform: scale(1.05); }
.feat-card__body { padding: 26px; flex: 1; }
.feat-card__body h3 { font-size: 27px; font-weight: 700; margin-bottom: 10px; }
.feat-card__body p { color: var(--text-mute-l); font-size: 15px; }
.feat-card--tall .feat-card__media { aspect-ratio: 3/4; }
@media (max-width: 880px) { .feat__grid, .feat__grid--6 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .feat__grid, .feat__grid--6 { grid-template-columns: 1fr; } }

/* ---------- Gallery (dark) ---------- */
.gal__head { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 20px; margin-bottom: 46px; }
/* Deterministic 4×4 tiling — no empty cells. 'ga' is a 2×2 hero tile,
   b/c top-right, d/e mid-right, f/g/h third row, i/j/k/l bottom row. */
.gal__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(4, minmax(0, 1fr));
  grid-template-areas:
    "ga ga gb gc"
    "ga ga gd ge"
    "gf gg gh gh"
    "gi gj gk gl";
  gap: 16px;
  aspect-ratio: 4 / 3;
}
.gal__item.ga { grid-area: ga; }
.gal__item.gb { grid-area: gb; }
.gal__item.gc { grid-area: gc; }
.gal__item.gd { grid-area: gd; }
.gal__item.ge { grid-area: ge; }
.gal__item.gf { grid-area: gf; }
.gal__item.gg { grid-area: gg; }
.gal__item.gh { grid-area: gh; }
.gal__item.gi { grid-area: gi; }
.gal__item.gj { grid-area: gj; }
.gal__item.gk { grid-area: gk; }
.gal__item.gl { grid-area: gl; }
.gal__item { position: relative; overflow: hidden; border-radius: var(--r-md); cursor: pointer; }
.gal__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.gal__item::after { content:""; position:absolute; inset:0; background:linear-gradient(180deg,transparent 50%, rgba(0,0,0,.5)); opacity:0; transition:.4s; }
.gal__item:hover img { transform: scale(1.08); }
.gal__item:hover::after { opacity: 1; }
.gal__item .cap { position:absolute; left:16px; bottom:14px; z-index:2; color:#fff; font-size:13.5px; font-weight:600; opacity:0; transform: translateY(8px); transition:.4s; }
.gal__item:hover .cap { opacity:1; transform: translateY(0); }

@media (max-width: 820px) {
  .gal__grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(6, minmax(0, 1fr));
    grid-template-areas:
      "ga ga"
      "gb gc"
      "gd ge"
      "gf gg"
      "gh gh"
      "gi gj";
    aspect-ratio: 1 / 1.2;
  }
  .gal__item.gk, .gal__item.gl { display: none; }
}
@media (max-width: 520px) {
  .gal__grid {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(10, 200px);
    grid-template-areas:
      "ga" "gb" "gc" "gd" "ge" "gf" "gg" "gh" "gi" "gj";
    aspect-ratio: auto;
  }
}

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 200; background: rgba(12,12,14,.92);
  display: none; align-items: center; justify-content: center; padding: 6vh 6vw;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: var(--r-md); box-shadow: var(--shadow-pop); }
.lightbox__close { position: absolute; top: 24px; right: 28px; color: #fff; font-size: 30px; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(255,255,255,.2); transition: .3s; }
.lightbox__close:hover { background: rgba(255,255,255,.1); }
.lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); color:#fff; font-size: 36px; width: 56px; height: 56px; display:grid; place-items:center; border-radius:50%; border:1px solid rgba(255,255,255,.18); transition:.3s; }
.lightbox__nav:hover { background: rgba(255,255,255,.1); }
.lightbox__nav.prev { left: 24px; } .lightbox__nav.next { right: 24px; }

/* ---------- Investment (dark gradient) ---------- */
.inv { background: var(--grad-dark); }
.inv__copy .h2 { font-size: clamp(27px, 4.2vw, 48px); }
.inv__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px,5vw,72px); align-items: center; }
.inv__media { position: relative; border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow-pop); }
.inv__media img { width: 100%; height: 100%; object-fit: cover; }
.inv__media .ribbon {
  position: absolute; top: 24px; left: 24px;
  background: var(--grad-brand); color: var(--graphite);
  font-weight: 700; font-size: 13px; letter-spacing: .5px;
  padding: 9px 18px; border-radius: var(--r-pill);
}
.inv__metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 34px; }
.inv__metric { background: rgba(255,255,255,.04); border: 1px solid var(--line-dark); border-radius: var(--r-md); padding: 22px; }
.inv__metric .v { font-size: 30px; font-weight: 800; background: var(--grad-brand); -webkit-background-clip:text; background-clip:text; color:transparent; line-height:1; }
.inv__metric .l { font-size: 13.5px; color: var(--text-mute-d); margin-top: 8px; }
@media (max-width: 860px) { .inv__grid { grid-template-columns: 1fr; } }

/* ---------- Location (light) ---------- */
.loc__grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(36px,5vw,64px); align-items: stretch; }
.loc__media {
  border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow-pop);
  min-height: 480px; position: relative;
}
.loc__media img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.loc__copy { display: flex; flex-direction: column; justify-content: center; }
.loc__intro { font-size: clamp(15px, 1.6vw, 17px); margin-top: 22px; margin-bottom: 0; }
.loc__facts { display: grid; gap: 0; margin-top: 28px; }
.loc__facts li { display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line-light); }
.loc__facts li:last-child { border-bottom: none; }
.loc__facts .ic { flex:none; width: 38px; height: 38px; border-radius: 10px; background: var(--grad-brand-soft); display:grid; place-items:center; color: var(--wood-deep); }
.loc__facts .ic svg { width: 18px; height: 18px; }
.loc__facts .t { font-weight: 700; color: var(--text-on-light); }
.loc__facts .d { font-size: 14px; color: var(--text-mute-l); }
@media (max-width: 860px) {
  .loc__grid { grid-template-columns: 1fr; }
  .loc__media { min-height: 360px; aspect-ratio: 4/3; }
  .loc__media img { position: static; }
}

/* ---------- CTA / Investor Form (dark) ---------- */
.cta { position: relative; overflow-x: clip; }
.cta__bg { position:absolute; inset:0; z-index:0;
  background:
   radial-gradient(50% 60% at 85% 20%, rgba(167,199,231,.18), transparent 70%),
   radial-gradient(45% 55% at 10% 90%, rgba(200,165,122,.16), transparent 70%),
   var(--bg-dark);
}
.cta__inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px,6vw,80px); align-items: center; }
.cta__copy .lead { margin-top: 20px; }
.cta__points { display: grid; gap: 14px; margin-top: 30px; }
.cta__points li { display:flex; gap:14px; align-items:center; color: var(--text-on-dark); font-size: 15.5px; }
.cta__points .ic { width:26px; height:26px; border-radius:50%; background:var(--grad-brand); display:grid; place-items:center; color: var(--graphite); flex:none; }
.cta__points .ic svg { width:14px; height:14px; }

.form-card {
  background: var(--bg-dark-2); border: 1px solid var(--line-dark); border-radius: var(--r-xl);
  padding: clamp(28px, 4vw, 44px); box-shadow: var(--shadow-card);
}
.form-card h3 { font-size: 31px; font-weight: 700; margin-bottom: 6px; }
.form-card .sub { color: var(--text-mute-d); font-size: 14.5px; margin-bottom: 26px; }
.field { margin-bottom: 18px; }
.field label { display:block; font-size: 13px; font-weight: 600; color: var(--text-mute-d); margin-bottom: 8px; letter-spacing:.3px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 14px 16px; border-radius: var(--r-sm);
  background: rgba(255,255,255,.04); border: 1px solid var(--line-dark); color: var(--text-on-dark);
  font-family: inherit; font-size: 15px; transition: border-color .25s, background .25s;
}
/* Safari renders native <select> with its own control height, so it appears
   shorter than sibling inputs. Force the box model and remove native chrome. */
.field select {
  -webkit-appearance: none;
  appearance: none;
  height: 51px;            /* match input rendered height (14px padding × 2 + ~23px line) */
  line-height: 23px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23A7C7E7' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}
.field input::placeholder, .field textarea::placeholder { color: rgba(242,242,245,.4); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--ice-blue); background: rgba(255,255,255,.07);
}
.field textarea { resize: vertical; min-height: 90px; }
.field.row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-card .btn { width: 100%; margin-top: 8px; }
.form-card .note { font-size: 12.5px; color: var(--text-mute-d); text-align:center; margin-top: 16px; }
.form-success {
  display:none; text-align:center; padding: 30px 10px;
}
.form-success.show { display:block; }
.form-success .check {
  width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 20px;
  background: var(--grad-brand); display:grid; place-items:center; color: var(--graphite);
}
.form-success .check svg { width: 30px; height: 30px; }
@media (max-width: 860px) { .cta__inner { grid-template-columns: 1fr; } .field.row { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.footer { background: #15151A; color: var(--text-mute-d); padding: 70px 0 36px; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 50px; border-bottom: 1px solid var(--line-dark); }
.footer__brand svg { height: 40px; margin-bottom: 18px; }
.footer__brand p { font-size: 14px; max-width: 34ch; }
.footer__col h4 { color: #eecda4; font-size: 18px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 18px; }
.footer__col a { display:block; font-size: 14.5px; padding: 6px 0; transition: color .25s; }
.footer__col a:hover { color: var(--ice-blue); }
.footer__bottom { display:flex; justify-content: space-between; align-items:center; flex-wrap:wrap; gap:16px; padding-top: 30px; font-size: 13.5px; }
.footer__copy { color: #eecda4; }
.footer__bottom .socials { display:flex; gap: 12px; }
.footer__bottom .socials a { width:38px; height:38px; border-radius:50%; border:1px solid var(--line-dark); display:grid; place-items:center; transition:.3s; }
.footer__bottom .socials a:hover { background: var(--grad-brand); color: var(--graphite); border-color: transparent; }
.footer__bottom .socials svg { width:17px; height:17px; }
@media (max-width: 820px) { .footer__grid { grid-template-columns: 1fr 1fr; } }

/* ---------- Reveal animations ---------- */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .8s cubic-bezier(.2,.8,.2,1), transform .8s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }
.reveal.d4 { transition-delay: .32s; }
.reveal.d5 { transition-delay: .40s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  * { animation: none !important; }
}

/* ---------- Mobile menu ---------- */
.mobile-menu {
  position: fixed; inset: 0; z-index: 150; background: rgba(21,21,26,.98);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 8px;
  opacity: 0; pointer-events: none; transition: opacity .4s;
}
.mobile-menu.open { opacity: 1; pointer-events: auto; }
.mobile-menu a { font-size: 26px; font-weight: 700; color: var(--text-on-dark); padding: 12px; text-transform: uppercase; letter-spacing: .6px; }
.mobile-menu a:hover { color: var(--ice-blue); }
.mobile-menu .close { position: absolute; top: 26px; right: 30px; font-size: 32px; color: var(--text-on-dark); }

/* ---------- Brush dividers (artistic section transitions) ---------- */
/* A divider sits at the TOP of a section. Its layered torn paths visually
   "cut" into the previous block with a diagonal brush edge. Real coordinates
   are baked into the SVG paths (no filters) so rendering is reliable. */
.divider {
  position: absolute;
  top: -90px;           /* push brush strokes up into the previous block */
  left: 0; width: 100%;
  height: clamp(70px, 9vw, 130px);
  z-index: 5;
  pointer-events: none;
  display: block;
  line-height: 0;
}
.divider svg { width: 100%; height: 100%; display: block; overflow: visible; }

/* Layer classes — colors keyed to the section that OWNS the divider. */
/* Layer 1: soft faded halo (slightly lighter/darker tone), low opacity */
/* Layer 2: main torn mass — the dominant color of the owning section */
/* Layer 3 & 4: colored accent brush strokes (ice-blue + wood) along the edge */

/* On a LIGHT section (light block following a dark one): light cuts UP into dark */
.section--light   .dv-mass { fill: var(--bg-light); }
.section--light   .dv-soft { fill: var(--bg-light-2); }
.section--light-2 .dv-mass { fill: var(--bg-light-2); }
.section--light-2 .dv-soft { fill: var(--bg-light); }
/* On a DARK section (dark block following a light one): dark cuts DOWN into light.
   For gradient (dark-grad) sections the divider sits at the TOP where the gradient
   is lighter, so it must match the gradient's START colour to blend seamlessly. */
.section--dark .dv-mass       { fill: var(--bg-dark); }
.section--dark-grad .dv-mass  { fill: var(--bg-dark-2); }   /* = gradient start #232328 */
.section--dark .dv-soft       { fill: var(--bg-dark-2); }
.section--dark-grad .dv-soft  { fill: var(--bg-dark-3); }

/* Accent strokes — same on both themes */
.dv-edge-blue { fill: none; stroke: #A7C7E7; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; opacity: .55; }
.dv-edge-wood { fill: none; stroke: #C8A57A; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; opacity: .5; }
.dv-edge-mute { fill: none; stroke: rgba(255,255,255,.18); stroke-width: 1; stroke-linecap: round; opacity: .7; }

/* Subtle parallax-free fade-in for dividers */
.divider { opacity: 0; animation: dvIn 1.1s cubic-bezier(.2,.8,.2,1) forwards; animation-delay: .15s; }
@keyframes dvIn { to { opacity: 1; } }
@media (prefers-reduced-motion: reduce){ .divider { animation: none; opacity: 1; } }

/* ---------- Energy & Engineering (dark) ---------- */
.energy__head { text-align: center; max-width: 680px; margin: 0 auto 56px; }
.energy__head .lead { margin: 18px auto 0; }
.energy__grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-bottom: 40px;
}
.energy-card {
  background: var(--bg-dark-2); border: 1px solid var(--line-dark); border-radius: var(--r-lg);
  padding: 30px 26px; transition: transform .4s cubic-bezier(.2,.8,.2,1), box-shadow .4s, border-color .4s;
}
.energy-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-pop); border-color: rgba(167,199,231,.35); }
.energy-card__icon {
  width: 50px; height: 50px; border-radius: var(--r-md);
  background: var(--grad-brand-soft); display: grid; place-items: center;
  color: var(--ice-blue); margin-bottom: 20px;
}
.energy-card__icon svg { width: 24px; height: 24px; }
.energy-card h3 { font-size: 23px; font-weight: 700; margin-bottom: 10px; }
.energy-card p { color: var(--text-mute-d); font-size: 14.5px; line-height: 1.55; }
.energy__media {
  border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow-pop);
  aspect-ratio: 21/9;
}
.energy__media img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 980px) { .energy__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .energy__grid { grid-template-columns: 1fr; } }

/* ---------- Amenity & capital chips ---------- */
.amenity-chips {
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: center;
  margin-top: 44px; padding-top: 36px; border-top: 1px solid var(--line-light);
}
.chip {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--snow); color: var(--text-on-light);
  border: 1px solid var(--line-light); border-radius: var(--r-pill);
  padding: 10px 18px; font-size: 14px; font-weight: 600;
  box-shadow: var(--shadow-card-l);
}
.chip__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--grad-brand); flex: none; }

/* Investment-side chips (on dark) */
.inv__capital { margin-top: 26px; }
.inv__capital-lbl {
  display: block; font-size: 13px; font-weight: 600; letter-spacing: 1px;
  text-transform: uppercase; color: var(--text-mute-d); margin-bottom: 14px;
}
.capital-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip--inv {
  background: rgba(255,255,255,.05); color: var(--text-on-dark);
  border: 1px solid var(--line-dark); box-shadow: none;
  padding: 9px 16px; font-size: 13.5px;
}

/* ---------- Team & Leadership (light) ---------- */
.team__head { text-align: center; max-width: 680px; margin: 0 auto 56px; }
.team__head .lead { margin: 18px auto 0; }
.team__grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(28px, 4vw, 48px); align-items: stretch; }
.team__principal {
  background: var(--snow); border-radius: var(--r-xl); overflow: hidden;
  box-shadow: var(--shadow-card-l); display: grid; grid-template-columns: 0.85fr 1.15fr;
  transition: transform .4s, box-shadow .4s;
}
.team__principal:hover { transform: translateY(-4px); box-shadow: var(--shadow-pop); }
.team__photo { overflow: hidden; }
.team__photo img { width: 100%; height: 100%; object-fit: cover; min-height: 320px; }
.team__principal-body { padding: clamp(24px, 3vw, 38px); display: flex; flex-direction: column; justify-content: center; }
.team__role {
  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--wood-deep); margin-bottom: 10px;
}
.team__principal-body h3 { font-size: clamp(31px, 3.9vw, 42px); font-weight: 800; letter-spacing: -.01em; margin-bottom: 14px; }
.team__principal-body p { color: var(--text-mute-l); font-size: 14.5px; line-height: 1.6; }
.team__creds { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; margin-top: 22px; }
.team__creds .cred {
  display: flex; align-items: center; gap: 9px;
  font-size: 13.5px; font-weight: 600; color: var(--text-on-light);
}
.cred__ic {
  flex: none; width: 20px; height: 20px; border-radius: 50%;
  background: var(--grad-brand); display: grid; place-items: center; color: var(--graphite);
}
.cred__ic svg { width: 11px; height: 11px; }

.team__roles {
  background: var(--grad-brand-soft); border: 1px solid var(--line-light);
  border-radius: var(--r-xl); padding: clamp(28px, 3vw, 40px);
  display: flex; flex-direction: column; justify-content: center;
}
.team__roles-lbl {
  display: block; font-size: 12px; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--wood-deep); margin-bottom: 22px;
}
.role-grid { display: grid; gap: 14px; }
.role-chip {
  display: flex; align-items: center; gap: 12px;
  background: var(--snow); border-radius: var(--r-md);
  padding: 14px 18px; font-size: 14.5px; font-weight: 600; color: var(--text-on-light);
  box-shadow: var(--shadow-card-l); transition: transform .3s;
}
.role-chip:hover { transform: translateX(4px); }
.role-chip__ic { color: var(--ice-blue-deep); font-size: 10px; }
@media (max-width: 920px) { .team__grid { grid-template-columns: 1fr; } }
@media (max-width: 620px) {
  .team__principal { grid-template-columns: 1fr; }
  .team__photo img { min-height: 240px; }
  .team__creds { grid-template-columns: 1fr; }
}

/* ---------- Decorative ---------- */
.grain { position:absolute; inset:0; z-index:1; pointer-events:none; opacity:.04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
