/* DILAN Energy Solutions — stiluri site
   Culori și fonturi din brand book. */

:root {
  --verde: #5ad21e;
  --lime: #A8E832;
  --galben: #fff115;
  --negru: #080808;
  --alb: #ffffff;
  --suprafata: #0f120e;
  --suprafata-2: #151a13;
  --suprafata-3: #0b0d0a;
  --linie: #222820;
  --linie-2: #2c3329;
  --text-2: #c9cdc5;
  --text-3: #a7ada2;
  --text-4: #868c82;
  --raza: 20px;
  --max: 1200px;
  --font: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Cormorant Garamond", Georgia, serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--negru);
  color: var(--alb);
  font-family: var(--font);
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--lime); }
a:hover { color: var(--galben); }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4, p { margin: 0; }
button { font-family: inherit; cursor: pointer; }
button:disabled { cursor: not-allowed; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 16px; top: -60px; background: var(--verde); color: var(--negru); padding: 10px 16px; border-radius: 8px; z-index: 100; font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.eyebrow { font-size: 13px; font-weight: 500; letter-spacing: 0.4em; color: var(--verde); text-transform: uppercase; }
.h2 { font-size: clamp(30px, 4vw, 44px); line-height: 1.15; font-weight: 600; }
.lead { font-size: 17px; line-height: 1.6; font-weight: 300; color: var(--text-2); }
.serif { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: 0.04em; }
.section-head { display: flex; flex-direction: column; gap: 14px; max-width: 660px; }

/* Butoane */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px; border-radius: 999px; font-size: 15px; font-weight: 600; text-decoration: none; border: 0; transition: transform .15s ease, background .15s ease, border-color .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-lg { min-height: 56px; padding: 0 30px; font-size: 16px; }
.btn-primary { background: var(--verde); color: var(--negru); }
.btn-primary:hover { background: #6be22d; color: var(--negru); }
.btn-ghost { background: transparent; color: var(--alb); border: 1px solid #3a4236; font-weight: 500; }
.btn-ghost:hover { border-color: var(--verde); color: var(--alb); }
.btn-white { background: var(--alb); color: var(--negru); border-radius: 14px; }
.btn-white:hover { background: #eef5e8; color: var(--negru); }
.btn-link { background: transparent; border: 0; color: var(--lime); text-decoration: underline; font-weight: 500; padding: 0 12px; }
.btn-outline-green { background: transparent; border: 1px solid var(--verde); color: var(--verde); min-height: 44px; padding: 0 18px; font-size: 14px; }
.btn svg { flex: none; }

/* Antet */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(8,8,8,0.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid #1c201a; }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 12px; padding-bottom: 12px; }
.logo-link { display: flex; align-items: center; flex: none; }
.logo-link img { height: 46px; width: auto; }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a { color: #d6d9d3; text-decoration: none; font-size: 14px; font-weight: 500; }
.nav a:hover { color: var(--alb); }
.header-cta { display: flex; align-items: center; gap: 16px; }
.header-phone { color: var(--alb); text-decoration: none; font-size: 14px; font-weight: 600; white-space: nowrap; }
.header-cta .btn { min-height: 44px; padding: 0 20px; font-size: 13px; white-space: nowrap; text-transform: uppercase; letter-spacing: 0.06em; }
.menu-btn { display: none; background: transparent; border: 1px solid #3a4236; color: var(--alb); width: 44px; height: 44px; border-radius: 12px; align-items: center; justify-content: center; }
@media (max-width: 1020px) {
  .nav { display: none; }
  .menu-btn { display: inline-flex; }
  .site-header.open .nav { display: flex; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; background: var(--negru); border-bottom: 1px solid #1c201a; padding: 8px 24px 16px; }
  .site-header.open .nav a { padding: 14px 0; border-bottom: 1px solid #1c201a; font-size: 16px; }
}
@media (max-width: 640px) {
  .header-phone { display: none; }
  .site-header .container { gap: 10px; }
  .header-cta { gap: 8px; }
  .logo-link img { height: 34px; }
  .header-cta .btn { padding: 0 14px; font-size: 12px; letter-spacing: 0.04em; }
}
@media (max-width: 359px) {
  .logo-link img { height: 28px; }
  .header-cta .btn { padding: 0 10px; font-size: 11px; letter-spacing: 0.02em; }
}

/* Hero */
.hero { position: relative; overflow: hidden; background: radial-gradient(900px 520px at 85% 10%, rgba(90,210,30,0.16), transparent 70%), radial-gradient(700px 500px at 0% 100%, rgba(30,120,40,0.18), transparent 70%), var(--negru); }
.hero .container { padding-top: 88px; padding-bottom: 88px; display: flex; flex-wrap: wrap; gap: 56px; align-items: center; }
.hero-copy { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 26px; }
.hero h1 { font-size: clamp(40px, 6vw, 72px); line-height: 1.04; font-weight: 600; letter-spacing: -0.02em; }
.hero-sub { font-size: 19px; line-height: 1.6; font-weight: 300; color: var(--text-2); max-width: 540px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-tag { font-size: 24px; color: var(--lime); }
.badge-live { align-self: flex-start; display: inline-flex; align-items: center; gap: 10px; min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid #2c3a24; background: rgba(90,210,30,0.08); color: var(--alb); text-decoration: none; font-size: 14px; font-weight: 500; }
.badge-live strong { color: var(--lime); font-weight: 700; }
.badge-live:hover { color: var(--alb); border-color: var(--verde); }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--verde); animation: pulse 2s infinite; flex: none; }

.estimator { flex: 1 1 380px; min-width: 0; background: var(--suprafata); border: 1px solid #252b22; border-radius: 24px; padding: 32px; display: flex; flex-direction: column; gap: 20px; box-shadow: 0 30px 80px rgba(0,0,0,0.5); }
.estimator-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.estimator h2 { font-size: 20px; font-weight: 600; }
.tag-live { font-size: 11px; font-weight: 600; letter-spacing: 0.2em; color: var(--verde); }
.est-label { display: flex; flex-direction: column; gap: 8px; }
.est-label > span:first-child { font-size: 14px; color: var(--text-3); }
.big-value { font-size: 44px; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.big-value small { font-size: 20px; font-weight: 400; color: var(--text-3); }
.range-scale { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-4); }
.est-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 400px) { .estimator { padding: 22px; } .est-tile strong { font-size: 20px; } .big-value { font-size: 38px; } }
.est-tile { background: var(--suprafata-2); border-radius: 14px; padding: 16px; display: flex; flex-direction: column; gap: 6px; }
.est-tile > span { font-size: 12px; color: var(--text-3); }
.est-tile strong { font-size: 24px; font-weight: 600; font-variant-numeric: tabular-nums; }
.est-tile strong small { font-size: 14px; font-weight: 500; color: var(--lime); }
.est-note { font-size: 14px; color: var(--text-2); }
.est-note strong { color: var(--alb); font-weight: 600; }
.est-note .accent { color: var(--galben); }
.fineprint { font-size: 12px; line-height: 1.55; color: var(--text-4); }

input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; background: transparent; cursor: pointer; }
input[type=range]::-webkit-slider-runnable-track { height: 6px; border-radius: 6px; background: linear-gradient(90deg, var(--verde) var(--p, 20%), #2a3127 var(--p, 20%)); }
input[type=range]::-moz-range-track { height: 6px; border-radius: 6px; background: #2a3127; }
input[type=range]::-moz-range-progress { height: 6px; border-radius: 6px; background: var(--verde); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; margin-top: -10px; border-radius: 50%; background: var(--alb); border: 4px solid var(--verde); box-shadow: 0 2px 10px rgba(0,0,0,.4); }
input[type=range]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--alb); border: 4px solid var(--verde); }

/* Cifre */
.stats { border-top: 1px solid #1c201a; border-bottom: 1px solid #1c201a; background: var(--suprafata-3); }
.stats .container { padding-top: 56px; padding-bottom: 56px; display: flex; flex-wrap: wrap; gap: 20px; align-items: stretch; }
.stat-feature { flex: 1 1 560px; min-width: 0; position: relative; overflow: hidden; border-radius: 28px; border: 1px solid #252b22; background: radial-gradient(500px 300px at 100% 100%, rgba(90,210,30,0.12), transparent 70%), var(--suprafata); padding: clamp(24px, 4vw, 40px); display: flex; flex-wrap: wrap; gap: 32px; align-items: center; }
.stat-feature-copy { flex: 1 1 240px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.stat-kicker { display: flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 600; letter-spacing: 0.35em; color: var(--verde); }
.counter { font-size: clamp(64px, 9vw, 104px); line-height: 1; font-weight: 600; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.counter span { color: var(--verde); }
.stat-feature-copy .t1 { font-size: 18px; font-weight: 500; }
.stat-feature-copy .t2 { font-size: 14px; line-height: 1.6; font-weight: 300; color: var(--text-3); }
.pv-panel { flex: 1 1 260px; min-width: 0; display: flex; flex-direction: column; gap: 6px; padding: 16px; border-radius: 16px; background: #0a0c09; border: 1px solid #1c201a; transform: perspective(700px) rotateX(18deg) rotateZ(-4deg); }
.pv-row { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 6px; }
.pv-cell { aspect-ratio: 1 / 1.35; border-radius: 3px; background: #161b14; animation: pv 4.2s ease-in-out infinite; animation-delay: calc((var(--c) + var(--r)) * 0.11s); }
.stat-side { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.stat-card { flex: 1; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 24px; border-radius: 20px; background: var(--suprafata); border: 1px solid var(--linie); }
.stat-card span { font-size: 14px; color: var(--text-3); }
.stat-card strong { font-size: 32px; font-weight: 600; white-space: nowrap; }
@media (max-width: 400px) { .stat-card { padding: 18px; } .stat-card strong { font-size: 24px; } }

@keyframes pv { 0%,100% { background: #161b14; } 35% { background: var(--verde); } 55% { background: var(--lime); } 75% { background: #1f2a1a; } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(90,210,30,.6); } 70% { box-shadow: 0 0 0 10px rgba(90,210,30,0); } 100% { box-shadow: 0 0 0 0 rgba(90,210,30,0); } }
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .pv-cell, .live-dot { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* Secțiuni */
.section { padding: 104px 0; }
.section-alt { background: var(--suprafata-3); border-top: 1px solid #1c201a; border-bottom: 1px solid #1c201a; }
.section .container { display: flex; flex-direction: column; gap: 48px; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 20px; }
.card { background: var(--suprafata); border: 1px solid var(--linie); border-radius: var(--raza); padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.card h3 { font-size: 20px; font-weight: 600; }
.card p { font-size: 15px; line-height: 1.6; font-weight: 300; color: var(--text-2); }
.step-no { font-size: 14px; font-weight: 600; letter-spacing: 0.3em; }

.split { display: flex; flex-wrap: wrap; gap: 64px; align-items: center; }
.split > * { flex: 1 1 440px; min-width: 0; }
.why-title { font-size: clamp(44px, 6vw, 72px); line-height: 1.05; }
.why-copy { display: flex; flex-direction: column; gap: 22px; }
.why-copy p { font-size: 17px; line-height: 1.7; font-weight: 300; color: var(--text-2); }
.why-copy .why-lead { font-size: 21px; line-height: 1.5; font-weight: 500; color: var(--alb); }
.promise-list { display: flex; flex-direction: column; gap: 14px; }
.promise { display: flex; gap: 18px; align-items: flex-start; padding: 22px 24px; border-radius: 18px; background: var(--suprafata); border: 1px solid var(--linie); }
.promise svg { flex: none; }
.promise h3 { font-size: 18px; font-weight: 600; margin-bottom: 6px; }
.promise p { font-size: 15px; line-height: 1.6; font-weight: 300; color: var(--text-2); }

.package { background: var(--suprafata); border: 1px solid var(--linie); border-radius: 22px; padding: 32px; display: flex; flex-direction: column; gap: 20px; }
.package.featured { background: #121a0f; border: 2px solid var(--verde); }
.package-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.package h3 { font-size: 22px; font-weight: 600; }
.pill { font-size: 11px; font-weight: 600; letter-spacing: 0.16em; color: var(--negru); background: var(--verde); padding: 6px 10px; border-radius: 999px; }
.package .power { font-size: 40px; font-weight: 600; }
.package .power small { font-size: 18px; color: var(--lime); }
.package ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: 15px; font-weight: 300; color: var(--text-2); }
.package li { display: flex; gap: 10px; align-items: flex-start; }
.package li::before { content: ""; flex: none; width: 16px; height: 16px; margin-top: 3px; background: no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235ad21e' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E"); }
.package .price { margin-top: auto; font-size: 15px; color: var(--text-3); }
.package .price strong { color: var(--alb); font-size: 24px; font-weight: 600; }
.package .btn { width: 100%; }

.equip { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.equip div { padding: 20px 22px; border-radius: 16px; border: 1px solid var(--linie); background: var(--suprafata); display: flex; flex-direction: column; gap: 4px; }
.equip span { font-size: 12px; font-weight: 600; letter-spacing: 0.25em; color: var(--verde); }
.equip strong { font-size: 16px; font-weight: 600; }
.equip small { font-size: 13px; color: var(--text-3); }

.faq { max-width: 880px; }
.faq-list { border-top: 1px solid var(--linie); }
.faq details { border-bottom: 1px solid var(--linie); padding: 20px 0; }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; font-size: 18px; font-weight: 500; min-height: 44px; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq .plus { color: var(--verde); font-size: 28px; font-weight: 300; transition: transform .2s; flex: none; }
.faq details[open] .plus { transform: rotate(45deg); }
.faq details p { margin-top: 12px; font-size: 16px; line-height: 1.7; font-weight: 300; color: var(--text-2); }

.cta-band { border-top: 1px solid #1c201a; background: radial-gradient(800px 420px at 50% 0%, rgba(90,210,30,0.14), transparent 70%), var(--negru); }
.cta-band .container { max-width: 960px; padding-top: 112px; padding-bottom: 112px; display: flex; flex-direction: column; align-items: center; gap: 26px; text-align: center; }
.cta-band .rule { width: 220px; height: 2px; background: var(--lime); }
.cta-band h2 { font-size: clamp(40px, 6vw, 68px); line-height: 1.1; letter-spacing: 0.06em; }
.cta-band .actions { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }

/* Subsol */
.site-footer { border-top: 1px solid #1c201a; background: #050605; }
.site-footer .container { padding-top: 56px; padding-bottom: 32px; display: flex; flex-direction: column; gap: 40px; }
.footer-cols { display: flex; flex-wrap: wrap; gap: 48px; justify-content: space-between; }
.footer-col { display: flex; flex-direction: column; gap: 10px; flex: 1 1 200px; }
.footer-col.brand { flex: 2 1 340px; gap: 14px; }
.footer-col.brand img { height: 64px; width: auto; align-self: flex-start; }
.footer-col h3 { font-size: 12px; font-weight: 600; letter-spacing: 0.3em; color: var(--verde); margin-bottom: 6px; }
.footer-col a { color: var(--text-2); text-decoration: none; font-size: 14px; }
.footer-col a:hover { color: var(--alb); }
.footer-col .strong-link { color: var(--alb); font-size: 15px; }
.footer-col address { font-style: normal; font-size: 14px; line-height: 1.6; color: var(--text-3); }
.footer-col p { font-size: 14px; line-height: 1.65; font-weight: 300; color: var(--text-3); max-width: 520px; }
.anre { align-self: flex-start; display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 14px; border: 1px solid #2c3a24; background: #0d120b; }
.anre span { display: flex; flex-direction: column; gap: 2px; }
.anre strong { font-size: 13px; font-weight: 600; }
.anre small { font-size: 12px; color: var(--text-3); }
.anpc { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.anpc a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 10px; border: 1px solid #2c3329; font-size: 12px; font-weight: 600; letter-spacing: 0.06em; color: var(--text-2); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 24px; border-top: 1px solid #1c201a; font-size: 12px; letter-spacing: 0.06em; color: var(--text-4); }
.footer-bottom button { background: none; border: 0; color: var(--text-3); font-size: 12px; text-decoration: underline; padding: 0; }

/* Cookie banner */
.cookie { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 80; max-width: 560px; margin-left: auto; background: #10140e; border: 1px solid #2c3a24; border-radius: 18px; padding: 20px; box-shadow: 0 20px 60px rgba(0,0,0,.6); display: flex; flex-direction: column; gap: 14px; }
.cookie[hidden] { display: none; }
.cookie p { font-size: 14px; line-height: 1.55; color: var(--text-2); }
.cookie .actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie .btn { min-height: 44px; padding: 0 18px; font-size: 14px; }

/* Pagini legale */
.legal { padding: 64px 0 104px; }
.legal .container { max-width: 820px; display: flex; flex-direction: column; gap: 18px; }
.legal h1 { font-size: clamp(32px, 4.5vw, 48px); line-height: 1.15; font-weight: 600; margin-bottom: 4px; }
.legal h2 { font-size: 22px; font-weight: 600; margin-top: 22px; }
.legal p, .legal li { font-size: 16px; line-height: 1.75; font-weight: 300; color: var(--text-2); }
.legal ul { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }
.legal strong { color: var(--alb); font-weight: 600; }
.legal .meta { font-size: 14px; color: var(--text-4); }
.legal table { width: 100%; border-collapse: collapse; font-size: 14px; }
.legal th, .legal td { text-align: left; padding: 12px; border-bottom: 1px solid var(--linie); color: var(--text-2); vertical-align: top; }
.legal th { color: var(--alb); font-weight: 600; }
.table-wrap { overflow-x: auto; border: 1px solid var(--linie); border-radius: 14px; }

/* Proiecte + galerie */
.project + .project { margin-top: 20px; }
.project { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; background: var(--suprafata); border: 1px solid var(--linie); border-radius: 26px; padding: clamp(20px, 3vw, 32px); }
.project-info { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.project-tag { align-self: flex-start; font-size: 12px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--verde); }
.project-info h3 { font-size: 26px; line-height: 1.25; font-weight: 600; }
.project-info p { font-size: 15.5px; line-height: 1.7; font-weight: 300; color: var(--text-2); }
.project-specs { margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.project-specs div { background: var(--suprafata-2); border-radius: 14px; padding: 14px 12px; min-width: 0; }
.project-specs dt { font-size: 12px; color: var(--text-3); }
.project-specs dd { margin: 4px 0 0; font-size: 17px; font-weight: 600; }
.project-info .btn { align-self: flex-start; margin-top: 4px; }
.project-gallery { flex: 1.6 1 420px; min-width: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.pg-item { position: relative; padding: 0; border: 0; border-radius: 14px; overflow: hidden; background: #0a0c09; aspect-ratio: 3 / 4; cursor: zoom-in; }
.pg-item img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.pg-item:hover img { transform: scale(1.04); }
.pg-main { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
.pg-main img { object-position: center 30%; }
@media (max-width: 560px) {
  .project-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); flex-basis: 100%; }
  .pg-main { grid-row: auto; aspect-ratio: 3 / 4; }
  .project-specs dd { font-size: 15px; }
}
.lightbox { padding: 0; border: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100%; height: 100%; }
.lightbox::backdrop { background: rgba(0,0,0,0.92); }
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 12px; max-width: min(92vw, 900px); }
.lightbox img { max-width: 100%; max-height: 82vh; width: auto; height: auto; border-radius: 12px; }
.lightbox figcaption { color: var(--text-2); font-size: 14px; text-align: center; }
.lb-close, .lb-nav { position: fixed; z-index: 2; width: 48px; height: 48px; border-radius: 50%; border: 1px solid #3a4236; background: rgba(15,18,14,0.85); color: #fff; display: flex; align-items: center; justify-content: center; }
.lb-close { top: calc(16px + env(safe-area-inset-top, 0px)); right: 16px; }
.lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 16px; top: 50%; transform: translateY(-50%); }
