/* ---------- TOKENS ---------- */
:root {
  --bg: #131415;
  --bg-2: #1A1A1B;
  --bg-3: #1D1D1F;
  --line: #2a2a2c;
  --text: #EDEDEE;
  --text-2: #C5C8CC;
  --muted: #727170;
  --accent: #C29F7C;
  --accent-2: #BA9978;

  --f-sans: "Inter", system-ui, -apple-system, "Helvetica Neue", sans-serif;
  --f-display: "Fraunces", "Times New Roman", serif;

  --ease: cubic-bezier(.22,.61,.36,1);
  --ease-out: cubic-bezier(.16,1,.3,1);
  --ease-expo: cubic-bezier(.19,1,.22,1);
}

/* ---------- RESET ---------- */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-sans);
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
  cursor: none;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; background: none; border: 0; color: inherit; }

/* ---------- BACKGROUND GRAIN ---------- */
.grain {
  position: fixed; inset: 0; pointer-events: none; z-index: 9999;
  opacity: .045; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* ---------- CUSTOM CURSOR ---------- */
.cursor {
  position: fixed; top: 0; left: 0;
  width: 28px; height: 28px;
  border: 1px solid var(--text);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000;
  transform: translate(-50%, -50%);
  transition: width .5s var(--ease-expo), height .5s var(--ease-expo), background .4s var(--ease-out), border-color .4s var(--ease-out), opacity .3s;
  mix-blend-mode: difference;
  display: flex; align-items: center; justify-content: center;
}
.cursor-label {
  font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--bg); font-weight: 500;
  opacity: 0; transition: opacity .3s var(--ease-out);
  white-space: nowrap;
}
.cursor-dot {
  position: fixed; top: 0; left: 0;
  width: 4px; height: 4px;
  background: var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10001;
  transform: translate(-50%, -50%);
}
.cursor.link {
  width: 64px; height: 64px;
  background: var(--accent);
  border-color: var(--accent);
}
.cursor.view {
  width: 110px; height: 110px;
  background: var(--accent);
  border-color: var(--accent);
}
.cursor.view .cursor-label { opacity: 1; }
.cursor.hide { opacity: 0; }
@media (hover:none) {
  .cursor, .cursor-dot { display: none; }
  body { cursor: auto; }
}

/* ---------- NAV (glassmorphism + enigmatic mist) ---------- */
.nav {
  position: fixed; top: 18px; left: 18px; right: 18px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 22px 14px 26px;
  z-index: 100;
  border-radius: 100px;
  background: rgba(22, 23, 26, 0.42);
  backdrop-filter: blur(22px) saturate(150%);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow:
    0 10px 40px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: background .4s var(--ease-out), border-color .4s var(--ease-out);
  overflow: hidden;          /* keep mist contained within the capsule */
  isolation: isolate;
}
.nav::before {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255,255,255,.05), transparent 60%);
  pointer-events: none;
  z-index: 1;
}
/* Stone grain — fine fixed noise that gives the glass a physical surface */
.nav::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch' seed='9'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  background-size: 240px 240px;
  opacity: .08;
  mix-blend-mode: overlay;
  pointer-events: none;
  z-index: 1;
}

/* Drifting mist layer — three slow blobs that crossfade through the glass */
.nav-mist {
  position: absolute; inset: 0;
  border-radius: inherit;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
  filter: blur(18px);
}
.nav-mist span {
  position: absolute;
  display: block;
  width: 60%; height: 320%;
  top: -100%;
  border-radius: 50%;
  opacity: .35;
  mix-blend-mode: screen;
  will-change: transform;
}
.nav-mist-a {
  left: -20%;
  background: radial-gradient(circle, rgba(194,159,124,.55), rgba(194,159,124,0) 60%);
  animation: mistA 18s ease-in-out infinite;
}
.nav-mist-b {
  left: 30%;
  background: radial-gradient(circle, rgba(180,200,220,.35), rgba(180,200,220,0) 60%);
  animation: mistB 22s ease-in-out infinite;
}
.nav-mist-c {
  left: 70%;
  background: radial-gradient(circle, rgba(120,90,70,.45), rgba(120,90,70,0) 60%);
  animation: mistC 26s ease-in-out infinite;
}
@keyframes mistA {
  0%,100% { transform: translate3d(-10%, 0, 0) scale(1);    opacity: .35; }
  50%     { transform: translate3d(40%,  0, 0) scale(1.15); opacity: .55; }
}
@keyframes mistB {
  0%,100% { transform: translate3d(20%,  0, 0) scale(1.1);  opacity: .25; }
  50%     { transform: translate3d(-30%, 0, 0) scale(.95);  opacity: .45; }
}
@keyframes mistC {
  0%,100% { transform: translate3d(0,    0, 0) scale(1);    opacity: .3;  }
  50%     { transform: translate3d(-50%, 0, 0) scale(1.2);  opacity: .5;  }
}

