/* ============================================================
   components.css — single source of truth shared across all pages
   Tokens · base reset · top nav · buttons · cinematic footer
   ============================================================ */

:root {
  /* Type SCALE + spacing tokens live in tokens.css now (single source of truth).
     This block only owns easing, font-families, weights, and content widths. */
  --ease:       cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out:   cubic-bezier(0.22, 1, 0.36, 1);

  --ff-display: 'Outfit', system-ui, sans-serif;
  --ff-sans:    'Space Grotesk', system-ui, sans-serif;
  --ff-mono:    ui-monospace, 'SF Mono', Menlo, monospace;

  /* legacy alias kept for older inline styles */
  --fs-eyebrow:  11px;
  --fs-body-sm:  14px;

  --fw-regular: 400;
  --fw-medium:  500;
  --fw-bold:    700;

  --w-narrow:  640px;
  --w-content: var(--container-max);
  --w-wide:    var(--container-max);
  --w-bleed:   1440px;
}


*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: clip; }

/* ─── Global typography rhythm ────────────────────────────
   Element-level defaults so any page that doesn't override
   gets correct sizes + margin-below for the heading. Headings
   use the responsive --fs-* tokens (clamp), so they shrink
   on small viewports; the spacing below them uses tokens
   that also step down at the @media breakpoints in tokens.css.
   Components that need custom heading styles can override —
   these are sensible defaults, not commandments. */
h1, .h1 { font-size: var(--fs-h1); line-height: 1.05; letter-spacing: -0.03em; font-family: var(--ff-display); font-weight: var(--fw-bold); }
h2, .h2 { font-size: var(--fs-h2); line-height: 1.1;  letter-spacing: -0.02em; font-family: var(--ff-display); font-weight: var(--fw-bold); }
h3, .h3 { font-size: var(--fs-h3); line-height: 1.2;  letter-spacing: -0.01em; font-family: var(--ff-display); font-weight: var(--fw-bold); }
h4, .h4 { font-size: var(--fs-h4); line-height: 1.3;  font-family: var(--ff-display); font-weight: var(--fw-medium); }

/* default vertical rhythm — only when followed by text content */
h1 + p, h2 + p, h3 + p, h4 + p { margin-top: var(--gap-title-desc); }
h2 + .grid, h2 + ul, h2 + ol { margin-top: var(--gap-title-grid); }
p + p { margin-top: var(--gap-paragraph); }

/* ─── Container utility (OPT-IN) ──────────────────────────
   Apply .container to a content wrapper INSIDE a section to
   constrain text columns to max-width with consistent edge
   padding. Sections themselves stay full-bleed by default
   so backgrounds, gradients, blobs, and asymmetric compositions
   render edge-to-edge without being centered into a box. */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--pad-section-x);
}

/* ─── Section vertical rhythm (default, padding-block only) ──
   Vertical breathing only — no horizontal constraint. Tokens
   step 96 → 72 → 56 with viewport. Sections that own their
   own rhythm (hero, gm-section, sticky-cards) opt out below. */
main > section,
main > article { padding-block: var(--gap-section); }
main > section:first-child,
main > article:first-child { padding-top: var(--gap-section-hero); }

/* opt-outs — sections that own their vertical rhythm.
   #hero is intentionally NOT in this list — every page that has a
   #hero defines its own top/bottom padding (landing uses 120/80
   with flex centering, case-study uses 240/120 for cinematic
   editorial breathing room). Zeroing block-padding here would
   override those values and pull the eyebrow up under the nav. */
main > section.gm-section,
main > .sticky-cards,
.sticky-cards { padding-block: 0; }

