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

:root {
  --cream: #f5f2ec;
  --ink: #1a1814;
  --muted: #8a8580;
  --accent: #b5a48a;
  --line: rgba(26,24,20,0.12);
}

html, body {
  height: 100%;
  background: var(--cream);
  color: var(--ink);
  font-family: 'Jost', sans-serif;
  overflow: hidden;
}

/* Grain overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 100;
  opacity: 0.6;
}

.wrapper {
  height: 100vh;
  display: grid;
  grid-template-rows: 1fr auto;
  padding: clamp(2rem, 5vw, 4rem);
}

/* Top bar */
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  opacity: 0;
  animation: fadeUp 1s ease 0.2s forwards;
}

.logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-weight: 300;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.year {
  font-size: 0.72rem;
  font-weight: 200;
  letter-spacing: 0.2em;
  color: var(--muted);
  text-transform: uppercase;
}

/* Center content */
.center {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 2rem;
  max-width: 680px;
}

.label {
  font-size: 0.68rem;
  font-weight: 300;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 0.8rem;
  opacity: 0;
  animation: fadeUp 1s ease 0.5s forwards;
}

.label::before {
  content: '';
  display: block;
  width: 28px;
  height: 1px;
  background: var(--accent);
}

h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(3.5rem, 9vw, 7.5rem);
  font-weight: 300;
  line-height: 1.0;
  letter-spacing: -0.01em;
  opacity: 0;
  animation: fadeUp 1.2s ease 0.7s forwards;
}

h1 em {
  font-style: italic;
  color: var(--accent);
}

.desc {
  font-size: clamp(0.82rem, 1.4vw, 0.95rem);
  font-weight: 300;
  color: var(--muted);
  line-height: 1.8;
  max-width: 380px;
  letter-spacing: 0.02em;
  opacity: 0;
  animation: fadeUp 1s ease 0.95s forwards;
}

/* Email form */
.form-row {
  display: flex;
  align-items: stretch;
  gap: 0;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 0.5rem;
  width: 100%;
  max-width: 380px;
  opacity: 0;
  animation: fadeUp 1s ease 1.15s forwards;
}

.form-row input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-family: 'Jost', sans-serif;
  font-size: 0.82rem;
  font-weight: 300;
  letter-spacing: 0.08em;
  color: var(--ink);
  padding: 0.3rem 0;
}

.form-row input::placeholder { color: var(--muted); }

.form-row button {
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: 'Jost', sans-serif;
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--ink);
  padding: 0.3rem 0 0.3rem 1rem;
  transition: color 0.3s ease;
  white-space: nowrap;
}

.form-row button:hover { color: var(--accent); }

/* Success message */
.success-msg {
  display: none;
  font-size: 0.78rem;
  font-weight: 300;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-top: -1rem;
}

/* Countdown */
.countdown {
  display: flex;
  gap: clamp(1.5rem, 4vw, 3rem);
  opacity: 0;
  animation: fadeUp 1s ease 1.35s forwards;
  margin-top: 0.5rem;
}

.unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
}

.unit-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 300;
  line-height: 1;
  min-width: 2ch;
  text-align: center;
}

.unit-label {
  font-size: 0.58rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 300;
}

.unit-sep {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.2rem;
  font-weight: 300;
  color: var(--line);
  align-self: flex-start;
  padding-top: 0.1rem;
  line-height: 1;
}

/* Bottom bar */
.bottombar {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  opacity: 0;
  animation: fadeUp 1s ease 1.5s forwards;
}

.social-links {
  display: flex;
  gap: 1.8rem;
}

.social-links a {
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  font-weight: 300;
  transition: color 0.3s ease;
}

.social-links a:hover { color: var(--ink); }

.tagline {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.85rem;
  font-style: italic;
  color: var(--muted);
  font-weight: 300;
}

/* Decorative vertical line */
.deco-line {
  position: fixed;
  right: clamp(2rem, 5vw, 4rem);
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 0;
  background: var(--line);
  animation: lineGrow 1.5s ease 0.3s forwards;
}

/* Animations */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes lineGrow {
  to { height: 35vh; }
}

/* Mobile */
@media (max-width: 600px) {
  .topbar { flex-direction: column; gap: 0.5rem; }
  .bottombar { flex-direction: column; gap: 1rem; align-items: flex-start; }
  .deco-line { display: none; }
  html, body { overflow: auto; }
}
