/* ==========================================================================
   Djums Digital — design system (HTML/CSS/JS pur, sans framework)
   ========================================================================== */

/* --- Reset --- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html,
body,
h1,
h2,
h3,
p,
figure,
blockquote,
dl,
dd {
  margin: 0;
}
ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

/* --- Design tokens --- */
:root {
  --navy: #021772;
  --ink: #010e47;
  --black: #06070f;
  --gold: #f0b841;
  --gold-light: #f7d88a;
  --gold-deep: #d99a2b;
  --mist: #efeae1;
  --sand: #ece7dd;
  --paper: #f6f4ef;
  --white: #ffffff;
  --text: #141414;

  /* Surfaces & hairlines — premium depth */
  --surface-light: #fbfbfd;
  --hairline-dark: rgba(255, 255, 255, 0.1);
  --hairline-light: rgba(2, 23, 114, 0.12);
  --gold-grad: linear-gradient(135deg, var(--gold-light), var(--gold) 55%, var(--gold-deep));

  --font-heading: "Space Grotesk", "Sora", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, sans-serif;
  --font-serif: "Instrument Serif", Georgia, "Times New Roman", serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.4, 0.5, 1);
  --container: 1240px;

  /* Radius scale */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-pill: 999px;

  /* Layered shadow system — soft, multi-stop reads as premium */
  --shadow-xs: 0 1px 2px rgba(4, 8, 30, 0.05);
  --shadow-sm: 0 2px 6px -2px rgba(4, 8, 30, 0.08), 0 4px 12px -4px rgba(4, 8, 30, 0.06);
  --shadow-md: 0 6px 16px -6px rgba(4, 8, 30, 0.12), 0 14px 32px -12px rgba(4, 8, 30, 0.1);
  --shadow-lg: 0 16px 34px -12px rgba(4, 8, 30, 0.2), 0 34px 68px -28px rgba(4, 8, 30, 0.24);
  --shadow-gold: 0 10px 26px -8px rgba(240, 184, 65, 0.45), 0 2px 6px -2px rgba(240, 184, 65, 0.3);

  --fs-display: clamp(3.1rem, 3vw + 2.2rem, 7.5rem);
  --fs-h1: clamp(2.7rem, 2.4vw + 2rem, 5.25rem);
  --fs-h2: clamp(2.05rem, 1.6vw + 1.5rem, 3.4rem);
  --fs-h3: clamp(1.2rem, 0.4vw + 1rem, 1.5rem);
  --fs-lead: clamp(1.05rem, 0.3vw + 0.95rem, 1.3rem);
  --fs-ghost: clamp(5rem, 7vw, 9.5rem);
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--paper);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "kern", "liga", "calt";
}

p {
  text-wrap: pretty;
}

h1,
h2,
h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
/* Optical tightening grows with type size for a refined display feel */
h1 {
  letter-spacing: -0.032em;
}
.hero h1 {
  letter-spacing: -0.038em;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 1.4rem;
}
@media (min-width: 768px) {
  .container {
    padding-inline: 2.5rem;
  }
}

.section {
  position: relative;
  padding-block: clamp(5rem, 7.5vw, 8.5rem);
  overflow: hidden;
}
.section--tight {
  padding-block: clamp(3rem, 5vw, 5rem);
}

.bg-navy {
  background: var(--navy);
  color: var(--white);
}
.bg-ink {
  background: var(--ink);
  color: var(--white);
}
.bg-white {
  background: var(--paper);
  color: var(--text);
}
.bg-paper {
  background: var(--paper);
  color: var(--text);
}
.bg-cream {
  background: var(--sand);
  color: var(--text);
}
.bg-gold {
  background: var(--gold);
  color: var(--navy);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.72rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.1rem;
}
.eyebrow::before {
  content: "";
  width: 1.8rem;
  height: 1px;
  background: currentColor;
  opacity: 0.55;
}
.bg-gold .eyebrow {
  color: var(--navy);
}

.lead {
  font-size: var(--fs-lead);
  line-height: 1.6;
  max-width: 42ch;
}
.lead--center {
  margin-inline: auto;
  text-align: center;
}

