/* ====================================================================
   3mbassy — Shared brand stylesheet
   Tokens, base type, nav, footer, CTA section, helpers.
   ==================================================================== */

@import url("https://fonts.googleapis.com/css2?family=Bai+Jamjuree:wght@300;400;500;600;700&family=Albert+Sans:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap");

:root {
  --blue: #2559ff;
  --aqua: #33ccff;
  --violet: #9686ff;
  --black: #000000;
  --white: #ffffff;
  --gray-light: #dddddd;
  --gray-dark: #909090;

  --bg: #DDDDDD;
  --fg: var(--black);

  --grad-blue-aqua: linear-gradient(135deg, var(--blue) 0%, var(--aqua) 100%);
  --grad-blue-violet: linear-gradient(135deg, var(--blue) 0%, var(--violet) 100%);
  --grad-radial: radial-gradient(120% 80% at 30% 50%, var(--blue) 0%, var(--violet) 55%, #000 100%);

  --display: "Bai Jamjuree", system-ui, sans-serif;
  --body: "Albert Sans", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;

  --nav-h: 84px;
  --gutter: clamp(20px, 4vw, 56px);
  --section-y: clamp(80px, 12vw, 180px);

  --hairline: rgba(255, 255, 255, 0.12);
  --hairline-strong: rgba(255, 255, 255, 0.22);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--body);
  font-size: 17px;
}

/* Light theme — dark text against the grey body bg.
   Scoped to <main> only so the fixed nav (over dark hero) and
   the dark footer keep their original light-on-dark treatment. */
main {
  --gray-light: #2a2a2a;
  --gray-dark: #6a6a6a;
  --hairline: rgba(0,0,0,0.15);
  --hairline-strong: rgba(0,0,0,0.4);
}
/* Hero is a dark video — restore dark-theme tokens inside it */
main .hero {
  --gray-light: #dddddd;
  --gray-dark: #909090;
  --hairline: rgba(255,255,255,0.1);
  --hairline-strong: rgba(255,255,255,0.4);
}

/* Dark cards on the light page (work tiles + testimonial cards + closing CTA gradient).
   Restore dark-theme tokens and white text inside them so chips, titles,
   meta text, quotes, and authors stay readable on dark/gradient backgrounds. */
main .tile,
main .testimonial,
main .cta-close {
  --gray-light: #dddddd;
  --gray-dark: #909090;
  --hairline: rgba(255,255,255,0.1);
  --hairline-strong: rgba(255,255,255,0.4);
  color: var(--white);
}
  line-height: 1.5;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img, video, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }

::selection { background: var(--blue); color: var(--white); }

/* ----- Type ----- */
h1, h2, h3, h4, h5 {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 0.92;
  margin: 0;
  text-wrap: balance;
}

h1 { font-size: clamp(56px, 11vw, 200px); }
h2 { font-size: clamp(44px, 8vw, 140px); }
h3 { font-size: clamp(32px, 5vw, 84px); }
h4 { font-size: clamp(22px, 2.4vw, 36px); letter-spacing: -0.01em; }

p { margin: 0; text-wrap: pretty; }

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gray-dark);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 8px; height: 8px;
  background: var(--aqua);
  border-radius: 50%;
}

.lede {
  font-family: var(--body);
  font-size: clamp(18px, 1.5vw, 22px);
  line-height: 1.45;
  color: var(--gray-light);
  max-width: 60ch;
}

/* ----- Layout ----- */
.wrap {
  width: 100%;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
.wrap--max { max-width: 1680px; margin: 0 auto; }

.section { padding-top: var(--section-y); padding-bottom: var(--section-y); }
.section--tight { padding-top: clamp(48px, 8vw, 110px); padding-bottom: clamp(48px, 8vw, 110px); }

.hairline { border-top: 1px solid var(--hairline); }

.btn { text-decoration: none; }
.btn--sweep {
  position: relative;
  text-align: center;
  justify-content: center;
}
.btn--sweep .sweep-label {
  position: relative;
  display: inline-block;
  line-height: 1.2;
}
.btn--sweep .sweep-label::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  bottom: -2px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 0.45s cubic-bezier(.7,0,.3,1);
  pointer-events: none;
}
.btn--sweep:hover .sweep-label::after,
.btn--sweep:focus-visible .sweep-label::after {
  transform: scaleX(1);
  transform-origin: left center;
}

