/* =========================================================
   FYNS — styles
   Design reference width: 1438px (all px values measured from it)
   ========================================================= */
/* Manrope — self-hosted variable font (SIL OFL 1.1, see assets/fonts/OFL.txt) */
@font-face {
  font-family: "Manrope"; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url("/assets/fonts/manrope-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Manrope"; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url("/assets/fonts/manrope-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #ffffff;
  --ink: #222222;
  --ink-2: #333333;
  --muted: #6f6f6f;      /* 4.9:1 on the page background */
  --muted-large: #8a8a8a; /* large text only (3:1) */
  --chip: #f1f1f1;
  --line: #e6e6e6;
  --dark: #161616;
  --dark-card: #282828;
  --footer: #ededed;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --pad: 36px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Manrope", system-ui, sans-serif;
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
body.is-loading { overflow: hidden; }
img { display: block; max-width: 100%; }
picture { display: contents; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, h5, p, ul { margin: 0; padding: 0; }
ul { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }

/* ---------- shared ---------- */
.tag {
  display: inline-flex; align-items: center; gap: 14px;
  height: 36px; padding: 0 22px;
  background: var(--chip); color: var(--ink-2);
  font-size: 15px; font-weight: 700; letter-spacing: -0.01em; text-transform: uppercase;
}
.tag i { font-style: italic; font-weight: 700; color: #111; }
.tag-dark { background: #222; color: #f2f2f2; }
.tag-dark i { color: #fff; }

.h-xl {
  font-size: clamp(44px, 5.85vw, 84px);
  line-height: .95; font-weight: 500; letter-spacing: -0.055em;
  text-transform: uppercase; text-align: center; color: var(--ink);
}

.btn {
  display: inline-flex; align-items: center; justify-content: space-between;
  height: 36px; padding: 0 14px; border-radius: 5px;
  font-size: 15px; font-weight: 700; letter-spacing: -0.02em;
  overflow: hidden; position: relative;
  transition: transform .5s var(--ease);
}
.btn-dark { background: #222; color: #fff; }
.btn-light { background: #fff; color: #111; }
.btn-label { display: grid; height: 1.3em; overflow: hidden; line-height: 1.3; }
.btn-label span { grid-area: 1 / 1; transition: transform .55s var(--ease); }
.btn-label span + span { transform: translateY(110%); }
.btn:hover .btn-label span:first-child { transform: translateY(-110%); }
.btn:hover .btn-label span + span { transform: translateY(0); }
.btn-plus { transition: transform .55s var(--ease); flex: none; }
.btn:hover .btn-plus { transform: rotate(90deg); }

/* generic scroll reveal */
[data-reveal] {
  opacity: 0; transform: translateY(28px); filter: blur(8px);
  transition: opacity 1s var(--ease), transform 1.1s var(--ease), filter 1s var(--ease);
}
[data-reveal].in { opacity: 1; transform: none; filter: blur(0); }


/* ---------- intro loader (any page, once per visit) ----------
   The FYNS letters rise in while a hairline fills with the load progress; then the letters lift away
   and the white panel sweeps up with a dark panel trailing just behind it, uncovering the page. */
.preloader, .pl-panel { position: fixed; inset: 0; }
.preloader {
  z-index: 201; background: var(--bg); display: grid; place-items: center;
  transition: transform 1s cubic-bezier(.76, 0, .24, 1);
}
.pl-panel { z-index: 200; background: #161616; transition: transform 1.05s cubic-bezier(.76, 0, .24, 1) .16s; }
html.no-intro .preloader, html.no-intro .pl-panel, html.arrive .preloader, html.arrive .pl-panel { display: none; }
.pl-word { display: flex; color: #111; }
.pl-word .logo-mark { width: clamp(180px, 28vw, 380px); }
.pl-word span { display: block; overflow: hidden; padding: 6px 0; }
.pl-word i { display: block; font-style: normal; transform: translateY(108%); transition: transform 1.1s var(--ease); }
.preloader.go .pl-word i { transform: none; }
.pl-word span:nth-child(2) i { transition-delay: .07s; }
.pl-word span:nth-child(3) i { transition-delay: .14s; }
.pl-word span:nth-child(4) i { transition-delay: .21s; }
.pl-word span:nth-child(5) i { transition-delay: .28s; }
.preloader.out .pl-word i { transform: translateY(-108%); transition-duration: .75s; transition-timing-function: cubic-bezier(.7, 0, .3, 1); }
.pl-line { position: absolute; left: var(--pad); right: var(--pad); bottom: 72px; height: 1px; background: #e4e4e4; overflow: hidden; }
.pl-line i { display: block; height: 100%; background: #111; transform: scaleX(0); transform-origin: left; }
.pl-meta {
  position: absolute; bottom: 30px;
  font-size: 13px; font-weight: 500; text-transform: uppercase; color: #6f6f6f; letter-spacing: 0;
  transition: opacity .4s ease;
}
.pl-left { left: var(--pad); }
.pl-right { right: var(--pad); display: flex; gap: 14px; }
.pl-count { color: #111; font-variant-numeric: tabular-nums; min-width: 3ch; text-align: right; }
.preloader.out .pl-meta, .preloader.out .pl-line { opacity: 0; transition: opacity .35s ease; }
.preloader.lift, .pl-panel.lift { transform: translateY(-100%); }

/* ---------- header ---------- */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 120;
  display: flex; align-items: center; justify-content: space-between;
  padding: 24px 24px 0;
  pointer-events: none;
  transition: transform .7s var(--ease);
}
.header > * { pointer-events: auto; }
.header.hide { transform: translateY(-120%); }
.menu-btn {
  width: 38px; height: 38px; border: 1.5px solid #222; border-radius: 8px;
  display: grid; place-items: center; background: rgba(255,255,255,.7);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transition: background .3s, color .3s;
}
.menu-btn:hover, .menu-open .menu-btn, .menu-closing .menu-btn { background: #222; color: #fff; }
.logo {
  position: absolute; left: 50%; top: 9px; transform: translateX(-50%);
  display: block; color: #111;
}
/* the FYNS logo, drawn in the current text colour, so it turns white wherever the text does (dark sections, menu) */
.logo-mark {
  display: block; width: 80px; aspect-ratio: 720 / 562; background: currentColor;
  -webkit-mask: url(/assets/brand/fyns-logo.png?v=2) center / contain no-repeat; mask: url(/assets/brand/fyns-logo.png?v=2) center / contain no-repeat;
}
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.header-cta { width: 290px; }
.header, .header .logo { transition: transform .7s var(--ease), opacity .6s; }
body.is-loading .header { opacity: 0; transform: translateY(-30px); }
.header { opacity: 1; }

/* header over dark sections */
.header .logo, .menu-btn { transition: color .4s, border-color .4s, background .4s, transform .7s var(--ease); }
.header.on-dark .logo { color: #fff; }
.header.on-dark .menu-btn { border-color: #fff; color: #fff; background: rgba(22,22,22,.5); }
.header.on-dark .btn-dark { background: #fff; color: #111; }


/* page transition curtain — quick white wipe with the logo */
.curtain {
  position: fixed; inset: 0; z-index: 300; background: var(--bg);
  display: grid; place-items: center; pointer-events: none;
  transform: translateY(100%);
}
.curtain span { color: #111; opacity: 0; transition: opacity .2s; }
.curtain .logo-mark { width: 84px; }
html.arrive .curtain, .curtain.cover { transform: none; }
html.arrive .curtain span, .curtain.cover span { opacity: 1; }
.curtain.cover { transition: transform .38s cubic-bezier(.7, 0, .3, 1); }
.curtain.cover span { transition: opacity .18s .16s; }
.curtain.lift, html.arrive .curtain.lift { transform: translateY(-100%); transition: transform .5s cubic-bezier(.7, 0, .3, 1); }
.curtain.lift span, html.arrive .curtain.lift span { opacity: 0; transition: opacity .15s; }
html.arrive .preloader { display: none; }
.menu-inner a.is-current { color: #fff; }

/* menu overlay */
.menu {
  position: fixed; inset: 0; z-index: 110;
  background: #161616; color: #fff;
  clip-path: inset(0 0 100% 0);
  transition: clip-path .9s var(--ease-io);
  display: flex; align-items: flex-end; justify-content: space-between; gap: 48px; flex-wrap: wrap;
  padding: 110px var(--pad) 48px; overflow-y: auto;
}
.menu-open .menu { clip-path: inset(0 0 0 0); }
/* the header keeps its on-overlay colours while the overlay retracts (.menu-closing), so no dark boxes flash on it */
.menu-open .header .logo, .menu-closing .header .logo { color: #fff; }
.menu-open .menu-btn, .menu-closing .menu-btn { border-color: #fff; }
.menu-open .header .btn-dark, .menu-closing .header .btn-dark { background: #fff; color: #111; }
.menu-inner { display: flex; flex-direction: column; gap: 4px; }
.menu-inner a {
  display: flex; align-items: baseline; gap: 18px;
  font-size: clamp(32px, min(6vw, 8.2svh), 84px); line-height: 1; letter-spacing: -0.05em; text-transform: uppercase;   /* shrinks on short screens so the whole menu fits */
  color: #6b6b6b; transition: color .3s;
  transform: translateY(40px); opacity: 0;
  transition: color .3s, transform .9s var(--ease), opacity .9s var(--ease);
}
.menu-inner a span { font-size: 16px; font-weight: 400; letter-spacing: 0; color: #888; }
.menu-inner a:hover { color: #fff; }
.menu-open .menu-inner a { transform: none; opacity: 1; }
.menu-open .menu-inner a:nth-child(2) { transition-delay: .05s; }
.menu-open .menu-inner a:nth-child(3) { transition-delay: .1s; }
.menu-open .menu-inner a:nth-child(4) { transition-delay: .15s; }
.menu-open .menu-inner a:nth-child(5) { transition-delay: .2s; }
.menu-open .menu-inner a:nth-child(6) { transition-delay: .25s; }

/* ---------- hero ----------
   Everything is sized from the viewport so the whole hero fits in one screen:
   --fs  letter size (width-limited on tall screens, height-limited on short ones)
   --hh  house height; the house image is 1116×769 and its roof peak sits at the very top
   The letters are placed so their lower 40% overlaps the roof, in front of the house.  */
.hero {
  --fs: min(21.6vw, 30svh);
  --ratio: 1.4512;                       /* house image width ÷ height — main.js sets it from the actual image */
  --peak: .012;                          /* how far down the image the roof peak sits (1%) — update if the hero image changes */
  --hh: min(52vw / var(--ratio), 60svh);
  --hw: calc(var(--hh) * var(--ratio));
  --gap: max(20px, 3.6svh);
  /* desktop: lift the letters + house so they sit centred in the space below the header (76px);
     the faded driveway (bottom 12% of the image) doesn't count as part of the house */
  --lift: max(0px, (100svh - 76px - var(--fs) * .6 - var(--hh) * .88) / 2);
  position: relative;
  height: 100svh; min-height: 560px;
  background: var(--bg);
  overflow: hidden;
}
.fyns-word {
  position: absolute; left: 0; right: 0; z-index: 3;          /* letters sit in front of the house */
  top: max(76px, calc(100svh - var(--lift) - var(--hh) * (1 - var(--peak)) - var(--fs) * .6));
  height: calc(var(--fs) * 1.02);
  pointer-events: none;
  will-change: transform;
}
.fyns-layer {
  position: absolute; inset: 0;
  display: flex; justify-content: space-between; align-items: flex-start;
  padding: 0 2.35vw 0 2.6vw;
  font-size: var(--fs); line-height: 1; font-weight: 500; letter-spacing: -0.04em; color: #222;
}
.fyns-layer span { display: block; will-change: transform; }
.fyns-layer.sharp {
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 62%, transparent 82%);
          mask-image: linear-gradient(to bottom, #000 0%, #000 62%, transparent 82%);
}
.fyns-layer.soft {
  filter: blur(calc(var(--fs) * .025));
  -webkit-mask-image: linear-gradient(to bottom, transparent 55%, #000 76%);
          mask-image: linear-gradient(to bottom, transparent 55%, #000 76%);
}
body.is-loading .fyns-layer span { transform: translateY(40%); opacity: 0; }
.fyns-layer span { transition: transform 1.4s var(--ease), opacity 1.1s var(--ease); }
.fyns-layer span:nth-child(2) { transition-delay: .07s; }
.fyns-layer span:nth-child(3) { transition-delay: .14s; }
.fyns-layer span:nth-child(4) { transition-delay: .21s; }

.hero-house {
  position: absolute; z-index: 1;
  width: var(--hw); left: calc(50% - var(--hw) / 2); bottom: var(--lift);
  will-change: transform;
}
.hero-house img { width: 100%; height: auto; transition: opacity .8s var(--ease) .1s, transform 1.3s var(--ease); }
/* scroll-to-build: the hero is pinned for --build of extra scroll while the photo is revealed from the
   ground up over the untextured model (main.js sets --b from 0 to 1) */
.hero-pin { position: relative; height: calc(100svh + var(--build, 85svh)); }
.hero-pin > .hero { position: sticky; top: 0; }
.hero-house .hero-clay {
  position: absolute; left: 0; top: 0; width: 100%; height: 100%; max-width: none;   /* the model is drawn on the same canvas as the photo */
  pointer-events: none; z-index: 0;
}
#heroHouseImg {
  position: relative; z-index: 1; --b: 0;
  -webkit-mask-image: linear-gradient(to top, #000 calc(var(--b) * 116% - 16%), transparent calc(var(--b) * 116%));
          mask-image: linear-gradient(to top, #000 calc(var(--b) * 116% - 16%), transparent calc(var(--b) * 116%));
}
@media (prefers-reduced-motion: reduce) {
  .hero-pin { height: auto; }
  .hero-pin > .hero { position: relative; }
  #heroHouseImg { -webkit-mask-image: none; mask-image: none; }
  .hero-house .hero-clay { display: none; }
}
body.is-loading .hero-house img { opacity: 0; transform: scale(.94); }

.hero-left { position: absolute; z-index: 4; left: 2.2vw; bottom: var(--gap); }
.hero-loc { font-size: 13px; font-weight: 500; color: #6f6f6f; text-transform: uppercase; margin-bottom: min(26px, 2.6svh); }
.hero-tagline {
  font-size: clamp(16px, min(1.75vw, 2.9svh), 25px); line-height: 1.3; font-weight: 500;
  letter-spacing: -0.055em; text-transform: uppercase; color: #1d1d1d;
}
[data-hero-in] { transition: opacity 1.1s var(--ease) .45s, transform 1.2s var(--ease) .45s; }
body.is-loading [data-hero-in] { opacity: 0; transform: translateY(24px); }

.hero-right { position: absolute; z-index: 4; right: 1.75vw; bottom: var(--gap); width: min(22.6vw, 40svh); min-width: 240px; }
.hs-index { text-align: right; font-size: 15px; font-weight: 700; margin-bottom: 11px; color: #111; }
.hs-media { position: relative; aspect-ratio: 325 / 180; overflow: hidden; background: #ddd; }
.hs-img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  clip-path: inset(0 100% 0 0);
  transition: clip-path 1.1s var(--ease-io);
}
.hs-img.is-active { clip-path: inset(0 0 0 0); z-index: 2; }
.hs-img.was-active { clip-path: inset(0 0 0 0); z-index: 1; }
.hs-progress { position: absolute; left: 12px; right: 12px; bottom: 10px; height: 2px; background: rgba(255,255,255,.3); z-index: 3; }
.hs-progress i { display: block; height: 100%; width: 0; background: #fff; }
/* Stat chip = faces of a 4-sided block that rolls forward: the next stat tips in from the
   top while the current one rolls away underneath (see the cube logic in main.js). */
.hs-stat { --h: 47px; margin-top: 20px; height: var(--h); perspective: 900px; perspective-origin: 50% 50%; }
.hs-stat-track { display: none; }                      /* source list — the block is built from it */
.hs-cube {
  position: relative; height: 100%;
  transform-style: preserve-3d;
  transform: translateZ(calc(var(--h) / -2)) rotateX(var(--a, 0deg));
  transition: transform 1s cubic-bezier(.76, 0, .24, 1);
}
.hs-face {
  position: absolute; inset: 0; background: var(--chip);
  display: flex; align-items: center; gap: clamp(10px, 1vw, 14px); padding: 0 clamp(12px, 1.5vw, 22px);
  font-size: clamp(12px, 1.05vw, 15px); font-weight: 500; text-transform: uppercase; color: #333; letter-spacing: -0.02em; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
  transform: rotateX(calc(var(--i) * 90deg)) translateZ(calc(var(--h) / 2));
}
.hs-face::after {                                       /* faces darken as they turn away from you */
  content: ""; position: absolute; inset: 0; background: #000; opacity: var(--shade, 0);
  transition: opacity 1s cubic-bezier(.76, 0, .24, 1); pointer-events: none;
}
.hs-face b { font-weight: 700; color: #222; }

/* ---------- who we are ---------- */
.who {
  padding: 230px 24px 210px;
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.who-text {
  margin-top: 48px; max-width: 1110px;
  font-size: clamp(30px, 3.7vw, 53px); line-height: 1.21; font-weight: 500; letter-spacing: -0.05em;
  color: var(--ink);
}
.who-text .w { display: inline-block; white-space: pre; will-change: filter, color; }

/* ---------- projects ---------- */
.projects {
  background: var(--dark); color: #fff;
  display: grid; grid-template-columns: 45.7% 1fr;
}
.pj-sticky {
  position: sticky; top: 0; height: 100vh; min-height: 620px;
  padding: 39px 24px 0 39px;
  display: flex; flex-direction: column;
}
.pj-rule { height: 1px; background: #2c2c2c; margin-right: 40px; }
.pj-top { display: grid; grid-template-columns: 333px 1fr; margin-top: 30px; }
.pj-top .tag { justify-self: start; width: 177px; }
.pj-list { white-space: nowrap; }
.pj-list li {
  font-size: 18px; font-weight: 500; line-height: 28px; letter-spacing: -0.04em; color: #808080;
  cursor: pointer; transition: color .5s var(--ease), transform .5s var(--ease);
}
.pj-list li:hover { color: #bdbdbd; }
.pj-list li.is-active { color: #e9e9e9; transform: translateX(6px); }
.pj-title {
  margin-top: auto; margin-bottom: max(28vh, 140px);
  font-size: clamp(34px, 3.35vw, 48px); line-height: 1.04; font-weight: 500;
  letter-spacing: -0.05em; text-transform: uppercase;
}
.pj-right { border-left: 1px solid #262626; padding: 73px 78px 120px 63px; }
.pj-item + .pj-item { margin-top: 87px; }
.pj-item { position: relative; }
.pj-cover { position: absolute; inset: 0; z-index: 3; }
.pj-media { position: relative; overflow: hidden; aspect-ratio: 640 / 670; background: #222; }
.pj-media img {
  position: absolute; left: 0; top: -8%; width: 100%; height: 116%; object-fit: cover;
  will-change: transform;
  transition: scale 1.2s var(--ease);
}
.pj-item:hover .pj-media img { scale: 1.04; }
.pj-media::after {
  content: ""; position: absolute; inset: 0; background: var(--dark);
  transform-origin: top; transition: transform 1.3s var(--ease-io);
}
.pj-item.in .pj-media::after { transform: scaleY(0); }
.pj-cap {
  display: flex; justify-content: space-between; margin-top: 15px;
  font-size: 17px; letter-spacing: -0.04em; color: #eaeaea;
}

/* ---------- the fyns difference ---------- */
.edge { padding: 130px 0 150px; display: flex; flex-direction: column; align-items: center; }
.edge .h-xl { margin-top: 52px; }
.edge-grid {
  position: relative; margin-top: 135px;
  width: min(1272px, calc(100% - 48px));
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line); border-left: 1px solid var(--line);
}
/* One component, two states. Inactive: dark outline icon, title resting at the bottom.
   Active: the card darkens, the icon turns white and re-draws, the title travels up to its
   top slot and the description rises in. The title's travel distance (--drop) is measured
   in main.js so one- and two-line titles both land exactly. */
.edge-card {
  --t: .7s; --e: cubic-bezier(.65, 0, .35, 1);
  position: relative; height: 420px; padding: 30px 24px 24px; overflow: hidden; cursor: default;
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background-color: rgba(40, 40, 40, 0); color: var(--ink);
  transition: background-color var(--t) var(--e), color var(--t) var(--e);
}
.edge-card.is-active { background-color: var(--dark-card); color: #fff; }

.edge-ic { display: block; width: 40px; height: 40px; overflow: visible; transition: transform var(--t) var(--e); }
.edge-ic * { stroke-dasharray: 1; stroke-dashoffset: 0; }
.edge-card.is-active .edge-ic { transform: translateY(-2px); }
.edge-card.is-active .edge-ic * { animation: icon-draw .9s var(--e) both; }
@keyframes icon-draw { 0% { stroke-dashoffset: 1; } 100% { stroke-dashoffset: 0; } }

.edge-card h3 {
  position: absolute; left: 24px; right: 24px; top: 102px;
  font-size: clamp(17px, 1.5vw, 22px); line-height: 1.05; font-weight: 700; letter-spacing: -0.055em;
  text-transform: uppercase;
  transform: translateY(var(--drop, 250px));
  transition: transform var(--t) var(--e);
}
.edge-card.is-active h3 { transform: translateY(0); }

.edge-card p {
  position: absolute; left: 24px; right: 24px; bottom: 26px;
  font-size: 17px; font-weight: 500; line-height: 1.42; letter-spacing: -0.02em; color: #9c9c9c;
  opacity: 0; transform: translateY(28px);
  transition: opacity .35s ease, transform .5s var(--e);
}
.edge-card p b { font-weight: 500; color: #fff; }
.edge-card.is-active p {
  opacity: 1; transform: none;
  transition: opacity .6s ease .22s, transform .8s cubic-bezier(.16, 1, .3, 1) .18s;
}
.cross {
  position: absolute; width: 13px; height: 13px; margin: -6.5px 0 0 -6.5px; z-index: 2; pointer-events: none;
}
.cross::before, .cross::after { content: ""; position: absolute; background: #bdbdbd; }
.cross::before { left: 6px; top: 0; width: 1px; height: 13px; }
.cross::after { top: 6px; left: 0; height: 1px; width: 13px; }

/* ---------- process ---------- */
.process { padding: 100px 0 220px; display: flex; flex-direction: column; align-items: center; }
.process .h-xl { margin-top: 52px; }
.timeline { position: relative; width: 100%; margin-top: 155px; height: 2149px; }
.tl-line { position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; background: #dcdcdc; }
.tl-line i {
  position: absolute; left: -0.5px; top: 0; width: 2px; height: 0; background: #111;
}
.step {
  position: absolute; width: 362px; height: 425px; padding: 36px 35px 34px;
  display: flex; flex-direction: column; justify-content: space-between;
  background: #f3f3f3; color: #2a2a2a;
  filter: blur(12px); opacity: .55;
  will-change: filter, translate;
  transition: background-color .6s var(--ease), color .6s var(--ease);
}
.step.is-active { background: #252525; color: #fff; }
.step-l { right: calc(50% + 56px); }
.step-r { left: calc(50% + 59px); }
.step-near { right: calc(50% + 22px); }
.step:nth-of-type(1) { top: 0; }
.step h3 {
  display: flex; align-items: center; gap: 12px; font-size: 21px; font-weight: 700; letter-spacing: -0.05em; text-transform: uppercase;
}
.step h3 span { letter-spacing: 0; flex: none; }
.step h3 em { font-style: normal; line-height: 1.1; }
.step p { font-size: 21px; font-weight: 600; line-height: 1.52; letter-spacing: -0.035em; }

/* ---------- built around houston ---------- */
.houston { position: relative; background: var(--dark); color: #fff; padding: 48px 48px 0 73px; overflow: hidden; }
.hx-head { display: flex; justify-content: space-between; align-items: baseline; }
.hx-head h2 {
  font-size: clamp(40px, 5.6vw, 82px); line-height: 1; font-weight: 500; letter-spacing: -0.055em; text-transform: uppercase;
  will-change: transform;
}
.hx-b { margin-left: auto; white-space: nowrap; }
.hx-lead {
  position: relative; z-index: 2;
  margin-top: 250px; font-size: clamp(28px, 3.2vw, 46px); line-height: 1.11; font-weight: 500;
  letter-spacing: -0.05em; text-transform: uppercase;
}
.hx-side {
  position: relative; z-index: 2;
  width: max-content; margin: 30px 30px 0 auto; padding-right: 28px;
  border-right: 1px solid #3a3a3a;
  text-align: right; font-size: clamp(20px, 2.05vw, 29.5px); line-height: 1.29; font-weight: 500;
  letter-spacing: -0.04em; text-transform: uppercase;
}
[data-lines] .ln { display: block; overflow: hidden; padding: .06em 0 .1em; margin: -.06em 0 -.1em; }
[data-lines] .ln > span { display: block; transform: translateY(105%); transition: transform 1.1s var(--ease); }
[data-lines].in .ln > span { transform: none; }
.hx-map { position: relative; margin: -60px -48px 0 -75px; height: 51vw; max-height: 820px; overflow: hidden; }
.hx-map img { width: 100%; height: 100%; object-fit: cover; object-position: 47% 48%; transform-origin: 47% 48%; will-change: transform; }   /* centred on the Houston label */
.hx-map::before, .hx-map::after { content: ""; position: absolute; left: 0; right: 0; height: 35%; z-index: 1; pointer-events: none; }
.hx-map::before { top: 0; background: linear-gradient(var(--dark), rgba(22,22,22,0)); }
.hx-map::after { bottom: 0; background: linear-gradient(rgba(22,22,22,0), var(--dark)); }

/* ---------- cta ---------- */
.cta { background: var(--dark); color: #fff; display: flex; flex-direction: column; align-items: center; padding: 120px 0 0; overflow: hidden; }
.cta-title { color: #fff; font-size: clamp(44px, 6.2vw, 90px); }
.cta .btn { width: 249px; margin-top: 40px; }
.cta-house { width: min(730px, 92vw); margin-top: 68px; will-change: transform; }
.cta-house img { width: 100%; height: auto; }

/* ---------- footer ---------- */
.footer { background: var(--footer); color: #111; padding-top: 84px; overflow: hidden; }
.ft-band {
  position: relative; height: max(200px, 13.9vw);   /* grows with the letters, which are fitted to the width */
  border-top: 1px dashed #cdcdcd; border-bottom: 1px dashed #cdcdcd;
  display: flex; align-items: center; justify-content: center;
}
.ft-hatch {
  position: absolute; top: 0; bottom: 0; left: 61.7%; right: 0;
  background: repeating-linear-gradient(45deg, transparent 0 11px, #c4c4c4 11px 12px);
  clip-path: inset(0 0 0 100%);
  transition: clip-path 1.4s var(--ease-io) .2s;
}
.ft-band.in .ft-hatch { clip-path: inset(0 0 0 0); }
.ft-big {
  position: relative; display: flex; width: max-content; flex: none;
  font-size: 15vw; line-height: 1; font-weight: 500; letter-spacing: -0.03em; white-space: nowrap; color: #111;
  overflow: hidden; padding: .02em 0 .04em;
}
.ft-big span { display: block; transform: translateY(110%); transition: transform 1.1s var(--ease); }
.ft-band.in .ft-big span { transform: none; }
.ft-body { padding: 67px 80px 0; }
.ft-brand h4 { line-height: 0; }
.ft-brand .logo-mark { width: 92px; }
.ft-brand p { margin-top: 30px; max-width: 500px; font-size: 16px; font-weight: 500; line-height: 1.33; letter-spacing: -0.02em; color: #222; }
.ft-left { display: flex; flex-direction: column; gap: 52px; }
.ft-contact h5, .ft-pages h5 { font-size: 19px; font-weight: 400; color: #6b6b6b; text-transform: uppercase; letter-spacing: -0.02em; margin-bottom: 14px; }
.ft-contact p { font-size: 16.5px; line-height: 1.45; text-transform: uppercase; letter-spacing: -0.02em; color: #111; }
.ft-contact .ft-phones { margin-top: 10px; }
.ft-contact a:hover { opacity: .6; }
.ft-social ul { display: grid; grid-template-columns: repeat(3, 108px); column-gap: 28px; row-gap: 10px; }   /* fixed columns so Pages and Social line up */
.ft-social a {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 10px; min-width: 96px;
  font-size: 16.5px; text-transform: uppercase; letter-spacing: -0.02em; position: relative;
}
.ft-social svg { width: 12px; height: 12px; fill: none; stroke: #111; stroke-width: 1.6; transition: transform .45s var(--ease); }
.ft-social a:hover svg { transform: translate(2px, -2px) rotate(45deg); }
.ft-social a::after {
  content: ""; position: absolute; left: 0; right: 22px; bottom: -2px; height: 1px; background: #111;
  transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease);
}
.ft-social a:hover::after { transform: scaleX(1); transform-origin: left; }
.ft-bottom {
  margin-top: 40px; padding: 30px 80px 32px; border-top: 1px solid #dcdcdc;
  display: flex; justify-content: space-between; font-size: 16px; color: #666; letter-spacing: -0.02em;
}
.ft-bottom nav { display: flex; gap: 22px; }
.ft-bottom a:hover { color: #111; }
/* logo, blurb and contact on the left; Pages opposite */
.ft-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; }
.ft-pages a { min-width: 0; }
.ft-pages a::after { right: 0; }

/* ---------- responsive ---------- */
@media (max-width: 1199px) {
  .header-cta { width: 210px; }
  .hero-right { min-width: 270px; }
  .pj-right { padding: 60px 32px 100px; }
  .pj-sticky { padding: 32px 32px 0; }
  .pj-top { grid-template-columns: 1fr; }
  .edge-card { height: 380px; }
  .edge-card p { font-size: 15px; }
  .step { width: 320px; }
}

@media (max-width: 809px) {
  :root { --pad: 16px; }
  .header { padding: 16px 16px 0; }
  .logo { top: 10px; }
  .header .logo-mark { width: 60px; }
  .header-cta { width: auto; gap: 14px; }

  /* phones: stack, but still fit one screen — the house flexes to fill what's left */
  .hero-pin { --build: 60svh; }
  .hero { --fs: 26vw; height: 100svh; min-height: 600px; padding: 76px 16px 16px; display: flex; flex-direction: column; }
  .fyns-word { position: relative; top: 0; flex: none; margin-top: auto; }  /* spare height is shared above the letters and below the house */
  .fyns-layer { padding: 0; }
  .hero-house { position: relative; left: 0; bottom: auto; width: 100%; flex: none; margin-top: calc(var(--fs) * -.4 - var(--peak) * (100vw - 32px) / var(--ratio)); }
  .hero-left { position: relative; left: 0; bottom: auto; margin-top: auto; padding-top: 10px; flex: none; }
  .hero-loc { margin-bottom: 8px; }
  .hero-right { position: relative; right: 0; bottom: auto; width: 100%; min-width: 0; margin-top: 14px; flex: none; }
  .hs-index { display: none; }
  .hs-media { aspect-ratio: 16 / 7; }
  .hs-stat { --h: 40px; margin-top: 8px; }
  .hs-face { font-size: 12px; padding: 0 14px; }
  @media (max-height: 720px) { .hs-media { aspect-ratio: 16 / 5; } .hero-house { width: 84%; margin-left: auto; margin-right: auto; } }

  .who { padding: 120px 16px; }
  .who-text { margin-top: 32px; }

  .projects { grid-template-columns: 1fr; }
  .pj-sticky { position: relative; height: auto; min-height: 0; padding: 32px 16px 0; }
  .pj-title { margin: 48px 0 0; }
  .pj-right { border-left: 0; padding: 40px 16px 80px; }
  .pj-item + .pj-item { margin-top: 48px; }

  .edge { padding: 100px 0; }
  .edge-grid { grid-template-columns: 1fr; margin-top: 64px; width: calc(100% - 32px); }
  .edge-card { height: 340px; }
  .cross { display: none; }

  .process { padding: 80px 0 120px; }
  .timeline { margin-top: 64px; height: auto; padding: 0 16px 0 40px; display: flex; flex-direction: column; gap: 20px; }
  .tl-line { left: 24px; }
  .step { position: relative; left: auto !important; right: auto !important; top: auto !important; width: 100%; height: 340px; padding: 24px; }
  .step h3, .step p { font-size: 18px; }

  .houston { padding: 40px 16px 0; }
  .hx-head { flex-direction: column; }
  .hx-b { width: auto; margin-left: 0; }
  .hx-lead { margin-top: 64px; }
  .hx-side { margin: 40px 0 0 auto; padding-right: 16px; }
  .hx-map { margin: -20px -16px 0; height: 90vw; }

  .cta { padding-top: 80px; }

  .ft-band { height: 120px; }
  .ft-body { padding: 48px 16px 0; }
  .ft-top { flex-direction: column; align-items: flex-start; gap: 40px; }
  .ft-left { gap: 40px; }
  .ft-social ul { grid-template-columns: repeat(2, minmax(120px, auto)); }
  .ft-bottom { padding: 24px 16px; flex-direction: column; gap: 12px; font-size: 14px; }
}


/* =========================================================
   ABOUT PAGE
   ========================================================= */
.ab-hero { padding: 166px 0 0; display: flex; flex-direction: column; align-items: center; }
.ab-title {
  display: flex; width: max-content; flex: none; white-space: nowrap;
  font-size: 9vw; line-height: .9; font-weight: 500; letter-spacing: -0.055em; color: #222;
  overflow: hidden; padding: .04em 0 .06em;
}
.ab-title span { display: block; transform: translateY(105%); transition: transform 1.1s var(--ease); }
body:not(.is-loading) .ab-title span { transform: none; }
.ab-media {
  position: relative; overflow: hidden; margin-top: 64px;
  width: calc(100% - 146px); aspect-ratio: 1292 / 430; background: #e9e9e9;
  clip-path: inset(100% 0 0 0);
  transition: clip-path 1.4s var(--ease-io) .25s;
}
body:not(.is-loading) .ab-media { clip-path: inset(0 0 0 0); }
.ab-media img { position: absolute; left: 0; top: -10%; width: 100%; height: 120%; object-fit: cover; will-change: transform; }

.philo { padding: 150px 73px 0; }
.philo-inner { border-left: 1px solid var(--line); padding: 2px 0 6px 26px; max-width: 1080px; }
.philo-text {
  margin-top: 54px; max-width: 1050px;
  font-size: clamp(22px, 2.5vw, 36px); line-height: 1.5; font-weight: 500; letter-spacing: -0.045em; color: var(--muted);
}
.philo-text .w { display: inline-block; white-space: pre; }

.standards { padding: 200px 73px 0; }
.st-head { display: flex; justify-content: space-between; align-items: flex-end; }
.st-title {
  font-size: clamp(34px, 3.65vw, 52px); line-height: 1.04; font-weight: 500; letter-spacing: -0.055em; text-transform: uppercase; color: #222;
}
.acc { margin-top: 56px; border-top: 1px solid var(--line); }
.acc-item { border-bottom: 1px solid var(--line); }
.acc-head {
  width: 100%; display: grid; grid-template-columns: 73px 1fr 32px; align-items: center;
  min-height: 68px; text-align: left; cursor: pointer;
}
.acc-num { font-size: 15px; font-weight: 400; color: #6f6f6f; font-variant-numeric: tabular-nums; }
.acc-title { font-size: 18px; font-weight: 500; letter-spacing: -0.035em; color: #1d1d1d; transition: transform .6s var(--ease); }
.acc-head:hover .acc-title { transform: translateX(8px); }
.acc-ic { position: relative; width: 14px; height: 14px; justify-self: end; transition: transform .6s var(--ease); }
.acc-ic::before, .acc-ic::after { content: ""; position: absolute; background: #222; }
.acc-ic::before { left: 0; right: 0; top: 6.5px; height: 1.5px; }
.acc-ic::after { top: 0; bottom: 0; left: 6.5px; width: 1.5px; }
.acc-item.is-open .acc-ic { transform: rotate(135deg); }
.acc-body {
  display: grid; grid-template-rows: 0fr; transition: grid-template-rows .7s var(--ease);
  padding-left: 49.3%; padding-right: 72px;
  margin-top: -46px;  /* description sits on the same line as the title, like the reference */
}
.acc-body > div { overflow: hidden; }
.acc-body p {
  font-size: 16.5px; font-weight: 500; line-height: 1.5; letter-spacing: -0.02em; color: #6d6d6d;
  padding-bottom: 32px; opacity: 0; transform: translateY(14px); filter: blur(10px);
  transition: opacity .3s ease, transform .4s var(--ease), filter .3s ease;   /* closing: quick */
}
.acc-item:not(.is-open) .acc-body { margin-top: 0; }
.acc-item.is-open .acc-body { grid-template-rows: 1fr; margin-top: -46px; }
.acc-item.is-open .acc-body p {
  opacity: 1; transform: none; filter: blur(0);
  transition: opacity 1s var(--ease) .15s, transform 1.2s var(--ease) .15s, filter 1.3s var(--ease) .15s;   /* opening: blur clears as it rises */
}
.acc-item.is-open .acc-head { align-items: start; padding-top: 22px; }
.acc-body { transition: grid-template-rows .7s var(--ease), margin-top .7s var(--ease); }

.page-about .process { padding-top: 220px; }

.team { background: var(--dark); color: #fff; padding: 130px 0 40px; display: flex; flex-direction: column; align-items: center; overflow: hidden; }
.tm-title { color: #fff; margin-top: 52px; }
.tm-grid {
  margin-top: 150px; width: calc(100% - 154px); max-width: 1284px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; align-items: start;
}
.tm-col { display: flex; flex-direction: column; gap: 50px; will-change: transform; }
.tm-col:nth-child(2) { margin-top: 35px; }
.tm-col:nth-child(3) { margin-top: 82px; }
.tm-card { opacity: 0; transform: translateY(60px); transition: opacity 1s var(--ease), transform 1.2s var(--ease); }
.tm-card.in { opacity: 1; transform: none; }
.tm-col:nth-child(2) .tm-card { transition-delay: .1s; }
.tm-col:nth-child(3) .tm-card { transition-delay: .2s; }
.tm-photo { position: relative; aspect-ratio: 396 / 508; overflow: hidden; background: #8c8c8c; }
.tm-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tm-photo svg { position: absolute; inset: 0; width: 100%; height: 100%; transition: transform 1.1s var(--ease); }
.tm-photo svg * { fill: rgba(30,30,30,.55); }
.tm-v1 { background: radial-gradient(120% 90% at 30% 20%, #9a9a9a, #5d5d5d); }
.tm-v2 { background: radial-gradient(120% 90% at 50% 15%, #e3e3e3, #a9a9a9); }
.tm-v3 { background: radial-gradient(120% 90% at 70% 20%, #dadada, #9c9c9c); }
.tm-v4 { background: radial-gradient(120% 90% at 40% 20%, #b9b9b9, #7d7d7d); }
.tm-v5 { background: radial-gradient(120% 90% at 50% 20%, #a5a5a5, #6a6a6a); }
.tm-v6 { background: radial-gradient(120% 90% at 60% 20%, #c4c4c4, #8a8a8a); }
.tm-card:hover .tm-photo svg { transform: scale(1.05); }
.tm-cap { display: flex; justify-content: space-between; margin-top: 12px; font-size: 14px; letter-spacing: -0.02em; }
.tm-cap span:first-child { font-weight: 700; text-transform: uppercase; color: #fff; }
.tm-cap span:last-child { color: #9a9a9a; }

@media (max-width: 1199px) {
  .acc-body { padding-left: 45%; }
}
@media (max-width: 809px) {
  .ab-hero { padding-top: 96px; }
  .ab-media { width: calc(100% - 32px); margin-top: 32px; aspect-ratio: 4 / 3; }
  .philo { padding: 96px 16px 0; }
  .philo-inner { padding-left: 16px; }
  .philo-text { margin-top: 32px; }
  .standards { padding: 120px 16px 0; }
  .st-head { flex-direction: column; align-items: flex-start; gap: 24px; }
  .acc-head { grid-template-columns: 40px 1fr 24px; }
  .acc-body, .acc-item.is-open .acc-body { padding-left: 40px; padding-right: 0; margin-top: 0; }
  .acc-item.is-open .acc-head { padding-top: 0; align-items: center; }
  .page-about .process { padding-top: 120px; }
  .team { padding: 100px 0 20px; }
  .tm-grid { grid-template-columns: 1fr; width: calc(100% - 32px); margin-top: 64px; gap: 40px; }
  .tm-col, .tm-col:nth-child(2), .tm-col:nth-child(3) { margin-top: 0; gap: 40px; }
}

/* Titles whose lower part softens into a blur, like the homepage FYNS letters.
   main.js duplicates the text: a sharp copy masked at the bottom and a blurred copy masked at the top.
   The blurred copy's box extends below the text so the blur can spread instead of being cut off flat. */
.bt { position: relative; }
.bt-in { display: block; position: relative; }
.bt-sharp { display: block; -webkit-mask-image: linear-gradient(#000 52%, transparent 86%); mask-image: linear-gradient(#000 52%, transparent 86%); }
.bt-soft {
  position: absolute; top: 0; left: -.2em; right: -.2em; bottom: -.45em; padding: 0 .2em;
  filter: blur(.045em);
  -webkit-mask-image: linear-gradient(transparent 34%, #000 62%); mask-image: linear-gradient(transparent 34%, #000 62%);
}
.pg-title.bt { overflow: visible; display: block; text-transform: uppercase; }
/* reveal: the same line-rise as the other headings (mask removed once it lands so the blur shows) */
.bt { clip-path: inset(-.3em -.3em 0 -.3em); }
.bt.risen { clip-path: none; }
.bt-in { transform: none; transition: transform 1.1s var(--ease) .1s; }
body.is-loading .bt-in { transform: translateY(105%); }

/* =========================================================
   SHARED INNER-PAGE PIECES
   ========================================================= */
.pg-hero { padding: 166px 0 0; display: flex; flex-direction: column; align-items: center; }
.pg-title {
  display: flex; width: max-content; flex: none; white-space: nowrap;
  font-size: 8vw; line-height: .9; font-weight: 500; letter-spacing: -0.055em; color: #222;
  overflow: hidden; padding: .04em 0 .06em;
}
.pg-title span { display: block; transform: translateY(105%); transition: transform 1.1s var(--ease); }
body:not(.is-loading) .pg-title span { transform: none; }
.pg-media {
  position: relative; overflow: hidden; margin-top: 64px;
  width: calc(100% - 146px); aspect-ratio: 1292 / 430;   /* one hero image size on every page */ background: #e9e9e9;
  clip-path: inset(100% 0 0 0); transition: clip-path 1.4s var(--ease-io) .25s;
}
body:not(.is-loading) .pg-media { clip-path: inset(0 0 0 0); }
.pg-media img { position: absolute; left: 0; top: -10%; width: 100%; height: 120%; object-fit: cover; will-change: transform; }
.pg-intro {
  margin-top: 48px; max-width: 980px; padding: 0 24px; text-align: center;
  font-size: clamp(22px, 2.5vw, 36px); line-height: 1.4; font-weight: 500; letter-spacing: -0.045em;
}
.pg-intro .w, .pd-lead .w, .ct-lead .w { display: inline-block; white-space: pre; }

/* image placeholder (projects without photography yet) */
.ph { position: absolute; inset: 0; display: grid; place-items: center; background: #efefef; }
.pg-media .ph img, .pcard-media .ph img, .gal-item .ph img, .pd-next-img .ph img, .ph > img { width: 62%; max-width: 420px; height: auto; opacity: .8; position: static; transform: none !important; }
.ph > span { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center; font-size: 13px; font-weight: 500; text-transform: uppercase; color: var(--muted); }

.stat { display: flex; flex-direction: column; gap: 14px; padding: 34px 28px 30px; border-left: 1px solid var(--line); }
.stat-v { font-size: clamp(44px, 5vw, 72px); line-height: 1; font-weight: 500; letter-spacing: -0.055em; color: #1d1d1d; font-variant-numeric: tabular-nums; }
.stat-l { font-size: 15px; font-weight: 500; text-transform: uppercase; color: var(--muted); letter-spacing: -0.01em; }

.header-cta { white-space: nowrap; }

/* =========================================================
   INVESTORS
   ========================================================= */
.inv-intro {
  width: calc(100% - 146px); margin-top: 52px;
  display: flex; justify-content: space-between; align-items: flex-end; gap: 40px;
}
.inv-lead { max-width: 640px; font-size: 21px; font-weight: 500; line-height: 1.5; letter-spacing: -0.03em; color: #333; }
.inv-intro .btn { width: 260px; flex: none; }

.record { padding: 170px 73px 0; }
.record-head { display: grid; grid-template-columns: 1fr 1fr; align-items: end; gap: 40px; }
.record-note { justify-self: end; max-width: 440px; margin-bottom: -70px; font-size: 17px; font-weight: 500; line-height: 1.5; color: #333; letter-spacing: -0.025em; }
/* three figures stepping down diagonally, each with a rule under the number */
.record-steps { margin-top: 140px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 48px; }
.record-steps .stat { padding: 0; border: 0; gap: 0; }
.record-steps .stat:nth-child(2) { margin-top: 160px; }
.record-steps .stat:nth-child(3) { margin-top: 320px; }
.record-steps .stat-v { padding: 0 0 18px 16px; border-bottom: 1px solid var(--line); font-size: clamp(40px, 4.2vw, 62px); }
.record-steps .stat-l { margin-top: 14px; padding-left: 16px; font-size: 14px; font-weight: 500; text-transform: none; color: #444; }

.value { display: grid; grid-template-columns: 45% 1fr; gap: 0; padding: 150px 73px 0; }
.value-sticky { position: sticky; top: 110px; padding-right: 60px; }
.value-sticky .st-title { margin-top: 30px; }
.value-note { margin-top: 28px; max-width: 440px; font-size: 17px; font-weight: 500; line-height: 1.5; color: #333; letter-spacing: -0.025em; }
.inv-hero .pg-title { text-align: center; line-height: .95; }
.inv-cta { width: 260px; margin-top: 40px; }
.value-list { list-style: none; }
.value-list li {
  display: grid; grid-template-columns: 54px 1fr; padding: 30px 0 34px; border-bottom: 1px solid #f0f0f0;
  color: #cfcfcf; transition: color .6s var(--ease);
}
.value-list li:last-child { border-bottom: 0; }
.value-list li > span { font-size: 22px; font-weight: 500; padding-top: 8px; font-variant-numeric: tabular-nums; }
.value-list h3 { font-size: clamp(28px, 2.7vw, 40px); line-height: 1.05; font-weight: 500; letter-spacing: -0.05em; }
.value-list p { margin-top: 14px; max-width: 520px; font-size: 16.5px; font-weight: 500; line-height: 1.5; letter-spacing: -0.02em; color: #cfcfcf; transition: color .6s var(--ease); }
.value-list li.is-active { color: #1d1d1d; }
.value-list li.is-active p { color: #333; }

.structure { background: var(--dark); color: #fff; padding: 140px 73px 160px; display: flex; flex-direction: column; align-items: center; }
.sx-grid { width: 100%; max-width: 1199px; margin-top: 90px; display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid #2a2a2a; border-left: 1px solid #2a2a2a; }
.sx-card {
  min-height: 360px; padding: 26px 26px 30px; border-right: 1px solid #2a2a2a; border-bottom: 1px solid #2a2a2a;
  display: flex; flex-direction: column; justify-content: space-between; transition: background .5s var(--ease);
}
.sx-card:hover { background: #1e1e1e; }
.sx-top { display: flex; align-items: center; gap: 14px; }
.sx-top span { font-size: clamp(36px, 3.4vw, 50px); line-height: .9; font-weight: 500; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.sx-top h3 { font-size: 15px; line-height: 1.1; font-weight: 700; letter-spacing: -0.03em; text-transform: uppercase; }
.sx-card p { max-width: 400px; font-size: 16px; font-weight: 600; line-height: 1.5; color: #d8d8d8; letter-spacing: -0.02em; }
.disclaimer { background: var(--dark); color: #9a9a9a; font-size: 13px; font-weight: 400; line-height: 1.5; text-align: center; padding: 30px 20% 40px; margin: 0; }

/* =========================================================
   PROJECTS
   ========================================================= */
.pgrid-sec { padding: 190px 73px 170px; }
.pgrid-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; flex-wrap: wrap; }
.pfilter { display: flex; gap: 8px; flex-wrap: wrap; }
.pfilter button {
  height: 36px; padding: 0 16px; background: var(--chip); color: #444;
  font-size: 14px; font-weight: 500; text-transform: uppercase; letter-spacing: -0.01em;
  transition: background .35s, color .35s;
}
.pfilter button sup { font-size: 10px; margin-left: 4px; color: #6f6f6f; }
.pfilter button:hover:not(:disabled) { background: #e3e3e3; }
.pfilter button.is-on { background: #222; color: #fff; }
.pfilter button.is-on sup { color: #aaa; }
.pfilter button:disabled { opacity: .4; cursor: default; }
.pgrid { margin-top: 70px; display: grid; grid-template-columns: 1fr 1fr; column-gap: 48px; row-gap: 90px; align-items: start; }
.pcard { display: block; opacity: 0; transform: translateY(60px); transition: opacity 1s var(--ease), transform 1.1s var(--ease); }
.pcard:nth-child(even) { margin-top: 140px; }
.pcard.in { opacity: 1; transform: none; }
.pcard.is-out { opacity: 0 !important; transform: scale(.97) !important; transition-duration: .35s; }
.pcard-media { position: relative; aspect-ratio: 640 / 600; overflow: hidden; background: #e9e9e9; }
.pcard-media img { position: absolute; left: 0; top: 0; width: 100%; height: 100%; object-fit: cover; will-change: transform; }
.pcard-media::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,0); transition: background .6s var(--ease); }
.pcard:hover .pcard-media::after { background: rgba(0,0,0,.12); }
.pill {
  position: absolute; left: 16px; top: 16px; z-index: 2; height: 30px; padding: 0 12px;
  display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.92); color: #222;
  font-size: 12px; font-weight: 700; text-transform: uppercase; backdrop-filter: blur(6px);
}
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #222; }
.pill-in-development::before, .pill-under-construction::before { background: #c98a1b; }
.pill-upcoming::before { background: #8a8a8a; }
.pcard-body { padding-top: 20px; }
.pcard-row { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; }
.pcard h3 { font-size: 26px; font-weight: 700; letter-spacing: -0.05em; text-transform: uppercase; }
.pcard-link { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; text-transform: uppercase; white-space: nowrap; color: #222; }
.pcard-link svg { transition: transform .5s var(--ease); }
.pcard:hover .pcard-link svg { transform: translate(3px, -3px); }
.pcard p { margin-top: 10px; max-width: 520px; font-size: 17px; font-weight: 500; line-height: 1.45; color: #6d6d6d; letter-spacing: -0.02em; }
.pcard-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.pcard-meta li { height: 28px; padding: 0 10px; display: inline-flex; align-items: center; background: var(--chip); font-size: 13px; font-weight: 500; color: #555; text-transform: uppercase; }

.cta-map { position: relative; padding: 220px 0 230px; overflow: hidden; }
.cta-map .cta-bg { position: absolute; inset: 0; }
.cta-map .cta-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .9; }
.cta-map .cta-bg::after { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 70% at 50% 50%, rgba(22,22,22,.55), var(--dark)); }
.cta-map > *:not(.cta-bg) { position: relative; z-index: 1; }
.cta-map .btn { width: auto; gap: 28px; }

/* =========================================================
   PROJECT DETAIL
   ========================================================= */
.pd-hero { padding: 166px 73px 0; display: flex; flex-direction: column; align-items: center; }
.pd-title {
  max-width: 10.4em; text-align: center;               /* wraps longer names onto two lines */
  font-size: clamp(46px, 6.6vw, 96px); line-height: .98; font-weight: 500; letter-spacing: -0.055em; text-transform: uppercase; color: #222;
}
.pd-media { width: 100%; }
.pd-intro { width: 100%; margin-top: 64px; display: grid; grid-template-columns: 1fr 1fr; gap: 80px 140px; align-items: start; }
.pd-lead { max-width: 520px; font-size: 15px; font-weight: 500; line-height: 1.5; color: #6f6f6f; letter-spacing: -0.02em; }
.pd-body { margin-top: 80px; max-width: 520px; font-size: 18px; line-height: 1.5; color: #1d1d1d; letter-spacing: -0.025em; }
.pd-lead + .pd-body { margin-top: 80px; }
.pd-intro-l > .pd-body:first-child { margin-top: 0; }
.pd-body + .pd-body { margin-top: 18px; }
.pd-table { margin: 0; border-top: 1px solid var(--line); }
.pd-table div { display: flex; justify-content: space-between; gap: 20px; padding: 15px 22px; border-bottom: 1px solid var(--line); }
.pd-table dt, .pd-table dd { margin: 0; font-size: 13.5px; font-weight: 700; text-transform: uppercase; letter-spacing: -0.01em; color: #1d1d1d; }
.pd-table dd { text-align: right; font-weight: 500; }

.pd-dark { margin-top: 160px; background: var(--dark); color: #fff; padding: 110px 73px 40px; }
/* gallery: as many photos as the project has, in rows of two (7+5 / 5+7 columns) with a full-width photo
   every third row (the row pattern is worked out in tools/build.py → gallery_layout) */
.pd-gal-title { font-size: clamp(36px, 4.4vw, 64px); line-height: 1; font-weight: 500; letter-spacing: -0.05em; text-transform: uppercase; margin-bottom: 48px; }
.pd-gal-grid { display: grid; gap: 20px; grid-template-columns: repeat(12, 1fr); grid-auto-rows: minmax(280px, 31vw); }
.gs-7 { grid-column: span 7; } .gs-5 { grid-column: span 5; } .gs-12 { grid-column: span 12; }
.pd-dark.no-gallery { padding-top: 0; }
.pd-dark.no-gallery .pd-features { padding-top: 120px; }
.pd-gal .gal-item { position: relative; margin: 0; overflow: hidden; background: #222; }
.pd-gal .gal-item img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.pd-gal .gal-item.is-photo:hover img { transform: scale(1.04) !important; }
.pd-gal .gal-item figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 18px 14px; z-index: 1;
  background: linear-gradient(transparent, rgba(0,0,0,.55)); color: #eee; font-size: 13px; font-weight: 400; letter-spacing: -0.01em;
  opacity: 0; transition: opacity .4s;
}
.pd-gal .gal-item:hover figcaption, .pd-gal .gal-item:not(.is-photo) figcaption { opacity: 1; }
.pd-gal .gal-item:not(.is-photo) figcaption { background: none; color: #8f8f8f; }
.ph-dark { position: absolute; inset: 0; display: grid; place-items: center; background: #1f1f1f; }
.ph-dark img { position: static !important; width: 46% !important; height: auto !important; opacity: .16; filter: grayscale(1) invert(1); }
.gal-open { position: absolute; inset: 0; z-index: 2; cursor: zoom-in; }

.pd-features { padding-top: 170px; display: flex; flex-direction: column; align-items: center; }
.fx-grid { width: 100%; margin-top: 90px; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid #2a2a2a; border-left: 1px solid #2a2a2a; }
/* 1, 2 or 4 features sit in two columns so no row is left with an empty slot */
.fx-count-1, .fx-count-2, .fx-count-4 { grid-template-columns: repeat(2, 1fr); }
.fx-card {
  min-height: 370px; padding: 26px 22px 30px; border-right: 1px solid #2a2a2a; border-bottom: 1px solid #2a2a2a;
  display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto 1fr; column-gap: 14px; align-items: center;   /* number + title side by side, as on the Investment Structure cards */
  transition: background .5s var(--ease);
}
.fx-card:hover { background: #1e1e1e; }
.fx-card span { font-size: clamp(32px, 2.8vw, 42px); line-height: 1; font-weight: 500; letter-spacing: -0.04em; }
.fx-card h3 { font-size: 14px; font-weight: 700; letter-spacing: -0.02em; text-transform: uppercase; }
.fx-card p { grid-column: 1 / -1; align-self: end; margin-top: 24px; max-width: 300px; font-size: 16px; font-weight: 600; line-height: 1.5; color: #d8d8d8; letter-spacing: -0.02em; }

.lightbox {
  position: fixed; inset: 0; z-index: 250; background: rgba(14,14,14,.94);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px;
  opacity: 0; visibility: hidden; transition: opacity .45s, visibility 0s linear .45s; cursor: zoom-out;
}
.lightbox.open { opacity: 1; visibility: visible; transition: opacity .45s; }
.lightbox img { max-width: 88vw; max-height: 80vh; object-fit: contain; transform: scale(.96); transition: transform .6s var(--ease); }
.lightbox.open img { transform: none; }
.lightbox p { display: flex; gap: 16px; color: #aaa; font-size: 14px; font-weight: 400; }
.lb-count { color: #fff; font-variant-numeric: tabular-nums; }
.lb-nav {
  position: absolute; top: 50%; z-index: 2; width: 52px; height: 52px; margin-top: -26px; border-radius: 50%;
  display: grid; place-items: center; color: #fff; border: 1px solid rgba(255,255,255,.35); transition: background .3s, border-color .3s;
}
.lb-nav:hover { background: rgba(255,255,255,.12); border-color: #fff; opacity: 1; }
.lb-prev { left: 28px; } .lb-next { right: 28px; }
/* "+n" on the last gallery tile */
.gal-more {
  position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  background: rgba(15,15,15,.55); color: #fff; font-size: clamp(40px, 5vw, 72px); font-weight: 500; letter-spacing: -0.04em; pointer-events: none;
  transition: background .4s;
}
.gal-more small { font-size: 13px; font-weight: 700; letter-spacing: 0; text-transform: uppercase; }
.gal-item.has-more:hover .gal-more { background: rgba(15,15,15,.4); }
.gal-item.has-more figcaption { display: none; }
@media (max-width: 809px) { .lb-prev { left: 10px; } .lb-next { right: 10px; } .lb-nav { width: 44px; height: 44px; margin-top: -22px; } }

/* =========================================================
   CONTACT
   ========================================================= */
.contact { display: grid; grid-template-columns: 38% 1fr; gap: 80px; padding: 110px 73px 170px; }
.ct-lead { font-size: clamp(22px, 2vw, 29px); line-height: 1.45; font-weight: 500; letter-spacing: -0.045em; color: var(--muted); }
.ct-block { margin-top: 44px; }
.ct-block h5 { font-size: 15px; font-weight: 400; text-transform: uppercase; color: var(--muted); }
.ct-block p { margin-top: 8px; font-size: 18px; line-height: 1.45; text-transform: uppercase; letter-spacing: -0.03em; }
.ct-block a:hover { text-decoration: underline; }
.ct-form { border-top: 1px solid var(--line); padding-top: 32px; }
.ct-interest { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.ct-interest legend { width: 100%; margin-bottom: 16px; font-size: 14px; font-weight: 500; text-transform: uppercase; color: var(--muted); }
.ct-interest label { cursor: pointer; }
.ct-interest input { position: absolute; opacity: 0; pointer-events: none; }
.ct-interest span {
  display: inline-flex; align-items: center; height: 40px; padding: 0 18px; background: var(--chip);
  font-size: 15px; font-weight: 500; letter-spacing: -0.02em; transition: background .35s, color .35s;
}
.ct-interest label:hover span { background: #e3e3e3; }
.ct-interest input:checked + span { background: #222; color: #fff; }
.ct-interest input:focus-visible + span { outline: 2px solid #222; outline-offset: 2px; }
.ct-grid { display: grid; grid-template-columns: 1fr 1fr; column-gap: 28px; row-gap: 26px; }
.ct-cond { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; column-gap: 28px; animation: condIn .6s var(--ease); }
.ct-cond[hidden] { display: none; }
@keyframes condIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.fld { display: flex; flex-direction: column; gap: 8px; }
.fld-wide { grid-column: 1 / -1; }
.fld > span { font-size: 13px; font-weight: 500; text-transform: uppercase; color: var(--muted); }
.fld input, .fld select, .fld textarea {
  font: inherit; font-size: 18px; letter-spacing: -0.02em; color: #111;
  border: 0; border-bottom: 1px solid #d5d5d5; border-radius: 0; background: transparent; padding: 8px 0 12px; outline: none;
  transition: border-color .3s; resize: vertical; -webkit-appearance: none; appearance: none;
}
.fld select { background-image: linear-gradient(45deg, transparent 50%, #222 50%), linear-gradient(135deg, #222 50%, transparent 50%);
  background-position: calc(100% - 12px) 55%, calc(100% - 7px) 55%; background-size: 5px 5px; background-repeat: no-repeat; cursor: pointer; }
.fld input:focus, .fld select:focus, .fld textarea:focus { border-color: #111; }
.fld.err > span { color: #b3261e; }
.fld.err input { border-color: #b3261e; }
.ct-submit { margin-top: 44px; display: flex; align-items: center; gap: 24px; }
.ct-submit .btn { width: 240px; cursor: pointer; }
.ct-msg { font-size: 15px; letter-spacing: -0.02em; }
.ct-msg.is-err { color: #b3261e; }
.ct-msg.is-ok { color: #1d1d1d; }
.ct-form.is-sent .ct-grid, .ct-form.is-sent .ct-interest, .ct-form.is-sent .ct-submit .btn { opacity: .35; pointer-events: none; transition: opacity .6s; }

@media (max-width: 809px) {
  .pg-hero { padding-top: 96px; }
  .pg-media { width: calc(100% - 32px); margin-top: 32px; aspect-ratio: 4 / 3; }
  .inv-intro { width: calc(100% - 32px); flex-direction: column; align-items: flex-start; margin-top: 32px; }
  .record, .value, .pgrid-sec, .pd-hero, .pd-about, .pd-gallery, .pd-glance, .pd-features, .contact { padding-left: 16px; padding-right: 16px; }
  .record { padding-top: 100px; }
  .record-head { flex-direction: column; align-items: flex-start; gap: 20px; }
  .record-grid, .outcome, .sx-points { grid-template-columns: 1fr 1fr; }
  .record-head { grid-template-columns: 1fr; gap: 20px; }
  .record-note { justify-self: start; margin-bottom: 0; }
  .record-steps { margin-top: 56px; grid-template-columns: 1fr; gap: 36px; }
  .record-steps .stat:nth-child(2), .record-steps .stat:nth-child(3) { margin-top: 0; }
  .value-list li { grid-template-columns: 40px 1fr; }
  .sx-grid { grid-template-columns: 1fr; margin-top: 56px; }
  .sx-card { min-height: 240px; }
  .pd-hero { padding-left: 16px; padding-right: 16px; }
  .pd-intro { grid-template-columns: 1fr; gap: 40px; margin-top: 40px; }
  .pd-lead + .pd-body { margin-top: 28px; }
  .pd-dark { margin-top: 100px; padding: 80px 16px 20px; }
  .pd-gal-title { margin-bottom: 32px; }
  .pd-gal-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 44vw; gap: 12px; }
  .gs-7, .gs-5 { grid-column: span 1; } .gs-12 { grid-column: span 2; grid-row: span 1; }
  .pd-features { padding-top: 110px; }
  .fx-grid { grid-template-columns: 1fr; margin-top: 56px; }
  .fx-card { min-height: 220px; }
  .stat { padding: 24px 16px; }
  .value { grid-template-columns: 1fr; padding-top: 110px; }
  .value-sticky { position: relative; top: 0; padding: 0 0 40px; }
  .structure { padding: 100px 16px; }
  .sx { height: auto; display: flex; flex-direction: column; gap: 12px; margin-top: 56px; }
  .sx-node { position: relative; left: auto; right: auto; top: auto; width: 100%; }
  .sx-lines { display: none; }
  .pgrid-sec { padding-top: 110px; padding-bottom: 110px; }
  .pgrid { grid-template-columns: 1fr; row-gap: 56px; margin-top: 40px; }
  .pcard:nth-child(even) { margin-top: 0; }
  .pcard-row { flex-direction: column; gap: 8px; }
  .pd-hero { padding-top: 96px; }
  .pd-keys { grid-template-columns: 1fr 1fr; row-gap: 18px; }
  .pd-media { width: 100%; }
  .pd-about { grid-template-columns: 1fr; padding-top: 100px; }
  .pd-about-r { padding-top: 32px; }
  .pd-gallery, .pd-glance { padding-top: 100px; }
  .pd-sec-head { flex-direction: column; align-items: flex-start; gap: 20px; }
  .gal { grid-template-columns: 1fr; }
  .gal-item:first-child > picture > img, .gal-item:first-child > .ph { min-height: 0; aspect-ratio: 4 / 3; height: auto; }
  .glance dt { gap: 16px; }
  .pd-outcome { margin-top: 100px; padding: 100px 16px; }
  .contact { grid-template-columns: 1fr; gap: 48px; padding-top: 48px; }
  .ct-grid, .ct-cond { grid-template-columns: 1fr; row-gap: 22px; }
  .ct-submit { flex-direction: column; align-items: flex-start; }
}

/* =========================================================
   MENU BUTTON (☰ → ×), MENU FOOTER, A11Y HELPERS
   ========================================================= */
.mb-lines { position: relative; width: 16px; height: 12px; display: block; }
.mb-lines i {
  position: absolute; left: 0; height: 1.6px; width: 16px; background: currentColor; border-radius: 2px;
  transition: transform .5s var(--ease), opacity .3s, width .4s var(--ease), left .4s var(--ease), top .4s var(--ease);
}
.mb-lines i:nth-child(1) { top: 0; }
.mb-lines i:nth-child(2) { top: 5.2px; left: 5px; width: 11px; }
.mb-lines i:nth-child(3) { top: 10.4px; }
.menu-btn:hover .mb-lines i:nth-child(2) { left: 0; width: 16px; }
.menu-open .mb-lines i:nth-child(1) { top: 5.2px; transform: rotate(45deg); }
.menu-open .mb-lines i:nth-child(2) { opacity: 0; transform: scaleX(0); }
.menu-open .mb-lines i:nth-child(3) { top: 5.2px; transform: rotate(-45deg); }

.menu-foot {
  display: grid; grid-template-columns: repeat(3, auto); gap: 28px 56px; padding-bottom: 6px;
  opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .9s var(--ease);
}
.menu-open .menu-foot { opacity: 1; transform: none; transition-delay: .3s; }
.menu-foot h5 { font-size: 13px; font-weight: 500; text-transform: uppercase; color: #9a9a9a; margin-bottom: 10px; }
.menu-foot p, .menu-foot li { font-size: 16px; line-height: 1.55; color: #e9e9e9; letter-spacing: -0.02em; }
.menu-foot a { transition: color .3s; }
.menu-foot a:hover { color: #9a9a9a; }
.menu-inner a.is-current { color: #fff; }

.skip-link {
  position: fixed; left: 16px; top: -60px; z-index: 400; padding: 10px 16px; background: #111; color: #fff;
  font-size: 14px; font-weight: 700; transition: top .25s;
}
.skip-link:focus { top: 16px; }
:focus { outline: none; }
:focus-visible { outline: 2px solid #111; outline-offset: 3px; }
.projects :focus-visible, .houston :focus-visible, .cta :focus-visible, .team :focus-visible,
.structure :focus-visible, .pd-outcome :focus-visible, .menu :focus-visible, .header.on-dark :focus-visible,
.menu-open .header :focus-visible { outline-color: #fff; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* =========================================================
   HOMEPAGE — FOR INVESTORS TEASER
   ========================================================= */
.inv-teaser { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; padding: 60px 73px 0; }
.it-media { position: relative; aspect-ratio: 640 / 700; overflow: hidden; }
.it-media img { position: absolute; inset: -6% 0; width: 100%; height: 112%; object-fit: cover; will-change: transform; }
.it-title { margin-top: 34px; font-size: clamp(48px, 6vw, 86px); line-height: .92; font-weight: 500; letter-spacing: -0.055em; text-transform: uppercase; }
.it-lead { margin-top: 30px; max-width: 520px; font-size: 19px; font-weight: 500; line-height: 1.5; letter-spacing: -0.03em; color: #444; }
.it-points { margin-top: 40px; border-top: 1px solid var(--line); }
.it-points li { display: flex; gap: 22px; align-items: baseline; padding: 18px 0; border-bottom: 1px solid var(--line); font-size: 20px; font-weight: 500; letter-spacing: -0.04em; text-transform: uppercase; }
.it-points span { font-size: 14px; font-weight: 400; color: var(--muted); letter-spacing: 0; }
.it-actions { margin-top: 40px; display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.it-actions .btn { width: 240px; }
.it-link { position: relative; font-size: 15px; font-weight: 700; text-transform: uppercase; letter-spacing: -0.01em; }
.it-link::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1.5px; background: currentColor; transform-origin: left; transition: transform .5s var(--ease); }
.it-link:hover::after { transform: scaleX(.3); }

/* =========================================================
   OPPORTUNITY ALERTS SIGN-UP
   ========================================================= */
.notify {
  margin: 170px 73px 170px; padding: 64px; background: #f3f3f3;
  display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: end;
}
.nt-copy .st-title { margin-top: 30px; }
.nt-copy > p { margin-top: 22px; max-width: 440px; font-size: 18px; font-weight: 500; line-height: 1.5; color: #555; letter-spacing: -0.025em; }
.nt-fields { display: grid; grid-template-columns: 1fr 1.3fr auto; gap: 24px; align-items: end; }
.nt-fields .btn { width: 200px; cursor: pointer; }
.nt-legal { margin-top: 18px; font-size: 13px; font-weight: 400; line-height: 1.5; color: var(--muted); }
.nt-legal a { text-decoration: underline; text-underline-offset: 2px; }
.form-msg { margin-top: 14px; min-height: 1.4em; font-size: 15px; font-weight: 400; letter-spacing: -0.02em; color: #444; }
.form-msg.is-err { color: #b3261e; }
.form-msg.is-ok { color: #1d1d1d; font-weight: 700; }
.nt-form.is-sent .nt-fields { opacity: .35; pointer-events: none; transition: opacity .6s; }
.btn:disabled { opacity: .6; cursor: progress; }
.page-investors .notify { margin-bottom: 0; }
.page-investors .notify + .cta, .page-project .notify + .cta { margin-top: 170px; }
.page-project .notify { margin-top: 40px; margin-bottom: 0; }
.page-projects .notify { margin-top: 0; }

/* =========================================================
   PROJECT PROOF LINES
   ========================================================= */
.pcard-proof { display: flex; align-items: center; gap: 8px; margin-top: 14px !important; font-size: 14px !important; font-weight: 700; color: #1d1d1d !important; text-transform: uppercase; }

/* gallery open button covers each photo */
.gal-open { position: absolute; inset: 0 0 34px; z-index: 2; cursor: zoom-in; }
.lightbox[hidden] { display: none; }
.lb-close { position: absolute; top: 24px; right: 24px; color: #fff; font-size: 14px; font-weight: 700; text-transform: uppercase; }

/* =========================================================
   LEGAL PAGES
   ========================================================= */
/* ---------- legal pages (privacy, terms, disclaimer) ----------
   Everything reads from the left: a heading block, then a sticky contents column beside the text.
   Sizes scale with the screen between 1200px and 2560px so very wide screens don't look empty. */
.legal {
  --lg-side: clamp(240px, 19vw, 400px); --lg-gap: clamp(56px, 5.5vw, 130px); --lg-text: clamp(17px, .5vw + 10px, 21px);
  padding: 166px 73px 170px;
}
.lg-head { max-width: calc(var(--lg-side) + var(--lg-gap) + 62em * var(--lg-text) / 17px); }
.lg-kicker { font-size: 13px; font-weight: 500; text-transform: uppercase; color: var(--muted); }
.lg-title { margin-top: 18px; font-size: clamp(48px, 7vw, 150px); line-height: .92; font-weight: 500; letter-spacing: -0.055em; text-transform: uppercase; }
.lg-intro { margin-top: clamp(28px, 2.4vw, 48px); max-width: 30em; font-size: clamp(20px, 1.25vw + 4px, 34px); line-height: 1.35; font-weight: 500; letter-spacing: -0.04em; color: #222; }
.lg-facts {
  margin: clamp(40px, 3.6vw, 72px) 0 0; display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 0;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.lg-facts div { padding: 18px clamp(28px, 3vw, 64px) 18px 0; }
.lg-facts div + div { padding-left: clamp(28px, 3vw, 64px); border-left: 1px solid var(--line); }
.lg-facts dt { font-size: 12px; font-weight: 500; text-transform: uppercase; color: var(--muted); }
.lg-facts dd { margin: 6px 0 0; font-size: clamp(15px, .3vw + 11px, 19px); font-weight: 500; letter-spacing: -0.02em; color: #111; }
.lg-draft { margin-top: 30px; max-width: 809px; padding: 16px 20px; border-left: 3px solid #c98a1b; background: #fbf4e6; font-size: 15px; font-weight: 400; line-height: 1.5; color: #4a3a17; }

.lg-body { margin-top: clamp(64px, 5vw, 110px); display: grid; grid-template-columns: var(--lg-side) minmax(0, 1fr); gap: var(--lg-gap); align-items: start; }
.lg-side { position: sticky; top: 110px; display: flex; flex-direction: column; gap: 44px; }
.lg-toc summary { display: flex; align-items: baseline; gap: 10px; list-style: none; margin-bottom: 14px; pointer-events: none; }
.lg-toc summary::-webkit-details-marker { display: none; }
.lg-toc summary span, .lg-docs h5 { font-size: 13px; font-weight: 500; text-transform: uppercase; color: var(--muted); }
.lg-toc summary small, .lg-toc summary i { display: none; }
.lg-toc ol { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.lg-toc li { border-bottom: 1px solid var(--line); }
.lg-toc a { position: relative; display: flex; gap: 14px; padding: 11px 0; font-size: clamp(15px, .25vw + 11px, 18px); color: #555; transition: color .3s, padding .4s var(--ease); }
.lg-toc a::after { content: ""; position: absolute; left: 0; bottom: -1px; height: 1px; width: 100%; background: #111; transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.lg-toc a:hover { color: #111; padding-left: 6px; }
.lg-toc a.is-active { color: #111; }
.lg-toc a.is-active::after { transform: scaleX(1); }
.lg-n { flex: none; font-size: 12px; color: var(--muted); padding-top: .25em; font-variant-numeric: tabular-nums; }
.lg-docs { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.lg-docs h5 { margin-bottom: 6px; }
.lg-docs a { font-size: clamp(15px, .25vw + 11px, 18px); color: #555; transition: color .3s; }
.lg-docs a:hover, .lg-docs a[aria-current] { color: #111; }
.lg-docs a[aria-current] { text-decoration: underline; text-underline-offset: 4px; }

.lg-text { max-width: calc(46em * var(--lg-text) / 17px); font-size: var(--lg-text); }
.lg-text section { scroll-margin-top: 110px; }
.lg-text section + section { margin-top: clamp(48px, 3.4vw, 76px); }
.lg-text h2 {
  display: flex; align-items: baseline; gap: 18px; padding-bottom: 16px; border-bottom: 1px solid var(--line);
  font-size: clamp(24px, .9vw + 12px, 36px); font-weight: 500; line-height: 1.1; letter-spacing: -0.045em; text-transform: uppercase;
}
.lg-text h2 .lg-n { font-size: 13px; letter-spacing: 0; padding-top: 0; }
.lg-copy p, .lg-copy li { font-size: 1em; font-weight: 500; line-height: 1.65; color: #3d3d3d; letter-spacing: -0.015em; }
.lg-copy p { margin-top: 1em; }
.lg-copy ul { margin: 1em 0 0; padding: 0; list-style: none; }
.lg-copy li { position: relative; padding-left: 22px; }
.lg-copy li::before { content: ""; position: absolute; left: 2px; top: .8em; width: 8px; height: 1px; background: #111; }
.lg-copy li + li { margin-top: .6em; }
.lg-copy strong { color: #111; font-weight: 600; }
.lg-copy a { color: #111; text-decoration: underline; text-underline-offset: 3px; }
.disclaimer a { text-decoration: underline; text-underline-offset: 2px; color: #d6d6d6; }

@media (max-width: 1199px) {
  .notify { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 809px) {
  .menu-foot { grid-template-columns: 1fr 1fr; gap: 22px 32px; }
  .menu-foot > div:first-child { grid-column: 1 / -1; }
  .inv-teaser { grid-template-columns: 1fr; gap: 40px; padding: 40px 16px 0; }
  .it-media { aspect-ratio: 4 / 3; }
  .notify { margin: 110px 16px; padding: 32px 20px; }
  .nt-fields { grid-template-columns: 1fr; }
  .nt-fields .btn { width: 100%; }
  .legal { padding: 104px 16px 110px; }
  .lg-facts { grid-template-columns: 1fr; }
  .lg-facts div, .lg-facts div + div { padding: 14px 0; border-left: 0; }
  .lg-facts div + div { border-top: 1px solid var(--line); }
}

.nf { min-height: 80vh; padding: 180px 24px 140px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.nf-title { margin-top: 40px; }
.nf-copy { margin-top: 26px; font-size: 19px; font-weight: 500; color: #555; }
.nf-actions { margin-top: 40px; display: flex; gap: 28px; align-items: center; }
.nf-actions .btn { width: 220px; }

/* =========================================================
   HOMEOWNERS
   ========================================================= */
.hw-intro { max-width: 860px; color: var(--muted); }
.page-homeowners .pg-hero { padding-bottom: 140px; }
.fld-file input::file-selector-button {
  margin-right: 14px; height: 34px; padding: 0 14px; border: 0; border-radius: 5px; background: var(--chip); color: #222;
  font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; transition: background .3s;
}
.fld-file input:hover::file-selector-button { background: #e3e3e3; }
.btn-outline { background: transparent; color: #111; box-shadow: inset 0 0 0 1px #222; }
.hw-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 40px; }
.hw-cta { width: 300px; }
.hw-portal { width: 240px; }
.hw-cover .sx-grid.hw-grid { max-width: none; grid-template-columns: repeat(3, 1fr); }
.hw-grid .sx-card { min-height: 400px; }
.hw-card-body { display: flex; flex-direction: column; gap: 22px; }
.hw-who { padding-top: 18px; border-top: 1px solid #2f2f2f; font-size: 14px !important; text-transform: uppercase; color: #9a9a9a !important; }
.hw-who b { color: #fff; font-weight: 700; }
.hw-who a, .hw-route a, .acc-body a { color: inherit; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.hw-link { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.hw-link .btn-plus { width: 11px; height: 11px; }
.hw-note { margin-top: 48px; font-size: 17px; font-weight: 500; color: #bdbdbd; letter-spacing: -0.02em; text-align: center; }
.hw-ticket .st-title { margin-bottom: 28px; }
.hw-lead { font-size: 18px; font-weight: 500; line-height: 1.5; letter-spacing: -0.02em; color: #444; max-width: 440px; }
.hw-steps { margin-top: 36px; border-top: 1px solid var(--line); max-width: 440px; }
.hw-steps li { display: flex; gap: 18px; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 16px; font-weight: 500; line-height: 1.45; letter-spacing: -0.02em; color: #1d1d1d; }
.hw-steps li > span:first-child { flex: none; width: 22px; color: var(--muted); font-variant-numeric: tabular-nums; }
.hw-urgent { margin-top: 32px; max-width: 440px; padding: 16px 18px; background: var(--chip); font-size: 15px; font-weight: 500; line-height: 1.5; color: #333; letter-spacing: -0.015em; }
.hw-type { margin-bottom: 8px; }
.hw-route { margin: 16px 0 4px; padding: 14px 16px; border-left: 2px solid #222; background: #f6f6f6; font-size: 15px; font-weight: 500; line-height: 1.5; color: #333; }
.hw-route[hidden] { display: none; }
.hw-ticket .ct-grid { margin-top: 32px; }
.fld-file input { padding: 10px 0 12px; font-size: 15px; cursor: pointer; }
.fld-file small { font-size: 13px; color: var(--muted); }
.hw-faq { padding-bottom: 170px; }
.acc-body a { color: #1d1d1d; }
@media (max-width: 1199px) {
  .contact { grid-template-columns: 1fr; gap: 56px; }     /* tablet: intro above the form, form full width */
  .hw-cover .sx-grid.hw-grid { grid-template-columns: 1fr; }
  .hw-grid .sx-card { min-height: 0; gap: 48px; }
}
@media (max-width: 809px) {
  .hw-actions { flex-direction: column; align-items: center; width: 100%; }
  .hw-cta, .hw-portal { width: 100%; max-width: 320px; }
  .page-homeowners .pg-hero { padding-bottom: 90px; }
  .hw-ticket.contact { gap: 40px; }
  .hw-ticket .ct-info { display: block; }       /* keep the explanation above the form here */
  .hw-faq { padding-bottom: 110px; }
}

/* Contact page: you are already there, so no Contact Us button in the header and no CONTACT US band in the footer */
.page-contact .header-cta, .page-contact .ft-band { display: none; }

/* hero headings on inner pages: same rise, without the blurred lower half */
.bt-plain .bt-soft { display: none; }
.bt-plain .bt-sharp { -webkit-mask-image: none; mask-image: none; }

/* =========================================================
   PHONE REFINEMENTS
   ========================================================= */
@media (max-width: 809px) {
  /* home hero: no image slider, the stat chip stays; the house fills the width */
  .hs-media { display: none; }
  .hs-stat { margin-top: 0; }
  .hero { --hwm: 1; overflow: hidden; }   /* the house image is cropped to the building, so full width shows all of it */
  .hero-house {
    width: calc(var(--hwm) * 100%); margin-left: calc((1 - var(--hwm)) * 50%); margin-right: 0;
    margin-top: calc(var(--fs) * -.4 - var(--peak) * var(--hwm) * (100vw - 32px) / var(--ratio));
  }
  @media (max-height: 720px) { .hero { --hwm: .9; } }
  .hero-tagline { font-size: 20px; }
  .hero-loc { font-size: 14px; }

  /* smaller section eyebrows */
  .tag { height: 28px; padding: 0 12px; gap: 9px; font-size: 11.5px; }

  /* text is simply there — no entrance animation (main.js also skips the word and timeline blur) */
  [data-reveal] { opacity: 1; transform: none; filter: none; transition: none; }
  [data-lines] .ln > span, .ab-title span, .pg-title span, .ft-big span,
  .bt-in, body.is-loading .bt-in { transform: none; transition: none; }
  .bt { clip-path: none; }

  /* FYNS Difference: a plus marks each card as tappable and turns to a cross when open */
  .edge-card { cursor: pointer; }
  .edge-card::after {
    content: ""; position: absolute; right: 22px; top: 32px; width: 16px; height: 16px;
    background:
      linear-gradient(currentColor, currentColor) center / 100% 1.5px no-repeat,
      linear-gradient(currentColor, currentColor) center / 1.5px 100% no-repeat;
    transition: transform .5s var(--ease);
  }
  .edge-card.is-active::after { transform: rotate(45deg); }

  /* About: eyebrow sits above "Held To A Higher Standard" */
  .st-head .tag { order: -1; }

  /* Investors: no call button in the hero */
  .inv-cta { display: none; }

  /* Contact: the form first, then the intro and the office details */
  .ct-info { display: contents; }
  .ct-form { order: 1; border-top: 0; padding-top: 0; }
  .ct-lead { order: 2; }
  .ct-block { order: 3; margin-top: 0; }
  .contact { gap: 36px; }
}

/* =========================================================
   TABLET (810–1199px)
   ========================================================= */
@media (max-width: 1199px) {
  /* accordions: answer below its question, so long questions never collide with it */
  .acc-head { grid-template-columns: 40px 1fr 24px; }
  .acc-body, .acc-item.is-open .acc-body { padding-left: 40px; padding-right: 0; margin-top: 0; }
  .acc-item.is-open .acc-head { padding-top: 0; align-items: center; }
  /* Investors value list: heading above the list instead of a narrow side column */
  .value { grid-template-columns: 1fr; }
  .value-sticky { position: relative; top: 0; padding: 0 0 48px; }
  /* footer: brand above Pages, Contact above Social, so the address isn't squeezed */
  .ft-top { flex-direction: column; align-items: flex-start; gap: 44px; }
  /* menu: links from the top, contact details pinned to the bottom, nothing beside them to get cut off */
  .menu { flex-direction: column; flex-wrap: nowrap; align-items: stretch; justify-content: space-between; gap: 40px; padding-top: 96px; padding-bottom: 32px; }
  .menu-foot { width: 100%; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 32px; }
}
@media (max-width: 809px) {
  .menu-foot { grid-template-columns: 1fr 1fr; }
  .menu-foot > div:first-child { grid-column: 1 / -1; }
}
/* portrait tablets: the hero stacks — letters, a full-width house, then tagline and slider side by side */
@media (min-width: 810px) and (max-width: 1199px) and (max-aspect-ratio: 1/1) {
  .hero {
    --fs: 21vw;
    display: grid; grid-template-columns: 1fr minmax(280px, 36%); grid-template-rows: 1fr auto auto auto; column-gap: 32px;
    min-height: 760px; padding: 96px 32px 32px;
  }
  .fyns-word { position: relative; top: auto; grid-column: 1 / -1; grid-row: 2; }
  .fyns-layer { padding: 0; }
  .hero-house {
    position: relative; left: auto; bottom: auto; grid-column: 1 / -1; grid-row: 3; width: 100%;
    margin-top: calc(var(--fs) * -.4 - var(--peak) * (100vw - 64px) / var(--ratio));
  }
  .hero-left { position: relative; left: auto; bottom: auto; grid-column: 1; grid-row: 4; align-self: end; margin-top: 28px; }
  .hero-right { position: relative; right: auto; bottom: auto; grid-column: 2; grid-row: 4; width: auto; min-width: 0; margin-top: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* project banner: full content width, 16:9 so 3:2 photos lose only a sliver top and bottom
   (no parallax here, which would crop more); phones use 4:3. Cropped a little above centre so
   near-square renderings keep their roofline */
.pg-media.pd-media { aspect-ratio: 16 / 9; }
.pg-media.pd-media img { top: 0; height: 100%; object-position: 50% 28%; transform: none !important; }
@media (max-width: 809px) { .pg-media.pd-media { aspect-ratio: 4 / 3; } }

@media (max-width: 1199px) {
  .lg-body { grid-template-columns: 1fr; gap: 40px; margin-top: 48px; }
  .lg-side { position: relative; top: 0; gap: 0; }
  .lg-docs { display: none; }
  .lg-toc { border: 1px solid var(--line); border-radius: 8px; }
  .lg-toc summary { pointer-events: auto; cursor: pointer; margin: 0; padding: 16px 18px; align-items: center; }
  .lg-toc summary small { display: inline; font-size: 13px; color: var(--muted); }
  .lg-toc summary i { display: block; margin-left: auto; width: 10px; height: 10px; border-right: 1.5px solid #111; border-bottom: 1.5px solid #111; transform: translateY(-3px) rotate(45deg); transition: transform .3s; }
  .lg-toc[open] summary i { transform: translateY(2px) rotate(-135deg); }
  .lg-toc ol { margin: 0 18px 8px; }
  .lg-toc li:last-child { border-bottom: 0; }
  .lg-text { max-width: 46em; }
}
