/* ==========================================================================
   Leoson Healthcare and Medical Systems
   Theme: navy + gold from the logo. Light by default (data-theme="light" is set on <html>); dark when the attribute is "dark".
          In light mode, photo areas (banner, page heros, bands, footer...) keep the dark
          tokens so text over images stays readable.
   Shape system: panels, cards and images 20px; icon tiles 14px; inputs 12px;
                 buttons, chips, pills and search fields full pill; timeline nodes round;
                 the home 'why' portrait is an arch.
   Z-index scale: catalog bar 20, header 50, WhatsApp widget 60, grain 90.
   ========================================================================== */

/* Theme tokens: dark (default, and dark surfaces inside the light theme) */
:root,
html[data-theme="light"] :is(.hero-slider, .page-hero, .band, .tile:not(.tile-light), .serve-card, .value-photo, .value-gold, .pacs-photo, .cta-panel, .media-note, .collage-badge, .site-footer, .not-found),
html[data-theme="light"] body:not(.plain-top):not(.nav-open) .site-header:not(.is-scrolled) {
  --navy-950: #050a17;
  --navy-900: #081024;
  --navy-850: #0b1530;
  --navy-800: #101d3d;
  --navy-700: #182a52;

  --gold-200: #f7e6b0;
  --gold-300: #efd48b;
  --gold-400: #e2bb62;
  --gold-text: var(--gold-grad);

  --ink: #eef1f8;
  --ink-soft: #c5cbdb;
  --muted: #9aa3ba;
  --line: rgba(226, 187, 98, 0.18);
  --line-soft: rgba(255, 255, 255, 0.08);
  --danger: #f5a196;

  --header-bg: rgba(6, 12, 28, .8);
  --surface-soft: rgba(255, 255, 255, .025);
  --icon-bg: rgba(5, 10, 23, .45);
  --ghost-border: rgba(239, 212, 139, .35);
  --input-bg: rgba(5, 10, 23, .6);
  --input-border: rgba(255, 255, 255, .16);
  --input-border-hover: rgba(255, 255, 255, .26);
  --placeholder: #8690a8;
  --card-shadow: none;
  --show-on-dark: block;
  --show-on-light: none;

  color-scheme: dark;
}

/* Theme tokens: light */
html[data-theme="light"] {
  --navy-950: #eef1f7;
  --navy-900: #f7f8fb;
  --navy-850: #ffffff;
  --navy-800: #ffffff;
  --navy-700: #e9edf5;

  --gold-200: #7d5a1a;
  --gold-300: #8a6420;
  --gold-400: #b8862f;
  --gold-text: linear-gradient(135deg, #b0832d 0%, #8a6420 50%, #a57a2a 100%);

  --ink: #0b1530;
  --ink-soft: #34405c;
  --muted: #5a647d;
  --line: rgba(169, 124, 44, .28);
  --line-soft: rgba(11, 21, 48, .1);
  --danger: #b42318;

  --header-bg: rgba(255, 255, 255, .88);
  --surface-soft: #ffffff;
  --icon-bg: rgba(207, 160, 70, .1);
  --ghost-border: rgba(138, 100, 32, .45);
  --input-bg: #ffffff;
  --input-border: rgba(11, 21, 48, .18);
  --input-border-hover: rgba(11, 21, 48, .32);
  --placeholder: #6b7590;
  --card-shadow: 0 1px 2px rgba(11, 21, 48, .04), 0 14px 34px -20px rgba(11, 21, 48, .22);
  --show-on-dark: none;
  --show-on-light: block;

  color-scheme: light;
}

:root {
  --gold-grad: linear-gradient(135deg, #f8e7b0 0%, #e2bb62 38%, #b98a33 68%, #f0d28a 100%);
  --gold-ink: #7d5a1a;
  --on-gold: #050a17;
  --paper: #f3f5f9;
  --paper-ink: #0d1733;
  --paper-muted: #46506b;
  --wa: #25d366;
  --wa-ink: #04230f;

  --radius: 20px;
  --radius-sm: 14px;
  --radius-input: 12px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --header-h: 76px;
  --container: 1280px;
  --gutter: clamp(16px, 4vw, 40px);

  --font-display: 'Outfit', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Manrope', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  min-height: 100dvh;
  background: var(--navy-900);
  color: var(--ink-soft);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--ink); margin: 0; font-weight: 500; letter-spacing: -0.02em; line-height: 1.1; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
input, select, textarea { font: inherit; }
::selection { background: var(--gold-400); color: var(--on-gold); }
:focus-visible { outline: 2px solid var(--gold-300); outline-offset: 3px; border-radius: 6px; }

.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 100; padding: 12px 18px; border-radius: 999px; background: var(--gold-400); color: var(--on-gold); font-weight: 600; transition: top .3s var(--ease); }
.skip-link:focus { top: 16px; }

.grain {
  position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: .045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.top-sentinel { position: absolute; top: 0; left: 0; width: 1px; height: 40px; pointer-events: none; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { position: relative; padding-block: clamp(72px, 9vw, 128px); }
.section-tint { background: linear-gradient(180deg, var(--navy-950) 0%, var(--navy-900) 100%); border-block: 1px solid var(--line-soft); }

/* ---------- Type ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-display); font-size: 13px; font-weight: 500;
  letter-spacing: .2em; text-transform: uppercase; color: var(--gold-300);
}
.eyebrow::before { content: ""; width: 32px; height: 1px; background: var(--gold-grad); }
.h-display { font-size: clamp(2.9rem, 6.4vw, 5.6rem); line-height: 1.02; letter-spacing: -0.04em; font-weight: 500; }
.h-section { font-size: clamp(2rem, 4.2vw, 3.4rem); line-height: 1.08; letter-spacing: -0.03em; }
.gold {
  background: var(--gold-text); -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
  padding-bottom: .06em;
}
.lead { font-size: clamp(1.05rem, 1.35vw, 1.2rem); line-height: 1.7; color: var(--ink-soft); max-width: 56ch; }
.prose p { max-width: 62ch; }
.prose p + p { margin-top: 18px; }

/* ---------- Buttons ---------- */
.btn {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 54px; padding: 0 28px; border-radius: 999px;
  font-family: var(--font-display); font-size: 15.5px; font-weight: 500; letter-spacing: .01em;
  white-space: nowrap; border: 1px solid transparent;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), background-color .3s, border-color .3s, color .3s;
}
.btn i { font-size: 1.25em; }
.btn:active { transform: translateY(1px) scale(.98); }
.btn-gold {
  background: var(--gold-grad); color: var(--on-gold);
  box-shadow: 0 12px 32px -14px rgba(226, 187, 98, .6), inset 0 1px 0 rgba(255, 255, 255, .5);
}
.btn-gold::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .6) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform 1s var(--ease);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 20px 44px -16px rgba(226, 187, 98, .75), inset 0 1px 0 rgba(255, 255, 255, .5); }
.btn-gold:hover::after { transform: translateX(120%); }
.btn-ghost { color: var(--ink); border-color: var(--ghost-border); background: rgba(255, 255, 255, .03); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.btn-ghost:hover { border-color: var(--gold-300); background: rgba(239, 212, 139, .09); transform: translateY(-2px); }
.btn-wa { background: var(--wa); color: var(--wa-ink); box-shadow: 0 12px 30px -16px rgba(37, 211, 102, .7); }
.btn-wa:hover { transform: translateY(-2px); background: #2fe373; }
.btn-sm { height: 44px; padding: 0 18px; font-size: 14.5px; }
.btn-block { width: 100%; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; color: var(--gold-300); font-family: var(--font-display); font-weight: 500; }
.link-arrow i { transition: transform .45s var(--ease); }
.link-arrow:hover i { transform: translateX(5px); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h);
  border-bottom: 1px solid transparent;
  transition: background-color .45s var(--ease), border-color .45s, height .45s var(--ease);
}
.site-header.is-scrolled {
  background: var(--header-bg);
  -webkit-backdrop-filter: blur(18px) saturate(140%); backdrop-filter: blur(18px) saturate(140%);
  border-bottom-color: var(--line);
}
.header-inner { height: 100%; display: flex; align-items: center; gap: 28px; }
.brand { flex: none; display: block; }
.brand img { height: 60px; width: auto; transition: transform .45s var(--ease); }
.brand:hover img { transform: scale(1.03); }
.main-nav { margin-left: auto; }
.main-nav ul { display: flex; gap: 4px; }
.main-nav a {
  position: relative; display: block; padding: 10px 14px;
  font-family: var(--font-display); font-size: 15px; color: var(--ink-soft);
  transition: color .3s;
}
.main-nav a::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 1px;
  background: var(--gold-grad); transform: scaleX(0); transform-origin: left;
  transition: transform .5s var(--ease);
}
.main-nav a:hover, .main-nav a.is-active { color: var(--ink); }
.main-nav a:hover::after, .main-nav a.is-active::after { transform: scaleX(1); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.nav-mobile-extra { display: none; }
.nav-toggle {
  display: none; position: relative; width: 46px; height: 46px; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(255, 255, 255, .03);
}
.nav-toggle span {
  position: absolute; left: 13px; right: 13px; height: 1.5px; background: var(--ink); border-radius: 2px;
  transition: transform .45s var(--ease), top .45s var(--ease);
}
.nav-toggle span:first-child { top: 18px; }
.nav-toggle span:last-child { top: 26px; }
.nav-open .nav-toggle span:first-child { top: 22px; transform: rotate(45deg); }
.nav-open .nav-toggle span:last-child { top: 22px; transform: rotate(-45deg); }

@media (max-width: 1080px) {
  .header-actions { margin-left: auto; }
  .nav-toggle { display: inline-block; }
  .main-nav {
    position: fixed; inset: 0; z-index: -1; margin: 0;
    padding: calc(var(--header-h) + 32px) var(--gutter) 40px;
    background: radial-gradient(600px 400px at 100% 0%, rgba(207, 160, 70, .14), transparent 60%), var(--navy-950);
    display: flex; flex-direction: column; justify-content: space-between;
    opacity: 0; visibility: hidden; transition: opacity .45s var(--ease), visibility .45s;
    overflow-y: auto;
  }
  .nav-open .main-nav { opacity: 1; visibility: visible; }
  .nav-open .site-header { background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; border-bottom-color: transparent; }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav li { opacity: 0; transform: translateY(16px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
  .nav-open .main-nav li { opacity: 1; transform: none; }
  .nav-open .main-nav li:nth-child(2) { transition-delay: .04s; }
  .nav-open .main-nav li:nth-child(3) { transition-delay: .08s; }
  .nav-open .main-nav li:nth-child(4) { transition-delay: .12s; }
  .nav-open .main-nav li:nth-child(5) { transition-delay: .16s; }
  .nav-open .main-nav li:nth-child(6) { transition-delay: .2s; }
  .main-nav a { font-size: clamp(1.8rem, 7vw, 2.6rem); padding: 10px 0; border-bottom: 1px solid var(--line-soft); }
  .main-nav a::after { display: none; }
  .main-nav a.is-active { color: var(--gold-300); }
  .nav-mobile-extra { display: grid; gap: 14px; margin-top: 40px; }
  .nav-mobile-extra a { display: flex; align-items: center; gap: 12px; color: var(--ink-soft); font-size: 15px; word-break: break-all; }
  .nav-mobile-extra i { color: var(--gold-300); font-size: 20px; }
  body.nav-open { overflow: hidden; }
}
@media (max-width: 560px) {
  :root { --header-h: 70px; }
  .header-inner { gap: 12px; }
  .brand img { height: 50px; }
  .header-actions { gap: 10px; }
  .header-cta { width: 46px; height: 46px; padding: 0; }
  .header-cta span { display: none; }
}

/* ---------- Entrance + reveal motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .hero-anim { opacity: 0; transform: translateY(26px); animation: rise 1.1s var(--ease) forwards; animation-delay: calc(var(--d, 0) * 110ms + 120ms); }
  .js [data-reveal] { opacity: 0; transform: translateY(30px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
  .js [data-reveal].is-visible { opacity: 1; transform: none; }
}
@keyframes rise { to { opacity: 1; transform: none; } }

/* ---------- Banner slider (home) ---------- */
.hero-slider { position: relative; isolation: isolate; overflow: hidden; background: var(--navy-950); min-height: max(680px, min(100dvh, 940px)); }
.slides { position: absolute; inset: 0; }
.slide {
  position: absolute; inset: 0; display: flex; align-items: center;
  padding: calc(var(--header-h) + 24px) 0 112px;
  opacity: 0; visibility: hidden; transition: opacity 1.1s var(--ease), visibility 1.1s;
}
.slide.is-active { opacity: 1; visibility: visible; z-index: 1; }
.slide-bg { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.slide-bg img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); }
.slide.is-active .slide-bg img { animation: kenburns 9s var(--ease) forwards; }
@keyframes kenburns { from { transform: scale(1.14); } to { transform: scale(1.02); } }
.slide::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(5, 10, 23, .95) 0%, rgba(5, 10, 23, .82) 36%, rgba(5, 10, 23, .38) 68%, rgba(5, 10, 23, .3) 100%),
    linear-gradient(0deg, rgba(5, 10, 23, .9) 0%, rgba(5, 10, 23, 0) 32%),
    linear-gradient(180deg, rgba(5, 10, 23, .65) 0%, rgba(5, 10, 23, 0) 22%);
}
.slide-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 48px; }
.slide-copy { max-width: 780px; }
.slide-title { font-size: clamp(2.4rem, 4.6vw, 4.1rem); line-height: 1.04; letter-spacing: -0.04em; font-weight: 500; margin: 22px 0 24px; }
.slide-copy .lead { max-width: 46ch; margin-bottom: 38px; color: #d6dbe8; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; }

.slide-card {
  display: block; width: 270px; margin-bottom: 6px; overflow: hidden;
  border-radius: var(--radius); border: 1px solid var(--line);
  background: rgba(11, 21, 48, .74); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .85);
}
.slide-card-media { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--paper); }
.slide-card-media img { width: 100%; height: 100%; transition: transform 1s var(--ease); }
.slide-card-media.fit-contain img { object-fit: contain; padding: 18px; mix-blend-mode: multiply; }
.slide-card-media.fit-cover img { object-fit: cover; }
.slide-card:hover .slide-card-media img { transform: scale(1.06); }
.slide-card-body { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px 18px; }
.slide-card-body small { font-family: var(--font-display); font-size: 12.5px; color: var(--gold-300); }
.slide-card-body strong { font-family: var(--font-display); font-weight: 500; font-size: 1.05rem; line-height: 1.3; color: var(--ink); }
.slide-card-body .link-arrow { margin-top: 6px; font-size: 14px; }

