:root {
  --bg: #ffffff;
  --ink: #050505;
  --muted: #666a70;
  --soft: #8a8f98;
  --line: #e8e8ea;
  --line-strong: #d6d8dc;
  --surface: #f5f6f8;
  --surface-2: #ebeef2;
  --accent: #2563eb;
  --accent-soft: #e8f0ff;
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.12);
  --max: 1180px;
  --radius: 8px;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 8% 14%, color-mix(in srgb, var(--accent) 11%, transparent), transparent 29%),
    radial-gradient(circle at 96% 32%, rgba(20, 184, 166, 0.08), transparent 30%),
    var(--bg);
  color: var(--ink);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "SF Pro Display",
    "SF Pro Text", "Segoe UI", sans-serif;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body::before,
body::after {
  content: "";
  position: fixed;
  top: 0;
  bottom: 0;
  z-index: 0;
  width: max(18px, calc((100vw - var(--max)) / 2));
  pointer-events: none;
}

body::before {
  left: 0;
  background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 10%, transparent), transparent);
}

body::after {
  right: 0;
  background: linear-gradient(270deg, rgba(20, 184, 166, 0.08), transparent);
}

.site-header,
main,
.footer,
.login-overlay {
  position: relative;
  z-index: 1;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

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

svg {
  display: block;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  height: 72px;
  width: min(100% - 48px, var(--max));
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.78);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(24px);
  transition: border-color 180ms ease, height 180ms ease;
}

.site-header[data-elevated="true"] {
  border-color: var(--line);
  height: 64px;
}

.brand {
  justify-self: start;
  font-size: 22px;
  font-weight: 760;
  letter-spacing: 0;
}

.brand-word,
.brand-site {
  display: inline-block;
  font-family: "Snell Roundhand", "Apple Chancery", "Baskerville", "New York", Georgia, serif;
  font-style: italic;
  letter-spacing: 0.015em;
  background: linear-gradient(116deg, var(--ink) 8%, var(--accent) 46%, #14b8a6 74%, var(--ink));
  background-size: 220% auto;
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  text-shadow: 0 10px 28px color-mix(in srgb, var(--accent) 18%, transparent);
}

.brand-site {
  margin-left: 1px;
  font-size: 20px;
  font-weight: 760;
  text-transform: none;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  color: #3b3d41;
  font-size: 13px;
  font-weight: 520;
}

.nav a,
.footer a,
.text-link {
  transition: color 160ms ease;
}

.nav a:hover,
.footer a:hover,
.text-link:hover {
  color: var(--accent);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 620;
  line-height: 1;
  white-space: nowrap;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease,
    color 160ms ease;
}

.button svg,
.text-link svg,
.work-row svg,
.writing-row svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.button:hover {
  transform: translateY(-1px);
}

.button-dark {
  background: var(--ink);
  color: #fff;
}

.button-dark:hover {
  background: #222326;
}

.button-light {
  background: #fff;
  color: var(--ink);
  border-color: var(--line-strong);
}

.button-light:hover {
  border-color: #aeb3bc;
}

.ghost-button {
  border: 0;
  background: transparent;
  padding: 0;
}

.button-small {
  justify-self: end;
  min-height: 38px;
  padding: 0 16px;
  border-color: var(--line);
  font-size: 13px;
  box-shadow: 0 10px 26px rgba(5, 5, 5, 0.08);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.98fr) minmax(380px, 0.86fr);
  align-items: center;
  gap: 56px;
  min-height: calc(86svh - 72px);
  width: min(100% - 48px, var(--max));
  margin: 0 auto;
  padding: 48px 0 56px;
}

.hero-copy {
  min-width: 0;
  padding-top: 10px;
}

.hero h1 {
  width: 100%;
  max-width: 690px;
  margin: 0;
  font-size: clamp(46px, 5.1vw, 70px);
  font-weight: 650;
  line-height: 1.06;
  letter-spacing: 0;
  overflow-wrap: normal;
  text-wrap: balance;
}

.hero p {
  width: 100%;
  max-width: 560px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 21px;
  line-height: 1.45;
  letter-spacing: 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.hero-visual {
  position: relative;
  min-width: 0;
  min-height: 520px;
  display: grid;
  place-items: center;
  perspective: 1400px;
}

.hero-visual::before {
  position: absolute;
  inset: 15% 6% 12% 12%;
  content: "";
  background: radial-gradient(circle at 55% 45%, rgba(37, 99, 235, 0.16), transparent 43%),
    linear-gradient(135deg, rgba(0, 0, 0, 0.08), transparent 54%);
  filter: blur(30px);
  opacity: 0.9;
}

.glass-slab {
  position: relative;
  width: min(100%, 470px);
  aspect-ratio: 0.78;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 34px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(230, 234, 241, 0.66));
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.98);
  transform: rotateX(9deg) rotateY(-16deg) rotateZ(2deg);
  overflow: hidden;
  animation: floatSlab 8s ease-in-out infinite;
}

.glass-slab::before {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(112deg, transparent 0 32%, rgba(255, 255, 255, 0.68) 42%, transparent 54%),
    radial-gradient(circle at 22% 17%, rgba(255, 255, 255, 0.9), transparent 28%);
  pointer-events: none;
}

.glass-slab::after {
  position: absolute;
  right: -44px;
  bottom: 26px;
  width: 160px;
  height: 160px;
  content: "";
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.2), transparent 62%);
}

.slab-rim {
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(5, 5, 5, 0.08);
  border-radius: 24px;
}

.slab-content {
  position: absolute;
  inset: 44px 28px;
  display: flex;
  flex-direction: column;
  gap: 11px;
  color: rgba(5, 5, 5, 0.68);
  font-family: "SF Mono", ui-monospace, Menlo, Consolas, monospace;
  font-size: 12px;
  line-height: 1.2;
}

.slab-content span:nth-child(1),
.slab-content span:nth-child(9),
.slab-content span:nth-child(10),
.slab-content span:nth-child(11),
.slab-content span:nth-child(12) {
  color: var(--accent);
}

.section {
  width: min(100% - 48px, var(--max));
  margin: 0 auto;
  padding: 112px 0;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 34px;
}

.section-kicker {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0;
}

.festival-source {
  margin: 0 0 6px;
  color: var(--soft);
  font-size: 13px;
  font-weight: 620;
}

.festival-console {
  --festival-accent: var(--accent);
  --festival-accent-2: #14b8a6;
  --festival-bg: rgba(37, 99, 235, 0.14);
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(420px, 1fr);
  gap: 22px;
  min-height: 360px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 84% 20%, color-mix(in srgb, var(--festival-accent) 18%, transparent), transparent 34%),
    radial-gradient(circle at 12% 88%, color-mix(in srgb, var(--festival-accent-2) 10%, transparent), transparent 34%),
    linear-gradient(180deg, #fff, #f7f8fb);
  overflow: hidden;
}

.festival-main {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 300px;
}

.festival-status {
  width: max-content;
  padding: 7px 10px;
  border: 1px solid color-mix(in srgb, var(--festival-accent) 24%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--festival-accent) 12%, #fff);
  color: var(--festival-accent);
  font-size: 12px;
  font-weight: 700;
}

.festival-main h3 {
  margin: auto 0 12px;
  font-size: clamp(42px, 5vw, 76px);
  font-weight: 650;
  line-height: 0.98;
  letter-spacing: 0;
}

.festival-main p {
  max-width: 440px;
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.48;
}

.festival-date {
  margin-top: 26px;
  color: #34383e;
  font-size: 14px;
  font-weight: 650;
}

.countdown-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  align-self: end;
}

.countdown-grid div {
  display: grid;
  align-content: center;
  min-height: 178px;
  padding: 18px;
  border: 1px solid color-mix(in srgb, var(--festival-accent) 18%, rgba(5, 5, 5, 0.08));
  border-radius: var(--radius);
  background:
    linear-gradient(155deg, color-mix(in srgb, var(--festival-accent) 7%, transparent), transparent 62%),
    rgba(255, 255, 255, 0.76);
  backdrop-filter: blur(18px);
}

.countdown-grid strong {
  font-size: clamp(36px, 5vw, 70px);
  font-weight: 650;
  line-height: 1;
  letter-spacing: 0;
  color: color-mix(in srgb, var(--festival-accent) 34%, var(--ink));
}

.countdown-grid span {
  margin-top: 12px;
  color: var(--soft);
  font-size: 13px;
  font-weight: 680;
}

.festival-orbit {
  position: absolute;
  right: -70px;
  top: -92px;
  width: 330px;
  height: 330px;
  border: 1px solid color-mix(in srgb, var(--festival-accent) 20%, transparent);
  border-radius: 50%;
}

.festival-orbit span {
  position: absolute;
  border-radius: 50%;
  background: var(--festival-accent);
}

.festival-orbit span:nth-child(1) {
  left: 44px;
  top: 90px;
  width: 8px;
  height: 8px;
}

.festival-orbit span:nth-child(2) {
  right: 88px;
  bottom: 44px;
  width: 12px;
  height: 12px;
  opacity: 0.55;
}

.festival-orbit span:nth-child(3) {
  left: 148px;
  bottom: 104px;
  width: 5px;
  height: 5px;
  opacity: 0.8;
}

.festival-rail {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.festival-rail span {
  min-height: 32px;
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #454a52;
  font-size: 13px;
  font-weight: 620;
}

.festival-section {
  --active-festival: var(--accent);
}

h2 {
  margin: 0;
  font-size: clamp(34px, 4.2vw, 58px);
  font-weight: 630;
  line-height: 1.02;
  letter-spacing: 0;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #2f3338;
  font-size: 14px;
  font-weight: 620;
  white-space: nowrap;
}

.work-list,
.writing-list {
  border-top: 1px solid var(--line);
}

.travel-section {
  padding-top: 96px;
}

.travel-console {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.55fr);
  gap: 18px;
}