.text-gold {
  color: var(--gold);
}
/* Editorial serif accent (leftcoast-style emphasis words) */
.accent-serif {
  font-family: var(--font-serif);
  font-weight: 400;
  font-style: italic;
  letter-spacing: 0;
}
.muted {
  opacity: 0.72;
}

.dot {
  color: var(--gold);
}

/* --- Grain texture --- */
.grain {
  position: relative;
}
.grain::before {
  content: "";
  position: absolute;
  inset: -10%;
  pointer-events: none;
  opacity: 0.4;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.4'/></svg>");
}

/* --- Decorative blobs --- */
.blob {
  position: absolute;
  border-radius: 50%;
  border: 56px solid var(--gold);
  opacity: 0.08;
  pointer-events: none;
}
.blob--a {
  animation: blobFloatA 16s ease-in-out infinite;
}
.blob--b {
  animation: blobFloatB 19s ease-in-out infinite;
}
@keyframes blobFloatA {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(36px, -28px) scale(1.08);
  }
}
@keyframes blobFloatB {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(-28px, 34px) scale(1.05);
  }
}

/* --- Ghost numerals (typographic graphic device) --- */
.ghost-number {
  font-family: var(--font-heading);
  font-size: var(--fs-ghost);
  font-weight: 800;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px currentColor;
  opacity: 0.16;
}
.bg-white .ghost-number,
.bg-mist .ghost-number {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--navy);
  opacity: 0.14;
}

/* --- Scroll progress bar --- */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--gold), var(--gold-light), var(--gold));
  z-index: 70;
  transition: width 0.1s linear;
}

/* --- Custom cursor --- */
.cursor-dot,
.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  border-radius: 50%;
  z-index: 65;
  transform: translate(-50%, -50%);
}
.cursor-dot {
  width: 7px;
  height: 7px;
  background: var(--gold);
}
.cursor-ring {
  width: 34px;
  height: 34px;
  border: 1.5px solid rgba(240, 184, 65, 0.6);
  transition: transform 0.18s var(--ease), opacity 0.18s var(--ease), border-color 0.18s var(--ease), background 0.18s var(--ease);
}
.cursor-ring.is-hover {
  transform: translate(-50%, -50%) scale(1.7);
  background: rgba(240, 184, 65, 0.12);
  border-color: var(--gold);
}
@media (hover: none), (pointer: coarse) {
  .cursor-dot,
  .cursor-ring {
    display: none;
  }
}
html.has-cursor,
html.has-cursor a,
html.has-cursor button {
  cursor: none;
}

/* ==========================================================================
   Header / nav
   ========================================================================== */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  padding-block: 1.4rem;
  transition: background-color 0.4s var(--ease), padding 0.4s var(--ease), border-color 0.4s var(--ease), backdrop-filter 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.header.is-scrolled {
  padding-block: 0.85rem;
  background: rgba(1, 14, 71, 0.72);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 12px 34px -16px rgba(0, 0, 0, 0.55);
}
.header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.logo {
  height: 34px;
  width: auto;
  display: block;
}
.nav {
  display: none;
  align-items: center;
  gap: 2.2rem;
}
.nav__link {
  position: relative;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--white);
  padding-block: 0.4rem;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.nav__link:hover::after,
.nav__link.is-active::after {
  transform: scaleX(1);
}
.nav__link.is-active {
  color: var(--gold);
}
.header__cta {
  display: none;
}
.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 0;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--white);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 55;
  background: var(--ink);
  display: flex;
  flex-direction: column;
  padding: 6.5rem 1.4rem 2rem;
  transform: translateY(-100%);
  transition: transform 0.45s var(--ease);
}
.mobile-nav.is-open {
  transform: translateY(0);
}
.mobile-nav__link {
  font-family: var(--font-heading);
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--white);
  padding-block: 0.6rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.mobile-nav__link.is-active {
  color: var(--gold);
}

