/*--------------------------------------------------------------
# RRcon — theme
# Dark, technical look built around the logo olive (#636330).
# No frameworks: this file + main.js are the whole front end.
--------------------------------------------------------------*/

/* Self-hosted variable fonts (latin + latin-ext covers Latvian) */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("../fonts/inter-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("../fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("../fonts/spacegrotesk-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("../fonts/spacegrotesk-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #0b0c08;
  --bg-2: #10110c;
  --surface: #15160f;
  --surface-2: #1b1c14;
  --line: rgba(238, 240, 224, 0.09);
  --line-2: rgba(238, 240, 224, 0.16);
  --text: #eef0e0;
  --muted: rgba(238, 240, 224, 0.62);
  --dim: rgba(238, 240, 224, 0.22);

  --olive: #636330;
  --olive-2: #84853f;
  --lime: #d4de6e;
  --lime-2: #e6ee95;
  --paper: #ecedde;
  --ink: #16170f;

  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-head: "Space Grotesk", "Inter", system-ui, sans-serif;

  --r-sm: 12px;
  --r: 18px;
  --r-lg: 26px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 80px;
}

/*--------------------------------------------------------------
# Base
--------------------------------------------------------------*/
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overflow-x: clip;
}

html { overflow-x: clip; }

/* Film grain over the whole page — tiny inline SVG, no request */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1000;
  pointer-events: none;
  opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img, svg { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4, h5, h6, p, figure { margin: 0; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

button { font: inherit; color: inherit; }

::selection { background: var(--lime); color: var(--bg); }

:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 3px;
  border-radius: 6px;
}

.ic {
  width: 1em;
  height: 1em;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

section {
  position: relative;
  padding-block: clamp(80px, 12vw, 150px);
}

.skip {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 3000;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--lime);
  color: var(--bg);
  font-weight: 600;
  transform: translateY(-200%);
  transition: transform 0.3s var(--ease);
}

.skip:focus { transform: none; }

/*--------------------------------------------------------------
# Section header — counter + oversized title
--------------------------------------------------------------*/
main { counter-reset: sec; }

.section-header {
  counter-increment: sec;
  display: flex;
  align-items: flex-end;
  gap: 20px;
  margin-bottom: clamp(44px, 6vw, 80px);
  padding-bottom: 26px;
  border-bottom: 1px solid var(--line);
}

.section-header::before {
  content: "(" counter(sec, decimal-leading-zero) ")";
  order: 2;
  margin-left: auto;
  padding-bottom: 0.6em;
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
}

.section-header h2 {
  font-size: clamp(2.5rem, 7vw, 5.6rem);
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.section-header h2 span { color: var(--lime); }

/*--------------------------------------------------------------
# Buttons
--------------------------------------------------------------*/
.btn-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-height: 58px;
  padding: 8px 8px 8px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), background 0.3s, color 0.3s, border-color 0.3s;
}

.btn .ic {
  width: 42px;
  height: 42px;
  padding: 12px;
  border-radius: 50%;
  stroke-width: 2;
  transition: transform 0.5s var(--ease);
}

.btn-lime {
  color: var(--bg);
  background: var(--lime);
}

.btn-lime .ic {
  color: var(--lime);
  background: var(--bg);
}

/* Shine sweep */
.btn-lime::before,
.btn-dark::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.55) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.8s var(--ease);
}

.btn-dark::before { background: linear-gradient(110deg, transparent 30%, rgba(212, 222, 110, 0.35) 50%, transparent 70%); }

.btn-lime:hover {
  box-shadow: 0 0 0 8px rgba(212, 222, 110, 0.14), 0 18px 40px -12px rgba(212, 222, 110, 0.55);
}

.btn-lime:hover::before,
.btn-dark:hover::before { transform: translateX(120%); }
.btn-lime:hover .ic,
.btn-dark:hover .ic { transform: rotate(-45deg); }
.btn-dark:hover .ic { transform: rotate(-12deg) scale(1.06); }

.btn-ghost {
  padding: 8px 26px;
  border: 1px solid var(--line-2);
  background: rgba(11, 12, 8, 0.35);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.btn-ghost:hover { border-color: var(--lime); color: var(--lime); }

.btn-dark {
  color: var(--paper);
  background: var(--ink);
}

.btn-dark .ic {
  color: var(--ink);
  background: var(--lime);
}

.btn-dark:hover { box-shadow: 0 18px 40px -14px rgba(0, 0, 0, 0.55); }

.btn-outline-dark {
  padding: 8px 26px;
  color: var(--ink);
  border: 1.5px solid rgba(22, 23, 15, 0.35);
}

.btn-outline-dark:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/*--------------------------------------------------------------
# Header
--------------------------------------------------------------*/
.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 900;
  height: var(--header-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid transparent;
  transition: background 0.5s var(--ease), border-color 0.5s var(--ease), height 0.5s var(--ease), transform 0.5s var(--ease);
}

.header.sticked {
  height: 66px;
  background: rgba(11, 12, 8, 0.72);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  backdrop-filter: saturate(160%) blur(16px);
  border-color: var(--line);
}

/* Hide when scrolling down, show when scrolling up */
.header.hide { transform: translateY(-100%); }

.header-inner {
  display: flex;
  align-items: center;
  gap: 16px;
}

.logo { margin-right: auto; }

.logo img {
  height: 30px;
  width: auto;
}

.progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 2px;
  width: 100%;
  background: linear-gradient(90deg, var(--olive-2), var(--lime));
  transform-origin: 0 50%;
  transform: scaleX(var(--p, 0));
}

