/* gabs.reviews — Surreal Dreamscape of Speaking Mouths */

:root {
    --peach: #F4D9C2;
    --coral: #E8B4A2;
    --mauve: #C9A0B8;
    --plum: #7B5D74;
    --aubergine: #3A2E3D;
    --petal: #FFE9D6;
    --twilight: #8D6A8E;

    --serif: 'Cormorant Garamond', 'Lora', Georgia, serif;
    --sans: 'Fraunces', 'Inter', system-ui, sans-serif;
    --mono: 'DM Mono', 'Courier New', monospace;

    --ease-dream: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-elastic: cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html, body {
    overflow-x: hidden;
}

body {
    font-family: var(--serif);
    background: var(--peach);
    color: var(--plum);
    line-height: 1.5;
    overflow-y: scroll;
    cursor: default;
    min-height: 100vh;
    position: relative;
}

/* ───── vellum noise overlay ───── */
.vellum {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0.08;
    mix-blend-mode: multiply;
    z-index: 100;
}

/* ───── shared dream sections ───── */
.dream {
    position: relative;
    width: 100%;
    overflow: hidden;
}

/* ──────────────────────────────────────────
   Section 1 — The Mouth Garden
   ────────────────────────────────────────── */
.dream--garden {
    height: 100vh;
    min-height: 720px;
    background: var(--peach);
}

.garden-sky {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 30% 28%, var(--petal) 0%, transparent 60%),
        radial-gradient(ellipse 70% 50% at 75% 70%, var(--coral) 0%, transparent 65%),
        radial-gradient(ellipse 50% 40% at 50% 100%, var(--mauve) 0%, transparent 70%),
        var(--peach);
    pointer-events: none;
}

.garden-prelude {
    position: absolute;
    top: 7vh;
    left: 8vw;
    max-width: 36ch;
    color: var(--plum);
    font-family: var(--serif);
    font-style: italic;
    font-weight: 300;
    z-index: 4;
}

.prelude-line {
    font-size: clamp(0.95rem, 1.1vw, 1.15rem);
    letter-spacing: 0;
    line-height: 1.5;
    opacity: 0;
    transform: translateY(8px);
    animation: prelude-rise 1.4s var(--ease-dream) forwards;
}

.prelude-line:nth-child(1) { animation-delay: 0.4s; }
.prelude-line:nth-child(2) { animation-delay: 1.1s; }
.prelude-line:nth-child(3) { animation-delay: 1.9s; }

@keyframes prelude-rise {
    to { opacity: 0.78; transform: translateY(0); }
}

.title-mark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 5;
    font-family: var(--serif);
    font-style: italic;
    font-weight: 500;
    font-size: clamp(3rem, 9vw, 8rem);
    line-height: 1.04;
    letter-spacing: -0.012em;
    color: var(--aubergine);
    pointer-events: none;
    white-space: nowrap;
    mix-blend-mode: multiply;
    opacity: 0.92;
}

.title-fragment {
    display: inline-block;
}

.title-dot {
    display: inline-block;
    margin: 0 0.18em;
    color: var(--mauve);
    transform: translateY(-0.14em);
}

.mouth-field {
    position: absolute;
    inset: 0;
    z-index: 3;
}

.mouth {
    position: absolute;
    will-change: transform, opacity, filter;
    pointer-events: auto;
}

.mouth svg {
    overflow: visible;
    display: block;
}

.mouth-fragment {
    position: absolute;
    pointer-events: none;
    font-family: var(--serif);
    font-style: italic;
    font-weight: 500;
    color: var(--plum);
    white-space: nowrap;
    transform: translate(-50%, 0);
    opacity: 0;
    z-index: 6;
}

.garden-glyphs {
    position: absolute;
    bottom: 12vh;
    right: 10vw;
    display: flex;
    gap: 1.6em;
    font-family: var(--sans);
    font-size: clamp(1.1rem, 1.6vw, 1.6rem);
    color: var(--twilight);
    z-index: 4;
    opacity: 0;
    animation: prelude-rise 1.4s 2.6s var(--ease-dream) forwards;
}

.glyph-mark {
    display: inline-block;
    transition: transform 1.2s var(--ease-dream);
}

