/* Institute of Impossible Skies — showcase styles */

@import url("https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700;800&family=Hind:wght@300;400;500&display=swap");

:root {
  --bg-deep: #07060c;
  --bg-panel: #100e18;
  --ink: #f3f0e8;
  --muted: #9a93a8;
  --accent: #e8a54b;
  --glow: #5ce1d6;
  --danger: #ff6b9d;
  --border: rgba(243, 240, 232, 0.12);
  --radius: 2px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --font-display: "Syne", system-ui, sans-serif;
  --font-body: "Hind", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg-deep);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.05rem;
  line-height: 1.65;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.07;
  z-index: 9998;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

a {
  color: var(--glow);
  text-decoration: none;
  transition: color 0.2s var(--ease-out);
}

a:hover {
  color: var(--accent);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  background: linear-gradient(
    180deg,
    rgba(7, 6, 12, 0.92) 0%,
    rgba(7, 6, 12, 0.55) 70%,
    transparent 100%
  );
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
}

.site-nav.scrolled {
  background: rgba(7, 6, 12, 0.88);
  border-bottom-color: var(--border);
}

.brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
}

.brand span {
  color: var(--accent);
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--ink);
}

.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  align-items: end;
  padding: 6rem 1.5rem 3rem;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.05) contrast(1.05);
}

.hero__veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(
      105deg,
      rgba(7, 6, 12, 0.92) 0%,
      rgba(7, 6, 12, 0.45) 42%,
      rgba(7, 6, 12, 0.25) 100%
    ),
    radial-gradient(
      ellipse 80% 60% at 70% 20%,
      rgba(92, 225, 214, 0.12),
      transparent 55%
    );
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 38rem;
}

.kicker {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--glow);
  margin: 0 0 1rem;
  opacity: 0;
  animation: rise 1s var(--ease-out) 0.2s forwards;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.4rem, 6vw, 4rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin: 0 0 1.25rem;
  opacity: 0;
  animation: rise 1s var(--ease-out) 0.35s forwards;
}

.hero__lead {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 32ch;
  margin: 0 0 2rem;
  opacity: 0;
  animation: rise 1s var(--ease-out) 0.5s forwards;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  opacity: 0;
  animation: rise 1s var(--ease-out) 0.65s forwards;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.9rem 1.35rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: transform 0.25s var(--ease-out), border-color 0.25s, background 0.25s;
}

.btn--primary {
  background: var(--accent);
  color: var(--bg-deep);
  border-color: var(--accent);
}

.btn--primary:hover {
  transform: translateY(-2px);
  color: var(--bg-deep);
}

.btn--ghost {
  background: rgba(7, 6, 12, 0.5);
  color: var(--ink);
}

.btn--ghost:hover {
  border-color: var(--glow);
  color: var(--glow);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.section {
  padding: 4.5rem 1.5rem;
  max-width: 72rem;
  margin: 0 auto;
}

.section--tight {
  padding-top: 3rem;
}

.section__head {
  max-width: 40rem;
  margin-bottom: 2.5rem;
}

.section__head h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
}

.section__head p {
  margin: 0;
  color: var(--muted);
}

.panel-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
}

.panel {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.35s var(--ease-out), border-color 0.35s;
}

.panel:hover {
  transform: translateY(-4px);
  border-color: rgba(232, 165, 75, 0.35);
}

.panel__img {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.panel__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}

.panel:hover .panel__img img {
  transform: scale(1.04);
}

.panel__body {
  padding: 1.25rem 1.35rem 1.5rem;
}

.panel__body h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  margin: 0 0 0.5rem;
}

.panel__body p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
}

.marquee-wrap {
  border-block: 1px solid var(--border);
  background: linear-gradient(90deg, var(--bg-panel), var(--bg-deep), var(--bg-panel));
  overflow: hidden;
  padding: 0.85rem 0;
}

.marquee {
  display: flex;
  gap: 3rem;
  width: max-content;
  animation: scroll 28s linear infinite;
}

.marquee span {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

@keyframes scroll {
  to {
    transform: translateX(-50%);
  }
}

.split {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 900px) {
  .split {
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
  }
}

.split__visual {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

.split__visual img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.quote {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  line-height: 1.35;
  margin: 0 0 1rem;
  color: var(--ink);
}

.quote-mark {
  color: var(--danger);
  font-weight: 800;
}

.log {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--border);
}

.log li {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);
  display: grid;
  gap: 0.35rem;
}

@media (min-width: 640px) {
  .log li {
    grid-template-columns: 7rem 1fr;
    align-items: baseline;
    gap: 1.5rem;
  }
}

.log time {
  font-family: ui-monospace, "Cascadia Code", monospace;
  font-size: 0.75rem;
  color: var(--accent);
  letter-spacing: 0.04em;
}

.log p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.site-footer {
  padding: 3rem 1.5rem;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--muted);
  font-size: 0.88rem;
}

.site-footer strong {
  color: var(--ink);
  font-family: var(--font-display);
  letter-spacing: 0.06em;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