.header-call {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 48px;
  padding: 0 18px 0 8px;
  border-radius: 999px;
  background: var(--lime);
  color: var(--bg);
  font-size: 14.5px;
  font-weight: 600;
  white-space: nowrap;
  transition: box-shadow 0.4s var(--ease);
}

.header-call .ic {
  width: 34px;
  height: 34px;
  padding: 9px;
  border-radius: 50%;
  background: var(--bg);
  color: var(--lime);
}

.header-call:hover { box-shadow: 0 0 0 6px rgba(212, 222, 110, 0.15); }

@media (max-width: 575px) {
  .header-call { width: 48px; padding: 0; justify-content: center; }
  .header-call span { display: none; }
}

/* Desktop nav */
@media (min-width: 1100px) {
  .navbar ul {
    display: flex;
    align-items: center;
    gap: 2px;
    margin: 0;
    padding: 5px;
    list-style: none;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(11, 12, 8, 0.35);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
  }

  .navbar a {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 15px;
    border-radius: 999px;
    font-size: 14.5px;
    font-weight: 500;
    color: var(--muted);
    white-space: nowrap;
    transition: color 0.3s var(--ease), background 0.3s var(--ease);
  }

  .navbar a:hover { color: var(--text); }

  .navbar a.active {
    color: var(--bg);
    background: var(--lime);
  }

  .navbar .lang a { padding: 9px 12px; font-size: 13px; }

  .header .mobile-nav-toggle { display: none; }
}

.lang-switch svg {
  width: 24px;
  height: 16px;
  border-radius: 4px;
  box-shadow: 0 0 0 1px var(--line-2);
  transition: transform 0.3s var(--ease);
}

.lang-switch:hover svg { transform: scale(1.12); }

/* Mobile nav */
.mobile-nav-toggle {
  position: relative;
  z-index: 950;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  background: rgba(11, 12, 8, 0.5);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  cursor: pointer;
}

.mobile-nav-toggle span {
  position: absolute;
  left: 14px;
  right: 14px;
  height: 1.5px;
  background: var(--text);
  transition: transform 0.5s var(--ease), top 0.5s var(--ease);
}

.mobile-nav-toggle span:first-child { top: 19px; }
.mobile-nav-toggle span:last-child { top: 27px; }

.mobile-nav-active .mobile-nav-toggle span:first-child { top: 23px; transform: rotate(45deg); }
.mobile-nav-active .mobile-nav-toggle span:last-child { top: 23px; transform: rotate(-45deg); }

@media (max-width: 1099px) {
  .navbar {
    position: fixed;
    inset: 0;
    z-index: 940;
    display: flex;
    align-items: flex-end;
    padding: 110px var(--gutter) 48px;
    background: var(--bg);
    clip-path: circle(0 at calc(100% - var(--gutter) - 24px) 40px);
    visibility: hidden;
    transition: clip-path 0.8s var(--ease-io), visibility 0s 0.8s;
  }

  .navbar ul {
    width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .navbar li {
    overflow: hidden;
    border-bottom: 1px solid var(--line);
  }

  .navbar a {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 0;
    font-family: var(--font-head);
    font-size: clamp(1.8rem, 7.5vw, 3rem);
    font-weight: 600;
    letter-spacing: -0.03em;
    color: var(--text);
    transform: translateY(105%);
    transition: transform 0.7s var(--ease), color 0.3s;
  }

  .navbar a.active, .navbar a:hover { color: var(--lime); }

  .navbar .lang { border: 0; padding-top: 14px; }
  .navbar .lang a { font-size: 1.2rem; }
  .navbar .lang-switch svg { width: 40px; height: 26px; }

  .mobile-nav-active { overflow: hidden; }
  .mobile-nav-active .navbar { visibility: visible; clip-path: circle(150% at calc(100% - var(--gutter) - 24px) 40px); transition: clip-path 0.8s var(--ease-io), visibility 0s; }
  .mobile-nav-active .navbar a { transform: none; }
  .mobile-nav-active .navbar li:nth-child(1) a { transition-delay: 0.15s; }
  .mobile-nav-active .navbar li:nth-child(2) a { transition-delay: 0.2s; }
  .mobile-nav-active .navbar li:nth-child(3) a { transition-delay: 0.25s; }
  .mobile-nav-active .navbar li:nth-child(4) a { transition-delay: 0.3s; }
  .mobile-nav-active .navbar li:nth-child(5) a { transition-delay: 0.35s; }
  .mobile-nav-active .navbar li:nth-child(6) a { transition-delay: 0.4s; }
  .mobile-nav-active .navbar li:nth-child(7) a { transition-delay: 0.45s; }
  .mobile-nav-active .header { background: transparent; border-color: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .mobile-nav-active .header-call { z-index: 950; }
}

/*--------------------------------------------------------------
# Hero
--------------------------------------------------------------*/
.hero {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 100vh;
  min-height: 100svh;
  padding: 140px 0 36px;
  overflow: hidden;
  background: var(--bg);
}

.hero-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-media img {
  width: 100%;
  height: 115%;
  object-fit: cover;
  object-position: 50% 60%;
  transform: translate3d(0, var(--py, 0), 0) scale(1.08);
  animation: heroIn 2.4s var(--ease) both;
  will-change: transform;
}

@keyframes heroIn {
  from { opacity: 0; transform: scale(1.22); filter: blur(6px); }
}

/* Olive duotone + vignette */
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(11, 12, 8, 0.7) 0%, rgba(11, 12, 8, 0.2) 30%, rgba(11, 12, 8, 0.65) 65%, var(--bg) 100%),
    radial-gradient(90% 70% at 15% 100%, rgba(99, 99, 48, 0.55), transparent 70%),
    rgba(40, 42, 18, 0.35);
}

