:root {
  --green: #1d4a31;
  --green-dark: #143724;
  --green-soft: #e6ece6;
  --pin: #4f9a63;
  --cream: #f6f1e6;
  --beige: #f4eee2;
  --circle: #f5efe3;
  --ink: #1d2a22;
  --muted: #4c5751;
  --line: #e3ddd0;
  --white: #fff;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 6px 24px rgba(29, 42, 34, .08);
  --serif: "Noto Serif Georgian", Georgia, serif;
  --sans: "Noto Sans Georgian", system-ui, -apple-system, "Segoe UI", sans-serif;
  --bar-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--white);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  padding-bottom: var(--bar-h);
}
img, video, iframe { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; color: var(--green); margin: 0; line-height: 1.25; }
p { margin: 0; }
svg { width: 1em; height: 1em; flex: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 4px; }

.container { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: 16px; }
@media (min-width: 768px) { .container { padding-inline: 32px; } }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 14px 22px; border-radius: 12px;
  font-weight: 500; font-size: 1rem; transition: background .2s, transform .2s;
}
.btn svg { font-size: 1.25em; }
.btn-primary { background: var(--green); color: var(--white); }
.btn-primary:hover { background: var(--green-dark); }
.btn-primary:active { transform: translateY(1px); }


/* ---------- header ---------- */