body {
  font-family: var(--ff-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
em { font-style: normal; }
img { display: block; max-width: 100%; height: auto; }


/* ── Scroll progress + reveal ───────────────────────── */
#progress {
  position: fixed; top: 0; left: 0; z-index: 300;
  height: 2px; width: 0%; background: var(--accent);
  transition: width .04s linear; pointer-events: none;
}

.reveal { transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-pending { opacity: 0; transform: translateY(28px); }
.reveal.visible    { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }
.reveal-delay-4 { transition-delay: .4s; }

/* ─── Top Nav — verbatim port from direction 1/index.html ─── */
/* ─── Nav ─────────────────────────────────────────── */
header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  display: flex; justify-content: center; align-items: center;
  /* outer padding matches --pad-section-x so the pill edges line up
     with the content container under it across breakpoints */
  padding: 28px var(--pad-section-x) 0;
  transition: padding .5s var(--ease);
  transform: translateY(-100%);
  animation: navIn .6s var(--ease) .2s forwards;
}
@keyframes navIn { to { transform: translateY(0); } }

/* The pill — transparent at top of page, glass when scrolled */
.nav-inner {
  width: 100%; max-width: var(--container-max); position: relative;
  display: flex; align-items: center; justify-content: space-between;
  border-radius: var(--r-full);
  padding: 8px 8px 8px 20px;
  background: transparent;
  border: 1px solid transparent;
  backdrop-filter: blur(0) saturate(100%);
  -webkit-backdrop-filter: blur(0) saturate(100%);
  box-shadow: 0 0 0 0 rgba(0,0,0,0);
  transition: background .55s var(--ease),
              border-color .55s var(--ease),
              padding .4s var(--ease),
              backdrop-filter .55s var(--ease),
              -webkit-backdrop-filter .55s var(--ease),
              box-shadow .55s var(--ease),
              color .45s var(--ease);
}
header.scrolled { padding: 14px 16px; }
header.scrolled .nav-inner {
  background:
    linear-gradient(145deg,
      rgba(255,255,255,0.10) 0%,
      rgba(255,255,255,0.05) 100%);
  backdrop-filter: blur(32px) saturate(180%);
  -webkit-backdrop-filter: blur(32px) saturate(180%);
  border-color: rgba(255,255,255,0.15);
  box-shadow:
    0 6px 20px -8px rgba(0,0,0,0.50),
    inset 0 1px 1px rgba(255,255,255,0.15);
}
/* ─── Nav LIGHT mode ─── */
header.nav-light .nav-inner {
  background: transparent;
  border-color: transparent;
  box-shadow: 0 0 0 0 rgba(0,0,0,0);
}
header.nav-light.scrolled .nav-inner {
  background:
    linear-gradient(145deg,
      rgba(255,255,255,0.85) 0%,
      rgba(255,255,255,0.50) 100%);
  border-color: rgba(0,0,0,0.10);
  box-shadow:
    0 6px 20px -8px rgba(0,0,0,0.20),
    inset 0 1px 1px rgba(255,255,255,0.50);
}
header.nav-light .nav-links a,
header.nav-light .nav-logo,
header.nav-light .nav-logo .logo,
header.nav-light .nav-logo-icon { color: #131518 !important; }
header.nav-light .nav-logo .logo em { color: var(--accent-deep, #C58F00) !important; }
header.nav-light .nav-links a::before,
header.nav-light .nav-links a::after { background: #131518 !important; }
header.nav-light .nav-cta {
  background: #131518 !important;
  color: #F5F5F5 !important;
  border-color: #131518 !important;
}

/* Logo — default LIGHT (nav lives over dark sections by default).
   Light pages with dark heroes get the right contrast for free.
   `header.nav-light` flips these dark for over-light sections. */
.nav-logo { display: flex; align-items: center; gap: 9px; flex-shrink: 0; }
.nav-logo-icon {
  width: 26px; height: 26px; flex-shrink: 0; color: #FAFAFA;
  transition: transform .4s var(--ease);
}
.nav-logo:hover .nav-logo-icon { transform: rotate(12deg); }
.logo {
  font-family: 'Outfit', sans-serif;
  font-size: 20px; font-weight: 700;
  color: #FAFAFA; letter-spacing: -.2px;
}
.logo em { font-style: normal; color: var(--accent, #F7BE14); }

/* Links — absolutely centered inside the pill */
.nav-links-wrap { position: absolute; left: 50%; transform: translateX(-50%); }
.nav-links { display: flex; align-items: center; gap: 36px; list-style: none; }
.nav-links a {
  font-size: 14px; font-weight: 500;
  color: rgba(255,255,255,0.50); transition: color .22s; white-space: nowrap;
}
.nav-links a:hover, .nav-links a.active { color: #FFFFFF; }

/* CTA */
.nav-cta {
  display: inline-flex; align-items: center;
  font-size: 13px; font-weight: 700;
  background: var(--text); color: var(--text-inv);
  border-radius: var(--r-full); padding: 10px 22px; flex-shrink: 0;
  transition: background .22s, transform .2s var(--ease), box-shadow .22s;
}
.nav-cta:hover {
  background: var(--accent); transform: translateY(-2px);
  box-shadow: 0 6px 24px var(--accent-glow);
}

/* Mobile hamburger */
.nav-hamburger {
  display: none; flex-direction: column; gap: 5px;
  padding: 8px; cursor: pointer;
  position: relative; z-index: 10001;
}
.nav-hamburger span {
  display: block; width: 22px; height: 1.5px;
  background: rgba(255,255,255,0.50); border-radius: 4px;
  transition: transform .35s cubic-bezier(.22,1,.36,1),
              opacity .25s ease,
              background .25s ease;
  transform-origin: center;
}
header.nav-light .nav-hamburger span { background: #131518; }
.nav-hamburger.is-active span { background: #FAFAFA; }
.nav-hamburger.is-active span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-hamburger.is-active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.is-active span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

@media (max-width: 820px) {
  .nav-links-wrap { display: none; }
  .nav-hamburger { display: flex; }
  .nav-cta { display: none !important; }   /* no Hire Me on mobile — menu covers nav */
}

/* ─── Mobile staggered menu (built dynamically by common.js) ─── */
#mobile-menu {
  position: fixed; inset: 0; z-index: 9998;
  pointer-events: none; visibility: hidden;
}
#mobile-menu.is-open { pointer-events: auto; visibility: visible; }

.mm-backdrop {
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(247,190,20,0.10) 0%, transparent 60%),
    linear-gradient(160deg, #0A0B0C 0%, #131518 55%, #1A1A1A 100%);
  clip-path: inset(0 0 0 100%);
  transition: clip-path 720ms cubic-bezier(0.86, 0, 0.07, 1);
  will-change: clip-path;
}
#mobile-menu.is-open .mm-backdrop { clip-path: inset(0); }

.mm-panel {
  position: relative;
  display: flex; flex-direction: column;
  width: 100%; height: 100dvh;
  padding: 20px 24px 32px;
  color: #FAFAFA;
}

.mm-header {
  display: flex; align-items: center; justify-content: space-between;
  height: 56px;
  opacity: 0; transform: translateY(-8px);
  transition: opacity .4s ease .15s, transform .4s ease .15s;
}
#mobile-menu.is-open .mm-header { opacity: 1; transform: translateY(0); }
.mm-label {
  font-family: var(--ff-sans, 'Inter', sans-serif);
  font-size: 11px; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase;
  color: rgba(255,255,255,0.50);
}

.mm-nav {
  flex: 1;
  display: flex; flex-direction: column; justify-content: center;
  margin-top: 24px;
}
.mm-nav ul { list-style: none; padding: 0; margin: 0; }
.mm-nav li {
  overflow: hidden;
  border-bottom: 1px solid rgba(255,255,255,0.10);
}
.mm-nav li:last-child { border-bottom: none; }
.mm-nav a {
  display: flex; align-items: baseline; gap: 18px;
  padding: 18px 0;
  text-decoration: none; color: inherit;
  font-family: var(--ff-display, 'Outfit', sans-serif);
  font-size: clamp(34px, 9vw, 56px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
  transform: translateY(105%);
  transition: transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: 0ms;
}
#mobile-menu.is-open .mm-nav a { transform: translateY(0); }
#mobile-menu.is-open .mm-nav li:nth-child(1) a { transition-delay: 280ms; }
#mobile-menu.is-open .mm-nav li:nth-child(2) a { transition-delay: 340ms; }
#mobile-menu.is-open .mm-nav li:nth-child(3) a { transition-delay: 400ms; }
#mobile-menu.is-open .mm-nav li:nth-child(4) a { transition-delay: 460ms; }
#mobile-menu.is-open .mm-nav li:nth-child(5) a { transition-delay: 520ms; }
#mobile-menu.is-open .mm-nav li:nth-child(6) a { transition-delay: 580ms; }

.mm-num {
  font-size: 0.32em;
  font-weight: 400;
  letter-spacing: 0.05em;
  color: #F7BE14;
  font-family: var(--ff-sans, 'Inter', sans-serif);
  align-self: flex-start;
  margin-top: 0.2em;
}
.mm-text { display: inline-block; }
.mm-arrow {
  margin-left: auto;
  font-size: 0.6em;
  color: #F7BE14;
  transition: transform .25s ease;
}
.mm-nav li.mm-cta a { color: #F7BE14; }
.mm-nav li.mm-cta a:hover .mm-arrow,
.mm-nav li.mm-cta a:active .mm-arrow { transform: translateX(6px); }

.mm-footer {
  display: flex; justify-content: space-between;
  padding-top: 20px;
  font-family: var(--ff-sans, 'Inter', sans-serif);
  font-size: 12px; font-weight: 500;
  color: rgba(255,255,255,0.50);
  opacity: 0;
  transition: opacity .4s ease .7s;
}
#mobile-menu.is-open .mm-footer { opacity: 1; }

@media (min-width: 821px) { #mobile-menu { display: none; } }
@media (prefers-reduced-motion: reduce) {
  .mm-backdrop, .mm-nav a, .mm-header, .mm-footer {
    transition-duration: .15s !important;
    transition-delay: 0s !important;
  }
}

/* When the menu is open, lift the nav above the overlay so the
   hamburger (morphed to X) is still clickable. Hide the pill bg
   so only the X reads against the dark menu backdrop. */
body.menu-open #nav { z-index: 10000; }
body.menu-open #nav .nav-inner {
  background: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
}
body.menu-open .logo,
body.menu-open .nav-logo-icon,
body.menu-open .nav-cta { visibility: hidden; pointer-events: none; }


/* ─── Unified Button System ──────────────────────────
   .btn          — base. arrow auto-rendered via ::after, magnetic via JS.
   .btn-ghost    — outlined, secondary
   .btn-sm       — compact
   .btn[data-bg="<color>"] — override background per usage
   .btn[data-fg="<color>"] — override text color per usage
   ────────────────────────────────────────────────────
   Magnetic offset is driven by --mag-x / --mag-y custom properties
   (set by setupMagneticButtons in common.js on hover-capable devices).
   Hover lift composes with magnetic via translate() chain. */
.btn,
.btn-primary,
.btn-ghost {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--ff-sans);
  font-size: 13px; font-weight: 700;
  padding: 13px 26px; border-radius: var(--r-full);
  border: 1px solid transparent;
  background: var(--btn-bg, var(--text));
  color:      var(--btn-fg, var(--text-inv));
  text-decoration: none;
  cursor: pointer; white-space: nowrap;
  --mag-x: 0px; --mag-y: 0px;
  transform: translate(var(--mag-x), var(--mag-y));
  transition: background .25s, color .25s, border-color .25s,
              transform .45s cubic-bezier(.22,1,.36,1),
              box-shadow .25s;
}
.btn::after,
.btn-primary::after {
  content: '';
  width: 14px; height: 14px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'><path d='M5 12h14M12 5l7 7-7 7'/></svg>") center/contain no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'><path d='M5 12h14M12 5l7 7-7 7'/></svg>") center/contain no-repeat;
  transition: transform .25s cubic-bezier(.22,1,.36,1);
}
.btn:hover,
.btn-primary:hover {
  background: var(--btn-bg-hover, var(--btn-bg, var(--accent)));
  color:      var(--btn-fg-hover, var(--btn-fg, #131518));
  transform:  translate(var(--mag-x), calc(var(--mag-y) - 2px));
  box-shadow: 0 8px 32px var(--btn-glow, var(--accent-glow));
}
.btn:hover::after,
.btn-primary:hover::after { transform: translateX(4px); }

/* Strip any author-supplied SVG/icons — the ::after arrow is canonical */
.btn > svg, .btn > i, .btn-primary > svg, .btn-primary > i { display: none; }

.btn-ghost {
  font-weight: 600;
  background: transparent;
  color: var(--btn-fg, var(--text));
  /* hardcoded: --border-hi is overridden to 10% on the dark homepage tokens,
     too faint for a CTA — keep ghost outline a stable, readable 45% white. */
  border-color: rgba(255, 255, 255, 0.45);
}
.btn-ghost::after {
  content: '';
  width: 14px; height: 14px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'><path d='M5 12h14M12 5l7 7-7 7'/></svg>") center/contain no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'><path d='M5 12h14M12 5l7 7-7 7'/></svg>") center/contain no-repeat;
  transition: transform .25s cubic-bezier(.22,1,.36,1);
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--text);
  transform: translate(var(--mag-x), calc(var(--mag-y) - 1px));
}
.btn-ghost:hover::after { transform: translateX(4px); }
.btn-ghost > svg, .btn-ghost > i { display: none; }

.btn-sm { padding: 8px 18px; font-size: 12px; }


/* ─── Custom cursor (shared across every page) ─────────────
   Dot + ring tracked by common.js → setupCustomCursor.
   Hidden on touch devices via the (pointer: fine) guard. */
@media (pointer: fine) {
  html.has-custom-cursor,
  html.has-custom-cursor body,
  html.has-custom-cursor * { cursor: none !important; }

  .cursor-dot {
    position: fixed; top: 0; left: 0; z-index: 99999;
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--accent);
    pointer-events: none;
    transform: translate(-50%, -50%);
    transition: width .25s cubic-bezier(.22,1,.36,1),
                height .25s cubic-bezier(.22,1,.36,1),
                background .25s, opacity .3s;
    will-change: transform;
  }
  .cursor-ring {
    position: fixed; top: 0; left: 0; z-index: 99998;
    width: 36px; height: 36px;
    border-radius: 50%;
    border: 1px solid color-mix(in oklch, var(--accent) 50%, transparent);
    pointer-events: none;
    transform: translate(-50%, -50%);
    transition: width .4s cubic-bezier(.22,1,.36,1),
                height .4s cubic-bezier(.22,1,.36,1),
                border-color .25s, opacity .3s;
    will-change: transform;
  }
  .cursor-dot.is-hovering  { width: 48px; height: 48px; background: var(--accent); opacity: .12; }
  .cursor-ring.is-hovering { width: 56px; height: 56px; border-color: color-mix(in oklch, var(--accent) 70%, transparent); }
  .cursor-dot.is-clicking  { width: 6px;  height: 6px;  }
  .cursor-ring.is-clicking { width: 28px; height: 28px; }
}


/* EA brand logo size — single source of truth across landing's gm-arch
   project card, work's gm-arch project card, and every design-system
   slide on the case study. Override individual inline widths so the
   logo looks identical everywhere it appears. */
:root { --ea-logo-size: 200px; }
.gm-img-wrapper--brand img[alt*="Emirates"] {
  width: var(--ea-logo-size) !important;
  max-width: var(--ea-logo-size) !important;
  height: auto !important;
}

/* ─── Gridmorphic scroll cycle (gm-arch, shared) ──────────
   Left text panels + pinned right image stack. As the user
   scrolls, each card "owns" the viewport while its paired
   image stays pinned; on scroll-out, the section bg cycles
   and the image clip-paths out to reveal the next one.
   JS lives in assets/common.js → setupGridmorphic(). */
.gm-section {
  background-color: #f9ffe7;
  color: #131518;
  font-family: var(--ff-display);
  transition: background-color 0.3s ease;
  overflow: hidden;
  position: relative;
  z-index: 1;
}
.gm-container {
  max-width: var(--container-max);
  padding-inline: var(--pad-section-x);   /* aligns with logo + every other section */
  padding-block: 2rem;
  margin: 0 auto;
}
.gm-spacer { width: 100%; height: 100px; }
.gm-arch {
  /* Grid gives the LEFT panel a wider, predictable width so titles like
     "Emirates Auction" fit on one line at desktop H2 sizes. */
  display: grid;
  grid-template-columns: minmax(440px, 520px) 1fr;
  gap: 60px;
}
.gm-arch__left {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.gm-arch__left .gm-arch__info {
  max-width: 520px;     /* widened from 356 so h2 doesn't wrap */
  height: 100vh;
  display: grid;
  place-items: center;
}
.gm-arch__left .gm-arch__info h2.gm-header {
  font-family: var(--ff-display);
  font-size: var(--fs-h2);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0;
  color: #131518;
  white-space: nowrap;   /* keep brand name on one line where it fits */
}
.gm-arch__left .gm-arch__info p.gm-desc {
  font-family: var(--ff-sans);
  color: rgba(18, 18, 18, 0.8);
  font-size: var(--fs-body-lg);
  letter-spacing: -0.3px;
  margin: var(--gap-card-title) 0 var(--gap-card-cta);  /* 12 title→desc · 24/16 desc→cta */
  line-height: 1.55;
}
.gm-arch__left .gm-arch__info a.gm-link { width: fit-content; }
.gm-arch__right {
  flex-shrink: 1;
  height: 100vh;
  width: 100%;
  min-width: 0;
  position: relative;
  display: flex;
  flex-direction: column;
}
/* All wrappers share the SAME visual dimensions on desktop so the
   clip-path crossfade between them is clean (different sizes here
   would leave fragments of the larger images sticking out above/
   below the smaller ones). The "wide vs square" hierarchy comes
   from the FRAME aspect ratio, applied uniformly to every wrapper. */
.gm-arch__right .gm-img-wrapper {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  width: 100%;
  aspect-ratio: 4 / 3;           /* photo-card frame, uniform across all covers */
  max-height: 80vh;
  border-radius: 16px;
  overflow: hidden;
}
.gm-arch__right .gm-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
/* --contain variant: 4:3 wrapper that matches the cover photo aspect so
   the image fills the frame without letterbox bars. NO wrapper background:
   the gridmorphic clip-reveal needs upper layers to be see-through once
   their image clips out, otherwise lower z-index covers stay masked. */
.gm-arch__right .gm-img-wrapper.gm-img-wrapper--contain {
  aspect-ratio: 4 / 3;
}
.gm-arch__right .gm-img-wrapper.gm-img-wrapper--contain img { object-fit: cover; }
.gm-content { width: 100%; }

/* ─── Confidential project gate (masked until unlocked) ───
   .is-gated blurs the project name + cover until the visitor
   unlocks the case study. JS strips .is-gated once unlocked. */
.gm-header.is-gated,
.gm-desc.is-gated {
  filter: blur(10px);
  user-select: none;
  -webkit-user-select: none;
  pointer-events: none;
}
.gm-header.is-gated { filter: blur(12px); }
.gm-img-wrapper.is-gated img { filter: blur(26px) saturate(0.7); transform: scale(1.12); }
.gm-img-wrapper.is-gated::after {
  content: "";
  position: absolute; inset: 0;
  background: rgba(10,11,12,0.34);
  z-index: 1;
}
.gm-img-wrapper.is-gated .gm-lock {
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; text-align: center; padding: 24px;
  color: #fff;
}
.gm-img-wrapper:not(.is-gated) .gm-lock { display: none; }
.gm-lock svg { width: 30px; height: 30px; stroke: #fff; fill: none; stroke-width: 1.6; opacity: .92; }
.gm-lock span {
  font-family: var(--ff-sans);
  font-size: 11px; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase;
  color: rgba(255,255,255,0.82);
}

/* Tablet — keep two columns but a touch tighter, same 16/9 frame */
@media (max-width: 900px) {
  .gm-arch {
    grid-template-columns: minmax(360px, 440px) 1fr;
    gap: 32px;
  }
  .gm-arch__left .gm-arch__info h2.gm-header { white-space: normal; }
}

/* ── Mobile gm-arch ─────────────────────────────────────
   Editorial card rhythm: tight INSIDE, generous BETWEEN.
   Per-pair (image + content) is one visual card. The flex
   gap is zero — we use margin-bottom on the image (tight,
   16) and on the content (large, ~80) so the gap between
   cards is the page's "breathe" while the image stays
   close to its own title.

   EA brand wrapper keeps a cinematic 16/7 aspect ratio
   so the cover dominates. Photo wrappers use a calmer 16/10. */
/* ── Mobile gm-arch ─────────────────────────────────────
   Single column. Image stays cinematic (4/3 landscape — not
   portrait). Internal rhythm: image→title 24 · title→desc 12
   · desc→cta 16. Card→card gap stays generous via the
   info's margin-bottom (managed below the flex gap). */
@media (max-width: 768px) {
  .gm-arch {
    display: flex;
    flex-direction: column;
    gap: 0;
  }
  .gm-arch__left,
  .gm-arch__right { display: contents; }
  .gm-arch__right {
    height: auto;
    max-width: 100%;
  }

  /* Image wrapper — square keeps the editorial grid rhythm consistent.
     position: relative is load-bearing: the gated ::after dim layer and
     the .gm-lock both use inset:0 absolute; without a positioned wrapper
     they fall back to .gm-section as their containing block and cover
     every card + button below them. */
  .gm-arch__right .gm-img-wrapper {
    position: relative;
    transform: none;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    max-height: none;
    margin: 0 0 var(--s-5) 0;            /* 24 — image → title (spec) */
  }
  .gm-arch__right .gm-img-wrapper img { height: 100%; }

  /* EA cover — landscape 4/3 so it stays visually dominant */
  .gm-arch__right .gm-img-wrapper--brand {
    aspect-ratio: 4 / 3;
    padding: 0;
  }
  .gm-arch__right .gm-img-wrapper--brand img { height: auto; }

  /* --contain on mobile: photo's own aspect (4:3) so nothing is cropped */
  .gm-arch__right .gm-img-wrapper.gm-img-wrapper--contain {
    aspect-ratio: 4 / 3;
  }
  .gm-arch__right .gm-img-wrapper.gm-img-wrapper--contain img { height: auto; width: 100%; }

  /* Card content block — full width, large gap to next card. */
  .gm-arch__left .gm-arch__info {
    height: auto;
    padding-top: 0;
    padding-bottom: 0;
    padding-inline: 0;
    max-width: 100%;
    width: 100%;
    margin: 0 0 var(--s-9) 0;            /* 96 — card → next card (generous) */
  }
  .gm-arch__left .gm-arch__info:last-of-type { margin-bottom: 0; }

  /* Internal text rhythm — 12 title→desc · 16 desc→cta per spec */
  .gm-arch__left .gm-arch__info p.gm-desc {
    max-width: 100%;
    margin: var(--s-3) 0 var(--s-4) 0;   /* 12 · 16 */
  }
}
@media (max-width: 600px) {
  .gm-arch__right .gm-img-wrapper { border-radius: 12px; }
  .gm-arch__left .gm-arch__info {
    margin-bottom: var(--s-8);            /* 64 — still generous, fits phone */
  }
}


/* ─── Cinematic Footer ─────────────────────────────────────
   1:1 port of 21st.dev/easemize/motion-footer.
   Two layers:
     .cinematic-footer-curtain   outer wrapper, h:100vh, in-flow.
                                 clip-path makes it a containing block
                                 for the fixed footer below — that's the
                                 curtain reveal (the fixed footer only
                                 paints inside the curtain's bounding box).
     .cinematic-footer-wrapper   the footer itself: fixed; bottom:0;
                                 h:100vh; full width. Aurora + grid +
                                 giant text + marquee + content + bottom.
   Theme-locked dark — independent of page tokens so it looks identical
   on light pages (certificates) and dark pages. */
.cinematic-footer-curtain {
  position: relative;
  width: 100%;
  height: 100vh;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}

.cinematic-footer-wrapper {
  --ft-bg:           #0a0a0a;
  --ft-fg:           #fafaf9;
  --ft-muted:        rgba(250,250,249,0.55);
  --ft-border:       rgba(250,250,249,0.08);
  --ft-primary:      #F7BE14;
  --ft-secondary:    #FFD84D;
  --ft-destructive:  #f87171;

  --pill-bg-1:           color-mix(in oklch, var(--ft-fg) 3%, transparent);
  --pill-bg-2:           color-mix(in oklch, var(--ft-fg) 1%, transparent);
  --pill-border:         color-mix(in oklch, var(--ft-fg) 8%, transparent);
  --pill-highlight:      color-mix(in oklch, var(--ft-fg) 10%, transparent);
  --pill-shadow:         color-mix(in oklch, var(--ft-bg) 50%, transparent);
  --pill-inset-shadow:   color-mix(in oklch, var(--ft-bg) 80%, transparent);

  --pill-bg-1-hover:     color-mix(in oklch, var(--ft-fg) 8%, transparent);
  --pill-bg-2-hover:     color-mix(in oklch, var(--ft-fg) 2%, transparent);
  --pill-border-hover:   color-mix(in oklch, var(--ft-fg) 20%, transparent);
  --pill-highlight-hover:color-mix(in oklch, var(--ft-fg) 20%, transparent);
  --pill-shadow-hover:   color-mix(in oklch, var(--ft-bg) 70%, transparent);

  position: fixed; bottom: 0; left: 0;
  width: 100%; height: 100vh;
  display: flex; flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  background: var(--ft-bg);
  color: var(--ft-fg);
  font-family: 'Plus Jakarta Sans', sans-serif;
  -webkit-font-smoothing: antialiased;
}

@keyframes footer-breathe {
  0%   { transform: translate(-50%, -50%) scale(1);   opacity: .6; }
  100% { transform: translate(-50%, -50%) scale(1.1); opacity: 1; }
}
@keyframes footer-scroll-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@keyframes footer-heartbeat {
  0%, 100% { transform: scale(1);
             filter: drop-shadow(0 0 5px  color-mix(in oklch, var(--ft-destructive) 50%, transparent)); }
  15%, 45% { transform: scale(1.2);
             filter: drop-shadow(0 0 10px color-mix(in oklch, var(--ft-destructive) 80%, transparent)); }
  30%      { transform: scale(1); }
}
.animate-footer-breathe        { animation: footer-breathe 8s ease-in-out infinite alternate; }
.animate-footer-scroll-marquee { animation: footer-scroll-marquee 40s linear infinite; }
.animate-footer-heartbeat      { animation: footer-heartbeat 2s cubic-bezier(.25,1,.5,1) infinite; }

.footer-aurora {
  position: absolute;
  left: 50%; top: 50%;
  width: 80vw; height: 60vh;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(circle at 50% 50%,
    color-mix(in oklch, var(--ft-primary)   15%, transparent) 0%,
    color-mix(in oklch, var(--ft-secondary) 15%, transparent) 40%,
    transparent 70%);
}

.footer-bg-grid {
  position: absolute; inset: 0;
  pointer-events: none;
  z-index: 0;
  background-size: 60px 60px;
  background-image:
    linear-gradient(to right,  color-mix(in oklch, var(--ft-fg) 3%, transparent) 1px, transparent 1px),
    linear-gradient(to bottom, color-mix(in oklch, var(--ft-fg) 3%, transparent) 1px, transparent 1px);
  mask-image: linear-gradient(to bottom, transparent, black 30%, black 70%, transparent);
  -webkit-mask-image: linear-gradient(to bottom, transparent, black 30%, black 70%, transparent);
}

.footer-giant-bg-text {
  position: absolute;
  bottom: -5vh;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  z-index: 0;
  font-size: 26vw;
  line-height: 0.75;
  font-weight: 900;
  letter-spacing: -0.05em;
  color: transparent;
  -webkit-text-stroke: 1px color-mix(in oklch, var(--ft-fg) 5%, transparent);
  background: linear-gradient(180deg, color-mix(in oklch, var(--ft-fg) 10%, transparent) 0%, transparent 60%);
  -webkit-background-clip: text;
          background-clip: text;
}

.footer-marquee-strip {
  position: absolute;
  top: 48px; left: 0; right: 0;
  overflow: hidden;
  border-top:    1px solid var(--ft-border);
  border-bottom: 1px solid var(--ft-border);
  background: color-mix(in oklch, var(--ft-bg) 60%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 16px 0;
  z-index: 10;
  transform: rotate(-2deg) scale(1.1);
  box-shadow: 0 8px 40px color-mix(in oklch, var(--ft-bg) 50%, transparent);
}
.footer-marquee-track {
  display: flex; width: max-content;
}
.footer-marquee-item {
  display: inline-flex; align-items: center; gap: 48px;
  padding: 0 24px;
  white-space: nowrap;
  font-size: 13px; font-weight: 700;
  letter-spacing: .3em; text-transform: uppercase;
  color: var(--ft-muted);
}
.footer-marquee-sep--a { color: color-mix(in oklch, var(--ft-primary)   60%, transparent); }
.footer-marquee-sep--b { color: color-mix(in oklch, var(--ft-secondary) 60%, transparent); }

.footer-center {
  position: relative; z-index: 10;
  flex: 1;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 0 24px;
  max-width: 1280px;
  margin: 80px auto 0;
  width: 100%;
}
.footer-cta-heading {
  font-size: clamp(48px, 9vw, 128px);
  font-weight: 900;
  letter-spacing: -.04em;
  line-height: 1;
  text-align: center;
  margin: 0 0 48px;
  background: linear-gradient(180deg, var(--ft-fg) 0%, color-mix(in oklch, var(--ft-fg) 40%, transparent) 100%);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 20px color-mix(in oklch, var(--ft-fg) 15%, transparent));
}
.footer-cta-heading em {
  font-style: normal;
  background: linear-gradient(180deg, var(--ft-primary) 0%, color-mix(in oklch, var(--ft-primary) 35%, transparent) 100%);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
}
.footer-buttons {
  display: flex; flex-direction: column;
  align-items: center;
  gap: 24px;
  width: 100%;
}
html.footer-anim-pending .footer-cta-heading,
html.footer-anim-pending .footer-buttons {
  opacity: 0;
  transform: translateY(50px);
}
html.footer-anim-pending .footer-giant-bg-text {
  opacity: 0;
  transform: translateX(-50%) translateY(10vh) scale(0.8);
}
.footer-pills-primary {
  display: flex; flex-wrap: wrap;
  justify-content: center;
  gap: 16px; width: 100%;
}
.footer-pills-secondary {
  display: flex; flex-wrap: wrap;
  justify-content: center;
  gap: 12px; width: 100%;
  margin-top: 8px;
}

.footer-glass-pill {
  display: inline-flex; align-items: center; gap: 12px;
  border-radius: 9999px;
  text-decoration: none;
  color: var(--ft-fg);
  background: linear-gradient(145deg, var(--pill-bg-1) 0%, var(--pill-bg-2) 100%);
  box-shadow:
    0 10px 30px -10px var(--pill-shadow),
    inset 0 1px 1px var(--pill-highlight),
    inset 0 -1px 2px var(--pill-inset-shadow);
  border: 1px solid var(--pill-border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: background .4s cubic-bezier(.16,1,.3,1),
              border-color .4s cubic-bezier(.16,1,.3,1),
              box-shadow .4s cubic-bezier(.16,1,.3,1),
              color .4s cubic-bezier(.16,1,.3,1);
  cursor: pointer;
  will-change: transform;
}
.footer-glass-pill:hover {
  background: linear-gradient(145deg, var(--pill-bg-1-hover) 0%, var(--pill-bg-2-hover) 100%);
  border-color: var(--pill-border-hover);
  box-shadow:
    0 20px 40px -10px var(--pill-shadow-hover),
    inset 0 1px 1px var(--pill-highlight-hover);
  color: var(--ft-fg);
}
.footer-glass-pill svg {
  width: 22px; height: 22px;
  color: var(--ft-muted);
  transition: color .4s cubic-bezier(.16,1,.3,1);
}
.footer-glass-pill:hover svg { color: var(--ft-fg); }
.footer-pills-secondary .footer-glass-pill svg { width: 15px; height: 15px; }

.footer-glass-pill--primary {
  padding: 20px 40px;
  font-size: 15px;
  font-weight: 700;
}
.footer-glass-pill--sm {
  padding: 12px 24px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ft-muted);
}
.footer-glass-pill--sm:hover { color: var(--ft-fg); }

.footer-bottom-bar {
  position: relative; z-index: 20;
  width: 100%;
  padding: 32px 48px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}
.footer-bottom-bar .footer-copy       { justify-self: start;  }
.footer-bottom-bar .footer-craft-pill { justify-self: center; }
.footer-bottom-bar .footer-scroll-top { justify-self: end;    }
.footer-copy {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--ft-muted);
}
.footer-craft-pill {
  padding: 12px 24px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--ft-muted);
  cursor: default;
}
.footer-craft-pill .heart {
  color: var(--ft-destructive);
  font-size: 14px;
  display: inline-block;
}
.footer-craft-pill .footer-craft-name {
  color: var(--ft-fg);
  font-weight: 900;
  letter-spacing: 0;
  text-transform: none;
  font-size: 13px;
  margin-left: 4px;
}
.footer-scroll-top {
  width: 48px; height: 48px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--ft-muted);
  background: linear-gradient(145deg, var(--pill-bg-1) 0%, var(--pill-bg-2) 100%);
  border: 1px solid var(--pill-border);
  box-shadow:
    0 10px 30px -10px var(--pill-shadow),
    inset 0 1px 1px var(--pill-highlight);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  cursor: pointer;
  transition: background .4s cubic-bezier(.16,1,.3,1),
              border-color .4s cubic-bezier(.16,1,.3,1),
              color .4s cubic-bezier(.16,1,.3,1);
}
.footer-scroll-top:hover {
  color: var(--ft-fg);
  border-color: var(--pill-border-hover);
}
.footer-scroll-top svg {
  width: 20px; height: 20px;
  transition: transform .3s cubic-bezier(.16,1,.3,1);
}
.footer-scroll-top:hover svg { transform: translateY(-6px); }

/* Responsive — tablet down */
@media (max-width: 900px) {
  .footer-giant-bg-text { font-size: 30vw; }
  .footer-center        { margin-top: 100px; }
  .footer-cta-heading   { margin-bottom: 32px; }
  .footer-bottom-bar    { padding: 24px 24px; }
}

/* Responsive — phone */
@media (max-width: 600px) {
  .footer-giant-bg-text { font-size: 34vw; bottom: -2vh; }
  .footer-marquee-strip { top: 28px; padding: 10px 0; transform: rotate(-2deg) scale(1.15); }
  .footer-marquee-item  { font-size: 10px; gap: 24px; padding: 0 14px; letter-spacing: .2em; }
  .footer-center        { margin-top: 96px; padding: 0 16px; }
  .footer-cta-heading   { font-size: clamp(40px, 13vw, 64px); margin-bottom: 28px; }
  .footer-glass-pill--primary { padding: 16px 26px; font-size: 13px; gap: 10px; }
  .footer-glass-pill--primary svg { width: 18px; height: 18px; }
  .footer-glass-pill--sm      { padding: 10px 18px; font-size: 11px; }
  .footer-pills-primary       { gap: 10px; }
  .footer-pills-secondary     { gap: 8px; }
  .footer-bottom-bar {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    padding: 20px 16px 24px;
    gap: 14px;
    justify-items: center;
  }
  .footer-bottom-bar .footer-copy        { justify-self: center; order: 3; }
  .footer-bottom-bar .footer-craft-pill  { justify-self: center; order: 1; }
  .footer-bottom-bar .footer-scroll-top  { justify-self: center; order: 2; }
}


/* Legacy CTA class aliases — defer to .btn for ALL styling.
   Old markup using .gm-link / .work-cta / .cs-cta / .hero-cta-primary
   still works without code changes. New markup should use .btn directly. */
.work-cta, .gm-link, .cs-cta, .hero-cta-primary {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--ff-sans);
  font-size: 13px; font-weight: 700;
  padding: 13px 26px; border-radius: var(--r-full);
  border: 1px solid transparent;
  text-decoration: none; white-space: nowrap;
  letter-spacing: 0; text-transform: none;
  background: var(--btn-bg, var(--text));
  color:      var(--btn-fg, var(--text-inv));
  --mag-x: 0px; --mag-y: 0px;
  transform: translate(var(--mag-x), var(--mag-y));
  transition: background .25s, color .25s, transform .45s cubic-bezier(.22,1,.36,1), box-shadow .25s;
}
.work-cta:hover, .gm-link:hover, .cs-cta:hover, .hero-cta-primary:hover {
  background: var(--btn-bg-hover, var(--btn-bg, var(--accent)));
  color:      var(--btn-fg-hover, var(--btn-fg, #131518));
  transform:  translate(var(--mag-x), calc(var(--mag-y) - 2px));
  box-shadow: 0 8px 32px var(--btn-glow, var(--accent-glow));
}
/* legacy aliases: drop any inline svg so the ::after arrow rules the day */
.work-cta > svg, .gm-link > svg, .cs-cta > svg, .hero-cta-primary > svg { display: none; }
.work-cta::after, .gm-link::after, .cs-cta::after, .hero-cta-primary::after {
  content: ''; width: 14px; height: 14px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'><path d='M5 12h14M12 5l7 7-7 7'/></svg>") center/contain no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'><path d='M5 12h14M12 5l7 7-7 7'/></svg>") center/contain no-repeat;
  transition: transform .25s cubic-bezier(.22,1,.36,1);
}
.work-cta:hover::after, .gm-link:hover::after, .cs-cta:hover::after, .hero-cta-primary:hover::after { transform: translateX(4px); }


/* ── Mobile: disable backdrop-filter on fixed/sticky surfaces ──
   Backdrop-blur on a sticky element forces re-composite of the entire
   blurred region every scroll frame — the single biggest mobile FPS
   killer in the audit. Fall back to a solid translucent surface so the
   "glass" intent is preserved without the per-frame blur cost. */
@media (max-width: 899px) {
  /* Nav keeps its real backdrop-blur on mobile (same glass as desktop). */
  .footer-marquee-strip,
  .footer-glass-pill,
  .footer-scroll-top {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .back-nav,
  #sw-btn,
  #sw-panel {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
}

/* ─── Responsive safety net (mobile/tablet) ────────────────
   Conservative rules that prevent overflow + improve density
   at narrow widths without disturbing existing layouts. */
img, video, svg:not(.icon) { max-width: 100%; height: auto; }

/* tables scroll horizontally on narrow screens instead of pushing
   the page wider. wraps any <table> in a scrollable container via
   display:block on the table itself — preserves cell layout. */
@media (max-width: 720px) {
  table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-collapse: collapse;
  }
  table thead, table tbody { display: table; width: 100%; }
}

/* nav pill — tighter padding on phones so it actually fits */
@media (max-width: 600px) {
  #nav { padding: 14px 14px 0 14px !important; }
  .nav-inner { padding: 6px 12px 6px 16px !important; gap: 8px; }
  .nav-cta { padding: 8px 16px !important; font-size: 12px !important; }
  .logo { font-size: 17px !important; }
  .nav-logo-icon { width: 22px; height: 22px; }
}

/* footer — single column on narrow screens */
@media (max-width: 720px) {
  .footer-grid,
  .footer-columns,
  .footer-row {
    grid-template-columns: 1fr !important;
    flex-direction: column !important;
    gap: 24px !important;
  }
}

/* utility: prevent very long unbroken strings from blowing layout */
.case-study-content p, .ea-device, .work-card, .tool-card { overflow-wrap: anywhere; }

/* respect reduced motion across our shared interactions */
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal.visible { transition: none !important; }
  .nav-hamburger span { transition: none !important; }
}

/* ─── Type debug overlay ──────────────────────────
   Toggle by pressing the "D" key (wired in common.js).
   When on, hovering any heading shows its level tag
   (H1/H2/H3/H4) as a small floating chip + a 1px outline.
   Off in normal viewing — only useful for design review. */
html.debug-type h1:hover,
html.debug-type h2:hover,
html.debug-type h3:hover,
html.debug-type h4:hover {
  position: relative;
  outline: 1px dashed #F7BE14;
  outline-offset: 2px;
}
html.debug-type h1:hover::after,
html.debug-type h2:hover::after,
html.debug-type h3:hover::after,
html.debug-type h4:hover::after {
  position: absolute;
  top: -22px;
  left: 0;
  padding: 2px 8px;
  background: #F7BE14;
  color: #131518;
  font-family: ui-monospace, monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .05em;
  border-radius: 4px;
  text-transform: uppercase;
  pointer-events: none;
  z-index: 9999;
  white-space: nowrap;
}
html.debug-type h1:hover::after { content: 'H1 · ' attr(class); }
html.debug-type h2:hover::after { content: 'H2 · ' attr(class); }
html.debug-type h3:hover::after { content: 'H3 · ' attr(class); }
html.debug-type h4:hover::after { content: 'H4 · ' attr(class); }