/* Survey grid lines */
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: calc(100% / 12) 120px;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
  opacity: 0;
  animation: fadeIn 2s 0.6s var(--ease) forwards;
}

/* Viewfinder corners */
.hero-frame {
  position: absolute;
  inset: calc(var(--header-h) + 20px) var(--gutter) 28px;
  pointer-events: none;
}

.hero-frame i {
  position: absolute;
  width: 22px;
  height: 22px;
  border: 0 solid var(--lime);
  opacity: 0;
  animation: fadeIn 1s 1.2s var(--ease) forwards;
}

.hero-frame i:nth-child(1) { top: 0; left: 0; border-top-width: 2px; border-left-width: 2px; }
.hero-frame i:nth-child(2) { top: 0; right: 0; border-top-width: 2px; border-right-width: 2px; }
.hero-frame i:nth-child(3) { bottom: 0; left: 0; border-bottom-width: 2px; border-left-width: 2px; }
.hero-frame i:nth-child(4) { bottom: 0; right: 0; border-bottom-width: 2px; border-right-width: 2px; }

@keyframes fadeIn { to { opacity: 1; } }

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 32px;
}

@media (min-width: 992px) {
  .hero-content {
    grid-template-columns: 1.55fr 1fr;
    align-items: end;
    gap: 64px;
  }
}

.hero-title {
  font-size: clamp(2.8rem, 6.8vw, 6.8rem);
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: -0.05em;
  hyphens: manual;
}

.hero-title em {
  font-style: normal;
  color: var(--lime);
}

.hero-side {
  display: grid;
  gap: 28px;
  justify-items: start;
  padding-bottom: 8px;
}

.hero-side p {
  max-width: 440px;
  padding-left: 18px;
  border-left: 2px solid var(--lime);
  font-size: clamp(1rem, 1.3vw, 1.12rem);
  line-height: 1.6;
  color: rgba(238, 240, 224, 0.85);
}

.hero-facts {
  position: relative;
  z-index: 2;
  display: grid;
  margin-top: clamp(48px, 8vh, 90px);
  border-top: 1px solid var(--line-2);
}

.hero-facts > div {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 0;
  font-size: 14px;
  color: var(--muted);
}

.hero-facts b { color: var(--text); font-weight: 600; }
.hero-facts .ic { font-size: 18px; color: var(--lime); }

@media (min-width: 768px) {
  .hero-facts { grid-template-columns: repeat(3, 1fr); }
  .hero-facts > div { padding: 22px 0 6px; }
  .hero-facts > div + div { padding-left: 24px; border-left: 1px solid var(--line); }
}

@media (max-width: 767px) {
  .hero-facts > div + div { border-top: 1px solid var(--line); }
}

/* Split-word title animation (words wrapped by JS) */
.w {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding-bottom: 0.1em;
  margin-bottom: -0.1em;
}

.w > span {
  display: inline-block;
  transform: translateY(110%);
  animation: wordUp 1.1s var(--ease) forwards;
  animation-delay: calc(0.25s + var(--i) * 0.08s);
}

@keyframes wordUp { to { transform: none; } }

/*--------------------------------------------------------------
# Endless strip animation (photo ribbon)
--------------------------------------------------------------*/
@keyframes marquee { to { transform: translateX(-50%); } }

/*--------------------------------------------------------------
# Reveal on scroll (only when JS runs)
--------------------------------------------------------------*/
.js .reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
  transition-delay: var(--d, 0s);
}

.js .hero .reveal { transition-duration: 1.2s; }

.js .reveal.in {
  opacity: 1;
  transform: none;
}

.js .reveal-clip {
  clip-path: inset(18% 18% 18% 18% round var(--r-lg));
  transition: clip-path 1.4s var(--ease);
}

.js .reveal-clip img {
  transform: scale(1.3);
  transition: transform 1.6s var(--ease);
}

.js .reveal-clip.in { clip-path: inset(0 0 0 0 round var(--r-lg)); }
.js .reveal-clip.in img { transform: scale(1); }

/*--------------------------------------------------------------
# About
--------------------------------------------------------------*/
.about-grid {
  display: grid;
  gap: 48px;
  align-items: start;
}

@media (min-width: 992px) {
  .about-grid {
    grid-template-columns: 5fr 7fr;
    gap: 80px;
  }
  .about-media {
    position: sticky;
    top: 110px;
  }
}

.about-media {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
}

.about-media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  filter: grayscale(1) contrast(1.05);
}

.about-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(11, 12, 8, 0.85));
  pointer-events: none;
}

