/*
Theme Name: Halau i Ka Pono
Theme URI: https://halauikapono.org/
Author: Custom
Description: Custom theme for Halau i Ka Pono — Hawaiian hula school in Oak Park, IL offering in-person and online classes.
Version: 1.0.0
Requires at least: 5.9
Tested up to: 7.0
Requires PHP: 8.0
Text Domain: halau-ikapono
*/

/* ============================================================
   FONTS
   Montagu Slab is self-hosted as a single variable file (weight 100–700,
   optical size 16–144). The optical-size axis is picked automatically
   from font-size, so big headings get the display cut and small text the
   text cut. OFL licence sits next to the file.
   ============================================================ */
@font-face {
    font-family: 'Montagu Slab';
    src: url('assets/fonts/MontaguSlab-variable.woff2') format('woff2');
    font-weight: 100 700;
    font-style: normal;
    font-display: swap;
}

/* Ojuju (Google Fonts, OFL), variable 200–800. Trial, Nov 2026. */
@font-face {
    font-family: 'Ojuju';
    src: url('assets/fonts/ojuju-latin.woff2') format('woff2');
    font-weight: 200 800; font-style: normal; font-display: swap;
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Ojuju';
    src: url('assets/fonts/ojuju-latin-ext.woff2') format('woff2');
    font-weight: 200 800; font-style: normal; font-display: swap;
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ============================================================
   CUSTOM PROPERTIES
   ============================================================ */
:root {
    /* One knob for every font size on the site (Nov 2026: +12.5%). The
       logo and the html root (rem base, so spacing) are not scaled. */
    --type-scale: 1.125;
    /* Motion: one tempo for the whole site. Every movement is a whole
       number of beats, so the sway, the light and the flowers keep time
       together. 1 beat = 1s (60 bpm); set this to the ipu tempo June
       teaches and everything follows. A phrase is 8 beats. */
    --beat: 1s;
    --phrase: calc(var(--beat) * 8);
    --sway-ease: cubic-bezier(0.45, 0, 0.55, 1);
    /* Accent 1 — Bird Orange (#F05A28), anchored at -800 */
    --orange-950: #6e3421;
    --orange-900: #a44728;
    --orange-800: #d76741;
    --orange-700: #dc7755;
    --orange-600: #de8264;
    --orange-500: #e5a18a;
    --orange-200: #edcbc0;
    --orange-100: #f3e3dd;
    --orange-50: #f9f3f0;

    /* Accent 2 — Paradise Blue (#3155A6), anchored at -700 */
    --blue-900: #1e2e52;
    --blue-800: #2e4475;
    --blue-700: #405b97;
    --blue-600: #4c6cb3;
    --blue-500: #6883c0;
    --blue-400: #869bca;
    --blue-200: #c0cbe2;
    --blue-100: #dadfec;
    --blue-50: #eff1f6;

    /* Accent 3 — Sage Green (#557A46), anchored at -700 */
    --sage-900: #2e3e28;
    --sage-800: #455d3c;
    --sage-700: #58744c;
    --sage-600: #628155;
    --sage-500: #6d905f;
    --sage-400: #8baa7e;
    --sage-200: #c8d6c2;
    --sage-100: #dee6db;
    --sage-50: #f1f4f0;

    /* Neutrals — a plain gray scale from the Figma frame background (#F8F8F8)
       down to Lava Black (#171713). The earlier warm/cream scale tinted every
       page beige and drifted from the design file, which is neutral. */
    --white:    #f8f8f8;
    --gray-50:  #f3f3f3;
    --gray-100: #eeeeee;
    --gray-150: #e8e8e8;
    --gray-200: #dfdfdf;
    --gray-300: #cdcdcd;
    --gray-400: #ababab;
    --gray-500: #6b6b6b;
    --gray-700: #474745;
    --gray-900: #171713;

    --color-primary:      var(--orange-800);
    --color-primary-dark: var(--orange-900);
    --color-accent:       var(--blue-700);
    --color-accent-dark:  var(--blue-800);
    --color-bg:           var(--white);
    --color-bg-alt:       var(--gray-50);
    --color-bg-muted:     var(--gray-100);
    --color-text:         var(--gray-900);
    --color-text-muted:   var(--gray-900); /* no grey text: kept as an alias */
    --color-border:       var(--gray-200);

    --font-serif: 'Ojuju', Georgia, serif;
    --font-sans:  'Alegreya Sans', 'Helvetica Neue', Arial, sans-serif;
    --font-logo:  'Ojuju', Georgia, serif; /* the logo itself is an SVG outlined from Ojuju */

    --text-xs:   calc(0.75rem * var(--type-scale));
    --text-sm:   calc(0.875rem * var(--type-scale));
    --text-base: calc(1.125rem * var(--type-scale)); /* 18px (was 16px, Nov 2026) */
    --text-lg:   calc(1.125rem * var(--type-scale));
    --text-xl:   calc(1.25rem * var(--type-scale));
    --text-2xl:  calc(1.5rem * var(--type-scale));
    --text-3xl:  calc(1.875rem * var(--type-scale));
    --text-4xl:  calc(2.25rem * var(--type-scale));
    --text-5xl:  calc(3rem * var(--type-scale));
    --text-6xl:  calc(3.75rem * var(--type-scale));
    --text-7xl:  calc(4.5rem * var(--type-scale));

    /* Grid geometry read off the Hula-Website Figma frame (1440 wide):
       100px page margins, 12 columns, 30px gutters -> 75.83px columns.
       --margin is a separate token from --gutter because the design's page
       inset (100px) is NOT the same value as its column gap (30px); before
       this, one token drove both and the page inset was stuck at 30px. */
    --container:  1440px;
    --gutter:     30px;
    --margin:     100px;
    --header-h:   150px;

    /* Published Figma styles — Hula-Website.
       Figma reports H2/Body lineHeight as "100", but the frame's own measured
       text boxes say otherwise: H2 renders 49px per line (196/4) and Body
       19px (57/3, 38/2). Those are Figma "Auto" resolved through the font's
       metrics, so pin them explicitly rather than trusting `normal` to match. */
    --figma-white:    #F8F8F8;
    --figma-f5:       #F5F5F5;   /* class rows + button; distinct from White */
    --figma-green:    #58744c;
    --figma-gradient: linear-gradient(125.417deg, #FFDA82 0%, #0A2200 100%);
    --figma-lh-h2:    1.3611;   /* 49/36, H2 is the only "Auto" leading left */
    --figma-lh-body:  1.25;     /* 20/16, now an explicit value in Figma */
    --figma-lh-h3:    1.25;     /* 30/24 */
    --figma-ls-wide:  0.07em;   /* Eyebrow + Button Text both track +7% */

    --radius-sm:  3px;
    --radius:     6px;
    --radius-lg:  12px;
    --radius-xl:  24px;
    --radius-full:9999px;
    --radius-card: 10px;  /* every card and framed box on the site */

    --shadow-xs: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-sm: 0 1px 4px rgba(0,0,0,0.07), 0 1px 2px rgba(0,0,0,0.04);
    --shadow:    0 4px 20px rgba(0,0,0,0.08);
    --shadow-lg: 0 12px 48px rgba(0,0,0,0.12);

    --ease:      0.25s ease;
    --ease-fast: 0.15s ease;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    overflow-x: clip;
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-sans);
    font-size: var(--text-base);
    line-height: 1.7;
    color: var(--color-text);
    background: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img, picture, video { display: block; max-width: 100%; }
strong, b { font-weight: 400; }
input, button, textarea, select { font: inherit; }

/* No widows: never leave one word alone on a paragraph's last line. */
p, li, dd, figcaption, blockquote { text-wrap: pretty; }

/* Hanging punctuation: an opening quote mark sits in the margin so the
   text, not the mark, lines up (width measured in js/navigation.js). */
.hang { display: inline-block; }

/* No italic type anywhere on the site. */
em, i, cite, address { font-style: normal; }
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    font-weight: 480;
    font-optical-sizing: auto;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    line-height: 1.05;
    color: var(--color-text);
    overflow-wrap: break-word;
}
a { color: inherit; text-decoration: none; transition: color var(--ease-fast); }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; }

/* ============================================================
   LAYOUT
   ============================================================ */
.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: var(--margin);
}

/* ============================================================
   12-COLUMN GRID
   Wrap columns in <div class="grid-12"> inside a .container.
   Each direct child takes a width via .col-1 .. .col-12 (how many
   of the 12 columns it spans) — e.g. .col-6 = half width,
   .col-4 = a third. Offset the start with .col-start-1 .. -12
   (.col-N sets the span as an END line so .col-start-N can set the
   START without overwriting it).
   Below 768px everything stacks full-width by default; add
   .no-stack to a .grid-12 to opt out.
   ============================================================ */
.grid-12 {
    display: grid;
    /* minmax(0, 1fr), not 1fr: plain 1fr is minmax(auto, 1fr), which lets a
       wide image or an unbreakable string push its column past its share and
       knock every following column off the grid. */
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: var(--gutter);
}

/* Grid items default to min-width:auto, which lets a wide child overflow its
   column instead of shrinking. Columns win; the content wraps. */
.grid-12 > * { min-width: 0; }

.col-1  { grid-column-end: span 1; }
.col-2  { grid-column-end: span 2; }
.col-3  { grid-column-end: span 3; }
.col-4  { grid-column-end: span 4; }
.col-5  { grid-column-end: span 5; }
.col-6  { grid-column-end: span 6; }
.col-7  { grid-column-end: span 7; }
.col-8  { grid-column-end: span 8; }
.col-9  { grid-column-end: span 9; }
.col-10 { grid-column-end: span 10; }
.col-11 { grid-column-end: span 11; }
.col-12 { grid-column-end: span 12; }

.col-start-1  { grid-column-start: 1; }
.col-start-2  { grid-column-start: 2; }
.col-start-3  { grid-column-start: 3; }
.col-start-4  { grid-column-start: 4; }
.col-start-5  { grid-column-start: 5; }
.col-start-6  { grid-column-start: 6; }
.col-start-7  { grid-column-start: 7; }
.col-start-8  { grid-column-start: 8; }
.col-start-9  { grid-column-start: 9; }
.col-start-10 { grid-column-start: 10; }
.col-start-11 { grid-column-start: 11; }
.col-start-12 { grid-column-start: 12; }

@media (max-width: 768px) {
    .grid-12:not(.no-stack) > [class*="col-"] { grid-column: auto / span 12; }
}

.section {
    padding-block: 6rem;
}

/* ============================================================
   TYPOGRAPHY UTILITIES
   ============================================================ */
.eyebrow {
    display: inline-block;
    font-family: var(--font-sans);
    font-size: var(--text-xs);
    font-weight: 400;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--color-accent);
}

.section-heading {
    font-size: calc(clamp(1.5rem, 3.4vw, 2.5rem) * var(--type-scale));
    font-weight: 300;
    color: var(--color-primary);
    margin-top: 0.75rem;
    margin-bottom: 1rem;
}

.section-heading em {
    font-weight: 400;
}

.text-center  { text-align: center; }
.text-center .section-sub { margin-inline: auto; }

/* ============================================================
   PANEL TYPOGRAPHY
   ============================================================ */
/* Big uppercase serif titles for the solid panels. */
.panel-title {
    font-family: var(--font-serif);
    font-weight: 480;
    font-size: calc(clamp(2rem, 4.2vw, 3.75rem) * var(--type-scale));
    line-height: 0.95;
    letter-spacing: 0.01em;
    text-transform: uppercase;
    margin: 0;
}

/* Mixed heading: the big word in the slab, the qualifier in the sans —
   <h2 class="mixed"><span class="sans">Modern</span> <span class="serif">Auana</span></h2> */
.mixed { display: flex; flex-direction: column; align-items: flex-start; gap: 0.35em; }
.mixed .sans {
    font-family: var(--font-sans);
    font-weight: 400;
    font-size: 0.38em;
    letter-spacing: 0.16em;
    line-height: 1;
}
.mixed .serif { font-family: var(--font-serif); line-height: 0.95; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 2rem;
    font-family: var(--font-sans);
    font-size: var(--text-sm);
    font-weight: 400;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border-radius: var(--radius-card);
    border: 1.5px solid transparent;
    transition: all var(--ease);
    cursor: pointer;
    white-space: nowrap;
}

.btn-gold {
    background: var(--color-accent);
    color: var(--white);
    border-color: var(--color-accent);
}
.btn-gold:hover {
    background: var(--color-accent-dark);
    border-color: var(--color-accent-dark);
    transform: translateY(-1px);
}

.btn-outline-green {
    background: transparent;
    color: var(--orange-900);
    border-color: var(--orange-900);
}
.btn-outline-green:hover {
    background: var(--orange-800);
    color: var(--white);
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: var(--text-base);
}

/* ============================================================
   SITE HEADER & NAVIGATION
   ============================================================ */
.site-header {
    position: fixed;
    inset-block-start: 0;
    inset-inline: 0;
    z-index: 1000;
    height: var(--header-h);
    display: flex;
    align-items: center;
    background: transparent;
    /* The bar itself is see-through, so let clicks fall through to the
       page behind it — only the logo, hamburger and menu are hit-testable. */
    pointer-events: none;
}

.site-header .site-logo,
.site-header .hamburger,
.site-header .nav-primary { pointer-events: auto; }

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

/* Logo — Figma node 1:19: a 150x150 solid-white box flush to the top of the
   page, sitting on column 1. The header is exactly 150px tall so the box
   fills it and reads as hanging from the top edge, as drawn. */
.site-logo {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 150px;
    height: 150px;
    flex-shrink: 0;
    padding: 10px;
    /* Colours come from the inline picker in header.php (one random
       contrast-checked pair from the palette per load); these are the
       no-JS fallback. */
    background: var(--logo-bg, var(--white));
    text-align: center;
    transition: opacity var(--ease-fast);
}

.site-logo .logo-main {
    font-family: var(--font-logo);
    font-size: 36px;
    line-height: 29px;
    font-weight: 480;
    color: var(--logo-fg, var(--gray-900));
    letter-spacing: -0.07em;
    display: block;
}
.site-logo .logo-main svg { display: block; height: 1.6em; width: auto; overflow: visible; }

.site-logo:hover { opacity: 0.85; }

/* Primary nav — full-screen menu. A framed cream panel on the left holds
   the numbered page links, a short description of the school, and the small
   secondary links; the right side is a full-bleed photo. The header floats
   on top of it, so the hamburger doubles as the close button. */
.nav-primary {
    position: fixed;
    inset: 0;
    display: grid;
    /* Photo left, panel right (under the close button). The panel's text
       starts on the left edge of column 8; the panel reaches the window's
       right edge. 25px = panel padding + frame; 2.5rem = text inset. */
    --col: calc((min(100vw, var(--container)) - 2 * var(--margin) - 11 * var(--gutter)) / 12);
    grid-template-columns: minmax(0, 1fr) calc((100vw - min(100vw, var(--container))) / 2 + var(--margin) + 5 * var(--col) + 4 * var(--gutter) + 25px + 2.5rem);
    /* --menu-bg / --menu-fg are set per load and per open by
       js/navigation.js from a contrast-checked palette pair. */
    --menu-bg: var(--white);
    --menu-fg: var(--menu-fg);
    background: var(--menu-bg);
    color: var(--menu-fg);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--ease), visibility var(--ease);
    overflow: hidden;
}

.nav-primary.is-open {
    opacity: 1;
    visibility: visible;
}

.menu-panel {
    grid-row: 1;
    grid-column: 2;
    padding: 24px;
    height: 100%;
    overflow-y: auto;
    transform: translateY(12px);
    transition: transform 0.4s ease;
}

.nav-primary.is-open .menu-panel { transform: translateY(0); }

/* Double rule frame, in the accent orange, standing in for the
   engraved border on the reference. */
.menu-frame {
    position: relative;
    min-height: calc(100vh - 48px);
    min-height: calc(100svh - 48px);
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    color: var(--menu-fg);
}

.menu-main {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 2.5rem 2.5rem 2rem 2.5rem;
    min-height: 0;
}

.menu-brand {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding-bottom: 2.5rem;
}

.menu-wordmark { display: block; color: var(--menu-fg); }
.menu-wordmark svg { overflow: visible; display: block; height: calc(2rem * var(--type-scale) * 0.75); width: auto; }

.menu-list {
    list-style: none;
    margin: 0 -2.5rem;
    padding: 0;
}

/* Rules only between items: none above the first or under the last. */
.menu-list li:last-child { border-bottom: 0; }
.menu-list li {
    border-bottom: 1px solid var(--menu-fg);
}

.menu-list a {
    display: flex;
    align-items: baseline;
    gap: 1.25rem;
    padding: 1.1rem 2.5rem;
    font-family: var(--font-serif);
    font-weight: 480;
    font-size: calc(clamp(1.5rem, 2.6vw, 2.25rem) * var(--type-scale));
    line-height: 1.1;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--menu-fg);
    text-decoration: none;
    transition: background var(--ease-fast), color var(--ease-fast);
}

.menu-list a:hover,
.menu-list a:focus-visible,
.menu-list a.current-menu-item {
    background: var(--menu-fg);
    color: var(--menu-bg);
}

.menu-list a.current-menu-item:not(:hover) {
    background: color-mix(in srgb, var(--menu-fg) 12%, var(--menu-bg));
    color: var(--menu-fg);
}

.menu-foot {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
    padding-top: 3rem;
}

.menu-foot a {
    font-family: var(--font-sans);
    font-size: var(--text-sm);
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--menu-fg);
    text-decoration: none;
    opacity: 0.85;
    transition: opacity var(--ease-fast);
}

.menu-foot a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 0.25em; }


.menu-photo {
    grid-row: 1;
    grid-column: 1;
    position: relative;
    overflow: hidden;
    background: var(--menu-fg);
}

.menu-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 45% 30%;
    display: block;
    transform: scale(1.04);
    transition: transform 1.2s ease;
}

.nav-primary.is-open .menu-photo img { transform: scale(1); }

body.menu-open { overflow: hidden; }

/* The panel carries its own wordmark, so the header's logo box would only
   collide with the frame while the menu is open. */
body.menu-open .site-header .site-logo { opacity: 0; pointer-events: none; }

@media (max-width: 1024px) {
    .nav-primary { grid-template-columns: 1fr; }
    .menu-panel { grid-column: 1; }
    .menu-photo { display: none; }
    .menu-main { padding-left: calc(var(--margin) - 25px); }
    .menu-list { margin-left: calc(25px - var(--margin)); }
    .menu-list a { padding-left: calc(var(--margin) - 25px); }
}

