/* ---------- Services ---------- */
.services {
  background: linear-gradient(180deg, var(--navy-2), var(--navy-1));
}
.svc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.svc-card {
  position: relative;
  background: rgba(25,32,48,0.55);
  border: 1px solid var(--line-2);
  border-radius: 12px;
  padding: 1.5rem;
  overflow: hidden;
  transition: transform 0.4s var(--ease-out), border-color 0.3s;
  display: flex; flex-direction: column;
  min-height: 440px;
}
.svc-card:hover { transform: translateY(-5px); border-color: rgba(176,60,46,0.35); }

.svc-visual {
  position: relative;
  height: 220px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--navy-0);
  border: 1px solid var(--line);
  margin-bottom: 1.25rem;
}
.svc-visual canvas { width: 100% !important; height: 100% !important; }
.svc-visual-pro {
  background: linear-gradient(160deg, #0A0D12, #141A28);
  isolation: isolate;
}

/* ── Photo service visuals ── */
.svc-visual-photo {
  background: #0A0D12;
  overflow: hidden;
}
.svc-visual-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.72;
  transition: transform 0.55s var(--ease-out), opacity 0.35s;
}
.svc-card:hover .svc-visual-photo img {
  transform: scale(1.07);
  opacity: 0.85;
}
.svc-visual-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(10,13,18,0.45) 0%, rgba(10,13,18,0.15) 50%, rgba(10,13,18,0.6) 100%);
  pointer-events: none;
  z-index: 1;
}
.svc-visual-photo .visual-kicker,
.svc-visual-photo .visual-metric { z-index: 2; }
.svc-visual-pro::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(220,216,210,0.04) 1px, transparent 1px),
    linear-gradient(180deg, rgba(220,216,210,0.04) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: radial-gradient(circle at 50% 45%, black 0%, transparent 78%);
  opacity: 0.6;
  z-index: -2;
}
.visual-grid {
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(220,216,210,0.07);
  border-radius: 8px;
}
.visual-kicker {
  position: absolute;
  top: 18px;
  left: 18px;
  font-family: var(--f-mono);
  font-size: 0.58rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(220,216,210,0.45);
}
.visual-metric {
  position: absolute;
  right: 18px;
  bottom: 18px;
  min-width: 132px;
  padding: 0.7rem 0.85rem;
  border: 1px solid rgba(220,216,210,0.1);
  border-radius: 8px;
  background: rgba(13,17,23,0.75);
  }
.visual-metric strong {
  display: block;
  color: var(--ice);
  font-size: 0.92rem;
  line-height: 1;
}
.visual-metric span {
  display: block;
  margin-top: 0.3rem;
  color: var(--steel-2);
  font-family: var(--f-mono);
  font-size: 0.54rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* Solar card visual */
.solar-array {
  position: absolute;
  left: 34px;
  bottom: 42px;
  width: 160px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  transform: perspective(520px) rotateX(58deg) rotateZ(-18deg);
}
.solar-array span {
  height: 52px;
  border: 1px solid rgba(100,150,220,0.35);
  background:
    linear-gradient(90deg, rgba(220,216,210,0.05) 1px, transparent 1px),
    linear-gradient(180deg, rgba(220,216,210,0.05) 1px, transparent 1px),
    linear-gradient(145deg, rgba(20,70,140,0.65), rgba(5,18,48,0.85));
  background-size: 15px 15px, 15px 15px, auto;
}
.energy-arc {
  position: absolute;
  right: 45px;
  top: 54px;
  width: 78px;
  height: 78px;
  border: 1px solid rgba(220,216,210,0.22);
  border-left-color: transparent;
  border-bottom-color: transparent;
  border-radius: 50%;
  animation: visualPulse 3.2s ease-in-out infinite;
}

/* Battery card visual */
.battery-frame {
  position: absolute;
  left: 42px;
  top: 56px;
  width: 92px;
  height: 112px;
  border: 1px solid rgba(220,216,210,0.18);
  border-radius: 12px;
  background: rgba(220,216,210,0.04);
  display: grid;
  gap: 7px;
  padding: 16px 14px;
}
.battery-frame::before {
  content: "";
  position: absolute;
  top: -9px;
  left: 32px;
  width: 28px;
  height: 8px;
  border-radius: 6px 6px 0 0;
  background: rgba(220,216,210,0.18);
}
.battery-frame i {
  border-radius: 4px;
  background: linear-gradient(90deg, var(--gold), var(--gold-2));
  transform-origin: left;
  animation: batteryBars 3s ease-in-out infinite;
}
.battery-frame i:nth-child(2) { animation-delay: 0.15s; }
.battery-frame i:nth-child(3) { animation-delay: 0.3s; }
.battery-frame i:nth-child(4) { animation-delay: 0.45s; }
.load-curve {
  position: absolute;
  right: 36px;
  top: 70px;
  display: flex;
  align-items: end;
  gap: 6px;
  height: 88px;
}
.load-curve span {
  width: 10px;
  border-radius: 999px;
  background: rgba(150,165,185,0.4);
}
.load-curve span:nth-child(1) { height: 42px; }
.load-curve span:nth-child(2) { height: 68px; }
.load-curve span:nth-child(3) { height: 54px; background: rgba(148,50,38,0.7); }
.load-curve span:nth-child(4) { height: 76px; }
.load-curve span:nth-child(5) { height: 36px; }

/* EV card visual */
.charger-unit {
  position: absolute;
  left: 52px;
  top: 50px;
  width: 66px;
  height: 96px;
  border: 1px solid rgba(220,216,210,0.18);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(220,216,210,0.09), rgba(220,216,210,0.03));
}
.charger-unit span {
  position: absolute;
  left: 18px;
  top: 18px;
  width: 30px;
  height: 20px;
  border-radius: 5px;
  background: rgba(120,190,140,0.65);
}
.charging-cable {
  position: absolute;
  left: 112px;
  top: 102px;
  width: 112px;
  height: 54px;
  border-bottom: 2px solid rgba(220,216,210,0.22);
  border-right: 2px solid rgba(220,216,210,0.22);
  border-radius: 0 0 48px 0;
}
.charge-points {
  position: absolute;
  right: 42px;
  top: 54px;
  display: grid;
  gap: 10px;
}
.charge-points i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(148,50,38,0.65);
}

