/*
Theme Name: Your Next Stage
Theme URI: https://example.com/
Author: Built for Melissa Panetta
Description: A block theme for Melissa Panetta and the Your Next Stage mentorship program. Editorial layout, brand pink sampled from the Your Next Stage logo, self-hosted fonts, and a one-click switch between black-and-white and colour photography.
Version: 1.0.0
Requires at least: 6.5
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: your-next-stage
Tags: block-theme, full-site-editing, one-column, custom-colors, custom-menu
*/

/* ==========================================================================
   Tokens — aliased to the theme.json palette so editing colours in
   Appearance > Editor > Styles flows through to everything below.
   ========================================================================== */
:root {
  --pink:      var(--wp--preset--color--pink);
  --pink-hover:#e455b6;
  --pink-ink:  var(--wp--preset--color--pink-ink);
  --pink-soft: var(--wp--preset--color--pink-soft);
  --pink-line: var(--wp--preset--color--pink-line);
  --ink:       var(--wp--preset--color--ink);
  --ink-2:     var(--wp--preset--color--ink-2);
  --muted:     var(--wp--preset--color--muted);
  --line:      var(--wp--preset--color--line);
  --paper:     var(--wp--preset--color--paper);
  --shell:     var(--wp--preset--color--shell);

  --font-display: var(--wp--preset--font-family--display);
  --font-sans:    var(--wp--preset--font-family--sans);

  --wrap: 1180px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --radius: 2px;

  /* Overridden by the Photography setting in Appearance > Photography. */
  --img-filter: grayscale(1);
}

/* --- Base ---------------------------------------------------------------- */
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
img { max-width: 100%; height: auto; display: block; }

a { text-decoration-thickness: 1px; text-underline-offset: 3px; }

p { margin: 0 0 1.2em; }
ul, ol { margin: 0 0 1.2em; padding-left: 1.1em; }
li { margin-bottom: 0.5em; }

:focus-visible { outline: 2px solid var(--pink-ink); outline-offset: 3px; }

.wp-site-blocks > * { margin-block: 0; }

/* This theme's own containers own their layout. Neutralise the block editor's
   default flow margins inside them so grid and flex spacing stays exact. */
.site-header__inner > *,
.hero__grid > *,
.footer__grid > *,
.split > *,
.grid > *,
.stats > *,
.creds > *,
.btn-row > *,
.brand > *,
.brand__text > * { margin-block: 0; }

/* --- Utilities ----------------------------------------------------------- */
.wrap {
  width: 100%; max-width: var(--wrap);
  margin-inline: auto; padding-inline: var(--gutter);
}
.wrap--narrow { max-width: 760px; }

.section { padding-block: clamp(4rem, 9vw, 7.5rem); }
.section--tight { padding-block: clamp(3rem, 6vw, 5rem); }
.section--shell { background: var(--shell); }
.section--soft  { background: var(--pink-soft); }

.eyebrow {
  font-family: var(--font-sans);
  font-size: 0.72rem; font-weight: 500;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--pink-ink); margin: 0 0 1.25rem; display: block;
}

.h-xl { font-size: clamp(2.75rem, 6.5vw, 5rem); }
.h-lg { font-size: clamp(2.25rem, 4.4vw, 3.5rem); }
.h-md { font-size: clamp(1.75rem, 3vw, 2.4rem); }
.h-sm { font-size: clamp(1.35rem, 2vw, 1.65rem); }

.lede { font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.6; color: var(--ink-2); }
.muted { color: var(--muted); }

.rule { width: 56px; height: 2px; background: var(--pink); border: 0; margin: 0 0 2rem; }

.skip-link {
  position: absolute; left: -9999px;
  background: var(--ink); color: #fff; padding: 0.75rem 1.25rem; z-index: 200;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* --- Buttons ------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.6em;
  font-family: var(--font-sans);
  font-size: 0.78rem; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase;
  padding: 1.05em 2em; border: 1px solid transparent;
  border-radius: var(--radius); text-decoration: none; cursor: pointer;
  transition: background-color 0.22s ease, color 0.22s ease,
              border-color 0.22s ease, transform 0.22s ease;
}
.btn:hover { transform: translateY(-2px); }

