/* ==========================================================================
   RHEX: Royal Home of Excellence
   Brand palette sampled from the RHEX corporate profile:
   orange #F9A01B / #E49125, charcoal #2F323E, crest gold #C9A227
   ========================================================================== */

:root {
  --orange: #F9A01B;
  --orange-deep: #E49125;
  --gold: #D4AF37;
  --gold-soft: #E9CF7A;
  --charcoal: #2F323E;
  --charcoal-2: #24262F;
  --night: #15161C;

  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 18px;
  --radius-sm: 10px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --nav-h: 76px;

  /* Light theme (default) */
  --bg: #F6F6F7;
  --bg-alt: #FFFFFF;
  --surface: #FFFFFF;
  --surface-2: #EFEFF2;
  --text: #2F323E;
  --text-soft: #5D6070;
  --line: rgba(47, 50, 62, .12);
  --accent-text: #C77A0A;
  --shadow: 0 30px 60px -30px rgba(47, 50, 62, .35);
  --nav-bg: rgba(246, 246, 247, .78);
  --crest-glow: rgba(249, 160, 27, .45);
  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #121318;
  --bg-alt: #181A21;
  --surface: #1E2029;
  --surface-2: #262935;
  --text: #ECECF0;
  --text-soft: #A3A6B5;
  --line: rgba(255, 255, 255, .09);
  --accent-text: #FBB443;
  --shadow: 0 30px 60px -25px rgba(0, 0, 0, .7);
  --nav-bg: rgba(18, 19, 24, .72);
  --crest-glow: rgba(212, 175, 55, .5);
  color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #121318;
    --bg-alt: #181A21;
    --surface: #1E2029;
    --surface-2: #262935;
    --text: #ECECF0;
    --text-soft: #A3A6B5;
    --line: rgba(255, 255, 255, .09);
    --accent-text: #FBB443;
    --shadow: 0 30px 60px -25px rgba(0, 0, 0, .7);
    --nav-bg: rgba(18, 19, 24, .72);
    --crest-glow: rgba(212, 175, 55, .5);
    color-scheme: dark;
  }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; scroll-behavior: smooth; scroll-padding-top: var(--nav-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  overflow-x: clip;
  transition: background-color .6s var(--ease), color .6s var(--ease);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
h1, h2, h3 { margin: 0; line-height: 1.1; }
p { margin: 0 0 1em; }
em { font-style: italic; }
address { font-style: normal; }
::selection { background: var(--orange); color: var(--night); }

.container { width: min(1200px, 100% - 32px); margin-inline: auto; }
@media (min-width: 720px) { .container { width: min(1200px, 100% - 64px); } }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--orange); color: var(--night); padding: 10px 16px; border-radius: 8px; font-weight: 600;
}
.skip-link:focus { top: 16px; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }

/* ---------- Film grain + progress ---------- */
.grain {
  pointer-events: none; position: fixed; inset: -50%; z-index: 90; opacity: .05;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain {
  0%, 100% { transform: translate(0, 0); }
  20% { transform: translate(-3%, 2%); }
  40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -1%); }
  80% { transform: translate(3%, 3%); }
}
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 100%; z-index: 120;
  background: linear-gradient(90deg, var(--orange-deep), var(--gold-soft));
  transform-origin: 0 50%; transform: scaleX(var(--progress, 0));
}