/* Window card visual */
.window-frame {
  position: absolute;
  left: 48px;
  top: 48px;
  width: 108px;
  height: 116px;
  border: 8px solid rgba(220,216,210,0.6);
  border-radius: 6px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 6px;
  padding: 6px;
  background: rgba(100,150,200,0.08);
}
.window-frame span {
  background: linear-gradient(145deg, rgba(140,185,240,0.25), rgba(220,216,210,0.06));
  border: 1px solid rgba(220,216,210,0.1);
}
.thermal-lines {
  position: absolute;
  right: 42px;
  top: 58px;
  display: grid;
  gap: 12px;
}
.thermal-lines i {
  width: 86px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(220,216,210,0.4), transparent);
}

/* Roof card visual */
.roofline {
  position: absolute;
  left: 38px;
  top: 84px;
  width: 180px;
  height: 76px;
  clip-path: polygon(0 56%, 50% 0, 100% 56%, 92% 56%, 50% 13%, 8% 56%);
  background: linear-gradient(135deg, rgba(220,216,210,0.7), rgba(148,50,38,0.3));
}
.roofline span {
  position: absolute;
  top: 37px;
  width: 160px;
  height: 1px;
  background: rgba(13,17,23,0.45);
}
.roofline span:nth-child(2) { transform: translateY(11px); }
.roofline span:nth-child(3) { transform: translateY(22px); }
.roofline span:nth-child(4) { transform: translateY(33px); }
.inspection-pin {
  position: absolute;
  right: 56px;
  top: 62px;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(148,50,38,0.5);
  border-radius: 50%;
}
.inspection-pin::after {
  content: "";
  position: absolute;
  inset: 14px;
  border-radius: 50%;
  background: rgba(148,50,38,0.65);
}

