/* ==========================================================================
   Portal – Porți decupate laser
   Design system „Oțel și precizie”
   1. Tokens   2. Themes   3. Base   4. Layout   5. Components   6. Sections
   7. Overlays 8. Motion   9. Responsive
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  /* Brand palette */
  --graphite-950: #0b0c0d;
  --graphite-900: #111214;
  --graphite-850: #16181a;
  --graphite-800: #1c1f22;
  --graphite-700: #26292d;
  --steel-400: #8c9196;
  --paper-50: #f4f2ee;
  --paper-100: #ebe8e2;
  --spark: #e8963a;
  --spark-hi: #f2aa58;
  --spark-ink: #1b1206;
  --spark-glow: rgba(232, 150, 58, .28);
  --accent-on-dark: #f0a24a;
  --accent-on-light: #985208;
  --accent-soft: color-mix(in srgb, var(--spark) 14%, transparent);
  --shade: 11 12 13;      /* rgb of graphite-950, for overlays */
  --shade-bg: 17 18 20;   /* rgb of graphite-900, for translucent bars */
  --wa: #25d366;
  --danger: #ff8f82;

  /* Typography */
  --font: "Archivo", "Helvetica Neue", Arial, system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --fs-display: clamp(2.375rem, 1.35rem + 3.9vw, 4.5rem);
  --fs-h2: clamp(2rem, 1.45rem + 2.1vw, 3.25rem);
  --fs-h2-sm: clamp(1.625rem, 1.3rem + 1.3vw, 2.25rem);
  --fs-h3: clamp(1.125rem, 1.05rem + .3vw, 1.3125rem);
  --fs-lead: clamp(1.0625rem, 1rem + .3vw, 1.25rem);
  --fs-body: 1rem;
  --fs-small: .875rem;
  --fs-label: .75rem;
  --lh-tight: 1.04;
  --lh-head: 1.12;
  --lh-body: 1.6;

  /* Spacing (4px base) */
  --s-1: 4px;  --s-2: 8px;  --s-3: 12px; --s-4: 16px; --s-5: 24px;
  --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px; --s-10: 128px;
  --section-y: clamp(72px, 9vw, 128px);
  --gutter: 16px;

  /* Shape */
  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 12px;

  /* Elevation */
  --sh-1: 0 1px 2px rgba(0, 0, 0, .12), 0 1px 1px rgba(0, 0, 0, .06);
  --sh-2: 0 18px 40px -18px rgba(0, 0, 0, .45);
  --sh-3: 0 30px 80px -30px rgba(0, 0, 0, .7);

  /* Motion */
  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --t-fast: 160ms;
  --t: 260ms;
  --t-slow: 600ms;

  --header-h: 64px;

  /* Fine metal grain for dark surfaces */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 .075 0 0 0 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
@media (min-width: 700px) { :root { --gutter: 24px; } }
@media (min-width: 1100px) { :root { --gutter: 40px; --header-h: 72px; } }

/* ---------- 1b. Palettes (html[data-palette]) ---------- */
[data-palette="alama"], [data-palette="corten"] {
  --graphite-950: #121518; --graphite-900: #181c1f; --graphite-850: #1e2327; --graphite-800: #252b30; --graphite-700: #30373d;
  --shade: 18 21 24; --shade-bg: 24 28 31;
  --paper-50: #f4f1eb; --paper-100: #e9e4da;
}
[data-palette="alama"] {
  --spark: #c9a15d; --spark-hi: #d8b676; --spark-ink: #1c1408; --spark-glow: rgba(201, 161, 93, .3);
  --accent-on-dark: #d6b373; --accent-on-light: #7d5e1e;
}
[data-palette="corten"] {
  --paper-50: #f4f0eb; --paper-100: #e9e2d9;
  --spark: #b0532d; --spark-hi: #c2643c; --spark-ink: #ffffff; --spark-glow: rgba(176, 83, 45, .32);
  --accent-on-dark: #e3906a; --accent-on-light: #97421f;
}
[data-palette="bleumarin"] {
  --graphite-950: #0b1220; --graphite-900: #0f182a; --graphite-850: #142036; --graphite-800: #1a2943; --graphite-700: #243556;
  --shade: 11 18 32; --shade-bg: 15 24 42;
  --paper-50: #f1f4f8; --paper-100: #e3e9f1;
  --spark: #5aa9e6; --spark-hi: #7bbdf0; --spark-ink: #06121f; --spark-glow: rgba(90, 169, 230, .3);
  --accent-on-dark: #7dbdee; --accent-on-light: #1d5c97;
}
[data-palette="verde"] {
  --graphite-950: #0e1512; --graphite-900: #131b17; --graphite-850: #18221d; --graphite-800: #1f2b25; --graphite-700: #2a3831;
  --shade: 14 21 18; --shade-bg: 19 27 23;
  --paper-50: #f2f0e8; --paper-100: #e6e2d5;
  --spark: #c4a062; --spark-hi: #d5b57c; --spark-ink: #1a1408; --spark-glow: rgba(196, 160, 98, .3);
  --accent-on-dark: #d2b077; --accent-on-light: #775b20;
}
[data-palette="monocrom"] {
  --graphite-950: #0e0f10; --graphite-900: #141516; --graphite-850: #1a1b1d; --graphite-800: #212325; --graphite-700: #2c2f32;
  --shade: 14 15 16; --shade-bg: 20 21 22;
  --paper-50: #f3f3f2; --paper-100: #e6e6e4;
  --spark: #ecebe7; --spark-hi: #ffffff; --spark-ink: #141516; --spark-glow: rgba(236, 235, 231, .25);
  --accent-on-dark: #c9ccd0; --accent-on-light: #3a3d42;
}

[data-palette="teal"] {
  --graphite-950: #0a1a1c; --graphite-900: #0e2124; --graphite-850: #13292d; --graphite-800: #193338; --graphite-700: #224147;
  --shade: 10 26 28; --shade-bg: 14 33 36;
  --paper-50: #f3eee6; --paper-100: #e8e0d3;
  --spark: #d8a06a; --spark-hi: #e4b483; --spark-ink: #1a1108; --spark-glow: rgba(216, 160, 106, .3);
  --accent-on-dark: #e2b07e; --accent-on-light: #8a5524;
}

[data-palette="mood"] {
  /* "mood mode": layered violet-charcoal surfaces instead of flat black, one electric accent */
  --graphite-950: #15131e; --graphite-900: #1c1a27; --graphite-850: #24212f; --graphite-800: #2d2a3a; --graphite-700: #3a3649;
  --shade: 21 19 30; --shade-bg: 28 26 39;
  --paper-50: #f3f2f7; --paper-100: #e6e4ee;
  --spark: #00f5d4; --spark-hi: #5cf8e2; --spark-ink: #04221d; --spark-glow: rgba(0, 245, 212, .25);
  --accent-on-dark: #5cf3dd; --accent-on-light: #00695c;
}