/* ---------- Preloader ---------- */
.preloader { display: none; }
.js .preloader {
  position: fixed; inset: 0; z-index: 300; display: grid; place-items: center;
  background: var(--night);
  transition: clip-path 1.1s var(--ease-out) .1s, visibility 0s 1.3s;
  clip-path: inset(0 0 0 0);
}
.js .preloader__inner { display: grid; justify-items: center; gap: 18px; }
.preloader img {
  width: 110px; height: auto;
  animation: crestIn 1.2s var(--ease-out) both;
  filter: drop-shadow(0 0 30px rgba(212, 175, 55, .35));
}
.preloader__line {
  width: 140px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent);
  animation: lineIn 1.2s var(--ease-out) .3s both;
}
.preloader__text {
  font-family: var(--font-display); font-style: italic; color: var(--gold-soft); letter-spacing: .2em; font-size: 15px;
  animation: fadeUp 1s var(--ease-out) .5s both;
}
.is-loaded .preloader { clip-path: inset(0 0 100% 0); visibility: hidden; }
@keyframes crestIn { from { opacity: 0; transform: scale(.85); filter: blur(8px); } to { opacity: 1; transform: none; } }
@keyframes lineIn { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ---------- Buttons ---------- */
.btn {
  --h: 54px;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--h); padding: 0 28px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: 14px; letter-spacing: .06em; text-transform: uppercase;
  overflow: hidden; isolation: isolate;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), color .3s, border-color .3s, background-color .3s;
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .45) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .8s var(--ease);
}
.btn:hover::before { transform: translateX(120%); }
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: linear-gradient(135deg, var(--orange), var(--orange-deep)); color: #1a1205; box-shadow: 0 14px 30px -12px rgba(249, 160, 27, .7); }
.btn--ghost { border-color: rgba(255, 255, 255, .35); color: #fff; backdrop-filter: blur(6px); background: rgba(255, 255, 255, .04); }
.btn--ghost:hover { border-color: var(--orange); color: var(--orange); }
.btn--small { --h: 42px; padding: 0 20px; font-size: 12px; }
.btn--block { width: 100%; }

/* ---------- Eyebrows / titles ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px; margin: 0 0 18px;
  font-size: 12px; font-weight: 700; letter-spacing: .28em; text-transform: uppercase; color: var(--accent-text);
}
.eyebrow--light { color: var(--orange); }
.eyebrow__dash { width: 36px; height: 2px; background: currentColor; display: inline-block; }
.section-title {
  font-family: var(--font-display); font-weight: 600; font-size: clamp(36px, 5.4vw, 64px); letter-spacing: -.01em; line-height: 1.04;
  margin-bottom: 24px;
}
.section-title em { color: var(--accent-text); font-weight: 500; }
.section-title--light { color: #fff; }
.section-title--light em { color: var(--orange); }
.section-lead { color: var(--text-soft); font-size: 17px; max-width: 46ch; }

.section { position: relative; padding: clamp(80px, 12vw, 150px) 0; }
.section-head { margin-bottom: clamp(40px, 6vw, 70px); }
.section-head--split { display: grid; gap: 16px 60px; align-items: end; }
@media (min-width: 900px) { .section-head--split { grid-template-columns: 1.2fr 1fr; } .section-head--split .section-lead { justify-self: end; margin-bottom: 30px; } }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(40px); transition: opacity 1.1s var(--ease-out), transform 1.1s var(--ease-out); transition-delay: var(--d, 0s); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- Navigation ---------- */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 100; transition: background-color .5s, box-shadow .5s, transform .5s var(--ease); padding-top: env(safe-area-inset-top); }
.nav__inner { height: var(--nav-h); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.nav.is-scrolled { background: var(--nav-bg); backdrop-filter: saturate(160%) blur(16px); -webkit-backdrop-filter: saturate(160%) blur(16px); box-shadow: 0 1px 0 var(--line); }

.brand { display: flex; align-items: center; gap: 10px; color: #fff; transition: color .4s; min-width: 0; }
.brand img { width: 38px; height: auto; flex: none; filter: drop-shadow(0 0 10px rgba(212, 175, 55, .35)); }
.brand__text { display: grid; line-height: 1.1; min-width: 0; }
.brand__text strong { font-family: var(--font-display); font-size: 22px; letter-spacing: .14em; }
.brand__text small { font-size: 9px; letter-spacing: .2em; text-transform: uppercase; opacity: .75; white-space: nowrap; }
.nav.is-scrolled .brand { color: var(--text); }
@media (min-width: 720px) {
  .brand { gap: 12px; }
  .brand img { width: 42px; }
  .brand__text strong { font-size: 24px; }
  .brand__text small { font-size: 10px; letter-spacing: .22em; }
}

/* Desktop links: a short, single row with the debate show set apart */
.nav__links { display: none; align-items: center; gap: 4px; padding: 5px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .05); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); transition: border-color .4s, background-color .4s; }
.nav__links a { position: relative; display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px; white-space: nowrap; border-radius: 999px; font-size: 13px; font-weight: 600; letter-spacing: .04em; color: rgba(255, 255, 255, .82); transition: color .3s, background-color .3s; }
.nav__links a:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.nav__links a.is-active { color: var(--night); background: var(--orange); }
.nav.is-scrolled .nav__links { border-color: var(--line); background: var(--surface); }
.nav.is-scrolled .nav__links a { color: var(--text-soft); }
.nav.is-scrolled .nav__links a:hover { color: var(--text); background: var(--surface-2); }
.nav.is-scrolled .nav__links a.is-active { color: var(--night); background: var(--orange); }
.nav__links .nav__feature { color: var(--orange); }
.nav.is-scrolled .nav__links .nav__feature { color: var(--accent-text); }
.nav__feature i { width: 7px; height: 7px; border-radius: 50%; background: #E5484D; box-shadow: 0 0 0 0 rgba(229, 72, 77, .55); animation: livePulse 2s infinite; }
@keyframes livePulse { 70% { box-shadow: 0 0 0 8px rgba(229, 72, 77, 0); } 100% { box-shadow: 0 0 0 0 rgba(229, 72, 77, 0); } }

.nav__actions { display: flex; align-items: center; gap: 10px; flex: none; }
.nav__cta { display: none; }

.theme-toggle {
  position: relative; width: 44px; height: 44px; border-radius: 50%; flex: none;
  border: 1px solid rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .06); color: #fff;
  display: grid; place-items: center; transition: border-color .3s, color .3s, transform .5s var(--ease);
}
.theme-toggle:hover { border-color: var(--orange); color: var(--orange); transform: rotate(20deg); }
.nav.is-scrolled .theme-toggle { color: var(--text); border-color: var(--line); background: var(--surface); }
.theme-toggle svg { position: absolute; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; transition: transform .6s var(--ease-out), opacity .4s; }
.theme-toggle .icon-moon { fill: currentColor; stroke: none; }
[data-theme="light"] .theme-toggle .icon-sun { opacity: 0; transform: rotate(-90deg) scale(.4); }
[data-theme="dark"] .theme-toggle .icon-moon { opacity: 0; transform: rotate(90deg) scale(.4); }

/* Menu button: a labelled pill so it reads as a menu at a glance */
.nav__burger {
  height: 44px; padding: 0 8px 0 16px; border-radius: 999px; display: inline-flex; align-items: center; gap: 10px;
  border: 1px solid rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .06); color: #fff;
  font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; transition: border-color .3s, background-color .3s, color .3s;
}
.nav__burger-icon { width: 28px; height: 28px; border-radius: 50%; display: grid; place-content: center; gap: 4px; background: var(--orange); }
.nav__burger-icon span { display: block; width: 14px; height: 2px; border-radius: 2px; background: var(--night); transition: transform .4s var(--ease), opacity .3s; }
.nav.is-scrolled .nav__burger, .nav.menu-open .nav__burger { color: var(--text); border-color: var(--line); background: var(--surface); }
.nav.menu-open .nav__burger-icon span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav.menu-open .nav__burger-icon span:nth-child(2) { opacity: 0; }
.nav.menu-open .nav__burger-icon span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
@media (max-width: 439px) { .brand__text small { display: none; } }
@media (max-width: 339px) { .nav__burger-label { display: none; } .nav__burger { padding: 0 7px; } }

/* backdrop-filter would trap the fixed menu inside the bar, so drop it while open */
.nav.menu-open { background: var(--bg); backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: 0 1px 0 var(--line); transform: none; }
.nav.menu-open .brand { color: var(--text); }
.nav.menu-open .theme-toggle { color: var(--text); border-color: var(--line); background: var(--surface); }