/* Paint card visual */
.paint-surface {
  position: absolute;
  left: 38px;
  top: 58px;
  width: 170px;
  height: 94px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(220,216,210,0.1);
}
.paint-surface span {
  display: block;
  height: 33.333%;
}
.paint-surface span:nth-child(1) { background: #2E3A48; }
.paint-surface span:nth-child(2) { background: #C8B89A; }
.paint-surface span:nth-child(3) { background: #8B3022; }
.finish-swatch {
  position: absolute;
  right: 48px;
  top: 66px;
  width: 54px;
  height: 86px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--gold-2), var(--copper));
}

@keyframes visualPulse {
  0%, 100% { transform: scale(0.92); opacity: 0.45; }
  50%       { transform: scale(1.06); opacity: 0.9; }
}
@keyframes batteryBars {
  0%, 100% { transform: scaleX(0.65); opacity: 0.55; }
  50%       { transform: scaleX(1); opacity: 1; }
}
@media (max-width: 420px) {
  .svc-visual { height: 200px; }
  .visual-grid { inset: 14px; }
  .visual-kicker { top: 14px; left: 14px; font-size: 0.52rem; }
  .visual-metric { right: 12px; bottom: 12px; min-width: 112px; padding: 0.6rem 0.7rem; }
  .visual-metric strong { font-size: 0.82rem; }
  .visual-metric span { font-size: 0.49rem; }
  .solar-array { left: 24px; bottom: 36px; width: 132px; }
  .battery-frame { left: 28px; width: 78px; height: 102px; }
  .load-curve { right: 26px; }
  .charger-unit { left: 34px; }
  .charging-cable { left: 92px; width: 86px; }
  .window-frame { left: 30px; width: 92px; height: 104px; }
  .thermal-lines { right: 28px; }
  .thermal-lines i { width: 68px; }
  .roofline { left: 24px; width: 150px; }
  .inspection-pin { right: 42px; }
  .paint-surface { left: 24px; width: 140px; }
  .finish-swatch { right: 36px; }
}

.svc-tag {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-2);
  margin-bottom: 0.55rem;
  font-family: var(--f-mono);
  opacity: 0.85;
}
.svc-title {
  font-family: var(--f-display);
  font-size: 1.85rem;
  line-height: 1.1;
  margin-bottom: 0.7rem;
  color: var(--ice);
  transition: color 0.25s;
}
.svc-card:hover .svc-title { color: var(--gold-2); }
.svc-desc {
  font-size: 0.92rem;
  color: var(--steel-2);
  line-height: 1.62;
  margin-bottom: 1rem;
  flex: 1;
}
.svc-foot {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}
.svc-foot .chips { display: flex; gap: 0.35rem; flex-wrap: wrap; }
.svc-foot .chip {
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.28rem 0.55rem;
  border: 1px solid var(--line-2);
  border-radius: 4px;
  color: var(--steel);
}
.svc-foot .learn {
  font-size: 0.78rem;
  color: var(--gold-2);
  display: inline-flex; align-items: center; gap: 0.3rem;
  transition: opacity 0.2s;
}
.svc-foot .learn:hover { opacity: 0.75; }

/* ---------- Promise ---------- */
.promise {
  background: var(--paper);
  color: var(--ink);
}
.promise .eyebrow { color: var(--copper); }
.promise .eyebrow::before { background: var(--copper); }
.promise h2 { color: var(--ink); }
.promise h2 em { color: var(--copper); }
.promise p { color: var(--ink-2); }

.promise-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 4rem;
  align-items: start;
}
.promise-list { list-style: none; display: grid; gap: 1.25rem; }
.promise-item {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 1.5rem;
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--line-warm);
}
.promise-item:last-child { border-bottom: 0; }
.promise-item .num {
  font-family: var(--f-display);
  font-size: 2.4rem;
  color: var(--copper);
  line-height: 1;
}
.promise-item h4 {
  font-family: var(--f-display);
  font-size: 1.65rem;
  font-weight: 500;
  margin-bottom: 0.4rem;
  color: var(--ink);
}
.promise-item p { color: var(--ink-2); font-size: 0.94rem; line-height: 1.65; }

.promise-card {
  position: sticky;
  top: 100px;
  background: var(--navy-1);
  color: var(--ice);
  border-radius: 12px;
  padding: 2rem;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.promise-card .visual {
  height: 280px;
  border-radius: 10px;
  background: linear-gradient(160deg, #0A0D12, #141A28);
  border: 1px solid var(--line-2);
  position: relative;
  overflow: hidden;
  margin-bottom: 1.5rem;
}
.promise-card .visual canvas { width: 100% !important; height: 100% !important; }

/* Editorial promise replacement */
.promise-editorial {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  padding: 1rem 0;
}
.pe-quote { position: relative; }
.pe-mark {
  font-family: var(--f-display);
  font-size: clamp(5rem, 10vw, 9rem);
  color: var(--copper);
  opacity: 0.18;
  line-height: 0.6;
  display: block;
  margin-bottom: -1rem;
  pointer-events: none;
  user-select: none;
}
.pe-quote blockquote {
  font-family: var(--f-display);
  font-size: clamp(1.75rem, 3vw, 2.7rem);
  font-weight: 400;
  line-height: 1.25;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.pe-quote blockquote em {
  color: var(--copper);
  font-style: italic;
}
.pe-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1.5px solid var(--line-warm);
  padding-top: 2rem;
}
.pe-stat { text-align: left; }
.pe-stat + .pe-stat {
  border-left: 1.5px solid var(--line-warm);
  padding-left: 1.5rem;
}
.pe-n {
  font-family: var(--f-display);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 400;
  color: var(--ink);
  line-height: 1;
  margin-bottom: 0.35rem;
}
.pe-l {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fog);
}
@media (max-width: 1100px) {
  .promise-editorial { position: relative; top: 0; }
}

.promise-visual-pro { isolation: isolate; }
.promise-visual-pro::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(220,216,210,0.04) 1px, transparent 1px),
    linear-gradient(180deg, rgba(220,216,210,0.04) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(circle at 50% 44%, black 0%, transparent 80%);
  opacity: 0.8;
}
.promise-visual-pro::after {
  content: "";
  position: absolute;
  inset: auto 24px 24px 24px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(148,50,38,0.5), transparent);
}
.promise-visual-grid {
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(220,216,210,0.07);
  border-radius: 10px;
}
.promise-visual-header {
  position: absolute;
  top: 20px;
  left: 22px;
  right: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.promise-visual-header span {
  width: 96px;
  height: 8px;
  border-radius: 999px;
  background: rgba(220,216,210,0.3);
}
.promise-visual-header i {
  width: 54px;
  height: 7px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--gold), var(--gold-2));
}
.promise-owner-card {
  position: absolute;
  left: 28px;
  top: 62px;
  width: min(248px, calc(100% - 56px));
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.9rem;
  border: 1px solid rgba(220,216,210,0.1);
  border-radius: 10px;
  background: rgba(13,17,23,0.7);
  }
