/* Talos Holdings — single-screen site with modal sections.
   Modal pattern is the only thing borrowed; type and content are ours. */

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

:root {
  --bg: #000000;
  --fg: #f4f2ef;
  --muted: #a29d96;
  --modal-bg: #17171a;
  --rule: rgba(255, 255, 255, 0.14);

  --font-sans: "Neue Haas Grotesk Display Pro", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;

  --edge: 40px;
}

html,
body {
  height: 100%;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

/* The single visible screen. Blurs back when a modal is open. */
.page {
  position: relative;
  height: 100%;
  transition: filter 0.35s ease, opacity 0.35s ease;
}

body.is-modal-open .page {
  filter: blur(6px);
  opacity: 0.5;
}

/* ---------- Header ---------- */

.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 26px var(--edge) 0;
}

.logo {
  display: block;
  width: 78px;
  flex: none;
}

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

.site-nav {
  display: flex;
  gap: 40px;
}

.nav-link {
  background: none;
  border: none;
  padding: 4px 0;
  color: var(--fg);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  cursor: pointer;
  opacity: 0.78;
  transition: opacity 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  opacity: 1;
}

/* ---------- Hero ---------- */

.hero {
  position: absolute;
  left: var(--edge);
  right: var(--edge);
  bottom: 40px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
}

.headline {
  max-width: 30ch;
  font-size: 30px;
  font-weight: 500;
  line-height: 1.36;
  letter-spacing: -0.005em;
}

.location {
  flex: none;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

/* ---------- Modals ---------- */

.overlay {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  background: rgba(0, 0, 0, 0.55);
  animation: overlay-in 0.25s ease;
}

.overlay[hidden] {
  display: none;
}

@keyframes overlay-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.modal {
  position: relative;
  width: 600px;
  max-width: 100%;
  max-height: calc(100vh - 64px);
  overflow-y: auto;
  background: var(--modal-bg);
  padding: 46px 48px 48px;
  animation: modal-in 0.28s cubic-bezier(0.2, 0.7, 0.3, 1);
}

@keyframes modal-in {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 22px;
  width: 30px;
  height: 30px;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 21px;
  line-height: 1;
  cursor: pointer;
  transition: color 0.2s ease;
}

.modal-close:hover {
  color: var(--fg);
}

.modal-title {
  margin-top: 0;
  font-size: 29px;
  font-weight: 400;
  line-height: 1.24;
  letter-spacing: -0.012em;
}

.modal-body {
  margin-top: 20px;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.75;
}

.modal-body p + p {
  margin-top: 16px;
}

/* ---------- Partner form ---------- */

.partner-form {
  margin-top: 30px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 10px 0;
  border-bottom: 1px solid var(--rule);
}

.field label {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.field input {
  flex: 1;
  min-width: 0;
  background: none;
  border: none;
  outline: none;
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 14.5px;
  line-height: 1.5;
}

.field input::placeholder {
  color: rgba(255, 255, 255, 0.25);
}

.field:focus-within {
  border-bottom-color: rgba(255, 255, 255, 0.45);
}

/* Spam trap — hidden from people, visible to bots. */
.bot-field {
  position: absolute;
  left: -9999px;
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 26px;
}

.submit-button {
  background: none;
  border: none;
  padding: 6px 0;
  border-bottom: 1px solid var(--fg);
  color: var(--fg);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.submit-button:hover:not(:disabled) {
  opacity: 0.65;
}

.submit-button:disabled {
  opacity: 0.4;
  cursor: default;
}

.form-status {
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.5;
}

.form-status.is-error {
  color: #e5928c;
}

/* ---------- Contact ---------- */

.contact-email {
  display: inline-block;
  margin-top: 28px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--fg);
  color: var(--fg);
  font-size: 14.5px;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.contact-email:hover {
  opacity: 0.65;
}

/* ---------- Mobile ---------- */

@media (max-width: 768px) {
  :root {
    --edge: 20px;
  }

  .site-header {
    padding-top: 18px;
  }

  .logo {
    width: 52px;
  }

  .site-nav {
    gap: 16px;
  }

  .nav-link {
    font-size: 9.5px;
    letter-spacing: 0.09em;
  }

  .hero {
    bottom: 28px;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .headline {
    max-width: none;
    font-size: 19px;
    line-height: 1.45;
  }

  .location {
    font-size: 9.5px;
  }

  .overlay {
    padding: 16px;
  }

  .modal {
    width: 100%;
    max-height: calc(100vh - 32px);
    padding: 32px 22px 36px;
  }

  .modal-close {
    top: 14px;
    right: 14px;
  }

  .modal-title {
    font-size: 21px;
  }

  .modal-body {
    margin-top: 16px;
    font-size: 13.5px;
    line-height: 1.7;
  }

  .field input {
    font-size: 16px; /* keeps iOS from zooming on focus */
  }
}

@media (prefers-reduced-motion: reduce) {
  .overlay,
  .modal {
    animation: none;
  }

  .page {
    transition: none;
  }
}
