/* ============================================================
   CONSTRUCCIONES S.U. — Design System
   Layout language adapted from an industrial construction
   template. Sharp 0px corners, Space Grotesk display + Inter body.
   Brand palette: SU orange #f49524 (unified across logo + emblems).
   Light (cream) + Dark themes. Bilingual ES/EN.
   ============================================================ */

/* ---------- Tokens: LIGHT (default) ---------- */
:root {
  --bg:        #ffffff;
  --bg-2:      #fdf9f7;   /* warm off-white section */
  --bg-3:      #f5ebe6;   /* cream card */
  --surface:   #ffffff;
  --text:      #1d0900;   /* near-black brown */
  --text-2:    #3b302b;   /* secondary */
  --muted:     rgba(29, 9, 0, .55);
  --faint:     rgba(29, 9, 0, .40);
  --accent:    #f49524;   /* Construcciones SU orange */
  --accent-2:  #e07d12;   /* darker orange (hover) */
  --accent-ink:#1d0900;   /* text on accent */
  --border:    rgba(29, 9, 0, .12);
  --line:      rgba(29, 9, 0, .10);
  --shadow:    0 24px 60px -28px rgba(29, 9, 0, .35);
  --ring:      rgba(244, 149, 36, .35);

  /* logo emblem (standalone SU mark: badge core) — brand orange everywhere */
  --logo-mark: #f49524;   /* orange SU mark */
  --logo-cut:  #ffffff;   /* negative space = surface */
  /* full logo lockup (inherits into <use> shadow via custom props) */
  --logo-mk: #f49524;         /* orange SU monogram (unified) */
  --logo-word: var(--text);   /* wordmark: theme-aware */
  --logo-bg: var(--bg);       /* cuts/counters = surface behind */

  /* footer is dark in both themes */
  --footer-bg: #0a0a0a;
  --footer-text: #f5f0ec;
  --footer-muted: rgba(245, 240, 236, .55);
  --footer-border: rgba(245, 240, 236, .12);

  --nav-h: 84px;
  --container: 1200px;
  --gutter: clamp(20px, 5vw, 48px);
  --radius: 0px;

  --ff-display: "Space Grotesk", "Space Grotesk Placeholder", system-ui, sans-serif;
  --ff-body: "Inter", "Inter Placeholder", system-ui, -apple-system, sans-serif;

  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

/* ---------- Tokens: DARK ---------- */
:root[data-theme="dark"] {
  --bg:        #0a0a0a;
  --bg-2:      #101010;
  --bg-3:      #171514;
  --surface:   #121110;
  --text:      #f5f0ec;
  --text-2:    #c7bdb5;
  --muted:     rgba(245, 240, 236, .55);
  --faint:     rgba(245, 240, 236, .38);
  --accent:    #f49524;
  --accent-2:  #ffab3d;
  --accent-ink:#0a0a0a;
  --border:    rgba(245, 240, 236, .14);
  --line:      rgba(245, 240, 236, .10);
  --shadow:    0 24px 60px -28px rgba(0, 0, 0, .75);
  --ring:      rgba(244, 149, 36, .45);

  --logo-mark: #f49524;   /* orange SU mark (unified) */
  --logo-cut:  #0a0a0a;

  --footer-bg: #060606;
  --footer-text: #f5f0ec;
  --footer-muted: rgba(245, 240, 236, .5);
  --footer-border: rgba(245, 240, 236, .10);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; touch-action: manipulation; }
section[id] { scroll-margin-top: 92px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
body {
  font-family: var(--ff-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 17px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background .4s var(--ease), color .4s var(--ease);
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: none; }
input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--accent); color: var(--accent-ink); }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: clamp(72px, 10vw, 132px); position: relative; }
/* allow grid/flex children to shrink below content size (prevents mobile overflow) */
.hero__grid > *, .offer__grid > *, .faq__grid > *, .contact__grid > *,
.statement__grid > *, .feat > *, .projects__head > *, .allies__head > *, .gallery__head > * { min-width: 0; }
.section--tint { background: var(--bg-2); }
.section--cream { background: var(--bg-3); }