.site-header { position: sticky; top: 0; z-index: 50; background: var(--cream); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; color: #1a3732; }
.brand-mark { width: 72px; height: 40px; }
.brand-text {
  display: flex; flex-direction: column; gap: 3px; padding-left: 12px; border-left: 1px solid currentColor;
  font-size: 8.5px; line-height: 1; letter-spacing: .32em; font-weight: 500; color: var(--ink);
}
.brand-footer { color: #e9e2cf; }
.brand-footer .brand-mark { width: 100px; height: 56px; }
.brand-footer .brand-text { color: #e9e2cf; font-size: 10px; }

.burger { width: 44px; height: 44px; display: grid; place-content: center; gap: 6px; }
.burger span { display: block; width: 30px; height: 2px; background: var(--green); transition: transform .25s, opacity .25s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.nav {
  position: fixed; inset: 72px 0 0; background: var(--cream);
  display: flex; flex-direction: column; gap: 4px; padding: 24px 16px;
  transform: translateY(-8px); opacity: 0; visibility: hidden; transition: .25s;
}
.nav.is-open { transform: none; opacity: 1; visibility: visible; }
.nav > a { font-family: var(--serif); font-size: 1.5rem; color: var(--green); padding: 12px 0; border-bottom: 1px solid var(--line); }
.lang { display: flex; gap: 8px; margin-top: 20px; }
.lang button { padding: 8px 14px; border: 1px solid var(--green); border-radius: 8px; color: var(--green); font-size: .85rem; font-weight: 600; }
.lang button[aria-pressed="true"] { background: var(--green); color: var(--white); }
body.nav-open { overflow: hidden; }

@media (min-width: 900px) {
  .burger { display: none; }
  .nav {
    position: static; flex-direction: row; align-items: center; gap: 32px; padding: 0;
    background: none; transform: none; opacity: 1; visibility: visible;
  }
  .nav > a { font-family: var(--sans); font-size: .95rem; padding: 0; border: 0; color: var(--ink); }
  .nav > a:hover { color: var(--green); }
  .lang { margin: 0; }
  .lang button { padding: 6px 10px; }
}

/* ---------- hero ---------- */

.hero { display: grid; gap: 24px; padding-top: 24px; padding-bottom: 8px; }
.hero h1 { font-size: clamp(1.9rem, 6.4vw, 3.1rem); line-height: 1.25; margin-bottom: 16px; }
.hero p { font-size: clamp(.95rem, 3.4vw, 1.05rem); color: var(--muted); margin-bottom: 26px; max-width: 32em; }
.hero-media { margin: 0; border-radius: 18px; overflow: hidden; aspect-ratio: 3 / 2; box-shadow: var(--shadow); }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }

@media (min-width: 900px) {
  .hero { grid-template-columns: 1fr 1.05fr; align-items: center; gap: 56px; padding-top: 32px; padding-bottom: 16px; }
}

/* ---------- project map ---------- */

.project-map { position: relative; z-index: 1; margin-top: -40px; }
.hero-map { position: relative; z-index: 0; height: 560px; background: #eef0e6; cursor: default; }
.hero-map .leaflet-tile-pane { filter: grayscale(.45) saturate(.75) brightness(1.08) contrast(.82); }
.hero-map .leaflet-control-attribution { font-size: 10px; background: rgba(255, 255, 255, .7); }
/* fade the map in from the top so the features sit on plain page and the map rises out of it */
.hero-map {
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 var(--map-fade, 80px));
  mask-image: linear-gradient(to bottom, transparent 0, #000 var(--map-fade, 80px));
}

@media (min-width: 900px) {
  .project-map { margin-top: -40px; }
  .hero-map { height: clamp(560px, 86vh, 840px); --map-fade: 100px; }
}

/* map pins: green teardrop with the project photo */
.pin { background: none; border: 0; }
.pin-drop {
  display: block; padding: 3px; background: var(--pin);
  border-radius: 50% 50% 50% 0; transform: rotate(-45deg);
  box-shadow: -2px 4px 10px rgba(20, 55, 36, .3);
}
.leaflet-container .pin-drop img {
  display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 50%;
  transform: rotate(45deg);
}
/* hover: grow from the tip so the pin stays on its spot, then ease back */
.pin-inner {
  display: block; width: 100%; height: 100%; transform-origin: 50% 100%;
  transition: transform .3s cubic-bezier(.2, .8, .3, 1.15);
}
.pin:hover .pin-inner, .pin:focus-visible .pin-inner { transform: scale(var(--grow, 2.4)); }
.pin:hover .pin-drop { box-shadow: -4px 10px 28px rgba(20, 55, 36, .35); }

/* zoom + reset controls, right middle */
.map-controls {
  position: absolute; right: 16px; top: 50%; transform: translateY(-50%); z-index: 800;
  display: flex; flex-direction: column; gap: 10px;
}
.map-zoom { display: flex; flex-direction: column; background: var(--white); border-radius: 10px; box-shadow: 0 4px 14px rgba(20, 40, 28, .15); overflow: hidden; }
.map-zoom button, .map-reset { width: 40px; height: 40px; display: grid; place-items: center; color: var(--ink); font-size: 20px; }
.map-zoom button + button { border-top: 1px solid var(--line); }
.map-reset { background: var(--white); border-radius: 10px; box-shadow: 0 4px 14px rgba(20, 40, 28, .15); }
.map-zoom button:hover, .map-reset:hover { background: var(--cream); }
.map-controls svg { width: 20px; height: 20px; }

/* ---------- features ---------- */

.features {
  position: relative; z-index: 2; display: grid; grid-template-columns: repeat(3, 1fr);
  padding-top: 28px; padding-bottom: 28px;
}
.feature { text-align: center; padding: 0 8px; }
.feature + .feature { border-left: 1px solid var(--line); }
.feature-icon {
  display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 12px;
  border-radius: 50%; background: var(--circle); color: var(--green); font-size: 32px;
}
.feature h3 { font-size: clamp(1rem, 3.6vw, 1.3rem); margin-bottom: 6px; }
.feature p { font-size: clamp(.72rem, 2.4vw, .92rem); color: var(--muted); line-height: 1.5; max-width: 16em; margin-inline: auto; }

@media (min-width: 900px) {
  .features { padding-top: 32px; padding-bottom: 40px; }
  .feature-icon { width: 80px; height: 80px; font-size: 40px; }
}

/* ---------- cards ---------- */

.card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid #efeae0; }

/* ---------- trust ---------- */

.trust {
  margin-top: 8px; background: var(--beige); border-radius: var(--radius); padding: 22px 24px 18px;
  display: grid; grid-template-columns: 1fr auto; gap: 8px 24px; align-items: center;
}
.trust h2 { font-size: clamp(1.15rem, 4.6vw, 2rem); margin-bottom: 8px; color: var(--ink); }
.trust p { color: var(--muted); font-size: clamp(.78rem, 2.4vw, 1rem); }
.trust-emblem { width: clamp(70px, 16vw, 130px); height: auto; color: var(--green); }
.partners {
  grid-column: 1 / -1; list-style: none; margin: 12px 0 0; padding: 0;
  display: flex; justify-content: space-between; align-items: center; gap: 12px; color: #3f4441; font-size: clamp(.62rem, 2.3vw, 1rem);
}
.partner { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.partner-bog { font-size: .82em; letter-spacing: .02em; white-space: nowrap; }
.partner-bog svg { font-size: 1.8em; }
.partner-tbc { flex-direction: column; gap: 0; line-height: 1; }
.partner-tbc strong { font-size: 1.5em; letter-spacing: .02em; }
.partner-tbc small { font-size: .5rem; font-weight: 500; }
.partner-remax { font-size: 1.5em; font-weight: 700; letter-spacing: .02em; }
.partner-icon svg { font-size: 2.4em; }

/* ---------- about ---------- */

.about { display: grid; gap: 24px; padding-top: 56px; padding-bottom: 32px; }
.about-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 600; color: var(--muted); margin-bottom: 8px; }
.about h2, .team h2, .contacts h2 { font-size: clamp(1.6rem, 5vw, 2.4rem); margin-bottom: 16px; }
.about-copy p:not(.eyebrow) { color: var(--muted); margin-bottom: 14px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 0; }
.stats > div { background: var(--cream); border-radius: var(--radius-sm); padding: 18px 10px; text-align: center; }
.stats dt { font-family: var(--serif); font-size: clamp(1.6rem, 6vw, 2.6rem); color: var(--green); line-height: 1.1; }
.stats dd { margin: 4px 0 0; color: var(--muted); font-size: .85rem; }

@media (min-width: 900px) {
  .about { grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
  .stats { grid-column: 1 / -1; }
}

.team { display: grid; gap: 24px; padding-top: 32px; padding-bottom: 32px; }
.team p { color: var(--muted); }
.team-video { width: 100%; border-radius: var(--radius); background: #000; aspect-ratio: 16 / 9; object-fit: cover; }
@media (min-width: 900px) { .team { grid-template-columns: 1fr 1.3fr; gap: 48px; align-items: center; } }

/* ---------- contacts ---------- */

.contacts { padding-top: 40px; padding-bottom: 56px; }
.offices { display: grid; gap: 20px; }
.office { padding: 22px; display: flex; flex-direction: column; }
.office h3 { font-size: 1.3rem; margin-bottom: 14px; }
.office-list { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 10px; }
.office-list li { display: flex; align-items: flex-start; gap: 10px; color: var(--muted); }
.office-list svg { font-size: 1.2rem; color: var(--green); margin-top: 3px; }
.office-list a:hover { color: var(--green); }
.map { width: 100%; height: 240px; border: 0; border-radius: var(--radius-sm); margin-top: auto; }
@media (min-width: 768px) { .offices { grid-template-columns: 1fr 1fr; } }

/* ---------- footer ---------- */

.site-footer { background: var(--green-dark); color: #e9e2cf; padding: 40px 0 28px; }
.footer-inner { display: grid; gap: 24px; }
.footer-links { display: grid; gap: 14px; }
.footer-links a { display: flex; flex-direction: column; font-size: 1.05rem; }
.footer-links small { font-size: .75rem; opacity: .7; letter-spacing: .06em; }
.socials { display: flex; gap: 12px; }
.socials a { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(233, 226, 207, .35); display: grid; place-items: center; font-size: 18px; transition: .2s; }
.socials a:hover { background: #e9e2cf; color: var(--green-dark); }
.copyright { font-size: .8rem; opacity: .7; }
@media (min-width: 900px) {
  .footer-inner { grid-template-columns: auto 1fr auto; align-items: center; gap: 40px; }
  .footer-links { grid-auto-flow: column; justify-content: center; gap: 48px; }
  .copyright { grid-column: 1 / -1; border-top: 1px solid rgba(233, 226, 207, .15); padding-top: 20px; }
}

/* project page: no sticky bar, slim one-line footer under the slider */
body[data-page="project"] { padding-bottom: 0; }
body[data-page="project"] .site-footer { padding: 18px 0; border-top: 1px solid rgba(233, 226, 207, .12); }
body[data-page="project"] .brand-footer { display: none; }
@media (min-width: 900px) {
  body[data-page="project"] .footer-inner { grid-template-columns: 1fr auto auto; gap: 32px; }
  body[data-page="project"] .footer-links { justify-content: start; gap: 40px; }
  body[data-page="project"] .footer-links a { flex-direction: row; align-items: baseline; gap: 10px; font-size: .95rem; }
  body[data-page="project"] .socials a { width: 34px; height: 34px; font-size: 15px; }
  body[data-page="project"] .copyright { grid-column: auto; border: 0; padding: 0; }
}

/* ---------- sticky contact bar ---------- */

.contact-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  background: rgba(255, 255, 255, .96); backdrop-filter: blur(8px);
  border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom);
}
.contact-bar-inner { height: var(--bar-h); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.contact-phone { display: flex; align-items: center; gap: 12px; min-width: 0; }
.contact-phone > svg { font-size: 22px; color: var(--green); }
.contact-phone span { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.contact-phone strong { font-weight: 500; font-size: 1rem; white-space: nowrap; }
.contact-phone small { color: var(--muted); font-size: .78rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.contact-bar .btn { padding: 12px 18px; white-space: nowrap; }
.contact-bar .btn svg { font-size: 1.2em; }
@media (max-width: 400px) {
  .contact-bar .btn { padding: 12px 14px; font-size: .85rem; gap: 8px; }
  .contact-phone { gap: 8px; }
  .contact-phone strong { font-size: .9rem; }
  .contact-phone small { font-size: .68rem; }
}

/* ---------- projects list + single project ---------- */

.projects-page { padding-top: 32px; padding-bottom: 56px; }
.projects-head { max-width: 640px; margin-bottom: 28px; }
.projects-head h1 { font-size: clamp(2rem, 6vw, 3rem); margin: 4px 0 10px; }
.projects-head p:last-child { color: var(--muted); }

.projects-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.project-card {
  display: flex; flex-direction: column; background: var(--white); border: 1px solid #efeae0;
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s;
}
.project-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(29, 42, 34, .14); }
.project-card-media { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--beige); }
.project-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.project-card:hover .project-card-media img { transform: scale(1.05); }
.project-card-media .status-badge { position: absolute; top: 12px; left: 12px; }
.project-card-body { display: flex; flex-direction: column; gap: 8px; flex: 1; padding: 16px 18px 18px; }
.project-card strong { font-family: var(--serif); font-weight: 500; font-size: 1.25rem; color: var(--green); line-height: 1.3; }
.project-card .loc, .project-head .loc { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: .88rem; }
.project-card .desc {
  color: var(--muted); font-size: .9rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.project-card-go { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 6px; color: var(--green); font-weight: 600; font-size: .9rem; }
.project-card-go svg { transition: transform .2s; }
.project-card:hover .project-card-go svg { transform: translateX(4px); }

.status-badge {
  display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: .78rem; font-weight: 600;
  background: var(--green); color: var(--white);
}
.status-badge.is-ongoing { background: var(--pin); }

.project-page { padding-top: 24px; padding-bottom: 56px; }
.back-link { display: inline-flex; align-items: center; gap: 8px; color: var(--green); font-weight: 500; margin-bottom: 18px; }
.back-link svg { transform: rotate(180deg); transition: transform .2s; }
.back-link:hover svg { transform: rotate(180deg) translateX(4px); }
.project-empty { color: var(--muted); font-size: 1.1rem; }

/* split view: info panel + photo slider */
.project-split { display: flex; flex-direction: column; background: var(--green-dark); }
.project-panel { order: 2; background: var(--white); padding: 24px 16px 32px; }
.project-head { margin-bottom: 22px; }
.project-head h1 { font-size: clamp(1.9rem, 6vw, 2.6rem); margin: 8px 0 6px; }
.project-head .loc { display: flex; align-items: center; gap: 6px; color: var(--muted); }
.panel-frame { position: relative; display: inline-block; padding: 16px 22px; margin-bottom: 18px; }
.panel-frame::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 64%;
  border: 3px solid #ead9b5; border-right: 0;
}
.panel-frame h2 { position: relative; font-size: clamp(1.4rem, 4vw, 1.75rem); }
.panel-desc { color: var(--muted); line-height: 1.75; padding-bottom: 22px; margin-bottom: 26px; border-bottom: 1px solid var(--line); }
.panel-group { margin-bottom: 26px; }
.panel-group h3 { font-size: clamp(1.25rem, 3.6vw, 1.55rem); margin-bottom: 12px; }
.panel-thumbs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.panel-thumbs button { flex: none; width: 128px; aspect-ratio: 16 / 11; border-radius: 6px; overflow: hidden; outline-offset: 2px; opacity: .75; transition: opacity .2s; }
.panel-thumbs button:hover, .panel-thumbs button.is-active { opacity: 1; }
.panel-thumbs button.is-active { outline: 2px solid var(--green); }
.panel-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.panel-facts { margin: 0 0 22px; padding: 18px 22px; background: var(--green); color: var(--white); border-radius: var(--radius-sm); }
.panel-facts div { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; }
.panel-facts div + div { border-top: 1px solid rgba(255, 255, 255, .14); }
.panel-facts dt { color: #cfe0d4; font-size: .85rem; }
.panel-facts dd { margin: 0; font-weight: 500; text-align: right; }
.panel-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.panel-nav a { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.panel-nav a + a { text-align: right; }
.panel-nav small { color: #b8955a; font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.panel-nav strong { font-family: var(--serif); font-weight: 500; color: var(--green); font-size: 1.1rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.panel-nav a:hover strong { text-decoration: underline; }

.project-stage { order: 1; display: flex; flex-direction: column; min-width: 0; }
.slides { position: relative; overflow: hidden; height: clamp(260px, 62vw, 520px); background: #0f2219; }
.slides-track { display: flex; height: 100%; transition: transform .8s cubic-bezier(.65, 0, .35, 1); touch-action: pan-y; }
.slide { flex: 0 0 100%; height: 100%; cursor: zoom-in; }
.slide img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; user-select: none; }
.slider-arrow {
  position: absolute; top: 50%; z-index: 2; width: 52px; height: 52px; margin-top: -26px; display: grid; place-items: center;
  background: rgba(20, 40, 28, .55); color: var(--white); font-size: 22px; transition: background .2s;
}
.slider-arrow:hover { background: rgba(20, 40, 28, .85); }
.slider-arrow.is-prev { left: 16px; }
.slider-arrow.is-prev svg { transform: rotate(180deg); }
.slider-arrow.is-next { right: 16px; }
.slider-thumbs {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; display: flex; gap: 8px; padding: 12px; overflow-x: auto;
  background: rgba(15, 34, 25, .85); transform: translateY(100%); transition: transform .35s;
}
.thumbs-open .slider-thumbs { transform: none; }
.slider-thumbs button { flex: none; width: 112px; aspect-ratio: 16 / 11; border-radius: 6px; overflow: hidden; opacity: .6; transition: opacity .2s; }
.slider-thumbs button:hover, .slider-thumbs button.is-active { opacity: 1; }
.slider-thumbs button.is-active { outline: 2px solid #ead9b5; }
.slider-thumbs img { width: 100%; height: 100%; object-fit: cover; }

.slider-bar { display: flex; align-items: center; gap: 18px; height: 64px; padding-right: 16px; background: var(--green); color: var(--white); }
.slider-count {
  align-self: stretch; display: grid; place-items: center; width: 76px; flex: none;
  background: #f1e3c3; color: var(--green-dark); font-weight: 700; font-size: 1.15rem;
}
.slider-play { width: 32px; height: 32px; display: grid; place-items: center; flex: none; }
.slider-play svg { width: 18px; height: 18px; }
.slider-dots { display: flex; align-items: center; gap: 4px; min-width: 0; overflow: hidden; }
.slider-dots button { width: 18px; height: 18px; display: grid; place-items: center; flex: none; }
.slider-dots button::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, .55); transition: .25s; }
.slider-dots button[aria-current="true"]::before { width: 10px; height: 10px; background: var(--white); box-shadow: 0 0 0 5px rgba(255, 255, 255, .18); }
.slider-progress { display: none; flex: 1; max-width: 260px; height: 2px; background: rgba(255, 255, 255, .22); overflow: hidden; }
.slider-progress i { display: block; height: 100%; width: 100%; background: #f1e3c3; transform-origin: left; transform: scaleX(0); }
@keyframes slide-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.slider-thumbs-btn { margin-left: auto; font-size: .78rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; white-space: nowrap; }
.slider-thumbs-btn[aria-expanded="true"] { color: #f1e3c3; }
.slider-panel-btn { display: none; width: 32px; height: 32px; flex-direction: column; align-items: center; justify-content: center; gap: 3px; }
.slider-panel-btn span { width: 4px; height: 4px; border-radius: 50%; background: currentColor; }

.lightbox {
  border: 0; padding: 0; width: 100vw; height: 100vh; max-width: none; max-height: none;
  background: rgba(14, 22, 17, .94); color: var(--white);
}
.lightbox::backdrop { background: transparent; }
.lightbox[open] { display: grid; place-items: center; }
.lightbox-img { max-width: calc(100vw - 32px); max-height: calc(100vh - 120px); object-fit: contain; border-radius: 8px; }
.lightbox-btn {
  position: absolute; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  background: rgba(255, 255, 255, .12); color: var(--white); font-size: 22px; transition: background .2s;
}
.lightbox-btn:hover { background: rgba(255, 255, 255, .25); }
.lightbox-close { top: 16px; right: 16px; }
.lightbox-prev, .lightbox-next { top: 50%; transform: translateY(-50%); }
.lightbox-prev { left: 12px; }
.lightbox-prev svg { transform: rotate(180deg); }
.lightbox-next { right: 12px; }
.lightbox-count { position: absolute; bottom: 20px; left: 0; right: 0; text-align: center; font-size: .9rem; opacity: .8; }

@media (min-width: 1024px) {
  .project-split {
    display: grid; grid-template-columns: minmax(380px, 34%) 1fr; grid-template-rows: minmax(0, 1fr); padding: 20px;
    height: calc(100vh - 72px); min-height: 600px; transition: grid-template-columns .5s;
  }
  .project-split.is-wide { grid-template-columns: 0 1fr; }
  .project-split.is-wide .project-panel { padding-inline: 0; overflow: hidden; }
  .project-panel { order: 0; min-height: 0; overflow-y: auto; padding: 36px 40px; scrollbar-width: thin; border-radius: 12px 0 0 12px; }
  .project-stage { order: 0; min-height: 0; border-radius: 0 12px 12px 0; overflow: hidden; }
  .project-split.is-wide .project-stage { border-radius: 12px; }
  .slides { flex: 1; height: auto; }
  .slider-progress, .slider-panel-btn { display: flex; }
  .slider-bar { height: 72px; gap: 26px; padding-right: 24px; }
  .slider-count { width: 112px; font-size: 1.3rem; }
  .slider-arrow { width: 60px; height: 60px; margin-top: -30px; }
}

@media (min-width: 900px) {
  .projects-page { padding-top: 56px; }
}

.modal-actions { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 20px; margin-top: 18px; }
.modal-all { display: inline-flex; align-items: center; gap: 8px; color: var(--green); font-weight: 600; }
.modal-all svg { transition: transform .2s; }
.modal-all:hover { text-decoration: underline; }
.modal-all:hover svg { transform: translateX(4px); }
.nav > a[aria-current="page"] { color: var(--green); }

/* ---------- modal ---------- */

.modal { border: 0; padding: 0; border-radius: var(--radius); max-width: min(720px, calc(100% - 32px)); width: 100%; box-shadow: 0 20px 60px rgba(0, 0, 0, .25); }
.modal::backdrop { background: rgba(20, 30, 24, .6); }
.modal-img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.modal-body { padding: 22px; }
.modal-title { font-size: 1.6rem; margin-bottom: 6px; }
.modal-loc { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: .9rem; margin-bottom: 12px; }
.modal-desc { color: var(--ink); }
.modal-close {
  position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255, 255, 255, .92); display: grid; place-items: center; font-size: 20px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
