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

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: "Instrument Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background-color: #050505;
  color: #f2f4f8;
  line-height: 1.5;
  display: flex;
  justify-content: center;
}

main {
  width: min(1200px, 90vw);
  padding-bottom: 12rem;
  position: relative;
  z-index: 1;
}

.background-layer {
  position: fixed;
  inset: 0;
  /* background-image: url("cursive_surface.png"); */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: scale(1.05);
  filter: saturate(120%) brightness(1.05);
  z-index: 0;
  overflow: hidden;
}

.hero {
  padding: clamp(1.5rem, 5vw, 3rem) 0 clamp(4rem, 10vw, 8rem);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.primary-nav {
  align-self: center;
}

.primary-nav ul {
  list-style: none;
  margin: 0;
  padding: 0.6rem 1.8rem;
  display: flex;
  gap: clamp(1.5rem, 4vw, 3rem);
  background: rgba(8, 8, 10, 0.7);
  backdrop-filter: blur(18px);
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.primary-nav a {
  text-decoration: none;
  color: #f2f4f8;
  font-size: clamp(0.85rem, 1vw + 0.4rem, 0.95rem);
  letter-spacing: 0.02em;
}

.hero-stage {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-logo {
  width: clamp(260px, 36vw, 560px);
  mix-blend-mode: screen;
  align-self: center;
  display: block;
}

.background-layer #wave-parametric {
  width: 100%;
  height: 100%;
}

.background-layer #wave-parametric svg {
  width: 100%;
  height: 100%;
  display: block;
  transform: scaleX(1.2);
  transform-origin: center;
}

.message-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.message-wrapper {
  display: flex;
  flex-direction: column;
  gap: clamp(0.5rem, 2vw, 1.5rem);
}

.message-line {
  margin: 0;
  text-align: center;
  font-size: clamp(1rem, 5.6vw, 3.6rem);
  font-weight: 300;
  letter-spacing: 0;
  line-height: 1.1;
  color: rgba(200, 210, 230, 0.7);
  white-space: nowrap;
}

.message-line--emphasis {
  color: #f4f6fb;
}

.message-line--subtle {
  color: rgba(200, 210, 230, 0.6);
}

#frontier-intelligence {
  font-style: normal;
}

@media (max-width: 720px) {
  .message-line {
    font-size: clamp(0.95rem, 7vw, 2.4rem);
  }
}

.spacer {
  min-height: 30vh;
}

.content-section {
  display: grid;
  gap: clamp(1.5rem, 4vw, 2.5rem);
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-bottom: clamp(6rem, 12vw, 10rem);
}

.content-card {
  background: rgba(12, 12, 16, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: clamp(1.75rem, 4vw, 2.5rem);
  backdrop-filter: blur(22px);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.35);
}

.content-card h3 {
  margin: 0;
  font-size: clamp(1.3rem, 2.5vw, 1.7rem);
  font-weight: 500;
}

.content-card p {
  margin: 0;
  color: rgba(210, 220, 235, 0.8);
  font-size: clamp(0.95rem, 1.8vw, 1.05rem);
}

.cta {
  color: #9ecbff;
  font-weight: 500;
  text-decoration: none;
  font-size: 0.95rem;
}

.contact-section {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: clamp(3rem, 6vw, 5rem) 0;
}

.contact-box {
  width: min(560px, 100%);
  padding: clamp(2.5rem, 5vw, 3.5rem);
  background: rgba(10, 10, 15, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 28px;
  backdrop-filter: blur(24px);
  box-shadow: 0 30px 80px rgba(6, 6, 10, 0.45);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-glyph {
  width: clamp(72px, 10vw, 120px);
  display: block;
  margin: 0 auto 0.75rem;
}

.contact-box p {
  margin: 0;
  color: rgba(210, 220, 235, 0.78);
  font-size: clamp(0.95rem, 1.6vw, 1.05rem);
}

#contact-form {
  display: grid;
  gap: 1rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  font-size: 0.95rem;
  color: rgba(220, 230, 245, 0.78);
}

.field input,
.field textarea {
  background: rgba(18, 18, 22, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 0.85rem 1rem;
  color: #f2f4f8;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: rgba(142, 182, 255, 0.8);
  box-shadow: 0 0 0 3px rgba(142, 182, 255, 0.25);
}

button[type="submit"] {
  align-self: flex-start;
  padding: 0.9rem 2.4rem;
  border-radius: 999px;
  border: none;
  font-weight: 600;
  letter-spacing: 0.03em;
  background: linear-gradient(120deg, #6c8bff, #4a3df0);
  color: #f7f9ff;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

button[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 30px rgba(42, 48, 120, 0.35);
}

.privacy-note {
  font-size: 0.85rem;
  color: rgba(200, 210, 230, 0.6);
}

.hidden-field {
  display: none;
}

@media (max-width: 720px) {
  body {
    display: block;
  }

  main {
    width: 100%;
    padding-inline: clamp(1.25rem, 5vw, 2rem);
    padding-bottom: 0;
  }

  .primary-nav ul {
    gap: 1.1rem;
  }

  .background-layer #wave-parametric svg {
    transform: none;
  }

  .hero {
    min-height: 100vh;
    padding: clamp(2.5rem, 10vw, 3.5rem) 0 clamp(4rem, 14vw, 6rem);
  }

  .hero-stage {
    padding: clamp(2.5rem, 12vw, 5rem) 0;
  }

  .hero-logo {
    position: static;
    width: clamp(220px, 80vw, 320px);
  }

  .hero-title {
    margin-top: clamp(5rem, 10vh, 12rem);
  }

  .message-section {
    min-height: auto;
    padding-block: clamp(4rem, 18vw, 6rem);
  }

  .contact-section {
    height: 100vh;
    padding: clamp(2rem, 10vw, 3rem) clamp(1.25rem, 6vw, 2rem);
  }
}

