/* ==========================================================================
   Kadima Group — website
   Dark slate surfaces with Kadima blue, taken from the logo and business card.
   Angled "chevron" cuts echo the card's design. Barlow Condensed for headlines,
   Barlow for text, JetBrains Mono for small labels.
   ========================================================================== */

:root {
  /* Surfaces */
  --bg: #0f1319;
  --bg-2: #131820;
  --surface: #1a2029;
  --surface-2: #222a35;
  --slate: #2f3541;            /* business card background */
  --paper: #eef2f6;            /* the light sections */
  --paper-2: #e2e8ef;
  --ink: #121820;

  /* Text */
  --text: #eef2f6;
  --muted: rgba(238, 242, 246, 0.7);
  --dim: rgba(238, 242, 246, 0.56);
  --ink-muted: #4a5564;

  /* Lines */
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.16);
  --line-ink: rgba(18, 24, 32, 0.12);

  /* Brand */
  --blue: #2b9be0;
  --blue-2: #6cc3f5;
  --blue-deep: #1468a8;
  --blue-soft: rgba(43, 155, 224, 0.14);
  --amber: #f6b500;
  --green: #2fbf71;
  --whatsapp: #25d366;

  --shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.75);
  --radius: 4px;
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 76px;

  --font-head: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, Consolas, monospace;

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.65 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
[hidden] { display: none !important; }
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-head); font-weight: 700; line-height: 1.02; letter-spacing: 0.005em; text-transform: uppercase; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--blue); color: #fff; }
:focus-visible { outline: 2px solid var(--blue-2); outline-offset: 3px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 200; background: var(--blue); color: #fff; padding: 10px 16px; border-radius: var(--radius); }
.skip:focus { top: 12px; }

/* ---------- Type helpers ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font: 500 12px/1.2 var(--font-mono); letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--blue-2); margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: currentColor; }
.section--paper .eyebrow { color: var(--blue-deep); }
.h-xl { font-size: clamp(46px, 8.4vw, 112px); }
.h-lg { font-size: clamp(38px, 5.6vw, 72px); }
.h-md { font-size: clamp(30px, 3.6vw, 46px); }
.h-sm { font-size: clamp(22px, 2.2vw, 28px); }
.tone { color: var(--blue); }
.section--paper .tone { color: var(--blue-deep); }
.lead { font-size: clamp(18px, 1.6vw, 21px); color: var(--muted); max-width: 62ch; }
.section--paper .lead { color: var(--ink-muted); }
.muted { color: var(--muted); }
.mono { font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.06em; }

/* ---------- Buttons ---------- */
.btn {
  --b: var(--blue);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px;
  font: 600 15px/1 var(--font-head); letter-spacing: 0.12em; text-transform: uppercase;
  background: var(--b); color: #fff; border: 1px solid var(--b); border-radius: var(--radius);
  cursor: pointer; transition: transform 0.25s var(--ease), background 0.25s, box-shadow 0.25s, color 0.25s;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%);
}
.btn:hover { background: var(--blue-2); border-color: var(--blue-2); transform: translateY(-2px); box-shadow: 0 14px 30px -12px rgba(43, 155, 224, 0.7); }
.btn svg { width: 18px; height: 18px; flex: none; transition: transform 0.25s var(--ease); }
.btn:hover svg.arrow { transform: translateX(4px); }
.btn--ghost { background: transparent; border-color: var(--line-2); color: var(--text); }
.btn--ghost:hover { background: rgba(255, 255, 255, 0.06); border-color: var(--text); box-shadow: none; }
.btn--wa { --b: var(--whatsapp); color: #062b14; }
.btn--wa:hover { background: #4be283; border-color: #4be283; box-shadow: 0 14px 30px -12px rgba(37, 211, 102, 0.6); }
.btn--dark { --b: var(--ink); }
.btn--dark:hover { background: var(--slate); border-color: var(--slate); }
.btn--sm { min-height: 42px; padding: 0 18px; font-size: 13px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font: 600 14px/1 var(--font-head); letter-spacing: 0.12em; text-transform: uppercase; color: var(--blue-2); }
.link-arrow svg { width: 16px; height: 16px; transition: transform 0.25s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }
.section--paper .link-arrow { color: var(--blue-deep); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 100; height: var(--header-h);
  transition: background 0.3s, border-color 0.3s, transform 0.35s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled, .site-header.is-solid { background: rgba(15, 19, 25, 0.86); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4); border-color: var(--line); }
.site-header.is-hidden { transform: translateY(-100%); }
.site-header .wrap { height: 100%; display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 12px; flex: none; }
.brand img { width: 46px; height: 41px; }
.brand-name { display: flex; flex-direction: column; line-height: 1; }
.brand-name b { font: 700 24px/1 var(--font-head); letter-spacing: 0.28em; }
.brand-name small { font: 500 10px/1 var(--font-mono); letter-spacing: 0.42em; color: var(--blue-2); margin-top: 5px; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav > a, .nav-drop > button {
  display: inline-flex; align-items: center; gap: 6px; height: 44px; padding: 0 14px;
  font: 600 15px/1 var(--font-head); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted);
  background: none; border: 0; cursor: pointer; border-radius: var(--radius); transition: color 0.2s;
}
.nav > a:hover, .nav-drop > button:hover, .nav > a[aria-current="page"], .nav-drop.is-current > button { color: var(--text); }
.nav > a[aria-current="page"], .nav-drop.is-current > button { box-shadow: inset 0 -2px 0 var(--blue); border-radius: 0; }
.nav-drop { position: relative; }
.nav-drop > button svg { width: 12px; height: 12px; transition: transform 0.2s; }
.nav-drop.is-open > button svg { transform: rotate(180deg); }
.drop {
  position: absolute; top: calc(100% + 10px); left: 50%; width: 560px; padding: 10px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 6px;
  background: rgba(22, 27, 35, 0.98); border: 1px solid var(--line-2); border-radius: 6px; box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translate(-50%, 8px); transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
}
.nav-drop.is-open .drop { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.drop a { display: grid; grid-template-columns: 54px 1fr; gap: 12px; align-items: center; padding: 10px; border-radius: 4px; transition: background 0.2s; }
.drop a:hover { background: rgba(255, 255, 255, 0.05); }
.drop img { width: 54px; height: 54px; object-fit: cover; border-radius: 3px; }
.drop b { display: block; font: 700 17px/1.1 var(--font-head); text-transform: uppercase; letter-spacing: 0.04em; color: var(--text); margin-bottom: 3px; }
.drop span { font-size: 13px; color: var(--dim); line-height: 1.35; }
.header-cta { margin-left: 10px; }
.menu-btn { display: none; margin-left: auto; width: 48px; height: 48px; border: 1px solid var(--line-2); background: none; border-radius: var(--radius); cursor: pointer; position: relative; }
.menu-btn span, .menu-btn span::before, .menu-btn span::after { position: absolute; left: 13px; width: 22px; height: 2px; background: var(--text); content: ""; transition: transform 0.3s var(--ease), background 0.2s; }
.menu-btn span { top: 23px; }
.menu-btn span::before { left: 0; top: -7px; }
.menu-btn span::after { left: 0; top: 7px; }
.nav-open .menu-btn span { background: transparent; }
.nav-open .menu-btn span::before { transform: translateY(7px) rotate(45deg); }
.nav-open .menu-btn span::after { transform: translateY(-7px) rotate(-45deg); }

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

@media (max-width: 1060px) {
  .menu-btn { display: block; }
  .header-cta { display: none; }
  .nav {
    position: fixed; inset: var(--header-h) 0 0; margin: 0; padding: 20px var(--gutter) 40px;
    flex-direction: column; align-items: stretch; gap: 0; overflow-y: auto;
    background: var(--bg); transform: translateX(100%); transition: transform 0.4s var(--ease); visibility: hidden;
  }
  .nav-open .nav { transform: none; visibility: visible; }
  /* a backdrop-filter would make the header the containing block of the fixed menu panel, so drop it while open */
  .nav-open .site-header { background: var(--bg); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .nav > a, .nav-drop > button { width: 100%; height: 60px; font-size: 24px; justify-content: space-between; border-bottom: 1px solid var(--line); padding: 0; color: var(--text); }
  .nav > a[aria-current="page"], .nav-drop.is-current > button { box-shadow: none; color: var(--blue-2); }
  .drop { position: static; width: auto; transform: none; display: none; grid-template-columns: 1fr; opacity: 1; visibility: visible; box-shadow: none; border: 0; background: transparent; padding: 8px 0; }
  .nav-drop.is-open .drop { display: grid; transform: none; }
  .nav .mobile-cta { display: flex; margin-top: 28px; }
}
.nav .mobile-cta { display: none; }
@media (min-width: 1061px) { .nav .mobile-cta { display: none !important; } }

/* ---------- Hero (home) ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; padding: calc(var(--header-h) + 60px) 0 70px; overflow: hidden; isolation: isolate; }
.hero-slides { position: absolute; inset: 0; z-index: -2; }
.hero-slides figure { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 1.6s ease; }
.hero-slides figure.is-on { opacity: 1; }
.hero-slides img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); }
.hero-slides figure.is-on img { animation: kenburns 9s ease-out forwards; }
@keyframes kenburns { from { transform: scale(1.12) translate(1.5%, 1%); } to { transform: scale(1.01) translate(0, 0); } }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background:
  linear-gradient(180deg, rgba(15, 19, 25, 0.55) 0%, rgba(15, 19, 25, 0.2) 35%, rgba(15, 19, 25, 0.88) 78%, var(--bg) 100%),
  linear-gradient(90deg, rgba(15, 19, 25, 0.85) 0%, rgba(15, 19, 25, 0.25) 65%); }
.hero-chevrons { position: absolute; right: -4%; top: 12%; width: min(46vw, 620px); z-index: -1; opacity: 0.9; pointer-events: none; }
.hero-chevrons path { transform-box: fill-box; animation: chev-in 1.4s var(--ease) both; }
.hero-chevrons path:nth-child(2) { animation-delay: 0.15s; }
.hero-chevrons path:nth-child(3) { animation-delay: 0.3s; }
@keyframes chev-in { from { opacity: 0; transform: translateX(60px); } }
.hero-content { position: relative; max-width: 980px; }
.hero h1 { font-size: clamp(48px, 8.6vw, 124px); line-height: 0.92; margin-bottom: 26px; text-wrap: balance; }
.hero h1 .typed { color: var(--blue); display: inline-block; min-width: 1ch; }
.hero h1 .caret { display: inline-block; width: 0.07em; height: 0.82em; margin-left: 0.04em; background: var(--blue-2); vertical-align: -0.04em; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.hero .lead { color: rgba(238, 242, 246, 0.82); margin-bottom: 34px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 42px; padding-top: 22px; border-top: 1px solid var(--line-2); }
.hero-meta span { display: inline-flex; align-items: center; gap: 9px; font: 500 12px/1.2 var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.hero-meta svg { width: 16px; height: 16px; color: var(--blue-2); }
.hero-dots { position: absolute; right: var(--gutter); bottom: 74px; display: flex; gap: 8px; }
.hero-dots button { width: 34px; height: 4px; padding: 0; border: 0; background: var(--line-2); cursor: pointer; overflow: hidden; position: relative; }
.hero-dots button::after { content: ""; position: absolute; inset: 0; background: var(--blue); transform: scaleX(0); transform-origin: 0 50%; }
.hero-dots button.is-on::after { animation: dot 6s linear forwards; }
@keyframes dot { to { transform: scaleX(1); } }
.hero-caption { position: absolute; right: var(--gutter); bottom: 92px; font: 500 11px/1.3 var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim); text-align: right; max-width: 280px; }
@media (max-width: 760px) { .hero-dots, .hero-caption { display: none; } .hero-chevrons { width: 90vw; top: 6%; right: -30%; opacity: 0.45; } }

/* ---------- Page header (inner pages) ---------- */
.page-hero { position: relative; padding: calc(var(--header-h) + 90px) 0 80px; overflow: hidden; isolation: isolate; min-height: 72vh; display: flex; align-items: flex-end; }
.page-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transform: scale(1.06); animation: settle 2.2s var(--ease) forwards; }
@keyframes settle { to { transform: scale(1); } }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(15, 19, 25, 0.6), rgba(15, 19, 25, 0.35) 40%, var(--bg) 100%), linear-gradient(90deg, rgba(15, 19, 25, 0.88), rgba(15, 19, 25, 0.1) 75%); }
.page-hero h1 { font-size: clamp(46px, 7.4vw, 100px); line-height: 0.94; margin-bottom: 22px; max-width: 14ch; }
.page-hero .lead { color: rgba(238, 242, 246, 0.84); margin-bottom: 30px; }
.crumbs { display: flex; gap: 10px; font: 500 12px/1 var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); margin-bottom: 26px; }
.crumbs a:hover { color: var(--text); }
.crumbs span[aria-hidden] { color: var(--blue); }
.page-hero--short { min-height: 0; padding-bottom: 50px; }

