/* ==========================================================================
   S-TRADIX — Design system
   Direction: "Tidal Precision" — deep maritime ink, editorial type, hairline
   rules, and the blue→red stripe of the S mark as the signature accent.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --ink-950: #040b14;
  --ink-900: #07162a;
  --ink-850: #0a1d33;
  --ink-800: #0e2540;
  --ink-700: #173556;
  --line-dark: rgba(201, 214, 230, 0.14);
  --line-dark-strong: rgba(201, 214, 230, 0.28);

  --paper: #f5f3ef;
  --paper-2: #ece8e1;
  --line-light: rgba(7, 22, 42, 0.12);

  --text-on-dark: #e9eef5;
  --muted-on-dark: #a7b6c8;
  --text-on-light: #0b1a2c;
  --muted-on-light: #4c5b6e;

  --blue-300: #7ccdf6;
  --blue-400: #4fb1ec;
  --blue-500: #2f80d6;
  --blue-700: #1d4f8f;
  --red-500: #d2303e;
  --red-600: #b5212f;
  --red-700: #8f1424;

  --signature: linear-gradient(90deg, var(--blue-300) 0%, var(--blue-500) 42%, var(--red-500) 100%);

  --font-display: "Archivo", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;

  --container: 1280px;
  --gutter: clamp(20px, 4.2vw, 56px);
  --section-y: clamp(72px, 10vw, 148px);
  --radius-sm: 6px;
  --radius: 14px;
  --radius-lg: 22px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --shadow-lg: 0 30px 80px -30px rgba(2, 8, 18, 0.65);
  --shadow-card: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 24px 60px -32px rgba(0, 0, 0, 0.7);

  --header-h: 76px;
  color-scheme: dark;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--ink-900);
  color: var(--text-on-dark);
  font-family: var(--font-body);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  line-height: 1.65;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, video, svg, iframe { display: block; max-width: 100%; }
img, video { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
::selection { background: var(--blue-500); color: #fff; }

@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 0.35s; animation-timing-function: var(--ease-in-out); }

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

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 200;
  background: #fff; color: var(--ink-900); padding: 10px 16px; border-radius: var(--radius-sm); font-weight: 600;
}
.skip-link:focus { top: 12px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); position: relative; }
.section--tight { padding-block: clamp(56px, 7vw, 96px); }
.section--light { background: var(--paper); color: var(--text-on-light); color-scheme: light; }
.section--light-2 { background: var(--paper-2); color: var(--text-on-light); color-scheme: light; }
.section--ink { background: var(--ink-950); }
.section--deep { background: var(--ink-850); }

/* ---------- Typography ---------- */
.display, h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.02em; line-height: 1.05; font-stretch: 100%; }
.display-xl { font-size: clamp(2.6rem, 1.4rem + 5.4vw, 6.4rem); font-weight: 600; letter-spacing: -0.035em; line-height: 0.98; font-stretch: 108%; }
.display-l { font-size: clamp(2.1rem, 1.3rem + 3.4vw, 4.2rem); letter-spacing: -0.03em; font-stretch: 104%; }
.display-m { font-size: clamp(1.7rem, 1.2rem + 2vw, 2.75rem); letter-spacing: -0.025em; }
.title-s { font-size: clamp(1.2rem, 1.05rem + 0.6vw, 1.5rem); letter-spacing: -0.015em; line-height: 1.2; }
.lead { font-size: clamp(1.08rem, 1rem + 0.45vw, 1.3rem); line-height: 1.6; color: var(--muted-on-dark); max-width: 62ch; }
.section--light .lead, .section--light-2 .lead { color: var(--muted-on-light); }
.muted { color: var(--muted-on-dark); }
.section--light .muted, .section--light-2 .muted { color: var(--muted-on-light); }
.prose p + p { margin-top: 1em; }
.prose p { max-width: 68ch; }
.accent-text { background: var(--signature); -webkit-background-clip: text; background-clip: text; color: transparent; }
.thin { font-weight: 300; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-display); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--blue-300);
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--signature); border-radius: 2px; }
.section--light .eyebrow, .section--light-2 .eyebrow { color: var(--blue-700); }

.section-head { display: grid; gap: 20px; margin-bottom: clamp(40px, 5vw, 72px); }
.section-head--split { grid-template-columns: 1fr; align-items: end; }
@media (min-width: 900px) { .section-head--split { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 48px; } }
.section-index { font-family: var(--font-display); font-size: 0.8rem; letter-spacing: 0.14em; color: var(--muted-on-dark); }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: transparent; --btn-fg: currentColor; --btn-bd: currentColor;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: 999px;
  font-family: var(--font-display); font-weight: 600; font-size: 0.95rem; letter-spacing: 0.01em;
  background: var(--btn-bg); color: var(--btn-fg); border: 1px solid var(--btn-bd);
  transition: background-color 0.3s var(--ease-out), color 0.3s var(--ease-out), border-color 0.3s var(--ease-out), transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
  white-space: nowrap; isolation: isolate; overflow: hidden;
}
.btn svg { width: 18px; height: 18px; transition: transform 0.35s var(--ease-out); flex: none; }
.btn:hover svg { transform: translateX(4px); }
.btn:active { transform: translateY(1px) scale(0.99); }
.btn-primary { --btn-bg: var(--red-500); --btn-fg: #fff; --btn-bd: var(--red-500); box-shadow: 0 14px 34px -14px rgba(210, 48, 62, 0.7); }
.btn-primary:hover { --btn-bg: var(--red-600); --btn-bd: var(--red-600); box-shadow: 0 18px 40px -14px rgba(210, 48, 62, 0.85); }
.btn-light { --btn-bg: #fff; --btn-fg: var(--ink-900); --btn-bd: #fff; }
.btn-light:hover { --btn-bg: var(--paper-2); --btn-bd: var(--paper-2); }
.btn-ghost { --btn-bd: var(--line-dark-strong); --btn-fg: var(--text-on-dark); }
.btn-ghost:hover { --btn-bg: rgba(255, 255, 255, 0.08); --btn-bd: rgba(255, 255, 255, 0.5); }
.section--light .btn-ghost, .section--light-2 .btn-ghost { --btn-bd: rgba(7, 22, 42, 0.25); --btn-fg: var(--text-on-light); }
.section--light .btn-ghost:hover, .section--light-2 .btn-ghost:hover { --btn-bg: rgba(7, 22, 42, 0.06); --btn-bd: rgba(7, 22, 42, 0.5); }
.btn-dark { --btn-bg: var(--ink-900); --btn-fg: #fff; --btn-bd: var(--ink-900); }
.btn-dark:hover { --btn-bg: var(--ink-700); --btn-bd: var(--ink-700); }
.btn-sm { min-height: 42px; padding: 0 18px; font-size: 0.88rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 600; font-size: 0.95rem;
  background-image: linear-gradient(currentColor, currentColor); background-size: 0 1px; background-repeat: no-repeat; background-position: 0 100%;
  transition: background-size 0.4s var(--ease-out); padding-bottom: 2px;
}
.link-arrow svg { width: 16px; height: 16px; transition: transform 0.35s var(--ease-out); }
.link-arrow:hover { background-size: 100% 1px; }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h);
  transition: background-color 0.4s var(--ease-out), border-color 0.4s var(--ease-out), backdrop-filter 0.4s, transform 0.45s var(--ease-out);
  border-bottom: 1px solid transparent;
}
.site-header.is-solid, .site-header.is-open, body:not(.has-hero) .site-header {
  background: rgba(6, 18, 34, 0.82);
  -webkit-backdrop-filter: saturate(160%) blur(18px); backdrop-filter: saturate(160%) blur(18px);
  border-bottom-color: var(--line-dark);
}
.site-header.is-hidden { transform: translateY(-100%); }
.header-bar { height: 100%; display: flex; align-items: center; gap: 28px; }

.brand { display: inline-flex; align-items: center; gap: 12px; flex: none; }
.brand img { width: 42px; height: 42px; object-fit: contain; filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.35)); }
.brand-word { display: grid; line-height: 1; font-family: var(--font-display); font-weight: 700; font-size: 1.12rem; letter-spacing: 0.16em; font-stretch: 112%; }
.brand-word small { font-size: 0.58rem; font-weight: 500; letter-spacing: 0.42em; color: var(--muted-on-dark); margin-top: 5px; font-stretch: 100%; }

