/* ============================================================
   JABOI GAMES — DIRECTION C "AFTERGLOW"
   Neon-brutalist editorial studio. Near-black canvas,
   1px neon outline cards, oversized type, bento grid,
   marquee ticker, chrome/metallic gradient headings.
   ============================================================ */

/* ---------- TOKENS ---------- */
:root {
  /* brand */
  --cyan:      #45EFE6;
  --cyan-deep: #15B8AD;
  --indigo:    #284CEE;
  --royal:     #3A41CC;
  --violet:    #7A3FF2;
  --magenta:   #FF2DAA;
  --magenta-2: #FF4D9E;
  --orange:    #FF7A2D;
  --amber:     #FFCB57;
  --sun:       #FFF3D6;
  --danger:    #FC0B29;
  --ink:       #0B0614;
  --ink-2:     #140A24;
  --panel:     #1A1030;
  --text:      #ECE8FF;
  --muted:     #B6ADDB;

  /* afterglow extras */
  --black:     #050309;
  --line:      rgba(236,232,255,0.14);
  --line-soft: rgba(236,232,255,0.08);
  --glow-cyan:    0 0 0 1px var(--cyan), 0 0 22px rgba(69,239,230,0.35), inset 0 0 22px rgba(69,239,230,0.06);
  --glow-magenta: 0 0 0 1px var(--magenta), 0 0 22px rgba(255,45,170,0.35), inset 0 0 22px rgba(255,45,170,0.06);

  /* metallic / chrome gradient for headings */
  --chrome: linear-gradient(180deg,#ffffff 0%,#cfd8ff 30%,#a7afe0 52%,#e9ecff 60%,#9aa0d8 100%);
  --brand-grad: linear-gradient(115deg,var(--violet) 0%,var(--indigo) 42%,var(--magenta) 100%);
  --neon-grad: linear-gradient(115deg,var(--cyan) 0%,var(--violet) 55%,var(--magenta) 100%);

  /* type */
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-mono: "Space Mono", ui-monospace, monospace;

  /* layout */
  --maxw: 1320px;
  --gutter: clamp(20px, 5vw, 64px);
  --radius: 4px;
}

/* ---------- RESET ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
body {
  font-family: var(--font-display);
  background: var(--black);
  color: var(--text);
  line-height: 1.55;
  font-size: clamp(15px, 1.05vw, 17px);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* atmospheric backdrop: faint nebula + grid */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(1200px 700px at 78% -10%, rgba(122,63,242,0.20), transparent 60%),
    radial-gradient(900px 600px at 5% 105%, rgba(255,45,170,0.14), transparent 60%),
    radial-gradient(700px 500px at 100% 100%, rgba(69,239,230,0.10), transparent 60%),
    var(--black);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(120% 120% at 50% 0%, #000 30%, transparent 90%);
  opacity: 0.6;
}

/* ---------- A11Y ---------- */
.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  background: var(--cyan);
  color: var(--black);
  padding: 10px 16px;
  font-family: var(--font-mono);
  font-weight: 700;
  z-index: 200;
  border-radius: var(--radius);
  transition: top .2s ease;
}
.skip-link:focus { top: 16px; }

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ---------- LAYOUT HELPERS ---------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: clamp(64px, 9vw, 130px); position: relative; }
.section--tight { padding-block: clamp(48px, 6vw, 90px); }

/* ---------- TYPE PRIMITIVES ---------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: clamp(11px, 1vw, 13px);
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--cyan);
  display: inline-flex;
  align-items: center;
  gap: .7em;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 1px;
  background: var(--cyan);
  display: inline-block;
}
.eyebrow--magenta { color: var(--magenta); }
.eyebrow--magenta::before { background: var(--magenta); }

.section-num {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(48px, 11vw, 150px);
  line-height: .85;
  color: transparent;
  -webkit-text-stroke: 1px var(--line);
  letter-spacing: -.02em;
  user-select: none;
}

.display {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: .94;
  letter-spacing: -.03em;
  text-transform: uppercase;
}
.display--xl { font-size: clamp(44px, 9vw, 132px); }
/* home hero statement — dialed down from the global display--xl scale */
.tile--statement .display--xl { font-size: clamp(32px, 5vw, 72px); }
.display--lg { font-size: clamp(36px, 6.2vw, 86px); }
.display--md { font-size: clamp(28px, 4.4vw, 56px); }

