:root {
  --bg: #0a0a0c;
  --panel: rgba(20, 20, 24, 0.62);
  --panel-solid: #141418;
  --line: rgba(255, 255, 255, 0.09);
  --text: #f4f1ec;
  --muted: #a39f99;
  --orange: #ff7a00;
  --orange-2: #ffa62b;
  --orange-deep: #e85d04;
  --radius: 18px;
  --maxw: 1180px;
  --font: "Space Grotesk", "Noto Sans Gurmukhi", "Noto Sans Devanagari", system-ui, sans-serif;
  --font-body: "Inter", "Noto Sans Gurmukhi", "Noto Sans Devanagari", system-ui, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

/* ---------- 3D background ---------- */
#scene {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  display: block;
}
.bg-fallback {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(60% 50% at 75% 30%, rgba(255, 122, 0, 0.22), transparent 70%),
    radial-gradient(50% 40% at 10% 90%, rgba(232, 93, 4, 0.15), transparent 70%),
    var(--bg);
}
.vignette {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(120% 90% at 50% 40%, transparent 55%, rgba(0, 0, 0, 0.65));
}

main, footer { position: relative; z-index: 2; }
/* Header must sit above <main>, otherwise page content paints over the fixed nav */
header { position: relative; z-index: 50; }
section { scroll-margin-top: 90px; }

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: min(var(--maxw), calc(100% - 32px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 14px 10px 12px;
  background: var(--panel);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid var(--line);
  border-radius: 999px;
  z-index: 50;
  transition: background 0.3s, box-shadow 0.3s, border-color 0.3s;
}
.nav.scrolled {
  background: rgba(14, 14, 17, 0.88);
  border-color: rgba(255, 122, 0, 0.18);
  box-shadow: 0 12px 40px -12px rgba(0, 0, 0, 0.8);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--font);
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.brand-logo { height: 36px; width: auto; }
.nav-links { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  text-decoration: none;
  font-size: 0.92rem;
  color: var(--muted);
  padding: 8px 14px;
  border-radius: 999px;
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); }
.nav-links a.active:not(.cta) { color: var(--orange-2); background: rgba(255, 122, 0, 0.1); }
.nav-links a.cta { color: #111; background: var(--orange); font-weight: 600; }
.nav-links a.cta:hover { background: var(--orange-2); }
.menu-btn {
  display: none;
  width: 42px; height: 42px;
  place-items: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  border-radius: 50%;
  cursor: pointer;
  padding: 0;
}
.menu-btn span, .menu-btn span::before, .menu-btn span::after {
  display: block;
  width: 18px; height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: transform 0.3s, background 0.2s;
}
.menu-btn span { position: relative; }
.menu-btn span::before, .menu-btn span::after { content: ""; position: absolute; left: 0; }
.menu-btn span::before { transform: translateY(-6px); }
.menu-btn span::after { transform: translateY(6px); }
.nav.open .menu-btn span { background: transparent; }
.nav.open .menu-btn span::before { transform: rotate(45deg); }
.nav.open .menu-btn span::after { transform: rotate(-45deg); }

/* ---------- Layout ---------- */
section { padding: 120px 16px; }
.wrap { max-width: var(--maxw); margin: 0 auto; }
.eyebrow {
  font-family: var(--font);
  font-size: 0.78rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--orange-2);
  margin: 0 0 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 8px; height: 8px;
  background: var(--orange);
  box-shadow: 12px -6px 0 -1px var(--orange-2);
  margin-right: 8px;
}
h1, h2, h3 { font-family: var(--font); line-height: 1.08; margin: 0; }
h2 { font-size: clamp(2rem, 4.5vw, 3.4rem); letter-spacing: -0.02em; }
.lead { color: var(--muted); font-size: 1.08rem; max-width: 56ch; }
.grad {
  background: linear-gradient(100deg, var(--orange-2), var(--orange) 45%, var(--orange-deep));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: 140px;
}
.hero h1 {
  font-size: clamp(2.8rem, 8vw, 6.4rem);
  letter-spacing: -0.035em;
  max-width: 12ch;
}
.hero .lead { margin: 22px 0 34px; }
.tagline {
  display: inline-flex;
  gap: 12px;
  font-family: var(--font);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 26px;
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  backdrop-filter: blur(10px);
}
.tagline span + span::before { content: "|"; color: var(--orange); margin-right: 12px; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid var(--line);
  background: var(--panel);
  backdrop-filter: blur(10px);
  transition: transform 0.2s, background 0.2s, box-shadow 0.2s;
  cursor: pointer;
  font: 600 1rem var(--font-body);
  color: var(--text);
}
.btn:hover { transform: translateY(-2px); }
.btn.primary {
  background: linear-gradient(135deg, var(--orange-2), var(--orange) 50%, var(--orange-deep));
  color: #120a02;
  border-color: transparent;
  box-shadow: 0 10px 30px -10px rgba(255, 122, 0, 0.7);
}
.btn.primary:hover { box-shadow: 0 16px 40px -10px rgba(255, 122, 0, 0.9); }
.scroll-hint {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  color: var(--muted);
  text-transform: uppercase;
}
.scroll-hint::after {
  content: "";
  display: block;
  width: 1px;
  height: 36px;
  margin: 10px auto 0;
  background: linear-gradient(var(--orange), transparent);
  transform-origin: top;
  animation: drip 1.8s ease-in-out infinite;
}
@keyframes drip {
  0% { transform: scaleY(0); opacity: 1; }
  60% { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(1); opacity: 0; }
}

