/* ==========================================================================
   EVENT X — Design System & Stylesheet
   Monochrome white/black theme · Red accent · Chakra Petch (logo-matched) + Inter
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  --bg-0: #ffffff;
  --bg-1: #f7f7f8;
  --bg-2: #fbfbfc;
  --surface: #ffffff;
  --surface-2: #f3f3f5;
  --line: rgba(14, 14, 18, 0.09);
  --line-strong: rgba(14, 14, 18, 0.18);
  --ink: #0e0e12;
  --text: #101014;
  --muted: #5b5b64;
  --muted-2: #8f8f98;
  --accent: #d7263d;
  --accent-dark: #b01e31;
  --accent-light: #ff7385;      /* accent for dark backgrounds */
  --accent-soft: rgba(215, 38, 61, 0.08);
  --accent-ink: #ffffff;        /* text on accent/ink fills */
  --accent-grad: linear-gradient(105deg, #ff6373 0%, #d7263d 45%, #a3152c 100%);
  --ink-grad: linear-gradient(105deg, #2a2a32, #0e0e12 55%, #26262e);
  --on-ink: #ffffff;              /* text on ink/white-grad fills */
  --nav-bg: rgba(255, 255, 255, 0.82);
  --menu-bg: rgba(255, 255, 255, 0.96);
  --scroll-thumb: #c9c9d2;
  --quote-color: #23222a;
  --shadow-accent: 0 18px 50px -12px rgba(215, 38, 61, 0.4);
  --shadow-card: 0 24px 60px -22px rgba(10, 10, 20, 0.22);
  color-scheme: light;
  --radius: 20px;
  --radius-sm: 12px;
  --nav-h: 84px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font-display: "Chakra Petch", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;
  /* Brand X mark from the Event X logo (logo-01.svg) — reusable as a CSS mask */
  --x-mark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='1120.8 102.82 205.97 220.2'%3E%3Cpolygon points='1120.8 323.02 1197.27 211.68 1122.15 102.82 1168.56 102.82 1249.54 211.55 1167.21 323.02 1120.8 323.02'/%3E%3Cpolygon points='1326.77 323.02 1280.36 323.02 1244.09 269.83 1268.09 238.36 1326.77 323.02'/%3E%3Cpolygon points='1324.74 102.82 1268.16 185.49 1244.8 154.67 1278.67 102.82 1324.74 102.82'/%3E%3C/svg%3E");
}

/* ---------- 2. Base / Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--nav-h) + 16px);
}

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg-0);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--accent); color: var(--accent-ink); }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg-1); }
::-webkit-scrollbar-thumb { background: var(--scroll-thumb); border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 3000;
  background: var(--accent); color: var(--accent-ink);
  padding: 10px 18px; border-radius: 0 0 10px 0; font-weight: 700;
}
.skip-link:focus { left: 0; }
[dir="rtl"] .skip-link { left: auto; right: -9999px; }
[dir="rtl"] .skip-link:focus { right: 0; left: auto; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* ---------- 3. Typography helpers ---------- */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.15; letter-spacing: 0.01em; }

.display {
  font-size: clamp(2.5rem, 6.2vw, 4.7rem);
  line-height: 1.08;
  font-weight: 700;
}

h2.section-title {
  font-size: clamp(1.9rem, 3.8vw, 2.9rem);
  margin: 14px 0 18px;
  font-weight: 700;
}

.text-gold, .text-accent {
  background: var(--accent-grad);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: textShimmer 7s linear infinite;
}
@keyframes textShimmer { to { background-position: 200% center; } }
.text-gold em, em.text-gold { font-style: italic; }

.lead { color: var(--muted); font-size: clamp(1rem, 1.4vw, 1.15rem); max-width: 640px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 14px;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.32em;
  text-transform: uppercase; color: var(--accent);
}
.eyebrow::before, .eyebrow.solo::after {
  content: ""; flex: 0 0 auto; width: 15px; height: 16px; background: currentColor;
  -webkit-mask: var(--x-mark) center / contain no-repeat;
  mask: var(--x-mark) center / contain no-repeat;
}

/* ---------- 4. Layout utilities ---------- */
.container { width: min(1180px, 92vw); margin-inline: auto; }
.section { padding: clamp(72px, 10vw, 128px) 0; position: relative; overflow: hidden; overflow: clip; }
.section-alt { background: var(--bg-1); }

.section-head { max-width: 720px; margin-bottom: clamp(40px, 6vw, 64px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head.center .lead { margin-inline: auto; }

/* Ambient glows & grain */
.glow { position: absolute; border-radius: 50%; filter: blur(90px); pointer-events: none; z-index: 0; }
.glow-gold { background: radial-gradient(circle, rgba(215, 38, 61, 0.08), transparent 70%); }
.glow-violet { background: radial-gradient(circle, rgba(14, 14, 30, 0.06), transparent 70%); }

.grain::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
}

/* ---------- 5. Buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 34px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 700; font-size: 0.95rem; letter-spacing: 0.04em; cursor: pointer;
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease), background 0.3s, color 0.3s, border-color 0.3s;
  overflow: hidden; white-space: nowrap;
}
.btn svg { width: 17px; height: 17px; transition: transform 0.4s var(--ease); }
.btn:hover svg { transform: translateX(4px); }

.btn-gold {
  background: var(--ink-grad); color: var(--on-ink);
  box-shadow: 0 10px 30px -10px rgba(14, 14, 18, 0.45);
}
.btn-gold::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.35) 50%, transparent 70%);
  transform: translateX(-130%); transition: transform 0.8s var(--ease);
}
.btn-gold:hover { transform: translateY(-3px); box-shadow: var(--shadow-accent); background: var(--accent-grad); color: #fff; }
.btn-gold:hover::after { transform: translateX(130%); }

.btn-ghost { border-color: var(--line-strong); color: var(--ink); background: var(--surface); }
.btn-ghost:hover { background: var(--ink); border-color: var(--ink); color: var(--on-ink); transform: translateY(-3px); box-shadow: 0 14px 34px -12px rgba(14,14,18,.4); }

.btn-sm { padding: 11px 24px; font-size: 0.85rem; }

.link-more {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 18px;
  font-weight: 700; font-size: 0.92rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink);
}
.link-more svg { width: 15px; height: 15px; transition: transform 0.35s var(--ease); color: var(--accent); }
.link-more:hover { color: var(--accent); }
.link-more:hover svg { transform: translateX(6px); }

/* ---------- 6. Preloader ---------- */
#preloader {
  position: fixed; inset: 0; z-index: 4000; display: grid; place-items: center;
  background: var(--bg-0);
  transition: opacity 0.6s ease, visibility 0.6s;
}
#preloader.done { opacity: 0; visibility: hidden; }
.pre-logo { text-align: center; }
.pre-mark { height: 58px; width: auto; margin-inline: auto; }
.pre-bar { width: 150px; height: 2px; margin: 22px auto 0; background: var(--line); overflow: hidden; border-radius: 2px; }
.pre-bar i { display: block; width: 40%; height: 100%; background: var(--accent-grad); animation: preSlide 1.1s ease-in-out infinite; }
@keyframes prePulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.55; } }
@keyframes preSlide { 0% { transform: translateX(-120%); } 100% { transform: translateX(360%); } }