.glyph-mark:nth-child(1) { animation: glyph-float-a 7.4s ease-in-out infinite; }
.glyph-mark:nth-child(2) { animation: glyph-float-b 8.2s ease-in-out infinite; }
.glyph-mark:nth-child(3) { animation: glyph-float-a 9.0s 1.2s ease-in-out infinite; }
.glyph-mark:nth-child(4) { animation: glyph-float-b 6.8s 0.6s ease-in-out infinite; }

@keyframes glyph-float-a {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}
@keyframes glyph-float-b {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(8px); }
}

.dream-hint {
    position: absolute;
    bottom: 4vh;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6em;
    font-family: var(--sans);
    font-size: 0.78rem;
    font-weight: 300;
    letter-spacing: 0.18em;
    color: var(--plum);
    opacity: 0;
    animation: dream-hint-pulse 4s 3.2s ease-in-out infinite;
}

.dream-hint svg {
    color: var(--plum);
    animation: dream-hint-arrow 3.4s ease-in-out infinite;
}

@keyframes dream-hint-pulse {
    0%, 100% { opacity: 0.35; }
    50% { opacity: 0.78; }
}

@keyframes dream-hint-arrow {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(6px); }
}

/* ──────────────────────────────────────────
   Section 2 — The Ear Corridor
   ────────────────────────────────────────── */
.dream--corridor {
    min-height: 140vh;
    background: linear-gradient(180deg, var(--peach) 0%, var(--coral) 50%, var(--peach) 100%);
    padding: 14vh 0;
}

.corridor-margin {
    position: absolute;
    width: 18vw;
    max-width: 280px;
    min-width: 130px;
    top: 0;
    height: 100%;
    pointer-events: none;
    opacity: 0.62;
    display: flex;
    align-items: center;
    justify-content: center;
}

.corridor-margin--left {
    left: -2vw;
}
.corridor-margin--right {
    right: -2vw;
}

.ear {
    width: 100%;
    height: auto;
    position: sticky;
    top: 30vh;
}

.ear-spiral-wrap {
    transform-origin: 110px 168px;
    animation: ear-rotate 47s linear infinite;
}

.ear--right .ear-spiral-wrap {
    transform-origin: 110px 168px;
}

@keyframes ear-rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.corridor-quotes {
    max-width: 60vw;
    margin: 0 auto;
    padding: 0 4vw;
    display: flex;
    flex-direction: column;
    gap: 22vh;
    position: relative;
    z-index: 2;
}

.stele {
    text-align: center;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1.6s var(--ease-dream), transform 1.6s var(--ease-dream);
}

.stele.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.stele-quote {
    font-family: var(--serif);
    font-style: italic;
    font-weight: 500;
    font-size: clamp(2.6rem, 8vw, 9rem);
    line-height: 1.04;
    letter-spacing: -0.012em;
    color: var(--aubergine);
    margin-bottom: 1.4em;

    /* shape-outside organic empty silhouette via clip-path on a pseudo */
    position: relative;
}

.stele-quote::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 28%;
    aspect-ratio: 1.4 / 1;
    transform: translate(-50%, -50%);
    background: var(--peach);
    border-radius: 60% 60% 56% 56% / 70% 70% 50% 50%;
    box-shadow: 0 0 0 12px var(--peach);
    z-index: -1;
    opacity: 0.0;
}

.stele:nth-child(odd) .stele-quote { color: var(--plum); }
.stele:nth-child(even) .stele-quote { color: var(--aubergine); }

.stele-attrib {
    font-family: var(--sans);
    font-style: italic;
    font-weight: 300;
    font-size: 0.95rem;
    color: var(--twilight);
    letter-spacing: 0.04em;
    opacity: 0.78;
}

/* ──────────────────────────────────────────
   Section 3 — The Tongue Index
   ────────────────────────────────────────── */
.dream--tongues {
    min-height: 80vh;
    padding: 12vh 0;
    background: linear-gradient(180deg, var(--peach) 0%, var(--petal) 100%);
}

.tongues-head {
    text-align: center;
    margin-bottom: 6vh;
    padding: 0 6vw;
}