/* ---------- 3D tilt cards ---------- */
.tilt {
  --rx: 0deg; --ry: 0deg; --mx: 50%; --my: 50%;
  position: relative;
  transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry));
  transform-style: preserve-3d;
  transition: transform 0.35s ease-out, border-color 0.25s;
}
.tilt.is-tilting { transition: transform 0.08s linear, border-color 0.25s; }
.tilt::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(400px circle at var(--mx) var(--my), rgba(255, 166, 43, 0.16), transparent 45%);
  opacity: 0;
  transition: opacity 0.3s;
}
.tilt:hover::after { opacity: 1; }
/* Touch devices: cards follow the phone's tilt (gyro.js sets the vars on <html>) */
html.gyro .tilt {
  --rx: var(--gyro-rx, 0deg); --ry: var(--gyro-ry, 0deg);
  --mx: var(--gyro-mx, 50%); --my: var(--gyro-my, 50%);
  transition: transform 0.1s linear, border-color 0.25s;
}
html.gyro .tilt::after { opacity: 0.7; }

/* ---------- Services ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 54px;
}
.card {
  background: var(--panel);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
}
.card:hover { border-color: rgba(255, 122, 0, 0.45); }
.card .icon {
  width: 56px; height: 56px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--orange-2), var(--orange-deep));
  color: #120a02;
  font-family: var(--font);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 22px;
  box-shadow: 0 14px 30px -12px rgba(255, 122, 0, 0.8);
  transform: translateZ(40px);
}
.card h3 { font-size: 1.4rem; margin-bottom: 10px; transform: translateZ(24px); }
.card p { color: var(--muted); margin: 0 0 18px; }
.card ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.card li {
  font-size: 0.8rem;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
}

/* ---------- Work ---------- */
.work-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.filters { display: flex; gap: 6px; flex-wrap: wrap; }
.filters button {
  font: 500 0.9rem var(--font-body);
  color: var(--muted);
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 8px 16px;
  border-radius: 999px;
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition: all 0.2s;
}
.filters button:hover { color: var(--text); }
.filters button[aria-pressed="true"] { background: var(--orange); color: #120a02; border-color: var(--orange); }

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 40px;
}
.project {
  padding: 0;
  overflow: hidden;
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: inherit;
  width: 100%;
}
.project[hidden] { display: none; }
.cover {
  aspect-ratio: 16 / 10;
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  background:
    radial-gradient(80% 90% at 80% 10%, rgba(255, 166, 43, 0.85), transparent 60%),
    linear-gradient(135deg, #2a1607, #0f0f12 70%);
}
.cover[data-cat="web"] {
  background:
    radial-gradient(80% 90% at 15% 15%, rgba(255, 122, 0, 0.8), transparent 60%),
    linear-gradient(200deg, #1d1d22, #0b0b0d 70%);
}
.cover[data-cat="animation"] {
  background:
    radial-gradient(70% 80% at 50% 110%, rgba(232, 93, 4, 0.95), transparent 65%),
    linear-gradient(160deg, #1a1a1f, #0b0b0d 70%);
}
.cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cover .glyph {
  font-family: var(--font);
  font-weight: 700;
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  color: #fff;
  text-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
  transition: transform 0.4s;
}
.project:hover .glyph { transform: scale(1.14) rotate(-4deg); }
.cover::before {
  content: "";
  position: absolute;
  right: 18px; top: 18px;
  width: 10px; height: 10px;
  background: #fff;
  opacity: 0.85;
  box-shadow: -16px 0 0 rgba(255,255,255,.55), 0 16px 0 rgba(255,255,255,.4), -32px 16px 0 rgba(255,255,255,.25), -16px 32px 0 rgba(255,255,255,.15);
}
.project-body { padding: 20px 22px 24px; }
.project-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--orange-2);
  margin-bottom: 8px;
}
.project-meta span:last-child { color: var(--muted); }
.project h3 { font-size: 1.2rem; }

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}
.about-grid .lead { margin-top: 20px; }
.brand-card {
  margin: 30px 0 0;
  max-width: 320px;
  padding: 18px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 30px 60px -24px rgba(255, 122, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.6);
}
.brand-card img { width: 100%; height: auto; border-radius: 10px; }
.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.stat { padding: 26px; }
.stat b {
  display: block;
  font-family: var(--font);
  font-size: 2.6rem;
  line-height: 1;
  margin-bottom: 6px;
}
.stat span { color: var(--muted); font-size: 0.92rem; }

/* ---------- Contact ---------- */
.contact-card {
  text-align: center;
  padding: clamp(40px, 7vw, 80px) 24px;
  background:
    radial-gradient(70% 120% at 50% 0%, rgba(255, 122, 0, 0.22), transparent 60%),
    var(--panel);
}
.contact-card .lead { margin: 18px auto 32px; }
.contact-card .btns { justify-content: center; }
.contact-logo { width: min(360px, 80%); height: auto; margin: 0 auto 30px; }
.contact-form { display: grid; gap: 14px; max-width: 620px; margin: 0 auto 28px; text-align: left; scroll-margin-top: 100px; }
.contact-form[hidden] { display: none; }
.cf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.contact-form label { display: grid; gap: 6px; font-size: 0.88rem; color: var(--muted); }
.contact-form input, .contact-form select, .contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  font: inherit;
  font-size: 1rem;
  color: var(--text);
  background: rgba(10, 10, 12, 0.6);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.contact-form textarea { resize: vertical; min-height: 120px; }
.contact-form select option { background: var(--panel-solid); }
.contact-form :is(input, select, textarea):focus-visible { outline: 2px solid var(--orange); outline-offset: 1px; border-color: transparent; }
.contact-form .btn { justify-self: start; }
.contact-form .btn:disabled { opacity: 0.6; cursor: wait; }
.cf-package { display: flex; align-items: center; gap: 8px; margin: 0; padding: 10px 14px; border-radius: 12px;
  background: rgba(255, 122, 0, 0.1); border: 1px solid rgba(255, 122, 0, 0.35); color: var(--muted); }
