/* ============================================================
   layer2.id (v2) -- Watercolor Identity Passport
   ============================================================ */

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Lora', Georgia, serif;
    font-weight: 400;
    font-size: clamp(16px, 1.5vw, 18px);
    line-height: 1.7;
    color: #2a2a38;
    background: #f8f0e0;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

ul {
    list-style: none;
}

/* ---------- Watercolor Palette (DESIGN.md hexes) ---------- */
:root {
    --sky-wash: #d5e8d4;
    --bloom-wash: #e0d4e8;
    --sun-wash: #e8e0d4;
    --mountain-dark: #6b8f7a;
    --mountain-light: #a8c4a0;
    --stamp-ink: #5a4a7a;
    --text-primary: #2a2a38;
    --text-secondary: #6a6a78;
    --passport-cream: #f8f0e0;
    --bleed-ochre: #c4a890;
}

/* ---------- Shared Typography ---------- */
.section-label {
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 600;
    font-size: clamp(12px, 1.6vw, 14px);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--stamp-ink);
    margin-bottom: 12px;
    position: relative;
}

.section-label::before {
    content: '';
    display: inline-block;
    width: 22px;
    height: 1px;
    background: var(--stamp-ink);
    vertical-align: middle;
    margin-right: 12px;
    opacity: 0.65;
}

.section-headline {
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 700;
    font-size: clamp(28px, 5vw, 64px);
    letter-spacing: 0.02em;
    color: var(--text-primary);
    margin-bottom: 24px;
    line-height: 1.1;
}

.section-body {
    color: var(--text-secondary);
    max-width: 540px;
    margin-bottom: 18px;
}

/* ---------- Watercolor Washes (shared) ---------- */
.watercolor-sky,
.watercolor-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 0;
}

