/* =============================================================================
   ABF Aftercare — page styles

   Every value here comes from ds/tokens/ or from the reference implementation
   at "ABF Design System/templates/attendee-recap/aftercare.standalone.html".
   Nothing is rounded to a 4/8px grid; the brand values are as-written.
   ============================================================================= */

/* --- reset ---------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--abf-off-white);
  color: var(--abf-navy);
  font-family: Inter, Arial, sans-serif;
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: -0.02em;
  line-height: 1.5;
}

h1, h2, h3, p, figure { margin: 0; }
img { max-width: 100%; }
::selection { background: var(--abf-magenta); color: #fff; }

/* Both pages decide where you belong before they paint: index.html may bounce
   you to the login, login.html may wave you straight through. Hiding the body
   until that is settled avoids a flash of the wrong page. Scripts drop the
   class; <noscript> in the markup lifts it for anyone without JavaScript. */
html.is-booting body { visibility: hidden; }

:where(a, button, input, [tabindex]):focus-visible {
  outline: var(--focus-width) solid var(--focus-ring);
  outline-offset: var(--focus-offset-outer);
}

/* --- type ----------------------------------------------------------------- */

.eyebrow {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0;
  line-height: 1.2;
}

.display {
  font-size: clamp(2.25rem, 1.2rem + 4.4vw, 4rem);
  font-weight: 500;
  line-height: 0.9;
  letter-spacing: -0.02em;
}

.section-title {
  font-size: clamp(2rem, 1.35rem + 2.7vw, 3rem);
  font-weight: 600;
  line-height: 0.9;
  letter-spacing: -0.08rem;
  text-transform: uppercase;
}

.section-note {
  font-size: 0.875rem;
  font-weight: 500;
  opacity: 0.65;
  max-width: 22rem;
}

.accent { color: var(--abf-magenta); }

/* --- buttons -------------------------------------------------------------- */
/* ABF buttons invert on hover. They never lighten, darken or fade. */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.375rem 0.75rem;
  border-radius: var(--radius-control);
  border: 1.5px solid transparent;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition-control);
}

.btn:disabled { opacity: 0.5; cursor: default; }

.btn--primary { background: var(--abf-magenta); border-color: var(--abf-magenta); color: #fff; }
.btn--primary:hover:not(:disabled) { background: var(--abf-navy); border-color: var(--abf-navy); }

.btn--secondary { background: transparent; border-color: var(--abf-navy-faded); color: var(--abf-navy); }
.btn--secondary:hover:not(:disabled) { background: var(--abf-navy); border-color: var(--abf-navy); color: #fff; }

/* on navy, buttons invert to white instead */
.on-dark .btn--primary:hover:not(:disabled),
.on-dark .btn--secondary:hover:not(:disabled) { background: #fff; border-color: #fff; color: var(--abf-navy); }
.on-dark .btn--secondary { border-color: var(--abf-white-faded); color: #fff; }

/* --- shell ---------------------------------------------------------------- */

.shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 26rem;
  min-height: 100vh;
}

.main { min-width: 0; }

.wrap {
  max-width: 70rem;
  margin: 0 auto;
  padding-inline: 2.5rem;
}

/* --- header --------------------------------------------------------------- */

.header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--abf-off-white);
  border-bottom: 1.5px solid var(--abf-navy-faded);
}

.header__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  padding-block: 1.25rem;
}

.header__brand { display: flex; align-items: center; gap: 1rem; min-width: 0; }
.header__actions { display: flex; align-items: center; gap: 1rem; }