@media (max-width: 768px) {
    .menu-panel { padding: 12px; }
    .menu-frame { min-height: calc(100svh - 24px); }
    .menu-main { padding: 5rem 1.5rem 1.5rem; }
    .menu-list { margin-inline: -1.5rem; }
    .menu-list a { padding-inline: 1.5rem; font-size: calc(clamp(1.75rem, 8vw, 2.5rem) * var(--type-scale)); }
    .menu-main { padding-top: 2rem; }
}

/* Hamburger — always the menu trigger */
.hamburger {
    position: relative;
    z-index: 2;   /* above the fixed .nav-primary so it works as the close button */
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 38px;
    height: 38px;
    padding: 8px 10px;
    /* Always a solid disc with dark bars, so it reads over any section
       (photo, blue, orange, black) and matches the close button. */
    background: var(--white);
    border-radius: var(--radius-full);
    border: 1px solid var(--gray-900);
    transition: background var(--ease-fast);
}

.hamburger:hover { background: var(--gray-100); }
.site-header .hamburger span,
.site-header--over-dark .hamburger span,
.site-header--over-dark.is-scrolled .hamburger span { background: var(--bar, var(--gray-900)); transition: transform var(--ease), opacity var(--ease), background-color .5s ease; }
.site-header--over-dark .hamburger:hover { background: var(--gray-100); }

/* Over a dark hero the bars go white, then back to dark once the
   header has scrolled past it onto the light page body. */
.site-header--over-dark.is-scrolled .hamburger:hover { background: var(--gray-100); }

/* Menu open — the X sits on the cream panel (or the photo, on wide screens),
   so it gets a cream disc and the accent color either way. */
.site-header .hamburger.is-active { background: var(--white); border-radius: var(--radius-full); }
.site-header .hamburger.is-active span,
.site-header--over-dark .hamburger.is-active span,
.site-header--over-dark.is-scrolled .hamburger.is-active span { background: var(--gray-900); }
.site-header .hamburger.is-active:hover,
.site-header--over-dark .hamburger.is-active:hover { background: var(--gray-100); }

.hamburger span {
    display: block;
    width: 100%;
    height: 1.5px;
    background: var(--gray-700);
    border-radius: 0;
    transition: transform var(--ease), opacity var(--ease);
    transform-origin: center;
}

/* No disc: three large bars on their own. Their colour follows the section
   behind them (js/navigation.js sets --bar): ink on light, white on dark
   and on photographs. */
.site-header .hamburger,
.site-header .hamburger:hover,
.site-header .hamburger.is-active,
.site-header .hamburger.is-active:hover,
.site-header--over-dark .hamburger:hover,
.site-header--over-dark .hamburger.is-active:hover,
.site-header--over-dark.is-scrolled .hamburger:hover {
    background: transparent;
    border-color: transparent;
    width: 48px;
    height: 48px;
    padding: 9px 6px;
    gap: 7px;
}
/* The bars are drawn by hand: each at its own angle, length and weight,
   and each sways slowly on its own. Open, they straighten into the X. */
/* Tilted thin bars draw jagged on phone browsers; a transparent outline and
   their own compositing layer make the edges anti-alias cleanly. */
.hamburger span { outline: 1px solid transparent; -webkit-backface-visibility: hidden; backface-visibility: hidden; will-change: transform; }
.hamburger:not(.is-active) span { border-radius: 0; animation: bar-sway 4.6s ease-in-out infinite alternate; }
.hamburger:not(.is-active) span:nth-child(1) { height: 4px; width: 100%; --r0: -8deg; --r1: -2deg; }
.hamburger:not(.is-active) span:nth-child(2) { height: 3.5px; width: 84%; margin-left: 12%; --r0: 5deg; --r1: 10deg; --dx: -2px; animation-duration: 3.7s; animation-delay: -2s; }
.hamburger:not(.is-active) span:nth-child(3) { height: 5px; width: 90%; margin-left: 3%; --r0: -2deg; --r1: -8deg; --dx: 2px; animation-duration: 5.3s; animation-delay: -4s; }
@keyframes bar-sway {
    0%   { transform: translateX(0) rotate(var(--r0)) scaleX(1); }
    50%  { transform: translateX(var(--dx, 1px)) rotate(var(--r1)) scaleX(0.9); }
    100% { transform: translateX(calc(var(--dx, 1px) * -1)) rotate(var(--r0)) scaleX(1.04); }
}
@media (prefers-reduced-motion: reduce) { .hamburger:not(.is-active) span { animation: none; transform: rotate(var(--r0)); } }
.hamburger.is-active span { height: 4px; }
.hamburger.is-active span:nth-child(1) { transform: translateY(11px) rotate(45deg); }
.hamburger.is-active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.is-active span:nth-child(3) { transform: translateY(-11px) rotate(-45deg); }

/* ============================================================
   HERO — HOMEPAGE
   Figma: "Desktop - 2" (node 1:17). The frame draws a fixed 1440x1024
   band, but the height is 100vh per Christian, not the drawn ratio — so the
   band's height no longer tracks the design. The content offsets below are
   still percentages of WIDTH, which is what keeps the H1 at its drawn 180px
   from the top; only the space between H1 and tagline flexes.
   ============================================================ */
.hero {
    position: relative;
    height: 100vh;
    overflow: hidden;
    /* isolate so the photo's blend mode composites against the gradient
       below it and not against whatever the page paints further back. */
    isolation: isolate;
    background-image: var(--figma-gradient);
}

/* Figma node 1:18 — the photo is composited in OVERLAY over the gradient,
   which is what makes it read as texture in the color rather than a picture. */
.hero-photo {
    position: absolute;
    inset: 0;
    mix-blend-mode: overlay;
    pointer-events: none;
}

.hero-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform-origin: 50% 15%;
    animation: hero-drift calc(var(--phrase) * 4) var(--sway-ease) infinite alternate;
}

/* Living light. Each layer is screened over the photo so it only ever
   adds light, the way real glare does. The sun sits where it is in the
   photo (top centre); the beams follow the shaft already in the frame. */
.hero-light { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.hero-light > span { position: absolute; mix-blend-mode: screen; will-change: transform, opacity; }

.hero-sun {
    left: 50%; top: 13%;
    width: 70vmax; height: 70vmax;
    margin: -35vmax 0 0 -35vmax;
    background: radial-gradient(circle, rgba(255, 250, 225, 0.85) 0%, rgba(255, 228, 150, 0.45) 14%, rgba(255, 200, 90, 0.12) 34%, rgba(255, 200, 90, 0) 60%);
    animation: hero-sun var(--phrase) var(--sway-ease) infinite;
}
.hero-beam {
    left: 50%; top: -30%;
    width: 22vmax; height: 170%;
    background: linear-gradient(90deg, rgba(255, 245, 210, 0) 0%, rgba(255, 245, 210, 0.38) 45%, rgba(255, 255, 240, 0.55) 50%, rgba(255, 245, 210, 0.38) 55%, rgba(255, 245, 210, 0) 100%);
    filter: blur(18px);
    transform-origin: 50% 0;
    transform: rotate(38deg);
    animation: hero-beam calc(var(--phrase) * 2) var(--sway-ease) infinite;
}
.hero-beam--2 {
    width: 9vmax; left: 56%;
    opacity: 0.6;
    animation-delay: calc(var(--phrase) * -1);
}
.hero-leak { border-radius: 50%; filter: blur(40px); }
.hero-leak--warm {
    left: -18%; top: -10%; width: 60vw; height: 80vh;
    background: radial-gradient(closest-side, rgba(255, 170, 40, 0.55), rgba(255, 170, 40, 0));
    animation: hero-leak calc(var(--phrase) * 2) var(--sway-ease) infinite;
}
.hero-leak--green {
    right: -15%; top: 5%; width: 55vw; height: 90vh;
    background: radial-gradient(closest-side, rgba(200, 230, 90, 0.35), rgba(200, 230, 90, 0));
    animation: hero-leak calc(var(--phrase) * 2) var(--sway-ease) infinite reverse;
}

@keyframes hero-drift { from { transform: scale(1); } to { transform: scale(1.07) translateX(-1%); } }
@keyframes hero-sun {
    0%, 100% { opacity: 0.55; transform: scale(0.94); }
    50%      { opacity: 0.95; transform: scale(1.08); }
}
@keyframes hero-beam {
    0%, 100% { opacity: 0.25; transform: rotate(36deg) translateX(-3vw); }
    50%      { opacity: 0.8;  transform: rotate(40deg) translateX(3vw); }
}
@keyframes hero-leak {
    0%, 100% { opacity: 0.45; transform: translate(0, 0) scale(1); }
    50%      { opacity: 0.9;  transform: translate(3vw, 2vh) scale(1.1); }
}
@media (prefers-reduced-motion: reduce) {
    .hero-photo img, .hero-light > span { animation: none; }
}

.hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 2rem;
    /* 180/1440 and ~106/1440 off the frame. Percentages resolve against
       width, so the vertical rhythm scales with the band. */
    padding-top: 17.36%;   /* 250/1440 */
    padding-bottom: 13.89%; /* 200/1440 — tagline top 784 + 2 lines x 20 */
}

/* H1 style: Alegreya Regular 96/102, letter-spacing -1% */
.hero-title {
    font-family: var(--font-serif);
    font-weight: 480;
    /* Bound by height too, so the five lines always fit the hero. */
    font-size: clamp(2.5rem, min(7.6vw, 10vh), 8.5rem);
    line-height: 0.92;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #fff;
    margin: 0;
}
/* Headings that breathe: the real words keep the heading's size and stay
   readable to screen readers and search, invisible; the same words drawn
   as stretched, breathing outlines sit exactly over them (js/senses.js). */
.breathe { position: relative; display: inline-block; }
.breathe .breathe-text { color: transparent; }
.breathe a { position: relative; display: inline-block; }
.breathe .breathe-art {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
    pointer-events: none;
}

/* Body style: Alegreya Sans Regular 16, letter-spacing -1% */
.hero-tagline {
    font-family: var(--font-sans);
    font-weight: 400;
    font-size: calc(clamp(0.875rem, 1.25vw, 18px) * var(--type-scale));
    line-height: var(--figma-lh-body);
    letter-spacing: -0.01em;
    color: #fff;
    margin: 0;
}

/* ============================================================
   HOME — ABOUT BAND
   Figma nodes 1:42 / 1:60 / 1:25 / 1:27 — a 1440x810 band on #F8F8F8.
   The photo-in-difference-blend that used to live here is gone; it is now
   a black hibiscus vector on the left half with green type on the right.

   Columns come from the grid; the vertical offsets do not. This band is an
   art-directed composition where the three elements sit at 163 / 306 / 538
   from the band's top and deliberately overlap in the column axis, so each
   item shares grid row 1 and carries its own top offset. Stacked normally
   they would sequence top-to-bottom, which is not the drawing.
   ============================================================ */
.home-about {
    /* Every vertical offset in this band is a fraction of the band's own
       height. A percentage margin on a GRID ITEM resolves against its grid
       area (499px here), not the container — so these must be calc() against
       an explicit length or they land ~93px and ~245px short. */
    --band-h: clamp(540px, 46vw, 660px);
    position: relative;
    height: var(--band-h);
    background: var(--figma-white);
    overflow: hidden;
}

/* The flower photo rises from the bottom left and fades into the white
   toward the top right, where the text sits, so it never butts against
   the photos above and below. */
.home-about-photo {
    position: absolute;
    inset: 0;
    -webkit-mask-image: linear-gradient(to top right, #000 0%, #000 30%, transparent 64%);
            mask-image: linear-gradient(to top right, #000 0%, #000 30%, transparent 64%);
}
/* Sized and offset so the bloom itself sits in the bottom-left corner. */
.home-about-photo img {
    position: absolute;
    width: 78%;
    max-width: none;
    height: auto;
    aspect-ratio: 2400 / 1350;
    /* The bloom's leftmost petal tip sits 31.8% into the photo; put that
       tip on the grid's left edge. */
    left: calc((100% - min(100%, var(--container))) / 2 + var(--margin) - 0.318 * 78%);
    bottom: -3%;
    /* The photo's own top and right edges dissolve, so no straight edge of
       the frame ever shows inside the band. */
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 38%), linear-gradient(to left, transparent 0%, #000 38%);
    -webkit-mask-composite: source-in;
            mask-image: linear-gradient(to bottom, transparent 0%, #000 38%), linear-gradient(to left, transparent 0%, #000 38%);
            mask-composite: intersect;
    display: block;
}

.home-about-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: center;
}
.home-about-content > .home-about-grid { width: 100%; }

.home-about-grid > * { grid-row: 1; align-self: start; }

.home-about-flower  { grid-column: 1 / span 5; margin-top: 0; }
/* Heading and paragraph stack with a fixed gap, centred in the band. */
.home-about-heading { grid-column: 6 / span 7; margin-top: 0; }
.home-about-grid > .home-about-body { grid-column: 8 / span 5; grid-row: 2; margin-top: 2.5rem; }

.home-about-flower {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1 / 1;   /* node 1:60 is a 505x505 frame ... */
}

.home-about-flower img,
.home-about-flower .flower-art {
    display: block;
    /* ... and the artwork inside it is 356.104 x 244, centred. Sizing the
       leaf as a fraction of the frame keeps that relationship at any width. */
    width: 70.52%;         /* 356.104/505 */
    height: auto;
    aspect-ratio: 356.104 / 244;
    /* Rotated on scroll by navigation.js; the transition smooths the
       rAF steps without fighting them. */
    transform-origin: 50% 50%;
    will-change: transform;
}

/* Each flower sways and breathes on its own, out of step with the other,
   inside the scroll rotation of the whole artwork. */
.home-about-flower .flower-art { overflow: visible; }
.flower-orange,
.flower-green {
    transform-box: fill-box;
    transform-origin: 50% 50%;
    animation: flower-sway var(--phrase) var(--sway-ease) infinite;
}
.flower-green { animation-delay: calc(var(--beat) * -4); }
@keyframes flower-sway {
    0%, 100% { transform: rotate(-3deg) scale(1); }
    50%      { transform: rotate(3deg) scale(1.04); }
}

@media (prefers-reduced-motion: reduce) {
    .home-about-flower img,
    .home-about-flower .flower-art { transform: none !important; }
    .flower-orange, .flower-green { animation: none; }
}

/* H2 style: Alegreya Regular 36, letter-spacing -1% */
.home-about-heading {
    font-family: var(--font-serif);
    font-weight: 480;
    text-transform: none;
    letter-spacing: -0.01em;
    font-size: calc(clamp(1.5rem, 2.6vw, 2.25rem) * var(--type-scale)); /* next step: 36 (H2) */
    line-height: var(--figma-lh-h2);
    letter-spacing: -0.01em;
    color: #ca1f4c; /* deep petal pink, sampled from the photo */
    margin-bottom: 0;
}

/* Body style: Alegreya Sans Regular 16, letter-spacing -1% */
.home-about-body {
    font-family: var(--font-sans);
    font-weight: 400;
    font-size: calc(clamp(0.875rem, 1.25vw, 18px) * var(--type-scale));
    line-height: var(--figma-lh-body);
    letter-spacing: -0.01em;
    color: var(--figma-green);
    margin-bottom: 0;
}

.since-badge .yr {
    font-family: var(--font-serif);
    font-size: calc(1.75rem * var(--type-scale));
    font-weight: 480;
    color: var(--orange-900);
    line-height: 1;
}

.since-badge .text {
    font-size: calc(0.6rem * var(--type-scale));
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--orange-900);
    margin-top: 2px;
}

/* ============================================================
   HOME — PROGRAMMING PANELS
   Three solid peach panels on the page background: photo, label + status
   pill, name, description, then a two-column key/value list.
   ============================================================ */
/* The whole section is a solid sage field so it reads as one clear
   segment; the three peach panels sit inside it. */
.home-classes {
    background: var(--gray-900);
    color: var(--white);
    padding-block: 6rem 7rem;
}

.programming-head { margin-bottom: 3rem; }

.programming-heading {
    font-family: var(--font-serif);
    font-weight: 480;
    font-size: calc(clamp(1.625rem, 3.6vw, 52px) * var(--type-scale));
    line-height: 1.02;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--white);
    margin: 0 0 0.75rem;
}

.programming-sub {
    font-family: var(--font-sans);
    font-weight: 300;
    font-size: var(--text-lg);
    color: var(--white);
    margin: 0;
}

.home-classes .btn-outline-green { border-color: var(--white); color: var(--white); }
.home-classes .btn-outline-green:hover { background: var(--white); color: var(--gray-900); }

/* Three cards, one colour each. The photo fills the card behind the type
   and fades into the card colour before the text, so the type stays
   legible. Cards tilt and sway like the others. */
.program-panels { row-gap: var(--gutter); }

.program-panel {
    --tilt: -1.2deg;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 44rem;
    padding: 2rem;
    overflow: hidden;
    isolation: isolate;
    background: var(--white);
    color: var(--gray-900);
    transform: rotate(var(--tilt));
    border-radius: var(--radius-card);   /* the photo inside is clipped to it */
}
.program-panel:nth-child(2) { --tilt: 1deg; }
.program-panel:nth-child(3) { --tilt: -0.6deg; }
.program-panel:hover { animation-play-state: paused; }

.program-panel-photo {
    position: absolute;
    inset: -2px; /* overhang so no sliver of card shows at a tilted edge */
    z-index: -1;
    display: block;
    overflow: hidden;
}
/* The photo fills the card edge to edge, top down. */
.program-panel-photo span { position: absolute; inset: 0 0 calc(var(--text-zone, 24rem) - 9rem) 0; }
.program-panel-photo span img { position: absolute; inset: 0; }
/* The photo fades into the card colour and is fully gone where the text
   begins. --text-zone (the height of the text block, set by
   js/navigation.js) is measured from the card's foot. */
