/* Unstoppable Future Corporation - site styles */
:root {
  --ink: #191635;
  --ink-soft: #2a2740;
  --muted: #5e5a78;
  --paper: #ffffff;
  --mist: #f4f3fb;
  --line: #e4e2f0;
  --accent: #5b3df5;
  --accent-deep: #3f28c7;
  --gold: #ffb546;
  --radius: 14px;
  --font-display: "Sora", "Avenir Next", "Segoe UI", sans-serif;
  --font-body: "Figtree", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink-soft);
  background: var(--paper);
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-deep); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, label:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.wrap { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 700; margin: 0 0 0.6em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 700; margin: 1.6em 0 0.6em; }
h3 { font-size: 1.15rem; font-weight: 600; margin: 0.8em 0 0.2em; }
.section h2:first-child, .wrap > h2:first-child { margin-top: 0; }
.lead { font-size: 1.2rem; color: var(--ink-soft); }

/* ------------------------------------------------ header */
.site-header {
  background: var(--ink);
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  flex-wrap: wrap;
}
.brand img { display: block; height: 48px; width: auto; }
.site-nav ul {
  display: flex;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}
.site-nav a {
  display: block;
  padding: 10px 14px;
  color: #efedff;
  text-decoration: none;
  font-weight: 500;
  border-radius: 8px;
}
.site-nav a:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }
.site-nav a.active { color: #fff; box-shadow: inset 0 -2px 0 var(--gold); border-radius: 8px 8px 0 0; }

/* About dropdown */
.site-nav .has-sub { position: relative; }
.has-sub > a::after {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-left: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-3px) rotate(45deg);
}
.site-nav .sub-nav {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 180px;
  flex-direction: column;
  gap: 2px;
  padding: 8px;
  background: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  transition: opacity 0.15s, transform 0.15s, visibility 0.15s;
}
.has-sub:hover > .sub-nav,
.has-sub:focus-within > .sub-nav { opacity: 1; visibility: visible; transform: none; }
.site-nav .sub-nav a.active { box-shadow: inset 3px 0 0 var(--gold); border-radius: 8px; }

.nav-toggle { position: absolute; opacity: 0; pointer-events: none; }
.nav-button {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 12px;
  cursor: pointer;
  border-radius: 8px;
}
.nav-button span {
  width: 24px;
  height: 2px;
  background: #fff;
  display: block;
}

@media (max-width: 820px) {
  .nav-button { display: flex; }
  .site-nav { display: none; width: 100%; }
  .nav-toggle:checked ~ .site-nav { display: block; padding-bottom: 12px; }
  .site-nav ul { flex-direction: column; gap: 2px; }
  .site-nav a.active { box-shadow: inset 3px 0 0 var(--gold); border-radius: 8px; }
  .has-sub > a::after { display: none; }
  .site-nav .sub-nav {
    position: static;
    min-width: 0;
    padding: 2px 0 0 16px;
    background: none;
    border: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }
}

/* ------------------------------------------------ hero */
.hero {
  background: var(--ink);
  color: #fff;
  padding: 84px 0 92px;
}
.hero h1 {
  color: #fff;
  font-size: clamp(2.4rem, 7vw, 4.4rem);
  margin: 0 0 0.5em;
}
.hero .sparkle { color: var(--gold); }
.hero-sub {
  max-width: 560px;
  font-size: 1.25rem;
  color: #cfc9f2;
  margin: 0 0 2em;
}

/* ------------------------------------------------ buttons */
.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid var(--accent);
  border-radius: 999px;
  padding: 13px 28px;
  cursor: pointer;
}
.btn:hover { background: var(--accent-deep); border-color: var(--accent-deep); }
.btn-ghost {
  background: transparent;
  color: var(--accent-deep);
}
.btn-ghost:hover { background: var(--accent); color: #fff; }

/* ------------------------------------------------ sections */
.section { padding: 72px 0; }
.section-tint { background: var(--mist); }
.page-head {
  background: var(--ink);
  color: #fff;
  padding: 64px 0 56px;
}
.page-head h1 { color: #fff; margin-bottom: 0.3em; }
.page-head .lead { color: #cfc9f2; max-width: 720px; margin: 0; }

.split {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 56px;
  align-items: center;
}
.split-media { margin: 0; }
.split-media img { border-radius: var(--radius); width: 100%; object-fit: cover; }
.split-top { align-items: start; }
.split-top .split-media { position: sticky; top: 112px; }
.tagline {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--accent-deep);
  margin-top: 1.6em;
}
@media (max-width: 820px) {
  .split { grid-template-columns: 1fr; gap: 32px; }
  .split-top .split-media { position: static; }
}

/* ------------------------------------------------ focus tiles */
.focus-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
  margin: 40px 0;
}
.focus-tile {
  position: relative;
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  grid-column: span 2;
  aspect-ratio: 4 / 3;
  background: var(--ink);
  text-decoration: none;
}
/* center the two tiles on the second row under the three above */
.focus-tile:nth-child(4):nth-last-child(2) { grid-column: 2 / span 2; }
.focus-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
}
.focus-tile:hover img { opacity: 0.65; }
.focus-tile-label {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 44px 20px 16px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  color: #fff;
  background: linear-gradient(to top, rgba(14, 12, 36, 0.9), rgba(14, 12, 36, 0));
}
@media (max-width: 820px) {
  .focus-grid { grid-template-columns: 1fr; }
  .focus-tile, .focus-tile:nth-child(4):nth-last-child(2) { aspect-ratio: 16 / 10; grid-column: span 1; }
}

