/* Matched to Squarespace site.css + Safari archive */
@import url('https://fonts.googleapis.com/css2?family=Jost:wght@300;400;600;700&display=swap');

*, *::before, *::after {
  box-sizing: border-box;
}

:root {
  --bg: #ffffff;
  --header-bg: #000000;
  --footer-bg: #000000;
  --text: #000000;
  --link: #ff0000;
  --link-border: rgba(255, 0, 0, 0.3);
  --border: #dddddd;
  --max-width: 1200px;
  --content-width: 960px;
  --font-heading: futura-pt, 'Jost', 'Century Gothic', 'Trebuchet MS', sans-serif;
  --font-body: Arial, Helvetica, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

/* Content links — red underline like Squarespace */
main a {
  color: var(--link);
  text-decoration: none;
  border-bottom: 1px solid var(--link-border);
  transition: color 0.15s ease-out, border-color 0.15s ease-out;
}

main a:hover {
  color: rgba(255, 0, 0, 0.5);
  border-bottom-color: rgba(255, 0, 0, 0.15);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Header — black overlay bar */
.site-header {
  background: var(--header-bg);
  color: #fff;
  position: relative;
  z-index: 100;
}

.header-inner {
  max-width: 100%;
  margin: 0 auto;
  padding: 20px 3vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex: 1;
  min-width: 0;
}

.site-logo {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  border: none;
}

.site-logo:hover {
  opacity: 0.6;
}

.site-tagline {
  margin: 0;
  font-family: var(--font-body);
  font-size: 12px;
  line-height: 1.3;
  color: #fff;
  font-weight: 400;
  max-width: 40em;
}

.site-nav {
  display: flex;
  gap: 1.25rem;
  flex-shrink: 0;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.site-nav a {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: lowercase;
  color: #fff;
  text-decoration: none;
  border: none;
  transition: color 0.15s ease-out;
}

.site-nav a:hover {
  color: rgba(255, 255, 255, 0.4);
}

/* Page layout with right index nav */
.page-layout {
  display: flex;
  align-items: flex-start;
}

.page-main {
  flex: 1;
  min-width: 0;
}

.index-nav {
  position: sticky;
  top: 0;
  align-self: flex-start;
  padding: 2rem 1.5rem 2rem 0.5rem;
  display: none;
}

.index-nav-inner {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.index-nav a {
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text);
  text-decoration: none;
  border: none;
  opacity: 0.5;
  transition: opacity 0.15s;
}

.index-nav a:hover,
.index-nav a.active {
  opacity: 1;
}

@media (min-width: 1100px) {
  .index-nav {
    display: block;
  }
}

/* Hero / Landing */
.hero {
  text-align: center;
  padding: 4rem 3vw 2rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 12vw, 120px);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1;
  margin: 0 0 2rem;
  text-transform: uppercase;
  color: var(--text);
}

.scroll-hint {
  display: block;
  margin: 2rem auto 0;
  color: var(--text);
  font-family: var(--font-heading);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  opacity: 0.6;
}

.scroll-hint:hover {
  opacity: 1;
}

/* Quote block */
.quote-block {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 6%;
  text-align: center;
}

.quote-block blockquote {
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(1.25rem, 4vw, 48px);
  font-weight: 700;
  font-style: normal;
  line-height: 1.2;
  color: var(--text);
}

.quote-source {
  margin-top: 0;
  font-family: var(--font-heading);
  font-size: 14px;
  line-height: 3;
  color: var(--text);
}

/* Overview two-column layout (timeline left, info right) */
.overview-columns {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 3vw 3rem;
}

.timeline {
  flex: 0 0 25%;
  min-width: 160px;
}

.timeline h3 {
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 300;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin: 1.5rem 0 0.35rem;
  line-height: 1.2;
}

.timeline h3:first-child {
  margin-top: 0;
}

.timeline p {
  margin: 0 0 0.35rem;
  font-size: 16px;
  line-height: 1.6;
}

.overview-main {
  flex: 1;
  min-width: 260px;
}

.overview-main p {
  margin-bottom: 1rem;
}

/* Layer diagrams */
.layer-diagrams {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 1.5rem;
}

.layer-diagram {
  flex: 1;
  min-width: 200px;
  max-width: 484px;
}

.layer-diagram img {
  margin-bottom: 0.5rem;
}

.layer-diagram figcaption {
  font-size: 16px;
}

/* Sections */
section {
  padding: 3rem 3vw;
}

.section-wide {
  max-width: var(--content-width);
  margin: 0 auto;
}

section h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 4vw, 48px);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.25;
  margin: 0 0 2rem;
}