/* Mosaic header: for divisions whose photos are too small to stretch full-screen */
.page-hero--mosaic { min-height: 0; align-items: center; padding-bottom: 90px; background: radial-gradient(ellipse at 80% 30%, rgba(43, 155, 224, 0.18), transparent 60%), var(--bg); }
.page-hero--mosaic::before { background: linear-gradient(180deg, transparent 70%, var(--bg)); }
.page-hero--mosaic .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 70px); align-items: center; }
.page-hero--mosaic h1 { max-width: 12ch; }
.mosaic { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 150px; gap: 10px; transform: rotate(-3deg); }
.mosaic img { width: 100%; height: 100%; object-fit: cover; border-radius: 4px; box-shadow: var(--shadow); animation: tile-in 1s var(--ease) both; }
.mosaic img:nth-child(1) { grid-row: span 2; }
.mosaic img:nth-child(5) { grid-column: span 2; }
.mosaic img:nth-child(2) { animation-delay: 0.1s; } .mosaic img:nth-child(3) { animation-delay: 0.2s; } .mosaic img:nth-child(4) { animation-delay: 0.3s; } .mosaic img:nth-child(5) { animation-delay: 0.4s; } .mosaic img:nth-child(6) { animation-delay: 0.5s; }
.mosaic img:nth-child(3n+2) { transform: translateY(24px); }
@keyframes tile-in { from { opacity: 0; translate: 0 40px; } }
@media (max-width: 900px) { .page-hero--mosaic .wrap { grid-template-columns: 1fr; } .mosaic { grid-auto-rows: 100px; transform: none; } }

