/* TPEC · Tenente Pedro Esporte Clube
   Paleta tirada da camisa: azul celeste + marrom quase preto. */
:root {
  --ink: #0f1317;
  --ink-2: #161b20;
  --brown: #2b221e;
  --brown-2: #3a2f29;
  --sky: #1ea7f0;
  --sky-hi: #6cc8ff;
  --sky-lo: #0d6fa6;
  --bone: #eef4f8;
  --muted: #a3b3bf;
  --line: rgb(238 244 248 / .1);
  --radius: 16px;
  --pill: 999px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --display: "Big Shoulders Display", "Arial Narrow", sans-serif;
  --body: "Outfit", system-ui, sans-serif;
  --stripes: repeating-linear-gradient(180deg, var(--sky) 0 22px, var(--brown) 22px 44px);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
/* trava de rolagem lateral: o html também precisa (iOS ignora só no body) */
html {
  scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; text-size-adjust: 100%;
  overflow-x: hidden; overscroll-behavior-x: none; background: var(--ink);
}
@supports (overflow-x: clip) { html, body { overflow-x: clip; } }
body {
  margin: 0;
  background: var(--ink);
  color: var(--bone);
  font: 400 1.0625rem/1.6 var(--body);
  overflow-x: hidden;
  position: relative;
  width: 100%;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
html.is-locked, html.is-locked body { overflow: hidden; }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: inherit; }
h1, h2, h3 { margin: 0; }
.wrap { width: min(1240px, 100% - 32px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--sky); color: var(--ink); padding: 10px 16px; border-radius: var(--pill); font-weight: 600; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--sky-hi); outline-offset: 3px; border-radius: 6px; }

/* grain: fixo, sem pointer events. Só em telas grandes com mouse (no celular pesa e faz a tela engasgar) */
@media (hover: hover) and (min-width: 1024px) {
body::after {
  content: ""; position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
}

.eyebrow {
  margin: 0 0 14px; font: 600 .8125rem/1 var(--body); letter-spacing: .18em; text-transform: uppercase; color: var(--sky-hi);
}
.h2 {
  font: 900 clamp(2.4rem, 6vw, 4.5rem)/.95 var(--display); text-transform: uppercase; letter-spacing: -.01em;
  margin-bottom: 28px; max-width: 16ch;
}

/* ---------- botões ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px; white-space: nowrap;
  padding: 14px 24px; border-radius: var(--pill); border: 2px solid transparent;
  font-weight: 600; text-decoration: none; transition: transform .25s var(--ease), background .25s, border-color .25s;
}
.btn:active { transform: scale(.97); }
.btn--primary { background: var(--sky); color: #06141d; }
.btn--primary:hover { background: var(--sky-hi); transform: translateY(-2px); }
.btn--ghost { border-color: rgb(238 244 248 / .3); background: rgb(15 19 23 / .5); color: var(--bone); }
.btn--ghost:hover { border-color: var(--sky-hi); transform: translateY(-2px); }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50; transition: background .3s, box-shadow .3s;
  padding-top: env(safe-area-inset-top);
}
.nav.is-solid { background: rgb(15 19 23 / .82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line); }
.nav__inner { height: 68px; display: flex; align-items: center; justify-content: space-between; width: min(1240px, 100% - 32px); margin-inline: auto; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 900 1.6rem/1 var(--display); letter-spacing: .04em; }
.brand img { width: 40px; height: 40px; transition: transform .5s var(--ease); }
.brand:hover img { transform: rotate(-12deg) scale(1.06); }
.nav__links { display: flex; gap: 6px; }
.nav__links a {
  text-decoration: none; padding: 8px 14px; border-radius: var(--pill); font-weight: 500; color: var(--muted);
  transition: color .2s, background .2s;
}
.nav__links a:hover, .nav__links a.is-current { color: var(--bone); background: rgb(30 167 240 / .14); }
.nav__toggle { display: none; width: 44px; height: 44px; border-radius: var(--pill); border: 1px solid var(--line); background: rgb(15 19 23 / .6); font-size: 1.3rem; place-items: center; }

@media (max-width: 1100px) {
  .nav__toggle { display: grid; }
  /* no celular: fundo sólido em vez de blur (blur em elemento fixo trava a rolagem em vários Androids) */
  .nav.is-solid, .nav.menu-open { background: rgb(15 19 23 / .97); backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: 0 1px 0 var(--line); }
  .nav__links {
    position: fixed; top: calc(68px + env(safe-area-inset-top)); left: 12px; right: 12px; flex-direction: column; gap: 4px; padding: 12px;
    max-height: calc(100svh - 92px - env(safe-area-inset-top)); overflow-y: auto; overscroll-behavior: contain;
    visibility: hidden;
    background: rgb(22 27 32 / .97); border: 1px solid var(--line); border-radius: var(--radius);
    transform: translateY(-12px); opacity: 0; pointer-events: none; transition: transform .3s var(--ease), opacity .2s, visibility .3s;
  }
  .nav__links.is-open { transform: none; opacity: 1; pointer-events: auto; visibility: visible; }
  .nav__links a { padding: 14px 16px; font-size: 1.1rem; }
}

