/* ==========================================================================
   PAT Middle East & Africa — main stylesheet
   Light theme is the default. Dark theme via [data-theme="dark"] on <html>.
   ========================================================================== */

:root {
  --bg: #F3F6F7;
  --bg-2: #E7EEF0;
  --surface: #FFFFFF;
  --ink: #0A1A23;
  --ink-2: #33495A;
  --muted: #6A7F8A;
  --line: rgba(10, 26, 35, .12);
  --line-strong: rgba(10, 26, 35, .22);
  --accent: #0794A2;
  --accent-2: #12C3CF;
  --accent-soft: rgba(7, 148, 162, .10);
  --deep: #04303E;
  --on-accent: #FFFFFF;
  --glow: rgba(18, 195, 207, .35);
  --shadow: 0 30px 60px -30px rgba(4, 48, 62, .25);

  /* always-dark tones (hero, story, footer) */
  --d-bg: #041219;
  --d-surface: #0A1E27;
  --d-ink: #E9F4F6;
  --d-ink-2: #A9C1C9;
  --d-line: rgba(233, 244, 246, .14);

  --f-display: "Instrument Serif", "Times New Roman", serif;
  --f-sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, monospace;

  --gutter: clamp(16px, 4vw, 56px);
  --max: 1440px;
  --radius: 22px;
  --radius-sm: 12px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-io: cubic-bezier(.76, 0, .24, 1);
  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #050F15;
  --bg-2: #0A1920;
  --surface: #0D2029;
  --ink: #E6F1F3;
  --ink-2: #B3C7CE;
  --muted: #7F959E;
  --line: rgba(230, 241, 243, .12);
  --line-strong: rgba(230, 241, 243, .24);
  --accent: #2CCFD9;
  --accent-2: #7DEFF3;
  --accent-soft: rgba(44, 207, 217, .12);
  --deep: #021118;
  --on-accent: #03151C;
  --glow: rgba(44, 207, 217, .45);
  --shadow: 0 30px 60px -30px rgba(0, 0, 0, .7);
  color-scheme: dark;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color .6s var(--ease), color .6s var(--ease);
}
img, video, canvas, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
::selection { background: var(--accent); color: var(--on-accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 6px; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- typography ---------- */
.display, h1, h2 { font-family: var(--f-display); font-weight: 400; letter-spacing: -.02em; line-height: .98; }
h1 { font-size: clamp(3rem, 8.2vw, 8.6rem); }
h2 { font-size: clamp(2.4rem, 5.6vw, 5.4rem); }
h3 { font-size: clamp(1.25rem, 1.8vw, 1.6rem); font-weight: 600; letter-spacing: -.01em; line-height: 1.2; }
h1 em, h2 em, .display em { font-style: italic; color: var(--accent); }
.tone-dark h1 em, .tone-dark h2 em { color: var(--accent-2); }
.lead { font-size: clamp(1.1rem, 1.5vw, 1.35rem); line-height: 1.55; color: var(--ink-2); max-width: 60ch; }
.muted { color: var(--muted); }

.eyebrow {
  display: inline-flex; align-items: center; gap: .7em;
  font-family: var(--f-mono); font-size: .76rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted);
}
.eyebrow::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft);
}
.tone-dark .eyebrow { color: var(--d-ink-2); }

/* ---------- always-dark sections ---------- */
.tone-dark {
  --bg: var(--d-bg); --surface: var(--d-surface); --ink: var(--d-ink); --ink-2: var(--d-ink-2);
  --muted: #7F98A1; --line: var(--d-line); --accent: #2CCFD9; --accent-2: #7DEFF3; --on-accent: #03151C;
  background: var(--d-bg); color: var(--d-ink);
}

/* ---------- section scaffolding ---------- */
.section { position: relative; padding: clamp(90px, 13vw, 180px) 0; }
.section--tight { padding: clamp(60px, 8vw, 110px) 0; }
.section-head { display: grid; grid-template-columns: 1fr; gap: 28px; margin-bottom: clamp(48px, 6vw, 88px); }
@media (min-width: 900px) {
  .section-head { grid-template-columns: 1.1fr .9fr; align-items: end; }
  .section-head .lead { justify-self: end; }
}
.section-head .eyebrow { margin-bottom: 22px; }
.divider { height: 1px; background: var(--line); border: 0; margin: 0; }

