/* ==========================================================================
   OASIS ENGINEERING & CONSULTANCY — style.css
   Design tokens, base, typography, components, animation styles.
   Mobile-first. Larger-screen adjustments live in responsive.css.
   ========================================================================== */

/* ---------- Fonts (local, variable) ---------- */
@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ---------- Design tokens ---------- */
:root {
  /* Brand palette */
  --orange: #E88B32;
  --orange-2: #F2A04A;
  --navy: #142338;
  --steel: #203C5B;
  --white: #F5F5F2;
  --grey: #A7B1BC;

  /* Derived tones (same hues, used for depth/contrast) */
  --navy-900: #0d1928;
  --white-2: #ebebe6;
  --surface: #ffffff;
  --orange-ink: #9E520A;        /* orange for TEXT on light backgrounds (AA contrast) */
  --muted: #4a5a6b;             /* secondary text on light backgrounds */
  --line: rgba(20, 35, 56, .12);
  --line-dark: rgba(245, 245, 242, .14);

  /* Typography */
  --font-head: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --fs-display: clamp(2.125rem, 1.55rem + 2.9vw, 4rem);
  --fs-h1: clamp(2rem, 1.5rem + 2.3vw, 3.25rem);
  --fs-h2: clamp(1.625rem, 1.35rem + 1.35vw, 2.5rem);
  --fs-h3: clamp(1.1875rem, 1.12rem + .35vw, 1.4375rem);
  --fs-h4: 1.0625rem;
  --fs-body: clamp(1rem, .97rem + .15vw, 1.0625rem);
  --fs-lead: clamp(1.0625rem, 1rem + .3vw, 1.25rem);
  --fs-small: .875rem;
  --fs-xs: .75rem;
  --fs-nav: .9375rem;
  --fs-btn: .9375rem;
  --fs-stat: clamp(2.25rem, 1.8rem + 2vw, 3.5rem);

  /* Layout */
  --gutter: clamp(1.25rem, 4.5vw, 2.5rem);
  --container: 1240px;
  --header-h: 72px;
  --section-y: clamp(4rem, 2.8rem + 5vw, 7.5rem);
  --radius: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(20, 35, 56, .06), 0 4px 14px rgba(20, 35, 56, .06);
  --shadow-md: 0 10px 30px rgba(20, 35, 56, .12);
  --shadow-lg: 0 24px 60px rgba(20, 35, 56, .22);
  --ease: cubic-bezier(.22, .8, .24, 1);
}

/* ---------- Reset / base ---------- */
*, *::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) + 20px);
}
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.65;
  color: var(--navy);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  transition: opacity .25s ease;
}
body.is-leaving { opacity: 0; }
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
:focus { outline: none; }
:focus-visible { outline: 3px solid var(--orange-2); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--orange); color: var(--navy); }
[hidden] { display: none !important; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: inherit;
  text-wrap: balance;
  overflow-wrap: break-word;
}
h1 { font-size: var(--fs-h1); font-weight: 800; line-height: 1.12; letter-spacing: -.02em; }
h2 { font-size: var(--fs-h2); font-weight: 800; line-height: 1.16; letter-spacing: -.015em; }
h3 { font-size: var(--fs-h3); font-weight: 700; line-height: 1.28; letter-spacing: -.01em; }
h4 { font-size: var(--fs-h4); font-weight: 700; line-height: 1.35; }
p { overflow-wrap: break-word; text-wrap: pretty; }
.lead { font-size: var(--fs-lead); line-height: 1.6; color: var(--muted); }
.small { font-size: var(--fs-small); }
.eyebrow {
  display: inline-flex; align-items: center; gap: .625rem;
  font-family: var(--font-head); font-weight: 600; font-size: var(--fs-xs);
  letter-spacing: .12em; text-transform: uppercase; color: var(--orange-ink);
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--orange); flex: none; }
.on-dark .eyebrow, .eyebrow--light { color: var(--orange-2); }