/* Full-screen menu for phones and tablets */
.mobile-menu {
  position: fixed; left: 0; right: 0; bottom: 0; top: calc(var(--nav-h) + env(safe-area-inset-top));
  overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
  background: var(--bg); animation: menuIn .45s var(--ease-out);
}
.mobile-menu[hidden] { display: none; }
@keyframes menuIn { from { opacity: 0; transform: translateY(-12px); } }
.mobile-menu__inner { display: grid; gap: 22px; padding: 18px 0 calc(28px + env(safe-area-inset-bottom)); }
.mobile-menu__feature {
  position: relative; display: grid; gap: 4px; padding: 20px 64px 20px 22px; border-radius: var(--radius); color: #fff; overflow: hidden; isolation: isolate;
  background: radial-gradient(260px 160px at 90% 0%, rgba(249, 160, 27, .45), transparent 70%), linear-gradient(135deg, var(--charcoal), var(--night));
}
.mobile-menu__feature strong { font-family: var(--font-display); font-size: 30px; line-height: 1.05; color: var(--gold-soft); }
.mobile-menu__feature span:not(.mobile-menu__live) { font-size: 14px; color: rgba(255, 255, 255, .75); line-height: 1.5; }
.mobile-menu__feature svg { position: absolute; right: 18px; top: 50%; width: 40px; height: 40px; padding: 10px; margin-top: -20px; border-radius: 50%; background: var(--orange); stroke: var(--night); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.mobile-menu__live { display: inline-flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--orange); }
.mobile-menu__live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #E5484D; animation: livePulse 2s infinite; }
.mobile-menu__groups { display: grid; gap: 18px; }
@media (min-width: 640px) { .mobile-menu__groups { grid-template-columns: 1fr 1fr; gap: 30px; } }
.mobile-menu__group { display: grid; }
.mobile-menu__group p { margin: 0 0 4px; font-size: 11px; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; color: var(--accent-text); }
.mobile-menu__group a { display: flex; align-items: baseline; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); font-family: var(--font-display); font-size: 26px; font-weight: 600; line-height: 1.15; transition: color .3s, padding-left .4s var(--ease); }
.mobile-menu__group a span { font-family: var(--font-body); font-size: 11px; font-weight: 600; letter-spacing: .1em; color: var(--text-soft); width: 20px; }
.mobile-menu__group a:hover, .mobile-menu__group a:focus-visible { color: var(--accent-text); padding-left: 6px; }
.mobile-menu__contact { display: grid; gap: 12px; }
.mobile-menu__quick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mobile-menu__chip { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-size: 14px; font-weight: 600; }
.mobile-menu__chip svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.menu-locked { overflow: hidden; }

@media (min-width: 1024px) {
  .nav__links { display: flex; }
  .nav__burger { display: none; }
  .mobile-menu { display: none !important; }
}
@media (min-width: 1180px) { .nav__links a { padding: 0 18px; } }
@media (min-width: 640px) { .nav__cta { display: inline-flex; } }

/* ---------- Hero (cinematic, always dark) ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh; display: grid; align-items: center;
  overflow: hidden; color: #fff; background: var(--night); isolation: isolate;
  padding: calc(var(--nav-h) + 40px) 0 110px;
}
.hero__media { position: absolute; inset: 0; z-index: -3; }
.hero__img {
  width: 100%; height: 100%; object-fit: cover; object-position: 40% 30%;
  filter: grayscale(.35) contrast(1.05) brightness(.6);
  transform: scale(1.12); animation: kenburns 24s ease-in-out infinite alternate;
}
@keyframes kenburns { from { transform: scale(1.12) translate(0, 0); } to { transform: scale(1.22) translate(-2%, -2%); } }
.hero__veil {
  position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(1200px 600px at 80% 40%, rgba(249, 160, 27, .18), transparent 60%),
    linear-gradient(90deg, rgba(15, 16, 21, .96) 0%, rgba(21, 22, 28, .82) 45%, rgba(21, 22, 28, .55) 100%),
    linear-gradient(0deg, rgba(15, 16, 21, 1) 0%, transparent 35%);
}
.hero .particles { z-index: -1; }
.hero__shape { position: absolute; z-index: -1; pointer-events: none; }
.hero__shape--a {
  width: 340px; height: 340px; right: -120px; top: 14%;
  background: linear-gradient(135deg, var(--orange), var(--orange-deep));
  clip-path: polygon(30% 0, 100% 0, 70% 100%, 0 100%); opacity: .9;
  animation: drift 14s ease-in-out infinite alternate;
}
.hero__shape--b {
  width: 180px; height: 260px; left: -60px; bottom: 6%;
  border: 2px solid rgba(249, 160, 27, .5);
  clip-path: polygon(40% 0, 100% 0, 60% 100%, 0 100%);
  background: rgba(249, 160, 27, .08);
  animation: drift 18s ease-in-out infinite alternate-reverse;
}
@keyframes drift { from { transform: translateY(-20px) rotate(0); } to { transform: translateY(30px) rotate(3deg); } }

.hero__content { display: grid; gap: 40px; align-items: center; }
@media (min-width: 980px) { .hero__content { grid-template-columns: 1.35fr .9fr; } }

.hero__eyebrow { color: var(--orange); }
.hero__title {
  font-family: var(--font-display); font-weight: 600; font-size: clamp(42px, 6.4vw, 88px); line-height: 1.02; letter-spacing: -.015em;
  margin-bottom: 28px;
}
.hero__title .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero__title .line > span { display: inline-block; }
.hero__title em {
  font-weight: 500;
  background: linear-gradient(100deg, var(--gold-soft) 0%, var(--orange) 40%, #fff3d6 50%, var(--orange) 60%, var(--gold) 100%);
  background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shimmer 6s linear infinite;
}
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: -150% 0; } }
.js .hero__title .line > span { transform: translateY(110%); transition: transform 1.3s var(--ease-out); }
.js .is-loaded .hero__title .line > span { transform: none; }
.js .is-loaded .hero__title .line:nth-child(2) > span { transition-delay: .12s; }
.js .is-loaded .hero__title .line:nth-child(3) > span { transition-delay: .24s; }
.js .is-loaded .hero__title .line:nth-child(4) > span { transition-delay: .36s; }

.hero__lead { max-width: 52ch; font-size: clamp(16px, 1.6vw, 18px); color: rgba(255, 255, 255, .78); margin-bottom: 36px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; }
.js .hero__eyebrow, .js .hero__lead, .js .hero__ctas { opacity: 0; transform: translateY(20px); transition: opacity 1s var(--ease-out) .55s, transform 1s var(--ease-out) .55s; }
.js .hero__lead { transition-delay: .7s; }
.js .hero__ctas { transition-delay: .85s; }
.js .is-loaded .hero__eyebrow, .js .is-loaded .hero__lead, .js .is-loaded .hero__ctas { opacity: 1; transform: none; }

.hero__crest { display: none; justify-self: center; }
@media (min-width: 980px) { .hero__crest { display: block; } }
.crest { position: relative; width: min(340px, 30vw); }
.crest img { position: relative; width: 100%; height: auto; filter: drop-shadow(0 30px 50px rgba(0, 0, 0, .6)) drop-shadow(0 0 1px rgba(212, 175, 55, .8)); animation: float 7s ease-in-out infinite; }
.crest__halo {
  position: absolute; inset: -22%; border-radius: 50%;
  background: radial-gradient(circle, var(--crest-glow) 0%, rgba(249, 160, 27, .08) 45%, transparent 70%);
  animation: pulse 5s ease-in-out infinite;
}
.crest::before, .crest::after {
  content: ""; position: absolute; inset: -14%; border-radius: 50%;
  border: 1px solid rgba(212, 175, 55, .25);
  animation: spin 40s linear infinite;
  border-top-color: rgba(249, 160, 27, .8);
}
.crest::after { inset: -26%; animation-duration: 60s; animation-direction: reverse; border-top-color: transparent; border-right-color: rgba(212, 175, 55, .6); }
.js .crest { opacity: 0; transform: scale(.9); transition: opacity 1.6s var(--ease-out) .4s, transform 1.6s var(--ease-out) .4s; }
.js .is-loaded .crest { opacity: 1; transform: none; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes pulse { 0%, 100% { opacity: .7; transform: scale(.95); } 50% { opacity: 1; transform: scale(1.05); } }
@keyframes spin { to { transform: rotate(360deg); } }

.hero__scroll {
  position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%);
  display: grid; justify-items: center; gap: 10px; color: rgba(255, 255, 255, .6);
  font-size: 10px; letter-spacing: .35em; text-transform: uppercase;
}
.hero__scroll i { width: 1px; height: 48px; background: linear-gradient(var(--orange), transparent); position: relative; overflow: hidden; }
.hero__scroll i::after { content: ""; position: absolute; left: 0; top: -50%; width: 100%; height: 50%; background: #fff; animation: scrollLine 2.2s var(--ease) infinite; }
@keyframes scrollLine { to { top: 120%; } }

/* ---------- Particles canvas ---------- */
.particles { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }

