/* undo.cafe -- retro-futuristic, asymmetric, ocean-deep */
:root {
    --ocean-deep: #0a2a4a;
    --ocean-mid: #1a4a6a;
    --chrome: #c0c8d0;
    --bokeh-warm: #e8c070;
    --bokeh-cool: #70b8e8;
    --text-primary: #e0e8f0;
    --text-muted: #7090a8;
    --bubble-seafoam: #80d8c0;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Outfit', system-ui, sans-serif;
    font-weight: 300;
    font-size: 17px;
    line-height: 1.7;
    color: var(--text-primary);
    background: var(--ocean-deep);
    overflow-x: hidden;
    position: relative;
    background-image:
        radial-gradient(ellipse at 20% 10%, rgba(112,184,232,0.08) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 90%, rgba(232,192,112,0.07) 0%, transparent 60%);
    background-attachment: fixed;
}

/* === BOKEH BACKGROUND === */
.bokeh-layer {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.bokeh-dot {
    position: absolute;
    border-radius: 50%;
    filter: blur(3px);
    will-change: transform;
}

@keyframes drift {
    0%   { transform: translateY(0)     translateX(0); }
    50%  { transform: translateY(-20px) translateX(8px); }
    100% { transform: translateY(20px)  translateX(-8px); }
}

/* === BUBBLE NAV === */
.bubble-nav {
    position: fixed;
    top: 50%;
    right: 22px;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 14px;
    z-index: 50;
}

.bubble-dot {
    width: 14px;
    height: 14px;
    display: block;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.4), rgba(128,216,192,0.18) 50%, transparent 80%);
    border: 1.5px solid rgba(128,216,192,0.6);
    transition: transform 240ms ease, background 240ms;
    cursor: pointer;
    animation: bobble 5s ease-in-out infinite;
    text-decoration: none;
}
.bubble-dot:nth-child(2) { animation-delay: 0.6s; }
.bubble-dot:nth-child(3) { animation-delay: 1.2s; }
.bubble-dot:nth-child(4) { animation-delay: 1.8s; }
.bubble-dot:nth-child(5) { animation-delay: 2.4s; }
.bubble-dot:nth-child(6) { animation-delay: 3.0s; }

.bubble-dot:hover {
    transform: scale(1.5) rotate(8deg);
    background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.6), var(--bubble-seafoam) 50%, transparent 80%);
}

.bubble-dot.is-active {
    background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.5), var(--bokeh-warm) 50%, transparent 80%);
    border-color: var(--bokeh-warm);
    transform: scale(1.3);
}

@keyframes bobble {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50%      { transform: translateY(-4px) rotate(-3deg); }
}

/* === PORTHOLE HERO === */
.porthole-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px 24px;
    z-index: 2;
}

.porthole {
    position: relative;
    width: 60vmin;
    height: 60vmin;
    max-width: 640px;
    max-height: 640px;
    border-radius: 50%;
    border: 8px solid var(--chrome);
    background:
        radial-gradient(circle at 30% 28%, rgba(112,184,232,0.18) 0%, transparent 50%),
        radial-gradient(circle at 70% 78%, rgba(232,192,112,0.14) 0%, transparent 50%),
        radial-gradient(circle at center, var(--ocean-mid) 0%, var(--ocean-deep) 100%);
    box-shadow:
        inset 0 0 30px rgba(0,0,0,0.55),
        0 0 40px rgba(192,200,208,0.22),
        0 14px 60px rgba(10,42,74,0.5);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.porthole-glare {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 26% 22%, rgba(255,255,255,0.18) 0%, transparent 30%);
    pointer-events: none;
}

.porthole-content {
    text-align: center;
    padding: 24px;
    max-width: 80%;
}

.porthole-eyebrow {
    font-family: 'Share Tech Mono', monospace;
    color: var(--text-muted);
    font-size: 13px;
    letter-spacing: 0.18em;
    margin-bottom: 14px;
    text-transform: uppercase;
}