.primary-nav { margin-inline: auto; display: none; }
.primary-nav > ul { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.primary-nav a, .nav-trigger {
  position: relative; display: inline-flex; align-items: center; gap: 6px; height: 42px; padding: 0 16px; border-radius: 999px;
  font-family: var(--font-display); font-size: 0.93rem; font-weight: 500; color: var(--text-on-dark);
  transition: background-color 0.25s, color 0.25s;
}
.primary-nav a:hover, .nav-trigger:hover, .nav-trigger[aria-expanded="true"] { background: rgba(255, 255, 255, 0.08); }
.primary-nav a[aria-current="page"]::after, .nav-trigger.is-current::after {
  content: ""; position: absolute; left: 16px; right: 16px; bottom: 6px; height: 2px; border-radius: 2px; background: var(--signature);
}
.nav-trigger svg { width: 12px; height: 12px; transition: transform 0.3s var(--ease-out); }
.nav-trigger[aria-expanded="true"] svg { transform: rotate(180deg); }

.header-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.header-actions .btn { display: none; }

@media (min-width: 1100px) {
  .primary-nav { display: block; }
  .header-actions { margin-left: 0; }
  .header-actions .btn { display: inline-flex; }
  .menu-toggle { display: none !important; }
}

/* Mega menu */
.has-mega { position: static; }
.mega {
  position: absolute; left: 0; right: 0; top: calc(var(--header-h) - 1px);
  background: rgba(6, 18, 34, 0.97); -webkit-backdrop-filter: blur(22px); backdrop-filter: blur(22px);
  border-top: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark);
  box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity 0.3s var(--ease-out), transform 0.35s var(--ease-out), visibility 0s linear 0.3s;
}
.mega.is-open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.mega-inner { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; padding-block: 36px 40px; }
.mega-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 24px; list-style: none; padding: 0; margin: 0; }
.primary-nav .mega-list a { display: grid; grid-template-columns: 44px 1fr; gap: 4px 16px; height: auto; padding: 14px 16px; border-radius: var(--radius); align-items: start; }
.mega-list a::after { display: none; }
.mega-list a:hover { background: rgba(255, 255, 255, 0.06); }
.mega-num { grid-row: span 2; font-family: var(--font-display); font-size: 0.8rem; color: var(--blue-300); padding-top: 3px; letter-spacing: 0.08em; }
.mega-list strong { font-family: var(--font-display); font-weight: 600; font-size: 1rem; }
.mega-list span:last-child { font-size: 0.86rem; color: var(--muted-on-dark); font-family: var(--font-body); font-weight: 400; line-height: 1.45; }
.primary-nav .mega-feature { height: auto; position: relative; border-radius: var(--radius-lg); overflow: hidden; min-height: 280px; display: flex; align-items: flex-end; padding: 24px; font-weight: 400; isolation: isolate; }
.mega-feature img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.2s var(--ease-out); }
.mega-feature::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(4, 11, 20, 0.05) 30%, rgba(4, 11, 20, 0.92)); }
.mega-feature:hover img { transform: scale(1.05); }
.mega-feature p { font-size: 0.9rem; color: var(--muted-on-dark); margin-top: 6px; }

/* Menu toggle + mobile nav */
.menu-toggle { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line-dark-strong); display: inline-grid; place-content: center; gap: 6px; }
.menu-toggle span { display: block; width: 18px; height: 1.5px; background: currentColor; transition: transform 0.35s var(--ease-out); }
.menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.75px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.75px) rotate(-45deg); }

.mobile-nav {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 99; overflow-y: auto;
  background: var(--ink-950); padding: 24px var(--gutter) 40px;
  display: flex; flex-direction: column; gap: 28px;
  opacity: 0; transform: translateY(-10px); transition: opacity 0.35s var(--ease-out), transform 0.4s var(--ease-out);
}
.mobile-nav[hidden] { display: none; }
.mobile-nav.is-open { opacity: 1; transform: none; }
.mobile-nav ul { list-style: none; margin: 0; padding: 0; }
.mobile-nav > ul > li { border-bottom: 1px solid var(--line-dark); }
.mobile-nav > ul > li > a { display: flex; justify-content: space-between; align-items: center; padding: 18px 0; font-family: var(--font-display); font-size: 1.6rem; font-weight: 600; letter-spacing: -0.02em; }
.mobile-nav > ul > li > a[aria-current="page"] { color: var(--blue-300); }
.mobile-sub { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 16px; padding: 0 0 18px; }
.mobile-sub a { font-size: 0.95rem; color: var(--muted-on-dark); padding: 6px 0; }
.mobile-nav .btn { width: 100%; }
.mobile-contact { display: grid; gap: 6px; font-size: 0.95rem; color: var(--muted-on-dark); }
body.nav-locked { overflow: hidden; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: min(100svh, 980px); display: flex; align-items: flex-end; isolation: isolate; overflow: hidden; background: var(--ink-950); }
.hero-media, .hero-media picture, .hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-media { z-index: -2; }
.hero-media img { object-fit: cover; }
.hero-slide { opacity: 0; transition: opacity 1.6s var(--ease-in-out); }
.hero-slide.is-active { opacity: 1; }
.hero-slide.is-active img { animation: kenburns 12s var(--ease-out) both; }
@keyframes kenburns { from { transform: scale(1.1); } to { transform: scale(1.0); } }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(4, 11, 20, 0.7) 0%, rgba(4, 11, 20, 0.15) 28%, rgba(4, 11, 20, 0.35) 55%, rgba(4, 11, 20, 0.96) 100%),
    linear-gradient(90deg, rgba(4, 11, 20, 0.9) 0%, rgba(4, 11, 20, 0.72) 38%, rgba(4, 11, 20, 0.2) 72%, rgba(4, 11, 20, 0) 100%);
}
.hero-content { width: 100%; padding-top: calc(var(--header-h) + 80px); padding-bottom: clamp(36px, 5vw, 64px); }
.hero h1 { max-width: 15ch; margin-top: 24px; text-shadow: 0 2px 30px rgba(4, 11, 20, 0.45); }
.hero .lead { margin-top: 26px; color: #c9d5e3; }
.hero .btn-row { margin-top: 38px; }
.hero-footer { margin-top: clamp(48px, 7vw, 96px); display: grid; gap: 24px; border-top: 1px solid var(--line-dark-strong); padding-top: 24px; }
@media (min-width: 900px) { .hero-footer { grid-template-columns: 1fr auto; align-items: center; } }
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px 32px; font-size: 0.9rem; color: var(--muted-on-dark); }
.hero-meta strong { color: var(--text-on-dark); font-weight: 600; font-family: var(--font-display); }
.hero-dots { display: flex; gap: 10px; align-items: center; }
.hero-dot { width: 46px; height: 28px; position: relative; }
.hero-dot::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; background: rgba(255, 255, 255, 0.25); border-radius: 2px; }
.hero-dot::after { content: ""; position: absolute; left: 0; top: 50%; height: 2px; width: 0; background: #fff; border-radius: 2px; }
.hero-dot[aria-current="true"]::after { animation: dotfill var(--slide-ms, 7000ms) linear forwards; }
.hero.is-paused .hero-dot[aria-current="true"]::after { animation-play-state: paused; }
@keyframes dotfill { to { width: 100%; } }
.hero-pause { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line-dark-strong); display: inline-grid; place-content: center; margin-left: 6px; }
.hero-pause svg { width: 12px; height: 12px; }

/* Inner page hero */
.page-hero { position: relative; isolation: isolate; padding-top: calc(var(--header-h) + clamp(64px, 9vw, 130px)); padding-bottom: clamp(56px, 7vw, 100px); overflow: hidden; background: var(--ink-950); }
.page-hero-media { position: absolute; inset: 0; z-index: -2; }
.page-hero-media img { width: 100%; height: 100%; object-fit: cover; opacity: 0.42; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(4, 11, 20, 0.85), rgba(4, 11, 20, 0.55) 45%, var(--ink-900) 100%); }
.page-hero h1 { margin-top: 22px; max-width: 18ch; }
.page-hero .lead { margin-top: 24px; }
.breadcrumb { display: flex; gap: 10px; list-style: none; padding: 0; margin: 0 0 8px; font-size: 0.85rem; color: var(--muted-on-dark); }
.breadcrumb li + li::before { content: "/"; margin-right: 10px; opacity: 0.5; }
.breadcrumb a:hover { color: #fff; }

/* Signature rule */
.sig-rule { height: 2px; background: var(--signature); border: 0; margin: 0; width: 100%; opacity: 0.9; }

/* ---------- Credentials strip ---------- */
.credentials { border-block: 1px solid var(--line-dark); background: var(--ink-950); }
.credentials-inner { display: grid; gap: 20px; align-items: center; padding-block: 28px; }
@media (min-width: 900px) { .credentials-inner { grid-template-columns: 260px 1fr; } }
.credentials p { font-size: 0.85rem; color: var(--muted-on-dark); letter-spacing: 0.02em; }
.badge-row { display: flex; flex-wrap: wrap; gap: 14px; justify-content: flex-start; list-style: none; padding: 0; margin: 0; }
@media (min-width: 900px) { .badge-row { justify-content: flex-end; } }
.badge-row li { width: 70px; height: 70px; border-radius: 14px; background: #fff; padding: 6px; display: grid; place-items: center; box-shadow: 0 10px 30px -18px rgba(0, 0, 0, 0.8); transition: transform 0.4s var(--ease-out); }
.badge-row li:hover { transform: translateY(-4px); }
.badge-row img { width: 100%; height: 100%; object-fit: contain; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line-dark); }
@media (min-width: 900px) { .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.stat { padding: 32px 24px 8px 0; border-bottom: 1px solid var(--line-dark); }
@media (min-width: 900px) { .stat { border-bottom: 0; padding-right: 32px; } .stat + .stat { border-left: 1px solid var(--line-dark); padding-left: 32px; } }
@media (max-width: 899px) { .stat:nth-child(even) { padding-left: 20px; border-left: 1px solid var(--line-dark); } }
.stat-value { font-family: var(--font-display); font-size: clamp(2.6rem, 1.8rem + 3vw, 4.4rem); font-weight: 500; letter-spacing: -0.04em; line-height: 1; font-stretch: 110%; font-variant-numeric: tabular-nums; }
.stat-value sup { font-size: 0.45em; vertical-align: super; margin-left: 2px; color: var(--blue-300); }
.stat-label { margin-top: 14px; font-family: var(--font-display); font-weight: 600; font-size: 0.95rem; }
.stat-note { margin-top: 6px; font-size: 0.88rem; color: var(--muted-on-dark); padding-bottom: 24px; }
.section--light .stats, .section--light .stat, .section--light .stat + .stat { border-color: var(--line-light); }
.section--light .stat-note { color: var(--muted-on-light); }
.section--light .stat-value sup { color: var(--blue-700); }

/* ---------- Service grid (home) ---------- */
.service-grid { display: grid; gap: 16px; grid-template-columns: 1fr; list-style: none; margin: 0; padding: 0; }
@media (min-width: 700px) { .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) {
  .service-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-rows: 300px; }
  .service-grid > li:nth-child(1) { grid-column: span 7; grid-row: span 2; }
  .service-grid > li:nth-child(2) { grid-column: span 5; }
  .service-grid > li:nth-child(3) { grid-column: span 5; }
  .service-grid > li:nth-child(4) { grid-column: span 4; }
  .service-grid > li:nth-child(5) { grid-column: span 4; }
  .service-grid > li:nth-child(6) { grid-column: span 4; }
}
.service-card {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end; height: 100%; min-height: 320px;
  padding: clamp(22px, 2.4vw, 32px); border-radius: var(--radius-lg); overflow: hidden; isolation: isolate;
  background: var(--ink-800); box-shadow: var(--shadow-card);
}
.service-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transform: scale(1.02); transition: transform 1.1s var(--ease-out), filter 0.6s; filter: saturate(0.9); }
.service-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(4, 11, 20, 0.08) 0%, rgba(4, 11, 20, 0.45) 45%, rgba(4, 11, 20, 0.95) 100%); transition: opacity 0.5s; }
.service-card::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--signature); transform: scaleX(0); transform-origin: left; transition: transform 0.6s var(--ease-out); }
.service-card:hover img, .service-card:focus-visible img { transform: scale(1.08); filter: saturate(1.05); }
.service-card:hover::after, .service-card:focus-visible::after { transform: scaleX(1); }
.service-card .num { position: absolute; top: clamp(22px, 2.4vw, 30px); left: clamp(22px, 2.4vw, 32px); font-family: var(--font-display); font-size: 0.8rem; letter-spacing: 0.14em; color: rgba(255, 255, 255, 0.8); }
.service-card .arrow { position: absolute; top: clamp(18px, 2vw, 24px); right: clamp(18px, 2vw, 24px); width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.35); display: grid; place-items: center; transition: background-color 0.4s, border-color 0.4s, transform 0.5s var(--ease-out); }
.service-card .arrow svg { width: 18px; height: 18px; transform: rotate(-45deg); transition: transform 0.5s var(--ease-out); }
.service-card:hover .arrow { background: #fff; color: var(--ink-900); border-color: #fff; }
.service-card:hover .arrow svg { transform: rotate(0); }
.service-card h3 { font-size: clamp(1.35rem, 1.1rem + 0.9vw, 1.9rem); }
.service-card p { margin-top: 10px; color: #c3cfdd; font-size: 0.95rem; max-width: 46ch; }
.service-grid > li:first-child .service-card h3 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.6rem); }