/* ---------- hero ---------- */
/* svh = altura com a barra do navegador aberta: não muda enquanto rola, então nada "pula" no iPhone/Android */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: 108px 0 64px; overflow: hidden; isolation: isolate; }
.hero__school { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero__stripes {
  position: absolute; z-index: -2; right: -10%; top: -20%; width: 70%; height: 140%;
  background: var(--stripes); opacity: .12; transform: rotate(-14deg);
  mask-image: radial-gradient(closest-side, #000 30%, transparent);
  -webkit-mask-image: radial-gradient(closest-side, #000 30%, transparent);
}
.hero__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.hero__title {
  font: 900 clamp(3.6rem, min(11vw, 16svh), 8.5rem)/.86 var(--display); text-transform: uppercase; letter-spacing: -.015em;
}
.hero__title span { color: var(--sky); display: block; }
.hero__sub { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 40ch; margin: 24px 0 32px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__photo { position: relative; margin: 0; justify-self: end; width: min(100%, 420px); }
.hero__photo > img:first-child {
  width: 100%; aspect-ratio: 4 / 5; max-height: 72svh; object-fit: cover; object-position: 50% 80%;
  border-radius: var(--radius); box-shadow: 0 30px 80px -20px rgb(13 111 166 / .45);
}
.hero__photo::before {
  content: ""; position: absolute; inset: 18px -18px -18px 18px; z-index: -1; border-radius: var(--radius);
  background: var(--stripes);
}
.hero__badge { position: absolute; left: -44px; bottom: 28px; width: 112px; height: 112px; filter: drop-shadow(0 12px 24px rgb(0 0 0 / .5)); animation: bob 5s ease-in-out infinite; }

@media (max-width: 860px) {
  .hero { padding-top: 96px; }
  .hero__grid { grid-template-columns: 1fr; gap: 40px; }
  .hero__photo { justify-self: center; width: min(100% - 18px, 380px); }
  .hero__photo > img:first-child { aspect-ratio: 1; object-position: 50% 86%; }
  .hero__badge { left: auto; right: -6px; bottom: -24px; width: 88px; height: 88px; }
}

/* ---------- marquee ---------- */
.marquee { overflow: hidden; background: var(--sky); color: #06141d; border-block: 4px solid var(--brown); }
.marquee__track { display: flex; align-items: center; gap: 28px; width: max-content; padding: 14px 0; animation: marquee 26s linear infinite; }
.marquee span { font: 900 clamp(1.6rem, 3.5vw, 2.4rem)/1 var(--display); text-transform: uppercase; white-space: nowrap; }
.marquee i { font-size: 1.6rem; }

/* ---------- clube ---------- */
.club { padding: clamp(80px, 12vw, 140px) 0; }
.club__grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.club__crest { position: relative; display: grid; place-items: center; }
.club__crest::before {
  content: ""; position: absolute; width: 92%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgb(30 167 240 / .35), transparent 65%);
}
.club__crest img { position: relative; width: min(100%, 360px); height: auto; }
.club__text p { color: var(--muted); max-width: 58ch; margin: 0 0 18px; }
.stats { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 12px 48px; margin: 36px 0 0; }
.stats dt { font-size: .875rem; color: var(--muted); }
.stats dd { margin: 0; font: 900 clamp(2.8rem, 6vw, 4rem)/1 var(--display); color: var(--sky); font-variant-numeric: tabular-nums; }
@media (max-width: 860px) {
  .club__grid { grid-template-columns: 1fr; }
  .club__crest img { width: 220px; }
  .stats { gap: 12px 28px; }
}

/* ---------- modalidades ---------- */
.sports { padding: clamp(72px, 10vw, 120px) 0; background: var(--ink-2); }
.tabs { display: inline-flex; gap: 6px; padding: 6px; border-radius: var(--pill); background: var(--ink); border: 1px solid var(--line); margin-bottom: 28px; }
.tab { display: inline-flex; align-items: center; gap: 8px; padding: 10px 22px; border: 0; border-radius: var(--pill); background: transparent; color: var(--muted); font-weight: 600; transition: background .25s, color .25s; }
.tab.is-active { background: var(--sky); color: #06141d; }
.panel { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--ink); }
.panel.is-active { animation: panelIn .5s var(--ease); }
.panel__art { position: relative; min-height: 360px; display: grid; place-items: center; overflow: hidden; }
.panel__art::before { content: ""; position: absolute; inset: -40%; background: var(--stripes); transform: rotate(-20deg); opacity: .9; }
.panel__art--futebol::before { transform: rotate(20deg); }
.panel__art i {
  position: relative; font-size: clamp(8rem, 18vw, 13rem); color: var(--bone);
  filter: drop-shadow(0 18px 30px rgb(0 0 0 / .45)); animation: spin 18s linear infinite;
}
.panel__body { padding: clamp(28px, 4vw, 56px); display: flex; flex-direction: column; justify-content: center; }
.panel__body h3 { font: 900 clamp(2.4rem, 5vw, 3.6rem)/1 var(--display); text-transform: uppercase; margin-bottom: 14px; }
.panel__body p { color: var(--muted); max-width: 46ch; margin: 0 0 24px; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; }
.chips li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: var(--pill); background: rgb(30 167 240 / .12); color: var(--sky-hi); font-size: .9375rem; font-weight: 500; }
.chips--center { justify-content: center; }
.chips .chip--enemy { background: rgb(255 92 92 / .14); color: #ff9b9b; font-weight: 600; }
.modal.is-enemy .modal__stripes { filter: grayscale(1) brightness(.7); }
.modal.is-enemy #mPhoto { box-shadow: 0 0 0 3px #ff7070; }
.panel__art--basquete::before { transform: rotate(0deg); }
.panel[hidden] { display: none; }
@media (max-width: 560px) {
  /* 3 abas cabendo na tela de qualquer celular */
  .tabs { display: grid; grid-template-columns: repeat(3, 1fr); width: 100%; }
  .tab { justify-content: center; padding: 10px 6px; gap: 6px; font-size: .9375rem; }
}
@media (max-width: 340px) { .tab i { display: none; } }

/* animações contínuas: só transform, na GPU */
.marquee__track, .logo-row__track { will-change: transform; backface-visibility: hidden; }
@media (max-width: 760px) {
  .panel { grid-template-columns: 1fr; }
  .panel__art { min-height: 220px; }
}

/* ---------- elenco ---------- */
.roster { padding: clamp(80px, 12vw, 140px) 0; }
.roster__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 32px; }
.roster__head .h2 { margin-bottom: 0; }
.search { position: relative; display: block; width: min(100%, 320px); }
.search i { position: absolute; left: 16px; top: 50%; translate: 0 -50%; color: var(--muted); }
.search input {
  width: 100%; padding: 14px 18px 14px 44px; border-radius: var(--pill); border: 1px solid rgb(238 244 248 / .22);
  background: var(--ink-2); color: var(--bone); font: inherit;
}
.search input::placeholder { color: #8b9ba7; }
.search input:focus { outline: none; border-color: var(--sky); box-shadow: 0 0 0 3px rgb(30 167 240 / .3); }

.roster__grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.card {
  position: relative; width: 100%; padding: 0; border: 0; text-align: left; border-radius: var(--radius); overflow: hidden;
  background: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line);
  transform: perspective(800px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .4s var(--ease), box-shadow .3s;
}
.card:hover { box-shadow: inset 0 0 0 2px var(--sky), 0 20px 40px -18px rgb(30 167 240 / .5); }
.card__top { position: relative; height: 110px; background: var(--stripes); }
.card__top::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, var(--ink-2)); }
.card__crest { position: absolute; top: 12px; right: 12px; width: 30px; height: 30px; z-index: 1; opacity: .95; }
.card__photo {
  position: relative; z-index: 1; width: 108px; height: 108px; margin: -70px auto 0; border-radius: 50%; object-fit: cover;
  border: 4px solid var(--ink-2); box-shadow: 0 0 0 2px var(--sky); background: var(--brown);
}
.card__body { padding: 14px 16px 20px; text-align: center; }
.card__name { font: 800 1.6rem/1.05 var(--display); text-transform: uppercase; letter-spacing: .01em; }
.card__role { margin-top: 6px; font-size: .875rem; color: var(--muted); }
.card__role.is-admin { color: var(--sky-hi); }
.roster__empty { color: var(--muted); padding: 32px 0; }
@media (max-width: 520px) {
  .roster__grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .card__top { height: 84px; }
  .card__photo { width: 88px; height: 88px; margin-top: -56px; }
  .card__name { font-size: 1.3rem; }
}

/* ---------- o manto ---------- */
.kit { padding: clamp(80px, 12vw, 140px) 0; background: var(--ink-2); }
.kit__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.kit__photo { margin: 0; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; box-shadow: 0 30px 80px -24px rgb(13 111 166 / .5); }
.kit__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 88%; transform: scale(1.35); transform-origin: 62% 88%; }
.kit__text > p { color: var(--muted); max-width: 48ch; margin: 0 0 28px; }
.kit__list { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 16px; }
.kit__list li { display: flex; align-items: center; gap: 16px; color: var(--muted); }
.kit__list strong { display: block; color: var(--bone); font-weight: 600; }
.kit__list img { width: 40px; height: 40px; flex: none; }
.swatch { width: 40px; height: 40px; border-radius: 50%; flex: none; box-shadow: inset 0 0 0 2px rgb(238 244 248 / .15); }
.swatch--sky { background: var(--sky); }
.swatch--brown { background: var(--brown); }
.soon-card {
  display: flex; align-items: center; gap: 16px; padding: 18px 20px; border-radius: var(--radius);
  border: 1px dashed rgb(108 200 255 / .45); background: rgb(30 167 240 / .06);
}
.soon-card i { font-size: 1.8rem; color: var(--sky); }
.soon-card strong { display: block; }
.soon-card span { color: var(--muted); font-size: .9375rem; }
@media (max-width: 860px) {
  .kit__grid { grid-template-columns: 1fr; }
  .kit__photo { aspect-ratio: 4 / 3; }
}

/* ---------- agenda ---------- */
.agenda { padding: clamp(80px, 12vw, 140px) 0; }
.agenda__grid { display: grid; grid-template-columns: 1fr 1fr 1.1fr; gap: 16px; }
.match {
  border-radius: var(--radius); background: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line); padding: 22px;
  display: grid; gap: 18px; align-content: start;
}
.match__top { display: inline-flex; align-items: center; gap: 8px; color: var(--sky-hi); font-weight: 600; }
.match__vs { display: flex; align-items: center; justify-content: center; gap: 22px; padding: 10px 0; }
.match__vs span { font: 900 2rem/1 var(--display); color: var(--muted); }
.match__vs img { width: 64px; height: 64px; }
.match__tbd {
  width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center;
  border: 2px dashed rgb(238 244 248 / .3); font: 900 1.8rem/1 var(--display); color: var(--muted);
}
.match__when { margin: 0; display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--muted); font-size: .9375rem; }
.agenda__note {
  border-radius: var(--radius); padding: 26px; background: var(--sky); color: #06141d;
  display: flex; flex-direction: column; justify-content: space-between; gap: 18px;
}
.agenda__note i { font-size: 2.2rem; }
.agenda__note p { margin: 0; font-weight: 500; font-size: 1.125rem; line-height: 1.45; }
@media (max-width: 860px) { .agenda__grid { grid-template-columns: 1fr 1fr; } .agenda__note { grid-column: 1 / -1; } }
@media (max-width: 520px) { .agenda__grid { grid-template-columns: 1fr; } }

