/* simidiots.com - inflated 3d, broken-grid, forest-green palette */

:root {
    --forest-deep: #2a4a38;
    --canopy-green: #3a6a50;
    --leaf-bright: #5a9a6e;
    --inflate-white: #f0f4f2;
    --pine-dark: #1a3a28;
    --moss-gold: #b8a44c;
    --sky-cream: #e8f0ea;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--inflate-white);
    color: var(--pine-dark);
    font-family: "Inter", system-ui, sans-serif;
    font-weight: 400;
    font-size: clamp(15px, 1.5vw, 18px);
    line-height: 1.75;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

.mono {
    font-family: "JetBrains Mono", ui-monospace, monospace;
    font-size: clamp(12px, 1vw, 14px);
    font-weight: 400;
    letter-spacing: 0.02em;
    color: var(--canopy-green);
}

/* ======================== AMBIENT BLOBS ======================== */

.ambient-blobs {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.ambient-blob {
    position: absolute;
    border-radius: 50%;
    opacity: 0.12;
    filter: blur(2px);
    will-change: transform;
}

.ambient-blob--a {
    width: 220px; height: 220px;
    top: 12%;
    background: radial-gradient(circle at 30% 30%, var(--leaf-bright), var(--canopy-green));
    animation: drift-a 32s linear infinite;
}
.ambient-blob--b {
    width: 160px; height: 160px;
    top: 38%;
    background: radial-gradient(circle at 30% 30%, #9ec0a8, var(--leaf-bright));
    animation: drift-b 26s linear infinite;
    animation-delay: -8s;
}
.ambient-blob--c {
    width: 280px; height: 280px;
    top: 64%;
    background: radial-gradient(circle at 30% 30%, var(--moss-gold), #8a7634);
    opacity: 0.08;
    animation: drift-a 38s linear infinite;
    animation-delay: -14s;
}
.ambient-blob--d {
    width: 140px; height: 140px;
    top: 84%;
    background: radial-gradient(circle at 30% 30%, var(--sky-cream), var(--leaf-bright));
    animation: drift-b 22s linear infinite;
    animation-delay: -3s;
}

@keyframes drift-a {
    0%   { transform: translateX(-10%) translateY(0); }
    100% { transform: translateX(110%) translateY(-30px); }
}
@keyframes drift-b {
    0%   { transform: translateX(-15%) translateY(20px); }
    100% { transform: translateX(115%) translateY(-10px); }
}

.node-network {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

/* ======================== HERO ======================== */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(160deg, var(--forest-deep) 0%, var(--canopy-green) 100%);
    color: var(--inflate-white);
    overflow: hidden;
    z-index: 2;
}

.hero__shapes {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.hero-blob {
    position: absolute;
    border-radius: 50%;
    box-shadow:
        inset 8px 8px 24px rgba(255, 255, 255, 0.18),
        inset -10px -14px 28px rgba(0, 0, 0, 0.22),
        0 22px 48px rgba(0, 0, 0, 0.28);
    opacity: 0;
    transform: scale(0);
}

.hero-blob.is-in {
    animation: blob-pop 1.4s cubic-bezier(0.68, -0.55, 0.27, 1.55) forwards;
}

@keyframes blob-pop {
    0%   { opacity: 0; transform: scale(0); }
    70%  { opacity: 1; transform: scale(1.06); }
    100% { opacity: 1; transform: scale(1); }
}

.hero-blob--1 {
    width: clamp(120px, 14vw, 200px);
    height: clamp(120px, 14vw, 200px);
    top: 14%; left: 8%;
    background: radial-gradient(circle at 35% 30%, #7ab48a, var(--canopy-green) 70%, var(--forest-deep));
    animation-delay: 600ms;
}
.hero-blob--2 {
    width: clamp(80px, 10vw, 140px);
    height: clamp(80px, 10vw, 140px);
    top: 22%; right: 12%;
    background: radial-gradient(circle at 30% 30%, var(--moss-gold), #8a7634 70%);
    animation-delay: 750ms;
}
.hero-blob--3 {
    width: clamp(100px, 12vw, 180px);
    height: clamp(100px, 12vw, 180px);
    bottom: 20%; left: 14%;
    background: radial-gradient(circle at 35% 30%, var(--leaf-bright), var(--canopy-green) 70%);
    animation-delay: 900ms;
}
.hero-blob--4 {
    width: clamp(60px, 7vw, 90px);
    height: clamp(60px, 7vw, 90px);
    bottom: 28%; right: 18%;
    background: radial-gradient(circle at 30% 30%, var(--sky-cream), #b0c8b8 70%);
    animation-delay: 1050ms;
}
.hero-blob--5 {
    width: clamp(70px, 8vw, 110px);
    height: clamp(70px, 8vw, 110px);
    top: 60%; right: 6%;
    background: radial-gradient(circle at 30% 30%, #aedabe, var(--leaf-bright) 70%);
    animation-delay: 1200ms;
}

.hero-blob--1, .hero-blob--3, .hero-blob--5 {
    animation: blob-pop 1.4s cubic-bezier(0.68, -0.55, 0.27, 1.55) forwards, breathe 4s ease-in-out infinite;
    animation-delay: 600ms, 2.4s;
}

@keyframes breathe {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.04); }
}

.hero__content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 820px;
    padding: 0 6vw;
}

.hero__eyebrow {
    margin-bottom: 28px;
    opacity: 0;
    animation: fade-up 800ms ease-out 1400ms forwards;
}

.hero__eyebrow .mono {
    color: rgba(240, 244, 242, 0.7);
}

.hero__title {
    font-family: "Source Serif 4", Georgia, serif;
    font-weight: 700;
    font-size: clamp(56px, 11vw, 168px);
    line-height: 0.95;
    letter-spacing: -0.02em;
    color: var(--inflate-white);
    margin-bottom: 28px;
    text-shadow: 0 12px 36px rgba(0, 0, 0, 0.35);
}

.letter {
    display: inline-block;
    transform: translateY(40px);
    opacity: 0;
}

.letter.is-in {
    animation: letter-bounce 700ms cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    animation-delay: calc(1500ms + var(--i) * 90ms);
}

@keyframes letter-bounce {
    0%   { transform: translateY(40px); opacity: 0; }
    60%  { transform: translateY(calc(var(--off, 0px) - 6px)); opacity: 1; }
    100% { transform: translateY(var(--off, 0px)); opacity: 1; }
}

/* settled vertical jiggle */
.letter:nth-child(1) { --off: -2px; }
.letter:nth-child(2) { --off:  4px; }
.letter:nth-child(3) { --off: -3px; }
.letter:nth-child(4) { --off:  6px; }
.letter:nth-child(5) { --off: -5px; }
.letter:nth-child(6) { --off:  3px; }
.letter:nth-child(7) { --off: -2px; }
.letter:nth-child(8) { --off:  5px; }
.letter:nth-child(9) { --off: -4px; }

.hero__sub {
    font-size: clamp(15px, 1.5vw, 18px);
    color: rgba(240, 244, 242, 0.85);
    max-width: 560px;
    margin: 0 auto 36px;
    opacity: 0;
    animation: fade-up 800ms ease-out 2400ms forwards;
}

.hero__diagram {
    width: 100%;
    max-width: 520px;
    height: auto;
    opacity: 0;
    animation: fade-up 800ms ease-out 2800ms forwards;
}

.hero__diagram .dline {
    stroke: var(--inflate-white);
    opacity: 0.85;
    stroke-dasharray: 800;
    stroke-dashoffset: 800;
    animation: draw-stroke 1.6s ease-out 2700ms forwards;
}

.hero__diagram text {
    fill: var(--inflate-white);
    opacity: 0.6;
}

@keyframes fade-up {
    0%   { opacity: 0; transform: translateY(16px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes draw-stroke {
    0%   { stroke-dashoffset: 800; }
    100% { stroke-dashoffset: 0; }
}

.scroll-cue {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: rgba(240, 244, 242, 0.7);
    opacity: 0;
    animation: fade-up 800ms ease-out 3200ms forwards;
}
.scroll-cue .mono { color: rgba(240, 244, 242, 0.7); font-size: 11px; letter-spacing: 0.18em; }
.scroll-cue__line {
    width: 1px;
    height: 36px;
    background: rgba(240, 244, 242, 0.5);
    animation: pulse-line 2.4s ease-in-out infinite;
}
@keyframes pulse-line {
    0%, 100% { transform: scaleY(1); opacity: 0.4; }
    50%      { transform: scaleY(1.4); opacity: 0.9; }
}

/* ======================== SECTION SHARED ======================== */

.section {
    position: relative;
    z-index: 2;
    padding: 12vh 6vw;
}

.section--manifesto { background: var(--inflate-white); }
.section--disclose  { background: var(--sky-cream); }
.section--diagram   { background: var(--inflate-white); }
.section--meta      { background: var(--forest-deep); color: var(--inflate-white); }

.section__heading {
    font-family: "Source Serif 4", Georgia, serif;
    font-weight: 700;
    font-size: clamp(28px, 4.5vw, 56px);
    line-height: 1.05;
    letter-spacing: -0.01em;
    color: var(--pine-dark);
    margin-bottom: 16px;
    max-width: 22ch;
}

.section__heading--alt { color: var(--pine-dark); }

.section__lede {
    font-size: clamp(16px, 1.4vw, 19px);
    color: var(--canopy-green);
    max-width: 56ch;
    margin-bottom: 56px;
}

.section__num { color: var(--canopy-green); display: inline-block; margin-bottom: 16px; }

/* ======================== MANIFESTO BROKEN GRID ======================== */

.grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 0;
    max-width: 1280px;
    margin: 0 auto;
}

.block {
    background: var(--inflate-white);
    border: 1.5px solid var(--pine-dark);
    border-radius: 18px;
    padding: 36px 32px;
    box-shadow: 6px 6px 0 var(--canopy-green);
    transition: transform 400ms ease, box-shadow 400ms ease;
    opacity: 0;
    transform: translateY(28px);
}

.block.is-in {
    opacity: 1;
    transform: translateY(0);
}

.block:hover {
    transform: translateY(-4px) rotate(0deg) !important;
    box-shadow: 10px 10px 0 var(--canopy-green);
}

.block--a {
    grid-column: 1 / 7;
    margin-top: 0;
    transform: rotate(-1.5deg) translateY(28px);
    z-index: 2;
}
.block--a.is-in { transform: rotate(-1.5deg) translateY(0); }

.block--b {
    grid-column: 5 / 11;
    margin-top: 80px;
    transform: rotate(0.8deg) translateY(28px);
    background: var(--sky-cream);
    z-index: 3;
}
.block--b.is-in { transform: rotate(0.8deg) translateY(0); }

.block--c {
    grid-column: 3 / 12;
    margin-top: 60px;
    transform: rotate(-0.6deg) translateY(28px);
    z-index: 1;
}
.block--c.is-in { transform: rotate(-0.6deg) translateY(0); }

.block__tag {
    display: inline-block;
    margin-bottom: 14px;
}

.block__title {
    font-family: "Source Serif 4", Georgia, serif;
    font-weight: 700;
    font-size: clamp(24px, 2.6vw, 36px);
    line-height: 1.1;
    margin-bottom: 14px;
    color: var(--pine-dark);
}

.block__body {
    color: var(--pine-dark);
    opacity: 0.86;
}

@media (max-width: 800px) {
    .block--a, .block--b, .block--c {
        grid-column: 1 / -1;
        margin-top: 28px;
        transform: rotate(0deg) translateY(28px);
    }
    .block--a.is-in, .block--b.is-in, .block--c.is-in { transform: rotate(0deg) translateY(0); }
}

/* ======================== DISCLOSURE PANELS ======================== */

.disclose {
    max-width: 1080px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.panel {
    background: var(--inflate-white);
    border: 1.5px solid var(--pine-dark);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 4px 4px 0 var(--canopy-green);
    transition: box-shadow 300ms ease, transform 300ms ease;
}

.panel.is-open {
    box-shadow: 4px 4px 0 var(--moss-gold);
}

.panel__head {
    width: 100%;
    background: transparent;
    border: none;
    padding: 22px 28px;
    display: flex;
    align-items: center;
    gap: 22px;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
    color: var(--pine-dark);
    transition: background 240ms ease;
}

.panel__head:hover {
    background: rgba(184, 164, 76, 0.08);
}

.panel__icon {
    width: 56px; height: 56px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.puff {
    width: 44px; height: 44px;
    border-radius: 50%;
    box-shadow:
        inset 4px 4px 12px rgba(255, 255, 255, 0.5),
        inset -5px -8px 14px rgba(0, 0, 0, 0.18),
        0 6px 14px rgba(0, 0, 0, 0.18);
    animation: breathe 3.4s ease-in-out infinite;
}

.puff--green  { background: radial-gradient(circle at 30% 30%, var(--leaf-bright), var(--canopy-green) 70%); }
.puff--gold   { background: radial-gradient(circle at 30% 30%, var(--moss-gold), #8a7634 75%); }
.puff--cream  { background: radial-gradient(circle at 30% 30%, var(--sky-cream), #b0c8b8 75%); }
.puff--leaf   { background: radial-gradient(circle at 30% 30%, #aedabe, var(--leaf-bright) 70%); }

.panel__head-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
}

.panel__num { color: var(--canopy-green); }
.panel__name {
    font-family: "Source Serif 4", Georgia, serif;
    font-weight: 700;
    font-size: clamp(20px, 2vw, 26px);
    color: var(--pine-dark);
}

.panel__chev {
    width: 18px; height: 18px;
    border-right: 1.5px solid var(--pine-dark);
    border-bottom: 1.5px solid var(--pine-dark);
    transform: rotate(45deg);
    transition: transform 320ms ease;
    margin-bottom: 6px;
}

.panel.is-open .panel__chev {
    transform: rotate(-135deg);
    margin-bottom: 0;
    margin-top: 6px;
}

.panel__body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 400ms ease-out;
}

.panel__inner {
    padding: 0 28px 28px;
    border-top: 1px dashed rgba(26, 58, 40, 0.18);
    margin-top: 0;
    padding-top: 22px;
    opacity: 0;
    transition: opacity 200ms ease 0ms;
}

.panel.is-open .panel__inner {
    opacity: 1;
    transition: opacity 200ms ease 200ms;
}

.panel__inner p { margin-bottom: 16px; }

.panel__list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 8px 24px;
    padding: 14px 18px;
    background: var(--sky-cream);
    border-radius: 10px;
}

.panel__list li {
    font-size: 14px;
    color: var(--pine-dark);
}

.panel__list .mono {
    color: var(--canopy-green);
    margin-right: 8px;
}

/* ======================== DIAGRAM SECTION ======================== */

.diagram-wrap {
    max-width: 1080px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 64px;
    align-items: center;
}

@media (max-width: 900px) {
    .diagram-wrap { grid-template-columns: 1fr; gap: 32px; }
}

.diagram {
    width: 100%;
    height: auto;
    background: var(--sky-cream);
    border-radius: 16px;
    padding: 28px;
    border: 1.5px solid var(--pine-dark);
    box-shadow: 6px 6px 0 var(--canopy-green);
}

.diagram .dline {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
}

.diagram.is-in .dline {
    animation: draw-stroke 1.6s ease-out forwards;
}

.diagram.is-in .dline:nth-child(1) { animation-delay: 0ms; }
.diagram.is-in .dline:nth-child(2) { animation-delay: 200ms; }
.diagram.is-in .dline:nth-child(3) { animation-delay: 300ms; }
.diagram.is-in .dline:nth-child(4) { animation-delay: 400ms; }

/* ======================== META / FOOTER ======================== */

.section--meta {
    background: linear-gradient(180deg, var(--forest-deep) 0%, var(--pine-dark) 100%);
    color: var(--inflate-white);
}

.meta-grid {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 36px;
}

@media (max-width: 800px) {
    .meta-grid { grid-template-columns: 1fr; }
}

.meta-cell {
    border-top: 1px solid rgba(240, 244, 242, 0.25);
    padding-top: 22px;
}

.meta__label { color: rgba(240, 244, 242, 0.55); display: block; margin-bottom: 12px; }

.meta__big {
    font-family: "Source Serif 4", Georgia, serif;
    font-weight: 700;
    font-size: clamp(38px, 4vw, 60px);
    line-height: 1;
    color: var(--moss-gold);
    margin-bottom: 10px;
}

.meta__sub {
    font-size: 14px;
    color: rgba(240, 244, 242, 0.7);
    line-height: 1.5;
}

.footer {
    margin-top: 72px;
    padding-top: 24px;
    border-top: 1px solid rgba(240, 244, 242, 0.18);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
}

.footer__name {
    font-family: "Source Serif 4", Georgia, serif;
    font-weight: 600;
    font-size: 18px;
    color: var(--inflate-white);
}

.footer__line {
    color: rgba(240, 244, 242, 0.5);
    font-size: 12px;
}