/* ---------- Mantra marquee ---------- */
.mantra { background: linear-gradient(90deg, var(--orange-deep), var(--orange)); color: var(--night); overflow: hidden; padding: 22px 0; position: relative; z-index: 2; }
.mantra__track { display: flex; width: max-content; animation: marquee 32s linear infinite; }
.mantra__group { display: flex; align-items: center; gap: 36px; padding-right: 36px; }
.mantra span { font-family: var(--font-display); font-size: clamp(26px, 3.4vw, 42px); font-weight: 600; font-style: italic; white-space: nowrap; }
.mantra b { font-size: 18px; opacity: .65; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Frames ---------- */
.frame { position: relative; overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow); }
.frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease-out); }
.frame:hover img { transform: scale(1.04); }
.frame--angled { clip-path: polygon(0 0, 100% 0, 100% 88%, 82% 100%, 0 100%); }
.frame--tint::after { content: ""; position: absolute; inset: 0; background: linear-gradient(160deg, rgba(249, 160, 27, .55), rgba(47, 50, 62, .2)); mix-blend-mode: multiply; }

/* ---------- About ---------- */
.about { background: var(--bg); }
.about__grid { display: grid; gap: 60px; align-items: center; }
@media (min-width: 960px) { .about__grid { grid-template-columns: .9fr 1.1fr; gap: 90px; } }
.about__media { position: relative; max-width: 460px; margin-inline: auto; width: 100%; }
.about__media::before {
  content: ""; position: absolute; inset: auto -24px -24px auto; width: 70%; height: 70%; z-index: -1;
  background: linear-gradient(135deg, var(--orange), var(--orange-deep));
  clip-path: polygon(25% 0, 100% 0, 75% 100%, 0 100%);
}
.about__media { isolation: isolate; }
.about__badge {
  position: absolute; left: -10px; top: 30px; display: grid; gap: 2px; padding: 18px 22px; border-radius: 14px;
  background: var(--charcoal); color: #fff; box-shadow: var(--shadow);
}
.about__badge strong { font-family: var(--font-display); font-size: 34px; color: var(--orange); line-height: 1; }
.about__badge span { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; opacity: .85; line-height: 1.4; }
.about__copy p { color: var(--text-soft); font-size: 17px; }
.about__copy strong { color: var(--text); font-weight: 600; }