/* This pink fails contrast against white, so buttons carry dark text. */
.btn--primary { background: var(--pink); color: var(--ink); }
.btn--primary:hover { background: var(--pink-hover); color: var(--ink); }
.btn--ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn--ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn--light { background: transparent; border-color: rgba(255,255,255,0.35); color: #fff; }
.btn--light:hover { border-color: #fff; color: #fff; }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-top: 2rem; }

/* Core button block, styled to match */
.wp-block-button__link { transition: background-color 0.22s ease, transform 0.22s ease; }
.wp-block-button__link:hover { transform: translateY(-2px); }
.wp-block-button.is-style-outline .wp-block-button__link {
  background: transparent; border: 1px solid var(--line); color: var(--ink);
}
.wp-block-button.is-style-outline .wp-block-button__link:hover { border-color: var(--ink); }

/* --- Header -------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.94);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }

.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; min-height: 78px;
  width: 100%; max-width: var(--wrap); margin-inline: auto;
  padding-inline: var(--gutter);
}

.brand { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; }
.brand .wp-block-site-logo img,
.brand img { width: 46px; height: auto; }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
/* Two words — wrapping them breaks the lockup against the logo. */
.brand__name { font-family: var(--font-display); font-size: 1.2rem; color: var(--ink); white-space: nowrap; }
.brand__sub {
  font-size: 0.58rem; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--muted); font-weight: 400;
}

/* Core navigation block */
.site-header .wp-block-navigation { gap: 2rem; }
.site-header .wp-block-navigation .wp-block-navigation-item__content {
  font-size: 0.76rem; font-weight: 400; letter-spacing: 0.16em;
  text-transform: uppercase; text-decoration: none; color: var(--ink-2);
  padding-block: 0.35rem; position: relative;
}
.site-header .wp-block-navigation .wp-block-navigation-item__content::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px; background: var(--pink);
  transform: scaleX(0); transform-origin: left; transition: transform 0.25s ease;
}
.site-header .wp-block-navigation .wp-block-navigation-item__content:hover::after,
.site-header .wp-block-navigation .current-menu-item .wp-block-navigation-item__content::after {
  transform: scaleX(1);
}
.site-header .wp-block-navigation .current-menu-item .wp-block-navigation-item__content { color: var(--ink); }

/* The "Apply" item: add the CSS class `nav-cta` to it in the editor */
.site-header .wp-block-navigation .nav-cta .wp-block-navigation-item__content {
  background: var(--pink); color: var(--ink);
  padding: 0.85em 1.5em; border-radius: var(--radius); font-weight: 500;
}
.site-header .wp-block-navigation .nav-cta .wp-block-navigation-item__content::after { display: none; }
.site-header .wp-block-navigation .nav-cta .wp-block-navigation-item__content:hover { background: var(--pink-hover); }

/* The core navigation block only collapses to its overlay at 600px, but this
   header runs out of room well before that — the bar wraps to two rows between
   roughly 600px and 900px. Tighten the spacing across that band so it stays on
   one line instead. */
@media (max-width: 980px) {
  .site-header .wp-block-navigation { gap: 1.15rem; }
  .site-header .wp-block-navigation .wp-block-navigation-item__content {
    font-size: 0.7rem; letter-spacing: 0.1em;
  }
  .site-header .wp-block-navigation .nav-cta .wp-block-navigation-item__content {
    padding: 0.7em 1.1em;
  }
}
@media (max-width: 760px) {
  .site-header .wp-block-navigation { gap: 0.8rem; }
  .site-header .wp-block-navigation .wp-block-navigation-item__content {
    font-size: 0.66rem; letter-spacing: 0.06em;
  }
}

.wp-block-navigation__responsive-container.is-menu-open {
  padding: 2rem var(--gutter);
}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
  font-size: 1.1rem; letter-spacing: 0.1em;
}

/* --- Accordions (core Details block) -------------------------------------
   Using the built-in block means she edits these like any other content,
   and open/close works without JavaScript. */
