/* ============================================================
   ECOLUX DEVELOPMENTS — Design System
   Dark sustainable-luxury theme · Playfair Display + Manrope
   ============================================================ */

:root {
  --bg: #070b09;
  --bg-2: #0b120e;
  --bg-3: #101a14;
  --surface: rgba(255, 255, 255, .04);
  --line: rgba(212, 180, 131, .16);
  --line-soft: rgba(255, 255, 255, .08);
  --gold: #d4b483;
  --gold-bright: #ecd9ae;
  --gold-deep: #a9895b;
  --green: #4c8f6b;
  --green-soft: #7fb99a;
  --ink: #f4f1e8;
  --ink-dim: #b9b4a4;
  --ink-faint: #7d7a6d;
  --ff-display: "Playfair Display", Georgia, serif;
  --ff-body: "Manrope", "Segoe UI", sans-serif;
  --ease: cubic-bezier(.22, .8, .24, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
  --shadow-lg: 0 30px 80px -20px rgba(0, 0, 0, .65);
  --radius: 18px;
}

/* ---------- Light theme ---------- */
html.light-mode {
  --bg: #f5f2ea;
  --bg-2: #ede9dd;
  --bg-3: #e4decf;
  --surface: rgba(30, 35, 28, .05);
  --line: rgba(140, 110, 60, .3);
  --line-soft: rgba(30, 30, 20, .12);
  --gold: #a37f2c;
  --gold-bright: #c9a458;
  --gold-deep: #83652a;
  --green: #3c7a57;
  --green-soft: #35704e;
  --ink: #20261f;
  --ink-dim: #4f554a;
  --ink-faint: #7e8175;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }
html:focus-within { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--ff-body);
  font-size: clamp(15px, 1.05vw + 10px, 17px);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  min-height: 100vh;
}

/* film grain */
body::after {
  content: "";
  position: fixed; inset: -50%;
  width: 200%; height: 200%;
  pointer-events: none; z-index: 9990;
  opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 9s steps(10) infinite;
}
@keyframes grain {
  0%,100% { transform: translate(0,0); } 10% { transform: translate(-3%,-6%); }
  30% { transform: translate(4%,3%); } 50% { transform: translate(-4%,6%); }
  70% { transform: translate(6%,-3%); } 90% { transform: translate(-2%,4%); }
}

::selection { background: var(--gold); color: #14100a; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--gold-deep), #5c4a2f);
  border-radius: 8px; border: 2px solid var(--bg);
}

/* ---------- Typography ---------- */
h1, h2, h3, .display { font-family: var(--ff-display); font-weight: 600; line-height: 1.12; letter-spacing: .01em; }

.h-display { font-size: clamp(2.6rem, 6.2vw, 5.4rem); }
.h-1 { font-size: clamp(2.2rem, 4.6vw, 3.9rem); }
.h-2 { font-size: clamp(1.7rem, 3.2vw, 2.6rem); }
.h-3 { font-size: clamp(1.25rem, 2vw, 1.6rem); }

.text-dim { color: var(--ink-dim); }
.text-gold { color: var(--gold); }
.text-green { color: var(--green-soft); }
.italic-accent { font-style: italic; color: var(--gold); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 14px;
  font-size: .72rem; font-weight: 700; letter-spacing: .42em;
  text-transform: uppercase; color: var(--gold);
}
.eyebrow::before { content: ""; width: 44px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold)); }
.eyebrow.center::after { content: ""; width: 44px; height: 1px; background: linear-gradient(90deg, var(--gold), transparent); }

.lead { font-size: clamp(1.02rem, 1.3vw, 1.22rem); color: var(--ink-dim); max-width: 62ch; }