.wash {
    position: absolute;
    border-radius: 50%;
    filter: blur(64px);
    pointer-events: none;
    will-change: transform;
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero-section {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 640px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    overflow: hidden;
    padding-top: clamp(60px, 12vh, 140px);
    background: linear-gradient(180deg, #eef3ea 0%, #f8f0e0 100%);
}

/* Sky washes */
.wash-sage {
    width: 130%;
    height: 80%;
    top: -12%;
    left: -15%;
    background: radial-gradient(ellipse at 30% 40%, var(--sky-wash) 0%, transparent 70%);
    opacity: 0.55;
}

.wash-lavender {
    width: 110%;
    height: 70%;
    top: 4%;
    right: -22%;
    background: radial-gradient(ellipse at 70% 30%, var(--bloom-wash) 0%, transparent 65%);
    opacity: 0.5;
}

.wash-cream {
    width: 90%;
    height: 60%;
    top: 25%;
    left: 8%;
    background: radial-gradient(ellipse at 50% 60%, var(--sun-wash) 0%, transparent 60%);
    opacity: 0.45;
}

.wash-sun {
    width: 50%;
    height: 50%;
    top: 8%;
    right: 12%;
    background: radial-gradient(circle at 50% 50%, #f4e8d4 0%, transparent 70%);
    opacity: 0.7;
}

/* The painted sun -- soft watercolor pool */
.hero-sun {
    position: absolute;
    top: 14%;
    right: 18%;
    width: clamp(120px, 18vw, 200px);
    height: clamp(120px, 18vw, 200px);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(244, 232, 212, 0.95) 0%, rgba(232, 224, 212, 0.55) 50%, transparent 80%);
    z-index: 2;
    filter: blur(8px);
    opacity: 0;
    transform: scale(0.4);
    animation: sunRise 1800ms cubic-bezier(0.22, 1, 0.36, 1) 200ms forwards;
}

@keyframes sunRise {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Hero title */
.hero-title-area {
    position: relative;
    z-index: 12;
    text-align: center;
    margin-top: 4vh;
    padding: 0 24px;
}

.hero-eyebrow {
    display: inline-block;
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 600;
    font-size: clamp(11px, 1.3vw, 13px);
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--stamp-ink);
    padding: 6px 16px;
    border: 1px solid rgba(90, 74, 122, 0.35);
    border-radius: 999px;
    margin-bottom: 22px;
    opacity: 0;
    transform: translateY(8px);
    animation: fadeUp 900ms cubic-bezier(0.22, 1, 0.36, 1) 300ms forwards;
    backdrop-filter: blur(2px);
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title {
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 700;
    font-size: clamp(44px, 9vw, 110px);
    letter-spacing: 0.04em;
    color: var(--text-primary);
    text-transform: lowercase;
    display: inline-flex;
    align-items: baseline;
    margin: 0 auto;
}

.title-text {
    background: linear-gradient(180deg, #2a2a38 0%, #4a4a58 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.typewriter-cursor {
    font-weight: 300;
    animation: blink 0.8s step-end infinite;
    color: var(--stamp-ink);
    margin-left: 4px;
}

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

.hero-subtitle {
    font-family: 'Lora', serif;
    font-style: italic;
    font-weight: 500;
    font-size: clamp(16px, 2vw, 22px);
    color: var(--text-secondary);
    margin-top: 18px;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.9s ease, transform 0.9s ease;
}

.hero-subtitle.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Mountains */
.mountains-container {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60%;
    z-index: 5;
    pointer-events: none;
}

.mountain-layer {
    position: absolute;
    bottom: 0;
    left: -5%;
    width: 110%;
    opacity: 0;
    transition: opacity 0.6s ease, transform 0.9s ease;
    transform: translateY(12px);
}

.mountain-far {
    height: 55%;
    background: linear-gradient(180deg, #c4dabc 0%, #d5e8d4 60%, #e8e8d4 100%);
    clip-path: polygon(
        0% 100%, 0% 70%,
        4% 60%, 9% 50%, 14% 56%, 20% 38%, 26% 50%,
        31% 32%, 37% 44%, 43% 28%, 49% 40%, 55% 26%,
        61% 38%, 67% 30%, 73% 44%, 79% 32%, 85% 46%,
        91% 36%, 96% 50%, 100% 42%, 100% 100%);
    filter: blur(0.6px);
}

.mountain-mid {
    height: 48%;
    background: linear-gradient(180deg, var(--mountain-dark) 0%, var(--mountain-light) 65%, #c4dabc 100%);
    clip-path: polygon(
        0% 100%, 0% 75%,
        6% 60%, 12% 50%, 18% 64%, 25% 40%,
        32% 56%, 38% 36%, 45% 50%, 52% 32%,
        59% 48%, 66% 36%, 72% 52%, 79% 40%,
        86% 56%, 92% 44%, 100% 56%, 100% 100%);
    filter: blur(0.3px);
}

.mountain-near {
    height: 42%;
    background: linear-gradient(180deg, #4a6b5a 0%, #2f3a3e 55%, #1f2126 100%);
    clip-path: polygon(
        0% 100%, 0% 65%,
        5% 52%, 11% 60%, 18% 42%,
        26% 56%, 33% 36%, 41% 48%,
        48% 32%, 56% 44%, 64% 28%,
        72% 46%, 80% 32%, 88% 48%,
        95% 38%, 100% 52%, 100% 100%);
}

.mountain-layer.visible {
    opacity: 1;
    transform: translateY(0);
}

.mountain-far.visible { opacity: 0.85; }
.mountain-mid.visible { opacity: 0.92; }
.mountain-near.visible { opacity: 1; }

/* Watercolor bleed at the foot of the mountains */
.mountain-bleed {
    position: absolute;
    bottom: -10px;
    left: -5%;
    width: 110%;
    height: 30px;
    background: linear-gradient(to bottom, transparent 0%, rgba(196, 168, 144, 0.25) 60%, rgba(196, 168, 144, 0.15) 100%);
    filter: blur(6px);
    z-index: 6;
}

/* Scroll hint */
.hero-scroll-hint {
    position: absolute;
    bottom: 28px;
    z-index: 20;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 0;
    transition: opacity 1s ease 1.6s;
    color: var(--text-secondary);
}

.hero-scroll-hint.visible {
    opacity: 0.85;
}

.scroll-text {
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 600;
    font-size: 11px;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--text-secondary);
}

.scroll-arrow {
    width: 18px;
    height: 18px;
    border-right: 2px solid var(--text-secondary);
    border-bottom: 2px solid var(--text-secondary);
    transform: rotate(45deg);
    animation: bounceArrow 2.2s ease infinite;
}

@keyframes bounceArrow {
    0%, 100% { transform: rotate(45deg) translateY(0); }
    50% { transform: rotate(45deg) translateY(7px); }
}

/* Watercolor edge transitioning into next section */
.hero-section::after {
    content: '';
    position: absolute;
    bottom: -22px;
    left: 0;
    width: 100%;
    height: 44px;
    background: linear-gradient(to bottom, transparent, rgba(196, 168, 144, 0.32));
    z-index: 30;
    pointer-events: none;
    filter: blur(5px);
}

/* ============================================================
   CREDENTIALS SECTION
   ============================================================ */
.credentials-section {
    position: relative;
    min-height: 100vh;
    padding: clamp(80px, 12vh, 150px) clamp(20px, 4vw, 60px) clamp(60px, 10vh, 120px);
    overflow: hidden;
    background: linear-gradient(180deg, #f8f0e0 0%, #f4ecdc 100%);
}

.credentials-bg .wash-sage-light {
    width: 140%;
    height: 100%;
    top: -20%;
    left: -25%;
    background: radial-gradient(ellipse at 22% 50%, var(--sky-wash) 0%, transparent 60%);
    opacity: 0.32;
}

.credentials-bg .wash-lavender-light {
    width: 100%;
    height: 80%;
    top: 30%;
    right: -10%;
    background: radial-gradient(ellipse at 80% 60%, var(--bloom-wash) 0%, transparent 55%);
    opacity: 0.26;
}

.credentials-bg .wash-cream-soft {
    width: 80%;
    height: 60%;
    top: 12%;
    left: 30%;
    background: radial-gradient(ellipse at 50% 40%, var(--sun-wash) 0%, transparent 60%);
    opacity: 0.3;
}

.credentials-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(280px, 1fr) auto;
    align-items: center;
    gap: clamp(40px, 6vw, 100px);
    max-width: 1200px;
    margin: 0 auto;
}

.credentials-text {
    max-width: 560px;
}

.credentials-text .section-headline {
    font-size: clamp(34px, 5.4vw, 64px);
}

.credentials-list {
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.credentials-list li {
    display: flex;
    align-items: center;
    gap: 14px;
    font-family: 'Lora', serif;
    font-style: italic;
    font-weight: 500;
    color: var(--text-secondary);
    font-size: clamp(14px, 1.4vw, 16px);
}

.cl-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, var(--mountain-light), var(--mountain-dark));
    flex-shrink: 0;
    box-shadow: 0 0 0 3px rgba(168, 196, 160, 0.25);
}

/* Main stamp */
.stamp-hero {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.stamp-hero::before {
    content: '';
    position: absolute;
    inset: -10%;
    background: radial-gradient(circle at 50% 50%, rgba(224, 212, 232, 0.55) 0%, transparent 70%);
    filter: blur(28px);
    z-index: 0;
}

.stamp-main {
    position: relative;
    width: clamp(220px, 30vw, 340px);
    height: clamp(220px, 30vw, 340px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(-20px) scale(1.1);
    transition: opacity 0.2s ease, transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 1;
}

.stamp-main.stamped {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.stamp-ring {
    position: absolute;
    border-radius: 50%;
    border: 3px solid var(--stamp-ink);
}

.stamp-ring-outer {
    width: 100%;
    height: 100%;
    opacity: 0.78;
    filter: blur(0.5px);
}

.stamp-ring-inner {
    width: 84%;
    height: 84%;
    border-width: 2px;
    opacity: 0.55;
}

.stamp-ring-dotted {
    width: 92%;
    height: 92%;
    border-width: 1px;
    border-style: dashed;
    opacity: 0.4;
}

.stamp-text-top,
.stamp-text-center,
.stamp-text-bottom {
    font-family: 'Josefin Sans', sans-serif;
    color: var(--stamp-ink);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    position: relative;
    z-index: 2;
    text-align: center;
}

.stamp-text-top {
    font-size: clamp(11px, 1.3vw, 13px);
    font-weight: 600;
    margin-bottom: 6px;
}

.stamp-text-center {
    font-size: clamp(26px, 4.4vw, 46px);
    font-weight: 700;
    letter-spacing: 0.18em;
}

.stamp-text-bottom {
    font-size: clamp(9px, 1.1vw, 11px);
    font-weight: 600;
    margin-top: 6px;
    letter-spacing: 0.22em;
}

.stamp-glyph {
    position: absolute;
    bottom: 14%;
    width: clamp(28px, 4vw, 44px);
    height: clamp(28px, 4vw, 44px);
    color: var(--mountain-dark);
    opacity: 0;
    transform: scale(0.6);
    transition: opacity 0.5s ease 0.3s, transform 0.5s ease 0.3s;
}

.stamp-main.stamped .stamp-glyph {
    opacity: 0.85;
    transform: scale(1);
}

.stamp-ink-bleed {
    position: absolute;
    inset: -14px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(90, 74, 122, 0.1) 0%, transparent 70%);
    transform: scale(0);
    transition: transform 0.3s ease;
}

.stamp-main.stamped .stamp-ink-bleed {
    animation: inkBleed 0.4s ease forwards;
}

@keyframes inkBleed {
    0% { transform: scale(0); }
    60% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* Scattered mini stamps */
.stamps-scattered {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1200px;
    margin: clamp(50px, 7vh, 90px) auto 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: clamp(18px, 2.8vw, 36px);
    padding: 0 20px;
}

.mini-stamp {
    width: clamp(96px, 12vw, 130px);
    height: clamp(96px, 12vw, 130px);
    border: 2px solid var(--stamp-color);
    display: flex;
    align-items: center;
    justify-content: center;
    transform: rotate(var(--stamp-angle)) translateY(-20px) scale(1.1);
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    filter: blur(0.3px);
    position: relative;
    background: rgba(248, 240, 224, 0.45);
}

.stamp-shape-circle {
    border-radius: 50%;
}

.stamp-shape-square {
    border-radius: 6px;
}

.stamp-shape-oval {
    border-radius: 60% / 50%;
    width: clamp(110px, 14vw, 150px);
}

.mini-stamp.stamped {
    opacity: 0.9;
    transform: rotate(var(--stamp-angle)) translateY(0) scale(1);
}

.mini-stamp span {
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 700;
    font-size: clamp(9px, 1.2vw, 11px);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--stamp-color);
    text-align: center;
    padding: 6px;
    line-height: 1.25;
}

.mini-stamp::after {
    content: '';
    position: absolute;
    inset: -8px;
    border-radius: inherit;
    background: radial-gradient(circle, rgba(196, 168, 144, 0.32) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.stamp-shape-square::after {
    border-radius: 12px;
}

.mini-stamp.stamped::after {
    opacity: 1;
}

.credentials-bleed {
    position: absolute;
    bottom: -22px;
    left: 0;
    width: 100%;
    height: 50px;
    background: linear-gradient(to bottom, transparent, rgba(196, 168, 144, 0.32));
    z-index: 1;
    pointer-events: none;
    filter: blur(5px);
}

/* ============================================================
   JOURNEY SECTION
   ============================================================ */
.journey-section {
    position: relative;
    padding: clamp(80px, 12vh, 150px) clamp(20px, 4vw, 60px);
    min-height: 100vh;
    overflow: hidden;
    background: linear-gradient(180deg, #f4ecdc 0%, #f8f0e0 70%, #f4ecdc 100%);
}

.journey-bg .wash-cream-deep {
    width: 120%;
    height: 100%;
    top: 0;
    left: -10%;
    background: radial-gradient(ellipse at 50% 30%, var(--sun-wash) 0%, transparent 55%);
    opacity: 0.4;
}

.journey-bg .wash-sage-mid {
    width: 80%;
    height: 60%;
    bottom: 0;
    right: -5%;
    background: radial-gradient(ellipse at 70% 80%, var(--sky-wash) 0%, transparent 60%);
    opacity: 0.28;
}

.journey-bg .wash-lavender-mid {
    width: 70%;
    height: 50%;
    top: 30%;
    left: -10%;
    background: radial-gradient(ellipse at 30% 50%, var(--bloom-wash) 0%, transparent 60%);
    opacity: 0.22;
}

.journey-header {
    position: relative;
    z-index: 2;
    text-align: center;
    margin-bottom: clamp(30px, 4vh, 50px);
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.journey-header .section-label {
    display: inline-block;
}

.journey-intro {
    color: var(--text-secondary);
    font-style: italic;
    font-size: clamp(15px, 1.6vw, 18px);
    margin-top: 12px;
}

.journey-container {
    position: relative;
    z-index: 2;
    max-width: 640px;
    margin: 30px auto 0;
    height: clamp(700px, 90vh, 1100px);
}

/* SVG path */
.journey-path-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
}

#journey-path {
    stroke-dasharray: 2400;
    stroke-dashoffset: 2400;
    transition: stroke-dashoffset 0.08s linear;
}

/* Checkpoints */
.journey-checkpoints {
    position: absolute;
    inset: 0;
}

.checkpoint {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 14px;
    transform: translate(-50%, -50%);
}

.checkpoint-circle {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 2px solid var(--mountain-dark);
    background: rgba(248, 240, 224, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease, transform 0.4s ease;
    flex-shrink: 0;
    position: relative;
}

.checkpoint-circle::before {
    content: '';
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(168, 196, 160, 0.4) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.checkpoint-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--mountain-dark);
    opacity: 0.55;
    transition: background-color 0.4s ease, opacity 0.4s ease, transform 0.4s ease;
}

.checkpoint.active .checkpoint-circle {
    background: var(--mountain-light);
    border-color: var(--stamp-ink);
    box-shadow: 0 0 18px rgba(90, 74, 122, 0.25);
    transform: scale(1.05);
}

.checkpoint.active .checkpoint-circle::before {
    opacity: 1;
}

.checkpoint.active .checkpoint-dot {
    background: var(--stamp-ink);
    opacity: 1;
    transform: scale(0.85);
}

.checkpoint.active .checkpoint-circle.final {
    background: var(--stamp-ink);
    border-color: var(--mountain-light);
}

.checkpoint.active .checkpoint-circle.final .checkpoint-dot {
    background: var(--passport-cream);
}

.checkpoint-label {
    display: flex;
    flex-direction: column;
    white-space: nowrap;
    gap: 2px;
}

.checkpoint-number {
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 700;
    font-size: 11px;
    letter-spacing: 0.16em;
    color: var(--stamp-ink);
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 0.4s ease, transform 0.4s ease;
    text-transform: uppercase;
}

.checkpoint.active .checkpoint-number {
    opacity: 0.85;
    transform: translateY(0);
}

.checkpoint-text {
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 600;
    font-size: clamp(13px, 1.55vw, 16px);
    letter-spacing: 0.04em;
    color: var(--text-primary);
    overflow: hidden;
    display: inline-block;
    white-space: nowrap;
    width: 0;
    transition: none;
}

/* Some checkpoints flow text to the left of circle (right-side checkpoints) */
.checkpoint[data-step="2"],
.checkpoint[data-step="4"] {
    flex-direction: row-reverse;
}

/* ============================================================
   PASSPORT SECTION
   ============================================================ */
.passport-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(80px, 12vh, 150px) 20px;
    background: radial-gradient(ellipse at 50% 30%, #fbf6e8 0%, #f4ecdc 60%, #ecddc4 100%);
}

.passport-section::before,
.passport-section::after {
    content: '';
    position: absolute;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    z-index: 0;
}

.passport-section::before {
    top: 8%;
    left: -8%;
    background: radial-gradient(circle, var(--bloom-wash) 0%, transparent 70%);
    opacity: 0.5;
}

.passport-section::after {
    bottom: 6%;
    right: -8%;
    background: radial-gradient(circle, var(--sky-wash) 0%, transparent 70%);
    opacity: 0.5;
}

.passport-page {
    position: relative;
    z-index: 1;
    width: clamp(340px, 64vw, 760px);
    background: var(--passport-cream);
    border-radius: 10px;
    box-shadow:
        0 12px 48px rgba(42, 42, 56, 0.16),
        0 4px 12px rgba(42, 42, 56, 0.08),
        inset 0 0 0 1px rgba(196, 168, 144, 0.25);
    overflow: hidden;
    opacity: 0;
    transform: translateY(30px) rotateX(2deg);
    transition: opacity 1s ease, transform 1.1s cubic-bezier(0.22, 1, 0.36, 1);
    transform-origin: 50% 100%;
}

.passport-page.revealed {
    opacity: 1;
    transform: translateY(0) rotateX(0);
}

.passport-border {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

.passport-border-pattern {
    position: absolute;
    inset: 0;
    border: 14px solid transparent;
    border-image: repeating-linear-gradient(
        45deg,
        rgba(168, 196, 160, 0.34) 0px,
        rgba(168, 196, 160, 0.34) 4px,
        rgba(224, 212, 232, 0.34) 4px,
        rgba(224, 212, 232, 0.34) 8px,
        rgba(196, 168, 144, 0.28) 8px,
        rgba(196, 168, 144, 0.28) 12px
    ) 14;
}

.passport-border::before {
    content: '';
    position: absolute;
    inset: 6px;
    border: 1px solid rgba(90, 74, 122, 0.18);
    border-radius: 6px;
}

.passport-border::after {
    content: '';
    position: absolute;
    inset: 12px;
    border: 1px dashed rgba(90, 74, 122, 0.12);
    border-radius: 4px;
}

.passport-corner {
    position: absolute;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(168, 196, 160, 0.5) 0%, transparent 70%);
    filter: blur(2px);
}

.passport-corner.tl { top: 6px; left: 6px; }
.passport-corner.tr { top: 6px; right: 6px; }
.passport-corner.bl { bottom: 6px; left: 6px; }
.passport-corner.br { bottom: 6px; right: 6px; }

.passport-inner {
    position: relative;
    z-index: 2;
    padding: clamp(34px, 5vw, 60px);
}

.passport-header {
    text-align: center;
    margin-bottom: 28px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.passport-emblem {
    display: flex;
    justify-content: center;
}

.emblem-svg {
    width: 92px;
    height: 92px;
}

.passport-header-label {
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 700;
    font-size: clamp(15px, 2.5vw, 20px);
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--stamp-ink);
}

.passport-header-sub {
    font-family: 'Lora', serif;
    font-style: italic;
    font-size: clamp(12px, 1.3vw, 14px);
    color: var(--text-secondary);
}

/* Photo + Stamp area */
.passport-photo {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 12px auto 28px;
    width: clamp(120px, 18vw, 170px);
}

.passport-photo-frame {
    width: 100%;
    aspect-ratio: 3 / 4;
    border: 2px solid rgba(90, 74, 122, 0.4);
    border-radius: 4px;
    background:
        repeating-linear-gradient(
            -45deg,
            rgba(90, 74, 122, 0.05) 0,
            rgba(90, 74, 122, 0.05) 1px,
            transparent 1px,
            transparent 6px
        ),
        radial-gradient(ellipse at 50% 30%, var(--bloom-wash) 0%, var(--sun-wash) 70%, var(--passport-cream) 100%);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 0 0 4px var(--passport-cream), inset 0 0 14px rgba(196, 168, 144, 0.25);
}

.passport-photo-bloom {
    position: absolute;
    inset: 10%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(168, 196, 160, 0.45) 0%, transparent 60%);
    filter: blur(8px);
}

.passport-photo-monogram {
    position: relative;
    z-index: 2;
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 700;
    color: var(--stamp-ink);
    font-size: clamp(28px, 4.4vw, 44px);
    letter-spacing: 0.04em;
    text-shadow: 0 1px 0 rgba(248, 240, 224, 0.6);
}

.passport-photo-stamp {
    position: absolute;
    bottom: -10px;
    right: -22px;
    width: clamp(60px, 8vw, 80px);
    height: clamp(60px, 8vw, 80px);
    border-radius: 50%;
    border: 2px dashed var(--stamp-ink);
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(248, 240, 224, 0.5);
    transform: rotate(var(--stamp-angle));
    filter: blur(0.3px);
    opacity: 0.78;
}

.passport-photo-stamp span {
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 700;
    font-size: clamp(8px, 1vw, 10px);
    letter-spacing: 0.18em;
    color: var(--stamp-ink);
    text-transform: uppercase;
    text-align: center;
}

/* Details grid */
.passport-details {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 18px 28px;
    margin-bottom: 30px;
    padding: 22px 0;
    border-top: 1px solid rgba(90, 74, 122, 0.14);
    border-bottom: 1px solid rgba(90, 74, 122, 0.14);
}

.passport-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.field-label {
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 600;
    font-size: 10px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-secondary);
}

.field-value {
    font-family: 'Lora', serif;
    font-weight: 700;
    font-size: clamp(14px, 1.7vw, 17px);
    color: var(--text-primary);
}

.field-verified {
    color: var(--mountain-dark);
}

.passport-id {
    font-family: 'Josefin Sans', sans-serif;
    letter-spacing: 0.06em;
}

/* Passport stamps area */
.passport-stamps-area {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    justify-content: center;
    margin-bottom: 22px;
    padding: 16px 0;
}

.passport-stamp {
    width: clamp(82px, 10vw, 110px);
    height: clamp(82px, 10vw, 110px);
    border-radius: 50%;
    border: 2px solid var(--stamp-ink);
    display: flex;
    align-items: center;
    justify-content: center;
    transform: rotate(var(--stamp-angle)) scale(0.92);
    opacity: 0;
    filter: blur(0.4px);
    transition: opacity 0.3s ease, transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.passport-stamp.inked {
    opacity: 0.7;
    transform: rotate(var(--stamp-angle)) scale(1);
}

.passport-stamp::before {
    content: '';
    position: absolute;
    inset: 8px;
    border-radius: 50%;
    border: 1px solid currentColor;
    color: var(--stamp-ink);
    opacity: 0.4;
}

.passport-stamp.ps-2 {
    border-color: var(--mountain-dark);
}

.passport-stamp.ps-2 span,
.passport-stamp.ps-2::before {
    color: var(--mountain-dark);
}

.passport-stamp.ps-3 {
    border-color: var(--bleed-ochre);
}

.passport-stamp.ps-3 span,
.passport-stamp.ps-3::before {
    color: #8a6f54;
}

.passport-stamp.ps-4 {
    border-color: var(--mountain-light);
}

.passport-stamp.ps-4 span,
.passport-stamp.ps-4::before {
    color: var(--mountain-dark);
}

.passport-stamp span {
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 700;
    font-size: clamp(7px, 1vw, 9px);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--stamp-ink);
    text-align: center;
    padding: 6px 8px;
    line-height: 1.4;
    position: relative;
    z-index: 2;
}

/* Barcode */
.passport-barcode {
    text-align: center;
    margin-bottom: 14px;
    padding: 8px 0;
}

.barcode-text {
    font-family: 'Libre Barcode 128 Text', cursive;
    font-size: clamp(34px, 5vw, 50px);
    color: var(--text-primary);
    letter-spacing: 0;
    opacity: 0.78;
}

/* MRZ machine-readable line */
.passport-mrz {
    margin-top: 12px;
    padding: 10px 12px;
    border-top: 1px dashed rgba(90, 74, 122, 0.2);
    border-bottom: 1px dashed rgba(90, 74, 122, 0.2);
    background: rgba(248, 240, 224, 0.5);
    text-align: left;
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 600;
    font-size: clamp(10px, 1.2vw, 12px);
    letter-spacing: 0.12em;
    color: var(--text-primary);
    word-spacing: -2px;
    overflow-x: auto;
    white-space: nowrap;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.passport-mrz .mrz-id {
    color: var(--stamp-ink);
    letter-spacing: 0.18em;
}

/* Footer */
.passport-footer {
    text-align: center;
    padding-top: 22px;
    margin-top: 16px;
}

.passport-footer-text {
    font-family: 'Lora', serif;
    font-style: italic;
    font-size: clamp(12px, 1.2vw, 14px);
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 480px;
    display: inline-block;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
    .credentials-content {
        grid-template-columns: 1fr;
        text-align: center;
        justify-items: center;
    }

    .credentials-text {
        text-align: center;
        order: 2;
    }

    .stamp-hero {
        order: 1;
    }

    .credentials-list {
        align-items: center;
    }

    .section-body {
        margin-left: auto;
        margin-right: auto;
    }

    .passport-details {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .checkpoint {
        gap: 10px;
    }

    .checkpoint-label {
        font-size: 12px;
    }

    .journey-container {
        max-width: 100%;
    }

    .checkpoint[data-step="2"],
    .checkpoint[data-step="4"] {
        flex-direction: row;
    }
}

@media (max-width: 600px) {
    .hero-title {
        font-size: clamp(36px, 11vw, 64px);
    }

    .stamps-scattered {
        gap: 14px;
    }

    .mini-stamp,
    .stamp-shape-oval {
        width: 86px;
        height: 86px;
    }

    .stamp-shape-oval {
        width: 100px;
    }

    .passport-details {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .passport-photo-stamp {
        right: -14px;
    }
}