/* ---------- buttons ---------- */
.btn {
  --x: 50%; --y: 50%;
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; gap: 12px;
  padding: 17px 28px; border-radius: 999px;
  font-weight: 600; font-size: .95rem; letter-spacing: .01em;
  border: 1px solid var(--line-strong);
  transition: color .45s var(--ease), border-color .45s var(--ease), transform .3s var(--ease);
  white-space: nowrap;
}
.btn::before {
  content: ""; position: absolute; z-index: -1;
  left: var(--x); top: var(--y); width: 0; height: 0; border-radius: 50%;
  transform: translate(-50%, -50%);
  background: var(--accent);
  transition: width .6s var(--ease), height .6s var(--ease);
}
.btn:hover::before { width: 260%; height: 600%; }
.btn:hover { color: var(--on-accent); border-color: var(--accent); }
.btn:active { transform: scale(.96); }
.btn .arrow { width: 18px; height: 18px; transition: transform .45s var(--ease); }
.btn:hover .arrow { transform: translateX(4px) rotate(-45deg); }
.btn--primary { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn--primary::before { background: var(--accent); }
.tone-dark .btn--primary { background: var(--d-ink); color: var(--d-bg); border-color: var(--d-ink); }
.btn--accent { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.btn--accent::before { background: var(--ink); }
.btn--accent:hover { color: var(--bg); border-color: var(--ink); }
.tone-dark .btn--accent::before { background: var(--d-ink); }
.tone-dark .btn--accent:hover { color: var(--d-bg); }
.btn--ghost { color: inherit; }
.tone-dark .btn--ghost { border-color: rgba(233, 244, 246, .3); }
.btn--sm { padding: 12px 20px; font-size: .85rem; }

.link-line {
  position: relative; display: inline-flex; align-items: center; gap: 8px; font-weight: 600;
}
.link-line::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px; background: currentColor;
  transform: scaleX(.25); transform-origin: left; transition: transform .6s var(--ease);
}
.link-line:hover::after { transform: scaleX(1); }

/* ---------- header ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  transition: transform .6s var(--ease), background-color .5s var(--ease), color .5s var(--ease), box-shadow .5s;
  color: var(--ink);
}
.header__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  height: 84px;
}
.header.is-scrolled {
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  box-shadow: 0 1px 0 var(--line);
}
.header.is-hidden { transform: translateY(-100%); }
.header.on-dark:not(.is-scrolled) { color: #fff; }
.header.on-dark.is-scrolled { color: #fff; background: rgba(4, 18, 25, .55); box-shadow: 0 1px 0 rgba(255,255,255,.08); }
.header.on-dark.is-scrolled .btn--primary { background: #fff; color: #041219; border-color: #fff; }
.header.on-dark.is-scrolled .menu-btn, .header.on-dark.is-scrolled .icon-btn { border-color: rgba(255,255,255,.3); }
.header.on-dark.is-scrolled .menu-btn__lines i { background: #041219; }

.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 700; letter-spacing: -.01em; }
.brand__mark { width: 40px; height: 40px; flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__text b { font-size: 1.15rem; letter-spacing: .08em; }
.brand__text small { font-family: var(--f-mono); font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; opacity: .7; font-weight: 500; }

.nav { display: none; gap: 4px; }
@media (min-width: 1180px) { .nav { display: flex; } }
.nav a {
  position: relative; padding: 10px 14px; font-size: .92rem; font-weight: 500; border-radius: 999px; opacity: .85;
  transition: opacity .3s, background-color .3s;
}
.nav a:hover { opacity: 1; }
.nav a[aria-current="page"] { opacity: 1; }
.nav a[aria-current="page"]::after {
  content: ""; position: absolute; left: 50%; bottom: 2px; width: 5px; height: 5px; margin-left: -2.5px;
  border-radius: 50%; background: var(--accent);
}
.header__actions { display: flex; align-items: center; gap: 10px; }
.header .btn { padding: 12px 20px; font-size: .86rem; }
.header.on-dark:not(.is-scrolled) .btn--primary { background: #fff; color: #041219; border-color: #fff; }
.header.on-dark:not(.is-scrolled) .icon-btn { border-color: rgba(255,255,255,.35); }
@media (max-width: 640px) { .header .btn--quote { display: none; } }

.icon-btn {
  position: relative; width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center; border: 1px solid var(--line-strong);
  transition: background-color .3s, border-color .3s, transform .3s var(--ease);
}
.icon-btn:hover { background: var(--accent-soft); border-color: var(--accent); }
.icon-btn svg { width: 20px; height: 20px; }

/* theme toggle */
.theme-toggle .sun, .theme-toggle .moon { position: absolute; transition: transform .6s var(--ease), opacity .4s; }
.theme-toggle .moon { transform: rotate(-90deg) scale(.4); opacity: 0; }
[data-theme="dark"] .theme-toggle .sun { transform: rotate(90deg) scale(.4); opacity: 0; }
[data-theme="dark"] .theme-toggle .moon { transform: none; opacity: 1; }

/* menu button */
.menu-btn { display: inline-flex; align-items: center; gap: 10px; padding: 0 6px 0 16px; height: 46px; border-radius: 999px; border: 1px solid var(--line-strong); font-size: .86rem; font-weight: 600; }
.header.on-dark:not(.is-scrolled) .menu-btn { border-color: rgba(255,255,255,.35); }
.menu-btn__lines { width: 34px; height: 34px; border-radius: 50%; background: currentColor; display: grid; place-content: center; gap: 4px; }
.menu-btn__lines i { display: block; width: 14px; height: 1.5px; background: var(--bg); transition: transform .5s var(--ease); }
.header.on-dark:not(.is-scrolled) .menu-btn__lines i { background: #041219; }
.menu-open .menu-btn__lines i:first-child { transform: translateY(2.75px) rotate(45deg); }
.menu-open .menu-btn__lines i:last-child { transform: translateY(-2.75px) rotate(-45deg); }

/* ---------- fullscreen menu ---------- */
.menu {
  position: fixed; inset: 0; z-index: 55; pointer-events: none; visibility: hidden;
  color: var(--d-ink);
}
.menu__bg { position: absolute; inset: 0; background: var(--d-bg); clip-path: circle(0% at calc(100% - 60px) 42px); transition: clip-path 1s var(--ease-io); }
.menu-open .menu { pointer-events: auto; visibility: visible; }
.menu-open .menu__bg { clip-path: circle(150% at calc(100% - 60px) 42px); }
.menu__inner { position: relative; height: 100%; display: grid; grid-template-columns: 1fr; align-items: center; padding-top: 100px; padding-bottom: 40px; }
@media (min-width: 900px) { .menu__inner { grid-template-columns: 1.2fr .8fr; gap: 60px; } }
.menu__links li { overflow: hidden; }
.menu__links a {
  display: flex; align-items: baseline; gap: 18px;
  font-family: var(--f-display); font-size: clamp(2.4rem, 6.4vh, 4.6rem); line-height: 1.08;
  transform: translateY(110%); transition: transform .9s var(--ease), color .3s;
}
.menu__links a small { font-family: var(--f-mono); font-size: .8rem; color: var(--d-ink-2); }
.menu__links a:hover { color: var(--accent-2); font-style: italic; }
.menu-open .menu__links a { transform: none; }
.menu__links li:nth-child(1) a { transition-delay: .25s; } .menu__links li:nth-child(2) a { transition-delay: .29s; }
.menu__links li:nth-child(3) a { transition-delay: .33s; } .menu__links li:nth-child(4) a { transition-delay: .37s; }
.menu__links li:nth-child(5) a { transition-delay: .41s; } .menu__links li:nth-child(6) a { transition-delay: .45s; }
.menu__links li:nth-child(7) a { transition-delay: .49s; } .menu__links li:nth-child(8) a { transition-delay: .53s; }
.menu__side { display: none; }
@media (min-width: 900px) {
  .menu__side { display: block; opacity: 0; transform: translateY(30px); transition: opacity .8s .5s, transform .8s .5s var(--ease); }
  .menu-open .menu__side { opacity: 1; transform: none; }
}
.menu__preview { position: relative; aspect-ratio: 4/5; border-radius: var(--radius); overflow: hidden; margin-bottom: 28px; background: var(--d-surface); }
.menu__preview img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.12); transition: opacity .6s, transform 1.2s var(--ease); }
.menu__preview img.is-active { opacity: 1; transform: scale(1); }
.menu__contact { font-size: .95rem; color: var(--d-ink-2); display: grid; gap: 6px; }
.menu__contact b { color: var(--d-ink); font-weight: 600; }

