/* ==========================================================================
   Dream Forge Entertainment — Cinematic Theme
   Replaces the old Colorlib template styles (css/style.css is no longer linked).
   ========================================================================== */

:root {
  --bg: #070608;
  --bg-2: #0b090c;
  --bg-3: #110e12;
  --surface: rgba(255, 255, 255, 0.028);
  --surface-2: rgba(255, 255, 255, 0.05);
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --line-gold: rgba(222, 184, 92, 0.26);

  --text: #f4efe6;
  --text-dim: rgba(244, 239, 230, 0.68);
  --text-mute: rgba(244, 239, 230, 0.44);

  --gold: #d4af37;
  --gold-hi: #f1d58a;
  --gold-lo: #8f6d1f;
  --gold-grad: linear-gradient(105deg, #a37b25 0%, #e7c46a 28%, #fff0c2 48%, #e7c46a 66%, #a37b25 100%);
  --ember: #ff8a3d;
  --rec: #e5484d;

  --font-sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-serif: "Instrument Serif", "Times New Roman", Georgia, serif;

  --wrap: 1280px;
  --gutter: clamp(16px, 4vw, 48px);
  --radius: 18px;
  --radius-lg: 28px;
  --header-h: 84px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);

  color-scheme: dark;
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  background: var(--bg);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
@supports (overflow: clip) { body { overflow-x: clip; } }

html.menu-open { overflow: hidden; }

img, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
figure { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
[hidden] { display: none !important; }

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--text);
}

p { margin: 0 0 1em; color: var(--text-dim); }

::selection { background: rgba(212, 175, 55, 0.35); color: #fff; }

:focus-visible {
  outline: 2px solid var(--gold-hi);
  outline-offset: 3px;
  border-radius: 6px;
}

.serif {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
}

.gold-text {
  background: var(--gold-grad);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: shimmer 9s linear infinite;
  padding-right: 0.06em;
}

@keyframes shimmer {
  0% { background-position: 0% 0; }
  100% { background-position: 220% 0; }
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: fixed;
  top: 12px; left: 12px;
  z-index: 300;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--gold);
  color: #120e06;
  font-weight: 700;
  transform: translateY(-160%);
  transition: transform 0.3s var(--ease);
}
.skip-link:focus { transform: none; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  position: relative;
  padding-block: clamp(88px, 11vw, 160px);
}

/* --------------------------------------------------------------------------
   Atmosphere: grain, cursor, intro
   -------------------------------------------------------------------------- */
.grain {
  position: fixed;
  inset: -50%;
  width: 200%;
  height: 200%;
  z-index: 90;
  pointer-events: none;
  opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1s steps(6) infinite;
}

@keyframes grain {
  0% { transform: translate(0, 0); }
  20% { transform: translate(-3%, 2%); }
  40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, 3%); }
  80% { transform: translate(3%, 1%); }
  100% { transform: translate(0, 0); }
}

.cursor {
  position: fixed;
  top: 0; left: 0;
  z-index: 150;
  width: 34px; height: 34px;
  margin: -17px 0 0 -17px;
  border-radius: 50%;
  border: 1px solid rgba(241, 213, 138, 0.55);
  pointer-events: none;
  opacity: 0;
  transition: width 0.4s var(--ease), height 0.4s var(--ease), margin 0.4s var(--ease),
    background-color 0.4s, border-color 0.4s, opacity 0.3s;
}
.cursor.is-active { opacity: 1; }
.cursor.is-hover {
  width: 64px; height: 64px;
  margin: -32px 0 0 -32px;
  background: rgba(212, 175, 55, 0.1);
  border-color: rgba(241, 213, 138, 0.9);
}
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

.intro {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  background: #050405;
  animation: introFailsafe 0.8s var(--ease) 3.4s forwards;
}
.no-intro .intro,
html:not(.js) .intro { display: none; }

.intro.is-done {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.9s var(--ease), visibility 0s linear 0.9s;
}

.intro__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
}

.intro__logo {
  width: 200px;
  opacity: 0;
  filter: blur(10px);
  transform: scale(0.96);
  animation: introLogo 1.2s var(--ease) 0.1s forwards;
}

.intro__line {
  position: relative;
  width: 200px;
  height: 1px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.1);
}
.intro__line::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gold-grad);
  transform: scaleX(0);
  transform-origin: left;
  animation: introLine 1.3s var(--ease-in-out) 0.2s forwards;
}

@keyframes introLogo { to { opacity: 1; filter: blur(0); transform: none; } }
@keyframes introLine { to { transform: scaleX(1); } }
@keyframes introFailsafe { to { opacity: 0; visibility: hidden; } }

/* Letterbox bars that open once the page is ready */
.js .letterbox::before,
.js .letterbox::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  z-index: 6;
  height: 13vh;
  background: #000;
  pointer-events: none;
  transition: transform 1.6s var(--ease-in-out) 0.15s;
}
.js .letterbox::before { top: 0; }
.js .letterbox::after { bottom: 0; }
.is-loaded .letterbox::before { transform: translateY(-101%); }
.is-loaded .letterbox::after { transform: translateY(101%); }

/* --------------------------------------------------------------------------
   Buttons & links
   -------------------------------------------------------------------------- */
.btn {
  --bh: 54px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  height: var(--bh);
  padding: 0 28px;
  border: 0;
  border-radius: 999px;
  font: 700 0.76rem/1 var(--font-sans);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  isolation: isolate;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), background-position 0.9s var(--ease),
    background-color 0.3s, border-color 0.3s, color 0.3s;
}
.btn svg { width: 16px; height: 16px; flex: none; transition: transform 0.5s var(--ease); }
.btn:hover svg { transform: translateX(4px); }

.btn--gold {
  color: #16110a;
  background: var(--gold-grad);
  background-size: 220% 100%;
  background-position: 0% 0;
  box-shadow: 0 12px 40px -12px rgba(212, 175, 55, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}
.btn--gold:hover {
  background-position: 100% 0;
  box-shadow: 0 20px 60px -14px rgba(212, 175, 55, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.btn--ghost {
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line-strong);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.btn--ghost:hover {
  color: var(--gold-hi);
  border-color: rgba(241, 213, 138, 0.6);
  background: rgba(212, 175, 55, 0.08);
}

.btn--sm { --bh: 42px; padding: 0 20px; font-size: 0.68rem; }
.btn--block { width: 100%; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-hi);
  transition: color 0.3s, gap 0.4s var(--ease);
}
.link-arrow svg { width: 16px; height: 16px; transition: transform 0.4s var(--ease); }
.link-arrow:hover { color: var(--text); }
.link-arrow:hover svg { transform: translateX(4px); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-hi);
}
.eyebrow::before {
  content: "";
  width: 34px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}
.eyebrow--center::after {
  content: "";
  width: 34px;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-dim);
  background: rgba(0, 0, 0, 0.25);
}

.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags li {
  padding: 5px 11px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text);
  background: rgba(0, 0, 0, 0.3);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

/* --------------------------------------------------------------------------
   Section headings
   -------------------------------------------------------------------------- */
.sec-head {
  display: grid;
  gap: 22px;
  margin-bottom: clamp(48px, 6vw, 84px);
  max-width: 860px;
}
.sec-head--center { margin-inline: auto; text-align: center; justify-items: center; }
.sec-head--split {
  max-width: none;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 32px 64px;
}
.sec-head--split > div:first-child { display: grid; gap: 22px; }
.sec-head--split .lead { max-width: 44ch; margin: 0; }

.h-display {
  font-size: clamp(2.3rem, 5vw, 4.5rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.04em;
}
.h-display .serif { font-size: 1.1em; line-height: 0.9; }

.lead {
  font-size: clamp(1rem, 1.25vw, 1.15rem);
  line-height: 1.75;
  color: var(--text-dim);
  max-width: 60ch;
}

/* --------------------------------------------------------------------------
   Reveal animations
   -------------------------------------------------------------------------- */
.js [data-reveal] {
  opacity: 0;
  transform: translate3d(0, 44px, 0);
  filter: blur(6px);
  transition: opacity 1.1s var(--ease), transform 1.3s var(--ease), filter 1.1s var(--ease);
  transition-delay: var(--d, 0s);
}
.js [data-reveal="left"] { transform: translate3d(-56px, 0, 0); }
.js [data-reveal="right"] { transform: translate3d(56px, 0, 0); }
.js [data-reveal="zoom"] { transform: scale(0.94); }
.js [data-reveal="fade"] { transform: none; }
.js [data-reveal].is-in { opacity: 1; transform: none; filter: none; }

.js [data-reveal="clip"] {
  opacity: 1;
  filter: none;
  transform: none;
  clip-path: inset(14% 14% 14% 14% round var(--clip-r, 22px));
  transition: clip-path 1.6s var(--ease-in-out);
  transition-delay: var(--d, 0s);
}
.js [data-reveal="clip"] img { transform: scale(1.25); transition: transform 2s var(--ease); transition-delay: var(--d, 0s); }
.js [data-reveal="clip"].is-in { clip-path: inset(0 0 0 0 round var(--clip-r, 22px)); }
.js [data-reveal="clip"].is-in img { transform: scale(1.06); }

/* Headline line masks (hero + page heroes) */
.line {
  display: block;
  overflow: hidden;
  padding: 0 0.12em 0.1em;
  margin: 0 -0.12em -0.1em;
}
.line > span { display: block; }
.js .line > span {
  transform: translate3d(0, 108%, 0);
  transition: transform 1.4s var(--ease);
  transition-delay: calc(0.3s + var(--i, 0) * 0.12s);
}
.is-loaded .line > span { transform: none; }

.js [data-hero-in] {
  opacity: 0;
  transform: translate3d(0, 24px, 0);
  transition: opacity 1.2s var(--ease), transform 1.2s var(--ease);
  transition-delay: calc(0.55s + var(--i, 0) * 0.12s);
}
.is-loaded [data-hero-in] { opacity: 1; transform: none; }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 80;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  transition: transform 0.7s var(--ease), background-color 0.5s, border-color 0.5s,
    -webkit-backdrop-filter 0.5s, backdrop-filter 0.5s;
}
.site-header::before {
  content: "";
  position: absolute;
  inset: 0 0 -48px;
  background: linear-gradient(180deg, rgba(5, 4, 6, 0.8), transparent);
  pointer-events: none;
  transition: opacity 0.5s;
}
.site-header.is-scrolled {
  background: rgba(8, 7, 9, 0.72);
  border-color: var(--line);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
}
.site-header.is-scrolled::before { opacity: 0; }
.site-header.is-hidden { transform: translateY(-100%); }
.menu-open .site-header { background: transparent; border-color: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; transform: none; }

