* { box-sizing: border-box; }

:root {
    --cream: #F6F2EA;
    --black: #111111;
    --acid: #B7FF00;
    --brown: #3A241C;
    --radius: clamp(24px, 3vw, 52px);
    --gutter: clamp(24px, 6vw, 96px);
}

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--black);
    color: var(--cream);
    font-family: "Syne", sans-serif;
    font-size: clamp(18px, 1.65vw, 28px);
}

a { color: inherit; text-decoration: none; }

nav {
    position: fixed;
    inset: 0 0 auto 0;
    height: 82px;
    padding: 0 var(--gutter);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(17,17,17,.92);
    backdrop-filter: blur(12px);
    z-index: 20;
    font-family: "Space Mono", monospace;
    font-size: 14px;
    text-transform: uppercase;
}

.nav-mark {
    color: var(--acid);
    font-weight: 700;
    letter-spacing: .12em;
}

nav ul {
    display: flex;
    gap: clamp(18px, 3vw, 48px);
    margin: 0;
    padding: 0;
    list-style: none;
}

nav a { transition: color .2s ease; }
nav a:hover { color: var(--acid); }

section { width: 100%; }

.hero {
    min-height: 100svh;
    padding: 120px var(--gutter) 48px;
    display: grid;
    place-items: center;
    align-content: center;
    background: var(--cream);
    color: var(--black);
    position: relative;
}

.hero-logo-wrap {
    width: min(1250px, 100%);
    overflow: hidden;
}

.hero-logo {
    display: block;
    width: 100%;
    mix-blend-mode: multiply;
}

.hero-line {
    margin: 12px 0 0;
    font-family: "Space Mono", monospace;
    font-size: clamp(13px, 1.2vw, 18px);
    text-transform: uppercase;
    letter-spacing: .08em;
}

.scroll-note {
    position: absolute;
    bottom: 28px;
    right: var(--gutter);
    font-family: "Space Mono", monospace;
    font-size: 12px;
}

.panel {
    min-height: calc(100svh - 82px);
    top: 82px;
    border-radius: var(--radius) var(--radius) 0 0;
    overflow: hidden;
}

.sticky {
    position: sticky;
    margin-top: 12vh;
}

.panel-cream {
    background: var(--cream);
    color: var(--black);
}

.panel-green {
    background: var(--acid);
    color: var(--black);
}

.panel-black {
    background: var(--black);
    color: var(--cream);
    border: 1px solid rgba(246,242,234,.15);
}

.split {
    min-height: calc(100svh - 82px);
    display: grid;
    grid-template-columns: minmax(120px, .55fr) 2fr;
}

.panel-number {
    padding: var(--gutter);
    font-family: "Space Mono", monospace;
    font-size: clamp(52px, 10vw, 180px);
    font-weight: 700;
    opacity: .16;
}

.copy {
    padding: var(--gutter);
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 1050px;
}

.eyebrow {
    font-family: "Space Mono", monospace;
    font-size: 13px;
    letter-spacing: .12em;
    margin: 0 0 32px;
}

h2 {
    margin: 0 0 38px;
    font-size: clamp(52px, 7.4vw, 132px);
    line-height: .88;
    letter-spacing: -.055em;
    font-weight: 800;
}

.copy > p:not(.eyebrow):not(.microcopy) {
    max-width: 680px;
    line-height: 1.5;
}

.microcopy {
    margin-top: 32px;
    font-family: "Space Mono", monospace;
    font-size: 14px;
}

