/* =========================================================
   STALKER — Drilling Company
   Editorial / industrial-luxury theme
   ========================================================= */
:root {
  --bg: #141312;
  --bg-2: #1b1a18;
  --bg-3: #23211e;
  --ivory: #efe9df;
  --ivory-dim: rgba(239, 233, 223, .68);
  --muted: rgba(239, 233, 223, .46);
  --line: rgba(239, 233, 223, .14);
  --line-strong: rgba(239, 233, 223, .3);
  --beige: #c3a888;
  --beige-2: #8f7a62;
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Jost", "Helvetica Neue", Arial, sans-serif;
  --pad: clamp(20px, 6vw, 110px);
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ivory);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: lining-nums;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
p { margin: 0; }
figure { margin: 0; }
::selection { background: var(--beige); color: var(--bg); }

/* ---------- Type helpers ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 16px;
  font-size: 11px; letter-spacing: .38em; text-transform: uppercase;
  color: var(--ivory-dim); font-weight: 400; margin-bottom: 26px;
}
.eyebrow::after { content: ""; width: 48px; height: 1px; background: var(--line-strong); }
.label { font-size: 10.5px; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.h2 {
  font-family: var(--serif); font-weight: 500; text-transform: uppercase;
  font-size: clamp(40px, 5.2vw, 82px); line-height: .98; letter-spacing: -.005em;
  margin: 0 0 30px;
}
.h2 em, .hero-title .accent > span, .footer-slogan em {
  font-style: italic; font-weight: 400;
  background: linear-gradient(100deg, #d9c3a5 0%, #b3977a 45%, #8c7760 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { font-size: 17px; color: var(--ivory-dim); max-width: 470px; margin-bottom: 36px; }

.btn {
  display: inline-flex; align-items: center; gap: 44px;
  padding: 18px 28px; border: 1px solid var(--line-strong);
  font-size: 11.5px; letter-spacing: .32em; text-transform: uppercase; font-weight: 400;
  transition: background .4s var(--ease), color .4s var(--ease), border-color .4s;
}
.btn i { font-style: normal; font-size: 15px; transition: transform .4s var(--ease); }
.btn:hover { background: var(--ivory); color: var(--bg); border-color: var(--ivory); }
.btn:hover i { transform: translate(3px, -3px); }
.btn-solid { background: var(--beige-2); border-color: var(--beige-2); color: var(--ivory); }

.ghost-num {
  position: absolute; left: -.06em; top: 70px; z-index: 0;
  font-family: var(--serif); font-size: clamp(120px, 13vw, 230px); line-height: 1;
  color: rgba(239, 233, 223, .045); pointer-events: none; user-select: none;
}

.arrow {
  width: 46px; height: 46px; border: 1px solid var(--line-strong);
  display: grid; place-items: center; font-size: 16px;
  transition: background .3s, color .3s;
}
.arrow:hover { background: var(--ivory); color: var(--bg); }

.icon-box { width: 46px; height: 46px; flex: none; border: 1px solid var(--line-strong); display: grid; place-items: center; }
.icon-box svg { width: 18px; height: 18px; fill: none; stroke: var(--ivory); stroke-width: 1.3; }

/* line icons (drawn as SVG so no device ever shows them as emoji) */
.ico { width: 1em; height: 1em; display: inline-block; vertical-align: -.12em; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.btn i { display: inline-flex; font-size: 17px; }
.arrow .ico { width: 18px; height: 18px; }
.rail-scroll i .ico { width: 22px; height: 30px; stroke-width: 1.1; }
.back-top .circle .ico { width: 17px; height: 17px; }
.service .go .ico { width: 18px; height: 18px; }
.map-open .ico { width: 13px; height: 13px; margin-left: 4px; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* =========================================================
   HEADER  (matches the ChatGPT header concept)
   ========================================================= */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 30px;
  padding: 26px 3vw 22px 8vw;
  transition: background .5s, padding .5s, backdrop-filter .5s, border-color .5s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(20, 19, 18, .84); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  padding-top: 12px; padding-bottom: 12px; border-bottom-color: var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 18px; justify-self: start; }
.brand-mark { width: 72px; height: auto; }
.brand-text { font-family: var(--serif); font-weight: 500; font-size: 20px; line-height: 1.05; letter-spacing: .01em; }
.brand-text::first-line { font-weight: 400; }
.main-nav { display: flex; gap: clamp(22px, 3.4vw, 58px); }
.main-nav a {
  position: relative; font-family: var(--serif); font-size: 19px; color: var(--ivory);
  padding: 4px 0; opacity: .82; transition: opacity .3s; white-space: nowrap;
}
.main-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px;
  background: var(--ivory); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease);
}
.main-nav a:hover, .main-nav a.is-active { opacity: 1; }
.main-nav a:hover::after, .main-nav a.is-active::after { transform: scaleX(1); }

.header-right { justify-self: end; display: flex; align-items: center; gap: 22px; }
.lang-switch { display: flex; align-items: center; }
.header-right > .lang-switch { background: rgba(13, 12, 12, .55); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border: 1px solid rgba(239, 233, 223, .12); border-radius: 40px; padding: 4px 8px; }
.lang-switch button {
  padding: 6px 8px; font-size: 11px; letter-spacing: .18em; color: var(--muted); transition: color .3s;
}
.lang-switch button + button { border-left: 1px solid var(--line-strong); }
.lang-switch button:hover { color: var(--ivory); }
.lang-switch button[aria-pressed="true"] { color: var(--ivory); }