/* ---------- Layout primitives ---------- */
.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.section { position: relative; padding-block: var(--section-y); }
.section--alt { background: var(--white-2); }
.section--dark { background: var(--navy); color: var(--white); }
.section--steel { background: linear-gradient(160deg, var(--steel), var(--navy)); color: var(--white); }
.section--clip { overflow: clip; }
.on-dark { color: var(--white); }
.on-dark .lead, .on-dark p.muted { color: var(--grey); }
.section__head { display: grid; gap: 1rem; max-width: 46rem; margin-bottom: clamp(2rem, 1.2rem + 3vw, 3.5rem); }
.section__head--center { margin-inline: auto; text-align: center; justify-items: center; }
.stack > * + * { margin-top: 1rem; }
.stack-lg > * + * { margin-top: 1.5rem; }
.muted { color: var(--muted); }
.grid { display: grid; gap: clamp(1rem, .6rem + 1.6vw, 1.75rem); grid-template-columns: minmax(0, 1fr); }
.accent { color: var(--orange); }
.sr-only { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link {
  position: fixed; left: 1rem; top: -4rem; z-index: 10000; background: var(--orange); color: var(--navy);
  padding: .75rem 1rem; border-radius: 6px; font-weight: 600; transition: top .2s;
}
.skip-link:focus { top: 1rem; }
.icon { width: 1.5rem; height: 1.5rem; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.icon--sm { width: 1.125rem; height: 1.125rem; }
.icon--lg { width: 1.75rem; height: 1.75rem; }

/* ---------- Buttons (with liquid hover) ---------- */
.btn {
  --btn-bg: var(--orange); --btn-fg: var(--navy); --btn-liquid: var(--orange-2); --btn-bd: transparent;
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 3rem; padding: .75rem 1.5rem;
  font-family: var(--font-body); font-weight: 600; font-size: var(--fs-btn); line-height: 1.2; text-align: center;
  color: var(--btn-fg); background: var(--btn-bg); border: 1.5px solid var(--btn-bd); border-radius: 8px;
  transition: transform .35s var(--ease), color .3s, box-shadow .3s, border-color .3s;
  max-width: 100%;
}
.btn::before {
  content: ""; position: absolute; z-index: -1; left: 50%; top: 100%;
  width: 150%; aspect-ratio: 1; border-radius: 50%; background: var(--btn-liquid);
  transform: translate(-50%, 0) scale(.2); opacity: 0;
  transition: transform .6s var(--ease), opacity .3s;
}
.btn:hover::before, .btn:focus-visible::before { transform: translate(-50%, -62%) scale(1.15); opacity: 1; }
.btn .icon { width: 1.125rem; height: 1.125rem; transition: transform .3s var(--ease); }
.btn:hover .icon { transform: translateX(3px); }
.btn--primary { box-shadow: 0 8px 22px rgba(232, 139, 50, .28); }
.btn--primary:hover { box-shadow: 0 12px 28px rgba(232, 139, 50, .4); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--white); --btn-liquid: var(--orange); --btn-bd: rgba(245, 245, 242, .4); }
.btn--ghost:hover, .btn--ghost:focus-visible { --btn-fg: var(--navy); border-color: var(--orange); }
.btn--dark { --btn-bg: var(--navy); --btn-fg: var(--white); --btn-liquid: var(--orange); }
.btn--dark:hover, .btn--dark:focus-visible { --btn-fg: var(--navy); }
.btn--light { --btn-bg: var(--white); --btn-fg: var(--navy); --btn-liquid: var(--navy); }
.btn--light:hover, .btn--light:focus-visible { --btn-fg: var(--white); }
.btn--outline { --btn-bg: transparent; --btn-fg: var(--navy); --btn-liquid: var(--navy); --btn-bd: var(--navy); }
.btn--outline:hover, .btn--outline:focus-visible { --btn-fg: var(--white); }
.btn-row { display: flex; flex-wrap: wrap; gap: .875rem; }
.link-arrow {
  display: inline-flex; align-items: center; gap: .45rem; font-weight: 600; font-size: .9375rem;
  color: var(--orange-ink); transition: gap .3s var(--ease), color .2s;
}
.link-arrow .icon { width: 1.05rem; height: 1.05rem; }
.link-arrow:hover { gap: .75rem; color: var(--navy); }
.on-dark .link-arrow, .section--dark .link-arrow { color: var(--orange-2); }
.on-dark .link-arrow:hover, .section--dark .link-arrow:hover { color: var(--white); }

/* ---------- Header & navigation ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h);
  color: var(--white);
}
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(20, 35, 56, 0); border-bottom: 1px solid transparent;
  transition: background .35s, border-color .35s, box-shadow .35s;
}
.site-header.is-scrolled::before, .site-header.nav-open::before {
  background: rgba(20, 35, 56, .94); border-bottom-color: var(--line-dark);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.site-header.nav-open::before { background: var(--navy); }
.site-header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }

.brand { display: inline-flex; align-items: center; gap: .7rem; min-width: 0; }
.brand__mark { width: 40px; height: 40px; flex: none; border-radius: 10px; }
.brand__text { display: grid; line-height: 1; min-width: 0; }
.brand__name { font-family: var(--font-head); font-weight: 800; font-size: 1.3125rem; letter-spacing: .1em; color: var(--white); }
.brand__sub { margin-top: .3rem; font-family: var(--font-body); font-weight: 500; font-size: .625rem; letter-spacing: .07em; text-transform: uppercase; color: var(--grey); white-space: nowrap; }

.nav-toggle {
  position: relative; width: 44px; height: 44px; flex: none; display: grid; place-items: center;
  border: 1px solid var(--line-dark); border-radius: 10px; background: rgba(245, 245, 242, .04);
  transition: background .25s, border-color .25s;
}
.nav-toggle:hover { background: rgba(245, 245, 242, .1); border-color: rgba(245, 245, 242, .3); }
.nav-toggle__bars { position: relative; width: 20px; height: 14px; }
.nav-toggle__bars span { position: absolute; left: 0; width: 100%; height: 2px; border-radius: 2px; background: var(--white); transition: transform .35s var(--ease), opacity .2s, top .35s var(--ease); }
.nav-toggle__bars span:nth-child(1) { top: 0; }
.nav-toggle__bars span:nth-child(2) { top: 6px; }
.nav-toggle__bars span:nth-child(3) { top: 12px; }
.nav-open .nav-toggle__bars span:nth-child(1) { top: 6px; transform: rotate(45deg); }
.nav-open .nav-toggle__bars span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle__bars span:nth-child(3) { top: 6px; transform: rotate(-45deg); }

/* Mobile navigation panel */
.site-nav {
  position: absolute; top: 100%; left: 0; right: 0;
  height: calc(100vh - var(--header-h)); height: calc(100dvh - var(--header-h));
  overflow-y: auto; overscroll-behavior: contain;
  padding: 1rem var(--gutter) 2.5rem;
  background: var(--navy);
  display: flex; flex-direction: column; gap: 1.5rem;
  opacity: 0; visibility: hidden; transform: translateY(-10px);
  transition: opacity .3s ease, transform .35s var(--ease), visibility 0s linear .35s;
}
.nav-open .site-nav { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.site-nav__list { display: grid; }
.site-nav__list li { border-bottom: 1px solid var(--line-dark); }
.site-nav__list a {
  position: relative; display: flex; align-items: center; justify-content: space-between;
  min-height: 3.5rem; padding-block: .5rem;
  font-family: var(--font-head); font-weight: 500; font-size: 1.1875rem; color: var(--white);
}
.site-nav__list a::after { content: ""; position: absolute; left: 0; bottom: -1px; height: 2px; width: 0; background: var(--orange); transition: width .35s var(--ease); }
.site-nav__list a[aria-current="page"] { color: var(--orange-2); }
.site-nav__list a[aria-current="page"]::after, .site-nav__list a:hover::after { width: 100%; }
.nav-open .site-nav__list li { animation: navIn .5s var(--ease) both; }
.nav-open .site-nav__list li:nth-child(2) { animation-delay: .04s; }
.nav-open .site-nav__list li:nth-child(3) { animation-delay: .08s; }
.nav-open .site-nav__list li:nth-child(4) { animation-delay: .12s; }
.nav-open .site-nav__list li:nth-child(5) { animation-delay: .16s; }
.nav-open .site-nav__list li:nth-child(6) { animation-delay: .2s; }
@keyframes navIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.site-nav .btn { width: 100%; }
.header-cta { display: none; }

/* ---------- Visual effects (always behind content) ---------- */
.fx { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.blob {
  position: absolute; width: clamp(260px, 62vw, 620px); aspect-ratio: 1;
  background: radial-gradient(circle at 30% 30%, var(--orange-2), var(--orange) 55%, rgba(232, 139, 50, 0) 72%);
  border-radius: 58% 42% 55% 45% / 48% 56% 44% 52%;
  filter: blur(40px); opacity: .32; will-change: transform;
}
.blob--a { top: -12%; right: -18%; }
.blob--b { bottom: -22%; left: -22%; width: clamp(220px, 50vw, 520px); background: radial-gradient(circle at 40% 40%, #3d6a96, var(--steel) 60%, rgba(32, 60, 91, 0) 74%); opacity: .55; }
.blueprint-grid {
  position: absolute; inset: 0; opacity: .5;
  background-image: linear-gradient(rgba(245, 245, 242, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(245, 245, 242, .045) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 85%); mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
}
.deco { position: absolute; display: none; color: var(--orange-2); opacity: .45; pointer-events: none; }
.deco--1 { right: 6%; bottom: 12%; }
.deco--2 { right: 24%; top: 22%; }
.deco--3 { left: 46%; bottom: 8%; }
[data-glow] { position: relative; }
[data-glow]::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: 0; transition: opacity .5s;
  background: radial-gradient(520px circle at var(--mx, 50%) var(--my, 30%), rgba(232, 139, 50, .16), transparent 62%);
}
[data-glow].is-glowing::before { opacity: 1; }
[data-glow] > .container, [data-glow] > .hero__content-wrap { position: relative; z-index: 1; }

/* ---------- Hero (home) ---------- */
.hero {
  position: relative; overflow: clip; isolation: isolate; color: var(--white); background: var(--navy);
  min-height: 640px; min-height: max(640px, 100svh);
  display: flex; flex-direction: column; justify-content: center;
  padding: calc(var(--header-h) + 3rem) 0 3rem;
}
.hero__media { position: absolute; inset: -12% 0; z-index: -2; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; will-change: transform; }
.hero__overlay {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(13, 25, 40, .6) 0%, rgba(13, 25, 40, .3) 40%, rgba(13, 25, 40, .85) 100%),
    linear-gradient(90deg, rgba(13, 25, 40, .8), rgba(13, 25, 40, .1));
}
.hero__content-wrap { position: relative; z-index: 1; }
.hero__content { max-width: 46rem; display: grid; gap: 1.5rem; }
.hero__kicker { display: inline-flex; align-items: center; gap: .6rem; font-family: var(--font-head); font-weight: 600; font-size: var(--fs-xs); letter-spacing: .12em; text-transform: uppercase; color: var(--orange-2); }
.hero__kicker::before { content: ""; width: 28px; height: 2px; background: var(--orange); flex: none; }
.hero h1 { font-size: var(--fs-display); line-height: 1.06; letter-spacing: -.025em; font-weight: 800; }
.hero h1 .accent { display: block; color: var(--orange); }
.hero__lead { font-size: var(--fs-lead); line-height: 1.6; color: rgba(245, 245, 242, .86); max-width: 38rem; }
.hero__tags { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin-top: 1rem; padding-top: 1.5rem; border-top: 1px solid var(--line-dark); }
.hero__tags li { display: inline-flex; align-items: center; gap: .55rem; font-size: var(--fs-small); font-weight: 500; color: rgba(245, 245, 242, .8); }
.hero__tags .icon { color: var(--orange-2); width: 1.2rem; height: 1.2rem; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  position: relative; overflow: clip; isolation: isolate; color: var(--white); background: var(--navy);
  padding: calc(var(--header-h) + clamp(2.75rem, 2rem + 4vw, 5rem)) 0 clamp(3rem, 2rem + 4vw, 5rem);
}
.page-hero__media { position: absolute; inset: 0; z-index: -2; }
.page-hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; opacity: .5; }
.page-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, var(--navy) 18%, rgba(20, 35, 56, .7) 62%, rgba(20, 35, 56, .35)); }
.page-hero .container { position: relative; z-index: 1; display: grid; gap: 1.1rem; }
.page-hero h1 { max-width: 20ch; }
.page-hero p.lead { color: rgba(245, 245, 242, .82); max-width: 40rem; }
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; font-size: var(--fs-small); color: var(--grey); }
.breadcrumb a { color: var(--grey); transition: color .2s; }
.breadcrumb a:hover { color: var(--orange-2); }
.breadcrumb li + li::before { content: "/"; margin-right: .5rem; opacity: .6; }
.breadcrumb { padding: 0; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: .5rem; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.stat { background: var(--surface); padding: clamp(1.25rem, 1rem + 1.5vw, 2rem) 1rem; text-align: center; }
.stat__num { display: block; font-family: var(--font-head); font-weight: 600; font-size: var(--fs-stat); line-height: 1; color: var(--navy); font-variant-numeric: tabular-nums; }
.stat__num span { color: var(--orange); }
.stat__label { display: block; margin-top: .6rem; font-size: var(--fs-small); color: var(--muted); line-height: 1.4; }

/* ---------- Split (text + media) ---------- */
.split { display: grid; gap: clamp(2rem, 1rem + 4vw, 4.5rem); align-items: center; grid-template-columns: minmax(0, 1fr); }
.media-frame { position: relative; }
.media-frame__img { overflow: hidden; border-radius: var(--radius-lg); aspect-ratio: 4 / 3; background: var(--steel); box-shadow: var(--shadow-lg); }
.media-frame__img img { width: 100%; height: 100%; object-fit: cover; }
.media-frame__badge {
  position: absolute; left: 1rem; bottom: -1.25rem; display: flex; align-items: center; gap: .75rem;
  max-width: calc(100% - 2rem); padding: .875rem 1.125rem; border-radius: 12px; background: var(--navy); color: var(--white);
  box-shadow: var(--shadow-md); border: 1px solid var(--line-dark);
}
.media-frame__badge .icon { color: var(--orange-2); }
.media-frame__badge strong { display: block; font-family: var(--font-head); font-size: .9375rem; line-height: 1.2; }
.media-frame__badge span { font-size: var(--fs-xs); color: var(--grey); }
.ticks { display: grid; gap: .75rem; }
.ticks li { display: flex; gap: .75rem; align-items: flex-start; }
.ticks .icon { color: var(--orange); margin-top: .15rem; width: 1.2rem; height: 1.2rem; }
.section--dark .ticks .icon, .on-dark .ticks .icon { color: var(--orange-2); }

/* ---------- Service cards ---------- */
.svc-card {
  position: relative; display: flex; flex-direction: column; height: 100%; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .35s var(--ease), box-shadow .35s, border-color .35s;
  transform-style: preserve-3d;
}
.svc-card:hover { box-shadow: var(--shadow-lg); border-color: rgba(232, 139, 50, .5); }
.svc-card::after { /* mouse glow */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .4s; z-index: 2;
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 50%), rgba(232, 139, 50, .14), transparent 65%);
}
.svc-card:hover::after { opacity: 1; }
.svc-card__media { position: relative; aspect-ratio: 4 / 3; background: var(--navy); }
.svc-card__icon {
  position: absolute; left: 1.25rem; bottom: -1.5rem; z-index: 3; width: 3.25rem; height: 3.25rem; display: grid; place-items: center;
  border-radius: 12px; background: var(--orange); color: var(--navy); box-shadow: 0 8px 20px rgba(232, 139, 50, .4);
}
.svc-card__media-inner { position: absolute; inset: 0; overflow: hidden; }
.svc-card__media-inner img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.svc-card:hover .svc-card__media-inner img { transform: scale(1.06); }
.svc-card__body { display: flex; flex-direction: column; gap: .75rem; flex: 1; padding: 2.25rem 1.5rem 1.5rem; }
.svc-card__body p { color: var(--muted); font-size: .9688rem; }
.svc-card__body .link-arrow { margin-top: auto; padding-top: .5rem; }
.svc-card__body .link-arrow::after { content: ""; position: absolute; inset: 0; z-index: 4; } /* stretched link */
.svc-card--dark { background: rgba(245, 245, 242, .05); border-color: var(--line-dark); box-shadow: none; }
.svc-card--dark h3 { color: var(--white); }
.svc-card--dark .svc-card__body p { color: var(--grey); }
.svc-card--dark:hover { border-color: var(--orange); box-shadow: 0 24px 60px rgba(0, 0, 0, .4); }