/* ---------- 2. Themes ---------- */
.t-dark, :root {
  --bg: var(--graphite-900);
  --surface: var(--graphite-850);
  --surface-2: var(--graphite-800);
  --surface-3: var(--graphite-700);
  --text: #f2f1ee;
  --text-muted: #a8acb1;
  --text-faint: #8a8e94;
  --line: rgba(255, 255, 255, .08);
  --line-strong: rgba(255, 255, 255, .16);
  --accent-text: var(--accent-on-dark);
  --accent-line: var(--spark);
  --field: var(--graphite-950);
  color-scheme: dark;
}
.t-light {
  --bg: var(--paper-50);
  --surface: #ffffff;
  --surface-2: var(--paper-100);
  --surface-3: #ddd9d1;
  --text: #141518;
  --text-muted: #53565c;
  --text-faint: #64676d;
  --line: rgba(20, 21, 24, .1);
  --line-strong: rgba(20, 21, 24, .2);
  --accent-text: var(--accent-on-light);
  --accent-line: var(--accent-on-light);
  --field: #ffffff;
  --sh-2: 0 18px 40px -22px rgba(30, 24, 14, .28);
  color-scheme: light;
}
.t-dark, .t-light { background: var(--bg); color: var(--text); }
.t-dark { background-image: var(--grain); }

/* Palette 7 „luminos”: light-dominant site (warm white, 2026), graphite only for the CTA,
   the cinematic project band and the footer. Declared after the themes so it can override them. */
