/* ============================================================
   presentation ISRU - scroll-cinematic sales page
   Direction: "Dark Luxury Gold" - deep charcoal, antique gold,
   Frank Ruhl Libre display + Assistant body, RTL Hebrew.
   Engine structure from the scroll-cinematic-site skill templates.
   ============================================================ */

:root {
  --bg:        #120e09;
  --bg-2:      #17120c;
  --bg-3:      #1d1710;
  --ink:       #f3ecdd;
  --ink-dim:   rgba(243, 236, 221, 0.74);
  --ink-faint: rgba(243, 236, 221, 0.52);
  --gold:      #c9a24b;
  --gold-2:    #e6cd8e;
  --bronze:    #9c8567;
  --line:      rgba(201, 162, 75, 0.2);

  --display: "Frank Ruhl Libre", "David Libre", Georgia, serif;
  --body:    "Assistant", "Segoe UI", Arial, sans-serif;

  --maxw: 1180px;
  --nav-h: 76px;
  --ease: cubic-bezier(0.22, 0.8, 0.24, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
  -webkit-text-size-adjust: 100%;
  scrollbar-width: thin;
  scrollbar-color: rgba(201,162,75,0.35) var(--bg);
}

body {
  font-family: var(--body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  touch-action: manipulation;
}

/* film grain overlay */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: overlay;
  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='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

a { color: inherit; text-decoration: none; }
img, video, iframe { display: block; max-width: 100%; }

::selection { background: rgba(201, 162, 75, 0.4); color: var(--ink); }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: rgba(201,162,75,0.28); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: rgba(201,162,75,0.45); }

/* ---------- skip link ---------- */
.skip-link {
  position: fixed;
  top: 10px; inset-inline-start: 10px;
  z-index: 500;
  background: var(--bg-2);
  color: var(--ink);
  border: 1px solid var(--gold);
  border-radius: 4px;
  padding: 10px 18px;
  font-size: 0.85rem;
  transform: translateY(-64px);
  transition: transform 0.25s var(--ease);
}
.skip-link:focus-visible { transform: none; }

/* ---------- preloader ---------- */
.loader { display: none; }
html.js .loader {
  display: flex;
  position: fixed;
  inset: 0;
  z-index: 400;
  background: var(--bg);
  align-items: center;
  justify-content: center;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.7s var(--ease), visibility 0.7s var(--ease);
}
html.js .loader.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.loader__inner { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.loader__brand {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: 0.14em;
  font-size: clamp(2rem, 6vw, 3rem);
  color: var(--gold-2);
  animation: loaderIn 0.9s var(--ease) both;
}
.loader__sub {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  color: var(--bronze);
  animation: loaderIn 0.9s var(--ease) 0.15s both;
}
.loader__line {
  width: 120px; height: 1px;
  margin-top: 14px;
  background: var(--line);
  position: relative;
  overflow: hidden;
}
.loader__line::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  animation: loaderSweep 1.2s var(--ease) infinite;
}
@keyframes loaderIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes loaderSweep { from { transform: translateX(-100%); } to { transform: translateX(100%); } }

/* ---------- scroll progress ---------- */
.progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 100%;
  z-index: 200;
  background: linear-gradient(90deg, var(--gold-2), var(--gold));
  box-shadow: 0 0 14px rgba(201, 162, 75, 0.6);
  transform: scaleX(0);
  transform-origin: 100% 50%;
  transition: transform 0.1s linear;
}