/* ---------- Layout ---------- */
.container { width: min(1200px, 92vw); margin-inline: auto; }
.container-wide { width: min(1360px, 94vw); margin-inline: auto; }
.section { padding: clamp(4.5rem, 9vw, 8.5rem) 0; position: relative; }
.section-tight { padding: clamp(3rem, 6vw, 5rem) 0; }
.section-head { max-width: 780px; margin-bottom: clamp(2.5rem, 5vw, 4.5rem); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head .h-1, .section-head .h-2 { margin-top: 18px; }
.section-head p { margin-top: 18px; }

.bg-alt { background: var(--bg-2); }
.bg-panel {
  background:
    radial-gradient(60% 90% at 85% 10%, rgba(76, 143, 107, .08), transparent 60%),
    radial-gradient(50% 80% at 10% 90%, rgba(212, 180, 131, .07), transparent 60%),
    var(--bg-2);
}

.gold-rule { width: 100%; height: 1px; background: linear-gradient(90deg, transparent, var(--line), transparent); }

/* ---------- Buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; gap: 12px;
  padding: 16px 34px; border: none; border-radius: 100px;
  font-weight: 700; font-size: .78rem; letter-spacing: .22em; text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden; transition: transform .45s var(--ease-spring), box-shadow .45s var(--ease);
  isolation: isolate;
}
.btn span { position: relative; z-index: 2; }
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(120deg, var(--gold-bright), var(--gold) 45%, var(--gold-deep));
  background-size: 200% 100%; transition: background-position .6s var(--ease);
}
.btn:hover { transform: translateY(-3px); box-shadow: 0 18px 44px -12px rgba(212, 180, 131, .45); }
.btn:hover::before { background-position: 100% 0; }
.btn .arr { position: relative; z-index: 2; transition: transform .4s var(--ease); }
.btn:hover .arr { transform: translateX(5px); }

.btn-ghost { background: transparent; border: 1px solid var(--line); color: var(--ink); }
.btn-ghost::before { background: rgba(212, 180, 131, .1); }
.btn-ghost:hover { border-color: var(--gold); }
.btn-ghost::after {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: var(--gold); transform: scaleX(0); transform-origin: right;
  transition: transform .5s var(--ease); z-index: 1;
}
.btn-ghost:hover::after { transform: scaleX(1); transform-origin: left; }
.btn-ghost:hover { color: #14100a; }
.btn-ghost span, .btn-ghost .arr { z-index: 2; }

.text-link {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--gold); font-weight: 700; font-size: .8rem;
  letter-spacing: .22em; text-transform: uppercase;
}
.text-link .arr { transition: transform .35s var(--ease); }
.text-link:hover .arr { transform: translateX(6px); }

/* ---------- Preloader ---------- */
#preloader {
  position: fixed; inset: 0; z-index: 10000;
  background: var(--bg);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 26px;
  transition: opacity .8s var(--ease), visibility .8s;
}
#preloader.done { opacity: 0; visibility: hidden; }
.pre-mark {
  width: 84px; height: 84px; border-radius: 50%;
  border: 1px solid var(--line); display: grid; place-items: center;
  font-family: var(--ff-display); font-size: 1.7rem; color: var(--gold);
  animation: prePulse 1.8s var(--ease) infinite;
}
@keyframes prePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(212,180,131,.25); transform: scale(1); }
  50% { box-shadow: 0 0 0 22px rgba(212,180,131,0); transform: scale(1.05); }
}
.pre-bar { width: 160px; height: 1px; background: var(--line-soft); overflow: hidden; }
.pre-bar i { display: block; height: 100%; width: 40%; background: var(--gold); animation: preSlide 1.1s var(--ease) infinite; }
@keyframes preSlide { 0% { transform: translateX(-120%); } 100% { transform: translateX(420%); } }
.pre-word { font-size: .68rem; letter-spacing: .5em; text-transform: uppercase; color: var(--ink-faint); }

/* ---------- Header / Nav ---------- */
.progress-bar {
  position: fixed; top: 0; left: 0; height: 3px; width: 100%;
  transform-origin: left; transform: scaleX(0);
  background: linear-gradient(90deg, var(--green), var(--gold), var(--gold-bright));
  z-index: 9950;
}

.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 9900;
  transition: background .5s var(--ease), box-shadow .5s var(--ease), backdrop-filter .5s;
}
.site-header.scrolled {
  background: rgba(7, 11, 9, .82);
  backdrop-filter: blur(18px);
  box-shadow: 0 1px 0 var(--line-soft);
}
.nav-inner {
  width: min(1360px, 94vw); margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 0; transition: padding .4s var(--ease);
}
.site-header.scrolled .nav-inner { padding: 12px 0; }

.brand { display: flex; align-items: center; gap: 14px; }
.brand img { height: 52px; width: auto; transition: height .4s var(--ease); filter: drop-shadow(0 4px 14px rgba(0,0,0,.4)); }
.site-header.scrolled .brand img { height: 42px; }
.brand-text { line-height: 1.1; }
.brand-text b { font-family: var(--ff-display); font-size: 1.05rem; letter-spacing: .06em; display: block; }
.brand-text small { font-size: .58rem; letter-spacing: .38em; color: var(--gold); text-transform: uppercase; }

.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
  position: relative; padding: 10px 16px;
  font-size: .74rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
  color: var(--ink-dim); transition: color .3s;
}
.nav-links a::after {
  content: ""; position: absolute; left: 16px; right: 16px; bottom: 4px; height: 1px;
  background: var(--gold); transform: scaleX(0); transform-origin: right;
  transition: transform .4s var(--ease);
}
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); transform-origin: left; }

.nav-cta { display: flex; align-items: center; gap: 18px; }
.nav-socials { display: flex; gap: 8px; }
.nav-socials a {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--line-soft); color: var(--ink-dim);
  transition: all .35s var(--ease);
}
.nav-socials a:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-2px); }
.nav-socials svg { width: 14px; height: 14px; }