[data-palette="luminos"] {
  --graphite-950: #e9e6e0; --graphite-900: #f0eee9; --graphite-850: #ffffff; --graphite-800: #e8e5df; --graphite-700: #dcd8d0;
  --shade: 18 21 24; --shade-bg: 240 238 233;
  --paper-50: #e7e3db; --paper-100: #ddd8ce;
  --spark: #23282c; --spark-hi: #383e42; --spark-ink: #ffffff; --spark-glow: rgba(35, 40, 44, .22);
  --accent-on-dark: #7d5a1c; --accent-on-light: #7d5a1c;
}
[data-palette="luminos"],
[data-palette="luminos"] .t-dark:not(.site-footer):not(.feature) {
  --bg: #f0eee9;
  --surface: #ffffff;
  --surface-2: #e8e5df;
  --surface-3: #dcd8d0;
  --text: #1b1d20;
  --text-muted: #53565c;
  --text-faint: #5c5f65;
  --line: rgba(20, 21, 24, .1);
  --line-strong: rgba(20, 21, 24, .2);
  --accent-text: #7d5a1c;
  --accent-line: #a87d3a;
  --field: #ffffff;
  --sh-2: 0 18px 40px -22px rgba(30, 24, 14, .28);
  --sh-3: 0 30px 70px -34px rgba(30, 24, 14, .35);
  color-scheme: light;
}
[data-palette="luminos"] .t-dark:not(.site-footer):not(.feature) { background-image: none; }
[data-palette="luminos"] .site-footer,
[data-palette="luminos"] .feature {
  --graphite-950: #121518; --graphite-900: #181c1f; --graphite-850: #1e2327; --graphite-800: #252b30; --graphite-700: #30373d;
  --spark: #c9a15d; --spark-hi: #d8b676; --spark-ink: #1c1408; --accent-text: #d6b373; --accent-line: #c9a15d;
  --bg: #181c1f; --surface: #1e2327; --surface-2: #252b30;
}
[data-palette="luminos"] .brand__mark { background: #1d2124; border-radius: 4px; padding: 3px; box-sizing: content-box; }

/* Palette „cald” (warm minimalism 2026): bone, sand, charcoal — light-dominant like „luminos” */
[data-palette="cald"] {
  --graphite-950: #e9e2d6; --graphite-900: #f2ede4; --graphite-850: #fbf8f3; --graphite-800: #e8e0d2; --graphite-700: #dbd1c0;
  --shade: 46 46 46; --shade-bg: 242 237 228;
  --paper-50: #e8e0d2; --paper-100: #dcd2c1;
  --spark: #2e2e2e; --spark-hi: #454545; --spark-ink: #f2ede4; --spark-glow: rgba(200, 180, 154, .45);
  --accent-on-dark: #6c5536; --accent-on-light: #6c5536;
}
[data-palette="cald"],
[data-palette="cald"] .t-dark:not(.site-footer):not(.feature) {
  --bg: #f2ede4;
  --surface: #fbf8f3;
  --surface-2: #e8e0d2;
  --surface-3: #dbd1c0;
  --text: #2e2e2e;
  --text-muted: #5a5753;
  --text-faint: #615e59;
  --line: rgba(46, 46, 46, .1);
  --line-strong: rgba(46, 46, 46, .2);
  --accent-text: #6c5536;
  --accent-line: #a8916f;
  --field: #fbf8f3;
  --sh-2: 0 18px 40px -22px rgba(60, 45, 25, .25);
  --sh-3: 0 30px 70px -34px rgba(60, 45, 25, .32);
  color-scheme: light;
}
[data-palette="cald"] .t-dark:not(.site-footer):not(.feature) { background-image: none; }
[data-palette="cald"] .site-footer,
[data-palette="cald"] .feature {
  --graphite-950: #232323; --graphite-900: #2e2e2e; --graphite-850: #363636; --graphite-800: #3f3f3f; --graphite-700: #4a4a4a;
  --spark: #c8b49a; --spark-hi: #d6c4ab; --spark-ink: #2e2e2e;
  --accent-text: #c8b49a; --accent-line: #c8b49a;
  --bg: #2e2e2e; --surface: #363636; --surface-2: #3f3f3f;
}
[data-palette="cald"] .brand__mark { background: #2e2e2e; border-radius: 4px; padding: 3px; box-sizing: content-box; }

/* ---------- 3. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
@media (min-width: 900px) { body { font-size: 1.0625rem; } }
body.is-locked { overflow: hidden; }

img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
button { font: inherit; color: inherit; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
[role="list"] { list-style: none; }
::selection { background: var(--spark); color: var(--spark-ink); }

h1, h2, h3 {
  margin: 0;
  font-weight: 680;
  font-stretch: 85%;
  line-height: var(--lh-head);
  letter-spacing: -.015em;
  text-wrap: balance;
}
.display { font-size: var(--fs-display); line-height: var(--lh-tight); letter-spacing: -.025em; font-weight: 700; font-stretch: 80%; }
h2 { font-size: var(--fs-h2); }
.h2-sm { font-size: var(--fs-h2-sm); }
h3 { font-size: var(--fs-h3); font-stretch: 92%; letter-spacing: -.005em; }
.lead { font-size: var(--fs-lead); line-height: 1.55; color: var(--text-muted); text-wrap: pretty; }

.mono {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  line-height: 1.3;
}

.label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 var(--s-4);
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent-text);
}
.label::before,
.label__dot {
  content: "";
  width: 7px;
  height: 7px;
  background: var(--accent-line);
  flex: none;
}
.label:has(.label__dot)::before { display: none; }
.label__dot { box-shadow: 0 0 0 4px var(--spark-glow); }

.icon {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.skip-link {
  position: absolute; left: 12px; top: -100px; z-index: 300;
  padding: 12px 16px; border-radius: var(--r-sm);
  background: var(--spark); color: var(--spark-ink); font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; }

:focus-visible { outline: 2px solid var(--spark); outline-offset: 3px; }
:focus:not(:focus-visible) { outline: none; }

/* ---------- 4. Layout ---------- */
.container { width: min(1280px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.section { padding-block: var(--section-y); position: relative; }

.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head h2 { max-width: 28ch; }
.section-head__intro { margin: var(--s-4) 0 0; color: var(--text-muted); font-size: var(--fs-lead); line-height: 1.55; max-width: 56ch; }
.section-head--split {
  max-width: none;
  display: grid;
  gap: var(--s-4) var(--s-7);
  align-items: end;
}
@media (min-width: 900px) {
  .section-head--split { grid-template-columns: 1.4fr 1fr; }
  .section-head--split .section-head__intro { margin: 0; justify-self: end; max-width: 46ch; }
}
.section-head--sub { margin-bottom: var(--s-6); }

/* Cut line: a fine spark line drawn under section heads on reveal */
.section-head::after {
  content: "";
  display: block;
  width: 56px;
  height: 2px;
  margin-top: var(--s-5);
  background: var(--accent-line);
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 700ms var(--ease) 200ms;
}
.section-head--split::after { grid-column: 1 / -1; margin-top: 0; }
.section-head.is-visible::after, .no-js .section-head::after { transform: scaleX(1); }

.split { display: grid; gap: clamp(36px, 6vw, 80px); align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1.08fr 1fr; } }

.btn-row { display: flex; flex-wrap: wrap; gap: var(--s-3); }

/* ---------- 5. Components ---------- */

/* Buttons: primary / secondary / ghost; sizes sm / md / lg */
.btn {
  --btn-h: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: var(--btn-h);
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  font-family: var(--font);
  font-size: .9375rem;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: .005em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
  transition: background-color var(--t-fast), color var(--t-fast), border-color var(--t-fast), transform var(--t-fast) var(--ease), box-shadow var(--t-fast);
}
.btn:active { transform: translateY(1px); }
.btn .icon--arrow { transition: transform var(--t) var(--ease); }
.btn:hover .icon--arrow { transform: translateX(3px); }
.btn--sm { --btn-h: 40px; padding: 0 16px; font-size: .875rem; }
.btn--lg { --btn-h: 56px; padding: 0 28px; font-size: 1rem; }
.btn--block { width: 100%; }

.btn--primary { background: var(--spark); color: var(--spark-ink); }
.btn--primary:hover { background: var(--spark-hi); }
.btn--primary:focus-visible { box-shadow: 0 0 0 5px var(--spark-glow); outline-offset: 2px; }

.btn--secondary { background: var(--surface-2); color: var(--text); border-color: var(--line-strong); }
.btn--secondary:hover { background: var(--surface-3); border-color: var(--text-faint); }

.btn--ghost { background: transparent; color: var(--text); padding: 0 14px; }
.btn--ghost:hover { background: var(--line); }

.icon--wa { color: var(--wa); }

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  background: var(--surface-2);
  color: var(--text);
  cursor: pointer;
  text-decoration: none;
  transition: background-color var(--t-fast), border-color var(--t-fast), color var(--t-fast);
}
.icon-btn:hover { background: var(--surface-3); }
.icon-btn--overlay { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .14); color: #fff; }
.icon-btn--overlay:hover { background: var(--spark); border-color: var(--spark); color: var(--spark-ink); }

/* Chips (filters) */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  background: transparent;
  color: var(--text);
  font-size: .875rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}
.chip:hover { border-color: var(--text-faint); }
.chip__count { font-family: var(--font-mono); font-size: .6875rem; color: var(--text-faint); }
.chip.is-active { background: var(--text); border-color: var(--text); color: var(--bg); }
.chip.is-active .chip__count { color: inherit; opacity: .6; }

/* Tag (static) */
.coverage__list { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.coverage__list li {
  padding: 6px 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  font-size: .875rem;
  font-weight: 500;
}

/* Media frame */
.media {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: var(--r-lg);
  background: var(--graphite-950);
  box-shadow: var(--sh-2);
}
.media > img, .media > video { width: 100%; height: 100%; object-fit: cover; }
.media--video > video { aspect-ratio: 16 / 9; }
.media__cap {
  position: absolute;
  left: var(--s-3);
  bottom: var(--s-3);
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-width: calc(100% - 80px);
  padding: 10px 14px;
  border-radius: var(--r-sm);
  background: rgb(var(--shade) / .74);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #f2f1ee;
  font-size: .875rem;
  font-weight: 600;
}
.media__cap .mono { color: #c2c5c9; font-size: .6875rem; }
.media__toggle {
  position: absolute;
  right: var(--s-3);
  bottom: var(--s-3);
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: var(--r-sm);
  background: rgb(var(--shade) / .74);
  backdrop-filter: blur(8px);
  color: #fff;
  cursor: pointer;
  transition: background-color var(--t-fast);
}
.media__toggle:hover { background: var(--spark); color: var(--spark-ink); }
.media__toggle .icon { width: 18px; height: 18px; }
.media__toggle .i-play-fill { fill: currentColor; stroke: none; }

/* Spinner (loading state) */
.spinner {
  width: 28px;
  height: 28px;
  border: 2px solid rgba(255, 255, 255, .15);
  border-top-color: var(--spark);
  border-radius: 50%;
  animation: spin 800ms linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- 6. Sections ---------- */

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgb(var(--shade-bg) / .82);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t), background-color var(--t);
}
.site-header.is-scrolled { border-bottom-color: var(--line); background: rgb(var(--shade-bg) / .92); }
.site-header__bar { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: var(--s-5); }

.brand { display: inline-grid; justify-content: start; grid-template-columns: auto auto; grid-template-rows: auto auto; column-gap: 12px; align-items: center; text-decoration: none; }
.brand__mark { grid-row: 1 / span 2; width: 26px; height: auto; }
.brand__word { font-size: 1.125rem; font-weight: 650; font-stretch: 100%; letter-spacing: .2em; text-transform: uppercase; line-height: 1; }
.brand__sub { font-size: .6875rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--text-muted); line-height: 1; margin-top: 5px; }

.primary-nav { display: none; }
.primary-nav ul { display: flex; gap: var(--s-1); list-style: none; }
.primary-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  color: var(--text-muted);
  font-size: .9375rem;
  font-weight: 500;
  text-decoration: none;
  transition: color var(--t-fast);
}
.primary-nav a::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: 6px;
  height: 2px;
  background: var(--spark);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t) var(--ease);
}
.primary-nav a:hover { color: var(--text); }
.primary-nav a[aria-current="true"] { color: var(--text); }
.primary-nav a[aria-current="true"]::after { transform: scaleX(1); }

.site-header__actions { display: flex; align-items: center; gap: var(--s-2); }
.header-phone {
  display: none;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 10px;
  font-size: .9375rem;
  font-weight: 600;
  text-decoration: none;
  font-variant-numeric: tabular-nums;
  transition: color var(--t-fast);
}
.header-phone .icon { width: 18px; height: 18px; color: var(--accent-text); }
.header-phone:hover { color: var(--accent-text); }
.header-cta { display: none; }
.menu-toggle .icon--close { display: none; }
.menu-toggle[aria-expanded="true"] .icon--open { display: none; }
.menu-toggle[aria-expanded="true"] .icon--close { display: block; }