/* ---------- Type ---------- */
.display {
  font-family: var(--ff-display);
  font-weight: 500;
  line-height: .95;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  font-size: clamp(3rem, 9.2vw, 6.6rem);
}
.h2 {
  font-family: var(--ff-display);
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  font-size: clamp(2rem, 4.6vw, 3.15rem);
}
.h3 {
  font-family: var(--ff-display);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.01em;
  font-size: clamp(1.35rem, 2.4vw, 1.9rem);
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .6em;
  font-family: var(--ff-body);
  font-weight: 600;
  font-size: .72rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--text-2);
}
.eyebrow::before {
  content: "";
  width: 26px; height: 2px;
  background: var(--accent);
  display: inline-block;
}
.eyebrow--center { justify-content: center; }
.lead { color: var(--text-2); font-size: 1.05rem; line-height: 1.7; }
.accent { color: var(--accent); }
.muted { color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--accent);
  --btn-fg: var(--accent-ink);
  display: inline-flex;
  align-items: center;
  gap: .6em;
  padding: 16px 30px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-weight: 600;
  font-size: .82rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: transform .25s var(--ease), background .25s var(--ease), color .25s var(--ease), box-shadow .25s var(--ease);
  white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.btn:hover { background: var(--accent-2); transform: translateY(-2px); box-shadow: 0 14px 26px -14px var(--ring); }
.btn:hover svg { transform: translateX(3px); }
.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--text);
  border: 1px solid var(--border);
}
.btn--ghost:hover { --btn-bg: var(--text); --btn-fg: var(--bg); border-color: var(--text); box-shadow: none; }
.btn--light {
  --btn-bg: var(--surface);
  --btn-fg: var(--text);
  border: 1px solid var(--border);
}
.btn--light:hover { --btn-bg: var(--text); --btn-fg: var(--bg); }
.btn--sm { padding: 12px 22px; font-size: .74rem; }

/* text link with arrow */
.arrow-link {
  display: inline-flex; align-items: center; gap: .5em;
  font-weight: 600; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase;
  color: var(--accent);
}
.arrow-link svg { width: 15px; height: 15px; transition: transform .25s var(--ease); }
.arrow-link:hover svg { transform: translateX(4px); }

/* ============================================================
   NAVBAR
   ============================================================ */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: padding .35s var(--ease);
  padding-block: 20px;
}
.nav__inner {
  display: flex; align-items: center; gap: 24px;
  padding: 12px 14px 12px 20px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  transition: background .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease), backdrop-filter .35s var(--ease);
}
.nav.is-scrolled { padding-block: 12px; }
.nav.is-scrolled .nav__inner {
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-color: var(--border);
  box-shadow: var(--shadow);
}
.brand { display: inline-flex; align-items: center; gap: 12px; margin-right: auto; }
.su-mk { fill: var(--logo-mark); }   /* SU monogram used in badges */
.su-ct { fill: var(--logo-cut); }
/* Full provided logo lockup (theme-aware via inherited custom props) */
.brand__logo { height: 54px; width: auto; display: block; }
.lg-mk { fill: var(--logo-mk); }     /* brand yellow monogram — as provided */
.lg-cut { fill: var(--logo-bg); }    /* cuts/counters = surface behind (negative space) */
.lg-word { fill: var(--logo-word); } /* wordmark adapts: dark on light, cream on dark */

.nav__links { display: flex; align-items: center; gap: 30px; }
.nav__link {
  font-size: .82rem; font-weight: 500; letter-spacing: .02em;
  color: var(--text-2); position: relative; padding-block: 4px;
  transition: color .2s var(--ease);
}
.nav__link::after {
  content:""; position:absolute; left:0; bottom:-2px; height:2px; width:0; background: var(--accent);
  transition: width .25s var(--ease);
}
.nav__link:hover, .nav__link.is-active { color: var(--text); }
.nav__link:hover::after, .nav__link.is-active::after { width: 100%; }