.s-anim { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.slide-card.s-anim { transform: translateX(40px) scale(.97); transition: opacity .9s var(--ease), transform .9s var(--ease), border-color .4s; }
.slide.is-active .s-anim { opacity: 1; transform: none; transition-delay: calc(var(--d, 0) * 110ms + 350ms); }
.slide.is-active .slide-card.s-anim:hover { transform: translateY(-6px); border-color: rgba(226, 187, 98, .5); transition-delay: 0s; }

.slider-bar {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 3;
  border-top: 1px solid rgba(255, 255, 255, .1);
  background: linear-gradient(0deg, rgba(5, 10, 23, .75), rgba(5, 10, 23, .25));
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.slider-bar-inner { display: flex; align-items: center; gap: 24px; }
.slider-tabs { flex: 1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.slider-tab { position: relative; padding: 24px 0; text-align: left; font-family: var(--font-display); font-size: 15px; color: var(--muted); transition: color .3s; }
.slider-tab:hover, .slider-tab.is-active { color: var(--ink); }
.tab-progress { position: absolute; left: 0; right: 0; top: -1px; height: 2px; overflow: hidden; }
.tab-progress::after { content: ""; position: absolute; inset: 0; background: var(--gold-grad); transform: scaleX(0); transform-origin: left; }
.slider-tab.is-active .tab-progress::after { animation: tabfill var(--slide-ms, 7000ms) linear forwards; }
.hero-slider.is-paused .slider-tab.is-active .tab-progress::after { animation-play-state: paused; }
.hero-slider.no-autoplay .slider-tab.is-active .tab-progress::after { animation: none; transform: scaleX(1); }
@keyframes tabfill { to { transform: scaleX(1); } }
.slider-arrows { flex: none; display: flex; gap: 10px; }
.slider-arrow {
  width: 48px; height: 48px; border-radius: 999px; display: grid; place-items: center; font-size: 18px; color: var(--ink);
  border: 1px solid rgba(255, 255, 255, .2); transition: background-color .3s, border-color .3s, color .3s, transform .4s var(--ease);
}
.slider-arrow:hover { background: var(--gold-400); border-color: var(--gold-400); color: var(--on-gold); }
.slider-arrow:active { transform: scale(.94); }

@media (prefers-reduced-motion: reduce) {
  .slide-bg img { transform: none; }
}
@media (max-width: 960px) {
  .slide-inner { grid-template-columns: 1fr; }
  .slide-card { display: none; }
  .slide { align-items: flex-end; padding-bottom: 104px; }
  .slide::before { background: linear-gradient(0deg, rgba(5, 10, 23, .97) 0%, rgba(5, 10, 23, .82) 50%, rgba(5, 10, 23, .45) 100%); }
}
@media (max-width: 640px) {
  .slider-tabs { gap: 8px; }
  .slider-tab { padding: 20px 0; }
  .tab-label { display: none; }
  .tab-progress { height: 3px; background: rgba(255, 255, 255, .18); border-radius: 3px; }
  .slider-arrows { display: none; }
  .slider-bar-inner { padding-right: 84px; }
}
@media (max-width: 560px) {
  .hero-ctas .btn { flex: 1 1 100%; }
}

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; padding: 24px 0; background: var(--navy-950); border-block: 1px solid var(--line); }
.marquee-track { display: flex; width: max-content; }
.marquee-group { display: flex; align-items: center; gap: 56px; padding-right: 56px; }
.marquee-item { display: flex; align-items: center; gap: 14px; white-space: nowrap; font-family: var(--font-display); font-size: clamp(1.1rem, 2vw, 1.5rem); color: var(--ink); }
.marquee-item i { color: var(--gold-300); font-size: 1.2em; }
@media (prefers-reduced-motion: no-preference) {
  .marquee-track { animation: marquee 45s linear infinite; }
  .marquee:hover .marquee-track { animation-play-state: paused; }
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Section heads ---------- */
.section-head { max-width: 760px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head .eyebrow + .h-section { margin-top: 18px; }
.section-head .lead { margin-top: 20px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .lead { margin-inline: auto; }
.section-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: clamp(40px, 5vw, 56px); }
.section-head-row .section-head { margin-bottom: 0; }

/* ---------- Spotlight hover (cards follow the pointer) ---------- */
.spot { position: relative; isolation: isolate; }
.spot::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; border-radius: inherit;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(239, 212, 139, .13), transparent 45%);
  opacity: 0; transition: opacity .5s;
}
.spot:hover::after { opacity: 1; }

/* ---------- Icon tile ---------- */
.tile-icon {
  flex: none; width: 50px; height: 50px; border-radius: var(--radius-sm);
  display: grid; place-items: center; font-size: 24px; color: var(--gold-300);
  border: 1px solid var(--line); background: var(--icon-bg);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}

/* ---------- Bento (home categories) ---------- */
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 18px; }
.tile {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 0;
  min-height: 280px; padding: 30px; border-radius: var(--radius);
  background: var(--navy-850); border: 1px solid var(--line-soft);
  transition: transform .7s var(--ease), border-color .4s;
}
.tile:hover { transform: translateY(-5px); border-color: rgba(226, 187, 98, .4); }
.tile .tile-icon { margin-bottom: auto; }
.tile h3 { font-size: clamp(1.45rem, 2.2vw, 1.95rem); margin: 28px 0 8px; }
.tile p { max-width: 40ch; font-size: 15px; color: var(--ink-soft); }
.tile .link-arrow { margin-top: 18px; }
.tile-bg { position: absolute; inset: 0; z-index: -3; }
.tile-bg img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.tile:hover .tile-bg img, .value:hover .tile-bg img, .pacs-card:hover .tile-bg img { transform: scale(1.06); }
.tile-shade { position: absolute; inset: 0; z-index: -2; background: linear-gradient(180deg, rgba(5, 10, 23, .15) 0%, rgba(5, 10, 23, .55) 45%, rgba(5, 10, 23, .94) 100%); }
.tile-a { grid-column: 1 / 8; grid-row: span 2; min-height: 580px; }
.tile-b { grid-column: 8 / 13; }
.tile-c { grid-column: 8 / 13; }
.tile-d { grid-column: 1 / 6; }
.tile-e { grid-column: 6 / 13; }
.tile-light { background: var(--paper); border-color: transparent; }
.tile-light h3 { color: var(--paper-ink); }
.tile-light h3 { max-width: 11ch; }
.tile-light p { color: var(--paper-muted); max-width: 26ch; }
.tile-light .link-arrow { color: var(--gold-ink); }
.tile-light .tile-icon { background: var(--paper-ink); border-color: transparent; color: var(--gold-300); }
.tile-light.spot::after { background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(207, 160, 70, .16), transparent 45%); }
.tile-product { position: absolute; z-index: -1; right: -4%; top: 50%; width: 60%; transform: translateY(-50%); mix-blend-mode: multiply; transition: transform 1s var(--ease); }
.tile-product-tall { width: auto; height: 118%; right: -2%; transform: translateY(-50%) rotate(-12deg); }
.tile:hover .tile-product { transform: translateY(-50%) scale(1.05); }
.tile:hover .tile-product-tall { transform: translateY(-50%) rotate(-8deg) scale(1.03); }

