/* ---------- Tokens ---------- */
:root {
    --ink: #0b3039;            /* main text color used across the page */
    --ink-soft: #214650;       /* softer secondary text color */
    --maxw: 60vh;             /* max readable width for text blocks */

    --hero-h: 150vh;
    --mid-h: 80vh;
    --reef-h: 260vh;

    --theme-offset: 20vh;       /* how far down the theme block sits */
    --rays: 5vh;

    /* "Named" z-index layers so stacking is easy to reason about */
    --z-intro: 18;             /* hero headline/copy */
    --z-clouds: 5;             /* clouds behind everything else */
    --z-ripples: 7;          /* ripples sit above floe */
    --z-surface-water: 5.6;   /* surface water sits below ripples */
    --z-gradient-bg: 5.61;     /* gradient background sits right under surface water */
    --z-gradient-bg-2: 5.615;   /* second gradient background sits right under first gradient */
    --z-color-block: 5.617;    /* color block sits above gradient-bg-2, below orcas-under */
    --z-orcas-under: 5.62;     /* orcas under sit right after gradient bg */
    --z-orcas-over: 5.65;     /* orcas sit above surface water */
    --z-sunlight: 5.7;        /* sunlight sits above ripples */
    --z-seal-adults: 5.8;     /* seal adults sit above sunlight */
    --z-seal-baby: 5.9;     /* seal baby sit above seal adults */
    --z-floe: 6;            /* floe above mountains/clouds, under ripples */
    --z-mountains: 4;          /* mountains sit behind clouds */
    --z-bg: 1;                 /* background fallback */
    /* about page layout helpers */
    --about-hero-height: 48vh;
    --about-mountain-top: 40vh;
    --about-mountain-height: calc(100vw * 31 / 144);
    --about-horizon-overlap: clamp(2vh, 4vw, 6vh);
    --about-ripples-offset: clamp(0vh, 1vw, 2vh);
    
    /* Responsive spacing for about page */
    --spacing-sm: clamp(1rem, 1.5vw, 1.5rem);
    --spacing-md: clamp(1rem, 2vw, 2rem);
    --spacing-lg: clamp(2rem, 4vw, 4rem);
    --spacing-xl: clamp(3rem, 6vw, 6rem);
}

/* ---------- Base ---------- */




/* Utility */
.wrap {
    position: relative;        /* create positioning context for absolute children */
    width: 100%;               /* full-width section */
    min-height: 100vh;         /* each section at least one viewport tall */
}



/* About hero frame only */
header.hero.about {
    width: 100%;
    height: var(--about-hero-height);                /* end right before surface water starts */
    background: #D1ECFA;
    margin: 0 auto;
    overflow: hidden;            /* clip any overflow */
}

/* Hero content for about page */
header.hero.about .hero-content {
    position: absolute;
    top: 46vh;                   /* above mountains (which are at 40vh) */
    left: clamp(5vw, 18vw, 18vw);                   /* left side of screen */
    z-index: var(--z-intro);     /* above decorative art so it's readable */
    width: clamp(280px, 34vw, 520px);     /* cap width for readability */
    color: var(--ink);
    padding: 0 clamp(0.5rem, 2vw, 2rem);           /* responsive side padding */
}

/* WINFO content in committee description - positioned to the right of adult seal */
section.committee-description .winfo-content {
    position: absolute;
    top: calc(var(--about-mountain-top) + var(--about-mountain-height) - var(--about-horizon-overlap) + 60vw * 0.95); /* surface-water position + offset */
    left: clamp(45%, 50%, 55%);                   /* positioned to the right of the seal */
    z-index: var(--z-intro);     /* above decorative art so it's readable */
    width: clamp(300px, 40vw, 570px);     /* cap width for readability */
    color: var(--ink);
    padding: 0 clamp(0.5rem, 2vw, 2rem);           /* responsive side padding */
}