/* ---------- Project cards ---------- */
.project-card {
  position: relative; display: block; overflow: hidden; border-radius: var(--radius-lg); background: var(--navy);
  aspect-ratio: 4 / 3; box-shadow: var(--shadow-sm); isolation: isolate;
  transition: box-shadow .4s, transform .4s var(--ease);
}
.project-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.project-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.project-card:hover img { transform: scale(1.07); }
.project-card::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(13, 25, 40, 0) 38%, rgba(13, 25, 40, .92) 100%); transition: opacity .4s; }
.project-card__cat {
  position: absolute; z-index: 2; top: .875rem; left: .875rem; padding: .3rem .7rem; border-radius: 999px;
  font-size: var(--fs-xs); font-weight: 600; letter-spacing: .02em; background: rgba(20, 35, 56, .82); color: var(--white); border: 1px solid var(--line-dark);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.project-card__body { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; padding: 1.125rem 1.25rem; display: flex; align-items: flex-end; justify-content: space-between; gap: .75rem; color: var(--white); }
.project-card__title { font-family: var(--font-head); font-weight: 700; font-size: 1.0625rem; line-height: 1.25; }
.project-card__note { display: block; margin-top: .2rem; font-family: var(--font-body); font-weight: 400; font-size: var(--fs-xs); color: var(--grey); }
.project-card__zoom { flex: none; width: 2.5rem; height: 2.5rem; display: grid; place-items: center; border-radius: 50%; background: var(--orange); color: var(--navy); transform: scale(.8); opacity: 0; transition: transform .4s var(--ease), opacity .3s; }
.project-card:hover .project-card__zoom, .project-card:focus-visible .project-card__zoom { transform: none; opacity: 1; }
.js .project-card.reveal.is-visible.is-entering, .project-card.is-entering { animation: cardIn .5s var(--ease) var(--ed, 0s) both; }
@keyframes cardIn { from { opacity: 0; transform: translateY(16px) scale(.97); } to { opacity: 1; transform: none; } }
.notice {
  display: flex; gap: .875rem; align-items: flex-start; padding: 1rem 1.25rem; border-radius: var(--radius);
  background: rgba(232, 139, 50, .12); border: 1px solid rgba(232, 139, 50, .45); font-size: var(--fs-small); color: var(--navy);
}
.notice .icon { color: var(--orange-ink); margin-top: .1rem; }

/* Filters */
.filters { display: flex; flex-wrap: wrap; gap: .5rem; }
.filter-btn {
  min-height: 2.5rem; padding: .45rem 1rem; border-radius: 999px; font-size: var(--fs-small); font-weight: 600;
  background: var(--surface); border: 1px solid var(--line); color: var(--navy);
  transition: background .25s, color .25s, border-color .25s, transform .25s var(--ease);
}
.filter-btn:hover { border-color: var(--orange); transform: translateY(-1px); }
.filter-btn[aria-pressed="true"] { background: var(--navy); color: var(--white); border-color: var(--navy); }
.results-count { font-size: var(--fs-small); color: var(--muted); }

/* ---------- Feature / value cards ---------- */
.feature {
  position: relative; display: grid; gap: .75rem; align-content: start; padding: clamp(1.25rem, 1rem + 1vw, 1.75rem);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease), box-shadow .35s, border-color .35s;
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: rgba(232, 139, 50, .5); }
.feature__icon { width: 3rem; height: 3rem; display: grid; place-items: center; border-radius: 12px; background: rgba(232, 139, 50, .14); color: var(--orange-ink); }
.feature p { color: var(--muted); font-size: .9688rem; }
.feature--dark { background: rgba(245, 245, 242, .05); border-color: var(--line-dark); box-shadow: none; }
.feature--dark .feature__icon { background: rgba(232, 139, 50, .18); color: var(--orange-2); }
.feature--dark p { color: var(--grey); }
.feature--dark:hover { border-color: var(--orange); box-shadow: none; }
.feature__num { font-family: var(--font-head); font-weight: 600; font-size: var(--fs-xs); letter-spacing: .12em; color: var(--orange-ink); }