@media (min-width: 1024px) {
  .nav {
    display: flex;
  }
  .header__cta {
    display: inline-flex;
  }
  .nav-toggle {
    display: none;
  }
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 1.7rem;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 600;
  overflow: hidden;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background-color 0.25s var(--ease);
  white-space: nowrap;
}
.btn:hover {
  transform: translateY(-2px);
}
.btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(115deg, transparent 0%, rgba(255, 255, 255, 0.55) 50%, transparent 100%);
  transform: skewX(-20deg);
  transition: left 0.65s ease;
}
.btn:hover::after {
  left: 125%;
}
.btn--primary {
  background: var(--gold-grad);
  color: var(--navy);
  box-shadow: var(--shadow-sm);
}
.btn--primary:hover {
  box-shadow: var(--shadow-gold);
}
.btn--ghost-light {
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: var(--white);
}
.btn--ghost-light:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}
.btn--ghost-dark {
  border: 1.5px solid rgba(2, 23, 114, 0.3);
  color: var(--navy);
}
.btn--ghost-dark:hover {
  border-color: var(--navy);
  background: rgba(2, 23, 114, 0.05);
}
.btn--whatsapp {
  background: #25d366;
  color: #fff;
  width: 100%;
  justify-content: center;
}
.btn--block {
  width: 100%;
  justify-content: center;
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  background:
    radial-gradient(120% 100% at 85% -10%, rgba(240, 184, 65, 0.18), transparent 52%),
    radial-gradient(90% 80% at -5% 115%, rgba(41, 66, 168, 0.5), transparent 60%),
    linear-gradient(160deg, var(--ink), var(--navy) 62%);
  color: var(--white);
  padding-top: clamp(7.5rem, 12vw, 11rem);
  padding-bottom: clamp(4rem, 7vw, 6rem);
}
.hero__grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}
@media (min-width: 1024px) {
  .hero__grid--split {
    grid-template-columns: 1.1fr 0.9fr;
  }
}
.hero h1 {
  font-size: var(--fs-display);
}
.hero h1 .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.4em);
  filter: blur(6px);
  animation: wordIn 0.7s var(--ease) forwards;
}
@keyframes wordIn {
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.4rem;
}
.hero__sub {
  margin-top: 1.6rem;
}
.scroll-cue {
  display: none;
  margin: 3rem auto 0;
  width: 26px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  position: relative;
}
.scroll-cue span {
  position: absolute;
  top: 7px;
  left: 50%;
  width: 5px;
  height: 5px;
  margin-left: -2.5px;
  border-radius: 50%;
  background: var(--gold);
  animation: scrollCue 1.6s ease-in-out infinite;
}
@keyframes scrollCue {
  0% {
    transform: translateY(0);
    opacity: 1;
  }
  70% {
    transform: translateY(14px);
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}
@media (min-width: 768px) {
  .scroll-cue {
    display: block;
  }
}

/* --- Hero visual --- */
.hero-visual {
  position: relative;
  max-width: 420px;
  margin-inline: auto;
  padding: 1.5rem 0;
}
.device-card {
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.035));
  padding: 1rem;
  box-shadow: 0 24px 50px -18px rgba(0, 0, 0, 0.55), 0 50px 90px -40px rgba(0, 0, 0, 0.5);
}
.device-card__dots {
  display: flex;
  gap: 6px;
  margin-bottom: 0.8rem;
}
.device-card__dots span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
}
.device-card__body {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 10px;
  padding: 1.1rem;
}
.skeleton-line {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
  margin-bottom: 10px;
}
.skeleton-line--gold {
  background: rgba(240, 184, 65, 0.7);
  width: 60%;
  height: 11px;
}
.skeleton-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 14px;
}
.skeleton-grid div {
  height: 60px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}
.skeleton-grid div:last-child {
  background: rgba(240, 184, 65, 0.18);
}
.device-card--phone {
  position: absolute;
  width: 120px;
  bottom: -38px;
  right: -20px;
  z-index: 3;
  display: none;
  animation: floatY 5s ease-in-out infinite;
  animation-delay: 0.6s;
}
.badge-chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--white);
  color: var(--navy);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  box-shadow: 0 16px 28px -10px rgba(0, 0, 0, 0.4);
  animation: floatY 5s ease-in-out infinite;
  z-index: 4;
}
.badge-chip--gold {
  background: var(--gold);
}
.badge-chip--top {
  top: -6px;
  left: -10px;
  animation-delay: 1s;
}
.badge-chip--mid {
  top: 45%;
  right: -16px;
  display: none;
  animation-delay: 1.6s;
}
@keyframes floatY {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}
@media (min-width: 640px) {
  .device-card--phone {
    display: block;
  }
}
@media (min-width: 1024px) {
  .badge-chip--mid {
    display: inline-flex;
  }
}