/* Mobile menu sheet */
.mobile-menu {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  z-index: 90;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--s-6);
  padding: var(--s-4) var(--gutter) calc(var(--s-5) + env(safe-area-inset-bottom));
  background: var(--bg);
  overflow-y: auto;
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  transition: opacity var(--t) var(--ease), transform var(--t) var(--ease);
}
.mobile-menu.is-open { opacity: 1; transform: none; pointer-events: auto; }
.mobile-menu__list { list-style: none; }
.mobile-menu__list a {
  display: flex;
  align-items: baseline;
  gap: var(--s-4);
  min-height: 60px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 1.75rem;
  font-weight: 650;
  font-stretch: 85%;
  letter-spacing: -.01em;
  text-decoration: none;
}
.mobile-menu__list .mono { color: var(--accent-text); font-size: .75rem; min-width: 22px; }
.mobile-menu__foot { display: grid; gap: var(--s-3); }
.mobile-menu__note { margin: var(--s-2) 0 0; text-align: center; font-size: .875rem; color: var(--text-muted); }

/* Hero */
.hero { position: relative; overflow: hidden; isolation: isolate; padding-block: var(--s-6) var(--s-8); }
.hero::before {
  /* lattice motif from the logo, faded in behind the media */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    repeating-linear-gradient(45deg, rgba(255, 255, 255, .04) 0 1px, transparent 1px 22px),
    repeating-linear-gradient(-45deg, rgba(255, 255, 255, .04) 0 1px, transparent 1px 22px);
  mask-image: radial-gradient(50% 60% at 50% 50%, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(50% 60% at 50% 50%, #000 0%, transparent 75%);
}
.hero__grid { display: grid; gap: var(--s-6); align-items: center; }
.hero__copy {
  position: relative;
  z-index: 1;
  /* --gate-gap = free width between the open gate leaves (set by main.js) */
  width: min(100%, 880px, var(--gate-gap, 880px));
  margin-inline: auto;
  text-align: center;
  container-type: inline-size;
}
.hero__copy .label { margin-bottom: var(--s-5); }
.hero h1 { max-width: 15ch; margin-inline: auto; font-size: clamp(1.5rem, 10.2cqi, 4.5rem); }
.hero__copy .label { font-size: clamp(.5625rem, 2.5cqi, .75rem); letter-spacing: .06em; }
.hero__lead { margin: var(--s-5) auto 0; max-width: 50ch; font-size: clamp(.875rem, 4.3cqi, 1.25rem); }
.hero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-3); margin-top: var(--s-6); }
.hero__proof {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--s-3) var(--s-5);
  margin-top: var(--s-6);
  list-style: none;
  font-size: var(--fs-small);
  color: var(--text-muted);
}
.hero__proof li { display: inline-flex; align-items: center; gap: 8px; font-size: clamp(.75rem, 3.6cqi, .9375rem); }
.hero__proof .icon { width: 16px; height: 16px; color: var(--accent-text); stroke-width: 2.25; }

.js .hero__in { animation: heroIn 800ms var(--ease) both; animation-delay: calc(var(--d, 0) * 110ms + 1000ms); }
@keyframes heroIn { from { opacity: 0; transform: translateY(14px); } }


/* Services bento */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: 176px;
  gap: var(--s-3);
}
.svc--feature { grid-column: span 2; grid-row: span 2; }
.svc--wide { grid-column: span 2; }
.svc__link {
  position: relative;
  display: block;
  height: 100%;
  overflow: hidden;
  border-radius: var(--r-md);
  background: var(--graphite-800);
  color: #f6f5f2;
  text-decoration: none;
  box-shadow: var(--sh-1);
  isolation: isolate;
}
.svc__link img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  transition: transform 900ms var(--ease);
}
.svc__link::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top, rgb(var(--shade) / .9) 0%, rgb(var(--shade) / .5) 42%, rgb(var(--shade) / .05) 75%);
  transition: background-color var(--t);
}
.svc__body {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: var(--s-4);
}
.svc__meta { color: rgba(255, 255, 255, .72); font-size: .6875rem; }
.svc__title { font-size: 1.0625rem; font-weight: 650; font-stretch: 88%; line-height: 1.15; letter-spacing: -.005em; }
.svc__text { display: none; font-size: .9375rem; line-height: 1.45; color: rgba(255, 255, 255, .8); max-width: 42ch; }
.svc__arrow {
  position: absolute;
  top: var(--s-3);
  right: var(--s-3);
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, .14);
  backdrop-filter: blur(6px);
  transition: background-color var(--t-fast), color var(--t-fast);
}
.svc__arrow .icon { width: 18px; height: 18px; transition: transform var(--t) var(--ease); }
.svc__link:hover img { transform: scale(1.045); }
.svc__link:hover .svc__arrow { background: var(--spark); color: var(--spark-ink); }
.svc__link:hover .svc__arrow .icon { transform: translate(2px, -2px); }
.svc--feature .svc__title { font-size: 1.5rem; }

/* Gallery */
.filters {
  display: flex;
  gap: var(--s-2);
  margin-bottom: var(--s-5);
  overflow-x: auto;
  scrollbar-width: none;
  margin-inline: calc(-1 * var(--gutter));
  padding-inline: var(--gutter);
  scroll-padding-inline: var(--gutter);
  mask-image: linear-gradient(90deg, transparent 0, #000 var(--gutter), #000 calc(100% - 32px), transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 var(--gutter), #000 calc(100% - 32px), transparent);
}
.filters::-webkit-scrollbar { display: none; }

.gallery-wrap { container-type: inline-size; }
.gallery {
  --cols: 2;
  --gap: 8px;
  display: grid;
  grid-template-columns: repeat(var(--cols), minmax(0, 1fr));
  grid-auto-rows: 160px;
  grid-auto-rows: calc((100cqi - (var(--cols) - 1) * var(--gap)) / var(--cols) * .75);
  grid-auto-flow: dense;
  gap: var(--gap);
  list-style: none;
}
@container (min-width: 600px) { .gallery { --cols: 3; --gap: 12px; } }
@container (min-width: 980px) { .gallery { --cols: 4; --gap: 14px; } }
.g-item.is-tall { grid-row: span 2; }
.g-item.is-wide { grid-column: span 2; }

.g-tile {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--surface-2);
  cursor: zoom-in;
}
.g-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--ease), opacity var(--t); }
.g-tile img[data-loading] { opacity: 0; }
.g-tile__cap {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 36px 14px 12px;
  background: linear-gradient(transparent, rgb(var(--shade) / .85));
  color: #f2f1ee;
  font-size: .875rem;
  font-weight: 500;
  text-align: left;
  line-height: 1.35;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity var(--t), transform var(--t) var(--ease);
}
.g-tile:hover img { transform: scale(1.035); }
.g-tile:hover .g-tile__cap, .g-tile:focus-visible .g-tile__cap { opacity: 1; transform: none; }
.g-tile:focus-visible { outline-offset: 2px; }
.g-item.is-new { animation: tileIn 460ms var(--ease) both; animation-delay: calc(var(--i, 0) * 30ms); }
@keyframes tileIn { from { opacity: 0; transform: translateY(10px); } }

