/* ==========================================================================
   GI-AN — Construction Co. | Black & Gold design system
   Signature motif: the portal frame (from the logo) recurs as gold brackets.
   Fonts are loaded via <link rel="preconnect"> + stylesheet in each page <head>
   (faster than @import, which is render-blocking).
   ========================================================================== */

:root {
  --black:      #050707;
  --panel:      #0b0d0d;
  --panel-2:    #111413;
  --panel-3:    #161a18;
  --gold:       #c79122;
  --gold-bright:#e6be5a;
  --gold-deep:  #8c6414;
  --line:       rgba(199, 145, 34, 0.22);
  --line-soft:  rgba(199, 145, 34, 0.12);
  --text:       #e8e2d4;
  --muted:      #948d7e;
  --white:      #f6f2e8;

  --display: 'Oswald', sans-serif;
  --body: 'Noto Sans Georgian', 'Oswald', system-ui, sans-serif;

  --maxw: 1240px;
  --gut: clamp(20px, 5vw, 72px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--black);
  color: var(--text);
  font-family: var(--body);
  font-weight: 400;
  line-height: 1.7;
  font-size: 17px;
  letter-spacing: 0.01em;
  overflow-x: hidden;
}

/* Subtle ambient texture so flat black doesn't read as "empty AI page" */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(900px 600px at 80% -5%, rgba(199,145,34,0.07), transparent 60%),
    radial-gradient(700px 500px at -10% 100%, rgba(199,145,34,0.05), transparent 60%);
  pointer-events: none;
  z-index: 0;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* Skip link — visible only on keyboard focus (accessibility) */
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 200; background: var(--gold); color: #000; padding: 12px 18px; font-family: var(--body); font-weight: 600; font-size: 14px; letter-spacing: 0.03em; }
.skip-link:focus { left: 12px; top: 12px; }
#main:focus { outline: none; }

h1, h2, h3, h4 { margin: 0; font-weight: 600; line-height: 1.05; }
p { margin: 0 0 1.1em; }

/* Latin headings: industrial condensed signage. Georgian: heavy Noto, tracked. */
:lang(en) h1, :lang(en) h2, :lang(en) h3, :lang(en) .display {
  font-family: var(--display);
  text-transform: uppercase;
}

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gut); position: relative; z-index: 1; }

/* ----------------------------------------------------------------- Eyebrow */
.eyebrow {
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 0.34em;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 22px;
}
.eyebrow::before {
  content: "";
  width: 34px;
  height: 1px;
  background: var(--gold);
  display: inline-block;
}

/* ----------------------------------------------------------------- Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 14px;
  font-weight: 500;
  padding: 17px 34px;
  border: 1px solid var(--gold);
  color: var(--black);
  background: var(--gold);
  cursor: pointer;
  transition: background .35s var(--ease), color .35s var(--ease), box-shadow .35s var(--ease), transform .35s var(--ease);
}
.btn:hover { background: var(--gold-bright); border-color: var(--gold-bright); box-shadow: 0 14px 40px -14px rgba(199,145,34,0.6); transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--gold); }
.btn--ghost:hover { background: var(--gold); color: var(--black); box-shadow: 0 14px 40px -16px rgba(199,145,34,0.5); }
.btn .arr { transition: transform .35s var(--ease); }
.btn:hover .arr { transform: translateX(5px); }

/* ----------------------------------------------------------------- Header */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--gut);
  height: 86px;
  background: rgba(5,7,7,0);
  border-bottom: 1px solid transparent;
  transition: background .4s var(--ease), border-color .4s var(--ease), height .4s var(--ease);
}
.site-header.scrolled {
  background: rgba(5,7,7,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  height: 72px;
}

.brand { display: flex; align-items: center; gap: 14px; z-index: 60; }
.brand__mark {
  width: 30px; height: 34px;
  border: 2px solid var(--gold);
  border-bottom: none;
  position: relative;
}
.brand__mark::after {
  content: ""; position: absolute; left: -5px; right: -5px; bottom: -6px; height: 2px; background: var(--gold);
}
.brand__name {
  font-family: var(--display);
  font-weight: 600;
  font-size: 23px;
  letter-spacing: 0.22em;
  color: var(--gold);
  line-height: 1;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
}
.brand__est { display:block; font-size: 13px; letter-spacing: 0.45em; color: var(--muted); margin-top: 4px; text-align: center; }

.nav { display: flex; align-items: center; gap: 38px; }
.nav__links { display: flex; align-items: center; gap: 30px; list-style: none; margin: 0; padding: 0; }
.nav__links a {
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 13.5px;
  font-weight: 400;
  color: var(--text);
  position: relative;
  padding: 6px 0;
  transition: color .3s var(--ease);
}
:lang(ka) .nav__links a { font-family: var(--body); text-transform: none; letter-spacing: 0.02em; font-size: 15px; font-weight: 500; }
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 0; background: var(--gold); transition: width .35s var(--ease);
}
.nav__links a:hover, .nav__links a[aria-current="page"] { color: var(--gold); }
.nav__links a:hover::after, .nav__links a[aria-current="page"]::after { width: 100%; }

