/* ---------- 1. Fonts + tokens ---------- */

/* SuperMario256 is the font the INK logo uses, so headings and buttons match it */
@font-face {
    font-family: "SuperMario256";
    src: url("Assets/Fonts/SuperMario256.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

:root {
    /* The page gets deeper (darker) the further you scroll:
       shallow -> sea-1 -> sea-2 -> ... -> abyss */
    --ink: #050b1f;          /* chunky outline, same as the INK logo */
    --ink-soft: #3b4a6b;
    --white: #fff;
    --foam: #e8f7ff;
    --shallow: #8fe3ff;
    --sea-1: #2ea7ee;
    --sea-2: #1677dd;
    --sea-3: #0f5bbd;
    --sea-4: #0b4192;
    --sea-5: #082d69;
    --abyss: #051a40;
    --text-on-sea: #d6ecff;

    /* squid colors */
    --accent: #b98ee0;       /* purple squid */
    --accent-dark: #8d5fbd;
    --pink: #e7bad8;
    --yellow: #f0dd85;
    --yellow-dark: #c9b452;

    /* highlight color: main buttons, the "VR" in the logo, small labels above headings.
       Change these two lines to recolor all of it at once. */
    --highlight: #ffb3d1;
    --highlight-dark: #d97aa3;
    --green: #5cc23a;
    --blue: #3a7fe0;
    --red: #ff7e8e;
    --online: #4cc26b;
    --blurple: #5865f2;
    --yt-red: #ff0033;

    /* chunky outline for big headings */
    --outline: -2px -2px 0 var(--ink), 2px -2px 0 var(--ink), -2px 2px 0 var(--ink), 2px 2px 0 var(--ink),
               0 -2px 0 var(--ink), 0 2px 0 var(--ink), -2px 0 0 var(--ink), 2px 0 0 var(--ink);
    --outline-drop: var(--outline), 4px 5px 0 var(--ink);

    /* wavy divider between sections */
    --wave: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 100' preserveAspectRatio='none'%3E%3Cpath d='M0 60C220 0 420 -5 640 40S1080 110 1440 30V100H0Z'/%3E%3C/svg%3E");
    --wave-h: 90px;

    /* fonts */
    --chunky: "SuperMario256", "Arial Rounded MT Bold", sans-serif;   /* headings, buttons, nav */
    --body: "Nunito", system-ui, sans-serif;   /* everything else */

    /* shape */
    --radius: 14px;
    --radius-lg: 22px;
    --shadow-sm: 3px 3px 0 var(--ink);
    --shadow: 6px 6px 0 var(--ink);
    --shadow-lg: 8px 8px 0 var(--ink);

    /* layout */
    --header-h: 84px;
}


/* ---------- 2. Base ---------- */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-h);
    background: var(--abyss);
    overflow-x: clip;
}

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--sea-2);
    color: var(--white);
    font: 700 16px/1.5 var(--body);
}

main {
    flex: 1;
}

[hidden] {
    display: none !important;
}

img {
    max-width: 100%;
    display: block;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1,
h2,
h3 {
    font-family: var(--chunky);
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: .5px;
}

/* Big headings look like the logo: white letters, black outline */
h1,
h2 {
    color: var(--white);
    text-shadow: var(--outline-drop);
}

h2 {
    font-size: clamp(34px, 5vw, 58px);
    margin-bottom: 20px;
}

h3 {
    font-size: 23px;
    margin-bottom: 7px;
}

::selection {
    background: var(--highlight);
    color: var(--ink);
}

:focus-visible {
    outline: 3px solid var(--highlight);
    outline-offset: 3px;
    border-radius: 6px;
}

.skip-link {
    position: absolute;
    left: 16px;
    top: -60px;
    z-index: 100;
    background: var(--ink);
    color: var(--white);
    font: 400 15px var(--chunky);
    padding: 10px 14px;
    border-radius: 8px;
    text-decoration: none;
    transition: top .15s;
}

.skip-link:focus {
    top: 12px;
}

.eyebrow {
    font: 800 13px var(--body);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--highlight);
    margin: 0 0 12px;
}

.intro {
    max-width: 460px;
    font-size: 18px;
    line-height: 1.55;
    color: var(--text-on-sea);
}


/* ---------- 3. Layout helpers ---------- */

.wrap {
    position: relative;
    z-index: 1;
    width: min(1120px, calc(100% - 48px));
    margin-inline: auto;
}

/* Give a section class="wave-top" and it gets a wavy top edge in its own color */
.wave-top {
    position: relative;
}