.site-header__inner {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand { display: inline-flex; align-items: center; flex: none; }
.brand img { height: 46px; width: auto; }

.nav { margin-left: auto; }
.nav__list { display: flex; align-items: center; gap: 2px; }
.nav__item { position: relative; }

.nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 13px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-dim);
  transition: color 0.3s;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 13px; right: 13px; bottom: 4px;
  height: 1px;
  background: var(--gold-grad);
  transform: scaleX(0);
  transition: transform 0.5s var(--ease);
}
.nav__link:hover,
.nav__item:focus-within > .nav__link { color: var(--text); }
.nav__link:hover::after,
.nav__item:focus-within > .nav__link::after { transform: scaleX(1); }
.nav__item.is-active > .nav__link { color: var(--gold-hi); }
.nav__item.is-active > .nav__link::after { transform: scaleX(1); }

.caret { width: 10px; height: 10px; transition: transform 0.4s var(--ease); }
.nav__item:hover > .nav__link .caret,
.nav__item:focus-within > .nav__link .caret { transform: rotate(180deg); }

.nav__drop {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  min-width: 232px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(14, 12, 15, 0.94);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  box-shadow: 0 30px 70px -20px rgba(0, 0, 0, 0.85);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.35s var(--ease), transform 0.45s var(--ease), visibility 0s linear 0.35s;
}
.nav__drop::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: -14px;
  height: 14px;
}
.nav__item:hover > .nav__drop,
.nav__item:focus-within > .nav__drop {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 0.35s var(--ease), transform 0.45s var(--ease), visibility 0s;
}
.nav__drop a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 14px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-dim);
  text-transform: capitalize;
  transition: background-color 0.3s, color 0.3s;
}
.nav__drop a:hover,
.nav__drop .nav__item:focus-within > a { background: rgba(212, 175, 55, 0.09); color: var(--text); }
.nav__drop a svg { width: 12px; height: 12px; opacity: 0.6; }
.nav__drop .nav__drop { top: -9px; left: calc(100% + 10px); }
.nav__drop .nav__drop::before { top: 0; bottom: 0; left: -14px; right: auto; width: 14px; height: auto; }

.header-social { display: flex; align-items: center; gap: 2px; padding-left: 16px; border-left: 1px solid var(--line); }
.header-social a {
  width: 32px; height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 0.86rem;
  color: var(--text-dim);
  transition: color 0.3s, background-color 0.3s, transform 0.4s var(--ease);
}
.header-social a:hover { color: var(--gold-hi); background: rgba(212, 175, 55, 0.1); transform: translateY(-2px); }

.burger {
  display: none;
  position: relative;
  width: 48px; height: 48px;
  margin-left: auto;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: rgba(10, 8, 11, 0.5);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  cursor: pointer;
}
.burger span {
  position: absolute;
  left: 14px; right: 14px;
  height: 1.5px;
  background: var(--text);
  transition: transform 0.6s var(--ease), top 0.6s var(--ease), background-color 0.3s;
}
.burger span:nth-child(1) { top: 19px; }
.burger span:nth-child(2) { top: 27px; right: 20px; }
.burger[aria-expanded="true"] span { background: var(--gold-hi); right: 14px; }
.burger[aria-expanded="true"] span:nth-child(1) { top: 23px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { top: 23px; transform: rotate(-45deg); }

/* Mobile menu */
.mmenu {
  position: fixed;
  inset: 0;
  z-index: 79;
  display: flex;
  flex-direction: column;
  padding: calc(var(--header-h) + 20px) var(--gutter) 32px;
  overflow-y: auto;
  background: rgba(6, 5, 7, 0.97);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  clip-path: inset(0 0 100% 0);
  visibility: hidden;
  transition: clip-path 0.9s var(--ease-in-out), visibility 0s linear 0.9s;
}
.mmenu.is-open {
  clip-path: inset(0 0 0 0);
  visibility: visible;
  transition: clip-path 0.9s var(--ease-in-out), visibility 0s;
}
.mmenu__glow {
  position: absolute;
  width: 80vw; height: 80vw;
  right: -30vw; top: -20vw;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.16), transparent 60%);
  pointer-events: none;
}
.mmenu__list { position: relative; }
.mmenu__list > li {
  border-bottom: 1px solid var(--line);
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s var(--ease), transform 0.8s var(--ease);
}
.mmenu.is-open .mmenu__list > li { opacity: 1; transform: none; }
.mmenu.is-open .mmenu__list > li:nth-child(1) { transition-delay: 0.25s; }
.mmenu.is-open .mmenu__list > li:nth-child(2) { transition-delay: 0.31s; }
.mmenu.is-open .mmenu__list > li:nth-child(3) { transition-delay: 0.37s; }
.mmenu.is-open .mmenu__list > li:nth-child(4) { transition-delay: 0.43s; }
.mmenu.is-open .mmenu__list > li:nth-child(5) { transition-delay: 0.49s; }
.mmenu.is-open .mmenu__list > li:nth-child(6) { transition-delay: 0.55s; }

.mmenu__link {
  display: flex;
  align-items: center;
  gap: 18px;
  width: 100%;
  padding: 16px 0;
  border: 0;
  background: none;
  text-align: left;
  font-size: clamp(1.7rem, 7vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
  cursor: pointer;
}
.mmenu__link.is-current { color: var(--gold-hi); }
.mmenu__num {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--text-mute);
  min-width: 22px;
}
.mmenu__plus { position: relative; width: 16px; height: 16px; margin-left: auto; }
.mmenu__plus::before,
.mmenu__plus::after {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  width: 100%; height: 1.5px;
  background: var(--gold-hi);
  transition: transform 0.5s var(--ease);
}
.mmenu__plus::after { transform: rotate(90deg); }
[aria-expanded="true"] > .mmenu__plus::after { transform: rotate(0deg); }

.mmenu__sub {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.6s var(--ease);
}
.mmenu__sub.is-open { grid-template-rows: 1fr; }
.mmenu__sub > ul { overflow: hidden; min-height: 0; padding-left: 40px; }
.mmenu__sub a,
.mmenu__subtoggle {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 10px 0;
  border: 0;
  background: none;
  text-align: left;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-dim);
  text-transform: capitalize;
  cursor: pointer;
}
.mmenu__sub a:hover,
.mmenu__subtoggle:hover { color: var(--gold-hi); }
.mmenu__sub > ul > li:last-child { padding-bottom: 14px; }
.mmenu__sub .mmenu__sub > ul { padding-left: 20px; border-left: 1px solid var(--line-gold); }
.mmenu__subtoggle .mmenu__plus { width: 12px; height: 12px; }

.mmenu__foot {
  position: relative;
  margin-top: auto;
  padding-top: 36px;
  display: grid;
  gap: 22px;
  opacity: 0;
  transition: opacity 0.8s var(--ease) 0.5s;
}
.mmenu.is-open .mmenu__foot { opacity: 1; }
.mmenu__foot p { margin: 0; font-size: 0.92rem; }
.mmenu__foot p a { color: var(--gold-hi); }

/* --------------------------------------------------------------------------
   Socials
   -------------------------------------------------------------------------- */
.socials { display: flex; flex-wrap: wrap; gap: 10px; }
.socials a {
  width: 46px; height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  font-size: 1rem;
  color: var(--text-dim);
  transition: color 0.3s, background-color 0.3s, border-color 0.3s, transform 0.5s var(--ease);
}
.socials a:hover {
  color: #120e06;
  background: var(--gold);
  border-color: var(--gold);
  transform: translateY(-4px);
}

/* --------------------------------------------------------------------------
   Spotlight cards (mouse-follow glow)
   -------------------------------------------------------------------------- */
.spot { position: relative; isolation: isolate; }
.spot::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: radial-gradient(460px circle at var(--mx, 50%) var(--my, 0%), rgba(212, 175, 55, 0.14), transparent 60%);
  opacity: 0;
  transition: opacity 0.6s;
  pointer-events: none;
}
.spot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 0%), rgba(241, 213, 138, 0.75), transparent 60%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  opacity: 0;
  transition: opacity 0.6s;
  pointer-events: none;
}
.spot:hover::before,
.spot:hover::after { opacity: 1; }