/* chrome / metallic text */
.chrome {
  background: var(--chrome);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 1px 0 rgba(0,0,0,0.2);
  filter: drop-shadow(0 2px 12px rgba(180,190,255,0.18));
}
.neon-text {
  background: var(--neon-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead {
  font-size: clamp(17px, 1.6vw, 22px);
  color: var(--text);
  max-width: 60ch;
  line-height: 1.55;
}
.muted { color: var(--muted); }
.mono-label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- BUTTONS ---------- */
.btn {
  --bg: transparent;
  display: inline-flex;
  align-items: center;
  gap: .6em;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 14px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text);
  position: relative;
  transition: transform .18s ease, box-shadow .25s ease, border-color .25s ease, color .2s ease, background .25s ease;
  will-change: transform;
}
.btn .arrow { transition: transform .2s ease; }
.btn:hover .arrow { transform: translateX(4px); }
.btn:hover { transform: translateY(-2px); }

.btn--primary {
  border-color: var(--cyan);
  color: var(--cyan);
}
.btn--primary:hover {
  box-shadow: var(--glow-cyan);
  background: rgba(69,239,230,0.06);
  color: #d6fffb;
}
.btn--magenta {
  border-color: var(--magenta);
  color: var(--magenta-2);
}
.btn--magenta:hover {
  box-shadow: var(--glow-magenta);
  background: rgba(255,45,170,0.06);
  color: #ffd2ec;
}
.btn--ghost { color: var(--text); }
.btn--ghost:hover { border-color: var(--text); background: rgba(236,232,255,0.04); }

.btn--solid {
  background: var(--neon-grad);
  color: var(--black);
  border-color: transparent;
  font-weight: 700;
}
.btn--solid:hover { box-shadow: 0 0 26px rgba(122,63,242,0.5); }

/* ---------- HEADER ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(5,3,9,0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 76px;
}
.brand img { height: 34px; width: auto; }
.brand { display: inline-flex; align-items: center; }

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav a {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 10px 14px;
  border-radius: var(--radius);
  position: relative;
  transition: color .2s ease;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: 6px;
  height: 1px;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}
.nav a:hover, .nav a:focus-visible { color: var(--text); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav a[aria-current="page"] { color: var(--cyan); }

.header-cta { display: inline-flex; align-items: center; gap: 14px; }

/* hamburger */
.hamburger {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  position: relative;
  align-items: center;
  justify-content: center;
}
.hamburger span,
.hamburger span::before,
.hamburger span::after {
  content: "";
  display: block;
  width: 20px; height: 2px;
  background: var(--text);
  transition: transform .25s ease, opacity .2s ease;
}
.hamburger span::before { position: absolute; transform: translateY(-6px); }
.hamburger span::after  { position: absolute; transform: translateY(6px); }
.hamburger[aria-expanded="true"] span { background: transparent; }
.hamburger[aria-expanded="true"] span::before { transform: rotate(45deg); }
.hamburger[aria-expanded="true"] span::after  { transform: rotate(-45deg); }

/* mobile drawer */
.mobile-nav {
  position: fixed;
  inset: 76px 0 0 0;
  background: rgba(5,3,9,0.97);
  backdrop-filter: blur(8px);
  z-index: 99;
  transform: translateY(-12px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, transform .25s ease, visibility .25s;
  padding: var(--gutter);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.mobile-nav.open { opacity: 1; visibility: visible; transform: translateY(0); }
.mobile-nav a {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(28px, 8vw, 46px);
  letter-spacing: -.02em;
  padding: 12px 0;
  border-bottom: 1px solid var(--line-soft);
  color: var(--text);
  display: flex;
  align-items: baseline;
  gap: 16px;
}
.mobile-nav a .idx {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--cyan);
  font-weight: 400;
}
.mobile-nav a[aria-current="page"] { color: var(--cyan); }
.mobile-nav .btn { margin-top: 24px; align-self: flex-start; }

/* ---------- MARQUEE TICKER ---------- */
.marquee {
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  background: linear-gradient(90deg, rgba(122,63,242,0.10), rgba(255,45,170,0.10), rgba(69,239,230,0.10));
  overflow: hidden;
  position: relative;
}
.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee 38s linear infinite;
}
.marquee__track:hover { animation-play-state: paused; }
.marquee__group {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.marquee__item {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(12px, 1.4vw, 15px);
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 12px 0;
  color: var(--text);
  white-space: nowrap;
}
.marquee__sep {
  color: var(--cyan);
  padding: 0 22px;
}
.marquee__item:nth-child(4n+1) { color: var(--cyan); }
.marquee__item:nth-child(4n+3) { color: var(--magenta-2); }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; transform: translateX(0); }
}