.travel-hero-panel,
.travel-stats,
.info-panel,
.journey-card,
.thought-feature,
.future-grid article {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #fff, #f8f9fb);
  border-radius: var(--radius);
}

.travel-hero-panel {
  position: relative;
  min-height: 360px;
  padding: 34px;
  overflow: hidden;
}

.travel-hero-panel::after {
  position: absolute;
  inset: auto -18% -44% 22%;
  height: 230px;
  content: "";
  background: radial-gradient(circle, rgba(37, 99, 235, 0.2), transparent 62%);
  filter: blur(18px);
}

.orbital-map {
  position: absolute;
  inset: 28px;
  border: 1px solid rgba(5, 5, 5, 0.06);
  border-radius: 8px;
  background:
    linear-gradient(rgba(5, 5, 5, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(5, 5, 5, 0.045) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: linear-gradient(180deg, #000, rgba(0, 0, 0, 0.28));
}

.node {
  position: absolute;
  width: 13px;
  height: 13px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.26), 0 12px 30px rgba(37, 99, 235, 0.32);
}

.node-a {
  left: 12%;
  top: 68%;
}

.node-b {
  left: 48%;
  top: 42%;
}

.node-c {
  right: 13%;
  top: 24%;
}

.route-line {
  position: absolute;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(37, 99, 235, 0.8), transparent);
  transform-origin: left center;
}

.route-one {
  left: 14%;
  top: 69%;
  width: 42%;
  transform: rotate(-23deg);
}

.route-two {
  left: 49%;
  top: 43%;
  width: 39%;
  transform: rotate(-16deg);
}

.poem {
  position: relative;
  z-index: 1;
  max-width: 520px;
  margin: 0;
  font-size: clamp(30px, 4vw, 52px);
  font-weight: 650;
  line-height: 1.08;
  letter-spacing: 0;
}

.travel-meta {
  position: absolute;
  left: 34px;
  right: 34px;
  bottom: 30px;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.travel-meta span,
.tag-cloud span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid rgba(5, 5, 5, 0.09);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: #34383e;
  font-size: 12px;
  font-weight: 620;
}

.travel-stats {
  display: grid;
  gap: 0;
}

.travel-stats div {
  padding: 24px;
  border-bottom: 1px solid var(--line);
}

.travel-stats div:last-child {
  border-bottom: 0;
}

.travel-stats span,
.journey-card time,
.thought-feature time,
.thought-list span,
.future-grid span {
  display: block;
  margin-bottom: 10px;
  color: var(--soft);
  font-size: 12px;
  font-weight: 680;
  letter-spacing: 0;
  text-transform: uppercase;
}

.travel-stats strong {
  display: block;
  font-size: 19px;
  font-weight: 630;
  line-height: 1.32;
}

.journey-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 18px;
}

.journey-card {
  padding: 22px;
  min-height: 300px;
}

.journey-card.featured,
.journey-card.is-focused {
  background: #050505;
  color: #fff;
}

.journey-card.featured time,
.journey-card.featured p,
.journey-card.featured li,
.journey-card.is-focused time,
.journey-card.is-focused p,
.journey-card.is-focused li {
  color: rgba(255, 255, 255, 0.68);
}

.journey-card h3,
.info-panel h3,
.thought-feature h3,
.future-grid h3 {
  margin: 0;
  font-size: 23px;
  font-weight: 630;
  line-height: 1.15;
  letter-spacing: 0;
}

.journey-card p,
.info-panel p,
.future-grid p,
.thought-feature p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.56;
}

.journey-card ul {
  display: grid;
  gap: 8px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.journey-card li {
  color: #4f545b;
  font-size: 13px;
  line-height: 1.36;
}

.travel-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 14px;
  margin-top: 14px;
}

.info-panel {
  overflow: hidden;
  padding: 0;
}

.info-panel h3 {
  margin: 0;
  padding: 22px 24px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 90% 10%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 35%),
    linear-gradient(180deg, color-mix(in srgb, var(--accent) 5%, transparent), transparent);
  font-size: clamp(24px, 2.2vw, 32px);
}

.info-panel p,
.info-panel .tag-cloud,
.info-panel .weather-widgets {
  padding: 22px 24px 24px;
}

.weather-strip,
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.weather-widgets {
  display: grid;
  grid-template-columns: repeat(4, minmax(88px, 1fr));
  gap: 10px;
  margin-top: 0;
}

.weather-card {
  position: relative;
  min-height: 132px;
  overflow: hidden;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    radial-gradient(circle at 76% 20%, rgba(37, 99, 235, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), var(--panel-soft));
}

.weather-card span,
.weather-card em {
  position: relative;
  z-index: 1;
  display: block;
  color: var(--soft);
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
}

.weather-card strong {
  position: relative;
  z-index: 1;
  display: block;
  margin: 18px 0 6px;
  color: var(--ink);
  font-size: clamp(18px, 1.55vw, 25px);
  line-height: 1;
}

.weather-card i {
  position: absolute;
  right: 16px;
  top: 18px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #facc15;
  box-shadow: 0 0 34px rgba(250, 204, 21, 0.42);
  animation: weatherFloat 4.8s ease-in-out infinite;
}

.weather-card.cloudy i,
.weather-card.clear i {
  width: 58px;
  height: 28px;
  border-radius: 999px;
  background: #dbeafe;
  box-shadow:
    -18px 8px 0 #eff6ff,
    14px 10px 0 #bfdbfe,
    0 18px 34px rgba(37, 99, 235, 0.18);
}

.weather-card.windy i {
  width: 64px;
  height: 2px;
  top: 38px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: -14px 14px 0 color-mix(in srgb, var(--accent) 42%, transparent);
}

.weather-strip span {
  width: 100%;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  color: #3f454d;
  font-size: 13px;
}

.thought-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 1fr);
  gap: 18px;
}

.thought-feature {
  padding: 30px;
}

.thought-feature h3 {
  font-size: clamp(30px, 3vw, 42px);
}

.thought-list {
  border-top: 1px solid var(--line);
}

.thought-list a {
  display: block;
  padding: 25px 0;
  border-bottom: 1px solid var(--line);
  transition: padding 160ms ease, color 160ms ease;
}

.thought-list .writing-row {
  display: grid;
  grid-template-columns: minmax(92px, 0.28fr) minmax(0, 1fr);
  align-items: start;
  gap: 22px;
  padding: 24px 0;
}

.thought-list .writing-row > span {
  grid-column: 1;
  grid-row: 1 / span 2;
}

.thought-list .writing-row > strong,
.thought-list .writing-row > p {
  grid-column: 2;
}

.thought-list a:hover {
  padding-left: 12px;
  color: var(--accent);
}

.thought-list strong {
  display: block;
  min-width: 0;
  max-width: 14em;
  font-size: clamp(19px, 1.45vw, 24px);
  font-weight: 620;
  line-height: 1.28;
  overflow-wrap: normal;
  word-break: keep-all;
  text-wrap: balance;
}

.thought-list p {
  min-width: 0;
  max-width: 32em;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
  overflow-wrap: normal;
  word-break: keep-all;
}

.future-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.future-grid article {
  min-height: 220px;
  padding: 24px;
}

.login-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(245, 246, 248, 0.76);
  backdrop-filter: blur(24px);
}

.login-overlay[hidden] {
  display: none;
}

.login-dialog {
  position: relative;
  display: grid;
  grid-template-columns: minmax(260px, 0.75fr) minmax(320px, 1fr);
  width: min(100%, 820px);
  min-height: 520px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 34px 120px rgba(0, 0, 0, 0.18);
  overflow: hidden;
}

.icon-button {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(5, 5, 5, 0.1);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.86);
  color: var(--ink);
}

.icon-button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}