/* --------------------------------------------------------------------------
   Home hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  isolation: isolate;
  background: #050405;
}

.hero__media {
  position: absolute;
  inset: -6% 0;
  z-index: -4;
  transform: translate3d(0, var(--py, 0px), 0);
}
.hero__slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transform: scale(1.14);
  filter: saturate(0.92) contrast(1.06);
  transition: opacity 1.8s var(--ease), transform 10s linear;
}
.hero__slide.is-active { opacity: 1; transform: scale(1.02); }

.hero__shade {
  position: absolute;
  inset: 0;
  z-index: -3;
  background:
    linear-gradient(90deg, rgba(5, 4, 5, 0.94) 0%, rgba(5, 4, 5, 0.72) 36%, rgba(5, 4, 5, 0.18) 72%, rgba(5, 4, 5, 0.3) 100%),
    linear-gradient(0deg, var(--bg) 0%, rgba(7, 6, 8, 0.2) 40%, rgba(7, 6, 8, 0) 60%),
    linear-gradient(180deg, rgba(5, 4, 5, 0.7) 0%, transparent 26%);
}
.hero__glow {
  position: absolute;
  z-index: -2;
  width: 70vw; height: 70vw;
  left: -22vw; top: 5%;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.2), transparent 62%);
  filter: blur(30px);
  animation: drift 16s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes drift {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(8vw, -6vh, 0) scale(1.15); }
}

.hero__embers,
.page-hero__embers,
.cta__embers {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero__beam {
  position: absolute;
  z-index: -1;
  left: -10%; right: -10%;
  top: 46%;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 214, 140, 0) 25%, rgba(255, 230, 175, 0.9) 50%, rgba(255, 214, 140, 0) 75%, transparent 100%);
  opacity: 0;
  animation: beam 11s ease-in-out 2s infinite;
  pointer-events: none;
}
.hero__beam::after {
  content: "";
  position: absolute;
  left: 30%; right: 30%;
  top: -14px;
  height: 28px;
  background: radial-gradient(50% 50% at 50% 50%, rgba(255, 210, 130, 0.35), transparent);
  filter: blur(6px);
}
@keyframes beam {
  0%, 100% { opacity: 0; transform: translateX(-30%) scaleX(0.6); }
  45% { opacity: 0.85; }
  60% { opacity: 0.2; transform: translateX(25%) scaleX(1); }
  70% { opacity: 0; }
}

.hero__content {
  position: relative;
  z-index: 2;
  padding-top: calc(var(--header-h) + 64px);
  padding-bottom: clamp(28px, 4.5vh, 56px);
}

.hero__eyebrow { margin-bottom: 30px; }

.hero__title {
  font-size: clamp(2.5rem, 5.6vw, 5.4rem);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.045em;
}
.hero__title .serif {
  font-size: 1.24em;
  line-height: 0.92;
  letter-spacing: -0.02em;
}

.hero__sub {
  max-width: 54ch;
  margin: 30px 0 40px;
  font-size: clamp(1rem, 1.3vw, 1.18rem);
  line-height: 1.75;
  color: var(--text-dim);
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero__bottom {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 32px;
  margin-top: clamp(40px, 8vh, 96px);
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.reel { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: 32px; }
.reel__label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-top: 12px;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-mute);
  white-space: nowrap;
}
.reel__label::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--rec);
  animation: rec 1.6s ease-in-out infinite;
}
@keyframes rec { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }

.reel__tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; max-width: 760px; }
.reel__tab {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 0;
  border: 0;
  background: none;
  text-align: left;
  cursor: pointer;
}
.reel__bar { position: relative; height: 2px; overflow: hidden; background: rgba(255, 255, 255, 0.14); }
.reel__bar i {
  position: absolute;
  inset: 0;
  background: var(--gold-grad);
  transform: scaleX(0);
  transform-origin: left;
}
.reel__tab.is-active .reel__bar i { animation: reelProgress var(--reel-dur, 6.5s) linear forwards; }
.reel.is-paused .reel__tab.is-active .reel__bar i { animation: none; transform: scaleX(1); }
@keyframes reelProgress { to { transform: scaleX(1); } }

.reel__meta { display: grid; gap: 3px; }
.reel__num { font-size: 0.66rem; font-weight: 700; letter-spacing: 0.2em; color: var(--text-mute); }
.reel__title { font-size: 0.95rem; font-weight: 700; color: var(--text-dim); transition: color 0.4s; }
.reel__tag { font-size: 0.76rem; line-height: 1.45; color: var(--text-mute); }
.reel__tab.is-active .reel__title,
.reel__tab:hover .reel__title { color: var(--text); }
.reel__tab.is-active .reel__num { color: var(--gold-hi); }

.hero__side { display: grid; justify-items: end; gap: 22px; }

.scroll-cue {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-mute);
}
.scroll-cue i {
  position: relative;
  width: 1px; height: 46px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.16);
}
.scroll-cue i::after {
  content: "";
  position: absolute;
  left: 0; top: -40%;
  width: 1px; height: 40%;
  background: var(--gold-hi);
  animation: scrollCue 2.2s var(--ease-in-out) infinite;
}
@keyframes scrollCue { to { top: 100%; } }

/* --------------------------------------------------------------------------
   Marquee
   -------------------------------------------------------------------------- */
.marquee {
  position: relative;
  overflow: hidden;
  padding-block: 30px;
  border-block: 1px solid var(--line);
  background: var(--bg-2);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track { display: flex; width: max-content; animation: marquee 42s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__group { display: flex; align-items: center; gap: 44px; padding-right: 44px; }
.marquee__item {
  font-size: clamp(1.6rem, 3.4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  white-space: nowrap;
  color: var(--text);
}
.marquee__item--outline { color: transparent; -webkit-text-stroke: 1px rgba(244, 239, 230, 0.38); }
.marquee__item.serif { font-weight: 400; font-size: clamp(1.9rem, 3.9vw, 3.5rem); color: var(--gold-hi); }
.marquee__star { color: var(--gold); font-size: 1.1rem; }
@keyframes marquee { to { transform: translate3d(-50%, 0, 0); } }

/* --------------------------------------------------------------------------
   Pillars
   -------------------------------------------------------------------------- */
.pillars {
  background:
    radial-gradient(70% 50% at 50% 0%, rgba(212, 175, 55, 0.08), transparent 60%),
    var(--bg);
}

.pillars__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }

.pillar {
  display: flex;
  flex-direction: column;
  min-height: 540px;
  padding: 30px 30px 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.01));
  overflow: hidden;
  transition: transform 0.8s var(--ease), border-color 0.5s, opacity 1.1s var(--ease), filter 1.1s var(--ease);
}
.pillar:hover { transform: translateY(-8px); border-color: var(--line-gold); }

.pillar__top { display: flex; align-items: center; justify-content: space-between; }
.pillar__num { font-size: 2.6rem; line-height: 1; }
.pillar__kicker {
  padding: 6px 12px;
  border: 1px solid var(--line-gold);
  border-radius: 999px;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold-hi);
}

.pillar__art {
  flex: 1;
  display: grid;
  place-items: center;
  min-height: 210px;
  margin: 22px -6px 18px;
}
.pillar__art svg { width: 100%; max-width: 290px; height: auto; overflow: visible; }

.pillar h3 { font-size: clamp(1.6rem, 2.3vw, 2.15rem); letter-spacing: -0.035em; margin-bottom: 12px; }
.pillar p { margin: 0; font-size: 1.02rem; color: var(--text-dim); }

.pillar__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-mute);
  transition: color 0.3s;
}
.pillar__foot svg { width: 18px; height: 18px; transition: transform 0.5s var(--ease); }
.pillar__foot:hover { color: var(--gold-hi); }
.pillar__foot:hover svg { transform: translateX(5px); }

/* Pillar art animation */
.art__line { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 2.4s var(--ease-in-out) 0.4s; }
.is-in .art__line { stroke-dashoffset: 0; }
.art__area { opacity: 0; transition: opacity 1.6s var(--ease) 1.4s; }
.is-in .art__area { opacity: 1; }
.art__bars rect {
  transform-box: fill-box;
  transform-origin: 50% 100%;
  transform: scaleY(0);
  transition: transform 1.2s var(--ease);
}
.is-in .art__bars rect { transform: scaleY(1); }
.art__bars rect:nth-child(2) { transition-delay: 0.1s; }
.art__bars rect:nth-child(3) { transition-delay: 0.2s; }
.art__bars rect:nth-child(4) { transition-delay: 0.3s; }
.art__bars rect:nth-child(5) { transition-delay: 0.4s; }

.art__pulse {
  transform-box: fill-box;
  transform-origin: center;
  animation: artPulse 2.4s var(--ease) infinite;
}
@keyframes artPulse {
  0% { transform: scale(0.3); opacity: 0.9; }
  100% { transform: scale(2); opacity: 0; }
}

.art__flow { stroke-dasharray: 3 6; animation: flow 1.4s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -18; } }

.art__spin { transform-box: fill-box; transform-origin: center; animation: spin 18s linear infinite; }
.art__spin--rev { animation-direction: reverse; animation-duration: 26s; }
.art__blink { animation: rec 1.4s ease-in-out infinite; }
.art__eq rect {
  transform-box: fill-box;
  transform-origin: 50% 100%;
  animation: eq 1.1s ease-in-out infinite alternate;
}
.art__eq rect:nth-child(2) { animation-delay: -0.3s; }
.art__eq rect:nth-child(3) { animation-delay: -0.7s; }
.art__eq rect:nth-child(4) { animation-delay: -0.2s; }
.art__eq rect:nth-child(5) { animation-delay: -0.9s; }
.art__eq rect:nth-child(6) { animation-delay: -0.5s; }
.art__eq rect:nth-child(7) { animation-delay: -0.1s; }
@keyframes eq { 0% { transform: scaleY(0.25); } 100% { transform: scaleY(1); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes spinRev { to { transform: rotate(-360deg); } }

/* Flow strip */
.flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: clamp(40px, 5vw, 64px);
}
.flow__step {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}
.flow__step i {
  font-style: normal;
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  color: var(--gold-hi);
}
.flow__line {
  position: relative;
  flex: 1;
  max-width: 140px;
  height: 1px;
  overflow: hidden;
  background: var(--line-strong);
}
.flow__line::after {
  content: "";
  position: absolute;
  top: 0; left: -40%;
  width: 40%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-hi), transparent);
  animation: flowLine 2.6s var(--ease-in-out) infinite;
}
.flow__line:nth-of-type(4)::after { animation-delay: 1.3s; }
@keyframes flowLine { to { left: 100%; } }