/* ---------- patrocinadores ---------- */
.sponsors { padding: clamp(80px, 12vw, 140px) 0; background: var(--ink-2); }
.sponsors__title { max-width: none; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; }
.sponsors__title small {
  font: 500 .9rem/1 var(--body); text-transform: lowercase; letter-spacing: .02em; color: var(--muted);
  padding: 6px 12px; border-radius: var(--pill); border: 1px solid var(--line); translate: 0 -6px;
}
.sponsors .h2 { margin-bottom: 8px; }
.sponsors__fine { margin: 0 0 36px; font-size: .8125rem; color: var(--muted); }
.logo-rows {
  display: grid; gap: 14px;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.logo-row { overflow: hidden; }
.logo-row__track { list-style: none; margin: 0; padding: 0; display: flex; gap: 14px; width: max-content; animation: marquee 40s linear infinite; }
.logo-row--rev .logo-row__track { animation-direction: reverse; animation-duration: 46s; }
.logo-rows:hover .logo-row__track { animation-play-state: paused; }
.brand-logo {
  display: flex; align-items: center; gap: 14px; padding: 18px 26px; border-radius: var(--radius);
  background: var(--ink); box-shadow: inset 0 0 0 1px var(--line); white-space: nowrap;
  transition: box-shadow .3s, transform .3s var(--ease);
}
.brand-logo img { width: 40px; height: 40px; opacity: .85; transition: opacity .3s; }
.brand-logo span { font: 800 1.35rem/1 var(--display); text-transform: uppercase; letter-spacing: .02em; color: var(--muted); transition: color .3s; }
.brand-logo:hover { box-shadow: inset 0 0 0 2px var(--sky); transform: translateY(-2px); }
.brand-logo:hover img { opacity: 1; }
.brand-logo:hover span { color: var(--bone); }
.sponsors .sponsors__cta { margin-top: 40px; }
@media (max-width: 520px) {
  .brand-logo { padding: 14px 18px; }
  .brand-logo img { width: 30px; height: 30px; }
  .brand-logo span { font-size: 1.1rem; }
}
@media (prefers-reduced-motion: reduce) {
  .logo-row { overflow-x: auto; }
}
.sponsors__cta { margin-top: 36px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 24px 28px; border-radius: var(--radius); background: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.sponsors__cta p { margin: 0; font: 800 clamp(1.5rem, 3vw, 2rem)/1.1 var(--display); text-transform: uppercase; }

/* ---------- redes ---------- */
.follow { padding: clamp(80px, 12vw, 140px) 0; position: relative; overflow: hidden; isolation: isolate; }
.follow::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--stripes); opacity: .08; }
.follow__inner { text-align: center; display: grid; justify-items: center; }
.follow__inner .h2 { margin-bottom: 12px; }
.follow__inner > p { color: var(--muted); margin: 0 0 28px; }
.socials { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.social {
  display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: var(--pill);
  border: 1px solid rgb(238 244 248 / .2); background: var(--ink-2); text-decoration: none; font-weight: 600;
  transition: border-color .25s, transform .25s var(--ease);
}
.social i { font-size: 1.3rem; color: var(--sky); }
.social small { font-size: .6875rem; font-weight: 500; color: var(--muted); padding: 2px 8px; border-radius: var(--pill); background: rgb(238 244 248 / .08); }
.social:hover { border-color: var(--sky); transform: translateY(-2px); }
.socials--sm .social { padding: 8px 12px; font-size: .875rem; }
.socials--sm .social small { display: none; }
.toast {
  position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); z-index: 80; translate: -50% 0;
  padding: 12px 20px; border-radius: var(--pill); background: var(--bone); color: var(--ink); font-weight: 600;
  opacity: 0; transform: translateY(16px); transition: opacity .3s, transform .3s var(--ease), visibility .3s; pointer-events: none;
  width: max-content; max-width: calc(100vw - 32px); text-align: center; visibility: hidden;
}
.toast.is-on { opacity: 1; transform: none; visibility: visible; }