.tongues-title {
    font-family: var(--serif);
    font-weight: 500;
    font-size: clamp(2rem, 5vw, 4rem);
    line-height: 1.04;
    letter-spacing: -0.012em;
    color: var(--aubergine);
    margin-bottom: 0.6em;
}

.tongues-sub {
    font-family: var(--sans);
    font-style: italic;
    font-weight: 300;
    font-size: 0.95rem;
    color: var(--twilight);
    letter-spacing: 0.18em;
}

.tongue-strip {
    display: flex;
    gap: 4vw;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    cursor: grab;
    padding: 4vh 6vw;
    scrollbar-width: none;
}

.tongue-strip::-webkit-scrollbar {
    display: none;
}

.tongue-strip:active {
    cursor: grabbing;
}

.tongue {
    flex: 0 0 auto;
    width: 22vw;
    min-width: 220px;
    max-width: 360px;
    aspect-ratio: 1.4 / 1;
    scroll-snap-align: center;
    position: relative;
    transform-origin: center;
    transition: transform 700ms var(--ease-elastic);
}

.tongue svg {
    width: 100%;
    height: 100%;
    overflow: visible;
    display: block;
}

.tongue-shape {
    transition: d 700ms var(--ease-elastic);
}

.tongue-label {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    font-family: var(--serif);
    font-style: italic;
    font-weight: 600;
    font-size: clamp(1.1rem, 1.8vw, 1.6rem);
    color: var(--aubergine);
    letter-spacing: -0.012em;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 600ms var(--ease-dream), transform 600ms var(--ease-dream);
    text-align: center;
    padding: 0 2em;
}

.tongue.is-uncurled .tongue-label,
.tongue:hover .tongue-label {
    opacity: 1;
    transform: translateY(0);
}

.tongue.is-uncurled,
.tongue:hover {
    transform: scale(1.04) rotate(0deg);
}

/* ──────────────────────────────────────────
   Section 4 — The Cloud Diary
   ────────────────────────────────────────── */
.dream--diary {
    min-height: 120vh;
    padding: 12vh 0 16vh;
    background: linear-gradient(180deg, var(--petal) 0%, var(--peach) 30%, var(--mauve) 100%);
}

.diary-head {
    text-align: center;
    margin-bottom: 8vh;
    padding: 0 6vw;
}

.diary-title {
    font-family: var(--serif);
    font-weight: 500;
    font-size: clamp(2rem, 5vw, 4rem);
    line-height: 1.04;
    letter-spacing: -0.012em;
    color: var(--aubergine);
    margin-bottom: 0.6em;
}

.diary-sub {
    font-family: var(--sans);
    font-style: italic;
    font-weight: 300;
    font-size: 0.95rem;
    color: var(--plum);
    letter-spacing: 0.18em;
}

.cloud-stream {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 4vw;
    display: flex;
    flex-direction: column;
    gap: 8vh;
}

.cloud {
    position: relative;
    width: clamp(280px, 56vw, 540px);
    padding: 3em 3em 2.6em;
    opacity: 0;
    transition: opacity 1.4s var(--ease-dream), transform 1.4s var(--ease-dream);
}

.cloud--left {
    align-self: flex-start;
    transform: translateX(-80px) rotate(-18deg);
}

.cloud--right {
    align-self: flex-end;
    transform: translateX(80px) rotate(18deg);
}

.cloud.is-visible {
    opacity: 1;
    transform: translateX(0) rotate(0deg);
}

.cloud-shape {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    filter: drop-shadow(0 18px 30px rgba(58, 46, 61, 0.12));
}

.cloud-text {
    position: relative;
    z-index: 2;
    font-family: var(--serif);
    font-style: italic;
    font-weight: 500;
    font-size: clamp(1.15rem, 1.8vw, 1.55rem);
    line-height: 1.3;
    color: var(--aubergine);
    letter-spacing: -0.008em;
}

.cloud-glyph {
    position: relative;
    z-index: 2;
    display: inline-block;
    margin-top: 0.6em;
    font-family: var(--sans);
    font-size: 1.4rem;
    color: var(--plum);
}

/* ──────────────────────────────────────────
   Section 5 — The Awakening Footer
   ────────────────────────────────────────── */