/* --------------------------------------------------------------------------
   Services split (home) & service cards
   -------------------------------------------------------------------------- */
.split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.split__aside {
  position: sticky;
  top: calc(var(--header-h) + 40px);
  display: grid;
  gap: 24px;
  justify-items: start;
}
.split__aside .lead { margin: 0; }

.svc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.svc-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.svc-card {
  display: flex;
  flex-direction: column;
  padding: 32px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: transform 0.7s var(--ease), border-color 0.5s, opacity 1.1s var(--ease), filter 1.1s var(--ease);
}
.svc-card:hover { transform: translateY(-6px); border-color: var(--line-gold); }
.svc-card__head { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 28px; }
.svc-card__icon {
  width: 62px; height: 62px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-gold);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(212, 175, 55, 0.18), rgba(212, 175, 55, 0.02));
  transition: transform 0.7s var(--ease);
}
.svc-card__icon img { width: 30px; height: 30px; object-fit: contain; }
.svc-card:hover .svc-card__icon { transform: rotate(-10deg) scale(1.08); }
.svc-card__idx { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.22em; color: var(--text-mute); }
.svc-card h4 { font-size: 1.3rem; letter-spacing: -0.025em; margin-bottom: 14px; line-height: 1.2; }
.svc-card p { margin: 0; font-size: 0.95rem; line-height: 1.75; }

/* --------------------------------------------------------------------------
   Work bento
   -------------------------------------------------------------------------- */
.work { background: var(--bg); }
.bento {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-auto-rows: clamp(170px, 19vw, 290px);
  grid-auto-flow: dense;
  gap: 12px;
  padding-inline: 12px;
}
.tile {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 20px;
  background: #111;
  isolation: isolate;
}
.tile--wide { grid-column: span 2; }
.tile--large { grid-column: span 2; grid-row: span 2; }
.tile__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  filter: saturate(0.9);
  transition: transform 1.6s var(--ease), filter 0.8s;
}
.tile:hover .tile__img { transform: scale(1.14); filter: saturate(1.1); }
.tile::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0.05) 60%);
  opacity: 0.55;
  transition: opacity 0.6s;
}
.tile:hover::after { opacity: 1; }
.tile__play { position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; }

.play {
  position: relative;
  width: 64px; height: 64px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  color: var(--gold-hi);
  background: rgba(10, 8, 10, 0.35);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: transform 0.6s var(--ease), background-color 0.4s, color 0.4s, border-color 0.4s;
}
.play svg { width: 20px; height: 20px; margin-left: 3px; }
.play::before {
  content: "";
  position: absolute;
  inset: -9px;
  border: 1px solid rgba(241, 213, 138, 0.45);
  border-radius: 50%;
  animation: ring 2.6s var(--ease) infinite;
}
@keyframes ring { 0% { transform: scale(0.85); opacity: 1; } 100% { transform: scale(1.35); opacity: 0; } }
.tile:hover .play,
.pf-card__media:hover .play { transform: scale(1.12); background: var(--gold); color: #120e06; border-color: var(--gold); }

.tile__info {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 3;
  display: grid;
  gap: 10px;
  padding: 22px;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s var(--ease), transform 0.8s var(--ease);
}
.tile:hover .tile__info,
.tile:focus-visible .tile__info { opacity: 1; transform: none; }
.tile__info h4 { font-size: 1.25rem; letter-spacing: -0.02em; }
@media (hover: none) { .tile__info { opacity: 1; transform: none; } }

/* --------------------------------------------------------------------------
   Case study — Eco Ganesh Art
   -------------------------------------------------------------------------- */
.case { background: var(--bg-2); overflow: hidden; }
.case::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.032) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.032) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(50% 40% at 75% 22%, #000, transparent);
  mask-image: radial-gradient(50% 40% at 75% 22%, #000, transparent);
  pointer-events: none;
}
.case__ghost {
  position: absolute;
  top: clamp(24px, 4vw, 60px);
  left: 50%;
  transform: translateX(-50%);
  font-size: clamp(4.5rem, 15vw, 15rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.06em;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.045);
  pointer-events: none;
  user-select: none;
}

.case__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(48px, 6vw, 100px);
  align-items: center;
}
.case__copy { display: grid; gap: 0; justify-items: start; }

.case__title {
  margin: 22px 0 26px;
  font-size: clamp(2.6rem, 5.4vw, 5rem);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.045em;
}
.case__title .serif {
  display: block;
  margin-top: 0.14em;
  font-size: 0.74em;
  line-height: 1.02;
  letter-spacing: -0.015em;
}
.case__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.case__copy > p { margin-bottom: 14px; }
.case__copy .lead { color: var(--text); }

.case__problem {
  width: 100%;
  margin: 26px 0 36px;
  padding: 28px 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(255, 138, 61, 0.07), rgba(212, 175, 55, 0.02) 60%);
}
.case__label {
  margin: 0 0 14px;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold-hi);
}
.case__list { display: grid; gap: 10px; margin-bottom: 26px; }
.case__list li {
  position: relative;
  padding-left: 22px;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-dim);
}
.case__list li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.62em;
  width: 10px; height: 1px;
  background: var(--ember);
}
.case__q {
  margin: 0;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.35rem, 2.1vw, 1.85rem);
  line-height: 1.3;
  color: var(--text);
}
.case__actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* Device stage */
.device-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 720px;
}
.device-stage__glow {
  position: absolute;
  inset: 8% 0;
  background: radial-gradient(circle, rgba(255, 138, 61, 0.2), rgba(212, 175, 55, 0.07) 45%, transparent 70%);
  filter: blur(30px);
  animation: breathe 7s ease-in-out infinite;
  pointer-events: none;
}
.device-stage__ring {
  position: absolute;
  top: 50%; left: 50%;
  width: 560px; height: 560px;
  max-width: 120%;
  border: 1px dashed rgba(241, 213, 138, 0.14);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: spin 90s linear infinite;
  pointer-events: none;
}

.phone {
  position: relative;
  z-index: 1;
  width: 33em;
  height: 68em;
  padding: 1.1em;
  font-size: 10px;
  border-radius: 5em;
  background: linear-gradient(145deg, #2d2823, #0d0b0a 55%, #1c1815);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.09),
    0 0 0 1px rgba(0, 0, 0, 0.7),
    0 70px 120px -30px rgba(0, 0, 0, 0.95),
    0 0 90px -20px rgba(255, 138, 61, 0.25);
  transform: rotate(-3deg);
}
.phone::before {
  content: "";
  position: absolute;
  top: 16em; right: -0.35em;
  width: 0.35em; height: 6em;
  border-radius: 0 4px 4px 0;
  background: #2a2521;
}
.phone__notch {
  position: absolute;
  top: 2em; left: 50%;
  z-index: 5;
  width: 9.5em; height: 2.7em;
  border-radius: 2em;
  background: #050404;
  transform: translateX(-50%);
}
.phone__screen {
  position: relative;
  height: 100%;
  overflow: hidden;
  border-radius: 4em;
  background: #fff7ee;
  color: #2b1d12;
  font-family: var(--font-sans);
}
.phone__screen::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 4;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.14), transparent 35%);
  pointer-events: none;
}