/* ---------- galeria ---------- */
.gallery { padding: clamp(80px, 12vw, 140px) 0; }
.bento { display: grid; grid-template-columns: 1.4fr 1fr 1fr; grid-template-rows: 280px 280px; gap: 14px; }
.bento__item { position: relative; padding: 0; border: 0; border-radius: var(--radius); overflow: hidden; background: var(--ink-2); }
.bento__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
button.bento__item:hover img { transform: scale(1.05); }
.bento__item--a { grid-row: span 2; }
.bento__item--b { grid-row: span 2; }
.bento__item--b img { object-position: 50% 70%; }
.bento__item--d { background: var(--sky); color: #06141d; display: flex; align-items: flex-end; padding: 22px; }
.bento__item--d p { margin: 0; font: 900 clamp(2rem, 3.6vw, 3rem)/.9 var(--display); text-transform: uppercase; }
.bento { grid-template-areas: "a b c" "a b d"; }
.bento__item--a { grid-area: a; } .bento__item--b { grid-area: b; } .bento__item--c { grid-area: c; } .bento__item--d { grid-area: d; }
@media (max-width: 860px) {
  .bento { grid-template-columns: 1fr 1fr; grid-template-rows: 240px 320px 160px; grid-template-areas: "a a" "b c" "b d"; }
}
@media (max-width: 480px) {
  .bento { grid-template-rows: 200px 260px 140px; }
}

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 48px 0 calc(48px + env(safe-area-inset-bottom)); background: var(--ink-2); }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.brand--lg img { width: 56px; height: 56px; }
.brand small { display: block; font: 500 .8125rem/1.3 var(--body); letter-spacing: 0; color: var(--muted); }
.footer__note { color: var(--muted); margin: 0; font-size: .9375rem; }