.owner-avatar {
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, var(--gold), var(--copper));
  color: #fff;
  font-family: var(--f-display);
  font-size: 1.25rem;
}
.owner-avatar::before,
.owner-avatar::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(13,17,23,0.65);
}
.owner-avatar::before { top: 10px; left: 15px; width: 12px; height: 12px; }
.owner-avatar::after  { left: 10px; bottom: 9px; width: 22px; height: 12px; border-radius: 14px 14px 8px 8px; }
.promise-owner-card strong,
.promise-owner-card small { display: block; }
.promise-owner-card strong {
  width: 118px; height: 9px;
  border-radius: 999px;
  background: rgba(220,216,210,0.65);
}
.promise-owner-card small {
  width: 152px; height: 7px;
  border-radius: 999px;
  background: rgba(220,216,210,0.2);
  margin-top: 0.25rem;
}
.promise-flow {
  position: absolute;
  left: 28px; right: 28px;
  top: 150px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
}
.promise-flow span {
  position: relative;
  min-width: 0;
  height: 42px;
  border: 1px solid rgba(220,216,210,0.09);
  border-radius: 8px;
  background: rgba(220,216,210,0.04);
}
.promise-flow span::before {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(220,216,210,0.4);
  transform: translate(-50%, -50%);
}
.promise-flow span::after {
  content: "";
  position: absolute;
  left: 12px; right: 12px; bottom: 9px;
  height: 3px;
  border-radius: 999px;
  background: rgba(220,216,210,0.1);
}
.promise-flow span.is-active {
  border-color: rgba(148,50,38,0.4);
  background: rgba(148,50,38,0.1);
}
.promise-flow span.is-active::before { background: var(--gold); }
.promise-document {
  position: absolute;
  right: 30px; top: 62px;
  width: 92px; height: 74px;
  padding: 14px 12px;
  display: grid; gap: 8px;
  border: 1px solid rgba(220,216,210,0.1);
  border-radius: 10px;
  background: rgba(220,216,210,0.06);
}
.promise-document i {
  display: block; height: 5px;
  border-radius: 999px;
  background: rgba(220,216,210,0.28);
}
.promise-document i:nth-child(2) { width: 72%; }
.promise-document i:nth-child(3) { width: 48%; background: var(--gold); }
.promise-guarantee {
  position: absolute;
  right: 30px; bottom: 40px;
  min-width: 132px;
  padding: 0.75rem 0.9rem;
  border: 1px solid rgba(148,50,38,0.28);
  border-radius: 10px;
  background: rgba(148,50,38,0.08);
}
.promise-guarantee strong {
  display: block;
  width: 46px; height: 28px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--gold), var(--gold-2));
}
.promise-guarantee span {
  display: block;
  width: 98px; height: 7px;
  border-radius: 999px;
  background: rgba(220,216,210,0.2);
  margin-top: 0.3rem;
}
@media (max-width: 520px) {
  .promise-card .visual { height: 300px; }
  .promise-visual-header { left: 18px; right: 18px; }
  .promise-owner-card { left: 20px; right: 20px; width: auto; }
  .promise-document { display: none; }
  .promise-flow { left: 20px; right: 20px; top: 150px; grid-template-columns: repeat(2, 1fr); }
  .promise-guarantee { left: 20px; right: 20px; bottom: 22px; min-width: 0; }
}
.promise-card h3 {
  font-family: var(--f-display);
  font-size: 1.85rem;
  line-height: 1.15;
  margin-bottom: 0.75rem;
}
.promise-card h3 em { color: var(--gold-2); }
.promise-card .stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line-2);
  margin-top: 1.25rem;
}
.promise-card .stat .n {
  font-family: var(--f-display);
  font-size: 1.75rem;
  color: var(--gold-2);
  line-height: 1;
}
.promise-card .stat .l {
  font-size: 0.72rem;
  color: var(--steel-2);
  margin-top: 0.3rem;
}

