/* ---------- Fonts ---------- */
@font-face {
  font-family: "Syncopate";
  src: url("assets/fonts/Syncopate-Bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Syncopate";
  src: url("assets/fonts/Syncopate-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Hanken Grotesk";
  src: url("assets/fonts/HankenGrotesk-VariableFont_wght.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

/* ---------- Tokens (from brand guide) ---------- */
:root {
  --black: #000000;
  --silver: #e0e0e0;
  --offwhite: #f7f7f7;
  --white: #ffffff;
  --blue: #406aff;
  --pink: #ff7bac;
  --aqua: #00e0b5;
  --orange: #ff931e;
  --muted: #5b5f6b;
  --text: #2a2d36;

  --grad: linear-gradient(100deg, var(--blue) 0%, var(--pink) 45%, var(--orange) 75%, var(--aqua) 100%);

  --display: "Syncopate", "Arial Black", sans-serif;
  --body: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 48px);
  --radius: 22px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.6;
  color: var(--black);
  background: var(--offwhite);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; }
p { margin: 0; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.skip {
  position: absolute; left: -9999px; top: 8px; z-index: 100;
  background: var(--black); color: var(--white); padding: 10px 16px; border-radius: 8px;
}
.skip:focus { left: 8px; }

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

/* ---------- Type ---------- */
.display {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(26px, calc((100vw - 2 * var(--gutter)) / 10.2), 112px);
  line-height: .98;
  letter-spacing: -.02em;
  text-transform: lowercase;
}
.display span { display: block; }
.h1 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(30px, 6vw, 76px);
  line-height: 1.02;
  letter-spacing: -.02em;
  text-transform: lowercase;
}
.h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(26px, 4.2vw, 54px);
  line-height: 1.08;
  letter-spacing: -.015em;
  text-transform: lowercase;
}
.h3 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.15;
  text-transform: lowercase;
}
.eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 20px;
  display: flex; align-items: center; gap: 10px;
}
.eyebrow::before {
  content: ""; width: 24px; height: 2px; border-radius: 2px; background: var(--grad);
}
.eyebrow--light { color: rgba(255,255,255,.7); }
.grad-text {
  background: var(--grad);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 8s ease-in-out infinite alternate;
}
@keyframes shimmer { to { background-position: 100% 0; } }
/* Looping animations stop while their section is off screen (main.js) */
[data-offscreen] *, [data-offscreen]::before, [data-offscreen]::after { animation-play-state: paused !important; }
.lede { font-size: clamp(18px, 1.6vw, 21px); color: var(--text); max-width: 46ch; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font: 600 16px/1 var(--body);
  padding: 17px 26px;
  border-radius: 999px;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, border-color .25s;
}
.btn span { transition: transform .25s var(--ease); }
.btn:hover span { transform: translateX(3px); }
.btn--dark { background: var(--black); color: var(--white); }
.btn--dark:hover { transform: translateY(-2px); box-shadow: 0 10px 30px -8px rgba(64,106,255,.55), 0 6px 20px -10px rgba(255,123,172,.6); }
.btn--ghost { border-color: rgba(0,0,0,.18); background: rgba(255,255,255,.5); backdrop-filter: blur(8px); }
.btn--ghost:hover { border-color: var(--black); }
.btn--light { background: var(--white); color: var(--black); }
.btn--light:hover { transform: translateY(-2px); }
.btn--sm { padding: 11px 18px; font-size: 14px; }