/* ---------- Split feature ---------- */
.split { display: grid; gap: clamp(36px, 5vw, 80px); align-items: center; }
@media (min-width: 960px) { .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .split--reverse > :first-child { order: 2; } }
.media-frame { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.media-frame img { width: 100%; height: 100%; object-fit: cover; }
.media-frame--tall { aspect-ratio: 4 / 5; }
.media-frame--wide { aspect-ratio: 16 / 11; }
.media-tag { position: absolute; left: 18px; bottom: 18px; display: inline-flex; gap: 10px; align-items: center; padding: 10px 16px; border-radius: 999px; background: rgba(4, 11, 20, 0.72); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); font-size: 0.82rem; color: #fff; border: 1px solid rgba(255, 255, 255, 0.14); }
.media-tag::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--red-500); box-shadow: 0 0 0 4px rgba(210, 48, 62, 0.25); }

.checklist { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 0; }
.checklist li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line-dark); }
.checklist li:last-child { border-bottom: 1px solid var(--line-dark); }
.section--light .checklist li, .section--light-2 .checklist li { border-color: var(--line-light); }
.checklist svg { width: 20px; height: 20px; margin-top: 3px; color: var(--blue-400); }
.section--light .checklist svg, .section--light-2 .checklist svg { color: var(--blue-700); }
.checklist strong { font-family: var(--font-display); font-weight: 600; }

@media (min-width: 640px) { .checklist--2col { grid-template-columns: 1fr 1fr; column-gap: 28px; } .checklist--2col li:nth-last-child(2) { border-bottom: 1px solid var(--line-dark); } }
.section--light .checklist--2col li:nth-last-child(2) { border-color: var(--line-light); }

/* ---------- Value pillars ---------- */
.pillars { display: grid; gap: 1px; background: var(--line-light); border: 1px solid var(--line-light); border-radius: var(--radius-lg); overflow: hidden; list-style: none; padding: 0; margin: 0; }
@media (min-width: 700px) { .pillars { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .pillars { grid-template-columns: repeat(5, 1fr); } }
.pillar { background: var(--paper); padding: 30px 26px 34px; display: grid; gap: 14px; align-content: start; transition: background-color 0.35s; }
.pillar:hover { background: #fff; }
.pillar-icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--ink-900); color: var(--blue-300); }
.pillar-icon svg { width: 22px; height: 22px; }
.pillar h3 { font-size: 1.12rem; letter-spacing: -0.01em; }
.pillar p { font-size: 0.93rem; color: var(--muted-on-light); }

/* ---------- Work / projects ---------- */
.work-grid { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); list-style: none; padding: 0; margin: 0; }
@media (min-width: 900px) { .work-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } .work-grid > li:nth-child(1), .work-grid > li:nth-child(4) { grid-column: span 2; } }
.work-tile { position: relative; display: block; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; background: var(--ink-800); width: 100%; text-align: left; }
.work-grid > li:nth-child(1) .work-tile, .work-grid > li:nth-child(4) .work-tile { aspect-ratio: auto; height: 100%; min-height: 100%; }
@media (max-width: 899px) { .work-grid > li:nth-child(1) { grid-column: span 2; } .work-grid > li:nth-child(1) .work-tile { aspect-ratio: 16 / 9; } .work-grid > li:nth-child(4) .work-tile { aspect-ratio: 4 / 3; } }
.work-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-out); }
.work-tile:hover img, .work-tile:focus-visible img { transform: scale(1.06); }
.work-tile figcaption, .work-tile .caption { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 18px 16px; background: linear-gradient(180deg, transparent, rgba(4, 11, 20, 0.88)); font-family: var(--font-display); font-size: 0.95rem; font-weight: 600; color: #fff; }
.work-tile .caption small { display: block; font-family: var(--font-body); font-weight: 400; font-size: 0.8rem; color: var(--muted-on-dark); margin-top: 2px; }

/* ---------- Locations ---------- */
.locations { display: grid; gap: 16px; list-style: none; padding: 0; margin: 0; }
@media (min-width: 800px) { .locations { grid-template-columns: repeat(3, 1fr); } }
.location { position: relative; padding: 30px 28px; border-radius: var(--radius-lg); border: 1px solid var(--line-dark); background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0)); display: grid; gap: 10px; align-content: start; transition: border-color 0.4s, transform 0.5s var(--ease-out); }
.location:hover { border-color: var(--line-dark-strong); transform: translateY(-4px); }
.location .region { font-family: var(--font-display); font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--blue-300); }
.location h3 { font-size: 1.5rem; }
.location address { font-style: normal; color: var(--muted-on-dark); font-size: 0.95rem; }
.location .tel { display: grid; gap: 2px; margin-top: 8px; font-size: 0.95rem; }
.location .tel a:hover { color: var(--blue-300); }
.location-flag { position: absolute; top: 26px; right: 26px; font-family: var(--font-display); font-weight: 700; font-size: 0.78rem; letter-spacing: 0.1em; color: var(--muted-on-dark); border: 1px solid var(--line-dark); border-radius: 6px; padding: 4px 8px; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; isolation: isolate; border-radius: clamp(18px, 2.4vw, 32px); padding: clamp(40px, 6vw, 88px); background: var(--ink-800); }
.cta-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(70% 120% at 100% 0%, rgba(47, 128, 214, 0.45), transparent 60%), radial-gradient(60% 90% at 0% 100%, rgba(210, 48, 62, 0.35), transparent 60%); }
.cta-band::after { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(var(--line-dark) 1px, transparent 1px), linear-gradient(90deg, var(--line-dark) 1px, transparent 1px); background-size: 56px 56px; mask-image: radial-gradient(80% 80% at 70% 30%, #000, transparent 75%); -webkit-mask-image: radial-gradient(80% 80% at 70% 30%, #000, transparent 75%); opacity: 0.6; }
.cta-band-inner { display: grid; gap: 32px; align-items: end; }
@media (min-width: 960px) { .cta-band-inner { grid-template-columns: 1.4fr auto; } }

/* ---------- Service detail (services page) ---------- */
.service-nav { position: sticky; top: var(--header-h); z-index: 50; background: rgba(7, 22, 42, 0.92); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border-bottom: 1px solid var(--line-dark); }
.service-nav ul { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; list-style: none; margin: 0; padding: 10px 0; }
.service-nav ul::-webkit-scrollbar { display: none; }
.service-nav a { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; height: 40px; padding: 0 16px; border-radius: 999px; font-family: var(--font-display); font-size: 0.88rem; font-weight: 500; color: var(--muted-on-dark); transition: color 0.25s, background-color 0.25s; }
.service-nav a span { font-size: 0.72rem; opacity: 0.7; }
.service-nav a:hover { color: #fff; }
.service-nav a.is-active { color: var(--ink-900); background: #fff; }

.service-block { display: grid; gap: clamp(32px, 4vw, 72px); align-items: start; }
@media (min-width: 1000px) { .service-block { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); } .service-block--reverse .service-block-media { order: 2; } }
.service-block-media { position: relative; }
@media (min-width: 1000px) { .service-block-media { position: sticky; top: calc(var(--header-h) + 90px); } }
.service-block-num { font-family: var(--font-display); font-size: clamp(4rem, 3rem + 5vw, 8rem); font-weight: 300; line-height: 0.8; letter-spacing: -0.05em; font-stretch: 112%; background: var(--signature); -webkit-background-clip: text; background-clip: text; color: transparent; opacity: 0.95; }
.service-block h2 { margin-top: 18px; }
.service-block .prose { margin-top: 22px; color: var(--muted-on-dark); }
.section--light .service-block .prose, .section--light-2 .service-block .prose { color: var(--muted-on-light); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 26px 0 0; }
.chips li { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-dark-strong); font-size: 0.86rem; }
.section--light .chips li, .section--light-2 .chips li { border-color: rgba(7, 22, 42, 0.2); background: rgba(255, 255, 255, 0.6); }

/* ---------- Team ---------- */
.team-grid { display: grid; gap: 28px 20px; grid-template-columns: repeat(2, minmax(0, 1fr)); list-style: none; padding: 0; margin: 0; }
@media (min-width: 800px) { .team-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .team-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.member figure { display: grid; gap: 14px; }
.member-photo { aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; background: var(--paper-2); position: relative; }
.member-photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(0.35) contrast(1.02); transition: filter 0.6s, transform 0.9s var(--ease-out); }
.member:hover .member-photo img { filter: none; transform: scale(1.04); }
.member-photo::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--signature); transform: scaleX(0); transform-origin: left; transition: transform 0.6s var(--ease-out); }
.member:hover .member-photo::after { transform: scaleX(1); }
.member figcaption strong { display: block; font-family: var(--font-display); font-weight: 600; font-size: 1.02rem; }
.member figcaption span { font-size: 0.86rem; color: var(--muted-on-light); }

