*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; background: #080809; color: #edeae5; font-family: 'DM Mono', monospace; overflow: hidden; }
#gc { position: fixed; inset: 0; z-index: 0; }
.vig { position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(ellipse 78% 78% at 50% 50%, transparent 18%, #080809 100%); }

.liquid-glass {
  background: rgba(255,255,255,0.01);
  background-blend-mode: luminosity;
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  border: none;
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.1);
  position: relative; overflow: hidden;
}
.liquid-glass::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  padding: 1.4px;
  background: linear-gradient(180deg,
    rgba(255,255,255,0.45) 0%, rgba(255,255,255,0.15) 20%,
    rgba(255,255,255,0) 40%, rgba(255,255,255,0) 60%,
    rgba(255,255,255,0.15) 80%, rgba(255,255,255,0.45) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  pointer-events: none;
}

.nav-wrapper {
  position: fixed; top: 14px; left: 0; right: 0;
  z-index: 100;
  display: flex; justify-content: center;
  opacity: 0; animation: rise 0.6s 0.1s forwards;
  pointer-events: none;
}
.nav {
  pointer-events: all;
  position: relative;
  width: min(540px, 70vw);
  height: 44px;
  border-radius: 14px;
  background: rgba(14,14,16,0.6);
  backdrop-filter: blur(20px) saturate(180%); -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.07), 0 2px 24px rgba(0,0,0,0.5);
  display: flex; align-items: center;
}
.nav-logo {
  position: absolute; top: 50%; left: 16px;
  transform: translateY(-50%);
  display: flex; align-items: center;
  text-decoration: none; z-index: 2;
}
.nav-logo img { height: 20px; width: auto; display: block; }
.nav-right {
  position: absolute; top: 50%; right: 12px;
  transform: translateY(-50%); z-index: 2;
}
.nav-btn {
  background: none; border: none; cursor: pointer;
  font-family: 'DM Mono', monospace; font-size: 12px;
  color: rgba(237,234,229,0.42); letter-spacing: 0.02em;
  padding: 0; line-height: 1;
  transition: color 0.25s; white-space: nowrap;
}
.nav-btn:hover {
  color: rgba(237,234,229,1);
  text-shadow: 0 0 14px rgba(237,234,229,0.4);
}

.page {
  position: relative; z-index: 10;
  height: 100dvh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center; padding: 0 24px;
}
.eye { font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(237,234,229,0.28); margin-bottom: 28px;
  opacity: 0; animation: rise 0.8s 0.25s forwards; }
h1 { font-family: 'Playfair Display', serif;
  font-size: clamp(34px, 5.6vw, 72px); font-weight: 400;
  line-height: 1.06; letter-spacing: -0.02em; margin-bottom: 12px;
  opacity: 0; animation: rise 0.8s 0.4s forwards; }
h1 em { font-style: italic; color: rgba(237,234,229,0.38); }
.sub { font-size: 12px; color: rgba(237,234,229,0.28); letter-spacing: 0.04em;
  margin-bottom: 48px; opacity: 0; animation: rise 0.8s 0.55s forwards; }

.cd { display: flex; align-items: flex-start; margin-bottom: 48px;
  opacity: 0; animation: rise 0.8s 0.7s forwards; }
.unit { display: flex; flex-direction: column; align-items: center; width: clamp(62px, 9vw, 90px); }
.num { font-family: 'Playfair Display', serif;
  font-size: clamp(44px, 8.5vw, 100px); font-weight: 400;
  line-height: 1; letter-spacing: -0.01em; display: block; }
.lbl { font-size: clamp(7px, 0.9vw, 9px); letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(237,234,229,0.22); margin-top: 8px; }
.sep { font-family: 'DM Mono', monospace;
  font-size: clamp(36px, 6.5vw, 78px); font-weight: 300;
  color: rgba(237,234,229,0.1); line-height: 1;
  padding: 0 clamp(2px, 0.4vw, 6px);
  animation: blink 2s step-start infinite; }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0.1} }

.email-row { display: flex; align-items: center;
  width: 100%; max-width: 400px;
  opacity: 0; animation: rise 0.8s 0.9s forwards; }