/* Language switch */
.lang {
  display: flex; align-items: center; gap: 2px;
  font-family: var(--display);
  font-size: 13px; letter-spacing: 0.1em; font-weight: 500;
  border: 1px solid var(--line); padding: 7px 4px;
}
.lang a { padding: 3px 11px; color: var(--muted); transition: color .3s, background .3s; }
.lang a:hover { color: var(--gold); }
.lang a.is-active { color: var(--black); background: var(--gold); }
.lang span { color: var(--line); }

/* Burger */
.burger { display: none; flex-direction: column; gap: 6px; background: none; border: none; cursor: pointer; padding: 8px; z-index: 60; }
.burger span { width: 26px; height: 2px; background: var(--gold); transition: transform .35s var(--ease), opacity .25s; }
.burger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ----------------------------------------------------------------- Gold scroll-progress bar */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 0;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold-bright));
  z-index: 80; box-shadow: 0 0 12px rgba(199,145,34,0.6);
  will-change: width;
}

/* ----------------------------------------------------------------- Hero (full-bleed, bottom-anchored) */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  position: relative;
  padding: 150px 0 60px;
  overflow: hidden;
}

/* Full-bleed background image with a soft parallax drift */
.hero__bg {
  position: absolute; inset: 0;
  background: var(--black) center/cover no-repeat;
  filter: contrast(1.08) brightness(0.92);
  z-index: 0;
}
/* Legibility wash: darken the bottom (both columns) and the left (headline) */
.hero__bg::after {
  content:""; position:absolute; inset:0;
  background:
    linear-gradient(180deg, rgba(5,7,7,0.45) 0%, rgba(5,7,7,0.12) 38%, rgba(5,7,7,0.94) 100%),
    linear-gradient(90deg, rgba(5,7,7,0.78), rgba(5,7,7,0.12) 62%);
}
.hero .wrap { position: relative; z-index: 2; width: 100%; }

.hero__foot {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(28px, 5vw, 80px);
  align-items: end;
}
.hero h1 {
  font-size: clamp(46px, 8.5vw, 124px);
  letter-spacing: 0.01em;
  line-height: 0.9;
  color: var(--white);
  margin: 0;
}
.hero h1 .gold { color: var(--gold); }
:lang(ka) .hero h1 { font-weight: 700; letter-spacing: 0; font-size: clamp(30px, 4.6vw, 62px); line-height: 1.04; }

.hero__aside { padding-bottom: 6px; }
.hero__kicker {
  font-family: var(--display); text-transform: uppercase; letter-spacing: 0.2em;
  font-size: clamp(15px, 1.7vw, 21px); font-weight: 500; color: var(--gold);
  margin: 0 0 16px; line-height: 1.25;
}
:lang(ka) .hero__kicker { font-family: var(--body); text-transform: none; letter-spacing: 0.02em; font-weight: 700; }
.hero__tag {
  font-size: 16px; color: var(--muted); max-width: 420px; margin: 0 0 26px; line-height: 1.7;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; }