/* ---------- nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 150;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(20px, 4vw, 48px);
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(18, 14, 9, 0.78);
  backdrop-filter: blur(14px) saturate(1.15);
  -webkit-backdrop-filter: blur(14px) saturate(1.15);
  border-bottom-color: var(--line);
}
.nav__brand { display: flex; flex-direction: column; line-height: 1; }
.nav__brand-main {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.45rem;
  letter-spacing: 0.12em;
  color: var(--gold-2);
}
.nav__brand-sub {
  font-size: 0.64rem;
  letter-spacing: 0.14em;
  color: var(--bronze);
  margin-top: 4px;
}
.nav__links { display: flex; align-items: center; gap: clamp(18px, 2.5vw, 38px); }
.nav__links > a:not(.btn) {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-dim);
  position: relative;
  padding: 6px 0;
  transition: color 0.3s var(--ease);
}
.nav__links > a:not(.btn)::after {
  content: "";
  position: absolute;
  inset-inline-start: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width 0.3s var(--ease);
}
.nav__links > a:not(.btn):hover { color: var(--ink); }
.nav__links > a:not(.btn):hover::after { width: 100%; }

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.nav__toggle span {
  width: 26px; height: 2px;
  background: var(--ink);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.nav.is-open .nav__toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.is-open .nav__toggle span:nth-child(2) { opacity: 0; }
.nav.is-open .nav__toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  font-family: var(--body);
  font-weight: 700;
  font-size: 0.88rem;
  padding: 13px 26px;
  border-radius: 3px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s var(--ease), border-color 0.3s var(--ease);
}
.btn--gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  color: #1c1408;
  box-shadow: 0 6px 22px rgba(201, 162, 75, 0.28);
}
.btn--gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(201, 162, 75, 0.5);
}
.btn--ghost {
  border-color: var(--ink-faint);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.02);
}
.btn--ghost:hover { border-color: var(--gold-2); background: rgba(201, 162, 75, 0.08); }
.btn--lg { padding: 17px 38px; font-size: 0.95rem; }
.btn:active { transform: scale(0.97); }

/* ---------- the film ---------- */
.film { position: relative; height: 440vh; background: #000; }
.film__stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
}
.film__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  background: #000;
  filter: brightness(0.74) saturate(1.05) contrast(1.04);
}
.film__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(10,8,5,0.62) 0%, rgba(10,8,5,0.20) 32%,
                    rgba(10,8,5,0.34) 64%, rgba(10,8,5,0.85) 100%);
}

.caps { position: absolute; inset: 0; z-index: 2; }
.cap {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  padding: 0 clamp(24px, 5vw, 64px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s var(--ease);
}
.cap.is-active { opacity: 1; pointer-events: auto; }
.cap__inner { width: 100%; max-width: var(--maxw); margin: 0 auto; }
.cap__text { max-width: 620px; position: relative; }
/* soft dark readability plate that hugs the text, so white copy stays legible
   over any frame (incl. the bright studio screen) without looking like a box */
.cap__text::before {
  content: "";
  position: absolute;
  inset: -32px -40px;
  z-index: -1;
  background: radial-gradient(120% 120% at 50% 50%, rgba(8,6,4,0.62) 0%, rgba(8,6,4,0.42) 45%, rgba(8,6,4,0) 78%);
  filter: blur(6px);
  pointer-events: none;
}
.cap--center { text-align: center; }
.cap--center .cap__text { max-width: 880px; margin: 0 auto; }
.cap--center .scene__body,
.cap--center .hero__tagline { margin-inline: auto; }
.cap--right .cap__text { margin-inline-start: auto; }
.cap--left .cap__text { margin-inline-end: auto; }

/* ---------- typography ---------- */
.eyebrow {
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--gold);
  margin-bottom: 1.1rem;
}
/* caption eyebrows sit over video - brighter gold + heavy shadow for legibility */
.cap .eyebrow {
  font-size: 0.92rem;
  color: var(--gold-2);
  text-shadow: 0 1px 3px rgba(0,0,0,0.9), 0 2px 14px rgba(0,0,0,0.65);
}

.hero__title {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(3.2rem, 11.5vw, 9rem);
  line-height: 1.02;
  color: #fff;
  text-shadow: 0 2px 4px rgba(0,0,0,0.9), 0 3px 18px rgba(0,0,0,0.75), 0 0 90px rgba(201,162,75,0.2);
  text-wrap: balance;
}
.hero__tagline {
  font-size: clamp(1.15rem, 2.2vw, 1.5rem);
  font-weight: 600;
  color: #fff;
  max-width: 36ch;
  margin-top: 1.5rem;
  margin-bottom: 2.2rem;
  text-shadow: 0 1px 3px rgba(0,0,0,0.9), 0 2px 16px rgba(0,0,0,0.8);
}

.scene__title {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(2.6rem, 7.8vw, 6rem);
  line-height: 1.05;
  color: #fff;
  text-shadow: 0 2px 4px rgba(0,0,0,0.9), 0 3px 20px rgba(0,0,0,0.8);
  text-wrap: balance;
}
.scene__title--xl { font-size: clamp(2.9rem, 9.8vw, 7.5rem); }
.scene__body {
  font-size: clamp(1.1rem, 1.7vw, 1.34rem);
  font-weight: 600;
  line-height: 1.62;
  color: #fff;
  max-width: 46ch;
  margin-top: 1.2rem;
  text-shadow: 0 1px 3px rgba(0,0,0,0.9), 0 2px 16px rgba(0,0,0,0.8);
}
.cta__actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2.2rem;
}