.login-visual {
  display: flex;
  flex-direction: column;
  justify-content: end;
  padding: 32px;
  background:
    radial-gradient(circle at 28% 24%, color-mix(in srgb, var(--accent) 30%, transparent), transparent 34%),
    radial-gradient(circle at 72% 72%, rgba(20, 184, 166, 0.18), transparent 28%),
    linear-gradient(145deg, #080b12, #1d2228 58%, #101216);
  color: #fff;
}

.login-visual span {
  color: rgba(255, 255, 255, 0.58);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.login-visual strong {
  margin-top: 12px;
  font-family: "Snell Roundhand", "Apple Chancery", "Baskerville", "New York", Georgia, serif;
  font-size: clamp(44px, 5.5vw, 72px);
  font-style: italic;
  font-weight: 650;
  line-height: 1.06;
  letter-spacing: 0;
  background: linear-gradient(112deg, #ffffff 0%, #8fb2ff 46%, #c9fff3 74%, #ffffff 100%);
  background-size: 220% auto;
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  max-height: 430px;
}

.login-visual p {
  color: rgba(255, 255, 255, 0.62);
}

.login-form {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px;
}

.login-form h2 {
  margin-bottom: 24px;
}

.role-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  margin-bottom: 24px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
}

.role-switch button {
  min-height: 36px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #4f545b;
  font-size: 13px;
  font-weight: 650;
}

.role-switch button.active {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.08);
}

.login-form label {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
  color: #3f454d;
  font-size: 13px;
  font-weight: 650;
}

.login-form input {
  min-height: 48px;
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 0 14px;
  background: #fff;
  color: var(--ink);
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.login-form input:focus {
  border-color: rgba(37, 99, 235, 0.72);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.login-submit {
  width: 100%;
  margin-top: 8px;
}

.login-hint {
  min-height: 40px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.work-row,
.writing-row {
  display: grid;
  align-items: center;
  min-height: 112px;
  border-bottom: 1px solid var(--line);
  transition: background 160ms ease, padding 160ms ease;
}

.work-row {
  grid-template-columns: 48px minmax(150px, 0.7fr) minmax(250px, 1.4fr) minmax(170px, 0.6fr) 28px;
  gap: 24px;
}

.work-row:hover,
.writing-row:hover {
  background: #fafafa;
  padding-inline: 14px;
}

.row-number,
.work-row em,
.writing-row time {
  color: var(--soft);
  font-size: 13px;
  font-style: normal;
  font-weight: 560;
}

.work-row strong,
.writing-row strong {
  font-size: 22px;
  font-weight: 620;
  letter-spacing: 0;
}

.work-row > span:not(.row-number),
.writing-row > span {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.45;
}

.work-row svg,
.writing-row svg {
  justify-self: end;
}

.principles {
  border-top: 1px solid var(--line);
}

.principle-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 34px;
  margin-top: 48px;
}

.principle-grid article {
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.principle-grid svg {
  width: 30px;
  height: 30px;
  margin-bottom: 34px;
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.55;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.principle-grid h3 {
  margin: 0;
  font-size: 24px;
  font-weight: 620;
  line-height: 1.12;
  letter-spacing: 0;
}

.principle-grid p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.5;
}

.writing-section {
  padding-top: 64px;
}

.writing-row {
  grid-template-columns: minmax(120px, 0.42fr) minmax(240px, 0.9fr) minmax(250px, 1.2fr) 28px;
  gap: 24px;
}

.contact-band {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.75fr);
  gap: 54px;
  align-items: end;
  width: min(100% - 48px, var(--max));
  margin: 40px auto 0;
  padding: 90px 0 108px;
  border-top: 1px solid var(--line);
}

.contact-band h2 {
  max-width: 780px;
  word-break: keep-all;
  overflow-wrap: normal;
  text-wrap: balance;
}

.contact-band p {
  margin: 0 0 26px;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.5;
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(100% - 48px, var(--max));
  min-height: 84px;
  margin: 0 auto;
  border-top: 1px solid var(--line);
  color: var(--soft);
  font-size: 13px;
  font-weight: 520;
}

.footer nav {
  display: flex;
  gap: 22px;
}

@keyframes floatSlab {
  0%,
  100% {
    transform: rotateX(9deg) rotateY(-16deg) rotateZ(2deg) translateY(0);
  }
  50% {
    transform: rotateX(7deg) rotateY(-13deg) rotateZ(1deg) translateY(-14px);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

@media (max-width: 920px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .nav {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 64px;
  }

  .hero h1 {
    font-size: clamp(48px, 12vw, 76px);
  }

  .hero-visual {
    min-height: 420px;
  }

  .glass-slab {
    width: min(86vw, 420px);
  }

  .work-row {
    grid-template-columns: 42px 1fr 28px;
    gap: 18px;
    padding: 24px 0;
  }

  .travel-console,
  .thought-layout,
  .festival-console {
    grid-template-columns: 1fr;
  }

  .festival-main {
    min-height: 240px;
  }

  .journey-grid,
  .travel-detail-grid,
  .future-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .login-dialog {
    grid-template-columns: 1fr;
  }

  .login-visual {
    min-height: 190px;
  }

  .work-row > span:not(.row-number),
  .work-row em {
    grid-column: 2 / 3;
  }

  .work-row svg {
    grid-column: 3;
    grid-row: 1;
  }

  .principle-grid,
  .contact-band {
    grid-template-columns: 1fr;
  }

  .writing-row {
    grid-template-columns: 1fr 28px;
    gap: 10px 18px;
    padding: 24px 0;
  }

  .writing-row time,
  .writing-row strong,
  .writing-row span {
    grid-column: 1 / 2;
  }

  .writing-row svg {
    grid-column: 2;
    grid-row: 2;
  }
}

@media (max-width: 640px) {
  .site-header,
  .hero,
  .section,
  .contact-band,
  .footer {
    width: min(100% - 32px, var(--max));
  }

  .site-header {
    height: 62px;
  }

  .button-small {
    min-height: 34px;
    padding: 0 12px;
  }

  .hero {
    gap: 28px;
    padding: 36px 0 34px;
  }

  .hero h1 {
    max-width: 335px;
    font-size: clamp(31px, 8.5vw, 34px);
    line-height: 1.1;
    overflow-wrap: normal;
    word-break: keep-all;
    text-wrap: balance;
  }

  .hero p {
    max-width: 330px;
    margin-top: 20px;
    font-size: 17px;
  }

  .hero-actions {
    margin-top: 24px;
  }

  .hero-visual {
    align-items: start;
    min-height: 224px;
    max-height: 224px;
    overflow: hidden;
  }

  .glass-slab {
    width: min(76vw, 300px);
    border-radius: 26px;
  }

  .slab-content {
    inset: 34px 22px;
    gap: 8px;
    font-size: 10px;
  }

  .section {
    padding: 78px 0;
  }

  .festival-console {
    min-height: 0;
    padding: 20px;
  }

  .festival-main {
    min-height: 210px;
  }

  .festival-main h3 {
    font-size: 42px;
  }

  .festival-main p {
    font-size: 15px;
  }

  .countdown-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .countdown-grid div {
    min-height: 116px;
  }

  .countdown-grid strong {
    font-size: 42px;
  }

  .travel-section {
    padding-top: 70px;
  }

  .travel-hero-panel {
    min-height: 420px;
    padding: 24px;
  }

  .poem {
    font-size: 34px;
  }

  .travel-meta {
    left: 24px;
    right: 24px;
  }

  .journey-grid,
  .travel-detail-grid,
  .future-grid {
    grid-template-columns: 1fr;
  }

  .journey-card {
    min-height: auto;
  }

  .login-overlay {
    padding: 12px;
  }

  .login-dialog {
    min-height: 0;
    max-height: calc(100svh - 24px);
    overflow: auto;
  }

  .login-form {
    padding: 30px 22px 26px;
  }

  .login-visual {
    min-height: 160px;
    padding: 24px;
  }

  .login-visual strong {
    font-size: 34px;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
  }

  .principle-grid {
    gap: 28px;
  }

  .contact-band {
    padding: 70px 0 84px;
  }

  .footer {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding: 22px 0;
  }
}

/* Interaction and atmosphere enhancements */
::selection {
  background: rgba(37, 99, 235, 0.16);
}

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #f3f4f6;
}

::-webkit-scrollbar-thumb {
  background: #c9ced7;
  border: 3px solid #f3f4f6;
  border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
  background: #9fa7b4;
}

.ambient {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.ambient span {
  position: absolute;
  width: 36vw;
  max-width: 560px;
  aspect-ratio: 1;
  border-radius: 50%;
  filter: blur(54px);
  opacity: 0.34;
  animation: drift 18s ease-in-out infinite alternate;
}

.ambient span:nth-child(1) {
  left: -12vw;
  top: 12vh;
  background: rgba(37, 99, 235, 0.18);
}

.ambient span:nth-child(2) {
  right: -16vw;
  top: 30vh;
  background: rgba(16, 185, 129, 0.14);
  animation-duration: 22s;
}

.ambient span:nth-child(3) {
  left: 28vw;
  bottom: -24vw;
  background: rgba(244, 114, 182, 0.12);
  animation-duration: 26s;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 70;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), #14b8a6);
  transform: scaleX(0);
  transform-origin: left center;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.brand-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.34);
  animation: pulse 2.8s ease-out infinite;
}

.menu-toggle {
  display: none;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink);
}

.menu-toggle span {
  width: 16px;
  height: 1.5px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 180ms ease, translate 180ms ease;
}

.menu-toggle span + span {
  margin-top: -10px;
  translate: 0 10px;
}

.site-header[data-menu-open="true"] .menu-toggle span:first-child {
  transform: rotate(45deg);
  translate: 0 5px;
}

.site-header[data-menu-open="true"] .menu-toggle span:last-child {
  transform: rotate(-45deg);
  translate: 0 -5px;
}

.nav a {
  position: relative;
  padding: 8px 0;
}

.nav a::after {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 1px;
  height: 1px;
  content: "";
  background: currentColor;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 180ms ease;
}

.nav a:hover::after,
.nav a.is-active::after {
  transform: scaleX(1);
}

.nav a.is-active {
  color: var(--accent);
}

.glass-slab {
  --mx: 0deg;
  --my: 0deg;
  transform: rotateX(calc(9deg + var(--my))) rotateY(calc(-16deg + var(--mx))) rotateZ(2deg);
  transition: transform 180ms ease-out;
  animation-name: floatSlabEnhanced;
}

.journey-card,
.info-panel,
.thought-feature,
.thought-list a,
.work-row,
.future-grid article,
.festival-console {
  will-change: transform;
}

.journey-card:hover,
.info-panel:hover,
.thought-feature:hover,
.future-grid article:hover {
  transform: translateY(-5px);
  border-color: rgba(37, 99, 235, 0.22);
  box-shadow: 0 18px 54px rgba(15, 23, 42, 0.08);
}

.festival-rail span,
.tag-cloud span,
.travel-meta span {
  transition: transform 160ms ease, background 160ms ease, color 160ms ease,
    border-color 160ms ease;
}

.festival-rail span:hover,
.festival-rail span.is-active,
.tag-cloud span:hover,
.travel-meta span:hover {
  transform: translateY(-2px);
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

.festival-rail span {
  cursor: pointer;
  user-select: none;
}

.festival-rail span:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 48%, transparent);
  outline-offset: 3px;
}

.festival-orbit {
  animation: spin 64s linear infinite;
}

[data-count-seconds] {
  animation: secPulse 1s ease-in-out infinite;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 680ms ease, transform 680ms ease;
  transition-delay: var(--reveal-delay, 0ms);
}

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

@keyframes drift {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(4vw, -4vh, 0) scale(1.08);
  }
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.32);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(37, 99, 235, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 99, 235, 0);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes secPulse {
  0%,
  100% {
    transform: scale(1);
    color: var(--ink);
  }
  50% {
    transform: scale(1.045);
    color: var(--accent);
  }
}