/* The wordmark is masked, not <img>, so it takes currentColor per theme. */
.logo {
  width: 13rem;
  flex: none;
  aspect-ratio: 271 / 22;
  background-color: var(--abf-navy);
  -webkit-mask: url(../ds/assets/logo.svg) no-repeat center / contain;
          mask: url(../ds/assets/logo.svg) no-repeat center / contain;
}
.logo--light { background-color: #fff; }

/* Tags are square — 0 radius against 1.25rem cards is a brand signature. */
.tag {
  padding: 0.3125rem 0.5rem;
  background: var(--abf-magenta);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1;
}

.header__domain { font-size: 0.875rem; font-weight: 600; opacity: 0.65; }

/* Quiet by design — signing out is a rare, deliberate act, not a call to
   action competing with the ticket button next to it. */
.header__signout {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.875rem;
  font-weight: 600;
  opacity: 0.65;
  transition: var(--transition-control);
}
.header__signout:hover { opacity: 1; color: var(--abf-magenta); }

/* --- hero ----------------------------------------------------------------- */

.hero { padding-top: 4rem; }
.hero__heading { margin-top: 1rem; max-width: 42rem; }
.hero__intro {
  margin-top: 1.5rem;
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.5;
  max-width: 36rem;
  text-wrap: pretty;
}

/* --- login page ----------------------------------------------------------- */
/* login.html only. One card, centred, nothing else on the page. */

.login-page {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1.5rem;
}

.login { width: 100%; max-width: 27rem; }

.login__brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.login__card {
  padding: 2rem;
  background: #fff;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-accordion);
}

.login__icon {
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-round);
  background: var(--abf-magenta);
  color: #fff;
}

.login__heading {
  margin-top: 1.25rem;
  font-size: 1.75rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.04rem;
}

.login__intro {
  margin-top: 0.75rem;
  font-size: 0.9375rem;
  font-weight: 400;
  line-height: 1.4;
  opacity: 0.7;
  text-wrap: pretty;
}

.login__form {
  margin-top: 1.5rem;
  display: grid;
  gap: 0.75rem;
}

.login__input {
  width: 100%;
  padding: 0.625rem 0.875rem;
  border-radius: var(--radius-control);
  border: 1.5px solid var(--abf-navy-faded);
  background: var(--abf-off-white);
  color: var(--abf-navy);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  transition: var(--transition-control);
}
.login__input::placeholder { color: var(--abf-navy); opacity: 0.45; font-weight: 500; }
.login__input:hover { border-color: var(--abf-navy); }

.login__submit { padding-block: 0.625rem; font-size: 1rem; }

.login__error {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--abf-magenta);
  line-height: 1.3;
}

.login__note {
  margin-top: 1.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.4;
  opacity: 0.65;
  text-align: center;
  text-wrap: pretty;
}

/* --- sections ------------------------------------------------------------- */

.section { margin-top: 7rem; }
.section--first { margin-top: 5rem; }

.section__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.section__body { margin-top: 2.5rem; }

/* --- session recordings --------------------------------------------------- */

.videos {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.video-tile {
  position: relative;
  display: block;
  padding: 0;
  border: 0;
  background: var(--abf-navy);
  border-radius: var(--radius-card);
  overflow: hidden;
  text-align: left;
  color: #fff;
  font-family: inherit;
  cursor: pointer;
  box-shadow: var(--shadow-card);
  transition: var(--transition-control);
}
.video-tile:hover { transform: translateY(-6px); }
.video-tile[disabled] { cursor: default; }
.video-tile[disabled]:hover { transform: none; }

.video-tile__image {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
}

/* Text over photography is protected by a gradient, never a scrim or blur. */
.video-tile__overlay,
.band__overlay {
  position: absolute;
  inset: 0;
  background-image: var(--overlay-photo);
  pointer-events: none;
}

.video-tile__caption { position: absolute; left: 1.25rem; right: 1.25rem; bottom: 1.25rem; }

.video-tile__meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
}

.play-disc {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  flex: none;
  border-radius: var(--radius-round);
  background: var(--abf-magenta);
}

/* These live inside a <button>, so they have to be spans — but they still need
   to stack. */
.video-tile__speaker { display: block; margin-top: 0.5rem; font-size: 1rem; font-weight: 600; line-height: 1.2; }
.video-tile__title { display: block; font-size: 0.875rem; font-weight: 400; opacity: 0.85; line-height: 1.3; }

/* --- slides & handouts ---------------------------------------------------- */

.file-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  align-items: start;
}