.wave-top::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: calc(100% - 3px);
    height: var(--wave-h);
    background: inherit;
    -webkit-mask: var(--wave) center / 100% 100% no-repeat;
    mask: var(--wave) center / 100% 100% no-repeat;
    pointer-events: none;
}

.wave-top:nth-of-type(odd)::before {
    transform: scaleX(-1);
}

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 22px 40px;
    margin-bottom: 40px;
}

.section-heading h2 {
    margin-bottom: 0;
}

.section-heading .intro {
    max-width: 420px;
    margin: 0;
    font-size: 16px;
}


/* ---------- 4. Bubbles + light (decoration) ---------- */

/* script.js fills every .bubbles box with bubbles that float up */
.bubbles {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.bubble {
    position: absolute;
    bottom: -40px;
    width: var(--size);
    height: var(--size);
    border: 2px solid rgba(255, 255, 255, .55);
    border-radius: 50%;
    background: radial-gradient(circle at 32% 30%, rgba(255, 255, 255, .9) 0 14%, rgba(255, 255, 255, .15) 16% 60%, rgba(255, 255, 255, .3) 100%);
    animation: rise var(--time) linear var(--delay) infinite;
}

@keyframes rise {
    0%   { transform: translate(0, 0); opacity: 0; }
    8%   { opacity: 1; }
    25%  { transform: translate(var(--sway), -25vh); }
    50%  { transform: translate(calc(var(--sway) * -1), -50vh); }
    75%  { transform: translate(var(--sway), -75vh); }
    92%  { opacity: 1; }
    100% { transform: translate(0, -100vh); opacity: 0; }
}

/* sunlight streaming down from the surface */
.light-rays {
    position: absolute;
    inset: -10% -20% 30%;
    z-index: -1;
    background: repeating-linear-gradient(100deg,
        rgba(255, 255, 255, 0) 0 60px,
        rgba(255, 255, 255, .22) 90px 130px,
        rgba(255, 255, 255, 0) 170px 260px);
    -webkit-mask: linear-gradient(to bottom, #000 0%, transparent 100%);
    mask: linear-gradient(to bottom, #000 0%, transparent 100%);
    animation: rays 9s ease-in-out infinite alternate;
    pointer-events: none;
}

@keyframes rays {
    from { transform: translateX(-3%) skewX(-4deg); opacity: .8; }
    to   { transform: translateX(3%) skewX(4deg); opacity: 1; }
}


/* ---------- 5. Header + footer ---------- */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    height: var(--header-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding-inline: max(24px, calc((100% - 1120px) / 2));
    transition: background .25s, box-shadow .25s;
}

/* once you scroll past the top, the header gets a solid strip so it stays readable */
.site-header.is-scrolled {
    background: rgba(5, 26, 64, .88);
    box-shadow: 0 3px 0 var(--ink);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}

.logo {
    font: 400 30px var(--chunky);
    letter-spacing: 1px;
    color: var(--white);
    text-decoration: none;
    text-shadow: var(--outline), 3px 3px 0 var(--ink);
}

.logo span {
    color: var(--highlight);
}

.site-header nav {
    display: flex;
    gap: 10px;
}

.site-header nav a,
.header-cta {
    font: 400 14px var(--chunky);
    letter-spacing: .4px;
    color: var(--white);
    text-decoration: none;
    text-shadow: 2px 2px 0 var(--ink);
}

.site-header nav a {
    padding: 6px 12px;
    border: 2px solid transparent;
    border-radius: 999px;
    transition: background .15s, border-color .15s;
}

.site-header nav a:hover {
    background: var(--sea-3);
    border-color: var(--ink);
}

.header-cta {
    padding: 8px 14px;
    color: var(--ink);
    text-shadow: none;
    background: var(--highlight);
    border: 2px solid var(--ink);
    border-radius: 10px;
    box-shadow: 0 3px 0 var(--highlight-dark), 0 3px 0 2px var(--ink);
    transition: transform .12s, box-shadow .12s;
}

.header-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 0 var(--highlight-dark), 0 4px 0 2px var(--ink);
}

.header-cta:active {
    transform: translateY(2px);
    box-shadow: 0 1px 0 var(--highlight-dark), 0 1px 0 2px var(--ink);
}

/* the sea floor */
.site-footer {
    position: relative;
    background: var(--abyss);
    padding: 30px 0 30px;
}

.site-footer::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: calc(100% - 3px);
    height: var(--wave-h);
    background: var(--abyss);
    -webkit-mask: var(--wave) center / 100% 100% no-repeat;
    mask: var(--wave) center / 100% 100% no-repeat;
}

.footer-inner {
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    gap: 22px 44px;
}

.footer-brand {
    display: grid;
    gap: 6px;
}

.footer-brand p,
.footer-copy p {
    margin: 0;
    font-size: 14px;
    color: var(--text-on-sea);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
}

.footer-links a {
    font: 400 17px var(--chunky);
    color: var(--white);
    text-decoration: none;
}

.footer-links a:hover {
    color: var(--highlight);
}

.socials {
    display: flex;
    gap: 10px;
}

.socials a {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    color: var(--ink);
    background: var(--white);
    border: 2px solid var(--ink);
    border-radius: 12px;
    box-shadow: 0 3px 0 var(--accent-dark), 0 3px 0 2px var(--ink);
    transition: transform .12s, box-shadow .12s;
}

.socials a:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 0 var(--accent-dark), 0 5px 0 2px var(--ink);
}

