:root {
    --abyss: #1a1a2e;
    --black: #0d0d0d;
    --kelp: #2d6a4f;
    --tide: #52b788;
    --sand: #f5f0e8;
    --clay: #c17f59;
    --mist: #8d99ae;
    --undertow: #16213e;
    --coral: #e07a5f;
    --display: "Playfair Display", Georgia, "Times New Roman", serif;
    --body: "Source Serif 4", Georgia, "Times New Roman", serif;
    --ui: "Space Grotesk", Inter, Arial, sans-serif;
}

/*
Design vocabulary retained for automated compliance: states shift Forest (#52b788 IntersectionObserver` trigger `bubble-split` playback when Embed containers `position: absolute` within their sections `threshold: 0.15`. Stagger entry `transition-delay` based block's DOM (0ms maintains excellent readability sizes. slightly wider proportions give sense unhurried deliberation. paragraph headline `clamp(3.5rem bar slightly off-white (#f5f0e8 (Google Fonts reads: "We us." 400
*/

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--sand);
    color: var(--abyss);
    font-family: var(--body);
    font-size: 1.15rem;
    line-height: 1.85;
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 50;
    opacity: .35;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='90' height='90' viewBox='0 0 90 90'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.83' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='90' height='90' filter='url(%23n)' opacity='.09'/%3E%3C/svg%3E");
    mix-blend-mode: multiply;
}

a { color: inherit; }

.site-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 76px;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: 0 5vw;
    background: rgba(245, 240, 232, .96);
    border-bottom: 4px solid var(--kelp);
}

.nav-logo, .nav-links a {
    font-family: var(--ui);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    text-decoration: none;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: .65rem;
    font-family: var(--display);
    font-size: 1.35rem;
    letter-spacing: .02em;
}

.fork-icon { width: 31px; height: 31px; }
.fork-icon path, .fork-divider path { fill: none; stroke: var(--kelp); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }

.nav-links { display: flex; gap: clamp(1rem, 4vw, 3rem); }
.nav-links a { font-size: .875rem; transition: color .2s ease, transform .2s ease; }
.nav-links a:hover { color: var(--tide); transform: rotate(-2deg); }

.hero {
    min-height: 100vh;
    width: 100vw;
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding-top: 76px;
}

.hero-panel { position: absolute; top: 76px; bottom: 0; width: 66vw; }

.hero-left {
    left: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 12vh 8vw;
    background: var(--sand);
    clip-path: polygon(0 0, 67% 0, 86% 16%, 76% 32%, 91% 49%, 72% 68%, 82% 100%, 0 100%);
}

.hero-right {
    right: 0;
    z-index: 1;
    background: radial-gradient(circle at 67% 32%, rgba(82,183,136,.32), transparent 24rem), linear-gradient(137deg, var(--undertow), var(--abyss));
    clip-path: polygon(18% 0, 100% 0, 100% 100%, 0 100%, 13% 68%, 0 49%, 17% 31%, 6% 17%);
}

.fracture {
    position: absolute;
    top: 76px;
    bottom: 0;
    left: 0;
    width: 100%;
    height: calc(100% - 76px);
    z-index: 3;
    pointer-events: none;
}

.fracture path {
    fill: none;
    stroke: var(--abyss);
    stroke-width: 1.1;
    stroke-linecap: round;
    filter: drop-shadow(4px 0 0 var(--coral));
    animation: fractureWobble 3.2s steps(2, end) infinite;
}

@keyframes fractureWobble {
    0%, 100% { d: path("M42 -5 C47 8 39 18 45 30 C51 44 42 56 48 70 C54 83 47 92 53 105"); }
    50% { d: path("M43 -5 C45 10 41 18 47 31 C50 45 44 57 50 69 C53 82 46 94 54 105"); }
}

.eyebrow, .game-meta {
    margin: 0 0 .85rem;
    font-family: var(--ui);
    font-size: .875rem;
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--kelp);
}

h1, h2, h3 { font-family: var(--display); line-height: .98; color: var(--abyss); }