.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; margin-top: 40px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
@media (min-width: 640px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { background: var(--bg); padding: 22px 18px; display: grid; gap: 4px; }
.stat__num { font-family: var(--font-display); font-size: 44px; font-weight: 600; line-height: 1; color: var(--accent-text); }
.stat__label { font-size: 12px; color: var(--text-soft); letter-spacing: .04em; line-height: 1.4; }

/* ---------- Vision ---------- */
.vision { background: var(--bg-alt); overflow: hidden; }
.vision::before {
  content: ""; position: absolute; right: -160px; top: 60px; width: 420px; height: 420px;
  background: linear-gradient(135deg, var(--orange), var(--orange-deep)); opacity: .9;
  clip-path: polygon(35% 0, 100% 0, 65% 100%, 0 100%);
}
.vm-grid { position: relative; display: grid; gap: 22px; }
@media (min-width: 860px) { .vm-grid { grid-template-columns: repeat(3, 1fr); } }
.vm-card {
  position: relative; padding: 40px 34px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line);
  box-shadow: var(--shadow); transition: transform .6s var(--ease), border-color .4s;
}
.vm-card:hover { transform: translateY(-8px); border-color: rgba(249, 160, 27, .6); }
.vm-card__index { font-family: var(--font-display); font-size: 64px; color: transparent; -webkit-text-stroke: 1px var(--orange); line-height: 1; display: block; margin-bottom: 20px; }
.vm-card h3 { font-family: var(--font-display); font-size: 34px; margin-bottom: 14px; }
.vm-card p { color: var(--text-soft); font-size: 17px; margin: 0; }
.vm-card--dark { background: var(--charcoal); color: #fff; border-color: transparent; }
.mantra-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.mantra-list li { padding: 6px 14px; border-radius: 999px; border: 1px solid rgba(249, 160, 27, .6); color: var(--orange); font-size: 13px; font-weight: 600; letter-spacing: .04em; }

.objectives {
  position: relative; margin-top: 30px; padding: clamp(32px, 5vw, 60px); border-radius: var(--radius);
  background: var(--charcoal); color: #fff; display: grid; gap: 30px; overflow: hidden;
}
.objectives::after {
  content: ""; position: absolute; left: -50px; bottom: -70px; width: 200px; height: 190px;
  background: var(--orange); clip-path: polygon(35% 0, 100% 0, 65% 100%, 0 100%); opacity: .95;
}
@media (min-width: 960px) { .objectives { grid-template-columns: .7fr 1.3fr; } }
.objectives h3 { font-family: var(--font-display); font-size: 40px; margin-bottom: 10px; }
.objectives__intro p { color: rgba(255, 255, 255, .7); }
.objectives__list { position: relative; z-index: 1; list-style: none; padding: 0; margin: 0; display: grid; gap: 0; }
@media (min-width: 680px) { .objectives__list { grid-template-columns: 1fr 1fr; column-gap: 36px; } }
.objectives__list li { display: flex; gap: 16px; align-items: baseline; padding: 16px 0; border-bottom: 1px solid rgba(255, 255, 255, .1); font-size: 16px; }
.objectives__list span { font-family: var(--font-display); color: var(--orange); font-size: 22px; font-weight: 600; }

/* ---------- CEO ---------- */
.ceo { position: relative; background: var(--charcoal); color: #fff; padding: clamp(90px, 12vw, 150px) 0; overflow: hidden; isolation: isolate; }
.ceo::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(800px 500px at 15% 50%, rgba(249, 160, 27, .16), transparent 60%), linear-gradient(180deg, var(--charcoal-2), var(--charcoal));
}
.ceo .particles { z-index: -1; }
.ceo__grid { display: grid; gap: 60px; align-items: center; }
@media (min-width: 900px) { .ceo__grid { grid-template-columns: .8fr 1.2fr; gap: 90px; } }
.ceo__portrait { position: relative; max-width: 400px; width: 100%; margin-inline: auto; }
.frame--portrait { aspect-ratio: 4 / 5; border-radius: 200px 200px var(--radius) var(--radius); }
.ceo__accent { position: absolute; right: -24px; bottom: -24px; width: 130px; height: 130px; background: var(--orange); clip-path: polygon(35% 0, 100% 0, 65% 100%, 0 100%); z-index: -1; }
.ceo__quote { position: relative; margin: 56px 0 34px; }
.ceo__mark { position: absolute; left: -14px; top: -78px; font-family: var(--font-display); font-size: 180px; line-height: 1; color: var(--orange); opacity: .35; }
.ceo__quote p { position: relative; font-family: var(--font-display); font-size: clamp(26px, 3.3vw, 40px); font-style: italic; line-height: 1.3; margin: 0; }
.ceo__sign { display: grid; gap: 2px; padding-left: 20px; border-left: 3px solid var(--orange); }
.ceo__sign strong { font-size: 20px; }
.ceo__sign span { color: rgba(255, 255, 255, .65); font-size: 14px; letter-spacing: .1em; text-transform: uppercase; }

/* ---------- Team ---------- */
.team { background: var(--bg); }
.leaders { display: grid; gap: 24px; margin-bottom: 24px; }
@media (min-width: 900px) { .leaders { grid-template-columns: 1.4fr 1fr; } }
.leader {
  display: grid; gap: 0; border-radius: var(--radius); overflow: hidden; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
}
@media (min-width: 600px) { .leader { grid-template-columns: 220px 1fr; } }
.leader__photo { position: relative; overflow: hidden; aspect-ratio: 4 / 5; }
@media (min-width: 600px) { .leader__photo { aspect-ratio: auto; min-height: 100%; } }
.leader__photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 1.2s var(--ease-out); }
.leader:hover .leader__photo img { transform: scale(1.06); }
.leader__body { padding: 32px; }
.leader h3 { font-family: var(--font-display); font-size: 32px; }
.role { color: var(--accent-text); font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; margin: 6px 0 16px; }
.leader__body p:not(.role) { color: var(--text-soft); font-size: 15px; }
.tags { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { padding: 6px 14px; border-radius: 999px; background: var(--surface-2); font-size: 13px; font-weight: 500; }

.members { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
@media (min-width: 760px) { .members { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { .members { grid-template-columns: repeat(5, 1fr); } }
.member { margin: 0; }
.member__photo { position: relative; aspect-ratio: 3 / 4; overflow: hidden; border-radius: var(--radius); background: var(--surface-2); }
.member__photo::after { content: ""; position: absolute; left: 0; bottom: 0; width: 44%; height: 26%; background: var(--orange); clip-path: polygon(35% 0, 100% 0, 65% 100%, 0 100%); transform: translate(-30%, 40%); transition: transform .6s var(--ease); }
.member:hover .member__photo::after { transform: translate(-10%, 10%); }
.member__photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; filter: grayscale(.25); transition: transform 1.2s var(--ease-out), filter .6s; }
.member:hover .member__photo img { transform: scale(1.06); filter: none; }
.member figcaption { display: grid; padding: 14px 4px 0; line-height: 1.35; }
.member strong { font-size: 15px; }
.member span { color: var(--text-soft); font-size: 13px; font-style: italic; }

/* ---------- Services ---------- */
.services { background: var(--bg-alt); overflow: hidden; isolation: isolate; }
.services__bg { position: absolute; inset: 0; z-index: -1; opacity: .07; -webkit-mask-image: linear-gradient(transparent, #000 20%, #000 80%, transparent); mask-image: linear-gradient(transparent, #000 20%, #000 80%, transparent); }
.services__bg img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); }
.service-grid { display: grid; gap: 18px; }
@media (min-width: 680px) { .service-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .service-grid { grid-template-columns: repeat(3, 1fr); } }
.service {
  position: relative; padding: 34px 30px 30px; border-radius: var(--radius); background: var(--surface);
  border: 1px solid var(--line); overflow: hidden; isolation: isolate;
  transition: transform .6s var(--ease), box-shadow .6s var(--ease), border-color .4s;
}
.service::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(400px 200px at var(--mx, 50%) var(--my, 0%), rgba(249, 160, 27, .16), transparent 70%);
  opacity: 0; transition: opacity .5s;
}
.service:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: rgba(249, 160, 27, .5); }
.service:hover::before { opacity: 1; }
.service__icon {
  width: 58px; height: 58px; display: grid; place-items: center; margin-bottom: 22px;
  background: linear-gradient(135deg, var(--orange), var(--orange-deep)); color: var(--night);
  clip-path: polygon(25% 3%, 75% 3%, 100% 50%, 75% 97%, 25% 97%, 0 50%);
}
.service__icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.service__num { position: absolute; right: 24px; top: 22px; font-family: var(--font-display); font-size: 44px; font-weight: 600; color: var(--line); line-height: 1; transition: color .4s; }
.service:hover .service__num { color: rgba(249, 160, 27, .35); }
.service h3 { font-size: 19px; font-weight: 700; line-height: 1.3; margin-bottom: 12px; }
.service p { color: var(--text-soft); font-size: 15px; margin: 0; }

.consult {
  margin-top: 30px; padding: 30px 34px; border-radius: var(--radius); background: var(--charcoal); color: #fff;
  display: flex; flex-wrap: wrap; align-items: center; gap: 18px 30px;
}
.consult h3 { font-family: var(--font-display); font-size: 30px; }
.consult ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.consult li { padding: 8px 16px; border-radius: 999px; background: rgba(249, 160, 27, .12); color: var(--orange); font-size: 14px; font-weight: 600; }

/* ---------- Case study ---------- */
.case { background: var(--bg); }
.case__head { display: grid; gap: 10px 60px; margin-bottom: 60px; align-items: end; }
@media (min-width: 960px) { .case__head { grid-template-columns: 1fr 1fr; } }
.case__grid { display: grid; gap: 24px; }
@media (min-width: 1000px) { .case__grid { grid-template-columns: .9fr 1fr 1.1fr; align-items: start; } }
.case__media .frame { aspect-ratio: 3 / 4; }
.case__media img { filter: grayscale(1); }
.case__block { position: relative; padding: 36px 32px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.case__block p { color: var(--text-soft); font-size: 15px; }
.case__block h3 { font-family: var(--font-display); font-size: 32px; margin-bottom: 16px; }
.case__step {
  display: inline-grid; place-items: center; width: 52px; height: 52px; margin-bottom: 18px; font-weight: 700;
  background: var(--orange); color: var(--night); clip-path: polygon(25% 3%, 75% 3%, 100% 50%, 75% 97%, 25% 97%, 0 50%);
}
.case__block--solution { background: var(--charcoal); color: #fff; border-color: transparent; }
.solution-list { margin: 0; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 12px; }
.solution-list li { counter-increment: s; position: relative; padding-left: 40px; font-size: 15px; color: rgba(255, 255, 255, .82); }
.solution-list li::before { content: counter(s, decimal-leading-zero); position: absolute; left: 0; top: 0; font-family: var(--font-display); font-weight: 600; font-size: 18px; color: var(--orange); }

/* ---------- Why ---------- */
.why { position: relative; padding: clamp(90px, 12vw, 150px) 0; color: #fff; background: var(--night); overflow: hidden; isolation: isolate; }
.why::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background: radial-gradient(700px 500px at 90% 20%, rgba(249, 160, 27, .2), transparent 60%), linear-gradient(160deg, var(--charcoal), var(--night));
}
.why::after {
  content: ""; position: absolute; left: -100px; bottom: -80px; width: 340px; height: 300px; z-index: -1;
  background: var(--orange); clip-path: polygon(35% 0, 100% 0, 65% 100%, 0 100%); opacity: .9;
}
.why .particles { z-index: -1; }
.why__grid { display: grid; gap: 50px; align-items: center; }
@media (min-width: 960px) { .why__grid { grid-template-columns: 1.1fr 1fr; gap: 90px; } }
.why__quote { font-size: 17px; color: rgba(255, 255, 255, .72); max-width: 54ch; font-style: italic; }
.why__list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.why__list li {
  display: flex; align-items: center; gap: 18px; padding: 18px 22px; border-radius: 14px; font-weight: 600;
  background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .08); backdrop-filter: blur(6px);
  transition: transform .5s var(--ease), border-color .4s, background-color .4s;
}
.why__list li:hover { transform: translateX(8px); border-color: rgba(249, 160, 27, .6); background: rgba(249, 160, 27, .08); }
.why__list i {
  flex: none; width: 30px; height: 30px; border-radius: 8px; background: var(--orange); position: relative;
}
.why__list i::after { content: ""; position: absolute; left: 10px; top: 6px; width: 8px; height: 14px; border: solid var(--night); border-width: 0 3px 3px 0; transform: rotate(45deg); }

/* ---------- Projects ---------- */
.projects { background: var(--bg-alt); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-start; margin-bottom: 30px; }
@media (min-width: 900px) { .filters { justify-content: flex-end; } }
.filter {
  padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--text-soft);
  font-size: 13px; font-weight: 600; transition: all .3s;
}
.filter:hover { color: var(--accent-text); border-color: var(--orange); }
.filter.is-active { background: var(--charcoal); color: #fff; border-color: var(--charcoal); }
[data-theme="dark"] .filter.is-active { background: var(--orange); color: var(--night); border-color: var(--orange); }

.gallery { columns: 2 160px; column-gap: 14px; }
@media (min-width: 760px) { .gallery { columns: 3; column-gap: 18px; } }
@media (min-width: 1100px) { .gallery { columns: 4; } }
.shot {
  position: relative; margin: 0 0 14px; break-inside: avoid; border-radius: 14px; overflow: hidden; cursor: zoom-in; background: var(--surface-2);
  transition: opacity .5s, transform .5s var(--ease);
}
@media (min-width: 760px) { .shot { margin-bottom: 18px; } }
.shot img { width: 100%; height: auto; transition: transform 1.2s var(--ease-out), filter .6s; }
.shot:hover img { transform: scale(1.06); }
.shot figcaption {
  position: absolute; inset: auto 0 0 0; padding: 30px 16px 14px; color: #fff; font-size: 12px; font-weight: 600; letter-spacing: .06em;
  background: linear-gradient(transparent, rgba(15, 16, 21, .85)); transform: translateY(100%); transition: transform .5s var(--ease);
}
.shot:hover figcaption, .shot:focus-visible figcaption { transform: none; }
.shot.is-hidden { display: none; }
.js .shot { opacity: 0; transform: translateY(30px) scale(.98); }
.js .shot.is-in { opacity: 1; transform: none; }

/* ---------- Contact ---------- */
.contact { position: relative; padding: clamp(90px, 12vw, 150px) 0 clamp(60px, 8vw, 100px); color: #fff; background: var(--charcoal); overflow: hidden; isolation: isolate; }
.contact::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background: radial-gradient(900px 600px at 10% 10%, rgba(249, 160, 27, .18), transparent 60%), linear-gradient(180deg, var(--charcoal), var(--night));
}
.contact .particles { z-index: -1; }
.contact__grid { display: grid; gap: 50px; align-items: start; }
@media (min-width: 980px) { .contact__grid { grid-template-columns: 1.1fr .9fr; gap: 80px; } }
.contact__list { list-style: none; padding: 0; margin: 10px 0 30px; display: grid; gap: 22px; }
@media (min-width: 640px) { .contact__list { grid-template-columns: 1fr 1fr; } }
.contact__list li { display: flex; gap: 16px; align-items: flex-start; }
.contact__icon { flex: none; width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: rgba(249, 160, 27, .12); border: 1px solid rgba(249, 160, 27, .35); color: var(--orange); }
.contact__icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.contact__list small { display: block; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: rgba(255, 255, 255, .5); margin-bottom: 4px; }
.contact__list a, .contact__list address { display: block; font-weight: 500; line-height: 1.5; }
.contact__list a:hover { color: var(--orange); }

.socials { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.socials a { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, .2); transition: all .35s var(--ease); }
.socials a:hover { background: var(--orange); border-color: var(--orange); color: var(--night); transform: translateY(-3px); }
.socials svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.socials svg .fill { fill: currentColor; stroke: none; }
.socials__handle { margin-left: 6px; font-weight: 600; color: rgba(255, 255, 255, .7); }

.contact__form {
  padding: clamp(28px, 4vw, 44px); border-radius: 22px; background: var(--surface); color: var(--text);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .6); border: 1px solid var(--line);
}
.contact__form h3 { font-family: var(--font-display); font-size: 34px; margin-bottom: 6px; }
.form__hint { color: var(--text-soft); font-size: 14px; margin-bottom: 24px; }
.field { position: relative; margin-bottom: 16px; }
.field input, .field textarea, .field select {
  width: 100%; padding: 26px 16px 10px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); color: var(--text);
  font: inherit; font-size: 15px; transition: border-color .3s, box-shadow .3s; resize: vertical;
}
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--text-soft) 50%), linear-gradient(135deg, var(--text-soft) 50%, transparent 50%); background-position: calc(100% - 22px) 55%, calc(100% - 16px) 55%; background-size: 6px 6px; background-repeat: no-repeat; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 4px rgba(249, 160, 27, .18); }
.field label {
  position: absolute; left: 17px; top: 18px; color: var(--text-soft); font-size: 15px; pointer-events: none;
  transform-origin: 0 0; transition: transform .3s var(--ease), color .3s;
}
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label, .field label.is-static {
  transform: translateY(-10px) scale(.78); color: var(--accent-text);
}
.form__error { color: #E5484D; font-size: 14px; font-weight: 500; }

.map { margin-top: 70px; border-radius: var(--radius); overflow: hidden; height: 340px; border: 1px solid rgba(255, 255, 255, .1); }
.map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(.4) contrast(1.05); }
[data-theme="dark"] .map iframe { filter: invert(.9) hue-rotate(180deg) grayscale(.3) contrast(.95); }