.link { font-weight: 600; text-decoration: none; border-bottom: 2px solid var(--pink); transition: border-color .2s; }
.link:hover { border-color: var(--blue); }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  transition: background .3s, box-shadow .3s;
}
.nav.is-scrolled {
  background: rgba(247,247,247,.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(0,0,0,.06);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 88px; }
.nav__brand { display: flex; align-items: center; text-decoration: none; }
/* Official stacked logo (symbol over wordmark), used as-is per the brand guide.
   The SVG has built-in left padding, so nudge it to line up with the page gutter. */
.nav__logo { height: 64px; width: auto; transform: translateX(-9%); }
.nav__menu { display: flex; align-items: center; gap: 30px; }
.nav__menu a:not(.btn) {
  text-decoration: none; font-weight: 500; font-size: 15px; position: relative;
}
.nav__menu a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px;
  background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.nav__menu a:not(.btn):hover::after,
.nav__menu a[aria-current="page"]::after { transform: scaleX(1); }
.nav__toggle { display: none; }

/* ---------- Home hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: center;
  padding: 120px 0 90px;
  overflow: hidden;
  background: var(--white);
}
.hero__glow {
  position: absolute; inset: -20%;
  background: url("assets/img/gradient-1-soft.jpg") center/cover;   /* blur pre-baked: a live filter on an animated layer this size drops frames */
  opacity: .22;
  animation: drift 22s ease-in-out infinite alternate;
}
@keyframes drift {
  from { transform: translate3d(-4%, -2%, 0) rotate(0deg) scale(1); }
  to   { transform: translate3d(4%, 3%, 0) rotate(8deg) scale(1.1); }
}
.hero__unicorn {
  position: absolute;
  right: max(-6vw, calc((100vw - var(--wrap)) / 2 - 12vw));
  top: 50%;
  height: min(118vh, 1100px);
  width: auto;
  mix-blend-mode: multiply;
  transform: translateY(-50%);
  animation: float 9s ease-in-out infinite;
  pointer-events: none;
}
@keyframes float {
  0%, 100% { transform: translateY(-50%) rotate(-1.5deg); }
  50%      { transform: translateY(-53%) rotate(1.5deg); }
}
.hero__inner { position: relative; z-index: 1; }
/* Cursor airbrush + unicorn parallax (driven by main.js on mouse devices only) */
/* The wrapper is its own layer, so the multiply blend (which drops the unicorn's white background) must live here */
.hero__parallax { position: absolute; inset: 0; pointer-events: none; will-change: transform; mix-blend-mode: multiply; }
.hero__parallax .hero__unicorn { mix-blend-mode: normal; }
.hero__spray { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero__sub {
  font-family: var(--display); font-weight: 400; text-transform: lowercase;
  font-size: clamp(18px, 2.2vw, 28px); margin: 22px 0 0; letter-spacing: .01em;
}
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }
.hero__scroll {
  position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%);
  width: 26px; height: 42px; border: 1.5px solid rgba(0,0,0,.35); border-radius: 20px; z-index: 1;
}
.hero__scroll span {
  position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px;
  border-radius: 4px; background: var(--black); animation: scroll 1.8s var(--ease) infinite;
}
@keyframes scroll { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- Inner page hero ---------- */
/* Every inner banner shares one fixed height and one unicorn size/position,
   so the art sits identically regardless of how much copy the page has. */
.page-hero {
  position: relative; overflow: hidden;
  min-height: clamp(560px, 76vh, 740px);
  display: flex; align-items: flex-start;   /* headlines start at the same height on every page */
  padding: clamp(150px, 20vh, 190px) 0 72px;
  background: var(--white);
}
.page-hero .hero__glow { opacity: .18; }
.page-hero .wrap { position: relative; z-index: 1; }
.page-hero .lede { margin-top: 28px; }
.page-hero .hero__unicorn {
  /* centre on the standard banner height, not the actual one, so taller banners don't shift it */
  top: calc(clamp(560px, 76vh, 740px) / 2);
  height: clamp(560px, 86vh, 860px);
  right: max(-8vw, calc((100vw - var(--wrap)) / 2 - 14vw));
  opacity: .7;
}

/* ---------- Sections ---------- */
.section { padding: clamp(80px, 11vw, 150px) 0; position: relative; }
.section--white { background: var(--white); }
.section--tight { padding: clamp(56px, 7vw, 96px) 0; }
.section__head { max-width: 760px; margin-bottom: clamp(40px, 6vw, 72px); }
.section__intro { margin-top: 24px; color: var(--muted); font-size: 19px; max-width: 58ch; }
.section__head--row {
  max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}

/* ---------- Sectors ticker (home) ---------- */
.ticker {
  background: var(--black); color: var(--white);
  overflow: hidden; padding: 22px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.ticker__track { display: flex; width: max-content; animation: ticker 36s linear infinite; }
.ticker__track ul { display: flex; gap: 0; list-style: none; margin: 0; padding: 0; }
.ticker__track li {
  font: 700 clamp(16px, 1.8vw, 22px)/1 var(--display); text-transform: lowercase;
  padding: 0 28px; display: flex; align-items: center; gap: 56px; white-space: nowrap;
}
.ticker__track li::after {
  content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--grad);
  margin-left: 28px; margin-right: -28px;
}
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- Studio teaser cards (home) ---------- */
.studio-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.studio-card {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column; gap: 14px;
  min-height: 340px; padding: 30px 28px;
  border-radius: var(--radius);
  background: var(--offwhite); border: 1px solid rgba(0,0,0,.06);
  text-decoration: none;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.studio-card::before {
  content: ""; position: absolute; z-index: -1; width: 300px; height: 300px; right: -120px; bottom: -140px;
  border-radius: 50%; background: var(--accent); filter: blur(60px); opacity: .5;
  transition: opacity .4s, transform .6s var(--ease);
}
.studio-card:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -30px rgba(0,0,0,.25); }
.studio-card:hover::before { opacity: .85; transform: scale(1.25); }
.studio-card__tag { font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.studio-card p { color: var(--text); font-size: 17px; }
.studio-card__more { margin-top: auto; font-weight: 600; display: inline-flex; gap: 8px; }
.studio-card:hover .studio-card__more span { transform: translateX(4px); }
.studio-card__more span { transition: transform .25s var(--ease); }

/* ---------- Split feature (home events teaser, events page) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.split--reverse > :first-child { order: 2; }
.split__text p { color: var(--text); }
.split__text p + p { margin-top: 16px; }
.split__text .btn, .split__text .link { margin-top: 30px; }
.split__text .h2 { margin-bottom: 22px; }

/* ---------- Photo placeholders ---------- */
.ph {
  position: relative; overflow: hidden;
  border-radius: 16px;
  background: url("assets/img/gradient-1.jpg") var(--pos, 50% 50%) / 260% auto;
  display: grid; place-items: center;
  color: rgba(255,255,255,.95);
  font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  aspect-ratio: var(--ratio, 4 / 3);
}
.ph::before {
  content: ""; position: absolute; inset: 0;
  background: url("assets/img/UnicornMachine-symbol-white-rgb.svg") center 42% / 22% no-repeat;
  opacity: .5;
}
.ph > span { position: relative; margin-top: 30%; text-shadow: 0 1px 8px rgba(0,0,0,.15); }
.ph--alt { background-image: url("assets/img/gradient-2.jpg"); }
.ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ph:has(img)::before, .ph:has(img) > span { display: none; }

/* Photos: gentle zoom on hover, click to open in the lightbox (main.js) */
.ph:has(img) { cursor: zoom-in; transition: box-shadow .4s var(--ease); }
.ph img { transition: transform .6s var(--ease); }
.ph:has(img):hover { box-shadow: 0 18px 40px -22px rgba(0,0,0,.45); }
.ph:has(img):hover img { transform: scale(1.05); }
.ph:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

.lightbox {
  width: 100vw; height: 100vh; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0; background: transparent;
  display: grid; place-items: center; overflow: hidden;
}
.lightbox:not([open]) { display: none; }
.lightbox::backdrop { background: rgba(8,9,14,.86); backdrop-filter: blur(8px); }
.lightbox figure { margin: 0; display: grid; justify-items: center; gap: 14px; padding: 0 72px; }
.lightbox img {
  max-width: min(1400px, 100%); max-height: 82vh; width: auto; height: auto;
  border-radius: 14px; box-shadow: 0 30px 80px -20px rgba(0,0,0,.6);
  animation: lb-in .35s var(--ease);
}
@keyframes lb-in { from { opacity: 0; transform: scale(.96); } }
.lightbox figcaption { color: rgba(255,255,255,.8); font-size: 15px; text-align: center; max-width: 60ch; }
.lightbox button {
  position: fixed; width: 48px; height: 48px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255,255,255,.12); color: #fff; font: 400 26px/1 var(--body);
  display: grid; place-items: center; transition: background .2s;
}
.lightbox button:hover { background: rgba(255,255,255,.26); }
.lightbox__close { top: 20px; right: 20px; }
.lightbox__prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 20px; top: 50%; transform: translateY(-50%); }
.lightbox[data-single] .lightbox__prev, .lightbox[data-single] .lightbox__next { display: none; }
@media (max-width: 760px) {
  .lightbox figure { padding: 0 12px; }
  .lightbox__prev, .lightbox__next { top: auto; bottom: 24px; transform: none; }
}

