:root {
  --bg: #030304;
  --ink: #dcdcdc;
  --dim: #6b6b6b;
  --accent: #b8895a;
}

* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: "Georgia", "Iowan Old Style", serif;
}

body {
  position: relative;
}

#field {
  position: fixed;
  inset: 0;
  display: block;
  z-index: 0;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background: radial-gradient(ellipse at 50% 50%, transparent 40%, rgba(0,0,0,0.55) 100%);
}

.stage {
  position: relative;
  z-index: 2;
  height: 100dvh;
}

.view {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  padding: 1.5rem;
  text-align: center;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  pointer-events: none;
}

.view.active {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.narrative {
  max-width: 34rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.line {
  font-size: clamp(1rem, 2.2vw, 1.25rem);
  line-height: 1.5;
  font-weight: 400;
  letter-spacing: 0.01em;
  color: var(--ink);
  margin: 0;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 1.1s ease, transform 1.1s ease;
  text-shadow: 0 0 40px rgba(0,0,0,0.8);
}

.line.visible {
  opacity: 0.5;
  transform: none;
}

.line.final {
  font-size: clamp(1.4rem, 3.2vw, 2rem);
  font-weight: 700;
  margin-top: 0.4rem;
}

.info-line.final {
  font-size: clamp(1.05rem, 2.4vw, 1.35rem);
}

.line.final.visible {
  opacity: 1;
}

.cta {
  display: inline-block;
  background: none;
  color: var(--ink);
  text-decoration: none;
  border: none;
  border-bottom: 1px solid #333;
  padding: 0 0 0.35rem;
  font-family: inherit;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  cursor: pointer;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 1.1s ease, transform 1.1s ease, border-color 0.3s ease, color 0.3s ease;
  pointer-events: none;
}

.cta.visible {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.cta:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.toggle-info {
  background: none;
  border: none;
  font-family: inherit;
  color: var(--dim);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  cursor: pointer;
  opacity: 0;
  margin-top: -0.6rem;
  transition: opacity 1.1s ease, color 0.2s ease;
  pointer-events: none;
}

.toggle-info.visible {
  opacity: 0.55;
  pointer-events: auto;
}

.toggle-info:hover {
  color: var(--ink);
  opacity: 1;
}

.info-text {
  max-width: 30rem;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--ink);
  margin: 0;
  text-shadow: 0 0 40px rgba(0,0,0,0.8);
}

.back-link {
  background: none;
  border: none;
  font-family: inherit;
  color: var(--dim);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  cursor: pointer;
}

.back-link:hover {
  color: var(--accent);
}

.contact-form {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 1.1rem;
  width: min(28rem, 90vw);
}

.contact-form[hidden],
.form-sent[hidden] {
  display: none;
}

.contact-form input,
.contact-form textarea {
  background: transparent;
  border: none;
  border-bottom: 1px solid #333;
  outline: none;
  color: var(--ink);
  font-family: inherit;
  font-size: 1rem;
  letter-spacing: 0.01em;
  padding: 0.3rem 0;
  text-align: left;
  resize: none;
  transition: border-color 0.3s ease;
}

.contact-form textarea {
  line-height: 1.6;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--dim);
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--accent);
}

.contact-form.invalid input:invalid,
.contact-form.invalid textarea:invalid {
  border-color: #8a4b4b;
}

.form-error {
  min-height: 1.2em;
  margin: 0;
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  color: #c98a6b;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.form-error.visible {
  opacity: 1;
}

.form-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.2rem;
}

.send-btn {
  background: none;
  border: none;
  font-family: inherit;
  color: var(--ink);
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: color 0.2s ease;
}

.send-btn:hover {
  color: var(--accent);
}

.send-btn:disabled {
  color: var(--dim);
  cursor: default;
}

.form-sent {
  font-size: 1.05rem;
  color: var(--ink);
  text-shadow: 0 0 40px rgba(0,0,0,0.8);
}

.brand-icon {
  opacity: 0.85;
  pointer-events: none;
}

.brand-icon svg {
  display: block;
  width: 140px;
  height: auto;
}