/* ==========================================================================
   Marquee
   ========================================================================== */
.marquee {
  background: var(--black);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  padding-block: 1rem;
}
.marquee__track {
  display: flex;
  width: max-content;
  gap: 3rem;
  animation: marquee 30s linear infinite;
}
.marquee__track span {
  display: flex;
  align-items: center;
  gap: 3rem;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  white-space: nowrap;
}
.marquee__track span i {
  color: var(--gold);
  font-style: normal;
}
@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

/* ==========================================================================
   Editorial "constat" — bloc plein doré
   ========================================================================== */
.statement {
  text-align: left;
}
.statement h2 {
  font-size: clamp(2.2rem, 3vw, 3.6rem);
  max-width: 18ch;
}
.statement__row {
  display: grid;
  gap: 2rem;
}
@media (min-width: 900px) {
  .statement__row {
    grid-template-columns: 1.3fr 1fr;
    align-items: end;
  }
}

/* ==========================================================================
   Services — bento panels
   ========================================================================== */
.bento {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 640px) {
  .bento {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1100px) {
  .bento {
    grid-template-columns: repeat(4, 1fr);
  }
}
.panel {
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--r-md);
  padding: 2.2rem 1.8rem;
  overflow: hidden;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
  transition: border-color 0.4s var(--ease), background-color 0.4s var(--ease), transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.panel:hover {
  border-color: rgba(240, 184, 65, 0.6);
  transform: translateY(-6px);
  box-shadow: 0 22px 44px -20px rgba(0, 0, 0, 0.55);
}
.panel__index {
  position: absolute;
  top: -0.4rem;
  right: 0.6rem;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 5.5rem;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.18);
  line-height: 1;
}
.panel__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: rgba(240, 184, 65, 0.12);
  color: var(--gold);
  margin-bottom: 1.4rem;
  position: relative;
  z-index: 1;
  transition: background-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.panel:hover .panel__icon {
  background: var(--gold);
  color: var(--navy);
  transform: rotate(6deg) scale(1.05);
}
.panel h3 {
  position: relative;
  z-index: 1;
  font-size: var(--fs-h3);
  margin-bottom: 0.7rem;
}
.panel p {
  position: relative;
  z-index: 1;
  opacity: 0.75;
  font-size: 0.95rem;
}
.panel__link {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1.4rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--gold);
}
.panel__link svg {
  transition: transform 0.25s var(--ease);
}
.panel:hover .panel__link svg {
  transform: translateX(4px);
}
.panel--light {
  border-color: var(--hairline-light);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}
.panel--light .panel__index {
  -webkit-text-stroke: 1px rgba(2, 23, 114, 0.14);
}
.panel--light:hover {
  border-color: rgba(2, 23, 114, 0.35);
  box-shadow: var(--shadow-md);
}
.panel--light h3 {
  color: var(--navy);
}
.panel--light .panel__link {
  color: var(--navy);
}

/* ==========================================================================
   Why us — editorial numbered list (light section)
   ========================================================================== */
.why-list {
  display: grid;
  gap: 2.4rem;
  margin-top: 3rem;
}
@media (min-width: 768px) {
  .why-list {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1100px) {
  .why-list {
    grid-template-columns: repeat(4, 1fr);
  }
}
.why-item {
  position: relative;
  padding-top: 1.6rem;
  border-top: 2px solid rgba(2, 23, 114, 0.12);
}
.why-item__num {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--gold);
  letter-spacing: 0.1em;
}
.why-item h3 {
  font-size: 1.2rem;
  color: var(--navy);
  margin-top: 0.6rem;
}
.why-item p {
  margin-top: 0.5rem;
  font-size: 0.92rem;
  opacity: 0.72;
}