/* ---------- Process ---------- */
.process {
  background: var(--navy-0);
  border-top: 1px solid var(--line);
}
.process-track {
  display: grid; grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  margin-top: 2.5rem;
  position: relative;
}
.step {
  position: relative;
  padding: 1.75rem 1.25rem;
  background: rgba(25,32,48,0.45);
  border: 1px solid var(--line);
  border-radius: 10px;
  transition: border-color 0.3s, transform 0.35s var(--ease-out);
  z-index: 1;
}
.step:hover { border-color: rgba(148,50,38,0.35); transform: translateY(-4px); }
.step .s-num {
  font-family: var(--f-display);
  font-size: 2.2rem;
  color: var(--gold-2);
  line-height: 1;
}
.step h5 {
  font-family: var(--f-display);
  font-size: 1.35rem;
  font-weight: 500;
  margin: 0.8rem 0 0.5rem;
}
.step p { font-size: 0.86rem; color: var(--steel-2); line-height: 1.55; }
.step .s-meta {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-2);
  opacity: 0.8;
  margin-top: 0.9rem;
  padding-top: 0.9rem;
  border-top: 1px dashed var(--line-2);
  font-family: var(--f-mono);
}

/* ---------- Layered Stack ---------- */
.layered-showcase { background: var(--navy-0); }

.ls-item.ls-hidden {
  pointer-events: none;
  opacity: 0;
}

.ls-wrapper {
  user-select: none;
}

/* The grid defines natural positions; each card sits there immediately
   (no more hover-to-reveal pile — see ui.js) */
.ls-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  padding: 2rem;
  position: relative;
}

.ls-item {
  position: relative;
  aspect-ratio: 250 / 320;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  will-change: transform;
  transition: transform 0.75s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.35s ease;
  box-shadow: 0 4px 20px rgba(0,0,0,0.55);
}
.ls-item:hover {
  box-shadow: 0 20px 48px rgba(0,0,0,0.7);
}
.ls-item img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}
.ls-item span {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 1.75rem 0.85rem 0.8rem;
  background: linear-gradient(transparent, rgba(0,0,0,0.8));
  font-size: 0.67rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(220,216,210,0.85);
  opacity: 0;
  transition: opacity 0.2s;
}
.ls-item:hover span { opacity: 1; }

@media (max-width: 768px) {
  .ls-grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; padding: 1rem; }
}
@media (max-width: 480px) {
  .ls-grid { grid-template-columns: repeat(2, 1fr); gap: 0.5rem; padding: 0.5rem; }
}

/* ---------- Gallery ---------- */
.gallery {
  background: linear-gradient(180deg, var(--navy-1), var(--navy-0));
}
.gallery-filter {
  display: flex; gap: 0.5rem; flex-wrap: wrap;
  margin-bottom: 2.5rem;
}
.gallery-filter button {
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.6rem 1.1rem;
  border: 1px solid var(--line-2);
  border-radius: 4px;
  color: var(--steel-2);
  font-family: var(--f-mono);
  transition: all 0.25s;
}
.gallery-filter button:hover { color: var(--ice); border-color: var(--steel); }
.gallery-filter button.is-active {
  background: var(--gold); color: #fff; border-color: var(--gold);
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 180px;
  gap: 0.75rem;
}
.gitem {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid var(--line);
  cursor: pointer;
  transition: transform 0.5s var(--ease-out), opacity 0.4s, display 0s;
}
.gitem.is-hidden { display: none; }
.gitem:hover { transform: scale(1.01); }
.gitem img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease-out), filter 0.4s;
  filter: saturate(0.88) brightness(0.95);
}
.gitem:hover img { transform: scale(1.05); filter: saturate(1.05) brightness(1); }
.gitem .meta {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1.2rem;
  background: linear-gradient(transparent, rgba(13,17,23,0.92));
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 1rem;
}
.gitem .meta h6 {
  font-family: var(--f-display);
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--ice);
}
.gitem .meta span {
  font-family: var(--f-mono);
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-2);
  opacity: 0.9;
}
.g-1  { grid-column: span 6; grid-row: span 2; }
.g-2  { grid-column: span 3; grid-row: span 2; }
.g-3  { grid-column: span 3; grid-row: span 1; }
.g-4  { grid-column: span 3; grid-row: span 1; }
.g-5  { grid-column: span 4; grid-row: span 2; }
.g-6  { grid-column: span 4; grid-row: span 1; }
.g-7  { grid-column: span 4; grid-row: span 1; }
.g-8  { grid-column: span 5; grid-row: span 2; }
.g-9  { grid-column: span 3; grid-row: span 2; }
.g-10 { grid-column: span 4; grid-row: span 2; }

