:root {
  --bg: #0E0A06;
  --bg-2: #160E07;
  --ink: #F2E7D2;
  --ink-muted: #B6A488;
  --ink-faint: #6E5E47;
  --line: #2A1E12;
  --accent: #E89F4A;
  --accent-soft: #C58843;

  --display: 'Instrument Serif', 'Cormorant Garamond', Georgia, serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --easing: cubic-bezier(0.2, 0.65, 0.3, 1);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--display);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  min-height: 100svh;
  background:
    radial-gradient(1100px 760px at 78% 38%, rgba(232, 159, 74, 0.11), transparent 65%),
    radial-gradient(900px 600px at 8% 88%, rgba(232, 159, 74, 0.04), transparent 70%),
    linear-gradient(180deg, var(--bg-2), var(--bg) 60%);
  overflow-x: hidden;
}

.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  opacity: 0.07;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.55 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background-size: 220px 220px;
}

.page {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100svh;
  padding: clamp(20px, 3.2vw, 38px) clamp(22px, 5vw, 64px);
  gap: clamp(24px, 5vh, 64px);
  max-width: 1480px;
  margin: 0 auto;
}

.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-muted);
  animation: fade-down 0.9s var(--easing) 0.05s both;
}

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

.brand-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 14px rgba(232, 159, 74, 0.7);
  animation: pulse 2.6s ease-in-out infinite;
}

.masthead-meta {
  color: var(--ink-faint);
  letter-spacing: 0.32em;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.82); }
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(24px, 5vw, 80px);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  gap: clamp(22px, 3vw, 38px);
  min-width: 0;
}

.overline {
  margin: 0;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-muted);
  animation: fade-up 1.1s var(--easing) 0.10s both;
}

.wordmark {
  margin: 0;
  font-weight: 400;
  line-height: 0.84;
  letter-spacing: -0.02em;
  font-size: clamp(76px, 16.5vw, 244px);
  color: var(--ink);
  font-style: italic;
}

.word {
  display: block;
}

.word-tre {
  margin-left: -0.04em;
  animation: fade-up 1.2s var(--easing) 0.18s both;
}

.word-ackord {
  margin-left: 0.18em;
  animation: fade-up 1.2s var(--easing) 0.32s both;
}

.word-tail {
  display: block;
  margin-top: 0.4em;
  margin-left: 0.3em;
  font-size: clamp(22px, 2.7vw, 40px);
  font-style: normal;
  letter-spacing: 0.005em;
  line-height: 1.2;
  color: var(--ink-muted);
  animation: fade-up 1.1s var(--easing) 0.5s both;
}

.word-tail em {
  font-style: italic;
  color: var(--accent-soft);
}

.dash {
  color: var(--ink-faint);
  font-style: normal;
  margin-right: 0.2em;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 4px 0 0;
  padding: 10px 18px 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  width: fit-content;
  background: rgba(255, 240, 220, 0.025);
  animation: fade-up 1.1s var(--easing) 0.65s both;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px rgba(232, 159, 74, 0.75);
  animation: pulse 2.6s ease-in-out infinite;
}

.status-label {
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 11px;
  color: var(--ink);
}

.hero-visual {
  position: relative;
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fade-in 1.6s var(--easing) 0.45s both;
}

.halo {
  position: absolute;
  inset: -14%;
  background:
    radial-gradient(closest-side, rgba(232, 159, 74, 0.42), rgba(232, 159, 74, 0) 68%),
    radial-gradient(closest-side at 50% 62%, rgba(255, 205, 140, 0.22), rgba(255, 205, 140, 0) 60%);
  filter: blur(22px);
  z-index: 0;
  animation: halo-breathe 6s ease-in-out infinite;
}

@keyframes halo-breathe {
  0%, 100% { opacity: 0.85; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.04); }
}

.hero-img {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 560px;
  height: auto;
  filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.55));
}

.foot {
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: fade-up 1s var(--easing) 0.85s both;
}

.rule {
  height: 1px;
  width: 100%;
  background: linear-gradient(90deg, transparent, var(--line) 14%, var(--line) 86%, transparent);
}

.foot-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 18px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--ink-muted);
  text-transform: uppercase;
}

.foot-link {
  color: var(--ink-muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
  transition: color 0.3s var(--easing), border-color 0.3s var(--easing);
}

a.foot-link:hover,
a.foot-link:focus-visible {
  color: var(--ink);
  border-bottom-color: var(--accent);
  outline: none;
}

.arrow {
  display: inline-block;
  transition: transform 0.3s var(--easing);
}

a.foot-link:hover .arrow,
a.foot-link:focus-visible .arrow {
  transform: translateX(4px);
  color: var(--accent);
}

.foot-info .at {
  color: var(--ink-faint);
  font-size: 0.92em;
  margin: 0 1px;
}

.foot-sep { color: var(--ink-faint); }

@keyframes fade-up {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

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

@keyframes fade-in {
  from { opacity: 0; transform: scale(0.985); }
  to { opacity: 1; transform: scale(1); }
}

@media (max-width: 900px) {
  .page {
    grid-template-rows: auto auto auto;
    gap: 28px;
  }
  .hero {
    grid-template-columns: 1fr;
    gap: 10px;
    align-items: start;
  }
  .hero-visual {
    order: -1;
    max-width: 240px;
    margin: 0;
    display: block;
  }
  .hero-img {
    max-width: 220px;
    display: block;
  }
  .halo {
    inset: 4%;
    filter: blur(14px);
    opacity: 0.75;
  }
  .word-tail {
    margin-left: 0.18em;
  }
}

@media (max-width: 560px) {
  .wordmark { font-size: clamp(64px, 19vw, 130px); }
  .masthead-meta { display: none; }
  .foot-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    font-size: 11px;
  }
  .foot-sep { display: none; }
}

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