/* Ensure nav content sits above mist + grain */
.nav .brand,
.nav .nav-links,
.nav .nav-cta { position: relative; z-index: 2; }

@media (prefers-reduced-motion: reduce) {
  .nav-mist span { animation: none; }
}
@supports not (backdrop-filter: blur(1px)) {
  .nav { background: rgba(22, 23, 26, 0.88); }
}
.brand {
  display: flex; align-items: center; gap: 12px;
  font-weight: 600; letter-spacing: -.01em; font-size: 18px;
  transition: opacity .3s;
}
.brand:hover { opacity: .85; }
.brand-mark {
  width: 92px; height: 92px;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 4px 14px rgba(194,159,124,.3));
  transition: transform .7s var(--ease-expo);
}
.brand:hover .brand-mark { transform: rotate(-6deg) scale(1.05); }
.brand-word-accent { color: var(--accent); }
.nav-links { display: flex; gap: 30px; }
.nav-links a {
  position: relative; font-size: 13.5px; opacity: .85; transition: opacity .3s;
  white-space: nowrap;
}
.nav-links a:hover { opacity: 1; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -6px;
  width: 0; height: 1px; background: currentColor;
  transition: width .5s var(--ease-expo);
}
.nav-links a:hover::after { width: 100%; }
.nav-cta {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 20px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.04);
  border-radius: 100px;
  font-size: 14px;
  transition: background .5s var(--ease-expo), color .5s var(--ease-expo), border-color .5s var(--ease-expo);
}
.nav-cta i { font-style: normal; transition: transform .5s var(--ease-expo); }
.nav-cta:hover { background: var(--accent); color: var(--bg); border-color: var(--accent); }
.nav-cta:hover i { transform: translateX(4px); }

