/* =====================================================================
   ICES — International Construction & Energy Solution
   "Outclass" editorial redesign
   ===================================================================== */

:root {
  --ink: #081B30;
  --navy: #0F2C4C;
  --navy-2: #153A63;
  --navy-3: #1D4A80;
  --amber: #F99D1C;
  --amber-2: #FFB84D;
  --amber-soft: #FFF1DB;
  --cream: #F6F4EF;
  --paper: #FFFFFF;
  --muted: #5D6B7C;
  --line: rgba(13, 40, 70, 0.12);
  --radius: 20px;
  --display: 'Sora', 'Poppins', system-ui, sans-serif;
  --body: 'Inter', system-ui, sans-serif;
  --header-h: 82px;
  --shadow: 0 30px 70px rgba(8, 27, 48, 0.16);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 40px; }

body {
  font-family: var(--body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body.no-scroll { overflow: hidden; }

@media (hover: hover) and (pointer: fine) {
  body { cursor: none; }
  a, button, .bento-card, .p-card, .why-card, .c-row, .client-card { cursor: none; }
}

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

.container { width: min(1240px, 92%); margin-inline: auto; }
section[id] { scroll-margin-top: 20px; }

::selection { background: var(--amber); color: var(--ink); }

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar { width: 11px; }
::-webkit-scrollbar-track { background: var(--cream); }
::-webkit-scrollbar-thumb { background: var(--navy); border-radius: 8px; border: 3px solid var(--cream); }
::-webkit-scrollbar-thumb:hover { background: var(--navy-2); }

/* =====================================================================
   CURSOR + PRELOADER + PROGRESS
   ===================================================================== */
.cursor-dot, .cursor-ring {
  display: none;
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 9999;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}
.cursor-dot { width: 8px; height: 8px; background: var(--amber); }
.cursor-ring {
  width: 38px; height: 38px;
  border: 1.5px solid rgba(249, 157, 28, 0.7);
  transition: width .25s ease, height .25s ease, background .25s ease, border-color .25s ease;
}
.cursor-ring.grow {
  width: 64px; height: 64px;
  background: rgba(249, 157, 28, 0.08);
  border-color: var(--amber);
}
@media (hover: hover) and (pointer: fine) {
  .cursor-dot, .cursor-ring { display: block; }
}

.preloader {
  position: fixed; inset: 0;
  background: var(--ink);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  z-index: 10000;
  transition: opacity .6s ease, visibility .6s ease;
}
.preloader.done { opacity: 0; visibility: hidden; }
.preloader-logo {
  display: block;
  width: 110px;
  height: 110px;
  object-fit: contain;
  margin: 0 auto;
  animation: prePulse 1.6s ease infinite;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, .35));
}
@keyframes prePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .6; transform: scale(.97); }
}
.preloader-bar {
  width: 180px; height: 3px;
  background: rgba(255, 255, 255, .12);
  margin: 22px auto 0;
  border-radius: 4px;
  overflow: hidden;
}
.preloader-bar span {
  display: block; height: 100%;
  width: 40%;
  background: var(--amber);
  animation: preLoad 1.1s ease-in-out infinite;
}
@keyframes preLoad { 0% { transform: translateX(-120%); } 100% { transform: translateX(320%); } }

.progress {
  position: fixed; top: 0; left: 0; right: 0;
  height: 3px; z-index: 2000;
  background: transparent;
}
.progress span {
  display: block; height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--amber), var(--amber-2));
}

/* =====================================================================
   BUTTONS
   ===================================================================== */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  gap: 10px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 15px;
  padding: 15px 32px;
  border-radius: 60px;
  border: none;
  transition: transform .3s ease, box-shadow .3s ease, background .3s ease, color .3s ease;
  white-space: nowrap;
  overflow: hidden;
}
.btn i { width: 18px; height: 18px; transition: transform .3s ease; }
.btn:hover i { transform: translate(3px, -3px); }
.btn-lg { padding: 17px 38px; font-size: 16px; }