.file-group {
  background: #fff;
  border-radius: var(--radius-card);
  padding: 1.5rem;
  box-shadow: var(--shadow-plan);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.file-group__head { display: flex; gap: 1rem; align-items: center; }

.avatar {
  width: 4rem;
  height: 4rem;
  border-radius: var(--radius-round);
  object-fit: cover;
  flex: none;
}

.avatar--label {
  background: var(--abf-navy);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6875rem;
  font-weight: 700;
  text-align: center;
  line-height: 1.1;
}

.file-group__title { font-size: 1.5rem; font-weight: 600; line-height: 1.2; }
.file-group__subtitle { font-size: 0.875rem; font-weight: 400; opacity: 0.7; line-height: 1.3; }

.file-list { display: grid; gap: 0.5rem; }

.file-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  border-radius: var(--radius-small);
  background: var(--abf-off-white);
  color: var(--abf-navy);
  text-decoration: none;
  transition: var(--transition-control);
}
.file-row:hover { background: var(--abf-navy); color: #fff; }

.file-row__kind {
  padding: 0.25rem 0.4rem;
  background: var(--abf-magenta);
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 700;
  line-height: 1;
  flex: none;
}

.file-row__title { flex: 1; min-width: 0; font-size: 0.875rem; font-weight: 600; }
.file-row__size { font-size: 0.75rem; font-weight: 500; opacity: 0.6; flex: none; }

/* --- photo gallery -------------------------------------------------------- */

.photos {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 11rem;
  gap: 1rem;
}

.photos img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-card);
  display: block;
}

.photos .span-c2 { grid-column: span 2; }
.photos .span-r2 { grid-row: span 2; }

/* --- save the date band --------------------------------------------------- */

.band {
  margin-top: 7rem;
  position: relative;
  border-radius: var(--radius-card);
  overflow: hidden;
  min-height: 24rem;
  display: flex;
  align-items: flex-end;
  padding: 2.5rem;
  color: #fff;
}

.band__image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.band__content { position: relative; max-width: 34rem; }
.band__heading {
  margin-top: 0.75rem;
  font-size: clamp(1.5rem, 1.1rem + 1.7vw, 2rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.band__body { margin-top: 1rem; font-size: 1rem; font-weight: 400; line-height: 1.5; opacity: 0.9; }
.band__actions { display: flex; gap: 1.5rem; margin-top: 1.5rem; flex-wrap: wrap; }

/* The same band, higher up: right under the hero, above the recordings. */
.band--feature { margin-top: 4rem; }

/* --- footer --------------------------------------------------------------- */

.footer {
  margin-top: 7rem;
  background: var(--abf-navy);
  color: #fff;
  padding: 4rem 0 2rem;
}

.footer__top {
  display: flex;
  justify-content: space-between;
  gap: 2.5rem;
  flex-wrap: wrap;
  align-items: flex-start;
}

.footer__col { display: flex; flex-direction: column; gap: 0.75rem; font-size: 0.875rem; }
.footer__col-title { font-weight: 600; opacity: 0.6; }
.footer__col a, .footer__col span { color: #fff; text-decoration: none; font-weight: 500; }
.footer__col a:hover { text-decoration: underline; }

.footer__bottom {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--abf-white-faded);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.875rem;
  opacity: 0.75;
}

/* --- agent panel ---------------------------------------------------------- */

.panel {
  position: sticky;
  top: 0;
  align-self: start;
  height: 100vh;
  background: var(--abf-navy);
  color: #fff;
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--abf-white-faded);
}

.panel__header { padding: 1.5rem 1.5rem 1.25rem; border-bottom: 1px solid var(--abf-white-faded); flex: none; }
.panel__title-row { display: flex; align-items: center; gap: 0.75rem; }

.panel__spark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  flex: none;
  border-radius: var(--radius-small);
  background: var(--abf-magenta);
}
.panel__spark img { height: 1rem; width: auto; filter: brightness(0) invert(1); }

.panel__title { font-size: 1.25rem; font-weight: 600; line-height: 1.1; }
.panel__subtitle { font-size: 0.75rem; font-weight: 500; opacity: 0.7; line-height: 1.3; }

/* Microsoft + Silverside credit. Client requirement: always visible, in the
   panel header — never only in the footer. */
.panel__credit {
  margin-top: 1.25rem;
  padding: 0.75rem;
  border-radius: var(--radius-small);
  background: #ffffff0f;
  display: flex;
  align-items: center;
  gap: 0.875rem;
}

/* partner-microsoft.png is a 1000x1000 tile with an OPAQUE WHITE ground, so it
   needs a white plate. Do not drop it bare on navy, do not invert it. */