/* ---------- Process / steps ---------- */
.steps { display: grid; gap: 0; counter-reset: step; position: relative; }
.step { position: relative; display: grid; grid-template-columns: 3rem minmax(0, 1fr); gap: 1.125rem; padding-bottom: 2rem; }
.step:last-child { padding-bottom: 0; }
.step::before { content: ""; position: absolute; left: 1.5rem; top: 3rem; bottom: 0; width: 2px; background: linear-gradient(var(--orange), rgba(232, 139, 50, .15)); transform: translateX(-1px); }
.step:last-child::before { display: none; }
.step__badge {
  counter-increment: step; width: 3rem; height: 3rem; display: grid; place-items: center; border-radius: 50%;
  font-family: var(--font-head); font-weight: 700; font-size: 1.0625rem; background: var(--orange); color: var(--navy);
  box-shadow: 0 0 0 6px rgba(232, 139, 50, .18);
}
.step__badge::before { content: counter(step, decimal-leading-zero); }
.step__body { display: grid; gap: .35rem; padding-top: .45rem; }
.step__body p { font-size: .9688rem; color: var(--grey); }
.steps--light .step__body p { color: var(--muted); }

/* ---------- Mission / vision ---------- */
.mv-card { position: relative; display: grid; gap: 1rem; padding: clamp(1.5rem, 1rem + 2vw, 2.5rem); border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); overflow: hidden; }
.mv-card::before { content: ""; position: absolute; left: 0; top: 0; width: 4px; height: 100%; background: linear-gradient(var(--orange), var(--orange-2)); }
.mv-card--dark { background: var(--navy); color: var(--white); border-color: var(--navy); }
.mv-card--dark p { color: rgba(245, 245, 242, .85); }
.tag-proposed { display: inline-flex; align-self: start; justify-self: start; padding: .25rem .65rem; border-radius: 999px; font-size: .6875rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; background: rgba(232, 139, 50, .16); color: var(--orange-ink); border: 1px dashed rgba(158, 82, 10, .55); }
.mv-card--dark .tag-proposed { color: var(--orange-2); background: rgba(232, 139, 50, .14); border-color: rgba(242, 160, 74, .6); }
.placeholder { display: inline-block; padding: .05rem .5rem; border: 1px dashed var(--orange-ink); border-radius: 4px; color: var(--orange-ink); background: rgba(232, 139, 50, .08); font-size: .9em; }