.call-us {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border-radius: var(--r);
  background: rgba(21, 22, 15, 0.6);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  border: 1px solid var(--line-2);
  transition: background 0.4s var(--ease), color 0.4s var(--ease);
}

.call-us:hover {
  background: rgba(212, 222, 110, 0.95);
  color: var(--bg);
}

.call-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--lime);
  color: var(--bg);
  font-size: 22px;
  transition: background 0.4s, color 0.4s;
}

.call-us:hover .call-icon {
  background: var(--bg);
  color: var(--lime);
}

.call-text { display: grid; }

.call-text small {
  font-size: 13px;
  font-weight: 500;
  opacity: 0.7;
}

.call-text b {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.about-content .lead {
  font-family: var(--font-head);
  font-size: clamp(1.45rem, 2.7vw, 2.3rem);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.025em;
  color: var(--text);
}

/* Scroll-highlighted words (wrapped by JS) */
.js .about-content .lead .wd {
  color: var(--dim);
  transition: color 0.4s var(--ease);
}

.js .about-content .lead .wd.on { color: var(--text); }

/* "Kas ir HDPE?" definition card */
.define {
  position: relative;
  display: grid;
  gap: 14px 24px;
  margin-top: 36px;
  padding: 26px 28px;
  border: 1px solid var(--line-2);
  border-left: 3px solid var(--lime);
  border-radius: var(--r);
  background: linear-gradient(135deg, rgba(212, 222, 110, 0.07), transparent 60%), var(--surface);
}

@media (min-width: 640px) {
  .define { grid-template-columns: auto 1fr; align-items: start; }
}

.define-term {
  font-family: var(--font-head);
  font-size: clamp(2.4rem, 4vw, 3.2rem);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: var(--lime);
}

.define h3 {
  margin: 0 0 8px;
  font-family: var(--font-head);
  font-size: 19px;
  font-weight: 600;
}

.define p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

.define b { color: var(--text); font-weight: 600; }

.about-text {
  display: grid;
  gap: 18px;
  margin-top: 40px;
  padding-top: 36px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 16.5px;
  line-height: 1.75;
}

@media (min-width: 768px) {
  .about-text { grid-template-columns: 1fr 1fr; column-gap: 40px; }
}

.values {
  display: grid;
  gap: 12px;
  margin: 44px 0 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 640px) {
  .values { grid-template-columns: repeat(3, 1fr); }
}

.values li {
  display: grid;
  gap: 8px;
  align-content: start;
  padding: 22px;
  border-radius: var(--r);
  background: var(--surface);
  border: 1px solid var(--line);
}

.values .ic { font-size: 24px; color: var(--lime); margin-bottom: 6px; }
.values b { font-family: var(--font-head); font-size: 17px; font-weight: 600; }
.values span { font-size: 14px; line-height: 1.5; color: var(--muted); }

/*--------------------------------------------------------------
# Spotlight hover (cursor-following glow)
--------------------------------------------------------------*/
.spot {
  --mx: 50%;
  --my: 50%;
  position: relative;
  isolation: isolate;
}

.spot::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
  padding: 1px;
  background: radial-gradient(320px circle at var(--mx) var(--my), rgba(212, 222, 110, 0.7), transparent 60%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  pointer-events: none;
}

.spot:hover::before { opacity: 1; }

/*--------------------------------------------------------------
# Services
--------------------------------------------------------------*/
.services {
  background: var(--bg-2);
  border-block: 1px solid var(--line);
}

.svc-grid {
  display: grid;
  gap: 18px;
}

@media (min-width: 992px) {
  .svc-grid { grid-template-columns: 7fr 5fr; gap: 20px; }
}

.svc {
  overflow: hidden;
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--line);
}

.svc-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 26px;
}

.svc-no {
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
}

.svc h3 {
  font-size: clamp(1.45rem, 2.4vw, 2.1rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.svc p {
  margin-top: 14px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
}

/* Big card: photo with the text over its lower part */
.svc-main {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 560px;
}

.svc-main img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.8);
  transform: scale(1.02);
  transition: transform 1.4s var(--ease), filter 0.8s var(--ease);
}

.svc-main::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 12, 8, 0.15) 0%, rgba(11, 12, 8, 0.35) 35%, rgba(11, 12, 8, 0.96) 78%);
}

.svc-main:hover img { transform: scale(1.07); filter: saturate(1); }

.svc-body {
  position: relative;
  z-index: 2;
  padding: clamp(24px, 3.4vw, 40px);
}

.svc-main p { color: rgba(238, 240, 224, 0.78); max-width: 56ch; }

.svc-side {
  display: flex;
  flex-direction: column;
  padding: clamp(24px, 3.4vw, 40px);
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(212, 222, 110, 0.08), transparent 60%),
    var(--surface);
}

.svc-side .btn { margin-top: auto; align-self: flex-start; }

/* Full-width card: text beside a photo */
.svc-wide {
  display: grid;
  background:
    radial-gradient(90% 90% at 0% 100%, rgba(212, 222, 110, 0.07), transparent 60%),
    var(--surface);
}

@media (min-width: 992px) {
  .svc-wide { grid-column: 1 / -1; grid-template-columns: 5fr 7fr; }
  .svc-wide-img { order: 2; }
}

