/* ==========================================================================
   Salam Profix Maintenance W.L.L. — landing page
   Brand: logo orange/amber ribbon, graphite black, brushed steel grey.
   Type: Manrope throughout — medium weights, tight tracking for display.
   ========================================================================== */

:root {
  /* colour */
  --orange: #e9681f;
  --orange-600: #c9530f;
  --orange-050: #fdf1e9;
  --amber: #f5a524;
  --ink: #1d1f22;
  --ink-2: #3d4147;
  --muted: #6b7078;
  --steel: #b9bdc3;
  --line: #e7e5e1;
  --stone: #f5f4f1;
  --stone-2: #eceae6;
  --white: #ffffff;
  --ribbon: linear-gradient(115deg, var(--amber) 0%, var(--orange) 55%, #d9441a 100%);

  /* type */
  --display: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --sans: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --fs-sm: clamp(0.84rem, 0.82rem + 0.1vw, 0.9rem);
  --fs-base: clamp(0.98rem, 0.95rem + 0.15vw, 1.06rem);
  --fs-lead: clamp(1.08rem, 1rem + 0.35vw, 1.25rem);
  --fs-h3: clamp(1.15rem, 1.05rem + 0.4vw, 1.35rem);
  --fs-h2: clamp(2.1rem, 1.5rem + 2.4vw, 3.6rem);
  --fs-h1: clamp(2.5rem, 1.4rem + 4.4vw, 5.2rem);

  /* layout */
  --wrap: min(1240px, 100% - 2 * clamp(1.1rem, 4vw, 2.5rem));
  --section: clamp(4.5rem, 9vw, 8rem);
  --r-sm: 10px;
  --r-md: 18px;
  --r-lg: 28px;
  --nav-h: 84px;
  --nav-h-compact: 66px;
  --shadow: 0 1px 2px rgb(29 31 34 / .04), 0 12px 32px -12px rgb(29 31 34 / .14);
  --ease: cubic-bezier(.2, .7, .2, 1);

  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

*, *::before, *::after { box-sizing: inherit; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h-compact) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--fs-base);
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; text-wrap: balance; }
h1, h2 { font-family: var(--display); font-weight: 500; letter-spacing: -0.035em; line-height: 1.04; }
h2 { font-size: var(--fs-h2); }
h3 { font-family: var(--display); font-weight: 600; font-size: var(--fs-h3); letter-spacing: -0.015em; line-height: 1.25; }
.wrap { width: var(--wrap); margin-inline: auto; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 4px; }
.skip-link { position: absolute; left: 1rem; top: -120px; z-index: 200; background: var(--ink); color: #fff; padding: .7rem 1rem; border-radius: var(--r-sm); text-decoration: none; }
.skip-link:focus { top: 1rem; }
.icon { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Section heading pattern ---------- */
.section { padding-block: var(--section); }
.section--stone { background: var(--stone); }
.kicker { display: inline-flex; align-items: center; gap: .65rem; font-size: var(--fs-sm); font-weight: 600; color: var(--orange-600); letter-spacing: .02em; }
.kicker::before { content: ""; width: 28px; height: 2px; border-radius: 2px; background: var(--ribbon); }
.section-head { display: grid; gap: 1.1rem; max-width: 46rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head p { color: var(--muted); font-size: var(--fs-lead); line-height: 1.6; max-width: 40rem; }
.section-head--split { max-width: none; grid-template-columns: 1fr; align-items: end; }
@media (min-width: 900px) { .section-head--split { grid-template-columns: 1.1fr .9fr; gap: 3rem; } }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--ink); --fg: #fff; --bd: var(--bg);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 50px; padding: .8rem 1.45rem; border-radius: 999px;
  background: var(--bg); color: var(--fg); border: 1.5px solid var(--bd);
  font: 600 .96rem/1 var(--sans); letter-spacing: .005em; text-decoration: none; cursor: pointer;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
}
.btn .icon { width: 1.1em; height: 1.1em; transition: transform .25s var(--ease); }
.btn:hover { transform: translateY(-1px); }
.btn:hover .icon--arrow { transform: translateX(3px); }
.btn--primary { --bg: var(--orange); --bd: var(--orange); box-shadow: 0 10px 24px -12px rgb(233 104 31 / .7); }
.btn--primary:hover { --bg: var(--orange-600); --bd: var(--orange-600); }
.btn--outline { --bg: transparent; --fg: var(--ink); --bd: rgb(29 31 34 / .22); }
.btn--outline:hover { --bd: var(--ink); }
.btn--light { --bg: #fff; --fg: var(--ink); --bd: #fff; }
.btn--light:hover { --bg: var(--stone); }
.btn--ghost-light { --bg: transparent; --fg: #fff; --bd: rgb(255 255 255 / .35); }
.btn--ghost-light:hover { --bd: #fff; }
.text-link { display: inline-flex; align-items: center; gap: .5rem; font-weight: 600; color: var(--ink); text-decoration: none; border-bottom: 1.5px solid var(--orange); padding-bottom: 2px; transition: gap .25s var(--ease), color .25s; }
.text-link:hover { gap: .8rem; color: var(--orange-600); }

/* ==========================================================================
   1. Navigation
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgb(255 255 255 / .86);
  backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
.site-header.is-compact { border-bottom-color: var(--line); box-shadow: 0 6px 24px -18px rgb(0 0 0 / .35); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; height: var(--nav-h); transition: height .3s var(--ease); }
.site-header.is-compact .nav { height: var(--nav-h-compact); }
.brand { display: inline-flex; align-items: center; gap: .75rem; text-decoration: none; min-width: 0; }
.brand img { width: 52px; height: auto; transition: width .3s var(--ease); }
.site-header.is-compact .brand img { width: 42px; }
.brand-text { display: grid; line-height: 1.1; }
.brand-text strong { font-weight: 700; font-size: 1rem; letter-spacing: .08em; }
.brand-text span { font-size: .72rem; color: var(--muted); letter-spacing: .04em; }
.nav-links { display: none; gap: clamp(1.1rem, 2.2vw, 2.1rem); list-style: none; }
.nav-links a { position: relative; text-decoration: none; font-size: .94rem; font-weight: 500; color: var(--ink-2); padding: .4rem 0; transition: color .2s; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; border-radius: 2px; background: var(--orange); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after, .nav-links a[aria-current="true"]::after { transform: scaleX(1); }
.nav-cta { display: none; }
.menu-toggle { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; }
.menu-toggle .icon { width: 22px; height: 22px; }

.mobile-menu {
  position: fixed; inset: auto 0 auto 0; top: calc(var(--nav-h) + env(safe-area-inset-top, 0px));
  margin: 0; width: 100%; max-width: none; max-height: calc(100dvh - var(--nav-h));
  overflow: auto; border: 0; padding: .5rem clamp(1.1rem, 4vw, 2.5rem) 1.75rem;
  background: #fff; color: var(--ink); box-shadow: 0 24px 40px -24px rgb(0 0 0 / .35);
}
.site-header.is-compact ~ .mobile-menu, .site-header.is-compact .mobile-menu { top: calc(var(--nav-h-compact) + env(safe-area-inset-top, 0px)); }
.mobile-menu:not(:popover-open) { display: none; }
.no-popover .mobile-menu { display: none; }
.no-popover .mobile-menu.is-open { display: block; }
.mobile-menu ul { list-style: none; display: grid; margin-bottom: 1.25rem; }
.mobile-menu li a { display: flex; justify-content: space-between; align-items: center; padding: 1rem 0; border-bottom: 1px solid var(--line); text-decoration: none; font-weight: 500; letter-spacing: -0.02em; font-size: 1.35rem; }
.mobile-menu .btn { width: 100%; }

@media (min-width: 1024px) {
  .nav-links, .nav-cta { display: flex; }
  .menu-toggle, .mobile-menu { display: none !important; }
}

/* ==========================================================================
   2. Hero
   ========================================================================== */
.hero { position: relative; padding-block: clamp(2.5rem, 6vw, 5rem) clamp(5.5rem, 9vw, 8rem); overflow: clip; }
.hero::before { /* faint steel field behind the image column */
  content: ""; position: absolute; inset: 0 0 0 auto; width: 42%; background: var(--stone); border-bottom-left-radius: 220px; z-index: -2;
}
.hero-grid { display: grid; gap: clamp(2.5rem, 6vw, 4rem); align-items: center; }
.hero-copy { position: relative; z-index: 2; }
.trust-pill { display: inline-flex; align-items: center; gap: .6rem; padding: .45rem .9rem .45rem .55rem; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: .85rem; font-weight: 500; color: var(--ink-2); box-shadow: var(--shadow); }
.trust-pill .flag { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--orange-050); color: var(--orange-600); }
.trust-pill .flag .icon { width: 15px; height: 15px; }
.hero h1 { margin-top: 1.6rem; font-size: var(--fs-h1); }
.hero h1 .line { display: block; }
.hero h1 .line--soft { color: #8a8f96; }
.hero-lead { margin-top: 1.5rem; font-size: var(--fs-lead); color: var(--ink-2); max-width: 34rem; line-height: 1.6; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2.2rem; }
.hero-services { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; margin-top: 2.4rem; padding-top: 1.6rem; border-top: 1px solid var(--line); list-style: none; color: var(--muted); font-size: .9rem; }
.hero-services li { display: inline-flex; align-items: center; gap: .45rem; }
.hero-services .icon { color: var(--orange); width: 1.05em; height: 1.05em; }

.hero-visual { position: relative; isolation: isolate; width: 100%; max-width: 640px; justify-self: center; aspect-ratio: 5 / 5.4; }
.hero-media { position: absolute; inset: 0 0 6% 8%; border-radius: 180px 28px 180px 28px; overflow: hidden; box-shadow: 0 40px 80px -40px rgb(29 31 34 / .45); background: var(--stone-2); }
.hero-media img { width: 100%; height: 112%; object-fit: cover; object-position: 38% 50%; }
.hero-ribbon { position: absolute; z-index: -1; border-radius: 999px; transform: rotate(-36deg); }
.hero-ribbon--orange { width: 62%; height: 15%; left: -16%; bottom: 14%; background: var(--ribbon); }
.hero-ribbon--steel { width: 46%; height: 11%; left: -4%; bottom: 2%; background: linear-gradient(110deg, #9ea3a9, #eef0f2 50%, #a6aab0); }
.hero-card {
  position: absolute; left: 0; bottom: 12%; z-index: 3;
  display: flex; align-items: center; gap: .85rem; padding: .9rem 1.15rem .9rem .9rem;
  background: rgb(255 255 255 / .94); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-radius: var(--r-md); box-shadow: var(--shadow); max-width: 260px;
}
.hero-card .badge { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--ink); color: var(--amber); flex: none; }
.hero-card strong { display: block; font-weight: 600; font-size: .95rem; line-height: 1.25; }
.hero-card span { display: block; font-size: .8rem; color: var(--muted); line-height: 1.35; }

@media (min-width: 960px) {
  .hero-grid { grid-template-columns: 1.05fr .95fr; }
  .hero-visual { justify-self: end; }
}
@media (max-width: 959px) {
  .hero::before { width: 100%; height: 46%; inset: auto 0 0 0; border-radius: 160px 0 0 0; }
  .hero-visual { max-width: 540px; }
}

/* ==========================================================================
   3. Trust strip
   ========================================================================== */
.trust { position: relative; z-index: 3; margin-top: calc(-1 * clamp(3rem, 6vw, 4.5rem)); }
.trust-card { display: grid; grid-template-columns: 1fr; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); overflow: hidden; }
.stat { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.25rem; padding: clamp(1.3rem, 3vw, 2rem) clamp(1.4rem, 3vw, 2.4rem); border-top: 1px solid var(--line); }
.stat:first-child { border-top: 0; }
.stat-value { font-weight: 300; letter-spacing: -0.04em; font-size: clamp(2.5rem, 2rem + 2vw, 3.4rem); line-height: 1; color: var(--orange); min-width: 3.2ch; font-variant-numeric: tabular-nums; }
.stat-label { flex: 1 1 10rem; font-weight: 600; font-size: 1rem; line-height: 1.35; }
.stat-label small { display: block; font-weight: 400; color: var(--muted); font-size: .86rem; }
@media (min-width: 768px) {
  .trust-card { grid-template-columns: repeat(3, 1fr); }
  .stat { border-top: 0; border-left: 1px solid var(--line); }
  .stat:first-child { border-left: 0; }
}

/* ==========================================================================
   4. About
   ========================================================================== */
.about-grid { display: grid; gap: clamp(3rem, 6vw, 5rem); align-items: center; }
.about-visual { position: relative; padding: 0 12% 14% 0; }
.about-visual .img-main { border-radius: 28px 140px 28px 28px; overflow: hidden; aspect-ratio: 4 / 3.4; background: var(--stone-2); }
.about-visual .img-main img, .about-visual .img-sub img { width: 100%; height: 100%; object-fit: cover; }
.about-visual .img-sub { position: absolute; right: 0; bottom: 0; width: 42%; aspect-ratio: 3 / 4; border-radius: 22px 22px 90px 22px; overflow: hidden; border: 6px solid #fff; box-shadow: var(--shadow); background: var(--stone-2); }
.about-visual .accent { position: absolute; left: -4%; bottom: 8%; width: 30%; height: 10px; border-radius: 99px; background: var(--ribbon); transform: rotate(-36deg); transform-origin: left; }
.about-copy { display: grid; gap: 1.4rem; }
.about-copy .lead { font-size: var(--fs-lead); color: var(--ink); line-height: 1.6; }
.about-copy p { color: var(--ink-2); }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; }
.chips li { padding: .45rem .9rem; border-radius: 999px; background: var(--stone); border: 1px solid var(--line); font-size: .86rem; font-weight: 500; color: var(--ink-2); }
.sectors-inline { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.sectors-inline div { background: #fff; padding: 1rem; text-align: center; }
.sectors-inline .icon { display: block; color: var(--orange); width: 22px; height: 22px; margin: 0 auto .4rem; }
.sectors-inline span { font-size: .86rem; font-weight: 600; }
.about-copy .actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem; margin-top: .4rem; }
@media (min-width: 960px) { .about-grid { grid-template-columns: 1fr 1fr; } }

/* ==========================================================================
   5. Services
   ========================================================================== */
.services-grid { display: grid; gap: clamp(1rem, 2vw, 1.5rem); grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); list-style: none; }
.service-card {
  position: relative; display: flex; flex-direction: column; height: 100%;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s;
}
.service-card::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--ribbon); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease); }
.service-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--stone-2); }
.service-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease), filter .5s; filter: saturate(.85); }
.service-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgb(29 31 34 / .35)); }
.service-num { position: absolute; top: .9rem; left: 1rem; z-index: 1; font-size: .78rem; font-weight: 600; letter-spacing: .08em; color: #fff; padding: .25rem .6rem; border-radius: 999px; background: rgb(29 31 34 / .55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.service-body { position: relative; display: grid; gap: .7rem; padding: 2.1rem 1.4rem 1.6rem; flex: 1; align-content: start; }
.service-icon { position: absolute; top: -26px; left: 1.4rem; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: #fff; color: var(--orange); box-shadow: 0 8px 20px -10px rgb(0 0 0 / .35); transition: background-color .35s, color .35s, transform .45s var(--ease); }
.service-icon .icon { width: 24px; height: 24px; }
.service-body h3 { font-size: 1.5rem; }
.service-body p { color: var(--muted); font-size: .94rem; line-height: 1.6; }
@media (hover: hover) {
  .service-card:hover { transform: translateY(-6px); box-shadow: 0 28px 50px -30px rgb(29 31 34 / .45); border-color: transparent; }
  .service-card:hover::after { transform: scaleX(1); }
  .service-card:hover .service-media img { transform: scale(1.06); filter: saturate(1); }
  .service-card:hover .service-icon { background: var(--orange); color: #fff; transform: translateY(-3px) rotate(-6deg); }
}
.services-foot { margin-top: clamp(2.5rem, 5vw, 3.5rem); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem; padding: 1.4rem 1.6rem; border-radius: var(--r-md); background: #fff; border: 1px solid var(--line); }
.services-foot p { color: var(--ink-2); }

/* ==========================================================================
   6. Mission / Vision / Values
   ========================================================================== */
.mvv-top { display: grid; gap: clamp(2rem, 5vw, 4rem); margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.vision { position: relative; padding: clamp(2rem, 4vw, 3rem); border-radius: var(--r-lg) 140px var(--r-lg) var(--r-lg); background: var(--stone); color: var(--ink); overflow: hidden; }
.vision::after { content: ""; position: absolute; right: -60px; bottom: 30px; width: 260px; height: 46px; border-radius: 99px; background: var(--ribbon); transform: rotate(-36deg); opacity: .9; }
.vision .label { color: var(--orange-600); font-size: var(--fs-sm); font-weight: 600; letter-spacing: .02em; }
.vision blockquote { margin: 1rem 0 0; position: relative; z-index: 1; font-weight: 400; letter-spacing: -0.02em; font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2rem); line-height: 1.35; max-width: 30ch; }
.mission .label { font-size: var(--fs-sm); font-weight: 600; color: var(--orange-600); }
.mission h3 { margin: .6rem 0 1.4rem; font-size: clamp(1.5rem, 1.3rem + .8vw, 1.9rem); font-weight: 500; letter-spacing: -0.025em; }
.mission ol { list-style: none; counter-reset: m; display: grid; gap: 0; }
.mission li { counter-increment: m; display: grid; grid-template-columns: 2.2rem 1fr; gap: .8rem; padding: 1rem 0; border-top: 1px solid var(--stone-2); color: var(--ink-2); }
.mission li:last-child { border-bottom: 1px solid var(--stone-2); }
.mission li::before { content: counter(m, decimal-leading-zero); font-weight: 600; font-size: .85rem; letter-spacing: .04em; color: var(--orange); line-height: 1.5; }
@media (min-width: 960px) { .mvv-top { grid-template-columns: 1.05fr .95fr; align-items: stretch; } .vision { display: flex; flex-direction: column; justify-content: space-between; } }

.values { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); list-style: none; }
.value { padding: 1.6rem; border-radius: var(--r-md); background: #fff; border: 1px solid var(--line); transition: border-color .3s, transform .4s var(--ease); }
.value:hover { border-color: rgb(233 104 31 / .45); transform: translateY(-3px); }
.value .icon-wrap { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--orange-050); color: var(--orange-600); margin-bottom: 1.1rem; }
.value .icon-wrap .icon { width: 22px; height: 22px; }

.value p { margin-top: .45rem; color: var(--muted); font-size: .94rem; }

/* ==========================================================================
   7. Why choose us
   ========================================================================== */
.why-grid { display: grid; gap: clamp(2.5rem, 6vw, 5rem); }
.why-aside { display: grid; gap: 1.6rem; align-content: start; }
.why-aside .section-head { margin-bottom: 0; }
.why-figure { margin: 0; position: relative; border-radius: 26px 26px 120px 26px; overflow: hidden; aspect-ratio: 4 / 4.6; background: var(--stone-2); max-width: 460px; }
.why-figure img { width: 100%; height: 100%; object-fit: cover; }
.why-figure figcaption { position: absolute; left: 1rem; right: 1rem; bottom: 1rem; padding: .85rem 1rem; border-radius: 14px; background: rgb(255 255 255 / .92); font-size: .88rem; color: var(--ink-2); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.why-list { list-style: none; display: grid; }
.why-item { display: grid; grid-template-columns: auto 1fr; gap: clamp(1.1rem, 3vw, 2.2rem); padding: clamp(1.5rem, 3vw, 2.1rem) 0; border-top: 1px solid var(--line); }
.why-item:last-child { border-bottom: 1px solid var(--line); }
.why-num { font-weight: 200; letter-spacing: -0.05em; font-size: clamp(3rem, 2.2rem + 3vw, 4.6rem); line-height: .85; color: var(--orange); min-width: 2ch; transition: transform .4s var(--ease); }
.why-item:hover .why-num { transform: translateX(4px); }
.why-item h3 { font-size: clamp(1.2rem, 1.1rem + .4vw, 1.45rem); }
.why-item p { margin-top: .5rem; color: var(--muted); max-width: 46ch; }
@media (min-width: 1000px) {
  .why-grid { grid-template-columns: .85fr 1.15fr; }
  .why-aside { position: sticky; top: calc(var(--nav-h-compact) + 2rem); }
}

/* ==========================================================================
   8. Industries
   ========================================================================== */
.industries-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); list-style: none; }
.industry { position: relative; aspect-ratio: 3 / 4; border-radius: var(--r-lg); overflow: hidden; background: var(--ink); isolation: isolate; }
.industry img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .9s var(--ease); }
.industry::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgb(29 31 34 / 0) 35%, rgb(29 31 34 / .82) 100%); }
.industry-body { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.6rem; color: #fff; }
.industry-body .idx { display: inline-block; margin-bottom: .8rem; font-size: .78rem; font-weight: 600; letter-spacing: .08em; color: var(--amber); }
.industry-body h3 { font-size: clamp(1.3rem, 1.1rem + .8vw, 1.8rem); font-weight: 500; letter-spacing: -0.025em; }
.industry-body .bar { display: block; width: 36px; height: 2px; margin-top: 1rem; background: var(--orange); transition: width .5s var(--ease); }
@media (hover: hover) {
  .industry:hover img { transform: scale(1.06); }
  .industry:hover .bar { width: 90px; }
}
@media (min-width: 640px) and (max-width: 1099px) { .industry { aspect-ratio: 4 / 3.6; } }

/* ==========================================================================
   9. Clients
   ========================================================================== */
.clients { padding-block: clamp(3.5rem, 7vw, 5.5rem); border-top: 1px solid var(--line); }
.clients-inner { display: grid; gap: 2rem; align-items: center; }
.clients h2 { font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.3rem); max-width: 18ch; }
.client-logos { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; list-style: none; }
.client-logos li { display: grid; place-items: center; height: 110px; padding: 1rem; border: 1px solid var(--line); border-radius: var(--r-md); background: #fff; }
.client-logos img { max-height: 70px; width: auto; filter: grayscale(1); opacity: .7; mix-blend-mode: multiply; transition: filter .4s, opacity .4s; }
.client-logos li:hover img { filter: none; opacity: 1; }
@media (min-width: 720px) { .client-logos { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1000px) { .clients-inner { grid-template-columns: .8fr 1.2fr; } }

/* ==========================================================================
   10. CTA
   ========================================================================== */
.cta { position: relative; isolation: isolate; overflow: hidden; background: var(--ink); color: #fff; padding-block: clamp(5rem, 10vw, 8rem); }
.cta-bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; opacity: .22; filter: grayscale(.4); }
.cta::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(70% 90% at 15% 50%, rgb(29 31 34 / .55), rgb(29 31 34 / .95)); }
.cta::after { content: ""; position: absolute; right: -170px; top: 8%; width: 420px; height: 64px; border-radius: 999px; background: var(--ribbon); transform: rotate(-36deg); opacity: .85; z-index: -1; }
.cta-inner { display: grid; gap: 2rem; align-items: end; }
.cta h2 { color: #fff; max-width: 21ch; }
.cta p { margin-top: 1.2rem; color: #cfd2d6; font-size: var(--fs-lead); max-width: 38rem; }
.cta-actions { position: relative; display: flex; flex-wrap: wrap; gap: .8rem; }
@media (min-width: 1000px) { .cta-inner { grid-template-columns: 1.15fr .85fr; } .cta-actions { justify-content: flex-end; } }

/* ==========================================================================
   11. Contact
   ========================================================================== */
.contact-grid { display: grid; gap: clamp(2.5rem, 5vw, 4rem); }
.contact-info { display: grid; gap: 1.6rem; align-content: start; }
.contact-cards { display: grid; gap: .8rem; list-style: none; }
.contact-card { display: grid; grid-template-columns: 48px 1fr; gap: 1rem; align-items: center; padding: 1.1rem 1.2rem; border-radius: var(--r-md); background: #fff; border: 1px solid var(--line); }
.contact-card .ic { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--orange-050); color: var(--orange-600); }
.contact-card .ic .icon { width: 21px; height: 21px; }
.contact-card small { display: block; font-size: .8rem; color: var(--muted); }
.contact-card a, .contact-card span.val { font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.contact-card a:hover { color: var(--orange-600); }
.contact-card .multi { display: flex; flex-wrap: wrap; gap: .2rem 1.2rem; }

.form-card { padding: clamp(1.5rem, 4vw, 2.6rem); border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.form-card h3 { font-size: clamp(1.4rem, 1.25rem + .7vw, 1.8rem); font-weight: 500; letter-spacing: -0.025em; }
.form-card > p { margin-top: .4rem; color: var(--muted); font-size: .94rem; }
.form-grid { display: grid; gap: 1.1rem; margin-top: 1.8rem; }
@media (min-width: 620px) { .form-grid { grid-template-columns: 1fr 1fr; } .field--full { grid-column: 1 / -1; } }
.field { display: grid; gap: .4rem; }
.field label { font-size: .88rem; font-weight: 600; color: var(--ink-2); }
.field .req { color: var(--orange-600); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: .8rem .95rem;
  font: 400 16px/1.4 var(--sans); color: var(--ink);
  background: var(--stone); border: 1px solid transparent; border-radius: 12px;
  transition: border-color .2s, background-color .2s, box-shadow .2s; accent-color: var(--orange);
}
.field select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%236b7078' stroke-width='1.6'%3E%3Cpath d='m1 1.5 5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.5rem; }
.field textarea { min-height: 130px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #9a9ea5; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--stone-2); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: none; background: #fff; border-color: var(--orange); box-shadow: 0 0 0 4px rgb(233 104 31 / .15); }
.error-msg { display: none; align-items: center; gap: .35rem; font-size: .82rem; color: #b42318; }
.field :is(input, select, textarea):user-invalid { border-color: #d92d20; background: #fff7f6; }
.field :is(input, select, textarea):user-invalid ~ .error-msg { display: flex; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.4rem; margin-top: 1.6rem; }
.form-foot small { color: var(--muted); font-size: .84rem; }
.form-status { margin-top: 1rem; padding: .85rem 1rem; border-radius: 12px; font-size: .92rem; display: none; }
.form-status.is-ok { display: block; background: #ecfdf3; color: #05603a; }
.form-status.is-err { display: block; background: #fef3f2; color: #b42318; }
@media (min-width: 1000px) { .contact-grid { grid-template-columns: .8fr 1.2fr; } }

/* ==========================================================================
   12. Footer
   ========================================================================== */
.site-footer { background: #17191b; color: #b8bcc2; padding-block: clamp(3.5rem, 7vw, 5rem) 2rem; }
.footer-grid { display: grid; gap: 2.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.footer-brand { display: grid; gap: 1.1rem; max-width: 22rem; }
.footer-brand .brand-text strong { color: #fff; }
.footer-brand .brand-text span { color: #8d9198; }
.logo-tile { display: grid; place-items: center; padding: 6px 8px; border-radius: 12px; background: #fff; }
.footer-brand .brand img { width: 46px; }
.footer-brand p { font-size: .92rem; line-height: 1.65; }
.site-footer h4 { color: #fff; font-family: var(--sans); font-weight: 600; font-size: .95rem; margin-bottom: 1rem; }
.site-footer ul { list-style: none; display: grid; gap: .55rem; font-size: .93rem; }
.site-footer a { text-decoration: none; transition: color .2s; }
.site-footer a:hover { color: var(--amber); }
.footer-bottom { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgb(255 255 255 / .08); display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem; font-size: .84rem; color: #8d9198; }
@media (max-width: 1023px) { .site-footer { padding-bottom: calc(2rem + 76px); } }

/* ---------- Mobile action bar ---------- */
.action-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 55; display: grid; grid-template-columns: 1fr 1.2fr 1fr; gap: .6rem; padding: .65rem .75rem calc(.65rem + env(safe-area-inset-bottom, 0px)); background: rgb(255 255 255 / .94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--line); transform: translateY(110%); transition: transform .35s var(--ease); }
.action-bar.is-visible { transform: none; }
.action-bar .btn { min-height: 48px; padding-inline: .8rem; font-size: .92rem; }
@media (min-width: 1024px) { .action-bar { display: none; } }

/* ==========================================================================
   Motion
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
  /* page-load sequence (one orchestrated moment) */
  @keyframes rise { from { opacity: 0; transform: translateY(22px); } }
  @keyframes unveil { from { clip-path: inset(0 0 100% 0 round 180px 28px 180px 28px); } to { clip-path: inset(0 0 0 0 round 180px 28px 180px 28px); } }
  @keyframes slide-ribbon { from { opacity: 0; transform: translate(-18%, 18%) rotate(-36deg); } }
  .hero-copy > * { animation: rise .9s var(--ease) backwards; }
  .hero-copy > :nth-child(2) { animation-delay: .08s; }
  .hero-copy > :nth-child(3) { animation-delay: .16s; }
  .hero-copy > :nth-child(4) { animation-delay: .24s; }
  .hero-copy > :nth-child(5) { animation-delay: .32s; }
  .hero-media { animation: unveil 1.1s .1s var(--ease) backwards; }
  .hero-ribbon { animation: slide-ribbon 1s var(--ease) backwards; }
  .hero-ribbon--orange { animation-delay: .35s; } .hero-ribbon--steel { animation-delay: .45s; }
  .hero-card { animation: rise .8s .7s var(--ease) backwards; }

  /* subtle hero parallax (decorative; progressive enhancement, no fallback) */
  @supports ((animation-timeline: scroll()) and (animation-range: 0% 100%)) {
    @keyframes drift { to { transform: translateY(-8%); } }
    .hero-media img { animation: drift linear both; animation-timeline: scroll(block root); animation-range: 0px 100vh; }
  }

}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}


/* ==========================================================================
   v3 additions — rhythm, editorial layouts, WhatsApp
   ========================================================================== */
.stack { display: grid; gap: 1.1rem; }
.btn--wa { --bg: #1f9d55; --bd: #1f9d55; --fg: #fff; }
.btn--wa:hover { --bg: #17824a; --bd: #17824a; }
.contact-quick, .footer-actions { display: flex; flex-wrap: wrap; gap: .7rem; }
.footer-actions { margin-top: .4rem; }
.footer-actions .btn { min-height: 44px; padding: .65rem 1.1rem; font-size: .9rem; }

/* ---------- Marquee band (oversized type as brand texture) ---------- */
.marquee { overflow: hidden; padding-block: clamp(2.2rem, 5vw, 3.5rem) 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; align-items: center; gap: clamp(1.4rem, 3vw, 2.6rem); width: max-content; white-space: nowrap; }
.marquee span { font-size: clamp(2.4rem, 1.6rem + 4vw, 5.4rem); font-weight: 300; letter-spacing: -0.045em; color: var(--ink); }
.marquee span:nth-of-type(even) { color: transparent; -webkit-text-stroke: 1px #b4b8be; }
.marquee i { flex: none; width: clamp(34px, 4vw, 54px); height: clamp(10px, 1.2vw, 15px); border-radius: 99px; background: var(--ribbon); transform: rotate(-36deg); }
@media (prefers-reduced-motion: no-preference) {
  @keyframes marquee { to { transform: translateX(-50%); } }
  .marquee-track { animation: marquee 48s linear infinite; }
  .marquee:hover .marquee-track { animation-play-state: paused; }
}

/* ---------- Services: editorial index with sticky image stage ---------- */
.svc-index { display: grid; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.svc-list { list-style: none; counter-reset: none; border-top: 1px solid var(--stone-2); }
.svc-item { display: grid; grid-template-columns: 3rem 1fr; gap: 1rem; padding: 1.35rem 0; border-bottom: 1px solid var(--stone-2); }
.svc-no { font-size: .82rem; font-weight: 600; letter-spacing: .06em; color: var(--muted); padding-top: .35rem; transition: color .3s; }
.svc-main h3 { display: flex; align-items: center; gap: .8rem; font-size: clamp(1.2rem, 1rem + .9vw, 1.75rem); font-weight: 500; letter-spacing: -0.03em; line-height: 1.2; transition: color .3s; }
.svc-main h3 .icon { flex: none; width: 1.1em; height: 1.1em; color: var(--orange); stroke-width: 1.5; }
.svc-detail { display: grid; }
.svc-detail > div { overflow: hidden; display: grid; gap: .9rem; padding-top: .9rem; }
.svc-detail p { color: var(--muted); max-width: 48ch; }
.svc-thumb { border-radius: 16px 60px 16px 16px; aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.svc-link { justify-self: start; display: inline-flex; align-items: center; gap: .45rem; font-size: .92rem; font-weight: 600; color: var(--orange-600); text-decoration: none; }
.svc-link .icon { transition: transform .25s var(--ease); }
.svc-link:hover .icon { transform: translateX(4px); }
.svc-stage { display: none; }

@media (min-width: 1000px) {
  .svc-index { grid-template-columns: 1.05fr .95fr; }
  .svc-thumb { display: none; }
  .svc-item { cursor: default; padding: 1.15rem 0; }
  .svc-main h3 { color: #9a9ea5; }
  .svc-detail { grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease); }
  .svc-detail > div { padding-top: 0; transition: padding-top .45s var(--ease); }
  .svc-item.is-active .svc-detail { grid-template-rows: 1fr; }
  .svc-item.is-active .svc-detail > div { padding-top: .8rem; }
  .svc-item.is-active h3 { color: var(--ink); }
  .svc-item.is-active .svc-no { color: var(--orange); }
  .svc-stage { display: block; position: sticky; top: calc(var(--nav-h-compact) + 2rem); }
  .svc-stage-frame { position: relative; aspect-ratio: 4 / 4.7; border-radius: 30px 160px 30px 30px; overflow: hidden; background: var(--stone-2); box-shadow: 0 40px 70px -40px rgb(29 31 34 / .5); }
  .svc-stage-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.06); transition: opacity .6s var(--ease), transform 1.1s var(--ease); }
  .svc-stage-img.is-active { opacity: 1; transform: none; }
  .svc-stage-count { position: absolute; left: 1.4rem; bottom: 1.4rem; padding: .55rem 1rem; border-radius: 999px; background: rgb(255 255 255 / .92); font-size: .85rem; color: var(--muted); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
  .svc-stage-count b { color: var(--ink); font-weight: 600; }
  .svc-stage-ribbon { position: absolute; z-index: -1; right: -40px; bottom: -26px; width: 240px; height: 40px; border-radius: 99px; background: var(--ribbon); transform: rotate(-36deg); }
}

/* ---------- Values: typographic row, not cards ---------- */
.values-line { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); border-top: 1px solid var(--line); }
.values-line li { padding: 1.8rem 1.4rem 1.8rem 0; border-bottom: 1px solid var(--line); }
.values-line .v-idx { font-size: .78rem; font-weight: 600; letter-spacing: .06em; color: var(--orange-600); }
.values-line h4 { margin: .6rem 0 .5rem; font-size: clamp(1.8rem, 1.4rem + 1.4vw, 2.6rem); font-weight: 400; letter-spacing: -0.045em; line-height: 1; }
.values-line p { color: var(--muted); font-size: .94rem; max-width: 26ch; }
@media (min-width: 900px) {
  .values-line li { border-bottom: 0; padding: 2rem 1.6rem; border-left: 1px solid var(--line); }
  .values-line li:first-child { border-left: 0; padding-left: 0; }
}

/* ---------- Why: dark section ---------- */
.section--dark { background: var(--ink); color: #fff; position: relative; overflow: clip; }
.section--dark::before { content: ""; position: absolute; left: -140px; top: 90px; width: 380px; height: 60px; border-radius: 99px; background: linear-gradient(110deg, #3a3d42, #5b5f66 50%, #3a3d42); transform: rotate(-36deg); opacity: .5; }
.section--dark .kicker { color: var(--amber); }
.section--dark .section-head p { color: #b5b9bf; }
.section--dark .why-item { border-color: rgb(255 255 255 / .1); }
.section--dark .why-item p { color: #b5b9bf; }
.section--dark .why-figure figcaption { background: rgb(29 31 34 / .82); color: #e5e7ea; }
.section--dark .why-num { color: var(--amber); }

/* ---------- Industries: asymmetric mosaic ---------- */
@media (min-width: 900px) {
  .industries-mosaic { grid-template-columns: 1.25fr 1fr 1fr; grid-template-rows: repeat(2, minmax(240px, 300px)); }
  .industries-mosaic .industry { aspect-ratio: auto; }
  .industries-mosaic .industry:nth-child(1) { grid-row: 1 / 3; border-radius: var(--r-lg) var(--r-lg) var(--r-lg) 160px; }
  .industries-mosaic .industry:nth-child(4) { grid-column: 2 / 4; }
  .industries-mosaic .industry:nth-child(1) h3 { font-size: clamp(1.8rem, 1.4rem + 1.2vw, 2.5rem); }
}

/* ---------- Footer wordmark ---------- */
.footer-wordmark { margin: 3rem 0 0; font-size: min(13.4vw, 13.6rem); font-weight: 600; letter-spacing: -0.06em; line-height: .85; color: #222528; white-space: nowrap; overflow: hidden; user-select: none; }
.footer-bottom { margin-top: 1.5rem; }

@media (max-width: 639px) {
  .industry { aspect-ratio: 4 / 3.3; }
  .cta::after { width: 220px; height: 34px; right: -90px; top: 18px; opacity: .6; }
}

/* ---------- Math captcha + credit ---------- */
.captcha { gap: .5rem; }
.captcha-row { display: flex; align-items: center; gap: .6rem; }
.captcha-q { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 1.2rem; border-radius: 12px; background: var(--ink); color: #fff; font-size: 1.15rem; font-weight: 600; letter-spacing: .04em; white-space: nowrap; font-variant-numeric: tabular-nums; }
.captcha-row input { width: 7.5rem; flex: none; min-width: 0; text-align: center; font-size: 1.1rem; font-weight: 600; letter-spacing: .08em; }
.form-grid > .field { min-width: 0; }
@media (max-width: 479px) { /* question + refresh on one line, answer box full width beneath */
  .captcha-row { display: grid; grid-template-columns: 1fr auto; }
  .captcha-row input { grid-column: 1 / -1; width: 100%; }
  .captcha-refresh { grid-column: 2; grid-row: 1; }
}
.captcha-refresh { display: grid; place-items: center; flex: none; width: 50px; height: 50px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--ink-2); cursor: pointer; transition: color .2s, border-color .2s, transform .5s var(--ease); }
.captcha-refresh:hover { color: var(--orange-600); border-color: var(--orange); transform: rotate(180deg); }
.captcha-refresh .icon { width: 20px; height: 20px; }
.captcha:has(input:user-invalid) .error-msg, .captcha:has(input[aria-invalid="true"]) .error-msg { display: flex; }
.captcha:has(input:user-invalid) input, .captcha input[aria-invalid="true"] { border-color: #d92d20; background: #fff7f6; }
.btn[disabled] { opacity: .65; cursor: progress; transform: none; }
.footer-bottom .credit a { color: #d5d8dc; font-weight: 600; text-decoration: none; background: linear-gradient(var(--amber), var(--amber)) 0 100% / 0 1px no-repeat; padding-bottom: 2px; transition: color .2s, background-size .3s var(--ease); }
.footer-bottom .credit a:hover, .footer-bottom .credit a:focus-visible { color: var(--amber); background-size: 100% 1px; }


/* ==========================================================================
   v5 — scroll choreography
   Native scroll-driven animations where supported (Chrome/Edge/Safari 26),
   small JS fallback elsewhere. Everything is disabled for reduced-motion users.
   ========================================================================== */
:root { --round-top: clamp(28px, 5vw, 64px); }
.services, .section--dark, .cta { border-radius: var(--round-top) var(--round-top) 0 0; }
[data-parallax="img"] { scale: 1.16; }

.scroll-progress { position: fixed; z-index: 90; top: 0; left: 0; right: 0; height: 3px; background: var(--ribbon); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .scroll-progress { display: none; } }

.marquee + .marquee { padding-top: clamp(.2rem, 1vw, .8rem); }
.marquee--rev span:nth-of-type(even) { color: var(--ink); -webkit-text-stroke: 0; }
.marquee--rev span:nth-of-type(odd) { color: transparent; -webkit-text-stroke: 1px #b4b8be; }

@media (prefers-reduced-motion: no-preference) {
  /* --- headline: word-by-word mask reveal --- */
  .js .hero h1:not(.split) { visibility: hidden; }
  .js .split .w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 .05em .16em; margin: 0 -.05em -.16em; }
  .js .split .w > span { display: inline-block; transform: translateY(108%); transition: transform 1.05s var(--ease) calc(var(--i, 0) * var(--step, 60ms) + var(--d, 0s)); }
  .js .split.is-in .w > span { transform: none; }
  .hero-copy > h1 { animation: none; }

  /* --- fade-up reveals --- */
  .js [data-r] { opacity: 0; transform: translate3d(0, 34px, 0); transition: opacity .9s var(--ease) var(--d, 0s), transform 1s var(--ease) var(--d, 0s); }
  .js [data-r="scale"] { transform: translate3d(0, 28px, 0) scale(.96); }
  .js [data-r].is-in { opacity: 1; transform: none; }

  /* --- image curtain wipe (top -> bottom), optional zoom-out settle --- */
  .js [data-curtain] { clip-path: inset(0 0 100% 0); transition: clip-path 1.3s var(--ease) var(--d, 0s), transform .9s var(--ease); }
  .js [data-curtain].is-in { clip-path: inset(-90px); }
  .js [data-curtain="zoom"] { transform: scale(1.16); transition: clip-path 1.3s var(--ease) var(--d, 0s), transform 1.9s var(--ease) var(--d, 0s); }
  .js [data-curtain="zoom"].is-in { transform: none; }

  /* --- Why Choose Us: rule draws in, number lights up as it crosses mid-screen --- */
  .js .why-item { position: relative; }
  .js .why-item::before { content: ""; position: absolute; left: 0; top: -1px; width: 100%; height: 2px; background: var(--ribbon); transform: scaleX(0); transform-origin: 0 50%; transition: transform 1.3s var(--ease) .15s; }
  .js .why-item.is-in::before { transform: scaleX(1); }
  .js .why-item .why-num { opacity: .28; transition: opacity .5s var(--ease), transform .5s var(--ease); }
  .js .why-item.is-current .why-num, .js .why-item:hover .why-num { opacity: 1; }
  .js .why-item.is-current .why-num { transform: translateX(6px); }

  /* --- second marquee row runs the other way --- */
  .marquee--rev .marquee-track { animation-duration: 58s; animation-direction: reverse; }

  /* --- native scroll-driven motion --- */
  @supports ((animation-timeline: scroll()) and (animation-range: 0% 100%)) {
    @keyframes progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
    .scroll-progress { animation: progress auto linear both; animation-timeline: scroll(root block); }

    @keyframes scroll-y { to { translate: 0 var(--sy, -40px); } }
    .hero-ribbon { animation: slide-ribbon 1s var(--ease) backwards, scroll-y auto linear both; animation-timeline: auto, scroll(root); animation-range: normal, 0px 100vh; }
    .hero-ribbon--orange { animation-delay: .35s, 0s; --sy: 90px; }
    .hero-ribbon--steel { animation-delay: .45s, 0s; --sy: -60px; }
    .hero-card { animation: rise .8s .7s var(--ease) backwards, scroll-y auto linear both; animation-timeline: auto, scroll(root); animation-range: normal, 0px 100vh; --sy: -70px; }
  }
  @supports ((animation-timeline: view()) and (animation-range: entry)) {
    @keyframes par-img { from { translate: 0 -7%; } to { translate: 0 7%; } }
    @keyframes par-fast { from { translate: 0 14%; } to { translate: 0 -14%; } }
    @keyframes par-drift { from { translate: 0 -70%; } to { translate: 0 70%; } }
    @keyframes ribbon-run { from { translate: 0 -60px; } to { translate: 0 60px; } }
    [data-parallax="img"] { animation: par-img auto linear both; animation-timeline: view(); animation-range: cover; }
    [data-parallax="fast"] { animation: par-fast auto linear both; animation-timeline: view(); animation-range: cover; }
    [data-parallax="drift"] { animation: par-drift auto linear both; animation-timeline: view(); animation-range: cover; }
    .cta::after, .section--dark::before { animation: ribbon-run auto linear both; animation-timeline: view(); animation-range: cover; }
  }
}


/* ==========================================================================
   Preloader — logo reveal, metallic glint, progress line, then lifts away.
   ========================================================================== */
html { scrollbar-gutter: stable; }
html.is-loading { overflow: hidden; }
.preloader { display: none; }
.js .preloader {
  position: fixed; inset: 0 0 -10vh 0; z-index: 300; display: grid; place-items: center; padding-bottom: 10vh;
  background: #fff; border-radius: 0 0 50% 50% / 0 0 9vh 9vh;
  transition: transform .95s cubic-bezier(.77, 0, .18, 1);
  will-change: transform;
}
.preloader.is-leaving { transform: translateY(-100%); }
.pre-inner { display: grid; justify-items: center; text-align: center; transition: opacity .4s, transform .6s var(--ease); }
.preloader.is-leaving .pre-inner, .preloader.is-leaving .pre-foot, .preloader.is-leaving .pre-count { opacity: 0; transform: translateY(-24px); }
.pre-logo { position: relative; width: clamp(150px, 20vw, 220px); }
.pre-logo img { width: 100%; height: auto; display: block; position: relative; z-index: 1; }
.pre-ring { position: absolute; left: 50%; top: 50%; width: 150%; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; border: 3px solid rgb(233 104 31 / .8); opacity: 0; pointer-events: none; }
.pre-name { display: grid; gap: .25rem; margin: 1.4rem 0 0; line-height: 1.1; }
.pre-name strong { font-weight: 700; letter-spacing: .26em; font-size: clamp(.85rem, .8rem + .3vw, 1rem); padding-left: .26em; }
.pre-name span { color: var(--muted); font-size: .72rem; letter-spacing: .3em; padding-left: .3em; }
.pre-bar { width: clamp(150px, 20vw, 220px); height: 3px; margin-top: 1.6rem; border-radius: 99px; background: var(--stone-2); overflow: hidden; }
.pre-bar span { display: block; height: 100%; background: var(--ribbon); transform-origin: 0 50%; transform: scaleX(0); animation: pre-fill 2s linear forwards; }
.pre-foot, .pre-count { position: absolute; bottom: calc(10vh + clamp(1.2rem, 4vw, 3rem)); margin: 0; transition: opacity .4s, transform .6s var(--ease); }
.pre-foot { left: clamp(1.2rem, 4vw, 3rem); font-size: .8rem; color: var(--muted); letter-spacing: .04em; }
.pre-count { right: clamp(1.2rem, 4vw, 3rem); font-size: clamp(2.6rem, 1.6rem + 4.5vw, 5.5rem); font-weight: 200; letter-spacing: -.05em; line-height: .9; font-variant-numeric: tabular-nums; }
.pre-count small { font-size: .32em; font-weight: 500; color: var(--orange); letter-spacing: 0; margin-left: .15em; }
@keyframes pre-fill { to { transform: scaleX(1); } }

/* Hold the hero's entrance animations until the preloader lifts */
html.is-loading .hero * { animation-play-state: paused !important; }

@media (prefers-reduced-motion: no-preference) {
  .pre-logo img { clip-path: inset(0 100% 0 0); transform: scale(.92); animation: pre-logo-in 1s var(--ease) .1s forwards; }
  @keyframes pre-logo-in { to { clip-path: inset(0 0 0 0); transform: none; } }
  .pre-logo::after { /* light glint sweeping across the metal, masked to the logo's own shape */
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(105deg, transparent 38%, rgb(255 255 255 / .95) 50%, transparent 62%) 160% 0 / 260% 100% no-repeat;
    -webkit-mask: url(../img/logo.webp) center / contain no-repeat; mask: url(../img/logo.webp) center / contain no-repeat;
    animation: pre-glint 1.1s ease-in-out .85s forwards;
  }
  @keyframes pre-glint { to { background-position: -60% 0; } }
  /* heartbeat: lub-dub, rest, repeat — with a soft orange glow and rings that ripple out on each beat */
  .pre-logo { animation: pre-beat .9s ease-in-out .45s infinite; }
  @keyframes pre-beat {
    0%   { transform: scale(1);    filter: drop-shadow(0 0 0 rgb(233 104 31 / 0)); }
    14%  { transform: scale(1.14); filter: drop-shadow(0 8px 20px rgb(233 104 31 / .4)); }
    28%  { transform: scale(1);    filter: drop-shadow(0 0 0 rgb(233 104 31 / 0)); }
    42%  { transform: scale(1.09); filter: drop-shadow(0 6px 16px rgb(233 104 31 / .3)); }
    62%, 100% { transform: scale(1); filter: drop-shadow(0 0 0 rgb(233 104 31 / 0)); }
  }
  .pre-ring { animation: pre-ripple .9s ease-out .45s infinite; }
  .pre-ring--2 { animation-delay: .9s; animation-name: pre-ripple-2; }
  @keyframes pre-ripple { 0% { scale: .55; opacity: 0; } 10% { opacity: .6; } 70%, 100% { scale: 1.2; opacity: 0; } }
  @keyframes pre-ripple-2 { 0%, 38% { scale: .55; opacity: 0; } 46% { opacity: .4; } 100% { scale: 1.1; opacity: 0; } }
  .pre-name { opacity: 0; transform: translateY(10px); animation: pre-up .8s var(--ease) .55s forwards; }
  .pre-foot, .pre-count { animation: pre-fade .8s ease .5s backwards; }
  @keyframes pre-up { to { opacity: 1; transform: none; } }
  @keyframes pre-fade { from { opacity: 0; } }
}
@media (prefers-reduced-motion: reduce) {
  .js .preloader { transition: opacity .35s; }
  .preloader.is-leaving { transform: none; opacity: 0; }
}