.burger { display: none; background: none; border: none; width: 44px; height: 44px; position: relative; z-index: 9950; }
.burger i {
  position: absolute; left: 10px; right: 10px; height: 2px; background: var(--ink);
  transition: all .4s var(--ease);
}
.burger i:nth-child(1) { top: 15px; } .burger i:nth-child(2) { top: 22px; } .burger i:nth-child(3) { top: 29px; }
.burger.open i:nth-child(1) { top: 22px; transform: rotate(45deg); background: var(--gold); }
.burger.open i:nth-child(2) { opacity: 0; }
.burger.open i:nth-child(3) { top: 22px; transform: rotate(-45deg); background: var(--gold); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 9900;
  display: flex; flex-direction: column; justify-content: flex-start;
  padding: calc(70px + 4vh) 8vw 20px;
  background:
    radial-gradient(60% 40% at 88% 0%, rgba(76, 143, 107, .18), transparent 62%),
    radial-gradient(55% 45% at 0% 100%, rgba(212, 180, 131, .13), transparent 62%),
    rgba(7, 11, 9, .985);
  backdrop-filter: blur(20px);
  clip-path: circle(0% at calc(100% - 52px) 44px);
  transition: clip-path .7s var(--ease);
  overflow: hidden;
}
.mobile-menu.open { clip-path: circle(150% at calc(100% - 52px) 44px); }
.mm-watermark {
  position: absolute; left: 50%; transform: translateX(-50%); bottom: 24px; z-index: 0;
  pointer-events: none; user-select: none; white-space: nowrap;
  font-family: var(--ff-display); font-style: italic; font-size: clamp(3.8rem, 19vw, 10rem); line-height: 1;
  color: transparent; -webkit-text-stroke: 1px rgba(212, 180, 131, .18);
}
.mm-nav { position: relative; z-index: 1; display: grid; }
.mm-nav a {
  display: flex; align-items: baseline; gap: 18px;
  padding: clamp(9px, 1.9vh, 17px) 0;
  border-bottom: 1px solid var(--line-soft);
  font-family: var(--ff-display); font-size: clamp(1.5rem, 5.6vw, 2.25rem); line-height: 1.15;
  color: var(--ink-dim);
  transform: translateY(26px); opacity: 0;
  transition: transform .55s var(--ease), opacity .55s var(--ease), color .3s, padding-left .35s var(--ease);
}
.mobile-menu.open .mm-nav a { transform: none; opacity: 1; }
.mm-nav a small {
  font-family: var(--ff-body); font-size: .64rem; font-weight: 700;
  letter-spacing: .32em; color: var(--gold); min-width: 26px;
}
.mm-nav a .mm-arr {
  margin-left: auto; font-style: normal; font-size: .75em; color: var(--gold);
  opacity: 0; transform: translateX(-10px); transition: all .3s var(--ease);
}
.mm-nav a:hover, .mm-nav a.mm-active { color: var(--gold-bright); }
.mm-nav a.mm-active span { font-style: italic; }
.mm-nav a.mm-active small { color: var(--green-soft); }
.mm-nav a:hover { padding-left: 10px; }
.mm-nav a:hover .mm-arr { opacity: 1; transform: none; }
.mm-footer {
  position: relative; z-index: 1; margin-top: clamp(18px, 4.5vh, 44px); padding-top: 18px;
  border-top: 1px solid var(--line-soft);
  display: grid; gap: 11px; justify-items: start;
  opacity: 0; transform: translateY(14px);
  transition: opacity .5s var(--ease) .35s, transform .5s var(--ease) .35s;
}
.mobile-menu.open .mm-footer { opacity: 1; transform: none; }
.mm-socials { display: flex; gap: 10px; }
.mobile-menu .mm-socials { display: flex; gap: 10px; }
.mm-socials a {
  width: 42px; height: 42px; padding: 0;
  display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: 50%;
  color: var(--ink-dim); transition: all .3s var(--ease);
}
.mm-socials a:hover { color: var(--gold); border-color: var(--gold); transform: translateY(-2px); }
.mm-socials svg { width: 16px; height: 16px; }
.mm-mail { font-family: var(--ff-display); font-size: 1.08rem; color: var(--ink); transition: color .3s; }
.mm-mail:hover { color: var(--gold); }
.mm-tag { font-size: .68rem; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-faint); }

