/* True Corridor Realtors: premium site
   Default (no JS / reduced motion) = everything visible and static.
   .motion  = JS allowed; .gsap = animation engine confirmed running. */

:root {
  --navy: #1B2A41;
  --night: #0F1828;
  --brass: #B4884A;
  --stone: #D8D3CA;
  --ivory: #F7F4EF;
  --ink: #18202C;
  --muted: #5F6570;
  --line: rgba(27, 42, 65, .14);
  --line-light: rgba(255, 255, 255, .16);
  --display: 'Marcellus', 'Times New Roman', serif;
  --body: 'Jost', system-ui, sans-serif;
  --gutter: clamp(16px, 4vw, 64px);
  --ease: cubic-bezier(.16, 1, .3, 1);
}

*, *::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; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font: 300 17px/1.7 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 400; margin: 0; line-height: 1.12; }
h2 { font-size: clamp(32px, 4.4vw, 60px); letter-spacing: -.01em; }
p { margin: 0 0 1em; }
em { font-style: normal; color: var(--brass); }
.wrap { width: 100%; max-width: 1320px; margin: 0 auto; padding: 0 var(--gutter); }
.label {
  font: 500 12px/1 var(--body);
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 22px;
}
.muted { color: var(--muted); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 300; background: var(--brass); color: #fff; padding: 10px 16px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 30px; min-height: 52px;
  font: 500 13px/1 var(--body); letter-spacing: .16em; text-transform: uppercase;
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: background .4s var(--ease), color .4s var(--ease), border-color .4s var(--ease);
}
.btn-brass { background: var(--brass); color: #fff; }
.btn-brass:hover { background: #fff; color: var(--navy); }
.btn-ghost { border-color: rgba(255,255,255,.45); color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--navy); border-color: #fff; }
.btn-line { border-color: var(--brass); color: var(--navy); }
.btn-line:hover { background: var(--navy); border-color: var(--navy); color: #fff; }

/* ---------- Loader ---------- */
.loader { display: none; }
.motion .loader {
  display: grid; place-items: center;
  position: fixed; inset: 0; z-index: 200;
  background: var(--night); color: #fff;
  animation: loaderFailsafe .6s ease 6s forwards; /* if JS never finishes */
}
@keyframes loaderFailsafe { to { opacity: 0; visibility: hidden; } }
.loader-inner { text-align: center; width: min(320px, 70vw); }
.loader-mark { width: 84px; height: 84px; margin: 0 auto 26px; stroke: var(--brass); stroke-width: 2; }
.loader-mark path { stroke-dasharray: 400; stroke-dashoffset: 400; animation: draw 1.6s var(--ease) forwards; }
.loader-mark path:nth-child(2) { animation-delay: .15s; }
.loader-mark path:nth-child(3) { animation-delay: .3s; }
.loader-mark .t { stroke: #fff; animation-delay: .55s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.loader-name { font: 400 22px/1 var(--display); letter-spacing: .06em; margin-bottom: 28px; }
.loader-name span { color: var(--brass); }
.loader-bar { height: 1px; background: rgba(255,255,255,.15); overflow: hidden; }
.loader-bar i { display: block; height: 100%; background: var(--brass); transform: scaleX(0); transform-origin: left; }
.loader-count { margin-top: 14px; font: 400 12px/1 var(--body); letter-spacing: .3em; color: rgba(255,255,255,.6); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: transform .6s var(--ease), background .4s ease, backdrop-filter .4s ease;
}
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 22px var(--gutter); }
.brand img { width: clamp(168px, 16vw, 214px); height: auto; }
.site-header.scrolled { background: rgba(15, 24, 40, .82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.site-header.scrolled .header-row { padding-top: 14px; padding-bottom: 14px; }
.site-header.hide { transform: translateY(-100%); }
.nav { display: flex; align-items: center; gap: clamp(20px, 2.6vw, 40px); }
.nav a {
  color: #fff; text-decoration: none; font: 400 13px/1 var(--body); letter-spacing: .18em; text-transform: uppercase;
  position: relative; padding: 6px 0;
}
.nav a:not(.nav-cta)::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--brass);
  transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease);
}
.nav a:not(.nav-cta):hover::after { transform: scaleX(1); transform-origin: left; }
.nav-cta { border: 1px solid var(--brass); padding: 13px 20px !important; transition: background .4s var(--ease); }
.nav-cta:hover { background: var(--brass); }
.nav-toggle { display: none; }

/* ---------- Chapter rail ---------- */
.rail {
  position: fixed; left: 26px; top: 50%; transform: translateY(-50%); z-index: 90;
  display: none; flex-direction: column; gap: 14px;
  mix-blend-mode: difference;
}
.rail a {
  display: flex; align-items: center; gap: 12px;
  color: rgba(255,255,255,.42); text-decoration: none;
  font: 500 10px/1 var(--body); letter-spacing: .24em; text-transform: uppercase;
  transition: color .4s ease;
}
.rail i { width: 6px; height: 6px; border: 1px solid currentColor; transition: background .4s ease, width .5s var(--ease); }
.rail a.active { color: #fff; }
.rail a.active i { background: #fff; width: 22px; }
@media (min-width: 1180px) { .rail { display: flex; } }

/* ---------- Hero ---------- */
.hero {
  position: relative; height: 100vh; height: 100svh; min-height: 560px;
  overflow: hidden; background: var(--night); color: #fff;
}
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(15,24,40,.55) 0%, rgba(15,24,40,.15) 35%, rgba(15,24,40,.25) 60%, rgba(15,24,40,.88) 100%);
}
.doors, .hero-intro { display: none; }
.gsap .doors { display: block; position: absolute; inset: 0; pointer-events: none; }
.door {
  position: absolute; bottom: 0; left: 50%;
  border: 1px solid var(--brass); border-bottom: 0;
  transform-origin: 50% 100%;
  will-change: transform, opacity;
}
/* Sizes are % of the hero; JS reads them back for the clip-path. */
.d1 { width: 16%; height: 42%; margin-left: -8%; }
.d2 { width: 32%; height: 58%; margin-left: -16%; opacity: .8; }
.d3 { width: 50%; height: 73%; margin-left: -25%; opacity: .55; }
.d4 { width: 70%; height: 87%; margin-left: -35%; opacity: .35; }
@media (max-width: 700px) {
  .d1 { width: 34%; height: 36%; margin-left: -17%; }
  .d2 { width: 54%; height: 52%; margin-left: -27%; }
  .d3 { width: 74%; height: 67%; margin-left: -37%; }
  .d4 { width: 92%; height: 82%; margin-left: -46%; }
}
.gsap .hero-intro {
  display: block; position: absolute; left: 0; right: 0; top: 17%;
  text-align: center; padding: 0 var(--gutter);
}
.intro-title { font: 400 clamp(34px, 5.4vw, 78px)/1.06 var(--display); margin: 0; text-shadow: 0 0 28px var(--night), 0 0 10px var(--night); }
.hero-copy {
  position: absolute; left: 0; right: 0; bottom: clamp(90px, 14vh, 140px);
  padding: 0 var(--gutter); max-width: 1320px; margin: 0 auto;
}
.hero h1 { font-size: clamp(40px, 6.2vw, 92px); line-height: 1.04; letter-spacing: -.015em; margin-bottom: 26px; }
.hero h1 .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero h1 .line > span { display: inline-block; }
.lede { max-width: 560px; font-size: clamp(16px, 1.3vw, 19px); color: rgba(255,255,255,.82); margin-bottom: 34px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hud {
  position: absolute; left: var(--gutter); right: var(--gutter); bottom: 22px;
  display: flex; justify-content: space-between; align-items: center;
  border-top: 1px solid var(--line-light); padding-top: 16px;
  font: 500 10px/1 var(--body); letter-spacing: .26em; text-transform: uppercase; color: rgba(255,255,255,.6);
}
.hud-scroll { display: inline-flex; align-items: center; gap: 10px; }
.hud-scroll i { width: 1px; height: 18px; background: var(--brass); animation: tick 2s var(--ease) infinite; transform-origin: top; }
@keyframes tick { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ---------- Stats ---------- */
.stats { background: var(--ivory); border-bottom: 1px solid var(--line); }
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: clamp(40px, 6vw, 72px) 12px; text-align: center; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat b { display: block; font: 400 clamp(44px, 5vw, 68px)/1 var(--display); color: var(--navy); margin-bottom: 12px; }
.stat span { font-size: 15px; color: var(--muted); }

/* ---------- Promise (editorial) ---------- */
.promise { padding: clamp(90px, 12vw, 170px) 0 clamp(80px, 10vw, 140px); }
.promise-row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 7vw, 120px); align-items: center; }
.promise-media { margin: 0; aspect-ratio: 4 / 5; overflow: hidden; }
.promise-media img, .duo-card img { width: 100%; height: 100%; object-fit: cover; }
.promise-copy h2 { margin-bottom: 26px; color: var(--navy); }
.promise-copy p:not(.label) { color: var(--muted); max-width: 500px; margin-bottom: 34px; }
.duo { display: grid; grid-template-columns: 1.1fr 1fr 1fr; gap: clamp(16px, 2.4vw, 36px); margin-top: clamp(90px, 12vw, 170px); align-items: start; }
.duo-copy h2 { color: var(--navy); margin-bottom: 22px; font-size: clamp(30px, 3.4vw, 46px); }
.duo-copy p:not(.label) { color: var(--muted); max-width: 400px; }
.duo-card { position: relative; display: block; aspect-ratio: 3 / 4.2; overflow: hidden; text-decoration: none; color: #fff; }
.duo-card:nth-of-type(2) { margin-top: clamp(40px, 7vw, 110px); }
.duo-card img { transition: transform 1.4s var(--ease); }
.duo-card:hover img { transform: scale(1.06); }
.duo-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(15,24,40,.7)); }
.duo-card span {
  position: absolute; left: 26px; bottom: 24px; z-index: 1;
  font: 400 24px/1 var(--display); border-bottom: 1px solid rgba(255,255,255,.6); padding-bottom: 6px;
}
.duo-card span i { font-style: normal; color: var(--brass); margin-left: 6px; }

/* ---------- Verticals ---------- */
.verticals { background: #FFFDF9; padding: clamp(80px, 10vw, 140px) 0 0; }
.v-intro { margin-bottom: clamp(40px, 5vw, 70px); }
.v-intro h2 { color: var(--navy); max-width: 760px; }
.v-head {
  display: flex; align-items: center; gap: 24px;
  padding-top: 30px; padding-bottom: 30px;
  border-top: 1px solid var(--line);
}
.v-num { font: 400 18px/1 var(--display); color: var(--brass); width: 48px; }
.v-head h3 { font-size: clamp(22px, 2.2vw, 30px); color: var(--navy); flex: 1; text-align: right; }
.v-dash { width: 28px; height: 1px; background: var(--navy); }
.v-media { position: relative; height: clamp(520px, 92vh, 860px); overflow: hidden; color: #fff; }
.v-media img { position: absolute; inset: -8% 0; width: 100%; height: 116%; object-fit: cover; }
.v-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15,24,40,.2), rgba(15,24,40,.62)); }
.v-copy {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 1;
  width: min(780px, calc(100% - 2 * var(--gutter))); text-align: center;
}
.v-title { font: 400 clamp(40px, 6vw, 88px)/1 var(--display); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 26px; }
.v-copy p:not(.v-title) { font-size: clamp(16px, 1.4vw, 19px); color: rgba(255,255,255,.88); }
.v-copy ul { list-style: none; padding: 0; margin: 22px 0 0; display: flex; justify-content: center; flex-wrap: wrap; gap: 10px 28px; }
.v-copy li { font: 500 12px/1 var(--body); letter-spacing: .22em; text-transform: uppercase; }
.v-copy li::before { content: ''; display: inline-block; width: 5px; height: 5px; background: var(--brass); margin-right: 10px; vertical-align: middle; }