.nav__tools { display: flex; align-items: center; gap: 10px; }
.icon-btn {
  width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--border); color: var(--text);
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.icon-btn:hover { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.icon-btn svg { width: 18px; height: 18px; }
.lang-toggle {
  min-width: 44px; height: 40px; padding: 0 12px;
  border: 1px solid var(--border); font-weight: 700; font-size: .74rem; letter-spacing: .06em;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.lang-toggle:hover { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.theme-toggle .sun { display: none; }
:root[data-theme="dark"] .theme-toggle .sun { display: block; }
:root[data-theme="dark"] .theme-toggle .moon { display: none; }

.nav__cta { display: inline-flex; }
.nav__burger { display: none; }

/* mobile drawer */
.drawer {
  position: fixed; inset: 0; z-index: 200; display: none;
  background: var(--bg);
  padding: 28px var(--gutter);
  flex-direction: column;
}
.drawer.is-open { display: flex; }
.drawer__top { display:flex; align-items:center; justify-content: space-between; }
.drawer__links { display:flex; flex-direction: column; gap: 4px; margin-top: 40px; }
.drawer__links a {
  font-family: var(--ff-display); font-weight: 500; text-transform: uppercase;
  font-size: 2rem; letter-spacing: -.02em; padding: 12px 0; border-bottom: 1px solid var(--line);
}
.drawer__links a:hover { color: var(--accent); }
.drawer__foot { margin-top: auto; display:flex; gap: 12px; align-items:center; }

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; padding-top: calc(var(--nav-h) + 40px); overflow: clip; }
.hero__grid {
  display: grid; grid-template-columns: 1.35fr .85fr; gap: 48px; align-items: start;
}
.hero__title { margin: 18px 0 0; font-size: clamp(2.6rem, 4.6vw, 5.2rem); }
.hero__title .l1 { color: var(--accent); display: block; }
.hero__title .l2 { color: var(--text); display: block; }
.hero__aside { padding-top: 12px; }
.hero__desc { color: var(--text-2); font-size: 1.06rem; border-left: 2px solid var(--accent); padding-left: 20px; }
.hero__badge-wrap { margin-top: 34px; display:flex; align-items:center; gap: 22px; flex-wrap: wrap; }
.badge {
  width: 116px; height: 116px; position: relative; flex: none;
  display: grid; place-items: center;
}
.badge__ring { position:absolute; inset:0; animation: spin 18s linear infinite; }
.badge__ring text { fill: var(--text-2); font-family: var(--ff-body); font-size: 8.6px; font-weight:600; letter-spacing: 2.4px; text-transform: uppercase; }
.badge__core { width: 46px; height: 46px; display: grid; place-items:center; }
.badge__core svg { width: 100%; height: 100%; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }

/* hero stats */
.hero__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 56px; }
.stat__num {
  font-family: var(--ff-display); font-weight: 500; line-height: 1;
  font-size: clamp(2.6rem, 6vw, 4.4rem); letter-spacing: -.03em;
  color: transparent; -webkit-text-stroke: 1.4px var(--text); text-stroke: 1.4px var(--text);
  font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1;
}
.stat__num .suffix { -webkit-text-stroke: 0; color: var(--accent); }
.stat__label {
  margin-top: 6px; font-size: .72rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted);
}
.stat--fill .stat__num { color: var(--accent); -webkit-text-stroke: 0; }

/* hero photo band */
.hero__band { margin-top: clamp(40px, 6vw, 72px); }
.hero__band .media {
  aspect-ratio: 1270 / 560; width: 100%; overflow: hidden; background: var(--bg-3);
}
.hero__band img { width: 100%; height: 100%; object-fit: cover; }

/* trust pill (replaces reviews) */
.trust {
  display:inline-flex; align-items:center; gap: 14px; padding: 10px 22px 10px 12px;
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: 65px 0 0 65px; max-width: 100%;
}
.trust__ic { width: 42px; height:42px; background: var(--accent); color: var(--accent-ink); display:grid; place-items:center; border-radius: 50%; flex:none; }
.trust__ic svg { width: 20px; height:20px; }
.trust__txt { font-size: .82rem; font-weight: 500; color: var(--text-2); }
.trust__txt b { color: var(--text); }

/* ============================================================
   MARQUEE
   ============================================================ */
