@font-face {
  font-family: "Geist";
  src: url("./assets/fonts/geist-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "Geist Mono";
  src: url("./assets/fonts/geist-mono-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --bg: #2f4df7;
  --text: #ffffff;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.modal-open {
  overflow: hidden;
}

::selection {
  background: #ffffff;
  color: var(--bg);
}

.site-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
}

.hero {
  width: min(100%, 68rem);
  flex: 1;
  padding: 5rem 1.5rem 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.reveal {
  opacity: 0;
  transform: translateY(5px);
  transition: opacity 700ms cubic-bezier(0.25, 0.1, 0.25, 1), transform 700ms cubic-bezier(0.25, 0.1, 0.25, 1);
  transition-delay: var(--delay, 0ms);
}

body.is-loaded .reveal {
  opacity: 1;
  transform: translateY(0);
}

.mission {
  font-size: 14px;
  line-height: 2.6;
  letter-spacing: 0.18em;
  max-width: 800px;
  margin: 0 0 3rem;
}

.logo-wrap {
  margin: 0.5rem 0 2.5rem;
}

.hero-logo {
  width: clamp(170px, 25vw, 210px);
  height: auto;
  display: block;
  user-select: none;
}

.tagline {
  font-size: 11px;
  letter-spacing: 0.1em;
  margin: 0 0 3rem;
}

.contact-button {
  position: relative;
  border: 0;
  background: #ffffff;
  color: var(--bg);
  padding: 0.7rem 2rem;
  font-size: 12px;
  letter-spacing: 0.15em;
  cursor: pointer;
  overflow: hidden;
}

.contact-label {
  position: relative;
  z-index: 2;
  transition: color 300ms ease;
}

.contact-fill {
  position: absolute;
  inset: 0;
  background: var(--bg);
  transform: translateX(-100%);
  transition: transform 300ms ease-out;
}

.contact-stroke {
  position: absolute;
  inset: 0;
  border: 1px solid #ffffff;
  opacity: 0;
  transition: opacity 300ms ease;
}

.contact-button:hover .contact-label,
.contact-button:focus-visible .contact-label {
  color: #ffffff;
}

.contact-button:hover .contact-fill,
.contact-button:focus-visible .contact-fill {
  transform: translateX(0);
}

.contact-button:hover .contact-stroke,
.contact-button:focus-visible .contact-stroke {
  opacity: 1;
}

.footer {
  width: 100%;
  padding: 0 1.5rem 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.menu {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1.25rem;
  font-size: 11px;
  letter-spacing: 0.1em;
}

.menu-item {
  position: relative;
  border: 0;
  background: transparent;
  color: rgb(255 255 255 / 0.85);
  padding: 0.2rem 0;
  font: inherit;
  letter-spacing: inherit;
  cursor: pointer;
  transition: color 300ms ease;
}

.menu-item::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 1px;
  background: rgb(255 255 255 / 0.8);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 300ms ease-out;
}

.menu-item:hover,
.menu-item:focus-visible {
  color: #ffffff;
}

.menu-item:hover::after,
.menu-item:focus-visible::after {
  transform: scaleX(1);
}

.socials {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.social-link {
  color: inherit;
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: opacity 300ms ease, transform 300ms ease;
}

.social-link:hover {
  opacity: 0.75;
  transform: scale(1.08);
}

.social-link svg {
  width: 100%;
  height: 100%;
}

.social-x {
  width: 18px;
  height: 18px;
}

.credit {
  font-size: 11px;
  letter-spacing: 0.07em;
}

.credit a {
  color: inherit;
  text-underline-offset: 4px;
  text-decoration-thickness: 0.5px;
  transition: opacity 300ms ease;
}

.credit a:hover {
  opacity: 0.75;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: var(--bg);
  opacity: 0;
  pointer-events: none;
  transition: opacity 300ms cubic-bezier(0.25, 0.1, 0.25, 1);
}

.modal-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.modal-overlay.is-closing {
  opacity: 0;
}

.modal-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 2;
  border: 0;
  background: transparent;
  color: inherit;
  padding: 0.25rem;
  cursor: pointer;
}

.modal-close svg {
  width: 24px;
  height: 24px;
  transition: transform 300ms ease;
}

.modal-close:hover svg {
  transform: rotate(90deg);
}

.modal-shell {
  height: 100%;
  overflow-y: auto;
  padding: 6.5rem 1.5rem 3.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-overlay[data-modal="contact"] .modal-shell {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.modal-panel {
  width: min(980px, 100%);
  display: none;
}

.modal-panel.is-active {
  display: block;
}

.about-content {
  text-align: center;
  display: grid;
  gap: 1.4rem;
}

.about-content h2 {
  margin: 0 0 1rem;
  font-family: "Geist", system-ui, sans-serif;
  font-size: clamp(34px, 6vw, 42px);
  letter-spacing: 0.08em;
}

.about-content p {
  margin: 0;
  font-size: 14px;
  line-height: 2.25;
  letter-spacing: 0.12em;
}

.contact-panel {
  width: min(500px, 100%);
  margin: 0 auto;
  text-align: center;
}

.contact-intro,
.contact-success {
  margin: 0 0 4rem;
  font-size: 14px;
  line-height: 2.4;
  letter-spacing: 0.18em;
}

.contact-form {
  display: grid;
  gap: 2.4rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid rgb(255 255 255 / 0.3);
  background: transparent;
  color: #ffffff;
  padding: 0.7rem 0;
  font: inherit;
  font-size: 12px;
  letter-spacing: 0.15em;
  text-align: center;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgb(255 255 255 / 0.4);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-bottom-color: #ffffff;
}

.contact-form textarea {
  resize: none;
}

.modal-contact-button {
  margin-top: 0.8rem;
  justify-self: center;
}

.policy-content {
  width: min(980px, 100%);
  margin: 0 auto;
  text-align: center;
}

.policy-content h2 {
  margin: 0 0 2rem;
  font-family: "Geist", system-ui, sans-serif;
  font-size: clamp(32px, 5vw, 38px);
  letter-spacing: 0.1em;
}

.policy-section {
  max-width: 860px;
  margin: 0 auto 2.5rem;
  text-align: left;
}

.policy-section h3 {
  margin: 0 0 0.85rem;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgb(255 255 255 / 0.95);
}

.policy-section p {
  margin: 0;
  font-size: 14px;
  line-height: 1.9;
  letter-spacing: 0.02em;
  color: rgb(255 255 255 / 0.92);
}

.policy-section ul {
  margin: 0.75rem 0 0;
  padding-left: 1.4rem;
  display: grid;
  gap: 0.45rem;
}

.policy-section li {
  font-size: 14px;
  line-height: 1.8;
  letter-spacing: 0.02em;
  color: rgb(255 255 255 / 0.92);
}

@media (max-width: 767px) {
  .modal-close {
    top: calc(1rem + env(safe-area-inset-top));
    right: 1rem;
  }

  .modal-overlay:not([data-modal="contact"]) .modal-shell {
    align-items: flex-start;
    padding-top: calc(5.75rem + env(safe-area-inset-top));
    padding-bottom: calc(3rem + env(safe-area-inset-bottom));
  }

  .desktop-break {
    display: none;
  }

  .mission {
    font-size: 13px;
    line-height: 2.3;
    letter-spacing: 0.14em;
  }

  .about-content p,
  .contact-intro,
  .contact-success {
    letter-spacing: 0.12em;
    line-height: 2.1;
  }

  .policy-section p,
  .policy-section li {
    font-size: 13px;
    line-height: 1.8;
  }
}