/* ---------- HERO ---------- */
.hero {
  min-height: 100vh;
  padding: 140px 48px 80px;
  display: flex; flex-direction: column; justify-content: flex-end;
  gap: 60px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

/* Partner accreditation grid — top-right of hero */
.hero-badges,
.hero-badges.reveal-y {
  position: absolute;
  top: 32%;                  /* block sits in the upper-middle of the hero */
  right: 56px;
  transform: none;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
  justify-items: end;
  max-width: 180px;
  pointer-events: none;
}
.hero-badge-img {
  display: block;
  height: 64px;
  width: auto;
  max-width: 150px;
  object-fit: contain;
  opacity: .9;
  transition: opacity .4s var(--ease-out), transform .6s var(--ease-expo);
  pointer-events: auto;
}
/* Instagram + LinkedIn — slightly smaller, offset from the left rather than flush */
.hero-badge-img:nth-child(3),
.hero-badge-img:nth-child(4) {
  height: 50px;
  max-width: 124px;
  justify-self: start;
  margin-left: 8px;
}
.hero-badge-img:hover {
  opacity: 1;
  transform: translateY(-2px);
}

/* Stone + drifting plumes + interactive light */
.hero-bg {
  position: absolute; inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  --lx: 50%; --ly: 40%;
  background:
    radial-gradient(ellipse 95% 75% at 20% 110%, #3a2e23 0%, transparent 55%),
    radial-gradient(ellipse 80% 85% at 110% -10%, #20283a 0%, transparent 55%),
    radial-gradient(ellipse 70% 60% at 50% 50%, #232227 0%, transparent 60%),
    linear-gradient(180deg, #1c1c20 0%, #16171b 55%, #0f1012 100%);
}

/* Make sure hero content sits over the bg */
.hero > h1, .hero > .hero-foot { position: relative; z-index: 2; }

/* Stone grain — clearly visible texture */
.hero-stone {
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='420' height='420'><filter id='s'><feTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch' seed='4'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 0.94  0 0 0 0 0.86  0 0 0 1 0'/></filter><rect width='100%' height='100%' filter='url(%23s)'/></svg>");
  background-size: 420px 420px;
  opacity: .35;
  mix-blend-mode: overlay;
}

/* Drifting plumes — large, high-alpha, clearly visible */
.hero-plume {
  position: absolute;
  display: block;
  border-radius: 50%;
  pointer-events: none;
  will-change: transform;
  transform: translateZ(0);
}
.hero-plume.p1 {
  width: 90vmax; height: 90vmax;
  top: -35vmax; left: -30vmax;
  background: radial-gradient(circle,
    rgba(214, 168, 118, .35) 0%,
    rgba(214, 168, 118, .15) 22%,
    rgba(214, 168, 118, .04) 42%,
    rgba(214, 168, 118, 0)   62%);
  animation: plume1 28s ease-in-out infinite;
}
.hero-plume.p2 {
  width: 80vmax; height: 80vmax;
  top: -10vmax; right: -35vmax;
  background: radial-gradient(circle,
    rgba(120, 150, 200, .22) 0%,
    rgba(120, 150, 200, .08) 28%,
    rgba(120, 150, 200, 0)   60%);
  animation: plume2 36s ease-in-out infinite;
}
.hero-plume.p3 {
  width: 70vmax; height: 70vmax;
  bottom: -30vmax; left: 15vmax;
  background: radial-gradient(circle,
    rgba(200, 130,  90, .25) 0%,
    rgba(200, 130,  90, .09) 28%,
    rgba(200, 130,  90, 0)   60%);
  animation: plume3 32s ease-in-out infinite;
}
@keyframes plume1 {
  0%,100% { transform: translate3d(0,0,0) scale(1); }
  50%     { transform: translate3d(15vmax, 8vmax, 0) scale(1.15); }
}
@keyframes plume2 {
  0%,100% { transform: translate3d(0,0,0) scale(1.05); }
  50%     { transform: translate3d(-18vmax, -10vmax, 0) scale(.95); }
}
@keyframes plume3 {
  0%,100% { transform: translate3d(0,0,0) scale(1); }
  50%     { transform: translate3d(10vmax, -12vmax, 0) scale(1.18); }
}

/* Pulsing pixel grid — sits above flares, below the ripple canvas */
.hero-pixels {
  position: absolute; inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle, rgba(214,168,118,.55) 1px, transparent 1.6px),
    radial-gradient(circle, rgba(214,168,118,.35) 1px, transparent 1.6px);
  background-size: 28px 28px, 28px 28px;
  background-position: 0 0, 14px 14px;     /* offset second layer for a richer field */
  mix-blend-mode: screen;
  opacity: 0;
  animation: pixelPulse 7s ease-in-out infinite;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 55%, #000 35%, transparent 90%);
          mask-image: radial-gradient(ellipse 80% 70% at 50% 55%, #000 35%, transparent 90%);
}
@keyframes pixelPulse {
  0%, 100% { opacity: .12; }
  50%      { opacity: .26; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-pixels { animation: none; opacity: .18; }
}

.hero-ripple {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  mix-blend-mode: screen;
  filter: blur(1.1px);     /* soft, GPU-cheap haze over the whole constellation */
  opacity: 1;
}

.hero-vignette {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 130% 95% at 50% 40%, transparent 45%, rgba(0,0,0,.55) 100%);
}

@media (prefers-reduced-motion: reduce) {
  .hero-plume { animation: none !important; }
}

.hero-title {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(42px, 7.6vw, 132px);
  line-height: .98;
  letter-spacing: -.025em;
  margin: 50px 0;
}
.hero-title em {
  font-style: italic;
  color: var(--accent);
  font-weight: 600;
}
.line { display: block; overflow: hidden; padding-bottom: .22em; margin-bottom: -.12em; }

.hero-foot {
  display: flex; justify-content: space-between; align-items: end; gap: 40px;
}
.hero-sub {
  font-size: clamp(15px, 1.1vw, 18px);
  color: var(--text-2);
  max-width: 560px;
  line-height: 1.55;
}
.scroll-cue {
  position: relative;
  display: inline-flex; align-items: center; gap: 14px;
  padding: 10px 4px 10px 22px;
  flex-shrink: 0;
}
.scroll-cue-line {
  width: 36px; height: 1px;
  background: var(--accent);
  position: relative;
  overflow: hidden;
}
.scroll-cue-line::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, #fff, transparent);
  animation: sweep 2.4s var(--ease-expo) infinite;
}
@keyframes sweep {
  0%   { transform: translateX(-100%); }
  60%  { transform: translateX(100%); }
  100% { transform: translateX(100%); }
}
.scroll-cue-label {
  font-size: 11px; letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--text-2);
  font-weight: 500;
}
.scroll-cue-arrow {
  color: var(--accent);
  font-size: 18px;
  animation: bob 2s ease-in-out infinite;
}
@keyframes bob {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50%      { transform: translateY(4px); opacity: .55; }
}

/* ---------- REVEAL ---------- */
.reveal-y {
  display: inline-block;
  transform: translateY(110%);
  opacity: 0;
  transition: transform 1.2s var(--ease-expo), opacity 1.2s var(--ease-expo);
  will-change: transform, opacity;
}
.reveal-y.in {
  transform: translateY(0);
  opacity: 1;
}

/* ---------- MARQUEE ---------- */
.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  padding: 28px 0;
  background: var(--bg-2);
}
.marquee-track {
  display: inline-flex; gap: 40px;
  white-space: nowrap;
  font-family: var(--f-display);
  font-style: italic;
  font-size: clamp(36px, 6vw, 80px);
  line-height: 1;
  padding-left: 40px;
  will-change: transform;
}
.marquee-track .sep { color: var(--accent); font-style: normal; }

/* ---------- SECTIONS ---------- */
.section {
  padding: 160px 48px;
  position: relative;
}
.section-head {
  display: flex; flex-direction: column; gap: 36px;
  margin-bottom: 80px;
  max-width: 1400px;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 14px;
  font-size: 13px; letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow i {
  font-style: normal;
  color: var(--accent);
  font-family: var(--f-display);
  font-size: 14px;
  font-weight: 600;
}
.section-title {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(44px, 7vw, 110px);
  line-height: 1;
  letter-spacing: -.02em;
}
.section-title .reveal-y,
.section-title span {
  overflow: hidden;
  padding-bottom: .22em;
  margin-bottom: -.18em;
}
.section-title em {
  font-style: italic;
  color: var(--accent);
  font-weight: 600;
}
.section-intro {
  max-width: 640px;
  margin-top: 12px;
  font-size: clamp(15px, 1.1vw, 18px);
  color: var(--text-2);
  line-height: 1.6;
}

/* ---------- FAQ ---------- */
.faq-list { list-style: none; border-top: 1px solid var(--line); width: 100%; }
.faq-item { border-bottom: 1px solid var(--line); display: block; }
.faq-q {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px;
  padding: 28px 4px;
  text-align: left;
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(20px, 2.2vw, 30px);
  letter-spacing: -.015em;
  color: var(--text);
  cursor: none;
  transition: color .4s var(--ease-out);
}
.faq-q i {
  font-style: normal;
  color: var(--accent);
  font-size: 28px;
  line-height: 1;
  font-weight: 300;
  transition: transform .5s var(--ease-expo);
  flex-shrink: 0;
}
.faq-item.open .faq-q { color: var(--accent); }
.faq-item.open .faq-q i { transform: rotate(45deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .6s var(--ease-expo);
}
.faq-a p {
  padding: 4px 4px 36px;
  color: var(--text-2);
  font-size: clamp(17px, 1.35vw, 22px);
  line-height: 1.6;
  max-width: none;
  width: 100%;
}

/* ---------- AI ---------- */
.ai-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.ai-card {
  display: block;
  padding: 40px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 14px;
  position: relative;
  overflow: hidden;
  transition: transform .8s var(--ease-expo), border-color .5s var(--ease-out), background .5s var(--ease-out);
  cursor: none;
}
.ai-card::after {
  content: "";
  position: absolute;
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(194,159,124,.22), transparent 70%);
  top: var(--my, 50%); left: var(--mx, 50%);
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity .4s var(--ease-out);
  pointer-events: none;
}
.ai-card:hover::after { opacity: 1; }
.ai-card:hover { border-color: rgba(194,159,124,.3); transform: translateY(-4px); }
.ai-tag {
  font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent);
  font-family: var(--f-sans); font-weight: 500;
}
.ai-card h3 {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(26px, 2.4vw, 38px);
  letter-spacing: -.015em;
  margin: 18px 0 14px;
  line-height: 1.1;
}
.ai-card p {
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.55;
  max-width: 420px;
}
.ai-card p code {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: .88em;
  padding: 1px 7px;
  border-radius: 5px;
  background: rgba(194,159,124,.10);
  color: var(--accent);
  border: 1px solid rgba(194,159,124,.18);
  white-space: nowrap;
}

/* ---------- AI-CARD ANIMATIONS (Bending-Spoons-style) ---------- */
.ai-card { padding-top: 0; }
.ai-anim {
  position: relative;
  width: calc(100% + 80px);
  margin: -40px -40px 28px;     /* bleed the canvas to the card edges */
  height: 160px;
  border-radius: 14px 14px 0 0;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 80% at 50% 100%, rgba(194,159,124,.06), transparent 70%),
    linear-gradient(180deg, #15161a 0%, #1A1A1B 100%);
  border-bottom: 1px solid var(--line);
}
.ai-anim svg {
  width: 100%; height: 100%;
  display: block;
}
.ai-anim::after {
  /* faint internal vignette so animations recede to dark at edges */
  content: "";
  position: absolute; inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 110% 100% at 50% 50%, transparent 55%, rgba(15,16,18,.7) 100%);
}

/* 01 — Radar: concentric rings + slowly rotating sweep + orbiting blip */
.ai-anim-radar .ring {
  fill: none;
  stroke: rgba(214,168,118,.32);
  stroke-width: 1;
}
.ai-anim-radar .r1 { animation: radarFade 4.5s ease-in-out infinite; }
.ai-anim-radar .r2 { animation: radarFade 4.5s ease-in-out infinite .9s; }
.ai-anim-radar .r3 { animation: radarFade 4.5s ease-in-out infinite 1.8s; }
.ai-anim-radar .r4 { animation: radarFade 4.5s ease-in-out infinite 2.7s; }
@keyframes radarFade {
  0%,100% { stroke-opacity: .12; transform: scale(.92); }
  50%     { stroke-opacity: .55; transform: scale(1.04); }
}
.ai-anim-radar circle { transform-box: fill-box; transform-origin: center; }
.ai-anim-radar .radar-sweep { transform-origin: 0 0; animation: radarSpin 7s linear infinite; }
@keyframes radarSpin { to { transform: rotate(360deg); } }
.ai-anim-radar .radar-blip {
  fill: var(--accent);
  filter: drop-shadow(0 0 6px rgba(214,168,118,.7));
  animation: radarBlip 7s linear infinite;
}
@keyframes radarBlip {
  0%   { transform: translate(44px, 0); opacity: 0; }
  25%  { transform: translate(0, 44px); opacity: 1; }
  50%  { transform: translate(-44px, 0); opacity: 0; }
  75%  { transform: translate(0, -44px); opacity: 0; }
  100% { transform: translate(44px, 0); opacity: 0; }
}

/* 02 — Matrix: 8×4 grid of pulsing blocks (JS injects rects) */
.ai-anim-matrix .matrix-cell {
  fill: rgba(214,168,118,.22);
}
.ai-anim-matrix .matrix-cell.on {
  fill: var(--accent);
  filter: drop-shadow(0 0 4px rgba(214,168,118,.7));
}

/* 03 — Wave: 14 bars that bob in a sine pattern (staggered) */
.ai-anim-wave .wave-bars rect { fill: rgba(214,168,118,.55); transform-origin: center; }
.ai-anim-wave .wave-axis { stroke: rgba(255,255,255,.06); stroke-width: 1; }
.ai-anim-wave .wave-bars rect:nth-child(odd)  { animation: waveBar 2.4s ease-in-out infinite; }
.ai-anim-wave .wave-bars rect:nth-child(even) { animation: waveBar 2.4s ease-in-out infinite .3s; }
.ai-anim-wave .wave-bars rect:nth-child(3n)   { animation-delay: .6s; }
.ai-anim-wave .wave-bars rect:nth-child(5n)   { animation-delay: 1s; }
@keyframes waveBar {
  0%,100% { transform: scaleY(.35); opacity: .55; }
  50%     { transform: scaleY(1.4); opacity: 1; }
}

/* 04 — Graph: nodes + edges + a pulse travelling between them */
.ai-anim-graph .graph-nodes circle {
  fill: var(--accent);
  filter: drop-shadow(0 0 4px rgba(214,168,118,.45));
}
.ai-anim-graph .graph-nodes circle:nth-child(odd) { animation: nodePulse 3s ease-in-out infinite; }
.ai-anim-graph .graph-nodes circle:nth-child(even){ animation: nodePulse 3s ease-in-out infinite 1.5s; }
@keyframes nodePulse {
  0%,100% { transform: scale(.85); opacity: .6; }
  50%     { transform: scale(1.15); opacity: 1; }
}
.ai-anim-graph .graph-edges path {
  stroke-dasharray: 4 4;
  animation: edgeFlow 6s linear infinite;
}
@keyframes edgeFlow { to { stroke-dashoffset: -80; } }
.ai-anim-graph .graph-pulse {
  fill: #fff;
  filter: drop-shadow(0 0 6px rgba(255,235,210,.9));
  offset-path: path("M40 70 L100 70 L140 70 L175 35");
  offset-rotate: 0deg;
  animation: graphPulse 4s ease-in-out infinite;
}
@keyframes graphPulse {
  0%   { offset-distance: 0%;   opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { offset-distance: 100%; opacity: 0; }
}

/* 05 — Conveyor: two rows of blocks scrolling at different speeds */
.ai-anim-conveyor .conv-track line {
  stroke: rgba(255,255,255,.06);
  stroke-width: 1;
}
.ai-anim-conveyor .conv-row rect {
  fill: rgba(214,168,118,.55);
  stroke: rgba(214,168,118,.85);
  stroke-width: 1;
}
.ai-anim-conveyor .conv-a { animation: convScroll 8s linear infinite; }
.ai-anim-conveyor .conv-b { animation: convScrollReverse 11s linear infinite; }
@keyframes convScroll { to { transform: translateX(-40px); } }
@keyframes convScrollReverse { to { transform: translateX(40px); } }

/* 06 — Doc: lines fill in sequence (typewriter feel) + caret blink */
.ai-anim-doc .doc-page {
  fill: rgba(255,255,255,.025);
  stroke: rgba(255,255,255,.08);
  stroke-width: 1;
}
.ai-anim-doc .doc-hash {
  fill: var(--accent);
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 14px;
  font-weight: 600;
}
.ai-anim-doc .doc-line {
  fill: rgba(214,168,118,.6);
  transform-origin: left center;
  animation: docLine 5.6s ease-in-out infinite;
}
.ai-anim-doc .ln-1 { animation-delay: .1s; }
.ai-anim-doc .ln-2 { animation-delay: .5s; }
.ai-anim-doc .ln-3 { animation-delay: .9s; }
.ai-anim-doc .ln-4 { animation-delay: 1.3s; }
.ai-anim-doc .ln-5 { animation-delay: 1.7s; }
.ai-anim-doc .ln-6 { animation-delay: 2.1s; }
.ai-anim-doc .ln-7 { animation-delay: 2.5s; }
@keyframes docLine {
  0%   { transform: scaleX(0);   opacity: 0; }
  8%   { opacity: 1; }
  40%  { transform: scaleX(1);   opacity: 1; }
  85%  { transform: scaleX(1);   opacity: 1; }
  100% { transform: scaleX(0);   opacity: 0; }
}
.ai-anim-doc .doc-caret {
  fill: var(--accent);
  animation: docCaret 1.1s steps(2) infinite;
}
@keyframes docCaret {
  0%, 50% { opacity: 1; }
  51%,100%{ opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .ai-anim *,
  .ai-anim ::before,
  .ai-anim ::after { animation: none !important; }
}

@media (max-width: 900px) {
  .ai-anim { height: 130px; margin: -28px -28px 22px; width: calc(100% + 56px); }
}

/* ---------- WORK ---------- */
.work-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 56px 36px;
  counter-reset: work;
  align-items: start;
}
.work-card {
  display: flex;
  flex-direction: column-reverse;
  cursor: none;
  counter-increment: work;
  position: relative;
}
.work-visual {
  position: relative;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, #1f2124, #1A1A1B);
  border-radius: 6px;
  overflow: hidden;
  transition: transform .8s var(--ease-expo);
  border: 1px solid rgba(255,255,255,.04);
}
.work-visual::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(15,16,18,.9) 100%);
  opacity: 0;
  transition: opacity .6s var(--ease-expo);
  pointer-events: none;
}
.work-card:hover .work-visual::after { opacity: 1; }
.work-visual img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 1.4s var(--ease-expo), filter .8s var(--ease-out);
  filter: grayscale(20%) brightness(.85);
}
.work-card:hover .work-visual img {
  transform: scale(1.04);
  filter: grayscale(0%) brightness(1);
}

