:root {
  --bg: #0d1117;
  --card: #161b22;
  --text: #e6edf3;
  --muted: #9aa4b2;
  --accent: #7dd3fc;
  --accent2: #c084fc;
  --border: #2a3340;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: radial-gradient(1200px 700px at 10% -10%, #1a2030, var(--bg));
  color: var(--text);
}
.wrap { width: min(1100px, 92%); margin: 0 auto; }
.site-header { position: sticky; top: 0; z-index: 9; backdrop-filter: blur(8px); background: rgba(13,17,23,0.7); border-bottom: 1px solid var(--border); }
.site-header .wrap { display: flex; justify-content: space-between; gap: 1rem; align-items: end; padding: 1rem 0; }
.eyebrow { color: var(--accent); text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; margin: 0; }
h1 { margin: 0; font-size: clamp(1.8rem, 3vw, 2.6rem); }
.subtitle { margin: .2rem 0 0; color: var(--muted); }
nav { display: flex; flex-wrap: wrap; gap: .8rem; }
nav a { color: var(--text); text-decoration: none; border: 1px solid var(--border); border-radius: 999px; padding: .45rem .8rem; font-size: .9rem; }
nav a:hover { border-color: var(--accent); }
main { padding: 1.2rem 0 2rem; display: grid; gap: 1rem; }
.card { background: linear-gradient(180deg, #171e2a, var(--card)); border: 1px solid var(--border); border-radius: 16px; padding: 1rem; }
.card h2 { margin-top: .2rem; }
.hint { color: var(--muted); margin-top: -0.35rem; }
.timeline { display: grid; gap: .8rem; }
.timeline-item { border-left: 2px solid var(--accent2); padding-left: .8rem; }
.timeline-item h3 { margin: 0; font-size: 1rem; }
.timeline-item p { margin: .2rem 0 0; color: var(--muted); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: .8rem; }
.tile { background: #0f141c; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.tile img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; background: #0b0f14; }
.tile .meta { padding: .6rem; }
.tile .meta h4 { margin: 0 0 .2rem; font-size: .95rem; }
.tile .meta p { margin: 0; color: var(--muted); font-size: .88rem; }
.dream-list { margin: 0; padding-left: 1.2rem; display: grid; gap: .45rem; }
.footer { color: var(--muted); padding-bottom: 2rem; }
code { background: #0b1220; border: 1px solid var(--border); border-radius: 6px; padding: .1rem .35rem; }


/* Gallery Carousel */
.gallery-carousel-wrapper { width: 100%; }

.gallery-carousel-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.carousel-arrow {
    flex-shrink: 0;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    font-size: 18px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    user-select: none;
}

.carousel-arrow:hover { background: rgba(255,255,255,0.25); }
.carousel-arrow:disabled { opacity: 0.3; cursor: default; }

.carousel-track-wrapper { flex: 1; overflow: hidden; }

.carousel-track {
    display: flex;
    gap: 10px;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.carousel-track .tile {
    flex: 0 0 calc(25% - 8px);
    position: relative;
    border-radius: 8px;
    overflow: hidden;
}

.carousel-track .tile img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    aspect-ratio: unset;
}

.carousel-track .tile .meta {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    padding: 8px;
}

.carousel-track .tile .meta h4 {
    margin: 0;
    font-size: 11px;
    color: #fff;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: -8px;
    margin-bottom: 12px;
}

.carousel-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: rgba(255,255,255,0.25);
    cursor: pointer;
    transition: background 0.2s;
}

.carousel-dot.active { background: rgba(255,255,255,0.8); }

/* Override grid layout for gallery when carousel is active */
#gallery-grid:has(.gallery-carousel-wrapper) { display: block; }