/* ---------- HERO / BENTO ---------- */
.hero { padding-top: clamp(36px, 5vw, 64px); }
.hero-eyebrow-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: clamp(20px, 3vw, 36px);
}
.hero-eyebrow-row .mono-label { color: var(--muted); }

.bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: minmax(120px, auto);
  gap: 16px;
}
.tile {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(26,16,48,0.6), rgba(11,6,20,0.6));
  padding: clamp(22px, 2.4vw, 36px);
  position: relative;
  overflow: hidden;
  transition: border-color .3s ease, box-shadow .35s ease, transform .3s ease;
  display: flex;
  flex-direction: column;
}
.tile:hover { transform: translateY(-3px); }
.tile--glow-cyan:hover { box-shadow: var(--glow-cyan); border-color: var(--cyan); }
.tile--glow-magenta:hover { box-shadow: var(--glow-magenta); border-color: var(--magenta); }

/* logo tile */
.tile--logo {
  grid-column: span 4;
  grid-row: span 2;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 20px;
  /* frame removed — logo sits open (no border / panel background / corner mark) */
  border: none;
  background: none;
  padding: 0;
}
.tile--logo::after { display: none; }
.tile--logo:hover { transform: none; box-shadow: none; }
.tile--logo .hero-logo { width: min(100%, 320px); height: auto; }
.tile--logo .hero-support {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--cyan);
}

/* big type statement tile */
.tile--statement {
  grid-column: span 8;
  grid-row: span 2;
  justify-content: center;
  gap: 22px;
  background:
    radial-gradient(120% 120% at 100% 0%, rgba(255,45,170,0.16), transparent 55%),
    linear-gradient(180deg, rgba(26,16,48,0.55), rgba(11,6,20,0.6));
}
.tile--statement h1 { margin: 0; }
.tile--statement .lead { color: var(--muted); }
.tile--statement .hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 8px; }

/* framed image tile */
.tile--art {
  grid-column: span 7;
  padding: 0;
  min-height: 320px;
}
.tile--stat {
  grid-column: span 5;
  justify-content: space-between;
  gap: 20px;
}
.stat-rows { display: grid; gap: 18px; }
.stat-row { display: flex; align-items: baseline; gap: 16px; }
.stat-row .big {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(34px, 4.4vw, 64px);
  line-height: 1;
  letter-spacing: -.03em;
}
.stat-row .lbl {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  max-width: 18ch;
}

/* corner ticks on tiles */
.tile::after {
  content: "";
  position: absolute;
  top: 10px; right: 10px;
  width: 8px; height: 8px;
  border-top: 1px solid var(--line);
  border-right: 1px solid var(--line);
  opacity: .8;
}