/* keep the menu fitting smaller / landscape phones with no scrolling */
@media (max-height: 800px) {
  .mobile-menu { padding-top: 86px; padding-bottom: 12px; }
  .mm-nav a { padding: 7px 0; font-size: clamp(1.3rem, 5vw, 1.8rem); }
  .mm-footer { padding-top: 12px; gap: 7px; }
  .mm-socials a { width: 36px; height: 36px; }
  .mm-mail { font-size: .95rem; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: center;
  overflow: hidden;
}
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media img {
  width: 100%; height: 118%; object-fit: cover; object-position: center 30%;
  transform: translateY(-6%);
  animation: heroZoom 14s var(--ease) forwards;
  filter: saturate(.85) brightness(.7);
}
@keyframes heroZoom { from { transform: translateY(-6%) scale(1.14); } to { transform: translateY(-2%) scale(1); } }
.hero-veil {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(180deg, rgba(7,11,9,.72) 0%, rgba(7,11,9,.28) 42%, rgba(7,11,9,.92) 100%),
    radial-gradient(70% 60% at 22% 62%, rgba(7,11,9,.55), transparent 70%);
}
.hero-glow {
  position: absolute; z-index: 1; border-radius: 50%; filter: blur(90px); opacity: .5;
  animation: floatOrb 12s ease-in-out infinite alternate;
}
.hero-glow.g1 { width: 46vw; height: 46vw; left: -12vw; top: 16vh; background: radial-gradient(circle, rgba(76,143,107,.35), transparent 65%); }
.hero-glow.g2 { width: 34vw; height: 34vw; right: -8vw; bottom: -6vh; background: radial-gradient(circle, rgba(212,180,131,.3), transparent 65%); animation-delay: -6s; }
@keyframes floatOrb { from { transform: translate3d(0,0,0) scale(1); } to { transform: translate3d(4vw,-5vh,0) scale(1.12); } }

#particles { position: absolute; inset: 0; z-index: 2; pointer-events: none; }

.hero-content { position: relative; z-index: 3; padding-top: clamp(96px, 12vh, 150px); padding-bottom: clamp(120px, 17vh, 180px); }
.hero-title { margin: 26px 0 20px; max-width: 15ch; }
.hero-title .line { display: block; overflow: hidden; }
.hero-title .line > span {
  display: block; transform: translateY(110%);
  animation: lineUp 1.1s var(--ease) forwards;
}
.hero-title .line:nth-child(2) > span { animation-delay: .14s; }
.hero-title .line:nth-child(3) > span { animation-delay: .28s; }
@keyframes lineUp { to { transform: none; } }

.hero-sub { max-width: 46ch; color: var(--ink-dim); opacity: 0; animation: fadeUp 1s var(--ease) .7s forwards; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 40px; opacity: 0; animation: fadeUp 1s var(--ease) .9s forwards; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }

.hero-badge {
  position: absolute; right: 6vw; bottom: 12vh; z-index: 3;
  width: 128px; height: 128px; border-radius: 50%;
  display: grid; place-items: center; text-align: center;
  border: 1px dashed var(--line);
  font-size: .58rem; letter-spacing: .3em; text-transform: uppercase; color: var(--gold);
  animation: spinSlow 26s linear infinite; opacity: 0; animation-delay: 1.4s;
}
@keyframes spinSlow { to { transform: rotate(360deg); } }

.scroll-hint {
  position: absolute; left: 50%; bottom: 34px; transform: translateX(-50%); z-index: 3;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-size: .6rem; letter-spacing: .4em; text-transform: uppercase; color: var(--ink-faint);
  opacity: 0; animation: fadeUpCenter 1s var(--ease) 1.6s forwards;
}
@keyframes fadeUpCenter {
  from { opacity: 0; transform: translate(-50%, 26px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}
.scroll-hint .mouse { width: 24px; height: 38px; border: 1px solid var(--line); border-radius: 14px; position: relative; }
.scroll-hint .mouse::after {
  content: ""; position: absolute; left: 50%; top: 7px; width: 3px; height: 7px; margin-left: -1.5px;
  border-radius: 3px; background: var(--gold); animation: wheel 1.8s var(--ease) infinite;
}
@keyframes wheel { 0% { opacity: 1; transform: translateY(0); } 70% { opacity: 0; transform: translateY(12px); } 100% { opacity: 0; } }

/* hero stats strip */
.hero-stats {
  position: relative; z-index: 3;
  margin-top: clamp(3rem, 7vh, 5.5rem);
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  backdrop-filter: blur(8px);
  opacity: 0; animation: fadeUp 1s var(--ease) 1.1s forwards;
}
.hero-stats > div { background: rgba(7,11,9,.55); padding: 22px 26px; }
.stat-num { font-family: var(--ff-display); font-size: clamp(1.7rem, 3vw, 2.5rem); color: var(--gold); line-height: 1; }
.stat-num sup { font-size: .5em; color: var(--green-soft); }
.stat-label { margin-top: 8px; font-size: .66rem; letter-spacing: .26em; text-transform: uppercase; color: var(--ink-faint); }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; border-block: 1px solid var(--line-soft); background: var(--bg-2); padding: 20px 0; }
.marquee-track { display: flex; width: max-content; animation: marquee 60s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused !important; }
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee-item {
  display: flex; align-items: center; gap: 64px; padding-right: 64px; white-space: nowrap;
  font-family: var(--ff-display); font-size: 1.15rem; color: var(--ink-faint); letter-spacing: .08em;
}
.marquee-item i { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); display: inline-block; }

/* ---------- Cards / grids ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }

.card {
  position: relative; border: 1px solid var(--line-soft); border-radius: var(--radius);
  background: var(--surface); overflow: hidden;
  transition: transform .55s var(--ease), border-color .45s, box-shadow .55s var(--ease);
}
.card:hover { transform: translateY(-8px); border-color: var(--line); box-shadow: var(--shadow-lg); }

.card-media { position: relative; overflow: hidden; aspect-ratio: 4 / 3; }
.card-media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.1s var(--ease), filter .8s;
  filter: saturate(.9);
}
.card:hover .card-media img { transform: scale(1.08); filter: saturate(1.05); }
.card-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(7,11,9,.75));
}
.card-chip {
  position: absolute; top: 16px; left: 16px; z-index: 2;
  padding: 7px 14px; border-radius: 100px; font-size: .6rem; font-weight: 700;
  letter-spacing: .24em; text-transform: uppercase;
  background: rgba(7,11,9,.72); backdrop-filter: blur(8px);
  border: 1px solid var(--line); color: var(--gold);
}
.card-chip.green { color: var(--green-soft); }
.card-body { padding: 26px 26px 28px; }
.card-body h3 { margin-bottom: 10px; }
.card-body p { color: var(--ink-dim); font-size: .95rem; }
.card-loc { display: flex; align-items: center; gap: 8px; margin-top: 16px; font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-faint); }
.card-loc svg { width: 13px; height: 13px; color: var(--green-soft); }
.card-link-overlay { position: absolute; inset: 0; z-index: 3; }

/* service tilt cards */
.tilt-card { transform-style: preserve-3d; will-change: transform; }
.tilt-card .card-num {
  font-family: var(--ff-display); font-size: 3.2rem; color: transparent;
  -webkit-text-stroke: 1px var(--line); line-height: 1; margin-bottom: 18px;
  transition: all .5s;
}
.card:hover .card-num { -webkit-text-stroke: 1px var(--gold); }
.tilt-card ul { margin-top: 18px; display: grid; gap: 9px; }
.tilt-card ul li { display: flex; gap: 10px; align-items: flex-start; color: var(--ink-dim); font-size: .92rem; }
.tilt-card ul li::before { content: "—"; color: var(--green-soft); flex-shrink: 0; }

/* ---------- Split feature (about) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: center; }
.frame {
  position: relative; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line-soft); box-shadow: var(--shadow-lg);
}
.frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.frame:hover img { transform: scale(1.05); }
.frame-ghost {
  position: absolute; inset: auto -22px -22px auto; width: 58%; aspect-ratio: 1;
  border-radius: var(--radius); border: 1px solid var(--line); z-index: -1;
}
.frame::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(200deg, rgba(212,180,131,.14), transparent 40%);
}
.value-pills { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.value-pill {
  padding: 10px 20px; border-radius: 100px; border: 1px solid var(--line);
  font-size: .7rem; font-weight: 700; letter-spacing: .24em; text-transform: uppercase;
  color: var(--gold); background: rgba(212,180,131,.05);
  transition: all .35s var(--ease);
}
.value-pill:hover { background: var(--gold); color: #14100a; transform: translateY(-2px); }

/* founder card */
.founder-quote {
  border-left: 2px solid var(--gold); padding: 8px 0 8px 26px; margin: 26px 0;
  font-family: var(--ff-display); font-style: italic; font-size: 1.18rem; color: var(--ink);
}

/* ---------- Timeline ---------- */
.timeline { position: relative; margin-top: 4rem; }
.timeline::before {
  content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 1px;
  background: linear-gradient(var(--line), transparent 96%);
  transform: translateX(-.5px);
}
.tl-item {
  position: relative; width: 50%; padding: 0 3.4rem 3.6rem 0; text-align: right;
}
.tl-item:nth-child(even) { margin-left: 50%; padding: 0 0 3.6rem 3.4rem; text-align: left; }
.tl-item::before {
  content: ""; position: absolute; top: 8px; right: -7px; width: 13px; height: 13px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--gold); box-shadow: 0 0 0 5px rgba(212,180,131,.12);
  transition: all .4s;
}
.tl-item:nth-child(even)::before { right: auto; left: -6px; }
.tl-item:hover::before { background: var(--gold); box-shadow: 0 0 0 9px rgba(212,180,131,.16); }
.tl-years { font-size: .68rem; letter-spacing: .3em; color: var(--green-soft); text-transform: uppercase; font-weight: 700; }
.tl-item h3 { margin: 10px 0 8px; font-size: 1.3rem; }
.tl-item p { color: var(--ink-dim); font-size: .93rem; max-width: 42ch; margin-left: auto; }
.tl-item:nth-child(even) p { margin-left: 0; }
.tl-status { display: inline-block; margin-top: 12px; font-size: .6rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; padding: 5px 12px; border-radius: 100px; border: 1px solid var(--line-soft); }
.tl-status.done { color: var(--green-soft); border-color: rgba(127,185,154,.35); }
.tl-status.active { color: var(--gold); border-color: var(--line); animation: blink 2.4s infinite; }
@keyframes blink { 50% { opacity: .45; } }