.focus-hero {
  background-color: var(--ink);
  background-size: cover;
  background-position: center;
  min-height: 320px;
  display: flex;
  align-items: flex-end;
  position: relative;
}
.focus-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(14, 12, 36, 0.85), rgba(14, 12, 36, 0.15));
}
.focus-hero .wrap { position: relative; padding-bottom: 36px; width: 100%; }
.focus-hero h1 { color: #fff; margin: 0; }

.focus-video {
  width: 100%;
  max-width: 760px;
  border-radius: var(--radius);
  margin-top: 24px;
}

.project-nav { padding: 0 0 72px; }
.project-nav-inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  padding-top: 24px;
}
.project-nav a { font-weight: 600; text-decoration: none; }
.project-nav a:hover { text-decoration: underline; }

/* ------------------------------------------------ gallery */
.gallery {
  columns: 3 280px;
  column-gap: 16px;
}
.gallery img {
  width: 100%;
  margin: 0 0 16px;
  border-radius: 10px;
  break-inside: avoid;
}

/* ------------------------------------------------ team */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 28px;
  margin-top: 40px;
}
.team-card img {
  width: 100%;
  aspect-ratio: 6 / 5;
  object-fit: cover;
  border-radius: var(--radius);
}
.team-card h3 { margin: 12px 0 2px; }
.team-card p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.card-link { font-weight: 600; font-size: 0.95rem; }

/* ------------------------------------------------ bio */
.bio-head {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 44px;
  align-items: center;
}
.bio-portrait { border-radius: var(--radius); width: 100%; }
.bio-head p, .bio-head .lead { color: #cfc9f2; }
.bio-head a { color: #fff; }
.social-links {
  list-style: none;
  padding: 0;
  margin: 0 0 1.2em;
  display: flex;
  gap: 10px;
}
.social-links a {
  display: inline-block;
  padding: 6px 14px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
}
.social-links a:hover { background: rgba(255, 255, 255, 0.12); }
@media (max-width: 720px) {
  .bio-head { grid-template-columns: 1fr; }
  .bio-portrait { max-width: 280px; }
}

.article h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.article h2 { margin-top: 1.8em; }
.article figcaption { font-size: 0.9rem; color: var(--muted); margin-top: 8px; }
.article-hero { border-radius: var(--radius); margin: 24px 0; max-width: 620px; }
.two-col-list {
  columns: 2 280px;
  column-gap: 40px;
  padding-left: 20px;
}
.two-col-list li { break-inside: avoid; margin-bottom: 4px; }

/* ------------------------------------------------ blog */
.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}
.post-card {
  display: block;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  background: #fff;
}
.post-card:hover { border-color: var(--accent); }
.post-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.post-card-body { padding: 20px 22px 24px; }
.post-card-body h2 { font-size: 1.2rem; margin: 0 0 0.5em; }
.post-card:hover h2 { color: var(--accent-deep); }
.post-meta { color: var(--muted); font-size: 0.92rem; }

/* ------------------------------------------------ forms */
.contact-form { margin-top: 32px; }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }
.form-field { margin-bottom: 18px; }
.form-field label {
  display: block;
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 6px;
  color: var(--ink);
}
.form-field input, .form-field textarea {
  width: 100%;
  font: inherit;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink-soft);
}
.form-field input:focus, .form-field textarea:focus {
  border-color: var(--accent);
  outline: none;
  box-shadow: 0 0 0 3px rgba(91, 61, 245, 0.18);
}
.form-check {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 4px 0 24px;
}
.form-check input { width: 18px; height: 18px; accent-color: var(--accent); }
.hidden-field { display: none; }

/* ------------------------------------------------ footer */
.site-footer {
  background: var(--ink);
  color: #cfc9f2;
  padding: 56px 0 40px;
  margin-top: 40px;
}
.footer-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 40px;
  align-items: start;
}
.footer-logo { border-radius: 6px; }
.site-footer a { color: #fff; }
.site-footer p { margin: 0 0 10px; }
.footer-legal { text-align: right; }
.footer-bottom {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.875rem;
  text-align: center;
}
.site-footer .footer-bottom p { margin: 0; }
@media (max-width: 720px) {
  .footer-inner { grid-template-columns: 1fr; gap: 20px; }
  .footer-legal { text-align: left; }
}