.menu-btn {
  width: 64px; height: 64px; border-radius: 50%; background: #0d0c0c;
  display: grid; place-content: center; gap: 6px; position: relative; z-index: 60;
  box-shadow: 0 8px 30px rgba(0, 0, 0, .35); transition: transform .4s var(--ease);
}
.menu-btn:hover { transform: scale(1.06); }
.menu-btn span { display: block; width: 22px; height: 1.4px; background: var(--ivory); transition: transform .4s var(--ease), opacity .3s; }
body.menu-open .menu-btn span:nth-child(1) { transform: translateY(7.4px) rotate(45deg); }
body.menu-open .menu-btn span:nth-child(2) { opacity: 0; }
body.menu-open .menu-btn span:nth-child(3) { transform: translateY(-7.4px) rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 45; background: rgba(16, 15, 14, .97);
  clip-path: circle(0 at calc(100% - 3vw - 32px) 58px);
  transition: clip-path .8s var(--ease); visibility: hidden;
}
body.menu-open .menu { clip-path: circle(150% at calc(100% - 3vw - 32px) 58px); visibility: visible; }
body.menu-open { overflow: hidden; }
.menu-inner {
  height: 100%; display: grid; grid-template-columns: 1.4fr 1fr; align-items: center;
  padding: 120px var(--pad) 60px; gap: 40px;
}
.menu-nav { display: flex; flex-direction: column; }
.menu-nav a {
  font-family: var(--serif); text-transform: uppercase; font-size: clamp(34px, 5vw, 68px); line-height: 1.12;
  display: flex; align-items: baseline; gap: 22px; color: var(--ivory-dim); transition: color .3s, transform .4s var(--ease);
}
.menu-nav a em { font-family: var(--sans); font-style: normal; font-size: 12px; letter-spacing: .2em; color: var(--muted); }
.menu-nav a:hover { color: var(--ivory); transform: translateX(10px); }
.menu-contacts { display: grid; gap: 12px; font-family: var(--serif); font-size: 22px; border-left: 1px solid var(--line); padding-left: 40px; }
.menu-contacts > p:not(.label) { font-size: 18px; color: var(--ivory-dim); }
.menu-lang { margin-top: 24px; }
.menu-lang button { font-size: 12px; padding: 8px 14px; }
.menu-lang button:first-child { padding-left: 0; }

/* =========================================================
   HERO  (full-bleed concept image, text as live HTML)
   ========================================================= */
.hero { position: relative; height: max(100svh, 700px); overflow: hidden; background: #1c1b1a; }
.hero-bg {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 100% 50%;
  animation: heroZoom 2.4s var(--ease) both; will-change: transform;
}
.hero-fg { /* the rig + foreground rocks, cut out, sitting in front of the grey panel */
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 100% 50%;
  pointer-events: none; animation: heroZoom 2.4s var(--ease) both; will-change: transform;
}
@keyframes heroZoom { from { opacity: 0; } }
.hero-shade { /* charcoal-grey panel behind the text (like the concept's left side), fading into the photo */
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(31, 30, 29, .97) 0%, rgba(31, 30, 29, .95) 30%, rgba(31, 30, 29, .86) 42%, rgba(31, 30, 29, .55) 53%, rgba(31, 30, 29, .18) 63%, transparent 72%),
    linear-gradient(180deg, rgba(20, 19, 18, .45) 0%, transparent 18%),
    linear-gradient(0deg, rgba(20, 19, 18, .6), transparent 24%);
}
.rail { position: absolute; left: 6.2vw; top: 0; bottom: 0; width: 1px; z-index: 2; }
.rail span { position: absolute; left: 0; width: 1px; background: rgba(239, 233, 223, .22); }
.rail-top { top: 0; height: 33%; }
.rail-bottom { top: 57%; bottom: 0; }
.hero-ghost {
  position: absolute; z-index: 1; left: -1vw; top: 33%;
  font-family: var(--serif); font-size: clamp(150px, 14vw, 260px); line-height: .85;
  color: rgba(239, 233, 223, .07); pointer-events: none; user-select: none;
}
.rail-scroll {
  position: absolute; z-index: 3; text-shadow: 0 1px 8px rgba(0, 0, 0, .8); left: calc(6.2vw - 44px); bottom: 5vh; width: 30px;
  display: flex; flex-direction: column; align-items: center; gap: 18px;
  font-size: 10px; letter-spacing: .4em; text-transform: uppercase; color: var(--ivory-dim);
}
.rail-scroll span { writing-mode: vertical-rl; }
.rail-scroll i { font-style: normal; font-size: 30px; line-height: 1; font-weight: 200; animation: bob 2.4s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(8px); } }