.socials a:active {
    transform: translateY(2px);
    box-shadow: 0 1px 0 var(--accent-dark), 0 1px 0 2px var(--ink);
}

.socials svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.footer-copy {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px 24px;
    padding-top: 18px;
    border-top: 2px dashed rgba(214, 236, 255, .25);
}


/* ---------- 6. Buttons ---------- */

/* Chunky "game menu" buttons: a colored top sitting on a thicker base.
   --btn-base is the base color; each button style sets its own. */
.button {
    --btn-base: #9cc9ee;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    font: 400 16px var(--chunky);
    letter-spacing: .5px;
    color: var(--ink);
    text-decoration: none;
    background: var(--white);
    border: 2px solid var(--ink);
    border-radius: 12px;
    box-shadow: 0 5px 0 var(--btn-base), 0 5px 0 2px var(--ink);
    cursor: pointer;
    transition: transform .12s, box-shadow .12s;
}

.button:hover {
    transform: translateY(-2px);
    box-shadow: 0 7px 0 var(--btn-base), 0 7px 0 2px var(--ink);
}

.button:active {
    transform: translateY(4px);
    box-shadow: 0 1px 0 var(--btn-base), 0 1px 0 2px var(--ink);
}

.button.primary {
    --btn-base: var(--highlight-dark);
    background: var(--highlight);
}

.button.youtube {
    --btn-base: var(--accent-dark);
    background: var(--accent);
}

.button.youtube:hover svg {
    color: var(--yt-red);
}

.button.discord:hover svg {
    color: var(--blurple);
}

.button svg {
    flex: none;
    width: 22px;
    height: 22px;
    fill: currentColor;
    transition: color .15s;
}

.social-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}


/* ---------- 7. Hero (the shallows) ---------- */

.hero {
    position: relative;
    isolation: isolate;
    min-height: clamp(580px, 100svh, 980px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--header-h) 24px calc(var(--wave-h) + 70px);
    text-align: center;
    background: linear-gradient(to bottom, var(--shallow) 0%, var(--sea-1) 55%, var(--sea-2) 100%);
    overflow: hidden;
}

/* wave where the shallows meet the next section */
.hero::after {
    content: "";
    position: absolute;
    inset: auto 0 -1px;
    height: var(--wave-h);
    z-index: -1;
    background: var(--sea-2);
    -webkit-mask: var(--wave) center / 100% 100% no-repeat;
    mask: var(--wave) center / 100% 100% no-repeat;
}

.hero-title {
    margin: 0 0 10px;
    line-height: 0;
    text-shadow: none;
}

.hero-title img {
    width: min(640px, 82vw);
    height: auto;
    filter: drop-shadow(0 10px 0 rgba(5, 11, 31, .25));
    animation: float 4s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(-2deg); }
    50%      { transform: translateY(-14px) rotate(2deg); }
}

.hero-tagline {
    max-width: 560px;
    margin: 0 auto 28px;
    font-size: clamp(18px, 2.2vw, 22px);
    line-height: 1.45;
    color: var(--white);
    text-shadow: 0 2px 0 rgba(5, 11, 31, .35);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
}

/* squids drifting slowly across the hero */
.drifter {
    position: absolute;
    z-index: -1;
    width: var(--w, 130px);
    height: auto;
    opacity: .9;
    filter: drop-shadow(4px 6px 0 rgba(5, 11, 31, .18));
    pointer-events: none;
    animation: var(--drift);
}

