/* ==========================================================================
   Zulhaiqal Resources — Design System
   Electrical · Civil · Mechanical · Supply · Cleaning
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --ink: #0a1026;
  --ink-2: #101a33;
  --ink-3: #1b2749;
  --ink-4: #2a3960;
  --red: #e11d2e;
  --red-2: #b3121f;
  --red-soft: rgba(225, 29, 46, 0.12);
  --amber: #f5b41a;
  --paper: #f6f8fc;
  --paper-2: #eef2f9;
  --line: #e2e8f2;
  --text: #1d2436;
  --muted: #5c6885;
  --white: #fff;

  --font-display: "Sora", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --radius: 20px;
  --radius-sm: 12px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(10, 16, 38, 0.05), 0 6px 18px -10px rgba(10, 16, 38, 0.18);
  --shadow-md: 0 2px 4px rgba(10, 16, 38, 0.04), 0 18px 40px -20px rgba(10, 16, 38, 0.25);
  --shadow-lg: 0 30px 70px -30px rgba(10, 16, 38, 0.45);

  --gutter: clamp(18px, 4vw, 32px);
  --section-y: clamp(64px, 8vw, 112px);
  --nav-h: 74px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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; }
button { cursor: pointer; background: none; border: 0; }
ul, ol { list-style: none; }

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-wrap: balance;
}

p { text-wrap: pretty; }

::selection { background: var(--red); color: #fff; }

:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container--wide { max-width: 1360px; }

.section { padding-block: var(--section-y); position: relative; }
.section--paper { background: var(--paper); }
.section--ink { background: var(--ink); color: rgba(255, 255, 255, 0.78); }
.section--flush { padding-bottom: 0; }

.blueprint {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(120% 90% at 50% 0%, #000 40%, transparent 85%);
  -webkit-mask-image: radial-gradient(120% 90% at 50% 0%, #000 40%, transparent 85%);
}

.section--ink > .container { position: relative; z-index: 1; }

.skip-link {
  position: absolute;
  left: 16px; top: -80px;
  z-index: 999;
  background: var(--ink);
  color: #fff;
  padding: 12px 20px;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  font-weight: 600;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 0; }

.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;
}

/* ---------- Typography helpers ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red);
}
.eyebrow::before {
  content: "";
  width: 26px; height: 2px;
  background: currentColor;
  border-radius: 2px;
}
.section--ink .eyebrow { color: #ff6b78; }

.h1 { font-size: clamp(2.3rem, 5.2vw, 4rem); font-weight: 800; }
.h2 { font-size: clamp(1.75rem, 3.4vw, 2.65rem); font-weight: 700; }
.h3 { font-size: clamp(1.15rem, 1.8vw, 1.4rem); }

.lead {
  font-size: clamp(1rem, 1.4vw, 1.12rem);
  color: var(--muted);
  max-width: 62ch;
}
.section--ink .lead { color: rgba(255, 255, 255, 0.72); }

.section-head { margin-bottom: clamp(36px, 5vw, 58px); max-width: 760px; }
.section-head .h2 { margin-top: 14px; }
.section-head p { margin-top: 16px; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow::before { display: none; }
.section-head--center .lead { margin-inline: auto; }

.accent { color: var(--red); }
.section--ink h2, .section--ink h3, .section--ink h4 { color: #fff; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: var(--radius-pill);
  border: 1.5px solid transparent;
  font-weight: 600;
  font-size: 0.94rem;
  line-height: 1.2;
  letter-spacing: 0.01em;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  will-change: transform;
}
.btn i { font-size: 0.92em; }
.btn:hover { transform: translateY(-2px); }

.btn--primary {
  background: var(--red);
  color: #fff;
  box-shadow: 0 12px 26px -12px rgba(225, 29, 46, 0.75);
}
.btn--primary:hover { background: var(--red-2); box-shadow: 0 18px 34px -14px rgba(225, 29, 46, 0.8); }

.btn--ink { background: var(--ink); color: #fff; }
.btn--ink:hover { background: var(--ink-3); }

.btn--ghost {
  border-color: rgba(255, 255, 255, 0.32);
  color: #fff;
}
.btn--ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }

.btn--outline {
  border-color: var(--line);
  color: var(--ink);
  background: #fff;
}
.btn--outline:hover { border-color: var(--ink); }

.btn--sm { padding: 10px 18px; font-size: 0.85rem; }
.btn--block { width: 100%; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--ink);
  border-bottom: 1.5px solid transparent;
  transition: color 0.2s, border-color 0.2s, gap 0.2s;
}
.link-arrow i { transition: transform 0.2s; font-size: 0.8em; color: var(--red); }
.link-arrow:hover { color: var(--red); border-color: var(--red); }
.link-arrow:hover i { transform: translateX(4px); }
.section--ink .link-arrow { color: #fff; }

/* ---------- Top bar ---------- */
.topbar {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.78rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 38px;
  flex-wrap: wrap;
}
.topbar__group { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.topbar__group span, .topbar__group a { display: inline-flex; align-items: center; gap: 8px; }
.topbar i { color: var(--red); font-size: 0.85em; }
.topbar a:hover { color: #fff; }
.topbar__tag {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-pill);
  padding: 2px 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.68rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.86);
}

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.25s ease, background 0.25s ease;
}
.site-header.is-stuck { box-shadow: 0 10px 30px -22px rgba(10, 16, 38, 0.5); }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: var(--nav-h);
}