.hero-copy {
  position: absolute; z-index: 2; left: 11.5vw; top: 22.5%; right: 40vw;
}
.hero-eyebrow { font-size: 13px; letter-spacing: .42em; color: var(--ivory); margin-bottom: 4.2vh; }
.hero-title {
  font-family: var(--serif); font-weight: 500; text-transform: uppercase;
  font-size: clamp(60px, 8.1vw, 170px); line-height: .8; letter-spacing: -.02em; font-weight: 600;
  margin: 0 0 6vh; white-space: nowrap;
}
.hero-title .line { display: block; overflow: hidden; padding: .02em .1em .045em 0; }
.hero-title .line > span { display: inline-block; animation: lineUp 1.3s var(--ease) both; }
.hero-title .line:nth-child(2) > span { animation-delay: .1s; }
.hero-title .line:nth-child(3) > span { animation-delay: .2s; }
.hero-title .line:nth-child(4) > span { animation-delay: .3s; }
.hero-title .accent > span { font-style: italic; font-weight: 400; padding-right: .06em; }
@keyframes lineUp { from { transform: translateY(105%); } }
.hero-btn { background: rgba(26, 25, 24, .62); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); padding: 24px 32px; gap: 60px; font-size: 13px; letter-spacing: .3em; border-color: rgba(239, 233, 223, .6); animation: fadeUp 1.2s var(--ease) .6s both; }
.hero-eyebrow { animation: fadeUp 1.2s var(--ease) .1s both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } }

/* ---------- Facts strip ---------- */
.facts {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: repeat(4, 1fr);
  margin: 0 var(--pad); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.fact { padding: 44px 30px; display: flex; flex-direction: column; gap: 10px; }
.fact + .fact { border-left: 1px solid var(--line); }
.fact strong { white-space: nowrap; font-family: var(--serif); font-weight: 400; font-size: clamp(40px, 4vw, 62px); line-height: 1; }
.fact span { font-size: 11px; letter-spacing: .26em; text-transform: uppercase; color: var(--muted); line-height: 1.8; }

/* =========================================================
   GENERIC SECTION
   ========================================================= */
.section { position: relative; padding: clamp(100px, 13vw, 170px) var(--pad); }
.section-head {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: end; margin-bottom: 60px;
  padding-left: clamp(0px, 4vw, 70px);
}
.section-head-side { color: var(--ivory-dim); max-width: 440px; justify-self: end; }
.section-head-side p { margin-bottom: 28px; }
.slider-arrows { display: flex; gap: 10px; }

/* ---------- About ---------- */
.about {
  display: grid; grid-template-columns: 1.05fr 1fr .5fr; gap: clamp(30px, 4vw, 70px); align-items: center;
}
.about-copy { position: relative; z-index: 1; padding-left: clamp(0px, 4vw, 70px); }
.about-media { position: relative; aspect-ratio: 4 / 5; overflow: hidden; }
.about-media img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.55) contrast(1.05) brightness(.9); transition: transform 1.6s var(--ease), filter 1s; }
.about-media:hover img { transform: scale(1.04); filter: saturate(.9); }
.about-media::before { content: ""; position: absolute; inset: 14px; border: 1px solid rgba(239, 233, 223, .25); z-index: 1; pointer-events: none; }
.about-aside { color: var(--ivory-dim); font-size: 15px; align-self: start; padding-top: 30px; }
.aside-title { font-family: var(--serif); font-size: 30px; line-height: 1.05; text-transform: uppercase; color: var(--ivory); margin-bottom: 34px; }
.company-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 30px; margin: 0 0 36px; max-width: 470px; }
.company-facts dt { font-size: 10.5px; letter-spacing: .28em; text-transform: uppercase; color: var(--muted); }
.company-facts dd { margin: 4px 0 0; font-family: var(--serif); font-size: 30px; }

/* ---------- Services ---------- */
.services { background: var(--bg-2); padding-right: 0; }
.services .section-head { padding-right: var(--pad); }
.services-track {
  display: grid; grid-auto-flow: column; grid-auto-columns: clamp(270px, 25vw, 380px); gap: 18px;
  overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 var(--pad) 20px 0; scrollbar-width: none;
}
.services-track::-webkit-scrollbar { display: none; }
.service {
  scroll-snap-align: start; position: relative; display: flex; flex-direction: column;
  border: 1px solid var(--line); background: var(--bg);
}
.service-media { aspect-ratio: 4 / 3.3; overflow: hidden; }
.service-media img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.55) brightness(.85); transition: transform 1.2s var(--ease), filter .8s; }
.service:hover .service-media img { transform: scale(1.06); filter: none; }
.service-body { padding: 24px 24px 28px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.service-num { font-family: var(--serif); font-size: 15px; color: var(--beige); }
.service h3 { margin: 0; font-family: var(--serif); font-weight: 500; font-size: 27px; line-height: 1.05; text-transform: uppercase; }
.service p { font-size: 14.5px; color: var(--ivory-dim); }
.service .go { margin-top: auto; align-self: flex-end; font-size: 16px; transition: transform .4s var(--ease); }
.service:hover .go { transform: translate(3px, -3px); }

/* ---------- Technology band ---------- */
.tech { position: relative; min-height: 88vh; display: flex; align-items: center; overflow: hidden; }
.tech-bg { position: absolute; inset: 0; width: 100%; height: 115%; object-fit: cover; filter: grayscale(.45) brightness(.72) contrast(1.05); object-position: 50% 70%; will-change: transform; }
.tech::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(20, 19, 18, .96) 0%, rgba(20, 19, 18, .8) 45%, rgba(20, 19, 18, .15) 100%); }
.tech-inner { position: relative; z-index: 2; max-width: 640px; padding: 120px var(--pad) 120px calc(var(--pad) + clamp(0px, 4vw, 70px)); }
.tech-inner > p:not(.eyebrow) { color: var(--ivory-dim); margin-bottom: 50px; }
.tech-stats { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.tech-stats div { padding: 26px 20px 0 0; }
.tech-stats div + div { padding-left: 20px; border-left: 1px solid var(--line); }
.tech-stats strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 44px; line-height: 1; margin-bottom: 10px; }
.tech-stats span { font-size: 12.5px; color: var(--muted); line-height: 1.5; display: block; }