.drifter-1 {
    --w: 150px;
    top: 22%;
    left: 6%;
    --drift: drift-a 13s ease-in-out infinite;
}

.drifter-2 {
    --w: 110px;
    top: 58%;
    right: 7%;
    --drift: drift-b 11s ease-in-out infinite;
}

.drifter-3 {
    --w: 90px;
    top: 16%;
    right: 16%;
    opacity: .7;
    --drift: drift-a 15s ease-in-out -4s infinite reverse;
}

@keyframes drift-a {
    0%, 100% { transform: translate(0, 0) rotate(-6deg); }
    50%      { transform: translate(40px, -30px) rotate(6deg); }
}

@keyframes drift-b {
    0%, 100% { transform: translate(0, 0) rotate(8deg); }
    50%      { transform: translate(-50px, 24px) rotate(-4deg); }
}

/* Ink squirt: script.js every so often makes a squid jolt forward (.squirting)
   and leaves a cloud of ink puffs behind it. --jx/--jy is the jolt direction. */
.drifter.squirting {
    animation: var(--drift), jolt .9s cubic-bezier(.2, .9, .3, 1);
}

@keyframes jolt {
    0%   { translate: 0 0; scale: 1; }
    12%  { translate: 0 0; scale: 1.12 .88; }   /* squish up... */
    35%  { translate: var(--jx) var(--jy); scale: .92 1.08; }   /* ...and shoot off */
    100% { translate: 0 0; scale: 1; }
}

.ink-puff {
    position: absolute;
    z-index: -2;
    width: var(--size);
    height: var(--size);
    margin: calc(var(--size) / -2) 0 0 calc(var(--size) / -2);
    border-radius: 50%;
    background: radial-gradient(circle at 40% 35%, #3a2a5c 0%, #1a1233 55%, #0d0a1f 100%);
    box-shadow: 0 0 0 2px rgba(5, 11, 31, .35);
    pointer-events: none;
    animation: ink-puff var(--time) cubic-bezier(.15, .8, .3, 1) var(--delay) forwards;
    opacity: 0;
}

@keyframes ink-puff {
    0%   { transform: translate(0, 0) scale(.2); opacity: .95; }
    30%  { opacity: .9; }
    100% { transform: translate(var(--dx), var(--dy)) scale(1.6); opacity: 0; }
}

/* bouncing "dive" arrow at the bottom of the hero */
.scroll-hint {
    position: absolute;
    left: 50%;
    bottom: calc(var(--wave-h) + 8px);
    display: flex;
    flex-direction: column;
    align-items: center;
    font: 400 16px var(--chunky);
    letter-spacing: 1px;
    color: var(--white);
    text-decoration: none;
    text-shadow: 2px 2px 0 var(--ink);
    animation: hint-bob 1.6s ease-in-out infinite;
}

.scroll-hint svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: var(--white);
    stroke-width: 3.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    filter: drop-shadow(2px 2px 0 var(--ink));
}

@keyframes hint-bob {
    0%, 100% { transform: translate(-50%, 0); }
    50%      { transform: translate(-50%, 7px); }
}

@media (max-height: 640px) {
    .scroll-hint {
        display: none;
    }
}


/* ---------- 8. About ---------- */

.about-section {
    position: relative;
    background: var(--sea-2);
    padding: 30px 0 calc(70px + var(--wave-h));
}

.about-layout {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    align-items: center;
    gap: 30px 50px;
    margin-bottom: 50px;
}

.about-copy .intro {
    font-size: 19px;
    max-width: 540px;
}

.about-mascot img {
    width: min(420px, 100%);
    margin-inline: auto;
    filter: drop-shadow(6px 8px 0 rgba(5, 11, 31, .3));
    animation: bob 3.4s ease-in-out infinite;
}