.input-wrap { flex: 1; min-width: 0; display: flex; align-items: center;
  border-radius: 100px 0 0 100px;
  border: 1px solid rgba(237,234,229,0.12); border-right: none;
  background: rgba(237,234,229,0.07);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  transition: border-color 0.25s; overflow: hidden; }
.input-wrap:focus-within { border-color: rgba(237,234,229,0.25); }
.input-wrap input { flex: 1; min-width: 0; background: transparent; border: none; outline: none;
  color: #edeae5; font-family: 'DM Mono', monospace;
  font-size: 13px; padding: 12px 18px; letter-spacing: 0.01em; }
.input-wrap input::placeholder { color: rgba(237,234,229,0.24); }
.gbtn { flex-shrink: 0; position: relative; cursor: pointer;
  appearance: none; outline: none; border: none;
  font-family: 'DM Mono', monospace; font-size: 11px;
  letter-spacing: 0.07em; text-transform: uppercase;
  background: none; border-radius: 0 100px 100px 0;
  -webkit-tap-highlight-color: transparent; padding: 0; }
.gbtn-inner { display: block; padding: 12px 20px;
  background: #edeae5; color: #080809;
  border-radius: 0 100px 100px 0;
  line-height: 1; white-space: nowrap; transition: opacity 0.2s; }
.gbtn:hover .gbtn-inner { opacity: 0.88; }
.gbtn:active .gbtn-inner { opacity: 0.7; }
.gbtn:disabled { pointer-events: none; opacity: 0.4; }
.glines { position: absolute; inset: -2px; mix-blend-mode: screen;
  pointer-events: none; z-index: 2; border-radius: 0 100px 100px 0; overflow: hidden; }
.glines > div { position: absolute; inset: 0; }
.glines > div:last-child { transform: rotate(180deg); }
.glines svg { display: block; position: absolute; inset: 0;
  overflow: visible; fill: none; stroke-width: 1; stroke: #c9e9ff;
  width: 100%; height: 100%; stroke-dasharray: 2 10; stroke-dashoffset: 14; opacity: 0; }