/* ---------- scroll cue ---------- */
.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: calc(32px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.scroll-cue__label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--ink-dim);
}
.scroll-cue__line {
  width: 1px; height: 46px;
  background: linear-gradient(var(--gold), transparent);
  position: relative;
  overflow: hidden;
}
.scroll-cue__line::after {
  content: "";
  position: absolute;
  top: -50%; left: 0;
  width: 100%; height: 50%;
  background: var(--gold-2);
  animation: cue 1.8s var(--ease) infinite;
}
@keyframes cue {
  0%   { transform: translateY(0); opacity: 0; }
  40%  { opacity: 1; }
  100% { transform: translateY(300%); opacity: 0; }
}

/* ---------- scene dots ---------- */
.dots {
  position: fixed;
  inset-inline-end: 26px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 120;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.dots a {
  width: 10px; height: 10px;
  border-radius: 50%;
  border: 1px solid var(--ink-faint);
  transition: all 0.3s var(--ease);
  position: relative;
}
.dots a::after { content: ""; position: absolute; inset: -17px; }
.dots a:hover { border-color: var(--gold-2); transform: scale(1.25); }
.dots a.is-active {
  background: var(--gold);
  border-color: var(--gold);
  box-shadow: 0 0 12px rgba(201, 162, 75, 0.8);
  transform: scale(1.25);
}

/* ---------- sections shared ---------- */
.explain, .builder, .portfolio, .faq {
  padding: clamp(80px, 12vh, 150px) clamp(24px, 5vw, 64px);
  border-top: 1px solid var(--line);
}
.explain {
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(201,162,75,0.07), transparent 60%),
    var(--bg-2);
}
.builder { background: var(--bg); }
.portfolio { background: var(--bg-2); }
.faq { background: var(--bg); }

.section-head { max-width: var(--maxw); margin: 0 auto 3.2rem; text-align: center; }
.section-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.9rem, 4.6vw, 3.2rem);
  line-height: 1.15;
  text-wrap: balance;
  color: var(--ink);
}
.section-sub { color: var(--bronze); margin-top: 0.9rem; max-width: 640px; margin-inline: auto; }

/* ---------- explain ---------- */
.explain__grid {
  max-width: var(--maxw);
  margin: 0 auto 3rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.xcard {
  background: linear-gradient(180deg, rgba(201,162,75,0.06), rgba(255,255,255,0.01));
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 30px 28px;
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease);
}
.xcard:hover { transform: translateY(-4px); border-color: rgba(201,162,75,0.5); }
.xcard h3 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--gold-2);
  margin-bottom: 0.7rem;
}
.xcard p { color: var(--ink-dim); font-size: 1rem; }
.xcard--old { opacity: 0.72; }
.xcard--old h3 { color: var(--bronze); }

.compare { max-width: var(--maxw); margin: 0 auto; overflow-x: auto; }
.compare__table { width: 100%; border-collapse: collapse; font-size: 0.98rem; min-width: 560px; }
.compare__table th {
  text-align: right;
  font-family: var(--display);
  font-weight: 700;
  color: var(--gold-2);
  padding: 14px 10px;
  font-size: 1.05rem;
  border-bottom: 1px solid var(--line);
}
.compare__table td {
  padding: 15px 10px;
  border-bottom: 1px solid rgba(201,162,75,0.12);
  color: var(--ink-dim);
  vertical-align: top;
}
.compare__table td:first-child { color: var(--bronze); width: 24%; font-weight: 600; }
.compare__table .t-gold { color: var(--gold-2); }
.compare__table .th-gold { color: var(--gold-2); }

/* ---------- builder wizard (replaces static price tiers) ---------- */
.wiz { max-width: var(--maxw); margin: 0 auto; display: flex; flex-direction: column; gap: 40px; }

.wiz__label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.16rem;
  color: var(--ink);
  margin-bottom: 18px;
}
.wiz__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  color: var(--gold-2);
  font-family: var(--body);
  font-weight: 700;
  font-size: 0.85rem;
  flex: 0 0 auto;
}
.wiz__optional {
  font-family: var(--body);
  font-weight: 400;
  font-size: 0.82rem;
  color: var(--bronze);
}