.marquee {
  background: var(--accent); color: var(--accent-ink);
  border-block: 1px solid var(--accent-2);
  overflow: hidden; white-space: nowrap; padding-block: 16px;
}
.marquee__track { display: inline-flex; will-change: transform; animation: marquee 32s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item {
  font-family: var(--ff-display); font-weight: 500; text-transform: uppercase;
  font-size: 1.05rem; letter-spacing: .04em; padding-inline: 26px;
  display: inline-flex; align-items: center; gap: 26px;
}
.marquee__item::after { content:"◆"; font-size: .7em; opacity:.6; }

/* ============================================================
   FEATURES (Precisión)
   ============================================================ */
.feat { display:grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.feat__col { min-width: 0; }
.feat__rule { height: 2px; margin: 26px 0 26px; position: relative;
  background: repeating-linear-gradient(90deg, var(--accent) 0 20px, transparent 20px 32px); }
.feat__rule::after { content:""; position:absolute; right:0; top:50%; width:9px; height:9px;
  border-top:2px solid var(--accent); border-right:2px solid var(--accent); transform: translateY(-50%) rotate(45deg); }
.feat__list { display:flex; flex-direction: column; }
.feat-item { padding: 22px 0; border-bottom: 1px solid var(--border); }
.feat-item:first-child { padding-top: 4px; }
.feat-item__t { font-family: var(--ff-display); font-weight:500; font-size: 1.3rem; letter-spacing:-.01em; margin-bottom: 8px; }
.feat-item p { color: var(--text-2); font-size: .97rem; }
.feat__collage { position: relative; display:grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 14px; height: clamp(430px, 42vw, 560px); }
.feat__ph { width:100%; height:100%; object-fit: cover; border: 1px solid var(--border); filter: grayscale(.12); transition: filter .6s var(--ease); }
.feat__collage:hover .feat__ph { filter: grayscale(0); }
.feat__ph--tall { grid-row: 1 / 3; }
.feat__badge { position:absolute; left: calc(50% - 58px); top: 50%; transform: translateY(-50%);
  background: var(--bg); border-radius: 50%; box-shadow: var(--shadow); }

/* ============================================================
   OFFER (Servicios accordion)
   ============================================================ */
.offer__grid { display:grid; grid-template-columns: 0.92fr 1.08fr; gap: clamp(32px,4vw,56px); align-items: start; }
.offer__intro { min-width: 0; }
.offer__photo { aspect-ratio: 16/11; overflow:hidden; background: var(--bg-3); margin-top: 34px; border: 1px solid var(--border); }
.offer__photo img { width:100%; height:100%; object-fit: cover; }

/* base accordion (FAQ) */
.acc { border-top: 1px solid var(--border); }
.acc__item { border-bottom: 1px solid var(--border); }
.acc__btn { width:100%; display:flex; align-items:center; gap: 18px; padding: 24px 4px; text-align:left; }
.acc__title { font-family: var(--ff-display); font-weight:500; text-transform: uppercase; letter-spacing: -.01em; font-size: 1.3rem; flex:1; transition: color .2s var(--ease); }
.acc__btn:hover .acc__title { color: var(--accent); }
.acc__sign { width: 26px; height:26px; position: relative; flex:none; }
.acc__sign::before, .acc__sign::after { content:""; position:absolute; background: var(--text); transition: transform .3s var(--ease), background .3s var(--ease); }
.acc__sign::before { top:50%; left:0; right:0; height:2px; transform: translateY(-50%); }
.acc__sign::after { left:50%; top:0; bottom:0; width:2px; transform: translateX(-50%); }
.acc__item.is-open .acc__sign::after { transform: translateX(-50%) scaleY(0); }
.acc__item.is-open .acc__sign::before { background: var(--accent); }
.acc__panel { overflow:hidden; max-height:0; transition: max-height .45s var(--ease); }
.acc__panel-inner { padding: 0 4px 26px 52px; color: var(--text-2); }

/* card accordion (Services) */
.acc--cards { border-top: none; display:flex; flex-direction:column; gap: 16px; }
.acc--cards .acc__item { border: 1px solid var(--border); background: var(--surface); transition: border-color .3s var(--ease); }
.acc--cards .acc__item.is-open { border-color: color-mix(in srgb, var(--accent) 45%, var(--border)); }
.acc--cards .acc__btn { padding: 22px 22px; gap: 14px; }
.acc--cards .acc__panel-inner { padding: 0 22px 24px 22px; display:grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items:center; }
.acc__media { aspect-ratio: 4/3; overflow:hidden; background: var(--bg-3); }
.acc__media img { width:100%; height:100%; object-fit: cover; }
.acc__arrow { width: 38px; height:38px; flex:none; border-radius:50%; background: var(--accent); color: var(--accent-ink); display:grid; place-items:center; transition: transform .3s var(--ease); }
.acc__arrow svg { width: 18px; height:18px; }
.acc--cards .acc__item.is-open .acc__arrow { transform: rotate(-90deg); }

/* ============================================================
   PROCESS
   ============================================================ */
.process__head { text-align:left; max-width: 820px; margin: 0 0 66px; }
.process__grid { display:grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.step { padding: 54px 26px 32px; border: 1px solid var(--border); position: relative; background: var(--surface); transition: background .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease); }
.step:hover { background: var(--bg-2); border-color: color-mix(in srgb, var(--accent) 40%, var(--border)); transform: translateY(-4px); }
.step__num { position:absolute; top:-20px; left:26px; width:52px; height:52px; display:grid; place-items:center; background: var(--accent); color: var(--accent-ink); font-family: var(--ff-display); font-weight:500; font-size: 1.2rem; line-height:1; }
.step__ic { width: 64px; height: 64px; display:grid; place-items:center; color: var(--accent); margin: 8px auto 22px; }
.step__ic svg { width: 34px; height: 34px; }
.step h3 { margin-bottom: 10px; }
.step p { color: var(--text-2); font-size: .94rem; }

/* ============================================================
   PROJECTS
   ============================================================ */
.projects__head { text-align: center; max-width: 860px; margin: 0 auto 46px; }
.projects__banner { aspect-ratio: 1190/560; overflow:hidden; background: var(--bg-3); margin-bottom: 48px; }
.projects__banner img { width:100%; height:100%; object-fit: cover; }
.proj-grid { display:grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.proj {
  position: relative; overflow:hidden; aspect-ratio: 4/5; background: var(--bg-3);
  border: 1px solid var(--border);
}
.proj img { width:100%; height:100%; object-fit: cover; filter: grayscale(.25); transition: transform .8s var(--ease), filter .8s var(--ease); }
.proj:hover img { transform: scale(1.06); filter: grayscale(0); }
/* smooth gradient scrim fused into the photo — keeps text legible without a box or drop-shadow */
.proj::after { content:""; position:absolute; left:0; right:0; bottom:0; height:72%; z-index:1; pointer-events:none;
  background: linear-gradient(to top,
    rgba(5,6,8,.94) 0%, rgba(5,6,8,.78) 18%, rgba(5,6,8,.5) 42%, rgba(5,6,8,.22) 64%, rgba(5,6,8,0) 100%); }
.proj__overlay {
  position:absolute; inset:auto 0 0 0; z-index:2; padding: 26px 22px 22px;
  color:#fff; transform: translateY(calc(100% - 96px)); transition: transform .45s var(--ease);
}
.proj:hover .proj__overlay { transform: translateY(0); }
.proj__loc { font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); font-weight:700; }
.proj__title { font-family: var(--ff-display); font-weight:500; text-transform:uppercase; font-size: 1.4rem; letter-spacing:-.01em; margin: 6px 0 12px; color:#fff; }
.proj__tags { display:flex; flex-wrap:wrap; gap: 8px; opacity:0; transition: opacity .4s var(--ease) .05s; }
.proj:hover .proj__tags { opacity:1; }
.proj__tag { font-size: .62rem; letter-spacing:.1em; text-transform:uppercase; border:1px solid rgba(255,255,255,.35); padding: 4px 9px; color:#fff; }

/* ============================================================
   GALLERY (Subestación Eléctrica)
   ============================================================ */
.gallery__head { display:grid; grid-template-columns: 1fr .8fr; gap: 32px; align-items: end; margin-bottom: 46px; }
.gallery__carousel { position: relative; }
.gallery__viewport { overflow-x: auto; overflow-y: hidden; scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch; scrollbar-width: none; -ms-overflow-style: none; }
.gallery__viewport::-webkit-scrollbar { height: 0; display: none; }
.gallery__track { display: flex; width: max-content; }
.gtile { flex: 0 0 auto; width: clamp(260px, 30vw, 430px); margin: 0 14px 0 0; overflow: hidden; aspect-ratio: 4/3;
  border: 1px solid var(--border); background: var(--bg-3); scroll-snap-align: start; cursor: zoom-in;
  -webkit-user-select: none; user-select: none; }
.gtile img { width:100%; height:100%; object-fit: cover; filter: grayscale(.14);
  transition: transform .7s var(--ease), filter .7s var(--ease); pointer-events: none; }
.gtile:hover img { transform: scale(1.06); filter: grayscale(0); }
@media (hover: none) { .gtile img { filter: grayscale(0); } }

/* prev / next controls */
.gallery__nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  background: var(--surface); color: var(--text); border: 1px solid var(--border); cursor: pointer;
  box-shadow: 0 6px 22px rgba(0,0,0,.14);
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .12s var(--ease); }
.gallery__nav svg { width: 22px; height: 22px; }
.gallery__nav:hover { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.gallery__nav:active { transform: translateY(-50%) scale(.93); }
.gallery__nav--prev { left: -10px; }
.gallery__nav--next { right: -10px; }

/* lightbox (click to open a photo) */
.lightbox { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center;
  padding: 4vw; background: rgba(8,8,8,.92); opacity: 0; visibility: hidden;
  transition: opacity .3s var(--ease), visibility .3s var(--ease); }
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox__img { max-width: 92vw; max-height: 86vh; object-fit: contain; background: #111;
  border: 1px solid rgba(255,255,255,.14); box-shadow: 0 30px 80px rgba(0,0,0,.5);
  transform: scale(.96); transition: transform .3s var(--ease); }
.lightbox.open .lightbox__img { transform: scale(1); }
.lightbox__btn { position: absolute; background: rgba(255,255,255,.1); color: #fff; border: 1px solid rgba(255,255,255,.25);
  width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  transition: background .2s var(--ease); }
.lightbox__btn:hover { background: rgba(255,255,255,.22); }
.lightbox__btn svg { width: 24px; height: 24px; }
.lightbox__close { top: 22px; right: 22px; }
.lightbox__nav--prev { left: 22px; top: 50%; transform: translateY(-50%); }
.lightbox__nav--next { right: 22px; top: 50%; transform: translateY(-50%); }
.lightbox__count { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,.8); font-size: .82rem; letter-spacing: .12em; }
body.lb-open { overflow: hidden; }
@media (max-width: 760px) {
  .gallery__nav { width: 44px; height: 44px; }
  .gallery__nav--prev { left: 6px; } .gallery__nav--next { right: 6px; }
  .lightbox__btn { width: 46px; height: 46px; }
  .lightbox__close { top: 12px; right: 12px; } .lightbox__nav--prev { left: 8px; } .lightbox__nav--next { right: 8px; }
}

/* ============================================================
   BROCHURE (download + online preview)
   ============================================================ */
.brochure { display: grid; grid-template-columns: 1.05fr 1fr; gap: 46px; align-items: center; }
.brochure__cover { position: relative; display: block; overflow: hidden; aspect-ratio: 16/9;
  border: 1px solid var(--border); background: var(--bg-3); box-shadow: 0 20px 50px rgba(0,0,0,.16);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.brochure__cover img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s var(--ease); }
.brochure__cover:hover { transform: translateY(-4px); box-shadow: 0 28px 62px rgba(0,0,0,.26); }
.brochure__cover:hover img { transform: scale(1.04); }
.brochure__badge { position: absolute; top: 14px; left: 14px; background: var(--accent); color: var(--accent-ink);
  font-size: .66rem; font-weight: 700; letter-spacing: .14em; padding: 5px 11px; }
.brochure__body { min-width: 0; }
.brochure__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }
@media (max-width: 860px) {
  .brochure { grid-template-columns: 1fr; gap: 30px; }
  .brochure__body { text-align: center; }
  .brochure__body .eyebrow { justify-content: center; }
  .brochure__actions { justify-content: center; }
}
@media (max-width: 620px) {
  .brochure__actions { flex-direction: column; }
  .brochure__actions .btn { width: 100%; justify-content: center; }
}

/* ============================================================
   TEAM
   ============================================================ */
.team__head { text-align:left; max-width: 840px; margin: 0 0 56px; }
.team__grid { display:grid; grid-template-columns: repeat(3, 1fr); gap: 26px; max-width: 1000px; margin-inline:auto; }
.member { border: 1px solid var(--border); background: var(--surface); padding: 34px 30px 30px; position: relative; overflow: hidden; transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease); }
.member::after { content:""; position:absolute; left:0; top:0; bottom:0; width:3px; background: var(--accent); transform: scaleY(0); transform-origin: top; transition: transform .45s var(--ease); }
.member:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--accent) 32%, var(--border)); }
.member:hover::after { transform: scaleY(1); }
.member__ic { width: 58px; height: 58px; display:grid; place-items:center; border-radius: 50%; background: color-mix(in srgb, var(--accent) 14%, var(--surface)); color: var(--accent); margin-bottom: 24px; transition: background .3s var(--ease), color .3s var(--ease); }
.member:hover .member__ic { background: var(--accent); color: var(--accent-ink); }
.member__ic svg { width: 26px; height: 26px; }
.member__name { font-family: var(--ff-display); font-weight:500; text-transform: uppercase; font-size: 1.35rem; letter-spacing:-.01em; }
.member__role { color: var(--accent); font-size: .72rem; letter-spacing:.14em; text-transform:uppercase; font-weight:600; margin-top: 6px; }
.member__phone { display:inline-flex; align-items:center; gap:10px; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--text-2); font-size: .95rem; font-weight:500; transition: color .2s var(--ease); }
.member__phone svg { width: 16px; height:16px; color: var(--accent); }
.member:hover .member__phone { color: var(--text); }
.member__phone:hover { color: var(--accent); }