/* ---------- Service detail blocks ---------- */
.detail { position: relative; display: grid; gap: 1rem; padding: clamp(1.5rem, 1rem + 1.5vw, 2.25rem); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); scroll-margin-top: calc(var(--header-h) + 20px); transition: border-color .4s, box-shadow .4s; }
.detail:target { border-color: var(--orange); box-shadow: 0 0 0 4px rgba(232, 139, 50, .2), var(--shadow-md); }
.detail__head { display: flex; align-items: center; gap: 1rem; }
.detail__head .feature__icon { flex: none; }
.detail h3 { min-width: 0; }
.detail p { color: var(--muted); }
.detail ul { display: grid; gap: .5rem; padding-top: .25rem; }
.detail li { display: flex; gap: .625rem; font-size: .9688rem; }
.detail li .icon { color: var(--orange); margin-top: .2rem; width: 1.05rem; height: 1.05rem; }
.detail__top { align-self: start; font-size: var(--fs-small); font-weight: 600; color: var(--orange-ink); display: inline-flex; gap: .35rem; align-items: center; }
.detail__top:hover { color: var(--navy); }

/* ---------- Quality band ---------- */
.quote-band { display: grid; gap: 1.5rem; }
.quote-band blockquote { font-family: var(--font-head); font-weight: 700; font-size: clamp(1.375rem, 1.1rem + 1.4vw, 2.125rem); line-height: 1.3; letter-spacing: -.01em; text-wrap: balance; }
.quote-band blockquote em { font-style: normal; color: var(--orange); }