/* Collage: a fixed-shape box holding one tall tile and two stacked tiles that fill it exactly.
   (Auto-sized rows left a gap between the two right-hand tiles on narrow screens.) */
.collage { display: grid; grid-template-columns: 1.2fr 1fr; grid-template-rows: 1fr 1fr; gap: 14px; aspect-ratio: 1.4 / 1; }
.collage .ph { aspect-ratio: auto; height: 100%; min-height: 0; }
.collage .ph:first-child { grid-row: span 2; }
@media (max-width: 760px) { .collage { aspect-ratio: 1.1 / 1; gap: 10px; } }

/* ---------- Ecosystem cards (about) ---------- */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.card {
  position: relative; overflow: hidden;
  padding: 30px 26px 34px;
  min-height: 300px;
  display: flex; flex-direction: column;
  border-radius: var(--radius);
  background: var(--offwhite);
  border: 1px solid rgba(0,0,0,.06);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.card::before {
  content: ""; position: absolute; width: 260px; height: 260px; right: -110px; top: -110px;
  border-radius: 50%; background: var(--accent); filter: blur(50px); opacity: .45;
  transition: opacity .4s, transform .6s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -30px rgba(0,0,0,.25); }
.card:hover::before { opacity: .8; transform: scale(1.25); }
.card > * { position: relative; }
.card__num { font: 700 13px/1 var(--display); color: var(--muted); }
.card__title {
  font-family: var(--display); font-weight: 700; font-size: clamp(16px, 1.6vw, 20px); text-transform: lowercase;
  margin: auto 0 14px; padding-top: 70px;
}
.card p { color: #3a3e49; font-size: 16px; line-height: 1.55; }

/* ---------- Approach (dark) ---------- */
.dark { background: var(--black); color: var(--white); overflow: hidden; }
.dark__bg {
  position: absolute; inset: -10%;
  background: url("assets/img/gradient-2-soft.jpg") center/cover;   /* blur pre-baked, as in .hero__glow */
  opacity: .5;
  mask-image: radial-gradient(ellipse 70% 60% at 85% 20%, #000 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 85% 20%, #000 0%, transparent 70%);
  animation: drift 26s ease-in-out infinite alternate;
}
.dark .wrap { position: relative; }
.dark .split__text p { color: rgba(255,255,255,.75); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 56px); }
.step { border-top: 1px solid rgba(255,255,255,.2); padding-top: 28px; }
.step__num {
  display: inline-block; font: 700 14px/1 var(--display);
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.step h3 { font-family: var(--display); font-weight: 700; font-size: 28px; text-transform: lowercase; margin: 18px 0 14px; }
.step p { color: rgba(255,255,255,.72); font-size: 17px; }

/* ---------- Team grid (about) ---------- */
.team-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr);   /* one grid: rows always line up in fours */
  gap: clamp(28px, 3.5vw, 44px) clamp(16px, 2vw, 24px);
}
.member img {
  width: 100%; height: auto; aspect-ratio: 1; object-fit: cover;
  border-radius: var(--radius);
  background: var(--silver);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-radius .5s var(--ease);
}
.member:hover img {
  transform: translateY(-6px);
  border-radius: calc(var(--radius) * 1.8);
  box-shadow: 0 24px 48px -24px rgba(64,106,255,.55), 0 14px 30px -20px rgba(255,123,172,.6);
}
/* No headshot yet: the same blurred brand gradient the headshots sit on */
.member__ph {
  aspect-ratio: 1; border-radius: var(--radius);
  background: url("assets/img/gradient-1.jpg") var(--pos, 50% 50%) / 260% auto;
  transition: transform .5s var(--ease), border-radius .5s var(--ease);
}
.member:hover .member__ph { transform: translateY(-6px); border-radius: calc(var(--radius) * 1.8); }
.member h3 { font-size: 18px; font-weight: 700; margin-top: 16px; line-height: 1.25; }
.member p { font-size: 15px; color: var(--text); margin-top: 4px; line-height: 1.4; }
.member p span { display: block; color: var(--muted); font-size: 14px; }

/* ---------- Ventures page ---------- */
.studio-nav { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 36px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px; border-radius: 999px;
  border: 1.5px solid rgba(0,0,0,.14); background: rgba(255,255,255,.6);
  font-weight: 600; font-size: 15px; text-decoration: none;
  transition: border-color .2s, background .2s;
}
.chip::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent, var(--blue)); }
.chip:hover { border-color: var(--black); background: var(--white); }