.acc-list { border-top: 1px solid var(--line); }
.acc-list .wp-block-details {
  border-bottom: 1px solid var(--line);
  padding: 0; margin: 0;
}
.acc-list .wp-block-details summary {
  list-style: none; cursor: pointer; padding: 1.75rem 3rem 1.75rem 0;
  position: relative; font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.2vw, 1.7rem); line-height: 1.2;
  color: var(--ink); transition: color 0.2s ease;
}
.acc-list .wp-block-details summary::-webkit-details-marker { display: none; }
.acc-list .wp-block-details summary:hover { color: var(--pink-ink); }
.acc-list .wp-block-details summary::before,
.acc-list .wp-block-details summary::after {
  content: ""; position: absolute; right: 0; top: 50%;
  width: 20px; height: 1.5px; background: var(--ink);
  transition: transform 0.28s ease;
}
.acc-list .wp-block-details summary::after { transform: rotate(90deg); }
.acc-list .wp-block-details[open] summary::after { transform: rotate(0deg); }
.acc-list .wp-block-details > *:not(summary) { margin-bottom: 1.2em; }
.acc-list .wp-block-details > *:last-child { margin-bottom: 2rem; }
.acc-list .acc__tag {
  display: block; font-family: var(--font-sans); font-size: 0.7rem;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--pink-ink);
  margin-bottom: 0.5rem; font-weight: 500;
}

/* --- Photo frame --------------------------------------------------------- */
.ph { position: relative; overflow: hidden; background: var(--shell); margin: 0; }
.ph img { width: 100%; height: 100%; object-fit: cover; filter: var(--img-filter); }

.ph-stack { position: relative; }
.ph-stack::before {
  content: ""; position: absolute; inset: auto -1.75rem -1.75rem auto;
  width: 62%; height: 62%;
  background: var(--pink-soft); border: 1px solid var(--pink-line); z-index: 0;
}
.ph-stack > .ph { position: relative; z-index: 1; }

/* Core image block inside a section picks up the photo treatment too */
.section .wp-block-image img,
.hero .wp-block-image img { filter: var(--img-filter); }

/* --- Hero ---------------------------------------------------------------- */
.hero { padding-block: clamp(3rem, 7vw, 6rem) clamp(3.5rem, 8vw, 6.5rem); overflow: hidden; }
.hero__grid {
  display: grid; grid-template-columns: 1.02fr 0.98fr;
  gap: clamp(2.5rem, 6vw, 5rem); align-items: center;
}
.hero__title { margin: 0 0 1.75rem; }
.hero__title span { display: block; font-size: clamp(2.6rem, 6.4vw, 4.9rem); line-height: 1.02; }
.hero__title span:nth-child(2) { padding-left: 0.9em; }
.hero__title span:nth-child(3) { padding-left: 1.8em; }
.hero__title em { font-style: normal; color: var(--pink); }

.hero__meta {
  margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 0.5rem 1.75rem;
  font-size: 0.78rem; letter-spacing: 0.13em; text-transform: uppercase; color: var(--muted);
}
.hero__meta strong { color: var(--ink); font-weight: 500; }
.hero__photo { aspect-ratio: 4 / 5; }

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__photo { aspect-ratio: 4 / 3; }
  .hero__title span:nth-child(2) { padding-left: 0.5em; }
  .hero__title span:nth-child(3) { padding-left: 1em; }
}

/* --- Credentials --------------------------------------------------------- */
.creds {
  border-block: 1px solid var(--line); padding-block: 1.5rem;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem 2.5rem;
  font-size: 0.72rem; letter-spacing: 0.17em; text-transform: uppercase;
  color: var(--muted); text-align: center;
}
@media (max-width: 700px) { .creds { gap: 0.6rem 1.5rem; } }