@keyframes bob {
    0%, 100% { transform: translateY(0) rotate(-3deg); }
    50%      { transform: translateY(-12px) rotate(3deg); }
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.feature-card {
    padding: 24px 24px 26px;
    color: var(--ink);
    background: var(--white);
    border: 3px solid var(--ink);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    transition: transform .2s, box-shadow .2s;
}

.feature-card:hover {
    transform: translateY(-4px) rotate(-1deg);
    box-shadow: 8px 10px 0 var(--ink);
}

.feature-icon {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    margin-bottom: 16px;
    background: var(--accent);
    border: 3px solid var(--ink);
    border-radius: 16px;
    box-shadow: 0 4px 0 var(--accent-dark), 0 4px 0 3px var(--ink);
}

.feature-card:nth-child(2) .feature-icon {
    background: var(--shallow);
    box-shadow: 0 4px 0 var(--sea-1), 0 4px 0 3px var(--ink);
}

.feature-card:nth-child(3) .feature-icon {
    background: var(--highlight);
    box-shadow: 0 4px 0 var(--highlight-dark), 0 4px 0 3px var(--ink);
}

.feature-icon svg {
    width: 28px;
    height: 28px;
    fill: none;
    stroke: var(--ink);
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.feature-card p {
    margin: 0;
    font-size: 15px;
    line-height: 1.55;
    color: var(--ink-soft);
}


/* ---------- 9. Sneak peeks ---------- */

.peeks-section {
    background: var(--sea-3);
    padding: 30px 0 calc(80px + var(--wave-h));
}

.peek-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 22px;
}

.peek {
    --tilt: 0deg;
    position: relative;
    display: block;
    padding: 10px 10px 0;
    color: var(--ink);
    text-decoration: none;
    background: var(--white);
    border: 3px solid var(--ink);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transform: rotate(var(--tilt));
    transition: transform .2s, box-shadow .2s;
}

/* each card leans a little differently, like photos stuck to the glass */
.peek-grid li:nth-child(5n + 1) .peek { --tilt: -2.5deg; }
.peek-grid li:nth-child(5n + 2) .peek { --tilt: 1.5deg; }
.peek-grid li:nth-child(5n + 3) .peek { --tilt: -1deg; }
.peek-grid li:nth-child(5n + 4) .peek { --tilt: 2deg; }
.peek-grid li:nth-child(5n + 5) .peek { --tilt: -1.5deg; }

.peek:hover,
.peek:focus-visible {
    z-index: 1;
    transform: translateY(-6px) rotate(0) scale(1.04);
    box-shadow: 9px 10px 0 var(--ink);
}

/* the squid renders are see-through, so they sit on a little patch of water */
.peek img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: contain;
    padding: 10px;
    background: radial-gradient(circle at 50% 35%, var(--shallow), var(--sea-1));
    border: 2px solid var(--ink);
    border-radius: 8px;
    transition: transform .3s;
}

.peek:hover img {
    transform: scale(1.05) rotate(-3deg);
}

.peek-caption {
    display: block;
    padding: 10px 4px 12px;
    font: 400 17px var(--chunky);
    letter-spacing: .4px;
    text-align: center;
}

/* Full-size viewer that opens when a peek is clicked */
.lightbox {
    width: min(760px, calc(100% - 28px));
    padding: 0;
    color: var(--ink);
    background: var(--white);
    border: 3px solid var(--ink);
    border-radius: var(--radius-lg);
    box-shadow: 9px 9px 0 var(--ink);
    overflow: visible;
}

.lightbox[open] {
    animation: pop-in .22s cubic-bezier(.2, 1.3, .4, 1);
}

.lightbox::backdrop {
    background: rgba(5, 26, 64, .7);
    backdrop-filter: blur(3px);
}

.lightbox-inner {
    padding: 14px 14px 4px;
}

.lightbox img {
    width: 100%;
    max-height: calc(100dvh - 150px);
    object-fit: contain;
    background: radial-gradient(circle at 50% 35%, var(--shallow), var(--sea-1));
    border: 2px solid var(--ink);
    border-radius: 12px;
}

.lightbox-caption {
    margin: 0;
    padding: 12px 0 10px;
    font: 400 20px var(--chunky);
    text-align: center;
}

.lightbox-close {
    position: absolute;
    top: -18px;
    right: -18px;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0 0 3px;
    font: 400 28px/1 var(--chunky);
    color: var(--ink);
    background: var(--highlight);
    border: 3px solid var(--ink);
    border-radius: 50%;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: transform .15s;
}

.lightbox-close:hover {
    transform: rotate(90deg);
}

@keyframes pop-in {
    from {
        opacity: 0;
        transform: translateY(14px) scale(.97);
    }
}


/* ---------- 10. Updates ---------- */

.updates-section {
    background: var(--sea-4);
    padding: 30px 0 calc(90px + var(--wave-h));
}

.updates-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 40px;
    align-items: start;
}

/* devlog timeline */
.log-list {
    position: relative;
    margin: 0;
    padding: 0 0 0 30px;
    list-style: none;
}

.log-list::before {
    content: "";
    position: absolute;
    left: 9px;
    top: 14px;
    bottom: 14px;
    border-left: 3px dashed rgba(214, 236, 255, .45);
}