.btn-accent { background: var(--amber); color: var(--ink); box-shadow: 0 10px 30px rgba(249, 157, 28, .35); }
.btn-accent:hover { background: var(--amber-2); transform: translateY(-3px); box-shadow: 0 16px 40px rgba(249, 157, 28, .45); }

.btn-primary { background: var(--navy); color: #fff; box-shadow: 0 10px 30px rgba(15, 44, 76, .3); }
.btn-primary:hover { background: var(--navy-2); transform: translateY(-3px); }

.btn-ghost { background: transparent; color: #fff; border: 1.5px solid rgba(255, 255, 255, .5); }
.btn-ghost:hover { background: rgba(255, 255, 255, .1); transform: translateY(-3px); }

.btn-block { width: 100%; }

/* =====================================================================
   HEADER
   ===================================================================== */
.header {
  position: fixed; inset: 0 0 auto 0;
  height: var(--header-h);
  z-index: 1500;
  color: #fff;
  transition: height .3s ease, background .3s ease, box-shadow .3s ease;
}
.header .container {
  height: 100%;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, .14);
}
.header.scrolled { height: 66px; background: rgba(8, 27, 48, .82); backdrop-filter: blur(14px); box-shadow: 0 10px 40px rgba(0, 0, 0, .25); }
.header.scrolled .container { border-color: transparent; }

.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 50px; height: 50px;
  display: grid; place-items: center;
  flex-shrink: 0;
}
.brand-mark img {
  width: 100%; height: 100%;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 4px 12px rgba(8, 27, 48, .35));
}
.brand-mark i { width: 24px; height: 24px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.22; }
.brand-text strong { font-family: var(--display); font-size: 16px; font-weight: 800; letter-spacing: .3px; white-space: nowrap; }
.brand-text small { font-size: 9px; text-transform: uppercase; letter-spacing: 2px; color: var(--amber); font-weight: 600; white-space: nowrap; }