/* ---------- Sections ---------- */
.section { padding: clamp(80px, 11vw, 140px) 0; position: relative; }
.section, .cta-band, .site-footer { content-visibility: auto; contain-intrinsic-size: auto 900px; }   /* off-screen sections render only when scrolled near */
.section--tight { padding: clamp(60px, 7vw, 90px) 0; }
.section--alt { background: var(--bg-2); }
.section--paper { background: var(--paper); color: var(--ink); }
.section--slate { background: var(--slate); }
.section-head { display: grid; grid-template-columns: 1.1fr 1fr; gap: 30px 60px; align-items: end; margin-bottom: clamp(44px, 6vw, 70px); }
.section-head .lead { margin: 0; }
.section-head--center { grid-template-columns: 1fr; text-align: center; justify-items: center; }
@media (max-width: 860px) { .section-head { grid-template-columns: 1fr; } }
.cut-top { clip-path: polygon(0 40px, 40px 0, 100% 0, 100% 100%, 0 100%); }

/* ---------- Ticker band ---------- */
.ticker { border-block: 1px solid var(--line); background: var(--bg-2); overflow: hidden; padding: 20px 0; }
.ticker-track { display: flex; width: max-content; animation: ticker 48s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-track span { display: inline-flex; align-items: center; gap: 22px; padding-right: 22px; white-space: nowrap; font: 700 clamp(22px, 2.6vw, 34px)/1 var(--font-head); text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); }
.ticker-track span::after { content: ""; width: 14px; height: 14px; background: var(--blue); clip-path: polygon(50% 0, 100% 100%, 0 100%); }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- Division cards ---------- */
.divisions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; }
.division {
  position: relative; min-height: 560px; display: flex; flex-direction: column; justify-content: flex-end;
  padding: 30px 28px; overflow: hidden; isolation: isolate; background: var(--surface);
}
.division > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.2s var(--ease), filter 0.6s; filter: saturate(0.75) brightness(0.8); }
.division::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(15, 19, 25, 0.1) 0%, rgba(15, 19, 25, 0.55) 45%, rgba(15, 19, 25, 0.96) 100%); transition: background 0.5s; }
.division:hover > img, .division:focus-within > img { transform: scale(1.08); filter: saturate(1.05) brightness(0.9); }
.division:hover::before { background: linear-gradient(180deg, rgba(20, 104, 168, 0.15) 0%, rgba(15, 19, 25, 0.6) 40%, rgba(15, 19, 25, 0.97) 100%); }
.division .num { position: absolute; top: 26px; left: 28px; font: 500 12px/1 var(--font-mono); letter-spacing: 0.16em; color: var(--blue-2); }
.division h3 { font-size: clamp(28px, 2.6vw, 36px); margin-bottom: 12px; }
.division p { color: var(--muted); font-size: 15.5px; margin-bottom: 18px; }
.division ul { display: grid; gap: 6px; margin-bottom: 22px; max-height: 0; overflow: hidden; opacity: 0; transition: max-height 0.6s var(--ease), opacity 0.4s; }
.division:hover ul, .division:focus-within ul { max-height: 260px; opacity: 1; }
.division li { display: flex; gap: 10px; align-items: center; font-size: 14.5px; color: var(--text); }
.division li::before { content: ""; width: 7px; height: 7px; background: var(--blue); clip-path: polygon(50% 0, 100% 100%, 0 100%); flex: none; }
.division .stretched::after { content: ""; position: absolute; inset: 0; z-index: 1; }
@media (max-width: 1100px) { .divisions { grid-template-columns: 1fr 1fr; } .division { min-height: 460px; } }
@media (max-width: 620px) { .divisions { grid-template-columns: 1fr; } .division { min-height: 400px; } .division ul { max-height: none; opacity: 1; } }
@media (hover: none) { .division ul { max-height: none; opacity: 1; } }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--line-2); }
.stat { padding: 34px 24px 6px 0; border-right: 1px solid var(--line); }
.stat + .stat { padding-left: 24px; }
.stat:last-child { border-right: 0; }
.stat b { display: block; font: 700 clamp(46px, 5vw, 72px)/1 var(--font-head); color: var(--text); letter-spacing: -0.01em; }
.stat b em { font-style: normal; color: var(--blue); }
.stat > span { display: block; margin-top: 12px; color: var(--muted); font-size: 15px; line-height: 1.45; }
@media (max-width: 1000px) { .stats { grid-template-columns: repeat(2, 1fr); } .stat { border-right: 0; border-bottom: 1px solid var(--line); padding: 26px 0 !important; } .stat:nth-child(odd) { padding-right: 18px !important; } }
@media (max-width: 1000px) { .stat:last-child { grid-column: 1 / -1; } }