/* chip choices - industry (single-select) + extras (multi-select) */
.wiz__chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  font-family: var(--body);
  font-weight: 600;
  font-size: 0.94rem;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.02);
  color: var(--ink-dim);
  cursor: pointer;
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease), background 0.3s var(--ease), transform 0.2s var(--ease);
}
.chip:hover { border-color: rgba(201,162,75,0.5); color: var(--ink); }
.chip:active { transform: scale(0.97); }
.chip.is-active {
  border-color: var(--gold);
  color: #1c1408;
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  box-shadow: 0 6px 18px rgba(201,162,75,0.32);
}

/* scope cards - single-select, same visual weight as the old price tiers */
.wiz__scope {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  align-items: stretch;
}
.scope {
  text-align: start;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.008));
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 26px 24px;
  position: relative;
  cursor: pointer;
  font-family: var(--body);
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), background 0.35s var(--ease);
}
.scope:hover { transform: translateY(-4px); border-color: rgba(201,162,75,0.5); }
.scope.is-active {
  border-color: var(--gold);
  box-shadow: 0 0 0 1px var(--gold), 0 24px 60px -30px rgba(201,162,75,0.5);
  background: linear-gradient(180deg, rgba(201,162,75,0.12), rgba(255,255,255,0.01));
}
.scope__badge {
  position: absolute;
  top: -13px; inset-inline-start: 24px;
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  color: #1c1408;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 2px;
}
.scope__name {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.28rem;
  color: var(--ink);
}
.scope.is-active .scope__name { color: var(--gold-2); }
.scope__desc { color: var(--bronze); font-size: 0.92rem; line-height: 1.6; }

/* result panel - fills in once industry + scope are chosen, no numbers, just a WhatsApp handoff */
.wiz__result {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 34px clamp(22px, 4vw, 44px);
  background: linear-gradient(180deg, rgba(201,162,75,0.06), rgba(255,255,255,0.008));
  text-align: center;
}
.wiz__result-empty { color: var(--bronze); font-size: 1rem; }
.wiz__result-filled { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.wiz__result-label {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  color: var(--gold);
  font-weight: 700;
}
.wiz__summary {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.05rem, 2.4vw, 1.4rem);
  color: var(--ink);
  max-width: 62ch;
  line-height: 1.55;
}
.wiz__summary b { color: var(--gold-2); font-weight: 700; }

/* ---------- portfolio ---------- */
.portfolio__grid {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.port {
  display: block;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255,255,255,0.025), rgba(255,255,255,0.005));
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.port:hover {
  transform: translateY(-6px);
  border-color: rgba(201,162,75,0.6);
  box-shadow: 0 22px 50px -28px rgba(201,162,75,0.55);
}
.port__media {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  position: relative;
}
.port__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(18,14,9,0.55) 100%);
}
.port__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.port:hover .port__media img { transform: scale(1.06); }
.port__body { display: block; padding: 22px 22px 24px; }
.port__name {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.12rem;
  color: var(--gold-2);
  margin-bottom: 6px;
  display: block;
}
.port__desc { font-size: 0.92rem; color: var(--ink-dim); margin-bottom: 14px; display: block; }
.port__link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.port__arrow { transition: transform 0.3s var(--ease); display: inline-block; }
.port:hover .port__arrow { transform: translateX(-5px); }

/* ---------- faq ---------- */
.faq__list { max-width: 760px; margin: 0 auto; }
.faq__item { border-top: 1px solid var(--line); padding: 22px 0; }
.faq__item:last-child { border-bottom: 1px solid var(--line); }
.faq__q {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.08rem;
  color: var(--ink);
  margin-bottom: 8px;
}
.faq__a { color: var(--bronze); font-size: 0.98rem; max-width: 66ch; }

/* ---------- floating WhatsApp ---------- */
.wa-float {
  position: fixed;
  inset-inline-end: calc(20px + env(safe-area-inset-right, 0px));
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  z-index: 300;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: #25d366;
  box-shadow: 0 10px 28px rgba(0,0,0,0.4), 0 0 0 rgba(37,211,102,0.5);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px) scale(0.85);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), visibility 0.35s var(--ease);
}
.wa-float.is-in { opacity: 1; visibility: visible; transform: none; }
.wa-float:hover { transform: translateY(-3px) scale(1.05); }
.wa-float__pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #25d366;
  z-index: -1;
  animation: waPulse 2.4s var(--ease) infinite;
}
@keyframes waPulse {
  0%   { transform: scale(1); opacity: 0.55; }
  70%  { transform: scale(1.6); opacity: 0; }
  100% { transform: scale(1.6); opacity: 0; }
}

