/* Aperture research subdomain — Tally wrapper */

/* ---------- Self-hosted fonts ---------- */

@font-face {
  font-family: "Cormorant Garamond";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/cormorant-garamond-400-italic.woff2") format("woff2");
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/cormorant-garamond-500-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/cormorant-garamond-500-italic.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/inter-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/inter-500-normal.woff2") format("woff2");
}

:root {
  --bg:        #1a1a19;
  --bg-elev:   #222221;
  --umber:     #6b4a2b;
  --umber-dim: #3a2a1c;
  --umber-hi:  #8a5d36;
  --fg:        #ece6dc;
  --fg-mute:   #8a8278;
  --fg-dim:    #5a544c;

  --serif: "Cormorant Garamond", "Iowan Old Style", "Apple Garamond", Garamond, "Hoefler Text", "Times New Roman", Times, serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --radius: 2px;
  --maxw:   720px;
}

/* ---------- Reset ---------- */

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; }

html {
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  background-color: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  min-height: 100svh;
  padding: clamp(1.5rem, 4vw, 3rem) clamp(1rem, 4vw, 2rem);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

/* ---------- Main column ---------- */

main {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: clamp(1.5rem, 4vw, 2.25rem);
}

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

.research-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.5rem;
  padding-top: clamp(0.5rem, 2vw, 1.5rem);
}

.research-iris {
  width: clamp(56px, 9vw, 72px);
  height: auto;
  opacity: 0;
  animation: rise 900ms ease-out 100ms forwards;
}

.wordmark {
  font-family: var(--serif);
  font-weight: 500;
  font-style: normal;
  font-size: clamp(2.25rem, 6vw, 3.25rem);
  line-height: 1;
  letter-spacing: 0.01em;
  margin: 0.25rem 0 0;
  color: var(--fg);
  opacity: 0;
  animation: rise 900ms ease-out 250ms forwards;
}

.research-subtitle {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1rem, 2.2vw, 1.25rem);
  color: var(--fg-mute);
  margin: 0;
  letter-spacing: 0.02em;
  opacity: 0;
  animation: rise 900ms ease-out 400ms forwards;
}

.research-welcome {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--fg);
  margin: 0.75rem 0 0;
  max-width: 42ch;
  opacity: 0;
  animation: rise 900ms ease-out 550ms forwards;
}

/* ---------- Form embed ---------- */

.research-form {
  width: 100%;
  opacity: 0;
  animation: rise 900ms ease-out 700ms forwards;
}

.research-form iframe {
  display: block;
  width: 100%;
  border: 0;
  background: transparent;
}

/* ---------- Footer ---------- */

.research-footer {
  margin-top: clamp(1rem, 3vw, 2rem);
  padding-top: clamp(1rem, 3vw, 1.5rem);
  border-top: 1px solid rgba(236, 230, 220, 0.08);
  text-align: center;
  opacity: 0;
  animation: rise 900ms ease-out 850ms forwards;
}

.footer-legal {
  font-size: 0.72rem;
  color: var(--fg-dim);
  line-height: 1.6;
  margin: 0;
  letter-spacing: 0.01em;
}

.footer-legal sup {
  font-size: 0.7em;
  vertical-align: super;
}

.footer-legal a {
  color: var(--fg-mute);
  text-decoration: none;
  border-bottom: 1px solid var(--umber-dim);
  padding-bottom: 1px;
  transition: color 180ms ease, border-color 180ms ease;
}

.footer-legal a:hover {
  color: var(--fg);
  border-bottom-color: var(--umber-hi);
}

.footer-legal a:focus-visible {
  outline: 2px solid var(--umber-hi);
  outline-offset: 2px;
  border-radius: 1px;
}

/* ---------- Animations ---------- */

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