/* ---------- Split / media blocks ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.split--wide { grid-template-columns: 1.15fr 1fr; }
@media (max-width: 900px) { .split, .split--wide { grid-template-columns: 1fr; } }
.media { position: relative; margin: 0; }
.media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.media--cut img { clip-path: polygon(0 0, calc(100% - 60px) 0, 100% 60px, 100% 100%, 60px 100%, 0 calc(100% - 60px)); }
.media figcaption { margin-top: 12px; font: 500 12px/1.4 var(--font-mono); letter-spacing: 0.08em; color: var(--dim); text-transform: uppercase; }
.section--paper .media figcaption { color: var(--ink-muted); }
.media-badge { position: absolute; left: -18px; bottom: 36px; background: var(--blue); color: #fff; padding: 18px 22px; box-shadow: var(--shadow); clip-path: polygon(0 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%); }
.media-badge b { display: block; font: 700 40px/1 var(--font-head); }
.media-badge span { font: 500 11px/1.3 var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; }
@media (max-width: 600px) { .media-badge { left: 12px; bottom: 12px; padding: 12px 16px; } .media-badge b { font-size: 30px; } }

.check-list { display: grid; gap: 12px; margin: 24px 0 30px; }
.check-list li { display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start; }
.check-list svg { width: 22px; height: 22px; color: var(--blue); margin-top: 2px; }
.section--paper .check-list svg { color: var(--blue-deep); }
.cols-2 { columns: 2; column-gap: 30px; }
@media (max-width: 560px) { .cols-2 { columns: 1; } }

/* ---------- Build timeline (featured project) ---------- */
.timeline { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(30px, 5vw, 70px); align-items: stretch; }
.timeline-stage { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius); background: var(--surface); }
.timeline-stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.05); transition: opacity 0.8s ease, transform 1.4s var(--ease); }
.timeline-stage img.is-on { opacity: 1; transform: none; }
.timeline-stage .tag { position: absolute; left: 16px; top: 16px; z-index: 2; background: rgba(15, 19, 25, 0.82); backdrop-filter: blur(6px); padding: 9px 14px; font: 500 12px/1 var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; color: #fff; border-left: 3px solid var(--blue); }
.timeline-steps { display: flex; flex-direction: column; }
.timeline-steps button {
  position: relative; text-align: left; padding: 22px 0 22px 56px; background: none; border: 0; border-bottom: 1px solid var(--line-ink); cursor: pointer; color: var(--ink-muted); transition: color 0.3s;
}
.timeline-steps button:first-child { border-top: 1px solid var(--line-ink); }
.timeline-steps button b { display: block; font: 700 26px/1 var(--font-head); text-transform: uppercase; color: var(--ink); opacity: 0.45; transition: opacity 0.3s; }
.timeline-steps button span { display: block; font-size: 15px; margin-top: 8px; max-height: 0; overflow: hidden; opacity: 0; transition: max-height 0.5s var(--ease), opacity 0.4s; }
.timeline-steps button i { position: absolute; left: 0; top: 20px; width: 36px; height: 36px; display: grid; place-items: center; font: 600 13px/1 var(--font-mono); font-style: normal; border: 1px solid var(--line-ink); border-radius: 50%; color: var(--ink); transition: background 0.3s, color 0.3s, border-color 0.3s; }
.timeline-steps button::after { content: ""; position: absolute; left: 0; bottom: -1px; height: 2px; width: 100%; background: var(--blue-deep); transform: scaleX(0); transform-origin: 0 50%; }
.timeline-steps button.is-on b { opacity: 1; }
.timeline-steps button.is-on span { max-height: 120px; opacity: 1; }
.timeline-steps button.is-on i { background: var(--blue-deep); border-color: var(--blue-deep); color: #fff; }
.timeline-steps button.is-on::after { animation: dot 5s linear forwards; }
.timeline-steps.is-paused button.is-on::after { animation: none; transform: scaleX(1); }
@media (max-width: 900px) { .timeline { grid-template-columns: 1fr; } }

/* ---------- Process ---------- */
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: step; position: relative; }
.process::before { content: ""; position: absolute; left: 0; right: 0; top: 30px; height: 1px; background: var(--line-2); }
.process li { position: relative; padding: 0 26px 0 0; }
.process li::before {
  counter-increment: step; content: "0" counter(step);
  position: relative; display: grid; place-items: center; width: 60px; height: 60px; margin-bottom: 26px;
  font: 700 22px/1 var(--font-head); background: var(--bg); border: 1px solid var(--blue); color: var(--blue-2);
  clip-path: polygon(50% 0, 100% 100%, 0 100%); padding-top: 18px;
}
.section--alt .process li::before { background: var(--bg-2); }
.process li.is-in::before { background: var(--blue); color: #fff; transition: background 0.5s, color 0.5s; }
.process h3 { font-size: 26px; margin-bottom: 10px; }
.process p { color: var(--muted); font-size: 15.5px; }
@media (max-width: 900px) { .process { grid-template-columns: 1fr 1fr; gap: 40px 20px; } .process::before { display: none; } }
@media (max-width: 520px) { .process { grid-template-columns: 1fr; } }

/* ---------- Cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cards--4 { grid-template-columns: repeat(4, 1fr); }
.cards--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 1000px) { .cards, .cards--4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .cards, .cards--4, .cards--2 { grid-template-columns: 1fr; } }
.card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 28px; transition: transform 0.35s var(--ease), border-color 0.3s, background 0.3s; overflow: hidden; }
.card:hover { transform: translateY(-4px); border-color: rgba(43, 155, 224, 0.5); background: var(--surface-2); }
.card::after { content: ""; position: absolute; right: 0; top: 0; width: 46px; height: 46px; background: linear-gradient(225deg, var(--blue) 50%, transparent 50%); opacity: 0; transition: opacity 0.3s; }
.card:hover::after { opacity: 1; }
.card .icon { width: 52px; height: 52px; display: grid; place-items: center; margin-bottom: 22px; background: var(--blue-soft); color: var(--blue-2); border-radius: var(--radius); }
.card .icon svg { width: 26px; height: 26px; }
.card h3 { font-size: 26px; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 15.5px; margin-bottom: 0; }
.card ul { margin-top: 14px; display: grid; gap: 7px; }
.card li { display: flex; gap: 10px; align-items: baseline; font-size: 15px; color: var(--text); }
.card li::before { content: ""; width: 6px; height: 6px; background: var(--blue); flex: none; transform: translateY(-2px) rotate(45deg); }
.section--paper .card { background: #fff; border-color: var(--line-ink); }
.section--paper .card:hover { background: #fff; box-shadow: 0 24px 50px -30px rgba(18, 24, 32, 0.35); }
.section--paper .card p { color: var(--ink-muted); }
.section--paper .card li { color: var(--ink); }
.section--paper .card .icon { color: var(--blue-deep); }

.photo-card { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; transition: transform 0.35s var(--ease), border-color 0.3s; }
.photo-card:hover { transform: translateY(-4px); border-color: rgba(43, 155, 224, 0.5); }
button.photo-card { padding: 0; width: 100%; text-align: left; cursor: zoom-in; }
.photo-card figure { margin: 0; aspect-ratio: 16 / 10; overflow: hidden; }
.photo-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.photo-card:hover img { transform: scale(1.06); }
.photo-card .body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.photo-card h3 { font-size: 24px; }
.photo-card p { color: var(--muted); font-size: 15px; margin: 0; }
.photo-card .meta { font: 500 11.5px/1.3 var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--blue-2); }
.section--paper .photo-card { background: #fff; border-color: var(--line-ink); }
.section--paper .photo-card p { color: var(--ink-muted); }
.section--paper .photo-card .meta { color: var(--blue-deep); }

/* ---------- Tabs ---------- */
.tabs { display: grid; grid-template-columns: 300px 1fr; gap: clamp(30px, 4vw, 60px); align-items: start; }
.tab-list { display: flex; flex-direction: column; gap: 4px; position: sticky; top: calc(var(--header-h) + 24px); }
.tab-list button {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px; text-align: left;
  background: transparent; border: 1px solid transparent; border-radius: var(--radius); cursor: pointer;
  font: 700 22px/1 var(--font-head); text-transform: uppercase; letter-spacing: 0.03em; color: var(--dim); transition: color 0.2s, background 0.2s, border-color 0.2s;
}
.tab-list button small { font: 500 11px/1 var(--font-mono); letter-spacing: 0.1em; color: inherit; opacity: 0.8; }
.tab-list button:hover { color: var(--text); background: rgba(255, 255, 255, 0.03); }
.tab-list button[aria-selected="true"] { color: var(--text); background: var(--surface); border-color: var(--line-2); box-shadow: inset 3px 0 0 var(--blue); }
.tab-panel { animation: panel-in 0.5s var(--ease); }
.tab-panel[hidden] { display: none; }
@keyframes panel-in { from { opacity: 0; transform: translateY(14px); } }
.tab-panel .split { align-items: start; }
.tab-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 26px; }
.tab-gallery button { padding: 0; border: 0; background: none; cursor: zoom-in; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 3px; }
.tab-gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease), filter 0.3s; }
.tab-gallery button:hover img { transform: scale(1.07); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 26px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border: 1px solid var(--line-2); border-radius: 100px; font-size: 14.5px; color: var(--text); background: rgba(255, 255, 255, 0.02); }
.chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--blue); }
@media (max-width: 900px) {
  .tabs { grid-template-columns: 1fr; }
  .tab-list { position: static; flex-direction: row; overflow-x: auto; scrollbar-width: none; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter) 6px; }
  .tab-list::-webkit-scrollbar { display: none; }
  .tab-list button { flex: none; font-size: 18px; padding: 14px 16px; }
  .tab-list button small { display: none; }
  .tab-list button[aria-selected="true"] { box-shadow: inset 0 -3px 0 var(--blue); }
}

