/* Beni Ayuk — personal site */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

:root {
  --bg: #ffffff;
  --bg-2: #f4f4f6;
  --surface: #f0f0f2;
  --line: rgba(0, 0, 0, 0.14);
  --line-soft: rgba(0, 0, 0, 0.08);
  --text: #111113;
  --muted: rgba(0, 0, 0, 0.62);
  --muted-2: rgba(0, 0, 0, 0.42);
  --geo-0: #ffffff;
  --geo-1: #e4e4e8;
  --geo-2: #d8d8de;
  --geo-3: #c8c8d0;
  --font: 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --maxw: 1120px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --nav-h: 56px;
  --radius: 4px;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  padding-top: var(--nav-h);
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}
main { flex: 1 0 auto; }

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

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { position: relative; padding: clamp(72px, 10vw, 112px) 0; }
.section--alt { background: var(--bg-2); }
.section--tight { padding-top: clamp(48px, 7vw, 72px); }

h1, h2, h3 { font-weight: 600; line-height: 1.1; letter-spacing: -0.025em; text-wrap: balance; }
.h-display { font-size: clamp(36px, 5.5vw, 56px); font-weight: 600; line-height: 1.05; }
.h-section { font-size: clamp(28px, 4vw, 42px); }
.h-sub { font-size: clamp(18px, 2.1vw, 24px); font-weight: 500; }
.lead { font-size: clamp(16px, 1.5vw, 19px); color: var(--muted); font-weight: 300; max-width: 58ch; }
.eyebrow {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 24px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  border: 1px solid transparent;
  transition: transform 0.18s var(--ease), background 0.22s var(--ease), border-color 0.22s var(--ease), color 0.22s var(--ease);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: #111113; color: #fff; }
.btn--primary:hover { background: #2a2a2e; }
.btn--ghost { background: transparent; border-color: var(--line); color: var(--text); }
.btn--ghost:hover { border-color: rgba(0,0,0,0.35); background: rgba(0,0,0,0.04); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* Geo wash (subtle BittrByte nod) */
.geo-bg { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.geo-bg .g1 {
  position: absolute; inset: 0;
  background: linear-gradient(195deg, var(--geo-2) 0%, var(--geo-1) 45%, var(--bg) 100%);
  clip-path: polygon(62% 0, 100% 0, 100% 100%, 84% 100%);
  opacity: 0.38;
}
.geo-bg .g2 {
  position: absolute; inset: 0;
  background: linear-gradient(175deg, var(--geo-1) 0%, var(--bg-2) 100%);
  clip-path: polygon(0 80%, 30% 40%, 80% 100%, 0 100%);
  opacity: 0.28;
}
.geo-bg .veil {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(255,255,255,0.55) 0%, rgba(255,255,255,0.2) 44%, transparent 76%);
}
.geo-bg.subtle .g1 { opacity: 0.28; }
.geo-bg.subtle .g2 { opacity: 0.22; }

/* Nav */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}
.nav.is-scrolled { border-bottom-color: var(--line-soft); background: rgba(255, 255, 255, 0.94); }
.nav__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav__brand {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.nav__items {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav__link {
  display: block;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 400;
  color: var(--muted);
  transition: color 0.2s var(--ease);
}
.nav__link:hover,
.nav__link.is-active { color: var(--text); }
.nav__toggle {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}
.nav__toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--text);
  transition: transform 0.25s var(--ease), opacity 0.2s;
}
.nav.is-open .nav__toggle span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav.is-open .nav__toggle span:nth-child(2) { opacity: 0; }
.nav.is-open .nav__toggle span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
.nav__mobile {
  display: none;
  position: absolute;
  top: var(--nav-h);
  left: 0; right: 0;
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid var(--line);
  padding: 12px 24px 20px;
  flex-direction: column;
  gap: 4px;
}
.nav__mobile a {
  padding: 12px 0;
  font-size: 15px;
  color: var(--muted);
  border-bottom: 1px solid var(--line-soft);
}
.nav.is-open .nav__mobile { display: flex; }

@media (max-width: 820px) {
  .nav__items { display: none; }
  .nav__toggle { display: flex; }
}

/* Hero — split, no full-bleed profile BG */
.hero {
  position: relative;
  min-height: calc(100svh - var(--nav-h));
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--bg);
  padding: clamp(48px, 8vw, 80px) 0;
}
.hero .geo-bg { opacity: 0.85; }
.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
.hero__name {
  font-size: clamp(48px, 8vw, 80px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.95;
  margin-bottom: 16px;
}
.hero__tag {
  font-size: clamp(17px, 2vw, 22px);
  font-weight: 400;
  max-width: 28ch;
  margin-bottom: 12px;
}
.hero__lead {
  max-width: 42ch;
  color: var(--muted);
  font-size: clamp(15px, 1.35vw, 17px);
}
.hero__photo {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line-soft);
  background: var(--surface);
}
.hero__photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 15%;
}
@media (max-width: 860px) {
  .hero { min-height: auto; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__photo { max-width: 420px; }
}

/* Copy */
.copy-block p + p { margin-top: 1em; }
.copy-block p { color: var(--muted); max-width: 62ch; font-size: 16px; }
.copy-block strong { color: var(--text); font-weight: 500; }

.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
}