.cf-package[hidden] { display: none; }
.cf-package b { color: var(--text); flex: 1; }
.cf-package-clear { border: 0; background: none; color: var(--muted); cursor: pointer; font-size: 1rem; padding: 2px 6px; }
.cf-package-clear:hover { color: var(--text); }
.cf-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cf-status { margin: 0; min-height: 1.4em; color: var(--text); }
.cf-status.bad { color: #ff9b8a; }
@media (max-width: 560px) { .cf-row { grid-template-columns: 1fr; } }

.footer-logo { height: 30px; width: auto; margin: 0 auto 12px; opacity: 0.9; }
footer p { margin: 0; }
footer {
  padding: 30px 16px 40px;
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
}

/* ---------- Modal ---------- */
dialog {
  width: min(680px, calc(100% - 32px));
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-solid);
  color: var(--text);
  overflow: hidden;
}
dialog::backdrop { background: rgba(0, 0, 0, 0.7); backdrop-filter: blur(6px); }
dialog[open] { animation: zoomIn 0.4s cubic-bezier(.2, .9, .3, 1.15); }
@keyframes zoomIn { from { opacity: 0; transform: perspective(900px) rotateX(16deg) scale(0.9); } }
dialog .cover { aspect-ratio: 16 / 8; }
.modal-body { padding: 26px 28px 30px; }
.modal-body h3 { font-size: 1.7rem; margin: 6px 0 12px; }
.modal-body p { color: var(--muted); margin: 0 0 18px; }
.modal-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; padding: 0; list-style: none; }
.modal-tags li { font-size: 0.82rem; padding: 4px 12px; border-radius: 999px; background: rgba(255, 122, 0, 0.14); color: var(--orange-2); }
.close-btn {
  position: absolute;
  top: 12px; right: 12px;
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 2;
}

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; translate: 0 40px; transition: opacity 0.8s ease, translate 0.8s cubic-bezier(.2, .8, .2, 1); }
.reveal.in { opacity: 1; translate: 0 0; }

:focus-visible { outline: 2px solid var(--orange-2); outline-offset: 3px; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .services-grid, .work-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  section { padding: 90px 16px; }
  .menu-btn { display: grid; }
  .nav { padding: 8px 8px 8px 12px; }
  .brand-logo { height: 30px; }
  /* Dropdown is its own solid card below the bar */
  .nav-links {
    position: absolute;
    top: calc(100% + 10px);
    left: 0; right: 0;
    flex-direction: column;
    gap: 2px;
    padding: 10px;
    background: rgba(14, 14, 17, 0.97);
    border: 1px solid var(--line);
    border-radius: 20px;
    box-shadow: 0 24px 60px -16px rgba(0, 0, 0, 0.9);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px) scale(0.98);
    transform-origin: top center;
    transition: opacity 0.25s, transform 0.25s, visibility 0s 0.25s;
  }
  .nav.open .nav-links {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity 0.25s, transform 0.25s;
  }
  .nav-links a { display: block; padding: 14px 16px; font-size: 1.05rem; color: var(--text); border-radius: 12px; }
  .nav-links a.cta { text-align: center; margin-top: 6px; }
  .services-grid, .work-grid { grid-template-columns: 1fr; }
  .tagline { font-size: 0.68rem; gap: 8px; letter-spacing: 0.14em; }
  .tagline span + span::before { margin-right: 8px; }
  .scroll-hint { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; translate: none; transition: none; }
  .scroll-hint::after, dialog[open] { animation: none; }
}

/* Elements that both tilt and reveal need one combined transition list */
.tilt.reveal { transition: opacity 0.8s ease, translate 0.8s cubic-bezier(.2, .8, .2, 1), transform 0.35s ease-out, border-color 0.25s; }
.tilt.reveal.is-tilting { transition: opacity 0.8s ease, translate 0.8s cubic-bezier(.2, .8, .2, 1), transform 0.08s linear, border-color 0.25s; }
html.gyro .tilt.reveal { transition: opacity 0.8s ease, translate 0.8s cubic-bezier(.2, .8, .2, 1), transform 0.1s linear, border-color 0.25s; }

/* ---------- Punjabi / Hindi typography ---------- */
/* Gurmukhi and Devanagari need taller lines (matras) and no wide letter-spacing */
html[lang="pa"] h1, html[lang="hi"] h1,
html[lang="pa"] h2, html[lang="hi"] h2,
html[lang="pa"] h3, html[lang="hi"] h3 { line-height: 1.32; letter-spacing: 0; }
html[lang="pa"] .hero h1, html[lang="hi"] .hero h1 { font-size: clamp(2.4rem, 6.4vw, 5rem); }
html[lang="pa"] .eyebrow, html[lang="hi"] .eyebrow,
html[lang="pa"] .tagline, html[lang="hi"] .tagline,
html[lang="pa"] .project-meta, html[lang="hi"] .project-meta,
html[lang="pa"] .scroll-hint, html[lang="hi"] .scroll-hint { letter-spacing: 0.04em; }
html[lang="pa"] .grad, html[lang="hi"] .grad { padding-block: 0.08em; }

/* ---------- Nav: right cluster + language switch ---------- */
.nav-right { display: flex; align-items: center; gap: 10px; }
.lang-switch {
  display: flex;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
}
.lang-switch button {
  min-width: 34px;
  height: 30px;
  padding: 0 8px;
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--muted);
  font: 600 0.8rem var(--font-body);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.lang-switch button:hover { color: var(--text); }