/* ----------------------------------------------------------------- Sections */
.section { padding: clamp(80px, 11vw, 150px) 0; position: relative; }
.section--panel { background: var(--panel); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.section--tight { padding: clamp(60px, 8vw, 110px) 0; }

.section-head { max-width: 760px; margin-bottom: clamp(40px, 6vw, 72px); }
.section-head h2 {
  font-size: clamp(34px, 5.2vw, 66px);
  letter-spacing: 0.01em;
  color: var(--white);
  line-height: 1.0;
}
:lang(ka) .section-head h2 { font-weight: 700; }
.section-head h2 .gold { color: var(--gold); }
.section-head p { margin-top: 22px; color: var(--muted); font-size: 18px; max-width: 640px; }

.lead { font-size: clamp(19px, 2.3vw, 25px); line-height: 1.55; color: var(--text); max-width: 760px; }
:lang(en) .lead { font-family: var(--display); font-weight: 300; text-transform: none; }

/* divider rule */
.rule { height: 1px; background: var(--line); border: none; margin: 0; }
.gold-tick { width: 56px; height: 3px; background: var(--gold); margin: 0 0 28px; }

/* ----------------------------------------------------------------- Stat strip */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line-soft); border: 1px solid var(--line-soft); }
.stat { background: var(--black); padding: 40px 30px; text-align: center; }
.section--panel .stat { background: var(--panel); }
.stat__num { font-family: var(--display); font-size: clamp(40px, 5vw, 60px); font-weight: 600; color: var(--gold); line-height: 1; }
.stat__label { display: block; margin-top: 12px; font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
:lang(ka) .stat__label { text-transform: none; letter-spacing: 0.02em; font-size: 14px; }

/* ----------------------------------------------------------------- Feature grid */
.grid { display: grid; gap: 26px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--panel-2);
  border: 1px solid var(--line-soft);
  padding: 38px 34px;
  position: relative;
  transition: border-color .4s var(--ease), transform .4s var(--ease), background .4s var(--ease);
  overflow: hidden;
}
.card::before {
  content: ""; position: absolute; top: 0; left: 0; width: 0; height: 2px; background: var(--gold); transition: width .45s var(--ease);
}
.card:hover { border-color: var(--line); transform: translateY(-6px); background: var(--panel-3); }
.card:hover::before { width: 100%; }
.card__no { font-family: var(--display); font-size: 14px; letter-spacing: 0.2em; color: var(--gold-deep); margin-bottom: 20px; }
.card h3 { font-size: 23px; color: var(--white); margin-bottom: 14px; letter-spacing: 0.02em; }
:lang(ka) .card h3 { font-weight: 700; }
.card p { color: var(--muted); font-size: 15.5px; margin: 0; line-height: 1.65; }
.card__icon { width: 46px; height: 46px; margin-bottom: 24px; stroke: var(--gold); fill: none; stroke-width: 1.4; }

/* ----------------------------------------------------------------- Split */
.split { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(36px, 6vw, 84px); align-items: center; }
.split--rev { grid-template-columns: 0.95fr 1.05fr; }
.split__media {
  position: relative; min-height: 460px; background-size: cover; background-position: center;
  border: 1px solid var(--line); filter: grayscale(0.3) contrast(1.05);
}
.split__media::after { content:""; position:absolute; inset:0; background: linear-gradient(200deg, transparent 40%, rgba(5,7,7,0.6)); }
.media-frame { position: relative; }