/* ---------- hero (home) ---------- */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: flex-end;
  overflow: hidden; isolation: isolate;
}
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media video, .hero__media canvas, .hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__media canvas { opacity: 0; transition: opacity 1.2s; }
.hero__media.gl-ready canvas { opacity: 1; }
.hero__media.gl-ready video { visibility: hidden; }
.hero__shade {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(120% 80% at 15% 100%, rgba(2, 16, 23, .88) 0%, rgba(2, 16, 23, .35) 55%, transparent 80%),
    linear-gradient(180deg, rgba(2, 16, 23, .55) 0%, rgba(2, 16, 23, 0) 30%, rgba(2, 16, 23, .1) 60%, rgba(2, 16, 23, .85) 100%);
}
.hero__content { width: 100%; padding-top: 140px; padding-bottom: clamp(36px, 6vh, 64px); }
.hero__title { max-width: 15ch; font-size: clamp(3rem, 6.6vw, 7.4rem); }
.hero__row { display: grid; gap: 32px; margin-top: clamp(28px, 4vw, 48px); align-items: end; }
@media (min-width: 900px) { .hero__row { grid-template-columns: 1fr auto; } }
.hero__sub { max-width: 46ch; color: var(--d-ink-2); font-size: clamp(1.02rem, 1.3vw, 1.18rem); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__meta {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px;
  margin-top: clamp(36px, 6vh, 64px); padding-top: 20px; border-top: 1px solid var(--d-line);
  font-family: var(--f-mono); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--d-ink-2);
}
.hero__meta span b { color: var(--d-ink); font-weight: 500; }
.scroll-cue { display: inline-flex; align-items: center; gap: 10px; }
.scroll-cue i { position: relative; width: 1px; height: 34px; background: var(--d-line); overflow: hidden; }
.scroll-cue i::after { content: ""; position: absolute; left: 0; top: -40%; width: 100%; height: 40%; background: var(--accent-2); animation: cue 2s var(--ease-io) infinite; }
@keyframes cue { to { top: 100%; } }
.hero__hint { position: absolute; right: var(--gutter); top: 50%; transform: translateY(-50%) rotate(90deg); transform-origin: right center; font-family: var(--f-mono); font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: rgba(255,255,255,.55); display: none; }
@media (min-width: 900px) and (pointer: fine) { .hero__hint { display: block; } }

/* ---------- split text helpers ---------- */
.split-line { display: inline-block; vertical-align: top; overflow: hidden; padding-bottom: .1em; margin-bottom: -.1em; }
.split-line > span { display: inline-block; will-change: transform; }
.word { display: inline-block; }
.statement .word { color: var(--line-strong); transition: color .2s; }
.statement .word.is-on { color: var(--ink); }
.statement .word.accent.is-on { color: var(--accent); font-style: italic; }

/* ---------- statement ---------- */
.statement { font-family: var(--f-display); font-size: clamp(2rem, 4.4vw, 4.4rem); line-height: 1.08; letter-spacing: -.015em; max-width: 22ch; }

/* ---------- stats ---------- */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); }
@media (min-width: 900px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { padding: 34px 24px 34px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 900px) { .stat { border-bottom: 0; border-right: 1px solid var(--line); padding: 40px 32px; } .stat:first-child { padding-left: 0; } .stat:last-child { border-right: 0; } }
.stat__num { font-family: var(--f-display); font-size: clamp(3.2rem, 6vw, 5.6rem); line-height: 1; display: flex; align-items: baseline; gap: 4px; }
.stat__num sup { font-family: var(--f-sans); font-size: .35em; color: var(--accent); font-weight: 600; top: -.9em; position: relative; }
.stat__label { margin-top: 14px; color: var(--ink-2); font-size: .95rem; max-width: 24ch; }
.stat__note { margin-top: 18px; font-size: .78rem; color: var(--muted); font-family: var(--f-mono); }

/* ---------- filtration story (pinned) ---------- */
.story { position: relative; }
.story__pin { position: relative; height: 100vh; height: 100svh; overflow: hidden; display: grid; }
@media (min-width: 900px) { .story__pin { grid-template-columns: .9fr 1.1fr; } }
.story__canvas-wrap { position: relative; order: -1; min-height: 46vh; }
@media (min-width: 900px) { .story__canvas-wrap { order: 2; } }
.story__canvas-wrap canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.story__text { position: relative; display: flex; flex-direction: column; justify-content: center; padding: 24px var(--gutter) 40px; }
@media (min-width: 900px) { .story__text { padding: 0 0 0 max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter))); } }
.story__steps { position: relative; min-height: 220px; margin-top: 28px; }
@media (min-width: 900px) { .story__steps { min-height: 280px; } }
.story__step { position: absolute; inset: 0; opacity: 0; transform: translateY(30px); transition: opacity .6s var(--ease), transform .8s var(--ease); pointer-events: none; }
.story__step.is-active { opacity: 1; transform: none; }
.story__step .num { font-family: var(--f-mono); font-size: .8rem; color: var(--accent-2); letter-spacing: .1em; }
.story__step h3 { font-family: var(--f-display); font-weight: 400; font-size: clamp(2.2rem, 4.2vw, 4rem); line-height: 1; margin: 14px 0 18px; }
.story__step p { color: var(--d-ink-2); max-width: 40ch; }
.story__progress { display: flex; gap: 8px; margin-top: 24px; }
.story__progress i { height: 2px; flex: 1; max-width: 80px; background: var(--d-line); position: relative; overflow: hidden; }
.story__progress i b { position: absolute; inset: 0; background: var(--accent-2); transform: scaleX(0); transform-origin: left; }
.story__purity { position: absolute; right: var(--gutter); bottom: 96px; z-index: 2; text-align: right; font-family: var(--f-mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--d-ink-2); }
.story__purity strong { display: block; font-family: var(--f-display); font-size: clamp(2.6rem, 4vw, 3.6rem); letter-spacing: 0; color: var(--d-ink); font-weight: 400; text-transform: none; }

