/* BMTH News — landing page */
:root {
  --bg: #fdfdfc;
  --ink: #0e0e0e;
  --muted: #77716b;
  --line: #ebeae7;
  --chip: #e3e1de;
  --red: #fc1316;
  --ease: cubic-bezier(.2,.7,.2,1);
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font-family: 'Geist', system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: var(--red); }
a:hover { color: #d40e11; }

/* Grid */
.bento {
  height: 100vh; min-height: 560px; padding: 12px;
  display: grid; gap: 10px;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-template-rows: 0.8fr 0.85fr 1.3fr 0.4fr auto;
  grid-template-areas:
    "name name mail mail mail mail"
    "s1 s1 s1 s1 s2 s2"
    "vids vids vids vids soc soc"
    "lg lg lg lg lg lg"
    "foot foot foot foot foot foot";
}
.card {
  background: var(--bg); border: 1px solid var(--line); border-radius: 20px;
  min-height: 0; min-width: 0; overflow: hidden;
  opacity: 0; transform: translateY(14px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  transition-delay: var(--d, 0ms);
}
.revealed .card { opacity: 1; transform: none; }
.label { font: 400 14px 'Geist', sans-serif; color: var(--muted); }
.arrow { width: .9em; height: .9em; vertical-align: -0.08em; flex: none; }

/* Name */
.name { grid-area: name; --d: 0ms; padding: clamp(14px,1.4vw,20px) clamp(16px,1.6vw,22px); display: flex; flex-direction: column; justify-content: space-between; gap: 6px; }
.name img { display: block; width: 34px; height: 34px; border-radius: 9px; object-fit: cover; }
.name h1 { margin: 0; font: 400 clamp(26px,2.6vw,38px)/1 'Geist', sans-serif; letter-spacing: -0.025em; }
.name h1 span { color: var(--red); }
.name p { margin: 6px 0 0; font: 400 clamp(13px,1.05vw,16px)/1.35 'Geist', sans-serif; color: var(--muted); }

/* Contact */
.mail { grid-area: mail; --d: 70ms; background: var(--ink); border-color: var(--ink); color: var(--bg); padding: clamp(16px,1.6vw,24px) clamp(18px,1.8vw,28px); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: clamp(10px,1.4vw,20px); }
.mail .eyebrow { font: 400 14px 'Geist', sans-serif; color: #a39e98; }
.mail .headline { margin-top: 10px; font: 400 clamp(22px,2.1vw,32px)/1.1 'Geist', sans-serif; letter-spacing: -0.025em; }
.pill { flex: 0 1 400px; min-width: 300px; background: #1a1918; border: 1px solid #2e2c2a; border-radius: 999px; padding: 6px 6px 6px 22px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pill a { font: 400 16px 'Geist', sans-serif; color: var(--bg); text-decoration: none; overflow-wrap: anywhere; padding: 8px 0; }
.pill a:hover { color: var(--bg); text-decoration: underline; text-underline-offset: 4px; }
.pill button { border: 1px solid #3a3735; cursor: pointer; padding: 11px 16px; border-radius: 999px; background: #1a1918; color: var(--bg); font: 500 14px 'Geist', sans-serif; min-width: 72px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; transition: background-color .25s ease; flex: none; }
.pill button:hover { background: #2a2826; }

/* Stats */
.s1 { grid-area: s1; --d: 140ms; padding: clamp(16px,1.6vw,24px); display: flex; align-items: stretch; gap: clamp(16px,2vw,32px); }
.s1 .main { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: space-between; gap: 10px; }
.big-red { font: 400 clamp(40px,5.8vw,116px)/0.9 'Geist', sans-serif; letter-spacing: -0.045em; color: var(--red); white-space: nowrap; font-variant-numeric: tabular-nums; }
.s1 .side { flex: 0 0 clamp(170px,16vw,240px); display: flex; flex-direction: column; justify-content: flex-end; }
.row { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; padding: 9px 0; }
.row + .row { border-top: 1px solid var(--line); }
.row span:first-child { font: 400 13px 'Geist', sans-serif; color: var(--muted); white-space: nowrap; }
.row span:last-child { font: 400 clamp(15px,1.3vw,19px) 'Geist', sans-serif; letter-spacing: -0.01em; white-space: nowrap; font-variant-numeric: tabular-nums; }
.s2 { grid-area: s2; --d: 210ms; padding: clamp(16px,1.6vw,24px); display: flex; flex-direction: column; justify-content: space-between; gap: 14px; }
.big { font: 400 clamp(44px,5vw,88px)/0.9 'Geist', sans-serif; letter-spacing: -0.04em; white-space: nowrap; font-variant-numeric: tabular-nums; }

/* Videos */
.vids { grid-area: vids; --d: 280ms; padding: clamp(16px,1.6vw,24px); display: flex; flex-direction: column; gap: 12px; }
.vids-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.vids-head a { font: 500 14px 'Geist', sans-serif; color: var(--ink); text-decoration: none; display: inline-flex; align-items: center; gap: 5px; transition: color .25s ease; }
.vids-head a:hover { color: var(--red); }
.vid-grid { flex: 1; min-height: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.vid { display: flex; flex-direction: column; gap: 8px; min-height: 0; min-width: 0; }
.thumb-wrap { flex: 1; min-height: 0; container-type: size; display: flex; align-items: flex-end; }
.thumb { width: min(100cqw, calc(100cqh * 16 / 9)); aspect-ratio: 16 / 9; position: relative; border-radius: 12px; overflow: hidden; background: var(--chip); }
.thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.duration { position: absolute; right: 8px; bottom: 8px; padding: 2px 6px; border-radius: 5px; background: rgba(14,14,14,.85); color: #fff; font: 500 12px/1.4 'Geist', sans-serif; font-variant-numeric: tabular-nums; pointer-events: none; }
.watch { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(14,14,14,0); opacity: 0; text-decoration: none; transition: opacity .3s ease, background .3s ease; }
.watch:hover, .watch:focus-visible { opacity: 1; background: rgba(14,14,14,.45); }
.watch span { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px 9px 13px; border-radius: 999px; background: rgba(253,253,252,.95); color: var(--ink); font: 500 14px 'Geist', sans-serif; }
.vid-title { font: 500 14px/1.3 'Geist', sans-serif; color: var(--ink); text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: none; transition: color .25s ease; }
.vid-title:hover { color: var(--red); }

/* Socials */
.soc { grid-area: soc; --d: 350ms; padding: clamp(10px,1vw,14px) clamp(16px,1.6vw,22px); display: flex; flex-direction: column; }
.soc a { display: flex; align-items: center; gap: 12px; padding: 8px 0; flex: 1 0 auto; min-height: 52px; color: var(--ink); text-decoration: none; }
.soc a + a { border-top: 1px solid var(--line); }
.soc .icon { width: 30px; height: 30px; flex: none; border-radius: 9px; background-color: var(--chip); background-size: 14px 14px; background-position: center; background-repeat: no-repeat; transition: background-color .35s ease, box-shadow .35s ease; }
.soc a.active .icon { background-color: var(--brand); box-shadow: 0 0 0 2px var(--bg), 0 0 0 3.5px var(--brand); }
.soc .nm { flex: 1; min-width: 0; font: 500 15px 'Geist', sans-serif; white-space: nowrap; }
.soc .ct { font: 400 14px 'Geist', sans-serif; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }

/* Logo marquee */
.lg { grid-area: lg; --d: 420ms; padding: 16px 0; display: flex; align-items: center; }
.lg-label { flex: none; padding: 0 20px 0 22px; font: 500 14px/1.35 'Geist', sans-serif; white-space: nowrap; }
.lg-viewport { flex: 1; min-width: 0; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.lg-track { display: flex; gap: 44px; padding-right: 44px; width: max-content; align-items: center; animation: marquee 30s linear infinite; will-change: transform; }
.logo { position: relative; flex: none; display: block; }
.logo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.logo .colour { opacity: 0; transition: opacity .3s ease; }
.logo:hover .colour { opacity: 1; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Footer */
.foot { grid-area: foot; --d: 490ms; margin: 0; padding: 0 8px; text-align: center; font: 400 11px/1.3 'Geist', sans-serif; color: var(--muted); text-wrap: balance; border: 0; background: none; border-radius: 0; overflow: visible; }

/* Tablet / mobile */
@media (max-width: 1119px), (max-height: 699px) {
  .bento {
    height: auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: auto;
    grid-template-areas: "name name" "mail mail" "s1 s1" "s2 s2" "vids vids" "soc soc" "lg lg" "foot foot";
  }
  .thumb-wrap { flex: none; container-type: normal; }
  .thumb { width: 100%; }
}
@media (max-width: 640px) {
  .vid-grid { grid-template-columns: 1fr; }
  .s1 { flex-direction: column; }
  .s1 .side { flex: none; }
  .pill { min-width: 0; flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .card { transition: none; }
  .lg-track { animation: none; }
}