/* ---------- 7. Custom cursor ---------- */
.cursor-dot, .cursor-ring { position: fixed; top: 0; left: 0; z-index: 5000; pointer-events: none; border-radius: 50%; display: none; }
@media (hover: hover) and (pointer: fine) {
  .cursor-dot, .cursor-ring { display: block; }
  .cursor-dot { width: 6px; height: 6px; background: var(--accent); margin: -3px 0 0 -3px; }
  .cursor-ring {
    width: 38px; height: 38px; margin: -19px 0 0 -19px;
    border: 1px solid rgba(215, 38, 61, 0.55);
    transition: width 0.3s, height 0.3s, margin 0.3s, border-color 0.3s, background 0.3s;
  }
  .cursor-ring.hovering { width: 58px; height: 58px; margin: -29px 0 0 -29px; border-color: var(--accent); background: rgba(215, 38, 61, 0.07); }
}

/* ---------- 8. Navigation ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000; height: var(--nav-h);
  display: flex; align-items: center;
  transition: background 0.45s ease, border-color 0.45s ease, height 0.35s ease, transform 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: var(--nav-bg);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  border-bottom-color: var(--line);
  height: 68px;
}
.nav.hidden { transform: translateY(-100%); }

.nav-inner { width: min(1180px, 92vw); margin-inline: auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-logo {
  height: 44px; width: auto;
  transition: height 0.35s var(--ease), transform 0.45s var(--ease);
}
.nav.scrolled .brand-logo { height: 38px; }
.brand:hover .brand-logo { transform: translateY(-2px) scale(1.02); }
.footer .footer-logo { height: 52px; }

.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
  position: relative; padding: 10px 16px; font-size: 0.92rem; font-weight: 600; letter-spacing: 0.05em;
  color: var(--muted); transition: color 0.3s;
}
.nav-links a::after {
  content: ""; position: absolute; left: 16px; right: 16px; bottom: 4px; height: 1.5px;
  background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform 0.4s var(--ease);
}
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }

.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-phone { display: inline-flex; align-items: center; gap: 8px; font-size: 0.88rem; font-weight: 600; color: var(--muted); }
.nav-phone svg { width: 15px; height: 15px; color: var(--accent); }
.nav-phone:hover { color: var(--accent-dark); }

.burger {
  display: none; width: 46px; height: 46px; border: 1px solid var(--line-strong); background: var(--surface);
  border-radius: 12px; cursor: pointer; position: relative; z-index: 1102;
}
.burger span {
  position: absolute; left: 12px; right: 12px; height: 2px; background: var(--ink);
  transition: transform 0.4s var(--ease), top 0.4s var(--ease), opacity 0.3s;
}
.burger span:nth-child(1) { top: 16px; }
.burger span:nth-child(2) { top: 22px; }
.burger span:nth-child(3) { top: 28px; }
.burger.open span:nth-child(1) { top: 22px; transform: rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { top: 22px; transform: rotate(-45deg); }

/* Theme toggle (light/dark) */
.theme-toggle {
  width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-strong);
  background: var(--surface); color: var(--text); cursor: pointer; display: grid; place-items: center;
  transition: color 0.3s, border-color 0.3s, transform 0.5s var(--ease), background 0.3s;
}
.theme-toggle:hover { color: var(--accent); border-color: rgba(215, 38, 61, 0.45); transform: rotate(20deg); }
.theme-toggle svg { width: 19px; height: 19px; grid-area: 1 / 1; transition: opacity 0.3s, transform 0.5s var(--ease); }
.theme-toggle .ico-sun { opacity: 0; transform: rotate(120deg) scale(0.4); }
html.dark .theme-toggle .ico-sun { opacity: 1; transform: none; }
html.dark .theme-toggle .ico-moon { opacity: 0; transform: rotate(-120deg) scale(0.4); }

/* Mobile overlay menu */
.mobile-menu {
  position: fixed; inset: 0; z-index: 1100; background: var(--menu-bg);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  display: flex; flex-direction: column; justify-content: center; padding: 100px 8vw 60px;
  opacity: 0; visibility: hidden; transition: opacity 0.45s ease, visibility 0.45s;
}
.mobile-menu.open { opacity: 1; visibility: visible; }
.mobile-menu a.mobile-link {
  font-family: var(--font-display); font-size: clamp(1.9rem, 7vw, 2.6rem); font-weight: 700; color: var(--ink);
  padding: 10px 0; display: flex; align-items: baseline; gap: 16px;
  transform: translateY(30px); opacity: 0; transition: transform 0.5s var(--ease), opacity 0.5s, color 0.3s;
}
.mobile-menu.open a.mobile-link { transform: translateY(0); opacity: 1; transition-delay: calc(0.08s * var(--i)); }
.mobile-menu a.mobile-link:hover, .mobile-menu a.mobile-link.active { color: var(--accent); }
.mobile-menu a.mobile-link small { font-size: 0.85rem; font-family: var(--font-body); color: var(--accent); letter-spacing: 0.2em; }
.mobile-menu .mm-contact { margin-top: 34px; color: var(--muted); font-size: 0.95rem; }
.mobile-menu .mm-contact a { color: var(--ink); font-weight: 700; }
.mobile-menu .mm-contact a:hover { color: var(--accent); }

/* ---------- 9. Hero (home) ---------- */
.hero {
  position: relative; min-height: 100svh; display: flex; flex-direction: column;
  justify-content: center; padding: calc(var(--nav-h) + 30px) 0 60px; overflow: clip;
  background:
    radial-gradient(58% 42% at 82% 8%, rgba(215, 38, 61, 0.06), transparent 60%),
    radial-gradient(52% 46% at 12% 88%, rgba(14, 14, 30, 0.05), transparent 62%),
    var(--bg-0);
}
#hero-canvas { position: absolute; inset: 0; z-index: 0; }

.hero .container { position: relative; z-index: 2; }
.hero-content { max-width: 860px; }

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 12px; padding: 9px 22px;
  border: 1px solid rgba(215, 38, 61, 0.3); border-radius: 999px;
  background: var(--accent-soft);
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.28em; text-transform: uppercase; color: var(--accent-dark);
}
.hero-eyebrow .dot { width: 11px; height: 12px; color: var(--accent); animation: pulseX 2s ease-in-out infinite; }
@keyframes pulseX { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.5; transform: scale(0.82); } }

.hero h1.display { margin: 28px 0 22px; }
.hero h1 .w { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: 0.12em; margin-bottom: -0.12em; }
.hero h1 .w > span { display: inline-block; transform: translateY(115%); }
.hero.ready h1 .w > span {
  animation: wordUp 0.9s var(--ease) forwards;
  animation-delay: calc(0.07s * var(--i));
}
@keyframes wordUp { to { transform: translateY(0); } }

.hero-sub { color: var(--muted); font-size: clamp(1rem, 1.5vw, 1.18rem); max-width: 620px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 38px; }

.hero-stats {
  position: relative; z-index: 2; margin-top: clamp(48px, 8vh, 84px);
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--line-strong); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden;
}
.hero-stats .stat-cell { background: var(--bg-0); padding: 22px 26px; transition: background 0.3s; }
.hero-stats .stat-cell:hover { background: var(--accent-soft); }
.stat-cell .num { font-family: var(--font-display); font-size: clamp(1.5rem, 2.6vw, 2.1rem); font-weight: 700; }
.stat-cell .lbl { font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted-2); margin-top: 4px; }

.hero-scroll {
  position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 3;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-size: 0.68rem; letter-spacing: 0.32em; text-transform: uppercase; color: var(--muted-2);
}
.hero-scroll .line { width: 1px; height: 44px; background: linear-gradient(var(--accent), transparent); overflow: hidden; position: relative; }
.hero-scroll .line::after { content: ""; position: absolute; top: -50%; left: 0; width: 100%; height: 50%; background: var(--accent-dark); animation: scrollHint 1.8s ease-in-out infinite; }
@keyframes scrollHint { 0% { top: -50%; } 100% { top: 110%; } }