/* ---------- tech grid ---------- */
.tech-grid { display: grid; grid-template-columns: 1fr; border-top: 1px solid var(--line); }
@media (min-width: 700px) { .tech-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .tech-grid { grid-template-columns: repeat(3, 1fr); } }
.tech {
  position: relative; overflow: hidden; isolation: isolate;
  padding: 40px 32px 36px; min-height: 360px;
  display: flex; flex-direction: column; justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
@media (min-width: 700px) { .tech { border-right: 1px solid var(--line); } }
.tech__img { position: absolute; inset: 0; z-index: -1; opacity: 0; transform: scale(1.15); transition: opacity .7s var(--ease), transform 1.4s var(--ease); }
.tech__img img { width: 100%; height: 100%; object-fit: cover; }
.tech__img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(3, 21, 28, .35), rgba(3, 21, 28, .88)); }
.tech:hover .tech__img { opacity: 1; transform: scale(1); }
.tech:hover { color: #fff; }
.tech__top { display: flex; justify-content: space-between; align-items: flex-start; }
.tech__code { font-family: var(--f-display); font-size: clamp(3.4rem, 5vw, 4.6rem); line-height: 1; }
.tech__icon { width: 54px; height: 54px; color: var(--accent); transition: color .4s, transform .8s var(--ease); }
.tech:hover .tech__icon { color: var(--accent-2); transform: rotate(-12deg) scale(1.08); }
.tech h3 { margin-bottom: 8px; }
.tech p { color: var(--muted); font-size: .95rem; transition: color .4s; }
.tech:hover p { color: rgba(255,255,255,.8); }
.tech__idx { font-family: var(--f-mono); font-size: .74rem; color: var(--muted); }
.tech:hover .tech__idx { color: rgba(255,255,255,.7); }

/* ---------- marquee ---------- */
.marquee { overflow: hidden; white-space: nowrap; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__track { display: inline-flex; gap: 0; will-change: transform; animation: marquee var(--dur, 40s) linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee--rev .marquee__track { animation-direction: reverse; }
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee--big .marquee__item { font-family: var(--f-display); font-size: clamp(3.4rem, 9vw, 9rem); line-height: 1.1; padding: 0 .35em; display: inline-flex; align-items: center; gap: .35em; }
.marquee--big .marquee__item::after { content: ""; width: .28em; height: .28em; border-radius: 50%; background: var(--accent); display: inline-block; }
.marquee--big .marquee__item:nth-child(even) { font-style: italic; color: transparent; -webkit-text-stroke: 1px var(--ink); }
.marquee--clients .marquee__item { font-size: clamp(1.1rem, 1.8vw, 1.5rem); font-weight: 600; padding: 0 28px; color: var(--ink-2); display: inline-flex; align-items: center; gap: 56px; }
.marquee--clients .marquee__item::after { content: "✦"; color: var(--accent); font-size: .8em; }

/* ---------- chemicals ---------- */
.chem-strip { display: grid; gap: 0; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
@media (min-width: 900px) { .chem-strip { grid-template-columns: repeat(6, 1fr); } }
.chem-strip a { padding: 28px 22px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 40px; transition: background-color .4s; }
.chem-strip a:hover { background: var(--accent-soft); }
.chem-strip .n { font-family: var(--f-mono); font-size: .74rem; color: var(--muted); }
.chem-strip b { font-family: var(--f-display); font-weight: 400; font-size: 1.9rem; line-height: 1; }

/* ---------- image cards / media ---------- */
.media { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--bg-2); }
.media img, .media video { width: 100%; height: 100%; object-fit: cover; }
.media--parallax img { height: 120%; position: absolute; top: -10%; left: 0; }
.reveal-mask { clip-path: inset(100% 0 0 0 round var(--radius)); }

.industry-cards { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .industry-cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .industry-cards { grid-template-columns: repeat(4, 1fr); } }
.icard { position: relative; aspect-ratio: 3/4.2; border-radius: var(--radius); overflow: hidden; color: #fff; isolation: isolate; display: flex; flex-direction: column; justify-content: flex-end; padding: 26px; }
.icard img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.icard::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 30%, rgba(3, 21, 28, .9)); transition: background .6s; }
.icard:hover img { transform: scale(1.08); }
.icard__n { position: absolute; top: 22px; left: 26px; font-family: var(--f-mono); font-size: .74rem; letter-spacing: .1em; }
.icard h3 { font-family: var(--f-display); font-weight: 400; font-size: 2.1rem; line-height: 1; margin-bottom: 10px; }
.icard p { font-size: .9rem; color: rgba(255,255,255,.78); max-height: 0; overflow: hidden; opacity: 0; transition: max-height .8s var(--ease), opacity .6s; }
.icard:hover p { max-height: 140px; opacity: 1; }

/* ---------- projects ---------- */
.projects { display: grid; gap: clamp(18px, 2vw, 28px); grid-template-columns: 1fr; }
@media (min-width: 800px) { .projects { grid-template-columns: repeat(2, 1fr); } }
.project { display: block; }
.project .media { aspect-ratio: 4/3; }
.project .media img { transition: transform 1.4s var(--ease), filter .8s; }
.project:hover .media img { transform: scale(1.06); }
.project__meta { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; padding-top: 20px; }
.project__meta h3 { font-family: var(--f-display); font-weight: 400; font-size: clamp(1.7rem, 2.4vw, 2.3rem); line-height: 1.05; }
.project__meta p { color: var(--muted); font-size: .92rem; margin-top: 6px; }
.project__cap { font-family: var(--f-mono); font-size: .8rem; white-space: nowrap; padding: 8px 12px; border: 1px solid var(--line-strong); border-radius: 999px; }
.project__tag { position: absolute; top: 16px; left: 16px; z-index: 2; font-family: var(--f-mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; padding: 7px 12px; border-radius: 999px; background: rgba(255,255,255,.88); color: #041219; backdrop-filter: blur(8px); }
@media (min-width: 800px) { .projects .project:nth-child(even) { margin-top: 120px; } }

/* ---------- strengths ---------- */
.strengths { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .strengths { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .strengths { grid-template-columns: repeat(3, 1fr); } }
.scard {
  --mx: 50%; --my: 50%;
  position: relative; padding: 34px 30px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line); overflow: hidden; isolation: isolate;
  transition: transform .6s var(--ease), border-color .4s, box-shadow .6s;
  transform-style: preserve-3d;
}
.scard::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .5s;
  background: radial-gradient(420px circle at var(--mx) var(--my), var(--accent-soft), transparent 60%);
}
.scard:hover { border-color: var(--accent); box-shadow: var(--shadow); }
.scard:hover::before { opacity: 1; }
.scard__icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); margin-bottom: 40px; }
.scard__icon svg { width: 26px; height: 26px; }
.scard h3 { margin-bottom: 10px; }
.scard p { color: var(--ink-2); font-size: .96rem; }
.scard--wide { grid-column: 1 / -1; }
@media (min-width: 1100px) { .scard--wide { grid-column: span 2; } }

/* ---------- region ---------- */
.region { position: relative; overflow: hidden; isolation: isolate; }
.region__video { position: absolute; inset: 0; z-index: -2; }
.region__video video { width: 100%; height: 100%; object-fit: cover; opacity: .75; }
.region::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(4, 18, 25, .95) 10%, rgba(4, 18, 25, .4) 70%, rgba(4,18,25,.75)); }
.branches { display: grid; gap: 18px; grid-template-columns: 1fr; margin-top: 56px; }
@media (min-width: 800px) { .branches { grid-template-columns: repeat(2, 1fr); max-width: 980px; } }
.branch { padding: 30px; border-radius: var(--radius); border: 1px solid var(--d-line); background: rgba(10, 30, 39, .5); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.branch__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 26px; }
.branch__city { font-family: var(--f-display); font-size: 2.6rem; line-height: 1; }
.branch__time { font-family: var(--f-mono); font-size: .8rem; color: var(--accent-2); display: inline-flex; align-items: center; gap: 8px; }
.branch__time::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #3BE58A; box-shadow: 0 0 0 0 rgba(59, 229, 138, .6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(59, 229, 138, 0); } 100% { box-shadow: 0 0 0 0 rgba(59, 229, 138, 0); } }
.branch address { font-style: normal; color: var(--d-ink-2); font-size: .95rem; display: grid; gap: 6px; }
.branch address a:hover { color: var(--accent-2); }