.gallery-foot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s-3);
  margin-top: var(--s-6);
}
.gallery-status { margin: 0; color: var(--text-faint); }

/* Videos */
.videos-block { margin-top: clamp(64px, 8vw, 112px); padding-top: clamp(48px, 6vw, 72px); border-top: 1px solid var(--line); }
.video-grid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 78%;
  gap: var(--s-3);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  margin-inline: calc(-1 * var(--gutter));
  padding-inline: var(--gutter);
  scroll-padding-inline: var(--gutter);
}
.video-grid::-webkit-scrollbar { display: none; }
.video-grid > li { scroll-snap-align: start; }
.vcard {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  padding: 0;
  border: 0;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--graphite-950);
  color: #f2f1ee;
  text-align: left;
  cursor: pointer;
  isolation: isolate;
}
.vcard img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 800ms var(--ease); }
.vcard::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgb(var(--shade) / .85), rgb(var(--shade) / .1) 60%); }
.vcard__play {
  position: absolute;
  top: 50%; left: 50%;
  width: 56px; height: 56px;
  margin: -28px 0 0 -28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, .92);
  color: var(--graphite-900);
  box-shadow: 0 10px 30px -8px rgba(0, 0, 0, .6);
  transition: transform var(--t) var(--ease), background-color var(--t-fast);
}
.vcard__play .icon { width: 22px; height: 22px; fill: currentColor; stroke: none; margin-left: 3px; }
.vcard__meta { position: absolute; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; gap: 4px; padding: var(--s-4); }
.vcard__meta .mono { color: rgba(255, 255, 255, .7); font-size: .6875rem; }
.vcard__title { font-size: 1rem; font-weight: 600; line-height: 1.3; }
.vcard:hover img { transform: scale(1.04); }
.vcard:hover .vcard__play { transform: scale(1.08); background: var(--spark); }

/* Process */
.steps { display: grid; gap: var(--s-6) var(--s-5); list-style: none; counter-reset: step; }
.step { position: relative; padding-top: var(--s-5); border-top: 1px solid var(--line-strong); }
.step::before {
  content: "";
  position: absolute;
  left: 0; top: -1px;
  width: 100%; height: 2px;
  background: var(--accent-line);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 900ms var(--ease) calc(var(--i, 0) * 120ms + 150ms);
}
.step.is-visible::before { transform: scaleX(.18); }
.step__head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: var(--s-5); }
.step__num {
  font-size: clamp(2.75rem, 2.2rem + 1.6vw, 3.75rem);
  font-weight: 500;
  font-stretch: 75%;
  line-height: .85;
  letter-spacing: -.03em;
  color: var(--text-faint);
  font-variant-numeric: tabular-nums;
}
.step__head .icon { width: 24px; height: 24px; color: var(--text-faint); stroke-width: 1.5; }
.step h3 { margin-bottom: var(--s-2); }
.step p { margin: 0; color: var(--text-muted); font-size: .9375rem; }


/* Automation */
.split__media.media--video > video { aspect-ratio: 4 / 3; }
.split__copy .lead { margin: var(--s-5) 0 0; }
.features { display: grid; gap: var(--s-5); margin: var(--s-7) 0; list-style: none; }
.features li { display: flex; gap: var(--s-4); }
.features .icon {
  width: 44px; height: 44px;
  padding: 11px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  color: var(--accent-text);
  stroke-width: 1.5;
}
.features h3 { font-size: 1rem; font-stretch: 95%; margin: 2px 0 4px; }
.features p { margin: 0; font-size: .9375rem; color: var(--text-muted); }

/* About */
.split--about { align-items: start; }
.split--about .split__copy > p:not(.label):not(.lead) { color: var(--text-muted); }
.split--about .lead { margin: var(--s-5) 0 var(--s-4); }
.facts { margin: var(--s-6) 0 0; border-top: 1px solid var(--line); }
.facts > div { display: grid; gap: 4px; padding: var(--s-4) 0; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--accent-text); }
.facts dd { margin: 0; font-weight: 600; font-size: 1.0625rem; }

.about-media { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3); }
.about-media img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--r-md); aspect-ratio: 4 / 5; box-shadow: var(--sh-2); }
.about-media .about-media__main { grid-column: 1 / -1; aspect-ratio: 16 / 9; }

.faq-wrap {
  display: grid;
  gap: var(--s-5) var(--s-8);
  margin-top: clamp(64px, 8vw, 112px);
  padding-top: clamp(48px, 6vw, 72px);
  border-top: 1px solid var(--line);
}
.faq details { border-bottom: 1px solid var(--line-strong); }
.faq details:first-child { border-top: 1px solid var(--line-strong); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  min-height: 64px;
  padding: var(--s-3) 0;
  cursor: pointer;
  list-style: none;
  font-size: 1.0625rem;
  font-weight: 600;
  transition: color var(--t-fast);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--accent-text); }
.faq summary .icon { transition: transform var(--t) var(--ease); color: var(--text-muted); }
.faq details[open] summary .icon { transform: rotate(45deg); color: var(--accent-text); }
.faq details p { margin: 0; padding: 0 var(--s-6) var(--s-5) 0; color: var(--text-muted); max-width: 62ch; }
.faq details[open] p { animation: fadeDown var(--t) var(--ease); }
@keyframes fadeDown { from { opacity: 0; transform: translateY(-4px); } }

/* Contact */
.contact__grid { display: grid; gap: clamp(40px, 6vw, 80px); align-items: start; }
.contact__info .lead { margin: var(--s-5) 0 var(--s-6); }
.contact-list { display: grid; gap: var(--s-2); list-style: none; }
.contact-row {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  min-height: 72px;
  padding: var(--s-3) var(--s-4);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  text-decoration: none;
  transition: border-color var(--t-fast), background-color var(--t-fast);
}
.contact-row > span:nth-child(2) { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.contact-row .mono { color: var(--text-faint); font-size: .6875rem; }
.contact-row strong { font-size: 1.125rem; font-weight: 650; font-stretch: 92%; }
.contact-row__icon { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: var(--r-sm); background: var(--accent-soft); color: var(--accent-text); }
.contact-row__icon--wa { background: rgba(37, 211, 102, .12); color: var(--wa); }
.contact-row__go { color: var(--text-faint); transition: transform var(--t) var(--ease), color var(--t-fast); }
.contact-row:hover { border-color: var(--line-strong); background: var(--surface-2); }
.contact-row:hover .contact-row__go { color: var(--text); transform: translateX(3px); }

.coverage { margin-top: var(--s-6); }
.coverage .mono { color: var(--text-faint); margin-bottom: var(--s-3); }

.form-card {
  position: relative;
  padding: clamp(20px, 4vw, 40px);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--sh-3);
}
.form { display: grid; gap: var(--s-4); }
.form__head h3 { font-size: var(--fs-h2-sm); }
.form__head p { margin: var(--s-2) 0 var(--s-2); color: var(--text-muted); font-size: .9375rem; }
.form__row { display: grid; gap: var(--s-4); }
.field label { display: flex; align-items: baseline; gap: 6px; margin-bottom: var(--s-2); font-size: .875rem; font-weight: 600; }
.field label span[aria-hidden] { color: var(--accent-text); }
.field__opt { font-family: var(--font-mono); font-size: .6875rem; font-weight: 500; text-transform: uppercase; letter-spacing: .06em; color: var(--text-faint); }
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  background: var(--field);
  color: var(--text);
  font: 400 1rem/1.4 var(--font);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.field textarea { resize: vertical; min-height: 112px; }