/* ---------- Footer ---------- */
.footer { background: var(--night); color: rgba(255, 255, 255, .7); padding: 50px 0; border-top: 1px solid rgba(255, 255, 255, .06); }
.footer__grid { display: grid; gap: 24px; align-items: center; }
@media (min-width: 900px) { .footer__grid { grid-template-columns: auto 1fr auto; gap: 40px; } }
.footer__brand { display: flex; align-items: center; gap: 16px; }
.footer__brand img { width: 56px; height: auto; }
.footer__brand strong { display: block; color: #fff; }
.footer__brand em { font-family: var(--font-display); font-size: 18px; color: var(--orange); }
.footer__nav { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 14px; }
@media (min-width: 900px) { .footer__nav { justify-content: center; } }
.footer__nav a:hover { color: var(--orange); }
.footer__copy { font-size: 13px; margin: 0; max-width: 40ch; }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 250; display: grid; place-items: center; background: rgba(10, 10, 14, .94); backdrop-filter: blur(10px); padding: 60px 16px; animation: fadeIn .4s var(--ease); }
.lightbox[hidden] { display: none; }
@keyframes fadeIn { from { opacity: 0; } }
.lightbox figure { margin: 0; display: grid; gap: 14px; justify-items: center; max-width: min(1100px, 100%); }
.lightbox img { max-height: 78vh; width: auto; border-radius: 12px; box-shadow: 0 40px 80px rgba(0, 0, 0, .6); animation: crestIn .6s var(--ease-out); }
.lightbox figcaption { color: rgba(255, 255, 255, .8); font-size: 14px; letter-spacing: .06em; }
.lightbox button { position: absolute; border: 1px solid rgba(255, 255, 255, .2); background: rgba(255, 255, 255, .06); color: #fff; width: 50px; height: 50px; border-radius: 50%; font-size: 28px; line-height: 1; display: grid; place-items: center; transition: all .3s; }
.lightbox button:hover { background: var(--orange); color: var(--night); border-color: var(--orange); }
.lightbox__close { top: 16px; right: 16px; }
.lightbox__nav--prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox__nav--next { right: 16px; top: 50%; transform: translateY(-50%); }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .grain { display: none; }
  .js .reveal, .js .shot { opacity: 1; transform: none; }
}