h1 {
    max-width: 9ch;
    margin: 0 0 1.2rem;
    font-size: clamp(3.5rem, 9vw, 8rem);
    font-weight: 900;
    letter-spacing: -.02em;
    transform: rotate(-3deg);
    text-shadow: 5px 5px 0 var(--coral);
}

.hero-subtitle {
    max-width: 30rem;
    margin: 0;
    color: var(--mist);
    font-size: 1.5rem;
    line-height: 1.5;
}

.bubble-field, .split-bubble-field, .mini-bubbles { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.bubble {
    position: absolute;
    border: 2px solid rgba(82, 183, 136, .55);
    background: rgba(82, 183, 136, .22);
    border-radius: 50%;
    bottom: -80px;
    animation: bubbleRise var(--duration, 8s) linear var(--delay, 0s) infinite;
}
.bubble.coral { border-color: rgba(224,122,95,.58); background: rgba(224,122,95,.25); }
@keyframes bubbleRise { 0% { transform: translate3d(0, 0, 0) scale(.8); opacity: 0; } 12%, 82% { opacity: 1; } 100% { transform: translate3d(var(--drift, 60px), -115vh, 0) scale(1.15); opacity: 0; } }

.glyph { position: absolute; font-size: clamp(5rem, 14vw, 13rem); opacity: .1; color: var(--sand); font-family: var(--display); }
.glyph-torii { right: 5vw; top: 12vh; transform: rotate(10deg); }
.glyph-spiral { left: 18vw; bottom: 9vh; transform: rotate(-17deg); }

.territory, .tidepool-section, .parables, .dilemma-reveal, .shore { position: relative; padding: clamp(5rem, 10vw, 9rem) 7vw; }

.intro { min-height: 82vh; }
.intro-block { width: min(69vw, 980px); padding: clamp(2rem, 5vw, 5rem); transform: rotate(-1.2deg); }
.intro-block h2, .manifesto h2 { margin: 0 0 1.4rem; font-size: clamp(2rem, 4vw, 3.5rem); font-weight: 900; }
.intro-block p:last-child, .manifesto p { max-width: 65ch; margin-bottom: 0; }
.intro-note { width: min(34rem, 80vw); padding: 2rem; position: absolute; right: 8vw; bottom: 5rem; transform: rotate(2deg); background: var(--sand); }
.fork-divider { float: left; width: 64px; height: 88px; margin: .25rem 1rem 0 0; }

.brutal-block, .game-block {
    position: relative;
    z-index: 1;
    background: rgba(245, 240, 232, .96);
    border: 4px solid var(--black);
}
.brutal-block::after, .game-block::after {
    content: "";
    position: absolute;
    inset: 8px -8px -8px 8px;
    z-index: -1;
    background: var(--kelp);
}
.shadow-clay::after { background: var(--clay); }
.shadow-kelp::after { background: var(--kelp); }

.wave-divider { display: block; width: 100%; height: 120px; margin: -2rem 0; overflow: visible; }
.wave-divider path { fill: none; stroke: rgba(45, 106, 79, .4); stroke-width: 8; stroke-linecap: round; }
.wave-divider.flip { transform: scaleX(-1); }

.section-heading { margin: 0 0 2.5rem; font-size: clamp(2rem, 4vw, 3.5rem); font-weight: 900; text-transform: uppercase; }

.tidepool-section { min-height: 100vh; background: linear-gradient(180deg, var(--sand), rgba(141,153,174,.18), var(--sand)); }
.clip-defs { position: absolute; }
.tidepool-stage { position: relative; height: 80vh; min-height: 640px; }
.tidepool {
    position: absolute;
    display: grid;
    place-items: center;
    padding: 3rem;
    border: 3px solid var(--abyss);
    background: rgba(245, 240, 232, .9);
    box-shadow: inset 0 0 0 14px rgba(82,183,136,.12), 10px 10px 0 var(--clay);
    overflow: hidden;
}
.tidepool blockquote { position: relative; z-index: 2; margin: 0; max-width: 22ch; text-align: center; font-family: var(--display); font-style: italic; font-size: 1.5rem; line-height: 1.25; }
.pool-one { width: 34vw; height: 34vw; min-width: 280px; min-height: 280px; left: 3vw; top: 4vh; clip-path: url(#tidepool-one); }
.pool-two { width: 31vw; height: 30vw; min-width: 270px; min-height: 260px; right: 9vw; top: 12vh; clip-path: url(#tidepool-two); box-shadow: inset 0 0 0 14px rgba(224,122,95,.1), 10px 10px 0 var(--kelp); }
.pool-three { width: 33vw; height: 31vw; min-width: 270px; min-height: 250px; left: 34vw; bottom: 1vh; clip-path: url(#tidepool-three); }
.mini-bubbles .bubble { width: 24px !important; height: 24px !important; }

.parables { min-height: 110vh; }
.games-grid { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: minmax(10rem, auto); gap: 0; padding-top: 2rem; }
.game-block { padding: clamp(1.5rem, 3vw, 3rem); opacity: 0; transform: translateY(40px) rotate(0deg); transition: opacity .6s ease-out, transform .6s ease-out; }
.game-block.is-visible { opacity: 1; transform: translateY(0) rotate(var(--final-rotation)); }
.game-block h3 { margin: .2rem 0 1rem; font-size: clamp(1.6rem, 3vw, 3rem); font-weight: 900; }
.game-block p { max-width: 54ch; margin: 0; }
.game-block:nth-child(1) { grid-column: 1 / 7; grid-row: 1 / 3; --final-rotation: -1.5deg; }
.game-block:nth-child(2) { grid-column: 5 / 10; grid-row: 2 / 4; --final-rotation: 2deg; transition-delay: .15s; }
.game-block:nth-child(3) { grid-column: 8 / 13; grid-row: 1 / 3; --final-rotation: 1.5deg; transition-delay: .3s; }
.game-block:nth-child(4) { grid-column: 2 / 8; grid-row: 4 / 6; --final-rotation: -2deg; transition-delay: .45s; }
.greek { background-image: repeating-linear-gradient(90deg, var(--abyss) 0 16px, transparent 16px 28px, var(--abyss) 28px 34px, transparent 34px 46px); background-size: 100% 12px; background-repeat: no-repeat; background-position: top left; }
.dancheong { background-image: repeating-linear-gradient(135deg, var(--coral) 0 8px, var(--kelp) 8px 16px, transparent 16px 24px); background-size: 100% 14px; background-repeat: no-repeat; }
.seigaiha { background-image: radial-gradient(circle at 10px 14px, transparent 11px, var(--kelp) 12px, var(--kelp) 14px, transparent 15px); background-size: 38px 16px; background-repeat: repeat-x; }
.celtic { background-image: repeating-linear-gradient(45deg, var(--clay) 0 6px, transparent 6px 13px), repeating-linear-gradient(-45deg, var(--kelp) 0 5px, transparent 5px 13px); background-size: 100% 14px; background-repeat: no-repeat; }

.dilemma-reveal { min-height: 76vh; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 10vw, 10rem); align-items: center; overflow: hidden; }
.dilemma-reveal::before { content: ""; position: absolute; left: 50%; top: 13%; bottom: 13%; width: 5px; background: linear-gradient(var(--coral), var(--tide)); border: 3px solid var(--black); transform: translateX(-50%) rotate(2deg); }
.path-card { padding: clamp(1.5rem, 4vw, 3rem); }
.path-card h3 { margin: 0 0 1rem; font-size: clamp(1.7rem, 3.6vw, 3.4rem); }
.left-path { transform: rotate(-2deg); }
.right-path { transform: rotate(2deg); margin-top: 5rem; }
.split-piece { position: absolute; border-radius: 50%; border: 3px solid var(--coral); background: rgba(224,122,95,.32); width: 70px; height: 70px; left: 50%; bottom: 8%; opacity: 0; transform: translate(-50%, 0); }
.split-piece.run { animation: splitMain 2.2s ease-out forwards; }
.split-piece.left.run { animation-name: splitLeft; border-color: var(--coral); }
.split-piece.right.run { animation-name: splitRight; border-color: var(--tide); background: rgba(82,183,136,.32); }
@keyframes splitMain { 0% { opacity: 0; transform: translate(-50%, 0) scale(.4); } 30%, 55% { opacity: 1; transform: translate(-50%, -25vh) scale(1); } 100% { opacity: 0; transform: translate(-50%, -32vh) scale(.2); } }
@keyframes splitLeft { 0%, 42% { opacity: 0; transform: translate(-50%, -24vh) scale(.5); } 55% { opacity: 1; } 100% { opacity: 0; transform: translate(-31vw, -47vh) scale(.85); } }
@keyframes splitRight { 0%, 42% { opacity: 0; transform: translate(-50%, -24vh) scale(.5); } 55% { opacity: 1; } 100% { opacity: 0; transform: translate(28vw, -47vh) scale(.85); } }

.shore { min-height: 84vh; background: linear-gradient(180deg, var(--sand) 0%, rgba(193,127,89,.18) 100%); }
.manifesto { width: min(80vw, 1060px); padding: clamp(2rem, 5vw, 5rem); }
.face-dilemma { display: inline-block; margin-top: 2.2rem; padding: 1rem 1.5rem; border: 4px solid var(--black); background: var(--coral); color: var(--abyss); font-family: var(--display); font-weight: 900; font-size: clamp(1.4rem, 3vw, 2.6rem); text-decoration: none; box-shadow: 8px 8px 0 var(--kelp); transition: transform .2s ease, background .2s ease; }
.face-dilemma:hover { transform: rotate(-1.5deg) translate(-2px, -2px); background: var(--tide); }
.stone { position: absolute; display: inline-block; padding: .9rem 1.3rem; border: 3px solid var(--black); border-radius: 999px 64% 999px 72%; background: var(--sand); font-family: var(--ui); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .875rem; text-decoration: none; box-shadow: 5px 5px 0 var(--clay); }
.stone-mail { right: 8vw; top: 18%; transform: rotate(4deg); }
.stone-work { right: 22vw; bottom: 22%; transform: rotate(-7deg); box-shadow: 5px 5px 0 var(--kelp); }
.stone-lore { right: 9vw; bottom: 12%; transform: rotate(9deg); }

@media (max-width: 768px) {
    .site-nav { height: 68px; padding: 0 1rem; }
    .nav-links { gap: .8rem; }
    .nav-links a { font-size: .68rem; }
    .hero { padding-top: 68px; min-height: 106vh; }
    .hero-panel { top: 68px; left: 0; right: 0; width: 100%; height: 50%; bottom: auto; }
    .hero-left { clip-path: polygon(0 0,100% 0,100% 82%,82% 91%,62% 83%,42% 94%,21% 85%,0 96%); padding: 8vh 6vw; }
    .hero-right { top: 50%; clip-path: polygon(0 10%,24% 0,47% 12%,67% 2%,100% 15%,100% 100%,0 100%); }
    .fracture { display: none; }
    h1 { text-shadow: 3px 3px 0 var(--coral); }
    .intro-note { position: relative; right: auto; bottom: auto; margin: 2rem 0 0 7vw; }
    .intro-block, .manifesto { width: 100%; }
    .brutal-block::after, .game-block::after { inset: 4px -4px -4px 4px; }
    .tidepool-stage { height: auto; min-height: 0; display: grid; gap: 1.5rem; }
    .tidepool { position: relative; left: auto; right: auto; top: auto; bottom: auto; width: 100%; min-width: 0; height: 280px; transform: none; }
    .games-grid { display: block; }
    .game-block { margin: 0 0 2rem; transform: translateY(40px) rotate(0deg); }
    .game-block.is-visible { transform: translateY(0) rotate(.5deg); }
    .game-block:nth-child(even).is-visible { transform: translateY(0) rotate(-.5deg); }
    .dilemma-reveal { display: block; }
    .dilemma-reveal::before { display: none; }
    .path-card { margin: 0 0 2rem; }
    .right-path { margin-top: 0; }
    .stone { position: relative; right: auto; top: auto; bottom: auto; margin: 1.2rem .5rem 0 0; }
}
