/* TLC 2027 — site styles. Layout is inline per element; this file holds resets, states and responsive rules. */
html { scroll-behavior: smooth; }
body { margin: 0; background: #ffffff; color: #0b0b0b; font-family: 'Archivo', system-ui, sans-serif; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: #0b0b0b; }
a:hover { color: #555555; }
h1, h2, h3, h4, p, blockquote, figure { margin: 0; }
img { display: block; max-width: 100%; }
summary { list-style: none; }
summary::-webkit-details-marker { display: none; }
details[open] .faq-plus { transform: rotate(45deg); }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
[hidden] { display: none !important; }
body.no-scroll { overflow: hidden; }

/* header: full nav on desktop, Menu button + drawer below 900px */
.nav-toggle { display: none !important; }
@media (max-width: 899px) {
  .nav-desktop { display: none !important; }
  .nav-toggle { display: inline-flex !important; align-items: center; }
}
@media (min-width: 900px) { #mobile-nav { display: none !important; } }

/* hover states */
.h1:hover { opacity: 0.7 !important; }
.h2:hover { background: #e6e6e6 !important; color: #0b0b0b !important; }
.h3:hover { background: #ffffff !important; color: #0b0b0b !important; }
.h4:hover { background: #333333 !important; color: #ffffff !important; }
.h5:hover { background: #0b0b0b !important; color: #ffffff !important; }

/* ─── motion ───────────────────────────────────────────────
   Only applies once main.js adds .motion to <html>, so the page
   is fully visible if scripts are blocked or motion is reduced. */
.motion [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 0.9s cubic-bezier(.2,.7,.2,1), transform 0.9s cubic-bezier(.2,.7,.2,1); transition-delay: var(--d, 0s); }
.motion [data-reveal="fade"] { transform: none; }
.motion [data-reveal="scale"] { transform: scale(0.96); }
.motion [data-reveal].in { opacity: 1; transform: none; }

@keyframes heroIn { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes heroPhoto { from { opacity: 0; transform: scale(1.08); } to { opacity: 1; transform: scale(1); } }
.motion #top [data-hero] { opacity: 0; animation: heroIn 1s cubic-bezier(.2,.7,.2,1) forwards; animation-delay: var(--d, 0s); }
.motion #top img { animation: heroPhoto 1.8s cubic-bezier(.2,.7,.2,1) both; }

/* image hover: gentle zoom inside rounded frames */
.zoom-frame { overflow: hidden; }
.zoom-frame > img, img.zoom { transition: transform 0.9s cubic-bezier(.2,.7,.2,1); }
@media (hover: hover) {
  .zoom-frame:hover > img, img.zoom:hover { transform: scale(1.04); }
}

/* buttons: arrow nudge */
a span[aria-hidden="true"], button span[aria-hidden="true"] { display: inline-block; transition: transform 0.3s ease; }
a:hover span[aria-hidden="true"], button:hover span[aria-hidden="true"] { transform: translateX(4px); }

/* pills + event cards lift */
#events article { transition: transform 0.5s cubic-bezier(.2,.7,.2,1), box-shadow 0.5s; }
@media (hover: hover) { #events article:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -30px rgba(0,0,0,0.3); } }

/* reel modal */
@keyframes modalIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes dialogIn { from { opacity: 0; transform: translateY(20px) scale(0.98); } to { opacity: 1; transform: none; } }
#reel:not([hidden]) { animation: modalIn 0.3s ease; }
#reel:not([hidden]) [role="dialog"] { animation: dialogIn 0.45s cubic-bezier(.2,.7,.2,1); }

/* FAQ answer */
@keyframes faqIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
details[open] > p { animation: faqIn 0.35s ease; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ─── gallery pop-up ─────────────────────────────────────── */
.gm { position: fixed; inset: 0; z-index: 200; background: #0b0b0b; color: #ffffff; display: flex; flex-direction: column; }
.gm[hidden], .gm-view[hidden] { display: none; }
.gm-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px clamp(18px, 4vw, 48px); border-bottom: 1px solid rgba(255,255,255,0.12); }
.gm-title { font-size: clamp(20px, 2.4vw, 28px); letter-spacing: -0.02em; }
.gm-title em { font-family: 'Instrument Serif', serif; font-style: italic; font-weight: 400; }
.gm-count { font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; opacity: 0.6; margin-left: 10px; }
.gm-close, .gm-nav, .gm-back { background: rgba(255,255,255,0.1); color: #ffffff; border: 0; border-radius: 999px; cursor: pointer; font: inherit; transition: background 0.2s; }
.gm-close { width: 48px; height: 48px; font-size: 18px; }
.gm-close:hover, .gm-nav:hover, .gm-back:hover { background: rgba(255,255,255,0.22); }
.gm-close:focus-visible, .gm-nav:focus-visible, .gm-back:focus-visible, .gm-thumb:focus-visible { outline: 2px solid #ffffff; outline-offset: 3px; }
.gm-grid { flex: 1; overflow-y: auto; padding: clamp(14px, 3vw, 36px) clamp(18px, 4vw, 48px) 48px; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(46%, 220px), 1fr)); gap: 12px; align-content: start; grid-auto-rows: max-content; min-height: 0; }
.gm-thumb { display: block; padding: 0; border: 0; background: #1a1a1a; border-radius: 16px; overflow: hidden; cursor: zoom-in; }
.gm-thumb img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; display: block; transition: transform 0.6s cubic-bezier(.2,.7,.2,1), opacity 0.3s; }
.gm-thumb:hover img { transform: scale(1.05); }
.gm-view { position: absolute; inset: 0; background: #0b0b0b; display: flex; align-items: center; justify-content: center; padding: 84px clamp(12px, 7vw, 110px) 72px; }
.gm-full { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 10px; opacity: 0; transition: opacity 0.35s ease; user-select: none; }
.gm-full.ready { opacity: 1; }
.gm-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 56px; height: 56px; font-size: 22px; }
.gm-prev { left: clamp(10px, 2vw, 32px); }
.gm-next { right: clamp(10px, 2vw, 32px); }
.gm-back { position: absolute; top: 18px; left: clamp(18px, 4vw, 48px); padding: 14px 24px; font-size: 15px; font-weight: 500; }
.gm-pos { position: absolute; bottom: 24px; left: 0; right: 0; text-align: center; font-size: 14px; letter-spacing: 0.16em; opacity: 0.7; }
@media (max-width: 640px) { .gm-nav { top: auto; bottom: 12px; transform: none; width: 48px; height: 48px; } }
body.gm-lock { overflow: hidden; }

/* ─── gallery bento ──────────────────────────────────────── */
.gb { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: clamp(150px, 16vw, 230px); gap: 14px; text-align: left; }
.gb-tile { position: relative; padding: 0; border: 0; border-radius: 22px; overflow: hidden; background: #e8e6e3; cursor: zoom-in; }
.gb-tile img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.9s cubic-bezier(.2,.7,.2,1); }
.gb-tile:hover img { transform: scale(1.05); }
.gb-tile:focus-visible { outline: 2px solid #0b0b0b; outline-offset: 3px; }
.gb-a { grid-column: 1 / 3; grid-row: 1 / 3; }
.gb-b { grid-column: 3; grid-row: 1; }
.gb-c { grid-column: 4; grid-row: 1 / 3; }
.gb-d { grid-column: 3; grid-row: 2; }
.gb-e { grid-column: 1; grid-row: 3; }
.gb-f { grid-column: 2 / 4; grid-row: 3; }
.gb-g { grid-column: 4; grid-row: 3; }
.gb-more { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; gap: 4px; padding: 22px; background: linear-gradient(to top, rgba(11,11,11,0.82), rgba(11,11,11,0.35)); color: #ffffff; transition: background 0.3s; }
.gb-more strong { font-size: clamp(36px, 4vw, 56px); font-weight: 400; letter-spacing: -0.03em; line-height: 1; }
.gb-more span { font-size: 15px; font-weight: 500; }
.gb-tile:hover .gb-more { background: linear-gradient(to top, rgba(11,11,11,0.9), rgba(11,11,11,0.5)); }
@media (max-width: 760px) {
  .gb { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 42vw; gap: 10px; }
  .gb-tile { border-radius: 16px; }
  .gb-a { grid-column: 1 / 3; grid-row: auto; }
  .gb-b, .gb-d, .gb-e, .gb-g { grid-column: auto; grid-row: auto; }
  .gb-c { grid-column: 2; grid-row: span 2; }
  .gb-f { grid-column: 1 / 3; grid-row: auto; }
}