/* ==========================================================================
   Portfolio / gallery
   ========================================================================== */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
  margin-bottom: 2.6rem;
}
.filter-btn {
  padding: 0.55rem 1.2rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid rgba(2, 23, 114, 0.18);
  color: var(--navy);
  transition: background-color 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease);
}
.filter-btn:hover {
  border-color: rgba(2, 23, 114, 0.4);
}
.filter-btn.is-active {
  background: var(--gold-grad);
  border-color: transparent;
  color: var(--navy);
  box-shadow: var(--shadow-sm);
}
.gallery {
  display: grid;
  gap: 1.4rem;
  grid-template-columns: 1fr;
}
@media (min-width: 700px) {
  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1100px) {
  .gallery {
    grid-template-columns: repeat(3, 1fr);
  }
}
.gallery-card {
  position: relative;
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.gallery-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.gallery-card__media {
  position: relative;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--navy), var(--ink));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.gallery-card__media span {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}
.gallery-card__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: rgba(2, 23, 114, 0.92);
  color: var(--white);
  font-weight: 600;
  font-size: 0.9rem;
  transform: translateY(100%);
  transition: transform 0.35s var(--ease);
}
.gallery-card:hover .gallery-card__overlay {
  transform: translateY(0);
}
.gallery-card__body {
  padding: 1.1rem 1.2rem;
  background: var(--mist);
}
.gallery-card__cat {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}
.gallery-card__name {
  margin-top: 0.2rem;
  font-weight: 700;
  color: var(--navy);
}
.gallery-card.is-hidden {
  display: none;
}

/* ==========================================================================
   Testimonials
   ========================================================================== */