/* ---------- Project detail pages ---------- */
.page-hero {
  position: relative; padding: clamp(9rem, 18vh, 13rem) 0 clamp(3.5rem, 7vh, 5.5rem);
  overflow: hidden;
}
.page-hero .ph-bg {
  position: absolute; inset: 0; z-index: 0;
}
.page-hero .ph-bg img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.42) saturate(.8); }
.page-hero .ph-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(7,11,9,.55), var(--bg) 96%);
}
.page-hero .container { position: relative; z-index: 2; }
.crumb { display: flex; gap: 10px; font-size: .68rem; letter-spacing: .26em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 22px; }
.crumb a { color: var(--gold); }
.crumb a:hover { color: var(--gold-bright); }

.spec-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1px;
  background: var(--line-soft); border: 1px solid var(--line-soft); border-radius: var(--radius); overflow: hidden;
  margin-top: clamp(2.5rem, 5vw, 4rem);
}
.spec { background: var(--bg-2); padding: 24px 24px 26px; transition: background .4s; }
.spec:hover { background: var(--bg-3); }
.spec dt { font-size: .62rem; letter-spacing: .3em; text-transform: uppercase; color: var(--ink-faint); }
.spec dd { margin-top: 10px; font-family: var(--ff-display); font-size: 1.12rem; color: var(--gold); line-height: 1.35; }