/* ---------- Testimonials ---------- */
.testimonials {
  background: var(--cream);
  color: var(--ink);
  overflow: hidden;
  padding-bottom: 5rem;
}
.testimonials .eyebrow { color: var(--copper); }
.testimonials .eyebrow::before { background: var(--copper); }
.testimonials h2 { color: var(--ink); }
.testimonials h2 em { color: var(--copper); }

/* Marquee strip */
.review-marquee {
  position: relative;
  overflow: hidden;
  margin-top: 3.5rem;
  /* extend edge-to-edge beyond section padding */
  margin-left:  calc(-1 * clamp(1.25rem, 4vw, 3.5rem));
  margin-right: calc(-1 * clamp(1.25rem, 4vw, 3.5rem));
  padding: 0.75rem 0 1rem;
}
/* Fade edges */
.review-marquee::before,
.review-marquee::after {
  content: '';
  position: absolute; top: 0; bottom: 0;
  width: clamp(60px, 8vw, 120px);
  z-index: 2; pointer-events: none;
}
.review-marquee::before { left: 0;  background: linear-gradient(to right, var(--cream), transparent); }
.review-marquee::after  { right: 0; background: linear-gradient(to left,  var(--cream), transparent); }

.review-track {
  display: flex;
  gap: 1.25rem;
  width: max-content;
  animation: review-slide 65s linear infinite;
}
.review-track:hover { animation-play-state: paused; }
@keyframes review-slide { to { transform: translateX(-50%); } }

/* Individual card */
.review-card {
  width: 340px;
  flex-shrink: 0;
  background: var(--paper);
  border: 1px solid rgba(28,32,40,0.08);
  border-radius: 10px;
  padding: 1.6rem;
  display: flex; flex-direction: column; gap: 1rem;
  user-select: none;
}
.review-card .stars { color: var(--gold); letter-spacing: 3px; font-size: 0.82rem; }
.review-card blockquote {
  font-family: var(--f-display);
  font-size: 1.18rem;
  line-height: 1.48;
  color: var(--ink);
  font-weight: 400;
  flex: 1;
}
.review-card .who {
  display: flex; align-items: center; gap: 0.85rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(28,32,40,0.07);
}
.review-card .avi {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy-1), var(--copper));
  color: #fff;
  display: grid; place-items: center;
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 0.9rem;
  flex-shrink: 0;
}
.review-card .who strong { color: var(--ink); font-weight: 500; font-size: 0.9rem; display: block; }
.review-card .who span   { font-size: 0.72rem; color: var(--fog); display: block; margin-top: 1px; }

/* ---------- Contact ---------- */
.contact {
  background: linear-gradient(180deg, var(--navy-0), var(--navy-1));
  border-top: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 3rem;
  position: relative;
}
.contact-left .stack {
  display: grid; gap: 0.9rem;
  margin-top: 2rem;
}
.contact-row {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  gap: 1rem;
  padding: 1.2rem 1.4rem;
  background: rgba(25,32,48,0.45);
  border: 1px solid var(--line-2);
  border-radius: 8px;
  align-items: center;
  transition: border-color 0.25s, background 0.25s;
}
.contact-row:hover { border-color: rgba(148,50,38,0.35); background: rgba(25,32,48,0.65); }
.contact-row .ic {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(148,50,38,0.14);
  color: var(--gold-2);
  display: grid; place-items: center;
}
.contact-row .lbl {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--steel);
  font-family: var(--f-mono);
}
.contact-row .val { color: var(--ice); font-size: 1rem; margin-top: 3px; }
.contact-row .cta {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-2);
  font-family: var(--f-mono);
  opacity: 0.8;
}

/* Form card */
.form-card {
  background: rgba(19,24,32,0.8);
  border: 1px solid var(--line-2);
  border-radius: 12px;
  padding: 2rem;
    box-shadow: var(--shadow);
  position: relative;
  overflow: visible;
}
.form-card h3 {
  font-family: var(--f-display);
  font-size: 1.9rem;
  margin-bottom: 0.35rem;
}
.form-card h3 em { color: var(--gold-2); }
.form-card .fc-sub { color: var(--steel-2); font-size: 0.9rem; margin-bottom: 1.5rem; }