/* ============================================================
   STATEMENT (repurposed testimonial)
   ============================================================ */
.statement { background: var(--accent); color: var(--accent-ink); }
.statement__grid { display:grid; grid-template-columns: .8fr 1.2fr; gap: 48px; align-items:center; }
.statement__big { font-family: var(--ff-display); font-weight:600; font-size: clamp(5.5rem,15vw,11rem); line-height:.9; letter-spacing:-.04em; }
.statement__big span { display:block; font-size: .95rem; font-family: var(--ff-body); letter-spacing:.18em; text-transform:uppercase; margin-top: 18px; font-weight:600; }
.statement__quote { font-family: var(--ff-display); font-weight:500; font-size: clamp(1.4rem,3vw,2.1rem); line-height:1.25; letter-spacing:-.01em; }
.statement__mark { font-size: 3rem; line-height:0; opacity:.5; }
.statement__by { margin-top: 24px; font-size: .8rem; letter-spacing:.14em; text-transform:uppercase; font-weight:700; display:flex; align-items:center; gap:12px; }
.statement__by::before { content:""; width: 30px; height:2px; background: var(--accent-ink); }

/* ============================================================
   FAQ
   ============================================================ */
.faq__grid { display:grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items:start; }
.faq__intro { position: sticky; top: 120px; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact__grid { display:grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items:start; }
.contact__info { display:flex; flex-direction:column; gap: 6px; }
.info-row { display:flex; gap: 18px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.info-row__ic { width: 46px; height:46px; flex:none; display:grid; place-items:center; border:1px solid var(--border); color: var(--accent); }
.info-row__ic svg { width: 20px; height:20px; }
.info-row__label { font-size: .7rem; letter-spacing:.16em; text-transform:uppercase; color: var(--muted); font-weight:600; }
.info-row__val { font-weight:500; font-size: 1.02rem; }
.info-row__val a { display:block; }
.info-row__val a:hover { color: var(--accent); }

.form { border: 1px solid var(--border); background: var(--surface); padding: clamp(24px, 4vw, 40px); }
.form__grid { display:grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display:flex; flex-direction:column; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: .72rem; letter-spacing:.12em; text-transform:uppercase; color: var(--muted); font-weight:600; }
.field input, .field select, .field textarea {
  background: var(--bg); border: 1px solid var(--border); padding: 14px 15px; border-radius: var(--radius);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--ring); }
.form .btn { width: 100%; justify-content:center; margin-top: 4px; }
.form__note { font-size: .78rem; color: var(--muted); margin-top: 12px; text-align:center; }

/* ============================================================
   ALLIES (repurposed blog)
   ============================================================ */
.allies__head { display:grid; grid-template-columns: 1fr auto; gap: 24px; align-items:end; margin-bottom: 44px; }
.allies__grid { display:grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.ally { border: 1px solid var(--border); background: var(--surface); padding: 28px 24px; display:flex; flex-direction:column; gap: 16px; transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease); }
.ally:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--accent) 40%, var(--border)); }
.ally__logo { width: 54px; height:54px; display:grid; place-items:center; background: var(--bg-3); color: var(--accent); font-family: var(--ff-display); font-weight:500; font-size: 1.4rem; }
.ally__name { font-family: var(--ff-display); font-weight:500; text-transform:uppercase; font-size: 1.15rem; letter-spacing:-.01em; line-height:1.1; }
.ally p { color: var(--text-2); font-size: .9rem; }
.ally__tag { margin-top:auto; font-size:.66rem; letter-spacing:.14em; text-transform:uppercase; color: var(--muted); font-weight:600; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--footer-bg); color: var(--footer-text); --logo-cut: var(--footer-bg); padding-top: clamp(60px, 8vw, 96px); }
.footer a { color: var(--footer-muted); transition: color .2s var(--ease); }
.footer a:hover { color: var(--accent); }
.footer__top { display:grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 60px; border-bottom: 1px solid var(--footer-border); }
.footer { --logo-word: var(--footer-text); --logo-bg: var(--footer-bg); }
.footer .brand__logo { height: 96px; }
.footer__brand p { color: var(--footer-muted); margin-top: 18px; max-width: 320px; font-size: .95rem; }
.footer__col h4 { font-size: .72rem; letter-spacing:.16em; text-transform:uppercase; color: var(--footer-text); margin-bottom: 20px; font-weight:600; }
.footer__col ul { list-style:none; padding:0; display:flex; flex-direction:column; gap: 12px; }
.footer__col li { font-size: .95rem; }
.footer__bottom { display:flex; align-items:center; justify-content: space-between; gap: 20px; padding-block: 26px; flex-wrap:wrap; }
.footer__bottom p { color: var(--footer-muted); font-size: .8rem; letter-spacing:.04em; }
.footer__bottom nav { display:flex; gap: 24px; }
.footer__bottom nav a { font-size: .8rem; letter-spacing:.06em; text-transform:uppercase; }