/* ---------- Process ---------- */
.process { background: var(--navy); color: #fff; padding: clamp(100px, 12vw, 170px) 0; }
.process-row { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(40px, 8vw, 130px); align-items: start; }
.process-head { position: sticky; top: 22vh; }
.process-head h2 { margin-bottom: 24px; }
.process .muted { color: rgba(255,255,255,.62); max-width: 440px; }
.steps-wrap { position: relative; padding-left: 40px; }
.progress { position: absolute; left: 0; top: 0; bottom: 0; width: 1px; background: var(--line-light); }
.progress i { position: absolute; inset: 0; background: var(--brass); transform-origin: top; }
.steps { list-style: none; margin: 0; padding: 0; }
.step { display: grid; grid-template-columns: 70px 1fr; gap: 10px; padding: clamp(36px, 7vh, 70px) 0; border-bottom: 1px solid var(--line-light); }
.step:first-child { padding-top: 0; }
.step-num { font: 400 15px/1.6 var(--display); color: var(--brass); }
.step h3 { font-size: clamp(26px, 2.6vw, 36px); margin-bottom: 14px; }
.step p { color: rgba(255,255,255,.66); margin: 0; max-width: 460px; }
.gsap .step { opacity: .28; transition: opacity .7s var(--ease); }
.gsap .step.active { opacity: 1; }

/* ---------- Corridors ---------- */
.corridors { background: var(--night); color: #fff; padding: clamp(80px, 9vw, 120px) 0 clamp(60px, 7vw, 100px); overflow: hidden; }
.c-top { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: clamp(36px, 5vw, 60px); }
.c-count { font: 400 18px/1 var(--display); color: rgba(255,255,255,.5); margin: 0; }
.c-now { color: var(--brass); }
.c-viewport { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.c-viewport::-webkit-scrollbar { display: none; }
.c-track { list-style: none; margin: 0; padding: 0 var(--gutter); display: flex; gap: clamp(18px, 2.4vw, 40px); width: max-content; }
.c-card { width: min(78vw, 640px); scroll-snap-align: start; }
.c-card figure { margin: 0 0 22px; aspect-ratio: 16 / 11; overflow: hidden; }
.c-card img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); }
.c-num { font: 400 14px/1 var(--display); color: var(--brass); }
.c-card h3 { font-size: clamp(26px, 2.6vw, 38px); margin: 10px 0 8px; }
.c-card p { color: rgba(255,255,255,.6); margin: 0; }
.gsap .c-viewport.pinned { overflow: visible; }
/* Desktop pin: whole section fits one screen */
@media (min-width: 901px) {
  .gsap .corridors { height: 100vh; display: flex; flex-direction: column; justify-content: center; padding: 70px 0 30px; }
  .gsap .c-card { width: calc(min(46vh, 440px) * 1.45); }
  .gsap .c-card figure { aspect-ratio: auto; height: min(46vh, 440px); }
}

/* ---------- Statement ---------- */
.statement { background: var(--stone); padding: clamp(110px, 14vw, 200px) 0; }
.statement-text {
  font: 400 clamp(34px, 5.2vw, 76px)/1.14 var(--display); color: var(--navy);
  max-width: 1120px; margin: 0 auto; text-align: center; letter-spacing: -.01em;
}
.statement-text .w { display: inline-block; }

/* ---------- Contact ---------- */
.contact { background: var(--night); color: #fff; padding: clamp(100px, 12vw, 160px) 0; }
.contact-row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 120px); }
.contact h2 { margin-bottom: 24px; }
.contact .muted { color: rgba(255,255,255,.62); max-width: 460px; }
.contact-lines { list-style: none; padding: 0; margin: 40px 0 0; }
.contact-lines li { display: flex; gap: 24px; padding: 16px 0; border-top: 1px solid var(--line-light); }
.contact-lines span { width: 100px; font: 500 11px/2 var(--body); letter-spacing: .22em; text-transform: uppercase; color: var(--brass); }
.contact-lines a { text-decoration: none; }
.contact-lines a:hover { color: var(--brass); }
.enquiry { display: grid; gap: 22px; }
.enquiry label { display: grid; gap: 8px; font: 500 11px/1 var(--body); letter-spacing: .2em; text-transform: uppercase; color: rgba(255,255,255,.6); }
.enquiry input, .enquiry select, .enquiry textarea {
  width: 100%; background: transparent; color: #fff;
  border: 0; border-bottom: 1px solid rgba(255,255,255,.28); border-radius: 0;
  padding: 12px 0; font: 300 17px/1.4 var(--body); letter-spacing: 0; text-transform: none;
  transition: border-color .3s ease;
}
.enquiry select option { color: var(--ink); }
.enquiry input:focus, .enquiry select:focus, .enquiry textarea:focus { outline: none; border-color: var(--brass); }
.enquiry .two { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.enquiry .btn { justify-self: start; margin-top: 8px; }
.hp { position: absolute; left: -9999px; }
.fineprint { font-size: 13px; color: rgba(255,255,255,.45); margin: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--night); color: rgba(255,255,255,.7); border-top: 1px solid var(--line-light); padding-top: clamp(60px, 8vw, 100px); overflow: hidden; }
.footer-cols { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.f-brand p { max-width: 340px; margin-top: 24px; font-size: 15px; }
.f-col { display: flex; flex-direction: column; gap: 12px; }
.f-col h4 { font: 500 11px/1 var(--body); letter-spacing: .24em; text-transform: uppercase; color: var(--brass); margin-bottom: 8px; }
.f-col a { text-decoration: none; font-size: 15px; }
.f-col a:hover { color: #fff; }
.f-word {
  font: 400 clamp(64px, 15.5vw, 250px)/.9 var(--display); color: rgba(255,255,255,.05);
  white-space: nowrap; text-align: center; margin: clamp(50px, 7vw, 90px) 0 0; letter-spacing: -.02em;
}
.f-bottom { display: flex; justify-content: space-between; padding-top: 22px; padding-bottom: 26px; border-top: 1px solid var(--line-light); font-size: 13px; }
.f-bottom p { margin: 0; }
.f-bottom a { text-decoration: none; }

/* ---------- Cursor (fine pointers only, added by JS) ---------- */
.cursor {
  position: fixed; left: 0; top: 0; z-index: 250; pointer-events: none;
  width: 38px; height: 38px; margin: -19px 0 0 -19px; border-radius: 50%;
  border: 1px solid var(--brass); mix-blend-mode: difference;
  transition: width .4s var(--ease), height .4s var(--ease), margin .4s var(--ease), background .4s ease;
}
.cursor.grow { width: 76px; height: 76px; margin: -38px 0 0 -38px; background: rgba(180,136,74,.25); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .nav-toggle {
    display: grid; gap: 7px; place-content: center;
    width: 46px; height: 46px; background: transparent; border: 1px solid rgba(255,255,255,.35); cursor: pointer; z-index: 2;
  }
  .nav-toggle span { display: block; width: 20px; height: 1px; background: #fff; transition: transform .4s var(--ease); }
  .nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .nav {
    position: fixed; inset: 0; background: var(--night);
    flex-direction: column; justify-content: center; gap: 30px;
    opacity: 0; visibility: hidden; transition: opacity .5s var(--ease), visibility .5s;
  }
  .nav.open { opacity: 1; visibility: visible; }
  .nav a { font: 400 30px/1 var(--display); letter-spacing: .02em; text-transform: none; }
  .nav-cta { font: 500 13px/1 var(--body) !important; letter-spacing: .16em !important; text-transform: uppercase !important; }
  .stats-row { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .promise-row, .process-row, .contact-row { grid-template-columns: 1fr; }
  .promise-media { aspect-ratio: 4 / 3.4; }
  .duo { grid-template-columns: 1fr 1fr; }
  .duo-copy { grid-column: 1 / -1; }
  .duo-card:nth-of-type(2) { margin-top: 40px; }
  .process-head { position: static; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .f-brand { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .hero-copy { bottom: 84px; }
  .hero h1 { font-size: 35px; }
  .hero-actions .btn { width: 100%; }
  .hud span:first-child { display: none; }
  .hud { justify-content: center; }
  .stat span { font-size: 13px; }
  .enquiry .two { grid-template-columns: 1fr; }
  .enquiry .btn { width: 100%; }
  .v-media { height: 78vh; }
  .footer-cols { grid-template-columns: 1fr; }
  .f-bottom { flex-direction: column; gap: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .c-card img { transform: none; }
}