@keyframes floatSlabEnhanced {
  0%,
  100% {
    transform: rotateX(calc(9deg + var(--my))) rotateY(calc(-16deg + var(--mx))) rotateZ(2deg)
      translateY(0);
  }
  50% {
    transform: rotateX(calc(7deg + var(--my))) rotateY(calc(-13deg + var(--mx))) rotateZ(1deg)
      translateY(-14px);
  }
}

@media (max-width: 920px) {
  .site-header {
    position: sticky;
    grid-template-columns: 1fr auto auto;
  }

  .menu-toggle {
    display: grid;
    justify-self: end;
    order: 2;
  }

  .button-small {
    order: 3;
  }

  .nav {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 8px);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 18px 54px rgba(15, 23, 42, 0.12);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 180ms ease, transform 180ms ease;
  }

  .nav a {
    display: grid;
    place-items: center;
    min-height: 38px;
    border-radius: 999px;
  }

  .nav a::after {
    display: none;
  }

  .nav a.is-active {
    background: var(--accent-soft);
  }

  .site-header[data-menu-open="true"] .nav {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }
}

@media (max-width: 640px) {
  .ambient span {
    width: 72vw;
    opacity: 0.24;
  }

  .nav {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Theme, finish, and motion polish */
:root {
  --header-bg: rgba(255, 255, 255, 0.78);
  --panel-bg: linear-gradient(180deg, #fff, #f8f9fb);
  --panel-plain: #fff;
  --panel-soft: rgba(255, 255, 255, 0.72);
  --hover-bg: #fafafa;
  --scroll-track: #f3f4f6;
  --scroll-thumb: #c9ced7;
  --cursor-glow: rgba(37, 99, 235, 0.18);
  --hero-gradient: linear-gradient(105deg, #050505 0%, #2563eb 38%, #0f766e 58%, #050505 100%);
  --accent-line: #2563eb;
}

:root[data-theme="dark"] {
  --bg: #07090d;
  --ink: #f6f7fb;
  --muted: #a7adba;
  --soft: #767f90;
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.18);
  --surface: #11151c;
  --surface-2: #171d26;
  --accent: #7aa7ff;
  --accent-soft: rgba(122, 167, 255, 0.14);
  --shadow: 0 30px 100px rgba(0, 0, 0, 0.46);
  --header-bg: rgba(7, 9, 13, 0.72);
  --panel-bg: linear-gradient(180deg, rgba(24, 29, 39, 0.94), rgba(12, 16, 23, 0.94));
  --panel-plain: #11151c;
  --panel-soft: rgba(18, 23, 32, 0.74);
  --hover-bg: rgba(255, 255, 255, 0.045);
  --scroll-track: #0d1118;
  --scroll-thumb: #343d4c;
  --cursor-glow: rgba(122, 167, 255, 0.2);
  --hero-gradient: linear-gradient(105deg, #f6f7fb 0%, #7aa7ff 36%, #5eead4 58%, #f6f7fb 100%);
  --accent-line: #7aa7ff;
  color-scheme: dark;
}

body {
  background:
    radial-gradient(circle at 18% 12%, rgba(37, 99, 235, 0.055), transparent 34%),
    var(--bg);
}

:root[data-theme="dark"] body {
  background:
    radial-gradient(circle at 20% 8%, rgba(122, 167, 255, 0.12), transparent 34%),
    radial-gradient(circle at 82% 20%, rgba(45, 212, 191, 0.08), transparent 34%),
    var(--bg);
}

.site-header {
  background: var(--header-bg);
}

.header-actions {
  display: inline-flex;
  align-items: center;
  justify-self: end;
  gap: 10px;
}

.header-actions .button-small {
  min-width: 76px;
}

.theme-toggle {
  position: relative;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--panel-soft);
  color: var(--ink);
  overflow: hidden;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.theme-toggle:hover {
  transform: rotate(20deg) translateY(-1px);
  border-color: color-mix(in srgb, var(--accent) 42%, var(--line));
}

.theme-icon {
  grid-area: 1 / 1;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: opacity 180ms ease, transform 180ms ease;
}

.theme-icon-moon {
  opacity: 0;
  transform: translateY(14px) rotate(-30deg);
}

:root[data-theme="dark"] .theme-icon-sun {
  opacity: 0;
  transform: translateY(-14px) rotate(30deg);
}

:root[data-theme="dark"] .theme-icon-moon {
  opacity: 1;
  transform: translateY(0) rotate(0);
}

.cursor-glow {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 1;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--cursor-glow), transparent 64%);
  mix-blend-mode: multiply;
  opacity: 0;
  pointer-events: none;
  transform: translate3d(-50%, -50%, 0);
  transition: opacity 240ms ease;
}

:root[data-theme="dark"] .cursor-glow {
  mix-blend-mode: screen;
}

@media (pointer: fine) {
  body[data-cursor-active="true"] .cursor-glow {
    opacity: 1;
  }
}

::-webkit-scrollbar-track {
  background: var(--scroll-track);
}

::-webkit-scrollbar-thumb {
  background: var(--scroll-thumb);
  border-color: var(--scroll-track);
}

.hero h1 {
  background: var(--hero-gradient);
  background-size: 260% 100%;
  background-clip: text;
  color: transparent;
  animation: titleSweep 9s ease-in-out infinite alternate;
}

.travel-hero-panel,
.travel-stats,
.info-panel,
.journey-card,
.thought-feature,
.future-grid article,
.festival-console {
  background: var(--panel-bg);
}

.countdown-grid div,
.travel-meta span,
.tag-cloud span,
.menu-toggle,
.button-light,
.login-dialog,
.role-switch button.active,
.login-form input,
.icon-button {
  background: var(--panel-soft);
}

.festival-console {
  background:
    radial-gradient(circle at 84% 20%, rgba(37, 99, 235, 0.16), transparent 34%),
    var(--panel-bg);
}

:root[data-theme="dark"] .festival-console {
  background:
    radial-gradient(circle at 84% 18%, rgba(122, 167, 255, 0.18), transparent 36%),
    var(--panel-bg);
}

.glass-slab {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(230, 234, 241, 0.66));
}

:root[data-theme="dark"] .glass-slab {
  border-color: rgba(255, 255, 255, 0.16);
  background:
    linear-gradient(145deg, rgba(30, 37, 51, 0.9), rgba(10, 14, 22, 0.72));
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

:root[data-theme="dark"] .glass-slab::before {
  background:
    linear-gradient(112deg, transparent 0 32%, rgba(255, 255, 255, 0.12) 42%, transparent 54%),
    radial-gradient(circle at 22% 17%, rgba(122, 167, 255, 0.18), transparent 28%);
}

:root[data-theme="dark"] .slab-rim,
:root[data-theme="dark"] .orbital-map,
:root[data-theme="dark"] .countdown-grid div {
  border-color: rgba(255, 255, 255, 0.1);
}

:root[data-theme="dark"] .slab-content {
  color: rgba(246, 247, 251, 0.66);
}

:root[data-theme="dark"] .button-dark {
  background: #f6f7fb;
  color: #07090d;
}

:root[data-theme="dark"] .button-dark:hover {
  background: #dbeafe;
}

:root[data-theme="dark"] .button-light {
  color: var(--ink);
}

:root[data-theme="dark"] .nav {
  color: rgba(246, 247, 251, 0.74);
}

:root[data-theme="dark"] .brand-word {
  background-image: linear-gradient(112deg, #f6f7fb, #8fb3ff 48%, #f6f7fb);
}

:root[data-theme="dark"] .brand-site {
  color: rgba(246, 247, 251, 0.66);
}

:root[data-theme="dark"] .button-small {
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: none;
}

:root[data-theme="dark"] .journey-card.featured {
  background: linear-gradient(180deg, #f6f7fb, #dfe7f8);
  color: #07090d;
}

:root[data-theme="dark"] .journey-card.featured time,
:root[data-theme="dark"] .journey-card.featured p,
:root[data-theme="dark"] .journey-card.featured li {
  color: rgba(7, 9, 13, 0.62);
}

:root[data-theme="dark"] .ambient span:nth-child(1) {
  background: rgba(122, 167, 255, 0.22);
  mix-blend-mode: screen;
}

:root[data-theme="dark"] .ambient span:nth-child(2) {
  background: rgba(45, 212, 191, 0.18);
  mix-blend-mode: screen;
}

:root[data-theme="dark"] .ambient span:nth-child(3) {
  background: rgba(244, 114, 182, 0.16);
  mix-blend-mode: screen;
}

.festival-date,
.festival-rail span,
.travel-meta span,
.tag-cloud span,
.weather-strip span,
.role-switch button,
.login-form label,
.text-link,
.nav {
  color: color-mix(in srgb, var(--ink) 72%, var(--muted));
}

.journey-card {
  position: relative;
  overflow: hidden;
}

.journey-card > * {
  position: relative;
  z-index: 1;
}

.journey-card::after {
  position: absolute;
  right: -8px;
  bottom: -30px;
  content: attr(data-day);
  color: rgba(37, 99, 235, 0.08);
  font-size: 116px;
  font-weight: 760;
  line-height: 1;
  letter-spacing: 0;
  pointer-events: none;
}

.journey-card.featured::after {
  color: rgba(255, 255, 255, 0.13);
}

:root[data-theme="dark"] .journey-card::after {
  color: rgba(122, 167, 255, 0.11);
}

:root[data-theme="dark"] .journey-card.featured::after {
  color: rgba(7, 9, 13, 0.09);
}

.contact-band {
  margin-top: 72px;
  padding: 74px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    radial-gradient(circle at 84% 12%, rgba(37, 99, 235, 0.12), transparent 32%),
    linear-gradient(135deg, rgba(37, 99, 235, 0.06), rgba(20, 184, 166, 0.05) 44%, rgba(255, 255, 255, 0));
}

:root[data-theme="dark"] .contact-band {
  background:
    radial-gradient(circle at 84% 12%, rgba(122, 167, 255, 0.14), transparent 32%),
    linear-gradient(135deg, rgba(122, 167, 255, 0.08), rgba(45, 212, 191, 0.06) 46%, rgba(255, 255, 255, 0.02));
}

.countdown-grid strong {
  display: inline-block;
  transform-origin: center bottom;
}

.countdown-grid strong.is-ticking {
  animation: countTick 420ms cubic-bezier(0.2, 0.82, 0.2, 1);
}

.work-row {
  position: relative;
  overflow: hidden;
}

.work-row::after {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  content: "";
  background: linear-gradient(90deg, var(--accent-line), #14b8a6);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 360ms ease;
}

.work-row:hover::after {
  transform: scaleX(1);
}

.work-row svg {
  transition: transform 180ms ease;
}

.work-row:hover svg {
  transform: translateX(6px);
}

.work-row:hover,
.writing-row:hover {
  background: var(--hover-bg);
}

:root[data-theme="dark"] .login-overlay {
  background: rgba(7, 9, 13, 0.76);
}

:root[data-theme="dark"] .login-visual {
  background:
    radial-gradient(circle at 30% 22%, rgba(122, 167, 255, 0.3), transparent 34%),
    linear-gradient(145deg, #07090d, #111827);
}

@keyframes titleSweep {
  from {
    background-position: 0% 50%;
  }
  to {
    background-position: 100% 50%;
  }
}

@keyframes countTick {
  0% {
    opacity: 0.32;
    filter: blur(4px);
    transform: translateY(10px) scale(0.98);
  }
  100% {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 920px) {
  .site-header {
    grid-template-columns: 1fr auto auto;
  }

  .header-actions {
    gap: 8px;
  }

  .button-small {
    order: 0;
  }

  .menu-toggle {
    order: 0;
  }

  .nav {
    z-index: 3;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(22px);
  }

  :root[data-theme="dark"] .nav {
    background: rgba(17, 21, 28, 0.96);
    box-shadow: 0 18px 54px rgba(0, 0, 0, 0.36);
  }
}

@media (max-width: 640px) {
  .theme-toggle,
  .menu-toggle {
    width: 36px;
    height: 36px;
  }

  .header-actions {
    gap: 6px;
  }

  .contact-band {
    padding: 34px 22px;
    border-radius: 18px;
  }

  .hero h1 {
    max-width: 358px;
    font-size: clamp(30px, 7.9vw, 32px);
    word-break: normal;
    overflow-wrap: anywhere;
    text-wrap: balance;
  }
}

/* Journey focus cards, weather memory, and local publishing */
.journey-card {
  isolation: isolate;
  cursor: pointer;
  transition: transform 220ms ease, background 220ms ease, color 220ms ease,
    border-color 220ms ease, box-shadow 220ms ease, opacity 220ms ease;
}

.journey-card::before {
  position: absolute;
  inset: 0;
  z-index: 0;
  content: "";
  background:
    radial-gradient(circle at 22% 12%, rgba(255, 255, 255, 0.2), transparent 30%),
    linear-gradient(120deg, transparent 0 34%, rgba(255, 255, 255, 0.14) 44%, transparent 56%);
  opacity: 0;
  transform: translateX(-12%);
  transition: opacity 220ms ease, transform 420ms ease;
  pointer-events: none;
}

.journey-grid:has(.journey-card.is-focused) .journey-card:not(.is-focused) {
  opacity: 0.58;
  transform: scale(0.985);
}

.journey-card.is-focused {
  transform: translateY(-8px) scale(1.025);
  border-color: rgba(5, 5, 5, 0.72);
  background:
    radial-gradient(circle at 18% 10%, rgba(37, 99, 235, 0.26), transparent 30%),
    linear-gradient(155deg, #050505, #181a1f);
  color: #fff;
  box-shadow: 0 24px 70px rgba(5, 5, 5, 0.22);
}

.journey-card.is-focused::before {
  opacity: 1;
  transform: translateX(10%);
}

.journey-card.is-focused time,
.journey-card.is-focused p,
.journey-card.is-focused li {
  color: rgba(255, 255, 255, 0.72);
}

.journey-card:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 60%, transparent);
  outline-offset: 4px;
}

:root[data-theme="dark"] .journey-card.is-focused {
  border-color: rgba(246, 247, 251, 0.24);
  background:
    radial-gradient(circle at 18% 10%, rgba(122, 167, 255, 0.3), transparent 30%),
    linear-gradient(155deg, #020304, #10131a);
  color: #fff;
}

.weather-strip span {
  position: relative;
  overflow: hidden;
  transform-origin: left center;
  animation: weatherMemory 5.8s ease-in-out infinite;
}

.weather-strip span:nth-child(2) {
  animation-delay: 0.35s;
}

.weather-strip span:nth-child(3) {
  animation-delay: 0.7s;
}

.weather-strip span:nth-child(4) {
  animation-delay: 1.05s;
}

.weather-strip span::after {
  position: absolute;
  inset: auto 0 -1px;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  transform: translateX(-100%);
  animation: weatherLine 5.8s ease-in-out infinite;
}

.weather-strip span:nth-child(2)::after {
  animation-delay: 0.35s;
}

.weather-strip span:nth-child(3)::after {
  animation-delay: 0.7s;
}

.weather-strip span:nth-child(4)::after {
  animation-delay: 1.05s;
}

.studio-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.86fr);
  gap: 16px;
  margin-top: 18px;
}

.studio-grid.is-public {
  grid-template-columns: minmax(0, 1fr);
}

.studio-grid.is-public .comments-panel {
  width: 100%;
  max-width: none;
}

.admin-heading {
  margin-top: 34px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.admin-heading span {
  display: block;
  color: var(--accent);
  font-size: 12px;
  font-weight: 720;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-heading h3 {
  margin: 8px 0 0;
  font-size: clamp(30px, 5vw, 52px);
  font-weight: 680;
  letter-spacing: 0;
}

.admin-heading p {
  max-width: 560px;
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.publish-panel,
.account-panel,
.comments-panel {
  width: min(100%, 920px);
  margin: 0 auto;
  overflow: hidden;
}

.comments-visual {
  display: grid;
  align-content: end;
  min-height: 150px;
  margin: -26px -26px 24px;
  padding: 24px 26px;
  background:
    radial-gradient(circle at 20% 25%, color-mix(in srgb, var(--accent) 24%, transparent), transparent 32%),
    radial-gradient(circle at 82% 64%, rgba(20, 184, 166, 0.18), transparent 34%),
    linear-gradient(135deg, #10141d, #20242b);
  color: #fff;
}

.comments-visual span {
  color: rgba(255, 255, 255, 0.54);
  font-size: 12px;
  font-weight: 720;
  letter-spacing: 0.14em;
}

.comments-visual strong {
  margin-top: 8px;
  font-family: "Snell Roundhand", "Apple Chancery", "Baskerville", "New York", Georgia, serif;
  font-size: clamp(38px, 5vw, 68px);
  font-style: italic;
  font-weight: 650;
  line-height: 1;
}

.comments-panel {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-bg);
  padding: 26px;
}

.account-panel {
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 9%, transparent), transparent 48%),
    var(--panel-bg);
}

.panel-heading span {
  display: block;
  margin-bottom: 10px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 720;
  text-transform: uppercase;
}

.panel-heading h3 {
  margin: 0;
  font-size: 28px;
  font-weight: 640;
  letter-spacing: 0;
}

.panel-heading p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.48;
}

.publish-form,
.comment-form {
  display: grid;
  grid-template-columns: 1fr 180px;
  gap: 14px;
  margin-top: 22px;
}

.comment-form {
  grid-template-columns: 1fr;
}

.publish-form label,
.comment-form label {
  display: grid;
  gap: 8px;
  color: color-mix(in srgb, var(--ink) 74%, var(--muted));
  font-size: 13px;
  font-weight: 650;
}

.wide-field,
.publish-form button {
  grid-column: 1 / -1;
}

.publish-form input,
.publish-form select,
.publish-form textarea,
.comment-form input,
.comment-form textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--panel-soft);
  color: var(--ink);
  padding: 13px 14px;
  outline: none;
  resize: vertical;
}

.publish-form input:focus,
.publish-form select:focus,
.publish-form textarea:focus,
.comment-form input:focus,
.comment-form textarea:focus {
  border-color: color-mix(in srgb, var(--accent) 72%, var(--line-strong));
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 14%, transparent);
}

.publish-form :disabled,
.publish-form input[readonly],
.comment-form :disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.publish-form input[readonly] {
  cursor: default;
  opacity: 1;
  color: var(--ink);
}

.comment-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.comment-item,
.empty-comments,
.user-item {
  margin: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}

.comment-item span {
  display: block;
  margin-bottom: 8px;
  color: var(--soft);
  font-size: 12px;
  font-weight: 680;
}

.comment-item p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.comment-image {
  display: block;
  width: min(100%, 520px);
  max-height: 360px;
  margin-top: 12px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid var(--line);
}

.empty-comments {
  color: var(--soft);
  font-size: 14px;
}

.users-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.user-item {
  display: grid;
  gap: 6px;
}

.user-item strong {
  color: var(--ink);
  font-size: 15px;
}

.user-item span {
  color: var(--soft);
  font-size: 12px;
}

.manage-delete {
  margin-top: 12px;
  border: 0;
  background: transparent;
  color: #dc2626;
  padding: 0;
  font-size: 12px;
  font-weight: 720;
}

.manage-delete:hover {
  color: #991b1b;
}

.session-note {
  margin: -10px 0 18px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.logout-button {
  width: 100%;
  margin-top: 10px;
}

@keyframes weatherMemory {
  0%,
  100% {
    color: color-mix(in srgb, var(--ink) 72%, var(--muted));
    transform: translateX(0);
  }
  50% {
    color: var(--accent);
    transform: translateX(6px);
  }
}

@keyframes weatherLine {
  0%,
  46% {
    transform: translateX(-100%);
  }
  72%,
  100% {
    transform: translateX(100%);
  }
}

@keyframes weatherFloat {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }

  50% {
    transform: translate3d(-6px, 7px, 0) scale(1.04);
  }
}

@media (max-width: 920px) {
  .studio-grid,
  .publish-form {
    grid-template-columns: 1fr;
  }

  .weather-widgets {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .thought-list .writing-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

@media (max-width: 640px) {
  .weather-widgets {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .hero h1,
  .contact-band h2 {
    overflow-wrap: normal;
    word-break: keep-all;
    text-wrap: balance;
  }

  .contact-band h2 {
    max-width: 11em;
  }
}

/* Final thematic surfaces */
.festival-console {
  --festival-wash: color-mix(in srgb, var(--festival-accent) 18%, #f8fbff);
  --festival-warm: color-mix(in srgb, var(--festival-accent-2) 16%, #fffaf2);
  border-color: color-mix(in srgb, var(--festival-accent) 28%, var(--line));
  background:
    radial-gradient(circle at 82% 18%, color-mix(in srgb, var(--festival-accent) 30%, transparent), transparent 34%),
    radial-gradient(circle at 18% 84%, color-mix(in srgb, var(--festival-accent-2) 22%, transparent), transparent 38%),
    linear-gradient(118deg, color-mix(in srgb, var(--festival-accent) 12%, #fff) 0%, #fff 38%, var(--festival-wash) 68%, var(--festival-warm) 100%);
  box-shadow:
    0 22px 80px color-mix(in srgb, var(--festival-accent) 14%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.78);
  transition: background 420ms ease, border-color 420ms ease, box-shadow 420ms ease;
}

.festival-console::before {
  position: absolute;
  inset: -22% -12% auto auto;
  width: 52%;
  height: 72%;
  content: "";
  border-radius: 44%;
  background:
    radial-gradient(circle at 48% 42%, color-mix(in srgb, var(--festival-accent) 20%, transparent), transparent 44%),
    conic-gradient(from 120deg, transparent, color-mix(in srgb, var(--festival-accent-2) 16%, transparent), transparent 70%);
  filter: blur(4px);
  opacity: 0.85;
  animation: festivalAura 18s ease-in-out infinite alternate;
  pointer-events: none;
}

.festival-console::after {
  position: absolute;
  inset: auto -8% -28% 28%;
  height: 210px;
  content: "";
  background: radial-gradient(circle, color-mix(in srgb, var(--festival-accent-2) 18%, transparent), transparent 64%);
  filter: blur(22px);
  pointer-events: none;
}

.festival-main,
.countdown-grid,
.festival-orbit {
  position: relative;
  z-index: 1;
}

.festival-rail span.is-active {
  border-color: color-mix(in srgb, var(--active-festival) 72%, var(--ink));
  background: var(--active-festival);
  color: #fff;
  box-shadow: 0 12px 32px color-mix(in srgb, var(--active-festival) 22%, transparent);
}

.travel-section {
  --travel-accent: #4f6fbd;
  --travel-mist: #dfe9ff;
  --travel-earth: #79a58b;
}

.travel-directory {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 0.62fr);
  gap: 14px;
  margin-bottom: 22px;
}

.travel-index-card {
  position: relative;
  min-height: 128px;
  padding: 22px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--travel-accent) 18%, var(--line));
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 82% 22%, color-mix(in srgb, var(--travel-accent) 16%, transparent), transparent 34%),
    linear-gradient(150deg, #fff, color-mix(in srgb, var(--travel-mist) 38%, #fff));
}

.travel-index-card.is-pending {
  background:
    radial-gradient(circle at 22% 24%, color-mix(in srgb, var(--travel-earth) 16%, transparent), transparent 32%),
    linear-gradient(150deg, #fff, color-mix(in srgb, var(--travel-earth) 12%, #f8fbff));
}

.travel-index-card span,
.travel-subheading span {
  display: block;
  margin-bottom: 12px;
  color: var(--soft);
  font-size: 12px;
  font-weight: 720;
  text-transform: uppercase;
}

.travel-index-card strong {
  display: block;
  font-size: clamp(22px, 2vw, 30px);
  line-height: 1.1;
}

.travel-index-card p {
  max-width: 42em;
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.travel-subheading {
  margin: 22px 0 14px;
}

.travel-subheading h3 {
  margin: 0;
  font-size: clamp(28px, 3.2vw, 46px);
  line-height: 1.06;
}

.travel-hero-panel {
  border-color: color-mix(in srgb, var(--travel-accent) 18%, var(--line));
  background:
    radial-gradient(circle at 78% 78%, color-mix(in srgb, var(--travel-mist) 68%, transparent), transparent 42%),
    linear-gradient(180deg, #fff, color-mix(in srgb, var(--travel-mist) 18%, #fff));
}

.travel-hero-panel::before {
  position: absolute;
  inset: 34px 20px 34px;
  z-index: 0;
  content: "";
  background:
    linear-gradient(145deg, transparent 0 18%, color-mix(in srgb, var(--travel-earth) 22%, transparent) 19% 27%, transparent 28%),
    linear-gradient(153deg, transparent 0 35%, color-mix(in srgb, var(--travel-accent) 18%, transparent) 36% 45%, transparent 46%),
    linear-gradient(28deg, transparent 0 55%, color-mix(in srgb, var(--travel-earth) 16%, transparent) 56% 63%, transparent 64%),
    radial-gradient(ellipse at 42% 76%, color-mix(in srgb, var(--travel-earth) 12%, transparent), transparent 46%);
  filter: blur(0.35px);
  opacity: 0.9;
  mask-image: linear-gradient(180deg, transparent 0%, #000 24%, #000 84%, transparent 100%);
  pointer-events: none;
}

.orbital-map,
.poem,
.travel-meta {
  position: relative;
  z-index: 1;
}

.journey-card,
.info-panel,
.future-grid article,
.thought-feature,
.publish-panel,
.comments-panel,
.account-panel {
  background:
    radial-gradient(circle at 88% 14%, color-mix(in srgb, var(--accent) 9%, transparent), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), var(--panel-bg));
}

.journey-card:nth-child(1) { --card-tint: #8fb2ff; }
.journey-card:nth-child(2) { --card-tint: #78a88a; }
.journey-card:nth-child(3) { --card-tint: #d4a373; }
.journey-card:nth-child(4) { --card-tint: #9ca3af; }

.journey-card {
  background:
    radial-gradient(circle at 86% 88%, color-mix(in srgb, var(--card-tint, var(--accent)) 13%, transparent), transparent 38%),
    linear-gradient(180deg, #fff, color-mix(in srgb, var(--card-tint, var(--accent)) 6%, #fff));
}

.travel-detail-grid {
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr) minmax(0, 1fr);
}

.weather-widgets {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.weather-card {
  min-width: 0;
  min-height: 124px;
  padding: 16px;
}

.weather-card strong {
  display: block;
  max-width: 4.8em;
  margin-top: 22px;
  font-size: clamp(28px, 2.3vw, 40px);
  line-height: 0.98;
  letter-spacing: 0;
  word-break: keep-all;
}

.weather-card em {
  margin-top: 10px;
}

.weather-card i {
  animation: weatherFloat 5.6s ease-in-out infinite;
}

.login-visual {
  align-items: center;
  justify-content: center;
  text-align: center;
}

.login-visual strong {
  margin: 18px 0;
  animation: floatGlyph 7s ease-in-out infinite;
}

.login-visual p {
  margin: 0;
}

.future-grid {
  grid-template-columns: repeat(5, 1fr);
}

.future-grid article {
  cursor: pointer;
}

.future-grid article:nth-child(1) { --reserve-color: #3b82f6; }
.future-grid article:nth-child(2) { --reserve-color: #7c3aed; }
.future-grid article:nth-child(3) { --reserve-color: #0f766e; }
.future-grid article:nth-child(4) { --reserve-color: #ea580c; }
.future-grid article:nth-child(5) { --reserve-color: #4338ca; }

.future-grid article {
  background:
    radial-gradient(circle at 82% 18%, color-mix(in srgb, var(--reserve-color) 14%, transparent), transparent 36%),
    linear-gradient(180deg, #fff, color-mix(in srgb, var(--reserve-color) 5%, #fff));
}

.future-grid article.is-selected {
  border-color: color-mix(in srgb, var(--reserve-color) 54%, var(--line));
  box-shadow: 0 22px 70px color-mix(in srgb, var(--reserve-color) 16%, transparent);
}

.poster-wall,
.food-board {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.poster-wall article,
.food-board article {
  position: relative;
  min-height: 280px;
  overflow: hidden;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.poster-wall article {
  display: flex;
  flex-direction: column;
  justify-content: end;
  color: #fff;
  background:
    radial-gradient(circle at 30% 18%, rgba(255, 255, 255, 0.18), transparent 32%),
    linear-gradient(150deg, #0b1020, #252047 48%, #111827);
}

.poster-wall article:nth-child(2) {
  background: linear-gradient(150deg, #111827, #1e3a8a 48%, #030712);
}

.poster-wall article:nth-child(3) {
  background: linear-gradient(150deg, #24122f, #be5b71 54%, #111827);
}

.poster-wall article:nth-child(4) {
  background: linear-gradient(150deg, #2b1740, #f59e0b 58%, #151515);
}

.poster-wall article::before {
  position: absolute;
  inset: 14px;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  opacity: 0.72;
}

.poster-wall span,
.food-board span {
  color: var(--soft);
  font-size: 12px;
  font-weight: 720;
  text-transform: uppercase;
}

.poster-wall strong,
.food-board strong {
  display: block;
  margin-top: auto;
  font-size: clamp(24px, 2.4vw, 34px);
  line-height: 1.05;
}

.poster-wall em,
.food-board p {
  display: block;
  max-width: 14em;
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.72);
  font-style: normal;
  line-height: 1.45;
}

.food-board {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.food-board article {
  min-height: 220px;
  background:
    radial-gradient(circle at 84% 16%, rgba(234, 88, 12, 0.14), transparent 36%),
    linear-gradient(145deg, #fff, #fff7ed);
}

.food-board strong,
.food-board p {
  color: var(--ink);
}

.food-board p {
  color: var(--muted);
}

@keyframes festivalAura {
  from {
    transform: translate3d(0, 0, 0) rotate(0deg) scale(1);
  }
  to {
    transform: translate3d(-24px, 18px, 0) rotate(10deg) scale(1.05);
  }
}

@keyframes floatGlyph {
  0%,
  100% {
    transform: translateY(0) rotate(-2deg);
  }
  50% {
    transform: translateY(-10px) rotate(2deg);
  }
}

@media (max-width: 1100px) {
  .future-grid,
  .poster-wall {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 920px) {
  .travel-directory,
  .travel-detail-grid,
  .food-board {
    grid-template-columns: 1fr;
  }
}

/* Layout corrections after themed surfaces */
.festival-console {
  min-height: 285px;
  padding: 24px;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 0.82fr);
}

.festival-main {
  min-height: 230px;
}

.festival-main h3 {
  font-size: clamp(36px, 4.2vw, 64px);
}

.countdown-grid div {
  min-height: 132px;
  padding: 16px;
}

.countdown-grid strong {
  font-size: clamp(34px, 4.3vw, 62px);
}

.festival-orbit {
  right: -108px;
  top: -128px;
  opacity: 0.62;
}

.travel-directory {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.travel-index-card {
  min-height: 148px;
  cursor: pointer;
  transition: transform 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}

.travel-index-card:hover,
.travel-index-card.is-active {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--travel-accent) 42%, var(--line));
  box-shadow: 0 18px 54px color-mix(in srgb, var(--travel-accent) 16%, transparent);
}

.travel-panel[hidden] {
  display: none;
}

.travel-panel.is-active {
  animation: panelIn 320ms ease both;
}

.travel-coming {
  min-height: 360px;
  padding: 42px;
  border: 1px solid color-mix(in srgb, var(--travel-earth) 24%, var(--line));
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 78% 28%, color-mix(in srgb, var(--travel-earth) 18%, transparent), transparent 36%),
    linear-gradient(135deg, #fff, color-mix(in srgb, var(--travel-mist) 22%, #fff));
}

.travel-coming span {
  display: block;
  color: var(--soft);
  font-size: 12px;
  font-weight: 760;
  text-transform: uppercase;
}

.travel-coming h3 {
  margin: 18px 0 0;
  font-size: clamp(44px, 6vw, 88px);
  line-height: 0.98;
}

.travel-coming p {
  max-width: 560px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
}

.travel-hero-panel {
  min-height: 410px;
}

.orbital-map {
  position: absolute;
  z-index: 0;
}

.travel-hero-panel::before,
.travel-hero-panel::after {
  z-index: 0;
}

.poem {
  z-index: 2;
  max-width: min(620px, 70%);
  font-size: clamp(34px, 4.4vw, 64px);
}

.travel-meta {
  position: absolute;
  z-index: 3;
}

.travel-meta span {
  backdrop-filter: blur(14px);
}

.future-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.future-grid article {
  min-height: 200px;
  padding: 22px;
}

.future-grid h3 {
  font-size: clamp(22px, 1.9vw, 30px);
}

.future-grid p {
  font-size: 14px;
}

.poster-wall,
.food-board {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.poster-wall {
  background:
    radial-gradient(circle at 78% 12%, rgba(67, 56, 202, 0.14), transparent 34%),
    linear-gradient(135deg, #f8f9ff, #fff);
}

.food-board {
  background:
    radial-gradient(circle at 84% 16%, rgba(234, 88, 12, 0.15), transparent 36%),
    linear-gradient(135deg, #fffaf4, #fff);
}

@keyframes panelIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1100px) {
  .festival-console {
    grid-template-columns: 1fr;
  }

  .future-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .travel-directory,
  .future-grid,
  .poster-wall,
  .food-board {
    grid-template-columns: 1fr;
  }

  .poem {
    max-width: 100%;
    font-size: 34px;
  }
}

.section,
.contact-band {
  scroll-margin-top: 108px;
}

.shelf-section {
  --shelf-accent: #3b82f6;
}

.photo-section { --shelf-accent: #3b82f6; }
.books-section { --shelf-accent: #7c3aed; }
.research-section { --shelf-accent: #0f766e; }
.cinema-section { --shelf-accent: #4338ca; }
.food-section { --shelf-accent: #ea580c; }

.shelf-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding: 24px;
  border: 1px solid color-mix(in srgb, var(--shelf-accent) 18%, var(--line));
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 82% 16%, color-mix(in srgb, var(--shelf-accent) 15%, transparent), transparent 34%),
    linear-gradient(135deg, color-mix(in srgb, var(--shelf-accent) 5%, #fff), #fff);
}

.shelf-board article {
  min-height: 220px;
  padding: 22px;
  border: 1px solid color-mix(in srgb, var(--shelf-accent) 15%, var(--line));
  border-radius: 8px;
  background:
    radial-gradient(circle at 82% 18%, color-mix(in srgb, var(--shelf-accent) 12%, transparent), transparent 36%),
    rgba(255, 255, 255, 0.76);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.shelf-board article:hover {
  transform: translateY(-5px);
  border-color: color-mix(in srgb, var(--shelf-accent) 34%, var(--line));
  box-shadow: 0 18px 52px color-mix(in srgb, var(--shelf-accent) 15%, transparent);
}

.shelf-board span {
  display: block;
  margin-bottom: 14px;
  color: color-mix(in srgb, var(--shelf-accent) 72%, var(--soft));
  font-size: 12px;
  font-weight: 760;
  text-transform: uppercase;
}

.shelf-board strong {
  display: block;
  font-size: clamp(24px, 2.4vw, 34px);
  line-height: 1.08;
}

.shelf-board p {
  max-width: 18em;
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.56;
}

.cinema-section .poster-wall,
.food-section .food-board {
  border-color: color-mix(in srgb, var(--shelf-accent) 18%, var(--line));
}

.future-grid article.is-selected {
  transform: translateY(-5px);
}

@media (max-width: 920px) {
  .shelf-board {
    grid-template-columns: 1fr;
  }
}

.photo-section > .shelf-board,
.books-section > .shelf-board,
.research-section > .shelf-board {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding: 24px;
  border: 1px solid color-mix(in srgb, var(--shelf-accent) 22%, var(--line));
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 82% 16%, color-mix(in srgb, var(--shelf-accent) 16%, transparent), transparent 34%),
    linear-gradient(135deg, color-mix(in srgb, var(--shelf-accent) 6%, #fff), #fff);
}

.photo-section > .shelf-board > article,
.books-section > .shelf-board > article,
.research-section > .shelf-board > article {
  display: grid;
  align-content: start;
  min-height: 220px;
  padding: 22px;
  border: 1px solid color-mix(in srgb, var(--shelf-accent) 18%, var(--line));
  border-radius: 8px;
  background:
    radial-gradient(circle at 80% 18%, color-mix(in srgb, var(--shelf-accent) 13%, transparent), transparent 36%),
    rgba(255, 255, 255, 0.78);
}

@media (max-width: 920px) {
  .photo-section > .shelf-board,
  .books-section > .shelf-board,
  .research-section > .shelf-board {
    grid-template-columns: 1fr;
  }
}

/* Final layout and publishing polish */
.cursor-glow {
  z-index: 60;
  width: 260px;
  height: 260px;
  filter: saturate(1.08);
}

.festival-console {
  min-height: 250px;
  padding: 20px 24px;
  grid-template-columns: minmax(0, 0.86fr) minmax(320px, 0.78fr);
  align-items: center;
}

.festival-main {
  min-height: 198px;
  justify-content: center;
}

.festival-main h3 {
  margin: 28px 0 10px;
  font-size: clamp(32px, 3.6vw, 56px);
}

.festival-main p {
  max-width: 380px;
  font-size: 15px;
}

.festival-date {
  margin-top: 18px;
}

.countdown-grid {
  align-self: center;
  gap: 10px;
}

.countdown-grid div {
  min-height: 112px;
  padding: 14px;
}

.countdown-grid strong {
  font-size: clamp(30px, 3.7vw, 54px);
}

.festival-orbit {
  transform: scale(0.72);
  transform-origin: center;
  opacity: 0.46;
}

.future-grid article:nth-child(1) { --reserve-color: #4338ca; }
.future-grid article:nth-child(2) { --reserve-color: #ea580c; }
.future-grid article:nth-child(3) { --reserve-color: #3b82f6; }
.future-grid article:nth-child(4) { --reserve-color: #7c3aed; }
.future-grid article:nth-child(5) { --reserve-color: #0f766e; }

.travel-hero-panel {
  min-height: 360px;
  isolation: isolate;
}

.travel-hero-panel::before {
  inset: 26px 28px 34px;
  opacity: 0.34;
  filter: blur(1.8px);
}

.travel-hero-panel::after,
.orbital-map {
  opacity: 0.18;
}

.poem {
  max-width: min(720px, 72%);
  text-shadow:
    0 2px 0 rgba(255, 255, 255, 0.72),
    0 18px 42px rgba(255, 255, 255, 0.5);
}

.travel-meta {
  left: 28px;
  right: 28px;
  bottom: 24px;
}

.category-posts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.category-posts[hidden] {
  display: none;
}

.category-post {
  min-width: 0;
  padding: 18px;
  border: 1px solid color-mix(in srgb, var(--shelf-accent, var(--accent)) 18%, var(--line));
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 86% 14%, color-mix(in srgb, var(--shelf-accent, var(--accent)) 12%, transparent), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), var(--panel-bg));
  box-shadow: 0 16px 48px color-mix(in srgb, var(--shelf-accent, var(--accent)) 8%, transparent);
}

.category-post span,
.writing-row.user-post span {
  display: block;
  color: color-mix(in srgb, var(--shelf-accent, var(--accent)) 70%, var(--soft));
  font-size: 12px;
  font-weight: 760;
}

.category-post strong,
.writing-row.user-post strong {
  display: block;
  margin-top: 10px;
  color: var(--ink);
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1.16;
}

.category-post p,
.writing-row.user-post p {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.58;
}

.post-image {
  display: block;
  width: 100%;
  max-height: 360px;
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  object-fit: cover;
  aspect-ratio: 16 / 10;
  background: var(--surface);
}

.writing-row.user-post .post-image {
  max-width: 420px;
}

.publish-form {
  grid-template-columns: minmax(0, 1fr) 180px 150px;
}

:root[data-theme="dark"] .festival-console,
:root[data-theme="dark"] .travel-index-card,
:root[data-theme="dark"] .travel-coming,
:root[data-theme="dark"] .travel-hero-panel,
:root[data-theme="dark"] .poster-wall,
:root[data-theme="dark"] .food-board,
:root[data-theme="dark"] .shelf-board,
:root[data-theme="dark"] .category-post,
:root[data-theme="dark"] .info-panel,
:root[data-theme="dark"] .comments-panel,
:root[data-theme="dark"] .publish-panel,
:root[data-theme="dark"] .account-panel {
  border-color: color-mix(in srgb, var(--accent) 30%, rgba(255, 255, 255, 0.14));
  background:
    radial-gradient(circle at 84% 16%, color-mix(in srgb, var(--accent) 20%, transparent), transparent 36%),
    linear-gradient(145deg, rgba(22, 27, 37, 0.92), rgba(10, 13, 20, 0.96));
}

:root[data-theme="dark"] .food-board article,
:root[data-theme="dark"] .shelf-board article,
:root[data-theme="dark"] .category-post,
:root[data-theme="dark"] .comment-item,
:root[data-theme="dark"] .empty-comments,
:root[data-theme="dark"] .user-item {
  background:
    radial-gradient(circle at 84% 18%, color-mix(in srgb, var(--shelf-accent, var(--accent)) 18%, transparent), transparent 36%),
    rgba(255, 255, 255, 0.055);
  border-color: rgba(255, 255, 255, 0.14);
}

:root[data-theme="dark"] .food-board strong,
:root[data-theme="dark"] .food-board p,
:root[data-theme="dark"] .shelf-board strong,
:root[data-theme="dark"] .category-post strong,
:root[data-theme="dark"] .writing-row.user-post strong {
  color: var(--ink);
}

:root[data-theme="dark"] .shelf-board p,
:root[data-theme="dark"] .category-post p,
:root[data-theme="dark"] .writing-row.user-post p,
:root[data-theme="dark"] .comment-item p {
  color: var(--muted);
}

@media (max-width: 1100px) {
  .festival-console,
  .publish-form {
    grid-template-columns: 1fr;
  }

  .countdown-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .festival-console {
    min-height: 0;
    padding: 18px;
  }

  .festival-main {
    min-height: 0;
  }

  .countdown-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .countdown-grid div {
    min-height: 94px;
  }

  .travel-hero-panel {
    min-height: 320px;
  }

  .poem {
    max-width: 100%;
    font-size: clamp(30px, 11vw, 44px);
  }

  .travel-meta {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    margin-top: 22px;
  }

  .category-posts {
    grid-template-columns: 1fr;
  }
}

/* Final scale pass: keep the festival panel cinematic, but not oversized. */
.cursor-glow {
  z-index: 999;
  pointer-events: none;
}

.festival-console {
  min-height: 360px;
  padding: clamp(28px, 4vw, 48px);
  grid-template-columns: minmax(0, 0.92fr) minmax(520px, 0.82fr);
  align-items: end;
  overflow: hidden;
}

.festival-main {
  min-height: 260px;
  justify-content: end;
}

.festival-main h3 {
  margin: 34px 0 14px;
  font-size: clamp(58px, 6.1vw, 108px);
  line-height: 0.98;
}

.festival-main p {
  max-width: 620px;
  color: color-mix(in srgb, var(--ink) 58%, var(--muted));
  font-size: clamp(18px, 1.45vw, 25px);
  font-weight: 620;
  line-height: 1.52;
}

.festival-date {
  margin-top: 22px;
  color: color-mix(in srgb, var(--ink) 86%, var(--muted));
  font-size: clamp(18px, 1.25vw, 23px);
  font-weight: 820;
}

.festival-status {
  width: fit-content;
  padding: 9px 16px;
  font-size: 15px;
}

.countdown-grid {
  align-self: end;
  gap: 14px;
}

.countdown-grid div {
  min-height: 176px;
  padding: 22px;
}

.countdown-grid strong {
  font-size: clamp(54px, 5.2vw, 92px);
}

.festival-orbit {
  transform: scale(0.88);
  opacity: 0.34;
}

@media (max-width: 1200px) {
  .festival-console {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .festival-main {
    min-height: 0;
  }

  .countdown-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .countdown-grid div {
    min-height: 138px;
  }
}

@media (max-width: 760px) {
  .festival-console {
    padding: 22px;
  }

  .festival-main h3 {
    font-size: clamp(46px, 14vw, 70px);
  }

  .festival-main p {
    font-size: 17px;
  }

  .festival-date {
    font-size: 17px;
  }

  .countdown-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .countdown-grid div {
    min-height: 112px;
  }
}
/* Final interaction and responsive fixes */
.header-logout {
  min-width: 78px;
}

.toast {
  position: fixed;
  right: max(20px, env(safe-area-inset-right));
  bottom: max(20px, env(safe-area-inset-bottom));
  z-index: 120;
  max-width: min(420px, calc(100vw - 32px));
  padding: 14px 18px;
  border: 1px solid rgba(17, 24, 39, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #111827;
  box-shadow: 0 18px 58px rgba(15, 23, 42, 0.18);
  backdrop-filter: blur(18px);
  font-weight: 800;
}

.toast[data-tone="success"] {
  border-color: rgba(34, 197, 94, 0.28);
  color: #166534;
}

.toast[data-tone="error"] {
  border-color: rgba(239, 68, 68, 0.28);
  color: #991b1b;
}

.toast[data-tone="warning"] {
  border-color: rgba(245, 158, 11, 0.32);
  color: #92400e;
}

:root[data-theme="dark"] .toast {
  background: rgba(15, 23, 42, 0.88);
  border-color: rgba(255, 255, 255, 0.16);
  color: #f8fafc;
}

.thought-feature {
  min-height: clamp(300px, 34vw, 460px);
  padding: clamp(28px, 4vw, 56px);
}

.thought-feature h3 {
  max-width: 13ch;
  font-size: clamp(38px, 4.8vw, 72px);
  line-height: 1.08;
}

.thought-feature p {
  max-width: 780px;
  font-size: clamp(17px, 1.18vw, 22px);
  line-height: 1.8;
}

.publish-form input,
.publish-form select,
.publish-form textarea,
.comment-form textarea,
.comment-form input,
.login-form input {
  max-width: 100%;
}

@media (max-width: 920px) {
  .site-header {
    max-width: calc(100% - 24px);
  }

  .header-actions {
    justify-content: flex-end;
  }

  .header-logout {
    min-width: 64px;
    padding-inline: 16px;
  }

  .publish-form {
    grid-template-columns: 1fr;
  }

  .publish-form label:nth-child(4),
  .publish-form button {
    grid-column: 1;
  }
}

@media (max-width: 640px) {
  html,
  body {
    overflow-x: hidden;
  }

  .cursor-glow {
    display: none;
  }

  .ambient {
    inset: 0;
    overflow: hidden;
  }

  .ambient span {
    max-width: 58vw;
    max-height: 58vw;
  }

  .site-shell,
  .section,
  .hero,
  .footer {
    width: 100%;
    max-width: 100%;
  }

  .site-header {
    min-height: 68px;
    padding: 10px 12px;
    gap: 8px;
  }

  .brand {
    min-width: 0;
    transform: scale(0.82);
    transform-origin: left center;
  }

  .header-actions {
    gap: 8px;
  }

  .theme-toggle,
  .button-small,
  .menu-toggle {
    height: 42px;
  }

  .button-small {
    min-width: 68px;
    padding-inline: 14px;
  }

  .header-logout {
    min-width: 58px;
    padding-inline: 12px;
  }

  .hero {
    min-height: auto;
    padding: 42px 16px 34px;
  }

  .hero h1 {
    font-size: clamp(44px, 12vw, 64px);
    line-height: 1.08;
  }

  .hero-copy p {
    font-size: 18px;
    line-height: 1.75;
  }

  .thought-layout {
    grid-template-columns: 1fr;
  }

  .thought-feature {
    min-height: 260px;
    padding: 26px;
  }

  .thought-feature h3 {
    max-width: 12ch;
    font-size: clamp(34px, 10vw, 48px);
  }

  .thought-list .writing-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .festival-console {
    min-height: auto;
    padding: 22px;
    overflow: hidden;
  }

  .festival-orbit {
    width: min(210px, 58vw);
    height: min(210px, 58vw);
    right: -64px;
    bottom: -32px;
  }

  .countdown-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .countdown-grid div {
    min-height: 96px;
    padding: 18px;
  }

  .countdown-grid strong {
    font-size: clamp(42px, 18vw, 72px);
  }

  .publish-panel,
  .comments-panel,
  .account-panel,
  .users-panel {
    padding: 24px 18px;
    border-radius: 18px;
    overflow: hidden;
  }

  .comments-visual {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }

  .login-dialog {
    width: min(100% - 20px, 560px);
    max-height: calc(100vh - 20px);
    overflow: auto;
  }

  .login-visual {
    min-height: 300px;
  }

  .login-form {
    padding: 30px 22px;
  }

  .login-form h2 {
    font-size: clamp(54px, 16vw, 82px);
  }

  .toast {
    left: 16px;
    right: 16px;
    bottom: 16px;
    border-radius: 18px;
  }
}