.testimonial {
  background: var(--white);
  border: 1px solid var(--hairline-light);
  border-radius: var(--r-md);
  padding: 1.9rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.testimonial:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.testimonial svg {
  color: var(--gold);
  margin-bottom: 1rem;
}
.testimonial blockquote {
  flex: 1;
  font-size: 0.95rem;
  opacity: 0.85;
}
.testimonial figcaption {
  margin-top: 1.2rem;
  font-size: 0.88rem;
}
.testimonial figcaption b {
  color: var(--navy);
}

/* ==========================================================================
   Value / team cards
   ========================================================================== */
.value-grid,
.team-grid {
  display: grid;
  gap: 1.6rem;
  margin-top: 3rem;
}
@media (min-width: 700px) {
  .value-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .team-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (min-width: 1024px) {
  .value-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
.value-card {
  border: 1px solid var(--hairline-light);
  border-radius: var(--r-md);
  padding: 1.8rem;
  text-align: center;
  box-shadow: var(--shadow-xs);
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.value-card:hover {
  border-color: var(--gold);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.value-card h3 {
  color: var(--navy);
  font-size: 1.15rem;
}
.value-card p {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  opacity: 0.72;
}
.team-card {
  text-align: center;
}
.team-card__avatar {
  width: 92px;
  height: 92px;
  margin-inline: auto;
  border-radius: 50%;
  background: radial-gradient(120% 120% at 30% 25%, #0a2aa0, var(--navy) 65%);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  border: 3px solid transparent;
  box-shadow: var(--shadow-md);
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.team-card:hover .team-card__avatar {
  border-color: var(--gold);
  transform: translateY(-3px);
}
.team-card h3 {
  margin-top: 1.2rem;
  font-size: 1.1rem;
  color: var(--navy);
}
.team-card p {
  margin-top: 0.4rem;
  font-size: 0.9rem;
  opacity: 0.72;
}

/* ==========================================================================
   Service detail
   ========================================================================== */
.check-list {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}
@media (min-width: 700px) {
  .check-list {
    grid-template-columns: repeat(2, 1fr);
  }
}
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  font-size: 0.97rem;
}
.check-list svg {
  flex-shrink: 0;
  margin-top: 0.2rem;
  color: var(--gold);
}
.process-list {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}
.process-list li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.process-list b {
  flex-shrink: 0;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}
.faq-item {
  padding-block: 1.5rem;
  border-bottom: 1px solid rgba(2, 23, 114, 0.1);
}
.faq-item dt {
  font-weight: 700;
  color: var(--navy);
}
.faq-item dd {
  margin-top: 0.5rem;
  font-size: 0.95rem;
  opacity: 0.75;
}

/* ==========================================================================
   Contact
   ========================================================================== */
.form-grid {
  display: grid;
  gap: 3rem;
}
@media (min-width: 1024px) {
  .form-grid {
    grid-template-columns: 1.6fr 1fr;
  }
}
.field {
  margin-bottom: 1.3rem;
}
.field label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--navy);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(2, 23, 114, 0.18);
  border-radius: var(--r-sm);
  background: var(--white);
  box-shadow: var(--shadow-xs);
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(2, 23, 114, 0.12);
}
.field-row {
  display: grid;
  gap: 1.3rem;
}
@media (min-width: 600px) {
  .field-row {
    grid-template-columns: 1fr 1fr;
  }
}
.required {
  color: var(--gold);
}
.form-status {
  margin-top: 1rem;
  font-size: 0.9rem;
}
.form-status[data-state="error"] {
  color: #c0392b;
}
.form-status[data-state="success"] {
  background: var(--mist);
  border-radius: 12px;
  padding: 1.6rem;
  color: var(--navy);
}
.contact-card {
  background: var(--mist);
  border: 1px solid var(--hairline-light);
  border-radius: var(--r-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}
.contact-card h2 {
  font-size: 1.25rem;
  color: var(--navy);
}
.contact-card dl {
  margin-top: 1.6rem;
}
.contact-card dt {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--navy);
  margin-top: 1.3rem;
}
.contact-card dt:first-child {
  margin-top: 0;
}
.contact-card dd {
  margin-top: 0.3rem;
  font-size: 0.92rem;
  opacity: 0.78;
}
.contact-card dd a {
  text-decoration: underline;
  text-decoration-color: transparent;
  transition: text-decoration-color 0.25s var(--ease);
}
.contact-card dd a:hover {
  text-decoration-color: currentColor;
}
.reassurance {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.8rem;
}
.reassurance span {
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  padding: 0.4rem 1rem;
  font-size: 0.78rem;
  font-weight: 600;
}

/* ==========================================================================
   CTA underline squiggle
   ========================================================================== */
.squiggle-wrap {
  position: relative;
  display: inline-block;
}
.squiggle-wrap svg {
  position: absolute;
  left: 0;
  bottom: -0.35em;
  width: 100%;
  height: 0.3em;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  background: var(--ink);
  color: var(--white);
}
.footer__grid {
  display: grid;
  gap: 2.5rem;
  padding-block: 4rem;
}
@media (min-width: 700px) {
  .footer__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .footer__grid {
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
  }
}
.footer h3 {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.1rem;
}
.footer__about p {
  margin-top: 1rem;
  max-width: 26ch;
  font-size: 0.9rem;
  opacity: 0.7;
}
.footer__links {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  font-size: 0.92rem;
  opacity: 0.85;
}
.footer__links a:hover {
  opacity: 0.7;
}
.social-row {
  display: flex;
  gap: 0.9rem;
  margin-top: 1.3rem;
}
.social-row a {
  opacity: 0.75;
  transition: opacity 0.25s var(--ease), color 0.25s var(--ease);
}
.social-row a:hover {
  opacity: 1;
  color: var(--gold);
}
.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-block: 1.4rem;
  font-size: 0.78rem;
  opacity: 0.6;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: space-between;
}

/* ==========================================================================
   WhatsApp float button
   ========================================================================== */
.whatsapp-float {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 50;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px -8px rgba(0, 0, 0, 0.4);
  animation: pulseRing 2.4s cubic-bezier(0.4, 0, 0.6, 1) infinite;
  transition: transform 0.25s var(--ease);
}
.whatsapp-float:hover {
  transform: scale(1.1);
}
@keyframes pulseRing {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.55);
  }
  100% {
    box-shadow: 0 0 0 16px rgba(37, 211, 102, 0);
  }
}

/* ==========================================================================
   Scroll reveal (progressive enhancement — only active once .js is set)
   ========================================================================== */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: var(--d, 0ms);
}
.js [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   Accessibility / performance safeguards
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .js [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

/* ==========================================================================
   Motion layer — smooth scroll, intro veil, page transitions, text reveal
   (all gated behind .anim, which is NOT set under reduced-motion or no-JS)
   ========================================================================== */

/* Lenis smooth scroll */
html.lenis,
html.lenis body {
  height: auto;
}
.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}
.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}
.lenis.lenis-stopped {
  overflow: hidden;
}