.work-meta {
  padding-bottom: 18px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: baseline;
  gap: 14px;
}
.work-meta::before {
  content: counter(work, decimal-leading-zero);
  font-family: var(--f-display);
  font-style: italic;
  font-size: clamp(22px, 2vw, 32px);
  color: var(--accent);
  line-height: 1;
  align-self: center;
}
.work-meta h3 {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(26px, 2.4vw, 38px);
  letter-spacing: -.015em;
  position: relative;
  display: inline-block;
  line-height: 1.1;
}
.work-meta h3::after {
  content: "";
  position: absolute; left: 0; bottom: -3px;
  width: 0; height: 1px; background: var(--accent);
  transition: width .6s var(--ease-expo);
}
.work-card:hover .work-meta h3::after { width: 100%; }
.work-meta span {
  font-size: 11.5px;
  color: var(--muted);
  letter-spacing: .06em;
  text-transform: uppercase;
  text-align: right;
  white-space: nowrap;
}

/* ---------- SERVICES ---------- */
.services-list { list-style: none; border-top: 1px solid var(--line); }
.services-list li {
  position: relative;
  display: grid;
  grid-template-columns: 80px 1.2fr 2fr 40px;
  align-items: center;
  gap: 40px;
  padding: 36px 16px;
  border-bottom: 1px solid var(--line);
  transition: padding .6s var(--ease-expo), background .5s var(--ease-out);
  cursor: none;
  overflow: hidden;
}
.services-list li::before {
  content: "";
  position: absolute; inset: 0;
  background: var(--accent);
  transform: translateY(101%);
  transition: transform .7s var(--ease-expo);
  z-index: -1;
}
.services-list li:hover { padding-left: 36px; padding-right: 36px; }
.services-list li:hover::before { transform: translateY(0); }
.services-list li:hover,
.services-list li:hover .srv-no,
.services-list li:hover .srv-desc,
.services-list li:hover .srv-arrow { color: var(--bg); }
.services-list li:hover .srv-arrow { transform: rotate(45deg); }

