/* ==========================================================================
   Daffodils English Academy — site styles
   ========================================================================== */

:root {
    --cream: #fbf7ee;
    --paper: #ffffff;
    --sand: #f3ecdc;
    --ink: #1d2a23;
    --ink-soft: #3f4c45;
    --muted: #66726b;
    --line: #e6decb;

    --green-900: #123728;
    --green-800: #174634;
    --green-700: #1f5b43;
    --green-500: #3b8a5c;
    --green-100: #e3f0e6;

    --sun: #f6c33b;
    --sun-deep: #e2a70c;
    --sun-100: #fdf1cc;
    --orange: #ee8a2a;
    --orange-100: #fde6d0;

    --radius-sm: 10px;
    --radius: 18px;
    --radius-lg: 28px;
    --shadow-sm: 0 1px 2px rgba(18, 55, 40, .06), 0 2px 8px rgba(18, 55, 40, .05);
    --shadow: 0 10px 30px -12px rgba(18, 55, 40, .25);
    --shadow-lg: 0 30px 60px -25px rgba(18, 55, 40, .35);

    --font-display: "Fraunces", Georgia, "Times New Roman", serif;
    --font-body: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

    --container: 1200px;
    --gutter: clamp(16px, 4vw, 32px);
    --section-y: clamp(64px, 9vw, 112px);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; } /* elements hidden by script stay hidden even when a class sets display */
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--ink);
    background: var(--cream);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-700); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--green-900); }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.15; color: var(--green-900); }
address { font-style: normal; }
:focus-visible { outline: 3px solid var(--sun-deep); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--sun); color: var(--green-900); }

