: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: 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;
}

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: 15px;
  font-weight: 650;
  letter-spacing: 0;
}

.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: 36px;
  padding: 0 14px;
  font-size: 13px;
}

.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 {
  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%, rgba(37, 99, 235, 0.14), 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 rgba(37, 99, 235, 0.2);
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--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 rgba(5, 5, 5, 0.08);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(18px);
}

.countdown-grid strong {
  font-size: clamp(36px, 5vw, 70px);
  font-weight: 650;
  line-height: 1;
  letter-spacing: 0;
}

.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 rgba(37, 99, 235, 0.12);
  border-radius: 50%;
}

.festival-orbit span {
  position: absolute;
  border-radius: 50%;
  background: var(--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;
}

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 {
  background: #050505;
  color: #fff;
}

.journey-card.featured time,
.journey-card.featured p,
.journey-card.featured 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 {
  padding: 24px;
}

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

.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 a:hover {
  padding-left: 12px;
  color: var(--accent);
}

.thought-list strong {
  display: block;
  font-size: 21px;
  font-weight: 620;
  line-height: 1.25;
}

.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 30% 22%, rgba(37, 99, 235, 0.3), transparent 34%),
    linear-gradient(145deg, #070707, #25282e);
  color: #fff;
}

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

.login-visual strong {
  margin-top: 12px;
  font-size: 42px;
  font-weight: 650;
  line-height: 1;
}

.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;
}

.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: anywhere;
    word-break: break-all;
    text-wrap: auto;
  }

  .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;
  }
}