/* ---------- CTA ---------- */
.cta { text-align: center; }
.cta h2 { font-size: clamp(3rem, 9vw, 9rem); max-width: 14ch; margin: 0 auto; }
.cta__btn {
  margin: 56px auto 0; width: clamp(160px, 18vw, 220px); aspect-ratio: 1; border-radius: 50%;
  display: grid; place-items: center; text-align: center; font-weight: 600;
  background: var(--accent); color: var(--on-accent); position: relative; isolation: isolate; overflow: hidden;
}
.cta__btn::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--ink); transform: scale(0); transition: transform .7s var(--ease); z-index: -1; }
.cta__btn:hover::before { transform: scale(1); }
.cta__btn:hover { color: var(--bg); }
.cta__btn span { display: grid; gap: 6px; place-items: center; }
.cta__btn svg { width: 26px; height: 26px; }

/* ---------- footer ---------- */
.footer { padding: 100px 0 32px; position: relative; overflow: hidden; }
.footer__grid { display: grid; gap: 48px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.footer h4 { font-family: var(--f-mono); font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--d-ink-2); margin-bottom: 20px; font-weight: 500; }
.footer ul { display: grid; gap: 10px; }
.footer a { color: var(--d-ink); opacity: .82; transition: opacity .3s, color .3s; }
.footer a:hover { opacity: 1; color: var(--accent-2); }
.footer__lead { font-family: var(--f-display); font-size: clamp(1.8rem, 2.6vw, 2.4rem); line-height: 1.1; max-width: 16ch; }
.footer__word {
  margin-top: 90px; font-family: var(--f-display); font-size: clamp(5rem, 22vw, 22rem); line-height: .8; letter-spacing: -.04em;
  background: linear-gradient(180deg, var(--d-ink) 0%, rgba(233, 244, 246, .05) 95%); -webkit-background-clip: text; background-clip: text; color: transparent;
  white-space: nowrap; user-select: none;
}
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--d-line); font-size: .82rem; color: var(--d-ink-2); }

/* ---------- inner page hero ---------- */
.phero { position: relative; min-height: 92svh; display: flex; align-items: flex-end; overflow: hidden; isolation: isolate; color: #fff; }
.phero__media { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.phero__media img { width: 100%; height: 115%; object-fit: cover; }
.phero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(2,16,23,.55) 0%, rgba(2,16,23,.1) 35%, rgba(2,16,23,.85) 100%); }
.phero__content { width: 100%; padding-top: 160px; padding-bottom: clamp(40px, 7vh, 80px); }
.phero__title { font-size: clamp(3.2rem, 9vw, 9rem); max-width: 14ch; }
.phero__bar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; align-items: end; margin-top: 36px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.2); }
.phero__bar p { max-width: 52ch; color: rgba(255,255,255,.8); }
.crumbs { font-family: var(--f-mono); font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.7); display: flex; gap: 10px; margin-bottom: 26px; }
.crumbs a:hover { color: #fff; }

/* variant: split hero (text left, image right) */
.phero--split { color: var(--ink); min-height: auto; align-items: stretch; }
.phero--split::after { display: none; }
.phero--split .phero__content { display: grid; gap: 40px; padding-top: 150px; }
@media (min-width: 1000px) { .phero--split .phero__content { grid-template-columns: 1fr 1fr; align-items: end; } }
.phero--split .crumbs { color: var(--muted); }
.phero--split .phero__img { aspect-ratio: 4/5; border-radius: var(--radius); overflow: hidden; position: relative; }
.phero--split .phero__img img { width: 100%; height: 100%; object-fit: cover; }
.phero--split .phero__bar { border-top-color: var(--line); }
.phero--split .phero__bar p { color: var(--ink-2); }

/* anchor subnav */
.subnav { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.subnav .container { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-top: 12px; padding-bottom: 12px; }
.subnav a { flex: none; padding: 9px 16px; border-radius: 999px; font-size: .86rem; font-weight: 500; color: var(--ink-2); border: 1px solid transparent; transition: all .3s; }
.subnav a:hover, .subnav a.is-active { border-color: var(--line-strong); color: var(--ink); background: var(--surface); }

/* ---------- two-col content blocks ---------- */
.split { display: grid; gap: clamp(36px, 6vw, 90px); grid-template-columns: 1fr; align-items: center; }
@media (min-width: 960px) { .split { grid-template-columns: 1fr 1fr; } .split--rev > :first-child { order: 2; } }
.split .media { aspect-ratio: 4/5; }
.split .media--wide { aspect-ratio: 16/11; }
.prose p + p { margin-top: 1em; }
.prose p { color: var(--ink-2); }

/* mission/vision cards */
.mv { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .mv { grid-template-columns: 1fr 1fr; } }
.mv__card { position: relative; overflow: hidden; border-radius: var(--radius); padding: clamp(32px, 4vw, 56px); min-height: 440px; display: flex; flex-direction: column; justify-content: space-between; color: #fff; isolation: isolate; }
.mv__card img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform 1.6s var(--ease); }
.mv__card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(2,16,23,.25), rgba(2,16,23,.85)); }
.mv__card:hover img { transform: scale(1.06); }
.mv__card p { font-family: var(--f-display); font-size: clamp(1.7rem, 2.6vw, 2.5rem); line-height: 1.12; max-width: 22ch; }
.mv__card .eyebrow { color: rgba(255,255,255,.8); }

/* values */
.values { display: grid; grid-template-columns: 1fr; border-top: 1px solid var(--line); }
@media (min-width: 800px) { .values { grid-template-columns: repeat(3, 1fr); } }
.value { padding: 48px 32px 48px 0; border-bottom: 1px solid var(--line); text-align: left; }
@media (min-width: 800px) { .value { border-right: 1px solid var(--line); padding: 56px 40px; } .value:first-child { padding-left: 0; } .value:last-child { border-right: 0; } }
.value svg { width: 64px; height: 64px; color: var(--accent); margin-bottom: 36px; }
.value h3 { font-family: var(--f-display); font-weight: 400; font-size: clamp(2rem, 3vw, 2.8rem); }