.log-entry {
    position: relative;
    margin-bottom: 22px;
    padding: 20px 22px;
    color: var(--ink);
    background: var(--white);
    border: 3px solid var(--ink);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

/* a little bubble on the timeline for each entry */
.log-entry::before {
    content: "";
    position: absolute;
    left: -30px;
    top: 22px;
    width: 18px;
    height: 18px;
    background: radial-gradient(circle at 35% 30%, var(--white) 0 20%, var(--shallow) 24%);
    border: 3px solid var(--ink);
    border-radius: 50%;
}

.log-entry.is-older {
    display: none;
}

.log-entry time {
    display: inline-block;
    margin-bottom: 10px;
    padding: 3px 10px;
    font-size: 13px;
    font-weight: 800;
    background: var(--foam);
    border: 2px solid var(--ink);
    border-radius: 999px;
}

.log-entry h3 {
    font-size: 22px;
    margin-bottom: 8px;
}

.log-entry p {
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
    color: var(--ink-soft);
}

.log-entry img {
    width: 100%;
    max-height: 280px;
    margin-top: 14px;
    object-fit: cover;
    border: 2px solid var(--ink);
    border-radius: 10px;
}

.log-more {
    margin-left: 30px;
}

/* side cards */
.updates-side {
    display: grid;
    gap: 24px;
}

.progress-card,
.discord-card {
    padding: 22px 24px 24px;
    color: var(--ink);
    background: var(--white);
    border: 3px solid var(--ink);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.progress-card .eyebrow,
.discord-card .eyebrow {
    color: var(--accent-dark);
}

.progress-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.progress-top .eyebrow,
.discord-head .eyebrow {
    margin: 0;
}

.status-pill {
    padding: 3px 10px;
    font-size: 12px;
    font-weight: 800;
    background: var(--highlight);
    border: 2px solid var(--ink);
    border-radius: 999px;
}

.progress-card h3 {
    font-size: 28px;
    margin-bottom: 4px;
}

.progress-blurb {
    margin: 0 0 18px;
    font-size: 14px;
    color: var(--ink-soft);
}

/* the progress bar fills up like a tank of water */
.progress-bar {
    height: 26px;
    background: var(--foam);
    border: 3px solid var(--ink);
    border-radius: 999px;
    overflow: hidden;
}

.progress-bar span {
    display: block;
    height: 100%;
    background: repeating-linear-gradient(-45deg, var(--sea-1) 0 10px, var(--shallow) 10px 20px);
    background-size: 28px 28px;
    border-right: 3px solid var(--ink);
    animation: stripes 1.2s linear infinite;
    transition: width .8s cubic-bezier(.2, .8, .3, 1);
}

@keyframes stripes {
    to { background-position: 28px 0; }
}

.progress-label {
    margin: 8px 0 14px;
    font-size: 14px;
}

.progress-label b {
    font: 400 18px var(--chunky);
}

.progress-list {
    display: grid;
    gap: 9px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.progress-list li {
    position: relative;
    padding-left: 30px;
    font-size: 15px;
    line-height: 20px;
}

.progress-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    display: grid;
    place-items: center;
    width: 20px;
    height: 20px;
    font: 800 12px/1 var(--body);
    background: var(--white);
    border: 2px solid var(--ink);
    border-radius: 6px;
}

.progress-list li.done::before {
    content: "\2713";
    background: var(--shallow);
}

.progress-list li.doing::before {
    background: linear-gradient(to top, var(--shallow) 50%, var(--white) 50%);
}

.progress-list li.todo {
    color: var(--ink-soft);
}

/* live Discord card */
.discord-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.discord-icon {
    display: grid;
    place-items: center;
    flex: none;
    width: 46px;
    height: 46px;
    background: var(--accent);
    border: 2px solid var(--ink);
    border-radius: 12px;
}

.discord-icon svg {
    width: 26px;
    height: 26px;
    fill: var(--ink);
}

.discord-name {
    font-size: 21px;
    margin: 2px 0 0;
}

.discord-stats {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 8px;
    margin: 0 0 10px;
    font-size: 15px;
}

.discord-stats b {
    font: 400 18px var(--chunky);
}

.online-dot {
    width: 12px;
    height: 12px;
    background: var(--online);
    border: 2px solid var(--ink);
    border-radius: 50%;
    animation: online-pulse 2s ease-out infinite;
}

@keyframes online-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(76, 194, 107, .55); }
    100% { box-shadow: 0 0 0 9px rgba(76, 194, 107, 0); }
}