/* Team content in committee members - positioned under orcas over */
section.committee-members .team-content {
    position: absolute;
    top: calc(var(--about-mountain-top) + var(--about-mountain-height) - var(--about-horizon-overlap) + 70vw * 2217 / 1440 - 10vh + 100vw * 355 / 721 + 22vh); /* surface-water position + surface-water height + orcas-over height + spacing */
    left: 50%;                   /* center horizontally */
    transform: translateX(-50%); /* center horizontally */
    z-index: var(--z-intro);     /* above decorative art so it's readable */
    width: clamp(350px, 50vw, 680px);     /* cap width for readability */
    color: var(--Text-Text-Primary, #F2F2F4);
    padding: 0 var(--spacing-md);           /* responsive side padding */
}

/* Committee grid - positioned under team-content */
section.committee-members .committee-grid {
    position: absolute;
    top: calc(var(--about-mountain-top) + var(--about-mountain-height) - var(--about-horizon-overlap) + 70vw * 2217 / 1440 - 10vh + 100vw * 355 / 721 + 22vh + 30vh); /* team-content top + spacing */
    left: 50%;                   /* center horizontally */
    transform: translateX(-50%); /* center horizontally */
    z-index: var(--z-intro);     /* above decorative art so it's readable */
    width: clamp(400px, 90vw, 1000px);    /* wider grid for multiple columns */
    color: var(--Text-Text-Primary, #F2F2F4);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

/* Grid row wrapper */
section.committee-members .grid-row {
    display: grid;
    gap: var(--spacing-md);
    justify-content: center;
}

/* Row with 2 people - 2 columns */
section.committee-members .grid-row.row-2 {
    grid-template-columns: repeat(2, 188px);
    max-width: fit-content;
    margin: 0 auto;
}

/* Row with 3 people - 3 columns */
section.committee-members .grid-row.row-3 {
    grid-template-columns: repeat(3, 188px);
    max-width: fit-content;
    margin: 0 auto;
}

/* Row with 4 people - 4 columns */
section.committee-members .grid-row.row-4 {
    grid-template-columns: repeat(4, 188px);
    max-width: fit-content;
    margin: 0 auto;
}

/* Member styling in committee grid */
section.committee-members .member {
    text-align: center;
    width: 188px; 
}

/* Remove paragraph margin in committee members */
section.committee-members .member p {
    margin: 0;                    /* remove default paragraph margins */
}

/* Photo holder in committee grid - circular */
section.committee-members .member .photo {
    width: 126px;                /* fixed size for desktop/tablet */
    height: 126px;
    border-radius: 50%;
    background: #FFF;
    margin: 0 auto;              /* center the photo */
    margin-bottom: var(--spacing-sm);         /* space below photo */
    object-fit: cover;           
    display: block;              /* remove inline spacing */
}

.shadow-soft {
    text-shadow: 0 1px 0 rgba(255, 255, 255, .6), 0 2px 12px rgba(11, 48, 57, .25);
                               /* gentle highlight + glow to lift text on busy BG */
}

/* Caption styling in committee grid */
section.committee-members .member .caption {
    color: var(--Text-Text-Tertiary, #B1A8B3);
}

/* ---------- Hero (sky + surface) ---------- */
header.hero {
    min-height: var(--hero-h);         /* hero fills the first screen */
}

header.hero .layer {
    position: absolute;        /* layer fills the hero section */
    inset: 0;                  /* shorthand: top/right/bottom/left: 0 */
    pointer-events: none;      /* clicks pass through (they’re decorative) */
}

.layer > .sprite,
.wrap img.sprite {
    position: absolute;        /* every sprite can be placed with top/right/etc. */
    display: block;            /* remove inline gaps */
    pointer-events: none;      /* decorative; no mouse events */
    user-select: none;         /* can’t select the image like text */
    -webkit-user-drag: none;   /* prevents drag ghost in WebKit browsers */
}



@media (width >  980px) {
    .logo {
        position: sticky;
        top: .5rem
    }
}

/* clouds */
.clouds {
    z-index: var(--z-clouds);  /* place behind most foreground items */
}

/* mountains */
.mountains {
    z-index: var(--z-mountains);
}

/* ripples */
.ripples {
    z-index: var(--z-ripples);
}

/* sunlight */
.sunlight {
    z-index: var(--z-sunlight);
}

/* surface water */
.surface-water {
    z-index: var(--z-surface-water);
}

/* gradient background */
.gradient-bg {
    z-index: var(--z-gradient-bg);
}

/* gradient background 2 */
.gradient-bg-2 {
    z-index: var(--z-gradient-bg-2);
}

/* orcas over */
.orcas-over {
    z-index: var(--z-orcas-over);
}

/* orcas under */
.orcas-under {
    z-index: var(--z-orcas-under);
}

/* floe */
.floe {
    z-index: var(--z-floe);
}

.seal-adults {
    z-index: var(--z-seal-adults);
}

.seal-baby {
    z-index: var(--z-seal-baby);
}

.clouds img {
    inset: auto;               /* clear previous inset so we can set only top/left */
    top: 0;                    /* pin top edge */
    left: 0;                   /* pin left edge */
    width: 100%;               /* stretch clouds art across the viewport width */
    height: auto;
}

/* Navigation */

.nav{
    position: fixed;
    z-index: 9999;
    width: 100%;
  }

  /* Hide mobile-only controls by default (desktop & tablet) */
  .nav-toggle,
  .nav-backdrop { display: none; }

  .nav-wrapper {
    background: rgba(255,255,255,0.5);
    padding: 10px 18px;
    border-radius: 1000px;
    font-family: "brother-1816";
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: 150%;
    border-radius: 1000px;
    border: 1px solid #DDE6EB;
    -webkit-backdrop-filter: blur(1px);
    backdrop-filter: blur(1px);
    display: flex;
    flex-direction: row;
    margin: 1% auto 0 auto;
    padding: 1% 2%;
    width: 90%; 
        justify-content: center;
        column-gap: 24px; /* stable desktop gap */
  }

    .nav-item {
    flex: 0 1 8%;
    text-align: center;
    position: relative;
    text-decoration: none;
        color: #0b3039; /* explicit base color to enable smooth transition */
    cursor: pointer;
        transition: font-weight 0.2s ease, color 0.4s ease;
}
    .nav-item .label {
        display: inline-block;
        position: relative;
    }

/* Underline indicator */
/* Underline indicator (exact word width, centered) */
.nav-item .label::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -4px; /* closer to text */
    transform: translateX(-50%) scaleX(0);
    width: 100%;
    height: 2px; /* thinner underline */
    background: #0b3039; /* base underline color */
    border-radius: 2px;
    transition: transform 0.3s ease, background-color 0.4s ease;
    transform-origin: center;
}

/* Tablet/Small desktop spacing (exclude mobile) */
@media (max-width: 1024px) and (min-width: 481px) {
    .nav-wrapper {
        width: 94%;
        padding: 8px 14px;
        column-gap: 24px; /* match desktop gap */
        justify-content: center; /* same alignment as desktop */
    }
    .nav-item {
        flex: 0 1 auto;
    }
}

@media (max-width: 768px) and (min-width: 481px) {
    .nav-wrapper {
        font-size: 15px;
        column-gap: 24px; /* match desktop gap */
        width: 96%;
        justify-content: center; /* same alignment as desktop */
    }
}

/* Active state */
.nav-item.active,
.nav-item[aria-current="true"] {
  font-weight: 700;
}

.nav-item.active .label::after,
.nav-item[aria-current="true"] .label::after {
    transform: translateX(-50%) scaleX(1);
}

/* Hover state */
.nav-item:hover {
  font-weight: 600;
}

.nav-item:hover .label::after {
    transform: translateX(-50%) scaleX(0.5);
  opacity: 0.5;
}

.nav-item.active:hover .label::after,
.nav-item[aria-current="true"]:hover .label::after {
    transform: translateX(-50%) scaleX(1);
  opacity: 1;
}

  /* Invert mode: when nav sits over dark background */
  .nav.invert .nav-item,
  .nav-wrapper.invert .nav-item { color: #ffffff; }
    .nav.invert .nav-item .label::after,
    .nav-wrapper.invert .nav-item .label::after { background: #ffffff; }


/* about page clouds sprite - responsive full width */
.about-clouds {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;               /* full width like landing page */
    height: auto;              /* maintain aspect ratio */
    aspect-ratio: 1440/389.5;  /* maintains proportion */
    background: url("assets_about/clouds 2.png") transparent 50% / cover no-repeat;
}

/* about page mountains sprite - responsive full width */
.about-mountains {
    position: absolute;
    top: var(--about-mountain-top);                 /* position below clouds using viewport height */
    left: 0;
    width: 100%;               /* full width like landing page */
    height: auto;              /* maintain aspect ratio */
    aspect-ratio: 144/31;      /* simplified ratio */
    background: url("assets_about/mountains 1.png") transparent 50% / cover no-repeat;
}
/* about page floe sprite - responsive */
.about-floe {
    position: absolute;
    right: 0;
    top: 22%;                 /* position using viewport height */
    width: clamp(200px, 44vw, 750px);               /* responsive width using viewport width */
    height: auto;              /* maintain aspect ratio */
    aspect-ratio: 671/600;
    background: url("assets_about/floe 1.png") transparent center / cover no-repeat;
    animation: floatY 4.2s ease-in-out infinite; /* bobbing motion */
}
/* about page ripples sprite - responsive full width */
.about-ripples {
    position: absolute;
    top: calc(var(--about-mountain-top) + var(--about-mountain-height)); /* positioned right under mountains */
    right: 0;
    width: 81.5%;               /* full width like landing page */
    height: auto;              /* maintain aspect ratio */
    aspect-ratio: 1263.50/367.50;
    background: url("assets_about/ripples 1.png") center / cover no-repeat;
}

/* about page sunlight sprite - responsive full width */
.about-sunlight {
    top: calc(var(--about-mountain-top) + var(--about-mountain-height) - var(--about-horizon-overlap) + 50vh); /* surface-water position + offset */
    right: 0;
    width: 57%;               /* full width like landing page */
    height: auto;              /* maintain aspect ratio */
    aspect-ratio: 894.79/2386.10;
    background: url("assets_about/sunlight.png") center / cover no-repeat;
    filter: grayscale(40%) brightness(120%) contrast(120%) saturate(100%) opacity(0.8);
    opacity: 1;
    mix-blend-mode: plus-lighter;
    transform: translateX(-50%) rotate(7.721deg);
}

/* about page surface water sprite - responsive full width, hugs mountains */
.about-surface-water {
    position: absolute;
    top: calc(var(--about-mountain-top) + var(--about-mountain-height) - var(--about-horizon-overlap));
    right: 0;
    width: 100%;               /* full width like landing page */
    height: auto;              /* maintain aspect ratio */
    aspect-ratio: 1440/2217;
    background: url("assets_about/surface water.png") center / cover no-repeat;
}

/* about page gradient background - right under surface water */
.about-gradient-bg {
    top: calc(var(--about-mountain-top) + var(--about-mountain-height) - var(--about-horizon-overlap) + 86vw * 2217 / 1440); /* start right after surface water ends */
    left: 0;
    width: 100%;                /* full width like other assets */
    height: calc(2067.172 / 1440 * 100vw); /* responsive height */
    flex-shrink: 0;
    background: linear-gradient(180deg, #3D424E 0%, #19232F 100%);
}


/* about page orcas under sprite - positioned where gradient bg ends */
.about-orcas-under {
    position: absolute;
    top: calc(var(--about-mountain-top) + var(--about-mountain-height) - var(--about-horizon-overlap) + 72vw * 2217 / 1440 + 100vw * 2067.172 / 1440); /* surface water position + surface water height + gradient bg height */
    left: 0;
    width: 100%;                /* full width like other assets */
    height: auto;    
    flex-shrink: 0;
    aspect-ratio: 390/187;           /* maintain aspect ratio */
    background: url("assets_about/orcas under.png") center / cover no-repeat;
}

/* about page orcas over sprite - positioned where surface water ends */
.about-orcas-over {
    top: calc(var(--about-mountain-top) + var(--about-mountain-height) - var(--about-horizon-overlap) + 70vw * 2217 / 1440 - 10vh); /* surface water position + surface water height - slight overlap */
    left: 0;
    width: 100vw;               /* responsive full width (1442px at 1440px viewport) */
    height: auto;               /* maintain aspect ratio */
    flex-shrink: 0;
    aspect-ratio: 721/355;
    background: url("assets_about/orcas over.png") center / cover no-repeat;
}

.gradient-bg-2.about-gradient-bg-2 {
    top: calc(var(--about-mountain-top) + var(--about-mountain-height) - var(--about-horizon-overlap) + 86vw * 2217 / 1440 + 100vw * 2067.172 / 1440); /* surface water position + surface water height + first gradient height */
    left: 0;
    width: 100%;
    height: calc(7739 / 1440 * 100vw); /* increased responsive height to contain winners section */
    flex-shrink: 0;
    background: linear-gradient(180deg, #42a1eb 0%, #13253C 92%); 
}

/* Color block on left 50% - positioned right under gradient bg, on top of gradient bg 2 */
.color-block-left {
    z-index: var(--z-color-block); /* below orcas-under (5.62) and above gradient-bg-2 (5.615) */
}

.about-color-block-left {
    position: absolute;
    top: calc(var(--about-mountain-top) + var(--about-mountain-height) - var(--about-horizon-overlap) + 86vw * 2217 / 1440 + 100vw * 2067.172 / 1440); /* right under about-gradient-bg */
    left: 0;
    width: 49%;                 /* left 50% of screen */
    height: clamp(30px, 4vw, 50px);               /* small height */
    background: #19232F;
}

/* Winners section title - positioned under orcas under */
section[class="2024-winners"] .winners-section {
    position: absolute;
    top: calc(var(--about-mountain-top) + var(--about-mountain-height) - var(--about-horizon-overlap) + 75vw * 2217 / 1440 + 100vw * 2067.172 / 1440 + 100vw * 187 / 390 + 25vh); /* surface water + surface water height + gradient bg height + orcas under height + spacing */
    left: 50%;
    transform: translateX(-50%);
    z-index: var(--z-intro);
    color: var(--Text-Text-Primary, #F2F2F4);
    text-align: left;
    width: clamp(350px, 90vw, 900px);
    padding: 0 var(--spacing-md);
}

/* Winner container - positioned relative to winners-section */
section[class="2024-winners"] .winners-section .winner {
    position: relative;
    width: 100%;
    margin-top: var(--spacing-md);
    margin-bottom: 0;
    text-align: left;
}

/* Add gap between h1 and first winner */
section[class="2024-winners"] .winners-section .winner:first-of-type {
    margin-top: clamp(3rem, 5vw, 4.25rem);
}

/* Winner line SVG */
section[class="2024-winners"] .winner-line {
    width: 100%;
    height: auto;
    display: block;
    margin: var(--spacing-md) 0;
}

/* Winner content */
section[class="2024-winners"] .winner h2 {
    margin: var(--spacing-sm) 0 var(--spacing-sm) 0;
}

section[class="2024-winners"] .winner p {
    margin: 0 0 var(--spacing-sm) 0;
}

section[class="2024-winners"] .winner p:last-of-type {
    margin-bottom: 0;
}

/* Winner images container */
section[class="2024-winners"] .winner-images {
    display: flex;
    justify-content: space-between; 
    gap: clamp(12px, 2vw, 24px); 
    margin-top: var(--spacing-sm);
    margin-bottom: clamp(5rem, 10vw, 8.5rem);
    width: 100%; 
}

/* Winner image wrapper */
section[class="2024-winners"] .winner-image-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex: 1; /* equal space for each wrapper */
}

/* Winner images */
section[class="2024-winners"] .winner-image-left,
section[class="2024-winners"] .winner-image-right {
    width: 100%;
    height: auto; 
    aspect-ratio: 346/275;
    border-radius: clamp(6px, 1vw, 10px);
    object-fit: contain; 
}

/* Full width image (spans both image slots) */
section[class="2024-winners"] .winner-image-full {
    width: 100%;
    max-width: 100%;
}

section[class="2024-winners"] .winner-image-full img {
    width: 100%;
    height: auto;
    aspect-ratio: auto;
    border-radius: clamp(6px, 1vw, 10px);
    object-fit: contain; /* Use contain instead of cover to show full image */
}

/* Winner image captions */
section[class="2024-winners"] .winner-image-wrapper .caption {
    color: var(--Text-Text-Primary, #F2F2F4);
}

/* ========== FOOTER ========== */
.footer {
  position: relative;
  background: #a5c0c3;
  color: #0b3039;
  padding: 140px 0 60px;
  /* more room for art + panel */
  overflow: hidden;
}

.footer-inner {
  position: relative;
  z-index: 2;
  /* above art */
  max-width: 100%;
  margin: 0 auto;
  padding: 0 40px;
}

/* top sand + fish art */
.footer-art {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.footer-sand {
  position: absolute;
  top: -20vh;
  /* slightly overlapping from above */
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  z-index: 0;
}

.footer-fish {
  position: absolute;
  top: 0vh;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
}

/* ---- Sponsors ---- */
.sponsors {
  position: relative;
  z-index: 2;
  max-width: 100%;
}

.sponsors-panel {
  margin: 650px 0 100px;
  border-radius: 24px;
  padding: 18px 10px;
  overflow: hidden;
  width: 100%;
}

/* Flex-based sponsor layout */
.sponsors-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  column-gap: 40px;
  /* space between cards horizontally */
  row-gap: 35px;
  /* space between rows */
  margin: 0 auto;
  max-width: 80vw;
}

/* Cards: same height, width based on logo size */
.sponsor-card {
  height: 170px;
  /* all cards same height */
  padding: 3px 10px;
  /* breathing room around logos */

  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);

  display: flex;
  align-items: center;
  justify-content: center;

  flex: 0 0 auto;
  /* <- width = intrinsic, do NOT stretch */
  width: auto;
}

.sponsor-card img {
  height: 90%;
  /* fills most of the card height */
  width: auto;
  /* keep aspect ratio */
  max-width: 100%;
  /* don’t overflow card */
  object-fit: contain;
  display: block;
}

/* Tablet: tighter width so it tends to wrap into ~2 per row */
@media (max-width: 1024px) {
  .sponsors-grid {
    max-width: 80vw;
    /* usually gives 2 cards per row */
  }

  .sponsors-panel {
    margin: 300px 0 100px;
  }

  .sponsor-card {
    height: 140px;
    padding: 2px 4px;
  }
}

/* Mobile */
@media (max-width: 480px) {
  .sponsors-grid {
    column-gap: 15px;
    /* space between cards horizontally */
    row-gap: 15px;
    /* space between rows */
    max-width: 80vw;
  }

  .sponsor-card {
    height: 65px;
    padding: 2px 4px;
    border-radius: 7px;
  }
}


/* ---- Divider line ---- */
.footer-divider {
  margin: 32px 70px 24px;
  border: 0;
  border-top: 1px solid rgba(11, 48, 57, 0.3);
}

/* ---- Bottom rows ---- */
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-left: 70px;
  margin-right: 70px;
  flex-wrap: wrap;
}

.footer-left .made {
  margin: 0;
  font-size: 14px;
  margin-top: 10px;
}

/* right side: social icons row + copyright row */
.footer-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  text-align: right;
  margin-left: auto;
}

.footer .socials {
  display: flex;
  gap: 12px;
  margin: 0;
}

.footer .socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  padding: 6px 10px;
}

.footer .copyright {
  font-size: 12px;
  font-weight: 500;
  margin: 0 12px 0 0;
}

/* accessibility helper for hidden headings */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* responsive tweaks */
@media (min-width: 769px) and (max-width: 1024px) {
    .footer {
        top: 0vh;
    }
}

@media (max-width: 768px) {
    .footer {
        top: 0vh;
    }

    .sponsors-panel {
        margin: 70px 0 32px;
    }

    .footer-inner {
        width: 90vw;
        padding-left: 5vw;
        padding-right: 5vw;
        text-align: left;
    }

    .footer-divider {
        margin: 24px 0 18px;
        /* remove the 70px side margins */
    }

    .footer-bottom {
        margin-left: 0;
        margin-right: 0;
        width: 100%;
    }

    /* make "footer-left" behave like a real full-width block */
    .footer-left {
        width: 100%;
        flex: 0 0 100%;
        max-width: 100%;
    }

    /* socials: smaller + less padding so they feel proportional */
    .footer .socials {
        gap: 8px;
    }

    .footer .socials a {
        padding: 4px;
        /* was 6px 10px */
    }

    .footer .socials img {
        width: 22px;
        height: 22px;
        display: block;
    }
}

.about-seal-adults {
    position: absolute;                     /* ensures top/left work */
    top: calc(var(--about-mountain-top) + var(--about-mountain-height) - var(--about-horizon-overlap) + 60vw * 1.0);  /* surface-water position + offset */
    left: clamp(10%, 18%, 18%);
    transform: translateX(-20%);
    width: clamp(200px, calc(486 / 1440 * 100vw), 486px);        /* responsive width */
    height: auto;                           /* maintain aspect ratio */
    flex-shrink: 0;                         /* prevents resizing in flex containers */
    aspect-ratio: 9 / 4;                    /* keeps correct ratio if resized later */
    background: url("assets_about/seal adult.png") center / cover no-repeat;
}

.about-seal-baby {
    position: absolute;                     /* ensures top/left work */
    top: calc(var(--about-mountain-top) + var(--about-mountain-height) - var(--about-horizon-overlap) + 63vw * 1.2);  /* surface-water position + larger offset */
    left: clamp(8%, 13%, 13%);
    transform: translateX(-20%);
    width: clamp(120px, calc(231 / 1440 * 100vw), 231px);        /* responsive width */
    height: auto;                           /* maintain aspect ratio */
    flex-shrink: 0;                         /* prevents resizing in flex containers */
    aspect-ratio: 231/116;                  /* keeps correct ratio if resized later */
    background: url("assets_about/seal baby.png") center / cover no-repeat;
}


/* ---------- Motion (respect reduced motion) ---------- */
@keyframes floatY {
    0%   { transform: translateY(0) }      /* start neutral */
    50%  { transform: translateY(-6px) }   /* bob up slightly */
    100% { transform: translateY(0) }      /* return */
}

@keyframes driftX {
    0%   { transform: translateX(0) }
    50%  { transform: translateX(10px) }   /* gentle horizontal drift */
    100% { transform: translateX(0) }
}

@keyframes swim {
    0%   { transform: translateX(0) }
    50%  { transform: translateX(12px) translateY(-2px) } /* slight arc */
    100% { transform: translateX(0) }
}

.birds .left,
.birds .right {
    animation: driftX 16s ease-in-out infinite; /* slow lateral drift */
}

.mola .fish {
    animation: floatY 4.2s ease-in-out infinite; /* bobbing motion */
    top: -10%;             /* vertical position within the section (now % based) */
    right: 8vw;           /* stick to the right */
    left: auto;           /* make sure nothing is stretching it */
    width: 30vw;          /* size */
    min-width: 220px;
    position: absolute;
}

.decor-fish .blue,
.decor-fish .clown,
.decor-fish .trigger,
.shark .leo  {
    animation: swim 5.5s ease-in-out infinite;   /* small swimming movement */
}

@media (prefers-reduced-motion:reduce) {
    /* If the user prefers less motion, disable all animations */
    .birds .left,
    .birds .right,
    .mola .fish,
    .decor-fish .blue,
    .decor-fish .clown,
    .decor-fish .trigger,
    .about-floe {
        animation: none !important;
    }
}

/* ---------- Desktop lock & safety ---------- */
@media (min-width:1200px) {
    body {
        font-size: 17px;       /* bump the base font size on larger screens */
    }
}

@media (max-width: 1024px) {
    /* covers 744px tablet and all iPads */
    .about-floe {
        width: 70vw;               /* bigger on tablet */
        top: 34vh;                 /* move slightly down */
    }
    .about-ripples {
        width: 130%;               /* full width like landing page */
        top: 57%;                  /* move slightly down */
    }
    .about-orcas-over {
        top: 134vh;                  /* move slightly down */
    }
}

/* Mobile responsive styles */
@media (max-width: 600px) {
    :root {
        /* Adjust typography for mobile */
        --h1-size: clamp(2rem, 8vw, 2.5rem);
        --h2-size: clamp(1.5rem, 6vw, 2rem);
        --p-size: clamp(0.95rem, 4vw, 1.15rem);
        --caption-size: clamp(0.65rem, 3vw, 0.8rem);
        --footer-caption-size: clamp(0.65rem, 2vw, 0.75rem);
        
        /* Adjust spacing for mobile */
        --spacing-sm: clamp(0.75rem, 3vw, 1rem);
        --spacing-md: clamp(1rem, 4vw, 1.5rem);
        --spacing-lg: clamp(1.5rem, 6vw, 2.5rem);
        --spacing-xl: clamp(2rem, 8vw, 3.5rem);
        /* Mobile nav alignment control */
        --nav-mobile-padding-left: 24px; /* base left for button */
        --nav-x-offset: 2px;            /* nudge X bars right to match PNG content */
        --nav-text-offset: 7px;         /* fine-tune overlay text to align with X */
    }

    /* mobile menu rules */
    .nav-wrapper {
        position: fixed;
        inset: 0;
        z-index: 10000;
        margin: 0;                 /* remove inherited top margin to avoid sliver */
        width: 100vw;
        height: 100vh !important;
        overflow: auto;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        gap: 32px;
        padding: 64px 32px;
        padding-left: calc(var(--nav-mobile-padding-left) + var(--nav-x-offset) + var(--nav-text-offset)); /* align text to X visible left edge */

        background: #cfe8ec;
        border: 0;
        border-radius: 0;
        box-shadow: none;

        transform: translateY(-104%);
        transition: transform .28s cubic-bezier(.2,.9,.2,1);
    }
    
    .nav-wrapper .nav-item {
        display: block;
        text-align: left;
        padding: 0;
        font-size: clamp(32px, 7.5vw, 52px);
        line-height: 1.1;
        transition: color 0.35s ease;
    }

    /* underline */
    .nav-wrapper .nav-item .label::after {
        content: "";
        position: absolute;
        bottom: -4px;                 /* closer to text, as before */
        left: 50%;
        transform: translateX(-50%) scaleX(0);
        width: 100%;
        height: 2px;                  /* thinner underline */
        background: #0b3039;
        border-radius: 2px;           /* rounded ends */
        transition: transform 0.3s ease, background-color 0.35s ease;
        transform-origin: center;
    }
    .nav-wrapper .nav-item.active .label::after,
    .nav-wrapper .nav-item[aria-current="true"] .label::after {
        transform: translateX(-50%) scaleX(1);
    }
    
    /* Hover animation to match desktop on mobile */
    .nav-wrapper .nav-item:hover .label::after {
        transform: translateX(-50%) scaleX(0.5);
        opacity: 0.6;
    }
    
    .nav-toggle {
        position: fixed;
        top: 12px;
        left: var(--nav-mobile-padding-left);         
        z-index: 10001;
        display: inline-flex;
        align-items: center;
        justify-content: flex-start; /* keep hamburger and X at same left edge */
        width: 40px;
        height: 40px;
        border: 0;
        border-radius: 10px;
        background: transparent;       
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
        box-shadow: none;
    }
    .nav-toggle .hamburger-icon { width: 22px; height: 22px; display: block; margin-left: var(--nav-x-offset); }
    .nav-toggle .hamburger { display: none; width: 22px; height: 22px; position: relative; margin-left: var(--nav-x-offset); }
    .nav-toggle .hamburger span { display: block; width: 22px; height: 2px; background: #0b3039; border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
    .nav-toggle .hamburger span + span { margin-top: 6px; }


    /* Backdrop */
    .nav-backdrop {
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.24);
        z-index: 9999;
        display: block;
        opacity: 0;
        transition: opacity .2s ease;
    }

    /* Open state: show panel and backdrop */
    .nav.open .nav-wrapper {
        transform: translateY(0);
    }
    .nav.open .nav-backdrop {
        opacity: 1;
    }

    /* Keep nav colors dark on mobile overlay (disable white invert) */
    .nav.open .nav-item,
    .nav.open.invert .nav-item { color: #0b3039; }
    .nav.open .nav-item .label::after,
    .nav.open.invert .nav-item .label::after { background: #0b3039; }
    /* Align X with menu text using CSS only */
    .nav.open .nav-toggle { left: var(--nav-mobile-padding-left); justify-content: flex-start; }
    /* When open: swap to animated bars (forms an X), hide image icon */
    .nav.open .nav-toggle .hamburger-icon { display: none; }
    .nav.open .nav-toggle .hamburger { display: inline-block; }
    /* Invert support: white bars on dark backgrounds */
    .nav.invert .nav-toggle .hamburger span { background: #ffffff; }
    /* But keep bars dark when the mobile overlay is open */
    .nav.open .nav-toggle .hamburger span,
    .nav.open.invert .nav-toggle .hamburger span { background: #0b3039; }

    /* Hamburger animation */
    .nav.open .hamburger span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .nav.open .hamburger span:nth-child(2) { opacity: 0; transform: scaleX(0); }
    .nav.open .hamburger span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
    
    /* Hero content for mobile */
    header.hero.about .hero-content {
        top: 15vh;
        left: 5vw;
        right: 5vw;
        width: auto;
        padding: 0 1rem;
    }
    
    /* WINFO content for mobile */
    section.committee-description .winfo-content {
        top: calc(var(--about-mountain-top) + var(--about-mountain-height) - var(--about-horizon-overlap) + 148vw * 1.2);
        left: 5vw;
        right: 5vw;
        width: auto;
        padding: 0 1rem;
    }
    
    /* Floe repositioning for mobile */
    .about-floe {
        width: 73vw;
        top: 36.5vh;
        right: -10vw;
    }
    
    /* Ripples for mobile */
    .about-ripples {
        top: calc(var(--about-mountain-top) + var(--about-mountain-height) + 2vh);
        width: 167%;
        right: -25%;
    }
    
    /* Surface water height for mobile - extends to where gradient-bg starts */
    .about-surface-water {
        height: calc(100vw * 3.5);
        background-size: 100% 100%;
        background-position: top center;
    }
    
    /* Seals repositioning for mobile */
    .about-seal-adults {
        top: calc(var(--about-mountain-top) + var(--about-mountain-height) - var(--about-horizon-overlap) + 60vw * 1.4);
        left: 14%;
        transform: translateX(0);
        width: clamp(150px, 57vw, 300px);
    }
    
    .about-seal-baby {
        top: calc(var(--about-mountain-top) + var(--about-mountain-height) - var(--about-horizon-overlap) + 64vw * 1.8);
        left: 9%;
        transform: translateX(0);
        width: clamp(70px, 30vw, 180px);
    }
    
    /* Sunlight for mobile */
    .about-sunlight {
        top: calc(var(--about-mountain-top) + var(--about-mountain-height) - var(--about-horizon-overlap) + 50vw);
        width: 78%;
        right: -30%;
        transform: translateX(-50%) rotate(1.721deg);
    }
    
    /* Orcas positioning for mobile */
    .about-orcas-over {
        top: calc(var(--about-mountain-top) + var(--about-mountain-height) - var(--about-horizon-overlap) + 128vw * 2.5);
        width: 100vw;
    }
    
    /* Gradients for mobile */
    .about-gradient-bg {
        top: calc(var(--about-mountain-top) + var(--about-mountain-height) - var(--about-horizon-overlap) + 100vw * 3.5);
        height: calc(133vw * 5.2 - 100vw * 3.3);
    }
    
    .about-orcas-under {
        top: calc(var(--about-mountain-top) + var(--about-mountain-height) - var(--about-horizon-overlap) + 133vw * 5.2);
    }
    
    .gradient-bg-2.about-gradient-bg-2 {
        top: calc(var(--about-mountain-top) + var(--about-mountain-height) - var(--about-horizon-overlap) + 100vw * 6.1);
        height: calc(6700/ 390 * 100vw);
    }
    
    .about-color-block-left {
        top: calc(var(--about-mountain-top) + var(--about-mountain-height) - var(--about-horizon-overlap) + 129.3vw * 5.5);
        height: clamp(20px, 5vw, 30px);
    }
    
    /* Team content for mobile */
    section.committee-members .team-content {
        top: calc(var(--about-mountain-top) + var(--about-mountain-height) - var(--about-horizon-overlap) + 100vw * 3.9);
        width: 90vw;
        max-width: 500px;
        left: 50%;
        transform: translateX(-50%);
        padding: 0 1rem;
    }
    
    /* Committee grid for mobile */
    section.committee-members .committee-grid {
        top: calc(var(--about-mountain-top) + var(--about-mountain-height) - var(--about-horizon-overlap) + 97vw * 4.7);
        width: fit-content;
        max-width: 90vw;
        left: 50%;
        transform: translateX(-50%);
        display: grid;
        grid-template-columns: repeat(2, 154px);
        gap: var(--spacing-md);
        padding: 0 var(--spacing-sm);
        justify-content: center;
    }
    

    section.committee-members .grid-row {
        display: contents;
    }
    
    /* Last member (13th) spans both columns and centers */
    section.committee-members .committee-grid .member:nth-child(13) {
        grid-column: 1 / 3;
        justify-self: center;
    }
    
    /* Member width for mobile */
    section.committee-members .member {
        width: 154px;
    }
    
    /* Member photos smaller on mobile */
    section.committee-members .member .photo {
        width: 98px;             /* fixed size for mobile */
        height: 98px;
    }
    
    /* Winners section for mobile */
    section[class="2024-winners"] .winners-section {
        top: calc(var(--about-mountain-top) + var(--about-mountain-height) - var(--about-horizon-overlap) + 115vw * 6.7);
        width: 90vw;
        padding: 0 1rem;
    }
    
    section[class="2024-winners"] .winners-section .winner:first-of-type {
        margin-top: clamp(2rem, 8vw, 3rem);
    }
    
    /* Winner images stack vertically on mobile */
    section[class="2024-winners"] .winner-images {
        flex-direction: column;
        gap: var(--spacing-sm);
        margin-bottom: clamp(3rem, 10vw, 5rem);
    }
    
    section[class="2024-winners"] .winner-image-left,
    section[class="2024-winners"] .winner-image-right {
        width: 100%;
        height: auto;
        min-height: 200px;
    }
    
    section[class="2024-winners"] .winner-image-full {
        max-width: 100%;
    }
    
    section[class="2024-winners"] .winner-image-full img {
        width: 100%;
        height: auto;
        min-height: 200px;
    }
}

/* Tablet responsive styles */
@media (min-width: 601px) and (max-width: 1024px) {
    :root {
        /* Adjust typography for tablets */
        --h1-size: clamp(2.25rem, 5vw, 2.75rem);
        --h2-size: clamp(1.75rem, 4vw, 2.25rem);
        --caption-size: clamp(0.7rem, 2vw, 0.85rem);
        --footer-caption-size: clamp(0.7rem, 2vw, 0.85rem);
        
        /* Adjust spacing for tablets */
        --spacing-sm: clamp(0.875rem, 2.5vw, 1.25rem);
        --spacing-md: clamp(1rem, 3vw, 1.75rem);
        --spacing-lg: clamp(1.75rem, 5vw, 3rem);
        --spacing-xl: clamp(2.5rem, 7vw, 4.5rem);
    }
    
    /* Hero content for tablets */
    header.hero.about .hero-content {
        top: 15vh;
        left: clamp(8vw, 12vw, 15vw);
        width: clamp(220px, 50vw, 600px);
    }

    /* Ripples for tablet */
    .about-ripples {
        top: calc(var(--about-mountain-top) + var(--about-mountain-height) + 2vh);
        width: 132.5%;
        right: 0%;
    }
    /* Surface water height for tablet - extends properly */
    .about-surface-water {
        height: calc(1995 / 768 * 100vw);
        background-size: 100% 100%;
        background-position: top center;
    }

    /* Sunlight for tablet */
    .about-sunlight {
        top: calc(var(--about-mountain-top) + var(--about-mountain-height) - var(--about-horizon-overlap) + 25vw);
        width: 78%;
        right: -20%;
        transform: translateX(-50%) rotate(1.721deg);
    }

    /* Seals repositioning for tablet */
    .about-seal-adults {
        top: calc(var(--about-mountain-top) + var(--about-mountain-height) - var(--about-horizon-overlap) + 60vw * 1.2);
        left: 14%;
        transform: translateX(0);
        width: clamp(150px, 71vw, 500px);
    }
    
    .about-seal-baby {
        top: calc(var(--about-mountain-top) + var(--about-mountain-height) - var(--about-horizon-overlap) + 64vw * 1.7);
        left: 14%;
        transform: translateX(0);
        width: clamp(70px, 30vw, 180px);
    }

    /* Orcas positioning for tablet - between surface water and gradient */
    .about-orcas-over {
        top: calc(var(--about-mountain-top) + var(--about-mountain-height) - var(--about-horizon-overlap) + 2050 / 768 * 100vw * 0.85);
        width: 100vw;
    }

    /* Gradient background for tablet - positioned right after surface water */
    .about-gradient-bg {
        top: calc(var(--about-mountain-top) + var(--about-mountain-height) - var(--about-horizon-overlap) + 1995 / 768 * 100vw);
        height: calc(100vw * 2.2);
    }

    /* Orcas under for tablet - positioned at end of gradient bg */
    .about-orcas-under {
        top: calc(var(--about-mountain-top) + var(--about-mountain-height) - var(--about-horizon-overlap) + 100vw * 4.58);
    }

    /* Gradient background 2 for tablet - positioned after gradient-bg ends */
    .gradient-bg-2.about-gradient-bg-2 {
        top: calc(var(--about-mountain-top) + var(--about-mountain-height) - var(--about-horizon-overlap) + 1995 / 768 * 100vw + 100vw * 2.2);
        height: calc(8500 / 768 * 100vw);
    }

    /* WINFO content for tablets */
    section.committee-description .winfo-content {
        top: calc(var(--about-mountain-top) + var(--about-mountain-height) - var(--about-horizon-overlap) + 60vw * 2.5);
        left: clamp(5%, 10%, 52%);
        width: clamp(300px, 78vw, 750px);
    }

    /* Winners section for tablet - positioned after orcas under */
    section[class="2024-winners"] .winners-section {
        top: calc(var(--about-mountain-top) + var(--about-mountain-height) - var(--about-horizon-overlap) + 100vw * 5.25);
        width: clamp(350px, 80vw, 900px);
    }

    /* Color block for tablet - positioned at end of gradient-bg-2 */
    .about-color-block-left {
        top: calc(var(--about-mountain-top) + var(--about-mountain-height) - var(--about-horizon-overlap) + 100vw * 4.79);
    }
    
    /* Team content for tablets */
    section.committee-members .team-content {
        top: calc(var(--about-mountain-top) + var(--about-mountain-height) - var(--about-horizon-overlap) + 100vw * 2.9);
        width: 77vw;
    }
    
    /* Committee grid for tablets */
    section.committee-members .committee-grid {
        top: calc(var(--about-mountain-top) + var(--about-mountain-height) - var(--about-horizon-overlap) + 100vw * 3.3);
        width: fit-content;
        max-width: 85vw;
        display: grid;
        grid-template-columns: repeat(3, 188px);
        column-gap: var(--spacing-md);
        row-gap: var(--spacing-lg);
        justify-content: center;
    }
    

    section.committee-members .grid-row {
        display: contents;
    }
    
    /* Member width for tablet - same as desktop */
    section.committee-members .member {
        width: 188px;
    }
    
    /* Member photos for tablet - same as desktop */
    section.committee-members .member .photo {
        width: 126px;            /* fixed size for tablet */
        height: 126px;
    }
    
    /* Winner images stack vertically on tablet */
    section[class="2024-winners"] .winner-images {
        flex-direction: column; 
        gap: var(--spacing-sm);
        margin-bottom: clamp(7rem, 18vw, 11rem);
        width: 100%;
    }
    
    section[class="2024-winners"] .winner-image-wrapper {
        width: 100%; 
    }
    
    section[class="2024-winners"] .winner-image-left,
    section[class="2024-winners"] .winner-image-right {
        width: 100%;
        height: auto;
        aspect-ratio: 346/275;
        object-fit: contain; /* show full image without cropping */
    }
    
    section[class="2024-winners"] .winner-image-full {
        max-width: 100%;
    }
    
    section[class="2024-winners"] .winner-image-full img {
        width: 100%;
        height: auto;
        object-fit: contain;
    }

}

@media (min-width: 1400px){ :root{ --theme-offset: 50vh; } }
@media (max-width: 1100px){ :root{ --theme-offset: 30vh; } }
/* Force the 1394×727 look at >=1400px */
@media (min-width: 1400px){
  :root { --theme-offset: 20vh; }
  .rays .beams {
    top: -70%;
    right: 15%;
    background-size: 100% 100%;
    /* match sub-1400px look: grayscale-tinted, no additive wash */
    filter: grayscale(90%) brightness(400%) contrast(100%) saturate(100%);
    opacity: 1;
    mix-blend-mode: normal;
  }
}