.dream--awakening {
    min-height: 60vh;
    background: var(--mauve);
    color: var(--petal);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8vh 6vw 14vh;
    overflow: hidden;
}

.awaken-veil {
    position: absolute;
    inset: 0;
    background: var(--aubergine);
    opacity: 0;
    transition: opacity 3.4s var(--ease-dream);
    pointer-events: none;
    z-index: 2;
}

.dream--awakening.is-fading .awaken-veil {
    opacity: 1;
}

.awaken-content {
    position: relative;
    z-index: 3;
    text-align: center;
    max-width: 720px;
    color: var(--petal);
}

.awaken-line {
    font-family: var(--serif);
    font-style: italic;
    font-weight: 500;
    font-size: clamp(1.6rem, 4vw, 3rem);
    line-height: 1.3;
    color: var(--petal);
    margin-bottom: 4vh;
    letter-spacing: -0.012em;
    min-height: 1.3em;
}

.caret {
    display: inline-block;
    margin-left: 0.04em;
    font-style: normal;
    color: var(--petal);
    animation: caret-blink 1.05s steps(2, end) infinite;
}

@keyframes caret-blink {
    50% { opacity: 0; }
}

.awaken-mouth {
    margin: 4vh auto 3vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.4em;
}

.awaken-mouth svg {
    width: clamp(140px, 18vw, 220px);
    height: auto;
    overflow: visible;
    transform-origin: center;
    transition: transform 3.4s var(--ease-dream);
}

.dream--awakening.is-fading .awaken-mouth svg {
    transform: scaleY(0.04);
}

.awaken-mail {
    font-family: var(--serif);
    font-style: italic;
    font-weight: 500;
    font-size: clamp(1.1rem, 1.6vw, 1.4rem);
    color: var(--petal);
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 233, 214, 0.35);
    padding-bottom: 0.1em;
    letter-spacing: 0.02em;
    transition: opacity 600ms var(--ease-dream);
}

.awaken-mail:hover {
    opacity: 0.7;
}

.awaken-meta-line {
    font-family: var(--sans);
    font-style: italic;
    font-weight: 300;
    font-size: 0.85rem;
    letter-spacing: 0.18em;
    color: var(--coral);
    opacity: 0.6;
}

/* ──────────────────────────────────────────
   Floating italic fragment field
   ────────────────────────────────────────── */
.fragment-field {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 50;
    overflow: hidden;
}

.fragment {
    position: absolute;
    font-family: var(--serif);
    font-style: italic;
    font-weight: 500;
    font-size: clamp(0.95rem, 1.1vw, 1.15rem);
    color: var(--plum);
    white-space: nowrap;
    opacity: 0;
    transform: translateY(0);
    will-change: opacity, transform;
}

/* ──────────────────────────────────────────
   Fixed meta-strip
   ────────────────────────────────────────── */
.meta-strip {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0.7em 1.4em;
    display: flex;
    justify-content: center;
    gap: 0.9em;
    font-family: var(--mono);
    font-style: italic;
    font-weight: 300;
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    color: var(--plum);
    background: linear-gradient(0deg, rgba(244, 217, 194, 0.8), rgba(244, 217, 194, 0));
    backdrop-filter: blur(2px);
    z-index: 80;
    pointer-events: none;
}

.meta-sep {
    color: var(--mauve);
}

.meta-tick {
    color: var(--coral);
    margin-left: 0.3em;
    animation: tick-blink 2.4s ease-in-out infinite;
}

@keyframes tick-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.45; }
}

/* ──────────────────────────────────────────
   Responsive — keep dream legible on small screens
   ────────────────────────────────────────── */
@media (max-width: 720px) {
    .corridor-margin { opacity: 0.32; }
    .corridor-quotes { max-width: 88vw; gap: 14vh; }
    .stele-quote { font-size: clamp(2rem, 12vw, 4.6rem); }
    .title-mark { font-size: clamp(2.4rem, 14vw, 5rem); }
    .garden-prelude { left: 6vw; top: 5vh; }
    .cloud { padding: 2.4em 2.4em 2em; }
    .cloud-text { font-size: clamp(1rem, 4vw, 1.4rem); }
    .meta-strip {
        font-size: 0.66rem;
        gap: 0.5em;
    }
}