.field input::placeholder, .field textarea::placeholder { color: var(--text-faint); opacity: .8; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--text-faint); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--spark); box-shadow: 0 0 0 3px var(--spark-glow); }
.field [aria-invalid="true"] { border-color: var(--danger); }
.field [aria-invalid="true"]:focus { box-shadow: 0 0 0 3px rgba(255, 143, 130, .25); }
.field__error { margin: 6px 0 0; color: var(--danger); font-size: .8125rem; font-weight: 500; }
.select { position: relative; }
.select select { appearance: none; padding-right: 40px; cursor: pointer; }
.select::after {
  content: "";
  position: absolute;
  right: 16px; top: 50%;
  width: 8px; height: 8px;
  margin-top: -6px;
  border-right: 1.75px solid var(--text-muted);
  border-bottom: 1.75px solid var(--text-muted);
  transform: rotate(45deg);
  pointer-events: none;
}
.form__legal { margin: 0; text-align: center; font-size: .8125rem; color: var(--text-faint); }

.form-success { display: grid; justify-items: center; gap: var(--s-3); padding: var(--s-7) var(--s-2); text-align: center; animation: fadeUp var(--t-slow) var(--ease); }
.form-success[hidden] { display: none; }
.form-success:focus { outline: none; }
.form-success__icon { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-text); }
.form-success__icon .icon { width: 30px; height: 30px; stroke-width: 2; }
.form-success h3 { font-size: var(--fs-h2-sm); }
.form-success p { color: var(--text-muted); max-width: 40ch; margin: 0 0 var(--s-3); }
.form-success .btn-row { justify-content: center; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } }

/* Footer */
.site-footer { --bg: var(--graphite-950); padding: var(--s-9) 0 var(--s-6); border-top: 1px solid var(--line); }
.site-footer__top { display: grid; gap: var(--s-7) var(--s-6); }
.site-footer__brand .brand__mark { width: 30px; }
.site-footer__brand .brand__word { font-size: 1.25rem; }
.site-footer__brand p { margin: var(--s-4) 0 0; max-width: 36ch; color: var(--text-muted); font-size: .9375rem; }
.site-footer__title { margin: 0 0 var(--s-3); color: var(--text-faint); font-size: var(--fs-label); font-stretch: 100%; letter-spacing: .08em; }
.site-footer ul { list-style: none; display: grid; gap: 2px; color: var(--text-muted); font-size: .9375rem; }
.site-footer li { display: flex; align-items: center; min-height: 40px; }
.site-footer li > a { display: inline-flex; align-items: center; min-height: 40px; }
.site-footer a { text-decoration: none; transition: color var(--t-fast); }
.site-footer a:hover { color: var(--text); }
.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: var(--s-3);
  margin-top: var(--s-8);
  padding-top: var(--s-5);
  border-top: 1px solid var(--line);
  color: var(--text-faint);
  font-size: .875rem;
}
.to-top { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; }
.to-top .icon { width: 16px; height: 16px; transform: rotate(-90deg); }

/* Mobile quick bar */
.quickbar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 80;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-2);
  padding: var(--s-2) var(--s-3) calc(var(--s-2) + env(safe-area-inset-bottom));
  background: rgb(var(--shade-bg) / .94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  transform: translateY(110%);
  transition: transform var(--t) var(--ease);
}
.quickbar.is-visible { transform: none; }

/* Featured project */
.feature { position: relative; isolation: isolate; overflow: hidden; }
.feature__media picture { display: block; height: 100%; }
.feature__media img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.feature__inner { padding-block: var(--s-7) var(--section-y); }
.feature__copy .lead { margin: var(--s-5) 0 0; }
.specs { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4) var(--s-5); margin: var(--s-6) 0 0; }
.specs > div { padding-top: var(--s-3); border-top: 1px solid var(--line-strong); }
.specs dt { color: var(--text-faint); margin-bottom: 4px; }
.specs dd { margin: 0; font-weight: 600; font-size: .9375rem; line-height: 1.35; }
.feature__thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-2); margin-top: var(--s-6); list-style: none; }
.feature__thumb {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  overflow: hidden;
  background: var(--surface-2);
  cursor: zoom-in;
  transition: border-color var(--t-fast), transform var(--t) var(--ease);
}
.feature__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--ease); }
.feature__thumb:hover { border-color: var(--spark); }
.feature__thumb:hover img { transform: scale(1.08); }

/* Swing gate over the intro: closed on load, opens to reveal the hero text */
.hero-gate {
  --post: clamp(16px, 1.7vw, 26px);
  --tube: clamp(9px, 1.25vw, 18px);
  --steel-hi: color-mix(in srgb, var(--graphite-700) 70%, #fff);
  --steel: var(--graphite-700);
  --steel-lo: var(--graphite-950);
  position: absolute;
  inset: 0;
  z-index: 2;
  perspective: 1600px;
  perspective-origin: 50% 45%;
  pointer-events: none;
}
/* ground: soft contact shadow along the bottom */
.hero-gate::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 28px;
  background: linear-gradient(to top, rgb(var(--shade) / .65), transparent);
}
.hero-gate__leaf {
  position: absolute;
  top: 0;
  bottom: 10px; /* small gap above the ground, like a real swing gate */
  width: calc(50% - var(--post));
  transition: transform 2.6s cubic-bezier(.5, 0, .25, 1);
  will-change: transform;
}
.hero-gate__leaf > svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-gate__leaf--l { left: var(--post); transform-origin: left center; }
.hero-gate__leaf--r { right: var(--post); transform-origin: right center; transition-delay: .2s; }
.hero-gate__leaf--r > svg { transform: scaleX(-1); }
/* light falls off as the leaves turn away from the viewer */
.hero-gate__leaf::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgb(var(--shade) / .1), rgb(var(--shade) / .55));
  opacity: 0;
  transition: opacity 2.6s cubic-bezier(.5, 0, .25, 1);
}
.hero-gate__leaf--r::after { background: linear-gradient(270deg, rgb(var(--shade) / .1), rgb(var(--shade) / .55)); transition-delay: .2s; }
.hero-gate.is-open .hero-gate__leaf::after { opacity: 1; }