.program-panel-photo {
    -webkit-mask-image: linear-gradient(to top, transparent var(--text-zone, 24rem), #000 calc(var(--text-zone, 24rem) + 9rem));
            mask-image: linear-gradient(to top, transparent var(--text-zone, 24rem), #000 calc(var(--text-zone, 24rem) + 9rem));
}
.program-panel:nth-child(1) { background: var(--orange-900); }
.program-panel:nth-child(2) { background: var(--blue-700); }
.program-panel:nth-child(3) { background: var(--sage-700); }
.program-panel, .program-panel .program-panel-title, .program-panel .program-panel-title a { color: var(--white); }

.program-panel-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.program-panel:hover .program-panel-photo img { transform: scale(1.03); }
.program-panel:nth-child(1) .program-panel-photo img { object-position: 45% 60%; }
.program-panel:nth-child(2) .program-panel-photo img { object-position: 50% 25%; }
.program-panel:nth-child(3) .program-panel-photo img { object-position: 50% 30%; }

.program-panel-tags {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    font-family: var(--font-sans);
}

.program-panel-label {
    font-size: var(--text-xs);
    font-weight: 400;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.program-panel-title {
    font-size: calc(clamp(1.5rem, 2.4vw, 2rem) * var(--type-scale));
    font-weight: 300;
    line-height: 1.05;
    margin: 0 0 0.75rem;
}

.program-panel-title a { color: inherit; text-decoration: none; }
.program-panel-title a:hover { text-decoration: underline; text-underline-offset: 0.2em; }
/* The whole card is the link: the title's link stretches over the card. */
.program-panel { cursor: pointer; }
.program-panel-title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.program-panel:hover .program-panel-title a { text-decoration: underline; text-underline-offset: 0.2em; }
.program-panel:has(.program-panel-title a:focus-visible) { outline: 2px solid var(--white); outline-offset: -6px; }
.program-panel-title a:focus-visible { outline: none; }

.program-panel-text {
    font-family: var(--font-sans);
    font-size: var(--text-base);
    font-weight: 300;
    line-height: 1.55;
    margin: 0 0 2rem;
}

.program-panel-meta {
    margin: 0;
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: 0.5rem 1.5rem;
    font-family: var(--font-sans);
    font-size: var(--text-sm);
}

.program-panel-meta > div { display: contents; }

.program-panel-meta dt {
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-size: var(--text-xs);
    padding-top: 0.15rem;
}

.program-panel-meta dd { margin: 0; }

.programming-foot { margin-top: 3rem; text-align: center; }

@media (max-width: 1024px) { .program-panel { min-height: 42rem; padding: 1.5rem; } }
@media (max-width: 768px) {
    .program-panels > [class*="col-"] { grid-column: auto / span 12; }
    .program-panel { min-height: 40rem; }
}
}
@media (prefers-reduced-motion: reduce) { .program-panel { animation: none; } }

/* ============================================================
   HOME — EVENTS PREVIEW
   ============================================================ */
/* Solid pale-peach field so the events read as their own segment between
   the green Programming band and the quote below. */
.home-events {
    background: var(--blue-700);
    color: var(--white);
    padding-block: 7rem;
}

.home-events .section-heading { color: var(--white); }
.home-events .events-list { border-top: 0; }
.home-events .event-row { border-bottom-color: rgba(248, 248, 248, 0.35); }
.home-events .event-row:hover { background: transparent; }
.home-events .event-date-box,
.home-events .event-info h3,
.home-events .event-info .meta,
.home-events .event-arrow { color: var(--white); }
.home-events .btn-outline-green { border-color: var(--white); color: var(--white); }
.home-events .btn-outline-green:hover { background: var(--white); color: var(--blue-700); }

.home-events .text-center { margin-bottom: 3.5rem; }

.events-list {
    display: flex;
    flex-direction: column;
}

a.event-row { color: inherit; text-decoration: none; }

.event-row {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--color-border);
    align-items: center;
    transition: background var(--ease-fast);
}

.event-row:hover { background: transparent; }
.event-row:hover .event-info h3 { text-decoration: underline; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }

.event-date-box {
    flex-shrink: 0;
    width: 64px;
    text-align: left;
    color: var(--orange-900);
}

.event-date-box .mo {
    font-size: calc(0.65rem * var(--type-scale));
    font-weight: 400;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    display: block;
}

.event-date-box .dy {
    font-family: var(--font-serif);
    font-size: calc(1.75rem * var(--type-scale));
    font-weight: 480;
    line-height: 1;
    display: block;
}

.event-info { flex: 1; }

.event-info .tag {
    font-size: var(--text-xs);
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--blue-700);
    background: var(--blue-100);
    padding: 2px 10px;
    border-radius: var(--radius-full);
    display: inline-block;
    margin-bottom: 0.4rem;
}

.event-info h3 {
    font-size: calc(clamp(1.375rem, 2.6vw, 1.875rem) * var(--type-scale));
    line-height: 1.1;
    color: var(--orange-900);
    margin-bottom: 0.25rem;
}

.event-info .meta {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    font-weight: 400;
}

.event-arrow {
    color: var(--color-border);
    flex-shrink: 0;
    font-size: calc(1.2rem * var(--type-scale));
    transition: color var(--ease-fast), transform var(--ease-fast);
}

.event-row:hover .event-arrow {
    color: var(--orange-600);
    transform: translateX(3px);
}

.events-cta {
    text-align: center;
    margin-top: 2.5rem;
}

/* ============================================================
   HOME — THE SENSES
   The words fill the whole section as letter tiles (js/inflate.js); the
   sentence that leads into them sits small in the top left.
   ============================================================ */
.senses {
    height: 100vh;
    height: 100svh;
    min-height: 640px;
    max-height: 1100px;
    background: var(--orange-950);
}
/* Starts below the fixed logo; the letters keep to the grid margins. */
/* Starts below the fixed logo; everything keeps to the grid margins. */
.senses-inner {
    position: relative;
    height: 100%;
    padding-top: calc(var(--header-h) + 1rem);
    padding-bottom: 3rem;
    display: grid;
}
/* The words fill the section behind the quote, quietly. */
.senses-tiles { position: relative; grid-area: 1 / 1; min-height: 0; opacity: 0.32; }
.senses-tiles canvas,
.senses-tiles svg { position: absolute; inset: 0; display: block; width: 100%; height: 100%; overflow: visible; }
.senses-quote {
    grid-area: 1 / 1;
    position: relative;
    z-index: 1;
    margin: 0;
    align-self: center;
    justify-self: center;
    max-width: 17em;
    text-align: center;
    font-size: calc(clamp(2rem, 4.4vw, 3.75rem) * var(--type-scale));
}
.senses-quote blockquote {
    margin: 0;
    font-family: var(--font-serif);
    font-weight: 480;
    font-size: 1em;
    line-height: 1.15;
    text-transform: none;
    text-wrap: balance;
    color: #fff;
}
/* The senses themselves are the words behind; screen readers get them here. */
.senses-sr {
    position: absolute; width: 1px; height: 1px; overflow: hidden;
    clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.senses-credit {
    margin: 1.5rem 0 0;
    font-family: var(--font-sans);
    font-size: var(--text-base);
    line-height: 1.3;
    color: #fff;
}
@media (max-width: 768px) {
    .senses { height: auto; min-height: 0; max-height: none; }
    .senses-inner { padding-top: calc(96px + 1.5rem); padding-bottom: 2.5rem; }
    .senses-tiles { aspect-ratio: 353 / 560; }
}

/* ============================================================
   HOME — QUOTE + FRAMED PHOTO
   Left: light serif quote. Right: a 4:5 photo (gallery images cross-fade
   every few seconds, driven by js/navigation.js) with a solid panel over
   its upper half carrying three words.
   ============================================================ */
.quote-frame {
    padding-block: 8rem;
    background: var(--white);
}

.quote-frame-inner { align-items: center; }

.quote-frame-text { margin: 0; }

/* The quote runs on over the photo. Both share one grid row; the text sits
   on top and inverts what is under it (difference), so it reads dark on the
   page and light across the photo. Colours below are set as their inverse
   against the page white, so on the page they land on the palette. */
.quote-frame-inner > .quote-frame-text   { grid-column: 1 / span 11; grid-row: 1; position: relative; z-index: 2; mix-blend-mode: difference; }
.quote-frame-inner > .quote-frame-visual { grid-column: 8 / span 5; grid-row: 1; }

.quote-frame-text blockquote {
    /* Opening quote mark hangs into the margin: js/navigation.js (.hang). */
    font-family: var(--font-serif);
    font-size: calc(clamp(2rem, 4.4vw, 3.75rem) * var(--type-scale)); /* step: 60 */
    font-weight: 480;
    line-height: 1.3;
    letter-spacing: -0.005em;
    text-transform: none;
    color: #e1e1e5;              /* lands on --gray-900 */
    margin: 0 0 2rem;
}

/* The five senses take turns after "we": one word at a time, cross-fading
   in its own palette colour, its weight pulsing on an irregular beat
   (js/navigation.js). The slot is as wide as the widest word at its
   heaviest, and "we", the word and the closing mark never wrap apart. */
.quote-frame-text .q-tail { white-space: nowrap; }
.quote-frame-text .q-cycle {
    position: relative;
    display: inline-block;
    vertical-align: bottom;
    width: var(--q-slot, 5.2em);
    height: 1.3em;
}
.quote-frame-text .q-sans {
    position: absolute;
    left: 0;
    bottom: 0;
    font-family: var(--font-serif);
    font-weight: 480;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    white-space: nowrap;
}
/* Each letter arrives and leaves on its own: a soft blur, a small rise,
   staggered by uneven delays set in js/navigation.js. */
.quote-frame-text .q-sans .ql {
    display: inline-block;
    opacity: 0;
    filter: blur(6px);
    transform: translateY(0.12em);
    transition: opacity 1.3s cubic-bezier(.3,.1,.3,1) var(--d, 0s),
                filter 1.5s cubic-bezier(.3,.1,.3,1) var(--d, 0s),
                transform 1.7s cubic-bezier(.2,.7,.3,1) var(--d, 0s);
}
.quote-frame-text .q-cycle:not(.is-split) .q-sans:not(.is-on) { opacity: 0; }
.quote-frame-text .q-sans.is-on .ql { opacity: 1; filter: blur(0); transform: none; }
.quote-frame-text .q-end { font-weight: 480; letter-spacing: 0; color: #e1e1e5; }
.quote-frame-text .q-sans:nth-child(1) { color: #54b1d0; } /* → --orange-900 */
.quote-frame-text .q-sans:nth-child(2) { color: #b89d61; } /* → --blue-700 */
.quote-frame-text .q-sans:nth-child(3) { color: #a084ac; } /* → --sage-700 */
.quote-frame-text .q-sans:nth-child(4) { color: #dacaa6; } /* → --blue-900 */
.quote-frame-text .q-sans:nth-child(5) { color: #8ac4d7; } /* → --orange-950 */
/* Screen readers get the whole sentence; sighted readers the cycle. */
.quote-frame-text .q-full {
    position: absolute; width: 1px; height: 1px; overflow: hidden;
    clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

.quote-frame-text figcaption {
    font-family: var(--font-sans);
    font-size: var(--text-base);
    font-weight: 400;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #e1e1e5;
}

/* The photo sits inside a thick solid colour frame (padding on a coloured
   box); the pictures cross-fade within it. */
/* The frame rounds its top-left corner; the photo rounds its bottom-right.
   Opposite corners, so the two shapes answer each other. */
.quote-frame-visual {
    --frame-r: clamp(80px, 12vw, 180px);
    --frame-pad: clamp(0.5rem, 0.8vw, 0.875rem);
    position: relative;
    padding: var(--frame-pad);
    background: var(--blue-700);
    border-radius: var(--frame-r) 0 0 0;
}

/* Cream ring around the photo, same corner treatment. */
.quote-frame-ring { display: contents; }

.quote-frame-photos {
    position: relative;
    aspect-ratio: 4 / 5;
    display: grid;
}

.quote-frame-photos img {
    grid-area: 1 / 1;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1.2s ease;
}

.quote-frame-photos img.is-active { opacity: 1; }

/* Top-left follows the frame concentrically (frame radius minus the
   padding) so the photo nests inside the curve; bottom-right is the big one. */
.quote-frame-photos {
    border-radius: calc(var(--frame-r) - var(--frame-pad)) 0 var(--frame-r) 0;
    overflow: hidden;
    background: transparent;
}

@media (max-width: 1024px) {
    .quote-frame-inner > .quote-frame-text, .quote-frame-inner > .quote-frame-visual { grid-column: 1 / -1; grid-row: auto; }
    .quote-frame-visual { max-width: 480px; }
}

@media (prefers-reduced-motion: reduce) {
    .quote-frame-photos img { transition: none; }
}


/* ============================================================
   HOME — CTA
   ============================================================ */
.home-cta {
    background: var(--blue-800);
    color: var(--white);
    padding-block: 8rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}
/* A dancer in the garden behind the invitation, darkened under the words. */
.home-cta { isolation: isolate; min-height: min(56.25vw, 92svh); display: flex; flex-direction: column; justify-content: flex-end; padding-block: 0 5rem; }

.home-cta-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; z-index: -2; }
.home-cta::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(23,23,19,0.78) 0%, rgba(23,23,19,0.45) 38%, rgba(23,23,19,0) 65%); pointer-events: none; }
.home-cta .container { position: relative; }
/* On a phone the photograph sits above the invitation instead of under it,
   so his face is never behind the words. */
@media (max-width: 768px) {
    .home-cta { min-height: 0; padding-top: 0 !important; padding-bottom: 3.5rem; }
    .home-cta-photo { position: relative; inset: auto; z-index: 0; height: auto; aspect-ratio: 4 / 5; object-position: 52% 30%; margin-bottom: 2.5rem; }
    .home-cta::before { display: none; }
}

.home-cta .panel-title { color: var(--white); margin-bottom: 1.5rem; }
.home-cta p { color: var(--white) !important; }
/* Primary button in the warm orange against the deep blue; secondary in white outline. */
.home-cta .btn-gold { background: var(--orange-800); color: var(--gray-900); border-color: var(--orange-900); }
.home-cta .btn-gold:hover { background: var(--orange-700); border-color: var(--orange-700); }
.home-cta .btn-outline-green { border-color: var(--white); color: var(--white); }
.home-cta .btn-outline-green:hover { background: var(--white); color: var(--blue-900); }

.home-cta p {
    font-size: var(--text-lg);
    font-weight: 300;
    color: var(--gray-900);
    margin: 0 0 2.5rem;
    line-height: 1.7;
}

.btn-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================================
   PAGE HERO (inner pages)
   A slim strip directly under the header: title on the left, subhead on
   the right, sharing one baseline, with a hairline beneath. No band, no
   stack — the page content starts almost immediately.
   ============================================================ */
.page-hero {
    padding-top: calc(var(--header-h) + 3rem);
    padding-bottom: 1.25rem;
    background: transparent;
    position: relative;
}

.page-hero .grid-12 > [class*="col-"] {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.5rem 2rem;
}

.page-hero .eyebrow {
    flex-basis: 100%;
    display: block;
    color: var(--blue-700);
    margin-bottom: 0.25rem;
}

.page-hero h1 {
    font-size: calc(clamp(1.5rem, 2.4vw, 2.25rem) * var(--type-scale));
    font-weight: 480;
    line-height: 1;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--gray-900);
    margin: 0;
}

.page-hero p {
    font-family: var(--font-sans);
    font-size: var(--text-base);
    font-weight: 300;
    color: var(--gray-900);
    margin: 0;
    max-width: 44ch;
    text-align: right;
}

@media (max-width: 768px) {
    .page-hero .grid-12 > [class*="col-"] { flex-direction: column; flex-wrap: nowrap; align-items: flex-start; }
    .page-hero .eyebrow { flex-basis: auto; }
    .page-hero p { text-align: left; }
}

/* ============================================================
   ABOUT PAGE
   ============================================================ */
/* Full-viewport opening photo. Same treatment as the gallery landing view:
   the image fills the first screen, a scrim lifts the bottom, the title
   sits over it. */
.about-hero {
    position: relative;
    height: 100vh;
    height: 100svh;
    min-height: 560px;
    background: var(--gray-900);
    overflow: hidden;
}

.about-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.about-hero::after {
    content: '';
    position: absolute;
    inset: auto 0 0 0;
    height: 45%;
    background: linear-gradient(to top, rgba(23,23,19,0.65), rgba(23,23,19,0));
    pointer-events: none;
}

.about-hero-text {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 3rem;
    z-index: 1;
}

.about-hero-text h1 {
    /* The meaning of the name, sized like the homepage hero line. */
    font-size: clamp(2.5rem, min(7.6vw, 10vh), 8.5rem);
    font-weight: 480;
    line-height: 0.92;
    letter-spacing: 0.02em;
    max-width: 13ch;
    color: #fff;
    margin-bottom: 0.5rem;
}

.about-hero-text p {
    font-family: var(--font-sans);
    font-size: var(--text-lg);
    font-weight: 300;
    color: #fff;
    margin: 0;
}

/* Full-viewport duotone between the story and the bio: the photo is
   desaturated and multiplied over a solid rust, so highlights become the
   colour and shadows go near-black. White quote centred on top. */
.about-band {
    position: relative;
    height: 100vh;
    height: 100svh;
    min-height: 560px;
    background: var(--orange-900);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    isolation: isolate;   /* keep the multiply layer from touching the quote */
}

.about-band img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: grayscale(1) contrast(1.1) brightness(1.15);
}

/* The colour sits on top and multiplies into the greyscale photo:
   highlights become rust, shadows go dark. */
.about-band::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background: var(--orange-800);
    mix-blend-mode: multiply;
}

/* A light darkening so the white quote stays legible on the brightest areas. */
.about-band::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 2;
    background: rgba(23,23,19,0.18);
}

.about-band-quote {
    position: relative;
    z-index: 3;
    margin: 0;
    padding-inline: var(--margin);
    max-width: 60rem;
    text-align: center;
    color: #fff;
}

.about-band-quote blockquote,
.about-band-quote figcaption { color: #fff; mix-blend-mode: normal; }

.about-band-quote blockquote {
    font-family: var(--font-serif);
    font-size: calc(clamp(1.75rem, 3.4vw, 3rem) * var(--type-scale));
    font-weight: 480;
    line-height: 1.3;
    letter-spacing: -0.01em;
    margin: 0 0 1.5rem;
}

.about-band-quote figcaption {
    font-family: var(--font-sans);
    font-size: var(--text-xs);
    font-weight: 400;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    opacity: 0.9;
}

.about-story {
    position: relative;
    overflow: hidden;
    padding-block: 7rem;
    background: var(--blue-700);
    color: var(--white);
}

.about-story-inner { row-gap: 2.5rem; align-items: start; }
/* Lead and body share a row and a first baseline. */
.about-story-lead-wrap,
.about-story-body { grid-row: 2; align-self: first baseline; }

.about-story .about-story-title h2 {
    font-family: var(--font-serif);
    font-weight: 480;
    font-size: calc(clamp(2rem, 4.2vw, 3.75rem) * var(--type-scale));
    line-height: 0.95;
    letter-spacing: 0.01em;
    text-transform: uppercase;
    color: var(--white);
    margin: 0;
}

.about-story-lead {
    font-family: var(--font-serif);
    font-size: calc(clamp(1.25rem, 1.9vw, 1.75rem) * var(--type-scale));
    font-weight: 480;
    line-height: 1.4;
    color: var(--white);
    margin: 0;
}

.about-story-body { display: flex; flex-direction: column; gap: 1.25rem; }

.about-story-body p,
.about-story-col {
    font-family: var(--font-sans);
    font-size: var(--text-base);
    font-weight: 300;
    line-height: 1.7;
    color: var(--white);
    margin: 0;
}

@media (max-width: 768px) {
    .about-story-inner { row-gap: 2.5rem; }
}

/* Full-viewport opening photo. Same treatment as the gallery landing view:
   the image fills the first screen, a scrim lifts the bottom, the title
   sits over it. */
.about-hero {
    position: relative;
    height: 100vh;
    height: 100svh;
    min-height: 560px;
    background: var(--gray-900);
    overflow: hidden;
}

.about-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.about-hero::after {
    content: '';
    position: absolute;
    inset: auto 0 0 0;
    height: 45%;
    background: linear-gradient(to top, rgba(23,23,19,0.65), rgba(23,23,19,0));
    pointer-events: none;
}

.about-hero-text {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 3rem;
    z-index: 1;
}

.about-hero-text h1 {
    /* The meaning of the name, sized like the homepage hero line. */
    font-size: clamp(2.5rem, min(7.6vw, 10vh), 8.5rem);
    font-weight: 480;
    line-height: 0.92;
    letter-spacing: 0.02em;
    max-width: 13ch;
    color: #fff;
    margin-bottom: 0.5rem;
}

.about-hero-text p {
    font-family: var(--font-sans);
    font-size: var(--text-lg);
    font-weight: 300;
    color: #fff;
    margin: 0;
}

/* Full-viewport photo between the story and the bio, quote centred over
   a soft darkening so the white type reads on any photo. */
.about-band {
    position: relative;
    height: 100vh;
    height: 100svh;
    min-height: 560px;
    background: var(--gray-900);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.about-band img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.about-band::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(23,23,19,0.42);
}

.about-band-quote {
    position: relative;
    z-index: 3;
    margin: 0;
    padding-inline: var(--margin);
    max-width: 60rem;
    text-align: center;
    color: #fff;
}

.about-band-quote blockquote {
    font-family: var(--font-serif);
    font-size: calc(clamp(1.75rem, 3.4vw, 3rem) * var(--type-scale));
    font-weight: 480;
    line-height: 1.3;
    letter-spacing: -0.01em;
    margin: 0 0 1.5rem;
}

.about-band-quote figcaption {
    font-family: var(--font-sans);
    font-size: var(--text-xs);
    font-weight: 400;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    opacity: 0.9;
}

.about-story {
    position: relative;
    overflow: hidden;
    padding-block: 7rem;
    background: var(--blue-700);
    color: var(--white);
}

/* Kumu section — photo beside the bio, no card around it. */
.kumu-section {
    padding-block: 6rem;
    background: var(--white);
}

.kumu-inner { align-items: center; }

/* Founder photo: an asymmetric five-petal bloom (assets/frame-bloom.svg,
   drawn in the photo's own 3:4 box so it never stretches). A blue bloom,
   and the photo set inside it in the same bloom, a little smaller. */
.kumu-photo {
    aspect-ratio: 3/4;
    position: relative;
    background: var(--blue-700);
    -webkit-mask: url(assets/frame-bloom.svg) center / 100% 100% no-repeat;
            mask: url(assets/frame-bloom.svg) center / 100% 100% no-repeat;
}
.kumu-photo img {
    position: absolute;
    inset: 7%;
    width: 86%;
    height: 86%;
    object-fit: cover;
    object-position: 50% 30%;
    -webkit-mask: url(assets/frame-bloom.svg) center / 100% 100% no-repeat;
            mask: url(assets/frame-bloom.svg) center / 100% 100% no-repeat;
    transform: rotate(-4deg);
}

.kumu-info h3 {
    font-family: var(--font-sans);
    font-size: calc(clamp(1.25rem, 2vw, 1.75rem) * var(--type-scale));
    font-weight: 400;
    letter-spacing: 0.08em;
    color: var(--orange-900);
    margin-bottom: 2rem;
}

/* Title sits above the name, as its eyebrow. */
.kumu-info .kumu-title {
    font-size: var(--text-xs);
    font-weight: 400;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--blue-700);
    display: block;
    margin-bottom: 0.25rem;
}

.kumu-info p {
    text-wrap: pretty; /* no one-word last lines */
    color: var(--sage-800);
    font-size: var(--text-lg);
    font-weight: 400;
    line-height: 1.85;
    margin-bottom: 1rem;
}

/* Testimonials — full-viewport carousel. Slides share one grid cell and
   cross-fade; the dots underneath are the navigation. */
.testimonials-section {
    width: 100vw;
    min-height: 100vh;
    min-height: 100svh;
    margin-inline: calc(50% - 50vw);
    display: flex;
    align-items: center;
    background: var(--gray-100);
}

.testimonials-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-block: 6rem;
    gap: 3rem;
}