/* Rotating badge */
.hero-badge {
  position: absolute; right: clamp(20px, 6vw, 90px); bottom: clamp(90px, 16vh, 150px); z-index: 3;
  width: 128px; height: 128px; display: grid; place-items: center;
}
.hero-badge .ring { position: absolute; inset: 0; animation: spin 26s linear infinite; }
.hero-badge .core {
  width: 74px; height: 74px; border-radius: 50%; display: grid; place-items: center;
  background: var(--ink-grad); color: var(--on-ink); box-shadow: 0 12px 30px -10px rgba(14,14,18,.5);
}
.hero-badge .core svg { width: 30px; height: 32px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- 10. Marquee (clients) ---------- */
.marquee-section { border-block: 1px solid var(--line); padding: 26px 0; background: var(--bg-1); overflow: hidden; }
.marquee { display: flex; width: max-content; animation: marquee 34s linear infinite; }
.marquee-section:hover .marquee { animation-play-state: paused; }
.marquee .m-item {
  display: inline-flex; align-items: center; gap: 14px; padding: 0 44px;
  font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; letter-spacing: 0.14em;
  color: var(--muted-2); white-space: nowrap; transition: color 0.3s;
}
.marquee .m-item:hover { color: var(--ink); }
.marquee .m-item::after {
  content: ""; flex: 0 0 auto; width: 11px; height: 12px; background: var(--accent);
  -webkit-mask: var(--x-mark) center / contain no-repeat;
  mask: var(--x-mark) center / contain no-repeat;
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- 11. About intro ---------- */
.about-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(40px, 6vw, 84px); align-items: center; }

.about-art { position: relative; aspect-ratio: 4/4.6; }
.art-card {
  position: absolute; border-radius: var(--radius); overflow: hidden; border: 1px solid rgba(0, 0, 0, 0.5);
  box-shadow: var(--shadow-card);
}
.art-1 { inset: 0 22% 24% 0; background: linear-gradient(160deg, #1c1c24, #0c0c10); display: grid; place-items: center; }
.art-2 { inset: 22% 0 0 26%; background: linear-gradient(25deg, #241218, #120d10 60%, #0d0b0e); display: grid; place-items: center; transform: translateZ(0); }
.art-1 svg, .art-2 svg { width: 46%; height: auto; opacity: 0.9; }
.about-art .float-tag {
  position: absolute; z-index: 5; right: -6px; top: 12%;
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--ink-grad); color: var(--on-ink); font-weight: 800; font-size: 0.85rem;
  padding: 10px 18px; border-radius: 999px; box-shadow: 0 14px 34px -10px rgba(14,14,18,.55);
  animation: floaty 5s ease-in-out infinite;
}
.about-art .float-tag::before {
  content: ""; width: 10px; height: 11px; background: currentColor;
  -webkit-mask: var(--x-mark) center / contain no-repeat;
  mask: var(--x-mark) center / contain no-repeat;
}
.about-art .float-tag.alt { left: -6px; right: auto; top: auto; bottom: 10%; background: var(--surface); color: var(--ink); border: 1px solid var(--line-strong); animation-delay: 2.4s; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

.about-copy p + p { margin-top: 16px; }
.about-points { margin-top: 28px; display: grid; gap: 14px; }
.about-points li { display: flex; gap: 14px; align-items: flex-start; color: var(--muted); }
.about-points .pt-ico {
  flex: 0 0 auto; width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center;
  background: var(--accent-soft); border: 1px solid rgba(215, 38, 61, 0.25);
}
.about-points .pt-ico svg { width: 17px; height: 17px; color: var(--accent); }
.about-points strong { display: block; color: var(--text); }

.signature { margin-top: 30px; display: flex; align-items: center; gap: 18px; }
.signature .sig-name { font-family: var(--font-display); font-style: italic; font-weight: 700; font-size: 1.45rem; color: var(--ink); }
.signature .sig-role { font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted-2); }

/* ---------- 12. Service cards ---------- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }

.svc-card {
  position: relative; padding: 34px 30px 30px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line); overflow: hidden;
  transform-style: preserve-3d; transition: transform 0.5s var(--ease), border-color 0.4s, box-shadow 0.5s;
}
.svc-card::before {
  content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity 0.5s;
  background: radial-gradient(420px 200px at var(--mx, 50%) var(--my, 0%), rgba(215, 38, 61, 0.08), transparent 65%);
  pointer-events: none;
}
.svc-card:hover { border-color: rgba(215, 38, 61, 0.35); box-shadow: var(--shadow-card); transform: translateY(-8px); }
.svc-card:hover::before { opacity: 1; }

.svc-num {
  position: absolute; top: 18px; right: 22px; font-family: var(--font-display);
  font-size: 2.6rem; font-weight: 800; color: rgba(14, 14, 18, 0.06); transition: color 0.4s;
}
.svc-card:hover .svc-num { color: rgba(215, 38, 61, 0.16); }

.svc-ico {
  width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 22px;
  background: var(--accent-soft); border: 1px solid rgba(215, 38, 61, 0.25);
  transition: transform 0.45s var(--ease), background 0.4s;
}
.svc-ico svg { width: 26px; height: 26px; color: var(--accent); transition: transform 0.45s var(--ease); }
.svc-card:hover .svc-ico { transform: rotate(-6deg) scale(1.08); background: rgba(215, 38, 61, 0.15); }
.svc-card:hover .svc-ico svg { transform: scale(1.12); }

.svc-card h3 { font-size: 1.32rem; margin-bottom: 10px; }
.svc-card p { color: var(--muted); font-size: 0.95rem; }
.svc-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.svc-tags span {
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.05em; color: var(--muted-2);
  padding: 5px 12px; border: 1px solid var(--line); border-radius: 999px; transition: color 0.3s, border-color 0.3s;
}
.svc-card:hover .svc-tags span { color: var(--accent-dark); border-color: rgba(215, 38, 61, 0.3); }

/* ---------- 13. Stats band ---------- */
.stats-band {
  position: relative; overflow: hidden; border-block: 1px solid var(--line);
  background:
    radial-gradient(60% 90% at 50% 0%, rgba(215, 38, 61, 0.05), transparent 70%),
    var(--bg-1);
  padding: clamp(54px, 8vw, 88px) 0;
}
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; text-align: center; }
.stat .stat-num {
  font-family: var(--font-display); font-size: clamp(2.4rem, 4.5vw, 3.6rem); font-weight: 700;
  display: inline-flex; align-items: baseline; gap: 2px;
}
.stat .stat-num .suffix { font-size: 0.55em; color: var(--accent); }
.stat .stat-lbl { margin-top: 6px; color: var(--muted); font-size: 0.88rem; letter-spacing: 0.12em; text-transform: uppercase; }
.stat { position: relative; padding: 10px 0; }
.stat:not(:last-child)::after {
  content: ""; position: absolute; right: -15px; top: 20%; bottom: 20%; width: 1px;
  background: linear-gradient(transparent, var(--line-strong), transparent);
}

/* ---------- 14. Process ---------- */
.process-wrap { position: relative; }
.process-line {
  position: absolute; left: 29px; top: 10px; bottom: 10px; width: 2px;
  background: linear-gradient(var(--accent), rgba(215, 38, 61, 0.1));
  transform-origin: top; transform: scaleY(0); transition: transform 0.25s linear;
}
.process-list { display: grid; gap: 12px; }
.p-step { display: grid; grid-template-columns: 60px 1fr; gap: 26px; align-items: start; padding: 18px 0; }
.p-dot {
  position: relative; z-index: 2; width: 60px; height: 60px; border-radius: 50%;
  display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: 1.15rem;
  background: var(--surface); border: 1px solid var(--line-strong); color: var(--ink);
  transition: transform 0.45s var(--ease), background 0.4s, color 0.4s, border-color 0.4s, box-shadow 0.4s;
}
.p-step:hover .p-dot { transform: scale(1.12); background: var(--accent-grad); color: #fff; border-color: transparent; box-shadow: var(--shadow-accent); }
.p-body { padding-top: 6px; }
.p-body h3 { font-size: 1.35rem; margin-bottom: 8px; transition: color 0.3s; }
.p-step:hover .p-body h3 { color: var(--accent-dark); }
.p-body p { color: var(--muted); font-size: 0.97rem; max-width: 640px; }
.p-tag {
  display: inline-block; margin-top: 12px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--muted-2);
}

/* ---------- 15. Portfolio ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 44px; }
.filter-btn {
  padding: 10px 22px; border-radius: 999px; border: 1px solid var(--line-strong);
  background: transparent; color: var(--muted); font-size: 0.85rem; font-weight: 600; letter-spacing: 0.04em;
  cursor: pointer; transition: all 0.35s var(--ease);
}
.filter-btn:hover { color: var(--accent-dark); border-color: rgba(215, 38, 61, 0.5); transform: translateY(-2px); }
.filter-btn.active { background: var(--accent-grad); color: #fff; border-color: transparent; box-shadow: 0 8px 22px -8px rgba(215, 38, 61, 0.5); }

.works-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.work-card {
  position: relative; border-radius: var(--radius); overflow: hidden; cursor: pointer;
  border: 1px solid var(--line); aspect-ratio: 4/4.7;
  transform-style: preserve-3d; transition: transform 0.55s var(--ease), box-shadow 0.55s, border-color 0.4s, opacity 0.4s;
}
.work-card.hide { display: none; }
.work-card:hover { border-color: rgba(215, 38, 61, 0.4); box-shadow: var(--shadow-card); }

.work-art { position: absolute; inset: 0; transition: transform 0.8s var(--ease); }
.work-card:hover .work-art { transform: scale(1.07); }

/* AI photos: monochrome by default, color blooms on hover */
.work-art img, .art-card img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(1) contrast(1.06);
  transition: filter 0.7s var(--ease);
}
.work-card:hover .work-art img, .art-card:hover img { filter: grayscale(0.1) contrast(1.03); }
.work-art svg.scene { display: none; }
.art-1 svg, .art-2 svg { display: none; }

/* art themes — dark "photo frames" on the light page */
.art-corporate { background: linear-gradient(155deg, #1c1d24 0%, #0e0f15 55%, #0b0b10 100%); }
.art-wedding { background: radial-gradient(120% 100% at 20% 0%, #2a161d 0%, #141014 50%, #0d0b0e 100%); }
.art-launch { background: radial-gradient(110% 110% at 80% 10%, #221a2c 0%, #141220 55%, #0d0c11 100%); }
.art-expo { background: linear-gradient(200deg, #121d24 0%, #0e1218 60%, #0a0d10 100%); }
.art-private { background: radial-gradient(120% 110% at 60% 0%, #25161c 0%, #161013 55%, #0e0c0e 100%); }
.art-festival { background: linear-gradient(160deg, #262014 0%, #171208 55%, #0e0c08 100%); }

.work-art svg.scene { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.8; }
.work-shine {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: radial-gradient(360px 260px at var(--mx, 50%) var(--my, 50%), rgba(255, 120, 135, 0.14), transparent 70%);
  opacity: 0; transition: opacity 0.5s;
}
.work-card:hover .work-shine { opacity: 1; }

.work-info {
  position: absolute; z-index: 3; inset-inline: 0; bottom: 0; padding: 26px;
  background: linear-gradient(transparent, rgba(8, 8, 12, 0.94) 55%);
}
.work-cat { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.24em; text-transform: uppercase; color: var(--accent-light); }
.work-info h3 { font-size: 1.45rem; margin: 8px 0 6px; color: #fff; }
.work-meta { display: flex; flex-wrap: wrap; gap: 14px; color: #b6b3bd; font-size: 0.82rem; }
.work-meta span { display: inline-flex; align-items: center; gap: 6px; }
.work-meta svg { width: 13px; height: 13px; color: var(--accent-light); }

/* ---------- 16. Testimonials ---------- */
.testi-wrap { position: relative; max-width: 860px; margin-inline: auto; }
.testi-viewport { overflow: hidden; }
.testi-track { display: flex; transition: transform 0.7s var(--ease); }
.testi-slide { flex: 0 0 100%; padding: 6px; }
.testi-card {
  padding: clamp(30px, 5vw, 52px); border-radius: var(--radius); text-align: center;
  background: var(--surface); border: 1px solid var(--line); position: relative;
  box-shadow: 0 10px 40px -24px rgba(10, 10, 20, 0.25);
}
.testi-card .quote-ico { width: 46px; height: 46px; margin: 0 auto 20px; color: var(--accent); opacity: 0.9; }
.testi-card blockquote { font-family: var(--font-display); font-size: clamp(1.05rem, 2.1vw, 1.35rem); font-weight: 600; font-style: italic; line-height: 1.6; color: var(--quote-color); }
.testi-who { margin-top: 26px; display: flex; align-items: center; justify-content: center; gap: 14px; }
.testi-avatar {
  width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center;
  font-weight: 800; font-size: 0.95rem; color: var(--on-ink); background: var(--ink-grad);
}
.testi-name { text-align: left; }
.testi-name b { display: block; font-size: 0.98rem; }
.testi-name span { font-size: 0.8rem; color: var(--muted-2); }
.testi-stars { color: var(--accent); letter-spacing: 4px; margin-top: 14px; font-size: 0.9rem; }

.testi-controls { display: flex; justify-content: center; gap: 10px; margin-top: 30px; }
.testi-dot { width: 34px; height: 4px; border-radius: 4px; background: var(--line-strong); border: 0; cursor: pointer; transition: background 0.3s, width 0.3s; }
.testi-dot.active { background: var(--accent); width: 52px; }

/* ---------- 17. CTA band (dark closing moment) ---------- */
.cta-band {
  position: relative; overflow: hidden; text-align: center;
  padding: clamp(72px, 11vw, 128px) 0;
  background:
    radial-gradient(70% 120% at 50% 100%, rgba(215, 38, 61, 0.22), transparent 70%),
    #0c0c10;
  border-block: 1px solid #0c0c10;
}
.cta-band h2 { font-size: clamp(2rem, 4.6vw, 3.4rem); max-width: 800px; margin: 18px auto 20px; color: #fff; }
.cta-band .text-gold, .cta-band .text-accent {
  background: linear-gradient(105deg, #ff9aa7 0%, #ff5f70 45%, #e04458 100%);
  background-size: 200% auto;
  -webkit-background-clip: text; background-clip: text;
}
.cta-band .lead { margin-inline: auto; color: #b6b3bd; }
.cta-band .eyebrow { color: var(--accent-light); }
.cta-band .btn-gold {
  background: #fff; color: #0e0e12; box-shadow: 0 10px 30px -10px rgba(255, 255, 255, 0.25);
}
.cta-band .btn-gold:hover { background: var(--accent-grad); color: #fff; box-shadow: 0 18px 50px -12px rgba(215, 38, 61, 0.6); }

/* ---------- 18. Page hero (subpages) ---------- */
.page-hero {
  position: relative; padding: calc(var(--nav-h) + clamp(56px, 9vw, 96px)) 0 clamp(48px, 7vw, 80px);
  overflow: clip; text-align: center;
  background:
    radial-gradient(55% 65% at 50% -10%, rgba(215, 38, 61, 0.07), transparent 65%),
    radial-gradient(40% 50% at 85% 20%, rgba(14, 14, 30, 0.04), transparent 60%),
    var(--bg-0);
  border-bottom: 1px solid var(--line);
}
.page-hero h1 { font-size: clamp(2.4rem, 5.4vw, 4rem); margin: 18px 0 16px; }
.page-hero .lead { margin-inline: auto; }
.crumbs { display: inline-flex; align-items: center; gap: 10px; font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted-2); }
.crumbs a:hover { color: var(--accent-dark); }
.crumbs i {
  display: inline-block; width: 9px; height: 10px; background: var(--accent); font-style: normal;
  -webkit-mask: var(--x-mark) center / contain no-repeat;
  mask: var(--x-mark) center / contain no-repeat;
}
.x-inline { display: inline-block; width: 12px; height: 13px; color: var(--accent); vertical-align: -2px; }

/* ---------- 19. Services page ---------- */
.svc-detailed { display: grid; gap: 24px; }
.svc-row {
  display: grid; grid-template-columns: 74px 1.1fr 1fr; gap: 28px; align-items: start;
  padding: 34px; border-radius: var(--radius); border: 1px solid var(--line);
  background: var(--surface);
  transition: transform 0.5s var(--ease), border-color 0.4s, box-shadow 0.5s;
}
.svc-row:hover { transform: translateY(-5px); border-color: rgba(215, 38, 61, 0.35); box-shadow: var(--shadow-card); }
.svc-row .svc-ico { margin-bottom: 0; width: 66px; height: 66px; }
.svc-row h2 { font-size: 1.55rem; margin-bottom: 10px; }
.svc-row .svc-desc { color: var(--muted); font-size: 0.97rem; }
.svc-row .svc-list { display: grid; gap: 9px; margin-top: 4px; }
.svc-row .svc-list li { display: flex; align-items: flex-start; gap: 10px; color: var(--muted); font-size: 0.9rem; }
.svc-row .svc-list svg { width: 15px; height: 15px; color: var(--accent); flex: 0 0 auto; margin-top: 5px; }

.svc-group-title {
  font-family: var(--font-display); font-size: clamp(1.5rem, 3vw, 2rem); color: var(--ink);
  margin: clamp(36px, 5vw, 56px) 0 22px; display: flex; align-items: center; gap: 18px;
}
.svc-group-title::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* ---------- 20. About page ---------- */
.values-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.value-card {
  padding: 30px 26px; border-radius: var(--radius); text-align: center; border: 1px solid var(--line);
  background: var(--surface);
  transition: transform 0.5s var(--ease), border-color 0.4s, box-shadow 0.5s;
}
.value-card:hover { transform: translateY(-8px); border-color: rgba(215, 38, 61, 0.35); box-shadow: var(--shadow-card); }
.value-card .v-ico { width: 54px; height: 54px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); border: 1px solid rgba(215, 38, 61, 0.25); }
.value-card .v-ico svg { width: 24px; height: 24px; color: var(--accent); }
.value-card h3 { font-size: 1.2rem; margin-bottom: 8px; }
.value-card p { font-size: 0.9rem; color: var(--muted); }

.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.team-card {
  text-align: center; padding: 34px 26px; border-radius: var(--radius); border: 1px solid var(--line);
  background: var(--surface);
  transition: transform 0.5s var(--ease), border-color 0.4s, box-shadow 0.5s;
}
.team-card:hover { transform: translateY(-8px); border-color: rgba(215, 38, 61, 0.35); box-shadow: var(--shadow-card); }
.team-avatar {
  width: 96px; height: 96px; margin: 0 auto 20px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; font-size: 1.6rem; color: var(--on-ink);
  background: var(--ink-grad); box-shadow: 0 12px 30px -12px rgba(14, 14, 18, 0.55);
  transition: transform 0.5s var(--ease), background 0.4s;
}
.team-card:hover .team-avatar { transform: scale(1.08) rotate(-5deg); background: var(--accent-grad); }
.team-card h3 { font-size: 1.25rem; }
.team-role { color: var(--accent-dark); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; margin: 6px 0 12px; }
.team-card p { font-size: 0.9rem; color: var(--muted); }

.milestones { position: relative; padding-left: 10px; }
.milestone { display: grid; grid-template-columns: 120px 1fr; gap: 26px; padding: 16px 0; border-bottom: 1px dashed var(--line-strong); }
.milestone:last-child { border-bottom: 0; }
.m-year { font-family: var(--font-display); font-size: 1.9rem; font-weight: 700; color: var(--accent); }
.milestone h3 { font-size: 1.2rem; margin-bottom: 6px; }
.milestone p { color: var(--muted); font-size: 0.94rem; }

/* ---------- 21. Contact page ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(30px, 5vw, 60px); align-items: start; }

.info-cards { display: grid; gap: 16px; margin-bottom: 30px; }
.info-card {
  display: flex; gap: 18px; align-items: flex-start; padding: 22px 24px; border-radius: var(--radius-sm);
  border: 1px solid var(--line); background: var(--surface); transition: border-color 0.4s, transform 0.4s var(--ease), box-shadow 0.4s;
}
.info-card:hover { border-color: rgba(215, 38, 61, 0.4); transform: translateX(6px); box-shadow: var(--shadow-card); }
.info-card .ic { flex: 0 0 auto; width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); border: 1px solid rgba(215, 38, 61, 0.25); }
.info-card .ic svg { width: 20px; height: 20px; color: var(--accent); }
.info-card h3 { font-size: 1.05rem; margin-bottom: 4px; }
.info-card p, .info-card a { color: var(--muted); font-size: 0.92rem; }
.info-card a:hover { color: var(--accent-dark); }

.social-row { display: flex; gap: 12px; }
.social-row a {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  border: 1px solid var(--line-strong); color: var(--ink);
  transition: all 0.4s var(--ease);
}
.social-row a:hover { background: var(--accent-grad); color: #fff; border-color: transparent; transform: translateY(-4px) rotate(6deg); box-shadow: var(--shadow-accent); }
.social-row svg { width: 19px; height: 19px; }

.form-card {
  padding: clamp(26px, 4vw, 44px); border-radius: var(--radius); border: 1px solid var(--line);
  background: var(--surface); box-shadow: var(--shadow-card);
}
.form-card h2 { font-size: 1.6rem; margin-bottom: 8px; }
.form-card > p { color: var(--muted); font-size: 0.95rem; margin-bottom: 28px; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.field label b { color: var(--accent); }
.field input, .field select, .field textarea {
  width: 100%; padding: 14px 18px; border-radius: var(--radius-sm);
  background: var(--bg-2); border: 1px solid var(--line-strong); color: var(--text);
  transition: border-color 0.3s, box-shadow 0.3s, background 0.3s;
}
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23d7263d' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 18px center; }
.field select option { background: var(--surface); color: var(--text); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(215, 38, 61, 0.12); background: #fff;
}
.field textarea { min-height: 130px; resize: vertical; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--accent); background: rgba(215, 38, 61, 0.04); }
.field .err { font-size: 0.78rem; color: var(--accent-dark); display: none; }
.field.invalid .err { display: block; }

.form-success {
  display: none; text-align: center; padding: 40px 20px;
}
.form-card.sent form { display: none; }
.form-card.sent .form-success { display: block; animation: popIn 0.7s var(--ease); }
.form-success .ok-ico {
  width: 74px; height: 74px; margin: 0 auto 22px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent-grad); color: #fff; box-shadow: var(--shadow-accent);
}
.form-success .ok-ico svg { width: 34px; height: 34px; }
.form-success h3 { font-size: 1.5rem; margin-bottom: 10px; }
.form-success p { color: var(--muted); }
@keyframes popIn { from { transform: scale(0.9); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* FAQ */
.faq-list { max-width: 820px; margin-inline: auto; display: grid; gap: 14px; }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); overflow: hidden; transition: border-color 0.35s, box-shadow 0.35s; }
.faq-item.open { border-color: rgba(215, 38, 61, 0.4); box-shadow: 0 12px 34px -22px rgba(215, 38, 61, 0.5); }
.faq-q {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 18px;
  padding: 20px 24px; background: none; border: 0; cursor: pointer; text-align: left;
  font-family: var(--font-display); font-size: 1.08rem; font-weight: 700; color: var(--text);
}
.faq-q .fx {
  flex: 0 0 auto; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid rgba(215, 38, 61, 0.35); color: var(--accent); font-size: 1.1rem; font-weight: 400;
  transition: transform 0.45s var(--ease), background 0.3s, color 0.3s;
}
.faq-item.open .fx { transform: rotate(45deg); background: var(--accent-grad); color: #fff; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.55s var(--ease); }
.faq-a p { padding: 0 24px 22px; color: var(--muted); font-size: 0.95rem; }

/* ---------- 22. Footer ---------- */
.footer { position: relative; background: #0a0a0d; border-top: 3px solid var(--accent); overflow: hidden; }
.footer-grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px;
  padding: clamp(54px, 7vw, 84px) 0 44px;
}
.footer-desc { color: #a3a3ad; font-size: 0.92rem; margin: 18px 0 24px; max-width: 300px; }
.footer h4 { font-family: var(--font-body); font-size: 0.82rem; font-weight: 800; letter-spacing: 0.22em; text-transform: uppercase; color: #fff; margin-bottom: 20px; }
.footer-links { display: grid; gap: 11px; }
.footer-links a { color: #a3a3ad; font-size: 0.92rem; transition: color 0.3s, transform 0.3s var(--ease); display: inline-block; }
.footer-links a:hover { color: var(--accent-light); transform: translateX(5px); }
.footer-contact li { display: flex; gap: 12px; color: #a3a3ad; font-size: 0.9rem; margin-bottom: 13px; align-items: flex-start; }
.footer-contact svg { width: 16px; height: 16px; color: var(--accent-light); flex: 0 0 auto; margin-top: 4px; }
.footer-contact a { color: #a3a3ad; }
.footer-contact a:hover { color: var(--accent-light); }

.footer .social-row a { border-color: rgba(255, 255, 255, 0.18); color: #d4d4dc; }
.footer .social-row a:hover { background: var(--accent-grad); color: #fff; border-color: transparent; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08); padding: 22px 0;
  display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; align-items: center;
  color: #74747e; font-size: 0.82rem;
}
.footer-bottom a { color: #a3a3ad; }
.footer-bottom a:hover { color: var(--accent-light); }
.footer-watermark {
  position: absolute; bottom: -50px; left: 50%; transform: translateX(-50%);
  width: min(520px, 72vw); aspect-ratio: 205.97 / 220.2;
  color: rgba(255, 255, 255, 0.04); pointer-events: none; user-select: none;
}

/* ---------- 23. Reveal-on-scroll ---------- */
[data-reveal] {
  opacity: 0; transform: translateY(34px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: calc(0.09s * var(--d, 0));
  will-change: opacity, transform;
}
[data-reveal="left"] { transform: translateX(-44px); }
[data-reveal="right"] { transform: translateX(44px); }
[data-reveal="zoom"] { transform: scale(0.92); }
[data-reveal].revealed { opacity: 1; transform: none; }

/* ---------- 24. Responsive ---------- */
@media (max-width: 1080px) {
  .services-grid, .works-grid, .team-grid { grid-template-columns: repeat(2, 1fr); }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .svc-row { grid-template-columns: 66px 1fr; }
  .svc-row .svc-list { grid-column: 2; margin-top: 6px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-phone { display: none; }
}

@media (max-width: 900px) {
  .nav-links, .nav .nav-cta .btn { display: none; }
  .burger { display: block; }
  .brand-logo { height: 36px; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:not(:last-child)::after { display: none; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .hero-badge { display: none; }
}

@media (max-width: 640px) {
  body { font-size: 1rem; }
  .services-grid, .works-grid, .team-grid, .form-grid, .values-grid { grid-template-columns: 1fr; }
  .svc-row { grid-template-columns: 1fr; padding: 26px; }
  .svc-row .svc-list { grid-column: 1; }
  .p-step { grid-template-columns: 46px 1fr; gap: 16px; }
  .p-dot { width: 46px; height: 46px; font-size: 1rem; }
  .process-line { left: 22px; }
  .milestone { grid-template-columns: 1fr; gap: 4px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .stat-cell { padding: 16px 18px; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .hero-actions .btn { width: 100%; }
  .work-card { aspect-ratio: 4/5; }
  .btn { padding: 14px 28px; }
  .brand-logo { height: 32px; }
  .footer .footer-logo { height: 44px; }
}

/* ---------- 25. Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  .hero h1 .w > span { transform: none; }
}

/* ---------- 26. Short viewports — compact hero so stats stay in frame ---------- */
@media (max-height: 840px) and (min-width: 901px) {
  .hero { padding-top: calc(var(--nav-h) + 12px); padding-bottom: 40px; }
  .hero h1.display { margin: 20px 0 16px; }
  .hero-sub { margin-top: 2px; }
  .hero-actions { margin-top: 26px; }
  .hero-stats { margin-top: 36px; }
  .hero-scroll { display: none; }
}

/* ---------- 27. Dark theme ---------- */
html.dark {
  color-scheme: dark;
  --bg-0: #0b0b0f;
  --bg-1: #101016;
  --bg-2: #16161d;
  --surface: #121218;
  --surface-2: #1a1a22;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.18);
  --text: #f1f0f5;
  --ink: #f1f0f5;
  --muted: #a7a6b3;
  --muted-2: #6e6d78;
  --accent: #ff4d63;
  --accent-dark: #ff8b97;   /* hover red gets LIGHTER on dark backgrounds */
  --accent-light: #ff8b97;
  --accent-soft: rgba(255, 77, 99, 0.12);
  --accent-grad: linear-gradient(105deg, #ff8b97 0%, #ff4d63 45%, #d7263d 100%);
  --ink-grad: linear-gradient(105deg, #ffffff, #eceaf2 55%, #f8f7fb);
  --on-ink: #0e0e12;
  --nav-bg: rgba(11, 11, 15, 0.85);
  --menu-bg: rgba(11, 11, 15, 0.96);
  --scroll-thumb: #3a3a45;
  --quote-color: #e9e8ef;
  --shadow-accent: 0 18px 50px -12px rgba(255, 77, 99, 0.45);
  --shadow-card: 0 24px 60px -20px rgba(0, 0, 0, 0.65);
}

/* brand assets: all logos are inline SVGs that self-theme via currentColor — no invert filters needed */

/* ambient scenes re-tuned for dark */
html.dark .hero {
  background:
    radial-gradient(58% 42% at 82% 8%, rgba(255, 77, 99, 0.12), transparent 60%),
    radial-gradient(52% 46% at 12% 88%, rgba(255, 255, 255, 0.05), transparent 62%),
    var(--bg-0);
}
html.dark .page-hero {
  background:
    radial-gradient(55% 65% at 50% -10%, rgba(255, 77, 99, 0.1), transparent 65%),
    radial-gradient(40% 50% at 85% 20%, rgba(255, 255, 255, 0.04), transparent 60%),
    var(--bg-0);
}
html.dark .stats-band {
  background:
    radial-gradient(60% 90% at 50% 0%, rgba(255, 77, 99, 0.08), transparent 70%),
    var(--bg-1);
}
html.dark .glow-violet { background: radial-gradient(circle, rgba(255, 255, 255, 0.05), transparent 70%); }
html.dark .grain::after { filter: invert(1); opacity: 0.2; }
html.dark .svc-num { color: rgba(255, 255, 255, 0.07); }
html.dark .svc-card:hover .svc-num { color: rgba(255, 77, 99, 0.28); }
html.dark .hero-badge .ring text { fill: rgba(241, 240, 245, 0.55); }
html.dark .btn-gold { box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.6); }

/* ---------- 28. Motion extras ---------- */
/* scroll progress bar */
#scroll-progress {
  position: fixed; top: 0; left: 0; z-index: 2000; width: 100%; height: 3px;
  background: var(--accent-grad); transform: scaleX(0); transform-origin: 0 50%;
  pointer-events: none;
}

/* preloader percentage */
.pre-count {
  display: block; margin-top: 12px; font-family: var(--font-display); font-weight: 700;
  font-size: 0.82rem; letter-spacing: 0.3em; color: var(--muted);
}

/* photo curtain reveal on scroll */
.work-card[data-reveal] .art-img, .about-art .art-card img {
  clip-path: inset(0 0 100% 0); transform: scale(1.12);
  transition: clip-path 1s var(--ease), transform 1.4s var(--ease), filter 0.7s var(--ease);
}
.work-card.revealed .art-img, .about-art.revealed .art-card img { clip-path: inset(0); transform: scale(1); }

/* button click ripple */
.ripple {
  position: absolute; border-radius: 50%; background: currentColor; opacity: 0.3;
  transform: scale(0); animation: rippleGo 0.65s ease-out forwards; pointer-events: none;
}
@keyframes rippleGo { to { transform: scale(3); opacity: 0; } }

/* back to top */
#to-top {
  position: fixed; right: 28px; bottom: 96px; z-index: 900; width: 48px; height: 48px;
  border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center;
  background: var(--ink-grad); color: var(--on-ink); box-shadow: 0 14px 34px -12px rgba(14, 14, 18, 0.5);
  opacity: 0; visibility: hidden; transform: translateY(18px) scale(0.9);
  transition: opacity 0.4s, visibility 0.4s, transform 0.5s var(--ease), background 0.3s, color 0.3s, box-shadow 0.4s;
}
#to-top.show { opacity: 1; visibility: visible; transform: none; }
#to-top:hover { background: var(--accent-grad); color: #fff; transform: translateY(-4px); box-shadow: var(--shadow-accent); }
#to-top svg { width: 20px; height: 20px; }

/* smooth theme morph */
body, .footer, .cta-band { transition: background-color 0.5s ease, color 0.5s ease, border-color 0.5s ease; }

@media (prefers-reduced-motion: reduce) {
  .process-line { transform: none; }
  .text-gold, .text-accent, .cta-band .text-gold, .cta-band .text-accent { animation: none; }
  .work-card[data-reveal] .art-img, .about-art .art-card img { clip-path: none; transform: none; }
}

/* ---------- 29. Animated inline logo (preloader + header) ---------- */
.logo-svg { display: block; width: auto; color: var(--text); fill: currentColor; }
.logo-svg .lg-line { stroke: var(--accent); }
.logo-svg .lg-p, .logo-svg .lg-line { transform-box: fill-box; transform-origin: center; }

.brand .nav-logo { height: 44px; color: var(--text); transition: height 0.35s var(--ease); }
.nav.scrolled .brand .nav-logo { height: 38px; }
.pre-mark.logo-svg { height: 80px; color: var(--text); }

/* preloader: logo assembles piece by piece */
.pre-mark .lg-p { opacity: 0; animation: lgRise 0.65s var(--ease) both; animation-delay: calc(0.09s * var(--li)); }
.pre-mark .lg-line { opacity: 0; transform: scaleY(0); animation: lgDraw 0.45s ease-out 0.52s both; }
.pre-mark .xa { opacity: 0; animation: lgInA 0.6s cubic-bezier(0.3, 1.6, 0.5, 1) 0.8s both; }
.pre-mark .xb { opacity: 0; animation: lgInB 0.55s cubic-bezier(0.3, 1.6, 0.5, 1) 0.96s both; }
.pre-mark .xc { opacity: 0; animation: lgInC 0.55s cubic-bezier(0.3, 1.6, 0.5, 1) 1.1s both; }

/* header: cascade plays as the preloader fades */
body.loaded .nav .nav-logo .lg-letters .lg-p { animation: lgRise 0.55s var(--ease) both; animation-delay: calc(0.055s * var(--li)); }
body.loaded .nav .nav-logo .lg-line { animation: lgDraw 0.4s ease-out 0.3s both; }
body.loaded .nav .nav-logo .xa { animation: lgInA 0.55s cubic-bezier(0.3, 1.6, 0.5, 1) 0.4s both; }
body.loaded .nav .nav-logo .xb { animation: lgInB 0.5s cubic-bezier(0.3, 1.6, 0.5, 1) 0.54s both; }
body.loaded .nav .nav-logo .xc { animation: lgInC 0.5s cubic-bezier(0.3, 1.6, 0.5, 1) 0.66s both; }
body.loaded .nav .nav-logo.settled .lg-p, body.loaded .nav .nav-logo.settled .lg-line { animation: none; opacity: 1; transform: none; }

/* header hover: replay the full loading assembly */
.brand:hover .nav-logo.settled .lg-letters .lg-p { animation: lgRise 0.5s var(--ease) both; animation-delay: calc(0.05s * var(--li)); }
.brand:hover svg.nav-logo.settled .lg-line { animation: lgDraw 0.35s ease-out 0.26s both; }
.brand:hover svg.nav-logo.settled .lg-x .xa { animation: lgInA 0.5s cubic-bezier(0.3, 1.6, 0.5, 1) 0.4s both; }
.brand:hover svg.nav-logo.settled .lg-x .xb { animation: lgInB 0.45s cubic-bezier(0.3, 1.6, 0.5, 1) 0.52s both; }
.brand:hover svg.nav-logo.settled .lg-x .xc { animation: lgInC 0.45s cubic-bezier(0.3, 1.6, 0.5, 1) 0.64s both; }

@keyframes lgRise { from { opacity: 0; transform: translateY(90px); } to { opacity: 1; transform: none; } }
@keyframes lgDraw { from { opacity: 0; transform: scaleY(0); } to { opacity: 1; transform: scaleY(1); } }
@keyframes lgInA { from { opacity: 0; transform: translate(-120px, 16px) rotate(-14deg); } to { opacity: 1; transform: none; } }
@keyframes lgInB { from { opacity: 0; transform: translate(84px, 60px); } to { opacity: 1; transform: none; } }
@keyframes lgInC { from { opacity: 0; transform: translate(84px, -60px); } to { opacity: 1; transform: none; } }

/* footer: assembles when scrolled into view, replays on hover — always white on the black footer */
.footer .footer-logo { color: #ffffff; }
.footer-logo.armed .lg-p, .footer-logo.armed .lg-line { opacity: 0; }
.footer-logo.armed.revealed .lg-letters .lg-p { animation: lgRise 0.55s var(--ease) both; animation-delay: calc(0.055s * var(--li)); }
.footer-logo.armed.revealed .lg-line { animation: lgDraw 0.4s ease-out 0.3s both; }
.footer-logo.armed.revealed .xa { animation: lgInA 0.55s cubic-bezier(0.3, 1.6, 0.5, 1) 0.4s both; }
.footer-logo.armed.revealed .xb { animation: lgInB 0.5s cubic-bezier(0.3, 1.6, 0.5, 1) 0.54s both; }
.footer-logo.armed.revealed .xc { animation: lgInC 0.5s cubic-bezier(0.3, 1.6, 0.5, 1) 0.66s both; }
body.loaded .footer-logo.settled .lg-p, body.loaded .footer-logo.settled .lg-line { animation: none; opacity: 1; transform: none; }
.brand:hover .footer-logo.settled .lg-letters .lg-p { animation: lgRise 0.5s var(--ease) both; animation-delay: calc(0.05s * var(--li)); }
.brand:hover .footer-logo.settled .lg-line { animation: lgDraw 0.35s ease-out 0.26s both; }
.brand:hover svg.footer-logo.settled .lg-x .xa { animation: lgInA 0.5s cubic-bezier(0.3, 1.6, 0.5, 1) 0.4s both; }
.brand:hover svg.footer-logo.settled .lg-x .xb { animation: lgInB 0.45s cubic-bezier(0.3, 1.6, 0.5, 1) 0.52s both; }
.brand:hover svg.footer-logo.settled .lg-x .xc { animation: lgInC 0.45s cubic-bezier(0.3, 1.6, 0.5, 1) 0.64s both; }

@media (max-width: 900px) { .brand .nav-logo { height: 36px; } }
@media (max-width: 640px) { .brand .nav-logo { height: 32px; } }

/* ---------- 30. Language switcher & Arabic (RTL) ---------- */
.lang-switch {
  display: inline-flex; align-items: center; padding: 9px 18px; border-radius: 999px;
  border: 1px solid var(--line-strong); color: var(--ink); font-weight: 700; font-size: 0.82rem;
  transition: color 0.3s, border-color 0.3s, background 0.3s;
}
.lang-switch:hover { color: #fff; background: var(--ink); border-color: var(--ink); }

/* Arabic typography: Cairo/Tajawal replace Chakra/Inter; spacing resets for connected script */
[dir="rtl"] { --font-display: "Cairo", "Chakra Petch", sans-serif; --font-body: "Tajawal", "Cairo", "Inter", sans-serif; }
[dir="rtl"] * { letter-spacing: normal !important; }
/* in RTL, overflow toward the left is scrollable — clip it document-wide */
html[dir="rtl"], html[dir="rtl"] body { overflow-x: clip; }
[dir="rtl"] .display, [dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3, [dir="rtl"] .section-title { font-weight: 700; line-height: 1.35; }

/* mirrored positions */
[dir="rtl"] .process-line { left: auto; right: 29px; }
[dir="rtl"] .hero-badge { right: auto; left: clamp(20px, 6vw, 90px); }
[dir="rtl"] .about-art .float-tag { right: auto; left: -6px; }
[dir="rtl"] .about-art .float-tag.alt { left: auto; right: -6px; }
[dir="rtl"] .art-1 { inset: 0 0 24% 22%; }
[dir="rtl"] .art-2 { inset: 22% 26% 0 0; }
[dir="rtl"] .svc-num { right: auto; left: 22px; }
[dir="rtl"] .testi-name { text-align: right; }
[dir="rtl"] .field select { background-position: left 18px center; }
[dir="rtl"] .info-card:hover { transform: translateX(-6px); }
[dir="rtl"] .footer-links a:hover { transform: translateX(-5px); }
[dir="rtl"] #scroll-progress { transform-origin: 100% 50%; }
[dir="rtl"] .lang-switch { font-weight: 700; }
[dir="rtl"] .btn:hover svg { transform: translateX(-4px); }

@media (max-width: 1080px) { [dir="rtl"] .footer-links a:hover { transform: none; } }

/* ---------- 31. Quote popup modal ---------- */
.quote-overlay {
  position: fixed; inset: 0; z-index: 1600; display: grid; place-items: center; padding: 20px;
  background: rgba(8, 8, 15, 0.55);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  opacity: 0; visibility: hidden; transition: opacity 0.35s ease, visibility 0.35s;
}
.quote-overlay.open { opacity: 1; visibility: visible; }
.quote-modal {
  position: relative; width: min(640px, 94vw); max-height: min(88vh, 800px); overflow-y: auto;
  transform: translateY(26px) scale(0.96); transition: transform 0.45s var(--ease);
}
.quote-overlay.open .quote-modal { transform: none; }
.quote-close {
  position: absolute; top: 14px; inset-inline-end: 14px; width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--text); cursor: pointer;
  display: grid; place-items: center; transition: color 0.3s, background 0.3s, transform 0.35s var(--ease);
}
.quote-close:hover { color: #fff; background: var(--accent-grad); border-color: transparent; transform: rotate(90deg); }
.quote-close svg { width: 16px; height: 16px; }
.quote-modal h2 { font-size: 1.5rem; margin-bottom: 6px; }
.quote-modal .q-sub { color: var(--muted); font-size: 0.95rem; margin-bottom: 24px; }
.quote-modal .field.full.q-foot { display: flex; flex-direction: column; gap: 14px; }
.quote-modal .q-full { text-align: center; font-size: 0.85rem; color: var(--muted); }
.quote-modal .q-full a { color: var(--accent-dark); font-weight: 700; }
.quote-modal .q-full a:hover { text-decoration: underline; }
@media (max-width: 560px) { .quote-modal .form-grid { grid-template-columns: 1fr; } }

/* honeypot spam trap — invisible to humans, bots fill it and get silently dropped */
.hp { position: fixed; top: -9999px; left: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

/* delivery failure notice (shown only when the server says the email failed) */
.send-fail {
  display: none; margin-top: 14px; padding: 12px 16px; border-radius: 10px;
  background: rgba(215, 38, 61, 0.07); border: 1px solid rgba(215, 38, 61, 0.35);
  color: var(--accent-dark); font-size: 0.88rem; font-weight: 600;
}
.send-fail.show { display: block; }
.send-fail a { text-decoration: underline; }

/* ---------- 32. WhatsApp floating chat button ---------- */
#wa-float {
  position: fixed; right: 24px; bottom: 24px; z-index: 950; width: 58px; height: 58px;
  border-radius: 50%; background: var(--ink-grad); color: var(--on-ink); display: grid; place-items: center;
  box-shadow: 0 12px 32px -8px rgba(14, 14, 18, 0.5);
  transition: transform 0.4s var(--ease), box-shadow 0.3s, background 0.3s, color 0.3s;
}
#wa-float:hover { transform: translateY(-4px) scale(1.07); background: var(--accent-grad); color: #fff; box-shadow: var(--shadow-accent); }
#wa-float svg { width: 30px; height: 30px; }
#wa-float::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid var(--ink); animation: waPulse 2.2s ease-out infinite;
}
@keyframes waPulse { from { transform: scale(1); opacity: 0.7; } to { transform: scale(1.5); opacity: 0; } }
[dir="rtl"] #wa-float { right: auto; left: 24px; }
[dir="rtl"] #to-top { right: auto; left: 28px; }