.tabs {
  display: inline-flex;
  background: rgba(13,17,23,0.6);
  border: 1px solid var(--line-2);
  border-radius: 6px;
  padding: 3px;
  margin-bottom: 1.5rem;
}
.tabs button {
  padding: 0.5rem 1rem;
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--steel-2);
  border-radius: 4px;
  transition: all 0.25s;
  font-family: var(--f-mono);
}
.tabs button.is-active { background: var(--gold); color: #fff; font-weight: 600; }

.field { margin-bottom: 1rem; position: relative; }
.field label {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 0.45rem;
  font-family: var(--f-mono);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  background: rgba(13,17,23,0.6);
  border: 1px solid var(--line-2);
  border-radius: 6px;
  color: var(--ice);
  font-size: 0.95rem;
  font-family: var(--f-body);
  transition: border-color 0.2s, background 0.2s;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: rgba(148,50,38,0.55);
  background: rgba(13,17,23,0.8);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.service-chips {
  display: flex; gap: 0.4rem; flex-wrap: wrap;
  margin-bottom: 1.25rem;
}
.service-chips .chip {
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.42rem 0.75rem;
  border: 1px solid var(--line-2);
  border-radius: 4px;
  color: var(--steel-2);
  cursor: pointer;
  transition: all 0.2s;
  user-select: none;
  font-family: var(--f-mono);
}
.service-chips .chip.is-on { background: var(--gold); color: #fff; border-color: var(--gold); }

/* Calendar */
.calendar {
  background: rgba(13,17,23,0.5);
  border: 1px solid var(--line-2);
  border-radius: 10px;
  padding: 1.2rem;
  margin-bottom: 1.25rem;
}
.cal-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 1rem;
}
.cal-head h4 {
  font-family: var(--f-display);
  font-size: 1.35rem;
  font-weight: 500;
}
.cal-nav { display: flex; gap: 0.5rem; }
.cal-nav button {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(25,32,48,0.7);
  border: 1px solid var(--line-2);
  color: var(--ice);
  display: grid; place-items: center;
  transition: all 0.2s;
}
.cal-nav button:hover { background: var(--gold); color: #fff; border-color: var(--gold); }
.cal-weekdays {
  display: grid; grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin-bottom: 6px;
}
.cal-weekdays span {
  font-family: var(--f-mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--steel);
  text-align: center;
  padding: 0.3rem 0;
}
.cal-grid {
  display: grid; grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}
.cal-cell {
  aspect-ratio: 1;
  min-height: 36px;
  display: grid; place-items: center;
  border-radius: 5px;
  font-size: 0.88rem;
  color: var(--ice);
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
}
.cal-cell.is-off  { opacity: 0.2; pointer-events: none; }
.cal-cell.is-past { opacity: 0.25; pointer-events: none; }
.cal-cell.is-today { color: var(--gold-2); font-weight: 700; }
.cal-cell:not(.is-off):not(.is-past):hover { background: rgba(148,50,38,0.16); color: var(--gold-2); }
.cal-cell.is-sel { background: var(--gold); color: #fff; font-weight: 700; }
.cal-cell.is-busy::after {
  content: "";
  position: absolute; top: 4px; right: 4px;
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--copper);
}

.slots {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-top: 1rem;
}
.slot {
  padding: 0.65rem 0.4rem;
  min-height: 44px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line-2);
  border-radius: 5px;
  font-family: var(--f-mono);
  font-size: 0.72rem;
  color: var(--ice);
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  background: rgba(13,17,23,0.55);
}
.slot:hover { border-color: var(--gold-2); color: var(--gold-2); }
.slot.is-sel { background: var(--gold); color: #fff; border-color: var(--gold); }
.slot.is-busy { opacity: 0.3; pointer-events: none; text-decoration: line-through; }

.submit {
  display: flex; gap: 0.75rem; align-items: center; justify-content: space-between;
  margin-top: 0.75rem;
}
.submit .note { font-family: var(--f-mono); font-size: 0.65rem; color: var(--fog); letter-spacing: 0.12em; }

.success {
  text-align: center;
  padding: 2rem 1rem;
}
.success h3 { color: var(--gold-2); font-family: var(--f-display); font-size: 2rem; margin-bottom: 0.5rem; }
.success p { color: var(--steel-2); }
.success .check {
  width: 64px; height: 64px; border-radius: 50%;
  background: rgba(148,50,38,0.14);
  color: var(--gold-2);
  display: grid; place-items: center;
  margin: 0 auto 1rem;
}

/* ---------- Footer ---------- */
footer {
  background: var(--navy-0);
  padding: 5rem clamp(1.25rem, 4vw, 3.5rem) 2rem;
  border-top: 1px solid var(--line);
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.foot-brand p { color: var(--steel-2); font-size: 0.9rem; line-height: 1.72; max-width: 320px; margin-top: 1rem; }
.foot-col h6 {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-2);
  margin-bottom: 1rem;
  font-family: var(--f-mono);
}
.foot-col ul { list-style: none; display: grid; gap: 0.55rem; }
.foot-col a { font-size: 0.9rem; color: var(--steel-2); transition: color 0.2s; }
.foot-col a:hover { color: var(--ice); }
.foot-bot {
  padding-top: 2rem;
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--f-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--steel);
  flex-wrap: wrap;
  gap: 1rem;
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(6,10,18,0.92);
  z-index: 100;
  display: none; place-items: center;
  padding: 2rem;
  }
.lightbox.is-open { display: grid; }
.lightbox img {
  max-height: 88vh;
  max-width: 1100px;
  border-radius: 8px;
  box-shadow: var(--shadow);
}
.lightbox-close {
  position: absolute; top: 1.5rem; right: 1.5rem;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--ice);
  color: var(--navy-1);
  display: grid; place-items: center;
  font-size: 1.3rem;
  z-index: 2;
  transition: background 0.2s;
}
.lightbox-close:hover { background: var(--gold-2); color: #fff; }

/* ---------- Lightbox: project detail card ---------- */
.lightbox-card {
  display: flex;
  align-items: stretch;
  gap: 0;
  max-width: 1100px;
  max-height: 88vh;
  width: 100%;
  background: var(--navy-2);
  border: 1px solid var(--line-2);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.lightbox-media {
  flex: 1.4;
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: var(--navy-0);
}
.lightbox-media img {
  width: 100%; height: 100%;
  max-height: none; max-width: none;
  flex: 1;
  min-height: 0;
  object-fit: contain;
  border-radius: 0;
  box-shadow: none;
}
.lightbox-thumbs {
  display: flex;
  gap: 0.5rem;
  padding: 0.75rem;
  overflow-x: auto;
  flex-shrink: 0;
}
.lightbox-thumbs:empty { display: none; }
.lightbox-thumbs img {
  width: 56px; height: 56px;
  flex-shrink: 0;
  object-fit: cover;
  border-radius: 4px;
  cursor: pointer;
  opacity: 0.55;
  border: 1px solid var(--line-2);
  transition: opacity 0.2s;
}
.lightbox-thumbs img:hover,
.lightbox-thumbs img.is-active { opacity: 1; border-color: var(--gold-2); }
.lightbox-info {
  flex: 1;
  min-width: 260px;
  padding: 2rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}
.lightbox-info:empty { display: none; }
.lightbox-tag {
  font-family: var(--f-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-2);
}
.lightbox-info h3 {
  font-family: var(--f-display);
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--ice);
  margin: 0.6rem 0 0.4rem;
}
.lightbox-meta {
  font-family: var(--f-mono);
  font-size: 0.78rem;
  color: var(--steel-2);
  margin-bottom: 1rem;
}
.lightbox-desc {
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--steel-2);
}
@media (max-width: 860px) {
  .lightbox-card { flex-direction: column; overflow-y: auto; }
  .lightbox-media img { max-height: 46vh; }
  .lightbox-info { min-width: 0; }
}

/* ---------- Auth modal ---------- */
.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: none;
  place-items: center;
  padding: 1.25rem;
}
.auth-modal.is-open { display: grid; }
.auth-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6,10,18,0.76);
    pointer-events: none;
}
.auth-card {
  position: relative;
  width: min(440px, 100%);
  background: var(--navy-1);
  border: 1px solid var(--line-2);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: var(--shadow);
  color: var(--ice);
}
.auth-close {
  position: absolute;
  top: 1rem; right: 1rem;
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  color: var(--steel-2);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.auth-close:hover { background: var(--gold); color: #fff; border-color: var(--gold); }
.auth-card h3 {
  font-family: var(--f-display);
  font-size: 2rem;
  font-weight: 400;
  line-height: 1.1;
  margin: 0.85rem 0 0.65rem;
}
.auth-copy {
  color: var(--steel-2);
  font-size: 0.92rem;
  line-height: 1.6;
}
.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.35rem;
  margin: 1.35rem 0;
  padding: 0.3rem;
  border: 1px solid var(--line-2);
  border-radius: 6px;
}
.auth-tabs button {
  border-radius: 4px;
  padding: 0.65rem 0.75rem;
  color: var(--steel-2);
  font-size: 0.78rem;
  font-weight: 600;
  transition: background 0.2s, color 0.2s;
}
.auth-tabs button.is-active { background: var(--gold); color: #fff; }
.auth-form { display: grid; gap: 1rem; }
.auth-field { display: grid; gap: 0.45rem; }
.auth-field label {
  font-family: var(--f-mono);
  font-size: 0.64rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--steel-2);
}
.auth-field input {
  width: 100%;
  padding: 0.85rem 0.95rem;
  border: 1px solid var(--line-2);
  border-radius: 6px;
  background: rgba(13,17,23,0.6);
  color: var(--ice);
  outline: none;
  font-family: var(--f-body);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.auth-field input:focus {
  border-color: rgba(148,50,38,0.55);
  box-shadow: 0 0 0 3px rgba(148,50,38,0.1);
}
.auth-submit { width: 100%; margin-top: 0.25rem; }
.auth-message {
  min-height: 1.25rem;
  color: var(--gold-2);
  font-size: 0.86rem;
  line-height: 1.5;
}
.mobile-login { width: 100%; justify-content: center; }

