:root {
  --bg: #f8f7fb;
  --bg-soft: #ffffff;
  --panel: #ffffff;
  --text: #2f2b3f;
  --muted: rgba(47, 43, 63, 0.72);
  --quiet: rgba(47, 43, 63, 0.56);
  --line: rgba(87, 80, 133, 0.16);
  --purple: #575085;
  --accent-blue: #85c0d6;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  font-family: Lato, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
}

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

button,
input,
textarea {
  font: inherit;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  padding: 1.8rem clamp(1.25rem, 5vw, 4.5rem);
  transition: background 200ms ease, border-color 200ms ease;
}

.site-header.is-scrolled {
  background: rgba(248, 247, 251, 0.92);
  border-bottom: 1px solid var(--line);
}

.brand {
  font-size: 1.05rem;
  font-weight: 900;
  letter-spacing: 0.48em;
  width: 125px;
}

.brand img {
  display: block;
  width: 100%;
  height: auto;
}

.main-nav {
  display: flex;
  gap: clamp(1rem, 2.2vw, 2rem);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.main-nav a {
  color: rgba(47, 43, 63, 0.78);
}

.main-nav a:hover {
  color: var(--purple);
}

.menu-button {
  display: none;
  width: 2.4rem;
  height: 2.4rem;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--purple);
}

.menu-button span {
  display: block;
  width: 1rem;
  height: 1px;
  margin: 0.28rem auto;
  background: currentColor;
}

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: center;
  padding: 8rem clamp(1.25rem, 5vw, 4.5rem) 5rem;
  overflow: hidden;
  isolation: isolate;
}

.hero-image,
.hero-overlay,
.hero-motion {
  position: absolute;
  inset: 0;
}

.hero-image {
  z-index: -4;
  background-image: url("resources/atemic/meeting.webp");
  background-size: cover;
  background-position: center;
}

.hero-overlay {
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(248, 247, 251, 0.98) 0%, rgba(248, 247, 251, 0.88) 38%, rgba(133, 192, 214, 0.24) 70%, rgba(87, 80, 133, 0.30) 100%),
    linear-gradient(0deg, rgba(248, 247, 251, 0.82) 0%, rgba(248, 247, 251, 0.12) 50%);
}

.hero-motion {
  z-index: -1;
  width: 100%;
  height: 100%;
  opacity: 0.42;
}

.hero-content {
  max-width: 37rem;
}

.hero h1 {
  max-width: 11ch;
  margin: 0;
  font-size: clamp(3.35rem, 6.5vw, 6.35rem);
  font-weight: 300;
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.hero p {
  max-width: 35rem;
  margin: 1.65rem 0 2.1rem;
  color: var(--muted);
  font-size: clamp(1rem, 1.22vw, 1.16rem);
  line-height: 1.65;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  min-height: 3rem;
  padding: 0.1rem 1.2rem 0 1.4rem;
  border: 1px solid rgba(87, 80, 133, 0.36);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.58);
  color: var(--purple);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.button:hover {
  border-color: var(--purple);
  background: rgba(133, 192, 214, 0.18);
}

.section {
  padding: clamp(5rem, 8vw, 8rem) clamp(1.25rem, 5vw, 4.5rem);
  border-top: 1px solid var(--line);
}

.kicker {
  margin: 0 0 1.2rem;
  color: var(--purple);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.intro-section {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 7vw, 6rem);
  max-width: var(--max);
  margin: 0 auto;
}

.intro-copy h2,
.contact-copy h2 {
  margin: 0;
  max-width: 14ch;
  font-size: clamp(2.35rem, 4vw, 3.95rem);
  font-weight: 300;
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.intro-text p,
.contact-copy p:not(.kicker) {
  margin: 0 0 1.2rem;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.72;
}


.intro-logos {
  grid-column: 1 / -1;
  width: 100%;
}

.logo-flex {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2.5rem 4rem;
}

.logo-flex img {
  display: block;
  max-width: 140px;
  max-height: 70px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: brightness(0) saturate(100%);
  opacity: 0.7;
}

.logo-disclaimer {
  max-width: 52rem;
  margin: 3.5rem auto 0;
  color: rgba(47, 43, 63, 0.62);
  font-size: 0.78rem;
  line-height: 1.55;
  text-align: center;
}

.contact-section,
.site-footer {
  max-width: var(--max);
  margin: 0 auto;
}

.contact-section {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
  padding: clamp(5rem, 8vw, 8rem) clamp(1.25rem, 5vw, 4.5rem);
  border-top: 1px solid var(--line);
}

.contact-copy p:not(.kicker) {
  margin-top: 1.4rem;
}

.contact-copy > .kicker {
  margin: 0 0 1.2rem;
  color: var(--purple);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  line-height: 1.2;
  text-transform: uppercase;
}

#atemic-contact-form {
  display: block;
  width: 100%;
  max-width: none;
}

#atemic-contact-form .form-line {
  display: block;
  width: 100%;
  max-width: none;
  margin: 0 0 0.9rem;
  clear: both;
}