/* ============================================================
   Scroll reveal
   ============================================================ */
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .75s var(--ease-out), transform .75s var(--ease-out); }
[data-reveal].in { opacity: 1; transform: none; }
[data-reveal][data-delay="1"] { transition-delay: .09s; }
[data-reveal][data-delay="2"] { transition-delay: .18s; }
[data-reveal][data-delay="3"] { transition-delay: .27s; }
[data-reveal][data-delay="4"] { transition-delay: .36s; }

/* Image "settle zoom" on reveal (safe: images stay visible, only scale) */
.projects__banner, .offer__photo, .hero__band .media { overflow: hidden; }
.projects__banner img, .offer__photo img { transform: scale(1.1); transition: transform 1.1s var(--ease-out); }
.projects__banner.in img, .offer__photo.in img { transform: scale(1); }

/* Hero photo parallax target (JS-driven) */
.hero__band .media img { transform: scale(1.12); will-change: transform; }

@media (prefers-reduced-motion: reduce) {
  .projects__banner img, .offer__photo img, .hero__band .media img { transform: none !important; }
  .gallery__viewport { scroll-behavior: auto; }
}

/* ============================================================
   Keyframes
   ============================================================ */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1080px) {
  .hero__grid { grid-template-columns: 1fr; gap: 30px; }
  .hero__aside { border-top: 1px solid var(--border); padding-top: 26px; }
  .proj-grid { grid-template-columns: repeat(2, 1fr); }
  .allies__grid { grid-template-columns: repeat(2, 1fr); }
  .process__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  /* nav becomes logo + hamburger only (toggles move into drawer, like the reference) */
  .nav__links, .nav__cta, #themeToggle, #langToggle { display: none; }
  .nav__burger { display: inline-flex; }
  .offer__grid, .faq__grid, .contact__grid, .statement__grid, .feat, .allies__head, .gallery__head { grid-template-columns: 1fr; }
  .feat__collage { height: auto; grid-template-rows: 210px 210px; margin-top: 8px; }
  .feat__ph--tall { grid-row: 1 / 3; }
  .faq__intro { position: static; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}
/* ---- Mobile: center content like the reference mobile ---- */
@media (max-width: 760px) {
  .eyebrow { justify-content: center; }
  .hero__grid, .feat__col, .process__head, .team__head, .projects__head,
  .offer__intro, .faq__intro, .allies__head, .statement__grid, .gallery__head { text-align: center; }
  .hero__aside { border-top: none; padding-top: 4px; }
  .hero__desc { border-left: none; padding-left: 0; }
  .hero__badge-wrap { justify-content: center; }
  .hero__stats { text-align: center; }
  .feat__col { display: flex; flex-direction: column; align-items: center; }
  .feat__rule { width: 200px; }
  .feat-item { text-align: center; }
  .feat__list { width: 100%; }
  .offer__intro { display: flex; flex-direction: column; align-items: center; }
  .offer__photo { width: 100%; }
  .step { text-align: center; }
  .member { text-align: center; }
  .member__ic { margin-inline: auto; }
  .member__phone { justify-content: center; }
  .lead { margin-inline: auto; }
  .allies__head .lead { margin-inline: auto; }
  .statement__by { justify-content: center; }
  .statement__mark { text-align: center; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  /* bigger, bolder hero title on mobile */
  .hero__title { font-size: clamp(2.8rem, 14.5vw, 4.4rem); line-height: .95; }
  .proj-grid, .allies__grid, .team__grid, .process__grid, .form__grid { grid-template-columns: 1fr; }
  .acc--cards .acc__panel-inner { grid-template-columns: 1fr; }
  .hero__stats { grid-template-columns: 1fr; gap: 26px; text-align: center; margin-top: 44px; }
  .hero__stats .stat { display: block; }
  .footer__top { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; align-items:flex-start; }
  .nav__inner { gap: 12px; }
  /* hero CTAs stack full-width */
  .hero__cta { flex-direction: column; align-items: stretch; }
  .hero__cta .btn { width: 100%; justify-content: center; }
  /* nav = logo + burger only, so the logo can be larger */
  .brand__logo { height: 48px; }
  .nav { padding-block: 14px; }
}
@media (max-width: 340px) {
  .hero__title { font-size: 2.6rem; }
}