.glines svg:nth-child(1) { stroke: #f0edea; }
.glines svg:nth-child(2) { stroke-width: 6px; filter: blur(14px); }
.glines svg:nth-child(3) { stroke-width: 5px; filter: blur(5px); }
.glines svg:nth-child(4) { stroke-width: 10px; filter: blur(40px); }
.gbtn.glow .glines svg { animation: glowAnim 0.9s linear forwards; }
@keyframes glowAnim { 30%,55%{opacity:1} 100%{stroke-dashoffset:4;opacity:0} }
.done-msg { display: none; font-size: 13px; color: rgba(237,234,229,0.5); letter-spacing: 0.04em; }
.done-msg.on { display: block; animation: rise 0.5s forwards; }

.stamp { position: fixed; bottom: 0; left: 0; right: 0; height: 46px;
  display: flex; align-items: center; justify-content: center; gap: 14px;
  font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(237,234,229,0.16); z-index: 10;
  opacity: 0; animation: rise 0.8s 1.1s forwards; }
.stamp-line { display: inline-block; width: 20px; height: 1px; background: rgba(237,234,229,0.14); }

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

/* ===== PHILOSOPHY OVERLAY ===== */
.overlay {
  position: fixed; inset: 0; z-index: 200;
  pointer-events: none;
  display: flex; align-items: flex-start; justify-content: center;
}
.overlay-bg {
  position: absolute; inset: 0;
  background: transparent;
  backdrop-filter: blur(0px); -webkit-backdrop-filter: blur(0px);
  transition: background 0.5s, backdrop-filter 0.5s, -webkit-backdrop-filter 0.5s;
}
.overlay.open { pointer-events: all; }
.overlay.open .overlay-bg {
  background: rgba(4,4,5,0.8);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.overlay-panel {
  position: relative;
  width: min(720px, calc(100vw - 24px));
  max-height: calc(100dvh - 20px);
  margin-top: 10px;
  overflow-y: auto; scrollbar-width: none;
  transform: translateY(-28px) scale(0.96); opacity: 0;
  transition: transform 0.5s cubic-bezier(0.22,1,0.36,1), opacity 0.35s ease;
  border-radius: 22px;
  background: rgba(9,9,11,0.98);
  border: 1px solid rgba(255,255,255,0.07);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.03) inset, 0 48px 100px rgba(0,0,0,0.85);
}
.overlay-panel::-webkit-scrollbar { display: none; }
.overlay.open .overlay-panel { transform: translateY(0) scale(1); opacity: 1; }

.back-btn {
  display: inline-flex; align-items: center; gap: 7px;
  background: none; border: none; cursor: pointer;
  font-family: 'DM Mono', monospace; font-size: 12px;
  color: rgba(237,234,229,0.3); letter-spacing: 0.02em; padding: 0;
  transition: color 0.2s;
}
.back-btn:hover { color: rgba(237,234,229,0.65); }
.back-btn svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.phil-top { padding: 36px 48px 0; }
.phil-eyebrow {
  font-size: 9px; letter-spacing: 0.22em; text-transform: uppercase;
  color: rgba(237,234,229,0.22); margin-bottom: 20px; display: block;
}
.phil-hero {
  font-family: 'Playfair Display', serif;
  font-size: clamp(32px, 4.5vw, 52px);
  font-weight: 400; line-height: 1.04; letter-spacing: -0.025em;
  margin-bottom: 0; color: #edeae5;
}
.phil-hero em { font-style: italic; color: rgba(237,234,229,0.4); }
.phil-divider { margin: 32px 48px 0; height: 1px; background: rgba(237,234,229,0.06); }
.phil-entries { padding: 0 0 48px; }
.phil-entry {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 0;
  padding: 36px 48px;
  border-bottom: 1px solid rgba(237,234,229,0.04);
  transition: background 0.3s;
}
.phil-entry:last-child { border-bottom: none; }
.phil-entry:hover { background: rgba(237,234,229,0.015); }
.phil-n {
  font-family: 'Playfair Display', serif;
  font-size: 64px; font-weight: 400;
  line-height: 1; letter-spacing: -0.04em;
  color: rgba(237,234,229,0.07);
  padding-top: 2px;
  user-select: none;
}
.phil-tag {
  font-size: 9px; letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(237,234,229,0.22); margin-bottom: 10px; display: block;
  font-family: 'DM Mono', monospace;
}
.phil-h {
  font-family: 'Playfair Display', serif;
  font-size: clamp(18px, 2.2vw, 24px); font-weight: 400;
  letter-spacing: -0.015em; line-height: 1.18;
  color: #edeae5; margin-bottom: 14px;
}
.phil-t {
  font-size: 14px; line-height: 1.82;
  color: rgba(237,234,229,0.38); margin-bottom: 0;
}
.phil-t + .phil-t { margin-top: 10px; }
.phil-ul {
  list-style: none; padding: 0; margin: 12px 0 0;
  display: flex; flex-direction: column; gap: 7px;
}
.phil-ul li {
  font-size: 14px; line-height: 1.7;
  color: rgba(237,234,229,0.35);
  display: flex; align-items: flex-start; gap: 10px;
}
.phil-ul li::before {
  content: ''; flex-shrink: 0;
  width: 3px; height: 3px; border-radius: 50%;
  background: rgba(237,234,229,0.22); margin-top: 10px;
}
.phil-cite {
  display: block; margin-top: 10px;
  font-size: 11px; color: rgba(237,234,229,0.18);
  letter-spacing: 0.03em;
}
.phil-cite a {
  color: rgba(237,234,229,0.28); text-decoration: none;
  border-bottom: 1px solid rgba(237,234,229,0.1);
  transition: color 0.2s, border-color 0.2s;
}
.phil-cite a:hover { color: rgba(237,234,229,0.7); border-color: rgba(237,234,229,0.4); }
.phil-foot {
  margin: 0 48px;
  padding: 20px 0 32px;
  border-top: 1px solid rgba(237,234,229,0.05);
  display: flex; align-items: center; justify-content: space-between;
}
.phil-foot-t { font-size: 11px; color: rgba(237,234,229,0.18); letter-spacing: 0.04em; }

@media (max-width: 600px) {
  .phil-top { padding: 28px 20px 0; }
  .phil-divider { margin: 24px 20px 0; }
  .phil-entry { grid-template-columns: 52px 1fr; padding: 28px 20px; }
  .phil-n { font-size: 44px; }
  .phil-foot { margin: 0 20px; padding: 16px 0 28px; }
}