/* rectangular steel tube frame: lit top/left edges, shaded bottom/right */
.hero-gate__frame {
  position: absolute;
  inset: 0;
  border: var(--tube) solid transparent;
  background: linear-gradient(135deg, var(--steel-hi), var(--steel) 22%, var(--steel) 70%, var(--steel-lo)) border-box;
  -webkit-mask: linear-gradient(#000 0 0) padding-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) padding-box exclude, linear-gradient(#000 0 0);
}
.hero-gate__frame::before {
  /* thin weld seam between tube and panel */
  content: "";
  position: absolute;
  inset: -1px;
  border: 1px solid rgb(var(--shade) / .7);
}

/* hinges on the post side */
.hero-gate__hinge {
  position: absolute;
  width: calc(var(--tube) * .9);
  height: clamp(26px, 6%, 54px);
  border-radius: 99px;
  background: linear-gradient(90deg, var(--steel-lo), var(--steel-hi) 45%, var(--steel) 70%, var(--steel-lo));
  box-shadow: 0 2px 4px rgb(var(--shade) / .6);
}
.hero-gate__hinge--top { top: 12%; }
.hero-gate__hinge--bottom { bottom: 12%; }
.hero-gate__leaf--l .hero-gate__hinge { left: calc(var(--tube) * -.55); }
.hero-gate__leaf--r .hero-gate__hinge { right: calc(var(--tube) * -.55); }

/* lock box + lever handle on the left leaf, drop bolt on the right leaf */
.hero-gate__lock {
  --lock-h: clamp(44px, 9%, 84px);
  position: absolute;
  top: 50%;
  right: calc(var(--tube) * .25);
  width: clamp(14px, 1.6vw, 24px);
  height: var(--lock-h);
  margin-top: calc(var(--lock-h) / -2);
  border-radius: 3px;
  background: linear-gradient(90deg, var(--steel-hi), var(--steel) 50%, var(--steel-lo));
  box-shadow: 0 3px 6px rgb(var(--shade) / .6), inset 0 0 0 1px rgba(255, 255, 255, .08);
}
.hero-gate__handle {
  position: absolute;
  top: 28%;
  right: 55%;
  width: clamp(26px, 3vw, 44px);
  height: clamp(5px, .55vw, 8px);
  border-radius: 99px;
  background: linear-gradient(180deg, #e9ebee, #9aa0a6 55%, #5f656b);
  box-shadow: 0 2px 4px rgb(var(--shade) / .7);
}
.hero-gate__handle::before {
  /* round rose behind the lever */
  content: "";
  position: absolute;
  right: -4px;
  top: 50%;
  width: clamp(10px, 1.1vw, 16px);
  aspect-ratio: 1;
  transform: translateY(-50%);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #f1f2f4, #8d9399 70%);
}
/* matching lock + handle on the right leaf, mirrored */
.hero-gate__leaf--r .hero-gate__lock {
  right: auto;
  left: calc(var(--tube) * .25);
  background: linear-gradient(270deg, var(--steel-hi), var(--steel) 50%, var(--steel-lo));
}
.hero-gate__leaf--r .hero-gate__handle { right: auto; left: 55%; }
.hero-gate__leaf--r .hero-gate__handle::before { right: auto; left: -4px; }
.hero-gate__bolt {
  position: absolute;
  left: calc(var(--tube) * 1.6);
  bottom: -10px;
  width: clamp(5px, .5vw, 8px);
  height: 13%;
  border-radius: 99px;
  background: linear-gradient(90deg, #5f656b, #d9dce0 45%, #6c7278);
}

/* square steel posts with a cap */
.hero-gate__post {
  position: absolute;
  top: 0;
  bottom: 0;
  width: var(--post);
  background: linear-gradient(90deg, var(--steel-hi), var(--steel) 35%, var(--graphite-800) 70%, var(--steel-lo));
  box-shadow: 0 0 18px rgb(var(--shade) / .5);
}
.hero-gate__post::before {
  content: "";
  position: absolute;
  top: 0;
  left: -4px;
  right: -4px;
  height: clamp(8px, 1vw, 12px);
  background: linear-gradient(180deg, var(--steel-hi), var(--steel-lo));
  clip-path: polygon(0 100%, 12% 0, 88% 0, 100% 100%);
}
.hero-gate__post--l { left: 0; }
.hero-gate__post--r { right: 0; }
.hero-gate.is-open .hero-gate__leaf--l { transform: rotateY(84deg); }
.hero-gate.is-open .hero-gate__leaf--r { transform: rotateY(-84deg); }
/* once stopped, the open leaves sit behind the text as a frame */
.hero-gate.is-settled { z-index: 0; }

/* warning lamp on the left post, blinks while the motors run */
.hero-gate__lamp {
  position: absolute;
  top: clamp(14px, 1.6vw, 20px);
  left: 50%;
  width: clamp(10px, 1.1vw, 14px);
  aspect-ratio: 1;
  transform: translateX(-50%);
  border-radius: 50%;
  background: var(--graphite-800);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .15);
}
.hero-gate.is-moving .hero-gate__lamp { animation: lamp .6s steps(2, jump-none) infinite; }
@keyframes lamp {
  from { background: var(--graphite-800); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .15); }
  to { background: var(--spark); box-shadow: 0 0 14px 4px var(--spark-glow); }
}
html:not(.js) .hero-gate { display: none; }

/* Legal pages (termeni, confidențialitate) */
.h2 { font-size: var(--fs-h2); }
.legal { padding-top: clamp(48px, 7vw, 96px); }
.legal__grid { display: grid; gap: var(--s-6) var(--s-8); }
.legal__head h1 { max-width: 20ch; }
.legal__updated { margin: var(--s-4) 0 0; color: var(--text-faint); }
.legal__toc { align-self: start; }
.legal__toc .mono { color: var(--text-faint); margin-bottom: var(--s-3); }
.legal__toc ol { display: grid; gap: 2px; padding-left: 1.2em; color: var(--text-muted); font-size: .9375rem; }
.legal__toc a { display: inline-block; padding: 4px 0; text-decoration: none; }
.legal__toc a:hover { color: var(--accent-text); }
.legal__body { max-width: 72ch; }
.legal__body .lead { margin-bottom: var(--s-6); }
.legal__body h2 { font-size: var(--fs-h3); margin: var(--s-7) 0 var(--s-3); scroll-margin-top: calc(var(--header-h) + 24px); }
.legal__body p, .legal__body li { color: var(--text-muted); }
.legal__body strong { color: var(--text); font-weight: 600; }
.legal__body ul { display: grid; gap: var(--s-2); padding-left: 1.2em; margin: 0 0 1em; }
.legal__body a { color: var(--accent-text); }
/* fields still to be filled in by the company */
mark.todo { background: #ffe58a; color: #3a2a00; padding: 0 .3em; border-radius: 3px; font-weight: 600; }
@media (min-width: 900px) {
  .legal__grid { grid-template-columns: 260px minmax(0, 1fr); }
  .legal__head { grid-column: 1 / -1; }
  .legal__toc { position: sticky; top: calc(var(--header-h) + 32px); }
}
.legal-page .site-header__bar .btn { margin-left: auto; }

/* Footer legal links */
.site-footer__legal { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); }
.site-footer__legal a, .site-footer__cookie {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: var(--text-faint);
  text-decoration: none;
  transition: color var(--t-fast);
}
.site-footer__cookie { padding: 0; border: 0; background: none; font: inherit; cursor: pointer; }
.site-footer__legal a:hover, .site-footer__cookie:hover { color: var(--text); }

/* Cookie consent banner (only shown when consent.js has categories) */
.consent {
  position: fixed;
  left: var(--s-3);
  right: var(--s-3);
  bottom: var(--s-3);
  z-index: 250;
  display: grid;
  gap: var(--s-4);
  max-width: 760px;
  margin-inline: auto;
  padding: var(--s-5);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--sh-3);
  animation: fadeUp var(--t) var(--ease);
}
.consent__title { margin: 0 0 var(--s-2); font-weight: 650; font-size: 1.0625rem; }
.consent__text { margin: 0; color: var(--text-muted); font-size: .9375rem; }
.consent__text a { color: var(--accent-text); }
.consent__settings { display: grid; gap: var(--s-3); margin-top: var(--s-4); }
.consent__opt { display: flex; gap: var(--s-3); align-items: flex-start; font-size: .9375rem; color: var(--text-muted); cursor: pointer; }
.consent__opt input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--spark); }
.consent__opt strong { display: block; color: var(--text); }
.consent__actions { display: flex; flex-wrap: wrap; gap: var(--s-2); justify-content: flex-end; }
@media (max-width: 599.98px) {
  .consent__actions .btn { flex: 1 1 100%; }
}