.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand__mark {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: linear-gradient(150deg, var(--ink-3), var(--ink));
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1), 0 8px 18px -10px rgba(10, 16, 38, 0.9);
  position: relative;
}
.brand__mark::after {
  content: "";
  position: absolute;
  right: -3px; bottom: 8px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 3px rgba(225, 29, 46, 0.18);
}
.brand__text strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.brand__text small {
  display: block;
  font-size: 0.63rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  margin-top: 3px;
}

.nav__links { display: flex; align-items: center; gap: 4px; }
.nav__links a {
  position: relative;
  display: block;
  padding: 9px 13px;
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  font-weight: 500;
  color: #38415c;
  transition: color 0.18s ease, background 0.18s ease;
}
.nav__links a:hover { color: var(--ink); background: var(--paper); }
.nav__links a[aria-current="page"] { color: var(--ink); background: var(--paper); font-weight: 600; }
.nav__links a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 50%; bottom: 2px;
  width: 16px; height: 2px;
  transform: translateX(-50%);
  background: var(--red);
  border-radius: 2px;
}

.nav__actions { display: flex; align-items: center; gap: 10px; }

.lang {
  display: inline-flex;
  padding: 3px;
  gap: 2px;
  border-radius: var(--radius-pill);
  background: var(--paper);
  border: 1px solid var(--line);
}
.lang button {
  border-radius: var(--radius-pill);
  padding: 5px 11px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--muted);
  transition: all 0.18s ease;
}
.lang button.is-active { background: var(--ink); color: #fff; }

.nav__toggle {
  display: none;
  width: 44px; height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  place-items: center;
  font-size: 1.05rem;
  color: var(--ink);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--ink);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(75% 65% at 78% 18%, rgba(225, 29, 46, 0.4), transparent 62%),
    radial-gradient(60% 60% at 8% 92%, rgba(42, 57, 96, 0.85), transparent 70%);
  z-index: -1;
}
.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(36px, 5vw, 72px);
  align-items: center;
  padding-block: clamp(56px, 7vw, 96px) clamp(64px, 8vw, 104px);
  position: relative;
  z-index: 1;
}
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 16px 7px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
}
.hero__badge b {
  display: grid;
  place-items: center;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  font-size: 0.66rem;
}
.hero h1 {
  color: #fff;
  font-size: clamp(2.35rem, 4.9vw, 3.9rem);
  font-weight: 800;
  margin: 22px 0 20px;
  letter-spacing: -0.035em;
}
.hero h1 em {
  font-style: normal;
  color: #fff;
  background: linear-gradient(100deg, #ff5f6c, var(--red));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero__lead {
  font-size: clamp(1rem, 1.35vw, 1.1rem);
  color: rgba(255, 255, 255, 0.75);
  max-width: 56ch;
}
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }

.hero__stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 42px;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.hero__stats b {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.2vw, 1.7rem);
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
}
.hero__stats span {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  font-weight: 500;
}

.hero__media { position: relative; }
.hero__frame {
  position: relative;
  border-radius: 26px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.14);
  aspect-ratio: 4 / 3.35;
  background: linear-gradient(150deg, var(--ink-3), var(--ink));
}
.hero__frame img { width: 100%; height: 100%; object-fit: cover; }
.hero__frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(200deg, rgba(10, 16, 38, 0.1) 30%, rgba(10, 16, 38, 0.72));
}
.hero__chip {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--ink);
  box-shadow: 0 18px 40px -20px rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(10px);
}
.hero__chip i {
  display: grid; place-items: center;
  width: 34px; height: 34px;
  border-radius: 10px;
  background: var(--red-soft);
  color: var(--red);
  font-size: 0.9rem;
}
.hero__chip strong { display: block; font-size: 0.82rem; line-height: 1.25; }
.hero__chip small { display: block; font-size: 0.7rem; color: var(--muted); }
.hero__chip--tl { top: 20px; left: -14px; }
.hero__chip--br { bottom: 24px; right: -12px; }