.lang-switch button[aria-pressed="true"] { background: var(--orange); color: #120a02; }

/* ---------- Logo intro (home page, once per session) ---------- */
header, main, footer { transition: opacity 0.9s ease; }
html.intro-active header, html.intro-active main, html.intro-active footer { opacity: 0; pointer-events: none; }
html.intro-active body { overflow: hidden; }
.intro {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: radial-gradient(ellipse 80% 70% at 50% 45%, rgba(38, 24, 12, 0.97), rgba(10, 10, 12, 0.99) 70%);
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s, visibility 0s 0.6s;
}
html.intro-active .intro { opacity: 1; visibility: visible; transition: none; pointer-events: auto; }
/* Smaller mark with a clear margin from the screen edges (56px+ each side on phones) */
.intro { padding: 32px; }
.intro-logo { width: min(380px, 100vw - 112px); aspect-ratio: 552 / 430; }
.intro-logo svg { width: 100%; height: 100%; display: block; overflow: visible; }

.section-cta { margin-top: 36px; display: flex; justify-content: center; }

/* ---------- Testimonials: 3D coverflow ---------- */
.carousel-btns { display: flex; gap: 10px; }
.round-btn {
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--panel);
  backdrop-filter: blur(10px);
  color: var(--text);
  font-size: 1.2rem;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.round-btn:hover { border-color: var(--orange); background: rgba(255, 122, 0, 0.15); }
.review-track {
  --card-w: min(440px, 82vw);
  display: flex;
  gap: 24px;
  margin-top: 40px;
  padding: 30px calc(50% - var(--card-w) / 2) 40px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.review-track::-webkit-scrollbar { display: none; }
.review {
  flex: 0 0 var(--card-w);
  scroll-snap-align: center;
  margin: 0;
  padding: 34px 30px 28px;
  position: relative;
  background: var(--panel);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 0.2s ease-out, opacity 0.2s, border-color 0.3s;
}
.review.current { border-color: rgba(255, 122, 0, 0.45); }
.quote-mark {
  position: absolute;
  top: -8px; left: 22px;
  font: 700 5rem/1 var(--font);
  color: var(--orange);
}
.review blockquote { margin: 18px 0 26px; font-size: 1.06rem; color: var(--text); }
.review figcaption { display: flex; align-items: center; gap: 12px; }
.avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--orange-2), var(--orange-deep));
  color: #120a02;
  font: 700 1.1rem var(--font);
  flex: none;
}
.who { display: flex; flex-direction: column; line-height: 1.3; }
.who small { color: var(--muted); }
.review-tag {
  margin-left: auto;
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 122, 0, 0.14);
  color: var(--orange-2);
  white-space: nowrap;
}

/* ---------- Services page ---------- */
.hero-short { min-height: 78vh; min-height: 78svh; }
.pk-tabs button[aria-selected="true"] { background: var(--orange); color: #120a02; border-color: var(--orange); }
.pk-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 40px;
  align-items: stretch;
}
.package { display: flex; flex-direction: column; padding: 32px 28px; }
.package.popular {
  border-color: rgba(255, 122, 0, 0.6);
  background:
    radial-gradient(90% 60% at 50% 0%, rgba(255, 122, 0, 0.18), transparent 70%),
    var(--panel);
  box-shadow: 0 30px 60px -30px rgba(255, 122, 0, 0.6);
}
.badge {
  position: absolute;
  top: -12px; right: 22px;
  padding: 4px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--orange-2), var(--orange-deep));
  color: #120a02;
  font-size: 0.75rem;
  font-weight: 700;
}
.pk-service { margin: 0 0 6px; color: var(--orange-2); font-size: 0.8rem; letter-spacing: 0.16em; text-transform: uppercase; }
.package h3 { font-size: 1.9rem; }
.pk-desc { color: var(--muted); margin: 8px 0 18px; }
.pk-price {
  margin: 0 0 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
  font: 700 1.3rem var(--font);
}
.pk-features { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 10px; flex: 1; }
.pk-features li { position: relative; padding-left: 26px; color: var(--text); }
.pk-features li::before {
  content: "";
  position: absolute;
  left: 2px; top: 0.5em;
  width: 9px; height: 9px;
  background: var(--orange);
  box-shadow: 5px -5px 0 -2px var(--orange-2);
}
.package .btn { justify-content: center; }

.steps {
  list-style: none;
  padding: 0;
  margin: 50px 0 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  counter-reset: step;
}
.step { padding: 28px 24px; }
.step-n {
  display: block;
  font: 700 2.4rem/1 var(--font);
  color: transparent;
  -webkit-text-stroke: 1.5px var(--orange);
  margin-bottom: 16px;
}
.step h3 { font-size: 1.25rem; margin-bottom: 8px; }
.step p { margin: 0; color: var(--muted); }

.faq-wrap { max-width: 820px; }
.faq { display: grid; gap: 14px; margin-top: 40px; }
.faq details { padding: 0; }
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 56px 22px 24px;
  font: 600 1.08rem var(--font);
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 22px; top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  color: var(--orange);
  transition: transform 0.3s;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { margin: 0; padding: 0 24px 22px; color: var(--muted); }

.footer-social { display: flex; justify-content: center; gap: 10px; margin: 0 0 14px; flex-wrap: wrap; }
.footer-social a {
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  text-decoration: none;
  color: var(--muted);
  font-size: 0.85rem;
}
.footer-social a:hover { color: var(--text); border-color: var(--orange); }