@media (max-width: 960px) {
  .tile-a, .tile-b, .tile-c, .tile-d, .tile-e { grid-column: 1 / -1; grid-row: auto; }
  .tile-a { min-height: 440px; }
}
@media (max-width: 560px) {
  .tile { padding: 24px; min-height: 300px; }
  .tile-product { width: 62%; right: -10%; top: 34%; }
  .tile-product-tall { height: 90%; right: 0; }
}

/* ---------- Product cards ---------- */
.p-card {
  display: flex; flex-direction: column; height: 100%; overflow: hidden;
  border-radius: var(--radius); background: var(--navy-850); border: 1px solid var(--line-soft);
  transition: transform .7s var(--ease), border-color .4s, box-shadow .7s var(--ease);
}
.p-card:hover { transform: translateY(-6px); border-color: rgba(226, 187, 98, .4); box-shadow: 0 34px 60px -34px rgba(0, 0, 0, .9); }
.p-card.is-hidden { display: none; }
.p-media { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--paper); }
.p-media img { width: 100%; height: 100%; transition: transform 1s var(--ease); }
.p-media.fit-contain img { object-fit: contain; padding: 22px; mix-blend-mode: multiply; }
.p-media.fit-cover img { object-fit: cover; }
.p-card:hover .p-media img { transform: scale(1.07); }
.p-body { flex: 1; display: flex; flex-direction: column; gap: 8px; padding: 22px 22px 24px; }
.p-cat { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-display); font-size: 13px; color: var(--gold-300); letter-spacing: .02em; }
.p-cat i { font-size: 16px; }
.p-name { font-size: 1.22rem; letter-spacing: -0.015em; }
.p-name a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.p-tag { font-size: 14.5px; color: var(--muted); line-height: 1.55; }
.p-actions { position: relative; z-index: 2; display: flex; gap: 10px; margin-top: auto; padding-top: 16px; }
.p-actions .btn { flex: 1; }

.p-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 1000px) { .p-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .p-grid { grid-template-columns: 1fr; } }

/* ---------- Rail (home featured) ---------- */
.rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 3 * 22px) / 4); gap: 22px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding: 8px 2px 24px; margin: -8px -2px 0; scrollbar-width: none;
}
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; }
.rail-controls { display: flex; gap: 10px; }
.rail-btn {
  width: 52px; height: 52px; border-radius: 999px; display: grid; place-items: center; font-size: 20px;
  border: 1px solid var(--line); color: var(--ink); background: rgba(255, 255, 255, .03);
  transition: background-color .3s, border-color .3s, transform .4s var(--ease), opacity .3s;
}
.rail-btn:hover { border-color: var(--gold-300); background: rgba(239, 212, 139, .1); }
.rail-btn:active { transform: scale(.94); }
.rail-btn[disabled] { opacity: .35; pointer-events: none; }
.rail-foot { margin-top: 20px; }
@media (max-width: 1100px) { .rail { grid-auto-columns: calc((100% - 2 * 22px) / 3); } }
@media (max-width: 820px) { .rail { grid-auto-columns: calc((100% - 22px) / 2); } }
@media (max-width: 560px) {
  .rail { grid-auto-columns: 84%; }
  .rail-controls { display: none; }
}