.testimonials-heading {
    font-family: var(--font-sans);
    font-size: var(--text-xs);
    font-weight: 400;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--orange-900);
    margin: 0;
}

.testimonials-track {
    display: grid;
    width: 100%;
    max-width: 62rem;
}

.testimonial-slide {
    grid-area: 1 / 1;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.5s ease, transform 0.5s ease, visibility 0.5s;
}

.testimonial-slide.is-active {
    opacity: 1;
    visibility: visible;
    transform: none;
}

.testimonial-slide blockquote {
    font-family: var(--font-serif);
    text-transform: none;
    font-size: calc(clamp(1.75rem, 3.2vw, 2.9rem) * var(--type-scale));
    font-weight: 480;
    line-height: 1.35;
    letter-spacing: -0.01em;
    color: var(--gray-900);
    margin: 0 0 2rem;
}

.testimonial-slide figcaption strong {
    display: block;
    font-family: var(--font-sans);
    font-size: var(--text-base);
    font-weight: 400;
    color: var(--orange-900);
}

.testimonial-slide figcaption span {
    font-family: var(--font-sans);
    font-size: var(--text-sm);
    color: var(--color-text-muted);
}

.testimonials-dots {
    display: flex;
    gap: 0.75rem;
}

.testimonials-dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border: 1px solid var(--orange-800);
    border-radius: var(--radius-full);
    background: transparent;
    cursor: pointer;
    transition: background var(--ease-fast), transform var(--ease-fast);
}

.testimonials-dot:hover { transform: scale(1.25); }
.testimonials-dot.is-active { background: var(--orange-800); }
.testimonials-dot:focus-visible { outline: 2px solid var(--blue-700); outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
    .testimonial-slide { transition: none; }
}

/* ============================================================
   BIOGRAPHY (About) — on black: head, opening, highlight cards, the two
   reviews side by side, the three ʻūniki stages in a row. Then Zen
   meditation (sage band) and Lāʻau Lapaʻau (peach band, term cards with
   a Listen button once June's recording is in assets/audio/).
   ============================================================ */
.bio-section {
    padding-block: 7rem;
    background: var(--blue-700);
    color: var(--white);
}

/* Rows: label left, content right, a hairline between rows (none above the first). */
.bio-row { padding-block: 3.5rem; border-top: 1px solid rgba(248, 248, 248, 0.3); align-items: start; }
.bio-row:first-child { border-top: 0; padding-top: 0; }
.bio-row:last-child { padding-bottom: 0; }

.bio-kicker,
.bio-label {
    display: block;
    font-family: var(--font-serif);
    font-size: var(--text-sm);
    font-weight: 520;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--orange-200);
    margin: 0 0 0.75rem;
}

.bio-title {
    font-size: calc(clamp(1.5rem, 2.4vw, 2rem) * var(--type-scale));
    line-height: 1.15;
    margin: 0 0 0.75rem;
    color: var(--white);
}
.bio-title abbr { text-decoration: none; }

.bio-role {
    font-family: var(--font-sans);
    font-size: var(--text-xs);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--white);
    margin: 0;
}

.bio-body {
    font-family: var(--font-sans);
    font-size: var(--text-base);
    font-weight: 300;
    line-height: 1.75;
    margin: 0;
}
.bio-body p { margin: 0 0 1.25rem; }
.bio-body p:last-child { margin-bottom: 0; }
.bio-section a { color: var(--orange-200); }

.bio-lead {
    font-family: var(--font-serif);
    font-size: calc(clamp(1.25rem, 1.9vw, 1.6rem) * var(--type-scale));
    font-weight: 480;
    line-height: 1.4;
    margin: 0 0 1.5rem !important;
}

/* Highlights: cards stacked in the content column */
.bio-cards { display: flex; flex-direction: column; gap: 1rem; }
.bio-card {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1.75rem 2rem;
    background: var(--blue-800);
    font-family: var(--font-sans);
}
.bio-card-year {
    font-family: var(--font-serif);
    font-weight: 520;
    font-size: var(--text-sm);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--orange-200);
}
.bio-card h4 {
    font-family: var(--font-sans);
    font-size: var(--text-lg);
    font-weight: 500;
    letter-spacing: 0;
    text-transform: none;
    line-height: 1.35;
    color: var(--white);
    margin: 0;
}
.bio-card p { font-size: var(--text-base); font-weight: 300; line-height: 1.6; margin: 0; }

/* Press: the two reviews, one after the other */
.bio-press { display: flex; flex-direction: column; gap: 2.5rem; }
.bio-quote { margin: 0; padding-left: 1.5rem; border-left: 1px solid var(--orange-200); }
.bio-quote blockquote { margin: 0; }
.bio-quote p {
    font-family: var(--font-serif);
    font-size: var(--text-lg);
    font-weight: 480;
    line-height: 1.6;
    margin: 0;
}
.bio-quote figcaption {
    font-family: var(--font-sans);
    font-size: var(--text-xs);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--white);
    margin-top: 1.25rem;
}

/* ʻŪniki: three stages in a row */
.bio-stages {
    list-style: none;
    margin: 2rem 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--gutter);
}
.bio-stages li {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-family: var(--font-sans);
}
.bio-stage-year {
    font-family: var(--font-serif);
    font-size: calc(clamp(1.75rem, 3vw, 2.5rem) * var(--type-scale));
    font-weight: 480;
    line-height: 1;
    color: var(--orange-200);
    margin-bottom: 0.75rem;
}
.bio-stages strong { font-size: var(--text-lg); font-weight: 400; }
.bio-stages li > span:last-child { font-size: var(--text-sm); }

@media (max-width: 768px) {
    .bio-row { padding-block: 2.5rem; }
    .bio-label { margin-bottom: 1.25rem; }
}
@media (max-width: 40em) {
    .bio-stages { grid-template-columns: 1fr; gap: 1.5rem; }
}

/* Zen meditation and Lāʻau Lapaʻau bands */
.bio-band { padding-block: 7rem; }
.bio-band--zen {
    /* Ambient: ZLMC candlelight (softened) under a warm dark tint, drifting
       very slowly. The image is a layer behind the content. */
    position: relative;
    overflow: hidden;
    isolation: isolate;
    background: #1d140c;
    color: var(--white);
}
.bio-band--zen::before {
    content: "";
    position: absolute;
    inset: -4%;
    z-index: -2;
    background: url(assets/images/zlmc-candlelight.webp) center 45% / cover no-repeat;
    animation: zen-drift calc(var(--phrase) * 4) var(--sway-ease) infinite alternate;
}
.bio-band--zen::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(90deg, rgba(22, 15, 9, 0.72) 0%, rgba(22, 15, 9, 0.6) 45%, rgba(22, 15, 9, 0.7) 100%);
}
@keyframes zen-drift {
    from { transform: scale(1) translate3d(0, 0, 0); }
    to   { transform: scale(1.08) translate3d(-2%, -1.5%, 0); }
}
@media (prefers-reduced-motion: reduce) {
    .bio-band--zen::before { animation: none; }
}
.bio-band--laau { background: var(--orange-900); color: var(--white); }
.bio-band--zen .bio-kicker { color: var(--white); }
.bio-band--laau .bio-kicker { color: var(--white); }
.bio-band-title {
    font-size: calc(clamp(1.75rem, 2.6vw, 2.5rem) * var(--type-scale));
    line-height: 1.1;
    margin: 0;
    color: inherit;
    overflow-wrap: normal; /* break between words, never inside one */
    text-wrap: balance;
}
.bio-band-body {
    font-family: var(--font-sans);
    font-size: var(--text-base);
    font-weight: 300;
    line-height: 1.75;
}
.bio-band-body p { margin: 0 0 1.25rem; }
.bio-band-body p:last-child { margin-bottom: 0; }
.bio-band a { color: inherit; text-decoration: underline; text-underline-offset: 0.2em; }

/* Papa Auwae's five expectations: rows in the text column (7 grid
   columns): meaning on columns 1–2, the Hawaiian on 3–5, Listen ending
   on 7. Rules between rows and under the last. */
.bio-terms { list-style: none; margin: 3rem 0 0; padding: 0; }
.bio-term {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    column-gap: var(--gutter);
    align-items: center;
    padding-block: 1.5rem;
    border-bottom: 1px solid rgba(248, 248, 248, 0.4);
    font-family: var(--font-sans);
    color: var(--white);
}
.bio-term-meaning {
    font-size: var(--text-xs);
    letter-spacing: 0.14em;
    text-transform: uppercase;
}
.bio-term-word {
    font-family: var(--font-serif);
    font-size: var(--text-xl);
    line-height: 1.3;
}
.bio-term .bio-term-meaning { grid-column: 1 / span 2; }
.bio-term .bio-term-word { grid-column: 3 / span 3; }
.bio-term .bio-term-play { grid-column: 6 / span 2; justify-self: end; }
.bio-term-play {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    align-self: flex-start;
    padding: 0.4rem 0.9rem 0.4rem 0.75rem;
    border: 1px solid var(--white);
    border-radius: var(--radius-full);
    background: transparent;
    color: var(--white);
    font-size: var(--text-xs);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: pointer;
}
.bio-term-play:hover,
.bio-term-play.is-playing { background: var(--white); color: var(--orange-900); }


@media (max-width: 768px) {
    .bio-section, .bio-band { padding-block: 4rem; }
    .bio-band-title { margin-bottom: 1.5rem; }
    /* Tablets and phones (where the text column stacks too): meaning on
       top, then the Hawaiian with Listen beside it. */
    .bio-term { grid-template-columns: 1fr auto; row-gap: 0.25rem; }
    .bio-term .bio-term-meaning { grid-column: 1 / -1; }
    .bio-term .bio-term-word { grid-column: 1; }
    .bio-term .bio-term-play { grid-column: 2; }
}
@media (max-width: 40em) {

}

/* ============================================================
   VIDEOS (About) — facades: thumbnail + play button, iframe on tap.
   ============================================================ */
.videos-section {
    padding-block: 6rem 7rem;
    background: var(--white);
}

.videos-head { text-align: center; margin-bottom: 3.5rem; }

.videos-kicker {
    display: block;
    font-family: var(--font-sans);
    font-size: var(--text-xs);
    font-weight: 400;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--orange-900);
    margin-bottom: 0.5rem;
}

.videos-heading {
    font-size: calc(clamp(2rem, 4.2vw, 3.75rem) * var(--type-scale));
    line-height: 0.95;
    margin: 0 0 1rem;
}

.videos-intro {
    font-family: var(--font-sans);
    font-size: var(--text-base);
    font-weight: 300;
    color: var(--color-text-muted);
    max-width: 60ch;
    margin: 0 auto;
}

.videos-intro a { color: var(--orange-900); }

.videos-grid { row-gap: 3rem; }

.video { margin: 0; }

.video-facade {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    padding: 0;
    border: 0;
    background: var(--gray-900);
    overflow: hidden;
    cursor: pointer;
}

.video-facade img,
.video-facade iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border: 0;
}

.video-facade img { transition: transform 0.6s ease, opacity 0.3s ease; }
.video-facade:hover img { transform: scale(1.03); }
.video-facade:focus-visible { outline: 2px solid var(--blue-700); outline-offset: 4px; }

.video-play {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 68px;
    height: 68px;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    background: rgba(248,248,248,0.92);
    color: var(--gray-900);
    transition: background var(--ease-fast), transform var(--ease-fast);
}

.video-play svg { margin-left: 3px; }
.video-facade:hover .video-play { background: var(--orange-800); transform: translate(-50%, -50%) scale(1.06); }

.video figcaption {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding-top: 1rem;
    font-family: var(--font-sans);
}

.video figcaption strong { font-size: var(--text-base); font-weight: 400; color: var(--gray-900); }
.video figcaption span { font-size: var(--text-sm); color: var(--color-text-muted); }

/* Lightbox: dark full-screen overlay, player spans the site width. */
.video-lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem var(--margin);
}

.video-lightbox[hidden] { display: none; }

.video-lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(23,23,19,0.94);
}

/* The player never exceeds the viewport: width is capped by the site
   container AND by what a 16:9 box can be at the available height. */
.video-lightbox-inner {
    position: relative;
    width: 100%;
    max-width: min(calc(var(--container) - 2 * var(--margin)), calc((100vh - 9rem) * 16 / 9));
}

.video-lightbox-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
}

.video-lightbox-frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.video-lightbox-title {
    font-family: var(--font-sans);
    font-size: var(--text-sm);
    color: rgba(255,255,255,0.8);
    margin: 1rem 0 0;
}

.video-lightbox-close {
    position: fixed;   /* pinned to the viewport corner, never clipped */
    right: 1.25rem;
    top: 1.25rem;
    z-index: 1;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255,255,255,0.5);
    border-radius: var(--radius);
    background: transparent;
    color: #fff;
    font-size: calc(1.5rem * var(--type-scale));
    line-height: 1;
    cursor: pointer;
    transition: background var(--ease-fast), color var(--ease-fast);
}