@media (max-width: 960px) {
  .pk-grid { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
  .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .lang-switch button { min-width: 30px; height: 28px; padding: 0 6px; font-size: 0.75rem; }
  .nav-right { gap: 6px; }
  .steps { grid-template-columns: 1fr; }
  .carousel-btns { display: none; }
}
@media (max-width: 380px) {
  .brand-logo { height: 24px; }
}

/* Package features are a plain list, not the pill tags used on service cards */
.card .pk-features { display: grid; gap: 10px; }
.card .pk-features li { border: 0; border-radius: 0; padding: 0 0 0 26px; font-size: 0.95rem; color: var(--text); }

/* ---------- No side scrollbar; scroll progress bar along the bottom instead ---------- */
html { scrollbar-width: none; }
html::-webkit-scrollbar { display: none; }
.scroll-progress {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  height: 4px;
  z-index: 70;
  pointer-events: none;
  background: rgba(255, 255, 255, 0.06);
}
.scroll-progress span {
  display: block;
  height: 100%;
  width: 100%;
  transform-origin: left center;
  transform: scaleX(var(--p, 0));
  background: linear-gradient(90deg, var(--orange-deep), var(--orange), var(--orange-2));
  box-shadow: 0 0 12px rgba(255, 122, 0, 0.7);
}
html.intro-active .scroll-progress { opacity: 0; }

/* ---------- Hero on phones: stacked full-width buttons ---------- */
@media (max-width: 560px) {
  .hero .lead { margin: 18px 0 28px; font-size: 1rem; }
  .hero .btns { display: grid; grid-template-columns: 1fr; gap: 10px; }
  .hero .btn { justify-content: center; padding-block: 15px; font-size: 1rem; }
}

/* ---------- Account menu (ui.js) ---------- */
.nav-user { position: relative; }
.nav-user-btn {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font: 700 0.95rem var(--font);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.nav-user-btn:hover, .nav-user.open .nav-user-btn { border-color: var(--orange); background: rgba(255, 122, 0, 0.12); }
.nav-user-btn.signed-in { border: 0; color: #120a02; background: linear-gradient(135deg, var(--orange-2), var(--orange-deep)); }
.nav-user-panel {
  position: absolute;
  top: calc(100% + 16px);
  right: 0;
  width: 290px;
  display: grid;
  gap: 16px;
  padding: 18px;
  background: #0e0e11;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 24px 60px -16px rgba(0, 0, 0, 0.9);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.2s, transform 0.2s, visibility 0s 0.2s;
}
.nav-user.open .nav-user-panel { opacity: 1; visibility: visible; transform: none; transition: opacity 0.2s, transform 0.2s; }
.nav-user-hello b { display: block; font: 700 1.05rem var(--font); }
.nav-user-hello small { display: block; margin-top: 4px; color: var(--muted); font-size: 0.86rem; line-height: 1.45; }
.nav-user-id { display: flex; align-items: center; gap: 12px; min-width: 0; }
.nav-user-id > div { min-width: 0; }
.nav-user-id b, .nav-user-id small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-user-id small { color: var(--muted); font-size: 0.84rem; }
.nav-user-avatar {
  flex: none;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--orange-2), var(--orange-deep));
  color: #120a02;
  font: 700 1.1rem var(--font);
}
.nav-user-actions { display: grid; gap: 8px; }
.nav .nav-btn {
  display: flex; align-items: center; justify-content: center;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
}
.nav .nav-btn:hover { border-color: var(--orange); background: rgba(255, 122, 0, 0.1); }
.nav .nav-btn.primary { border-color: transparent; background: var(--orange); color: #120a02; }
.nav .nav-btn.primary:hover { background: var(--orange-2); }
.nav-user-out {
  padding: 8px; border: 0; background: none;
  color: var(--muted); font: 500 0.88rem var(--font-body);
  cursor: pointer;
}
.nav-user-out:hover { color: var(--text); }
.nav-user-row, .nav-lang-row { display: none; }

/* Phones: the menu is a full-screen blurred sheet under the logo / close button */
@media (max-width: 720px) {
  html.menu-open { overflow: hidden; }
  .nav { left: 16px; right: 16px; width: auto; transform: none; }
  /* backdrop-filter / transform on the bar would trap the fixed sheet inside it */
  .nav.open { backdrop-filter: none; -webkit-backdrop-filter: none; background: transparent; border-color: transparent; box-shadow: none; }
  .nav .nav-links {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 100vh; height: 100dvh;
    z-index: -1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 96px 24px max(28px, env(safe-area-inset-bottom));
    overflow-y: auto;
    overscroll-behavior: contain;
    background: rgba(10, 10, 12, 0.78);
    backdrop-filter: blur(22px) saturate(140%);
    -webkit-backdrop-filter: blur(22px) saturate(140%);
    border: 0;
    border-radius: 0;
    box-shadow: none;
    transform: none;
    clip-path: circle(0 at calc(100% - 44px) 36px);
    transition: clip-path 0.45s cubic-bezier(.6, 0, .2, 1), opacity 0.3s, visibility 0s 0.45s;
  }
  .nav.open .nav-links { clip-path: circle(150% at calc(100% - 44px) 36px); transition: clip-path 0.55s cubic-bezier(.6, 0, .2, 1), opacity 0.2s; }
  .nav-links > li { opacity: 0; translate: 0 12px; transition: opacity 0.3s, translate 0.4s cubic-bezier(.2, .8, .2, 1); }
  .nav.open .nav-links > li { opacity: 1; translate: none; }
  .nav.open .nav-links > li:nth-child(2) { transition-delay: 0.05s; }
  .nav.open .nav-links > li:nth-child(3) { transition-delay: 0.1s; }
  .nav.open .nav-links > li:nth-child(4) { transition-delay: 0.15s; }
  .nav.open .nav-links > li:nth-child(5) { transition-delay: 0.2s; }
  .nav.open .nav-links > li:nth-child(n+6) { transition-delay: 0.25s; }
  .nav-links > li > a:not(.cta) {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 6px;
    border-radius: 0;
    border-bottom: 1px solid var(--line);
    font: 700 clamp(1.6rem, 8vw, 2.1rem) var(--font);
    letter-spacing: -0.02em;
  }
  html[lang="pa"] .nav-links > li > a:not(.cta), html[lang="hi"] .nav-links > li > a:not(.cta) { letter-spacing: 0; }
  .nav-links > li > a:not(.cta):hover, .nav-links > li > a.active:not(.cta) { background: none; color: var(--orange-2); }
  .nav-links > li > a:not(.cta)::after { content: "→"; color: var(--muted); font-size: 1.2rem; transition: translate 0.2s, color 0.2s; }
  .nav-links > li > a:not(.cta):hover::after, .nav-links > li > a.active:not(.cta)::after { color: var(--orange-2); translate: 4px 0; }
  .nav-links a.cta { margin-top: 22px; padding: 17px; font-size: 1.08rem; border-radius: 14px; text-align: center; }
  .nav-user-row { display: block; margin-top: 12px; }
  .nav-user-row[hidden] { display: none; }
  .nav-user-row .nav-user-btn { display: none; }
  .nav-user-row .nav-user-panel {
    position: static; width: auto; padding: 0; gap: 14px;
    background: none; border: 0; box-shadow: none;
    opacity: 1; visibility: visible; transform: none; transition: none;
  }
  .nav-user-row .nav-user-hello { display: none; }
  .nav-user-row .nav-user-actions { grid-template-columns: 1fr 1fr; }
  .nav-user-row .nav-user-id { padding: 14px; border: 1px solid rgba(255, 122, 0, 0.22); border-radius: 16px; background: rgba(255, 122, 0, 0.08); }
  .nav .nav-user-row .nav-btn { padding: 14px 8px; font-size: 0.98rem; white-space: nowrap; }
  .nav-lang-row {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    margin-top: auto; padding: 22px 4px 0;
  }
  .nav-row-label { color: var(--muted); font-size: 0.95rem; }
  .nav-lang-row .lang-switch button { min-width: 50px; height: 36px; font-size: 0.88rem; }
}
@media (max-width: 720px) and (prefers-reduced-motion: reduce) {
  .nav .nav-links, .nav-links > li { transition: none; }
}

/* ---------- Sign in / create account modal (auth.js) ---------- */
html.auth-open { overflow: hidden; }
.auth {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  justify-items: center;
  align-items: safe center;
  padding: 32px 16px;
  overflow-y: auto;
  overscroll-behavior: contain;
  visibility: hidden;
  transition: visibility 0s 0.3s;
}
.auth.open { visibility: visible; transition: none; }
.auth-backdrop {
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse 60% 55% at 50% 42%, rgba(70, 34, 6, 0.5), rgba(7, 7, 9, 0.88));
  backdrop-filter: blur(20px) saturate(120%);
  -webkit-backdrop-filter: blur(20px) saturate(120%);
  opacity: 0;
  transition: opacity 0.25s;
}
.auth.open .auth-backdrop { opacity: 1; }

.auth-card {
  position: relative;
  width: min(430px, 100%);
  padding: 34px 36px 28px;
  background:
    radial-gradient(120% 60% at 50% 0%, rgba(255, 122, 0, 0.13), transparent 60%),
    #111114;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  box-shadow: 0 50px 120px -30px rgba(0, 0, 0, 0.95), 0 0 0 1px rgba(255, 122, 0, 0.08);
  transform: translateY(14px) scale(0.98);
  transition: transform 0.35s cubic-bezier(.2, .8, .2, 1);
}
.auth.open .auth-card { transform: none; }
/* Thin brand glow along the top edge */
.auth-card::before {
  content: "";
  position: absolute;
  top: -1px; left: 18%; right: 18%;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--orange-2), var(--orange), transparent);
}
.auth-close {
  position: absolute;
  top: 16px; right: 16px;
  width: 34px; height: 34px;
  display: grid; place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.auth-close:hover { background: rgba(255, 255, 255, 0.12); color: var(--text); }
.auth-brand { display: flex; justify-content: center; margin-bottom: 22px; }
.auth-brand img { height: 30px; width: auto; }

/* Header: centred icon / title / subtitle */
.auth-head { display: grid; justify-items: center; text-align: center; gap: 8px; margin-bottom: 22px; }
.auth-head h2 { font-size: 1.75rem; letter-spacing: -0.02em; line-height: 1.2; }
html[lang="pa"] .auth-head h2, html[lang="hi"] .auth-head h2 { letter-spacing: 0; line-height: 1.35; }
.auth-sub { margin: 0; max-width: 32ch; color: var(--muted); font-size: 0.95rem; line-height: 1.5; }
.auth-sub b { display: block; color: var(--text); font-weight: 600; overflow-wrap: anywhere; }
.auth-icon {
  width: 56px; height: 56px;
  display: grid; place-items: center;
  margin-bottom: 6px;
  border-radius: 18px;
  background: rgba(255, 122, 0, 0.12);
  border: 1px solid rgba(255, 122, 0, 0.3);
  color: var(--orange-2);
  font-size: 1.5rem;
}
.auth-icon.ok { border-radius: 50%; background: var(--orange); border-color: transparent; color: #120a02; font-weight: 700; animation: auth-pop 0.5s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes auth-pop { from { transform: scale(0.4); opacity: 0; } }

/* Sign in / Create account switch */
.auth-tabs {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-bottom: 22px;
  padding: 4px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
}
.auth-tabs::before {
  content: "";
  position: absolute;
  top: 4px; bottom: 4px; left: 4px;
  width: calc(50% - 4px);
  border-radius: 10px;
  background: #24242a;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4), inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  transition: translate 0.3s cubic-bezier(.2, .8, .2, 1);
}
.auth-tabs[data-on="signup"]::before { translate: 100% 0; }
.auth-tabs button {
  position: relative;
  padding: 10px;
  border: 0;
  background: none;
  color: var(--muted);
  font: 600 0.92rem var(--font-body);
  cursor: pointer;
  transition: color 0.2s;
}
.auth-tabs button:hover { color: var(--text); }
.auth-tabs button[aria-selected="true"] { color: var(--text); }

/* Fields */
.auth-form, .auth-slot { display: grid; gap: 16px; }
.auth-field { display: grid; gap: 7px; font-size: 0.85rem; font-weight: 500; color: #c9c4bc; }
.auth-input { position: relative; display: flex; align-items: center; }
.auth-input input, .auth-input .cc-select {
  height: 48px;
  font: inherit;
  font-size: 0.98rem;
  font-weight: 400;
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.auth-input input { width: 100%; padding: 0 14px; }
.auth-input input::placeholder { color: rgba(244, 241, 236, 0.3); }
.auth-input input:hover, .auth-input .cc-select:hover { border-color: rgba(255, 255, 255, 0.18); }
.auth-input input:focus, .auth-input .cc-select:focus { outline: none; border-color: var(--orange); background: rgba(255, 122, 0, 0.05); box-shadow: 0 0 0 4px rgba(255, 122, 0, 0.14); }
.auth-field.bad input { border-color: #ff6b57; }
.auth-field.good input { border-color: rgba(134, 239, 172, 0.55); }
.auth-eye {
  position: absolute;
  right: 7px;
  height: 34px;
  padding: 0 12px;
  border: 0;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--muted);
  font: 600 0.78rem var(--font-body);
  cursor: pointer;
}
.auth-eye:hover { color: var(--text); }
.auth-input:has(.auth-eye) input { padding-right: 76px; }
.auth-msg { font-size: 0.82rem; font-weight: 400; line-height: 1.4; }
.auth-msg:empty { display: none; }
.auth-field.bad .auth-msg { color: #ff9b8a; }
.auth-field.good .auth-msg { color: #86efac; }
.auth-meter { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.auth-meter i { height: 3px; border-radius: 2px; background: rgba(255, 255, 255, 0.08); transition: background 0.2s; }
.auth-meter[data-score="1"] i:nth-child(-n+1) { background: #ff6b57; }
.auth-meter[data-score="2"] i:nth-child(-n+2) { background: var(--orange); }
.auth-meter[data-score="3"] i:nth-child(-n+3) { background: var(--orange-2); }
.auth-meter[data-score="4"] i { background: #86efac; }
.auth-input input.auth-code {
  height: 60px;
  text-align: center;
  letter-spacing: 0.55em;
  padding-left: 0.55em;
  font: 700 1.7rem var(--font);
}

/* Buttons, links, messages */
.auth-submit { width: 100%; height: 50px; justify-content: center; margin-top: 4px; font-size: 1rem; }
.auth-submit.busy span { opacity: 0.5; }
.auth-submit.busy::after {
  content: "";
  width: 16px; height: 16px;
  margin-left: 10px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: auth-spin 0.7s linear infinite;
}
@keyframes auth-spin { to { transform: rotate(1turn); } }
.auth-error { margin: 0; padding: 10px 12px; border-radius: 10px; background: rgba(255, 107, 87, 0.1); color: #ff9b8a; font-size: 0.9rem; }
.auth-error:empty { display: none; }
.auth-link { padding: 0; border: 0; background: none; color: var(--orange-2); font: inherit; font-weight: 500; cursor: pointer; text-align: inherit; }
.auth-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.auth-link:disabled { color: var(--muted); cursor: default; text-decoration: none; }
.auth-links, .auth-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; font-size: 0.88rem; text-align: center; }
.auth-fine { margin: 0; color: var(--muted); font-size: 0.8rem; text-align: center; }
.auth-switch {
  margin: 22px -36px -28px;
  padding: 18px 36px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 0 0 24px 24px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--muted);
  font-size: 0.92rem;
  text-align: center;
}
.auth-more { display: block; margin-top: 16px; color: var(--muted); font-size: 0.88rem; text-align: center; }
.auth-done-btns { display: grid; gap: 10px; }
.auth-done-btns .btn { width: 100%; height: 50px; justify-content: center; }
.auth-loading { margin: 40px 0; text-align: center; color: var(--muted); }
.auth-check { margin-top: 2px; }

/* Phones: the card floats over the blurred page with a small margin */
@media (max-width: 560px) {
  .auth { padding: 12px; }
  .auth-card { padding: 28px 20px 22px; border-radius: 20px; }
  .auth-brand { margin-bottom: 18px; }
  .auth-head { margin-bottom: 18px; }
  .auth-head h2 { font-size: 1.5rem; }
  .auth-switch { margin: 20px -20px -22px; padding: 16px 20px; border-radius: 0 0 20px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .auth-card, .auth-backdrop, .auth-tabs::before { transition: none; }
  .auth-icon.ok { animation: none; }
}

/* ---------- Contact card: compact so the whole form fits one screen ---------- */
#contact { padding-block: 64px; }
.contact-card { padding: clamp(22px, 3.5vw, 38px) clamp(16px, 4vw, 40px); }
.contact-logo { width: min(210px, 56%); margin-bottom: 10px; }
.contact-card h2 { font-size: clamp(1.6rem, 3.4vw, 2.5rem); }
.contact-card .lead { margin: 8px auto 16px; font-size: 0.98rem; }
.contact-form { gap: 10px; max-width: 680px; margin-bottom: 14px; }
.contact-form label { gap: 4px; font-size: 0.82rem; }
.contact-form input, .contact-form select, .contact-form textarea { padding: 10px 12px; font-size: 0.95rem; }
.contact-form textarea { min-height: 80px; }
.cf-row { gap: 10px; }
.contact-form > .btn { justify-self: stretch; justify-content: center; padding-block: 13px; }
.contact-card .btns .btn { padding: 10px 18px; font-size: 0.9rem; }
.cf-note { margin: -2px 0 0; font-size: 0.8rem; line-height: 1.45; color: var(--muted); }
.cf-note[hidden] { display: none; }
@media (max-width: 560px) {
  #contact { padding-block: 48px; }
  .contact-logo { width: 150px; }
  .contact-card .lead { font-size: 0.92rem; }
}

/* ---------- Privacy consent checkbox (contact form, sign-up modal, account page) ---------- */
.contact-form label.cf-check, .auth-check, .acc-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.86rem;
  line-height: 1.45;
  color: var(--muted);
  cursor: pointer;
  text-align: left;
}
:is(.cf-check, .auth-check, .acc-check) a { color: var(--orange-2); }
.contact-form .cf-check input, .auth-check input, .acc-check input {
  appearance: none;
  -webkit-appearance: none;
  flex: none;
  width: 20px; height: 20px;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 6px;
  background: rgba(8, 8, 10, 0.7) center / 14px no-repeat;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s;
}
:is(.cf-check, .auth-check, .acc-check) input:checked {
  border-color: var(--orange);
  background-color: var(--orange);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3.2 3L13 4.5' fill='none' stroke='%23120a02' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
:is(.cf-check, .auth-check, .acc-check) input:focus-visible { outline: 2px solid var(--orange-2); outline-offset: 2px; }
.auth-check.bad { color: #ff9b8a; }
.auth-check.bad input { border-color: #ff6b57; }

.footer-link { color: inherit; }
.footer-link:hover { color: var(--orange-2); }
.cf-status:empty { display: none; }
/* Wide screens: intro on the left, form on the right, so the card stays one screen tall */
@media (min-width: 900px) {
  .contact-card:has(.contact-form:not([hidden])) {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    grid-template-areas: "logo form" "title form" "lead form" "btns form";
    grid-template-rows: auto auto auto 1fr;
    column-gap: clamp(28px, 4vw, 56px);
    align-content: center;
    text-align: left;
  }
  .contact-card:has(.contact-form:not([hidden])) .contact-logo { grid-area: logo; margin: 0 0 14px; align-self: end; }
  .contact-card:has(.contact-form:not([hidden])) h2 { grid-area: title; }
  .contact-card:has(.contact-form:not([hidden])) .lead { grid-area: lead; margin: 12px 0 20px; }
  .contact-card:has(.contact-form:not([hidden])) .btns { grid-area: btns; justify-content: flex-start; align-self: start; }
  .contact-card:has(.contact-form:not([hidden])) .contact-form { grid-area: form; margin: 0; max-width: none; align-self: center; }
}
/* Phones: the header already shows the logo; keep the form within one screen */
@media (max-width: 560px) {
  .contact-card:has(.contact-form:not([hidden])) .contact-logo,
  .contact-card:has(.contact-form:not([hidden])) .lead { display: none; }
  .contact-card:has(.contact-form:not([hidden])) h2 { margin-bottom: 14px; }
}
.cf-row { align-items: end; }

/* ---------- Phone number with country-code picker (auth.js ccPhone) ---------- */
.cc-phone { display: flex; gap: 8px; flex: 1; min-width: 0; }
.cc-phone input { flex: 1; min-width: 0; }
.cc-phone .cc-select {
  flex: none;
  width: auto;
  max-width: 116px;
  padding: 0 6px 0 10px;
  font: inherit;
  font-size: 0.92rem;
  color: var(--text);
  background: rgba(8, 8, 10, 0.7);
  border: 1px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
}
.cc-phone .cc-select option { background: #16161b; color: var(--text); }
.cc-phone .cc-select:focus-visible { outline: 2px solid var(--orange); outline-offset: 1px; }
.contact-form .cc-phone .cc-select { width: auto; padding: 0 4px 0 8px; }
.auth-input .cc-phone .cc-select { padding: 0 8px 0 12px; height: 48px; background: rgba(255, 255, 255, 0.04); border-color: rgba(255, 255, 255, 0.1); font-size: 0.95rem; }
.auth-opt { margin-left: 6px; padding: 1px 7px; border-radius: 999px; background: rgba(255, 255, 255, 0.06); color: var(--muted); font-size: 0.72rem; font-weight: 500; }
.auth-hint { color: var(--muted); font-size: 0.8rem; font-weight: 400; line-height: 1.4; }
.auth-meter:not([data-score]), .auth-meter[data-score="0"] { display: none; }
.auth-field:has(.auth-code) > span:first-child { display: none; }
.auth-input input.auth-code::placeholder { color: rgba(244, 241, 236, 0.18); letter-spacing: 0.4em; }

/* ---------- Project videos ---------- */
.cover video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #000; }
.cover .cover-video { opacity: 0; transition: opacity 0.35s; }
.cover.playing .cover-video { opacity: 1; }
.play-badge {
  position: absolute;
  right: 14px; bottom: 14px;
  z-index: 2;
  width: 42px; height: 42px;
  display: grid; place-items: center;
  padding-left: 3px;
  border-radius: 50%;
  background: rgba(10, 10, 12, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  font-size: 0.9rem;
  transition: opacity 0.3s, transform 0.3s;
}
.cover.playing .play-badge { opacity: 0; transform: scale(0.8); }
dialog .cover video { object-fit: contain; }