/* --- Split --------------------------------------------------------------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: center; }
.split--wide-text  { grid-template-columns: 1.15fr 0.85fr; }
.split--wide-photo { grid-template-columns: 0.85fr 1.15fr; }
.split__photo { aspect-ratio: 4 / 5; }
.split__photo--wide { aspect-ratio: 4 / 3; }
.split--flip .split__media { order: -1; }
@media (max-width: 900px) {
  .split, .split--wide-text, .split--wide-photo { grid-template-columns: 1fr; }
  .split--flip .split__media { order: 0; }
  .split__photo { aspect-ratio: 4 / 3; }
}

/* --- Quote --------------------------------------------------------------- */
.quote {
  border-left: 2px solid var(--pink); padding: 0.35rem 0 0.35rem 1.75rem;
  margin: 2.5rem 0; font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.3vw, 1.85rem); line-height: 1.3; color: var(--ink);
}

/* --- Cards --------------------------------------------------------------- */
.grid { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid--3, .grid--2 { grid-template-columns: 1fr; } }

.card { background: var(--paper); padding: clamp(1.75rem, 3vw, 2.5rem); transition: background-color 0.25s ease; }
.card:hover { background: var(--pink-soft); }
.card__num { font-family: var(--font-display); font-size: 1.05rem; color: var(--pink-ink);
             display: block; margin-bottom: 1rem; letter-spacing: 0.08em; }
.card h3 { font-size: 1.3rem; margin-bottom: 0.5rem; }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }

/* --- Feature list -------------------------------------------------------- */
.feature-list { list-style: none; padding: 0; margin: 0; }
.feature-list li { padding: 1.35rem 0 1.35rem 2.25rem; border-bottom: 1px solid var(--line);
                   position: relative; margin: 0; }
.feature-list li:first-child { border-top: 1px solid var(--line); }
.feature-list li::before { content: ""; position: absolute; left: 0; top: 2.05rem;
                           width: 12px; height: 1px; background: var(--pink); }
.feature-list strong { display: block; font-family: var(--font-display); font-weight: 500;
                       font-size: 1.2rem; color: var(--ink); line-height: 1.3; margin-bottom: 0.15rem; }
.feature-list span { font-size: 0.98rem; color: var(--muted); }

/* --- Stats --------------------------------------------------------------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem 1.5rem; }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat__value { font-family: var(--font-display); font-size: clamp(2.5rem, 4.5vw, 3.4rem);
               color: var(--ink); line-height: 1; display: block; margin-bottom: 0.6rem; }
.stat__label { font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }

/* --- Accordion ----------------------------------------------------------- */
.acc { border-top: 1px solid var(--line); }
.acc__item { border-bottom: 1px solid var(--line); }
.acc__btn {
  width: 100%; display: flex; align-items: flex-start; justify-content: space-between;
  gap: 1.5rem; padding: 1.75rem 0; background: none; border: 0; cursor: pointer;
  text-align: left; font-family: inherit; color: var(--ink);
}
.acc__btn:hover .acc__title { color: var(--pink-ink); }
.acc__title { font-family: var(--font-display); font-size: clamp(1.3rem, 2.2vw, 1.7rem);
              line-height: 1.2; transition: color 0.2s ease; }
.acc__tag { display: block; font-family: var(--font-sans); font-size: 0.7rem;
            letter-spacing: 0.2em; text-transform: uppercase; color: var(--pink-ink);
            margin-bottom: 0.55rem; font-weight: 500; }
.acc__icon { flex: 0 0 auto; width: 20px; height: 20px; position: relative; margin-top: 0.6rem; }
.acc__icon::before, .acc__icon::after {
  content: ""; position: absolute; inset: 50% 0 auto 0; height: 1.5px;
  background: var(--ink); transition: transform 0.28s ease;
}
.acc__icon::after { transform: rotate(90deg); }
.acc__btn[aria-expanded="true"] .acc__icon::after { transform: rotate(0deg); }

.acc__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.32s ease; }
.acc__panel[data-open="true"] { grid-template-rows: 1fr; }
.acc__panel > div { overflow: hidden; }
.acc__panel-inner { padding-bottom: 2rem; }