#atemic-contact-form .form-line-two {
  display: flex;
  flex-direction: row;
  gap: 0.9rem;
}

#atemic-contact-form .form-field {
  display: grid;
  gap: 0.45rem;
  min-width: 0;
  color: var(--quiet);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  line-height: normal;
  text-transform: uppercase;
}

#atemic-contact-form .form-field-half {
  flex: 1 1 0;
  width: auto;
  max-width: none;
}

#atemic-contact-form .form-field-full {
  width: 100%;
  max-width: none;
}

#atemic-contact-form .form-line-actions {
  margin-top: 0.7rem;
}

.form-extra-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  width: 100%;
  margin: 0 0 0.9rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--accent-blue);
  color: var(--text);
  background: rgba(133, 192, 214, 0.16);
  font-size: 0.92rem;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.5;
  text-transform: none;
}

.field-error {
  color: var(--accent-blue);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.45;
  text-transform: none;
}

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

#atemic-contact-form input:focus,
#atemic-contact-form textarea:focus {
  border-color: var(--purple);
}

#atemic-contact-form .has-error input,
#atemic-contact-form .has-error textarea {
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 1px rgba(133, 192, 214, 0.55);
}

#atemic-contact-form .has-error input:focus,
#atemic-contact-form .has-error textarea:focus {
  border-color: var(--accent-blue);
}

#atemic-contact-form textarea {
  resize: vertical;
}

.form-modal {
  position: fixed;
  z-index: 50;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: rgba(248, 247, 251, 0.74);
  backdrop-filter: blur(8px);
}

.form-modal.is-visible {
  display: flex;
}

.form-modal-panel {
  position: relative;
  width: min(100%, 32rem);
  padding: clamp(2rem, 5vw, 3rem);
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: 0 1.5rem 4rem rgba(47, 43, 63, 0.16);
}

.form-modal-panel h2 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.form-modal-panel p:not(.kicker) {
  margin: 0 0 1.5rem;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.65;
}

.form-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2.2rem;
  height: 2.2rem;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font-size: 1.4rem;
  line-height: 1;
}

.form-modal-close:hover {
  border-color: var(--accent-blue);
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 2rem;
  align-items: center;
  padding: 2.5rem clamp(1.25rem, 5vw, 4.5rem);
  border-top: 1px solid var(--line);
  color: var(--quiet);
  font-size: 0.86rem;
}

.site-footer .brand {
  color: var(--purple);
  width: 25px;
}

.site-footer p {
  margin: 0;
}


@media (max-width: 980px) {
  .site-header {
    align-items: flex-start;
    background: rgba(248, 247, 251, 0.92);
    border-bottom: 1px solid var(--line);
  }

  .main-nav {
    position: absolute;
    top: calc(100% - 0.2rem);
    left: clamp(1.25rem, 5vw, 4.5rem);
    right: clamp(1.25rem, 5vw, 4.5rem);
    display: none;
    flex-direction: column;
    gap: 0;
    padding: 0.75rem 0;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 1rem 2.5rem rgba(47, 43, 63, 0.12);
  }

  .site-header.is-menu-open .main-nav {
    display: flex;
  }

  .main-nav a {
    display: block;
    padding: 0.9rem 1rem;
    color: var(--text);
  }

  .main-nav a:hover {
    color: var(--purple);
    background: rgba(133, 192, 214, 0.14);
  }

  .menu-button {
    display: block;
    flex: 0 0 auto;
  }

  .intro-section,
  .contact-section,
  .site-footer {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .hero {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .hero h1 {
    font-size: clamp(3rem, 14vw, 5.2rem);
  }

  .section,
  .contact-section {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  #atemic-contact-form .form-line-two {
    flex-direction: column;
  }

  #atemic-contact-form .form-field-half {
    width: 100%;
  }
}