/* ---------- footer ---------- */
.footer {
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  padding: 64px clamp(24px, 5vw, 64px) calc(56px + env(safe-area-inset-bottom, 0px));
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
}
.footer__brand { display: flex; flex-direction: column; gap: 4px; }
.footer__main {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.7rem;
  letter-spacing: 0.12em;
  color: var(--gold-2);
}
.footer__sub { font-size: 0.72rem; letter-spacing: 0.14em; color: var(--bronze); }
.footer__about { color: var(--ink-dim); max-width: 52ch; font-size: 0.98rem; line-height: 1.7; }
.footer__cta { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; justify-content: center; }
.footer__mail { color: var(--ink-dim); transition: color 0.3s var(--ease); }
.footer__mail:hover { color: var(--gold-2); }
.footer__legal { font-size: 0.8rem; color: var(--ink-faint); }

/* ---------- reveals ---------- */
.reveal-on .reveal-item {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.reveal-on .reveal-item.is-in { opacity: 1; transform: none; }
.portfolio__grid .port:nth-child(2) { transition-delay: 0.07s; }
.portfolio__grid .port:nth-child(3) { transition-delay: 0.14s; }
.explain__grid .xcard:nth-child(2) { transition-delay: 0.07s; }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .dots { display: none; }
  .nav__toggle { display: flex; min-width: 44px; min-height: 44px; align-items: center; justify-content: center; }
  .nav__links {
    position: fixed;
    inset: var(--nav-h) 0 auto 0;
    flex-direction: column;
    gap: 4px;
    padding: 24px clamp(20px, 6vw, 40px) 34px;
    background: rgba(18, 14, 9, 0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
  }
  .nav.is-open .nav__links { opacity: 1; transform: none; pointer-events: auto; }
  .nav__links > a:not(.btn) { padding: 12px 0; font-size: 1rem; width: 100%; }
  .nav__links .btn { margin-top: 10px; width: 100%; }

  .explain__grid, .wiz__scope, .portfolio__grid { grid-template-columns: 1fr; }
  .scope--featured { order: -1; }
  .wiz__chips { gap: 8px; }
  .chip { padding: 10px 18px; font-size: 0.88rem; }

  /* comparison table -> stacked cards so the gold column is never off-screen */
  .compare { overflow-x: visible; }
  .compare__table { min-width: 0; width: 100%; }
  .compare__table thead { display: none; }
  .compare__table, .compare__table tbody, .compare__table tr, .compare__table td { display: block; width: auto; }
  .compare__table tr {
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 14px 16px;
    margin-bottom: 14px;
    background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.005));
  }
  .compare__table td { border: 0 !important; padding: 6px 0; }
  .compare__table td:first-child {
    width: auto;
    font-family: var(--display);
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--ink);
    padding-bottom: 10px;
    margin-bottom: 6px;
    border-bottom: 1px solid var(--line) !important;
  }
  .compare__table td:not(:first-child) {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: baseline;
  }
  .compare__table td:not(:first-child)::before {
    content: attr(data-label);
    color: var(--bronze);
    font-size: 0.82rem;
    font-weight: 600;
    flex-shrink: 0;
  }
  .compare__table td.t-gold::before { color: var(--gold); }
  .compare__table td:not(:first-child) { text-align: left; }
}

@media (min-width: 861px) and (max-width: 1040px) {
  .wiz__scope { grid-template-columns: 1fr; max-width: 640px; margin-inline: auto; }
  .scope--featured { order: -1; }
  .portfolio__grid { grid-template-columns: repeat(3, 1fr); }
}

@media (orientation: landscape) and (max-height: 600px) {
  .hero__title { font-size: clamp(2.2rem, 13vh, 5rem); }
  .scene__title { font-size: clamp(1.8rem, 10vh, 4rem); }
  .scene__title--xl { font-size: clamp(2.2rem, 13vh, 5rem); }
  .hero__tagline, .scene__body { font-size: clamp(0.95rem, 3.4vh, 1.15rem); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .scroll-cue__line::after { animation: none; }
  .loader__line::after { animation: none; }
  .loader__brand, .loader__sub { animation: none; }
  .cap, .progress, .nav, .btn, .scope, .chip, .port, .xcard, .dots a { transition: none; }
  .reveal-on .reveal-item { opacity: 1; transform: none; transition: none; }
  .wa-float__pulse { animation: none; }
  .port:hover .port__media img { transform: none; }
}

/* ---------- a11y ---------- */
:focus-visible {
  outline: 2px solid var(--gold-2);
  outline-offset: 3px;
  border-radius: 3px;
}
.btn:focus-visible { outline-offset: 4px; }
