/* Qashida Embroidery — futuristic 3D scroll site
   Palette from the logo: midnight navy + maroon, with gold "thread" accents. */

:root {
  --bg: #070b18;
  --bg-2: #0b1226;
  --navy: #13306b;
  --navy-glow: #2f5bd0;
  --maroon: #7a1026;
  --rose: #e0566f;
  --gold: #e2b262;
  --gold-soft: rgba(226, 178, 98, .16);
  --ink: #f4ecdf;
  --muted: rgba(244, 236, 223, .68);
  --faint: rgba(244, 236, 223, .42);
  --line: rgba(244, 236, 223, .12);
  --glass: rgba(12, 19, 42, .58);
  --glass-strong: rgba(10, 16, 36, .82);
  --radius: 22px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --font: 'Sora', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --gutter: clamp(16px, 4vw, 48px);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  font-weight: 300;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body.is-loading { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; font-weight: 600; line-height: 1.08; letter-spacing: -.02em; }
p { margin: 0; }
em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 600;
  font-size: 1.12em;
  letter-spacing: 0;
  background: linear-gradient(100deg, var(--gold) 10%, #f6d9a0 45%, var(--rose) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-right: .06em;
}
::selection { background: var(--maroon); color: var(--ink); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- 3D stage ---------- */
.stage { position: fixed; inset: 0; z-index: 0; }
.stage canvas { display: block; width: 100% !important; height: 100% !important; }
.stage.no-webgl {
  background:
    radial-gradient(60% 50% at 75% 40%, rgba(47, 91, 208, .28), transparent 70%),
    radial-gradient(50% 40% at 20% 80%, rgba(122, 16, 38, .35), transparent 70%);
}
.stage-shade {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(120% 90% at 50% 50%, transparent 55%, rgba(4, 6, 14, .75) 100%),
    linear-gradient(rgba(244, 236, 223, .025) 1px, transparent 1px) 0 0 / 100% 4px;
}
main, .footer, .header { position: relative; z-index: 2; }
main, .footer { overflow-x: hidden; overflow-x: clip; }

/* ---------- loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center;
  background: var(--bg);
  transition: opacity .8s var(--ease), visibility .8s;
}
.loader.done { opacity: 0; visibility: hidden; }
.loader__ring { position: absolute; width: min(260px, 60vw); height: auto; transform: rotate(-90deg); }
.loader__track { fill: none; stroke: var(--line); stroke-width: 1.5; }
.loader__thread {
  fill: none; stroke: var(--gold); stroke-width: 2; stroke-linecap: round;
  stroke-dasharray: 314; stroke-dashoffset: 314;
  animation: loaderStitch 1.6s var(--ease) infinite;
  filter: drop-shadow(0 0 6px var(--gold));
}
.loader__logo { width: min(150px, 34vw); height: auto; animation: pulse 1.6s ease-in-out infinite; }
@keyframes loaderStitch { 0% { stroke-dashoffset: 314; } 60% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: -314; } }
@keyframes pulse { 50% { opacity: .55; } }

/* ---------- thread scroll progress ---------- */
.thread-progress {
  position: fixed; z-index: 3; right: 22px; top: 50%;
  width: 2px; height: 38vh; transform: translateY(-50%);
  background: repeating-linear-gradient(var(--line) 0 6px, transparent 6px 11px);
  pointer-events: none;
}
.thread-progress__fill {
  position: absolute; inset: 0; transform-origin: top; transform: scaleY(0);
  background: repeating-linear-gradient(var(--gold) 0 6px, transparent 6px 11px);
  filter: drop-shadow(0 0 4px rgba(226, 178, 98, .8));
}
.thread-progress__needle {
  position: absolute; left: 50%; top: 0; width: 4px; height: 26px; margin-left: -2px;
  border-radius: 4px 4px 1px 1px;
  background: linear-gradient(#fff, #9aa4b8);
  box-shadow: 0 0 10px rgba(255, 255, 255, .6);
  transform: translateY(-50%);
}
.thread-progress__needle::before {
  content: ''; position: absolute; left: 1px; top: 3px; width: 2px; height: 6px;
  border-radius: 2px; background: var(--bg);
}

/* ---------- header ---------- */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 20;
  display: flex; align-items: center; gap: 24px;
  padding: 14px var(--gutter);
  padding-top: max(14px, env(safe-area-inset-top));
  transition: background .4s var(--ease), padding .4s var(--ease), border-color .4s;
  border-bottom: 1px solid transparent;
}
.header.scrolled {
  background: rgba(7, 11, 24, .72);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--line);
  padding-top: max(10px, env(safe-area-inset-top)); padding-bottom: 10px;
}
.header__brand img { height: 50px; width: auto; transition: height .4s var(--ease); }
.header.scrolled .header__brand img { height: 42px; }
.nav { display: flex; gap: 6px; margin-left: auto; }
.nav a {
  position: relative; padding: 8px 14px; font-size: .9rem; font-weight: 400;
  color: var(--muted); border-radius: 999px; transition: color .3s, background .3s;
}
.nav a:hover, .nav a.active { color: var(--ink); background: rgba(244, 236, 223, .06); }
.nav a.active::after {
  content: ''; position: absolute; left: 50%; bottom: 2px; width: 4px; height: 4px; margin-left: -2px;
  border-radius: 50%; background: var(--gold); box-shadow: 0 0 8px var(--gold);
}
.nav-toggle { display: none; }
.header__ig {
  flex: none; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--line); background: rgba(244, 236, 223, .05); color: var(--ink);
  transition: border-color .3s, color .3s, transform .35s var(--ease);
}
.header__ig:hover { border-color: rgba(226, 178, 98, .55); color: var(--gold); transform: translateY(-2px); }
.header__ig svg, .info-card__icon svg { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.header__ig svg { width: 20px; height: 20px; }
.header__ig .fill, .info-card__icon .fill { fill: currentColor; stroke: none; }

/* ---------- buttons ---------- */
.btn {
  --bg-btn: rgba(244, 236, 223, .06);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 26px; border-radius: 999px; border: 1px solid var(--line);
  font: 600 .95rem/1 var(--font); letter-spacing: .01em; color: var(--ink);
  background: var(--bg-btn); cursor: pointer; isolation: isolate; overflow: hidden;
  transition: transform .35s var(--ease), border-color .35s, box-shadow .35s;
}
.btn svg { width: 18px; height: 18px; fill: currentColor; flex: none; }
.btn:hover { transform: translateY(-2px); border-color: rgba(226, 178, 98, .55); }
.btn--glow {
  border-color: transparent;
  background:
    linear-gradient(var(--bg-2), var(--bg-2)) padding-box,
    conic-gradient(from var(--spin, 0deg), var(--gold), var(--rose), var(--navy-glow), var(--gold)) border-box;
  border: 1.5px solid transparent;
  box-shadow: 0 0 28px rgba(226, 178, 98, .18);
  animation: spin 5s linear infinite;
}
.btn--glow::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(120deg, rgba(122, 16, 38, .55), rgba(19, 48, 107, .55));
}
.btn--glow:hover { box-shadow: 0 0 40px rgba(226, 178, 98, .35); }
.btn--ghost:hover { background: rgba(244, 236, 223, .1); }
.btn--small { padding: 10px 18px; font-size: .85rem; }
.btn--block { width: 100%; }
@property --spin { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
@keyframes spin { to { --spin: 360deg; } }

/* ---------- common ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .78rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase;
  color: var(--gold);
}
.dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--gold);
  box-shadow: 0 0 0 4px var(--gold-soft), 0 0 14px var(--gold);
}
.section { position: relative; padding: clamp(96px, 16vh, 180px) 0; }
.section__head { max-width: 620px; margin-bottom: clamp(36px, 6vh, 64px); }
.section__head--center { margin-left: auto; margin-right: auto; text-align: center; }
/* keep copy readable over the 3D scene */
.section__head, .hero__inner, .showcase__head { filter: drop-shadow(0 2px 16px rgba(4, 6, 14, .9)); }
.hero__title .w { white-space: nowrap; }
.section__head h2 { font-size: clamp(2.3rem, 5.4vw, 4.4rem); margin: 18px 0 18px; }
.section__lead { color: var(--muted); font-size: 1.06rem; max-width: 540px; }
.section__head--center .section__lead { margin: 0 auto; }

.glass {
  background: var(--glass);
  -webkit-backdrop-filter: blur(14px) saturate(130%);
  backdrop-filter: blur(14px) saturate(130%);
  border: 1px solid var(--line);
}

/* reveal on scroll */
.reveal {
  opacity: 0;
  transform: perspective(900px) translate3d(0, 46px, 0) rotateX(-14deg);
  transform-origin: 50% 100%;
  transition: opacity 1s var(--ease) var(--d, 0s), transform 1.1s var(--ease) var(--d, 0s);
}
.reveal.in { opacity: 1; transform: none; }

/* split heading */
.hero__title .w { display: inline-block; overflow: hidden; vertical-align: top; padding: .04em .02em .12em; margin: -.04em -.02em -.12em; }
.hero__title .w > span {
  display: inline-block; transform: translate3d(0, 115%, 0) rotate(6deg); transform-origin: 0 100%;
  transition: transform 1.2s var(--ease) calc(.15s + var(--i) * .07s);
}
body.loaded .hero__title .w > span { transform: none; }

/* ---------- hero ---------- */
.hero { min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: 120px 0 90px; }
.hero__inner { position: relative; }
.hero__inner > * { max-width: 640px; }
.hero__title { font-size: clamp(2.6rem, min(7.2vw, 10.5vh), 6.2rem); margin: 22px 0 26px; letter-spacing: -.035em; }
.hero__lead { color: var(--muted); font-size: clamp(1rem, 1.4vw, 1.15rem); max-width: 520px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.hero__tags { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 34px 0 0; padding: 0; }
.hero__tags li {
  font-size: .8rem; color: var(--muted); padding: 7px 14px; border-radius: 999px;
  border: 1px dashed rgba(226, 178, 98, .35);
}
.scroll-cue {
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-size: .7rem; letter-spacing: .25em; text-transform: uppercase; color: var(--faint);
}
.scroll-cue__line { position: relative; width: 1px; height: 54px; background: var(--line); overflow: hidden; }
.scroll-cue__line::after {
  content: ''; position: absolute; left: 0; top: -40%; width: 1px; height: 40%;
  background: var(--gold); box-shadow: 0 0 6px var(--gold);
  animation: drip 2s var(--ease) infinite;
}
@keyframes drip { to { top: 110%; } }

/* ---------- marquee ---------- */
.marquee {
  position: relative; overflow: hidden; padding: 26px 0;
  border-block: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(122, 16, 38, .22), rgba(19, 48, 107, .22));
  transform: rotate(-2deg) scale(1.04);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.marquee__track { display: flex; align-items: center; gap: 34px; width: max-content; animation: marquee 38s linear infinite; }
.marquee span {
  font-size: clamp(1.6rem, 3.6vw, 2.8rem); font-weight: 700; letter-spacing: -.02em; white-space: nowrap;
  color: transparent; -webkit-text-stroke: 1px rgba(244, 236, 223, .55);
}
.marquee span:nth-of-type(odd) { color: var(--ink); -webkit-text-stroke: 0; }
.marquee i { font-style: normal; color: var(--gold); font-size: 1.2rem; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- process ---------- */
.process__inner { display: grid; justify-items: end; }
.process__inner > * { width: min(600px, 100%); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; counter-reset: s; }
.step {
  position: relative; padding: 24px 26px 24px 92px; border-radius: var(--radius);
  background: var(--glass); border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  transition: border-color .4s, background .4s;
}
.step:hover { border-color: rgba(226, 178, 98, .4); background: rgba(16, 26, 56, .7); }
.step::before {
  content: ''; position: absolute; left: 52px; top: 100%; width: 0; height: 14px;
  border-left: 1.5px dashed rgba(226, 178, 98, .45);
}
.step:last-child::before { display: none; }
.step__num {
  position: absolute; left: 22px; top: 22px; width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 600; font-size: .95rem; color: var(--gold);
  border: 1.5px dashed rgba(226, 178, 98, .55);
  background: radial-gradient(circle, rgba(226, 178, 98, .14), transparent 70%);
}
.step h3 { font-size: 1.15rem; margin-bottom: 6px; }
.step p { color: var(--muted); font-size: .95rem; }

/* ---------- services cards ---------- */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; perspective: 1200px; }
.card {
  --rx: 0deg; --ry: 0deg; --mx: 50%; --my: 50%;
  position: relative; padding: 30px 24px 28px; border-radius: var(--radius); overflow: hidden;
  background: var(--glass); border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(16px) saturate(130%); backdrop-filter: blur(16px) saturate(130%);
  transform-style: preserve-3d;
  transition: border-color .4s, opacity 1s var(--ease) var(--d, 0s), transform 1.1s var(--ease) var(--d, 0s);
}
.card.in { transform: rotateX(var(--rx)) rotateY(var(--ry)); }
.card.tilting { transition: border-color .4s, transform .15s linear; }
.card::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(260px circle at var(--mx) var(--my), rgba(226, 178, 98, .2), transparent 60%);
}
.card:hover { border-color: rgba(226, 178, 98, .45); }
.card:hover::before { opacity: 1; }
.card__icon {
  width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 22px;
  background: linear-gradient(140deg, rgba(122, 16, 38, .7), rgba(19, 48, 107, .7));
  border: 1px solid rgba(226, 178, 98, .35);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .35), inset 0 0 18px rgba(226, 178, 98, .15);
  transform: translateZ(40px);
}
.card__icon svg { width: 26px; height: 26px; fill: none; stroke: var(--gold); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { font-size: 1.12rem; margin-bottom: 8px; transform: translateZ(26px); }
.card p { color: var(--muted); font-size: .92rem; transform: translateZ(16px); }
.card::after {
  content: ''; position: absolute; left: 24px; right: 24px; bottom: 14px; height: 1px;
  background: repeating-linear-gradient(90deg, rgba(226, 178, 98, .5) 0 6px, transparent 6px 11px);
  transform: scaleX(0); transform-origin: left; transition: transform .8s var(--ease);
}
.card:hover::after { transform: scaleX(1); }

/* ---------- showcase ---------- */
.showcase { min-height: 190vh; padding: 0; }
.showcase__inner {
  position: sticky; top: 0; min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: space-between;
  padding-top: clamp(110px, 16vh, 150px); padding-bottom: clamp(40px, 8vh, 80px);
}
.showcase__head { text-align: center; }
.showcase__title { font-size: clamp(2rem, 4.2vw, 3.6rem); margin-top: 14px; }
.showcase__points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.point {
  padding: 18px 22px; border-radius: 18px; background: var(--glass-strong); border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.point b { display: block; font-weight: 600; margin-bottom: 4px; }
.point span { color: var(--muted); font-size: .92rem; }

/* ---------- why ---------- */
.why__inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px 64px; align-items: start; }
.why .section__head { margin-bottom: 0; position: sticky; top: 140px; }
.features { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.feature {
  display: flex; gap: 20px; padding: 24px 26px; border-radius: var(--radius);
  background: var(--glass); border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.feature__k { font-family: var(--serif); font-style: italic; font-size: 2rem; line-height: 1; color: var(--gold); min-width: 42px; }
.feature h3 { font-size: 1.1rem; margin-bottom: 6px; }
.feature p { color: var(--muted); font-size: .94rem; }

/* ---------- contact ---------- */
.contact__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 22px; align-items: start; }
.contact__info { display: grid; gap: 14px; }
.info-card {
  --rx: 0deg; --ry: 0deg;
  display: flex; gap: 18px; align-items: flex-start; padding: 20px 22px; border-radius: 18px;
  background: var(--glass); border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  transition: border-color .35s, opacity 1s var(--ease) var(--d, 0s), transform 1.1s var(--ease) var(--d, 0s);
}
.info-card.in { transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry)); }
.info-card.tilting { transition: border-color .35s, transform .15s linear; }
.info-card:hover { border-color: rgba(226, 178, 98, .45); }
.info-card__icon {
  flex: none; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center;
  background: linear-gradient(140deg, rgba(122, 16, 38, .7), rgba(19, 48, 107, .7));
  border: 1px solid rgba(226, 178, 98, .35);
}
.info-card__icon { color: var(--gold); }
.info-card__icon svg { width: 22px; height: 22px; fill: none; stroke: var(--gold); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.info-card small { display: block; font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.info-card b { display: block; font-size: 1.12rem; font-weight: 600; }
.info-card address { font-style: normal; color: var(--muted); font-size: .92rem; margin-top: 4px; line-height: 1.55; }
.map { border-radius: 18px; overflow: hidden; border: 1px solid var(--line); height: 230px; background: var(--bg-2); }
.map iframe { width: 100%; height: 100%; border: 0; filter: invert(.9) hue-rotate(185deg) saturate(.7) contrast(.9); }

.quote {
  padding: clamp(24px, 4vw, 38px); border-radius: var(--radius);
  background: var(--glass-strong); border: 1px solid rgba(226, 178, 98, .25);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(244, 236, 223, .06);
}
.quote h3 { font-size: 1.45rem; }
.quote__sub { color: var(--muted); font-size: .92rem; margin: 8px 0 22px; }
.quote label { display: block; font-size: .82rem; font-weight: 400; color: var(--muted); margin-bottom: 14px; }
.quote .opt { color: var(--faint); }
.quote input, .quote select, .quote textarea {
  display: block; width: 100%; margin-top: 7px; padding: 13px 15px;
  font: 400 1rem/1.4 var(--font); color: var(--ink);
  background: rgba(244, 236, 223, .04); border: 1px solid var(--line); border-radius: 12px;
  transition: border-color .3s, box-shadow .3s, background .3s;
}
.quote select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%), linear-gradient(-45deg, transparent 50%, var(--gold) 50%); background-position: calc(100% - 20px) 55%, calc(100% - 15px) 55%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
.quote select option { background: var(--bg-2); color: var(--ink); }
.quote textarea { resize: vertical; min-height: 92px; }
.quote input::placeholder, .quote textarea::placeholder { color: var(--faint); }
.quote input:focus, .quote select:focus, .quote textarea:focus {
  outline: none; border-color: var(--gold); background: rgba(244, 236, 223, .07);
  box-shadow: 0 0 0 4px rgba(226, 178, 98, .14);
}
.quote input.invalid { border-color: var(--rose); }
.quote__row { display: grid; grid-template-columns: 1.4fr 1fr; gap: 12px; }
.quote__error { min-height: 1.2em; color: var(--rose); font-size: .85rem; margin: -4px 0 10px; }

/* ---------- footer ---------- */
.footer { padding: 70px 0 calc(40px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: linear-gradient(transparent, rgba(4, 6, 14, .85)); }
.footer__inner { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; }
.footer__logo { width: 190px; height: auto; margin-bottom: 8px; }
.footer__tag { color: var(--muted); font-size: .92rem; }
.footer__links { display: flex; gap: 12px; color: var(--muted); }
.footer__links a { color: var(--gold); }
.footer__links a:hover { text-decoration: underline; }
.footer__copy { color: var(--faint); font-size: .8rem; margin-top: 10px; }

/* ---------- floating WhatsApp ---------- */
.wa-float {
  position: fixed; z-index: 30; right: 20px; bottom: calc(20px + env(safe-area-inset-bottom));
  width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
  background: #25d366; color: #fff; box-shadow: 0 10px 30px rgba(37, 211, 102, .35);
  transition: transform .35s var(--ease);
}
.wa-float::before {
  content: ''; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #25d366;
  animation: ripple 2.4s ease-out infinite;
}
.wa-float svg { width: 30px; height: 30px; fill: currentColor; }
.wa-float:hover { transform: scale(1.08); }
body.at-top .wa-float { opacity: 0; transform: scale(.6); pointer-events: none; }
.wa-float { transition: transform .35s var(--ease), opacity .35s var(--ease); }
@keyframes ripple { from { transform: scale(1); opacity: .8; } to { transform: scale(1.7); opacity: 0; } }

/* ---------- machines ---------- */
.machines__inner > * { max-width: 600px; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.stat {
  padding: 22px 20px; border-radius: 18px;
  background: var(--glass); border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.stat b {
  display: block; font-family: var(--serif); font-style: italic; font-weight: 600;
  font-size: clamp(2rem, 3.4vw, 2.8rem); line-height: 1; margin-bottom: 10px;
  background: linear-gradient(100deg, var(--gold), #f6d9a0 50%, var(--rose));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat span { display: block; color: var(--muted); font-size: .9rem; line-height: 1.45; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .nav {
    position: fixed; inset: 0; z-index: -1; flex-direction: column; justify-content: center; align-items: center; gap: 6px;
    background: rgba(7, 11, 24, .97);
    opacity: 0; visibility: hidden; transition: opacity .4s var(--ease), visibility .4s;
  }
  .nav a { font-size: clamp(1.4rem, 5vw, 1.8rem); font-weight: 600; color: var(--ink); padding: 10px 24px; }
  body.nav-open .nav { opacity: 1; visibility: visible; }
  body.nav-open { overflow: hidden; }
  .header__ig { margin-left: auto; }
  .nav-toggle {
    display: grid; place-content: center; gap: 6px; width: 46px; height: 46px; padding: 0; flex: none;
    border-radius: 50%; border: 1px solid var(--line); background: rgba(244, 236, 223, .05); cursor: pointer;
  }
  .nav-toggle span { display: block; width: 18px; height: 1.5px; background: var(--ink); transition: transform .35s var(--ease); }
  body.nav-open .nav-toggle span:first-child { transform: translateY(3.75px) rotate(45deg); }
  body.nav-open .nav-toggle span:last-child { transform: translateY(-3.75px) rotate(-45deg); }
  .cards { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .why__inner, .contact__grid { grid-template-columns: 1fr; }
  .why .section__head { position: relative; top: auto; }
  .showcase__points { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .point { padding: 12px 10px; text-align: center; }
  .point b { font-size: .8rem; line-height: 1.3; margin: 0; }
  .point span { display: none; }
  .showcase__inner { padding-bottom: 92px; }
  .thread-progress { right: 10px; }

  /* phones & tablets: no live blur over the WebGL canvas (it is re-computed every frame) */
  .reveal { transform: translate3d(0, 28px, 0); }
  .header.scrolled { background: rgba(7, 11, 24, .94); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .step, .card, .feature, .info-card, .point, .quote, .marquee, .stat {
    -webkit-backdrop-filter: none; backdrop-filter: none;
  }
  .step, .card, .feature, .info-card, .stat { background: rgba(11, 18, 40, .88); }
  .section__head { position: relative; }
  .section__head::before {
    content: ''; position: absolute; inset: -40px -24px; z-index: -1; pointer-events: none;
    background: radial-gradient(closest-side, rgba(7, 11, 24, .78), rgba(7, 11, 24, .5) 60%, rgba(7, 11, 24, 0));
  }
  .point, .quote { background: rgba(9, 14, 32, .92); }
  .stage-shade {
    background:
      radial-gradient(120% 90% at 50% 50%, transparent 50%, rgba(4, 6, 14, .8) 100%),
      linear-gradient(rgba(7, 11, 24, .22), rgba(7, 11, 24, .22));
  }
}

/* portrait screens (phones, tablets): 3D machine on top, hero copy at the bottom */
@media (max-aspect-ratio: 9/10) {
  .hero { align-items: flex-end; padding: 0 0 calc(86px + env(safe-area-inset-bottom)); }
  .hero__inner { padding-top: 40vh; padding-top: 40svh; }
  .scroll-cue { display: none; }
}

@media (max-width: 640px) {
  body { font-size: 15px; }
  .header { gap: 10px; }
  .header__brand img { height: 42px; }
  .header.scrolled .header__brand img { height: 38px; }
  .header__call span { display: none; }
  .header__call { padding: 0; width: 46px; height: 46px; flex: none; }
  .header__ig { width: 46px; height: 46px; }
  .hide-sm { display: none; }

  .hero__title { font-size: clamp(2.1rem, 10.5vw, 3rem); margin: 14px 0 16px; }
  .hero__lead { font-size: .95rem; line-height: 1.6; }
  .hero__cta { margin-top: 22px; gap: 10px; flex-wrap: nowrap; }
  .hero__cta .btn { flex: 1 1 0; padding: 14px 10px; font-size: .88rem; gap: 8px; white-space: nowrap; }
  .hero__tags { display: none; }
  .eyebrow { font-size: .7rem; letter-spacing: .16em; }

  .section { padding: 72px 0; }
  .section__head { margin-bottom: 28px; }
  .section__head h2 { font-size: clamp(1.9rem, 9vw, 2.6rem); margin: 12px 0 12px; }
  .section__lead { font-size: .95rem; }
  .marquee { padding: 16px 0; }
  .cards { grid-template-columns: 1fr; }
  .card { display: grid; grid-template-columns: 56px 1fr; column-gap: 18px; padding: 22px 20px; }
  .card__icon { grid-row: span 2; margin: 0; }
  .card h3 { align-self: end; }
  .step { padding: 20px 18px 20px 80px; }
  .step__num { left: 16px; top: 18px; width: 48px; height: 48px; }
  .step::before { left: 40px; }
  .stats { grid-template-columns: 1fr; gap: 10px; }
  .stat { display: flex; align-items: center; gap: 18px; padding: 16px 18px; }
  .stat b { margin: 0; min-width: 72px; font-size: 2rem; }
  .feature { padding: 18px; gap: 14px; }
  .feature__k { font-size: 1.6rem; min-width: 34px; }
  .info-card { padding: 16px; gap: 14px; }
  .map { height: 200px; }
  .quote { padding: 22px 18px; }
  .quote__row { grid-template-columns: 1fr; gap: 0; }
  .wa-float { width: 52px; height: 52px; right: 14px; }
  .thread-progress { display: none; }
  .footer { padding-bottom: calc(90px + env(safe-area-inset-bottom)); }
}

/* short portrait phones (iPhone SE etc.): keep the buttons on the first screen */
@media (max-aspect-ratio: 9/10) and (max-height: 700px) {
  .hero { padding-bottom: calc(74px + env(safe-area-inset-bottom)); }
  .hero__inner { padding-top: 31vh; padding-top: 31svh; }
  .hero__title { font-size: clamp(1.9rem, 9.5vw, 2.6rem); margin: 10px 0 12px; }
  .hero__lead { font-size: .86rem; line-height: 1.5; }
  .hero__cta { margin-top: 16px; }
}

@media (max-width: 360px) {
  :root { --gutter: 14px; }
  .header__brand img, .header.scrolled .header__brand img { height: 36px; }
  .header__call, .header__ig, .nav-toggle { width: 42px; height: 42px; }
  .hero__cta .btn { font-size: .8rem; padding: 13px 8px; }
}

/* phones in landscape: short screens */
@media (max-height: 520px) and (orientation: landscape) {
  .hero { padding: 90px 0 40px; }
  .hero__title { font-size: clamp(2rem, 6vw, 3rem); margin: 12px 0 14px; }
  .hero__tags, .scroll-cue { display: none; }
  .hero__cta { margin-top: 18px; }
  .showcase { min-height: 0; padding: 72px 0; }
  .showcase__inner { position: static; min-height: 0; gap: 160px; padding-top: 0; }
  .why .section__head { position: static; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; transition-delay: 0s !important; }
  .reveal, .hero__title .w > span { opacity: 1; transform: none; }
  .marquee__track { animation: none; }
}