.nav { display: flex; align-items: center; gap: 28px; }
.nav-link {
  position: relative;
  font-family: var(--display);
  font-size: 14px; font-weight: 500;
  color: rgba(255, 255, 255, .85);
  padding: 6px 0;
  transition: color .25s ease;
}
.nav-link::after {
  content: ''; position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--amber);
  transition: width .3s ease;
}
.nav-link:hover, .nav-link.active { color: #fff; }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

.nav-cta { padding: 11px 22px; font-size: 13.5px; }
.nav-cta i { width: 16px; height: 16px; }

.nav-toggle { display: none; background: none; border: none; color: #fff; }
.nav-toggle i { width: 30px; height: 30px; }

/* =====================================================================
   HERO
   ===================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: #fff;
  background: var(--ink);
  overflow: hidden;
  padding-top: calc(var(--header-h) + 20px);
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  animation: kenburns 26s ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes kenburns {
  from { transform: scale(1) translate(0, 0); }
  to { transform: scale(1.15) translate(-1.5%, -2%); }
}
.hero-veil {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(180deg, rgba(8, 27, 48, .62) 0%, rgba(8, 27, 48, .18) 38%, rgba(8, 27, 48, .42) 62%, rgba(8, 27, 48, .93) 100%),
    linear-gradient(90deg, rgba(8, 27, 48, .55) 0%, rgba(8, 27, 48, .12) 55%, rgba(8, 27, 48, .30) 100%);
}
.hero-veil::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(1200px 600px at 50% 115%, rgba(249, 157, 28, .16), transparent 60%);
}

.hero-content { position: relative; z-index: 3; padding-bottom: 30px; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--display);
  font-size: 12px; font-weight: 600;
  letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--amber);
  border: 1px solid rgba(249, 157, 28, .45);
  background: rgba(8, 27, 48, .35);
  backdrop-filter: blur(8px);
  padding: 10px 18px;
  border-radius: 60px;
  margin-bottom: 26px;
}
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--amber); animation: pulse 1.6s ease infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(249, 157, 28, .6); } 70% { box-shadow: 0 0 0 10px rgba(249, 157, 28, 0); } 100% { box-shadow: 0 0 0 0 rgba(249, 157, 28, 0); } }

.hero-title {
  font-family: var(--display); font-weight: 800;
  line-height: 1.05;
  font-size: clamp(34px, 5.2vw, 68px);
  letter-spacing: -1px;
  text-shadow: 0 14px 60px rgba(0, 0, 0, .4);
}
.hero-title .line { display: block; overflow: hidden; }
.hero-title .outline {
  color: transparent;
  -webkit-text-stroke: 2px var(--amber);
}
.hero-sub {
  font-size: clamp(15px, 1.6vw, 19px);
  color: rgba(255, 255, 255, .88);
  max-width: 620px;
  margin: 24px 0 34px;
  text-shadow: 0 4px 24px rgba(0, 0, 0, .45);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; }

.hero-stats {
  position: relative; z-index: 3;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: rgba(8, 27, 48, .42);
  border: 1px solid rgba(255, 255, 255, .14);
  border-bottom: none;
  backdrop-filter: blur(18px);
  border-radius: 18px 18px 0 0;
}
.hstat {
  display: flex; align-items: baseline; gap: 4px;
  padding: 22px 26px;
  border-right: 1px solid rgba(255, 255, 255, .12);
}
.hstat:last-child { border-right: none; }
.hnum { font-family: var(--display); font-size: 42px; font-weight: 800; color: var(--amber); line-height: 1; }
.hplus { font-family: var(--display); font-size: 22px; font-weight: 700; color: var(--amber-2); }
.hstat small {
  font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase;
  color: rgba(255, 255, 255, .75);
  margin-left: 8px;
}

.hero-coords {
  position: absolute;
  top: 26px; right: 3vw;
  z-index: 4;
  font-family: var(--display);
  font-size: 11px; letter-spacing: 2px; text-transform: uppercase;
  color: rgba(255, 255, 255, .6);
  background: rgba(8, 27, 48, .3);
  border: 1px solid rgba(255, 255, 255, .15);
  padding: 8px 14px;
  border-radius: 40px;
}
.hero-scroll {
  position: absolute;
  right: 3vw; bottom: 140px;
  z-index: 4;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  font-family: var(--display);
  font-size: 10px; letter-spacing: 3px; text-transform: uppercase;
  color: rgba(255, 255, 255, .65);
  writing-mode: vertical-rl;
}
.hero-scroll-line { width: 1px; height: 90px; background: rgba(255, 255, 255, .2); position: relative; overflow: hidden; }
.hero-scroll-line span { position: absolute; inset: 0; background: var(--amber); animation: scrollLine 2s ease infinite; }
@keyframes scrollLine { 0% { transform: translateY(-100%); } 100% { transform: translateY(100%); } }

/* =====================================================================
   MARQUEE
   ===================================================================== */
.marquee {
  background: var(--amber);
  color: var(--ink);
  overflow: hidden;
  padding: 18px 0;
  transform: rotate(-1.2deg) scale(1.02);
  position: relative;
  z-index: 5;
  margin: -8px 0;
  box-shadow: 0 16px 40px rgba(249, 157, 28, .25);
}
.marquee-track {
  display: flex; align-items: center; gap: 40px;
  width: max-content;
  animation: marquee 26s linear infinite;
}
.marquee-track span { font-family: var(--display); font-weight: 800; font-size: 20px; letter-spacing: 2px; text-transform: uppercase; white-space: nowrap; }
.marquee-track i { width: 20px; height: 20px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* =====================================================================
   SECTION BASICS
   ===================================================================== */
.section { position: relative; padding: 120px 0; overflow: hidden; }
.watermark {
  position: absolute;
  top: 40px; right: 2vw;
  font-family: var(--display);
  font-size: clamp(120px, 22vw, 300px);
  font-weight: 800;
  line-height: 1;
  color: rgba(15, 44, 76, .045);
  pointer-events: none;
  z-index: 0;
}
.watermark.w-light { color: rgba(255, 255, 255, .05); }

.sec-head { position: relative; z-index: 2; margin-bottom: 64px; text-align: center; max-width: 820px; margin-inline: auto; }
.split-head { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; }
.split-head .sec-sub { max-width: 620px; margin: 0; }

.sec-tag {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--display);
  font-size: 12px; font-weight: 700;
  letter-spacing: 3px; text-transform: uppercase;
  color: var(--navy);
  background: var(--amber-soft);
  padding: 9px 18px;
  border-radius: 60px;
  margin-bottom: 22px;
}
.sec-tag::before { content: ''; width: 20px; height: 2px; background: var(--amber); }

.sec-title { font-family: var(--display); font-size: clamp(30px, 4.4vw, 54px); font-weight: 800; line-height: 1.08; letter-spacing: -1px; color: var(--ink); }
.sec-sub { color: var(--muted); font-size: 16px; margin-top: 16px; }

/* =====================================================================
   ABOUT
   ===================================================================== */
.about { background: var(--paper); padding-top: 70px; padding-bottom: 100px; }
.about .sec-head { text-align: center; max-width: 820px; margin-inline: auto; margin-bottom: 44px; }
.about .sec-title { font-size: clamp(24px, 3vw, 38px); }
.about-lead {
  font-size: 18px;
  line-height: 1.75;
  color: var(--muted);
  margin: 24px auto 0;
  max-width: 760px;
}
.about-lead strong { color: var(--navy); font-weight: 600; }

.about-grid {
  position: relative; z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 80px;
  align-items: center;
}

.about-media { position: relative; }
.about-img-main {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 4.5;
  box-shadow: var(--shadow);
}
.about-img-main img { width: 100%; height: 100%; object-fit: cover; }
.about-media::before {
  content: '';
  position: absolute;
  top: 24px; left: 24px; right: -24px; bottom: -24px;
  border: 2px solid var(--amber);
  border-radius: var(--radius);
  z-index: -1;
}

.about-years {
  position: absolute;
  left: -26px; bottom: 40px;
  z-index: 5;
  background: var(--ink);
  color: #fff;
  padding: 22px 26px;
  border-radius: 16px;
  box-shadow: var(--shadow);
}
.about-years span { font-family: var(--display); font-size: 52px; font-weight: 800; color: var(--amber); line-height: 1; }
.about-years small { font-size: 12px; color: rgba(255, 255, 255, .8); line-height: 1.5; display: inline-block; margin-top: 4px; }

.about-copy { position: relative; z-index: 2; }
.about-copy h3 { font-family: var(--display); font-size: 30px; font-weight: 800; color: var(--navy); margin-bottom: 18px; line-height: 1.25; }
.about-copy p { color: var(--muted); font-size: 16px; margin-bottom: 16px; }
.about-copy p strong { color: var(--ink); }

.about-feats { margin-top: 64px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feat { display: flex; align-items: center; gap: 18px; padding: 24px 26px; background: var(--cream); border-radius: 14px; border: 1px solid var(--line); transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease; }
.feat:hover { transform: translateX(8px); box-shadow: var(--shadow); border-color: rgba(249, 157, 28, .5); }
.feat-ico { width: 50px; height: 50px; flex-shrink: 0; display: grid; place-items: center; background: var(--navy); color: var(--amber); border-radius: 12px; }
.feat-ico i { width: 24px; height: 24px; }
.feat h4 { font-family: var(--display); font-size: 16px; font-weight: 700; color: var(--ink); }
.feat p { font-size: 13.5px; color: var(--muted); margin: 0; }

/* =====================================================================
   SERVICES — BENTO
   ===================================================================== */
.services { background: var(--cream); padding-top: 0; }
.services .sec-title { font-size: clamp(24px, 3.2vw, 40px); }

.bento {
  position: relative; z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 170px;
  gap: 22px;
}
.bento-card {
  position: relative;
  border-radius: var(--radius);
  background: var(--paper);
  border: 1px solid var(--line);
  overflow: hidden;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transition: transform .4s ease, box-shadow .4s ease;
}
.bento-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); }

.bento-card.solar { grid-column: span 2; grid-row: span 2; padding: 34px; }
.bento-card.solar .bento-body h3 { font-size: 30px; color: #fff; }
.bento-card.solar .bento-body p { color: rgba(255, 255, 255, .85); }

.bento-bg { position: absolute; inset: 0; z-index: 0; }
.bento-bg img { width: 100%; height: 100%; object-fit: cover; }
.bento-veil { position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(8, 27, 48, .1), rgba(8, 27, 48, .92)); }

.bento-ico {
  position: relative; z-index: 2;
  width: 52px; height: 52px;
  display: grid; place-items: center;
  background: var(--navy);
  color: var(--amber);
  border-radius: 13px;
  margin-bottom: auto;
  transition: background .35s ease, color .35s ease, transform .35s ease;
}
.bento-card:hover .bento-ico { background: var(--amber); color: var(--ink); transform: rotate(-8deg) scale(1.08); }
.bento-ico i { width: 24px; height: 24px; }

.bento-body { position: relative; z-index: 2; }
.bento-body h3 { font-family: var(--display); font-size: 18.5px; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.bento-body p { font-size: 13.5px; color: var(--muted); }
.bento-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; font-family: var(--display); font-weight: 700; font-size: 14px; color: var(--amber); }
.bento-link i { width: 16px; height: 16px; }

/* positions */
.bento-card:nth-child(1) { grid-column: 1 / 3; grid-row: 1 / 3; }
.bento-card:nth-child(2) { grid-column: 3 / 5; grid-row: 1 / 2; }
.bento-card:nth-child(3) { grid-column: 3 / 4; grid-row: 2 / 3; }
.bento-card:nth-child(4) { grid-column: 4 / 5; grid-row: 2 / 3; }
.bento-card:nth-child(5) { grid-column: 1 / 2; grid-row: 3 / 4; }
.bento-card:nth-child(6) { grid-column: 2 / 3; grid-row: 3 / 4; }
.bento-card:nth-child(7) { grid-column: 3 / 4; grid-row: 3 / 4; }
.bento-card:nth-child(8) { grid-column: 4 / 5; grid-row: 3 / 4; }

/* =====================================================================
   CLIENTS — DUAL MARQUEE
   ===================================================================== */
.clients { background: var(--paper); padding-bottom: 60px; }

.client-marquees { position: relative; z-index: 2; display: grid; gap: 40px; overflow: hidden; padding: 10px 0; }
.cm-row { overflow: hidden; }
.cm-track {
  display: flex; gap: 24px;
  width: max-content;
  animation: marquee 30s linear infinite;
}
.cm-row.cm-rev .cm-track { animation-direction: reverse; }

.cm {
  display: flex; align-items: center; gap: 14px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px 26px;
  white-space: nowrap;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.cm:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: rgba(249, 157, 28, .55); }
.cm i { width: 26px; height: 26px; color: var(--amber); }
.cm strong { font-family: var(--display); font-size: 20px; font-weight: 800; color: var(--navy); letter-spacing: .5px; }
.cm small { font-size: 12px; color: var(--muted); display: block; }

/* =====================================================================
   PROJECTS — HORIZONTAL SCROLL
   ===================================================================== */
.projects { background: var(--cream); padding-bottom: 90px; }
.h-scroll {
  position: relative; z-index: 2;
  display: flex;
  gap: 26px;
  padding: 20px 4vw 30px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.h-scroll::-webkit-scrollbar { display: none; }
.h-scroll { scrollbar-width: none; }

.p-card {
  flex: 0 0 min(560px, 78vw);
  scroll-snap-align: center;
  background: var(--paper);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm, 0 6px 24px rgba(8, 27, 48, .1));
  transition: transform .4s ease, box-shadow .4s ease;
}
.p-card:hover { transform: translateY(-8px); }
.p-img { position: relative; aspect-ratio: 16 / 9; overflow: hidden; }
.p-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.p-card:hover .p-img img { transform: scale(1.07); }
.p-tag {
  position: absolute; top: 16px; left: 16px;
  background: var(--amber); color: var(--ink);
  font-family: var(--display); font-size: 12px; font-weight: 700;
  letter-spacing: 1px; text-transform: uppercase;
  padding: 7px 14px; border-radius: 40px;
}
.p-meta { display: flex; align-items: center; gap: 18px; padding: 24px 26px; }
.p-no { font-family: var(--display); font-size: 30px; font-weight: 800; color: rgba(15, 44, 76, .2); }
.p-meta h3 { font-family: var(--display); font-size: 19px; font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.p-meta p { font-size: 13.5px; color: var(--muted); }
.p-meta > i { width: 40px; height: 40px; margin-left: auto; color: var(--amber); transition: transform .3s ease; }
.p-card:hover .p-meta > i { transform: translate(4px, -4px); }

.h-scroll-bar { height: 3px; background: rgba(15, 44, 76, .12); border-radius: 4px; margin-top: 10px; overflow: hidden; }
.h-scroll-bar span { display: block; height: 100%; background: var(--amber); border-radius: 4px; width: 25%; transition: width .1s linear; }

/* =====================================================================
   WHY US
   ===================================================================== */
.why { background: var(--ink); }
.why .sec-tag { background: rgba(249, 157, 28, .12); color: var(--amber); border: 1px solid rgba(249, 157, 28, .35); }
.why .sec-tag::before { background: var(--amber); }
.why .sec-title { color: #fff; }

.why-grid { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.why-card {
  position: relative;
  background: rgba(255, 255, 255, .045);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: var(--radius);
  padding: 34px 28px;
  overflow: hidden;
  transition: transform .4s ease, background .4s ease, border-color .4s ease;
}
.why-card::before {
  content: ''; position: absolute;
  top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--amber), transparent);
  transform: scaleX(0); transform-origin: left;
  transition: transform .4s ease;
}
.why-card:hover { transform: translateY(-10px); background: rgba(255, 255, 255, .07); border-color: rgba(249, 157, 28, .5); }
.why-card:hover::before { transform: scaleX(1); }

.why-no { position: absolute; top: 16px; right: 22px; font-family: var(--display); font-size: 44px; font-weight: 800; color: rgba(255, 255, 255, .07); }
.why-ico { width: 62px; height: 62px; display: grid; place-items: center; background: var(--amber); color: var(--ink); border-radius: 16px; margin-bottom: 22px; box-shadow: 0 10px 30px rgba(249, 157, 28, .35); }
.why-ico i { width: 28px; height: 28px; }
.why-card h3 { font-family: var(--display); font-size: 19px; font-weight: 700; color: #fff; margin-bottom: 10px; }
.why-card p { font-size: 14px; color: rgba(255, 255, 255, .72); }

/* =====================================================================
   CONTACT
   ===================================================================== */
.contact { background: var(--paper); }
.contact-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: start; }

.contact-copy .sec-title { margin-bottom: 22px; }
.contact-lead { color: var(--muted); font-size: 16px; max-width: 440px; margin-bottom: 40px; }

.contact-rows { display: grid; gap: 16px; }
.c-row {
  display: flex; align-items: center; gap: 18px;
  padding: 20px 24px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 16px;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease, background .3s ease;
}
.c-row:hover { transform: translateX(10px); box-shadow: var(--shadow); border-color: rgba(249, 157, 28, .55); background: var(--amber-soft); }
.c-ico { width: 52px; height: 52px; flex-shrink: 0; display: grid; place-items: center; background: var(--navy); color: var(--amber); border-radius: 14px; }
.c-ico i { width: 24px; height: 24px; }
.c-row span { font-family: var(--display); font-size: 17px; font-weight: 600; color: var(--navy); }
.c-row small { display: block; font-family: var(--body); font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: 1.5px; color: var(--muted); margin-bottom: 2px; }
.c-row > i { width: 22px; height: 22px; margin-left: auto; color: var(--amber); opacity: 0; transform: translateX(-8px); transition: all .3s ease; }
.c-row:hover > i { opacity: 1; transform: translateX(0); }

.contact-form {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 36px 34px;
  box-shadow: var(--shadow-sm, 0 6px 24px rgba(8, 27, 48, .08));
}
.cf-top {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--display); font-size: 14px; font-weight: 600;
  color: var(--navy);
  margin-bottom: 26px;
}
.cf-dot { width: 9px; height: 9px; border-radius: 50%; background: #22C55E; animation: pulse 1.8s ease infinite; }
.cf-top i { width: 16px; height: 16px; margin-left: auto; color: var(--muted); }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-family: var(--display); font-size: 13px; font-weight: 600; color: var(--navy); margin-bottom: 8px; }
.form-group input, .form-group textarea {
  width: 100%;
  font-family: var(--body);
  font-size: 15px;
  color: var(--ink);
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  resize: vertical;
  transition: border-color .25s ease, box-shadow .25s ease;
}
.form-group input:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--amber);
  box-shadow: 0 0 0 4px rgba(249, 157, 28, .15);
}
.form-group input::placeholder, .form-group textarea::placeholder { color: #9AA7B3; }

.form-status { margin-top: 16px; font-size: 14px; font-weight: 600; text-align: center; }
.form-status.ok { color: #16A34A; }
.form-status.err { color: #DC2626; }

/* =====================================================================
   FOOTER
   ===================================================================== */
.footer { background: var(--ink); color: rgba(255, 255, 255, .7); overflow: hidden; position: relative; }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 48px; padding: 80px 0 40px; }
.footer-copy .brand { margin-bottom: 18px; }
.footer-copy .brand-text strong { color: #fff; }
.footer-copy p { font-size: 14px; max-width: 320px; }
.footer-social { display: flex; gap: 12px; margin-top: 22px; }
.footer-social a {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 12px;
  transition: background .3s ease, transform .3s ease, border-color .3s ease;
}
.footer-social a:hover { background: var(--amber); color: var(--ink); transform: translateY(-4px); border-color: var(--amber); }
.footer-social i { width: 19px; height: 19px; }

.footer-links h4 { font-family: var(--display); color: #fff; font-size: 15px; font-weight: 700; margin-bottom: 20px; }
.footer-links a, .footer-loc {
  display: block; font-size: 14px;
  padding: 5px 0;
  color: rgba(255, 255, 255, .65);
  transition: color .25s ease, padding-left .25s ease;
}
.footer-links a:hover { color: var(--amber); padding-left: 6px; }

.footer-wordmark {
  font-family: var(--display);
  font-size: clamp(80px, 17vw, 240px);
  font-weight: 800;
  line-height: .85;
  letter-spacing: -2px;
  text-align: center;
  color: rgba(255, 255, 255, .04);
  user-select: none;
  margin-top: 20px;
}

.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding: 22px 0; }
.footer-bottom-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.footer-bottom p { font-size: 13px; }
.to-top {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  background: var(--amber); color: var(--ink);
  border: none; border-radius: 50%;
  cursor: pointer;
  transition: transform .3s ease, background .3s ease;
}
.to-top:hover { transform: translateY(-4px); background: var(--amber-2); }
.to-top i { width: 20px; height: 20px; }

/* =====================================================================
   REVEAL ANIMATIONS
   ===================================================================== */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity .8s cubic-bezier(.16,1,.3,1), transform .8s cubic-bezier(.16,1,.3,1); }
.reveal.in { opacity: 1; transform: translateY(0); }

.hero-title .line.reveal { transform: translateY(110%); transition: transform .9s cubic-bezier(.16,1,.3,1); }
.hero-title .line.reveal.in { transform: translateY(0); }
.hero-title .line:nth-child(2).reveal { transition-delay: .12s; }
.hero-title .line:nth-child(3).reveal { transition-delay: .24s; }

/* stagger helpers */
.d1 { transition-delay: .1s; }
.d2 { transition-delay: .2s; }
.d3 { transition-delay: .3s; }
.d4 { transition-delay: .4s; }

/* hero-side stat cards keep their own transform (don't conflict with reveal) */
.hero-side .reveal {
  transform: none;
  opacity: 0;
  transition: opacity .9s ease .3s, background .4s ease, border-color .4s ease;
}
.hero-side .reveal.in { opacity: 1; }

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 1100px) {
  .brand-text strong { font-size: 13.5px; }
  .brand-text small { font-size: 8px; letter-spacing: 1.4px; }
  .nav { gap: 18px; }
  .about-grid { grid-template-columns: 1fr; gap: 90px; }
  .about-media { max-width: 560px; margin-inline: auto; }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; gap: 50px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .hstat:nth-child(2) { border-right: none; }
  .hstat:nth-child(3), .hstat:nth-child(4) { border-top: 1px solid rgba(255, 255, 255, .12); }
  .hero-title { font-size: clamp(32px, 7vw, 52px); }
  .hero-scroll { display: none; }
}

@media (max-width: 1024px) {
  .nav {
    position: fixed;
    top: 0; right: 0;
    width: min(340px, 88vw);
    height: 100vh; height: 100svh;
    background: var(--ink);
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 100px 34px 40px;
    transform: translateX(100%);
    transition: transform .4s cubic-bezier(.16,1,.3,1);
    z-index: 1499;
    box-shadow: -20px 0 60px rgba(0, 0, 0, .4);
  }
  .nav.open { transform: translateX(0); }
  .nav-link { font-size: 21px; font-weight: 600; padding: 12px 0; width: 100%; border-bottom: 1px solid rgba(255, 255, 255, .08); }
  .nav-link::after { display: none; }
  .nav-cta { margin-top: 20px; width: 100%; }
  .nav-toggle { display: block; position: relative; z-index: 1501; }

  .bento { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 200px; }
  .bento-card:nth-child(1) { grid-column: 1 / 3; grid-row: auto; }
  .bento-card:nth-child(2) { grid-column: 1 / 2; grid-row: auto; }
  .bento-card:nth-child(3) { grid-column: 2 / 3; grid-row: auto; }
  .bento-card:nth-child(4) { grid-column: 1 / 2; grid-row: auto; }
  .bento-card:nth-child(5) { grid-column: 2 / 3; grid-row: auto; }
  .bento-card:nth-child(6) { grid-column: 1 / 2; grid-row: auto; }
  .bento-card:nth-child(7) { grid-column: 2 / 3; grid-row: auto; }
  .bento-card:nth-child(8) { grid-column: 1 / 3; grid-row: auto; }
  .split-head { flex-direction: column; align-items: flex-start; gap: 16px; }
  .split-head .sec-sub { max-width: 100%; }
}

@media (max-width: 640px) {
  .section { padding: 84px 0; }
  .bento { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .bento-card, .bento-card:nth-child(n) { grid-column: 1 / 2 !important; min-height: 210px; }
  .bento-card.solar { min-height: 320px; }
  .why-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .about-media::before { display: none; }
  .about-feats { grid-template-columns: 1fr; gap: 16px; }
  .about-years { left: 0; bottom: 24px; }
  .about-years span { font-size: 44px; }
  .hero-coords { display: none; }
  .hero-stats { grid-template-columns: 1fr; }
  .hstat { border-right: none; border-top: 1px solid rgba(255, 255, 255, .12); padding: 18px 20px; }
  .hstat:first-child { border-top: none; }
  .hnum { font-size: 36px; }
  .marquee-track span { font-size: 15px; }
  .footer-top { grid-template-columns: 1fr; gap: 34px; }
  .footer-bottom-inner { flex-direction: column; text-align: center; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}