/* ---------- Split sections ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.split-reverse .split-copy { order: 0; }
.split-copy .h-section { margin: 18px 0 22px; }
.split-copy > .h-section:first-child { margin-top: 0; }
.split-copy .prose, .split-copy .lead { margin-bottom: 32px; }
.split-media { position: relative; }
.media-frame { position: relative; overflow: hidden; border-radius: var(--radius); border: 1px solid var(--line-soft); }
.media-frame img { width: 100%; height: 100%; object-fit: cover; }
.split-media .media-frame { aspect-ratio: 4 / 4.6; }
.split-media .media-frame img { transition: transform 1.4s var(--ease); }
.split-media:hover .media-frame img { transform: scale(1.04); }
.media-note {
  position: absolute; right: -24px; bottom: 32px; max-width: 290px;
  display: flex; gap: 14px; align-items: center; padding: 18px 20px; border-radius: var(--radius-sm);
  background: rgba(11, 21, 48, .86); border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .8);
}
.media-note .ic { flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--gold-grad); color: var(--on-gold); font-size: 22px; }
.media-note strong { display: block; font-family: var(--font-display); font-weight: 500; color: var(--ink); }
.media-note span { font-size: 13.5px; color: var(--muted); line-height: 1.5; }

.feature-list { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 32px; margin-bottom: 40px; }
.feature { display: flex; gap: 16px; }
.feature .ic { flex: none; width: 46px; height: 46px; border-radius: var(--radius-sm); display: grid; place-items: center; font-size: 22px; color: var(--gold-300); background: rgba(226, 187, 98, .08); border: 1px solid var(--line); }
.feature h3 { font-size: 1.08rem; margin-bottom: 4px; }
.feature p { font-size: 14.5px; color: var(--muted); line-height: 1.55; }

@media (max-width: 960px) {
  .split { grid-template-columns: 1fr; }
  .split-reverse .collage { order: 2; }
  .split-media .media-frame { aspect-ratio: 4 / 3; }
  .media-note { right: 12px; bottom: -28px; }
  .split-media { margin-bottom: 20px; }
}
@media (max-width: 560px) {
  .feature-list { grid-template-columns: 1fr; gap: 22px; }
  .media-note { left: 12px; right: 12px; max-width: none; }
}

/* ---------- About collage ---------- */
.collage { position: relative; padding: 0 0 18% 12%; }
.collage-main { aspect-ratio: 4 / 4.4; }
.collage-small {
  position: absolute; left: 0; bottom: 0; width: 52%; aspect-ratio: 16 / 10;
  border: 6px solid var(--navy-900); box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .8);
}
.collage img { transition: transform 1.4s var(--ease); }
.collage:hover .collage-main img { transform: scale(1.04); }

/* ---------- PACS band ---------- */
.band { position: relative; overflow: hidden; isolation: isolate; min-height: 660px; display: flex; align-items: center; padding-block: 96px; }
.band-bg { position: absolute; inset: 0; z-index: -2; }
.band-bg img { width: 100%; height: 100%; object-fit: cover; }
.band::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(5, 10, 23, .97) 0%, rgba(5, 10, 23, .88) 38%, rgba(5, 10, 23, .25) 100%);
}
.band-content { max-width: 580px; }
.band-content .h-section { margin: 18px 0 22px; }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .band-bg img, .page-hero-bg img { animation: drift linear both; animation-timeline: view(); scale: 1.14; }
  }
}
@keyframes drift { from { transform: translateY(-5%); } to { transform: translateY(5%); } }
@media (max-width: 760px) {
  .band { min-height: 0; }
  .band::before { background: linear-gradient(180deg, rgba(5, 10, 23, .75) 0%, rgba(5, 10, 23, .95) 60%); }
}

/* ---------- Chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.band .chips { margin-bottom: 36px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px;
  font-size: 14px; color: var(--ink); border: 1px solid var(--line); background: rgba(255, 255, 255, .035);
}
.chip i { color: var(--gold-300); font-size: 17px; }
.chips-sm .chip { padding: 6px 13px; font-size: 13.5px; }

/* ---------- Process ---------- */
.process { position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; }
.process::before {
  content: ""; position: absolute; left: 10%; right: 10%; top: 33px; height: 1px;
  background: var(--gold-grad); transform-origin: left;
}
@media (prefers-reduced-motion: no-preference) {
  .js .process::before { transform: scaleX(0); transition: transform 1.8s var(--ease) .2s; }
  .js .process.is-visible::before { transform: scaleX(1); }
  .js .process .step { opacity: 0; transform: translateY(20px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
  .js .process.is-visible .step { opacity: 1; transform: none; }
  .js .process.is-visible .step:nth-child(2) { transition-delay: .25s; }
  .js .process.is-visible .step:nth-child(3) { transition-delay: .5s; }
  .js .process.is-visible .step:nth-child(4) { transition-delay: .75s; }
  .js .process.is-visible .step:nth-child(5) { transition-delay: 1s; }
}
.step { position: relative; text-align: center; }
.step .node {
  width: 66px; height: 66px; margin: 0 auto 24px; border-radius: 50%;
  display: grid; place-items: center; font-size: 26px; color: var(--gold-300);
  background: var(--navy-850); border: 1px solid rgba(226, 187, 98, .5);
  box-shadow: 0 0 0 10px var(--navy-900);
  transition: background-color .4s, color .4s, transform .5s var(--ease);
}
.step:hover .node { background: var(--gold-400); color: var(--on-gold); transform: translateY(-4px); }
.step h3 { font-size: 1.12rem; margin-bottom: 8px; }
.step p { font-size: 14.5px; color: var(--muted); max-width: 24ch; margin-inline: auto; line-height: 1.55; }
@media (max-width: 860px) {
  .process { grid-template-columns: 1fr; gap: 28px; max-width: 520px; margin-inline: auto; }
  .process::before { left: 33px; right: auto; top: 10px; bottom: 10px; width: 1px; height: auto; transform-origin: top; }
  @media (prefers-reduced-motion: no-preference) {
    .js .process::before { transform: scaleY(0); }
    .js .process.is-visible::before { transform: scaleY(1); }
  }
  .step { display: grid; grid-template-columns: 66px 1fr; column-gap: 22px; text-align: left; align-items: start; }
  .step .node { grid-row: span 2; margin: 0; }
  .step h3 { margin-top: 10px; }
  .step p { margin: 0; max-width: none; }
}

/* ---------- CTA panel ---------- */
.cta-section { padding-top: 0; }
.section-tint + .cta-section, .band + .cta-section { padding-top: clamp(72px, 9vw, 128px); }
.cta-panel {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: 1.4fr auto; gap: 40px; align-items: center;
  padding: clamp(36px, 6vw, 80px); border-radius: var(--radius);
  background: radial-gradient(700px 380px at 100% 0%, rgba(226, 187, 98, .2), transparent 60%), linear-gradient(135deg, var(--navy-800), var(--navy-950));
  border: 1px solid var(--line);
}
.cta-panel .h-section { max-width: 18ch; }
.cta-panel .lead { margin-top: 18px; max-width: 48ch; }
.cta-lion { position: absolute; z-index: -1; right: 4%; bottom: -30%; width: 300px; opacity: .07; pointer-events: none; }
.cta-actions { display: flex; flex-direction: column; gap: 12px; }
@media (max-width: 900px) {
  .cta-panel { grid-template-columns: 1fr; }
  .cta-actions { flex-direction: row; flex-wrap: wrap; }
}
@media (max-width: 560px) { .cta-actions .btn { flex: 1 1 100%; } }

/* ---------- Inner page hero ---------- */
.page-hero { position: relative; overflow: hidden; isolation: isolate; padding: calc(var(--header-h) + clamp(56px, 8vw, 96px)) 0 clamp(56px, 7vw, 96px); }
.page-hero-bg { position: absolute; inset: 0; z-index: -2; }
.page-hero-bg img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.7); }
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(5, 10, 23, .96) 0%, rgba(5, 10, 23, .82) 45%, rgba(5, 10, 23, .45) 100%), linear-gradient(0deg, var(--navy-900) 0%, transparent 40%);
}
.page-hero h1 { font-size: clamp(2.5rem, 5.6vw, 4.6rem); line-height: 1.04; letter-spacing: -0.035em; max-width: 17ch; }
.page-hero .lead { margin-top: 22px; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 22px; font-size: 14px; color: var(--muted); }
.crumbs i { font-size: 12px; opacity: .6; }
.crumbs a { transition: color .3s; }
.crumbs a:hover { color: var(--gold-300); }
.crumbs [aria-current] { color: var(--gold-300); }