.svc-wide-img {
  position: relative;
  overflow: hidden;
  min-height: 260px;
}

.svc-wide-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.8);
  transition: transform 1.4s var(--ease), filter 0.8s var(--ease);
}

.svc-wide:hover .svc-wide-img img { transform: scale(1.05); filter: saturate(1); }

.svc-wide-body {
  display: flex;
  flex-direction: column;
  padding: clamp(24px, 3.4vw, 40px);
}

.svc-wide-body .btn { margin-top: auto; align-self: flex-start; }

.checks {
  display: grid;
  gap: 12px;
  margin: 26px 0 34px;
  padding: 22px 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.checks li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
}

.checks .ic {
  width: 26px;
  height: 26px;
  padding: 5px;
  border-radius: 50%;
  background: rgba(212, 222, 110, 0.12);
  color: var(--lime);
  stroke-width: 2.4;
}

.icon-tile {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 18px;
  font-size: 28px;
  color: var(--lime);
  background: rgba(212, 222, 110, 0.08);
  border: 1px solid rgba(212, 222, 110, 0.2);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: background 0.5s var(--ease), color 0.5s var(--ease), transform 0.5s var(--ease);
}

.svc:hover .icon-tile {
  background: var(--lime);
  color: var(--bg);
  transform: rotate(-6deg);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.tags li {
  padding: 6px 13px;
  border-radius: 999px;
  border: 1px solid rgba(212, 222, 110, 0.35);
  background: rgba(11, 12, 8, 0.4);
  color: var(--lime);
  font-size: 13px;
  font-weight: 500;
}

/* Where we install */
.uses {
  display: grid;
  gap: 18px;
  align-items: center;
  margin-top: 20px;
  padding: 26px clamp(22px, 3vw, 34px);
  border-radius: var(--r-lg);
  border: 1px dashed var(--line-2);
}

@media (min-width: 992px) {
  .uses { grid-template-columns: auto 1fr; gap: 32px; }
}

.uses h3 {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--lime);
}

.uses ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.uses a, .uses span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 14.5px;
  font-weight: 500;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}

.uses .ic { color: var(--lime); transition: color 0.3s; }
.uses a:hover { background: var(--lime); color: var(--bg); border-color: var(--lime); }
.uses a:hover .ic { color: var(--bg); }

@media (max-width: 575px) {
  .svc-main { min-height: 520px; }
  .svc-main::after { background: linear-gradient(180deg, rgba(11, 12, 8, 0.1) 0%, rgba(11, 12, 8, 0.75) 30%, rgba(11, 12, 8, 0.97) 60%); }
  .icon-tile { width: 54px; height: 54px; font-size: 24px; }
}

/*--------------------------------------------------------------
# Process (light section)
--------------------------------------------------------------*/
.process {
  background: var(--paper);
  color: var(--ink);
  --line: rgba(22, 23, 15, 0.12);
}

.process .section-header::before { color: rgba(22, 23, 15, 0.55); }
.process .section-header h2 span { color: var(--olive); }

.steps {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 640px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .steps { grid-template-columns: repeat(4, 1fr); gap: 0; } }

.step {
  position: relative;
  padding: 30px 28px 34px;
  border-radius: var(--r-lg);
  background: #f6f7ec;
  border: 1px solid var(--line);
}

@media (min-width: 1100px) {
  .step { border-radius: 0; border-width: 0 0 0 1px; background: transparent; padding: 8px 32px 12px; }
  .step:first-child { border-left: 0; padding-left: 0; }
}

.step-no {
  display: inline-grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 28px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--lime);
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 600;
  transition: transform 0.5s var(--ease), background 0.4s, color 0.4s;
}

.step:hover .step-no { transform: rotate(-12deg) scale(1.08); background: var(--olive); color: var(--paper); }

.step h3 {
  font-size: clamp(1.25rem, 1.8vw, 1.5rem);
  margin-bottom: 10px;
}

.step p {
  font-size: 15.5px;
  line-height: 1.6;
  color: rgba(22, 23, 15, 0.7);
}

/*--------------------------------------------------------------
# Layers — isometric cross-section that opens while scrolling
--------------------------------------------------------------*/
.layers {
  overflow: hidden;
  background:
    radial-gradient(60% 60% at 75% 50%, rgba(99, 99, 48, 0.28), transparent 70%),
    var(--bg);
}

.layers-grid {
  display: grid;
  gap: 40px;
  align-items: center;
}

@media (min-width: 992px) {
  .layers-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}

.layers .section-header { margin-bottom: 28px; }
.layers .section-header h2 { font-size: clamp(2.4rem, 5.2vw, 4.6rem); }

.layers-intro {
  max-width: 48ch;
  margin-bottom: 30px;
  font-size: 17px;
  color: var(--muted);
}

.layer-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.layer-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  padding: 18px 20px;
  border-radius: var(--r);
  border: 1px solid transparent;
  cursor: default;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease);
}

.layer-list li.on {
  background: var(--surface);
  border-color: rgba(212, 222, 110, 0.3);
}

.ln {
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 600;
  color: var(--lime);
  padding-top: 4px;
}

.layer-list h3 { font-size: 1.2rem; margin-bottom: 4px; }
.layer-list p { font-size: 15px; line-height: 1.55; color: var(--muted); }