/* gallery */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.g-item {
  position: relative; overflow: hidden; border-radius: 14px; cursor: zoom-in;
  border: 1px solid var(--line-soft); aspect-ratio: 4/3;
}
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.g-item::after {
  content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity .5s;
  background: linear-gradient(180deg, transparent 40%, rgba(212,180,131,.18)), rgba(7,11,9,.25);
}
.g-item:hover img { transform: scale(1.07); }
.g-item:hover::after { opacity: 1; }
.g-item.tall { grid-row: span 2; aspect-ratio: auto; min-height: 100%; }

/* lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(5, 8, 6, .94); backdrop-filter: blur(10px);
  display: grid; place-items: center;
  opacity: 0; visibility: hidden; transition: all .45s var(--ease);
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox img {
  max-width: 88vw; max-height: 84vh; border-radius: 12px;
  border: 1px solid var(--line); box-shadow: var(--shadow-lg);
  transform: scale(.92); transition: transform .45s var(--ease);
}
.lightbox.open img { transform: scale(1); }
.lb-btn {
  position: absolute; z-index: 2; width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(255,255,255,.05);
  border: 1px solid var(--line-soft); color: var(--ink); font-size: 1.2rem;
  transition: all .3s;
}
.lb-btn:hover { border-color: var(--gold); color: var(--gold); }
.lb-close { top: 26px; right: 26px; }
.lb-prev { left: 26px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 26px; top: 50%; transform: translateY(-50%); }
.lb-count { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); font-size: .7rem; letter-spacing: .3em; color: var(--ink-faint); }

/* ---------- Blog ---------- */
.post-card { display: flex; flex-direction: column; }
.post-date { font-size: .66rem; letter-spacing: .3em; text-transform: uppercase; color: var(--green-soft); font-weight: 700; }
.post-card h3 { margin: 12px 0; font-size: 1.35rem; line-height: 1.3; }
.post-card h3 a { transition: color .3s; }
.post-card h3 a:hover { color: var(--gold); }
.post-card p { color: var(--ink-dim); font-size: .93rem; flex: 1; }

.article { max-width: 760px; margin-inline: auto; }
.article-head { text-align: center; margin-bottom: clamp(2.5rem, 6vw, 4rem); }
.article-meta { display: flex; justify-content: center; gap: 22px; margin-top: 20px; font-size: .7rem; letter-spacing: .26em; text-transform: uppercase; color: var(--ink-faint); }
.article-meta .dot::before { content: "◆"; color: var(--gold); font-size: .55rem; }
.article h2 { margin: 2.6rem 0 1rem; font-size: clamp(1.4rem, 2.4vw, 1.8rem); color: var(--gold-bright); }
.article p { margin-bottom: 1.2rem; color: var(--ink-dim); }
.article ul { margin: 0 0 1.4rem 0; display: grid; gap: 12px; }
.article ul li { padding-left: 26px; position: relative; color: var(--ink-dim); }
.article ul li::before { content: ""; position: absolute; left: 0; top: .62em; width: 12px; height: 2px; background: var(--gold); }
.article blockquote {
  margin: 2.2rem 0; padding: 26px 30px; border: 1px solid var(--line); border-radius: var(--radius);
  background: rgba(212,180,131,.05);
  font-family: var(--ff-display); font-style: italic; font-size: 1.2rem; color: var(--ink);
}
.article-sign { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--line-soft); display: flex; align-items: center; gap: 18px; }
.article-sign img { width: 62px; height: 62px; border-radius: 50%; object-fit: cover; border: 2px solid var(--line); }
.article-sign b { display: block; font-family: var(--ff-display); font-size: 1.05rem; }
.article-sign small { color: var(--ink-faint); letter-spacing: .14em; text-transform: uppercase; font-size: .62rem; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(2.5rem, 6vw, 5rem); }
.info-row { display: flex; gap: 18px; align-items: flex-start; padding: 22px 0; border-bottom: 1px solid var(--line-soft); }
.info-ico {
  flex: 0 0 46px; width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(76,143,107,.12); border: 1px solid rgba(127,185,154,.25); color: var(--green-soft);
}
.info-row b { display: block; font-size: .72rem; letter-spacing: .28em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 4px; }
.info-row a, .info-row span { font-size: 1.02rem; color: var(--ink); }
.info-row a:hover { color: var(--gold); }