.sessions { list-style: none; padding: 0; margin: 0; }
.sessions li { display: grid; grid-template-columns: 190px 1fr; gap: 0.5rem 1.5rem;
               padding: 0.95rem 0; border-top: 1px dashed var(--line); margin: 0; }
.sessions li:first-child { border-top: 0; }
.sessions .when { font-size: 0.76rem; letter-spacing: 0.1em; text-transform: uppercase;
                  color: var(--muted); padding-top: 0.25rem; }
.sessions .what { color: var(--ink-2); }
.sessions .what strong { color: var(--ink); font-weight: 500; }
@media (max-width: 700px) { .sessions li { grid-template-columns: 1fr; } }

/* --- Callout ------------------------------------------------------------- */
.callout { background: var(--pink-soft); border: 1px solid var(--pink-line);
           padding: clamp(1.75rem, 3vw, 2.5rem); margin: 2rem 0; }
.callout h3 { margin-bottom: 0.4rem; }
.callout p:last-child { margin-bottom: 0; }

/* --- Dark band ----------------------------------------------------------- */
.band { background: var(--ink); color: rgba(255,255,255,0.78); }
.band h1, .band h2, .band h3 { color: #fff; }
.band .eyebrow { color: var(--pink); }
.band .rule { background: var(--pink); }
.band a:not(.btn):not(.wp-block-button__link) { color: var(--pink); }
.band .stat__value { color: #fff; }
.band .stat__label { color: rgba(255,255,255,0.6); }
.band .lede { color: rgba(255,255,255,0.8); }

/* --- Gallery ------------------------------------------------------------- */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(0.75rem, 1.6vw, 1.25rem); }
@media (max-width: 900px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .gallery-grid { grid-template-columns: 1fr; } }

.gallery-grid button { padding: 0; border: 0; background: var(--shell); cursor: pointer;
                       display: block; width: 100%; position: relative; overflow: hidden; }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover;
                    filter: var(--img-filter); transition: filter 0.5s ease, transform 0.6s ease; }
.gallery-grid button:hover img { filter: none; transform: scale(1.03); }
.gallery-grid .tall { aspect-ratio: 3 / 4; }
.gallery-grid .sq   { aspect-ratio: 1 / 1; }
.gallery-grid .wide { aspect-ratio: 4 / 3; }

/* Core gallery block, if she builds one herself */
.wp-block-gallery.is-bw img { filter: var(--img-filter); transition: filter 0.5s ease; }
.wp-block-gallery.is-bw figure:hover img { filter: none; }

.lightbox {
  position: fixed; inset: 0; z-index: 300; background: rgba(12,10,14,0.94);
  display: flex; align-items: center; justify-content: center;
  padding: clamp(1rem, 4vw, 3rem); opacity: 0; pointer-events: none;
  transition: opacity 0.25s ease;
}
.lightbox[data-open="true"] { opacity: 1; pointer-events: auto; }
.lightbox img { max-width: 100%; max-height: 80vh; width: auto; object-fit: contain; }
.lightbox__cap { color: rgba(255,255,255,0.7); text-align: center; margin-top: 1rem;
                 font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; }
.lightbox__close, .lightbox__nav {
  position: absolute; background: none; border: 0; color: #fff; cursor: pointer;
  padding: 1rem; font-size: 1.5rem; line-height: 1; opacity: 0.7; transition: opacity 0.2s ease;
}
.lightbox__close:hover, .lightbox__nav:hover { opacity: 1; }
.lightbox__close { top: 0.5rem; right: 0.5rem; }
.lightbox__nav--prev { left: 0.25rem; top: 50%; transform: translateY(-50%); }
.lightbox__nav--next { right: 0.25rem; top: 50%; transform: translateY(-50%); }

/* --- Forms --------------------------------------------------------------- */
.form { display: grid; gap: 1.5rem; }
.field { display: grid; gap: 0.5rem; }
.field label { font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase;
               color: var(--ink); font-weight: 500; }
