:root {
  --background: #35063e;
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.70);
  --line: rgba(255, 255, 255, 0.14);
  --panel: rgba(255, 255, 255, 0.04);
  --success: rgba(255, 255, 255, 0.88);
  --error: #ffd4d4;
}

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

html {
  scroll-behavior: smooth;
  background: var(--background);
}

body {
  background: var(--background);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

section {
  position: relative;
  min-height: 100vh;
  width: 100%;
  display: grid;
  place-items: center;
  padding: 5rem 1.5rem;
  border-bottom: 1px solid var(--line);
}

.inner {
  width: min(100%, 960px);
  margin: 0 auto;
}

/* Hero */

#home {
  position: relative;
  text-align: center;
}

.hero-title {
  font-size: clamp(4rem, 14vw, 10rem);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.06em;
}

.typing-line {
  min-height: 2rem;
  margin-top: 2rem;
  color: var(--muted);
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.cursor {
  display: inline-block;
  width: 2px;
  height: 1em;
  margin-left: 0.25rem;
  background: currentColor;
  vertical-align: -0.1em;
  animation: blink 0.8s steps(1) infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

.section-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.2s ease, color 0.2s ease;
}

.section-scroll:hover,
.section-scroll:focus-visible {
  color: var(--text);
  transform: translateX(-50%) translateY(4px);
  outline: none;
}

.section-scroll-up:hover,
.section-scroll-up:focus-visible {
  transform: translateX(-50%) translateY(-4px);
}

/* Content */

.section-title {
  font-size: clamp(2.5rem, 7vw, 5.5rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
  margin-bottom: 2rem;
}

.section-copy {
  max-width: 720px;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height: 1.75;
}

.section-copy p + p {
  margin-top: 1.25rem;
}

/* Contact */

.contact-form {
  position: relative;
  max-width: 720px;
  margin-top: 3rem;
  display: grid;
  gap: 1rem;
}

.field {
  display: grid;
  gap: 0.55rem;
}

.field label {
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 1rem;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.08);
  color: var(--text);
  outline: none;
  border-radius: 0;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: rgba(255, 255, 255, 0.42);
}

.contact-form textarea {
  min-height: 180px;
  resize: vertical;
}

.submit-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.contact-form button {
  width: fit-content;
  padding: 0.95rem 1.4rem;
  border: 1px solid #ffffff;
  background: #ffffff;
  color: var(--background);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  cursor: pointer;
}

.contact-form button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.form-note {
  color: var(--muted);
  font-size: 0.85rem;
  min-height: 1.2em;
}

.form-note.is-success {
  color: var(--success);
}

.form-note.is-error {
  color: var(--error);
}

/* Hidden anti-spam field. */
.form-trap {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

@media (max-width: 640px) {
  section {
    padding: 4rem 1.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .cursor {
    animation: none;
  }
}

.about-story {
  max-width: 760px;
  font-size: clamp(0.96rem, 1.35vw, 1.08rem);
  line-height: 1.55;
}

.about-story p + p {
  margin-top: 0.72rem;
}

.about-story strong,
.about-story em {
  color: var(--text);
}