.media-frame {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line-soft);
}
.media-frame img,
.media-frame video {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}
.media-frame--wide img,
.media-frame--wide video {
  aspect-ratio: 16 / 10;
}
.media-frame--video video {
  aspect-ratio: 16 / 9;
  background: #000;
}
.media-frame--portrait img {
  aspect-ratio: 3 / 4;
  object-position: center 20%;
}
.caption {
  margin-top: 12px;
  font-size: 13px;
  color: var(--muted-2);
  font-weight: 400;
}

/* BittrByte / Athletics — faded side-media sections */
.bb-section,
.ath-section {
  position: relative;
  overflow: hidden;
  padding: clamp(80px, 11vw, 120px) 0;
  background: var(--bg);
}
.bb-section .geo-bg,
.ath-section .geo-bg { z-index: 0; }
.bb-section .container,
.ath-section .container { position: relative; z-index: 2; }
.bb-section__media,
.ath-section__media {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(58%, 760px);
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
  -webkit-mask-image:
    linear-gradient(to left, #000 0%, #000 42%, rgba(0,0,0,0.55) 68%, transparent 100%),
    linear-gradient(to bottom, transparent 0%, #000 14%, #000 82%, transparent 100%);
  mask-image:
    linear-gradient(to left, #000 0%, #000 42%, rgba(0,0,0,0.55) 68%, transparent 100%),
    linear-gradient(to bottom, transparent 0%, #000 14%, #000 82%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
}
.bb-section__media img,
.ath-section__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 56% 30%;
  opacity: 0.55;
  filter: saturate(0.9);
}
.ath-section__media img {
  object-position: 45% 35%;
  opacity: 0.42;
  filter: saturate(0.85) contrast(1.05);
}
.bb-section__copy,
.ath-section__copy { max-width: 540px; }
.bb-section__copy .h-display,
.ath-section__copy .h-display { margin-bottom: 18px; }
.bb-section__copy p,
.ath-section__copy p { color: var(--muted); margin-top: 0.9em; max-width: 48ch; }
.ath-section__video {
  margin-top: 28px;
  max-width: 560px;
}
.ath-section__video .media-frame {
  border-radius: var(--radius);
  overflow: hidden;
}
.ath-section__video video {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: #111;
  display: block;
}
@media (max-width: 820px) {
  .bb-section__media,
  .ath-section__media {
    position: relative;
    width: 100%;
    height: 280px;
    margin-bottom: 28px;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 18%, #000 78%, transparent 100%);
    mask-image: linear-gradient(to bottom, transparent 0%, #000 18%, #000 78%, transparent 100%);
  }
  .bb-section__media img,
  .ath-section__media img { opacity: 0.65; object-position: center 30%; }
  .bb-section .container,
  .ath-section .container { display: flex; flex-direction: column; }
  .ath-section__video { max-width: 100%; }
}

/* Teaser sections */
.teaser-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 36px;
}
.teaser-head .lead { margin-top: 12px; }
.teaser-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.teaser-grid--two { grid-template-columns: 1.2fr 0.8fr; }
@media (max-width: 720px) {
  .teaser-grid,
  .teaser-grid--two { grid-template-columns: 1fr; }
}
.teaser-card {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg);
}
.teaser-card__media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #111;
}
.teaser-card__media img,
.teaser-card__media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.teaser-card__media--portrait { aspect-ratio: 3 / 4; }
.teaser-card__body { padding: 16px 18px 18px; }
.teaser-card__body h3 { font-size: 16px; font-weight: 600; margin-bottom: 6px; }
.teaser-card__body p { font-size: 13px; color: var(--muted); }

/* Gallery pages */
.page-hero {
  position: relative;
  padding: clamp(56px, 8vw, 88px) 0 clamp(36px, 5vw, 48px);
  overflow: hidden;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero .lead { margin-top: 14px; }
.page-hero .copy-block { margin-top: 22px; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
@media (max-width: 720px) {
  .gallery-grid { grid-template-columns: 1fr; }
}
/* Add new gallery items by copying a .gallery-card block */
.gallery-card {
  background: var(--bg);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.gallery-card__media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #000;
}
.gallery-card__media--portrait { aspect-ratio: 3 / 4; }
.gallery-card__media img,
.gallery-card__media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gallery-card__media video { object-fit: contain; background: #000; }
.gallery-card__body { padding: 18px 20px 20px; }
.gallery-card__body h3 { font-size: 17px; font-weight: 600; margin-bottom: 8px; }
.gallery-card__body p { font-size: 14px; color: var(--muted); }

.gallery-feature {
  margin-top: 28px;
}
.gallery-feature .media-frame { margin-top: 16px; }

.external-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}
.link-chip {
  display: inline-flex;
  align-items: center;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.link-chip:hover {
  color: var(--text);
  border-color: rgba(0,0,0,0.35);
  background: rgba(0,0,0,0.04);
}

.links-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 36px;
}
@media (max-width: 720px) {
  .links-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 420px) {
  .links-grid { grid-template-columns: 1fr; }
}
.link-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 22px 20px;
  border: 1px solid var(--line-soft);
  background: var(--bg-2);
  border-radius: var(--radius);
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.link-card:hover {
  border-color: rgba(0,0,0,0.28);
  background: #ececee;
}
.link-card span {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-2);
  font-weight: 600;
}
.link-card strong {
  font-size: 16px;
  font-weight: 500;
}

/* Footer */
.footer {
  border-top: 1px solid var(--line-soft);
  padding: 36px 0 48px;
  margin-top: auto;
}
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}
.footer p { font-size: 13px; color: var(--muted-2); }
.footer a { color: var(--muted); }
.footer a:hover { color: var(--text); }

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-in {
  opacity: 1;
  transform: none;
}
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