.video-lightbox-close:hover { background: #fff; color: var(--gray-900); }
.video-lightbox-close:focus-visible { outline: 2px solid var(--blue-500); outline-offset: 3px; }

body.lightbox-open { overflow: hidden; }

@media (max-width: 768px) {
    .video-lightbox { padding: 4rem 0.75rem; }
    .video-lightbox-close { right: 0.75rem; top: 0.75rem; }
}

@media (max-width: 1024px) {
    .videos-head > [class*="col-"] { grid-column: auto / span 12; }
    .videos-grid > .video.col-4 { grid-column: auto / span 6; }
}

@media (max-width: 640px) {
    .videos-grid > .video.col-4 { grid-column: auto / span 12; }
}

/* ============================================================
   EVENTS PAGE (calendar folded in below the event lists)
   Rows sit on hairlines rather than in cards.
   ============================================================ */
.events-section {
    padding-block: 3rem 4rem;
    background: var(--white);
}

.events-section h2,
.calendar-section h2 {
    font-family: var(--font-sans);
    font-size: var(--text-sm);
    font-weight: 400;
    letter-spacing: 0.14em;
    color: var(--orange-900);
    margin-bottom: 1.5rem;
}

.events-past { margin-top: 4rem; }

/* Events as cards on the grid, each set at a slight angle and swaying
   slowly about it, like a dancer's weight shifting. Upcoming cards are
   blue; past ones sit back in light grey. */
.events-full-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 3rem var(--gutter);
    margin: 1rem 0 2rem;
}

.event-full-row {
    --tilt: -1.6deg;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    min-height: 22rem;
    padding: 2rem;
    background: var(--blue-700);
    color: var(--white);
    text-decoration: none;
    transform: rotate(var(--tilt));
    transform-origin: 50% 0;
    transition: transform 0.4s ease;
}
.event-full-row:nth-child(3n+2) { --tilt: 1.2deg; }
.event-full-row:nth-child(3n)   { --tilt: -0.7deg; }
.events-past .event-full-row { background: var(--gray-100); color: var(--gray-900); }

/* Kaholo: over one 8-beat phrase the card steps right, settles, steps
   left, settles, its weight shifting with each step (a slight lean
   toward the step). Cards in a row follow one beat apart, like a line
   of dancers taking the step from the one in front (see --i). */
@keyframes card-sway {
    0%, 100% { transform: translateX(-5px) rotate(calc(var(--tilt) - 0.5deg)); }
    25%, 50% { transform: translateX(5px)  rotate(calc(var(--tilt) + 0.5deg)); }
    75%      { transform: translateX(-5px) rotate(calc(var(--tilt) - 0.5deg)); }
}
.program-panel, .event-full-row, .weekly-day-card {
    animation: card-sway var(--phrase) var(--sway-ease) infinite;
    animation-delay: calc(var(--i, 0) * var(--beat));
}
.program-panel:nth-child(2), .weekly-day-card:nth-child(2), .event-full-row:nth-child(3n+2) { --i: 1; }
.program-panel:nth-child(3), .weekly-day-card:nth-child(3), .event-full-row:nth-child(3n)   { --i: 2; }

.event-full-row:hover,
.event-full-row:focus-visible { animation-play-state: paused; }
.event-full-row:hover .info h3 { text-decoration: underline; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }

.event-full-row .date-block { color: inherit; }
.event-full-row .date-block .mo {
    font-size: var(--text-xs);
    font-weight: 400;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    display: block;
}
.event-full-row .date-block .dy {
    font-family: var(--font-serif);
    font-size: calc(3rem * var(--type-scale));
    font-weight: 480;
    line-height: 1;
}

.event-full-row .info { display: flex; flex-direction: column; flex: 1; }
.event-full-row .event-type-tag { align-self: flex-start; }
.event-full-row .info h3 {
    font-size: calc(clamp(1.375rem, 2vw, 1.75rem) * var(--type-scale));
    line-height: 1.1;
    letter-spacing: 0.03em;
    color: inherit;
    margin: 0.5rem 0 1rem;
}
.event-full-row .info .meta {
    margin-top: auto;
    font-size: var(--text-sm);
    font-weight: 400;
    color: inherit;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}
.event-full-row .event-arrow { align-self: flex-end; font-size: var(--text-xl); color: inherit; }

@media (max-width: 1024px) { .events-full-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px)  { .events-full-list { grid-template-columns: 1fr; gap: 2rem; } .event-full-row { min-height: 0; } }
@media (prefers-reduced-motion: reduce) { .event-full-row { animation: none; } }

.no-events {
    padding: 1.5rem 0 0;
    color: var(--color-text-muted);
    font-size: var(--text-lg);
    font-family: var(--font-serif);
    border-top: 1px solid var(--orange-800);
}

/* ---- Calendar ---- */
.calendar-section {
    padding-block: 4rem 6rem;
    background: var(--white);
    border-top: 1px solid var(--color-border);
    scroll-margin-top: var(--header-h);
}

.calendar-embed-wrap {
    margin-bottom: 4rem;
    background: var(--gray-50);
    min-height: 600px;
}

.calendar-embed-wrap iframe {
    width: 100%;
    min-height: 600px;
    border: none;
    display: block;
}

.weekly-schedule h3 {
    font-family: var(--font-sans);
    font-size: var(--text-sm);
    font-weight: 400;
    letter-spacing: 0.14em;
    color: var(--gray-900);
    margin: 0.5rem 0 1rem;
}

.weekly-list {
    display: flex;
    flex-direction: column;
    border-top: 1px solid var(--orange-800);
}

.weekly-row {
    display: grid;
    grid-template-columns: 8rem 1fr 11rem 6rem;
    gap: 1.5rem;
    align-items: baseline;
    padding: 0.9rem 0;
    border-bottom: 1px solid var(--color-border);
    font-family: var(--font-sans);
    font-size: var(--text-base);
    color: var(--gray-900);
}

.weekly-day {
    font-size: var(--text-xs);
    font-weight: 400;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--orange-900);
}

.weekly-class { font-weight: 500; }
.weekly-time { color: var(--color-text-muted); }

.weekly-type {
    font-size: var(--text-xs);
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-align: right;
    color: var(--sage-700);
}

.weekly-row--online .weekly-type { color: var(--blue-700); }

.weekly-note {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    margin-top: 1rem;
    font-weight: 300;
}

.weekly-note a { color: var(--orange-900); font-weight: 500; }

/* Events page CTA (the homepage .events-cta above stays centered). */
.events-section .events-cta,
.calendar-section .events-cta { text-align: left; margin-top: 5rem; }

.events-cta h3 {
    font-family: var(--font-sans);
    font-size: calc(clamp(1.25rem, 2vw, 1.75rem) * var(--type-scale));
    font-weight: 400;
    letter-spacing: 0.08em;
    color: var(--orange-900);
    margin-bottom: 0.5rem;
}

.events-cta p {
    color: var(--color-text-muted);
    font-size: var(--text-lg);
    font-weight: 300;
    margin: 0 0 1.5rem;
}

@media (max-width: 768px) {
    .weekly-row { grid-template-columns: 1fr 1fr; gap: 0.25rem 1rem; }
    .weekly-class { grid-column: 1 / -1; }
    .weekly-type { text-align: left; }
}

/* ============================================================
   CLASSES PAGE — a stack of solid colour panels, one per class. Each is
   full-bleed in a palette colour with the name set big in uppercase, a
   corner bracket, a quarter-arc running off the edge, and plenty of air.
   The grid inside sits on the page columns (side padding matches the
   container).
   ============================================================ */
.classes-section {
    padding-block: 2rem 0;
    background: var(--white);
}

.class-index { display: flex; flex-direction: column; }

.class-band {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: var(--gutter);
    align-items: start;
    width: 100vw;
    margin-inline: calc(50% - 50vw);
    padding-block: 6rem;
    padding-inline: max(var(--margin), calc((100vw - var(--container)) / 2 + var(--margin)));
    scroll-margin-top: var(--header-h);
}

.class-band--basics  { background: var(--orange-900); color: var(--white); }
.class-band--auana   { background: var(--blue-700);  color: var(--white); }
.class-band--kahiko  { background: var(--sage-700);  color: var(--white); }
.class-band--chair   { background: var(--gray-100);  color: var(--gray-900); }
.class-band--keiki   { background: var(--white);     color: var(--gray-900); }
.class-band--private { background: var(--gray-100);  color: var(--gray-900); }
.class-band--groups  { background: var(--gray-900);  color: var(--white); }

.class-band-kw {
    grid-column: span 2;
    font-family: var(--font-sans);
    font-size: var(--text-xs);
    font-weight: 400;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding-top: 0.75rem;
    opacity: 0.85;
}

.class-band-body { grid-column: span 6; position: relative; z-index: 1; }

.class-band-body h2 {
    font-size: calc(clamp(2rem, 4.2vw, 3.75rem) * var(--type-scale));
    font-weight: 480;
    line-height: 0.95;
    letter-spacing: 0.01em;
    text-transform: uppercase;
    color: inherit;
    margin: 0 0 1.5rem;
}

.class-band-body h3 {
    font-size: calc(clamp(1.5rem, 2.6vw, 2.25rem) * var(--type-scale));
    font-weight: 480;
    line-height: 1;
    letter-spacing: 0.01em;
    text-transform: uppercase;
    color: inherit;
    margin: 0 0 1rem;
}

.class-band-body p {
    font-family: var(--font-sans);
    font-size: var(--text-lg);
    font-weight: 300;
    line-height: 1.6;
    margin: 0;
    max-width: 48ch;
    opacity: 0.92;
}

.class-band-levels {
    grid-column: 10 / span 3;
    list-style: none;
    margin: 0;
    padding-top: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    position: relative;
    z-index: 1;
}

.class-band-levels li { display: flex; flex-direction: column; font-family: var(--font-sans); }
.class-band-levels strong { font-size: var(--text-sm); font-weight: 400; }
.class-band-levels span { font-size: var(--text-xs); opacity: 0.8; }

.class-band-action {
    grid-column: 10 / span 3;
    padding-top: 1.25rem;
    font-family: var(--font-sans);
    font-size: var(--text-sm);
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    position: relative;
    z-index: 1;
}

.class-band-action a { color: inherit; }
.class-band-action a:hover { text-decoration: underline; text-underline-offset: 0.25em; }

.class-band--small { padding-block: 4.5rem; }

.class-index-note {
    font-family: var(--font-sans);
    font-size: var(--text-xs);
    font-weight: 500;
    letter-spacing: var(--figma-ls-wide);
    text-transform: uppercase;
    color: var(--color-text-muted);
    padding: 3rem 0 1.5rem;
}

.classes-enroll { padding-block: 6rem 4rem; text-align: center; }
#scholarship .scholarship-form { text-align: left; }
#scholarship { margin-top: 0; }
#scholarship .scholarship-form { margin-top: 2rem; }
.scholarship-toggle[aria-expanded="true"],
.scholarship-form[hidden] { display: none; }
.classes-enroll p a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
.classes-enroll p a:hover { color: var(--color-accent, inherit); }

.classes-enroll h3 {
    font-family: var(--font-sans);
    font-size: calc(clamp(1.25rem, 2vw, 1.75rem) * var(--type-scale));
    font-weight: 400;
    letter-spacing: 0.08em;
    line-height: 1.1;
    text-transform: uppercase;
    color: var(--gray-900);
    margin-bottom: 1rem;
}

.classes-enroll p {
    color: var(--gray-900);
    font-size: var(--text-lg);
    font-weight: 300;
    margin: 0 0 1.5rem;
}

@media (max-width: 768px) {
    .class-band { display: flex; flex-direction: column; gap: 1rem; padding-block: 4rem; }
    .class-band-kw { padding-top: 0; }
    .class-band-levels { padding-top: 0.5rem; }
    .class-band-levels li { flex-direction: row; gap: 0.5rem; align-items: baseline; }
}

/* ============================================================
   CALENDAR PAGE
   ============================================================ */
.calendar-section {
    padding-block: 5rem;
    background: var(--white);
}

.calendar-embed-wrap {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: var(--gray-50);
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.calendar-embed-wrap iframe {
    width: 100%;
    min-height: 600px;
    border: none;
    display: block;
}

/* ============================================================
   GALLERY PAGE
   ============================================================ */
.gallery-section {
    padding-block: 5rem;
    background: var(--white);
}

.gallery-section .wp-block-gallery,
.gallery-section .gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 0.75rem;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.gallery-section .wp-block-gallery figure,
.gallery-section .gallery-item {
    margin: 0;
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--gray-100);
}

.gallery-section .wp-block-gallery figure img,
.gallery-section .gallery-item img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-section .wp-block-gallery figure:hover img,
.gallery-section .gallery-item:hover img {
    transform: scale(1.04);
}

.gallery-section .gallery-placeholder {
    padding: 2rem 0;
    border-top: 1px solid var(--orange-800);
    color: var(--color-text-muted);
}

.gallery-section .gallery-placeholder h3 {
    font-size: var(--text-2xl);
    color: var(--orange-900);
    margin-bottom: 0.75rem;
}

.gallery-section .gallery-placeholder p {
    font-weight: 400;
    max-width: 400px;
    margin: 0;
}

/* ---- Slideshow / grid ----
   Slideshow mode: .photo-gallery is a full-viewport stage at the top of
   the page (the header floats over it); the title sits bottom-left and the
   tools bottom-right, both over the photo. Grid mode: the same title and
   toolbar fall back into normal flow above the grid. */
.photo-gallery { position: relative; }

.photo-gallery[data-view="slideshow"] {
    height: 100vh;
    height: 100svh;
    min-height: 560px;
    background: var(--gray-900);
}

.photo-gallery[data-view="grid"] { padding-top: calc(var(--header-h) + 3rem); }

.photo-gallery[data-view="grid"] .gallery-slideshow,
.photo-gallery[data-view="grid"] .gallery-controls { display: none; }
.photo-gallery[data-view="slideshow"] .gallery-full-grid { display: none; }

/* Title */
.gallery-title h1 {
    font-size: calc(clamp(2rem, 3.6vw, 3.25rem) * var(--type-scale));
    font-weight: 480;
    line-height: 1.1;
    letter-spacing: -0.01em;
    margin-bottom: 0.75rem;
}

.gallery-title p {
    font-family: var(--font-sans);
    font-size: var(--text-xl);
    font-weight: 300;
    margin: 0;
    max-width: 40ch;
}

.photo-gallery[data-view="grid"] .gallery-title .container {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.5rem 2rem;
}

.photo-gallery[data-view="grid"] .gallery-title h1 {
    color: var(--gray-900);
    font-size: calc(clamp(1.5rem, 2.4vw, 2.25rem) * var(--type-scale));
    font-weight: 480;
    line-height: 1;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    margin: 0;
}

.photo-gallery[data-view="grid"] .gallery-title p {
    color: var(--color-text-muted);
    font-size: var(--text-base);
    text-align: right;
    max-width: 44ch;
}

.photo-gallery[data-view="slideshow"] .gallery-title {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 3rem;
    z-index: 2;
    pointer-events: none;
}

.photo-gallery[data-view="slideshow"] .gallery-title h1,
.photo-gallery[data-view="slideshow"] .gallery-title p {
    color: #fff;
}

.photo-gallery[data-view="slideshow"] .gallery-title p { max-width: none; white-space: nowrap; }

/* Toolbar */
.gallery-toolbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.photo-gallery[data-view="grid"] .gallery-toolbar-inner {
    margin: 1.5rem 0 3rem;
}

.photo-gallery[data-view="slideshow"] .gallery-toolbar {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 3rem;
    z-index: 3;
    pointer-events: none;
}

.photo-gallery[data-view="slideshow"] .gallery-toolbar-inner { justify-content: flex-end; }
.photo-gallery[data-view="slideshow"] .gallery-count { display: none; }
.photo-gallery[data-view="slideshow"] .gallery-tools { pointer-events: auto; }

.gallery-count {
    font-family: var(--font-sans);
    font-size: var(--text-sm);
    color: var(--color-text-muted);
}