.srv-no {
  font-family: var(--f-display);
  font-style: italic;
  color: var(--muted);
  font-size: 18px;
  transition: color .4s var(--ease-out);
}
.srv-name {
  font-family: var(--f-display);
  font-size: clamp(28px, 3.5vw, 56px);
  font-weight: 400;
  letter-spacing: -.02em;
}
.srv-desc {
  color: var(--text-2);
  font-size: 15px;
  transition: color .4s var(--ease-out);
}
.srv-arrow {
  font-size: 24px;
  color: var(--accent);
  text-align: right;
  transition: color .4s var(--ease-out), transform .6s var(--ease-expo);
}

/* ---------- STUDIO ---------- */
.studio-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 80px;
  align-items: start;
}
.studio-text {
  font-family: var(--f-display);
  font-size: clamp(28px, 3vw, 48px);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -.015em;
}
.studio-text span { display: block; padding-bottom: 22px; margin-bottom: -6px; overflow: hidden; }
.studio-text em { font-style: italic; color: var(--accent); font-weight: 600; }

.studio-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px 32px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}
.stat { display: block; }
.stat strong {
  display: block;
  font-family: var(--f-display);
  font-size: clamp(40px, 4vw, 64px);
  font-weight: 400;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 10px;
}
.stat span {
  font-size: 13px;
  letter-spacing: .04em;
  color: var(--muted);
  text-transform: uppercase;
}
.stat-wide { grid-column: span 2; }
.stat-wide .stat-mini {
  font-family: var(--f-display);
  font-style: italic;
  font-size: clamp(22px, 2vw, 28px);
  color: var(--accent);
  margin-bottom: 8px;
}
.stat-wide span {
  font-size: 14px;
  letter-spacing: .01em;
  color: var(--text-2);
  text-transform: none;
  line-height: 1.55;
  max-width: 460px;
  display: block;
}