/* ---------- Trust strip ---------- */
.trust {
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.trust__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px 34px;
  flex-wrap: wrap;
  padding-block: 22px;
}
.trust__label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  max-width: 190px;
  line-height: 1.6;
}
.trust__list {
  display: flex;
  align-items: center;
  gap: 12px 30px;
  flex-wrap: wrap;
}
.trust__item {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-4);
}
.trust__item i { color: var(--red); font-size: 0.95rem; }

/* ---------- Grids ---------- */
.grid { display: grid; gap: 20px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid--split { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(32px, 5vw, 64px); align-items: center; }

/* ---------- Cards ---------- */
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  position: relative;
  overflow: hidden;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #cfd8e8; }

.card__icon {
  display: grid;
  place-items: center;
  width: 52px; height: 52px;
  border-radius: 14px;
  background: linear-gradient(150deg, var(--ink-3), var(--ink));
  color: #fff;
  font-size: 1.15rem;
  margin-bottom: 20px;
  box-shadow: 0 12px 24px -14px rgba(10, 16, 38, 0.9);
}
.card h3 { margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 0.94rem; }
.card__list { margin-top: 18px; display: grid; gap: 8px; }
.card__list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.88rem;
  color: #3c465f;
}
.card__list i { color: var(--red); font-size: 0.72rem; margin-top: 6px; }

/* Service card variant */
.svc {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  position: relative;
  overflow: hidden;
}
.svc::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--red), var(--amber));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}
.svc:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: #cfd8e8; }
.svc:hover::before { transform: scaleX(1); }
.svc__icon {
  display: grid;
  place-items: center;
  width: 54px; height: 54px;
  border-radius: 15px;
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--red);
  font-size: 1.2rem;
  margin-bottom: 20px;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}
.svc:hover .svc__icon { background: var(--ink); color: #fff; border-color: var(--ink); }
.svc h3 { font-size: 1.08rem; margin-bottom: 8px; }
.svc p { font-size: 0.9rem; color: var(--muted); flex: 1; }
.svc__meta {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
  font-family: var(--font-mono);
  font-size: 0.69rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Numbered feature rows ---------- */
.feature {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 18px;
  padding: 22px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.feature:last-child { border-bottom: 0; }
.feature__num {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--red);
  padding-top: 3px;
}
.feature h3 { font-size: 1.05rem; margin-bottom: 6px; }
.feature p { font-size: 0.92rem; color: rgba(255, 255, 255, 0.66); }

/* ---------- About split ---------- */
.media-frame {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 4 / 3.2;
  background: var(--paper-2);
}
.media-frame img { width: 100%; height: 100%; object-fit: cover; }
.media-frame--tall { aspect-ratio: 3 / 3.4; }

.badge-card {
  position: absolute;
  left: 18px; right: 18px; bottom: 18px;
  background: rgba(10, 16, 38, 0.9);
  backdrop-filter: blur(10px);
  border-radius: 14px;
  border-left: 3px solid var(--red);
  padding: 16px 18px;
  color: #fff;
}
.badge-card strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin-bottom: 3px;
}
.badge-card span { font-size: 0.78rem; color: rgba(255, 255, 255, 0.66); }

.mini-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 26px; }
.mini {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: var(--paper);
  border: 1px solid var(--line);
}
.mini i { color: var(--red); margin-top: 4px; font-size: 0.95rem; }
.mini strong { display: block; font-size: 0.86rem; color: var(--ink); line-height: 1.4; }
.mini span { font-size: 0.76rem; color: var(--muted); }