.gallery-tools {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.gallery-view-toggle { display: flex; gap: 0.5rem; }

/* Icon buttons: outlined on the photo, plain on the page */
.gallery-view-btn,
.gallery-nav {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid var(--orange-800);
    border-radius: var(--radius);
    background: transparent;
    color: var(--orange-900);
    font-size: var(--text-lg);
    cursor: pointer;
    transition: background var(--ease-fast), color var(--ease-fast), border-color var(--ease-fast), opacity var(--ease-fast);
}

.gallery-view-btn:hover,
.gallery-nav:hover { background: var(--orange-800); color: var(--white); }
.gallery-view-btn.is-active { background: var(--orange-800); color: var(--white); }
.gallery-view-btn:focus-visible,
.gallery-nav:focus-visible { outline: 2px solid var(--blue-700); outline-offset: 3px; }

.photo-gallery[data-view="slideshow"] .gallery-view-btn,
.photo-gallery[data-view="slideshow"] .gallery-nav {
    border-color: rgba(255,255,255,0.7);
    background: rgba(23,23,19,0.35);
    color: #fff;
    backdrop-filter: blur(4px);
}

.photo-gallery[data-view="slideshow"] .gallery-view-btn:hover,
.photo-gallery[data-view="slideshow"] .gallery-nav:hover,
.photo-gallery[data-view="slideshow"] .gallery-view-btn.is-active {
    background: rgba(255,255,255,0.92);
    color: var(--gray-900);
    border-color: #fff;
}

.gallery-controls {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-left: 1.25rem;
    border-left: 1px solid rgba(255,255,255,0.4);
}

.gallery-counter {
    font-family: var(--font-sans);
    font-size: var(--text-sm);
    letter-spacing: 0.08em;
    color: #fff;
    min-width: 4.5rem;
    text-align: center;
}

/* Stage */
.gallery-slideshow {
    position: absolute;
    inset: 0;
    outline: none;
}

.gallery-slideshow:focus-visible { outline: 2px solid var(--blue-500); outline-offset: -3px; }

.gallery-stage {
    display: grid;
    width: 100%;
    height: 100%;
}

.gallery-slide {
    grid-area: 1 / 1;
    margin: 0;
    min-height: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease, visibility 0.6s;
}

.gallery-slide.is-active { opacity: 1; visibility: visible; }

.gallery-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* A soft scrim at the bottom keeps the white title and tools legible on
   any photo. */
.gallery-stage::after {
    content: '';
    grid-area: 1 / 1;
    align-self: end;
    height: 45%;
    background: linear-gradient(to top, rgba(23,23,19,0.65), rgba(23,23,19,0));
    pointer-events: none;
    z-index: 1;
}

/* Grid */
.gallery-full-grid { margin-bottom: 2rem; }

.gallery-full-grid { align-items: start; row-gap: 2rem; }

.gallery-cell {
    grid-column: var(--start) / span var(--span);
    padding: 0;
    border: 0;
    background: none;
    cursor: zoom-in;
}
.gallery-cell:nth-child(even) { margin-top: 2rem; }

.gallery-cell:focus-visible { outline: 2px solid var(--blue-700); outline-offset: 3px; }

.gallery-cell img {
    width: 100%;
    height: auto;
    display: block;
    transition: opacity 0.3s ease;
}

.gallery-cell:hover img { opacity: 0.9; }

/* Every photo in its own frame: a solid palette colour, its own thickness
   and shape (leaf, ellipse, arch, trapezoid, pill, octagon, parallelogram),
   and a slight tilt. Nine variants, so neighbours never match. */
.gallery-cell {
    padding: var(--fp, 5px);
    background: var(--fc, var(--orange-900));
    border-radius: var(--fr, 0);
    transform: rotate(var(--ft, 0deg));
    transition: transform 0.4s ease;
}
.gallery-cell img { border-radius: var(--ir, 0); clip-path: var(--clip, none); }
/* Polygon frames: the frame and the photo share the shape. */
.gallery-cell { clip-path: var(--clip, none); }
.gallery-cell:nth-child(9n+1) { --fc: var(--orange-900); --fp: 5px; --fr: 120px 0 120px 0; --ir: 115px 0 115px 0; --ft: -1deg; }
.gallery-cell:nth-child(9n+2) { --fc: var(--sage-700); --fp: 6px; --fr: 50%; --ir: 50%; --ft: 0.8deg; }
.gallery-cell:nth-child(9n+3) { --fc: var(--blue-700); --fp: 4px; --fr: 50% 50% 0 0 / 30% 30% 0 0; --ir: 50% 50% 0 0 / 30% 30% 0 0; --ft: -0.6deg; }
.gallery-cell:nth-child(9n+4) { --fc: var(--orange-800); --fp: 6px; --fr: 0; --ir: 0; --ft: 1.2deg; --clip: polygon(8% 0, 92% 0, 100% 100%, 0 100%); }
.gallery-cell:nth-child(9n+5) { --fc: var(--sage-800); --fp: 5px; --fr: 999px; --ir: 999px; --ft: -1.4deg; }
.gallery-cell:nth-child(9n+6) { --fc: var(--blue-900); --fp: 7px; --fr: 0; --ir: 0; --ft: 0.5deg; --clip: polygon(12% 0, 88% 0, 100% 18%, 100% 82%, 88% 100%, 12% 100%, 0 82%, 0 18%); }
.gallery-cell:nth-child(9n+7) { --fc: var(--orange-950); --fp: 5px; --fr: 90px 90px 0 0; --ir: 85px 85px 0 0; --ft: -0.8deg; }
.gallery-cell:nth-child(9n+8) { --fc: var(--orange-900); --fp: 6px; --fr: 0; --ir: 0; --ft: 0.9deg; --clip: polygon(6% 0, 100% 0, 94% 100%, 0 100%); }
.gallery-cell:nth-child(9n+9) { --fc: var(--sage-700); --fp: 5px; --fr: 0 0 100px 0; --ir: 0 0 95px 0; --ft: -0.4deg; }
.gallery-cell:hover { transform: rotate(0deg); }

/* Mosaic (js/navigation.js): justified rows cut by slanted seams. Each
   photo is placed and shaped by the script; no frames, the page shows
   through the seams. */
.gallery-full-grid.is-mosaic { display: block; position: relative; margin-bottom: 4rem; }
.gallery-full-grid.is-mosaic[hidden] { display: none; }
.is-mosaic .gallery-cell {
    position: absolute;
    margin: 0 !important;
    padding: 0;
    background: none;
    border-radius: 0;
    transform: none;
    overflow: hidden;
}
.is-mosaic .gallery-cell img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; clip-path: none; transition: transform 0.6s ease; }
.is-mosaic .gallery-cell { cursor: zoom-in; }

/* The photo pop-up: the picture as large as the screen allows, on ink. */
.photo-modal {
    width: 100vw; height: 100vh; max-width: none; max-height: none;
    margin: 0; padding: 0; border: 0;
    background: rgba(23,23,19,0.94);
    display: none;
}
.photo-modal[open] { display: flex; align-items: center; justify-content: center; }
.photo-modal::backdrop { background: transparent; }
.photo-modal-img { max-width: calc(100vw - 9rem); max-height: calc(100vh - 6rem); width: auto; height: auto; display: block; }
.photo-modal-btn {
    position: absolute; background: none; border: 0; color: var(--white);
    font-size: 2rem; line-height: 1; width: 3rem; height: 3rem; cursor: pointer;
}
.photo-modal-btn:focus-visible { outline: 2px solid var(--white); }
.photo-modal-close { top: 1rem; right: 1rem; }
.photo-modal-prev { left: 1rem; top: 50%; translate: 0 -50%; }
.photo-modal-next { right: 1rem; top: 50%; translate: 0 -50%; }
html.has-modal { overflow: hidden; }
@media (max-width: 768px) {
    .photo-modal-img { max-width: 100vw; max-height: calc(100vh - 8rem); }
    .photo-modal-prev, .photo-modal-next { top: auto; bottom: 1rem; translate: none; }
}
.is-mosaic .gallery-cell:hover img { opacity: 0.92; }
@media (prefers-reduced-motion: reduce) { .is-mosaic .gallery-cell img { transition: none; } }
@media (prefers-reduced-motion: reduce) { .gallery-cell { transition: none; } }

@media (max-width: 768px) {
    .gallery-full-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 2rem; }
    .gallery-cell { grid-column: auto / span 1; }
    .gallery-cell:nth-child(even) { margin-top: 1rem; }
}

.gallery-section { padding-block: 4rem 6rem; }

/* Phones: no slideshow. The page is the grid, two photos across, and the
   view toggle / prev-next controls are hidden. js/navigation.js forces
   grid view below this breakpoint. */
@media (max-width: 768px) {
    .photo-gallery,
    .photo-gallery[data-view="slideshow"] { height: auto; min-height: 0; background: var(--white); padding-top: calc(var(--header-h) + 2rem); }
    .gallery-slideshow, .gallery-view-toggle, .gallery-controls { display: none !important; }
    .photo-gallery[data-view="slideshow"] .gallery-full-grid { display: grid; }
    .photo-gallery .gallery-title { position: static; pointer-events: auto; }
    .photo-gallery[data-view] .gallery-title h1 { color: var(--gray-900); text-shadow: none; font-size: calc(clamp(1.5rem, 8vw, 2.25rem) * var(--type-scale)); }
    .photo-gallery[data-view] .gallery-title .container { display: block; }
    .photo-gallery .gallery-toolbar { position: static; pointer-events: auto; }
    .photo-gallery .gallery-toolbar { display: none; }
    .photo-gallery .gallery-title { margin-bottom: 2rem; }
}

@media (prefers-reduced-motion: reduce) {
    .gallery-slide { transition: none; }
}

@media (max-width: 768px) {
    .gallery-stage { height: min(62vh, 560px); height: min(62svh, 560px); }
    .gallery-toolbar { flex-wrap: wrap; }
    .gallery-slide figcaption { bottom: 5rem; }
    .gallery-controls { right: 50%; transform: translateX(50%); }
}

@media (prefers-reduced-motion: reduce) {
    .gallery-slide { transition: none; }
}

/* ============================================================
   SITE FOOTER — ambient sky
   A light, atmospheric close to the page: a warm vertical gradient with
   soft cloud masses drifting slowly across it. The clouds are pure CSS
   (blurred radial gradients), so there is no image to load and the whole
   thing scales to any width.
   ============================================================ */
.site-footer {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    min-height: 600px;
    display: flex;
    align-items: stretch;
    padding-block: 5rem;
    /* Deep enough by mid-band that white cloud masses actually read; the
       first attempt ran cream-to-pale-peach and the clouds vanished into it. */
    /* A sunset sky: transparent at the top so the footer grows out of the
       section above, then a long, even warm-up to the orange at the bottom,
       with a soft glow rising from the horizon. Many close stops keep the
       banding invisible. */
    background:
        radial-gradient(140% 55% at 50% 100%, rgba(240,148,106,0.85) 0%, rgba(240,148,106,0) 70%),
        radial-gradient(90% 40% at 15% 75%, rgba(251,224,174,0.55) 0%, rgba(251,224,174,0) 70%),
        linear-gradient(
            180deg,
            rgba(253,246,232,0)    0%,
            rgba(253,246,232,0.6) 10%,
            #fdf3e2 20%,
            #fbe8c8 32%,
            #f9dcb2 44%,
            #f7cd9e 56%,
            #f5bc8e 68%,
            #f3aa7f 80%,
            #f19d72 90%,
            #f0946a 100%
        );
    color: var(--sage-900);
}

/* --- cloud field ------------------------------------------------- */
.footer-sky {
    position: absolute;
    inset: -10% -5%;
    z-index: -1;
    pointer-events: none;
    /* Clouds fade in from nothing at the top edge — they are whiter than the
       page, so without this they drew a visible line at the footer boundary. */
    -webkit-mask-image: linear-gradient(to bottom, transparent 8%, #000 32%);
    mask-image: linear-gradient(to bottom, transparent 8%, #000 32%);
}

.cloud {
    position: absolute;
    border-radius: 50%;
    /* Wide, faint, heavily blurred bands read as haze rather than puffs. */
    background: radial-gradient(closest-side,
        rgba(255,255,255,0.55) 0%,
        rgba(255,255,255,0.25) 50%,
        rgba(255,255,255,0)   100%);
    filter: blur(70px);
    will-change: transform;
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
    animation-direction: alternate;
}

.cloud-1 { width: 90%; height: 26%; left: -15%; top: 18%; animation-name: drift-a; animation-duration: calc(var(--phrase) * 12); }
.cloud-2 { width: 80%; height: 22%; left:  30%; top: 40%; animation-name: drift-b; animation-duration: calc(var(--phrase) * 14); opacity: 0.7; }
.cloud-3 { width: 70%; height: 18%; left: -10%; top: 62%; animation-name: drift-c; animation-duration: calc(var(--phrase) * 13); opacity: 0.5; }
.cloud-4,
.cloud-5 { display: none; }

@keyframes drift-a {
    from { transform: translate3d(-3%,  1%, 0) scale(1); }
    to   { transform: translate3d( 5%, -2%, 0) scale(1.10); }
}
@keyframes drift-b {
    from { transform: translate3d( 4%, -1%, 0) scale(1.06); }
    to   { transform: translate3d(-5%,  2%, 0) scale(0.96); }
}
@keyframes drift-c {
    from { transform: translate3d( 2%,  2%, 0) scale(0.98); }
    to   { transform: translate3d(-4%, -2%, 0) scale(1.12); }
}

@media (prefers-reduced-motion: reduce) {
    .cloud { animation: none; }
}

/* --- content ------------------------------------------------------ */
.footer-inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 3.5rem;
}


.footer-contact {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.35rem;
    scroll-margin-top: calc(var(--header-h) + 2rem);
}

.footer-eyebrow {
    font-family: var(--font-sans);
    font-weight: 500;
    font-size: calc(12px * var(--type-scale));
    line-height: 24px;
    letter-spacing: var(--figma-ls-wide);
    text-transform: uppercase;
    opacity: 1;
}

.footer-address {
    font-style: normal;
    font-family: var(--font-sans);
    font-size: var(--text-base);
    line-height: 1.5;
    margin: 0 0 0.35rem;
}

.footer-link {
    font-family: var(--font-sans);
    font-size: var(--text-base);
    color: var(--sage-900);
    text-decoration: none;
    transition: opacity var(--ease-fast);
}

.footer-link:hover { opacity: 1; text-decoration: underline; }

/* The closing line — the meaning of the halau's name. */
.footer-statement { position: relative; padding: 2rem 0; }

.footer-statement p {
    font-family: var(--font-serif);
    font-weight: 480;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    font-size: calc(clamp(1.75rem, 3.6vw, 52px) * var(--type-scale));
    line-height: 1.09375;
    letter-spacing: -0.01em;
    text-align: center;
    color: var(--sage-900);
    margin: 0;
}

.footer-contact-row {
    display: flex;
    justify-content: center;
    text-align: center;
}

/* Affiliation — centre column of the base row: eyebrow + wordmark on one
   line, the nonprofit note beneath. */
.footer-affiliation {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    text-align: center;
}

.footer-affiliation .footer-eyebrow { line-height: 1.4; }

.footer-affiliation-logo {
    display: inline-flex;
    color: var(--sage-900);
    transition: opacity var(--ease-fast);
}

.footer-affiliation-logo:hover { opacity: 0.7; }

.footer-affiliation-logo svg {
    display: block;
    height: 22px;
    width: auto;
}

.footer-affiliation-note {
    font-family: var(--font-sans);
    font-size: var(--text-xs);
}

.footer-base {
    align-items: center;
}

.footer-copy {
    font-family: var(--font-sans);
    font-size: var(--text-sm);
    /* Full opacity: this row sits on the darkest part of the gradient, where
       a muted tint drops below the 4.5:1 needed for small text. */
    opacity: 1;
    margin: 0;
}

/* Design credit, right-aligned in the base row. */
.footer-credit {
    text-align: right;
    margin: 0;
}

.footer-credit a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-sans);
    font-size: var(--text-sm);
    color: var(--sage-900);
    text-decoration: none;
    transition: opacity var(--ease-fast);
}

.footer-credit a:hover { opacity: 0.7; }

.footer-credit svg {
    display: block;
    height: 14px;
    width: auto;
    margin-top: 1px;
}

@media (max-width: 768px) {
    .site-footer { min-height: 0; padding-block: 3.5rem; }
    .footer-inner { gap: 2.5rem; }
    .footer-base { text-align: center; row-gap: 1.25rem; }
    .footer-copy, .footer-credit { text-align: center; }
}

.footer-contact-form .inner {
    align-items: start;
}

.form-success-msg {
    display: none;
    padding: 1rem 1.25rem;
    background: rgba(95,136,78,0.15);
    border: 1px solid var(--sage-600);
    border-radius: var(--radius);
    color: var(--sage-100);
    font-size: var(--text-sm);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.form-success-msg.show { display: block; }

/* ============================================================
   CONTACT PAGE — details on the left, form on the right. Fields are
   underlined, not boxed.
   ============================================================ */
.contact-section {
    padding-block: 3rem 7rem;
    background: var(--white);
}

.contact-inner { align-items: start; }

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-block { font-family: var(--font-sans); }

.contact-block address,
.contact-block p {
    font-style: normal;
    font-size: var(--text-base);
    font-weight: 300;
    line-height: 1.6;
    color: var(--gray-900);
    margin: 0;
}

.contact-block > a {
    font-size: var(--text-base);
    font-weight: 400;
    color: var(--gray-900);
    text-decoration: none;
}

.contact-block a:hover { text-decoration: underline; text-underline-offset: 0.2em; }
.contact-block p a { color: var(--orange-900); }

.contact-label {
    display: block;
    font-size: var(--text-xs);
    font-weight: 400;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--orange-900);
    margin-bottom: 0.4rem;
}

.contact-form-wrap { scroll-margin-top: var(--header-h); }

.halau-form {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.75rem var(--gutter);
}

.form-field { display: flex; flex-direction: column; gap: 0.5rem; }

.form-field label,
.form-field .form-label {
    font-family: var(--font-sans);
    font-size: var(--text-xs);
    font-weight: 400;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gray-900);
}

.form-optional { font-weight: 400; letter-spacing: 0; text-transform: none; color: inherit; }

.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    font-family: var(--font-sans);
    font-size: var(--text-base);
    font-weight: 300;
    color: var(--gray-900);
    background: transparent;
    border: 1px solid var(--gray-400);
    border-radius: var(--radius);
    padding: 0.8rem 1rem;
    line-height: 1.4;
    outline: none;
    transition: border-color var(--ease-fast);
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus { border-color: var(--orange-900); }

.form-field textarea { resize: vertical; min-height: 160px; }

.form-field select {
    cursor: pointer;
    appearance: none;
    padding-right: 2.5rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%23171713' stroke-width='1.5' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
}

.form-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.25rem;
    margin-top: 0.5rem;
}

.form-note {
    font-family: var(--font-sans);
    font-size: var(--text-sm);
    color: var(--color-text-muted);
}

.form-success-msg {
    font-family: var(--font-sans);
    font-size: var(--text-base);
    color: var(--sage-800);
    padding: 1rem 0;
    margin: 0 0 1.5rem;
    border-top: 1px solid var(--sage-700);
    border-bottom: 1px solid var(--sage-700);
}

@media (max-width: 1024px) {
    .contact-inner > [class*="col-"] { grid-column: auto / span 12; }
    .contact-inner { row-gap: 3.5rem; }
}

@media (max-width: 640px) {
    .form-row-2 { grid-template-columns: 1fr; }
}

/* ============================================================
   REGISTER — stepper, choice lists (hairline rows with a radio), live
   summary aside, confirmation.
   ============================================================ */
.register-section { padding-block: 2rem 7rem; background: var(--white); }
.register-flow { scroll-margin-top: calc(var(--header-h) + 1rem); }

.register-steps {
    display: flex;
    gap: 2rem;
    list-style: none;
    margin: 0 0 3rem;
    padding: 0 0 1rem;
    border-bottom: 1px solid var(--orange-900);
    font-family: var(--font-sans);
    font-size: var(--text-xs);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-text-muted);
}

.register-steps li { display: flex; align-items: center; gap: 0.6rem; }
.register-steps li span {
    display: inline-flex; align-items: center; justify-content: center;
    width: 26px; height: 26px; border: 1px solid currentColor; border-radius: var(--radius-full);
    font-size: calc(0.7rem * var(--type-scale)); letter-spacing: 0;
}
.register-steps li.is-current { color: var(--orange-900); }
.register-steps li.is-done { color: var(--gray-900); }
.register-steps li.is-done span { background: var(--gray-900); color: var(--white); border-color: var(--gray-900); }