.stat-sep {
    color: var(--ink-soft);
}

.discord-blurb {
    margin: 0 0 18px;
    font-size: 14px;
    color: var(--ink-soft);
}


/* ---------- 11. Team ---------- */

.team-section {
    background: var(--sea-5);
    padding: 30px 0 calc(80px + var(--wave-h));
}

.team-cta {
    display: grid;
    gap: 16px;
    justify-items: start;
    max-width: 460px;
}

.team-cta .intro {
    margin: 0;
    font-size: 16px;
}

/* the board: crew cards pinned up at slightly different angles */
.staff-board {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 34px 24px;
    margin: 0;
    padding: 16px 0 0;
    list-style: none;
}

.staff-card {
    --tilt: 0deg;
    position: relative;
    padding: 26px 20px 22px;
    text-align: center;
    color: var(--ink);
    background: var(--white);
    border: 3px solid var(--ink);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    transform: rotate(var(--tilt));
    transition: transform .2s, box-shadow .2s;
}

.staff-card:nth-child(4n + 1) { --tilt: -1.5deg; }
.staff-card:nth-child(4n + 2) { --tilt: 1.2deg; }
.staff-card:nth-child(4n + 3) { --tilt: -.8deg; }
.staff-card:nth-child(4n + 4) { --tilt: 1.6deg; }

.staff-card:hover {
    transform: rotate(0) translateY(-4px);
    box-shadow: 8px 9px 0 var(--ink);
}

/* a suction cup holding each card up */
.staff-card::before {
    content: "";
    position: absolute;
    top: -11px;
    left: 50%;
    width: 22px;
    height: 22px;
    background: var(--accent);
    border: 3px solid var(--ink);
    border-radius: 50%;
    box-shadow: inset -3px -3px 0 var(--accent-dark), 2px 2px 0 var(--ink);
    transform: translateX(-50%);
}

.staff-avatar {
    display: grid;
    place-items: center;
    width: 84px;
    height: 84px;
    margin: 0 auto 14px;
    overflow: hidden;
    background: var(--sea-1);
    border: 3px solid var(--ink);
    border-radius: 50%;
    box-shadow: 0 4px 0 var(--sea-3), 0 4px 0 3px var(--ink);
}

.staff-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: var(--white);
}

.staff-avatar span {
    font: 400 40px var(--chunky);
    color: var(--white);
    text-shadow: var(--outline), 2px 3px 0 var(--ink);
}

.staff-card h3 {
    font-size: 24px;
    margin-bottom: 10px;
}

.staff-card p {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: var(--ink-soft);
}

/* role badges, little tilted stickers */
.badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    margin-bottom: 12px;
}

.badge {
    display: inline-block;
    padding: 3px 9px 4px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .8px;
    text-transform: uppercase;
    color: var(--ink);
    background: var(--white);
    border: 2px solid var(--ink);
    border-radius: 6px;
    box-shadow: 0 2px 0 var(--ink);
    transform: rotate(-2deg);
}

.badge:nth-child(even) {
    transform: rotate(2deg);
}