/* chips */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line-strong); font-size: .92rem; transition: all .35s var(--ease); background: transparent; }
.chip:hover { border-color: var(--accent); color: var(--accent); }
button.chip.is-active { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* ---------- horizontal scroll (services) ---------- */
.hscroll { position: relative; overflow: hidden; }
.hscroll__track { display: flex; gap: 20px; padding: 0 var(--gutter); width: max-content; }
.hcard { position: relative; flex: none; width: min(78vw, 520px); height: min(70vh, 620px); border-radius: var(--radius); overflow: hidden; color: #fff; isolation: isolate; padding: 34px; display: flex; flex-direction: column; justify-content: space-between; }
.hcard img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.hcard::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(2,16,23,.5), rgba(2,16,23,.1) 40%, rgba(2,16,23,.9)); }
.hcard:hover img { transform: scale(1.06); }
.hcard__code { font-family: var(--f-display); font-size: clamp(4rem, 7vw, 6.6rem); line-height: .9; }
.hcard h3 { font-size: 1.4rem; margin-bottom: 8px; }
.hcard p { color: rgba(255,255,255,.8); max-width: 36ch; }
.hcard__top { display: flex; justify-content: space-between; align-items: flex-start; font-family: var(--f-mono); font-size: .76rem; letter-spacing: .1em; }
.hscroll__intro { flex: none; width: min(80vw, 440px); display: flex; flex-direction: column; justify-content: center; padding-right: 40px; }
@media (max-width: 899px) {
  .hscroll__track { overflow-x: auto; scroll-snap-type: x mandatory; width: auto; padding-bottom: 12px; }
  .hcard { scroll-snap-align: start; height: 460px; }
}

/* lists with lines */
.line-list { border-top: 1px solid var(--line); }
.line-list li { display: grid; grid-template-columns: 60px 1fr; gap: 16px; padding: 22px 0; border-bottom: 1px solid var(--line); align-items: baseline; transition: padding .5s var(--ease), color .3s; }
.line-list li:hover { padding-left: 14px; color: var(--accent); }
.line-list .n { font-family: var(--f-mono); font-size: .78rem; color: var(--muted); }
.line-list b { font-weight: 600; }

/* O&M grid */
.om-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.om { padding: 22px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--surface); display: flex; gap: 14px; align-items: center; font-weight: 500; transition: transform .5s var(--ease), border-color .3s; }
.om:hover { transform: translateY(-4px); border-color: var(--accent); }
.om i { width: 10px; height: 10px; flex: none; border-radius: 50%; border: 2px solid var(--accent); }

/* steps */
.steps { position: relative; display: grid; gap: 40px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(4, 1fr); gap: 28px; } }
.steps__line { position: absolute; left: 0; right: 0; top: 34px; height: 2px; background: var(--line); display: none; }
.steps__line b { position: absolute; inset: 0; background: var(--accent); transform: scaleX(0); transform-origin: left; }
@media (min-width: 900px) { .steps__line { display: block; } }
.step__dot { position: relative; z-index: 1; width: 70px; height: 70px; border-radius: 50%; display: grid; place-items: center; background: var(--bg); border: 1px solid var(--line-strong); font-family: var(--f-display); font-size: 1.8rem; margin-bottom: 26px; transition: background .5s, color .5s, border-color .5s; }
.step.is-on .step__dot { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.step h3 { margin-bottom: 8px; }
.step p { color: var(--ink-2); font-size: .96rem; }

.promise { display: grid; gap: 16px; grid-template-columns: 1fr; margin-top: 70px; }
@media (min-width: 800px) { .promise { grid-template-columns: repeat(3, 1fr); } }
.promise div { padding: 26px; border-radius: var(--radius); background: var(--accent-soft); color: var(--ink); font-weight: 500; }
.promise div b { display: block; font-family: var(--f-display); font-weight: 400; font-size: 1.8rem; color: var(--accent); margin-bottom: 6px; }

/* ---------- products ---------- */
.products { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .products { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1200px) { .products { grid-template-columns: repeat(3, 1fr); } }
.pcard { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; transition: transform .6s var(--ease), box-shadow .6s, border-color .4s, opacity .5s; }
.pcard:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--accent); }
.pcard.is-hidden { display: none; }
.pcard__media { position: relative; aspect-ratio: 16/10; overflow: hidden; }
.pcard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.pcard:hover .pcard__media img { transform: scale(1.07); }
.pcard__count { position: absolute; right: 16px; bottom: -1px; background: var(--surface); padding: 10px 16px 6px; border-radius: 14px 14px 0 0; font-family: var(--f-display); font-size: 2.6rem; line-height: 1; }
.pcard__count small { font-family: var(--f-mono); font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-left: 6px; }
.pcard__body { padding: 26px 26px 28px; display: flex; flex-direction: column; flex: 1; }
.pcard h3 { font-family: var(--f-display); font-weight: 400; font-size: 2rem; line-height: 1.05; margin-bottom: 16px; }
.pcard ul { display: grid; gap: 8px; margin-bottom: 26px; }
.pcard li { display: flex; gap: 10px; color: var(--ink-2); font-size: .94rem; line-height: 1.45; }
.pcard li::before { content: ""; flex: none; width: 6px; height: 6px; margin-top: .55em; border-radius: 50%; background: var(--accent); }
.pcard .btn { margin-top: auto; align-self: flex-start; }
.pcard__note { font-family: var(--f-mono); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }

/* ---------- industries hover list ---------- */
.hlist { border-top: 1px solid var(--line); position: relative; }
.hlist__row { position: relative; display: grid; grid-template-columns: 1fr; gap: 14px; padding: 36px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 900px) { .hlist__row { grid-template-columns: 90px 1fr 1.2fr; align-items: baseline; padding: 44px 0; } }
.hlist__row .n { font-family: var(--f-mono); font-size: .8rem; color: var(--muted); }
.hlist__row h3 { font-family: var(--f-display); font-weight: 400; font-size: clamp(2.6rem, 5.4vw, 5.2rem); line-height: 1; transition: transform .7s var(--ease), color .4s; }
.hlist__row:hover h3 { transform: translateX(20px); color: var(--accent); font-style: italic; }
.hlist__row ul { display: flex; flex-wrap: wrap; gap: 8px; }
.hlist__row li { font-size: .9rem; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink-2); }
.hlist__img { display: none; }
@media (pointer: fine) and (min-width: 900px) {
  .hlist__follow { position: fixed; left: 0; top: 0; z-index: 30; width: 340px; height: 420px; border-radius: var(--radius); overflow: hidden; pointer-events: none; opacity: 0; transform: translate(-50%, -50%) scale(.6) rotate(-6deg); transition: opacity .4s, transform .6s var(--ease); }
  .hlist__follow.is-on { opacity: 1; transform: translate(-50%, -50%) scale(1) rotate(0); }
  .hlist__follow img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .4s; }
  .hlist__follow img.is-active { opacity: 1; }
}
@media not ((pointer: fine) and (min-width: 900px)) {
  .hlist__follow { display: none; }
  .hlist__img { display: block; aspect-ratio: 16/9; border-radius: var(--radius-sm); overflow: hidden; }
  .hlist__img img { width: 100%; height: 100%; object-fit: cover; }
}