/* ----- Buttons ----- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 22px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.01em;
  border: 1px solid currentColor;
  background: transparent;
  color: var(--white);
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
  white-space: nowrap;
}
.btn:hover { background: var(--white); color: var(--black); }
.btn .arr { transition: transform 0.25s ease; }
.btn:hover .arr { transform: translateX(4px); }

.btn--solid { background: var(--white); color: var(--black); }
.btn--solid:hover { background: var(--blue); color: var(--white); border-color: var(--blue); }

.btn--ghost { color: var(--white); border-color: var(--hairline-strong); }

.btn--big {
  font-size: 17px;
  padding: 22px 30px;
}

/* ----- Nav ----- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  padding: 0 clamp(20px, 2vw, 32px) 0 0;
  background: transparent;
  border-bottom: 0;
  transition: background-color 0.35s ease, backdrop-filter 0.35s ease;
}
/* Scrolled state — JS sets --nav-progress (0 → 1) as we cross the hero border. */
.nav {
  --nav-progress: 0;
}
.nav::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #DDDDDD;
  border-bottom: 1px solid #B8B8B8;
  clip-path: inset(calc((1 - var(--nav-progress)) * 100%) 0 0 0);
  pointer-events: none;
  z-index: -1;
  will-change: clip-path;
}
/* Lock children above the bg fader */
.nav > * { position: relative; z-index: 1; }
/* Text + logo blend with --nav-progress so the color shift tracks scroll. */
.nav .nav__center-link {
  color: rgb(
    calc(255 - var(--nav-progress) * 255),
    calc(255 - var(--nav-progress) * 255),
    calc(255 - var(--nav-progress) * 255)
  );
}
.nav .logo__img {
  transition: opacity 0.35s ease;
  background: transparent !important;
}
/* The black mark variant is a solid-bg PNG; use the transparent onblack file
   and invert it to get a clean black mark with no white box behind it. */