.register-grid { align-items: start; }
.register-step { display: none; border: 0; padding: 0; margin: 0; min-width: 0; }
.register-step.is-active { display: block; }
.register-legend { font-family: var(--font-serif); font-size: calc(clamp(1.5rem, 2.4vw, 2rem) * var(--type-scale)); font-weight: 480; text-transform: uppercase; letter-spacing: 0.02em; margin-bottom: 1.5rem; }

.register-group {
    font-family: var(--font-sans);
    font-size: var(--text-xs);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--orange-900);
    margin: 2rem 0 0.5rem;
}

.choice-list { display: flex; flex-direction: column; border-top: 1px solid var(--color-border); }

.choice {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 1rem;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid var(--color-border);
    cursor: pointer;
    font-family: var(--font-sans);
}

.choice input { width: 18px; height: 18px; margin: 0; accent-color: var(--orange-900); }
.choice-body { display: flex; flex-direction: column; gap: 0.15rem; }
.choice-title { font-size: var(--text-base); color: var(--gray-900); }
.choice-meta { font-size: var(--text-sm); color: var(--color-text-muted); }
.choice-price { font-size: var(--text-base); color: var(--gray-900); white-space: nowrap; }
.choice-price small { font-size: var(--text-xs); color: var(--color-text-muted); }
.choice:has(input:checked) .choice-title { color: var(--orange-900); }

.register-fineprint, .register-note {
    font-family: var(--font-sans);
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    margin: 1.25rem 0 0;
}
.register-note a { color: var(--orange-900); }

.register-nav { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 2.5rem; }

.register-step .form-row-2 { margin-bottom: 1.5rem; }
.register-step > .form-field { margin-bottom: 1.5rem; }

.register-agree {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.75rem;
    margin-top: 1.5rem;
    font-family: var(--font-sans);
    font-size: var(--text-sm);
    color: var(--gray-900);
    cursor: pointer;
}
.register-agree input { width: 18px; height: 18px; margin-top: 0.15rem; accent-color: var(--orange-900); }

.register-side {
    position: sticky;
    top: calc(var(--header-h) + 1rem);
    padding-top: 0.75rem;
    border-top: 1px solid var(--orange-900);
}

.register-kicker {
    display: block;
    font-family: var(--font-sans);
    font-size: var(--text-xs);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--orange-900);
    margin-bottom: 0.75rem;
}

.register-summary { margin: 0; font-family: var(--font-sans); font-size: var(--text-sm); }
.register-summary > div { display: flex; justify-content: space-between; gap: 1rem; padding: 0.6rem 0; border-bottom: 1px solid var(--color-border); }
.register-summary dt { color: var(--color-text-muted); }
.register-summary dd { margin: 0; text-align: right; color: var(--gray-900); }
.register-summary-total dt, .register-summary-total dd { color: var(--gray-900); font-size: var(--text-base); }

.register-done-title { font-size: calc(clamp(1.75rem, 3vw, 2.5rem) * var(--type-scale)); line-height: 1.1; margin: 0 0 1.5rem; }
.register-next { font-family: var(--font-sans); font-size: var(--text-base); color: var(--gray-900); margin: 1.5rem 0 0; }
.register-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 2rem; }

@media (max-width: 1024px) {
    .register-grid > [class*="col-"] { grid-column: auto / span 12; }
    .register-side { position: static; margin-top: 2.5rem; }
    .register-steps { gap: 1.25rem; flex-wrap: wrap; }
}

/* ============================================================
   GENERIC PAGE
   ============================================================ */
.generic-page-content {
    padding-block: 5rem;
    background: var(--white);
}

.generic-page-content .entry-content {
    width: 100%;
}

.entry-content h2, .entry-content h3 {
    color: var(--orange-900);
    margin: 2rem 0 0.75rem;
}

.entry-content p {
    color: var(--color-text-muted);
    font-size: var(--text-lg);
    font-weight: 400;
    line-height: 1.85;
    margin-bottom: 1rem;
}

.entry-content ul, .entry-content ol {
    list-style: disc;
    padding-left: 1.5rem;
    color: var(--color-text-muted);
    font-weight: 400;
    line-height: 1.85;
    margin-bottom: 1rem;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
    /* The Figma 100px page inset is a fraction of a 1440 frame; below
       1024 it would eat too much of the content area, so step it down. */
    :root { --margin: 48px; }

    /* Two-up page layouts collapse to a single 12-column stack */
    .about-story-lead-wrap, .about-story-body { grid-row: auto; }
    .about-story-inner > [class*="col-"],
    .footer-contact-form .inner > [class*="col-"] { grid-column: auto / span 12; }

    .about-story-inner,
    .footer-contact-form .inner { row-gap: 3rem; }

    .kumu-inner > [class*="col-"] { grid-column: auto / span 12; }
    .kumu-photo { max-width: 360px; }
}

@media (max-width: 768px) {
    :root {
        --header-h: 96px;
        --gutter: 1.25rem;
        --margin: 1.25rem;
    }

    /* Logo box scales with the shorter header so it still fills it. */
    .site-logo { width: 96px; height: 96px; padding: 8px; }
    .site-logo .logo-main { font-size: 23px; line-height: 19px; }

    /* Both Figma bands are fixed-height at desktop. On a phone the copy is
       taller than the drawn ratio, so let them grow instead of clipping. */
    .hero { height: auto; min-height: 100svh; }
    .hero-content {
        padding-top: calc(var(--header-h) + 2.5rem);
        padding-bottom: 3.5rem;
        gap: 3rem;
    }

    .home-about { height: auto; }
    .home-about-content { height: auto; padding-block: 4.5rem; }

    /* Drop the drawn offsets and let the three elements stack in order. */
    .home-about-grid > *, .home-about-grid > .home-about-body { grid-row: auto; grid-column: 1 / -1; margin-top: 0; }
    .home-about-grid { row-gap: 2rem; }
    /* Phones: the text sits above; the photo rises beneath it from the bottom. */
    .home-about-content { padding-bottom: 82vw; }
    .home-about-photo { -webkit-mask-image: linear-gradient(to top, #000 0%, #000 30%, transparent 58%); mask-image: linear-gradient(to top, #000 0%, #000 30%, transparent 58%); }
    .home-about-photo img { width: 150%; left: calc(var(--margin) - 0.318 * 150%); bottom: -3%; }

    .hero-title { font-size: calc(clamp(2.25rem, 10vw, 3.5rem) * var(--type-scale)); }
    .hero-label { display: none; }

    .stats-bar .inner { gap: 2rem; }

    .section { padding-block: 4.5rem; }
    .home-about, .home-classes, .home-events, .home-quote,
    .home-gallery, .home-cta, .about-story, .kumu-section,
    .testimonials-section, .events-section, .classes-section,
    .calendar-section, .gallery-section { padding-block: 4rem; }

    .gallery-grid-preview { grid-template-rows: repeat(2, 160px); }
    .gallery-grid-preview .g-cell:first-child { grid-row: 1; grid-column: 1; }

    .footer-top { row-gap: 2rem; }
    .footer-bottom { flex-direction: column; gap: 0.75rem; text-align: center; }

    .form-row-2 { grid-template-columns: 1fr; }


    .classes-section { padding-block: 4rem; }
}

@media (max-width: 480px) {
    .kumu-stats { flex-direction: column; gap: 1rem; }
    .since-badge { width: 90px; height: 90px; left: -0.75rem; bottom: -0.75rem; }
    .since-badge .yr { font-size: calc(1.5rem * var(--type-scale)); }
    .gallery-grid-preview { grid-template-columns: 1fr 1fr; grid-template-rows: repeat(3, 160px); }
    .gallery-grid-preview .g-cell:first-child { grid-row: 1; grid-column: 1 / -1; }
}

/* ============================================================
   DECORATIVE BOTANICAL SVGs
   ============================================================ */
.deco-svg {
    position: absolute;
    pointer-events: none;
    fill: currentColor;
    /* z-index unset — sits behind content via DOM source order */
}

/* Hide on mobile — they'd overwhelm small layouts */
@media (max-width: 768px) {
    .deco-svg { display: none; }
}

/* Quote container needs to be above the watermark */
.home-quote .container {
    position: relative;
    z-index: 1;
}

/* ============================================================
   BADGE VARIANTS
   ============================================================ */
.badge {
    display: inline-block;
    padding: 0.3em 0.9em;
    border-radius: var(--radius-full);
    line-height: 1.2;
}
.badge-hybrid  { background: var(--sage-100);  color: var(--sage-900); }
.badge-online  { background: var(--blue-100);  color: var(--blue-900); }

/* ============================================================
   EVENT TYPE TAG (events list)
   ============================================================ */
.event-type-tag {
    display: inline-block;
    font-size: var(--text-xs);
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 2px 10px;
    border-radius: var(--radius-full);
    margin-bottom: 0.4rem;
}

.event-type-in-person { background: var(--orange-100); color: var(--orange-950); }
.event-type-hybrid    { background: var(--sage-100); color: var(--sage-900); }
.event-type-online    { background: var(--blue-100); color: var(--blue-900); }

/* Make event rows clickable links */
.event-full-row--link {
    text-decoration: none;
    cursor: pointer;
}

/* ============================================================
   SINGLE EVENT PAGE
   ============================================================ */
.single-event-section {
    padding-block: 5rem;
    background: var(--white);
}

.single-event-inner {
    align-items: start;
}

.single-event-details {
    position: sticky;
    top: calc(var(--header-h) + 1rem);
    padding: 0;
}

.event-detail-row { padding-block: 0 1.75rem; }

.detail-label {
    display: block;
    font-size: var(--text-xs);
    font-weight: 400;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--blue-700);
    margin-bottom: 0.35rem;
}

.detail-value {
    font-size: var(--text-base);
    color: var(--orange-900);
    font-weight: 400;
    line-height: 1.5;
}

.detail-value-block {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.event-cal-block {
    flex-shrink: 0;
    width: 52px;
    text-align: center;
    background: var(--orange-900);
    border-radius: var(--radius);
    padding: 0.5rem 0.4rem;
    color: var(--white);
}

.event-cal-block .mo {
    font-size: calc(0.58rem * var(--type-scale));
    font-weight: 400;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--white);
    display: block;
}

.event-cal-block .dy {
    font-family: var(--font-serif);
    font-size: calc(1.6rem * var(--type-scale));
    font-weight: 480;
    line-height: 1;
    display: block;
}

.event-payment-methods {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.25rem;
}

.payment-badge {
    font-size: var(--text-xs);
    font-weight: 400;
    letter-spacing: 0.06em;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
}

.payment-venmo  { background: var(--orange-100); color: var(--orange-700); }
.payment-zelle  { background: var(--blue-100);  color: var(--blue-800); }
.payment-paypal { background: var(--gray-100);  color: var(--gray-700); }

.single-event-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1.75rem;
}

.single-event-image {
    border-radius: var(--radius-xl);
    overflow: hidden;
    margin-bottom: 2.5rem;
}

.single-event-image img {
    width: 100%;
    height: auto;
    display: block;
}

@media (max-width: 768px) {
    .single-event-inner {
        row-gap: 2.5rem;
    }

    .single-event-details {
        position: static;
    }

    .single-event-actions {
        flex-direction: row;
        flex-wrap: wrap;
    }
}

.class-featured .eyebrow {
    color: var(--blue-400);
    margin-bottom: 0.5rem;
}

.level-prereq {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    font-weight: 400;
    text-align: right;
}

.class-special-card .btn {
    margin-top: auto;
}

@media (max-width: 1024px) {
    .class-specials-grid > [class*="col-"] { grid-column: auto / span 6; }
}

@media (max-width: 768px) {
    .class-featured { padding: 2.5rem; }
    .class-style-head { padding: 2rem; }
    .class-levels { padding: 0.75rem 2rem 1.25rem; }
    .level-prereq { display: none; }
}

@media (max-width: 480px) {
    .class-specials-grid > [class*="col-"] { grid-column: auto / span 12; }
}

/* ============================================================
   DEV GRID OVERLAY — press "G" to toggle (see navigation.js)
   ============================================================ */
.grid-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99999;
    pointer-events: none;
}

.grid-overlay.is-visible { display: block; }

.grid-overlay .container,
.grid-overlay .grid-12 {
    height: 100%;
}

.grid-overlay .col-1 {
    height: 100%;
    background: rgba(240, 90, 40, 0.08);
    border-inline: 1px solid rgba(240, 90, 40, 0.35);
}

/* ============================================================
   REGISTER — confirmation states and the test checkout
   ============================================================ */
.register-done .register-steps { margin-bottom: 2.5rem; }
.register-next--warn { color: var(--orange-900); }
.register-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }
.register-actions--after { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--color-border); }
.test-checkout { border: 1px solid var(--gray-900); padding: 2.5rem; }
.test-checkout .register-done-title { font-size: var(--h-item); margin-bottom: 1.5rem; }
.test-checkout-form { margin-top: 1.5rem; }
.test-checkout-form input[readonly] { background: var(--gray-100); color: var(--gray-600); font-variant-numeric: tabular-nums; }


/* The summary rows are flex, so the hidden attribute needs help. */
.register-summary > div[hidden] { display: none; }

.choice-list--pay[hidden], .scholarship-note[hidden] { display: none; }

/* Register step 1: classes are schedule rows with a link to /tuition/
   (no prices of their own). Rules between rows and under the last. */
.class-list { list-style: none; margin: 0 0 1rem; padding: 0; }
.class-list-item {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1rem;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid var(--color-border);
    font-family: var(--font-sans);
}
.class-list-item:first-child { padding-top: 0; }
.class-list .choice-meta { color: var(--gray-900); }
@media (max-width: 40em) {
    .class-list-item { grid-template-columns: 1fr; }
    .class-list-item .btn { justify-self: start; }
}

/* Step 2: which classes (tuition and scholarship requests). */
.register-classes-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1.5rem; }
.register-classes-list .register-agree,
.form-field .register-classes-list .register-agree { margin-top: 0.75rem; font-size: var(--text-sm); letter-spacing: 0; text-transform: none; }
[data-classes-field][hidden], [data-qty-field][hidden], [data-need-choice][hidden], [data-sum-row][hidden], .register-scholarship[hidden],
[data-amount-field][hidden], [data-tickets-for][hidden], [data-dancer-fields][hidden], [data-agree][hidden], #paypal-error[hidden] { display: none; }

/* Step 2: event tickets — name, price, count. */
.register-tickets { display: flex; flex-direction: column; }
.register-ticket,
.form-field .register-ticket {
    display: grid;
    grid-template-columns: 1fr auto 5.5rem;
    gap: 1rem;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--color-border);
    font-family: var(--font-sans);
    font-size: var(--text-base);
    color: var(--gray-900);
    text-transform: none;
    letter-spacing: 0;
}
.register-ticket input { width: 100%; text-align: center; }

/* Step 2: gift amount. */
.register-amount-picks { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 0.75rem; }
.register-amount-picks .btn.is-picked,
.register-amount-picks .btn.is-picked:hover { background: var(--orange-900); border-color: var(--orange-900); color: var(--white); }

.register-step .register-scholarship { margin-bottom: 1.5rem; }

/* PayPal / Venmo checkout */
.paypal-buttons { margin-top: 2rem; max-width: 26rem; }


/* Weekly schedule: day appears once per group; rows are time | class | format */
.weekly-intro { font-size: var(--text-base); color: var(--color-text-muted); margin: 0 0 1.5rem; }
.weekly-row { grid-template-columns: 8rem 11rem 1fr 9rem; }
.weekly-row--first:not(:first-child) { border-top: 1px solid var(--gray-900); }
a.weekly-row { color: inherit; text-decoration: none; cursor: pointer; transition: background var(--ease-fast); }
a.weekly-row:hover .weekly-class-name { color: var(--orange-900); text-decoration: underline; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a.weekly-row:focus-visible { outline: 2px solid var(--blue-700); outline-offset: 2px; }
.weekly-class small { font-size: var(--text-xs); letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-text-muted); margin-left: 0.5rem; }
.weekly-row--hybrid .weekly-type { color: var(--blue-700); }
@media (max-width: 767px) {
    .weekly-row { grid-template-columns: 1fr 1fr; row-gap: 0.15rem; }
    .weekly-day { grid-column: 1 / -1; }
    .weekly-class { grid-column: 1 / -1; }
}

/* ============================================================
   TUITION — one rate for every class (page-tuition.php). Eight
   prices, each its own button into the register form. Rules
   between rows and under the last; none above the first.
   ============================================================ */