.subheading {
  text-align: center;
  text-decoration: underline;
  margin-bottom: 0.5rem;
}

.subheading-note {
  text-align: center;
  font-size: 16px;
  margin-bottom: 2rem;
}

.subheading-note h3,
h3.subheading-note {
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 300;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin: 0 0 2rem;
}

/* Platform cards */
.platform-item {
  margin-bottom: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--border);
}

.platform-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.platform-item img {
  margin: 0 auto 1.5rem;
  max-width: 800px;
}

.platform-item .platform-title {
  margin: 0 0 0.5rem;
}

.platform-item .platform-title a {
  color: var(--link);
  font-weight: 700;
}

.platform-item .platform-subtitle {
  font-style: italic;
  margin-bottom: 1rem;
}

.platform-item p {
  margin-bottom: 0.75rem;
}

/* Video embeds */
.video-grid {
  display: grid;
  gap: 1.5rem;
  margin: 2rem 0;
}

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  background: #000;
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-single {
  max-width: 854px;
  margin: 0 auto;
}

/* Subpages */
.dev-section {
  margin-bottom: 0;
}

.dev-section ul {
  padding-left: 1.25rem;
}

.dev-section li {
  margin-bottom: 0.5rem;
}

.site-nav a.active,
.site-nav a[aria-current="page"] {
  opacity: 1;
}

.site-nav a.active {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

/* Developers page */
.page-content hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 2.5rem 0;
}

.dev-link {
  text-align: center;
  margin: 1rem 0;
  word-break: break-all;
}

.video-grid-two {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin: 1.5rem 0;
}

.video-grid-three {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin: 1.5rem 0 2rem;
}

@media (max-width: 768px) {
  .video-grid-two,
  .video-grid-three {
    grid-template-columns: 1fr;
  }
}

.page-content {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 3rem 3vw 5rem;
}

.page-content h1 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 8vw, 48px);
  font-weight: 700;
  text-transform: uppercase;
}

/* Newsletter / Mailchimp */
#mc_embed_signup {
  background: #f9f9f9;
  border: 1px solid var(--border);
  padding: 2rem;
  margin-top: 2rem;
}

#mc_embed_signup label {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.9rem;
}

#mc_embed_signup input[type="email"],
#mc_embed_signup input[type="text"],
#mc_embed_signup select {
  width: 100%;
  padding: 0.6rem 0.75rem;
  margin-bottom: 1rem;
  background: #fff;
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 1rem;
}

#mc_embed_signup input[type="checkbox"] {
  margin-right: 0.5rem;
}

#mc_embed_signup .mc-field-group.input-group ul {
  list-style: none;
  padding: 0;
}

#mc_embed_signup .mc-field-group.input-group li {
  margin-bottom: 0.5rem;
}

#mc_embed_signup input[type="submit"] {
  background: #000;
  color: #fff;
  border: none;
  padding: 0.75rem 2rem;
  font-family: var(--font-heading);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  margin-top: 1rem;
}

.indicates-required {
  font-size: 0.8rem;
  margin-bottom: 1rem;
}

/* Footer — black bar, white links */
.site-footer {
  background: var(--footer-bg);
  color: #fff;
  padding: 2.5rem 3vw;
  text-align: center;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 1.5rem;
}

.footer-links a {
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #fff;
  text-decoration: none;
  border: none;
  transition: color 0.15s ease-out;
}

.footer-links a:hover {
  color: rgba(255, 255, 255, 0.5);
}

/* Responsive */
@media (max-width: 768px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .header-left {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .site-nav {
    width: 100%;
    justify-content: flex-start;
  }

  .overview-columns {
    flex-direction: column;
  }

  .timeline {
    flex: none;
    width: 100%;
  }

  .layer-diagrams {
    flex-direction: column;
  }
}