/* ----------------------------------------------------------------- Projects */
.proj-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.proj {
  position: relative; aspect-ratio: 4/5; overflow: hidden; border: 1px solid var(--line-soft);
  background-size: cover; background-position: center; display: flex; align-items: flex-end;
}
.proj::after { content:""; position:absolute; inset:0; background: linear-gradient(180deg, rgba(5,7,7,0.1) 30%, rgba(5,7,7,0.92)); transition: background .4s; }
.proj:hover::after { background: linear-gradient(180deg, rgba(199,145,34,0.12) 0%, rgba(5,7,7,0.92)); }
.proj__body { position: relative; z-index: 2; padding: 30px; transition: transform .45s var(--ease); }
.proj:hover .proj__body { transform: translateY(-6px); }
.proj__cat { font-family: var(--display); font-size: 11.5px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold); }
.proj h3 { font-size: 24px; color: var(--white); margin: 10px 0 6px; }
:lang(ka) .proj h3 { font-weight: 700; }
.proj__loc { font-size: 14px; color: var(--muted); display: flex; align-items: center; gap: 7px; }

.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 40px; }
.filter-bar button {
  font-family: var(--display); text-transform: uppercase; letter-spacing: 0.12em; font-size: 13px;
  background: transparent; color: var(--muted); border: 1px solid var(--line-soft); padding: 11px 22px; cursor: pointer;
  transition: all .3s var(--ease);
}
:lang(ka) .filter-bar button { font-family: var(--body); text-transform: none; font-size: 15px; }
.filter-bar button:hover { color: var(--gold); border-color: var(--line); }
.filter-bar button.is-active { background: var(--gold); color: var(--black); border-color: var(--gold); }

/* ----------------------------------------------------------------- Service cards (image + text) */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.svc {
  display: flex; flex-direction: column;
  background: var(--panel-2); border: 1px solid var(--line-soft);
  position: relative; overflow: hidden;
  transition: border-color .4s var(--ease), transform .4s var(--ease), background .4s var(--ease);
}
.svc:hover { border-color: var(--line); transform: translateY(-7px); background: var(--panel-3); }
.svc::after { content:""; position: absolute; top: 0; left: 0; height: 2px; width: 0; background: var(--gold); transition: width .45s var(--ease); z-index: 3; }
.svc:hover::after { width: 100%; }
.svc__media { aspect-ratio: 16 / 11; overflow: hidden; position: relative; }
.svc__media span {
  display: block; width: 100%; height: 100%;
  background-size: cover; background-position: center;
  filter: grayscale(0.25) contrast(1.05) brightness(0.92);
  transition: transform .7s var(--ease);
}
.svc:hover .svc__media span { transform: scale(1.07); }
.svc__media::after { content:""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 60%, rgba(11,13,13,0.85)); }
.svc__body { padding: 26px 26px 30px; display: flex; flex-direction: column; flex: 1; }
.svc__no { font-family: var(--display); font-size: 13px; letter-spacing: 0.22em; color: var(--gold-deep); margin-bottom: 12px; }
.svc h3 { font-size: 21px; color: var(--white); margin-bottom: 11px; letter-spacing: 0.02em; }
:lang(ka) .svc h3 { font-weight: 700; }
.svc p { color: var(--muted); font-size: 14.5px; line-height: 1.62; margin: 0; }
@media (max-width: 1024px) { .svc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .svc-grid { grid-template-columns: 1fr; } }

/* ----------------------------------------------------------------- Equipment list */
.equip { border-top: 1px solid var(--line-soft); }
.equip__row { display: grid; grid-template-columns: 80px 1fr 1.2fr; gap: 30px; align-items: center; padding: 40px 0; border-bottom: 1px solid var(--line-soft); transition: background .4s; }
.equip__row:hover { background: rgba(199,145,34,0.03); }
.equip__no { font-family: var(--display); font-size: 30px; color: var(--gold-deep); }
.equip__row h3 { font-size: clamp(24px, 3vw, 34px); color: var(--white); }
:lang(ka) .equip__row h3 { font-weight: 700; }
.equip__row p { color: var(--muted); margin: 0; }