.form-wrap {
  position: relative; padding: clamp(1.8rem, 4vw, 3rem);
  border: 1px solid var(--line); border-radius: calc(var(--radius) + 6px);
  background:
    radial-gradient(120% 120% at 100% 0%, rgba(212,180,131,.06), transparent 50%),
    var(--bg-2);
}
.f-field { position: relative; margin-bottom: 26px; }
.f-field input, .f-field textarea {
  width: 100%; padding: 16px 18px; color: var(--ink);
  background: rgba(255,255,255,.03); border: 1px solid var(--line-soft); border-radius: 12px;
  font-family: inherit; font-size: .95rem; outline: none; resize: vertical;
  transition: border-color .3s, box-shadow .3s, background .3s;
}
.f-field input:focus, .f-field textarea:focus {
  border-color: var(--gold); box-shadow: 0 0 0 4px rgba(212,180,131,.1); background: rgba(255,255,255,.05);
}
.f-field label {
  position: absolute; left: 18px; top: 16px; padding: 0 6px; pointer-events: none;
  color: var(--ink-faint); font-size: .9rem; transition: all .25s var(--ease); background: transparent;
}
.f-field input:focus + label, .f-field input:not(:placeholder-shown) + label,
.f-field textarea:focus + label, .f-field textarea:not(:placeholder-shown) + label {
  top: -9px; left: 12px; font-size: .62rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold); background: var(--bg-2);
}
.f-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-note { font-size: .74rem; color: var(--ink-faint); margin-top: 14px; }
.form-status { margin-top: 16px; font-size: .9rem; display: none; align-items: center; gap: 10px; }
.form-status.ok { display: flex; color: var(--green-soft); }
.form-status.err { display: flex; color: #e08a7a; }
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative; overflow: hidden; text-align: center;
  border-radius: calc(var(--radius) + 10px);
  border: 1px solid var(--line);
  background:
    radial-gradient(90% 140% at 50% -20%, rgba(76,143,107,.22), transparent 55%),
    radial-gradient(70% 120% at 85% 110%, rgba(212,180,131,.14), transparent 55%),
    var(--bg-3);
  padding: clamp(3.5rem, 8vw, 6.5rem) clamp(1.5rem, 5vw, 4rem);
}
.cta-band h2 { max-width: 22ch; margin: 20px auto 16px; }
.cta-band p { max-width: 52ch; margin: 0 auto 34px; color: var(--ink-dim); }

/* ---------- Footer ---------- */
.site-footer { position: relative; margin-top: 4rem; background: var(--bg-2); border-top: 1px solid var(--line-soft); }
.footer-main { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 3rem; padding: clamp(3rem, 6vw, 4.5rem) 0; }
.footer-brand img { height: 64px; margin-bottom: 18px; }
.footer-brand p { color: var(--ink-dim); font-size: .92rem; max-width: 34ch; }
.footer-col b { display: block; font-size: .7rem; letter-spacing: .32em; text-transform: uppercase; color: var(--gold); margin-bottom: 20px; }
.footer-col ul { display: grid; gap: 11px; }
.footer-col a { color: var(--ink-dim); font-size: .92rem; transition: all .3s; display: inline-flex; align-items: center; gap: 8px; }
.footer-col a::before { content: ""; width: 0; height: 1px; background: var(--gold); transition: width .3s var(--ease); }
.footer-col a:hover { color: var(--ink); }
.footer-col a:hover::before { width: 16px; }
.news-form { display: flex; margin-top: 18px; border: 1px solid var(--line-soft); border-radius: 100px; overflow: hidden; background: rgba(255,255,255,.03); transition: border-color .3s; }
.news-form:focus-within { border-color: var(--gold); }
.news-form input { flex: 1; padding: 14px 20px; background: none; border: none; outline: none; color: var(--ink); font-family: inherit; font-size: .9rem; min-width: 0; }
.news-form button {
  padding: 0 22px; background: linear-gradient(120deg, var(--gold-bright), var(--gold), var(--gold-deep));
  border: none; color: #14100a; font-weight: 800; font-size: .66rem; letter-spacing: .22em; text-transform: uppercase;
  transition: filter .3s;
}
.news-form button:hover { filter: brightness(1.1); }
.footer-bottom {
  display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between;
  padding: 24px 0; border-top: 1px solid var(--line-soft);
  font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-faint);
}
.footer-socials { display: flex; gap: 10px; }