/* ==========================================================================
   Responsive refinements. Most visitors are on phones, so these come last
   and win. Phone < 600, large phone/small tablet < 768, tablet < 1024,
   desktop, then large screens >= 1440.
   ========================================================================== */
html { -webkit-tap-highlight-color: transparent; }
.field input, .field textarea, .field select { font-size: 16px; } /* 16px stops iOS zooming into fields */

/* Touch screens: no sticky hover lifts after a tap */
@media (hover: none) {
  .vm-card:hover, .service:hover, .why__list li:hover, .btn:hover, .socials a:hover { transform: none; }
  .frame:hover img, .leader:hover .leader__photo img, .member:hover .member__photo img, .shot:hover img { transform: none; }
  .shot figcaption { transform: none; padding: 22px 10px 8px; font-size: 11px; }
}

/* Lighter effects on phones and touch tablets */
@media (max-width: 767px), (pointer: coarse) {
  .grain { display: none; }
  .hero__img { animation: none; transform: scale(1.06); }
  .hero__shape--a { animation: none; }
}

/* Tablet and below */
@media (max-width: 1023px) {
  .hero__shape--a { width: 180px; height: 180px; right: -110px; top: auto; bottom: 8%; opacity: .6; }
  .hero__shape--b { display: none; }
  .vision::before { width: 200px; height: 200px; right: -130px; top: 20px; opacity: .5; }
  .about__badge { left: 12px; top: 12px; }
}