/* Intro veil + page-transition curtain */
.page-veil {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  background: var(--ink);
  transform: translateY(0);
  pointer-events: none;
  will-change: transform;
}
.anim .page-veil {
  display: flex;
  animation: veilLift 1s var(--ease) 0.35s forwards;
}
.page-veil__logo {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  letter-spacing: -0.02em;
  color: #fff;
  opacity: 0;
  transform: translateY(8px);
  animation: veilLogo 1.35s var(--ease) forwards;
}
.page-veil__logo i {
  color: var(--gold);
  font-style: normal;
}
@keyframes veilLift {
  to {
    transform: translateY(-100%);
  }
}
@keyframes veilLogo {
  0% {
    opacity: 0;
    transform: translateY(8px);
  }
  28% {
    opacity: 1;
    transform: translateY(0);
  }
  68% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateY(-6px);
  }
}

/* Scroll text reveal — words are wrapped and opacity-scrubbed by animate.js.
   Only styled once JS has split them, so no-JS text stays fully legible. */
.rw {
  display: inline-block;
}

/* ==========================================================================
   Signature sections — showreel, strategy, process
   ========================================================================== */

/* Eyebrow needs a darker gold on light backgrounds (contrast) */
.bg-white .eyebrow,
.bg-paper .eyebrow,
.bg-cream .eyebrow {
  color: var(--gold-deep);
}

/* Sticky columns need a non-clipping section context */
.strategy,
.process {
  overflow: visible;
}

/* --- Showreel --- */
.showreel__media {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.1rem;
  background: radial-gradient(120% 120% at 50% 0%, #0a2aa0, var(--ink) 70%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow-lg);
  color: #fff;
  transform-origin: center;
}
.showreel__play {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: var(--gold-grad);
  color: var(--navy);
  box-shadow: var(--shadow-gold);
}
.showreel__label {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}

/* --- Strategy --- */
.strategy__grid {
  display: grid;
  gap: 2.5rem;
}
@media (min-width: 900px) {
  .strategy__grid {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
  }
  .strategy__head {
    position: sticky;
    top: 120px;
  }
}
.strategy__list {
  display: flex;
  flex-direction: column;
}
.strategy-item {
  display: flex;
  gap: 1.4rem;
  align-items: flex-start;
  padding: 1.6rem 0;
  border-top: 1px solid var(--hairline-dark);
}
.strategy-item:last-child {
  border-bottom: 1px solid var(--hairline-dark);
}
.strategy-item__num {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--gold);
  font-size: 1rem;
  flex-shrink: 0;
  padding-top: 0.35rem;
}
.strategy-item h3 {
  font-size: 1.4rem;
}
.strategy-item p {
  margin-top: 0.4rem;
  opacity: 0.75;
}

/* --- Process --- */
.process__grid {
  display: grid;
  gap: 2.5rem;
}
@media (min-width: 900px) {
  .process__grid {
    grid-template-columns: 0.85fr 1.15fr;
    gap: 4rem;
    align-items: start;
  }
  .process__aside {
    position: sticky;
    top: 130px;
  }
}
.process__progress {
  margin-top: 1.8rem;
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  overflow: hidden;
}
.process__progress span {
  display: block;
  height: 100%;
  background: var(--gold-grad);
  transform: scaleX(0);
  transform-origin: left;
}
.process__count {
  margin-top: 1.1rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.5);
}
.process__count b {
  color: var(--gold);
  font-size: 1.7rem;
}
.process__steps {
  display: flex;
  flex-direction: column;
}
.process-step {
  padding: 2.2rem 0;
  border-top: 1px solid var(--hairline-dark);
}
.process-step:last-child {
  border-bottom: 1px solid var(--hairline-dark);
}
.process-step__num {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--gold);
  letter-spacing: 0.1em;
}
.process-step h3 {
  font-size: clamp(1.4rem, 2vw, 2rem);
  margin-top: 0.6rem;
  transition: color 0.3s var(--ease);
}
.process-step p {
  margin-top: 0.7rem;
  opacity: 0.75;
  max-width: 46ch;
}
.process-step.is-active h3 {
  color: var(--gold);
}