.porthole-title {
    font-family: 'Share Tech Mono', monospace;
    font-size: clamp(48px, 8vw, 120px);
    color: var(--text-primary);
    letter-spacing: 0.04em;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.cursor {
    display: inline-block;
    width: 0.5ch;
    height: 0.85em;
    background: transparent;
    border-right: 3px solid var(--chrome);
    animation: blink 1s step-end infinite;
    margin-left: 4px;
}

@keyframes blink {
    50% { border-right-color: transparent; }
}

.porthole-sub {
    font-family: 'Outfit', sans-serif;
    color: var(--text-muted);
    font-size: clamp(14px, 1.6vw, 18px);
    margin-top: 12px;
    line-height: 1.6;
}

.porthole-tag {
    font-family: 'Share Tech Mono', monospace;
    margin-top: 28px;
    color: var(--text-muted);
    letter-spacing: 0.18em;
    font-size: 12px;
    text-transform: uppercase;
}

/* === ASYMMETRIC SECTIONS === */
.asym-section {
    position: relative;
    padding: 80px 24px;
    z-index: 2;
}

.asym-section.alt-bg {
    background: linear-gradient(180deg, transparent 0%, var(--ocean-mid) 30%, var(--ocean-mid) 70%, transparent 100%);
}

.asym-block {
    max-width: 560px;
    background: rgba(26, 74, 106, 0.55);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 28px 32px;
    margin-bottom: 60px;
    position: relative;
    border-radius: 0;
    box-shadow: 0 8px 28px rgba(0,0,0,0.25);
}

.asym-1 { margin-left: 15%; border-left: 2px solid var(--chrome); border-radius: 0 24px 24px 0; }
.asym-2 { margin-left: 40%; border-right: 2px solid var(--chrome); border-radius: 24px 0 0 24px; }
.asym-3 { margin-left: 10%; border-left: 2px solid var(--bokeh-warm); border-radius: 0 24px 24px 0; }
.asym-4 { margin-left: 35%; border-right: 2px solid var(--bokeh-cool); border-radius: 24px 0 0 24px; }

.block-eyebrow {
    font-family: 'Share Tech Mono', monospace;
    color: var(--bokeh-warm);
    font-size: 12px;
    letter-spacing: 0.16em;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.bungee {
    font-family: 'Bungee Shade', cursive;
    font-size: clamp(28px, 4vw, 44px);
    color: var(--text-primary);
    line-height: 1.05;
    margin-bottom: 18px;
    letter-spacing: 0.02em;
}

.block-h3 {
    font-family: 'Share Tech Mono', monospace;
    color: var(--text-primary);
    font-size: clamp(22px, 2.6vw, 30px);
    margin-bottom: 12px;
    line-height: 1.2;
    letter-spacing: 0.02em;
}

.block-body {
    color: var(--text-primary);
    font-weight: 300;
}

.quote {
    font-family: 'Outfit', sans-serif;
    font-style: italic;
    color: var(--text-primary);
    font-size: 18px;
    margin-bottom: 8px;
    line-height: 1.55;
}
.quote-by {
    font-family: 'Share Tech Mono', monospace;
    color: var(--text-muted);
    font-size: 12px;
    letter-spacing: 0.12em;
}

.hours-list {
    list-style: none;
    display: grid;
    gap: 8px;
    font-family: 'Share Tech Mono', monospace;
    color: var(--text-primary);
    font-size: 14px;
    letter-spacing: 0.04em;
}
.hours-list li {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px dashed rgba(192,200,208,0.2);
    padding-bottom: 6px;
}
.hours-list span:first-child { color: var(--bokeh-warm); }

/* === MINI PORTHOLES (BREWS) === */
.porthole-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 32px;
    max-width: 1080px;
    margin: 0 auto;
    padding-top: 32px;
}

.mini-porthole {
    width: 100%;
    aspect-ratio: 1;
    max-width: 160px;
    border-radius: 50%;
    border: 4px solid var(--chrome);
    background:
        radial-gradient(circle at 30% 28%, rgba(112,184,232,0.2) 0%, transparent 50%),
        radial-gradient(circle at center, var(--ocean-mid) 0%, var(--ocean-deep) 100%);
    box-shadow:
        inset 0 0 18px rgba(0,0,0,0.55),
        0 0 16px rgba(192,200,208,0.15);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 12px;
    margin: 0 auto;
    transition: transform 260ms ease, box-shadow 260ms ease;
}

.mini-porthole:hover {
    transform: scale(1.05);
    box-shadow:
        inset 0 0 18px rgba(0,0,0,0.55),
        0 0 32px rgba(232,192,112,0.35);
}

.mini-icon {
    font-size: 22px;
    margin-bottom: 6px;
}

.mini-name {
    font-family: 'Share Tech Mono', monospace;
    color: var(--bokeh-warm);
    font-size: 13px;
    letter-spacing: 0.06em;
    margin-bottom: 4px;
}

.mini-desc {
    font-family: 'Outfit', sans-serif;
    color: var(--text-muted);
    font-size: 11.5px;
    line-height: 1.35;
}

/* === TIME MACHINE FOOTER === */
.time-machine {
    position: relative;
    padding: 60px 24px 80px;
    text-align: center;
    z-index: 2;
    border-top: 1px solid rgba(192,200,208,0.18);
    margin-top: 40px;
}

.tm-tag {
    font-family: 'Share Tech Mono', monospace;
    color: var(--text-muted);
    letter-spacing: 0.18em;
    font-size: 12px;
    margin-bottom: 18px;
    text-transform: uppercase;
}

.tm-progress {
    position: relative;
    max-width: 720px;
    height: 30px;
    margin: 0 auto 22px;
}
.tm-track {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--chrome), transparent);
    transform: translateY(-50%);
}
.tm-saves {
    position: absolute;
    inset: 0;
}
.tm-save {
    position: absolute;
    top: 50%;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--bokeh-warm);
    box-shadow: 0 0 8px var(--bokeh-warm);
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 220ms ease;
}
.tm-save.show { opacity: 1; }

.rewind-btn {
    font-family: 'Share Tech Mono', monospace;
    background: transparent;
    border: 2px solid var(--chrome);
    color: var(--text-primary);
    padding: 14px 28px;
    cursor: pointer;
    border-radius: 32px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background 240ms, color 240ms, transform 240ms, box-shadow 240ms;
}
.rewind-btn:hover {
    background: var(--chrome);
    color: var(--ocean-deep);
    transform: translateX(-4px);
    box-shadow: 0 0 24px rgba(192,200,208,0.35);
}

.rewind-icon { font-size: 14px; }

.tm-fineprint {
    margin-top: 22px;
    font-family: 'Share Tech Mono', monospace;
    color: var(--text-muted);
    font-size: 12px;
    letter-spacing: 0.1em;
}

/* === RESPONSIVE === */
@media (max-width: 720px) {
    .asym-1, .asym-2, .asym-3, .asym-4 {
        margin-left: 0;
        margin-right: 0;
    }
    .asym-block { max-width: 100%; padding: 22px; }
    .bubble-nav { right: 8px; }
    .porthole { width: 80vmin; height: 80vmin; border-width: 6px; }
}