/* ---------- IMAGE FRAME ---------- */
.frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--ink-2);
  isolation: isolate;
}
.frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(1.05) contrast(1.04);
}
.frame--fill { width: 100%; height: 100%; }
.frame--16x9 { aspect-ratio: 16 / 9; }
.frame--4x3  { aspect-ratio: 4 / 3; }
.frame--1x1  { aspect-ratio: 1 / 1; }
/* scanline + gradient overlay to make low-res read intentional */
.frame::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(180deg, transparent 50%, rgba(5,3,9,0.55) 100%),
    radial-gradient(120% 80% at 50% 0%, transparent 60%, rgba(122,63,242,0.18) 100%);
}
.frame::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    rgba(0,0,0,0) 0px,
    rgba(0,0,0,0) 2px,
    rgba(0,0,0,0.10) 3px
  );
  mix-blend-mode: overlay;
  opacity: .6;
}
.frame .frame-tag {
  position: absolute;
  left: 12px; bottom: 12px;
  z-index: 4;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--cyan);
  background: rgba(5,3,9,0.7);
  border: 1px solid var(--line);
  padding: 5px 10px;
  border-radius: 2px;
}

/* ---------- SECTION HEAD ---------- */
.sec-head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(20px, 4vw, 56px);
  align-items: end;
  margin-bottom: clamp(36px, 5vw, 64px);
}
.sec-head__meta { max-width: 60ch; }
.sec-head__meta h2 { margin: 14px 0 0; }
.sec-head__meta .lead { margin-top: 18px; }

/* ---------- FEATURED BAND (home) ---------- */
.feature-band {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(28px, 4vw, 56px);
  background:
    radial-gradient(100% 140% at 100% 0%, rgba(255,45,170,0.14), transparent 55%),
    linear-gradient(180deg, rgba(26,16,48,0.5), rgba(11,6,20,0.55));
  position: relative;
  overflow: hidden;
}
.feature-band__copy .display { margin: 16px 0 18px; }
.feature-band__copy .actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 26px; }
.feature-band__art { position: relative; }

/* ---------- CARDS GRID ---------- */
.cards {
  display: grid;
  /* explicit responsive columns with minmax(0,1fr) — auto-fit + a px floor can
     overflow when track-sized against an indefinite width, so we avoid it here */
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
@media (max-width: 900px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .cards { grid-template-columns: 1fr; } }
.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(22px, 2.5vw, 32px);
  background: linear-gradient(180deg, rgba(26,16,48,0.45), rgba(11,6,20,0.5));
  transition: border-color .3s ease, box-shadow .35s ease, transform .3s ease;
  position: relative;
  overflow: hidden;
}
.card:hover { transform: translateY(-3px); border-color: var(--cyan); box-shadow: var(--glow-cyan); }
.card:nth-child(even):hover { border-color: var(--magenta); box-shadow: var(--glow-magenta); }
.card .card-num {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 13px;
  color: var(--cyan);
  letter-spacing: .1em;
}
.card:nth-child(even) .card-num { color: var(--magenta-2); }
.card h3 { margin: 14px 0 10px; font-size: clamp(20px, 2vw, 26px); font-weight: 700; letter-spacing: -.01em; }
.card p { color: var(--muted); font-size: 15px; }

/* ---------- GALLERY ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}
.gallery figure { margin: 0; }
.gallery .g-big   { grid-column: span 8; }
.gallery .g-small { grid-column: span 4; }
.gallery figcaption {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 12px;
  display: flex;
  gap: 10px;
  align-items: baseline;
}
.gallery figcaption .num { color: var(--cyan); }

/* ---------- STUDIO ---------- */
.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}
.story-grid .frame { box-shadow: 0 0 0 1px var(--line); }
.prose p { color: var(--muted); margin-bottom: 18px; max-width: 60ch; }
.prose p strong { color: var(--text); }
.prose p:last-child { margin-bottom: 0; }