.stack-wrap {
  --sp: 0;
  position: relative;
  aspect-ratio: 1;
  width: min(100%, 560px);
  margin-inline: auto;
  perspective: 2000px;
}

.stack {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transform: translateY(calc(8% + var(--sp) * 4%)) rotateX(58deg) rotateZ(-42deg);
}

.layer {
  --gap: calc(10px + var(--sp) * 74px);
  position: absolute;
  inset: 22%;
  border-radius: 14px;
  transform: translateZ(calc(var(--i) * var(--gap) + var(--lift, 0px)));
  transition: transform 0.6s var(--ease), opacity 0.4s var(--ease), box-shadow 0.4s var(--ease);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 18px 18px 40px rgba(0, 0, 0, 0.45);
}

/* fake thickness */
.layer::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: inherit;
  filter: brightness(0.45);
  transform: translateZ(-7px);
}

.layer-soil {
  background:
    radial-gradient(circle at 30% 40%, rgba(255, 220, 170, 0.25) 1px, transparent 2px) 0 0 / 13px 13px,
    radial-gradient(circle at 70% 70%, rgba(0, 0, 0, 0.35) 1.5px, transparent 2.5px) 0 0 / 17px 17px,
    linear-gradient(135deg, #7a5a36, #4a3420);
}

.layer-geo {
  background:
    repeating-linear-gradient(35deg, rgba(0, 0, 0, 0.05) 0 1px, transparent 1px 4px),
    repeating-linear-gradient(-55deg, rgba(0, 0, 0, 0.05) 0 1px, transparent 1px 5px),
    linear-gradient(135deg, #f1f0e6, #c9c8ba);
}

.layer-hdpe {
  background:
    repeating-linear-gradient(90deg, transparent 0 32.6%, rgba(212, 222, 110, 0.55) 32.6% 33.3%),
    linear-gradient(125deg, #0d0e0b 20%, #3a3c34 42%, #0d0e0b 58%, #1d1e19);
}

.layer-water {
  background:
    radial-gradient(120% 80% at 20% 0%, rgba(255, 255, 255, 0.35), transparent 50%),
    linear-gradient(135deg, rgba(120, 200, 215, 0.6), rgba(30, 100, 130, 0.55));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35), 0 0 60px rgba(90, 180, 200, 0.25);
  overflow: hidden;
}

.layer-water::before { display: none; }

.layer-water::after {
  content: "";
  position: absolute;
  inset: -50%;
  background: repeating-radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.14) 0 2px, transparent 2px 22px);
  animation: ripple 6s linear infinite;
}

@keyframes ripple { to { transform: translate(11%, 11%); } }

.stack-wrap.focus .layer { opacity: 0.35; }
.stack-wrap.focus .layer.on { opacity: 1; --lift: 26px; box-shadow: 0 0 0 2px var(--lime), 18px 18px 50px rgba(0, 0, 0, 0.5); }

@media (max-width: 991px) {
  .stack-wrap { order: -1; width: min(100%, 420px); }
}

/*--------------------------------------------------------------
# Projects
--------------------------------------------------------------*/
.projects { padding-bottom: clamp(40px, 6vw, 70px); }

.projects-grid {
  display: grid;
  gap: 18px;
}

@media (min-width: 768px) {
  .projects-grid {
    grid-template-columns: repeat(12, 1fr);
    gap: 20px;
  }
  .project:nth-child(1) { grid-column: span 7; }
  .project:nth-child(2) { grid-column: span 5; }
  .project:nth-child(3) { grid-column: span 5; }
  .project:nth-child(4) { grid-column: span 7; }
  .project:nth-child(5) { grid-column: span 12; }
}

.project {
  display: block;
  height: clamp(360px, 105vw, 480px);
  overflow: hidden;
  border-radius: var(--r-lg);
  background: var(--surface);
  transform: translateZ(0);
}

@media (min-width: 768px) {
  .project { height: clamp(380px, 40vw, 540px); }
}

.project img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 1.2s var(--ease), filter 0.8s var(--ease);
  filter: saturate(0.85);
}

.project::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 12, 8, 0.35) 0%, transparent 28%, transparent 40%, rgba(11, 12, 8, 0.94) 100%);
}

.project-count {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  background: rgba(11, 12, 8, 0.55);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid var(--line-2);
}

.project-body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(20px, 3vw, 32px);
}