.panel__credit-plate {
  flex: none;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: var(--radius-control);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.panel__credit-plate img { width: 3.25rem; height: 3.25rem; object-fit: contain; display: block; }

.panel__credit-text { font-size: 0.75rem; font-weight: 500; line-height: 1.4; opacity: 0.9; }
.panel__credit-text strong { font-weight: 700; }
.panel__credit-text a { color: var(--abf-azure); font-weight: 700; text-decoration: none; }
.panel__credit-text a:hover { text-decoration: underline; }

.panel__body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* When a Copilot embed is configured it takes the whole body, no padding. */
.panel__body.has-embed { padding: 0; gap: 0; }
.panel__embed { flex: 1; min-height: 0; display: flex; }
.panel__embed > iframe { flex: 1; width: 100%; height: 100%; border: 0; }

.panel__message { display: flex; gap: 0.75rem; align-items: flex-start; }
.panel__avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  flex: none;
  border-radius: var(--radius-round);
  background: var(--abf-magenta);
  font-size: 0.625rem;
  font-weight: 700;
}
.panel__bubble {
  background: #ffffff0f;
  border-radius: var(--radius-small);
  padding: 0.75rem;
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.45;
}

.panel__prompts-label {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0;
  opacity: 0.55;
  margin-top: 0.5rem;
}
.panel__prompts { display: flex; flex-direction: column; gap: 0.5rem; }