/* ---------- Values (about) ---------- */
.values { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px; }
.value {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column; justify-content: flex-end; min-height: 300px; padding: 32px;
  border-radius: var(--radius); background: var(--navy-850); border: 1px solid var(--line-soft);
  transition: transform .7s var(--ease), border-color .4s;
}
.value:hover { transform: translateY(-5px); border-color: rgba(226, 187, 98, .4); }
.value .tile-icon { margin-bottom: auto; }
.value h3 { font-size: 1.5rem; margin: 28px 0 10px; }
.value p { max-width: 42ch; font-size: 15px; color: var(--ink-soft); }
.values .value:nth-child(1) { grid-column: span 4; }
.values .value:nth-child(2) { grid-column: span 2; }
.values .value:nth-child(3) { grid-column: span 2; }
.values .value:nth-child(4) { grid-column: span 4; }
.value-gold { background: radial-gradient(500px 300px at 100% 0%, rgba(226, 187, 98, .28), transparent 60%), linear-gradient(135deg, #1a2547, var(--navy-850)); border-color: var(--line); }
@media (max-width: 860px) {
  .values { grid-template-columns: 1fr; }
  .values .value:nth-child(n) { grid-column: auto; }
}

/* ---------- Coverage (about) ---------- */
.cover-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.cover-item {
  position: relative; display: flex; flex-direction: column; gap: 10px; min-height: 260px; padding: 26px 24px;
  border-radius: var(--radius); border: 1px solid var(--line-soft); background: var(--navy-850);
  transition: transform .7s var(--ease), border-color .4s, background-color .4s;
}
.cover-item:hover { transform: translateY(-5px); border-color: rgba(226, 187, 98, .45); }
.cover-item .tile-icon { margin-bottom: 18px; }
.cover-item h3 { font-size: 1.15rem; }
.cover-item p { font-size: 14.5px; color: var(--muted); line-height: 1.55; }
.cover-arrow { margin-top: auto; align-self: flex-end; font-size: 22px; color: var(--gold-300); transition: transform .5s var(--ease); }
.cover-item:hover .cover-arrow { transform: translate(3px, -3px); }
@media (max-width: 1100px) { .cover-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .cover-grid { grid-template-columns: 1fr 1fr; } .cover-item { min-height: 220px; } }
@media (max-width: 480px) { .cover-grid { grid-template-columns: 1fr; } .cover-item { min-height: 0; } }

/* ---------- Catalog ---------- */
.catalog-bar {
  position: sticky; top: var(--header-h); z-index: 20; padding: 14px 0;
  background: var(--header-bg); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border-block: 1px solid var(--line-soft);
}
.catalog-bar-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.filter-pills { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px; margin: -2px; }
.filter-pills::-webkit-scrollbar { display: none; }
.pill {
  flex: none; display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 16px; border-radius: 999px;
  font-family: var(--font-display); font-size: 14.5px; color: var(--ink-soft); white-space: nowrap;
  border: 1px solid var(--line-soft); background: var(--surface-soft);
  transition: background-color .3s, color .3s, border-color .3s;
}
.pill i { color: var(--gold-300); font-size: 17px; }
.pill .count { font-size: 12px; color: var(--muted); }
.pill:hover { border-color: var(--line); color: var(--ink); }
.pill.is-active { background: var(--gold-grad); color: var(--on-gold); border-color: transparent; }
.pill.is-active i, .pill.is-active .count { color: rgba(5, 10, 23, .7); }
.search { position: relative; flex: none; width: 260px; }
.search i { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 18px; pointer-events: none; }
.search input {
  width: 100%; height: 42px; padding: 0 16px 0 44px; border-radius: 999px;
  border: 1px solid var(--input-border); background: var(--input-bg); color: var(--ink); font-size: 14.5px;
  transition: border-color .3s, box-shadow .3s;
}
.search input::placeholder { color: var(--placeholder); }
.search input:focus { outline: none; border-color: var(--gold-400); box-shadow: 0 0 0 4px rgba(226, 187, 98, .15); }
.catalog { padding-top: clamp(40px, 5vw, 64px); }
.results-meta { margin-bottom: 24px; font-size: 14.5px; color: var(--muted); }
.empty-state {
  display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center;
  padding: 64px 24px; border-radius: var(--radius); border: 1px dashed var(--line);
}
.empty-state h3 { font-size: 1.4rem; }
.empty-state p { max-width: 46ch; color: var(--muted); }
@media (max-width: 860px) {
  .catalog-bar-inner { flex-direction: column-reverse; align-items: stretch; }
  .search { width: 100%; }
}

/* ---------- Product detail ---------- */
.pd-section { padding-top: calc(var(--header-h) + 40px); }
.pd { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 72px); align-items: start; margin-top: 8px; }
.pd-media {
  position: sticky; top: calc(var(--header-h) + 24px); overflow: hidden; aspect-ratio: 1 / 1;
  border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line);
}
.pd-media img { width: 100%; height: 100%; transition: transform .5s var(--ease); }
.pd-media.fit-contain img { object-fit: contain; padding: clamp(24px, 4vw, 48px); mix-blend-mode: multiply; }
.pd-media.fit-cover img { object-fit: cover; }
.pd-media.is-zooming img { transform: scale(1.8); }
.zoom-hint {
  position: absolute; left: 16px; bottom: 16px; display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 999px; font-size: 12.5px; color: var(--paper-muted);
  background: rgba(255, 255, 255, .85); transition: opacity .3s;
}
.pd-media.is-zooming .zoom-hint { opacity: 0; }
.pd-info h1 { font-size: clamp(2.2rem, 4.2vw, 3.5rem); letter-spacing: -0.035em; line-height: 1.05; margin-top: 14px; }
.pd-tagline { margin-top: 14px; font-family: var(--font-display); font-size: 1.12rem; color: var(--gold-300); }
.pd-summary { margin-top: 22px; font-size: 1.05rem; max-width: 58ch; }
.check-list { display: grid; gap: 12px; margin-top: 28px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink); }
.check-list i { flex: none; margin-top: 3px; font-size: 20px; color: var(--gold-400); }
.split-copy .check-list { margin: 0; }
.offer-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 30px; }
.offer-row > span { font-family: var(--font-display); font-size: 14px; color: var(--muted); }
.pd-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.pd-note {
  display: flex; gap: 14px; align-items: flex-start; margin-top: 28px; padding: 18px 20px;
  border-radius: var(--radius-sm); border: 1px solid var(--line-soft); background: var(--surface-soft);
  font-size: 14.5px; color: var(--muted);
}
.pd-note i { flex: none; font-size: 20px; color: var(--gold-300); margin-top: 1px; }
@media (max-width: 900px) {
  .pd { grid-template-columns: 1fr; }
  .pd-media { position: relative; top: 0; aspect-ratio: 4 / 3; }
}
@media (max-width: 560px) { .pd-actions .btn { flex: 1 1 100%; } }

/* ---------- Services ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.svc {
  display: flex; flex-direction: column; gap: 12px; padding: 30px; overflow: hidden;
  border-radius: var(--radius); background: var(--navy-850); border: 1px solid var(--line-soft);
  transition: transform .7s var(--ease), border-color .4s;
}
.svc:hover { transform: translateY(-5px); border-color: rgba(226, 187, 98, .4); }
.svc .tile-icon { margin-bottom: 14px; }
.svc h3 { font-size: 1.28rem; }
.svc p { font-size: 15px; color: var(--muted); }
.svc-feature { grid-column: span 2; display: grid; grid-template-columns: 1fr 1fr; padding: 0; gap: 0; }
.svc-media { overflow: hidden; min-height: 260px; }
.svc-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.svc-feature:hover .svc-media img { transform: scale(1.05); }
.svc-copy { display: flex; flex-direction: column; gap: 12px; padding: 32px; background: radial-gradient(500px 300px at 100% 0%, rgba(226, 187, 98, .18), transparent 60%); }
.svc-copy p { color: var(--ink-soft); }
.svc-copy .link-arrow { margin-top: auto; padding-top: 10px; }
@media (max-width: 1000px) {
  .svc-grid { grid-template-columns: 1fr 1fr; }
  .svc-feature { grid-column: 1 / -1; }
  .svc-grid > .svc:last-child { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .svc-grid { grid-template-columns: 1fr; }
  .svc-feature { grid-template-columns: 1fr; }
  .svc-media { min-height: 200px; aspect-ratio: 16 / 9; }
}

.equip-groups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.equip-group { padding: 28px; border-radius: var(--radius); border: 1px solid var(--line-soft); background: var(--surface-soft); }
.equip-group h3 { display: flex; align-items: center; gap: 12px; font-size: 1.15rem; margin-bottom: 20px; }
.equip-group h3 i { color: var(--gold-300); font-size: 24px; }
@media (max-width: 900px) { .equip-groups { grid-template-columns: 1fr; } }

/* ---------- Forms ---------- */
.split-form { align-items: start; }
.split-form .split-copy { position: sticky; top: calc(var(--header-h) + 32px); }
.form-card {
  padding: clamp(24px, 4vw, 44px); border-radius: var(--radius); border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(16, 29, 61, .75), rgba(8, 16, 36, .75));
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .8);
}
.form-title { font-size: 1.6rem; }
.form-sub { margin: 8px 0 26px; color: var(--muted); font-size: 15px; }
.form { display: grid; gap: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field label { font-family: var(--font-display); font-size: 14.5px; font-weight: 500; color: var(--ink); }
.field .opt { color: var(--muted); font-weight: 400; }
.input {
  width: 100%; height: 52px; padding: 0 16px; border-radius: var(--radius-input);
  border: 1px solid var(--input-border); background: var(--input-bg); color: var(--ink); font-size: 15.5px;
  transition: border-color .3s, box-shadow .3s;
}
textarea.input { height: auto; min-height: 130px; padding: 14px 16px; resize: vertical; line-height: 1.6; }
select.input {
  appearance: none; -webkit-appearance: none; padding-right: 44px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 256 256'%3E%3Cpath fill='%23efd48b' d='M213.7 101.7l-80 80a8 8 0 0 1-11.4 0l-80-80a8 8 0 0 1 11.4-11.4L128 164.7l74.3-74.4a8 8 0 0 1 11.4 11.4Z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center;
}
select.input option { background: var(--navy-900); color: var(--ink); }
.input::placeholder { color: var(--placeholder); }
.input:hover { border-color: var(--input-border-hover); }
.input:focus { outline: none; border-color: var(--gold-400); box-shadow: 0 0 0 4px rgba(226, 187, 98, .15); }
.field.has-error .input { border-color: var(--danger); }
.field-error { display: flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--danger); }
.field-help { font-size: 13px; color: var(--muted); }
.form-alert {
  display: flex; align-items: center; gap: 10px; margin-bottom: 20px; padding: 12px 16px; border-radius: var(--radius-input);
  background: rgba(245, 161, 150, .1); border: 1px solid rgba(245, 161, 150, .35); color: var(--danger); font-size: 14.5px;
}
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-success { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; padding: 24px 0; }
.form-success h3 { font-size: 1.7rem; }
.form-success p { max-width: 38ch; color: var(--muted); margin-bottom: 8px; }
.success-ic { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; font-size: 34px; background: var(--gold-grad); color: var(--on-gold); box-shadow: 0 0 0 10px rgba(226, 187, 98, .12); }
@media (max-width: 960px) { .split-form .split-copy { position: static; } }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; margin-inline: auto; }
.faq details { border-bottom: 1px solid var(--line-soft); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 24px 0;
  list-style: none; cursor: pointer; font-family: var(--font-display); font-size: 1.15rem; color: var(--ink);
  transition: color .3s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--gold-300); }