.project-body h3 {
  max-width: 22ch;
  font-size: clamp(1.35rem, 2.3vw, 2rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.project-body p {
  max-width: 44ch;
  margin-top: 10px;
  font-size: 14.5px;
  line-height: 1.5;
  color: rgba(238, 240, 224, 0.75);
}

.project-open {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-height: 0;
  margin-top: 0;
  padding: 0 18px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--lime);
  color: var(--bg);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  transition: max-height 0.5s var(--ease), margin 0.5s var(--ease), padding 0.5s var(--ease), opacity 0.4s var(--ease);
}

.project-open .ic { stroke-width: 2.2; }

.project:hover img {
  transform: scale(1.09);
  filter: saturate(1.05);
}

.project:hover .project-open,
.project:focus-visible .project-open {
  max-height: 48px;
  margin-top: 16px;
  padding: 11px 18px;
  opacity: 1;
}

@media (hover: none) {
  .project-open { max-height: 48px; margin-top: 16px; padding: 11px 18px; opacity: 1; }
}

/* Photo ribbon */
.ribbon {
  margin-top: clamp(60px, 8vw, 100px);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.ribbon-track {
  display: flex;
  gap: 14px;
  width: max-content;
  animation: marquee 80s linear infinite;
}

.ribbon:hover .ribbon-track { animation-play-state: paused; }

.ribbon img {
  height: clamp(150px, 18vw, 220px);
  width: auto;
  border-radius: var(--r);
  background: var(--surface);
  filter: grayscale(0.6) brightness(0.85);
  transition: filter 0.5s var(--ease);
}

.ribbon img:hover { filter: none; }

/*--------------------------------------------------------------
# FAQ
--------------------------------------------------------------*/
.faq { border-top: 1px solid var(--line); }

@media (min-width: 992px) {
  .faq-grid {
    display: grid;
    grid-template-columns: 5fr 7fr;
    gap: 64px;
    align-items: start;
  }
  .faq .section-header {
    position: sticky;
    top: 120px;
    border-bottom: 0;
  }
  .faq .section-header::before { display: none; }
  .faq .section-header h2 { font-size: clamp(2.5rem, 5vw, 4.4rem); }
}

.faq-list { display: grid; gap: 12px; }

.faq details {
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease);
}

.faq details[open] {
  background: var(--surface-2);
  border-color: rgba(212, 222, 110, 0.3);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 26px;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary h3 {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  font-weight: 600;
  line-height: 1.3;
}

.faq-ic {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  font-size: 18px;
  transition: transform 0.5s var(--ease), background 0.3s, color 0.3s, border-color 0.3s;
}

.faq summary:hover .faq-ic { border-color: var(--lime); color: var(--lime); }

.faq details[open] .faq-ic {
  transform: rotate(135deg);
  background: var(--lime);
  border-color: var(--lime);
  color: var(--bg);
}

.faq details p {
  padding: 0 26px 26px;
  max-width: 62ch;
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.7;
}

.faq details p a { color: var(--lime); border-bottom: 1px solid rgba(212, 222, 110, 0.4); }

.js .faq details[open] p { animation: faqIn 0.5s var(--ease); }

@keyframes faqIn { from { opacity: 0; transform: translateY(-8px); } }

/*--------------------------------------------------------------
# CTA
--------------------------------------------------------------*/
.cta { padding-block: 0; }

.cta-box {
  position: relative;
  overflow: hidden;
  padding: clamp(44px, 7vw, 96px) clamp(24px, 6vw, 80px);
  border-radius: calc(var(--r-lg) + 8px);
  background: var(--lime);
  color: var(--ink);
  isolation: isolate;
}

.cta-grid {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(22, 23, 15, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(22, 23, 15, 0.08) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(80% 120% at 100% 0%, #000, transparent 70%);
  mask-image: radial-gradient(80% 120% at 100% 0%, #000, transparent 70%);
}

.cta-box h2 {
  max-width: 14ch;
  font-size: clamp(2.3rem, 6vw, 5rem);
  line-height: 0.95;
  letter-spacing: -0.045em;
}

.cta-box p {
  max-width: 46ch;
  margin: 20px 0 34px;
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  color: rgba(22, 23, 15, 0.75);
}

.cta-box :focus-visible { outline-color: var(--ink); }

/*--------------------------------------------------------------
# Contact
--------------------------------------------------------------*/
.contact-grid {
  display: grid;
  gap: 18px;
}

@media (min-width: 992px) {
  .contact-grid { grid-template-columns: 5fr 7fr; gap: 20px; }
}

.contact-cards {
  display: grid;
  gap: 14px;
  align-content: start;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px;
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  transition: background 0.4s var(--ease);
}

.info-item:hover { background: var(--surface-2); }

.info-item > span:nth-child(2) { display: grid; min-width: 0; }

.info-item .icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  font-size: 22px;
  color: var(--lime);
  background: rgba(212, 222, 110, 0.08);
  border: 1px solid rgba(212, 222, 110, 0.2);
  transition: background 0.4s, color 0.4s;
}

.info-item:hover .icon {
  background: var(--lime);
  color: var(--bg);
}

.info-item small {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
}

.info-value {
  font-family: var(--font-head);
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  font-weight: 600;
  word-break: break-word;
}

.info-arrow {
  margin-left: auto;
  font-size: 22px;
  color: var(--muted);
  transition: transform 0.4s var(--ease), color 0.4s;
}

.info-item:hover .info-arrow {
  color: var(--lime);
  transform: translate(3px, -3px);
}

.requisites {
  padding: 26px;
  border-radius: var(--r-lg);
  border: 1px dashed var(--line-2);
}

.requisites h3 {
  margin-bottom: 4px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--lime);
}

.requisites strong {
  display: block;
  margin-bottom: 14px;
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 600;
}

.requisites p {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  font-size: 14.5px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.copy {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  font-size: 15px;
  cursor: pointer;
  transition: color 0.3s, border-color 0.3s, background 0.3s;
}

.copy:hover { color: var(--lime); border-color: rgba(212, 222, 110, 0.4); }
.copy.done { color: var(--bg); background: var(--lime); border-color: var(--lime); }

.map-card {
  position: relative;
  min-height: 420px;
  overflow: hidden;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background:
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 40px 40px,
    linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 40px 40px,
    var(--surface);
}

.map-card iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  /* Dark map */
  filter: invert(0.9) hue-rotate(180deg) saturate(0.6) brightness(0.95) contrast(0.95);
  opacity: 0;
  transition: opacity 0.8s var(--ease);
}

.map-card iframe.loaded { opacity: 1; }

.map-pin {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin: -28px 0 0 -28px;
  border-radius: 50%;
  background: var(--lime);
  color: var(--bg);
  font-size: 24px;
  pointer-events: none;
  transition: opacity 0.6s;
}

.map-pin::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--lime);
  animation: ping 2s var(--ease) infinite;
}

.map-card iframe.loaded + .map-pin { opacity: 0; }

@keyframes ping {
  to { transform: scale(2.4); opacity: 0; }
}

/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/
.footer {
  padding: clamp(56px, 8vw, 90px) 0 30px;
  border-top: 1px solid var(--line);
  background: var(--bg-2);
  font-size: 14.5px;
  color: var(--muted);
}

.footer-top {
  display: grid;
  gap: 40px;
  padding-bottom: 48px;
}

@media (min-width: 768px) {
  .footer-top { grid-template-columns: 2fr 1fr 1.2fr; gap: 56px; }
}

.footer-brand p { max-width: 38ch; margin-top: 20px; line-height: 1.65; }
.footer-logo { display: inline-block; }
.footer-logo img { height: 30px; width: auto; }

.footer-col {
  display: grid;
  gap: 10px;
  align-content: start;
}

.footer-col h3 {
  margin-bottom: 6px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--lime);
}