.team-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.team-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(26px, 3vw, 40px);
  background: linear-gradient(180deg, rgba(26,16,48,0.5), rgba(11,6,20,0.5));
  transition: border-color .3s ease, box-shadow .35s ease;
}
.team-card:hover { border-color: var(--cyan); box-shadow: var(--glow-cyan); }
.team-card:nth-child(even):hover { border-color: var(--magenta); box-shadow: var(--glow-magenta); }
.team-card .role {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--cyan);
}
.team-card:nth-child(even) .role { color: var(--magenta-2); }
.team-card h3 { font-size: clamp(28px, 3vw, 40px); font-weight: 700; margin: 8px 0 14px; letter-spacing: -.02em; }
.team-card p { color: var(--muted); }
.team-card .avatar {
  width: 56px; height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  color: var(--black);
  margin-bottom: 20px;
}
.team-card .avatar.ian   { background: var(--neon-grad); }
.team-card .avatar.steve { background: var(--brand-grad); color: var(--text); }

/* ---------- CTA BAND ---------- */
.cta-band {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(36px, 5vw, 72px);
  text-align: center;
  background:
    radial-gradient(120% 160% at 50% 0%, rgba(122,63,242,0.22), transparent 60%),
    linear-gradient(180deg, rgba(26,16,48,0.5), rgba(11,6,20,0.6));
  position: relative;
  overflow: hidden;
}
.cta-band h2 { margin-bottom: 18px; }
.cta-band .lead { margin: 0 auto 30px; color: var(--muted); }
.cta-band .actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- CONTACT ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 4vw, 64px);
  align-items: start;
}
.contact-block { display: grid; gap: 22px; }
.contact-email {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: clamp(16px, 2vw, 22px);
  color: var(--cyan);
  border: 1px solid var(--line);
  padding: 16px 22px;
  border-radius: var(--radius);
  transition: box-shadow .3s ease, border-color .3s ease;
  width: fit-content;
}
.contact-email:hover { box-shadow: var(--glow-cyan); border-color: var(--cyan); }

.social-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
}
.social-grid a {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color .25s ease, border-color .25s ease, box-shadow .3s ease, transform .25s ease;
}
.social-grid a svg { width: 20px; height: 20px; flex-shrink: 0; fill: currentColor; }
.social-grid a:hover { color: var(--cyan); border-color: var(--cyan); transform: translateY(-2px); box-shadow: var(--glow-cyan); }

/* form */
.contact-form { display: grid; gap: 18px; }
.field { display: grid; gap: 8px; }
.field label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}
.field input, .field textarea {
  font: inherit;
  font-size: 15px;
  color: var(--text);
  background: rgba(11,6,20,0.6);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
  transition: border-color .25s ease, box-shadow .25s ease;
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 1px var(--cyan), 0 0 16px rgba(69,239,230,0.25);
}
.field textarea { resize: vertical; min-height: 140px; }
.form-note {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: .04em;
}

/* page hero (inner pages) */
.page-hero { padding-block: clamp(48px, 7vw, 100px) clamp(24px, 4vw, 48px); }
.page-hero .display { margin: 16px 0 22px; }
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--magenta-2);
  border: 1px solid var(--magenta);
  border-radius: 100px;
  padding: 7px 16px;
}
.status-pill .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--magenta-2);
  box-shadow: 0 0 10px var(--magenta-2);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.35} }
@media (prefers-reduced-motion: reduce) { .status-pill .dot { animation: none; } }

.cr-hero {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}
.cr-hero .actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }

/* ---------- FOOTER ---------- */
.site-footer {
  border-top: 1px solid var(--line-soft);
  margin-top: clamp(48px, 7vw, 100px);
  background: linear-gradient(180deg, transparent, rgba(122,63,242,0.06));
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(28px, 5vw, 64px);
  padding-block: clamp(48px, 6vw, 80px);
  align-items: start;
}
.footer-brand img { height: 38px; width: auto; margin-bottom: 18px; }
.footer-brand p { color: var(--muted); max-width: 38ch; }
.footer-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 16px;
}
.footer-col a {
  display: block;
  color: var(--muted);
  font-size: 14px;
  padding: 6px 0;
  transition: color .2s ease;
}
.footer-col a:hover { color: var(--text); }