/* ---------- portfolio ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 44px; }
.pf-grid { display: grid; gap: 22px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .pf-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1150px) { .pf-grid { grid-template-columns: repeat(3, 1fr); } }
.pf { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/5; color: #fff; isolation: isolate; display: flex; flex-direction: column; justify-content: space-between; padding: 24px; }
.pf.is-hidden { display: none; }
.pf img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.pf::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(2,16,23,.25), transparent 35%, rgba(2,16,23,.92)); }
.pf:hover img { transform: scale(1.07); }
.pf__top { display: flex; justify-content: space-between; gap: 10px; font-family: var(--f-mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; }
.pf__top span { padding: 6px 11px; border-radius: 999px; background: rgba(255,255,255,.14); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.pf__cap { font-family: var(--f-display); font-size: clamp(2.6rem, 4vw, 3.4rem); line-height: 1; }
.pf__cap small { font-size: .45em; margin-left: 4px; }
.pf h3 { font-size: 1.2rem; margin-top: 10px; }
.pf p { font-size: .9rem; color: rgba(255,255,255,.75); margin-top: 4px; }

.refs { display: grid; gap: 0; border-top: 1px solid var(--line); }
.acc { border-bottom: 1px solid var(--line); }
.acc__head { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 30px 0; text-align: left; }
.acc__head h3 { font-family: var(--f-display); font-weight: 400; font-size: clamp(1.8rem, 3vw, 2.8rem); line-height: 1.05; transition: color .3s; }
.acc__head:hover h3 { color: var(--accent); }
.acc__plus { flex: none; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line-strong); position: relative; transition: transform .6s var(--ease), background .3s; }
.acc__plus::before, .acc__plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 1.5px; background: currentColor; transform: translate(-50%, -50%); }
.acc__plus::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .6s var(--ease); }
.acc.is-open .acc__plus { transform: rotate(180deg); background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.acc.is-open .acc__plus::after { transform: translate(-50%, -50%) rotate(0); }
.acc__body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .7s var(--ease); }
.acc.is-open .acc__body { grid-template-rows: 1fr; }
.acc__body > div { overflow: hidden; }
.acc__body ul { display: grid; gap: 0; padding-bottom: 30px; }
@media (min-width: 800px) { .acc__body ul { grid-template-columns: 1fr 1fr; column-gap: 40px; } }
.acc__body li { padding: 12px 0; border-top: 1px dashed var(--line); color: var(--ink-2); font-size: .96rem; }
.acc__body li b { color: var(--ink); font-weight: 600; }

/* ---------- quality cycle ---------- */
.cycle { position: relative; width: min(100%, 520px); aspect-ratio: 1; margin: 0 auto; }
.cycle svg { width: 100%; height: 100%; }
.cycle__ring { transform-origin: 50% 50%; animation: spin 40s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.cycle__center { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; }
.cycle__center b { font-family: var(--f-display); font-weight: 400; font-size: clamp(2rem, 4vw, 3rem); line-height: 1; display: block; }
.cycle__node { position: absolute; transform: translate(-50%, -50%); background: var(--surface); border: 1px solid var(--line-strong); border-radius: 999px; padding: 10px 18px; font-weight: 600; font-size: .9rem; white-space: nowrap; box-shadow: var(--shadow); }
.cycle__node:nth-of-type(1) { left: 50%; top: 4%; } .cycle__node:nth-of-type(2) { left: 96%; top: 50%; }
.cycle__node:nth-of-type(3) { left: 50%; top: 96%; } .cycle__node:nth-of-type(4) { left: 4%; top: 50%; }
@media (max-width: 600px) { .cycle__node { font-size: .76rem; padding: 7px 12px; } .cycle__node:nth-of-type(2) { left: 88%; } .cycle__node:nth-of-type(4) { left: 12%; } }

.big-quote { font-family: var(--f-display); font-size: clamp(2.2rem, 5vw, 4.8rem); line-height: 1.05; max-width: 20ch; }
.big-quote em { color: var(--accent); }

/* ---------- contact ---------- */
.contact-grid { display: grid; gap: clamp(40px, 6vw, 90px); grid-template-columns: 1fr; }
@media (min-width: 1000px) { .contact-grid { grid-template-columns: .9fr 1.1fr; } }
.cbranch { padding: 30px 0; border-top: 1px solid var(--line); }
.cbranch h3 { font-family: var(--f-display); font-weight: 400; font-size: 2.4rem; line-height: 1; margin-bottom: 18px; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.cbranch h3 small { font-family: var(--f-mono); font-size: .76rem; color: var(--accent); }
.cbranch address { font-style: normal; display: grid; gap: 8px; color: var(--ink-2); }
.cbranch a { font-weight: 600; color: var(--ink); }
.cbranch a:hover { color: var(--accent); }

.form { padding: clamp(28px, 4vw, 52px); border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.form__grid { display: grid; gap: 22px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .form__grid { grid-template-columns: 1fr 1fr; } .field--full { grid-column: 1 / -1; } }
.field { position: relative; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: var(--ink); background: transparent;
  border: 0; border-bottom: 1px solid var(--line-strong); padding: 26px 0 10px; border-radius: 0;
  transition: border-color .3s; appearance: none; -webkit-appearance: none;
}
.field select { cursor: pointer; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 12px) 32px, calc(100% - 7px) 32px; background-size: 5px 5px; background-repeat: no-repeat; }
.field select option { color: #0A1A23; background: #fff; }
.field textarea { min-height: 120px; resize: vertical; }
.field label { position: absolute; left: 0; top: 26px; color: var(--muted); pointer-events: none; transition: transform .4s var(--ease), font-size .4s, color .3s; transform-origin: left; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label,
.field select + label { transform: translateY(-24px) scale(.78); color: var(--accent); }
.field__bar { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); }
.field input:focus ~ .field__bar, .field select:focus ~ .field__bar, .field textarea:focus ~ .field__bar { transform: scaleX(1); }
.form__foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 18px; margin-top: 34px; }
.form__foot small { color: var(--muted); max-width: 38ch; }
.form__status { margin-top: 18px; font-weight: 600; color: var(--accent); min-height: 1.6em; }

.maps { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .maps { grid-template-columns: 1fr 1fr; } }
.map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 16/11; position: relative; background: var(--bg-2); }
.map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(.5) contrast(1.05); }
[data-theme="dark"] .map iframe { filter: invert(.9) hue-rotate(180deg) grayscale(.4); }
.map__label { position: absolute; left: 14px; top: 14px; padding: 8px 14px; border-radius: 999px; background: var(--surface); font-weight: 600; font-size: .85rem; box-shadow: var(--shadow); }