.nav.nav--scrolled .logo__img--mark,
body.about-page .nav .logo__img--mark,
body.careers-page .nav .logo__img--mark,
body.portfolio-page .nav .logo__img--mark,
body.work-page .nav .logo__img--mark {
  content: url("embassy-mark-onblack.png") !important;
  filter: invert(1);
}
.nav .logo {
  background: transparent !important;
}
.nav .logo,
.nav .logo:focus,
.nav .logo:focus-visible,
.nav .logo:hover {
  outline: none !important;
  box-shadow: none !important;
  -webkit-tap-highlight-color: transparent;
}
.nav .logo:hover .logo__img,
.nav .logo:focus-visible .logo__img {
  filter: none !important;
  transform: none !important;
}
/* Old hard-toggle rules — kept off; smoothing above handles it. */
.nav.nav--scrolled .nav__center-link { color: #000 !important; }
.nav.nav--scrolled .nav__center-link:hover,
.nav.nav--scrolled .nav__center-link.is-active { color: #000 !important; }
.nav.nav--scrolled .nav__center-link .sweep-label::after { background: #000 !important; }
.nav.nav--scrolled .logo__img--wordmark { content: url("embassy-wordmark-black-alpha.png"); }
.nav.nav--scrolled .logo__img--mark { content: url("embassy-mark.png"); }
.nav.nav--scrolled .logo__halo { display: none !important; }
/* Override the hard color flip so the smooth rgb() formula wins on index. */
body:not(.about-page):not(.careers-page):not(.portfolio-page):not(.work-page) .nav.nav--scrolled .nav__center-link { color: #000 !important; }

.nav__inner {
  width: 100%;
  max-width: none;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 32px;
}

.nav__center {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
}
.nav__center-link {
  font-family: var(--display);
  font-weight: 500;
  font-size: 19px;
  letter-spacing: 0.01em;
  color: var(--white);
  text-decoration: none;
  position: relative;
  padding: 8px 2px;
}
.nav__center-link:hover,
.nav__center-link.is-active { color: var(--white); }

/* Underline sweep:
   - on hover: scale 0→1 from the left (line grows left → right)
   - on leave: scale 1→0 toward the right (line vanishes left → right)
   transform-origin swaps instantly at scaleX(0)/scaleX(1) so the direction
   reads as a continuous sweep in one direction. */
.nav__center-link .sweep-label {
  position: relative;
  display: inline-block;
}
.nav__center-link .sweep-label::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  bottom: -3px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 0.45s cubic-bezier(.7,0,.3,1);
  pointer-events: none;
}
.nav__center-link:hover .sweep-label::after,
.nav__center-link:focus-visible .sweep-label::after,
.nav__center-link.is-active .sweep-label::after {
  transform: scaleX(1);
  transform-origin: left center;
}
/* Logo swap: wordmark on desktop, mark-only on mobile. Never both. */
.logo__img--mark { display: none !important; }
.logo__img--wordmark { display: block; }
@media (max-width: 1024px) {
  .logo__img--wordmark { display: none !important; }
  .logo__img--mark { display: block !important; height: 32px; width: auto; }
}
@media (max-width: 720px) {
  .nav { height: 56px; padding-right: 14px; }
  .nav__inner {
    grid-template-columns: auto 1fr;
    gap: 12px;
    padding-left: 14px;
  }
  .logo__img--mark { height: 28px; }
  .nav__center {
    justify-content: center;
    gap: 18px;
  }
  .nav__center-link { font-size: 13px; padding: 6px 2px; letter-spacing: 0.01em; }
}

.logo {
  position: relative;
  display: inline-flex;
  align-items: flex-start;
  justify-content: flex-start;
  justify-self: start !important;
  color: var(--white);
  background: transparent;
  border: 0;
  padding: 0;
  /* Align logo with the page gutter (matches content alignment like the PARIS title). */
  margin: 0 0 0 var(--gutter);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
@media (max-width: 1024px) {
  .logo { margin-left: var(--gutter) !important; justify-self: start !important; justify-content: flex-start; }
}
.logo__img {
  height: 56px;
  width: auto;
  display: block;
  transition: transform 0.5s cubic-bezier(.2,.7,.2,1), filter 0.5s ease;
  filter: drop-shadow(0 0 0 transparent);
}
.logo__halo {
  /* glassy effect masked to the logo's own pixels via -webkit-mask */
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(51,204,255,0.85), rgba(150,134,255,0.85) 60%, rgba(255,255,255,0.95));
  -webkit-mask: url("assets/embassy-wordmark-white.png") center / contain no-repeat;
          mask: url("assets/embassy-wordmark-white.png") center / contain no-repeat;
  opacity: 0;
  transition: opacity 0.45s ease;
  mix-blend-mode: screen;
}
.logo:hover .logo__halo,
.logo:focus-visible .logo__halo {
  opacity: 1;
}
.logo:hover .logo__img,
.logo:focus-visible .logo__img {
  transform: translateY(-1px) scale(1.02);
  filter: drop-shadow(0 2px 14px rgba(51,204,255,0.4));
}
.logo:active .logo__img { transform: scale(0.98); }

/* Menu dropdown — anchored under the logo */
.menu-overlay {
  position: fixed;
  top: var(--nav-h);
  left: clamp(20px, 2vw, 32px);
  z-index: 99;
  width: min(320px, calc(100vw - 40px));
  background: rgba(10, 12, 20, 0.45);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  padding: 8px 0;
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.3s cubic-bezier(.2,.7,.2,1);
  box-shadow: 0 18px 40px rgba(0,0,0,0.4);
}
.menu-overlay.is-open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.menu-overlay__close { display: none; }
.menu-overlay__nav { width: 100%; }
.menu-overlay__nav ol {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column;
}
.menu-overlay__nav li {
  border-top: none;
  opacity: 1;
  transform: none;
  transition: none;
}
.menu-overlay__nav li:last-child { border-bottom: none; }
.menu-overlay.is-open .menu-overlay__nav li { opacity: 1; transform: none; }
.menu-overlay__nav a {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 12px 18px;
  color: var(--gray-light);
  text-decoration: none;
  transition: color 0.2s ease, background 0.2s ease;
  border-radius: 6px;
  margin: 2px 6px;
}
.menu-overlay__nav a:hover { background: rgba(255,255,255,0.06); }
.menu-overlay__nav a:hover { color: var(--white); }
.menu-overlay__num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--gray-dark);
}
.menu-overlay__label {
  font-family: var(--display);
  font-weight: 500;
  font-size: 17px;
  letter-spacing: 0;
  line-height: 1.2;
}
.menu-overlay__nav a:hover .menu-overlay__label {
  background: linear-gradient(135deg, var(--aqua), var(--violet));
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.menu-overlay__arr {
  width: 18px; height: 18px;
  opacity: 0; transform: translateX(-6px);
  transition: opacity 0.2s ease, transform 0.25s cubic-bezier(.2,.7,.2,1);
  color: var(--white);
}
.menu-overlay__nav a:hover .menu-overlay__arr { opacity: 1; transform: translateX(0); }
.menu-overlay__foot {
  margin-top: 4px;
  padding: 12px 18px 8px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--gray-dark);
}
.menu-overlay__foot a { color: var(--gray-light); }

.nav__links {
  display: flex;
  gap: 36px;
  justify-content: flex-end;
}
.nav__links {
  display: flex;
  gap: 28px;
  align-items: center;
  justify-content: flex-end;
}
.nav__links a {
  font-family: var(--display);
  font-weight: 500;
  font-size: 15px;
  color: var(--gray-light);
  position: relative;
  padding: 6px 0;
  transition: color 0.2s ease;
}
.nav__links a:hover, .nav__links a.is-active { color: var(--white); }
.nav__links a.is-active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: var(--aqua);
}