/* ---------- 7. Overlays ---------- */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
  background: rgb(var(--shade) / .96);
  color: #f2f1ee;
  animation: fadeIn var(--t) var(--ease);
}
.overlay[hidden] { display: none; }
@keyframes fadeIn { from { opacity: 0; } }
.overlay__bar { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); padding: var(--s-3) var(--s-4); }
.overlay__bar p { margin: 0; }

.lightbox__count { color: #a8acb1; }
.lightbox__stage { position: relative; display: grid; place-items: center; min-height: 0; padding: 0 var(--s-3); }
.lightbox__fig { position: relative; display: grid; place-items: center; width: 100%; height: 100%; margin: 0; min-height: 0; }
.lightbox__fig img {
  max-width: 100%;
  max-height: calc(100svh - 150px);
  object-fit: contain;
  border-radius: var(--r-sm);
  transition: opacity var(--t);
}
.lightbox__fig .spinner { position: absolute; display: none; }
.lightbox.is-loading .spinner { display: block; }
.lightbox.is-loading .lightbox__fig img { opacity: .25; }
.lightbox__nav { position: absolute; top: 50%; margin-top: -22px; z-index: 2; }
.lightbox__prev { left: var(--s-3); }
.lightbox__next { right: var(--s-3); }
.lightbox__caption { margin: 0; padding: var(--s-3) var(--s-4) var(--s-5); text-align: center; color: #d6d8db; font-size: .9375rem; }

.video-modal__title { font-weight: 600; font-size: .9375rem; }
.video-modal__stage { display: grid; place-items: center; min-height: 0; padding: 0 var(--s-3) var(--s-5); }
.video-modal video { max-width: min(1200px, 100%); max-height: calc(100svh - 110px); border-radius: var(--r-sm); background: #000; }

/* ---------- 8. Motion ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 520ms var(--ease), transform 640ms var(--ease);
  transition-delay: calc(var(--i, 0) * 70ms);
}
.js [data-reveal].is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; transition-delay: 0ms !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}

/* ---------- 9. Responsive ---------- */
@media (max-width: 379.98px) {
  .brand__sub { display: none; }
  .brand__mark { grid-row: auto; }
  .hero__actions .btn { width: 100%; }
}

@media (min-width: 600px) {
  .form__row { grid-template-columns: 1fr 1fr; }
  .svc-grid { grid-auto-rows: 210px; }
  .svc__text { display: block; }
  .svc__body { padding: var(--s-5); }
  .svc__title { font-size: 1.25rem; }
  .svc--feature .svc__title { font-size: 1.875rem; }
  .video-grid { grid-auto-columns: 46%; }
  .features { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .gallery-foot { flex-direction: row; justify-content: space-between; }
  .site-footer__top { grid-template-columns: 1fr 1fr; }
  .site-footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 599.98px) {
  .chip { min-height: 44px; }
  .hero__actions .btn { flex: 1 1 auto; }
  .svc__arrow { width: 32px; height: 32px; }
  .media__cap { font-size: .8125rem; padding: 8px 12px; }
  .site-footer { padding-bottom: calc(var(--s-9) + env(safe-area-inset-bottom)); }
}

@media (min-width: 900px) {
  .primary-nav { display: block; }
  .menu-toggle, .header-call, .quickbar, .mobile-menu { display: none !important; }
  .header-cta { display: inline-flex; }

  .hero { padding-block: 0; min-height: min(calc(100svh - var(--header-h)), 860px); display: flex; align-items: center; }
  .hero__grid { grid-template-columns: minmax(0, 1fr); }
  .hero__copy { padding-block: var(--s-9); }
  .hero__proof { gap: var(--s-3) var(--s-7); margin-top: var(--s-7); padding-top: var(--s-5); border-top: 1px solid var(--line); font-size: .9375rem; }
  /* image runs from the middle of the page to the right edge, full hero height */

  .feature { min-height: 760px; display: flex; align-items: center; }
  .feature__media { position: absolute; inset: 0; z-index: -1; }
  .feature__media img { height: 100%; aspect-ratio: auto; object-position: 15% 50%; }
  .feature__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
      linear-gradient(90deg, rgb(var(--shade) / .95) 0%, rgb(var(--shade) / .88) 32%, rgb(var(--shade) / .35) 58%, rgb(var(--shade) / 0) 78%),
      linear-gradient(0deg, rgb(var(--shade) / .5), transparent 30%);
  }
  .feature__inner { padding-block: var(--s-9); }
  .feature__copy { max-width: 520px; }


  .split--about { grid-template-columns: 1fr 1.05fr; }
  .faq-wrap { grid-template-columns: .8fr 1.4fr; }
  .contact__grid { grid-template-columns: .9fr 1.1fr; }
  .lightbox__stage { padding: 0 80px; }
}

@media (min-width: 1100px) {
  .header-phone { display: inline-flex; }
  .svc-grid { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 250px; gap: var(--s-4); }
  .video-grid { grid-auto-flow: row; grid-template-columns: repeat(4, 1fr); overflow: visible; margin-inline: 0; padding-inline: 0; }
  .vcard { aspect-ratio: 3 / 4; }
  .steps { grid-template-columns: repeat(4, 1fr); }
  .site-footer__top { grid-template-columns: 1.6fr 1fr 1fr 1fr; }
  .site-footer__brand { grid-column: auto; }
  .filters { flex-wrap: wrap; overflow: visible; margin-inline: 0; padding-inline: 0; mask-image: none; -webkit-mask-image: none; }
}

@media (min-width: 1600px) {
  .container { width: min(1360px, 100% - 2 * var(--gutter)); }
}

@media (pointer: coarse) {
  .g-tile__cap { display: none; }
}