/* ---------- Equipment ---------- */
.equipment { display: grid; grid-template-columns: .85fr 1.6fr .55fr; gap: clamp(24px, 3vw, 50px); align-items: start; }
.equip-copy { position: relative; z-index: 1; padding-left: clamp(0px, 4vw, 70px); padding-top: 40px; }
.equip-copy > p:not(.eyebrow) { color: var(--ivory-dim); max-width: 340px; }
.equip-stage { position: relative; }
.equip-figure { position: relative; aspect-ratio: 16 / 11; overflow: hidden; background: var(--bg-3); }
.equip-figure img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.65) brightness(.88); transition: opacity .5s, transform 1.4s var(--ease); }
.equip-figure img.swap { opacity: 0; transform: scale(1.04); }
.equip-card {
  position: absolute; left: 0; bottom: 0; width: min(420px, 78%);
  background: rgba(24, 23, 21, .86); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  padding: 22px 26px 24px; border-top: 1px solid var(--line);
}
.equip-card-top { display: flex; justify-content: space-between; font-size: 10.5px; letter-spacing: .28em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.equip-qty { color: var(--beige); }
.equip-card h3 { margin: 0 0 6px; font-family: var(--serif); font-weight: 500; font-size: 30px; line-height: 1.05; }
.equip-card p { font-size: 13.5px; color: var(--ivory-dim); }
.equip-controls { position: absolute; right: 0; top: calc(var(--fig-h, 0px)); display: flex; gap: 8px; transform: translateY(-100%); }
.equip-controls .arrow { background: rgba(20, 19, 18, .8); }
.spec-grid { display: flex; flex-wrap: wrap; margin: 0; border-left: 1px solid var(--line); }
.spec-grid > div { flex: 1 1 160px; padding: 22px 20px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.spec-grid dt { font-size: 10.5px; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; line-height: 1.5; }
.spec-grid dd { margin: 0; font-family: var(--serif); font-size: 26px; line-height: 1.1; }
.equip-tabs { list-style: none; margin: 0; padding: 40px 0 0; display: flex; flex-direction: column; gap: 2px; }
.equip-tabs button {
  width: 100%; text-align: left; padding: 10px 14px; display: flex; gap: 12px; align-items: center;
  font-size: 11px; letter-spacing: .26em; text-transform: uppercase; color: var(--muted);
  transition: color .3s, background .3s;
}
.equip-tabs button::before { content: "▶"; font-size: 8px; opacity: 0; transform: translateX(-4px); transition: .3s; }
.equip-tabs button:hover { color: var(--ivory); }
.equip-tabs button[aria-selected="true"] { color: var(--ivory); background: var(--bg-3); }
.equip-tabs button[aria-selected="true"]::before { opacity: 1; transform: none; }

/* ---------- Projects / fieldwork ---------- */
.projects { background: var(--bg-2); }
.field-grid {
  display: grid; gap: 16px; position: relative; z-index: 1;
  grid-template-columns: repeat(12, 1fr); grid-auto-rows: clamp(150px, 16vw, 240px);
}
.fg { position: relative; overflow: hidden; }
.fg::after { content: ""; position: absolute; inset: 50% 0 0; background: linear-gradient(transparent, rgba(12, 11, 10, .75)); pointer-events: none; }
.fg img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.5) brightness(.82); transition: transform 1.4s var(--ease), filter .8s; }
.fg:hover img { transform: scale(1.05); filter: none; }
.fg figcaption {
  position: absolute; z-index: 1; left: 18px; bottom: 16px; font-size: 10.5px; letter-spacing: .3em; text-transform: uppercase;
  display: flex; align-items: center; gap: 12px;
}
.fg figcaption::before { content: ""; width: 24px; height: 1px; background: var(--ivory); }
.fg-a { grid-column: 1 / 8; grid-row: span 2; }
.fg-b { grid-column: 8 / 13; }
.fg-c { grid-column: 8 / 13; }
.fg-d { grid-column: 1 / 5; }
.fg-e { grid-column: 5 / 13; }
.project-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; margin-bottom: 40px; }
.project-card { border: 1px solid var(--line); padding: 26px; }
.project-card h3 { font-family: var(--serif); font-weight: 500; font-size: 28px; margin: 0 0 12px; }
.project-card dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: 14px; }
.project-card dt { color: var(--muted); }
.project-card dd { margin: 0; }