.icon { width: 1.1em; height: 1.1em; flex: none; vertical-align: -.15em; }
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.muted { color: var(--muted); }
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--green-900); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip-link:focus { left: 8px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Type ---------- */
.display {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: clamp(2.2rem, 5.2vw, 3.9rem);
    line-height: 1.02;
    letter-spacing: -.02em;
    font-variation-settings: "opsz" 144;
}
.display em { font-style: italic; font-weight: 500; color: var(--green-500); position: relative; white-space: nowrap; }
.display em::after {
    content: ""; position: absolute; left: 2%; right: 2%; bottom: calc(.06em - 3px); height: .14em;
    background: var(--sun); z-index: -1; opacity: .75;
}
.h2 { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.7rem, 3.2vw, 2.35rem); letter-spacing: -.015em; }
.h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.4rem; }
.lead { font-size: clamp(1.02rem, 1.4vw, 1.14rem); color: var(--ink-soft); max-width: 36em; }
.eyebrow {
    display: inline-flex; align-items: center; gap: .55em;
    font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
    color: var(--green-500); margin-bottom: 1rem;
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--sun-deep); box-shadow: 0 0 0 4px var(--sun-100); }
.eyebrow--light { color: var(--sun); }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5em;
    padding: .9em 1.5em; border-radius: 999px; border: 2px solid transparent;
    font: 600 1rem/1.1 var(--font-body); text-decoration: none; cursor: pointer;
    transition: transform .2s ease, background-color .2s ease, box-shadow .2s ease, color .2s ease;
}
.btn .icon { transition: transform .2s ease; }
.btn:hover .icon { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--green-700); color: #fff; box-shadow: 0 8px 20px -10px rgba(31, 91, 67, .8); }
.btn--primary:hover { background: var(--green-900); color: #fff; }
.btn--sun { background: var(--sun); color: var(--green-900); }
.btn--sun:hover { background: #ffd35e; color: var(--green-900); }
.btn--ghost { border-color: var(--green-700); color: var(--green-700); background: transparent; }
.btn--ghost:hover { background: var(--green-700); color: #fff; }
.btn--sm { padding: .65em 1.15em; font-size: .92rem; }
.btn--block { width: 100%; }

.link-arrow { display: inline-flex; align-items: center; gap: .45em; font-weight: 700; text-decoration: none; color: var(--green-700); }
.link-arrow .icon { transition: transform .2s ease; }
.link-arrow:hover .icon { transform: translateX(4px); }

/* ---------- Top bar & header ---------- */
.topbar { background: var(--green-900); color: #d8e6dc; font-size: .85rem; }
.topbar__inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 40px; }
.topbar a { color: inherit; text-decoration: none; display: inline-flex; align-items: center; gap: .45em; }
.topbar a:hover { color: var(--sun); }
.topbar__contact { display: flex; gap: 24px; flex-wrap: wrap; }
.topbar__social { display: flex; gap: 14px; }

.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(251, 247, 238, .97);
    border-bottom: 1px solid transparent;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 20px -16px rgba(18, 55, 40, .5); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 80px; }
.brand { display: flex; flex-direction: column; align-items: flex-start; text-decoration: none; }
.brand img { width: 172px; height: auto; }
.brand__sub { font-size: .7rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--green-700); margin-top: 2px; padding-left: 4px; }

.site-nav { display: flex; align-items: center; gap: 20px; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.site-nav ul a {
    display: block; padding: .5em .8em; border-radius: 999px;
    color: var(--ink-soft); font-weight: 600; font-size: .95rem; text-decoration: none;
    transition: background-color .2s ease, color .2s ease;
}
.site-nav ul a:hover { background: var(--sand); color: var(--green-900); }
.site-nav ul a[aria-current="page"] { background: var(--green-100); color: var(--green-800); }

.nav-toggle { display: none; width: 46px; height: 46px; border: 0; border-radius: 12px; background: var(--green-100); cursor: pointer; padding: 12px 11px; flex-direction: column; justify-content: space-between; }
.nav-toggle span { display: block; height: 2px; border-radius: 2px; background: var(--green-900); transition: transform .25s ease, opacity .2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

@media (max-width: 1080px) {
    .nav-toggle { display: flex; }
    .site-nav {
        position: absolute; left: 0; right: 0; top: 100%;
        flex-direction: column; align-items: stretch; gap: 12px;
        background: var(--cream); border-bottom: 1px solid var(--line);
        padding: 12px var(--gutter) 24px;
        box-shadow: 0 20px 30px -20px rgba(18, 55, 40, .35);
        display: none;
    }
    .site-nav.is-open { display: flex; }
    .site-nav ul { flex-direction: column; }
    .site-nav ul a { padding: .8em 1em; border-radius: 12px; font-size: 1.05rem; }
}
@media (max-width: 640px) {
    .topbar__contact a:nth-child(2) { display: none; }
    .brand img { width: 140px; }
    .site-header__inner { min-height: 70px; }
}

/* ---------- Sections ---------- */
.section { padding-block: var(--section-y); }
.section--paper { background: var(--paper); }
.section--green { background: var(--green-900); color: #e3ede6; position: relative; overflow: hidden; }
.section--green .h2 { color: #fff; }
.section-head { max-width: 720px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head--row { max-width: none; display: flex; align-items: end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.section-head--row .h2 { margin-bottom: 0; }

/* ---------- Hero ---------- */
.hero { padding-block: 30px; position: relative; overflow: hidden; }
.hero::before {
    content: ""; position: absolute; right: -10%; top: -20%; width: 60vw; height: 60vw; max-width: 820px; max-height: 820px;
    background: radial-gradient(circle, var(--sun-100) 0%, rgba(253, 241, 204, 0) 65%);
    z-index: -1;
}
.hero__grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 4vw, 56px); align-items: center; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 32px 0 36px; }
.hero__facts { list-style: none; padding: 20px 0 0; margin: 0; display: flex; flex-wrap: wrap; gap: 12px 36px; border-top: 1px solid var(--line); font-size: .95rem; color: var(--ink-soft); }
.hero__facts strong { display: block; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

.hero__art { position: relative; aspect-ratio: 1.22 / 1; }
.hero__art .hero__flower { position: absolute; width: 14%; height: auto; top: -4%; right: -2%; filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .15)); }

@media (max-width: 900px) {
    .hero__grid { grid-template-columns: 1fr; }
    .hero__art { max-width: 760px; width: 100%; margin-inline: auto; }
}

/* ---------- Quotes ---------- */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.quote-card {
    margin: 0; padding: 36px 32px 32px; background: var(--paper); border-radius: var(--radius);
    border: 1px solid var(--line); display: flex; flex-direction: column; position: relative;
    transition: box-shadow .25s ease;
}
.quote-card:hover { box-shadow: var(--shadow); }
.quote-card__mark { width: 36px; height: 36px; color: var(--green-500); margin-bottom: 16px; }
.quote-card blockquote { margin: 0 0 24px; font-family: var(--font-display); font-size: 1.15rem; line-height: 1.45; color: var(--green-900); flex: 1; }
.quote-card figcaption { font-weight: 700; font-size: .9rem; color: var(--muted); padding-top: 16px; border-top: 1px dashed var(--line); }
.quote-card figcaption::before { content: "— "; }
.quote-card--sun { background: var(--sun-100); border-color: #f3dc91; }
.quote-card--sun .quote-card__mark { color: var(--sun-deep); }
@media (max-width: 900px) { .quotes { grid-template-columns: 1fr; } }

/* ---------- Split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split__media { position: relative; }
.split__media img { border-radius: var(--radius-lg); width: 100%; aspect-ratio: 5 / 4; object-fit: cover; box-shadow: var(--shadow-lg); }
.split__media::after { content: ""; position: absolute; inset: auto -18px -18px auto; width: 45%; height: 45%; border-radius: var(--radius-lg); background: var(--sun); z-index: -1; }
.split__media { z-index: 0; }
.split__copy p { color: var(--ink-soft); }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } .split__media::after { inset: auto -8px -12px auto; } }

/* ---------- Pillars ---------- */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.pillar { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; }
.pillar h3 { font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; margin-top: 20px; }
.pillar p { color: var(--ink-soft); margin: 0; }
.pillar__icon { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: var(--green-100); color: var(--green-700); }
.pillar__icon .icon { width: 26px; height: 26px; }
.pillar__icon--sun { background: var(--sun-100); color: #9a6f00; }
.pillar__icon--orange { background: var(--orange-100); color: #b45a0c; }
@media (max-width: 900px) { .pillars { grid-template-columns: 1fr; } }

/* ---------- Mosaic ---------- */
.mosaic { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; gap: 16px; }
.mosaic__item { display: block; overflow: hidden; border-radius: var(--radius); background: var(--green-800); }
.mosaic__item img { width: 100%; height: 100%; object-fit: cover; }
.mosaic__item--1 { grid-column: span 2; grid-row: span 2; }
.mosaic__item--3 { grid-row: span 2; }
.mosaic__item--5 { grid-column: span 2; }
.mosaic__item--6 { grid-column: span 2; }
@media (max-width: 900px) {
    .mosaic { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; }
    .mosaic__item--3 { grid-row: span 1; }
    .mosaic__item--5 { grid-column: span 1; }
    .mosaic__item--1 { grid-column: span 2; }
}

/* ---------- Messages ---------- */
.messages { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.message { padding: clamp(28px, 4vw, 44px); background: var(--paper); border-radius: var(--radius-lg); border: 1px solid var(--line); position: relative; overflow: hidden; }
.message::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--green-500); }
.message--sun::before { background: var(--sun-deep); }
.message__role { font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.message__quote { margin: 0 0 20px; font-family: var(--font-display); font-style: italic; font-size: clamp(1.15rem, 1.9vw, 1.35rem); line-height: 1.4; color: var(--green-900); }
.message p:not(.message__role) { color: var(--ink-soft); }
@media (max-width: 900px) { .messages { grid-template-columns: 1fr; } }

/* ---------- Panels (notices / careers) ---------- */
.duo { display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px; }
.panel { background: var(--cream); border-radius: var(--radius-lg); padding: clamp(28px, 4vw, 40px); border: 1px solid var(--line); }
.panel--sun { background: var(--sun-100); border-color: #f3dc91; }
.panel__head { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.panel__head .h3 { margin: 0; }
.panel__icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--green-700); color: #fff; }
.panel--sun .panel__icon { background: var(--green-900); color: var(--sun); }
.panel__icon .icon { width: 22px; height: 22px; }
.panel__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.notice-list { list-style: none; margin: 0 0 24px; padding: 0; }
.notice-list li { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.notice-list li:first-child { border-top: 1px solid var(--line); }
.notice-list time { font-size: .85rem; font-weight: 700; color: var(--green-500); }
.notice-list a { color: var(--ink); font-weight: 600; text-decoration: none; }
.notice-list a:hover { color: var(--green-700); text-decoration: underline; }
@media (max-width: 900px) { .duo { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .notice-list li { grid-template-columns: 1fr; gap: 2px; } }

/* ---------- Visit ---------- */
.visit { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.visit__map { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4 / 3; background: var(--sand); }
.visit__map iframe { width: 100%; height: 100%; border: 0; display: block; }
.contact-list { list-style: none; padding: 0; margin: 24px 0 32px; display: grid; gap: 14px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list .icon { width: 22px; height: 22px; color: var(--green-500); margin-top: 3px; }
.contact-list a { color: var(--ink); font-weight: 600; text-decoration: none; word-break: break-word; }
.contact-list a:hover { color: var(--green-700); text-decoration: underline; }
@media (max-width: 900px) { .visit { grid-template-columns: 1fr; } }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding-block: 30px; position: relative; overflow: hidden; }
.page-hero::after {
    content: ""; position: absolute; right: -80px; top: -80px; width: 340px; height: 340px; border-radius: 50%;
    background: radial-gradient(circle, var(--sun-100), rgba(253, 241, 204, 0) 70%); z-index: -1;
}
.page-hero .display { font-size: clamp(2rem, 4.4vw, 3.2rem); max-width: 16ch; }
.page-hero .lead { margin-top: 16px; }
.crumbs { font-size: .85rem; color: var(--muted); margin-bottom: 20px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--green-700); text-decoration: underline; }
.crumbs span { margin-inline: .4em; }

/* ---------- Prose / long-form ---------- */
.prose { max-width: 720px; font-size: 1.1rem; }
.prose p { color: var(--ink-soft); }
.prose h2 { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.5rem, 2.6vw, 1.85rem); margin-top: 1.8em; }
.prose h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; margin-top: 1.6em; }
.prose ul { padding-left: 0; list-style: none; }
.prose li { position: relative; padding-left: 32px; margin-bottom: .7em; color: var(--ink-soft); }
.prose li::before { content: ""; position: absolute; left: 4px; top: .55em; width: 12px; height: 12px; border-radius: 50%; background: var(--sun); box-shadow: 0 0 0 4px var(--sun-100); }
.prose .pull { font-family: var(--font-display); font-style: italic; font-size: clamp(1.25rem, 2.2vw, 1.5rem); line-height: 1.4; color: var(--green-900); border-left: 4px solid var(--sun); padding: 4px 0 4px 24px; margin: 1.6em 0; }
.prose .signoff { margin-top: 2em; font-weight: 700; color: var(--green-900); line-height: 1.4; }
.prose .signoff span { display: block; font-weight: 500; color: var(--muted); }

.aside-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(32px, 6vw, 80px); align-items: start; }
.aside-card { position: sticky; top: 110px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.aside-card h2 { font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; }
.aside-card ul { list-style: none; margin: 0 0 20px; padding: 0; }
.aside-card li a { display: block; padding: 10px 0; border-bottom: 1px solid var(--line); text-decoration: none; font-weight: 600; color: var(--ink-soft); }
.aside-card li a:hover { color: var(--green-700); }
.aside-card img { border-radius: var(--radius-sm); margin-bottom: 20px; }
@media (max-width: 960px) { .aside-layout { grid-template-columns: 1fr; } .aside-card { position: static; } }

.mission-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 16px; }
.mission-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; }
.mission-card h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; margin-top: 18px; }
.mission-card ul { list-style: none; padding: 0; margin: 0; }
.mission-card li { display: flex; gap: 10px; margin-bottom: 12px; color: var(--ink-soft); font-size: 1rem; line-height: 1.55; }
.mission-card li .icon { color: var(--green-500); margin-top: 4px; }
@media (max-width: 960px) { .mission-grid { grid-template-columns: 1fr; } }

.leader { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.leader + .leader { margin-top: var(--section-y); padding-top: var(--section-y); border-top: 1px solid var(--line); }
.leader__side { position: sticky; top: 110px; }
.leader__badge { background: var(--green-900); color: #fff; border-radius: var(--radius-lg); padding: 32px; position: relative; overflow: hidden; }
.leader__badge::after { content: ""; position: absolute; right: -40px; bottom: -40px; width: 140px; height: 140px; background: url("../img/flower.png") center / contain no-repeat; opacity: .25; }
.leader__badge p { margin: 0; }
.leader__badge .role { font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--sun); }
.leader__badge h2 { color: #fff; font-family: var(--font-display); font-weight: 600; font-size: 1.6rem; margin: 8px 0 0; }
.leader--sun .leader__badge { background: var(--sun); color: var(--green-900); }
.leader--sun .leader__badge .role { color: var(--green-700); }
.leader--sun .leader__badge h2 { color: var(--green-900); }
@media (max-width: 960px) { .leader { grid-template-columns: 1fr; } .leader__side { position: static; } }

.values-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 1.6em 0; }
.values-row div { background: var(--green-100); border-radius: var(--radius-sm); padding: 16px 18px; font-size: .98rem; color: var(--green-900); line-height: 1.45; }
.values-row strong { display: block; font-family: var(--font-display); font-size: 1.2rem; }
@media (max-width: 640px) { .values-row { grid-template-columns: 1fr; } }

/* ---------- Gallery ---------- */
.gallery-grid { columns: 3 300px; column-gap: 16px; }
.gallery-grid a { display: block; margin-bottom: 16px; break-inside: avoid; border-radius: var(--radius); overflow: hidden; position: relative; background: var(--sand); }
.gallery-grid img { width: 100%; transition: transform .5s ease; }
.gallery-grid a::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(18, 55, 40, .45), transparent 50%); opacity: 0; transition: opacity .3s ease; }
.gallery-grid a:hover img { transform: scale(1.04); }
.gallery-grid a:hover::after { opacity: 1; }
/* Photo tiles: a magnifier zooms in over the photo on hover (gallery and the home page photo grid) */
.mosaic__item { position: relative; }
.gallery-grid a::before, .mosaic__item::before {
    content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
    background: rgba(10, 30, 20, .38) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M21 21l-5-5M11 8v6M8 11h6'/%3E%3C/svg%3E") no-repeat center / 42px;
    opacity: 0; transform: scale(.5); transition: opacity .3s ease, transform .3s ease;
}
.gallery-grid a:hover::before, .gallery-grid a:focus-visible::before,
.mosaic__item:hover::before, .mosaic__item:focus-visible::before { opacity: 1; transform: scale(1); }

.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(10, 26, 19, .94); display: none; align-items: center; justify-content: center; padding: 64px 16px; }
.lightbox.is-open { display: flex; }
.lightbox img { max-width: min(1100px, 100%); max-height: 100%; border-radius: 12px; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }
.lightbox button { position: absolute; border: 0; background: rgba(255, 255, 255, .12); color: #fff; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; transition: background-color .2s ease; }
.lightbox button:hover { background: rgba(255, 255, 255, .25); }
.lightbox button .icon { width: 24px; height: 24px; }
.lightbox__close { top: 16px; right: 16px; }
.lightbox__prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 16px; top: 50%; transform: translateY(-50%); }
.lightbox__count { position: absolute; bottom: 20px; left: 0; right: 0; text-align: center; color: #cfdcd3; font-size: .9rem; }
@media (max-width: 640px) { .lightbox__prev, .lightbox__next { top: auto; bottom: 12px; transform: none; } }

/* ---------- Tables (notices) ---------- */
.table-wrap { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.table { width: 100%; border-collapse: collapse; font-size: 1rem; }
.table th { text-align: left; font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); background: var(--sand); padding: 14px 20px; }
.table td { padding: 18px 20px; border-top: 1px solid var(--line); vertical-align: top; }
.table td:first-child { color: var(--muted); font-weight: 700; width: 60px; }
.table .date { white-space: nowrap; font-weight: 600; color: var(--green-700); }
.table a.doc { display: inline-flex; align-items: center; gap: .4em; font-weight: 700; text-decoration: none; }
.empty { text-align: center; padding: 56px 24px; color: var(--muted); }
.empty .icon { width: 40px; height: 40px; color: var(--green-500); margin: 0 auto 12px; display: block; }
@media (max-width: 720px) {
    .table thead { display: none; }
    .table, .table tbody, .table tr, .table td { display: block; width: 100%; }
    .table tr { padding: 16px 20px; border-top: 1px solid var(--line); }
    .table tr:first-child { border-top: 0; }
    .table td { border: 0; padding: 2px 0; width: auto !important; }
    .table td[data-label]::before { content: attr(data-label) ": "; font-weight: 700; color: var(--muted); font-size: .85rem; }
    .table td:first-child { display: none; }
}

/* ---------- Forms ---------- */
.form-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 48px); }
.form-section + .form-section { margin-top: 40px; padding-top: 40px; border-top: 1px solid var(--line); }
.form-section__title { display: flex; align-items: center; gap: 12px; font-family: var(--font-display); font-weight: 600; font-size: 1.25rem; color: var(--green-900); margin: 0 0 24px; }
.form-section__num { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--sun); color: var(--green-900); font: 700 .95rem var(--font-body); flex: none; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 720px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label, .field .label { font-weight: 600; font-size: .92rem; color: var(--ink); }
.field .hint { font-size: .85rem; color: var(--muted); }
.req { color: #c2410c; }
.input, select.input, textarea.input {
    width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
    padding: .8em 1em; border: 1.5px solid #d9d0bb; border-radius: 12px; background: #fffdf8;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.input:focus { outline: none; border-color: var(--green-500); box-shadow: 0 0 0 4px var(--green-100); background: #fff; }
.input.is-invalid, .input:user-invalid { border-color: #c2410c; }
.field-error { color: #b42318; font-size: .85rem; font-weight: 600; }
select.input { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f5b43' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; padding-right: 44px; }

.choice-row { display: flex; gap: 12px; flex-wrap: wrap; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; }
.choice span { display: inline-block; padding: .7em 1.3em; border: 1.5px solid #d9d0bb; border-radius: 999px; cursor: pointer; font-weight: 600; background: #fffdf8; transition: all .2s ease; }
.choice input:checked + span { background: var(--green-700); border-color: var(--green-700); color: #fff; }
.choice input:focus-visible + span { outline: 3px solid var(--sun-deep); outline-offset: 2px; }

.qual-table { display: grid; gap: 12px; }
.qual-row { display: grid; grid-template-columns: 140px repeat(4, minmax(0, 1fr)); gap: 12px; align-items: center; }
.qual-row .qual-label { font-weight: 700; color: var(--green-900); }
.qual-row .qual-label small { display: block; font-weight: 500; color: var(--muted); font-size: .78rem; }
.qual-head { font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.qual-row > .field-error { grid-column: 1 / -1; margin: 0; }
@media (max-width: 860px) {
    .qual-head { display: none; }
    .qual-row { grid-template-columns: 1fr 1fr; padding: 16px; background: var(--cream); border-radius: var(--radius-sm); }
    .qual-row .qual-label { grid-column: 1 / -1; }
}

.photo-drop { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.photo-preview { width: 120px; aspect-ratio: 3 / 4; border-radius: 12px; border: 2px dashed #d9d0bb; background: var(--cream) center / cover no-repeat; display: grid; place-items: center; color: var(--muted); font-size: .8rem; text-align: center; padding: 8px; }
.photo-preview.has-img { border-style: solid; border-color: var(--green-500); color: transparent; }

.declare { display: flex; gap: 14px; align-items: flex-start; background: var(--sun-100); border-radius: var(--radius); padding: 20px; cursor: pointer; }
.declare input { width: 22px; height: 22px; margin-top: 2px; accent-color: var(--green-700); flex: none; }

.form-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 36px; }
.form-msg { font-weight: 600; color: #b42318; }

/* Job application acknowledgement (careers/acknowledgement.php) */
.ack__status { background: var(--sun-100); border-radius: var(--radius); padding: 18px 22px; margin-bottom: 28px; }
.ack__label { margin: 0 0 6px; font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.ack__state { margin: 0; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ack__state .badge { font-size: .9rem; }
.ack__message { margin: 12px 0 0; }
.ack__body { display: flex; gap: 28px; align-items: flex-start; }
.ack__photo { width: 150px; height: 200px; object-fit: cover; border-radius: 12px; border: 1px solid var(--line); flex: none; }
.ack__heading { margin: 32px 0 12px; }
@media (max-width: 640px) { .ack__body { flex-direction: column; } .ack__body .facts { grid-template-columns: 1fr; gap: 2px; } .ack__body .facts dd { margin-bottom: 8px; } }
@media print { .ack__actions { display: none !important; } .ack { border: 0; padding: 0; } }

.callout { display: flex; gap: 16px; align-items: flex-start; background: var(--green-100); border-radius: var(--radius); padding: 20px 24px; color: var(--green-900); }
.callout .icon { width: 24px; height: 24px; margin-top: 2px; color: var(--green-700); }
.callout p { margin: 0; }

/* ---------- Careers ---------- */
.career-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.steps { list-style: none; padding: 0; margin: 24px 0 0; counter-reset: s; display: grid; gap: 14px; }
.steps li { counter-increment: s; display: flex; gap: 16px; align-items: center; background: var(--cream); border-radius: var(--radius-sm); padding: 14px 18px; font-weight: 600; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--green-700); color: #fff; font-weight: 700; flex: none; }
.posts { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; padding: 0; list-style: none; }
.posts li { background: var(--paper); border: 1px solid #f3dc91; border-radius: 999px; padding: .4em .95em; font-size: .9rem; font-weight: 600; color: var(--green-900); }
@media (max-width: 900px) { .career-grid { grid-template-columns: 1fr; } }

/* ---------- Login ---------- */
.auth { min-height: 60vh; display: grid; place-items: center; padding-block: var(--section-y); }
.auth .form-card { width: 100%; max-width: 440px; text-align: left; }
.auth__icon { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: var(--green-900); color: var(--sun); margin-bottom: 20px; }
.auth__icon .icon { width: 26px; height: 26px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--green-900); color: #c6d6cb; padding-top: clamp(56px, 8vw, 88px); font-size: .97rem; }
.site-footer a { color: #e6efe9; text-decoration: none; }
.site-footer a:hover { color: var(--sun); }
.site-footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 40px; padding-bottom: 56px; }
.footer-logo { display: inline-block; background: var(--cream); padding: 12px 18px; border-radius: 16px; margin-bottom: 20px; }
.footer-logo img { width: 150px; }
.site-footer__brand p { max-width: 34ch; }
.footer-h { color: var(--sun); font-family: var(--font-body); font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; margin-bottom: 18px; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-contact { margin-top: 16px; line-height: 2; }
.footer-contact a { display: inline-flex; align-items: center; gap: .5em; word-break: break-word; }
.social { display: flex; gap: 10px; margin-top: 20px; }
.social a { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .08); transition: background-color .2s ease, color .2s ease; }
.social a:hover { background: var(--sun); color: var(--green-900); }
.site-footer__base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid rgba(255, 255, 255, .12); padding-block: 24px; font-size: .88rem; color: #9fb5a7; }
.site-footer__base p { margin: 0; }
@media (max-width: 960px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .site-footer__grid { grid-template-columns: 1fr; } }

/* ---------- Reveal on scroll ---------- */

fieldset.form-section { border: 0; padding: 0; margin: 0; min-width: 0; }
fieldset.form-section + fieldset.form-section, fieldset.form-section + .form-section { border-top: 1px solid var(--line); }
.form-section > legend { float: left; width: 100%; padding: 0; }
.form-section > legend + * { clear: both; }

/* ---------- Mandatory disclosure ---------- */
.disc-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: clamp(32px, 5vw, 64px); align-items: start; }
.disc-nav { position: sticky; top: 110px; }
.disc-nav__title { font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.disc-nav ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.disc-nav a { display: block; padding: 8px 0 8px 16px; margin-left: -2px; border-left: 2px solid transparent; color: var(--ink-soft); font-weight: 600; font-size: .95rem; text-decoration: none; }
.disc-nav a:hover, .disc-nav a.is-active { color: var(--green-700); border-left-color: var(--sun-deep); }
.disc-section, .leader { scroll-margin-top: 110px; }
.disc-section + .disc-section { margin-top: 56px; }
.disc-h { display: flex; align-items: center; gap: 14px; font-family: var(--font-display); font-weight: 600; font-size: clamp(1.35rem, 2.2vw, 1.6rem); margin-bottom: 20px; }
.disc-h span { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--green-900); color: var(--sun); font: 700 1.1rem var(--font-body); flex: none; }
.disc-sub { font-family: var(--font-body); font-size: 1rem; font-weight: 700; color: var(--green-900); margin: 28px 0 12px; }
.disc-note { font-size: .92rem; color: var(--muted); margin: 14px 0 0; }

.dtable { width: 100%; border-collapse: collapse; font-size: .98rem; }
.dtable thead th { white-space: nowrap; text-align: left; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); background: var(--sand); padding: 12px 18px; font-weight: 700; }
.dtable td, .dtable tbody th { padding: 14px 18px; border-top: 1px solid var(--line); vertical-align: top; text-align: left; }
.dtable tbody th { font-weight: 500; color: var(--ink); width: 55%; }
.dtable td:first-child { width: 72px; color: var(--muted); font-weight: 700; }
.dtable td:last-child { font-weight: 600; color: var(--green-900); }
.dtable tr.is-sub th { padding-left: 40px; color: var(--ink-soft); }
.dtable tr.is-sub td, .dtable tr.is-sub th { border-top-style: dashed; }
.dtable a.doc { display: inline-flex; align-items: center; gap: .4em; font-weight: 700; text-decoration: none; white-space: nowrap; }
.dtable a.doc:hover { text-decoration: underline; }
.dtable--result td, .dtable--result thead th { text-align: center; }
.dtable--result thead th { white-space: normal; }
.dtable--result thead th:first-child { white-space: nowrap; }
.dtable--result td:first-child { text-align: center; }
.dtable--result td:last-child { font-weight: 500; color: var(--ink-soft); }
.dtable__empty { text-align: center; padding: 22px !important; }
.pending { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .04em; color: #92400e; background: var(--sun-100); border: 1px dashed #e8c766; border-radius: 999px; padding: .2em .8em; }
/* A required document that hasn't been uploaded yet: red, so it stands out */
.pending--missing { color: #b42318; background: #fde2e0; border: 1px solid #f3b8b2; }

@media (max-width: 960px) {
    .disc-layout { grid-template-columns: 1fr; }
    .disc-nav { position: static; }
    .disc-nav ol { display: flex; flex-wrap: wrap; gap: 8px; border: 0; }
    .disc-nav a { border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; margin: 0; font-size: .88rem; background: var(--cream); }
}
@media (max-width: 640px) {
    .dtable thead { display: none; }
    .dtable, .dtable tbody, .dtable tr, .dtable td, .dtable tbody th { display: block; width: auto !important; }
    .dtable tr { padding: 14px 16px; border-top: 1px solid var(--line); }
    .dtable tbody tr:first-child { border-top: 0; }
    .dtable td, .dtable tbody th { border: 0; padding: 2px 0; }
    .dtable td:first-child { display: none; }
    .dtable tbody th { font-size: .9rem; color: var(--muted); }
    .dtable tr.is-sub th { padding-left: 16px; }
    .dtable--result td { text-align: left; }
    .dtable--result td[data-label]::before { content: attr(data-label) ": "; font-weight: 700; color: var(--muted); font-size: .85rem; }
    .dtable__empty { display: block !important; text-align: left !important; padding: 0 !important; }
}

/* ---------- Print (used by the disclosure page's print button) ---------- */
@media print {
    .topbar, .site-header, .site-footer, .disc-nav, .hero__actions, .skip-link, .crumbs, .page-hero::after { display: none !important; }
    body { background: #fff; font-size: 11pt; }
    .section, .page-hero { padding: 0 !important; }
    .page-hero { margin-bottom: 16px; }
    .page-hero .display { font-size: 22pt; max-width: none; }
    .display em::after { display: none; }
    .disc-layout { display: block; }
    .table-wrap { border-radius: 0; border-color: #999; }
    .dtable td, .dtable tbody th { border-top-color: #bbb; padding: 6px 10px; }
    .dtable thead th { background: #eee; }
    .disc-section { break-inside: avoid-page; }
    .disc-section + .disc-section { margin-top: 20px; }
    a.doc::after { content: " (" attr(href) ")"; font-weight: 400; font-size: 9pt; color: #555; }
}

.topbar__login { color: #fff !important; font-weight: 700; padding-right: 14px; border-right: 1px solid rgba(255, 255, 255, .2); }
.topbar__login:hover { color: var(--sun) !important; }
@media (max-width: 640px) {
    .topbar__social a:not(.topbar__login) { display: none; }
    .topbar__login { border: 0; padding: 0; }
    .topbar .lbl-long { display: none; }
}
.crumbs .crumbs__here { margin: 0; }

/* ---------- Notice detail ---------- */
.page-notices-show .page-hero .display { font-size: clamp(1.8rem, 3.6vw, 2.6rem); max-width: 24ch; }
.notice-meta { list-style: none; margin: 0 0 20px; padding: 0; }
.notice-meta li { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-weight: 600; color: var(--green-900); }
.notice-meta li span { font-weight: 500; color: var(--muted); }
a.notice-title { color: var(--ink); font-weight: 700; text-decoration: none; }
a.notice-title:hover { color: var(--green-700); text-decoration: underline; }

/* ---------- Floating WhatsApp button (bottom-right on every website page) ---------- */
.wa-float {
    position: fixed; right: 20px; bottom: 20px; right: max(20px, env(safe-area-inset-right)); bottom: max(20px, env(safe-area-inset-bottom));
    z-index: 90; display: flex; align-items: center; gap: 10px;
    height: 58px; min-width: 58px; padding: 0 16px; border-radius: 999px;
    background: #25d366; color: #fff; text-decoration: none; font-weight: 700; font-size: .95rem;
    box-shadow: 0 10px 24px -6px rgba(18, 55, 40, .45), 0 2px 6px rgba(0, 0, 0, .12);
    transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.wa-float:hover { color: #fff; background: #1ebe5b; transform: translateY(-2px); box-shadow: 0 14px 30px -8px rgba(18, 55, 40, .55); }
.wa-float:focus-visible { outline: 3px solid var(--sun-deep); outline-offset: 3px; }
.wa-float__icon { width: 28px; height: 28px; flex: none; }
/* Phones and tablets: icon only, so it covers less of the page */
@media (max-width: 900px) {
    .wa-float { padding: 0; width: 56px; height: 56px; min-width: 0; justify-content: center; right: 16px; bottom: 16px; }
    .wa-float__label { display: none; }
}
/* Keep "Back to top" in the footer clear of the button */
@media (max-width: 1360px) { .site-footer__base { padding-right: 84px; } }
@media print { .wa-float { display: none !important; } }

/* ---------- Notifications box (after the hero on every website page) ---------- */
.notify { padding-block: 0 clamp(20px, 3vw, 32px); position: relative; z-index: 2; }
.notify__box {
    display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 0;
    background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
    box-shadow: 0 16px 34px -22px rgba(18, 55, 40, .45); overflow: hidden;
}
.notify__head { display: flex; align-items: center; gap: 12px; align-self: stretch; padding: 14px 22px 14px 18px; background: var(--green-900); color: #fff; }
.notify__bell { width: 40px; height: 40px; border-radius: 12px; background: var(--sun); color: var(--green-900); display: grid; place-items: center; flex: none; }
.notify__bell .icon { width: 22px; height: 22px; transform-origin: 50% 10%; }
.notify__title { margin: 0; color: #fff; font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; line-height: 1.2; }
.notify__sub { margin: 0; font-size: .78rem; color: #b7cdbf; }

.notify__window { position: relative; max-height: 124px; overflow: hidden; padding-inline: 18px; }
.notify__window.is-scrolling { height: 124px;
    -webkit-mask-image: linear-gradient(to bottom, transparent, #000 14px, #000 calc(100% - 14px), transparent);
            mask-image: linear-gradient(to bottom, transparent, #000 14px, #000 calc(100% - 14px), transparent); }
[data-notify].is-scrolling .notify__track { animation: notify-scroll var(--notify-duration, 20s) linear infinite; }
[data-notify].is-scrolling:hover .notify__track,
[data-notify].is-scrolling:focus-within .notify__track,
[data-notify].is-paused .notify__track { animation-play-state: paused; }
@keyframes notify-scroll { to { transform: translateY(-50%); } }

.notify__list { list-style: none; margin: 0; padding: 0; }
.notify__list li + li { border-top: 1px dashed var(--line); }
.notify__list a { display: flex; align-items: center; gap: 12px; padding: 10px 4px; min-height: 41px; color: var(--ink); text-decoration: none; }
.notify__list a:hover .notify__text { color: var(--green-700); text-decoration: underline; }
.notify__list time { flex: none; min-width: 56px; font-size: .78rem; font-weight: 700; color: var(--green-500); text-transform: uppercase; letter-spacing: .04em; }
.notify__text { flex: 1; min-width: 0; font-weight: 600; font-size: .95rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.notify__new { flex: none; font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #fff; background: #d9480f; padding: .2em .6em; border-radius: 999px; }

.notify__actions { display: flex; align-items: center; gap: 8px; padding: 0 18px 0 8px; }
.notify__pause { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: var(--paper); color: var(--green-700); display: grid; place-items: center; cursor: pointer; }
.notify__pause:hover { background: var(--green-100); }
.notify__pause .icon { width: 16px; height: 16px; }
.notify__all { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; font-weight: 700; font-size: .9rem; color: var(--green-700); text-decoration: none; padding: .55em 1em; border-radius: 999px; background: var(--green-100); }
.notify__all:hover { background: var(--green-700); color: #fff; }

@media (max-width: 760px) {
    .notify__box { grid-template-columns: 1fr auto; }
    .notify__head { grid-column: 1 / -1; padding: 12px 16px; }
    .notify__bell { width: 34px; height: 34px; }
    .notify__window { grid-column: 1 / -1; grid-row: 2; padding-inline: 14px; }
    .notify__actions { grid-column: 1 / -1; justify-content: flex-end; padding: 8px 14px 12px; border-top: 1px solid var(--line); }
    .notify__text { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; font-size: .92rem; }
    .notify__window, .notify__window.is-scrolling { max-height: 150px; height: auto; }
    .notify__window.is-scrolling { height: 150px; }
}
/* No motion wanted: the box simply scrolls by hand */
@media (prefers-reduced-motion: reduce) {
    [data-notify].is-scrolling { overflow-y: auto; -webkit-mask-image: none; mask-image: none; }
    .notify__track > ul[aria-hidden="true"] { display: none; }
}
@media print { .notify, .ncard { display: none; } }

/* Inner pages: header text on the left, small notifications card in the top-right corner */
.page-hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(28px, 5vw, 64px); align-items: start; }
.page-hero__copy { min-width: 0; }
.ncard {
    background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
    box-shadow: 0 18px 40px -24px rgba(18, 55, 40, .5);
}
.ncard__head { display: flex; align-items: center; gap: 10px; padding: 12px 16px; background: var(--green-900); }
.ncard__head .notify__bell { width: 34px; height: 34px; border-radius: 10px; }
.ncard__head .notify__bell .icon { width: 19px; height: 19px; }
.ncard__title { margin: 0; flex: 1; color: #fff; font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; line-height: 1.2; }
.ncard__count { flex: none; font-size: .72rem; font-weight: 700; color: var(--green-900); background: var(--sun); padding: .2em .65em; border-radius: 999px; }
.ncard__window { position: relative; max-height: 236px; overflow: hidden; }
.ncard__window.is-scrolling { height: 236px;
    -webkit-mask-image: linear-gradient(to bottom, transparent, #000 12px, #000 calc(100% - 16px), transparent);
            mask-image: linear-gradient(to bottom, transparent, #000 12px, #000 calc(100% - 16px), transparent); }
.ncard__list { list-style: none; margin: 0; padding: 0 16px; }
.ncard__list li + li { border-top: 1px dashed var(--line); }
.ncard__list a { display: grid; gap: 3px; padding: 11px 0; color: var(--ink); text-decoration: none; }
.ncard__list a:hover .ncard__text { color: var(--green-700); text-decoration: underline; }
.ncard__meta { display: flex; align-items: center; gap: 8px; }
.ncard__meta time { font-size: .74rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--green-500); }
.ncard__meta .notify__new { font-size: .62rem; padding: .15em .55em; }
.ncard__text { font-weight: 600; font-size: .92rem; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ncard__foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 16px; border-top: 1px solid var(--line); background: #fdfbf6; }
.ncard__foot .notify__pause { width: 32px; height: 32px; }
.ncard__all { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: .88rem; color: var(--green-700); text-decoration: none; }
.ncard__all:hover { text-decoration: underline; }
@media (max-width: 960px) {
    .page-hero__grid { grid-template-columns: 1fr; }
    .ncard { max-width: 520px; }
    .ncard__window { max-height: 190px; }
    .ncard__window.is-scrolling { height: 190px; }
}
/* Developer credit in the footer's bottom row */
.site-footer__credit a { color: var(--sun); font-weight: 600; }
.site-footer__credit a:hover { color: #fff; text-decoration: underline; }

/* "Back to top" link in the footer; its target (#top, the top bar) takes focus without showing a ring */
.topbar:focus { outline: none; }
.back-to-top { display: inline-flex; align-items: center; gap: .35em; }
.back-to-top span { display: inline-block; transition: transform .2s ease; }
.back-to-top:hover span { transform: translateY(-3px); }

/* Buttons inside an inner page's header (e.g. About → Mandatory Public Disclosure) */
.page-hero__buttons { margin: 24px 0 0; }

/* ---------- Home page slideshow (assets/js/hero-slider.js) ---------- */
.hero-slider {
    position: absolute; inset: 0; overflow: hidden; isolation: isolate;
    border-radius: var(--radius-lg) var(--radius-lg) var(--radius-lg) 110px;
    background: var(--green-900); box-shadow: var(--shadow-lg);
}
.hero-slider__track { position: absolute; inset: 0; }
.hero-slide { position: absolute; inset: 0; margin: 0; overflow: hidden; opacity: 0; visibility: hidden; backface-visibility: hidden; }
.hero-slide.is-active { opacity: 1; visibility: visible; z-index: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; transform-origin: 60% 50%; }
/* Soft shade at the bottom so the controls stay readable on any photo */
.hero-slider::after { content: ""; position: absolute; inset: auto 0 0 0; height: 38%; z-index: 2; pointer-events: none; background: linear-gradient(to top, rgba(10, 30, 20, .62), rgba(10, 30, 20, 0)); }
.hero-slide__caption {
    position: absolute; top: 18px; left: 18px; z-index: 3; margin: 0;
    padding: .45em .95em; border-radius: 999px; font-size: .82rem; font-weight: 700; letter-spacing: .02em;
    color: var(--green-900); background: rgba(255, 255, 255, .94);
    box-shadow: 0 6px 16px -8px rgba(0, 0, 0, .4);
}
.hero-slider__controls {
    position: absolute; right: 16px; bottom: 16px; z-index: 4; display: flex; align-items: center; gap: 6px;
    padding: 6px; border-radius: 999px; background: rgba(10, 30, 20, .62);
}
.hero-slider__btn {
    width: 38px; height: 38px; border: 0; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
    color: #fff; background: rgba(255, 255, 255, .14); transition: background-color .2s ease, transform .2s ease;
}
.hero-slider__btn:hover { background: rgba(255, 255, 255, .3); }
.hero-slider__btn:active { transform: scale(.94); }
.hero-slider__btn .icon { width: 18px; height: 18px; }
.hero-slider__toggle { background: var(--sun); color: var(--green-900); }
.hero-slider__toggle:hover { background: #ffd35e; }
.hero-slider__dots { display: flex; align-items: center; gap: 6px; padding: 0 4px; }
.hero-slider__dot {
    position: relative; overflow: hidden; width: 18px; height: 6px; padding: 0; border: 0; border-radius: 99px; cursor: pointer;
    background: rgba(255, 255, 255, .4); transition: width .35s cubic-bezier(.2, .7, .2, 1), background-color .2s ease;
}
.hero-slider__dot:hover { background: rgba(255, 255, 255, .7); }
.hero-slider__dot[aria-current="true"] { width: 40px; background: rgba(255, 255, 255, .35); }
/* The current dot fills up while its photo is showing */
.hero-slider__dot::after { content: ""; position: absolute; inset: 0; background: var(--sun); transform-origin: left; transform: scaleX(0); }
.hero-slider__dot[aria-current="true"]::after { transform: scaleX(1); }
.hero-slider__dot.is-running::after { animation: slide-progress var(--slide-ms, 5500ms) linear backwards; }
.hero-slider.is-paused .hero-slider__dot::after { animation-play-state: paused; }
@keyframes slide-progress { from { transform: scaleX(0); } }
.hero-slider :focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; }
@media (max-width: 640px) {
    .hero-slider { border-radius: var(--radius-lg) var(--radius-lg) var(--radius-lg) 64px; }
    .hero-slider__controls { right: 10px; bottom: 10px; gap: 4px; padding: 4px; }
    .hero-slider__btn { width: 34px; height: 34px; }
    /* Smaller dots so a dozen photos' worth still fits across a phone-width slideshow */
    .hero-slider__dots { gap: 4px; padding: 0 2px; }
    .hero-slider__dot { width: 9px; }
    .hero-slider__dot[aria-current="true"] { width: 20px; }
    .hero-slide__caption { top: 12px; left: 12px; font-size: .75rem; }
}
@media (max-width: 360px) {
    .hero-slider__dots { gap: 3px; }
    .hero-slider__dot { width: 7px; }
    .hero-slider__dot[aria-current="true"] { width: 16px; }
}

/* ==========================================================================
   Animation — GSAP + ScrollTrigger + SplitText + Lenis, loaded from jsDelivr
   (layouts/main.php). All animation code is in assets/js/animations.js, apart
   from the home page slideshow (assets/js/hero-slider.js).
   The <head> script adds .motion unless the visitor has turned motion off.
   ========================================================================== */

/* Hidden until GSAP brings them in, so nothing flashes on screen first. The same two lists are
   in animations.js (INTRO and REVEAL). If GSAP hasn't started within 3 s, .motion is removed. */
.motion .site-header .brand, .motion .site-nav > ul > li, .motion .site-nav > .btn,
.motion .hero__copy > *, .motion .hero-slider, .motion .hero__art .hero__flower, .motion .notify,
.motion .page-hero__copy > *, .motion .page-hero > .container > :not(.page-hero__copy):not(.ncard),
.motion .auth__intro > *, .motion .ncard, .motion .wa-float,
.motion .section-head .eyebrow, .motion .section-head h2, .motion .section-head .lead, .motion .section-head .btn,
.motion .quote-card, .motion .pillar, .motion .mission-card, .motion .message, .motion .duo > .panel,
.motion .career-grid > *, .motion .gallery-grid > a, .motion .values-row > *, .motion .leader__badge,
.motion .prose > *, .motion .aside-card, .motion .table-wrap, .motion .form-card, .motion .disc-nav,
.motion .disc-section, .motion .split__media, .motion .split__copy > *, .motion .visit__copy > *,
.motion .visit__map, .motion .mosaic__item, .motion .site-footer__grid > * { visibility: hidden; }

/* The highlight under a heading's italic word is drawn by GSAP, which animates --hl from 0 to 1 */
.motion .display em::after { transform: scaleX(var(--hl, 0)); transform-origin: left center; }

/* GSAP moves these, so the stylesheet only fades their colours (two engines on one property stutter) */
.motion .btn, .motion .wa-float, .motion .hero-slider__btn { transition-property: background-color, border-color, box-shadow, color; }

/* Blocks sliding in from the side must not make the page scroll sideways (clip, unlike hidden, keeps sticky menus working) */
.motion main { overflow-x: clip; }

/* Headings split into words and letters. Each word is a window the letters rise through; the
   padding (cancelled by the negative margin) keeps italic tails and descenders from being cut off. */
.split-word, .split-char, .split-word-mask { display: inline-block; }
.split-word-mask { padding: .12em .1em .22em; margin: -.12em -.1em -.22em; }

/* Reading-progress bar along the top edge (created and driven by animations.js) */
.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 120; pointer-events: none; background: linear-gradient(90deg, var(--sun-deep), var(--sun)); transform-origin: 0 50%; transform: scaleX(0); }
@media print { .scroll-progress { display: none; } }

/* Ring that pulses around the WhatsApp button (added by animations.js) */
.wa-float__ring { position: absolute; inset: 0; border-radius: inherit; border: 2px solid #25d366; pointer-events: none; opacity: 0; }

/* Slideshow without GSAP: a plain cross-fade */
.hero-slider--fade .hero-slide { transition: opacity .8s ease, visibility .8s; }

/* Lenis smooth scrolling (its lenis.css, except that embedded maps are only
   locked while the page is actually scrolling, so they stay usable) */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis:not(.lenis-autoToggle).lenis-stopped { overflow: clip; }
.lenis [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-scrolling iframe { pointer-events: none; }