.faq summary i { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); color: var(--gold-300); transition: transform .5s var(--ease), background-color .3s; }
.faq details[open] summary i { transform: rotate(45deg); background: rgba(226, 187, 98, .12); }
.faq .answer { padding: 0 60px 26px 0; color: var(--muted); }

/* ---------- PACS ---------- */
.flow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.flow-node {
  position: relative; display: flex; flex-direction: column; gap: 10px; padding: 28px 24px;
  border-radius: var(--radius); background: var(--navy-850); border: 1px solid var(--line);
}
.flow-node .tile-icon { margin-bottom: 12px; }
.flow-node h3 { font-size: 1.2rem; }
.flow-node p { font-size: 14.5px; color: var(--muted); line-height: 1.55; }
.flow-node:not(:last-child)::after {
  content: ""; position: absolute; top: 52px; right: -29px; width: 30px; height: 2px;
  background: repeating-linear-gradient(90deg, var(--gold-400) 0 6px, transparent 6px 12px); background-size: 24px 2px;
}
.flow-node-end { background: radial-gradient(400px 240px at 100% 0%, rgba(226, 187, 98, .22), transparent 60%), var(--navy-850); }
@media (prefers-reduced-motion: no-preference) {
  .flow-node:not(:last-child)::after { animation: dash 1s linear infinite; }
}
@keyframes dash { to { background-position: 24px 0; } }
@media (max-width: 960px) {
  .flow { grid-template-columns: 1fr 1fr; }
  .flow-node:nth-child(2)::after { display: none; }
}
@media (max-width: 560px) {
  .flow { grid-template-columns: 1fr; }
  .flow-node:nth-child(n)::after { display: block; top: auto; bottom: -29px; left: 48px; right: auto; width: 2px; height: 30px; background: repeating-linear-gradient(180deg, var(--gold-400) 0 6px, transparent 6px 12px); background-size: 2px 24px; animation-name: dash-v; }
  .flow-node:last-child::after { display: none; }
}
@keyframes dash-v { to { background-position: 0 24px; } }

.pacs-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: minmax(230px, auto); gap: 18px; }
.pacs-card {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column; gap: 10px; padding: 28px;
  border-radius: var(--radius); background: var(--navy-850); border: 1px solid var(--line-soft);
  transition: transform .7s var(--ease), border-color .4s;
}
.pacs-card:hover { transform: translateY(-5px); border-color: rgba(226, 187, 98, .4); }
.pacs-card .tile-icon { margin-bottom: 14px; }
.pacs-card h3 { font-size: 1.22rem; }
.pacs-card p { font-size: 15px; color: var(--muted); }
.pacs-photo { grid-row: span 2; justify-content: flex-end; min-height: 480px; }
.pacs-photo .tile-icon { margin-bottom: auto; }
.pacs-photo h3 { font-size: 1.6rem; margin-top: 24px; }
.pacs-photo p { color: var(--ink-soft); }
.fit-for { margin-top: 48px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.fit-for h3 { font-size: 1.1rem; color: var(--muted); font-weight: 400; }
@media (max-width: 900px) {
  .pacs-grid { grid-template-columns: 1fr 1fr; }
  .pacs-photo { grid-column: 1 / -1; grid-row: auto; min-height: 340px; }
}
@media (max-width: 560px) { .pacs-grid { grid-template-columns: 1fr; } }

/* ---------- Contact ---------- */
.contact-list { display: grid; gap: 14px; margin-top: 32px; }
.contact-item {
  display: flex; align-items: center; gap: 18px; padding: 18px 20px;
  border-radius: var(--radius); border: 1px solid var(--line-soft); background: var(--surface-soft);
  transition: transform .6s var(--ease), border-color .4s, background-color .4s;
}
.contact-item:hover { transform: translateX(6px); border-color: rgba(226, 187, 98, .45); background: rgba(226, 187, 98, .05); }
.contact-item > span:nth-child(2) { flex: 1; min-width: 0; }
.contact-item small { display: block; font-size: 13px; color: var(--muted); }
.contact-item strong { display: block; font-family: var(--font-display); font-weight: 500; font-size: 1.08rem; color: var(--ink); overflow-wrap: anywhere; }
.contact-item > i { font-size: 20px; color: var(--gold-300); transition: transform .5s var(--ease); }
.contact-item:hover > i { transform: translate(3px, -3px); }
.contact-wa .tile-icon { background: var(--wa); color: var(--wa-ink); border-color: transparent; }
@media (max-width: 480px) {
  .contact-item { gap: 14px; padding: 16px; }
  .contact-item > i { display: none; }
  .contact-item strong { font-size: .98rem; }
}
.map-section { padding-bottom: clamp(72px, 9vw, 128px); }
.map { height: 440px; overflow: hidden; border-radius: var(--radius); border: 1px solid var(--line); background: var(--navy-850); }
.map iframe { width: 100%; height: 100%; border: 0; filter: invert(.9) hue-rotate(180deg) saturate(.6) contrast(.92); }

/* ---------- 404 ---------- */
.not-found { position: relative; overflow: hidden; isolation: isolate; min-height: 100dvh; display: flex; align-items: center; padding: calc(var(--header-h) + 48px) 0 80px; }
.not-found-bg { position: absolute; z-index: -1; right: 4%; top: 50%; transform: translateY(-50%); height: 90%; width: auto; opacity: .35; mix-blend-mode: screen; }
.not-found-inner { max-width: 760px; margin-inline: 0; }
.not-found-code { font-family: var(--font-display); font-size: clamp(5rem, 14vw, 10rem); font-weight: 300; line-height: 1; letter-spacing: -0.05em; color: var(--gold-300); opacity: .9; }
.not-found .h-section { margin: 18px 0 20px; }
.not-found .lead { margin-bottom: 36px; }

/* ---------- Footer ---------- */
.site-footer { position: relative; overflow: hidden; isolation: isolate; padding-top: clamp(64px, 8vw, 104px); background: var(--navy-950); border-top: 1px solid var(--line); }
.footer-lion { position: absolute; z-index: -1; right: -60px; top: -40px; width: 380px; opacity: .04; pointer-events: none; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1.1fr 1.4fr; gap: 48px; }
.footer-brand img { width: 220px; }
.footer-brand p { margin: 20px 0 24px; max-width: 34ch; font-size: 15px; color: var(--muted); }
.footer-col h4 { margin-bottom: 20px; font-size: 15px; letter-spacing: .02em; color: var(--ink); }
.footer-col li + li { margin-top: 12px; }
.footer-col a { font-size: 15px; color: var(--muted); transition: color .3s; }
.footer-col a:hover { color: var(--gold-300); }
.footer-contact li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: var(--muted); }
.footer-contact i { flex: none; margin-top: 3px; font-size: 18px; color: var(--gold-300); }
.footer-contact a { overflow-wrap: anywhere; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; margin-top: clamp(48px, 6vw, 80px); padding: 26px 0 30px; border-top: 1px solid var(--line-soft); font-size: 13.5px; color: var(--muted); }
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; gap: 36px; } .footer-bottom { padding-bottom: 100px; } }