/* ---------- Partners ---------- */
.partners { display: grid; grid-template-columns: .8fr 1.6fr; gap: clamp(30px, 5vw, 80px); align-items: start; }
.partners-head { position: sticky; top: 120px; z-index: 1; padding-left: clamp(0px, 4vw, 70px); }
.partners-head > p:not(.eyebrow) { color: var(--ivory-dim); max-width: 360px; margin-bottom: 30px; }
.partner-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.partner-filters button {
  background: rgba(20, 19, 18, .92); padding: 8px 14px; border: 1px solid var(--line); font-size: 10.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted);
  transition: .3s;
}
.partner-filters button:hover { color: var(--ivory); border-color: var(--line-strong); }
.partner-filters button[aria-selected="true"] { background: var(--ivory); color: var(--bg); border-color: var(--ivory); }
.partner-grid { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.partner {
  position: relative; padding: 34px 32px 30px; min-height: 250px;
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 10px; overflow: hidden;
  transition: background .5s var(--ease), opacity .4s, transform .4s;
}
.partner::before { content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(195, 168, 136, .12), transparent 60%); opacity: 0; transition: opacity .5s; }
.partner { background: rgba(20, 19, 18, .86); }
.partner:hover { background: var(--bg-2); }
.partner:hover::before { opacity: 1; }
.partner.dim { opacity: .18; }
.partner-top { display: flex; justify-content: space-between; align-items: center; font-size: 10.5px; letter-spacing: .26em; text-transform: uppercase; color: var(--muted); }
.partner-tag { white-space: nowrap; font-size: 9.5px; letter-spacing: .2em; color: var(--beige); border: 1px solid rgba(195, 168, 136, .35); padding: 4px 10px; }
.partner h3 { position: relative; margin: 26px 0 0; font-family: var(--serif); font-weight: 500; font-size: clamp(26px, 2.3vw, 34px); line-height: 1.02; }
.partner .legal { font-size: 13px; color: var(--muted); }
.partner .supply { position: relative; margin-top: auto; padding-top: 18px; font-size: 14px; color: var(--ivory-dim); border-top: 1px solid var(--line); }
.partner .idx { position: absolute; right: 22px; bottom: 6px; font-family: var(--serif); font-size: 80px; line-height: 1; color: rgba(239, 233, 223, .04); }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: .9fr 1fr 1.1fr; gap: clamp(30px, 4vw, 60px); background: var(--bg-2); align-items: stretch; }
.contact-info { position: relative; z-index: 1; padding-left: clamp(0px, 4vw, 70px); }
.contact-list { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 32px; }
.contact-list li { display: flex; gap: 22px; align-items: flex-start; }
.contact-list p:not(.label), .contact-list a { font-family: var(--serif); font-size: 21px; line-height: 1.3; }
.contact-list a:hover { color: var(--beige); }
.contact-form { display: flex; flex-direction: column; gap: 6px; align-self: center; }
.contact-form label { display: block; }
.contact-form label span { display: block; font-size: 11px; letter-spacing: .12em; color: var(--muted); padding-top: 16px; }
.contact-form label em { font-style: normal; opacity: .7; }
.contact-form input, .contact-form textarea {
  width: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--line-strong);
  color: var(--ivory); font: inherit; font-size: 16px; padding: 10px 0; resize: vertical; outline: none; transition: border-color .3s;
}
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--beige); }
.contact-form .invalid { border-color: #c0705a; }
.contact-form .btn { margin-top: 30px; align-self: flex-start; }
.form-note { font-size: 13px; color: var(--beige); min-height: 20px; }
.contact-map { position: relative; min-height: 460px; border: 1px solid var(--line); overflow: hidden; }
.contact-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(1) contrast(1.1) brightness(.7); }
.map-label { position: absolute; left: 16px; top: 16px; z-index: 1; background: rgba(20, 19, 18, .85); padding: 8px 14px; font-size: 10.5px; letter-spacing: .3em; text-transform: uppercase; }
.map-open {
  position: absolute; left: 16px; bottom: 16px; z-index: 1; background: rgba(20, 19, 18, .88); border: 1px solid var(--line-strong);
  padding: 9px 14px; font-size: 10.5px; letter-spacing: .22em; text-transform: uppercase; transition: background .3s, color .3s;
}
.map-open:hover { background: var(--ivory); color: var(--bg); }
.map-pin {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, calc(-100% - 52px)); z-index: 1; pointer-events: none;
  display: flex; align-items: center; gap: 10px; background: rgba(20, 19, 18, .9); border: 1px solid var(--line-strong);
  padding: 10px 14px; font-family: var(--serif); font-size: 13px; line-height: 1.15;
}
.map-pin img { width: 34px; }
.map-pin::after { content: ""; position: absolute; left: 50%; bottom: -7px; width: 12px; height: 12px; background: inherit; border-right: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); transform: translateX(-50%) rotate(45deg); }

/* =========================================================
   FOOTER  (matches the ChatGPT footer concept)
   Desktop: the concept artwork is the background and every
   element is placed in % of it, so it scales as one piece.
   ========================================================= */