/* Large phones and small tablets */
@media (max-width: 767px) {
  :root { --nav-h: 68px; --radius: 16px; }
  .section { padding: 72px 0; }
  .ceo, .why { padding: 80px 0; }
  .contact { padding: 80px 0 56px; }
  .section-head { margin-bottom: 36px; }
  .section-lead, .about__copy p, .vm-card p { font-size: 16px; }

  .hero { padding: calc(var(--nav-h) + 28px) 0 96px; }
  .hero__title { margin-bottom: 20px; }
  .hero__lead { margin-bottom: 28px; }
  .mantra { padding: 16px 0; }
  .mantra b { font-size: 14px; }

  .about__grid, .ceo__grid, .why__grid, .contact__grid { gap: 44px; }
  .about__media::before { inset: auto -10px -14px auto; }
  .ceo__portrait { max-width: 320px; }
  .ceo__accent { right: -10px; bottom: -14px; width: 90px; height: 90px; }
  .ceo__quote { margin: 44px 0 26px; }
  .ceo__mark { font-size: 120px; top: -52px; left: -6px; }

  .vm-card { padding: 30px 24px; }
  .vm-card__index { font-size: 52px; margin-bottom: 14px; }
  .vm-card h3 { font-size: 30px; }
  .objectives { padding: 30px 22px 60px; }
  .objectives h3 { font-size: 34px; }
  .objectives::after { width: 120px; height: 100px; left: -40px; bottom: -50px; opacity: .8; }

  .leader__body { padding: 24px 22px; }
  .leader h3 { font-size: 28px; }
  .members { gap: 14px; }
  .member strong { font-size: 14px; }

  .service { padding: 28px 22px 24px; }
  .service__icon { margin-bottom: 16px; }
  .consult { padding: 26px 22px; }
  .consult h3 { font-size: 26px; }

  .case__head { margin-bottom: 36px; }
  .case__media .frame { aspect-ratio: 4 / 3; }
  .case__block { padding: 28px 22px; }
  .case__block h3 { font-size: 28px; }

  .why::after { width: 200px; height: 170px; left: -80px; bottom: -60px; }
  .why__list li { padding: 14px 16px; gap: 14px; font-size: 15px; }

  /* Filters scroll sideways in one row instead of stacking into three */
  .filters {
    flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
    margin-inline: -16px; padding: 2px 16px 6px; scroll-padding-inline: 16px; scroll-snap-type: x proximity;
  }
  .filters::-webkit-scrollbar { display: none; }
  .filter { flex: none; scroll-snap-align: start; padding: 10px 16px; }
  .gallery { column-gap: 10px; }
  .shot { margin-bottom: 10px; border-radius: 10px; }

  .contact__list { gap: 18px; }
  .contact__form { padding: 26px 20px; }
  .contact__form h3 { font-size: 30px; }
  .map { margin-top: 48px; height: 260px; }
  .footer { padding: 40px 0 calc(40px + env(safe-area-inset-bottom)); }

  /* Lightbox: full width image, controls along the bottom within thumb reach */
  .lightbox { padding: 64px 0 96px; }
  .lightbox img { max-height: 68vh; border-radius: 0; }
  .lightbox figcaption { padding: 0 16px; text-align: center; }
  .lightbox__nav--prev, .lightbox__nav--next { top: auto; bottom: calc(24px + env(safe-area-inset-bottom)); transform: none; }
  .lightbox__nav--prev { left: calc(50% - 62px); }
  .lightbox__nav--next { right: calc(50% - 62px); }
}

/* Phones */
@media (max-width: 599px) {
  .hero__ctas { display: grid; grid-template-columns: 1fr; }
  .hero__ctas .btn { width: 100%; }
  .hero__eyebrow { letter-spacing: .2em; font-size: 11px; }
  .eyebrow { letter-spacing: .22em; }
  .stat { padding: 18px 14px; }
  .stat__num { font-size: 38px; }
  .socials__handle { flex-basis: 100%; margin: 4px 0 0; }
}
@media (max-height: 640px) and (max-width: 1023px) { .hero__scroll { display: none; } }

/* Tablets: use the width for two columns where one column feels stretched */
@media (min-width: 600px) and (max-width: 1023px) {
  .about__media { max-width: 420px; }
  .case__grid { grid-template-columns: 1fr 1fr; }
  .case__media { grid-column: 1 / -1; }
  .case__media .frame { aspect-ratio: 16 / 9; }
  .why__list { grid-template-columns: 1fr 1fr; }
  .ceo__portrait { max-width: 340px; }
}

/* Large screens */
@media (min-width: 1440px) {
  .container { width: min(1320px, 100% - 96px); }
  .hero__title { font-size: clamp(72px, 5.6vw, 104px); }
  .crest { width: min(380px, 26vw); }
}
@media (min-width: 1920px) {
  html { font-size: 17px; }
  body { font-size: 17px; }
  .container { width: min(1480px, 100% - 160px); }
}
@media (max-width: 599px) { .leader__photo { aspect-ratio: 1 / 1; } }