/* ----------------------------------------------------------------- Forms */
.form { display: grid; gap: 22px; }
.field { display: flex; flex-direction: column; gap: 9px; }
.field label { font-family: var(--display); text-transform: uppercase; letter-spacing: 0.12em; font-size: 12px; color: var(--gold); }
:lang(ka) .field label { font-family: var(--body); text-transform: none; letter-spacing: 0.02em; font-size: 14px; font-weight: 600; }
.field input, .field textarea, .field select {
  background: var(--panel-2); border: 1px solid var(--line-soft); color: var(--text);
  padding: 15px 18px; font-family: var(--body); font-size: 16px; transition: border-color .3s;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--gold); }
.field textarea { resize: vertical; min-height: 130px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.form-status { margin: 0; font-size: 15px; color: var(--muted); min-height: 1px; }
.form-status:empty { display: none; }
.form-status.is-ok { color: var(--gold-bright); border-left: 2px solid var(--gold); padding-left: 14px; }
.form-status.is-err { color: #e0816b; border-left: 2px solid #e0816b; padding-left: 14px; }
.form button[type="submit"]:disabled { opacity: 0.5; cursor: progress; }

/* ----------------------------------------------------------------- Contact info */
.contact-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(40px, 6vw, 80px); }
.cinfo { list-style: none; padding: 0; margin: 0 0 40px; }
.cinfo li { display: flex; gap: 18px; padding: 22px 0; border-bottom: 1px solid var(--line-soft); }
.cinfo__ico { width: 42px; height: 42px; flex: none; border: 1px solid var(--line); display: grid; place-items: center; color: var(--gold); }
.cinfo__ico svg { width: 20px; height: 20px; stroke: var(--gold); fill: none; stroke-width: 1.5; }
.cinfo__k { font-family: var(--display); text-transform: uppercase; letter-spacing: 0.14em; font-size: 12px; color: var(--muted); }
:lang(ka) .cinfo__k { font-family: var(--body); text-transform: none; letter-spacing: 0; font-size: 14px; }
.cinfo__v { font-size: 18px; color: var(--white); margin-top: 4px; }
.map-embed { width: 100%; min-height: 320px; border: 1px solid var(--line); background: var(--panel-2); display: grid; place-items: center; color: var(--muted); overflow: hidden; }
.map-embed iframe { display: block; width: 100%; height: 420px; border: 0; filter: grayscale(1) contrast(1.05) brightness(0.85); transition: filter .5s var(--ease); }
.map-embed:hover iframe { filter: grayscale(0) contrast(1) brightness(1); }

/* ----------------------------------------------------------------- CTA band */
.cta-band { background: var(--panel); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); text-align: center; position: relative; overflow: hidden; }
.cta-band::before, .cta-band::after { content:""; position:absolute; width: 200px; height: 200px; border: 1px solid var(--line-soft); }
.cta-band::before { top: -100px; left: -60px; transform: rotate(45deg); }
.cta-band::after { bottom: -100px; right: -60px; transform: rotate(45deg); }
.cta-band h2 { font-size: clamp(32px, 5vw, 60px); color: var(--white); margin-bottom: 18px; }
:lang(ka) .cta-band h2 { font-weight: 700; }
.cta-band p { color: var(--muted); max-width: 560px; margin: 0 auto 36px; font-size: 18px; }

/* ----------------------------------------------------------------- Footer */
.site-footer { background: var(--black); border-top: 1px solid var(--line); padding: 80px 0 36px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; margin-bottom: 60px; }
.footer-grid h4 { font-family: var(--display); text-transform: uppercase; letter-spacing: 0.16em; font-size: 13px; color: var(--gold); margin-bottom: 22px; }
:lang(ka) .footer-grid h4 { font-family: var(--body); text-transform: none; letter-spacing: 0; font-size: 15px; font-weight: 700; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 13px; }
.footer-grid a, .footer-grid p { color: var(--muted); font-size: 15px; transition: color .3s; margin: 0 0 13px; }
.footer-grid a:hover { color: var(--gold); }
.footer__brand .brand__name { font-size: 28px; }
.footer__intro { margin-top: 20px; max-width: 320px; line-height: 1.7; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; padding-top: 30px; border-top: 1px solid var(--line-soft); }
.footer-bottom p { color: var(--muted); font-size: 13.5px; margin: 0; letter-spacing: 0.03em; }