.footer-social {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.footer-social a {
  width: 40px; height: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  color: var(--muted);
  transition: color .25s ease, border-color .25s ease, box-shadow .3s ease, transform .25s ease;
}
.footer-social a svg { width: 18px; height: 18px; fill: currentColor; }
.footer-social a:hover { color: var(--cyan); border-color: var(--cyan); box-shadow: var(--glow-cyan); transform: translateY(-2px); }

.footer-bottom {
  border-top: 1px solid var(--line-soft);
  padding-block: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p, .footer-bottom a {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--muted);
}
.footer-bottom a:hover { color: var(--cyan); }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
  .tile--logo { grid-column: span 5; }
  .tile--statement { grid-column: span 7; }
  .tile--art { grid-column: span 12; min-height: 280px; }
  .tile--stat { grid-column: span 12; }
  .feature-band { grid-template-columns: 1fr; }
  .gallery .g-big { grid-column: span 12; }
  .gallery .g-small { grid-column: span 6; }
}

@media (max-width: 860px) {
  .nav, .header-cta .btn { display: none; }
  .hamburger { display: inline-flex; }
  .header-cta { gap: 10px; }
  .cr-hero { grid-template-columns: 1fr; }
  .story-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .sec-head { grid-template-columns: 1fr; gap: 8px; align-items: start; }
}

@media (max-width: 640px) {
  .tile--logo, .tile--statement { grid-column: span 12; grid-row: auto; }
  .gallery .g-small { grid-column: span 12; }
  .footer-cols { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .bento { grid-auto-rows: auto; }
}

/* tablet portrait — spec breakpoint (covered fluidly by 860/640 above) */
@media (max-width: 768px) {
  .tile, .card, .team-card { grid-column: span 12; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
}

/* small phone — spec breakpoint: tighten gutter and oversized display type */
@media (max-width: 390px) {
  :root { --gutter: 16px; }
  .display--xl { font-size: clamp(38px, 11vw, 56px); }
  .display--lg { font-size: clamp(30px, 9vw, 44px); }
  .footer-cols { grid-template-columns: 1fr; }
  .tile { padding: 22px; }
  .bento { gap: 12px; }
}

/* reveal-on-scroll — progressive enhancement:
   content is fully visible by default (no-JS / SEO / screenshots safe).
   The hide+animate behaviour only applies once JS adds .js to <html>. */
.reveal { opacity: 1; transform: none; }
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s ease, transform .7s ease;
}
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal, .js .reveal { opacity: 1; transform: none; transition: none; }
  .tile:hover, .card:hover, .btn:hover, .footer-social a:hover, .social-grid a:hover { transform: none; }
}

/* contact form: honeypot (hidden from real users) + submit status banner */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.form-status { margin: 0 0 18px; padding: 12px 16px; border-radius: 10px; font-size: 14px; border: 1px solid var(--line); }
.form-status.ok  { color: var(--cyan);    border-color: var(--cyan);    background: rgba(69, 239, 230, 0.08); }
.form-status.err { color: var(--magenta); border-color: var(--magenta); background: rgba(255, 45, 170, 0.08); }

/* "Coming Soon" badge for not-yet-live buttons */
.btn--soon { position: relative; overflow: visible; }
.soon-badge {
  position: absolute; top: -10px; right: -10px;
  font-family: var(--font-mono); font-size: 10px; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  background: var(--magenta); color: var(--ink);
  padding: 3px 8px; border-radius: 999px; line-height: 1.3;
  box-shadow: 0 0 12px rgba(255, 45, 170, 0.55); pointer-events: none; white-space: nowrap;
}