.studio { border-top: 1px solid rgba(0,0,0,.08); }
.studio:nth-of-type(even) { background: var(--white); }
.studio__head {
  display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(24px, 6vw, 80px); align-items: end;
  margin-bottom: clamp(36px, 5vw, 56px);
}
.studio__label { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.studio__num {
  font: 700 13px/1 var(--display); color: var(--white);
  background: var(--accent); border-radius: 999px; padding: 8px 12px;
}
.studio__kind { font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.studio__mission { font-size: clamp(19px, 1.7vw, 23px); color: var(--text); line-height: 1.5; }
.studio__mission + .link { display: inline-block; margin-top: 18px; }

.ventures { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.venture {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column; gap: 10px;
  min-height: 220px; padding: 26px;
  border-radius: 18px;
  background: var(--offwhite); border: 1px solid rgba(0,0,0,.07);
  text-decoration: none;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}
.studio:nth-of-type(even) .venture { background: var(--offwhite); }
.studio:nth-of-type(odd) .venture { background: var(--white); }
.venture::after {
  content: ""; position: absolute; z-index: -1; inset: auto -40% -70% auto; width: 220px; height: 220px;
  border-radius: 50%; background: var(--accent); filter: blur(50px); opacity: 0;
  transition: opacity .4s;
}
a.venture:hover { transform: translateY(-4px); box-shadow: 0 24px 50px -28px rgba(0,0,0,.3); }
a.venture:hover::after { opacity: .45; }
.venture__name { font: 700 20px/1.2 var(--display); text-transform: lowercase; }
.venture p { font-size: 16px; color: var(--text); }
.venture__foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 12px; }
.venture__url { font-size: 14px; font-weight: 600; }
.tag {
  font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  padding: 6px 10px; border-radius: 999px; background: rgba(0,0,0,.06); color: var(--muted); white-space: nowrap;
}
.tag--live { background: rgba(0,224,181,.16); color: #00795f; }
.tag--build { background: rgba(255,147,30,.16); color: #9a5200; }

.empty {
  border: 1.5px dashed rgba(0,0,0,.16); border-radius: 18px;
  padding: 40px 28px; text-align: center; color: var(--muted);
}

/* ---------- Events page ---------- */
.event-logo { font: 700 13px/1 var(--display); letter-spacing: .02em; text-transform: lowercase; color: var(--muted); margin-bottom: 14px; }
.gallery {
  display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-flow: dense; gap: 14px;
}
.gallery .ph { --ratio: 1 / 1; }
.gallery .ph--wide { grid-column: span 2; --ratio: 2 / 1; }
.gallery .ph--tall { grid-row: span 2; --ratio: auto; background-size: auto 160%; }

/* Luma embed (light theme): no frame, so its event cards sit straight on the page.
   Soft fades top and bottom hide the hard edges of the scrolling iframe. */
.calendar { position: relative; max-width: 760px; margin: 0 auto; }
.calendar iframe { display: block; width: 100%; height: 640px; border: 0; background: transparent; color-scheme: light; }
.calendar::before, .calendar::after {
  content: ""; position: absolute; left: 0; right: 0; height: 28px; pointer-events: none; z-index: 1;
}
.calendar::before { top: 0; background: linear-gradient(var(--offwhite), transparent); }
.calendar::after { bottom: 0; background: linear-gradient(transparent, var(--offwhite)); }

/* ---------- Careers page ---------- */
.roles { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.role {
  width: 100%; text-align: left; cursor: pointer; font: inherit; color: inherit;
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 8px 24px;
  padding: 26px 30px; border-radius: 18px;
  background: var(--white); border: 1px solid rgba(0,0,0,.08);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}
.role:hover { transform: translateY(-3px); border-color: rgba(64,106,255,.35); box-shadow: 0 24px 50px -30px rgba(64,106,255,.5); }
.role__title { font: 700 clamp(19px, 2vw, 24px)/1.2 var(--display); text-transform: lowercase; }
.role__meta { display: flex; flex-wrap: wrap; gap: 8px; grid-column: 1; }
.role__cta { grid-column: 2; grid-row: 1 / span 2; font-weight: 600; display: inline-flex; gap: 8px; white-space: nowrap; }
.role:hover .role__cta span { transform: translateX(4px); }
.role__cta span { transition: transform .25s var(--ease); }

.job {
  width: min(760px, calc(100vw - 32px)); max-height: calc(100vh - 48px);
  margin: auto; padding: 0; border: 0; border-radius: var(--radius);
  background: var(--white); color: var(--black);
  box-shadow: 0 40px 100px -30px rgba(0,0,0,.5);
}
.job::backdrop { background: rgba(8,9,14,.6); backdrop-filter: blur(6px); }
.job[open] { animation: lb-in .35s var(--ease); }
.job__inner { padding: clamp(28px, 5vw, 48px); }
.job__close {
  position: sticky; top: 16px; float: right; margin: 16px 16px 0 0;
  width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--offwhite); font-size: 22px; line-height: 1;
}
.job__close:hover { background: var(--silver); }
.job h2 { margin: 14px 0 20px; }
.job h3 { font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin: 30px 0 12px; }
.job p, .job li { color: var(--text); font-size: 17px; }
.job ul { padding-left: 20px; margin: 0; display: grid; gap: 8px; }
.job__apply {
  position: sticky; bottom: 0; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 18px clamp(28px, 5vw, 48px); background: rgba(255,255,255,.94); backdrop-filter: blur(8px);
  border-top: 1px solid rgba(0,0,0,.07);
}
.job__apply small { color: var(--muted); font-size: 14px; }

/* ---------- Careers band ---------- */
.careers__inner {
  position: relative; overflow: hidden;
  text-align: center; display: flex; flex-direction: column; align-items: center; gap: 22px;
  padding: clamp(56px, 8vw, 96px) var(--gutter);
  border-radius: calc(var(--radius) * 1.5);
  background:
    linear-gradient(rgba(255,255,255,.55), rgba(255,255,255,.55)),
    url("assets/img/gradient-1.jpg") center/cover;
}
.careers__inner p { color: var(--text); max-width: 44ch; }
.careers__inner img { filter: drop-shadow(0 10px 24px rgba(64,106,255,.35)); }

/* ---------- Contact ---------- */
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 100px); align-items: start; }
.contact__info { margin-top: 44px; }
.contact__info h3 { font-size: 13px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.contact__info address { font-style: normal; font-size: 20px; line-height: 1.5; margin-bottom: 16px; }

.form {
  background: var(--white); border-radius: var(--radius);
  padding: clamp(24px, 4vw, 40px);
  display: grid; gap: 18px;
  box-shadow: 0 30px 80px -40px rgba(0,0,0,.25);
  border: 1px solid rgba(0,0,0,.05);
}
.field { display: grid; gap: 8px; }
.field span { font-size: 14px; font-weight: 600; }
.field input, .field textarea {
  font: inherit; font-size: 16px; color: var(--black);
  padding: 14px 16px; border-radius: 12px;
  border: 1.5px solid var(--silver); background: var(--offwhite);
  transition: border-color .2s, background .2s, box-shadow .2s;
  resize: vertical;
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--blue); background: var(--white);
  box-shadow: 0 0 0 4px rgba(64,106,255,.15);
}
.form .btn { justify-self: start; }
.hp { position: absolute; left: -9999px; }
.form__status { margin: 0; font-size: 16px; color: var(--text); outline: none; }
.form__status.is-error { color: #b42318; }
/* After a successful send, the fields give way to the confirmation */
.form.is-sent > :not(.form__status) { display: none; }
.form.is-sent .form__status { font: 700 clamp(20px, 2.4vw, 26px)/1.3 var(--display); text-transform: lowercase; padding: 24px 0; }

/* ---------- Footer ---------- */
.footer { background: var(--black); color: rgba(255,255,255,.7); padding: 64px 0 40px; }
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,.12); }
.footer__tagline { margin-top: 18px; max-width: 30ch; font-size: 16px; }
.footer h4 { margin: 0 0 14px; color: var(--white); font-size: 13px; letter-spacing: .16em; text-transform: uppercase; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer a { text-decoration: none; font-size: 15px; }
.footer a:hover { color: var(--white); }
.footer address { font-style: normal; font-size: 15px; line-height: 1.6; }
.footer__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 28px; font-size: 14px; }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .card { min-height: 240px; }
  .hero__unicorn { opacity: .55; right: -30vw; }
  .studio-cards { grid-template-columns: 1fr; }
  .studio-card { min-height: 0; }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .team-grid { grid-template-columns: repeat(3, 1fr); }
  }