/* ---------- Gallery ---------- */
.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.filter-bar button { height: 40px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line-dark-strong); font-family: var(--font-display); font-size: 0.88rem; font-weight: 500; color: var(--muted-on-dark); transition: all 0.25s; }
.filter-bar button:hover { color: #fff; border-color: rgba(255, 255, 255, 0.5); }
.filter-bar button[aria-pressed="true"] { background: #fff; color: var(--ink-900); border-color: #fff; }
.masonry { columns: 1; column-gap: 16px; list-style: none; padding: 0; margin: 0; }
@media (min-width: 640px) { .masonry { columns: 2; } }
@media (min-width: 1100px) { .masonry { columns: 3; } }
.masonry > li { break-inside: avoid; margin-bottom: 16px; }
.masonry > li[hidden] { display: none; }
.masonry .work-tile { aspect-ratio: auto; }
.masonry .work-tile img { height: auto; }
.video-badge { position: absolute; top: 14px; left: 14px; display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 8px; border-radius: 999px; background: rgba(4, 11, 20, 0.7); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); font-size: 0.78rem; font-weight: 600; color: #fff; }
.video-badge svg { width: 18px; height: 18px; }
.play-ring { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.play-ring span { width: 76px; height: 76px; border-radius: 50%; background: rgba(255, 255, 255, 0.92); color: var(--ink-900); display: grid; place-items: center; box-shadow: 0 18px 40px -12px rgba(0, 0, 0, 0.6); transition: transform 0.5s var(--ease-out); }
.play-ring svg { width: 24px; height: 24px; margin-left: 4px; }
.work-tile:hover .play-ring span { transform: scale(1.08); }

.lightbox { width: min(1200px, 94vw); max-height: 92vh; padding: 0; border: 0; border-radius: var(--radius-lg); background: var(--ink-950); color: #fff; overflow: hidden; box-shadow: var(--shadow-lg); }
.lightbox::backdrop { background: rgba(2, 6, 12, 0.88); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.lightbox[open] { animation: lbIn 0.45s var(--ease-out); }
@keyframes lbIn { from { opacity: 0; transform: translateY(14px) scale(0.98); } }
.lightbox-body { display: grid; place-items: center; background: #000; }
.lightbox-body img, .lightbox-body video { max-height: calc(92vh - 64px); width: auto; max-width: 100%; }
.lightbox-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 12px 12px 20px; min-height: 64px; }
.lightbox-bar p { font-family: var(--font-display); font-weight: 600; font-size: 0.95rem; }
.lightbox-controls { display: flex; gap: 6px; }
.icon-btn { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-dark-strong); display: grid; place-items: center; transition: background-color 0.25s; }
.icon-btn:hover { background: rgba(255, 255, 255, 0.1); }
.icon-btn svg { width: 18px; height: 18px; }

/* ---------- Contact ---------- */
.contact-layout { display: grid; gap: clamp(32px, 4vw, 64px); align-items: start; }
@media (min-width: 1000px) { .contact-layout { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); } }
.contact-aside { display: grid; gap: 28px; }
.contact-channel { display: grid; grid-template-columns: 48px 1fr; gap: 16px; padding: 20px 0; border-top: 1px solid var(--line-light); }
.contact-channel:last-child { border-bottom: 1px solid var(--line-light); }
.contact-channel .ico { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: var(--ink-900); color: var(--blue-300); }
.contact-channel .ico svg { width: 20px; height: 20px; }
.contact-channel h3 { font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted-on-light); font-weight: 600; }
.contact-channel a, .contact-channel p { font-family: var(--font-display); font-weight: 500; font-size: 1.05rem; }
.contact-channel a:hover { color: var(--blue-700); }
.contact-channel ul { list-style: none; padding: 0; margin: 4px 0 0; display: grid; gap: 2px; }
.contact-channel li small { font-family: var(--font-body); color: var(--muted-on-light); font-size: 0.82rem; margin-left: 8px; font-weight: 400; }

.form-card { background: #fff; color: var(--text-on-light); border-radius: var(--radius-lg); padding: clamp(24px, 3.6vw, 48px); box-shadow: 0 40px 80px -50px rgba(7, 22, 42, 0.5); border: 1px solid var(--line-light); }
.form-grid { display: grid; gap: 18px; }
@media (min-width: 700px) { .form-grid { grid-template-columns: 1fr 1fr; } .form-grid .span-2 { grid-column: span 2; } }
.field { display: grid; gap: 8px; }
.field label { font-size: 0.86rem; font-weight: 600; color: var(--text-on-light); }
.field label .req { color: var(--red-600); margin-left: 2px; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 12px 16px; border-radius: 10px; border: 1px solid rgba(7, 22, 42, 0.18); background: #fbfaf8; color: var(--text-on-light);
  transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s; font-size: 1rem;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: rgba(7, 22, 42, 0.35); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue-500); box-shadow: 0 0 0 4px rgba(47, 128, 214, 0.18); background: #fff; }
.field [aria-invalid="true"] { border-color: var(--red-600); box-shadow: 0 0 0 4px rgba(181, 33, 47, 0.12); }
.field-error { font-size: 0.82rem; color: var(--red-600); min-height: 0; }
.field-error:empty { display: none; }
.phone-group { display: grid; grid-template-columns: minmax(120px, 0.42fr) 1fr; gap: 10px; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; margin-top: 8px; }
.form-foot p { font-size: 0.82rem; color: var(--muted-on-light); max-width: 40ch; }
.form-status { margin-top: 18px; padding: 14px 18px; border-radius: 10px; font-size: 0.95rem; font-weight: 500; }
.form-status:empty { display: none; }
.form-status[data-state="success"] { background: #e7f6ee; color: #11603a; border: 1px solid #b9e3cb; }
.form-status[data-state="error"] { background: #fdecee; color: #8f1424; border: 1px solid #f3c2c8; }
.btn[aria-busy="true"] { opacity: 0.75; pointer-events: none; }
.btn[aria-busy="true"] svg { animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.map-frame { width: 100%; height: 380px; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line-dark); background: var(--ink-800); position: relative; }
.map-frame iframe { width: 100%; height: 100%; border: 0; filter: grayscale(0.4) contrast(1.05); }
.map-consent { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 16px; text-align: center; padding: 24px; background: radial-gradient(60% 80% at 50% 50%, rgba(47, 128, 214, 0.18), transparent), var(--ink-800); }
.map-consent p { color: var(--muted-on-dark); max-width: 44ch; font-size: 0.95rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink-950); border-top: 1px solid var(--line-dark); padding-top: clamp(64px, 8vw, 112px); position: relative; overflow: hidden; }
.footer-top { display: grid; gap: 40px; padding-bottom: 56px; border-bottom: 1px solid var(--line-dark); }
@media (min-width: 900px) { .footer-top { grid-template-columns: 1.3fr repeat(3, 1fr); gap: 48px; } }
.footer-brand p { margin-top: 20px; color: var(--muted-on-dark); font-size: 0.95rem; max-width: 40ch; }
.footer-col h2 { font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted-on-dark); font-weight: 600; margin-bottom: 18px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: 0.95rem; }
.footer-col a { transition: color 0.2s; }
.footer-col a:hover { color: var(--blue-300); }
.footer-col small { display: block; color: var(--muted-on-dark); font-size: 0.8rem; }
.socials { display: flex; gap: 10px; margin-top: 24px; list-style: none; padding: 0; }
.socials a { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-dark-strong); display: grid; place-items: center; transition: background-color 0.3s, color 0.3s, border-color 0.3s; }
.socials a:hover { background: #fff; color: var(--ink-900); border-color: #fff; }
.socials svg { width: 18px; height: 18px; }
.footer-wordmark { font-family: var(--font-display); font-weight: 700; font-stretch: 125%; letter-spacing: -0.02em; line-height: 0.8; font-size: clamp(3.4rem, 14.5vw, 13.5rem); text-align: center; margin-top: 40px; background: linear-gradient(180deg, rgba(233, 238, 245, 0.16), rgba(233, 238, 245, 0)); -webkit-background-clip: text; background-clip: text; color: transparent; user-select: none; white-space: nowrap; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; padding-block: 24px 32px; font-size: 0.84rem; color: var(--muted-on-dark); }
.footer-bottom a:hover { color: #fff; }

/* ---------- Reveal motion ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease-out), transform 1s var(--ease-out); transition-delay: var(--reveal-delay, 0ms); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }
.js [data-reveal="fade"] { transform: none; }
/* Curtain reveal: an overlay slides away (no clip-path, so lazy images still load) */
.js [data-reveal="clip"] { opacity: 1; transform: none; position: relative; isolation: isolate; }
.js [data-reveal="clip"]::before { content: ""; position: absolute; inset: 0; z-index: 3; background: var(--curtain, var(--ink-900)); transform-origin: 50% 100%; transition: transform 1.1s var(--ease-out); pointer-events: none; }
.section--light [data-reveal="clip"], .section--light-2 [data-reveal="clip"] { --curtain: var(--paper); }
.section--ink [data-reveal="clip"] { --curtain: var(--ink-950); }
.js [data-reveal="clip"] img { transform: scale(1.08); transition: transform 1.6s var(--ease-out); }
.js [data-reveal="clip"].is-visible::before { transform: scaleY(0); }
.js [data-reveal="clip"].is-visible img { transform: none; }

.hero-intro > * { animation: rise 1.1s var(--ease-out) both; }
.hero-intro > :nth-child(2) { animation-delay: 0.12s; }
.hero-intro > :nth-child(3) { animation-delay: 0.24s; }
.hero-intro > :nth-child(4) { animation-delay: 0.36s; }
@keyframes rise { from { opacity: 0; transform: translateY(26px); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .js [data-reveal="clip"]::before { display: none; }
  .js [data-reveal="clip"] img { transform: none; }
  .hero-slide.is-active img { animation: none; }
  @view-transition { navigation: none; }
}

/* ---------- Utilities ---------- */
.mt-s { margin-top: 16px; } .mt-m { margin-top: 28px; } .mt-l { margin-top: 48px; } .mt-xl { margin-top: clamp(56px, 7vw, 96px); }
.center { text-align: center; margin-inline: auto; }
.maxw-60 { max-width: 60ch; }
.grid-2 { display: grid; gap: clamp(28px, 4vw, 64px); }
@media (min-width: 900px) { .grid-2 { grid-template-columns: 1fr 1fr; } }

/* 404 */
.notfound { min-height: 100svh; display: grid; place-items: center; text-align: center; padding: calc(var(--header-h) + 40px) var(--gutter) 60px; }
.notfound .code { font-family: var(--font-display); font-size: clamp(7rem, 24vw, 16rem); font-weight: 300; line-height: 0.85; letter-spacing: -0.06em; font-stretch: 115%; }

@media print {
  .site-header, .mobile-nav, .service-nav, .cta-band, .footer-wordmark, .map-frame { display: none !important; }
  body { background: #fff; color: #000; }
  .section, .page-hero, .hero { padding-block: 24px; background: #fff !important; color: #000 !important; min-height: 0; }
}

/* ---------- Small-screen refinements ---------- */
.form-grid > *, .phone-group > * { min-width: 0; }
.phone-group select { width: 100%; text-overflow: ellipsis; }
@media (max-width: 640px) {
  .btn { white-space: normal; text-align: center; line-height: 1.25; padding-block: 12px; }
  .badge-row { gap: 10px; }
  .badge-row li { width: 58px; height: 58px; border-radius: 12px; padding: 5px; }
}
@media (min-width: 800px) { .map-frame { height: auto; aspect-ratio: 16 / 7; } }
.mega-feature-title { display: block; margin-top: 10px; }
.notfound-actions { justify-content: center; }

/* ---------- Environmental core: sub-service cards ---------- */
.env-grid { display: grid; gap: 16px; grid-template-columns: 1fr; list-style: none; padding: 0; margin: 0; }
@media (min-width: 640px) { .env-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .env-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.env-card { height: 100%; display: flex; flex-direction: column; border-radius: var(--radius-lg); overflow: hidden; background: var(--ink-800); border: 1px solid var(--line-dark); transition: border-color 0.4s, transform 0.5s var(--ease-out), box-shadow 0.5s; }
.env-card:hover { border-color: var(--line-dark-strong); transform: translateY(-4px); box-shadow: var(--shadow-card); }
.env-card-media { position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: var(--ink-700); }
.env-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-out); }
.env-card:hover .env-card-media img { transform: scale(1.06); }
.env-card-media::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--signature); transform: scaleX(0); transform-origin: left; transition: transform 0.6s var(--ease-out); }
.env-card:hover .env-card-media::after { transform: scaleX(1); }
.env-card-body { padding: 22px 22px 26px; display: grid; gap: 8px; align-content: start; }
.env-card-body .num { font-family: var(--font-display); font-size: 0.75rem; letter-spacing: 0.14em; color: var(--blue-300); }
.env-card-body h3 { font-size: 1.18rem; letter-spacing: -0.01em; }
.env-card-body p { font-size: 0.93rem; color: var(--muted-on-dark); }
.section--light .env-card, .section--light-2 .env-card { background: #fff; border-color: var(--line-light); }
.section--light .env-card-body p { color: var(--muted-on-light); }
.section--light .env-card-body .num { color: var(--blue-700); }

/* Assurance strip */
.assurance { display: grid; gap: 1px; grid-template-columns: 1fr; background: var(--line-dark); border: 1px solid var(--line-dark); border-radius: var(--radius-lg); overflow: hidden; list-style: none; padding: 0; margin: 0; }
@media (min-width: 700px) { .assurance { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .assurance { grid-template-columns: repeat(4, 1fr); } }
.assurance li { background: var(--ink-900); padding: 26px 24px; display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; }
.assurance .pillar-icon { background: rgba(79, 177, 236, 0.12); }
.assurance strong { font-family: var(--font-display); font-weight: 600; display: block; }
.assurance span { font-size: 0.9rem; color: var(--muted-on-dark); }

/* Environmental flagship intro */
.env-intro { display: grid; gap: clamp(32px, 4vw, 64px); align-items: center; margin-bottom: clamp(40px, 5vw, 64px); }
@media (min-width: 1000px) { .env-intro { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); } }

/* Five supporting services grid */
@media (min-width: 1100px) {
  .service-grid--support { grid-template-columns: repeat(6, minmax(0, 1fr)); grid-auto-rows: 320px; }
  .service-grid--support > li:nth-child(n) { grid-column: span 2; grid-row: auto; }
  .service-grid--support > li:nth-child(1), .service-grid--support > li:nth-child(2) { grid-column: span 3; }
  .service-grid--support > li:first-child .service-card h3 { font-size: clamp(1.35rem, 1.1rem + 0.9vw, 1.9rem); }
}

/* ---------- Touch screens: comfortable tap targets (44px) ---------- */
@media (pointer: coarse) {
  .location .tel a, .contact-channel a, .contact-channel li a, .link-arrow { display: inline-flex; align-items: center; min-height: 44px; }
  .location .tel { gap: 0; }
  .hero-dot { height: 44px; }
  .footer-col a { display: inline-flex; align-items: center; min-height: 40px; }
  .footer-col ul { gap: 2px; }
}

/* ==========================================================================
   LIGHT THEME — bright canvas with ZORA-style wave lines. Dark is kept for the
   home hero, CTA bands and the footer only.
   ========================================================================== */
:root {
  --paper: #f6f8fb;
  --paper-2: #ffffff;
  --line-light: rgba(7, 22, 42, 0.1);
  --zora-teal: #0f8f82;
  --zora-teal-2: #14b8a6;
  --zora-violet: #7c3aed;
  --zora-grad: linear-gradient(90deg, #0f8f82, #2f80d6 52%, #7c3aed);
  color-scheme: light;
}
body { background: var(--paper); color: var(--text-on-light); }
.section--light { background: var(--paper); }
.section--light-2 { background: #fff; }
.section--waves { background: url("../img/waves-light.svg") center / cover no-repeat, linear-gradient(180deg, #fff, var(--paper)); }
.section--light h1, .section--light h2, .section--light h3, .section--light-2 h1, .section--light-2 h2, .section--light-2 h3 { color: var(--text-on-light); }
.section--light-2 .stats, .section--light-2 .stat, .section--light-2 .stat + .stat { border-color: var(--line-light); }
.section--light-2 .stat-note { color: var(--muted-on-light); }
.section--light-2 .stat-value sup { color: var(--blue-700); }
.section--light-2 .env-card-body p { color: var(--muted-on-light); }
.section--light-2 .env-card-body .num { color: var(--blue-700); }
.section--light .env-card, .section--light-2 .env-card { box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04); }
.section--light .env-card:hover, .section--light-2 .env-card:hover { border-color: rgba(7, 22, 42, 0.2); box-shadow: 0 22px 44px -26px rgba(7, 22, 42, 0.35); }

/* Assurance strip & locations on light */
.section--light .assurance, .section--light-2 .assurance { background: var(--line-light); border-color: var(--line-light); }
.section--light .assurance li, .section--light-2 .assurance li { background: #fff; }
.section--light .assurance span, .section--light-2 .assurance span { color: var(--muted-on-light); }
.section--light .assurance .pillar-icon, .section--light-2 .assurance .pillar-icon { background: rgba(47, 128, 214, 0.1); color: var(--blue-700); }
.section--light .location, .section--light-2 .location { background: #fff; border-color: var(--line-light); box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04); }
.section--light .location:hover, .section--light-2 .location:hover { border-color: rgba(7, 22, 42, 0.22); box-shadow: 0 22px 44px -26px rgba(7, 22, 42, 0.3); }
.section--light .location address, .section--light-2 .location address { color: var(--muted-on-light); }
.section--light .location .region, .section--light-2 .location .region { color: var(--blue-700); }
.section--light .location-flag, .section--light-2 .location-flag { color: var(--muted-on-light); border-color: var(--line-light); }
.section--light .location .tel a:hover, .section--light-2 .location .tel a:hover { color: var(--blue-700); }

/* Credentials strip */
.credentials { background: #fff; border-color: var(--line-light); }
.credentials p { color: var(--muted-on-light); }
.badge-row li { border: 1px solid var(--line-light); box-shadow: 0 10px 26px -20px rgba(7, 22, 42, 0.5); }

/* Inner page hero: light with waves and a soft image fade */
.page-hero { background: url("../img/waves-light.svg") center / cover no-repeat, linear-gradient(180deg, #fff 0%, var(--paper) 100%); color: var(--text-on-light); }
.page-hero::before { display: none; }
.page-hero-media { inset: 0 0 0 auto; width: 48%; }
.page-hero-media img { opacity: 1; -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.55) 35%, #000 70%); mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.55) 35%, #000 70%); }
.page-hero h1 { color: var(--text-on-light); }
.page-hero .lead { color: var(--muted-on-light); }
.page-hero .eyebrow { color: var(--blue-700); }
.page-hero .breadcrumb { color: var(--muted-on-light); }
.page-hero .breadcrumb a:hover { color: var(--text-on-light); }
@media (max-width: 899px) { .page-hero-media { width: 100%; } .page-hero-media img { opacity: 0.14; -webkit-mask-image: none; mask-image: none; } }

/* Header on light pages / after scrolling / when the mobile menu is open */
.site-header.is-solid, body:not(.has-hero) .site-header, .site-header.is-open {
  background: rgba(255, 255, 255, 0.88); border-bottom-color: var(--line-light); color: var(--text-on-light);
}
/* A backdrop-filter makes the header the containing block of the fixed mobile menu;
   drop it while the menu is open so the menu covers the full screen. */
.site-header.is-open { -webkit-backdrop-filter: none; backdrop-filter: none; background: #fff; }
.site-header.is-solid .primary-nav a, .site-header.is-solid .nav-trigger,
body:not(.has-hero) .site-header .primary-nav a, body:not(.has-hero) .site-header .nav-trigger,
.site-header.is-open .primary-nav a { color: var(--text-on-light); }
.site-header.is-solid .primary-nav > ul > li > a:hover, .site-header.is-solid .nav-trigger:hover, .site-header.is-solid .nav-trigger[aria-expanded="true"],
body:not(.has-hero) .site-header .primary-nav > ul > li > a:hover, body:not(.has-hero) .site-header .nav-trigger:hover, body:not(.has-hero) .site-header .nav-trigger[aria-expanded="true"] { background: rgba(7, 22, 42, 0.06); }
.site-header.is-solid .brand-word small, body:not(.has-hero) .site-header .brand-word small, .site-header.is-open .brand-word small { color: var(--muted-on-light); }
.site-header.is-solid .btn-ghost, body:not(.has-hero) .site-header .btn-ghost, .site-header.is-open .btn-ghost { --btn-bd: rgba(7, 22, 42, 0.2); --btn-fg: var(--text-on-light); }
.site-header.is-solid .btn-ghost:hover, body:not(.has-hero) .site-header .btn-ghost:hover { --btn-bg: rgba(7, 22, 42, 0.05); --btn-bd: rgba(7, 22, 42, 0.4); }
.site-header.is-solid .menu-toggle, body:not(.has-hero) .site-header .menu-toggle, .site-header.is-open .menu-toggle { border-color: rgba(7, 22, 42, 0.18); color: var(--text-on-light); }

/* Mega menu (light panel) */
.mega { background: rgba(255, 255, 255, 0.98); border-color: var(--line-light); box-shadow: 0 40px 80px -40px rgba(7, 22, 42, 0.4); }
.primary-nav .mega-list a { color: var(--text-on-light); }
.primary-nav .mega-list a:hover { background: var(--paper); }
.mega-num { color: var(--blue-700); }
.mega-list span:last-child { color: var(--muted-on-light); }
.primary-nav .mega-feature, .primary-nav .mega-feature:hover { color: #fff; background: var(--ink-900); }
.mega-feature p { color: #c9d5e3; }

/* Mobile menu (light, full screen) */
.mobile-nav { background: #fff; color: var(--text-on-light); }
.mobile-nav > ul > li { border-color: var(--line-light); }
.mobile-nav > ul > li > a[aria-current="page"] { color: var(--blue-700); }
.mobile-sub a, .mobile-contact { color: var(--muted-on-light); }
.mobile-nav .btn-ghost { --btn-bd: rgba(7, 22, 42, 0.2); --btn-fg: var(--text-on-light); }

/* Services sub-navigation & gallery filters */
.service-nav { background: rgba(255, 255, 255, 0.92); border-bottom-color: var(--line-light); }
.service-nav a { color: var(--muted-on-light); }
.service-nav a:hover { color: var(--text-on-light); }
.service-nav a.is-active { background: var(--ink-900); color: #fff; }
.filter-bar button { border-color: rgba(7, 22, 42, 0.18); color: var(--muted-on-light); }
.filter-bar button:hover { color: var(--text-on-light); border-color: rgba(7, 22, 42, 0.4); }
.filter-bar button[aria-pressed="true"] { background: var(--ink-900); color: #fff; border-color: var(--ink-900); }

/* Map consent card & 404 */
.map-frame { border-color: var(--line-light); background: #eef2f8; }
.map-consent { background: radial-gradient(60% 80% at 50% 50%, rgba(47, 128, 214, 0.12), transparent), #eef2f8; }
.map-consent p { color: var(--muted-on-light); }
.notfound { background: url("../img/waves-light.svg") center / cover no-repeat, var(--paper); color: var(--text-on-light); }
.notfound .lead { color: var(--muted-on-light); }
.notfound .btn-ghost { --btn-bd: rgba(7, 22, 42, 0.2); --btn-fg: var(--text-on-light); }

/* ==========================================================================
   ZORA 360 — product language (teal → blue → violet, wave lines, real screens)
   ========================================================================== */
.zora-grad-text { background: var(--zora-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.zora-badge { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; border-radius: 999px; background: #fff; border: 1px solid rgba(15, 143, 130, 0.25); box-shadow: 0 8px 24px -16px rgba(15, 143, 130, 0.6); font-size: 0.82rem; font-weight: 600; color: var(--text-on-light); }
.zora-badge b { padding: 3px 10px; border-radius: 999px; background: rgba(20, 184, 166, 0.14); color: var(--zora-teal); font-family: var(--font-display); letter-spacing: 0.06em; font-size: 0.75rem; }
.zora-eyebrow { color: var(--zora-teal) !important; }
.zora-eyebrow::before { background: var(--zora-grad) !important; }
.btn-zora { --btn-bg: var(--zora-teal); --btn-fg: #fff; --btn-bd: var(--zora-teal); box-shadow: 0 14px 30px -14px rgba(15, 143, 130, 0.75); }
.btn-zora:hover { --btn-bg: #0b7469; --btn-bd: #0b7469; }
.zora-logo { height: 44px; width: auto; }

.zora-hero { position: relative; overflow: hidden; padding-top: calc(var(--header-h) + clamp(48px, 7vw, 96px)); padding-bottom: clamp(56px, 7vw, 96px);
  background: url("../img/waves-light.svg") center / cover no-repeat, radial-gradient(900px 500px at 85% 20%, rgba(124, 58, 237, 0.10), transparent 70%), linear-gradient(180deg, #fff, var(--paper)); }
.zora-hero-grid { display: grid; gap: clamp(40px, 5vw, 72px); align-items: center; }
@media (min-width: 1000px) { .zora-hero-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); } }
.zora-hero h1 { margin-top: 22px; color: var(--text-on-light); }
.zora-hero .lead { margin-top: 22px; color: var(--muted-on-light); }
.zora-avail-note { display: inline-flex; align-items: center; gap: 10px; margin-top: 22px; font-size: 0.88rem; color: var(--muted-on-light); }
.zora-avail-note::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #16a34a; box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.18); }

.device { position: relative; justify-self: center; width: min(340px, 78vw); }
.device-frame { position: relative; border-radius: 44px; padding: 10px; background: linear-gradient(160deg, #1d2a3f, #070d18); box-shadow: 0 50px 90px -40px rgba(7, 22, 42, 0.65), inset 0 0 0 1px rgba(255, 255, 255, 0.08); }
.device-frame video, .device-frame img { display: block; width: 100%; border-radius: 34px; aspect-ratio: 720 / 1560; object-fit: cover; background: #0b1424; }
.float-chip { position: absolute; display: inline-flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 14px; background: rgba(255, 255, 255, 0.94); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border: 1px solid var(--line-light); box-shadow: 0 18px 40px -22px rgba(7, 22, 42, 0.5); font-size: 0.82rem; font-weight: 600; color: var(--text-on-light); white-space: nowrap; animation: chipFloat 6s ease-in-out infinite; }
.float-chip i { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: rgba(20, 184, 166, 0.14); color: var(--zora-teal); font-style: normal; }
.float-chip i svg { width: 16px; height: 16px; }
.float-chip.c1 { top: 12%; inset-inline-start: -28%; }
.float-chip.c2 { bottom: 16%; inset-inline-end: -26%; animation-delay: -3s; }
@keyframes chipFloat { 50% { transform: translateY(-8px); } }
@media (max-width: 700px) { .float-chip.c1 { inset-inline-start: -6%; top: 6%; } .float-chip.c2 { inset-inline-end: -6%; } }

.ticker { overflow: hidden; border-block: 1px solid var(--line-light); background: #fff; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.ticker-track { display: flex; gap: 40px; width: max-content; padding: 16px 0; animation: tick 40s linear infinite; list-style: none; margin: 0; }
.ticker-track li { display: inline-flex; align-items: center; gap: 40px; font-family: var(--font-display); font-weight: 500; font-size: 0.92rem; color: var(--muted-on-light); white-space: nowrap; }
.ticker-track li::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--zora-grad); }
@keyframes tick { to { transform: translateX(-50%); } }

.loop { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); list-style: none; padding: 0; margin: 0; counter-reset: loop; }
@media (min-width: 900px) { .loop { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.loop li { position: relative; padding: 22px 18px 24px; border-radius: 18px; background: #fff; border: 1px solid var(--line-light); box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04); }
.loop li b { display: inline-grid; place-items: center; min-width: 34px; height: 24px; padding: 0 8px; border-radius: 999px; background: var(--zora-teal); color: #fff; font-family: var(--font-display); font-size: 0.75rem; }
.loop li h3 { margin-top: 14px; font-size: 1.05rem; color: var(--text-on-light); }
.loop li p { margin-top: 6px; font-size: 0.9rem; color: var(--muted-on-light); }

.feature-row { display: grid; gap: clamp(32px, 4vw, 72px); align-items: center; }
.feature-row + .feature-row { margin-top: clamp(64px, 8vw, 120px); }
@media (min-width: 960px) { .feature-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .feature-row:nth-child(even) .feature-media { order: -1; } }
.feature-row h3 { margin-top: 14px; font-size: clamp(1.6rem, 1.2rem + 1.5vw, 2.4rem); color: var(--text-on-light); }
.feature-row p { margin-top: 14px; color: var(--muted-on-light); max-width: 56ch; }
.feature-points { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; }
.feature-points li { display: flex; align-items: center; gap: 12px; font-weight: 500; color: var(--text-on-light); }
.feature-points li::before { content: ""; flex: none; width: 22px; height: 22px; border-radius: 7px; background: rgba(20, 184, 166, 0.14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f8f82' stroke-width='3'%3E%3Cpath d='m5 12 4 4 10-10'/%3E%3C/svg%3E") center / 13px no-repeat; }
.feature-media { position: relative; display: flex; justify-content: center; gap: 0; }
.shot { width: min(300px, 70vw); border-radius: 28px; box-shadow: 0 40px 80px -40px rgba(7, 22, 42, 0.6); background: #0b1424; }
.shot--back { position: absolute; width: min(240px, 52vw); inset-inline-end: 4%; bottom: -8%; transform: rotate(4deg); box-shadow: 0 40px 80px -30px rgba(7, 22, 42, 0.7); }
.feature-media.has-back { padding-inline-end: 18%; padding-bottom: 6%; }
.shot-tablet { width: 100%; max-width: 620px; border-radius: 22px; box-shadow: 0 40px 80px -40px rgba(7, 22, 42, 0.6); }

.zora-env { display: grid; gap: 16px; grid-template-columns: 1fr; list-style: none; padding: 0; margin: 0; }
@media (min-width: 700px) { .zora-env { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .zora-env { grid-template-columns: repeat(4, 1fr); } }
.zora-env li { padding: 26px 24px; border-radius: 18px; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.12); }
.zora-env li .ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(45, 212, 191, 0.14); color: #5eead4; }
.zora-env li .ico svg { width: 22px; height: 22px; }
.zora-env h3 { margin-top: 16px; font-size: 1.15rem; color: #fff; }
.zora-env p { margin-top: 8px; font-size: 0.93rem; color: var(--muted-on-dark); }
.zora-dark { position: relative; overflow: hidden; background: url("../img/waves-dark.svg") center / cover no-repeat, radial-gradient(800px 400px at 0% 0%, rgba(20, 184, 166, 0.22), transparent 70%), radial-gradient(700px 400px at 100% 100%, rgba(124, 58, 237, 0.25), transparent 70%), var(--ink-950); color: var(--text-on-dark); }

.roles { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); list-style: none; padding: 0; margin: 0; }
.roles li { padding: 20px 22px; border-radius: 16px; background: #fff; border: 1px solid var(--line-light); }
.roles strong { display: block; font-family: var(--font-display); color: var(--text-on-light); }
.roles span { display: block; margin-top: 4px; font-size: 0.9rem; color: var(--muted-on-light); }

.avail { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); list-style: none; padding: 0; margin: 0; }
.avail li { display: flex; flex-direction: column; gap: 10px; padding: 20px; border-radius: 16px; background: #fff; border: 1px solid var(--line-light); font-family: var(--font-display); font-weight: 600; color: var(--text-on-light); }
.avail .pill { align-self: flex-start; padding: 4px 10px; border-radius: 999px; font-size: 0.75rem; font-weight: 600; font-family: var(--font-body); }
.avail .pill.now { background: #e7f6ee; color: #11603a; }
.avail .pill.soon { background: #fdf4e3; color: #8a5a12; }

.gov { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); list-style: none; padding: 0; margin: 0; }
.gov li { padding: 24px; border-radius: 18px; background: #fff; border: 1px solid var(--line-light); }
.gov .pillar-icon { background: rgba(20, 184, 166, 0.12); color: var(--zora-teal); }
.gov h3 { margin-top: 14px; font-size: 1.05rem; color: var(--text-on-light); }
.gov p { margin-top: 6px; font-size: 0.92rem; color: var(--muted-on-light); }

/* Home: ZORA showcase */
.zora-showcase { display: grid; gap: clamp(36px, 5vw, 72px); align-items: center; }
@media (min-width: 1000px) { .zora-showcase { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.phones { position: relative; display: flex; justify-content: center; align-items: flex-end; min-height: 420px; }
.phones img { border-radius: 26px; box-shadow: 0 40px 80px -36px rgba(7, 22, 42, 0.6); background: #0b1424; }
.phones .p-main { position: relative; z-index: 2; width: min(270px, 56vw); }
.phones .p-left, .phones .p-right { position: absolute; width: min(200px, 40vw); bottom: 6%; }
.phones .p-left { inset-inline-start: 2%; transform: rotate(-6deg); }
.phones .p-right { inset-inline-end: 2%; transform: rotate(6deg); }
.zora-mini { display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); list-style: none; padding: 0; margin: 26px 0 0; }
.zora-mini li { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; background: #fff; border: 1px solid var(--line-light); font-size: 0.9rem; font-weight: 500; color: var(--text-on-light); }
.zora-mini li i { width: 28px; height: 28px; border-radius: 8px; flex: none; display: grid; place-items: center; background: rgba(20, 184, 166, 0.14); color: var(--zora-teal); font-style: normal; }
.zora-mini li i svg { width: 15px; height: 15px; }

/* Nav pill */
.nav-pill { margin-inline-start: 6px; padding: 2px 7px; border-radius: 999px; font-size: 0.66rem; font-weight: 700; letter-spacing: 0.04em; color: #fff; background: var(--zora-grad); }

@media (prefers-reduced-motion: reduce) { .ticker-track, .float-chip { animation: none; } }

.btn-ghost--light { --btn-bd: rgba(7, 22, 42, 0.22); --btn-fg: var(--text-on-light); }
.btn-ghost--light:hover { --btn-bg: rgba(7, 22, 42, 0.05); --btn-bd: rgba(7, 22, 42, 0.45); }
@media (max-width: 700px) { .device { width: min(250px, 66vw); } .phones { min-height: 340px; } }

/* ==========================================================================
   BRAND TINT — the light canvas takes its colour from the S-TRADIX logo:
   a soft steel blue, with faint light-blue and red glows. Cards stay white.
   ========================================================================== */
:root {
  --paper: #e8eff8;      /* main light canvas — logo blue, very light */
  --paper-2: #f1f5fb;    /* alternate light canvas */
  --tint-edge: #dbe6f4;
  --line-light: rgba(29, 79, 143, 0.14);
  --glow-blue: rgba(79, 177, 236, 0.22);
  --glow-red: rgba(210, 48, 62, 0.08);
}
body { background: var(--paper); }
.section--light {
  background:
    radial-gradient(900px 420px at 0% 0%, var(--glow-blue), transparent 70%),
    radial-gradient(700px 360px at 100% 100%, var(--glow-red), transparent 70%),
    var(--paper);
}
.section--light-2 {
  background:
    radial-gradient(800px 380px at 100% 0%, rgba(79, 177, 236, 0.16), transparent 70%),
    var(--paper-2);
}
.section--waves, .section--light.section--waves {
  background: url("../img/waves-brand.svg") center / cover no-repeat,
    radial-gradient(900px 420px at 0% 0%, var(--glow-blue), transparent 70%),
    radial-gradient(700px 360px at 100% 100%, var(--glow-red), transparent 70%),
    var(--paper);
}
.page-hero, .notfound {
  background: url("../img/waves-brand.svg") center / cover no-repeat,
    radial-gradient(900px 500px at 10% 0%, rgba(79, 177, 236, 0.30), transparent 70%),
    radial-gradient(700px 400px at 100% 100%, var(--glow-red), transparent 70%),
    linear-gradient(180deg, var(--tint-edge) 0%, var(--paper) 100%);
}
.zora-hero {
  background: url("../img/waves-light.svg") center / cover no-repeat,
    radial-gradient(900px 500px at 85% 20%, rgba(124, 58, 237, 0.10), transparent 70%),
    radial-gradient(900px 500px at 0% 0%, rgba(79, 177, 236, 0.24), transparent 70%),
    linear-gradient(180deg, var(--tint-edge), var(--paper));
}
.credentials, .ticker { background: var(--paper-2); }

/* Header, mega menu and mobile menu pick up the same tint */
.site-header.is-solid, body:not(.has-hero) .site-header { background: rgba(232, 239, 248, 0.88); }
.site-header.is-open, .mobile-nav { background: var(--paper-2); }
.mega { background: rgba(241, 245, 251, 0.98); }
.primary-nav .mega-list a:hover { background: #fff; }
.service-nav { background: rgba(241, 245, 251, 0.92); }

/* White cards read as raised surfaces on the tinted canvas */
.form-card, .env-card, .location, .pillar, .loop li, .roles li, .avail li, .gov li, .zora-mini li, .report-card { background: #fff; }
.pillars { background: var(--line-light); border-color: var(--line-light); }
.pillar:hover { background: #fbfdff; }
.section--light .assurance li, .section--light-2 .assurance li { background: #fff; }
.field input, .field select, .field textarea { background: #f7f9fd; }
.map-frame, .map-consent { background-color: #dfe8f4; }

/* Inner hero: keep the headline clear of the faded image */
@media (min-width: 900px) {
  .page-hero h1 { max-width: 13ch; }
  .page-hero .lead { max-width: 50ch; }
  .page-hero-media { width: 44%; }
  .page-hero-media img { -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.35) 40%, #000 80%); mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.35) 40%, #000 80%); }
}

/* Dark surfaces keep light text (the light theme changed the inherited body colour) */
.hero, .cta-band, .site-footer, .zora-dark, .mega-feature { color: var(--text-on-dark); }
.hero h1, .hero h2, .section--light .cta-band h2, .section--light-2 .cta-band h2, .cta-band h2, .cta-band h3, .site-footer h2, .zora-dark h2, .zora-dark h3 { color: #fff; }
.section--light .cta-band .lead, .section--light-2 .cta-band .lead, .cta-band .lead { color: #c9d5e3; }
.section--light .cta-band .eyebrow, .section--light-2 .cta-band .eyebrow { color: var(--blue-300); }
.section--light .cta-band .btn-ghost, .section--light-2 .cta-band .btn-ghost { --btn-bd: var(--line-dark-strong); --btn-fg: var(--text-on-dark); }
.section--light .cta-band .btn-ghost:hover, .section--light-2 .cta-band .btn-ghost:hover { --btn-bg: rgba(255,255,255,.08); --btn-bd: rgba(255,255,255,.5); }
.site-footer .footer-col h2 { color: var(--muted-on-dark); }
.service-card, .section--light .service-card h3, .section--light-2 .service-card h3, .work-tile .caption { color: #fff; }
.work-tile { color: #fff; }
.site-header { color: var(--text-on-dark); }
.site-header.is-solid, body:not(.has-hero) .site-header, .site-header.is-open { color: var(--text-on-light); }

/* New service pages */
@media (min-width: 1100px) { .env-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.loop--brand li b { background: var(--blue-700); }
.service-grid--duo { grid-template-columns: 1fr; }
@media (min-width: 800px) { .service-grid--duo { grid-template-columns: 1fr 1fr; } .service-grid--duo .service-card { min-height: 420px; } }
@media (min-width: 1100px) { .service-grid--support3 { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 340px; } .service-grid--support3 > li:nth-child(n) { grid-column: auto; grid-row: auto; } }
.flag-food { display: grid; gap: clamp(32px, 4vw, 64px); align-items: center; }
@media (min-width: 1000px) { .flag-food { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.flag-food-media { display: grid; gap: 14px; grid-template-columns: 1.4fr 1fr; }
.flag-food-media .media-frame:first-child { grid-row: span 2; }
.flag-food-media .media-frame { aspect-ratio: auto; }
.flag-food-media img { height: 100%; object-fit: cover; }
.service-grid.service-grid--duo { grid-auto-rows: auto; }
.service-grid--duo > li:nth-child(n) { grid-column: auto !important; grid-row: auto !important; }
@media (min-width: 800px) { .service-grid.service-grid--duo { grid-template-columns: 1fr 1fr; } }
.service-grid--duo .service-card h3 { font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.2rem); }
.service-grid--duo + .assurance { margin-top: 16px; }

/* ---------- Projects page: project cards ---------- */
.project-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); list-style: none; padding: 0; margin: 0; }
.project-grid > li[hidden] { display: none; }
.project-card { height: 100%; display: flex; flex-direction: column; overflow: hidden; background: #fff; border: 1px solid var(--line-light); border-radius: var(--radius-lg); box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04); transition: transform 0.5s var(--ease-out), box-shadow 0.5s, border-color 0.4s; }
.project-card:hover { transform: translateY(-4px); border-color: rgba(29, 79, 143, 0.25); box-shadow: 0 26px 50px -30px rgba(7, 22, 42, 0.45); }
.project-card .work-tile { aspect-ratio: 16 / 10; border-radius: 0; }
.project-card .work-tile img { width: 100%; height: 100%; object-fit: cover; }
.project-card .work-tile::after { content: ""; position: absolute; inset: auto 12px 12px auto; width: 38px; height: 38px; border-radius: 50%; background: rgba(255, 255, 255, 0.92) url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27 fill=%27none%27 stroke=%27%2307162a%27 stroke-width=%272%27%3E%3Cpath d=%27M15 3h6v6M9 21H3v-6M21 3l-7 7M3 21l7-7%27/%3E%3C/svg%3E") center / 16px no-repeat; opacity: 0; transform: scale(0.85); transition: opacity 0.3s, transform 0.4s var(--ease-out); }
.project-card .work-tile:hover::after, .project-card .work-tile:focus-visible::after { opacity: 1; transform: none; }
.project-card .work-tile[data-video]::after { display: none; }
.project-body { flex: 1; display: flex; flex-direction: column; gap: 8px; padding: 18px 20px 20px; }
.project-tag { align-self: flex-start; display: inline-flex; align-items: center; gap: 7px; padding: 4px 10px; border-radius: 999px; font-family: var(--font-display); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; background: var(--tag-bg, #eef3fa); color: var(--tag-fg, var(--blue-700)); }
.project-tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.project-body h3 { font-size: 1.12rem; letter-spacing: -0.01em; color: var(--text-on-light); }
.project-body p { flex: 1; font-size: 0.92rem; color: var(--muted-on-light); }
.project-body .link-arrow { align-self: flex-start; margin-top: 4px; font-size: 0.86rem; color: var(--blue-700); }
[data-category="liquid"] { --tag-bg: #e6f1fc; --tag-fg: #1d5fa8; }
[data-category="solid"] { --tag-bg: #e6f5ee; --tag-fg: #13704f; }
[data-category="food"] { --tag-bg: #fdf1e3; --tag-fg: #9a5a0c; }
[data-category="manpower"] { --tag-bg: #fff4dc; --tag-fg: #8a6408; }
[data-category="supply"] { --tag-bg: #f0ebfc; --tag-fg: #5b3bb5; }
[data-category="contracting"] { --tag-bg: #eceff4; --tag-fg: #3d4a5c; }
[data-category="video"] { --tag-bg: #fdecee; --tag-fg: #b5212f; }
.project-count { margin: -12px 0 24px; font-size: 0.9rem; color: var(--muted-on-light); }
.project-groups { display: grid; gap: clamp(48px, 6vw, 80px); }
.project-group[hidden] { display: none; }
.project-group-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px 24px; margin-bottom: 22px; padding-bottom: 18px; border-bottom: 1px solid var(--line-light); }
.project-group-head h3 { margin-top: 10px; font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.8rem); color: var(--text-on-light); }
.project-group-head p { margin-top: 6px; color: var(--muted-on-light); max-width: 60ch; }
@media (min-width: 1000px) { .project-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Projects page on phones: one swipeable row per service, single-line filters */
@media (max-width: 699px) {
  .filter-bar { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); padding-bottom: 4px; -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
  .filter-bar::-webkit-scrollbar { display: none; }
  .filter-bar button { flex: none; height: 38px; padding: 0 14px; }
  .project-groups { gap: 40px; }
  .project-group-head { margin-bottom: 14px; padding-bottom: 14px; gap: 10px; }
  .project-group-head p { font-size: 0.92rem; }
  .project-group-head .btn { min-height: 38px; }
  .project-group-head::after { content: "Swipe →"; width: 100%; font-size: 0.78rem; color: var(--muted-on-light); }
  .project-group[data-group] .project-grid { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding: 2px var(--gutter) 10px; scroll-padding-inline: var(--gutter); }
  .project-group .project-grid::-webkit-scrollbar { display: none; }
  .project-group .project-grid > li { flex: 0 0 82%; scroll-snap-align: start; }
  .project-group .project-grid > li:only-child { flex-basis: 100%; }
  .project-group-head:has(+ .project-grid > li:only-child)::after { display: none; }
  .project-body { padding: 14px 16px 16px; }
  .project-body p { font-size: 0.88rem; }
}
.project-groups > .project-group { min-width: 0; }


.footer-ar { width: 100%; margin-top: 4px; font-family: "IBM Plex Sans Arabic", var(--font-body); font-size: 0.82rem; line-height: 1.8; color: var(--muted-on-dark); text-align: right; }

/* Open mobile menu: no backdrop-filter on any page (it would make the header the
   containing block of the fixed menu and collapse it to the header height) */
.site-header.is-open, body:not(.has-hero) .site-header.is-open, .site-header.is-solid.is-open { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; background: var(--paper-2); }