.app__status {
  position: relative;
  z-index: 3;
  height: 4.8em;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 0 2.6em 0.9em;
  background: #f06a0c;
  color: #fff;
  font-size: 1em;
  font-weight: 700;
}
.app__status span:last-child { letter-spacing: 0.2em; font-size: 0.8em; }
.app__bar {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 1em;
  padding: 1.1em 1.4em;
  background: #fff;
  border-bottom: 1px solid #f1e4d6;
}
.app__logo {
  width: 3.2em; height: 3.2em;
  flex: none;
  display: grid;
  place-items: center;
  border: 1px solid #f5d7b8;
  border-radius: 50%;
  background: #fff3e6;
  color: #e2620b;
  font-size: 1.2em;
}
.app__brand { display: grid; line-height: 1.1; }
.app__brand b { font-family: var(--font-serif); font-size: 1.7em; font-weight: 400; color: #2b1d12; }
.app__brand small { font-size: 0.8em; color: #8a7766; }
.app__icons { display: flex; gap: 0.6em; margin-left: auto; }
.app__icons i {
  width: 2.6em; height: 2.6em;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #f7efe6;
  font-size: 1em;
  color: #2b1d12;
}
.app__icons i:last-child { background: #f08a24; color: #fff; font-style: normal; font-weight: 800; font-size: 0.95em; }

.app__viewport { position: relative; height: calc(100% - 10.2em); overflow: hidden; }
.app__scroll { padding-bottom: 2em; animation: appScroll 16s ease-in-out infinite; }
@keyframes appScroll {
  0%, 16% { transform: translateY(0); }
  42%, 62% { transform: translateY(-27em); }
  88%, 100% { transform: translateY(0); }
}

.app__hero {
  margin: 1.3em;
  padding: 1.5em;
  border: 1px solid #f5e1cc;
  border-radius: 1.8em;
  background: linear-gradient(135deg, #fff0de, #fdf7f0);
}
.app__pill {
  display: inline-flex;
  padding: 0.4em 1em;
  border: 1px solid #f7cfa9;
  border-radius: 999px;
  background: #ffe8d2;
  color: #d9600b;
  font-size: 0.75em;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.app__hero h5 {
  margin: 0.55em 0 0.3em;
  font-family: var(--font-serif);
  font-size: 2.1em;
  font-weight: 400;
  letter-spacing: 0;
  color: #df8a1f;
}
.app__hero p { margin: 0; font-size: 1em; line-height: 1.5; color: #7d6a5a; }

.app__stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.7em; margin: 0 1.3em 1.2em; }
.app__stat { padding: 1em 0.9em; border-radius: 1.4em; background: #fff; box-shadow: 0 0.5em 1.6em rgba(120, 70, 20, 0.09); }
.app__stat i {
  width: 2.2em; height: 2.2em;
  display: grid;
  place-items: center;
  margin-bottom: 0.7em;
  border-radius: 0.7em;
  font-size: 0.95em;
  font-style: normal;
}
.app__stat:nth-child(1) i { background: #ffe9d6; color: #e2620b; }
.app__stat:nth-child(2) i { background: #fde3e3; color: #b3261e; }
.app__stat:nth-child(3) i { background: #e2f3e6; color: #2f8a4f; }
.app__stat b { display: block; font-family: var(--font-serif); font-size: 2.3em; font-weight: 400; line-height: 1; color: #2b1d12; font-variant-numeric: tabular-nums; }
.app__stat small { display: block; margin-top: 0.4em; font-size: 0.7em; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: #8a7766; }

.app__cta {
  margin: 0 1.3em 1.6em;
  padding: 1em;
  border-radius: 999px;
  background: linear-gradient(90deg, #d9600b, #f47c20);
  box-shadow: 0 0.8em 1.8em rgba(217, 96, 11, 0.3);
  color: #fff;
  font-size: 1em;
  font-weight: 800;
  text-align: center;
}

.app__list-head { display: flex; align-items: center; justify-content: space-between; margin: 0 1.3em 1em; }
.app__list-head b { font-family: var(--font-serif); font-size: 1.5em; font-weight: 400; }
.app__list-head span { padding: 0.45em 1em; border-radius: 999px; background: #2f8a4f; color: #fff; font-size: 0.78em; font-weight: 700; }
.app__search { margin: 0 1.3em 1.2em; padding: 0.9em 1.3em; border-radius: 999px; background: #f6e6d4; font-size: 0.95em; color: #9b8573; }

.app__record {
  margin: 0 1.3em 1.1em;
  padding: 1.2em;
  border-top: 2px solid #3a9a5b;
  border-radius: 1.6em;
  background: #fff;
  box-shadow: 0 0.6em 1.8em rgba(120, 70, 20, 0.1);
}
.app__rec-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.9em; }
.app__code {
  padding: 0.35em 0.9em;
  border-radius: 999px;
  background: #e9620c;
  color: #fff;
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 0.8em;
  font-weight: 700;
  letter-spacing: 0.06em;
}
.app__tag { padding: 0.35em 0.9em; border-radius: 999px; background: #fff1e0; color: #d9600b; font-size: 0.72em; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
.app__rec-body { display: grid; grid-template-columns: 4.8em minmax(0, 1fr); gap: 1em; }
.app__thumb {
  width: 4.8em; height: 4.8em;
  display: grid;
  place-items: center;
  border-radius: 1em;
  background: linear-gradient(135deg, #f8b25a, #d9600b);
  color: #fff6e8;
  font-size: 1em;
}
.app__thumb span { font-size: 1.8em; }
.app__rec-body b { display: block; font-size: 1.1em; color: #2b1d12; }
.app__rec-body b small { font-weight: 500; color: #8a7766; }
.app__rec-body ul { margin-top: 0.3em; }
.app__rec-body li { position: relative; padding-left: 1.1em; font-size: 0.9em; line-height: 1.65; color: #8a7766; }
.app__rec-body li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 0.45em; height: 0.45em; border-radius: 50%; background: #f08a24; }
.app__rec-foot { display: flex; align-items: center; gap: 0.7em; margin-top: 1em; padding-top: 0.9em; border-top: 1px solid #f3e7da; }
.app__paid { margin-right: auto; font-size: 0.85em; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; color: #2f8a4f; }
.app__wa { width: 2.4em; height: 2.4em; display: grid; place-items: center; border-radius: 50%; background: #1f9d57; color: #fff; font-size: 1.1em; }
.app__view { padding: 0.4em 1em; border: 1px solid #eadccd; border-radius: 999px; font-size: 0.85em; font-weight: 700; color: #2b1d12; }

/* Floating cards around the device */
.float-card {
  position: absolute;
  z-index: 2;
  display: grid;
  gap: 6px;
  padding: 16px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  background: rgba(14, 12, 15, 0.86);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.85);
  animation: floaty 7s ease-in-out infinite;
}
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
.float-card--scan { top: 7%; left: -5%; }
.float-card--stat { bottom: 11%; right: -2%; width: 230px; animation-delay: -3.5s; }
.float-card__label { font-size: 0.62rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-mute); }
.float-card__code { font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-size: 0.86rem; font-weight: 700; color: var(--text); letter-spacing: 0.04em; }
.float-card__ok { display: inline-flex; align-items: center; gap: 6px; font-size: 0.76rem; font-weight: 600; color: #6fd394; }
.float-card b {
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.05em;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.float-card__bar { position: relative; height: 6px; margin-top: 6px; overflow: hidden; border-radius: 999px; background: rgba(255, 138, 61, 0.45); }
.float-card__bar i { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: inherit; background: var(--gold-grad); transition: width 2s var(--ease) 0.6s; }
.is-in .float-card__bar i { width: var(--w, 88%); }
.float-card__legend { display: flex; justify-content: space-between; gap: 10px; font-size: 0.72rem; color: var(--text-dim); }
.float-card__legend em { font-style: normal; display: inline-flex; align-items: center; gap: 6px; }
.float-card__legend em::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.float-card__legend em + em::before { background: var(--ember); }

.barcode {
  position: relative;
  width: 150px; height: 40px;
  margin: 4px 0 2px;
  overflow: hidden;
  background: repeating-linear-gradient(90deg,
    #f4efe6 0 2px, transparent 2px 4px, #f4efe6 4px 5px, transparent 5px 8px,
    #f4efe6 8px 11px, transparent 11px 12px, #f4efe6 12px 13px, transparent 13px 16px);
  opacity: 0.9;
}
.barcode::after {
  content: "";
  position: absolute;
  left: -4px; right: -4px; top: 0;
  height: 2px;
  background: var(--ember);
  box-shadow: 0 0 12px 3px rgba(255, 138, 61, 0.8);
  animation: scanline 1.8s ease-in-out infinite alternate;
}
@keyframes scanline { to { top: calc(100% - 2px); } }

/* Solution statement */
.statement { margin: clamp(90px, 11vw, 160px) auto clamp(56px, 7vw, 90px); text-align: center; }
.statement .eyebrow { justify-content: center; }
.statement__text {
  margin-top: 26px;
  font-size: clamp(2.4rem, 7vw, 6.6rem);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.05em;
}
.statement__text .line { display: inline-block; }
.statement__text .serif { font-size: 1.08em; }
.statement p { max-width: 62ch; margin: 30px auto 0; font-size: clamp(1rem, 1.3vw, 1.15rem); }
.statement code {
  padding: 2px 8px;
  border: 1px solid rgba(255, 138, 61, 0.35);
  border-radius: 6px;
  background: rgba(255, 138, 61, 0.1);
  color: #ffb27a;
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 0.9em;
}

.js [data-reveal="lines"] { opacity: 1; transform: none; filter: none; }
.js [data-reveal="lines"] .line > span { transform: translate3d(0, 108%, 0); transition-delay: calc(var(--i, 0) * 0.14s); }
.js [data-reveal="lines"].is-in .line > span { transform: none; }

/* Workflow */
.workflow { position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.workflow::before,
.workflow::after {
  content: "";
  position: absolute;
  top: 36px;
  left: 10%; right: 10%;
  height: 1px;
}
.workflow::before { background: var(--line-strong); }
.workflow::after {
  right: auto;
  width: 16%;
  background: linear-gradient(90deg, transparent, var(--gold-hi), transparent);
  box-shadow: 0 0 12px rgba(241, 213, 138, 0.6);
  animation: wfTravel 6s linear infinite;
}
@keyframes wfTravel { 0% { left: 6%; opacity: 0; } 8% { opacity: 1; } 92% { opacity: 1; } 100% { left: 80%; opacity: 0; } }

.wf-step { position: relative; display: grid; justify-items: center; align-content: start; gap: 12px; text-align: center; }
.wf-step__icon {
  position: relative;
  z-index: 1;
  width: 72px; height: 72px;
  display: grid;
  place-items: center;
  margin-bottom: 8px;
  border: 1px solid var(--line-gold);
  border-radius: 50%;
  background: var(--bg-2);
  color: var(--gold-hi);
  animation: wfLit 6s ease-in-out infinite;
  animation-delay: calc(var(--n, 0) * 1.08s);
}
.wf-step__icon svg { width: 26px; height: 26px; }
@keyframes wfLit {
  0%, 22%, 100% { background: var(--bg-2); color: var(--gold-hi); box-shadow: none; }
  8%, 14% { background: var(--gold); color: #120e06; box-shadow: 0 0 44px rgba(212, 175, 55, 0.55); }
}
.wf-step__n { font-size: 0.64rem; font-weight: 700; letter-spacing: 0.24em; color: var(--text-mute); }
.wf-step h4 { font-size: 0.86rem; font-weight: 800; letter-spacing: 0.2em; text-transform: uppercase; }
.wf-step p { max-width: 24ch; margin: 0; font-size: 0.9rem; line-height: 1.6; }

/* Impact */
.impact-head { margin-top: clamp(90px, 11vw, 150px); }
.impact { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.impact__item {
  position: relative;
  padding: 34px 30px 32px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: background-color 0.5s, opacity 1.1s var(--ease), transform 1.3s var(--ease), filter 1.1s var(--ease);
}
.impact__item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(212, 175, 55, 0.08), transparent 70%);
  opacity: 0;
  transition: opacity 0.6s;
  pointer-events: none;
}
.impact__item:hover::before { opacity: 1; }
.impact__num { font-size: 1.9rem; line-height: 1; color: var(--gold-hi); }
.impact__item h4 { margin: 18px 0 10px; font-size: 1.2rem; letter-spacing: -0.02em; }
.impact__item p { margin: 0; font-size: 0.95rem; }

.case__stack { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px 14px; margin-top: 40px; font-size: 0.8rem; color: var(--text-mute); }

/* --------------------------------------------------------------------------
   Stats
   -------------------------------------------------------------------------- */
.stats-sec { padding-block: clamp(64px, 8vw, 110px); }
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-block: 1px solid var(--line);
}
.stat { position: relative; padding: 46px 28px 42px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat::before {
  content: "";
  position: absolute;
  top: -1px; left: 0;
  width: 100%; height: 1px;
  background: var(--gold-grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1s var(--ease);
}
.stat:hover::before { transform: scaleX(1); }
.stat__icon { width: 34px; height: 34px; opacity: 0.55; margin-bottom: 30px; }
.stat__num {
  font-size: clamp(3rem, 6vw, 5.4rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.055em;
  background: linear-gradient(180deg, #fff 25%, rgba(255, 255, 255, 0.4));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  font-variant-numeric: tabular-nums;
}
.stat__label { margin: 16px 0 0; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold-hi); }

/* --------------------------------------------------------------------------
   Blog cards & rail
   -------------------------------------------------------------------------- */
.rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 40px) / 3);
  gap: 20px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: 6px;
  cursor: grab;
}
.rail::-webkit-scrollbar { display: none; }
.rail.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.rail.is-dragging .post { pointer-events: none; }

.rail-nav { display: flex; gap: 10px; }
.rail-btn {
  width: 54px; height: 54px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s, border-color 0.3s, transform 0.5s var(--ease);
}
.rail-btn svg { width: 18px; height: 18px; }
.rail-btn:hover { background: var(--gold); border-color: var(--gold); color: #120e06; }
.rail-btn:disabled { opacity: 0.3; pointer-events: none; }

.post {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 360px;
  padding: 32px 30px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
  isolation: isolate;
  scroll-snap-align: start;
  transition: transform 0.7s var(--ease), border-color 0.5s, opacity 1.1s var(--ease), filter 1.1s var(--ease);
}
.post::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(120% 80% at 0% 0%, rgba(212, 175, 55, 0.16), transparent 55%);
  opacity: 0;
  transition: opacity 0.6s;
}
.post:hover { transform: translateY(-6px); border-color: var(--line-gold); }
.post:hover::before { opacity: 1; }
.post__num { display: block; margin-bottom: 30px; font-size: 2.3rem; line-height: 1; color: var(--gold-hi); }
.post h5 { margin-bottom: 14px; font-size: 1.26rem; line-height: 1.3; letter-spacing: -0.02em; }
.post p { flex: 1; margin: 0; font-size: 0.95rem; line-height: 1.75; }
.post__more { margin-top: 26px; }
.post__more::after { content: ""; position: absolute; inset: 0; }

.posts-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }

.pager { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px; margin-top: 64px; }
.pager a {
  height: 52px;
  min-width: 52px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
  transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}
.pager a svg { width: 16px; height: 16px; }
.pager a:hover { border-color: rgba(241, 213, 138, 0.6); color: var(--gold-hi); }
.pager a.is-current { background: var(--gold); border-color: var(--gold); color: #120e06; }

/* --------------------------------------------------------------------------
   CTA
   -------------------------------------------------------------------------- */
.cta {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding-block: clamp(120px, 16vw, 230px);
  text-align: center;
  background: #060506;
}
.cta__rays {
  position: absolute;
  top: 50%; left: 50%;
  z-index: -3;
  width: 180vmax; height: 180vmax;
  margin: -90vmax 0 0 -90vmax;
  background: repeating-conic-gradient(from 0deg, rgba(241, 213, 138, 0.075) 0deg 4deg, transparent 4deg 22deg);
  -webkit-mask-image: radial-gradient(circle, #000 0%, transparent 40%);
  mask-image: radial-gradient(circle, #000 0%, transparent 40%);
  animation: spin 120s linear infinite;
}
.cta__glow {
  position: absolute;
  top: 50%; left: 50%;
  z-index: -2;
  width: min(900px, 120vw); height: min(900px, 120vw);
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(212, 175, 55, 0.24), rgba(212, 175, 55, 0.05) 40%, transparent 65%);
  animation: breathe 7s ease-in-out infinite;
}
.cta::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, var(--bg) 0%, transparent 22%, transparent 78%, #050405 100%);
  pointer-events: none;
}
.cta__title {
  margin: 30px auto;
  font-size: clamp(2.7rem, 7vw, 6.8rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.05em;
}
.cta__title .serif { display: block; font-size: 1.12em; line-height: 1; letter-spacing: -0.02em; }
.cta__text { max-width: 54ch; margin: 0 auto 46px; font-size: clamp(1rem, 1.3vw, 1.15rem); }
.cta__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.cta__forms {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px 26px;
  margin-top: 40px;
  font-size: 0.84rem;
  color: var(--text-mute);
}
.cta__forms a { color: var(--text-dim); border-bottom: 1px solid var(--line-gold); padding-bottom: 2px; transition: color 0.3s, border-color 0.3s; }
.cta__forms a:hover { color: var(--gold-hi); border-color: var(--gold-hi); }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  position: relative;
  overflow: hidden;
  padding-top: clamp(72px, 9vw, 120px);
  border-top: 1px solid var(--line);
  background: #050405;
}
.footer__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--line);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
  gap: 48px;
  padding-block: 64px;
}
.footer__col h5 {
  margin-bottom: 24px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold-hi);
}
.footer__col p { font-size: 0.94rem; line-height: 1.8; }
.footer__col ul li a {
  display: inline-block;
  padding: 6px 0;
  color: var(--text-dim);
  transition: color 0.3s, transform 0.4s var(--ease);
}
.footer__col ul li a:hover { color: var(--text); transform: translateX(5px); }

.contact-line { display: grid; gap: 2px; margin-top: 18px; }
.contact-line span { font-size: 0.66rem; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: var(--text-mute); }
.contact-line a { width: fit-content; font-size: 1rem; font-weight: 600; color: var(--text); word-break: break-word; transition: color 0.3s; }
.contact-line a:hover { color: var(--gold-hi); }

.footer__word {
  margin: 0;
  font-size: clamp(3rem, 12.6vw, 14.5rem);
  font-weight: 800;
  line-height: 0.8;
  letter-spacing: -0.065em;
  text-align: center;
  white-space: nowrap;
  background: linear-gradient(180deg, rgba(241, 213, 138, 0.3), rgba(241, 213, 138, 0) 88%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  user-select: none;
  transform: translateY(10%);
}

.footer__bottom {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px 24px;
  padding-block: 26px;
  border-top: 1px solid var(--line);
}
.footer__bottom p { margin: 0; font-size: 0.86rem; color: var(--text-mute); }
.footer__bottom p a { color: var(--gold-hi); }

.to-top {
  position: fixed;
  right: 20px; bottom: 20px;
  z-index: 70;
  width: 56px; height: 56px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(12, 10, 13, 0.82);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: var(--gold-hi);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease), visibility 0s linear 0.5s, background-color 0.3s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; transition: opacity 0.5s var(--ease), transform 0.5s var(--ease), visibility 0s, background-color 0.3s; }
.to-top:hover { background: rgba(212, 175, 55, 0.18); }
.to-top > svg { width: 18px; height: 18px; }
.to-top .to-top__ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.to-top__ring circle { fill: none; stroke-width: 1.5; }
.to-top__ring .track { stroke: var(--line-strong); }
.to-top__ring .prog { stroke: var(--gold); stroke-dasharray: 169.65; stroke-dashoffset: calc(169.65 * (1 - var(--p, 0))); stroke-linecap: round; }

/* --------------------------------------------------------------------------
   Inner page hero
   -------------------------------------------------------------------------- */
.page-hero {
  position: relative;
  min-height: clamp(460px, 76vh, 780px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
  padding-top: var(--header-h);
  background: #050405;
}
.page-hero__media { position: absolute; inset: -8% 0; z-index: -3; transform: translate3d(0, var(--py, 0px), 0); }
.page-hero__bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--pos, center);
  filter: saturate(0.85) contrast(1.05) brightness(var(--bright, 0.9));
  animation: kenburns 26s ease-in-out infinite alternate;
}
@keyframes kenburns { 0% { transform: scale(1.04); } 100% { transform: scale(1.16) translate3d(-1.5%, -1%, 0); } }
.page-hero__shade {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(0deg, var(--bg) 0%, rgba(7, 6, 8, 0.55) 42%, rgba(7, 6, 8, 0.72) 100%),
    linear-gradient(90deg, rgba(7, 6, 8, 0.85) 0%, rgba(7, 6, 8, 0.2) 75%);
}
.page-hero__inner {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 32px;
  padding-bottom: clamp(48px, 7vw, 96px);
}

.crumbs {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 26px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.crumbs a { color: var(--gold-hi); transition: color 0.3s; }
.crumbs a:hover { color: var(--text); }
.crumbs__sep { width: 28px; height: 1px; background: rgba(255, 255, 255, 0.35); }

.page-hero__title {
  font-size: clamp(3rem, 10.5vw, 9.6rem);
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: -0.06em;
}
.page-hero__title .serif { font-size: 1.1em; letter-spacing: -0.03em; }

.page-hero--article { min-height: clamp(520px, 84vh, 860px); }
.page-hero--article .page-hero__inner { grid-template-columns: minmax(0, 1fr); }
.page-hero--article .page-hero__title { font-size: clamp(2rem, 4.6vw, 4.4rem); line-height: 1.02; letter-spacing: -0.035em; max-width: 24ch; }

.article-meta { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 28px; font-size: 0.86rem; color: var(--text-dim); }
.article-meta li { display: inline-flex; align-items: center; gap: 10px; }
.article-meta li + li::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--gold); margin-right: 16px; }
.article-meta span { color: var(--gold-hi); text-transform: uppercase; letter-spacing: 0.08em; }

/* --------------------------------------------------------------------------
   About page
   -------------------------------------------------------------------------- */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(48px, 6vw, 100px);
  align-items: center;
}
.collage {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 14px;
  height: clamp(440px, 50vw, 660px);
}
.collage__item { position: relative; overflow: hidden; border-radius: 22px; background: #111; }
.collage__item:first-child { grid-row: span 2; }
.collage__item img { width: 100%; height: 100%; object-fit: cover; }
.collage__badge {
  position: absolute;
  left: 52%; top: 50%;
  z-index: 2;
  width: 136px; height: 136px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(8, 7, 9, 0.88);
  border: 1px solid var(--line-gold);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transform: translate(-50%, -50%);
}
.collage__badge svg { position: absolute; inset: 8px; width: calc(100% - 16px); height: calc(100% - 16px); animation: spin 22s linear infinite; }
.collage__badge text { font-size: 10.5px; font-weight: 700; letter-spacing: 3.2px; fill: var(--gold-hi); text-transform: uppercase; }
.collage__badge img { width: 40px; height: 40px; }

.mini-svcs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 34px 0; }
.mini-svc { padding: 24px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); transition: border-color 0.4s, transform 0.6s var(--ease), opacity 1.1s var(--ease), filter 1.1s var(--ease); }
.mini-svc:hover { border-color: var(--line-gold); transform: translateY(-4px); }
.mini-svc img { width: 30px; height: 30px; margin-bottom: 18px; }
.mini-svc h4 { margin-bottom: 8px; font-size: 1.08rem; }
.mini-svc p { margin: 0; font-size: 0.92rem; }

.pull {
  position: relative;
  margin: 0;
  padding-left: 26px;
  border-left: 1px solid var(--gold);
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  line-height: 1.8;
  color: var(--text);
}

.team-list { display: grid; gap: clamp(72px, 10vw, 150px); }
.member {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(32px, 5vw, 84px);
  align-items: center;
}
.member:nth-child(even) { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.member:nth-child(even) .member__media { order: 2; }
.member__media { position: relative; aspect-ratio: 550 / 390; overflow: hidden; border-radius: 24px; background: #111; }
.member__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.6s var(--ease); }
.member__media:hover img { transform: scale(1.12) !important; }
.member__media::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(241, 213, 138, 0.18), inset 0 -120px 120px -60px rgba(0, 0, 0, 0.55);
  pointer-events: none;
}
.member__idx { display: block; margin-bottom: 18px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.24em; color: var(--text-mute); }
.member h2 { margin-bottom: 22px; font-size: clamp(2.2rem, 3.8vw, 3.4rem); letter-spacing: -0.04em; }
.member h2 strong { font-family: var(--font-serif); font-style: italic; font-weight: 400; color: var(--gold-hi); font-size: 1.1em; }
.member .lead { margin-bottom: 16px; font-size: 1.14rem; color: var(--text); }
.member .lead strong { color: var(--gold-hi); font-weight: 700; }
.member p:last-child { margin: 0; }

/* --------------------------------------------------------------------------
   Testimonials & logos (services page)
   -------------------------------------------------------------------------- */
.loop {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.loop__track { display: flex; width: max-content; animation: marquee var(--loop-dur, 60s) linear infinite; }
.loop:hover .loop__track { animation-play-state: paused; }
.loop__group { display: flex; gap: 20px; padding-right: 20px; }

.quote {
  width: min(430px, 82vw);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 34px;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.quote__mark { height: 34px; font-family: var(--font-serif); font-size: 5rem; line-height: 0.9; color: var(--gold); }
.quote p { margin: 0; font-family: var(--font-serif); font-style: italic; font-size: 1.5rem; line-height: 1.35; color: var(--text); }
.quote__author { display: flex; align-items: center; gap: 14px; }
.avatar {
  width: 48px; height: 48px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--gold-grad);
  color: #120e06;
  font-size: 0.86rem;
  font-weight: 800;
}
.quote__author h5 { font-size: 1rem; margin-bottom: 2px; }
.quote__author span { font-size: 0.8rem; color: var(--text-mute); }

.testimonial-sec { overflow: hidden; }
.testimonial-sec__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
}
.testimonial-sec::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, var(--bg), transparent 30%, transparent 70%, var(--bg));
}

.logos-sec { padding-block: clamp(56px, 7vw, 96px); border-top: 1px solid var(--line); }
.logos-sec .eyebrow { display: flex; justify-content: center; margin-bottom: 36px; }
.logo-tile {
  width: 190px; height: 104px;
  display: grid;
  place-items: center;
  padding: 14px 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #0e0c0f;
  filter: grayscale(1);
  opacity: 0.72;
  transition: filter 0.5s, opacity 0.5s, border-color 0.5s;
}
.logo-tile:hover { filter: none; opacity: 1; border-color: var(--line-gold); }
.logo-tile img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px; }

/* --------------------------------------------------------------------------
   Portfolio
   -------------------------------------------------------------------------- */
.filters {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto clamp(48px, 6vw, 72px);
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: var(--surface);
}
.filter {
  position: relative;
  z-index: 1;
  padding: 12px 20px;
  border: 0;
  border-radius: 999px;
  background: none;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--text-dim);
  cursor: pointer;
  transition: color 0.4s;
}
.filter:hover { color: var(--text); }
.filter.is-active { color: #120e06; }
.filters__pill {
  position: absolute;
  top: 0; left: 0;
  z-index: 0;
  border-radius: 999px;
  background: var(--gold-grad);
  background-size: 200% 100%;
  box-shadow: 0 8px 30px -10px rgba(212, 175, 55, 0.7);
  transition: transform 0.7s var(--ease), width 0.7s var(--ease), height 0.7s var(--ease);
}

.pf-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px 20px; }
.pf-card { transition: opacity 0.45s var(--ease), transform 0.6s var(--ease); transition-delay: var(--fd, 0s); }
.pf-card.is-out { opacity: 0; transform: scale(0.96) translateY(12px); transition-delay: 0s; }

.pf-card__media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 18px;
  background: #111;
  isolation: isolate;
}
.pf-card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform 1.4s var(--ease), filter 0.6s; }
.pf-card__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0, 0, 0, 0.6), transparent 60%); transition: opacity 0.5s; }
.pf-card__media:hover img { transform: scale(1.08); }
.pf-card__media .tile__play { z-index: 2; }
.pf-card__media.is-disabled { cursor: default; }
.pf-card__media.is-disabled .play { opacity: 0.45; }

.pf-card__body { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 20px 4px 0; }
.pf-card__body h4 { font-size: 1.22rem; letter-spacing: -0.02em; }
.pf-card__body .tags li { background: transparent; color: var(--text-dim); border-color: var(--line-strong); }
.pf-card__type { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-hi); }

.pf-empty { grid-column: 1 / -1; padding: 60px 20px; text-align: center; color: var(--text-mute); border: 1px dashed var(--line-strong); border-radius: var(--radius); }

/* --------------------------------------------------------------------------
   Blog details
   -------------------------------------------------------------------------- */
.read-progress {
  position: fixed;
  top: 0; left: 0;
  z-index: 85;
  width: 100%; height: 2px;
  background: var(--gold-grad);
  transform: scaleX(0);
  transform-origin: left;
}

.toc { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.toc a {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text-dim);
  transition: border-color 0.4s, color 0.3s, transform 0.5s var(--ease), opacity 1.1s var(--ease), filter 1.1s var(--ease);
}
.toc a:hover { border-color: var(--line-gold); color: var(--text); transform: translateY(-3px); }
.toc a .serif { font-size: 1.4rem; color: var(--gold-hi); }

.article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 84px);
  align-items: center;
  padding-block: clamp(56px, 7vw, 110px);
  border-top: 1px solid var(--line);
  scroll-margin-top: var(--header-h);
}
.article:nth-of-type(even) .article__media { order: 2; }
.article__media { position: relative; aspect-ratio: 3 / 2; overflow: hidden; border-radius: 24px; background: #111; }
.article__media img { width: 100%; height: 100%; object-fit: cover; }
.article__num { display: block; margin-bottom: 18px; font-size: 3.2rem; line-height: 1; color: var(--gold-hi); }
.article h2 { margin-bottom: 22px; font-size: clamp(1.7rem, 2.8vw, 2.5rem); line-height: 1.12; letter-spacing: -0.035em; }
.article p { margin: 0; font-size: 1.02rem; line-height: 1.9; }

/* --------------------------------------------------------------------------
   Contact
   -------------------------------------------------------------------------- */
.contact-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: clamp(56px, 7vw, 100px); }
.c-card {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: transform 0.7s var(--ease), border-color 0.5s, opacity 1.1s var(--ease), filter 1.1s var(--ease);
}
.c-card:hover { transform: translateY(-6px); border-color: var(--line-gold); }
.c-card__icon {
  width: 58px; height: 58px;
  flex: none;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-gold);
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.07);
  font-size: 1.35rem;
  color: var(--gold-hi);
  transition: background-color 0.4s, color 0.4s;
}
.c-card:hover .c-card__icon { background: var(--gold); color: #120e06; }
.c-card h4 { margin-bottom: 10px; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold-hi); }
.c-card p { margin: 0; font-size: 1.02rem; line-height: 1.55; color: var(--text); overflow-wrap: anywhere; }
.c-card a p { transition: color 0.3s; }
.c-card a:hover p { color: var(--gold-hi); }

.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: stretch; }

.form-card {
  padding: clamp(28px, 4vw, 54px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012));
}
.form-card h3 { margin-bottom: 34px; font-size: clamp(2.2rem, 4vw, 3.4rem); letter-spacing: -0.045em; }
.form-card form { display: grid; gap: 16px; }