.statement {
    min-height: calc(100svh - 82px);
    padding: var(--gutter);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.statement h2 span { color: var(--acid); }

.contact {
    min-height: 100svh;
    padding: 120px var(--gutter) 50px;
    background: var(--cream);
    color: var(--black);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact h2 { font-size: clamp(72px, 12vw, 210px); }

.contact > a {
    width: fit-content;
    font-family: "Space Mono", monospace;
    font-size: clamp(16px, 2vw, 30px);
    border-bottom: 3px solid var(--acid);
    padding-bottom: 6px;
}

.footer-note {
    margin: auto 0 0;
    font-family: "Space Mono", monospace;
    font-size: 12px;
}


/* scroll-drawn oyster contact */

.oyster-contact {
    position: relative;
    min-height: 170svh;
    padding: 0;
    overflow: clip;
    background: var(--cream);
    color: var(--black);
}

.oyster-stage {
    position: sticky;
    top: 0;
    width: 100%;
    height: 100svh;
    display: grid;
    place-items: center;
    pointer-events: none;
}

.oyster-svg {
    width: min(68vw, 760px);
    height: min(68vw, 760px);
    transform: rotate(-8deg);
    overflow: visible;
}

.oyster-line {
    fill: none;
    stroke: var(--acid);
    stroke-width: 9;
    stroke-linecap: round;
    stroke-linejoin: round;
    vector-effect: non-scaling-stroke;
    stroke-dasharray: var(--path-length, 1);
    stroke-dashoffset: var(--path-length, 1);
}

.oyster-inner { stroke-width: 6; }
.oyster-fold { stroke-width: 5; }
.oyster-detail { stroke-width: 4; }

.contact-copy {
    position: absolute;
    inset: 0;
    min-height: 100svh;
    padding: 120px var(--gutter) 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    z-index: 2;
}

.contact-copy h2 {
    max-width: 980px;
    font-size: clamp(72px, 12vw, 210px);
}

.contact-copy > a {
    width: fit-content;
    font-family: "Space Mono", monospace;
    font-size: clamp(16px, 2vw, 30px);
    border-bottom: 3px solid var(--acid);
    padding-bottom: 6px;
}

.oyster-contact .footer-note {
    position: absolute;
    left: var(--gutter);
    bottom: 34px;
    z-index: 3;
}

@media (max-width: 760px) {
    nav { height: 68px; }
    nav ul { gap: 16px; }
    nav { font-size: 11px; }
    .panel { top: 68px; min-height: calc(100svh - 68px); }
    .split { grid-template-columns: 1fr; min-height: calc(100svh - 68px); }
    .panel-number { padding-bottom: 0; font-size: 50px; }
    .copy { padding-top: 24px; }
    .hero { padding-top: 100px; }
    .hero-logo { width: 125%; margin-left: -12.5%; }
    h2 { font-size: clamp(46px, 15vw, 82px); }
    .contact h2 { font-size: clamp(66px, 20vw, 110px); }
}


@media (max-width: 760px) {
    .oyster-contact { min-height: 150svh; }
    .oyster-svg {
        width: 115vw;
        height: 115vw;
        opacity: .92;
        transform: rotate(-12deg) translateX(16%);
    }
    .contact-copy { padding-top: 100px; }
}


/* hand-drawn ingredient scroll marks */

.panel {
    isolation: isolate;
}

.panel article {
    position: relative;
    z-index: 2;
}

.ingredient-art {
    position: absolute;
    z-index: 1;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.ingredient-lemon {
    right: -3vw;
    bottom: -8vh;
    transform: rotate(13deg);
}

.ingredient-olive {
    left: -5vw;
    bottom: -10vh;
    transform: rotate(-15deg);
}

.ingredient-svg {
    width: clamp(330px, 44vw, 720px);
    overflow: visible;
}

.draw-line {
    fill: none;
    stroke: var(--acid);
    stroke-width: 11;
    stroke-linecap: round;
    stroke-linejoin: round;
    vector-effect: non-scaling-stroke;
    stroke-dasharray: var(--path-length, 1);
    stroke-dashoffset: var(--path-length, 1);
}

.panel-green .draw-line {
    stroke: var(--black);
}

.detail-line {
    stroke-width: 7;
}

.scratch-line {
    stroke-width: 4;
    opacity: .72;
}

.ingredient-label {
    margin-top: -30px;
    font-family: "Space Mono", monospace;
    font-size: 11px;
    letter-spacing: .08em;
    transform: rotate(-4deg);
}

.ingredient-lemon .ingredient-label {
    color: var(--black);
}

.ingredient-olive .ingredient-label {
    color: var(--black);
}

/* Intentionally imperfect: tiny visual offsets make the line feel marker-drawn. */
.lemon-svg { filter: drop-shadow(2px 1px 0 rgba(183,255,0,.18)); }
.olive-svg { filter: drop-shadow(-2px 2px 0 rgba(17,17,17,.12)); }

@media (max-width: 760px) {
    .ingredient-lemon {
        right: -38vw;
        bottom: -4vh;
    }

    .ingredient-olive {
        left: -42vw;
        bottom: -4vh;
    }

    .ingredient-svg {
        width: 105vw;
        opacity: .72;
    }

    .ingredient-label {
        display: none;
    }
}


/* ingredient recognisability + about contrast refinement */

.panel-cream .split {
    grid-template-columns: minmax(100px, .42fr) minmax(0, 1.58fr) minmax(300px, .72fr);
}

.panel-cream .copy {
    position: relative;
    max-width: 900px;
}

.panel-cream .copy::before {
    content: "";
    position: absolute;
    inset: -5% -4% -5% -6%;
    background: rgba(246,242,234,.94);
    border-radius: calc(var(--radius) * .7);
    z-index: -1;
}

.ingredient-lemon {
    right: 1vw;
    bottom: 4vh;
}

.ingredient-olive {
    left: 1vw;
    bottom: -5vh;
}

.hero-contour {
    stroke-width: 13;
}

.peel-mark {
    stroke-width: 16;
}

.olive-shine {
    stroke-width: 8;
}

.oyster-shell {
    stroke-width: 11;
}

.oyster-inner {
    stroke-width: 7;
}

.oyster-fold {
    stroke-width: 6;
}

@media (max-width: 1100px) {
    .panel-cream .split {
        grid-template-columns: minmax(90px, .3fr) 1.7fr;
    }

    .ingredient-lemon {
        right: -16vw;
        bottom: -2vh;
        opacity: .72;
    }

    .panel-cream .copy {
        max-width: 760px;
    }
}

@media (max-width: 760px) {
    .panel-cream .split {
        grid-template-columns: 1fr;
    }

    .panel-cream .copy::before {
        inset: -18px;
        background: rgba(246,242,234,.9);
    }

    .ingredient-lemon {
        right: -46vw;
        bottom: -3vh;
        opacity: .55;
    }

    .ingredient-olive {
        left: -38vw;
        bottom: -4vh;
        opacity: .58;
    }

    .hero-contour {
        stroke-width: 11;
    }
}


/* final About composition: clear text, recognisable lemon */

.panel-cream .split {
    grid-template-columns: minmax(110px, .38fr) minmax(0, 1.45fr) minmax(360px, .75fr);
}

.panel-cream .copy {
    max-width: 880px;
    padding-right: 2vw;
}

.panel-cream .copy::before {
    display: none;
}

.ingredient-lemon {
    right: 2vw;
    bottom: 2vh;
    transform: rotate(8deg);
    opacity: 1;
}

.ingredient-lemon .ingredient-svg {
    width: clamp(360px, 38vw, 650px);
}

.ingredient-lemon .hero-contour {
    stroke-width: 14;
}

.ingredient-lemon .detail-line {
    stroke-width: 8;
}

.ingredient-lemon .peel-mark {
    stroke-width: 15;
}

@media (max-width: 1100px) {
    .panel-cream .split {
        grid-template-columns: minmax(80px, .25fr) 1.5fr minmax(260px, .55fr);
    }

    .ingredient-lemon {
        right: -8vw;
        opacity: .82;
    }
}

@media (max-width: 760px) {
    .panel-cream .split {
        grid-template-columns: 1fr;
    }

    .panel-cream .copy {
        padding-right: var(--gutter);
    }

    .ingredient-lemon {
        right: -52vw;
        bottom: -3vh;
        opacity: .38;
    }

    .ingredient-lemon .ingredient-svg {
        width: 115vw;
    }
}