/* ---------- Stats band ---------- */
.stats-band {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.stats-band > div {
  background: #fff;
  padding: 26px 22px;
}
.stats-band b {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  color: var(--ink);
  letter-spacing: -0.03em;
}
.stats-band span {
  display: block;
  margin-top: 6px;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Project cards ---------- */
.proj {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.proj:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.proj__media {
  position: relative;
  aspect-ratio: 16 / 10;
  background:
    radial-gradient(120% 120% at 20% 15%, rgba(225, 29, 46, 0.25), transparent 60%),
    linear-gradient(150deg, var(--ink-3), var(--ink));
  overflow: hidden;
}
.proj__media img { width: 100%; height: 100%; object-fit: cover; }
.proj__media::after {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
  opacity: 0.8;
}
.proj__media--image::after { background: linear-gradient(180deg, transparent 55%, rgba(10, 16, 38, 0.55)); background-size: auto; }
.proj__ph {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.9);
  text-align: center;
  padding: 20px;
}
.proj__ph i { font-size: 1.6rem; color: #fff; opacity: 0.9; }
.proj__ph span {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}
.proj__year {
  position: absolute;
  z-index: 2;
  top: 14px; left: 14px;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(8px);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  color: #fff;
  font-weight: 600;
}
.proj__body { padding: 24px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.proj__body h3 { font-size: 1.06rem; line-height: 1.35; }
.proj__body p { font-size: 0.9rem; color: var(--muted); flex: 1; }
.proj__foot {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--muted);
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.proj__foot i { color: var(--red); }

.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags span {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--ink-4);
}

/* ---------- Filters ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filters button {
  padding: 9px 18px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  background: #fff;
  font-size: 0.85rem;
  font-weight: 500;
  color: #3c465f;
  transition: all 0.18s ease;
}
.filters button:hover { border-color: #c3cee2; color: var(--ink); }
.filters button.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

/* ---------- Gallery ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.shot {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background:
    radial-gradient(120% 120% at 25% 20%, rgba(225, 29, 46, 0.22), transparent 65%),
    linear-gradient(150deg, var(--ink-3), var(--ink));
  cursor: zoom-in;
  border: 1px solid var(--line);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.shot:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.45s ease; }
.shot:hover img { transform: scale(1.05); }
.shot figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 30px 14px 13px;
  background: linear-gradient(transparent, rgba(8, 13, 30, 0.92));
  color: #fff;
  font-size: 0.8rem;
  line-height: 1.45;
  font-weight: 500;
}
.shot figcaption small {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #ff8a94;
  margin-bottom: 4px;
}
.shot__ph {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.5);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  pointer-events: none;
  padding-bottom: 34px;
  text-align: center;
}
.shot__ph i { font-size: 1.3rem; opacity: 0.65; }
.shot.is-empty img { display: none; }
.shot.is-empty { cursor: default; }
.shot:not(.is-empty) .shot__ph { display: none; }

/* Lightbox */
.lb {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 16px;
  padding: 48px 20px;
  background: rgba(6, 10, 24, 0.94);
  backdrop-filter: blur(8px);
}
.lb.is-open { display: flex; }
.lb img { max-width: min(960px, 92vw); max-height: 72vh; border-radius: 12px; object-fit: contain; box-shadow: var(--shadow-lg); }
.lb__cap { color: #fff; font-size: 0.92rem; text-align: center; max-width: 640px; }
.lb__count { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.16em; color: rgba(255, 255, 255, 0.5); }
.lb__btn {
  position: absolute;
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  transition: background 0.18s ease;
}
.lb__btn:hover { background: var(--red); }
.lb__close { top: 20px; right: 20px; }
.lb__prev, .lb__next { top: 50%; transform: translateY(-50%); }
.lb__prev { left: 16px; }
.lb__next { right: 16px; }

/* ---------- Process timeline ---------- */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; counter-reset: step; }
.step {
  position: relative;
  padding: 26px 22px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: background 0.25s, border-color 0.25s, transform 0.25s;
}
.step:hover { background: rgba(255, 255, 255, 0.07); border-color: rgba(225, 29, 46, 0.5); transform: translateY(-4px); }
.step::before {
  counter-increment: step;
  content: "0" counter(step);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  color: var(--red);
  display: block;
  margin-bottom: 14px;
}
.step h3 { color: #fff; font-size: 1rem; margin-bottom: 8px; }
.step p { color: rgba(255, 255, 255, 0.64); font-size: 0.87rem; }

/* ---------- WordPress menu & editor content ---------- */
.nav__links > ul {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav__links > ul li { list-style: none; }
.nav .menu-item-has-children > a::before { content: none; }

.entry-content { font-size: 1rem; color: var(--muted); }
.entry-content > * + * { margin-top: 1.1em; }
.entry-content h2, .entry-content h3, .entry-content h4 {
  color: var(--ink);
  margin-top: 1.6em;
}
.entry-content h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.entry-content h3 { font-size: 1.2rem; }
.entry-content a { color: var(--red); text-decoration: underline; text-underline-offset: 3px; }
.entry-content ul, .entry-content ol { padding-left: 1.3em; }
.entry-content ul { list-style: disc; }
.entry-content ol { list-style: decimal; }
.entry-content li + li { margin-top: 0.4em; }
.entry-content blockquote {
  border-left: 3px solid var(--red);
  padding: 4px 0 4px 20px;
  font-size: 1.05rem;
  color: var(--ink);
}
.entry-content img { border-radius: var(--radius-sm); height: auto; }
.entry-content table { width: 100%; border-collapse: collapse; }
.entry-content th, .entry-content td {
  border: 1px solid var(--line);
  padding: 10px 12px;
  text-align: left;
}
.entry-content th { background: var(--paper); color: var(--ink); }

/* ---------- Page hero ---------- */
.page-hero {
  position: relative;
  background: var(--ink);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(60% 80% at 85% 0%, rgba(225, 29, 46, 0.35), transparent 65%),
    radial-gradient(70% 70% at 0% 100%, rgba(42, 57, 96, 0.9), transparent 70%);
}
.page-hero__inner { position: relative; z-index: 1; padding-block: clamp(44px, 6vw, 76px); }
.page-hero .eyebrow { color: #ff6b78; }
.page-hero h1 { color: #fff; margin: 16px 0 14px; max-width: 22ch; }
.page-hero p { color: rgba(255, 255, 255, 0.74); max-width: 62ch; }

.crumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 4px;
}
.crumbs a:hover { color: #fff; }
.crumbs i { font-size: 0.6rem; opacity: 0.6; }
.crumbs [aria-current] { color: #fff; }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  overflow: hidden;
  background: linear-gradient(115deg, var(--ink) 0%, var(--ink-3) 55%, #3a1220 100%);
  color: #fff;
  border-radius: 0;
}
.cta-band__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 34px;
  flex-wrap: wrap;
  padding-block: clamp(44px, 6vw, 72px);
  position: relative;
  z-index: 1;
}
.cta-band h2 { color: #fff; max-width: 24ch; }
.cta-band p { color: rgba(255, 255, 255, 0.72); margin-top: 12px; max-width: 56ch; }
.cta-band__actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 26px; align-items: start; }

.form-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(24px, 3vw, 36px);
  box-shadow: var(--shadow-sm);
}
.form-card h2 { font-size: 1.45rem; }
.form-card > p { color: var(--muted); font-size: 0.92rem; margin-top: 8px; }

.field { margin-bottom: 16px; }
.field label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 7px;
  letter-spacing: 0.01em;
}
.field label .req { color: var(--red); }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1.5px solid var(--line);
  border-radius: 11px;
  background: #fff;
  font-size: 0.92rem;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.field textarea { min-height: 128px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 4px var(--red-soft);
}
.field input:user-invalid, .field textarea:user-invalid { border-color: #d33; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-note { font-size: 0.76rem; color: var(--muted); margin-top: 12px; text-align: center; }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; overflow: hidden; }

.form-status {
  display: none;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  border-radius: 12px;
  font-size: 0.88rem;
  margin-bottom: 18px;
  line-height: 1.55;
}
.form-status.is-visible { display: flex; }
.form-status--ok { background: #e9f8ef; border: 1px solid #b7e4c7; color: #14532d; }
.form-status--err { background: #fdecec; border: 1px solid #f6c2c2; color: #7f1d1d; }
.form-status i { margin-top: 3px; }

.info-list { display: grid; gap: 12px; }
.info-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.info-item:hover { border-color: #cfd8e8; transform: translateX(3px); }
.info-item__icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 42px; height: 42px;
  border-radius: 11px;
  background: var(--ink);
  color: #fff;
  font-size: 0.95rem;
}
.info-item h3 {
  font-family: var(--font-mono);
  font-size: 0.67rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
  margin-bottom: 4px;
}
.info-item p, .info-item a { font-size: 0.92rem; font-weight: 500; color: var(--ink); line-height: 1.55; }
.info-item a:hover { color: var(--red); }
.info-item small { display: block; font-weight: 400; color: var(--muted); font-size: 0.8rem; }

.map-card {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  background: #fff;
}
.map-card iframe { width: 100%; height: 400px; border: 0; display: block; filter: saturate(0.92); }
.map-card__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding: 16px 20px;
  border-top: 1px solid var(--line);
  font-size: 0.86rem;
  color: var(--muted);
}
.map-card__bar strong { color: var(--ink); display: block; font-size: 0.9rem; }

/* ---------- Certifications ---------- */
.cert {
  padding: 24px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  transition: background 0.25s, border-color 0.25s, transform 0.25s;
}
.cert:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(225, 29, 46, 0.55); transform: translateY(-3px); }
.cert i { color: var(--red); font-size: 1.3rem; margin-bottom: 14px; display: block; }
.cert h3 { color: #fff; font-size: 1rem; margin-bottom: 4px; }
.cert p { font-size: 0.82rem; color: rgba(255, 255, 255, 0.62); }
.cert small {
  display: block;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.75);
}

/* ---------- Profile ---------- */
.profile-card {
  border-radius: var(--radius);
  padding: 30px 26px;
  background: linear-gradient(160deg, var(--ink-3), var(--ink));
  color: #fff;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.profile-card::before {
  content: "";
  position: absolute;
  right: -40px; top: -40px;
  width: 180px; height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(225, 29, 46, 0.35), transparent 65%);
}
.profile-card__avatar {
  width: 74px; height: 74px;
  border-radius: 20px;
  display: grid; place-items: center;
  background: linear-gradient(150deg, var(--red), var(--red-2));
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 18px;
  box-shadow: 0 14px 30px -14px rgba(225, 29, 46, 0.9);
}
.profile-card h3 { color: #fff; font-size: 1.1rem; line-height: 1.3; }
.profile-card__role { font-size: 0.8rem; color: rgba(255, 255, 255, 0.6); margin-top: 4px; }
.profile-card dl { margin-top: 20px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, 0.12); display: grid; gap: 10px; }
.profile-card dt { font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255, 255, 255, 0.45); }
.profile-card dd { font-size: 0.85rem; color: rgba(255, 255, 255, 0.85); line-height: 1.5; }

.quals { display: grid; gap: 12px; margin-top: 24px; }
.qual {
  border-left: 3px solid var(--red);
  background: var(--paper);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 16px 20px;
}
.qual strong { display: block; font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-bottom: 4px; }
.qual span { font-size: 0.92rem; color: var(--ink); font-weight: 500; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(255, 255, 255, 0.6); padding-top: clamp(48px, 6vw, 72px); }
.site-footer .brand__text strong { color: #fff; }
.site-footer .brand__text small { color: rgba(255, 255, 255, 0.45); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.15fr;
  gap: 34px;
  padding-bottom: 44px;
}
.footer-col h3 {
  color: #fff;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 18px;
  font-family: var(--font-mono);
}
.footer-col p { font-size: 0.88rem; line-height: 1.75; }
.footer-col ul { display: grid; gap: 9px; }
.footer-col li { font-size: 0.88rem; }
.footer-col a:hover { color: #fff; }
.footer-col .contact-line { display: flex; gap: 10px; align-items: flex-start; font-size: 0.88rem; }
.footer-col .contact-line i { color: var(--red); margin-top: 5px; font-size: 0.85rem; flex-shrink: 0; }

.socials { display: flex; gap: 8px; margin-top: 20px; }
.socials a {
  display: grid;
  place-items: center;
  width: 36px; height: 36px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 0.85rem;
  transition: all 0.2s ease;
}
.socials a:hover { background: var(--red); border-color: var(--red); transform: translateY(-2px); }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-block: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 0.8rem;
}
.footer-bottom strong { color: rgba(255, 255, 255, 0.85); }
.footer-bottom .bumi { color: var(--amber); font-size: 0.76rem; letter-spacing: 0.04em; }

/* ---------- Floating actions ---------- */
.floaters { position: fixed; right: 18px; bottom: 18px; z-index: 95; display: flex; flex-direction: column; gap: 10px; }
.floater {
  display: grid;
  place-items: center;
  width: 50px; height: 50px;
  border-radius: 16px;
  color: #fff;
  font-size: 1.1rem;
  box-shadow: 0 14px 30px -12px rgba(10, 16, 38, 0.6);
  transition: transform 0.2s ease, background 0.2s ease;
}
.floater:hover { transform: translateY(-3px) scale(1.03); }
.floater--wa { background: #25d366; }
.floater--call { background: var(--red); }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer-grid > .footer-col:last-child { grid-column: 1 / -1; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 960px) {
  :root { --nav-h: 68px; }

  .nav__links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 14px var(--gutter) 22px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px -30px rgba(10, 16, 38, 0.6);
  }
  .nav__links.is-open { display: flex; }
  .nav__links > ul { flex-direction: column; align-items: stretch; gap: 2px; width: 100%; }
  .nav__links a { padding: 12px 14px; font-size: 0.95rem; border-radius: var(--radius-sm); }
  .nav__links a[aria-current="page"]::after { display: none; }
  .nav__links .btn { margin-top: 10px; }
  .nav { position: relative; }
  .nav__toggle { display: grid; }
  .nav__actions .btn--primary { display: none; }

  .hero__inner { grid-template-columns: 1fr; gap: 40px; }
  .hero__media { order: 2; }
  .hero__chip--tl { left: 10px; }
  .hero__chip--br { right: 10px; }
  .grid--split { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .page-hero h1 { max-width: none; }
  .media-frame--tall { aspect-ratio: 4 / 3; }
}

@media (max-width: 720px) {
  .topbar__group--right { display: none; }
  .topbar__inner { justify-content: center; }
  .hero__stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 8px; }
  .stats-band { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .mini-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-grid > .footer-col:first-child { grid-column: 1 / -1; }
  .trust__inner { justify-content: flex-start; }
  .trust__label { max-width: none; }
  .cta-band__actions .btn { width: 100%; }
  .lb__prev { left: 8px; }
  .lb__next { right: 8px; }
  .floaters { right: 12px; bottom: 12px; }
  .floater { width: 46px; height: 46px; border-radius: 14px; }
}

@media (max-width: 480px) {
  .brand__text small { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .gallery { gap: 10px; }
  .shot figcaption { font-size: 0.72rem; padding: 24px 10px 10px; }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .topbar, .floaters, .site-footer, .cta-band { display: none; }
  body { color: #000; }
}

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- AI assistant ---------- */
.zr-ai__launch {
  position: relative;
  flex: none;
  width: 50px;
  height: 50px;
  padding: 0;
  background: linear-gradient(150deg, var(--ink-3), var(--ink));
  border: 0;
  cursor: pointer;
}
.zr-ai__launch.is-on { background: linear-gradient(150deg, var(--red), #a30f1d); }
.zr-ai__launch::after {
  content: "";
  position: absolute;
  top: 7px; right: 7px;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 3px rgba(245, 180, 26, 0.28);
}
.zr-ai__launch.is-on::after { display: none; }
.zr-ai__launch--fixed { position: fixed; right: 18px; bottom: 140px; z-index: 96; }

.zr-ai {
  position: fixed;
  z-index: 130;
  right: 18px;
  bottom: 144px;
  width: 372px;
  max-width: calc(100vw - 24px);
  height: min(560px, calc(100vh - 190px));
  display: flex;
  flex-direction: column;
  border-radius: 20px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 40px 90px -40px rgba(10, 16, 38, 0.65), 0 10px 30px -18px rgba(10, 16, 38, 0.4);
  opacity: 0;
  transform: translateY(14px) scale(0.98);
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease;
}
.zr-ai.is-open { opacity: 1; transform: none; pointer-events: auto; }

.zr-ai__head {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 13px 14px;
  background: linear-gradient(140deg, var(--ink-3), var(--ink));
  color: #fff;
}
.zr-ai__avatar {
  display: grid;
  place-items: center;
  width: 36px; height: 36px;
  border-radius: 12px;
  background: linear-gradient(150deg, var(--red), #a30f1d);
  font-size: 0.95rem;
  flex: none;
}
.zr-ai__titles { display: grid; gap: 2px; line-height: 1.2; min-width: 0; }
.zr-ai__titles strong { font-family: var(--font-display, Sora, sans-serif); font-size: 0.92rem; font-weight: 700; }
.zr-ai__titles small { font-size: 0.68rem; color: rgba(255, 255, 255, 0.6); letter-spacing: 0.02em; }
.zr-ai__close {
  margin-left: auto;
  width: 30px; height: 30px;
  border-radius: 9px;
  border: 0;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  cursor: pointer;
  flex: none;
}
.zr-ai__close:hover { background: rgba(255, 255, 255, 0.24); }

.zr-ai__log {
  flex: 1;
  overflow-y: auto;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(225, 29, 46, 0.05), transparent 60%),
    #f7f8fc;
  scrollbar-width: thin;
}
.zr-ai__msg { display: flex; }
.zr-ai__msg--bot { justify-content: flex-start; }
.zr-ai__msg--user { justify-content: flex-end; }
.zr-ai__bubble {
  max-width: 86%;
  padding: 10px 12px;
  border-radius: 14px;
  font-size: 0.85rem;
  line-height: 1.5;
  word-break: break-word;
}
.zr-ai__bubble p { margin: 0 0 7px; }
.zr-ai__bubble p:last-child { margin-bottom: 0; }
.zr-ai__msg--bot .zr-ai__bubble {
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink);
  border-bottom-left-radius: 5px;
}
.zr-ai__msg--user .zr-ai__bubble {
  background: linear-gradient(150deg, var(--ink-3), var(--ink));
  color: #fff;
  border-bottom-right-radius: 5px;
}
.zr-ai__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.zr-ai__cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 13px;
  border-radius: 999px;
  background: #25d366;
  color: #06210f;
  font-size: 0.78rem;
  font-weight: 600;
}
.zr-ai__dots { display: inline-flex; gap: 4px; padding: 3px 2px; }
.zr-ai__dots i {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--muted);
  animation: zr-blink 1.2s infinite ease-in-out;
}
.zr-ai__dots i:nth-child(2) { animation-delay: 0.16s; }
.zr-ai__dots i:nth-child(3) { animation-delay: 0.32s; }
@keyframes zr-blink { 0%, 80%, 100% { opacity: 0.3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-2px); } }

.zr-ai__chips {
  display: flex;
  gap: 7px;
  padding: 10px 12px 4px;
  overflow-x: auto;
  scrollbar-width: none;
  background: #fff;
}
.zr-ai__chips::-webkit-scrollbar { display: none; }
.zr-ai__chip {
  flex: none;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #f7f8fc;
  color: var(--ink);
  font-size: 0.76rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.zr-ai__chip:hover { border-color: var(--red); background: rgba(225, 29, 46, 0.06); }

.zr-ai__form {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px 4px;
  background: #fff;
}
.zr-ai__input {
  flex: 1;
  min-width: 0;
  padding: 11px 13px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #f7f8fc;
  color: var(--ink);
  font-size: 0.86rem;
  font-family: inherit;
}
.zr-ai__input:focus { outline: 2px solid rgba(225, 29, 46, 0.35); outline-offset: 1px; border-color: var(--red); background: #fff; }
.zr-ai__send {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  border-radius: 12px;
  border: 0;
  background: linear-gradient(150deg, var(--red), #a30f1d);
  color: #fff;
  cursor: pointer;
  flex: none;
}
.zr-ai__send:disabled { opacity: 0.5; cursor: progress; }
.zr-ai__note {
  margin: 0;
  padding: 2px 14px 11px;
  font-size: 0.66rem;
  line-height: 1.4;
  color: var(--muted);
  background: #fff;
}

@media (max-width: 560px) {
  .zr-ai {
    right: 10px;
    left: 10px;
    bottom: 10px;
    width: auto;
    height: min(76vh, 560px);
  }
  .zr-ai__bubble { max-width: 92%; }
}

/* ---------- Documents & licences ---------- */
.docs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}
.doc {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.doc:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: rgba(225, 29, 46, 0.35); }
.doc__thumb {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  padding: 8px;
  background: linear-gradient(160deg, #f2f4fa, #e7eaf3);
  border-bottom: 1px solid var(--line);
}
.doc__thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 6px 16px -10px rgba(10, 16, 38, 0.45);
  transition: transform 0.3s ease;
}
.doc:hover .doc__thumb img { transform: scale(1.02); }
.doc__zoom {
  position: absolute;
  right: 12px; bottom: 12px;
  display: grid;
  place-items: center;
  width: 30px; height: 30px;
  border-radius: 9px;
  background: var(--ink);
  color: #fff;
  font-size: 0.72rem;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.22s ease, transform 0.22s ease;
}
.doc:hover .doc__zoom { opacity: 1; transform: none; }
.doc__body { display: grid; gap: 5px; padding: 13px 14px 15px; }
.doc__body small {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  font-weight: 500;
}
.doc__body strong { font-size: 0.9rem; line-height: 1.35; font-weight: 600; color: var(--ink); }
.doc__body > span { font-size: 0.76rem; color: var(--muted); line-height: 1.4; }
.docs__note {
  margin: 20px 0 0;
  font-size: 0.76rem;
  line-height: 1.6;
  color: var(--muted);
  max-width: 720px;
}

@media (max-width: 560px) {
  .docs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .doc__body { padding: 11px 11px 13px; }
  .doc__body strong { font-size: 0.82rem; }
}

/* ---------- Privacy / legal pages ---------- */
.legal { max-width: 820px; }
.legal__block { padding: 26px 0; border-bottom: 1px solid var(--line); }
.legal__block:first-of-type { padding-top: 22px; }
.legal__block:last-child { border-bottom: 0; padding-bottom: 0; }
.legal__block h2 { font-size: 1.05rem; color: var(--ink); margin-bottom: 10px; letter-spacing: -0.01em; }
.legal__block p { color: var(--muted); font-size: 0.95rem; line-height: 1.75; }
.legal__block p + p { margin-top: 10px; }
.legal__block ul { margin: 12px 0 0; padding-left: 20px; display: grid; gap: 8px; }
.legal__block li { color: var(--muted); font-size: 0.93rem; line-height: 1.7; list-style: disc; }
.legal__block li::marker { color: var(--red); }
.legal__block a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
.legal__block a:hover { color: var(--red); }
.legal__meta { font-size: 0.8rem; color: var(--muted); }
.legal__toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 6px; }
.legal__toc a { font-size: 0.78rem; padding: 6px 12px; border: 1px solid var(--line); border-radius: var(--radius-pill); color: var(--muted); }
.legal__toc a:hover { border-color: var(--ink); color: var(--ink); }
@media (max-width: 640px) { .legal__block { padding: 20px 0; } }