.tuition-for { font-family: var(--font-sans); font-size: var(--text-base); color: var(--gray-900); margin: 0 0 2rem; }
.tuition-table { font-family: var(--font-sans); color: var(--gray-900); }
.tuition-row {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr);
    gap: 1.5rem;
    align-items: center;
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--color-border);
}
.tuition-row--head {
    padding-top: 0;
    font-size: var(--text-xs);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--orange-900);
}
.tuition-label { font-size: var(--text-base); }
.tuition-cell { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.tuition-price { font-family: var(--font-serif); font-size: calc(clamp(1.5rem, 2.4vw, 2rem) * var(--type-scale)); font-weight: 480; white-space: nowrap; }
.tuition-price small { font-family: var(--font-sans); font-size: var(--text-sm); }
.tuition-notes { margin-top: 2.5rem; font-family: var(--font-sans); font-size: var(--text-base); color: var(--gray-900); }
.tuition-notes p { margin: 0 0 1rem; }
.tuition-notes a { color: var(--orange-900); }

@media (max-width: 900px) {
    .tuition-row { grid-template-columns: 1fr 1fr; gap: 0.75rem 1.5rem; }
    .tuition-row--head > :first-child { display: none; }
    .tuition-label { grid-column: 1 / -1; }
    .tuition-cell { flex-direction: column; align-items: flex-start; }
}

/* Ojuju trial: every serif use at one weight. */
.section-heading, .program-panel-title, .program-panel-title a, .bio-term-word { font-weight: 480; }

/* The week: one swaying card per teaching day, three across on the
   12-col grid (each spans 4 columns), the day's classes as rows inside. */
.weekly-week {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 3rem var(--gutter);
    margin: 1.5rem 0 2.5rem;
    align-items: start;
}
.weekly-day-card {
    --tilt: -1.4deg;
    padding: 2rem;
    background: var(--blue-700);
    color: var(--white);
    transform: rotate(var(--tilt));
    transform-origin: 50% 0;
}
.weekly-day-card:nth-child(2) { --tilt: 1.1deg; background: var(--orange-900); }
.weekly-day-card:nth-child(3) { --tilt: -0.7deg; background: var(--sage-700); }
.weekly-day-card:hover { animation-play-state: paused; }
.weekly-day-head {
    font-family: var(--font-serif);
    font-size: calc(clamp(1.5rem, 2.2vw, 2rem) * var(--type-scale));
    font-weight: 480;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: inherit;
    margin: 0 0 1.25rem;
}
.weekly-day-list { list-style: none; margin: 0; padding: 0; }
.weekly-day-list li + li { border-top: 1px solid rgba(248, 248, 248, 0.35); }
.weekly-slot {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    padding-block: 1rem;
    color: inherit;
    text-decoration: none;
}
.weekly-day-list li:last-child .weekly-slot { padding-bottom: 0; }
.weekly-slot .weekly-time { font-size: var(--text-sm); color: inherit; }
.weekly-slot .weekly-class { font-size: var(--text-lg); font-weight: 500; }
.weekly-slot .weekly-class small { font-size: var(--text-xs); letter-spacing: 0.1em; text-transform: uppercase; color: inherit; margin-left: 0.5rem; font-weight: 400; }
.weekly-slot .weekly-type { font-size: var(--text-xs); letter-spacing: 0.12em; text-transform: uppercase; color: inherit; text-align: left; }
.weekly-slot:hover .weekly-class-name { text-decoration: underline; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
.weekly-slot:focus-visible { outline: 2px solid var(--white); outline-offset: 2px; }
@media (max-width: 900px) { .weekly-week { grid-template-columns: 1fr; gap: 2rem; } }
@media (prefers-reduced-motion: reduce) { .weekly-day-card { animation: none; } }


@media (prefers-reduced-motion: reduce) {
    .program-panel, .event-full-row, .weekly-day-card,
    .flower-orange, .flower-green, .hero-photo img, .hero-light > span { animation: none !important; }
}

/* ============================================================
   PROGRAMME COLOUR CODE
   One colour per path, used wherever a class is named:
   Hula Basics = Bird Orange, Auana = Paradise Blue, Kahiko = Sage.
   Classes open to everyone (Chair, Children's) and anything that is not
   a class (events) stay neutral, so the three colours keep their meaning.
   Mark any element with data-prog="<class slug>" to give it --prog.
   ============================================================ */
[data-prog]                  { --prog: var(--gray-300); }
[data-prog="hula-basics"]    { --prog: var(--orange-900); }
[data-prog="modern-auana"]   { --prog: var(--blue-700); }
[data-prog="ancient-kahiko"] { --prog: var(--sage-700); }

/* Home programme cards and classes bands take the colour as their field. */
.program-panel[data-prog] { background: var(--prog); }

/* Weekly schedule: the day cards are plain; each class carries its colour
   as a bar down its left side. */
.weekly-day-card,
.weekly-day-card:nth-child(2),
.weekly-day-card:nth-child(3) { background: var(--gray-100); color: var(--gray-900); }
.weekly-day-head { color: var(--gray-900); }
.weekly-day-list li + li { border-top-color: rgba(23, 23, 19, 0.15); }
.weekly-slot[data-prog] { border-left: 4px solid var(--prog); padding-left: 1rem; }
.weekly-day-list li + li .weekly-slot { margin-top: 0; }
.weekly-slot:focus-visible { outline-color: var(--gray-900); }

/* Register: class rows and class checkboxes. */
.class-list-item { border-left: 4px solid transparent; padding-left: 1rem; }
.class-list-item[data-prog] { border-left-color: var(--prog); }
.class-list-item[data-prog="hula-basics"] .btn,
.class-list-item[data-prog="modern-auana"] .btn,
.class-list-item[data-prog="ancient-kahiko"] .btn { border-color: var(--prog); color: var(--prog); }
.class-list-item[data-prog="hula-basics"] .btn:hover,
.class-list-item[data-prog="modern-auana"] .btn:hover,
.class-list-item[data-prog="ancient-kahiko"] .btn:hover { background: var(--prog); color: var(--white); }
.register-agree[data-prog] input { accent-color: var(--prog); }
.register-agree[data-prog] span::before {
    content: ''; display: inline-block; width: 0.6em; height: 0.6em; border-radius: 50%;
    background: var(--prog); margin-right: 0.5em; vertical-align: 0.05em;
}

/* Tuition: the class you're paying for. */
.tuition-for[data-prog] strong { color: var(--prog); }

/* Events are not a class: Lava Black cards on the Events page, a light
   neutral band on the home page. */
.event-full-row { background: var(--gray-900); }
.home-events { background: var(--gray-100); color: var(--gray-900); }
.home-events .section-heading,
.home-events .event-date-box,
.home-events .event-info h3,
.home-events .event-info .meta,
.home-events .event-arrow { color: var(--gray-900); }
.home-events .event-row { border-bottom-color: rgba(23, 23, 19, 0.2); }
.home-events .btn-outline-green { border-color: var(--gray-900); color: var(--gray-900); }
.home-events .btn-outline-green:hover { background: var(--gray-900); color: var(--white); }

/* Say it: a small play mark after a Hawaiian word, raised a little like a
   footnote. The ring is soft (the text colour at 40%) and goes full
   strength on hover or while it plays. The triangle is centred on its
   centroid, not its box, so it sits optically in the middle. */
.haw { white-space: nowrap; }
/* Sized in ex (the neighbouring text's x-height): the triangle is exactly
   one x-height tall and sits on the baseline, the ring is twice that and
   centred on the same line. The path is shifted so its centroid, not its
   box, is in the middle. */
.say-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 2ex;
    height: 2ex;
    margin-left: 0.3ex;
    padding: 0;
    border: 1px solid color-mix(in srgb, currentColor 40%, transparent);
    border-radius: 50%;
    background: transparent;
    color: inherit;
    vertical-align: 0;
    cursor: pointer;
    transition: border-color var(--ease-fast);
}
/* Drawn with contrast, like a brushed letter: a heavy back stroke, hairline
   diagonals, gently bowed sides and a softened point. */
.say-btn svg { width: 1ex; height: 1ex; overflow: visible; display: block; }
.say-btn:hover,
.say-btn.is-playing { border-color: currentColor; }
.say-btn:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }

/* Classes page: the three paths carry their home-page photo in the first
   four columns, running to the window edge and the band's top and bottom,
   and fading into the band colour on its right. Text moves to cols 5-9. */
.class-band:has(.class-band-photo) { padding-block: 7rem; }
.class-band-photo {
    grid-column: 1 / span 4;
    grid-row: 1 / span 3;
    align-self: stretch;
    position: relative;
    margin: -7rem 0 -7rem calc(-1 * max(var(--margin), calc((100vw - var(--container)) / 2 + var(--margin))));
    min-height: 26rem;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to right, #000 55%, transparent 100%);
            mask-image: linear-gradient(to right, #000 55%, transparent 100%);
}
.class-band-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.class-band:has(.class-band-photo) .class-band-body { grid-column: 5 / span 5; grid-row: 1 / span 2; }
.class-band:has(.class-band-photo) .class-band-levels { grid-row: 1; }
.class-band:has(.class-band-photo) .class-band-action { grid-row: 2; }

@media (max-width: 768px) {
    .class-band-photo {
        order: -1;
        margin: -4rem calc(-1 * var(--margin)) 0;
        min-height: 0;
        aspect-ratio: 4 / 3;
        -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent 100%);
                mask-image: linear-gradient(to bottom, #000 55%, transparent 100%);
    }
    .class-band:has(.class-band-photo) { padding-block: 4rem; }
}

/* Kumu June's archival portrait under her name in the bio. */
/* Full width of the label column (cols 1-4), square, so the row never
   gets taller than the cards beside it; cropped to keep her whole face. */
/* Highlights portrait: a leaf. Frame and photo both round two opposite
   corners (top-left and bottom-right), the orange frame offset from the
   photo so the shape reads twice. Square overall, cols 1-5. */
.bio-portrait {
    --frame-r: clamp(80px, 11vw, 180px);
    --frame-pad: clamp(0.5rem, 0.8vw, 0.875rem);
    margin: 2.5rem 0 0;
    width: calc(100% * 5 / 4 + var(--gutter) / 4);
    aspect-ratio: 1 / 1;
    box-sizing: border-box;
    padding: var(--frame-pad);
    background: var(--orange-900);
    border-radius: var(--frame-r) 0 var(--frame-r) 0;
}
.bio-portrait img {
    display: block; width: 100%; height: 100%;
    object-fit: cover; object-position: 50% 22%;
    border-radius: calc(var(--frame-r) - var(--frame-pad)) 0 calc(var(--frame-r) - var(--frame-pad)) 0;
}
@media (max-width: 768px) { .bio-portrait { margin-top: 2rem; } }

/* ʻŪniki: two archival photos side by side at one shared height (each
   grows by its own aspect ratio), under the three stages. */
.bio-archive { display: flex; gap: var(--gutter); margin-top: 3rem; }
.bio-archive img { flex-basis: 0; min-width: 0; width: 100%; height: auto; display: block; }
@media (max-width: 40em) { .bio-archive { flex-direction: column; gap: 1rem; } }

/* Bio opening: the archival duet photo behind June's name and story,
   full bleed, washed into the band blue (luminosity over blue) and fading
   out toward the next row, so the type stays legible. */
.bio-section { overflow-x: clip; }
.bio-row--head { position: relative; isolation: isolate; }
.bio-backdrop {
    position: absolute;
    z-index: -1;
    top: calc(-1 * var(--bio-pad-top, 7rem));
    bottom: 0;
    left: 50%;
    width: 100vw;
    transform: translateX(-50%);
    background: var(--blue-700);
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to bottom, #000 80%, transparent 100%);
            mask-image: linear-gradient(to bottom, #000 80%, transparent 100%);
}
.bio-backdrop img {
    /* Full width of the band; anchored at the top so the dancer's head and
       raised hand stay in frame (the mat at the foot is what gets cut). */
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: 50% 0;
    mix-blend-mode: luminosity;
    opacity: 0.32;
}
@media (max-width: 768px) { .bio-portrait { width: 100%; } }

/* ============================================================
   BIG TYPE THAT DANCES
   Hero titles and pull quotes are set huge in Ojuju and split into letters
   (js/navigation.js, .dance). Every letter has its own weight and a small
   turn, like the logo, and sways gently on the site's eight-beat phrase,
   each letter a beat after the last. Words stay whole when lines wrap.
   ============================================================ */
.page-hero h1,
.photo-gallery .gallery-title h1,
.photo-gallery[data-view="grid"] .gallery-title h1 {
    font-size: clamp(2.25rem, 11vw, 11rem);
    line-height: 0.88;
    letter-spacing: 0;
    overflow-wrap: normal;
}
.page-hero .grid-12 > [class*="col-"] { flex-direction: column; align-items: flex-start; }
.page-hero p { text-align: left; margin-top: 1.25rem; }
.page-hero .col-8 { grid-column: 1 / -1; }

.dance .dw { display: inline-block; white-space: nowrap; }
.dance .dl {
    display: inline-block;
    font-weight: var(--w, 480);
    transform: rotate(var(--r, 0deg));
    transform-origin: 50% 60%;
}
/* --move (0..1, from scrolling) widens the swing: more weight, more turn. */
@keyframes letter-sway {
    0%, 100% { font-weight: var(--w, 480); transform: rotate(var(--r, 0deg)); }
    50%      { font-weight: calc(var(--w, 480) + var(--dw, 60) * (1 + var(--move, 0) * 2.5)); transform: rotate(calc(var(--r, 0deg) * (-0.6 - var(--move, 0) * 2))); }
}
@media (prefers-reduced-motion: reduce) { .dance .dl { animation: none; } }

/* Sound you can see: while Kumu June's recording plays, the letters of the
   word rise and fill with her voice (js/navigation.js sets each letter). */
.pulse-l { display: inline-block; transition: font-weight 80ms linear; }

/* Pull quote: one per page, at display size, breaking out of the grid on
   purpose (it runs past the right margin and is clipped by the window). */
.pull {
    overflow: visible;
    padding-block: calc(var(--header-h) + 2rem) 7rem;
    background: var(--white);
}
.pull blockquote {
    margin: 0;
    /* Breaks the grid by running into the right margin all the way to the
       window edge, but always wraps inside the window: nothing is cut. */
    width: auto;
    margin-right: 0;
    padding-right: clamp(0.5rem, 2vw, 1.5rem);
    margin-left: max(var(--margin), calc((100vw - var(--container)) / 2 + var(--margin)));
    font-family: var(--font-serif);
    font-weight: 480;
    font-size: clamp(2rem, min(5vw, 7.5vh), 5.25rem);
    line-height: 0.98;
    max-width: 22ch;
    text-transform: uppercase;
    color: var(--gray-900);
}
.pull figcaption {
    margin: 2rem 0 0 max(var(--margin), calc((100vw - var(--container)) / 2 + var(--margin)));
    font-family: var(--font-sans);
    font-size: var(--text-xs);
    letter-spacing: 0.14em;
    text-transform: uppercase;
}
.pull--orange { background: var(--orange-900); }
.pull--orange blockquote, .pull--orange figcaption { color: var(--white); }
.pull--sage { background: var(--sage-700); }
.pull--sage blockquote, .pull--sage figcaption { color: var(--white); }
@media (max-width: 768px) { .pull { padding-block: 4rem; } }
.classes-section--after { padding-top: 0; }

/* Hula is for everyone: centred over a darkened photograph of kahiko on
   stage. */
.everyone { position: relative; isolation: isolate; overflow: hidden; background: var(--gray-900); color: var(--white); }
.everyone-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; object-position: 50% 40%; filter: brightness(0.5); }
.everyone::before {
    content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background: radial-gradient(ellipse 55% 60% at 50% 48%, rgba(23,23,19,0.62), rgba(23,23,19,0.15) 100%);
}
.everyone .pull { background: transparent; }
.everyone .pull { padding-bottom: 3rem; }
.everyone .pull blockquote { color: var(--white); text-align: center; margin-inline: auto; padding-inline: var(--margin); box-sizing: border-box; }
@media (max-width: 768px) {
    .everyone .pull { padding-top: calc(96px + 3rem); padding-bottom: 2rem; }
    .everyone .pull blockquote { font-size: clamp(2rem, 11vw, 3rem); }
}
.everyone .classes-section--after { background: transparent; padding-bottom: 7rem; }
.everyone .classes-enroll p,
.everyone .classes-enroll a { color: var(--white); }
.everyone .classes-enroll a { text-decoration-color: currentColor; }
.everyone .classes-enroll > div { text-align: center; }
.everyone .classes-enroll { padding-top: 0; }
.events-section--after { padding-top: 4rem; }

/* Words index: scattered on the grid, each word its own size; the letters
   carry the logo's weights and turns (js/navigation.js), and move with
   Kumu June's voice when tapped. */
.words-section { padding-block: 3rem 8rem; }
.words-grid { list-style: none; margin: 0; padding: 0; row-gap: 3.5rem; align-items: end; }
.words-item { grid-column: var(--start) / span var(--span); }
.words-item:nth-child(even) { margin-top: 2.5rem; }
.words-btn { all: unset; cursor: pointer; display: flex; flex-direction: column; gap: 0.6rem; }
.words-btn:focus-visible { outline: 2px solid currentColor; outline-offset: 6px; }
.words-word {
    font-family: var(--font-serif);
    font-size: calc(clamp(2rem, 4.4vw, 4.75rem) * var(--size, 1));
    line-height: 1;
    color: var(--gray-900);
}
.words-mean { font-family: var(--font-sans); font-size: var(--text-sm); letter-spacing: 0.04em; color: var(--gray-900); }
.words-btn.is-playing .words-mean { text-decoration: underline; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
@media (max-width: 768px) {
    .words-grid { row-gap: 2rem; }
    .words-item { grid-column: 1 / -1; }
    .words-item:nth-child(even) { margin-top: 0; margin-left: 25%; }
}

/* Small screens: long button labels wrap instead of pushing the page wide,
   and the corners of tilted cards never make the page scroll sideways. */
@media (max-width: 480px) { .btn { white-space: normal; text-align: center; max-width: 100%; } }
body { overflow-x: clip; }

/* Gallery: the mosaic is the page; "All photos" shows only in the slideshow. */
.photo-gallery[data-view="grid"] .gallery-back { display: none; }
.gallery-back { width: auto !important; padding-inline: 1rem !important; font-family: var(--font-sans); font-size: var(--text-sm); letter-spacing: 0.1em; text-transform: uppercase; }

/* Classes: the weekly calendar at the foot of the page. Links to #calendar
   land with its heading clear of the fixed logo. */
.classes-section--schedule {
    scroll-margin-top: 0;
    padding-block: calc(var(--header-h) + 1rem) 6rem;
    /* The warm yellow from the hero gradient (--figma-gradient's first stop). */
    background: #ffda82;
    color: var(--gray-900);
}
.classes-section--schedule .weekly-heading,
.classes-section--schedule .weekly-intro,
.classes-section--schedule .weekly-note { color: var(--gray-900); }
.classes-section--schedule .weekly-day-card { background: var(--white); color: var(--gray-900); }
@media (max-width: 768px) { .classes-section--schedule { padding-block: 7rem 4rem; } }

/* One corner for every card: class cards, day cards, bio cards, the event
   date block, the calendar embed, the event photo, the checkout box and
   the success message. */
.program-panel, .weekly-day-card, .bio-card, .event-cal-block, .calendar-embed-wrap,
.single-event-image, .test-checkout, .form-success-msg, .event-full-row,
.btn, .gallery-nav, .gallery-back, .say-pill { border-radius: var(--radius-card); }
.weekly-day-card, .bio-card { overflow: hidden; }

/* Events: the closing line over the hālau on stage, darkened beneath it. */
.pull--photo { position: relative; isolation: isolate; overflow: hidden; min-height: min(66vw, 92svh); display: flex; align-items: flex-end; padding-bottom: 5rem; }
.pull--photo .pull-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; z-index: -2; }
.pull--photo::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(23,23,19,0.8) 0%, rgba(23,23,19,0.4) 40%, rgba(23,23,19,0) 70%); }
@media (max-width: 768px) { .pull--photo { min-height: 120vw; padding-bottom: 3rem; } }