/* ---------- Utilities ---------- */
.reveal { opacity: 0; transform: translateY(36px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .1s; } .reveal.d2 { transition-delay: .2s; }
.reveal.d3 { transition-delay: .3s; } .reveal.d4 { transition-delay: .4s; }
.reveal.d5 { transition-delay: .5s; } .reveal.d6 { transition-delay: .6s; }
.reveal-l { opacity: 0; transform: translateX(-44px); transition: all .9s var(--ease); }
.reveal-l.in { opacity: 1; transform: none; }
.reveal-r { opacity: 0; transform: translateX(44px); transition: all .9s var(--ease); }
.reveal-r.in { opacity: 1; transform: none; }

.to-top {
  position: fixed; right: 26px; bottom: 26px; z-index: 9800;
  width: 50px; height: 50px; border-radius: 50%;
  background: rgba(7,11,9,.8); backdrop-filter: blur(8px);
  border: 1px solid var(--line); color: var(--gold);
  display: grid; place-items: center; font-size: 1.05rem;
  opacity: 0; visibility: hidden; transform: translateY(16px);
  transition: all .45s var(--ease);
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--gold); color: #14100a; transform: translateY(-3px); }

/* projects filter */
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 2.6rem; }
.filter-btn {
  padding: 11px 22px; border-radius: 100px; border: 1px solid var(--line-soft);
  background: none; color: var(--ink-dim); font-size: .68rem; font-weight: 700;
  letter-spacing: .22em; text-transform: uppercase; transition: all .35s var(--ease);
}
.filter-btn:hover { border-color: var(--line); color: var(--ink); }
.filter-btn.active { background: var(--gold); border-color: var(--gold); color: #14100a; }
.p-card.hide { display: none; }

/* ---------- 404 ---------- */
.nf-code {
  font-family: var(--ff-display); font-size: clamp(7rem, 24vw, 17rem); line-height: 1;
  background: linear-gradient(160deg, var(--gold-bright), var(--gold) 40%, transparent 90%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- Responsive ---------- */
@media (max-width: 1060px) {
  .nav-links, .nav-socials { display: none; }
  .burger { display: block; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .split, .contact-grid { grid-template-columns: 1fr; }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .timeline::before { left: 8px; }
  .tl-item, .tl-item:nth-child(even) { width: 100%; margin-left: 0; padding: 0 0 3rem 2.6rem; text-align: left; }
  .tl-item::before, .tl-item:nth-child(even)::before { left: 2px; right: auto; }
  .tl-item p { margin-left: 0; }
}
@media (max-width: 680px) {
  .grid-3, .grid-2, .f-row { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .footer-main { grid-template-columns: 1fr; gap: 2.2rem; }
  .hero-badge { display: none; }
  .lb-prev { left: 10px; } .lb-next { right: 10px; }
  .brand-text { display: none; }
  /* compact header so nothing wraps or covers the hero */
  .nav-inner { padding-top: 10px; padding-bottom: 10px; gap: 8px; }
  .brand img { height: 42px !important; }
  .nav-cta { gap: 8px; }
  .nav-cta .btn { padding: 10px 14px; font-size: .6rem; letter-spacing: .14em; }
  .theme-toggle { width: 36px; height: 36px; }
  .hero-content { padding-top: 116px; }
  .hero { min-height: 100svh; }
}

/* ---------- Theme toggle ---------- */
.theme-toggle {
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center; background: none;
  border: 1px solid var(--line-soft); color: var(--ink-dim);
  transition: all .35s var(--ease);
}
.theme-toggle:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-2px); }
.theme-toggle svg { width: 17px; height: 17px; }
.theme-toggle .ico-moon { display: none; }
html.light-mode .theme-toggle .ico-sun { display: none; }
html.light-mode .theme-toggle .ico-moon { display: block; }

/* smooth theme swap on large surfaces */
body, .bg-alt, .bg-panel, .site-footer, .marquee, .form-wrap {
  transition: background-color .45s var(--ease), color .45s var(--ease);
}

/* ---------- Light theme component overrides ---------- */
/* transparent header sits over dark hero photos → keep light text until scrolled */
html.light-mode .site-header:not(.scrolled) .nav-links a,
html.light-mode .site-header:not(.scrolled) .brand-text b { color: rgba(244, 241, 232, .92); }
html.light-mode .site-header:not(.scrolled) .nav-links a:hover,
html.light-mode .site-header:not(.scrolled) .nav-links a.active { color: #fff; }
html.light-mode .site-header:not(.scrolled) .nav-socials a,
html.light-mode .site-header:not(.scrolled) .theme-toggle {
  color: rgba(244, 241, 232, .85); border-color: rgba(244, 241, 232, .35);
}
html.light-mode .site-header:not(.scrolled) .nav-socials a:hover,
html.light-mode .site-header:not(.scrolled) .theme-toggle:hover { color: var(--gold-bright); border-color: var(--gold-bright); }
html.light-mode .site-header:not(.scrolled) .burger i { background: #f4f1e8; }
html.light-mode .site-header.scrolled { background: rgba(245, 242, 234, .86); }
html.light-mode .mobile-menu {
  background:
    radial-gradient(60% 40% at 88% 0%, rgba(76, 143, 107, .12), transparent 62%),
    radial-gradient(55% 45% at 0% 100%, rgba(212, 180, 131, .12), transparent 62%),
    rgba(245, 242, 234, .97);
}
html.light-mode .mm-watermark { -webkit-text-stroke-color: rgba(140, 110, 60, .16); }
html.light-mode .to-top { background: rgba(245, 242, 234, .85); }
html.light-mode .hero-stats > div { background: rgba(245, 242, 234, .74); }
html.light-mode .news-form { background: rgba(255, 255, 255, .5); }
html.light-mode .f-field input,
html.light-mode .f-field textarea { background: rgba(255, 255, 255, .6); }
html.light-mode .f-field input:focus,
html.light-mode .f-field textarea:focus { background: rgba(255, 255, 255, .85); }

/* hero photo sections stay cinematic with light text in both themes */
html.light-mode .hero,
html.light-mode .page-hero { color: #f4f1e8; }
html.light-mode .hero .eyebrow { color: var(--gold-bright); }
html.light-mode .hero-title { color: #f8f6ef; }
html.light-mode .hero-sub { color: rgba(244, 241, 232, .88); }
html.light-mode .hero .btn-ghost,
html.light-mode .page-hero .btn-ghost { color: #f4f1e8; border-color: rgba(244, 241, 232, .35); }
html.light-mode .scroll-hint { color: rgba(244, 241, 232, .6); }
html.light-mode .page-hero .crumb span { color: rgba(244, 241, 232, .7); }
html.light-mode .page-hero .lead { color: rgba(244, 241, 232, .85); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  /* the ticker + scroll-hint dot stay gently animated (decorative, hover-pausable) */
  .marquee-track { animation: marquee 60s linear infinite !important; }
  .scroll-hint .mouse::after { animation: wheel 1.8s var(--ease) infinite !important; }
  body::after { animation: none !important; }
  html { scroll-behavior: auto; }
}