/* ---------- WhatsApp widget ---------- */
.wa-fab {
  position: fixed; right: 22px; bottom: 22px; z-index: 60;
  width: 62px; height: 62px; border-radius: 999px;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--wa); color: #fff; font-size: 32px;
  box-shadow: 0 16px 36px -12px rgba(37, 211, 102, .65);
  transition: transform .5s var(--ease), width .5s var(--ease), padding .5s var(--ease);
}
.wa-fab::before { content: ""; position: absolute; inset: 0; border-radius: inherit; border: 2px solid var(--wa); pointer-events: none; }
.wa-fab-label { display: none; font-family: var(--font-display); font-size: 15px; font-weight: 600; color: var(--wa-ink); white-space: nowrap; }
.wa-fab:hover { transform: translateY(-3px); }
.nav-open .wa-widget { display: none; }
.wa-fab[aria-expanded="true"]::before { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .wa-fab::before { animation: wa-pulse 2.6s var(--ease) infinite; }
}
@keyframes wa-pulse { 0% { transform: scale(1); opacity: .75; } 100% { transform: scale(1.7); opacity: 0; } }
@media (min-width: 900px) {
  .wa-fab:hover { width: 190px; padding: 0 22px 0 18px; justify-content: flex-start; }
  .wa-fab:hover .wa-fab-label { display: inline; }
  .wa-fab i { color: var(--wa-ink); }
}
.wa-fab i { color: #fff; }

.wa-panel {
  position: fixed; right: 22px; bottom: 98px; z-index: 60;
  width: min(370px, calc(100vw - 32px)); overflow: hidden;
  border-radius: var(--radius); background: var(--navy-850); border: 1px solid var(--line);
  box-shadow: 0 40px 90px -24px rgba(0, 0, 0, .85);
  transform-origin: bottom right;
  transition: opacity .45s var(--ease), transform .45s var(--ease), visibility .45s;
}
.wa-panel[hidden] { display: block; visibility: hidden; opacity: 0; transform: translateY(16px) scale(.96); pointer-events: none; }
.wa-head { display: flex; align-items: center; gap: 12px; padding: 16px 18px; background: linear-gradient(135deg, var(--navy-700), var(--navy-800)); border-bottom: 1px solid var(--line); }
.wa-avatar { flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--navy-950); border: 1px solid var(--line); overflow: hidden; }
.wa-avatar img { height: 32px; width: auto; }
.wa-head strong { display: block; font-family: var(--font-display); font-weight: 500; color: var(--ink); }
.wa-head small { font-size: 12.5px; color: var(--muted); }
.wa-close { margin-left: auto; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-size: 18px; color: var(--ink-soft); transition: background-color .3s; }
.wa-close:hover { background: rgba(255, 255, 255, .08); }
.wa-body { padding: 18px; }
.wa-bubble { padding: 12px 14px; border-radius: 4px var(--radius-sm) var(--radius-sm) var(--radius-sm); background: var(--navy-700); color: var(--ink); font-size: 14.5px; line-height: 1.55; }
.wa-quick { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.wa-quick button { padding: 7px 13px; border-radius: 999px; font-size: 13.5px; color: var(--gold-200); border: 1px solid var(--line); transition: background-color .3s, border-color .3s; }
.wa-quick button:hover, .wa-quick button.is-picked { background: rgba(226, 187, 98, .14); border-color: var(--gold-400); }
.wa-form { display: flex; align-items: flex-end; gap: 10px; padding: 12px 14px 14px; border-top: 1px solid var(--line-soft); }
.wa-form textarea {
  flex: 1; min-height: 46px; max-height: 120px; padding: 12px 14px; resize: none;
  border-radius: var(--radius-input); border: 1px solid var(--input-border); background: var(--input-bg);
  color: var(--ink); font-size: 14.5px; line-height: 1.45;
}
.wa-form textarea::placeholder { color: var(--placeholder); }
.wa-form textarea:focus { outline: none; border-color: var(--wa); }
.wa-send { flex: none; width: 46px; height: 46px; border-radius: 999px; display: grid; place-items: center; background: var(--wa); color: var(--wa-ink); font-size: 20px; transition: transform .4s var(--ease); }
.wa-send:hover { transform: scale(1.06); }
@media (max-width: 560px) {
  .wa-fab { right: 16px; bottom: 16px; width: 56px; height: 56px; font-size: 28px; }
  .wa-panel { right: 16px; bottom: 84px; }
}

/* ---------- Promise strip (home) ---------- */
.usp-strip { background: var(--navy-950); border-bottom: 1px solid var(--line-soft); }
.usp-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.usp { display: flex; align-items: flex-start; gap: 16px; padding: 36px 28px; border-right: 1px solid var(--line-soft); }
.usp:first-child { padding-left: 0; }
.usp:last-child { padding-right: 0; border-right: 0; }
.usp h3 { font-size: 1.08rem; margin-bottom: 4px; }
.usp p { font-size: 14.5px; line-height: 1.5; color: var(--muted); }
.usp .tile-icon { transition: background-color .4s, color .4s, border-color .4s; }
.usp:hover .tile-icon:not(.tile-icon-wa) { background: var(--gold-400); color: var(--on-gold); border-color: transparent; }
.tile-icon-wa { background: var(--wa); color: var(--wa-ink); border-color: transparent; }
@media (max-width: 1000px) {
  .usp-grid { grid-template-columns: 1fr 1fr; column-gap: 32px; }
  .usp, .usp:first-child, .usp:last-child { padding: 26px 0; border-right: 0; border-bottom: 1px solid var(--line-soft); }
  .usp:nth-last-child(-n + 2) { border-bottom: 0; }
}
@media (max-width: 560px) {
  .usp-grid { grid-template-columns: 1fr; }
  .usp:nth-last-child(2) { border-bottom: 1px solid var(--line-soft); }
}

/* ---------- About intro (home) ---------- */
.collage-home { padding: 0 8% 16% 0; }
.collage-home .collage-small { left: auto; right: 0; width: 50%; }
.collage-badge {
  position: absolute; left: -18px; top: 9%;
  display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 18px 20px;
  border-radius: var(--radius-sm); border: 1px solid var(--line); background: rgba(5, 10, 23, .9);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .8);
}
.collage-badge img { height: 64px; width: auto; }
.collage-badge span { font-family: var(--font-display); font-size: 12.5px; letter-spacing: .16em; text-transform: uppercase; text-align: center; line-height: 1.7; color: var(--gold-300); }
@media (prefers-reduced-motion: no-preference) {
  .collage-badge { animation: floatY 7s ease-in-out infinite; }
}
@keyframes floatY { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
.check-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 24px; margin-bottom: 36px; }
.check-grid li { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--ink); }
.check-grid i { flex: none; font-size: 20px; color: var(--gold-400); }
.about-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 32px; }
.call-chip { display: flex; align-items: center; gap: 14px; }
.call-chip-ic { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font-size: 22px; background: var(--gold-grad); color: var(--on-gold); box-shadow: 0 0 0 6px rgba(226, 187, 98, .12); transition: transform .5s var(--ease); }
.call-chip:hover .call-chip-ic { transform: rotate(-12deg) scale(1.05); }
.call-chip small { display: block; font-size: 13px; color: var(--muted); }
.call-chip strong { font-family: var(--font-display); font-weight: 500; font-size: 1.2rem; color: var(--ink); }
@media (max-width: 960px) {
  .collage-home { margin-bottom: 12px; }
  .collage-badge { left: 8px; }
}
@media (max-width: 560px) {
  .check-grid { grid-template-columns: 1fr; }
  .collage-badge { padding: 12px 14px; }
  .collage-badge img { height: 44px; }
}