/* ---------- CONTACT ---------- */
.contact { background: var(--bg-2); }
.contact-inner {
  max-width: 1400px;
  display: flex; flex-direction: column; gap: 48px;
}
.contact-title {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(40px, 6.4vw, 104px);
  line-height: 1.02;
  letter-spacing: -.02em;
  padding-right: .15em;          /* breathing room for italic right-edge & '?' */
}
.contact-title em { font-style: italic; color: var(--accent); font-weight: 600; }
.contact-title span {
  display: inline-block;
  overflow: hidden;
  padding: .12em .14em .26em 0;  /* top, right (italic overshoot), bottom (descender), left */
  margin: -.08em -.10em -.22em 0;/* collapse the extra padding back so spacing reads normal */
}

.contact-mail {
  display: inline-block;
  font-family: var(--f-display);
  font-size: clamp(28px, 3.5vw, 48px);
  font-style: italic;
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 10px;
  width: fit-content;
  transition: text-underline-offset .6s var(--ease-expo), opacity .3s;
}
.contact-mail:hover { text-underline-offset: 18px; }

.contact-foot {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  padding-top: 60px;
  border-top: 1px solid var(--line);
}

/* High-end info cards (Studio / Hours) */
.cf-card {
  position: relative;
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 22px;
  align-items: start;
  padding: 28px 30px;
  background: linear-gradient(180deg, rgba(255,255,255,.025), rgba(255,255,255,0));
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color .5s var(--ease-expo), transform .6s var(--ease-expo), background .5s var(--ease-out);
}
.cf-card::before {
  content: "";
  position: absolute;
  left: 0; top: 18px; bottom: 18px;
  width: 2px;
  background: linear-gradient(180deg, var(--accent), transparent);
  opacity: .5;
  transition: opacity .5s var(--ease-out);
}
.cf-card:hover {
  border-color: rgba(194,159,124,.35);
  transform: translateY(-3px);
}
.cf-card:hover::before { opacity: 1; }