.site-footer {
  position: relative; overflow: hidden; background: #1b1a19 url("assets/img/footer-bg.jpg") center / 100% 100% no-repeat;
  aspect-ratio: 1672 / 941; container-type: inline-size; --fw: 100cqw;
}
.footer-stage { position: absolute; inset: 0 0 12.2% 0; }
.footer-stage > * { position: absolute; }
.f-brand { left: 5.7%; top: 13.6%; }
.f-brand .brand-mark { width: calc(var(--fw) * .048); min-width: 56px; }
.f-brand .brand-text { font-size: max(15px, calc(var(--fw) * .0125)); }
.f-eyebrow { left: 5.7%; top: 28.5%; margin: 0; font-size: max(9px, calc(var(--fw) * .0075)); letter-spacing: .5em; color: var(--muted); }
.f-eyebrow::after { width: calc(var(--fw) * .03); }
.f-slogan {
  left: 5.7%; top: 33.5%; font-family: var(--serif); font-weight: 500; text-transform: uppercase;
  font-size: calc(var(--fw) * .04); line-height: .86; letter-spacing: -.01em;
}
.f-slogan em, .footer-slogan em {
  font-style: italic; font-weight: 400;
  background: linear-gradient(100deg, #d9c3a5 0%, #b3977a 45%, #8c7760 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.f-div { width: 1px; background: rgba(239, 233, 223, .2); }
.f-div-1 { left: 36.2%; top: 15%; height: 55%; }
.f-div-2 { left: 61%; top: 26.6%; height: 43.4%; }
.f-head {
  display: flex; align-items: center; gap: 22px; margin-bottom: calc(var(--fw) * .033);
  font-size: max(10px, calc(var(--fw) * .0082)); letter-spacing: .42em; text-transform: uppercase;
}
.f-head::after { content: ""; width: calc(var(--fw) * .03); height: 1px; background: var(--line-strong); }
.f-contacts { left: 40.7%; top: 19%; right: 40%; }
.f-contacts ul { list-style: none; margin: 0; padding: 0; display: grid; gap: calc(var(--fw) * .025); }
.f-contacts li { display: flex; gap: calc(var(--fw) * .024); align-items: flex-start; }
.f-contacts .icon-box { width: calc(var(--fw) * .0275); height: calc(var(--fw) * .0275); min-width: 34px; min-height: 34px; border-color: rgba(239, 233, 223, .45); }
.f-contacts .label { font-size: max(9px, calc(var(--fw) * .0068)); letter-spacing: .3em; color: var(--ivory-dim); margin-bottom: 4px; }
.f-contacts li p:not(.label), .f-contacts li a { font-family: var(--serif); font-size: max(14px, calc(var(--fw) * .0122)); line-height: 1.35; }
.f-contacts a:hover { color: var(--beige); }
.f-nav { left: 63.2%; top: 19%; }
.f-nav nav { display: flex; flex-direction: column; gap: calc(var(--fw) * .0105); padding-left: calc(var(--fw) * .006); }
.f-nav nav a { font-family: var(--serif); font-size: max(15px, calc(var(--fw) * .0128)); transition: color .3s, transform .3s; }
.f-nav nav a:hover { color: var(--beige); transform: translateX(6px); }
.f-motto {
  left: 79.4%; top: 74.8%; font-size: max(10px, calc(var(--fw) * .0092)); letter-spacing: .32em; text-transform: uppercase; line-height: 1.75;
}
.f-motto::before { content: ""; display: block; width: calc(var(--fw) * .055); height: 1px; background: var(--ivory-dim); margin-bottom: calc(var(--fw) * .022); }
.f-motto::after { /* soft dark pad behind the motto so it reads on the photo */
  content: ""; position: absolute; inset: -30% -20% -40% -20%; z-index: -1;
  background: radial-gradient(ellipse at 40% 60%, rgba(18, 17, 16, .55), transparent 70%);
}

.footer-bar {
  position: absolute; left: 0; right: 0; bottom: 0; height: 12.2%;
  display: flex; align-items: center; gap: 30px; padding: 0 3.5% 0 5.7%;
  border-top: 1px solid rgba(239, 233, 223, .35);
  font-size: max(12px, calc(var(--fw) * .0092)); color: var(--ivory);
}
.footer-bar p i { font-style: normal; margin: 0 14px; opacity: .7; }
.footer-links { display: flex; align-items: center; margin-left: auto; margin-right: 6%; font-size: max(10px, calc(var(--fw) * .0075)); letter-spacing: .2em; text-transform: uppercase; }
.footer-links i { width: 1px; height: 2.2em; background: var(--line-strong); margin: 0 calc(var(--fw) * .019); }
.footer-links a:hover { color: var(--beige); }
.back-top { display: flex; align-items: center; gap: 18px; font-size: max(10px, calc(var(--fw) * .0075)); letter-spacing: .2em; text-transform: uppercase; }
.back-top .circle { width: calc(var(--fw) * .033); height: calc(var(--fw) * .033); min-width: 42px; min-height: 42px; border-radius: 50%; border: 1px solid rgba(239, 233, 223, .5); display: grid; place-items: center; font-size: 16px; transition: .4s var(--ease); }
.back-top:hover .circle { background: var(--ivory); color: var(--bg); transform: translateY(-4px); }

/* =========================================================
   MOUNTAIN / ROCK DECORATIONS (same language as the footer)
   ========================================================= */
.section, .facts { isolation: isolate; }
.deco { position: absolute; z-index: -1; pointer-events: none; will-change: transform; }
.deco img { width: 100%; height: auto; }
/* Big mountains standing on the bottom edge of each section, tall end towards the page edge.
   Text blocks get a soft dark-grey backing wherever a mountain reaches them. */
.section:has(.deco) { padding-bottom: calc(12vw + 70px); }
.deco { bottom: 0; height: 28vw; width: auto; opacity: .3; }
.deco img { position: relative; height: 100%; width: auto; max-width: none; filter: brightness(1.05) contrast(1.04); }
.deco-right { right: 0; }
.deco-left  { left: 0; }
.deco-flip img { transform: scaleX(-1); }
.deco::before { /* lighter grey glow behind the rock, strongest on its tall side */
  content: ""; position: absolute; left: -25%; right: -25%; bottom: 0; height: 170%;
  background: radial-gradient(ellipse 52% 58% at var(--gx, 50%) 80%, rgba(176, 168, 158, .34), rgba(176, 168, 158, .1) 48%, transparent 74%);
}
.deco-right::before { --gx: 70%; }
.deco-left::before  { --gx: 30%; }
.deco-services, .deco-projects { height: 25vw; }
.deco-partners { height: 25vw; }
.deco-contact  { height: 30vw; }

.about-aside, .contact-form { position: relative; z-index: 1; }

/* faded photo-mountain vignettes (top corners) */
.haze { position: absolute; z-index: -1; pointer-events: none; opacity: .9; will-change: transform; }
.haze img { width: 100%; height: auto; }
.haze-tr { right: -4vw; top: -5vw; }
.haze-tl { left: -5vw; top: -4vw; }
.haze-services { width: 50vw; }
.haze-equip    { width: 42vw; }
.haze-contact  { width: 40vw; opacity: .8; }
.haze-contact img { transform: scaleX(-1); }
.haze-flip img { transform: scaleX(-1); }  /* mirrored so the slope still rises towards the page edge */
.section { overflow: clip; }
@media (max-width: 860px) {
  .section:has(.deco) { padding-bottom: calc(26vw + 50px); }
  .deco { height: 46vw !important; opacity: .3 !important; }
  .haze { width: 100vw !important; opacity: .55; }
}

/* =========================================================
   LANGUAGES
   ========================================================= */
.map-pin span, a[href^="tel"], a[href^="mailto"] { font-family: "Cormorant Garamond", serif !important; }
html[lang="ru"] .hero-title .line { padding-top: .22em; margin-top: -.18em; }
html[lang="ru"] .hero-title .accent > span, html[lang="ru"] .h2 em, html[lang="ru"] .f-slogan em { display: inline-block; padding-top: .2em; margin-top: -.2em; }
html[lang="zh"] { --serif: "Noto Serif SC", "Cormorant Garamond", serif; --sans: "Noto Sans SC", "Jost", sans-serif; }
html[lang="zh"] body { font-weight: 400; }
html[lang="zh"] .hero-title { font-weight: 600; line-height: 1.02; letter-spacing: .04em; font-size: clamp(54px, 7vw, 150px); }
html[lang="zh"] .hero-title .accent > span, html[lang="zh"] .h2 em, html[lang="zh"] .f-slogan em { font-style: normal; }
html[lang="zh"] .h2 { font-weight: 600; line-height: 1.2; letter-spacing: .04em; font-size: clamp(32px, 3.5vw, 58px); }
html[lang="zh"] .f-slogan { font-size: calc(var(--fw) * .034); }
html[lang="zh"] .f-slogan { font-weight: 600; line-height: 1.15; }
html[lang="zh"] .service h3, html[lang="zh"] .partner h3, html[lang="zh"] .equip-card h3 { font-weight: 600; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1279px) {
  .main-nav { display: none; }
  .site-header { grid-template-columns: 1fr auto; }
}

@media (max-width: 1180px) {
  .about { grid-template-columns: 1fr 1fr; }
  .about-aside { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 30px; padding-top: 0; }
  .equipment { grid-template-columns: 1fr; }
  .equip-copy { padding-top: 0; }
  .equip-tabs { flex-direction: row; flex-wrap: wrap; padding: 0; order: 2; }
  .equip-stage { order: 3; }
  .equip-tabs button { width: auto; border: 1px solid var(--line); }
  .equip-tabs button::before { display: none; }
  .contact { grid-template-columns: 1fr 1fr; }
  .contact-map { grid-column: 1 / -1; }
  .hero-copy { right: 20vw; }
}

/* Footer: below 1100px the artwork becomes a background and content stacks */
@media (max-width: 1099px) {
  .site-footer {
    aspect-ratio: auto; --fw: 1100px;
    background: #151413 url("assets/img/footer-bg.jpg") 0% 100% / auto 100% no-repeat;
  }
  .site-footer::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(21, 20, 19, .35), rgba(21, 20, 19, .75)); }
  .footer-stage { position: relative; inset: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 40px 60px; padding: 90px var(--pad) 60px; }
  .footer-stage > * { position: relative; left: auto; top: auto; right: auto; }
  .f-brand, .f-eyebrow, .f-slogan { grid-column: 1 / -1; }
  .f-eyebrow { margin-top: -10px; }
  .f-div { display: none; }
  .f-motto { grid-column: 1 / -1; font-size: 11px; }
  .f-motto::after { display: none; }
  .footer-bar { position: relative; height: auto; padding: 26px var(--pad); flex-wrap: wrap; background: rgba(21, 20, 19, .8); }
}