/* ---------- Info / contact cards ---------- */
.info-card {
  display: grid; gap: .65rem; align-content: start; padding: clamp(1.25rem, 1rem + 1vw, 1.75rem); background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); min-width: 0;
  transition: transform .35s var(--ease), box-shadow .35s, border-color .35s;
}
.info-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: rgba(232, 139, 50, .5); }
.info-card h3 { font-size: 1.125rem; }
.info-card p, .info-card address { color: var(--muted); font-style: normal; font-size: .9688rem; overflow-wrap: anywhere; }
.info-card a.value { font-weight: 600; color: var(--navy); overflow-wrap: anywhere; border-bottom: 1px solid var(--orange); width: fit-content; max-width: 100%; transition: color .2s; }
.info-card a.value:hover { color: var(--orange-ink); }
.map-wrap { position: relative; width: 100%; min-width: 0; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-md); aspect-ratio: 4 / 3; min-height: 280px; background: var(--steel); }
.map-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: clip; isolation: isolate; color: var(--navy); background: linear-gradient(120deg, var(--orange), var(--orange-2)); }
.cta-band__inner { position: relative; z-index: 1; display: grid; gap: 1.75rem; padding-block: clamp(3rem, 2rem + 4vw, 5rem); }
.cta-band h2 { max-width: 22ch; }
.cta-band p { max-width: 40rem; color: rgba(20, 35, 56, .85); font-size: var(--fs-lead); }
.cta-band .fx .blob { background: radial-gradient(circle at 40% 40%, #fff, rgba(255, 255, 255, 0) 70%); opacity: .35; }
.cta-band .btn--dark { --btn-liquid: var(--steel); }
.cta-band .btn--dark:hover, .cta-band .btn--dark:focus-visible { --btn-fg: var(--white); }
.btn--wa { --btn-bg: transparent; --btn-fg: var(--navy); --btn-liquid: var(--navy); --btn-bd: var(--navy); }
.btn--wa:hover, .btn--wa:focus-visible { --btn-fg: var(--white); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: var(--grey); padding-top: clamp(3rem, 2rem + 4vw, 5rem); font-size: .9375rem; }
.footer-grid { display: grid; gap: 2.25rem; grid-template-columns: minmax(0, 1fr); padding-bottom: 3rem; }
.footer-brand p { margin-top: 1.25rem; max-width: 28rem; }
.footer-col h2 { font-size: .8125rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--white); margin-bottom: 1.1rem; }
.footer-col ul { display: grid; gap: .6rem; }
.footer-col a { transition: color .2s, padding .25s var(--ease); }
.footer-col a:hover { color: var(--orange-2); }
.footer-contact li { display: flex; gap: .7rem; align-items: flex-start; overflow-wrap: anywhere; }
.footer-contact .icon { color: var(--orange-2); margin-top: .2rem; width: 1.1rem; height: 1.1rem; }
.footer-contact a:hover { color: var(--orange-2); }
.footer-bottom { border-top: 1px solid var(--line-dark); padding-block: 1.5rem; display: grid; gap: .5rem; font-size: var(--fs-small); }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 500; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; background: rgba(8, 15, 25, .94); opacity: 0; visibility: hidden; transition: opacity .3s, visibility 0s linear .3s; padding: .75rem; }
.lightbox.is-open { opacity: 1; visibility: visible; transition-delay: 0s; }
.lightbox__bar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .25rem .25rem .75rem; color: var(--white); }
.lightbox__count { font-size: var(--fs-small); color: var(--grey); }
.lightbox__stage { position: relative; display: grid; place-items: center; min-height: 0; }
.lightbox__img { max-width: 100%; max-height: calc(100vh - 11rem); max-height: calc(100dvh - 11rem); width: auto; height: auto; object-fit: contain; border-radius: 10px; box-shadow: var(--shadow-lg); }
.lightbox__cap { text-align: center; padding: .875rem .5rem .25rem; color: var(--white); }
.lightbox__cap strong { display: block; font-family: var(--font-head); font-size: 1.0625rem; }
.lightbox__cap span { font-size: var(--fs-small); color: var(--grey); }
.lb-btn { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: rgba(245, 245, 242, .1); color: var(--white); border: 1px solid var(--line-dark); transition: background .25s, color .25s; }
.lb-btn:hover { background: var(--orange); color: var(--navy); }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; background: rgba(13, 25, 40, .7); }
.lb-prev { left: .25rem; } .lb-next { right: .25rem; }