.field { position: relative; }
.field input,
.field textarea {
  width: 100%;
  padding: 28px 18px 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  outline: none;
  background: rgba(255, 255, 255, 0.03);
  font: inherit;
  font-size: 1rem;
  color: var(--text);
  transition: border-color 0.3s, box-shadow 0.3s, background-color 0.3s;
}
.field textarea { min-height: 160px; resize: vertical; }
.field label {
  position: absolute;
  left: 19px; top: 19px;
  font-size: 1rem;
  color: var(--text-mute);
  pointer-events: none;
  transform-origin: left top;
  transition: transform 0.35s var(--ease), color 0.3s;
}
.field input:focus,
.field textarea:focus {
  border-color: rgba(241, 213, 138, 0.7);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.12);
}
.field input:focus + label,
.field input:not(:placeholder-shown) + label,
.field textarea:focus + label,
.field textarea:not(:placeholder-shown) + label {
  color: var(--gold-hi);
  transform: translateY(-11px) scale(0.72);
}

.btn-spinner { display: inline-flex; }
.form-status { min-height: 1.6em; margin: 4px 0 0; font-size: 0.94rem; color: var(--gold-hi); }

.map-frame {
  position: relative;
  min-height: 480px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #0e0c0f;
}
.map-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  filter: invert(0.92) hue-rotate(180deg) saturate(0.35) brightness(0.95) contrast(0.92);
  transition: filter 0.8s;
}
.map-frame:hover iframe { filter: invert(0.92) hue-rotate(180deg) saturate(0.6) brightness(1) contrast(0.95); }
.map-frame__pin {
  position: absolute;
  left: 18px; bottom: 18px;
  z-index: 2;
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   Lightbox
   -------------------------------------------------------------------------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 170;
  display: grid;
  place-items: center;
  padding: clamp(16px, 5vw, 72px);
  background: rgba(4, 3, 4, 0.94);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s var(--ease), visibility 0s linear 0.5s;
}
.lightbox.is-open { opacity: 1; visibility: visible; transition: opacity 0.5s var(--ease), visibility 0s; }
.lightbox__frame {
  position: relative;
  width: min(1200px, 100%);
  aspect-ratio: 16 / 9;
  max-height: calc(100vh - 140px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #000;
  box-shadow: 0 40px 140px rgba(0, 0, 0, 0.85), 0 0 120px rgba(212, 175, 55, 0.08);
  transform: scale(0.94) translateY(20px);
  transition: transform 0.8s var(--ease);
}
.lightbox.is-open .lightbox__frame { transform: none; }
.lightbox--site .lightbox__frame { aspect-ratio: auto; height: min(82vh, 920px); }
.lightbox__frame iframe { width: 100%; height: 100%; border: 0; background: #fff; }
.lightbox--video .lightbox__frame iframe { background: #000; }
.lightbox__bar {
  position: absolute;
  top: 16px; right: 16px;
  display: flex;
  gap: 10px;
}
.lightbox__close {
  width: 50px; height: 50px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: rgba(14, 12, 15, 0.85);
  color: var(--text);
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s, transform 0.5s var(--ease);
}
.lightbox__close:hover { background: var(--gold); color: #120e06; transform: rotate(90deg); }
.lightbox__close svg { width: 18px; height: 18px; }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1360px) {
  .header-social { display: none; }
}

@media (max-width: 1180px) {
  .nav,
  .header-cta { display: none; }
  .burger { display: block; }

  .pillars__grid { grid-template-columns: 1fr; }
  .pillar { min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 32px; align-items: center; }
  .pillar__top { grid-column: 1 / -1; }
  .pillar__art { grid-column: 2; grid-row: 2 / span 3; margin: 18px 0; }
  .pillar h3 { grid-column: 1; align-self: end; margin-top: 18px; }
  .pillar p { grid-column: 1; align-self: start; }
  .pillar__foot { grid-column: 1 / -1; }

  .svc-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 960px) {
  :root { --header-h: 74px; }
  .brand img { height: 40px; }

  .sec-head--split { grid-template-columns: 1fr; align-items: start; }

  .hero__bottom { grid-template-columns: 1fr; }
  .hero__side { justify-items: start; grid-auto-flow: column; justify-content: space-between; align-items: center; }

  .split,
  .case__grid,
  .about-grid,
  .contact-grid { grid-template-columns: 1fr; }
  .split__aside { position: static; }

  .rail { grid-auto-columns: calc((100% - 20px) / 2); }
  .posts-grid,
  .pf-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .bento { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: clamp(160px, 26vw, 240px); }

  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n + 2) { border-bottom: 1px solid var(--line); }

  .member,
  .member:nth-child(even) { grid-template-columns: 1fr; }
  .member:nth-child(even) .member__media { order: 0; }

  .article { grid-template-columns: 1fr; }
  .article:nth-of-type(even) .article__media { order: 0; }

  .toc,
  .contact-cards { grid-template-columns: 1fr; }
  .toc { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .page-hero__inner { grid-template-columns: 1fr; }
  .map-frame { min-height: 380px; }

  .device-stage { min-height: 660px; }
  .impact { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .workflow { grid-template-columns: 1fr; gap: 0; max-width: 560px; margin-inline: auto; }
  .workflow::before { top: 36px; bottom: 36px; left: 36px; right: auto; width: 1px; height: auto; }
  .workflow::after { display: none; }
  .wf-step { grid-template-columns: 72px minmax(0, 1fr); justify-items: start; column-gap: 22px; row-gap: 4px; padding-bottom: 26px; text-align: left; }
  .wf-step__icon { grid-row: span 3; margin-bottom: 0; }
  .wf-step__n { align-self: end; padding-top: 10px; }
  .wf-step p { max-width: none; }
}

@media (max-width: 720px) {
  .reel { grid-template-columns: 1fr; gap: 14px; }
  .reel__label { padding-top: 0; }
  .reel__tabs { display: flex; gap: 12px; }
  .reel__tab { flex: 0 0 44px; transition: flex-basis 0.6s var(--ease); }
  .reel__tab.is-active { flex: 1 1 auto; }
  .reel__tab:not(.is-active) .reel__title,
  .reel__tab:not(.is-active) .reel__tag { display: none; }

  .hero__content { padding-top: calc(var(--header-h) + 40px); }
  .hero__sub { margin: 24px 0 32px; }

  .flow { flex-direction: column; gap: 10px; }
  .flow__line { width: 1px; height: 26px; flex: none; }
  .flow__line::after { width: 1px; height: 40%; left: 0; top: -40%; background: linear-gradient(180deg, transparent, var(--gold-hi), transparent); animation-name: flowLineV; }
  @keyframes flowLineV { to { top: 100%; } }

  .pillar { display: flex; align-items: stretch; }
  .pillar h3,
  .pillar p { align-self: auto; }
  .pillar h3 { margin-top: 0; }

  .svc-grid,
  .svc-grid--3,
  .posts-grid,
  .pf-grid,
  .mini-svcs,
  .toc,
  .footer__grid { grid-template-columns: 1fr; }

  .rail { grid-auto-columns: 86%; }

  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 150px; gap: 8px; padding-inline: 8px; }
  .tile--wide { grid-column: span 2; }
  .tile--large { grid-column: span 2; grid-row: span 2; }
  .tile__info { padding: 16px; }
  .play { width: 52px; height: 52px; }

  .stat { padding: 32px 16px 28px; }
  .stat__icon { margin-bottom: 20px; }

  .collage { height: 440px; }
  .collage__badge { width: 112px; height: 112px; }
  .collage__badge text { font-size: 9px; letter-spacing: 2.4px; }

  .footer__grid { gap: 36px; padding-block: 48px; }
  .to-top { right: 14px; bottom: 14px; width: 50px; height: 50px; }

  .impact { grid-template-columns: 1fr; }
  .case__problem { padding: 22px; }
  .device-stage { min-height: 600px; margin-inline: calc(var(--gutter) * -1); }
  .phone { font-size: 8.4px; }
  .float-card { padding: 12px 14px; border-radius: 14px; }
  .float-card--scan { top: 4%; left: 8px; }
  .float-card--stat { right: 8px; bottom: 4%; width: 190px; }
  .float-card b { font-size: 2rem; }
  .barcode { width: 110px; height: 30px; }
}

@media (max-width: 480px) {
  .btn {
    height: auto;
    min-height: var(--bh);
    padding: 14px 22px;
    white-space: normal;
    text-align: center;
    line-height: 1.35;
  }
  .hero__actions .btn,
  .cta__actions .btn,
  .case__actions .btn { width: 100%; }
  .hero__side .link-arrow { font-size: 0.66rem; }
  .filter { padding: 10px 14px; font-size: 0.66rem; }
  .quote { padding: 26px; }
  .quote p { font-size: 1.28rem; }
  .logo-tile { width: 150px; height: 88px; }
  .c-card { padding: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    transition-delay: 0s !important;
    scroll-behavior: auto !important;
  }
  html { scroll-behavior: auto; }
  .grain,
  .hero__beam { display: none; }
  .js [data-reveal],
  .js [data-reveal="clip"] { opacity: 1; transform: none; filter: none; clip-path: none; }
  .js .line > span,
  .js [data-hero-in] { transform: none; opacity: 1; }
  .loop__track,
  .marquee__track { animation: none !important; }
}