/* ----------------------------------------------------------------- Page banner (interior pages) */
.banner { padding: 170px 0 70px; position: relative; border-bottom: 1px solid var(--line-soft); overflow: hidden; }
.banner__bg { position:absolute; inset:0; z-index:0; background-size: cover; background-position: center; filter: grayscale(0.5) brightness(0.4) contrast(1.1); }
.banner__bg::after { content:""; position:absolute; inset:0; background: linear-gradient(120deg, var(--black) 20%, rgba(5,7,7,0.6)); }
.banner .wrap { z-index: 1; }
.banner h1 { font-size: clamp(40px, 6.5vw, 86px); color: var(--white); letter-spacing: 0.01em; }
:lang(ka) .banner h1 { font-weight: 800; }
.banner h1 .gold { color: var(--gold); }
.crumbs { font-family: var(--display); text-transform: uppercase; letter-spacing: 0.16em; font-size: 12.5px; color: var(--muted); margin-bottom: 22px; display: flex; gap: 10px; }
:lang(ka) .crumbs { font-family: var(--body); text-transform: none; letter-spacing: 0; font-size: 14px; }
.crumbs a:hover { color: var(--gold); }
.crumbs span { color: var(--gold); }

/* ----------------------------------------------------------------- Scroll reveal */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in-view { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: .08s; }
.reveal[data-d="2"] { transition-delay: .16s; }
.reveal[data-d="3"] { transition-delay: .24s; }
.reveal[data-d="4"] { transition-delay: .32s; }

/* Heading mask-reveal: the title wipes up from behind an invisible line */
.reveal h2 { clip-path: inset(0 0 110% 0); transition: clip-path .85s var(--ease) .12s; }
.reveal.in-view h2 { clip-path: inset(0 0 -10% 0); }

/* Image wipe-in: media reveals left-to-right instead of just fading */
.reveal .split__media { clip-path: inset(0 100% 0 0); transition: clip-path 1.05s var(--ease) .1s; }
.reveal.in-view .split__media { clip-path: inset(0 0 0 0); }

/* ----------------------------------------------------------------- Responsive */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .nav__links, .nav .lang { display: none; }
  .burger { display: flex; }
  .nav.open .nav__links {
    display: flex; flex-direction: column; gap: 0;
    position: fixed; top: 0; right: 0; bottom: 0; width: min(80vw, 340px);
    background: var(--panel); border-left: 1px solid var(--line); padding: 110px 36px 40px; z-index: 55;
  }
  .nav.open .nav__links a { font-size: 18px; padding: 18px 0; border-bottom: 1px solid var(--line-soft); width: 100%; }
  .nav.open .lang { display: flex; position: fixed; top: 26px; right: 80px; z-index: 60; }
  .split, .split--rev, .contact-grid { grid-template-columns: 1fr; }
  .split__media { min-height: 320px; }
  .grid--3, .grid--2, .proj-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .equip__row { grid-template-columns: 50px 1fr; }
  .equip__row p { grid-column: 1 / -1; }
  .hero__foot { grid-template-columns: 1fr; gap: 28px; }
  .hero__aside { padding-bottom: 0; }
}
@media (max-width: 560px) {
  .grid--4, .stats { grid-template-columns: 1fr; }
  body { font-size: 16px; }
  .hero { padding: 100px 0 44px; }
  .hero__figure { aspect-ratio: 4 / 3.4; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .reveal h2, .reveal .split__media { clip-path: none !important; }
}