/* ---------- Why Leoson (home) ---------- */
.why-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .85fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: center; }
.why-col { display: grid; gap: 44px; }
.why-item { display: flex; align-items: flex-start; gap: 18px; }
.why-col:first-child .why-item { flex-direction: row-reverse; text-align: right; }
.why-item h3 { font-size: 1.15rem; margin-bottom: 6px; }
.why-item p { font-size: 14.5px; line-height: 1.55; color: var(--muted); }
.why-item .tile-icon { transition: background-color .4s, color .4s, border-color .4s, transform .5s var(--ease); }
.why-item:hover .tile-icon { background: var(--gold-400); color: var(--on-gold); border-color: transparent; transform: rotate(-8deg); }
.why-media { position: relative; padding: 18px; }
.why-media .media-frame { aspect-ratio: 4 / 5; border-radius: 300px 300px var(--radius) var(--radius); }
.why-media .media-frame img { transition: transform 1.4s var(--ease); }
.why-media:hover .media-frame img { transform: scale(1.05); }
.why-ring { position: absolute; inset: 0; border-radius: 320px 320px calc(var(--radius) + 14px) calc(var(--radius) + 14px); border: 1px dashed rgba(226, 187, 98, .45); }
@media (max-width: 1000px) {
  .why-layout { grid-template-columns: 1fr 1fr; }
  .why-media { grid-column: 1 / -1; order: -1; width: 100%; max-width: 380px; justify-self: center; }
  .why-col:first-child .why-item { flex-direction: row; text-align: left; }
}
@media (max-width: 640px) {
  .why-layout { grid-template-columns: 1fr; }
  .why-col { gap: 28px; }
}

/* ---------- Service tabs (home) ---------- */
.svc-tabs { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(32px, 5vw, 64px); align-items: stretch; }
.svc-side { display: flex; flex-direction: column; gap: 12px; }
.svc-tablist { display: flex; flex-direction: column; gap: 12px; }
.svc-tab {
  display: flex; align-items: flex-start; gap: 18px; padding: 20px 22px; text-align: left;
  border-radius: var(--radius); border: 1px solid var(--line-soft); background: var(--surface-soft);
  transition: border-color .4s, background-color .4s;
}
.svc-tab:hover { border-color: var(--line); }
.svc-tab .tile-icon { transition: background-color .4s, color .4s, border-color .4s; }
.svc-tab > i { margin-left: auto; align-self: center; font-size: 18px; color: var(--muted); transition: transform .5s var(--ease), color .3s; }
.svc-tab-text strong { display: block; font-family: var(--font-display); font-weight: 500; font-size: 1.15rem; color: var(--ink); padding-top: 12px; }
.svc-tab-text span { display: block; max-height: 0; overflow: hidden; opacity: 0; font-size: 14.5px; line-height: 1.55; color: var(--muted); transition: max-height .6s var(--ease), opacity .4s, margin .4s; }
.svc-tab.is-active { border-color: rgba(226, 187, 98, .5); background: linear-gradient(135deg, rgba(226, 187, 98, .12), rgba(226, 187, 98, .02)); }
.svc-tab.is-active .tile-icon { background: var(--gold-grad); color: var(--on-gold); border-color: transparent; }
.svc-tab.is-active .svc-tab-text strong { padding-top: 0; }
.svc-tab.is-active .svc-tab-text span { max-height: 140px; opacity: 1; margin-top: 6px; }
.svc-tab.is-active > i { color: var(--gold-300); transform: translateX(4px); }
.svc-all { align-self: flex-start; margin-top: 12px; }
.svc-panels { position: relative; min-height: 480px; }
.svc-panel {
  position: absolute; inset: 0; overflow: hidden; border-radius: var(--radius); border: 1px solid var(--line-soft); background: var(--navy-850);
  opacity: 0; transform: scale(1.03); transition: opacity .8s var(--ease), transform 1.2s var(--ease);
}
.svc-panel.is-active { opacity: 1; transform: none; }
.svc-panel[hidden] { display: block; }
.svc-panel img { width: 100%; height: 100%; object-fit: cover; }
.svc-panels .media-note { z-index: 2; }
@media (max-width: 960px) {
  .svc-tabs { grid-template-columns: 1fr; }
  .svc-panels { min-height: 0; aspect-ratio: 4 / 3; order: -1; margin-bottom: 24px; }
}

/* ---------- Who we serve (home) ---------- */
.serve-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; align-items: start; padding-bottom: 48px; }
.serve-card { position: relative; overflow: hidden; isolation: isolate; aspect-ratio: 3 / 4.2; border-radius: var(--radius); border: 1px solid var(--line-soft); transition: border-color .4s; }
.serve-card:nth-child(even) { margin-top: 48px; }
.serve-card img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.serve-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(5, 10, 23, .05) 25%, rgba(5, 10, 23, .93) 82%); }
.serve-card:hover { border-color: rgba(226, 187, 98, .45); }
.serve-card:hover img { transform: scale(1.07); }
.serve-body { position: absolute; left: 0; right: 0; bottom: 0; padding: 24px; }
.serve-body .tile-icon { margin-bottom: 16px; }
.serve-body h3 { font-size: 1.3rem; margin-bottom: 6px; }
.serve-body p { font-size: 14.5px; line-height: 1.55; color: var(--ink-soft); }
@media (max-width: 1000px) {
  .serve-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .serve-grid { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 80%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 0; }
  .serve-grid::-webkit-scrollbar { display: none; }
  .serve-card { scroll-snap-align: start; }
  .serve-card:nth-child(even) { margin-top: 0; }
}

/* ---------- Quote (home) ---------- */
.quote { background: radial-gradient(800px 500px at 0% 0%, rgba(207, 160, 70, .1), transparent 60%); }

/* ---------- Theme toggle + logo swap ---------- */
.logo-for-dark { display: var(--show-on-dark); }
.logo-for-light { display: var(--show-on-light); }
.theme-toggle {
  position: relative; flex: none; width: 46px; height: 46px; border-radius: 999px;
  display: grid; place-items: center; font-size: 20px; color: var(--ink);
  border: 1px solid var(--line); background: var(--surface-soft);
  transition: border-color .3s, background-color .3s, transform .5s var(--ease);
}
.theme-toggle:hover { border-color: var(--gold-300); transform: rotate(-15deg); }
.theme-toggle:active { transform: scale(.94); }
.theme-toggle i { grid-area: 1 / 1; transition: transform .5s var(--ease), opacity .3s; }
.theme-toggle .ph-sun { color: var(--gold-300); }
html:not([data-theme="light"]) .theme-toggle .ph-moon,
html[data-theme="light"] .theme-toggle .ph-sun { opacity: 0; transform: rotate(-90deg) scale(.4); }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .45s; }

/* ---------- Light theme adjustments ---------- */
html[data-theme="light"] .grain { opacity: .025; }
html[data-theme="light"] :is(.p-card, .value, .cover-item, .svc, .pacs-card, .equip-group, .flow-node, .contact-item, .svc-tab, .tile-light, .form-card, .rail-btn, .pill) { box-shadow: var(--card-shadow); }
html[data-theme="light"] .tile-light { border-color: var(--line-soft); }
html[data-theme="light"] .p-card:hover { box-shadow: 0 30px 60px -30px rgba(11, 21, 48, .35); }
html[data-theme="light"] .form-card { background: #ffffff; }
html[data-theme="light"] .pill.is-active { box-shadow: none; }
html[data-theme="light"] :is(.media-note, .collage-badge, .collage-small) { box-shadow: 0 30px 60px -28px rgba(11, 21, 48, .45); }
html[data-theme="light"] .wa-panel { box-shadow: 0 40px 90px -30px rgba(11, 21, 48, .4); }
html[data-theme="light"] .site-header.is-scrolled { box-shadow: 0 10px 30px -20px rgba(11, 21, 48, .25); }
html[data-theme="light"] select.input {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 256 256'%3E%3Cpath fill='%238a6420' d='M213.7 101.7l-80 80a8 8 0 0 1-11.4 0l-80-80a8 8 0 0 1 11.4-11.4L128 164.7l74.3-74.4a8 8 0 0 1 11.4 11.4Z'/%3E%3C/svg%3E");
}
html[data-theme="light"] .page-hero::before {
  background: linear-gradient(90deg, rgba(5, 10, 23, .93) 0%, rgba(5, 10, 23, .78) 45%, rgba(5, 10, 23, .42) 100%);
}
html[data-theme="light"] .step .node { box-shadow: 0 0 0 10px var(--navy-950); }
html[data-theme="light"] .map iframe { filter: none; }
html[data-theme="light"] .section-tint { background: linear-gradient(180deg, #eef1f7 0%, #f5f7fb 100%); }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