.badge.owner  { background: var(--accent); }
.badge.dev    { background: var(--shallow); }
.badge.mod    { background: #9cc9ee; }
.badge.artist { background: var(--pink); }
.badge.music  { background: var(--white); }
.badge.tester { background: var(--yellow); }
.badge.helper { background: #a7e0a0; }

/* the "more soon" placeholder */
.staff-card.is-empty {
    color: var(--white);
    background: transparent;
    border-color: var(--text-on-sea);
    border-style: dashed;
    box-shadow: none;
}

.staff-card.is-empty p {
    color: var(--text-on-sea);
}

.staff-card.is-empty::before {
    background: var(--white);
    box-shadow: 2px 2px 0 var(--ink);
}

.staff-card.is-empty .staff-avatar {
    background: transparent;
    border-color: var(--text-on-sea);
    border-style: dashed;
    box-shadow: none;
}


/* ---------- 12. Depth gauge + page fade ---------- */

/* Little scrollbar on the right that shows how deep you've swum.
   The handle is a squid that flips to face the way you're scrolling. Built by script.js. */
.depth-gauge {
    position: fixed;
    right: 16px;
    top: 50%;
    z-index: 40;
    display: flex;
    justify-content: center;
    width: 40px;
    height: min(46vh, 420px);
    transform: translateY(-50%);
}

.depth-track {
    position: relative;
    width: 10px;
    height: 100%;
    background: linear-gradient(to bottom, var(--shallow), var(--sea-2), var(--abyss));
    border: 2px solid var(--ink);
    border-radius: 999px;
    cursor: pointer;
}

.depth-thumb {
    position: absolute;
    top: 0;
    left: 50%;
    display: grid;
    place-items: center;
    width: 40px;
    height: 44px;
    transform: translateX(-50%);
    cursor: grab;
    touch-action: none;
}

.depth-gauge.dragging .depth-thumb {
    cursor: grabbing;
}

.depth-thumb img {
    width: 40px;
    height: auto;
    pointer-events: none;
    -webkit-user-drag: none;
    filter: drop-shadow(2px 2px 0 var(--ink));
    transform: rotate(150deg);   /* head points down while diving */
    transition: transform .2s ease;
}

.depth-thumb img.going-up {
    transform: rotate(-30deg);
}

/* "-42m" readout next to the squid */
.depth-label {
    position: absolute;
    right: calc(100% + 6px);
    top: 50%;
    padding: 2px 8px;
    font: 400 14px var(--chunky);
    white-space: nowrap;
    color: var(--ink);
    background: var(--white);
    border: 2px solid var(--ink);
    border-radius: 999px;
    box-shadow: 2px 2px 0 var(--ink);
    transform: translateY(-50%);
}

/* the gauge replaces the normal scrollbar when there's room for it beside the page */
@media (min-width: 1220px) {
    html.has-gauge {
        scrollbar-width: none;
    }

    html.has-gauge::-webkit-scrollbar {
        display: none;
    }
}

@media (max-width: 1219px) {
    .depth-gauge {
        display: none;
    }
}

/* Quick blue fade when the page opens */
body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: var(--sea-2);
    opacity: 0;
    pointer-events: none;
    animation: page-fade-in .45s steps(8, end);
}

@keyframes page-fade-in {
    from { opacity: 1; }
    to   { opacity: 0; }
}

html.leaving body::after {
    animation: none;
    opacity: 1;
    transition: opacity .35s steps(7, end);
}

/* Things slide up softly as they scroll into view (script.js adds these classes) */
.reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity .6s ease, transform .6s cubic-bezier(.2, .8, .3, 1);
}

.reveal.is-visible {
    opacity: 1;
    transform: none;
}


/* ---------- 13. Responsive ---------- */

@media (max-width: 900px) {
    .peek-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .updates-grid,
    .feature-grid {
        grid-template-columns: 1fr;
    }

    .about-layout {
        grid-template-columns: 1fr;
    }

    .about-mascot img {
        width: min(280px, 70%);
    }

    .drifter-3 {
        display: none;
    }
}

@media (max-width: 760px) {
    :root {
        --header-h: 104px;
        --wave-h: 50px;
    }

    .wrap {
        width: min(1120px, calc(100% - 32px));
    }

    /* logo + Discord on top, nav on its own row underneath */
    .site-header {
        flex-wrap: wrap;
        align-content: center;
        gap: 8px 20px;
        padding-inline: 16px;
    }

    .site-header nav {
        order: 3;
        width: 100%;
        gap: 2px;
        margin-left: -12px;
    }

    .site-header nav a,
    .header-cta {
        font-size: 13px;
    }

    .hero {
        min-height: 560px;
        padding: calc(var(--header-h) + 20px) 16px calc(var(--wave-h) + 50px);
    }

    .drifter-1 { --w: 90px; top: 74%; left: 2%; }
    .drifter-2 { --w: 80px; top: 78%; right: 2%; }

    .section-heading {
        flex-direction: column;
        align-items: start;
    }

    /* on phones the peeks become a swipeable row */
    .peek-grid {
        grid-template-columns: none;
        grid-auto-flow: column;
        grid-auto-columns: 62%;
        gap: 18px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        margin-inline: -16px;
        padding: 12px 16px 22px;
        scroll-padding-inline: 16px;
        scrollbar-width: none;
    }

    .peek-grid::-webkit-scrollbar {
        display: none;
    }

    .peek-grid li {
        scroll-snap-align: start;
    }

    .staff-board {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }

    .footer-inner {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
    }

    .footer-links {
        justify-content: center;
    }

    .footer-copy {
        flex-direction: column;
        align-items: center;
    }

    .scroll-hint {
        display: none;
    }
}

@media (max-width: 400px) {
    .site-header nav a {
        padding: 6px 8px;
        font-size: 14px;
    }

    .header-cta {
        padding: 6px 10px;
        font-size: 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }

    .bubbles {
        display: none;
    }
}