@media (max-width: 860px) {
  .site-header { padding: 14px 16px; gap: 10px; }
  .site-header.scrolled { padding-top: 10px; padding-bottom: 10px; }
  .brand { gap: 10px; }
  .brand-mark { width: 46px; }
  .brand-text { font-size: 13px; }
  .header-right { gap: 8px; }
  .lang-switch button { padding: 4px 6px; font-size: 10px; letter-spacing: .1em; }
  .menu-btn { width: 48px; height: 48px; gap: 5px; }
  .menu-btn span { width: 18px; }
  body.menu-open .menu-btn span:nth-child(1) { transform: translateY(6.4px) rotate(45deg); }
  body.menu-open .menu-btn span:nth-child(3) { transform: translateY(-6.4px) rotate(-45deg); }
  .menu { clip-path: circle(0 at calc(100% - 40px) 38px); }
  body.menu-open .menu { clip-path: circle(150% at calc(100% - 40px) 38px); }
  .menu-inner { grid-template-columns: 1fr; align-content: center; }
  .menu-contacts { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 24px; font-size: 18px; }

  .hero { height: 100svh; min-height: 640px; }
  .hero-bg { object-position: 80% 50%; }
  .hero-fg { display: none; }
  .hero-shade { background: linear-gradient(0deg, rgba(31, 30, 29, .97) 0%, rgba(31, 30, 29, .88) 38%, rgba(31, 30, 29, .45) 58%, rgba(31, 30, 29, .1) 78%); }
  .rail, .hero-ghost, .rail-scroll { display: none; }
  .hero-copy { left: 20px; right: 20px; top: auto; bottom: 48px; }
  .hero-title { font-size: clamp(48px, 14.5vw, 90px); white-space: normal; margin-bottom: 34px; }
  html[lang="zh"] .hero-title { font-size: clamp(44px, 13vw, 80px); }
  .hero-eyebrow { font-size: 11px; margin-bottom: 20px; }
  .hero-btn { padding: 18px 24px; gap: 40px; font-size: 11.5px; }

  .facts { grid-template-columns: 1fr 1fr; margin: 0 20px; }
  .fact { padding: 28px 16px; }
  .fact strong { font-size: 36px; }
  .fact span { letter-spacing: .18em; }
  .fact:nth-child(3) { border-left: 0; }
  .fact:nth-child(n+3) { border-top: 1px solid var(--line); }

  .section { padding-left: 20px; padding-right: 20px; }
  .services { padding-right: 0; }
  .services .section-head { padding-right: 20px; }
  .services-track { grid-auto-columns: 78vw; padding-right: 20px; }
  .section-head { grid-template-columns: 1fr; padding-left: 0; margin-bottom: 40px; }
  .section-head-side { justify-self: start; }
  .ghost-num { top: 40px; }

  .about { grid-template-columns: 1fr; }
  .about-copy, .equip-copy, .partners-head, .contact-info, .tech-inner { padding-left: 0; }
  .about-aside { grid-template-columns: 1fr; gap: 0; }
  .tech-inner { padding: 100px 20px; }
  .tech::before { background: linear-gradient(180deg, rgba(20, 19, 18, .9), rgba(20, 19, 18, .75)); }
  .tech-stats { grid-template-columns: 1fr; }
  .tech-stats div + div { padding-left: 0; border-left: 0; }
  .tech-stats div { padding: 20px 0; border-bottom: 1px solid var(--line); }

  .equip-card { position: relative; width: 100%; }
  .equip-figure { aspect-ratio: auto; }
  .equip-figure img { aspect-ratio: 4 / 3; height: auto; }
  .equip-controls { position: static; transform: none; justify-content: flex-end; margin: 12px 0; }
  .spec-grid > div { flex-basis: 40%; padding: 18px 14px; }
  .spec-grid dd { font-size: 21px; }

  .field-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 44vw; gap: 10px; }
  .fg-a { grid-column: 1 / -1; }
  .fg-b, .fg-c, .fg-d { grid-column: auto; grid-row: auto; }
  .fg-e { grid-column: 1 / -1; }

  .partners { grid-template-columns: 1fr; }
  .partners-head { position: relative; top: 0; }
  .partner-grid { grid-template-columns: 1fr; }
  .partner { min-height: 0; }

  .contact { grid-template-columns: 1fr; }
  .contact-map { min-height: 340px; }

  .footer-stage { grid-template-columns: 1fr; padding: 70px 20px 40px; gap: 36px; }
  .f-slogan { font-size: 40px; }
  .footer-bar { padding: 22px 20px; flex-direction: column; align-items: flex-start; gap: 18px; }
  .footer-links { margin: 0; }
}