.nav__divider {
  width: 1px;
  height: 20px;
  background: rgba(255, 255, 255, 0.25);
  margin: 0 4px;
}
.nav__contact {
  font-family: var(--display);
  font-weight: 500;
  font-size: 15px;
  color: var(--white);
  padding: 10px 22px;
  border: 1px solid var(--white);
  transition: background 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}
.nav__contact:hover { background: var(--white); color: #000; }
.nav__contact.is-active { background: var(--white); color: #000; }

.nav__cta { display: flex; align-items: center; gap: 12px; }
.nav__cta-status {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--gray-dark);
}
.nav__cta-status::before {
  content: ""; width: 7px; height: 7px; background: var(--aqua); border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(51, 204, 255, 0.18);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

@media (max-width: 880px) {
  .nav__links { display: none; }
  .nav__cta-status { display: none; }
  .nav__inner { grid-template-columns: auto 1fr; }
  .nav__cta { justify-self: end; }
}

/* ----- Glyphs ----- */
.glyph-octagon {
  /* outlined octagon — used as decorative anchor */
  width: 100%; height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
}
.glyph-arrow {
  width: 100%; height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
}

.deco {
  position: absolute;
  pointer-events: none;
  color: var(--white);
  opacity: 0.18;
}

/* ----- Closing CTA section ----- */
.cta-close {
  position: relative;
  padding: clamp(100px, 16vw, 220px) var(--gutter);
  background: var(--grad-blue-violet);
  overflow: hidden;
  isolation: isolate;
}
.cta-close::before {
  /* subtle grain / depth */
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(80% 60% at 80% 0%, rgba(51,204,255,0.5), transparent 60%),
    radial-gradient(60% 60% at 0% 100%, rgba(0,0,0,0.4), transparent 60%);
  z-index: -1;
}
.cta-close__inner {
  max-width: 1680px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 56px;
}
.cta-close h2 {
  font-size: clamp(56px, 12vw, 200px);
  line-height: 0.9;
  font-weight: 700;
  max-width: 16ch;
}
.cta-close__row {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 32px;
  flex-wrap: wrap;
}
.cta-close__meta {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  max-width: 36ch;
}

.cta-close .deco-octagon {
  position: absolute;
  width: clamp(180px, 24vw, 360px);
  aspect-ratio: 1;
  right: -2vw; top: 8%;
  color: rgba(255,255,255,0.35);
}

/* ----- Footer ----- */
.footer {
  background: #181818;
  color: var(--gray-light);
  padding: clamp(48px, 5vw, 80px) clamp(28px, 3vw, 56px) 28px;
  border-top: 1px solid var(--hairline);
}
.footer__top {
  max-width: 1680px;
  margin: 0 auto clamp(64px, 8vw, 120px);
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(32px, 4vw, 80px);
  align-items: start;
}
.footer__sigil {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(28px, 2.4vw, 36px);
  letter-spacing: -0.02em;
  color: var(--white);
  line-height: 1;
  display: inline-flex;
  align-items: flex-start;
}
.footer__mark {
  display: block;
  width: clamp(72px, 6vw, 96px);
  height: auto;
}
.footer__r {
  font-size: 0.42em;
  margin-left: 2px;
  margin-top: 0.2em;
  font-weight: 500;
}
.footer__lede {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(22px, 1.9vw, 30px);
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--white);
  margin: 0;
  max-width: 28ch;
}
.footer__lede a {
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 4px;
  display: inline-block;
  margin-top: 8px;
}
.footer__lede a:hover { opacity: 0.7; }

.footer__cols {
  max-width: 1680px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: clamp(28px, 3vw, 56px);
  padding-bottom: clamp(48px, 6vw, 96px);
}
.footer__col h4 {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--white);
  margin: 0 0 22px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.footer__col h4 .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--white);
  display: inline-block;
}
.footer__col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer__col ul a { color: var(--gray-light); text-decoration: none; }
.footer__col ul a:hover { color: var(--white); }
.footer__offices li { color: var(--gray-light); }