/* ---------- Page loader ---------- */
.loader { position: fixed; inset: 0; z-index: 9999; display: none; place-items: center; background: var(--navy); color: var(--white); }
html.has-loader .loader { display: grid; animation: loaderFailsafe .01s linear 5s forwards; }
html.has-loader.loader-done .loader { opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .7s ease, visibility 0s linear .7s; }
@keyframes loaderFailsafe { to { opacity: 0; visibility: hidden; pointer-events: none; } }
.loader__inner { display: grid; justify-items: center; gap: 1.5rem; padding: 1.5rem; width: min(100%, 360px); }
.loader__svg { width: min(72vw, 240px); height: auto; overflow: visible; }
.loader__svg .draw { fill: none; stroke: var(--white); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.6s var(--ease) forwards; }
.loader__svg .draw--accent { stroke: var(--orange); animation-delay: .5s; }
.loader__svg .draw--thin { stroke-width: 1.2; opacity: .6; animation-delay: .9s; }
.loader__svg .fillin { fill: var(--orange); opacity: 0; animation: fadeIn .6s ease 1.4s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fadeIn { to { opacity: .9; } }
.loader__word { font-family: var(--font-head); font-weight: 800; font-size: 1.75rem; letter-spacing: .22em; padding-left: .22em; opacity: 0; animation: fadeUp .8s var(--ease) .7s forwards; }
.loader__sub { margin-top: -1rem; font-size: .6875rem; letter-spacing: .14em; text-transform: uppercase; color: var(--grey); opacity: 0; animation: fadeUp .8s var(--ease) .9s forwards; }
.loader__bar { width: 100%; height: 3px; border-radius: 3px; background: rgba(245, 245, 242, .12); overflow: hidden; }
.loader__bar span { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--orange), var(--orange-2)); transform-origin: left; transform: scaleX(0); animation: bar 1.9s var(--ease) forwards; }
@keyframes bar { to { transform: scaleX(1); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------- Scroll reveal ---------- */
.js .reveal { opacity: 0; }
.js .reveal.is-visible { animation: revealUp .9s var(--ease) var(--d, 0s) both; }
.js .reveal[data-reveal="left"].is-visible { animation-name: revealLeft; }
.js .reveal[data-reveal="right"].is-visible { animation-name: revealRight; }
.js .reveal[data-reveal="zoom"].is-visible { animation-name: revealZoom; }
@keyframes revealUp { from { opacity: 0; translate: 0 28px; } to { opacity: 1; translate: 0 0; } }
@keyframes revealLeft { from { opacity: 0; translate: -36px 0; } to { opacity: 1; translate: 0 0; } }
@keyframes revealRight { from { opacity: 0; translate: 36px 0; } to { opacity: 1; translate: 0 0; } }
@keyframes revealZoom { from { opacity: 0; scale: .94; } to { opacity: 1; scale: 1; } }
.js .img-reveal img { clip-path: inset(0 0 100% 0); }
.js .img-reveal.is-visible img { animation: imgReveal 1.3s var(--ease) var(--d, 0s) both; }
@keyframes imgReveal { from { clip-path: inset(0 0 100% 0); scale: 1.2; } to { clip-path: inset(0 0 0 0); scale: 1; } }
.no-anim .reveal, .no-anim.js .reveal { opacity: 1 !important; animation: none !important; translate: none !important; scale: none !important; }
.no-anim .img-reveal img { clip-path: none !important; animation: none !important; }

/* ---------- Floating / morphing ---------- */
@keyframes morph {
  0%, 100% { border-radius: 58% 42% 55% 45% / 48% 56% 44% 52%; transform: translate3d(0, 0, 0) rotate(0deg) scale(1); }
  33% { border-radius: 42% 58% 38% 62% / 55% 40% 60% 45%; transform: translate3d(-3%, 4%, 0) rotate(40deg) scale(1.06); }
  66% { border-radius: 52% 48% 63% 37% / 40% 58% 42% 60%; transform: translate3d(3%, -3%, 0) rotate(-30deg) scale(.96); }
}
@keyframes floaty { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-16px) rotate(4deg); } }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .js .reveal { opacity: 1; }
  .js .img-reveal img { clip-path: none; }
  .blob, .deco { animation: none !important; }
  html.has-loader .loader { display: none; }
  body.is-leaving { opacity: 1; }
}