/* ---------- modal + lightbox ---------- */
dialog { border: 0; padding: 0; color: var(--bone); background: transparent; }
dialog::backdrop { background: rgb(6 9 12 / .78); backdrop-filter: blur(6px); }
.modal[open], .lightbox[open] { animation: panelIn .4s var(--ease); }
.modal { width: min(360px, 100% - 32px); }
.modal__card { position: relative; border-radius: 22px; overflow: hidden; background: var(--ink-2); text-align: center; padding: 0 24px 28px; box-shadow: 0 30px 80px rgb(0 0 0 / .5), inset 0 0 0 1px var(--line); }
.modal__stripes { height: 150px; margin: 0 -24px; background: var(--stripes); }
.modal__card > img#mPhoto { width: 160px; height: 160px; border-radius: 50%; object-fit: cover; margin: -96px auto 16px; border: 6px solid var(--ink-2); box-shadow: 0 0 0 3px var(--sky); position: relative; }
.modal__card h3 { font: 900 2.4rem/1 var(--display); text-transform: uppercase; }
.modal__card p { color: var(--muted); margin: 8px 0 20px; }
.modal__crest { width: 44px; height: 44px; margin: 22px auto 0; opacity: .9; }
.modal__close { position: absolute; z-index: 2; top: 12px; right: 12px; width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgb(15 19 23 / .75); display: grid; place-items: center; font-size: 1.1rem; }
.lightbox { max-width: min(1100px, 100% - 24px); max-height: 92dvh; }
.lightbox img { max-height: 88dvh; width: auto; border-radius: var(--radius); }

/* ---------- reveal + keyframes ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0ms); }
.reveal.is-in { opacity: 1; transform: none; }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes bob { 50% { transform: translateY(-10px) rotate(-4deg); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes panelIn { from { opacity: 0; transform: translateY(16px) scale(.98); } }
@keyframes pop { from { opacity: 0; transform: translateX(-10px); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