.prompt-chip {
  text-align: left;
  padding: 0.625rem 0.75rem;
  border-radius: var(--radius-small);
  border: 1px solid var(--abf-white-faded);
  background: transparent;
  color: #fff;
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.35;
  cursor: pointer;
  transition: var(--transition-control);
}
.prompt-chip:hover { background: #fff; color: var(--abf-navy); border-color: #fff; }

.panel__composer { flex: none; padding: 1rem 1.5rem 1.25rem; border-top: 1px solid var(--abf-white-faded); }

.composer {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  padding: 0.5rem 0.5rem 0.5rem 0.875rem;
  border-radius: var(--radius-small);
  background: #ffffff0f;
  border: 1px solid var(--abf-white-faded);
}
.composer input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: 0;
  outline: none;
  color: #fff;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}
.composer input::placeholder { color: #fff; opacity: 0.5; }

.composer__send {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  flex: none;
  border-radius: var(--radius-control);
  border: 0;
  background: var(--abf-magenta);
  color: #fff;
  cursor: pointer;
  transition: var(--transition-control);
}
.composer__send:hover { background: #fff; color: var(--abf-navy); }

.panel__disclaimer { margin-top: 0.625rem; font-size: 0.6875rem; font-weight: 500; opacity: 0.5; line-height: 1.35; }

/* Launcher — only used once the panel undocks below 1200px. */
.panel-launcher {
  display: none;
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 30;
  align-items: center;
  gap: 0.625rem;
  padding: 0.75rem 1.125rem;
  border: 0;
  border-radius: var(--radius-round);
  background: var(--abf-magenta);
  color: #fff;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--shadow-lifted);
  transition: var(--transition-control);
}
.panel-launcher:hover { background: var(--abf-navy); }
.panel-launcher img { height: 1rem; width: auto; filter: brightness(0) invert(1); }

.panel__close {
  display: none;
  margin-left: auto;
  flex: none;
  width: 2rem;
  height: 2rem;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-control);
  border: 1px solid var(--abf-white-faded);
  background: transparent;
  color: #fff;
  font-family: inherit;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  transition: var(--transition-control);
}
.panel__close:hover { background: #fff; color: var(--abf-navy); border-color: #fff; }

/* --- video lightbox ------------------------------------------------------- */

@keyframes abfFade { from { opacity: 0 } to { opacity: 1 } }
@keyframes abfRise { from { opacity: 0; transform: translateY(12px) } to { opacity: 1; transform: none } }

.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: #001358e6;
  align-items: center;
  justify-content: center;
  padding: 2.5rem;
  animation: abfFade 0.25s var(--ease-out-quint);
}
.modal.is-open { display: flex; }

.modal__card {
  width: 100%;
  max-width: 64rem;
  max-height: 100%;
  overflow-y: auto;
  animation: abfRise 0.35s var(--ease-out-quint);
}

.modal__frame {
  position: relative;
  border-radius: var(--radius-card);
  overflow: hidden;
  background: #000;
  box-shadow: var(--shadow-lifted);
}

.modal__player {
  position: relative;
  aspect-ratio: 16 / 9;
  max-height: calc(100vh - 15rem);   /* leave room for the caption block */
}
.modal__player iframe,
.modal__player video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.modal__fallback {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  text-align: center;
  padding: 2rem;
  color: #fff;
}
.modal__fallback img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.4; }
.modal__fallback > *:not(img) { position: relative; }

.modal__block { font-size: 0.875rem; font-weight: 500; opacity: 0.8; }
.modal__speaker { margin-top: 0.375rem; font-size: 1.5rem; font-weight: 600; line-height: 1.2; }
.modal__title { font-size: 1rem; font-weight: 400; opacity: 0.9; line-height: 1.3; }
.modal__runtime { margin-top: 0.5rem; font-size: 0.875rem; font-weight: 500; opacity: 0.6; }

.modal__foot {
  margin-top: 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.5rem;
  flex-wrap: wrap;
  color: #fff;
}
.modal__info { min-width: 0; flex: 1 1 20rem; }
.modal__foot .btn { flex: none; }

/* --- utility -------------------------------------------------------------- */

.is-hidden { display: none !important; }

.empty-note {
  padding: 2rem;
  border-radius: var(--radius-card);
  background: #fff;
  box-shadow: var(--shadow-accordion);
  font-size: 0.875rem;
  font-weight: 500;
  opacity: 0.7;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* =============================================================================
   Responsive

   The reference implementation stops at desktop. The HANDOFF flags the docked
   panel below ~1100px as an open design decision; the call taken here is:
   undock it into a magenta launcher that opens the same panel as a right-hand
   sheet. Same chrome, same credits, no second design to maintain.
   ============================================================================= */

@media (max-width: 1200px) {
  .shell { grid-template-columns: minmax(0, 1fr); }

  /* The closed panel sits a full panel-width off the right edge, which would
     otherwise widen the document and let the whole page scroll sideways.
     overflow-x: clip (not hidden) stops that without creating a scroll
     container, so the sticky header keeps working. */
  html, body { overflow-x: clip; }

  .panel {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 40;
    width: min(26rem, 100vw);
    height: 100dvh;
    border-left: 1px solid var(--abf-white-faded);
    transform: translateX(100%);
    visibility: hidden;
    transition: transform var(--duration-base) var(--ease-out-quint),
                visibility var(--duration-base) var(--ease-out-quint);
  }
  .panel.is-open { transform: none; visibility: visible; }

  .panel__close { display: flex; }
  .panel-launcher { display: inline-flex; }
  .panel-launcher.is-hidden { display: none; }
}

@media (max-width: 1024px) {
  .videos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .wrap { padding-inline: 1.5rem; }
  .section { margin-top: 5rem; }
  .band { margin-top: 5rem; padding: 1.75rem; min-height: 20rem; }
  .band--feature { margin-top: 3rem; }
  .footer { margin-top: 5rem; }
  .file-groups { grid-template-columns: minmax(0, 1fr); }
  .photos { grid-auto-rows: 9rem; }
}

@media (max-width: 700px) {
  .header__inner { padding-block: 1rem; gap: 0.75rem; }
  .header__domain { display: none; }
  .header__brand { gap: 0.625rem; }
  .logo { width: 8rem; }
  .hero { padding-top: 2.5rem; }
  .hero__intro { font-size: 1.0625rem; }
  .videos { grid-template-columns: minmax(0, 1fr); }
  .photos { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 8rem; }
  .photos .span-c2 { grid-column: span 2; }
  .photos .span-r2 { grid-row: span 1; }
  .login__card { padding: 1.5rem; }
  .modal { padding: 1rem; }
  .band__actions { gap: 0.75rem; }
  .panel-launcher { right: 1rem; bottom: 1rem; }
}

@media (max-width: 460px) {
  .wrap { padding-inline: 1rem; }
  .header__brand .tag { display: none; }
  .header__signout span { display: none; }   /* icon only; aria-label carries the name */
  .band { padding: 1.25rem; }
  .band__actions .btn { flex: 1 1 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .video-tile:hover { transform: none; }
}