/* ---------- Gallery + filters ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 34px; }
.filters button { padding: 11px 18px; border: 1px solid var(--line-2); background: transparent; border-radius: 100px; cursor: pointer; font: 600 14px/1 var(--font-head); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); transition: all 0.2s; }
.filters button:hover { color: var(--text); border-color: var(--text); }
.filters button[aria-pressed="true"] { background: var(--blue); border-color: var(--blue); color: #fff; }
.filters button sup { font: 500 10px/1 var(--font-mono); margin-left: 4px; opacity: 0.75; }
.gallery { columns: 4 260px; column-gap: 10px; }
.gallery button { display: block; width: 100%; margin: 0 0 10px; padding: 0; border: 0; background: var(--surface); cursor: zoom-in; overflow: hidden; border-radius: 3px; break-inside: avoid; position: relative; }
.gallery img { width: 100%; transition: transform 0.7s var(--ease), opacity 0.4s; }
.gallery button:hover img { transform: scale(1.05); }
.gallery button::after { content: attr(data-caption); position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 14px 12px; text-align: left; font: 500 11px/1.3 var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: #fff; background: linear-gradient(transparent, rgba(0, 0, 0, 0.75)); opacity: 0; transition: opacity 0.3s; }
.gallery button:hover::after { opacity: 1; }
.gallery button.is-hidden { display: none; }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 300; background: rgba(8, 10, 14, 0.94); display: grid; grid-template-rows: 1fr auto; opacity: 0; visibility: hidden; transition: opacity 0.3s, visibility 0.3s; }
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox figure { margin: 0; display: grid; place-items: center; padding: 70px 80px 10px; min-height: 0; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 150px); object-fit: contain; border-radius: 3px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6); }
.lightbox .lb-bar { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 16px var(--gutter) 24px; font: 500 12px/1.4 var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.lb-btn { position: absolute; width: 52px; height: 52px; display: grid; place-items: center; border: 1px solid var(--line-2); background: rgba(15, 19, 25, 0.6); border-radius: 50%; cursor: pointer; color: #fff; transition: background 0.2s; }
.lb-btn:hover { background: var(--blue); border-color: var(--blue); }
.lb-btn svg { width: 22px; height: 22px; }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 16px; top: 50%; transform: translateY(-50%); }
@media (max-width: 700px) { .lightbox figure { padding: 70px 10px 10px; } .lb-prev, .lb-next { top: auto; bottom: 70px; transform: none; } }

/* ---------- Oil process + calculator ---------- */
.flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; position: relative; }
.flow li { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; }
.flow li:not(:last-child)::after { content: ""; position: absolute; right: -14px; top: 50%; width: 12px; height: 12px; border-top: 2px solid var(--blue); border-right: 2px solid var(--blue); transform: translateY(-50%) rotate(45deg); z-index: 2; }
.flow b { display: block; font: 500 12px/1 var(--font-mono); letter-spacing: 0.14em; color: var(--blue-2); margin-bottom: 14px; }
.flow h3 { font-size: 24px; margin-bottom: 10px; }
.flow p { color: var(--muted); font-size: 15px; margin: 0; }
.flow .drop-anim { height: 6px; margin-top: 20px; border-radius: 6px; background: linear-gradient(90deg, #6b4a12, #a77b22); position: relative; overflow: hidden; }
.flow li:nth-child(3) .drop-anim, .flow li:nth-child(4) .drop-anim { background: linear-gradient(90deg, #d8a531, #f6d36b); }
.flow .drop-anim::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.55), transparent); animation: sheen 2.4s linear infinite; transform: translateX(-100%); }
@keyframes sheen { to { transform: translateX(100%); } }
@media (max-width: 1000px) { .flow { grid-template-columns: 1fr 1fr; } .flow li:nth-child(2)::after { display: none; } }
@media (max-width: 560px) { .flow { grid-template-columns: 1fr; } .flow li::after { display: none; } }

.calc { display: grid; grid-template-columns: 1.1fr 1fr; background: var(--surface); border: 1px solid var(--line-2); border-radius: 6px; overflow: hidden; }
.calc-inputs { padding: clamp(26px, 4vw, 44px); display: grid; gap: 22px; }
.calc-out { padding: clamp(26px, 4vw, 44px); background: linear-gradient(160deg, var(--blue-deep), #0d4a7a); display: flex; flex-direction: column; justify-content: space-between; gap: 24px; position: relative; overflow: hidden; }
.calc-out::before { content: ""; position: absolute; right: -80px; bottom: -80px; width: 280px; height: 260px; background: rgba(255, 255, 255, 0.07); clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.calc-out .big { font: 700 clamp(48px, 6vw, 78px)/1 var(--font-head); }
.calc-out .mono { color: rgba(255, 255, 255, 0.78); text-transform: uppercase; }
.calc-out dl { display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; margin: 0; font-size: 15px; border-top: 1px solid rgba(255, 255, 255, 0.2); padding-top: 18px; }
.calc-out dd { margin: 0; font-weight: 600; text-align: right; }
.calc-out small { color: rgba(255, 255, 255, 0.72); font-size: 12.5px; line-height: 1.5; position: relative; }
.range { display: grid; gap: 10px; }
.range label { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; color: var(--muted); }
.range output { font: 700 20px/1 var(--font-head); color: var(--text); }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 6px; background: linear-gradient(90deg, var(--blue) var(--p, 50%), var(--surface-2) var(--p, 50%)); cursor: pointer; }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 4px solid var(--blue); box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4); }
input[type="range"]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 4px solid var(--blue); }
@media (max-width: 860px) { .calc { grid-template-columns: 1fr; } }