.footer-col a { justify-self: start; color: var(--text); transition: color 0.3s; }
.footer-col a:hover { color: var(--lime); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  font-size: 13px;
}

.footer-bottom a { color: var(--text); border-bottom: 1px solid var(--line-2); }
.footer-bottom a:hover { color: var(--lime); border-color: var(--lime); }

/*--------------------------------------------------------------
# Scroll top with progress ring
--------------------------------------------------------------*/
.scroll-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 800;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  font-size: 20px;
  background: rgba(21, 22, 15, 0.75);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px) scale(0.9);
  transition: all 0.5s var(--ease);
}

.scroll-top.active { opacity: 1; visibility: visible; transform: none; }
.scroll-top:hover { color: var(--lime); }

.scroll-top .ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
  fill: none;
  stroke-width: 2;
}

.scroll-top .ring circle { stroke: var(--line-2); }

.scroll-top .ring .ring-bar {
  stroke: var(--lime);
  stroke-dasharray: 100;
  stroke-dashoffset: calc(100 - var(--p, 0) * 100);
  stroke-linecap: round;
}

/*--------------------------------------------------------------
# Lightbox
--------------------------------------------------------------*/
.lb {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  grid-template-rows: auto 1fr auto;
  grid-template-columns: minmax(0, 1fr);
  background: rgba(8, 9, 6, 0.94);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s var(--ease), visibility 0.4s;
}

.lb.open { opacity: 1; visibility: visible; }

.lb-top, .lb-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px var(--gutter);
}

.lb-title {
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lb-count {
  margin-left: auto;
  font-family: var(--font-head);
  font-size: 14px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.lb-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 0;
  padding: 0 var(--gutter);
  touch-action: pan-y;
}

.lb-stage img {
  position: absolute;
  inset: 0;
  margin: auto;
  max-width: calc(100% - var(--gutter) * 2);
  max-height: 100%;
  object-fit: contain;
  border-radius: var(--r-sm);
  box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.7);
  transition: opacity 0.35s var(--ease), transform 0.5s var(--ease);
}

.lb-stage img.loading { opacity: 0; transform: scale(0.97); }

.lb-btn {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  font-size: 20px;
  cursor: pointer;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}

.lb-btn:hover { background: var(--lime); color: var(--bg); border-color: var(--lime); }
.lb-prev .ic { transform: rotate(180deg); }

.lb-thumbs {
  display: flex;
  flex: 1;
  gap: 8px;
  min-width: 0;
  padding: 4px 2px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 24px), transparent);
  mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 24px), transparent);
}

.lb-thumbs::-webkit-scrollbar { display: none; }

.lb-thumbs button {
  flex: 0 0 auto;
  width: 76px;
  height: 52px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  overflow: hidden;
  background: var(--surface);
  cursor: pointer;
  opacity: 0.45;
  outline: 2px solid transparent;
  outline-offset: 2px;
  transition: opacity 0.3s, outline-color 0.3s;
}

.lb-thumbs button:first-child { margin-left: 20px; }
.lb-thumbs button:last-child { margin-right: 20px; }
.lb-thumbs button img { width: 100%; height: 100%; object-fit: cover; }
.lb-thumbs button:hover { opacity: 0.8; }
.lb-thumbs button.on { opacity: 1; outline-color: var(--lime); }

@media (max-width: 575px) {
  .lb-thumbs button { width: 58px; height: 42px; }
}

/*--------------------------------------------------------------
# Reduced motion
--------------------------------------------------------------*/
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
  .js .reveal, .js .reveal-clip { opacity: 1; transform: none; clip-path: none; }
  .ribbon-track { animation: none; }
  .ribbon { overflow-x: auto; }
}