.cf-icon {
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(194,159,124,.08);
  color: var(--accent);
  border: 1px solid rgba(194,159,124,.18);
}
.cf-icon svg { width: 22px; height: 22px; }

.cf-body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.cf-lbl {
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}
.cf-val {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(22px, 2vw, 28px);
  line-height: 1.1;
  letter-spacing: -.015em;
  color: var(--text);
  display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px;
}
.cf-val em {
  font-style: italic;
  color: var(--accent);
  font-weight: 600;
}
.cf-sep { color: var(--muted); opacity: .55; font-style: normal; font-weight: 300; }
.cf-note {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.5;
  margin-top: 4px;
  max-width: 340px;
}

/* ---------- FOOTER ---------- */
.footer {
  display: flex; justify-content: space-between;
  padding: 28px 48px;
  font-size: 13px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

/* ---------- COOKIE CONSENT ---------- */
.cookie {
  position: fixed;
  left: 18px; right: 18px; bottom: 18px;
  z-index: 200;
  display: block;
  pointer-events: auto;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .6s var(--ease-expo), transform .6s var(--ease-expo);
}
.cookie[hidden] { display: none; }
.cookie.in { opacity: 1; transform: translateY(0); }

.cookie-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 28px;
  padding: 20px 24px;
  background: rgba(22, 23, 26, 0.78);
  backdrop-filter: blur(24px) saturate(150%);
  -webkit-backdrop-filter: blur(24px) saturate(150%);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 18px;
  box-shadow:
    0 24px 60px rgba(0,0,0,.5),
    inset 0 1px 0 rgba(255,255,255,.05);
}
.cookie-text strong {
  display: block;
  font-family: var(--f-display);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -.01em;
  color: var(--text);
  margin-bottom: 4px;
}
.cookie-text p {
  font-size: 13.5px;
  color: var(--text-2);
  line-height: 1.5;
  max-width: 640px;
}
.cookie-link {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.cookie-link:hover { color: #D8B48E; }
.cookie-actions { display: flex; gap: 10px; flex-shrink: 0; }
.cookie-btn {
  display: inline-flex; align-items: center;
  padding: 10px 18px;
  border-radius: 100px;
  font-size: 13px;
  letter-spacing: .01em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .4s var(--ease-out), color .4s var(--ease-out),
              border-color .4s var(--ease-out), transform .4s var(--ease-expo);
}
.cookie-btn-ghost {
  background: transparent;
  color: var(--text-2);
  border-color: rgba(255,255,255,.18);
}
.cookie-btn-ghost:hover { color: var(--text); border-color: rgba(255,255,255,.35); }
.cookie-btn-primary {
  background: var(--accent);
  color: var(--bg);
}
.cookie-btn-primary:hover { background: #D8B48E; transform: translateY(-1px); }

@media (max-width: 720px) {
  .cookie { left: 12px; right: 12px; bottom: 12px; }
  .cookie-inner {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 18px 20px;
  }
  .cookie-actions { width: 100%; }
  .cookie-btn { flex: 1; justify-content: center; }
}

/* ---------- RESPONSIVE ---------- */
/* Sections get scroll-margin so they don't sit under the floating glass nav */
section[id] { scroll-margin-top: 90px; }

@media (max-width: 620px) {
  .nav-links { display: none; }
  .hero { padding: 96px 20px 36px; gap: 18px; }
  .hero-title { margin: 8px 0; }
  .hero-badges,
  .hero-badges.reveal-y {
    grid-template-columns: repeat(2, auto);
    gap: 8px 12px;
    justify-items: start;
  }
  .hero-badge-img { height: 26px; max-width: 78px; margin-left: 0 !important; }
  .hero-badge-img:nth-child(3),
  .hero-badge-img:nth-child(4) { height: 22px; max-width: 70px; }
}
@media (max-width: 900px) {
  .nav { padding: 12px 16px 12px 20px; top: 12px; left: 12px; right: 12px; }
  .nav-links { gap: 18px; }
  .nav-links a { font-size: 12.5px; }
  .nav-cta span { display: none; }
  .nav-cta { padding: 10px 14px; }
  .nav-cta i { font-size: 16px; }
  .hero {
    min-height: 0;
    padding: 110px 24px 48px;     /* content sits higher up */
    gap: 22px;
  }
  .hero-title { margin: 12px 0; }
  .hero-badges,
  .hero-badges.reveal-y {
    position: relative;
    top: auto; right: auto;
    transform: none;               /* clear the desktop vertical-centre transform */
    margin-bottom: 4px;
    max-width: none;
    grid-template-columns: repeat(4, auto);
    gap: 14px 22px;
    justify-items: start;
  }
  .hero-badge-img { height: 44px; max-width: 120px; }
  .hero-foot { flex-direction: column; align-items: flex-start; gap: 30px; }
  .section { padding: 100px 24px; }
  .ai-grid { grid-template-columns: 1fr; }
  .ai-card { padding: 28px; }
  .work-grid { grid-template-columns: 1fr; gap: 40px; }
  .work-card .work-visual { aspect-ratio: 16 / 10; }
  .services-list li {
    grid-template-columns: 50px 1fr 30px;
    gap: 16px;
    padding: 28px 0;
  }
  .services-list li .srv-desc { grid-column: 2 / 4; font-size: 14px; }
  .studio-grid { grid-template-columns: 1fr; gap: 50px; }
  .contact-foot { grid-template-columns: 1fr; gap: 16px; }
  .cf-card { padding: 22px 22px; gap: 16px; grid-template-columns: 44px 1fr; }
  .cf-icon { width: 40px; height: 40px; }
  .footer { padding: 20px 24px; flex-direction: column; gap: 8px; }
}