.footer__signup {
  position: relative;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(255,255,255,0.25);
  padding: 6px 0;
  max-width: 420px;
}
.footer__signup input {
  flex: 1;
  background: transparent;
  border: 0;
  outline: 0;
  color: var(--white);
  font-family: var(--body);
  font-size: 15px;
  padding: 8px 0;
}
.footer__signup input::placeholder { color: var(--gray-light); }
.footer__signup button {
  background: transparent;
  border: 0;
  color: var(--white);
  font-size: 20px;
  cursor: pointer;
  padding: 4px 0 4px 12px;
  transition: transform 0.2s ease;
}
.footer__signup button:hover { transform: translateX(4px); }
.footer__signup-msg {
  position: absolute;
  left: 0; bottom: -22px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--gray-light);
  letter-spacing: 0.04em;
}

.footer__bottom {
  max-width: 1680px;
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.12);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gray-dark);
}
.footer__bottom a { color: var(--gray-dark); }
.footer__bottom a:hover { color: var(--white); }

@media (max-width: 1000px) {
  .footer__top { grid-template-columns: 1fr; }
  .footer__cols { grid-template-columns: 1fr 1fr; row-gap: 40px; }
}
@media (max-width: 560px) {
  .footer__cols { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
  .footer__bottom-tagline { display: none; }
}

/* ----- Marquee (Trusted by) ----- */
.marquee {
  --speed: 38s;
  position: relative;
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}
.marquee__track {
  display: flex;
  gap: 80px;
  width: max-content;
  animation: marquee var(--speed) linear infinite;
}
.marquee__item {
  flex: 0 0 auto;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(28px, 3.6vw, 56px);
  color: var(--gray-light);
  letter-spacing: -0.02em;
  display: inline-flex; align-items: center; gap: 28px;
  opacity: 0.7;
  transition: opacity 0.2s ease, color 0.2s ease;
}
.marquee__item:hover { opacity: 1; color: var(--white); }
.marquee__item::after {
  content: "";
  width: 12px; height: 12px;
  border: 1px solid currentColor;
  transform: rotate(45deg);
  display: inline-block;
}
.marquee__item--logo {
  opacity: 1;
  padding: 0 8px;
  /* fixed optical row height — every logo gets the same vertical slot */
  height: clamp(48px, 5.5vw, 80px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.marquee__item--logo::after { display: none; }
.marquee__item--logo img {
  display: block;
  height: 100%;
  width: auto;
  max-width: none;
  object-fit: contain;
  /* Desaturate to grayscale — preserves internal contrast */
  filter: grayscale(1) contrast(1.05);
  opacity: 0.85;
  transition: opacity 0.2s ease, filter 0.2s ease;
}
/* Per-logo optical compensation — logos with prominent ICONS look bigger
   at the same height than wordmark-only logos. Trim those slightly. */
.marquee__item--logo img[alt="Cool Cats"]   { height: 90%; }
.marquee__item--logo img[alt="Yuga Labs"]   { height: 92%; }
.marquee__item--logo img[alt="CryptoPunks"] { height: 70%; }
.marquee__item--logo img[alt="OKX"]         { height: 65%; }
.marquee__item--logo img[alt="Internet Computer"] { height: 78%; }
.marquee__item--logo:hover img { opacity: 1; filter: grayscale(0) contrast(1); }
/* CryptoPunks is bright pink — force it solid black to match the row */
.marquee__item--logo img[alt="CryptoPunks"] { filter: brightness(0) saturate(100%); }
.marquee__item--logo:hover img[alt="CryptoPunks"] { filter: brightness(0) saturate(100%); }
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ----- Generic placeholder media ----- */
.media {
  position: relative;
  background: #0a0a0a;
  overflow: hidden;
}
.media__placeholder {
  position: absolute; inset: 0;
  display: grid;
  place-items: center;
  background:
    repeating-linear-gradient(135deg, #0a0a0a 0 14px, #111 14px 28px);
  color: rgba(255,255,255,0.55);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-align: center;
  padding: 16px;
}
.media__placeholder span {
  display: inline-block;
  background: rgba(0,0,0,0.55);
  padding: 6px 10px;
  border: 1px solid var(--hairline);
}

/* gradient-mapped placeholders, per brand image treatment */
.media--blue-violet .media__placeholder {
  background:
    repeating-linear-gradient(135deg, rgba(0,0,0,0.25) 0 14px, rgba(0,0,0,0.45) 14px 28px),
    var(--grad-blue-violet);
}
.media--blue-aqua .media__placeholder {
  background:
    repeating-linear-gradient(135deg, rgba(0,0,0,0.25) 0 14px, rgba(0,0,0,0.45) 14px 28px),
    var(--grad-blue-aqua);
}
.media--deep .media__placeholder {
  background:
    repeating-linear-gradient(135deg, rgba(0,0,0,0.45) 0 14px, rgba(0,0,0,0.65) 14px 28px),
    linear-gradient(135deg, #002a80 0%, #9d8dff 100%);
}

/* ----- Tile (work card) ----- */
.tile {
  position: relative;
  display: block;
  overflow: hidden;
  background: #0a0a0a;
  aspect-ratio: 4/3;
  border: 1px solid var(--hairline);
  transition: border-color 0.3s ease;
}
.tile:hover { border-color: var(--hairline-strong); }
.tile__media { position: absolute; inset: 0; overflow: hidden; }
.tile__thumb,
.tile__video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.tile__video {
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.tile:hover .tile__video { opacity: 1; }
.tile:hover .tile__thumb { opacity: 0; }
.tile__thumb { transition: opacity 0.3s ease; }
.tile__overlay {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 22px;
  background: linear-gradient(180deg, rgba(0,0,0,0.0) 50%, rgba(0,0,0,0.85) 100%);
  z-index: 2;
}
.tile__top {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 12px;
}
.tile__chip {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: rgba(0,0,0,0.55);
  border: 1px solid var(--hairline);
  padding: 6px 10px;
}
.tile__bottom {
  display: flex; justify-content: space-between; align-items: end; gap: 16px;
}
.tile__title {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(22px, 2.4vw, 32px);
  line-height: 1;
  letter-spacing: -0.02em;
}
.tile__meta {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gray-light);
  margin-top: 8px;
}
/* ----- Stats ----- */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}
.stats__item {
  padding: clamp(36px, 5vw, 64px) clamp(20px, 3vw, 40px);
  border-right: 1px solid var(--hairline);
}
.stats__item:last-child { border-right: none; }
.stats__num {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(60px, 9vw, 160px);
  line-height: 0.85;
  letter-spacing: -0.04em;
  color: var(--white);
}
.stats__num em {
  font-style: normal;
  background: none;
  -webkit-text-fill-color: var(--fg);
  color: var(--fg);
}
.stats__label {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gray-dark);
  margin-top: 18px;
}
@media (max-width: 760px) {
  .stats { grid-template-columns: 1fr; }
  .stats__item { border-right: none; border-bottom: 1px solid var(--hairline); }
  .stats__item:last-child { border-bottom: none; }
}

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

/* ----- Page-load entry ----- */
@keyframes rise {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: none; }
}
.rise { animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.rise-delay-1 { animation-delay: 0.1s; }
.rise-delay-2 { animation-delay: 0.2s; }
.rise-delay-3 { animation-delay: 0.3s; }
.rise-delay-4 { animation-delay: 0.4s; }