/* ---------- Commodity table ---------- */
.grades { width: 100%; border-collapse: collapse; margin: 6px 0 26px; font-size: 15.5px; }
.grades th, .grades td { text-align: left; padding: 13px 0; border-bottom: 1px solid var(--line); }
.grades th { font: 500 11.5px/1 var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); }
.grades td:last-child { text-align: right; }
.grades .pill { font: 500 11px/1 var(--font-mono); letter-spacing: 0.08em; padding: 6px 10px; border-radius: 100px; background: var(--blue-soft); color: var(--blue-2); white-space: nowrap; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 0; border-top: 1px solid var(--line-2); }
.faq details { border-bottom: 1px solid var(--line-2); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 24px 0; font: 700 clamp(20px, 2vw, 25px)/1.15 var(--font-head); text-transform: uppercase; letter-spacing: 0.02em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid var(--line-2); border-radius: 50%; font: 400 22px/1 var(--font); transition: transform 0.3s, background 0.3s; }
.faq details[open] summary::after { transform: rotate(45deg); background: var(--blue); border-color: var(--blue); }
.faq details > div { padding: 0 60px 24px 0; color: var(--muted); }
.section--paper .faq, .section--paper .faq details { border-color: var(--line-ink); }
.section--paper .faq summary::after { border-color: var(--line-ink); }
.section--paper .faq details[open] summary::after { color: #fff; background: var(--blue-deep); border-color: var(--blue-deep); }
.section--paper .faq details > div { color: var(--ink-muted); }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; isolation: isolate; padding: clamp(80px, 10vw, 130px) 0; background: var(--blue-deep); }
.cta-band > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; opacity: 0.28; mix-blend-mode: luminosity; }
.cta-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(13, 74, 122, 0.98) 30%, rgba(20, 104, 168, 0.65)); }
.cta-band::after { content: ""; position: absolute; right: -6%; top: -30%; width: 46%; height: 160%; z-index: -1; background: rgba(255, 255, 255, 0.06); clip-path: polygon(40% 0, 100% 0, 60% 50%, 100% 100%, 40% 100%, 0 50%); }
.cta-band h2 { font-size: clamp(42px, 6.4vw, 88px); line-height: 0.95; max-width: 15ch; margin-bottom: 20px; }
.cta-band p { color: rgba(255, 255, 255, 0.84); font-size: 19px; max-width: 54ch; margin-bottom: 34px; }
.cta-band .btn { --b: #fff; color: var(--blue-deep); }
.cta-band .btn:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.cta-band .btn--ghost { color: #fff; border-color: rgba(255, 255, 255, 0.5); background: transparent; }
.cta-band .btn--wa { --b: var(--whatsapp); color: #062b14; }

/* ---------- Quote form (multi-step) ---------- */
.quote { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(30px, 5vw, 80px); align-items: start; }
@media (max-width: 960px) { .quote { grid-template-columns: 1fr; } }
.quote-aside .contact-lines { display: grid; gap: 4px; margin-top: 30px; }
.contact-line { display: grid; grid-template-columns: 48px 1fr; gap: 16px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); transition: padding 0.25s; }
.contact-line:hover { padding-left: 6px; }
.contact-line .icon { width: 48px; height: 48px; display: grid; place-items: center; background: var(--blue-soft); color: var(--blue-2); border-radius: var(--radius); }
.contact-line .icon svg { width: 22px; height: 22px; }
.contact-line small { display: block; font: 500 11px/1 var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); margin-bottom: 6px; }
.contact-line b { font-weight: 600; font-size: 17px; word-break: break-word; }
.section--paper .contact-line { border-color: var(--line-ink); }
.section--paper .contact-line .icon { color: var(--blue-deep); }
.section--paper .contact-line small { color: var(--ink-muted); }

.form-card { background: var(--surface); border: 1px solid var(--line-2); border-radius: 6px; padding: clamp(24px, 4vw, 44px); position: relative; }
.steps-bar { display: flex; gap: 6px; margin-bottom: 30px; }
.steps-bar span { flex: 1; height: 4px; border-radius: 4px; background: var(--surface-2); position: relative; overflow: hidden; }
.steps-bar span::after { content: ""; position: absolute; inset: 0; background: var(--blue); transform: scaleX(0); transform-origin: 0 50%; transition: transform 0.5s var(--ease); }
.steps-bar span.is-done::after { transform: scaleX(1); }
.step-label { font: 500 12px/1 var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--blue-2); margin-bottom: 12px; }
.form-step { display: none; animation: panel-in 0.45s var(--ease); }
.form-step.is-on { display: block; }
.form-step h3 { font-size: clamp(26px, 3vw, 34px); margin-bottom: 22px; }
.choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 520px) { .choice-grid { grid-template-columns: 1fr; } }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice label { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: center; padding: 16px; border: 1px solid var(--line-2); border-radius: var(--radius); cursor: pointer; transition: border-color 0.2s, background 0.2s; height: 100%; }
.choice label:hover { border-color: var(--text); }
.choice input:checked + label { border-color: var(--blue); background: var(--blue-soft); box-shadow: inset 0 0 0 1px var(--blue); }
.choice input:focus-visible + label { outline: 2px solid var(--blue-2); outline-offset: 2px; }
.choice img { width: 44px; height: 44px; object-fit: cover; border-radius: 3px; }
.choice b { display: block; font: 700 18px/1.1 var(--font-head); text-transform: uppercase; }
.choice span { font-size: 13px; color: var(--dim); }
.field { display: grid; gap: 8px; margin-bottom: 18px; }
.field label { font-size: 14px; font-weight: 500; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 13px 16px; background: var(--bg); border: 1px solid var(--line-2); border-radius: var(--radius); color: var(--text); transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236cc3f5' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; padding-right: 44px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
.tick-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.tick-chips label { position: relative; }
.tick-chips input { position: absolute; opacity: 0; }
.tick-chips span { display: inline-block; padding: 10px 15px; border: 1px solid var(--line-2); border-radius: 100px; font-size: 14.5px; cursor: pointer; transition: all 0.2s; }
.tick-chips span:hover { border-color: var(--text); }
.tick-chips input:checked + span { background: var(--blue); border-color: var(--blue); color: #fff; }
.tick-chips input:focus-visible + span { outline: 2px solid var(--blue-2); outline-offset: 2px; }
.form-nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.form-note { margin: 16px 0 0; font-size: 14.5px; color: var(--muted); min-height: 1.4em; }
.form-note.is-ok { color: var(--green); }
.form-note.is-error { color: #ff8a7a; }
.form-done { text-align: center; padding: 30px 0; }
.form-done svg { width: 72px; height: 72px; margin: 0 auto 20px; color: var(--green); }
.hp { position: absolute; left: -9999px; }
.privacy-note { font-size: 13px; color: var(--dim); margin-top: 14px; }

/* ---------- Map ---------- */
.map { position: relative; aspect-ratio: 16 / 9; border-radius: 6px; overflow: hidden; border: 1px solid var(--line-2); background: var(--surface); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(0.4) contrast(1.05); }
.map-load { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; gap: 10px; padding: 20px; background: radial-gradient(circle at 50% 40%, rgba(43, 155, 224, 0.2), transparent 60%), var(--surface); }

/* ---------- Footer ---------- */
.site-footer { background: #0b0e13; border-top: 1px solid var(--line); padding: 80px 0 30px; position: relative; overflow: hidden; }
.site-footer::before { content: "KADIMA"; position: absolute; left: 50%; bottom: -0.2em; transform: translateX(-50%); font: 700 clamp(120px, 24vw, 360px)/0.8 var(--font-head); letter-spacing: 0.08em; color: rgba(255, 255, 255, 0.025); pointer-events: none; white-space: nowrap; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; position: relative; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h4 { font: 500 12px/1 var(--font-mono); letter-spacing: 0.16em; color: var(--dim); margin-bottom: 20px; }
.footer-grid li { margin-bottom: 10px; }
.footer-grid a { color: var(--muted); transition: color 0.2s; }
.footer-grid a:hover { color: var(--text); }
.footer-tag { color: var(--muted); margin: 20px 0 24px; max-width: 34ch; }
.socials { display: flex; gap: 10px; }
.socials a { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--line-2); border-radius: 50%; color: var(--text); transition: background 0.2s, border-color 0.2s, transform 0.2s; }
.socials a:hover { background: var(--blue); border-color: var(--blue); transform: translateY(-3px); }
.socials svg { width: 18px; height: 18px; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px; margin-top: 60px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 14px; color: var(--dim); position: relative; }

/* ---------- WhatsApp float + quick bar ---------- */
.wa-float { position: fixed; right: 22px; bottom: 22px; z-index: 90; width: 62px; height: 62px; border-radius: 50%; background: var(--whatsapp); color: #fff; display: grid; place-items: center; box-shadow: 0 14px 30px -8px rgba(37, 211, 102, 0.6); transform: scale(0); transition: transform 0.4s var(--ease); }
.wa-float.is-on { transform: scale(1); }
.wa-float svg { width: 32px; height: 32px; }
.wa-float::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--whatsapp); animation: ping 2.4s ease-out infinite; }
@keyframes ping { from { transform: scale(1); opacity: 0.8; } to { transform: scale(1.6); opacity: 0; } }
.wa-bubble { position: fixed; right: 96px; bottom: 32px; z-index: 90; max-width: 250px; background: #fff; color: var(--ink); padding: 14px 38px 14px 16px; border-radius: 10px 10px 2px 10px; font-size: 14.5px; line-height: 1.4; box-shadow: var(--shadow); opacity: 0; transform: translateY(10px); pointer-events: none; transition: opacity 0.35s, transform 0.35s var(--ease); }
.wa-bubble.is-on { opacity: 1; transform: none; pointer-events: auto; }
.wa-bubble b { display: block; font-size: 13px; color: #128c4b; margin-bottom: 2px; }
.wa-bubble button { position: absolute; right: 6px; top: 6px; width: 26px; height: 26px; border: 0; background: none; cursor: pointer; color: var(--ink-muted); font-size: 18px; line-height: 1; }
.quickbar { display: none; }
@media (max-width: 760px) {
  .wa-float { display: none; }
  .wa-bubble { display: none; }
  .quickbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; display: grid; grid-template-columns: 1fr 1fr 1.3fr; background: rgba(11, 14, 19, 0.96); backdrop-filter: blur(10px); border-top: 1px solid var(--line-2); padding: 8px 8px calc(8px + env(safe-area-inset-bottom)); gap: 8px; transform: translateY(110%); transition: transform 0.4s var(--ease); }
  .quickbar.is-on { transform: none; }
  .quickbar a { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; border-radius: var(--radius); font: 600 14px/1 var(--font-head); letter-spacing: 0.08em; text-transform: uppercase; border: 1px solid var(--line-2); }
  .quickbar a svg { width: 18px; height: 18px; }
  .quickbar .qb-wa { background: var(--whatsapp); border-color: var(--whatsapp); color: #062b14; }
  .quickbar .qb-quote { background: var(--blue); border-color: var(--blue); color: #fff; }
  body { padding-bottom: 0; }
  .site-footer { padding-bottom: 100px; }
}
.to-top { position: fixed; right: 30px; bottom: 100px; z-index: 89; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); background: rgba(15, 19, 25, 0.8); color: var(--text); display: grid; place-items: center; cursor: pointer; opacity: 0; visibility: hidden; transition: opacity 0.3s, visibility 0.3s, background 0.2s; }
.to-top.is-on { opacity: 1; visibility: visible; }
.to-top:hover { background: var(--blue); }
.to-top svg { width: 18px; height: 18px; }
@media (max-width: 760px) { .to-top { display: none; } }

/* ---------- Reveal animations ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(34px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); transition-delay: var(--d, 0s); }
.js [data-reveal="left"] { transform: translateX(-40px); }
.js [data-reveal="right"] { transform: translateX(40px); }
.js [data-reveal="zoom"] { transform: scale(0.94); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js .split-words .w { display: inline-block; overflow: hidden; vertical-align: top; }
.js .split-words .w > span { display: inline-block; transform: translateY(105%); transition: transform 0.9s var(--ease); transition-delay: calc(var(--i) * 0.06s); }
.js .split-words.is-in .w > span { transform: none; }

/* ---------- Page transition veil ---------- */
/* Fades out on its own (no JS needed); main.js only fades it back in when leaving for another page */
.veil { position: fixed; inset: 0; z-index: 400; background: var(--bg); display: grid; place-items: center; pointer-events: none; animation: veil-out 0.3s ease forwards; }
.veil img { width: 70px; }
@keyframes veil-out { to { opacity: 0; visibility: hidden; } }
.is-leaving .veil { animation: veil-in 0.18s ease forwards; }
@keyframes veil-in { from { opacity: 0; visibility: visible; } to { opacity: 1; visibility: visible; } }

/* ---------- Misc ---------- */
.badge-row { display: flex; flex-wrap: wrap; gap: 10px; }
.badge { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 100px; background: var(--blue-soft); color: var(--blue-2); font: 500 12px/1 var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; }
.badge--live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(47, 191, 113, 0.6); animation: live 1.8s infinite; }
@keyframes live { 70% { box-shadow: 0 0 0 10px rgba(47, 191, 113, 0); } 100% { box-shadow: 0 0 0 0 rgba(47, 191, 113, 0); } }
.strip { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.strip button { padding: 0; border: 0; aspect-ratio: 1; overflow: hidden; border-radius: 3px; cursor: zoom-in; background: var(--surface); }
.strip img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.strip button:hover img { transform: scale(1.08); }
@media (max-width: 700px) { .strip { grid-template-columns: repeat(3, 1fr); } }
.note-box { border-left: 3px solid var(--blue); background: var(--blue-soft); padding: 18px 22px; border-radius: 0 var(--radius) var(--radius) 0; color: var(--text); font-size: 15.5px; }
.center { text-align: center; }
.mt-l { margin-top: 50px; }
.mt-m { margin-top: 30px; }
.err-page { min-height: 100vh; display: grid; place-items: center; text-align: center; padding: 120px var(--gutter) 60px; }
.err-page .h-xl { color: var(--blue); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .js [data-reveal], .js .split-words .w > span { opacity: 1; transform: none; }
  .ticker-track { animation: none; }
}