.field input, .field select, .field textarea {
  font-family: inherit; font-size: 1rem; font-weight: 300; color: var(--ink);
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 0.9rem 1rem; width: 100%; transition: border-color 0.2s ease;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--pink); outline: none; }
.field textarea { min-height: 150px; resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
@media (max-width: 620px) { .field-row { grid-template-columns: 1fr; } }
.form-note { font-size: 0.85rem; color: var(--muted); }

/* --- Detail list --------------------------------------------------------- */
.detail-list { padding: 0; margin: 0; }
.detail-list > div { padding: 1.25rem 0; border-bottom: 1px solid var(--line); margin: 0; }
.detail-list > div:first-child { border-top: 1px solid var(--line); }
.detail-list dt { font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase;
                  color: var(--muted); margin-bottom: 0.3rem; }
.detail-list dd { margin: 0; font-size: 1.05rem; color: var(--ink); }

/* --- Page head ----------------------------------------------------------- */
.page-head { padding-block: clamp(3.5rem, 7vw, 6rem) clamp(2.5rem, 5vw, 4rem);
             border-bottom: 1px solid var(--line); }
.page-head .h-xl { margin-bottom: 1rem; }
.page-head .lede { max-width: 60ch; }

/* Long-form article pages (privacy policy, terms) */
.article-body h2 { margin-top: 3rem; }
.article-body h3 { margin-top: 2rem; }

/* --- Footer -------------------------------------------------------------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,0.6); padding-block: 4.5rem 2.5rem; }
.site-footer h2, .site-footer h3 { color: #fff; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 3rem;
                padding-bottom: 3rem; border-bottom: 1px solid rgba(255,255,255,0.12); }
@media (max-width: 800px) { .footer__grid { grid-template-columns: 1fr; gap: 2.25rem; } }
.footer__grid h3 { font-family: var(--font-sans); font-size: 0.7rem; letter-spacing: 0.2em;
                   text-transform: uppercase; color: rgba(255,255,255,0.45);
                   margin-bottom: 1.1rem; font-weight: 400; }
.footer__nav { list-style: none; padding: 0; margin: 0; }
.footer__nav li { margin-bottom: 0.65rem; }
.site-footer a { color: rgba(255,255,255,0.75); text-decoration: none; }
.site-footer a:hover { color: var(--pink); }

/* The footer sits on --ink, so it uses the knockout logo
   (assets/img/logo-light.png): one flat white mark, with the original alpha
   carrying the drawing. Opacity drops it to the same tone as the footer text.

   It's a background image rather than a Site Logo block so the path resolves
   against the theme folder on whatever domain this ends up on. The visible
   header logo is still the one uploaded in Settings. */
.footer__mark {
  width: 120px; aspect-ratio: 529 / 518; margin-bottom: 1.5rem; opacity: 0.75;
  background: url("assets/img/logo-light.png") no-repeat center / contain;
}
.footer__mark p { margin: 0; }

/* Present for screen readers, off-screen for everyone else. */
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap; border: 0;
}
.footer__tag { font-family: var(--font-display); font-size: 1.5rem; color: #fff;
               line-height: 1.25; margin: 0 0 1rem; }
.footer__bottom { padding-top: 2rem; display: flex; flex-wrap: wrap; gap: 0.75rem 2rem;
                  justify-content: space-between; font-size: 0.78rem; color: rgba(255,255,255,0.4); }

.site-footer .wp-block-navigation { flex-direction: column; gap: 0.65rem; align-items: flex-start; }
.site-footer .wp-block-navigation .wp-block-navigation-item__content { color: rgba(255,255,255,0.75); }
.site-footer .wp-block-navigation .wp-block-navigation-item__content:hover { color: var(--pink); }

/* --- Reveal on scroll ----------------------------------------------------
   Only hidden when JavaScript is confirmed running. If JS fails or is
   blocked, every section stays visible. Never hidden in the editor. */
.js .reveal { opacity: 0; transform: translateY(18px); }
.js .reveal.is-in { opacity: 1; transform: none;
                    transition: opacity 0.7s ease, transform 0.7s ease; }
.block-editor-page .reveal, .editor-styles-wrapper .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal, .js .reveal.is-in { opacity: 1; transform: none; transition: none; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