@media (max-width: 760px) {
  body { font-size: 17px; }
  .nav__toggle {
    display: grid; place-content: center; gap: 6px;
    width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; padding: 0;
  }
  .nav__toggle span { display: block; width: 22px; height: 2px; background: var(--black); transition: transform .3s var(--ease); }
  .nav[data-open] .nav__toggle span:first-child { transform: translateY(4px) rotate(45deg); }
  .nav[data-open] .nav__toggle span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .nav__menu {
    position: fixed; inset: 72px 0 auto; flex-direction: column; align-items: flex-start; gap: 22px;
    padding: 28px var(--gutter) 36px; background: var(--offwhite);
    box-shadow: 0 20px 40px -20px rgba(0,0,0,.2);
    transform: translateY(-12px); opacity: 0; visibility: hidden;
    transition: opacity .25s, transform .25s var(--ease), visibility .25s;
  }
  .nav[data-open] { background: var(--offwhite); }
  .nav[data-open] .nav__menu { opacity: 1; visibility: visible; transform: none; }
  .nav__menu a:not(.btn) { font-size: 20px; }
  .nav__inner { height: 72px; }
  .nav__logo { height: 52px; }

  .hero { align-items: flex-end; padding-bottom: 110px; }
  .hero__unicorn { height: 70vh; right: -35vw; top: 36%; opacity: .6; }
  .page-hero { min-height: 0; padding: 128px 0 64px; }
  .page-hero .hero__unicorn { height: 72vh; right: -42vw; top: 45%; opacity: .35; }
  .contact__grid, .split, .studio__head { grid-template-columns: 1fr; }
  .split--reverse > :first-child { order: 0; }
  .cards, .steps { grid-template-columns: 1fr; }
  .card { min-height: 0; }
  .card__title { padding-top: 40px; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
    .member h3 { font-size: 16px; }
  .member p { font-size: 14px; }
  .gallery .ph--tall { grid-row: span 1; --ratio: 1 / 1; }
  .calendar iframe { height: 560px; }
  .footer__top { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; }
}