/* ---------- floating actions ---------- */
.fab { position: fixed; right: 18px; bottom: 18px; z-index: 50; display: grid; gap: 10px; }
.fab a { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; color: #fff; box-shadow: 0 14px 30px -10px rgba(0,0,0,.4); transition: transform .4s var(--ease); position: relative; }
.fab a:hover { transform: scale(1.1) rotate(-6deg); }
.fab a svg { width: 24px; height: 24px; }
.fab__wa { background: #1FAF55; }
.fab__wa::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #1FAF55; animation: ring 2.4s var(--ease) infinite; }
@keyframes ring { from { transform: scale(1); opacity: .8; } to { transform: scale(1.7); opacity: 0; } }
.fab__call { background: var(--deep); }

/* ---------- cursor ---------- */
.cursor, .cursor-dot { position: fixed; left: 0; top: 0; z-index: 9998; pointer-events: none; border-radius: 50%; }
.cursor { width: 44px; height: 44px; margin: -22px 0 0 -22px; border: 1.5px solid var(--accent); display: grid; place-items: center; transition: width .45s var(--ease), height .45s var(--ease), margin .45s var(--ease), background-color .4s, border-color .4s, opacity .3s; }
.cursor-dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: var(--accent); transition: opacity .3s, transform .3s; }
.cursor__label { font-family: var(--f-mono); font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; color: var(--on-accent); opacity: 0; transition: opacity .3s; white-space: nowrap; }
.cursor.is-hover { width: 70px; height: 70px; margin: -35px 0 0 -35px; background: var(--accent-soft); }
.cursor.is-label { width: 104px; height: 104px; margin: -52px 0 0 -52px; background: var(--accent); border-color: var(--accent); }
.cursor.is-label .cursor__label { opacity: 1; }
.cursor.is-label + .cursor-dot, .cursor.is-hover + .cursor-dot { opacity: 0; }
.cursor.is-down { width: 32px; height: 32px; margin: -16px 0 0 -16px; }
.cursor.is-text { width: 4px; height: 36px; margin: -18px 0 0 -2px; border-radius: 2px; background: var(--accent); border-color: transparent; }
.cursor.is-hidden, .cursor.is-hidden + .cursor-dot { opacity: 0; }
@media (pointer: fine) { html.has-cursor, html.has-cursor * { cursor: none !important; } }
@media (pointer: coarse) { .cursor, .cursor-dot { display: none; } }
#fx { position: fixed; inset: 0; z-index: 9997; pointer-events: none; width: 100vw; height: 100vh; }

/* ---------- preloader ---------- */
.loader { position: fixed; inset: 0; z-index: 10000; display: grid; place-items: center; background: #031117; color: #E9F4F6; overflow: hidden; }
.loader__water { position: absolute; left: 0; right: 0; bottom: 0; height: 0%; background: linear-gradient(180deg, #0A6F7C, #04303E); }
.loader__water svg { position: absolute; left: 0; bottom: 100%; width: 200%; height: 40px; animation: wave 3s linear infinite; }
.loader__water svg path { fill: #0A6F7C; }
@keyframes wave { to { transform: translateX(-50%); } }
.loader__center { position: relative; z-index: 2; text-align: center; display: grid; gap: 22px; place-items: center; }
.loader__drop { width: 64px; height: 84px; }
.loader__drop path { fill: none; stroke: #7DEFF3; stroke-width: 1.4; stroke-dasharray: 260; stroke-dashoffset: 260; }
.loader__word { font-family: var(--f-display); font-size: clamp(3rem, 9vw, 7rem); line-height: .9; letter-spacing: -.02em; overflow: hidden; }
.loader__word span { display: inline-block; transform: translateY(110%); }
.loader__word em { color: #7DEFF3; }
.loader__sub { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .3em; text-transform: uppercase; color: #A9C1C9; }
.loader__count { position: absolute; z-index: 2; right: var(--gutter); bottom: 26px; font-family: var(--f-display); font-size: clamp(4rem, 12vw, 10rem); line-height: .8; }
.loader__stage { position: absolute; z-index: 2; left: var(--gutter); bottom: 34px; font-family: var(--f-mono); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: #A9C1C9; }
.loader__ripple { position: absolute; left: 50%; top: 50%; width: 10px; height: 10px; margin: -5px; border-radius: 50%; border: 1px solid rgba(125, 239, 243, .6); opacity: 0; }
html.no-loader .loader { display: none; }

/* ---------- page transition ---------- */
.pt { position: fixed; inset: 0; z-index: 9999; pointer-events: none; visibility: hidden; }
.pt.is-active { visibility: visible; pointer-events: auto; }
.pt__layer { position: absolute; left: 0; right: 0; top: 0; height: 100%; transform: translateY(100%); }
.pt__layer svg { position: absolute; left: 0; width: 100%; height: 14vh; }
.pt__layer svg.top { bottom: 100%; }
.pt__layer svg.bot { top: 100%; transform: scaleY(-1); }
.pt__layer--1 { background: #0A6F7C; } .pt__layer--1 svg path { fill: #0A6F7C; }
.pt__layer--2 { background: #031117; } .pt__layer--2 svg path { fill: #031117; }
.pt__label { position: absolute; inset: 0; display: grid; place-items: center; color: #E9F4F6; font-family: var(--f-display); font-size: clamp(2.6rem, 7vw, 6rem); opacity: 0; }
.pt__label em { color: #7DEFF3; }
html.pt-enter .pt { visibility: visible; }
html.pt-enter .pt__layer { transform: translateY(0); }

/* ---------- reveal defaults (JS adds animations) ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(40px); }
.js [data-reveal="fade"] { transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}

/* theme switch uses the View Transitions API (circle reveal from the click) */
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }

/* ---------- misc utilities ---------- */
.mt-s { margin-top: 18px; } .mt-m { margin-top: 36px; } .mt-l { margin-top: 72px; }
.center { text-align: center; }
.bg-2 { background: var(--bg-2); }
.note { font-family: var(--f-mono); font-size: .74rem; color: var(--muted); letter-spacing: .04em; }
.grid-2 { display: grid; gap: 22px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .grid-2 { grid-template-columns: 1fr 1fr; } }
.tile { padding: 34px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
.tile h3 { font-family: var(--f-display); font-weight: 400; font-size: 2.2rem; line-height: 1.05; margin-bottom: 22px; }
.check-list { display: grid; gap: 14px; }
.check-list li { display: flex; gap: 14px; align-items: flex-start; color: var(--ink-2); }
.check-list li::before { content: ""; flex: none; width: 22px; height: 22px; margin-top: 2px; border-radius: 50%; background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230794A2' stroke-width='3'%3E%3Cpath d='M5 12l5 5L19 8'/%3E%3C/svg%3E") center/12px no-repeat; }
.tone-dark .check-list li { color: var(--d-ink-2); }
.badge { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-weight: 600; font-size: .82rem; }
.kicker-num { font-family: var(--f-display); font-size: clamp(5rem, 12vw, 11rem); line-height: .8; color: var(--accent); }
