:root {
  color-scheme: dark;
  --bg: #050505;
  --bg-soft: #0b0b0b;
  --panel: rgba(255, 255, 255, 0.04);
  --panel-strong: rgba(255, 255, 255, 0.08);
  --line: rgba(255, 255, 255, 0.14);
  --line-strong: rgba(255, 255, 255, 0.32);
  --text: #f3f3ef;
  --muted: rgba(243, 243, 239, 0.68);
  --soft: rgba(243, 243, 239, 0.44);
  --max-width: 1440px;
  --sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --display: "Baskerville", "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(180deg, #050505, #070707);
  color: var(--text);
  font-family: var(--sans);
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.06), transparent 44%);
  opacity: 0.45;
}

a {
  color: inherit;
  text-decoration: none;
}

video {
  display: block;
  width: 100%;
  height: auto;
}

.site-header,
main {
  position: relative;
  z-index: 1;
}

.site-header {
  width: calc(100% - 56px);
  margin: 0 28px;
  padding: 28px 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 11.5rem;
  height: 1.5rem;
}

.brand-mobile-wordmark {
  display: none;
  font-family: var(--display);
  font-size: 1.12rem;
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--text);
}

.brand-text,
.site-nav a,
.eyebrow,
.column-label,
.feature-index,
.stage-meta {
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 11px;
}

.brand-text,
.site-nav a,
.eyebrow,
.column-label,
.feature-index,
.stage-meta {
  color: var(--soft);
}

.brand-text {
  font-size: 12px;
}

.brand-morph {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  filter: url(#brand-threshold) blur(0.35px);
}

.brand-morph-text {
  position: absolute;
  inset: 0;
  display: block;
  white-space: nowrap;
  text-transform: none;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1;
  color: var(--text);
  opacity: 0;
}

.brand-filters {
  position: fixed;
  width: 0;
  height: 0;
  pointer-events: none;
}

.site-nav {
  display: flex;
  gap: 0;
}

.nav-contact {
  font-family: "Space Grotesk", var(--sans);
  text-transform: none;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--text);
}

main {
  width: calc(100% - 56px);
  margin: 0 28px;
  padding-bottom: 72px;
}

.section {
  padding: 40px 0 0;
}

.hero {
  min-height: calc(100vh - 94px);
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: center;
  gap: 28px;
  padding-top: 86px;
}

.hero-copy {
  padding-bottom: 24px;
}

.hero h1,
.section-head h2,
.contact-strip h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero h1 {
  font-size: clamp(4.2rem, 7.8vw, 7rem);
}

.hero-text,
.about-copy p,
.manifesto p,
.feature-card p,
.contact-strip p,
.press-note p {
  color: var(--muted);
  line-height: 1.6;
  font-size: 1rem;
}

.feature-card p,
.project-column p,
.contact-strip p {
  margin: 0;
}

.hero-text {
  max-width: 30rem;
  margin: 26px 0 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 30px 0 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.06);
}

.button-primary {
  background: var(--text);
  color: var(--bg);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.hero-rail {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 20px;
  margin: 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.hero-rail span {
  color: var(--soft);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero-stage {
  display: grid;
  align-self: stretch;
  justify-self: start;
  margin-left: -72px;
}

.stage-frame {
  position: relative;
  display: grid;
  align-items: center;
  background: transparent;
  border-top: none;
  border-bottom: none;
  min-height: min(62vh, 680px);
  aspect-ratio: 16 / 10;
  padding: 0;
  overflow: hidden;
}

.hero-video {
  display: block;
  width: 100%;
  min-height: 560px;
  height: 100%;
  object-fit: cover;
  object-position: 22% center;
  transform: scale(0.9);
  filter: grayscale(1) contrast(1.08) brightness(0.96);
  opacity: 0.96;
  pointer-events: none;
}

.hero-video::-webkit-media-controls {
  display: none !important;
}

.contact-flow-video::-webkit-media-controls {
  display: none !important;
}

.section-head {
  margin-bottom: 28px;
}

.section-head h2,
.contact-strip h2 {
  max-width: 13ch;
  font-size: clamp(2.5rem, 6vw, 5rem);
}

.intro-grid,
.projects-grid,
.about-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 18px;
}

.intro-grid .section-head,
.projects-grid .section-head,
.about-grid .section-head {
  grid-column: 1 / -1;
}

.feature-card,
.project-column,
.manifesto,
.press-note,
.contact-strip {
  background: transparent;
  border-top: 1px solid var(--line);
}

.feature-card {
  grid-column: span 4;
  min-height: 220px;
  padding: 20px 0 20px;
  display: grid;
  align-content: space-between;
  gap: 10px;
}

.feature-card-link {
  cursor: pointer;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease;
}

.feature-card-link:hover,
.feature-card-link:focus-visible {
  transform: translateY(-4px);
  border-top-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.03);
}

.feature-card-large {
  grid-column: span 12;
  grid-template-columns: 80px 1.2fr 0.8fr;
  align-items: start;
  min-height: auto;
}

.feature-card h3 {
  margin: 0 0 12px;
  font-size: 1.45rem;
  font-weight: 500;
  line-height: 1.04;
}

.feature-note {
  margin: 0;
  padding-left: 24px;
  border-left: 1px solid rgba(255, 255, 255, 0.12);
}

.project-column {
  grid-column: span 6;
}

.project-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.project-list li {
  padding: 0;
  border-top: 1px solid var(--line);
}

.project-list li:last-child {
  border-bottom: 1px solid var(--line);
}

.project-link {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 18px;
  width: 100%;
  padding: 16px 0;
  transition:
    transform 180ms ease,
    color 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease;
}

.project-link:hover,
.project-link:focus-visible {
  transform: translateX(2px);
  background: rgba(255, 255, 255, 0.02);
}

.project-link span:first-child {
  color: var(--text);
}

.project-link span:last-child {
  color: var(--muted);
}

.about-copy {
  grid-column: 1 / span 7;
  display: grid;
  gap: 12px;
}

.press-note {
  grid-column: 9 / -1;
  padding: 20px 0 0;
}

.contact-strip {
  position: relative;
  padding: 26px 0 0;
  margin-top: 22px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  align-items: start;
  max-width: 52rem;
}

.contact-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
}

.social-strip {
  margin-top: 28px;
  border-top: 1px solid var(--line);
  padding-top: 22px;
}

.social-links {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.social-link {
  display: grid;
  gap: 6px;
  min-height: 96px;
  padding: 16px 0 0;
  border-top: 1px solid var(--line);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease;
}

.social-link:hover,
.social-link:focus-visible {
  transform: translateY(-4px);
  border-top-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.03);
}

.social-link span:first-child {
  color: var(--text);
}

.social-link span:last-child {
  color: var(--soft);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  word-break: break-all;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.contact-award-shell {
  position: absolute;
  left: calc(100% + (100vw - 100% - 56px) / 2 - 3vw);
  top: 50%;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  width: min(480px, 36vw);
  aspect-ratio: 1;
  overflow: hidden;
  pointer-events: none;
}

.contact-flow-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  filter: grayscale(1) contrast(1.08) brightness(0.96);
  mask-image: radial-gradient(circle, black 40%, transparent 72%);
  -webkit-mask-image: radial-gradient(circle, black 40%, transparent 72%);
  opacity: 0;
  transition: opacity 400ms ease;
}

.contact-award-shell.is-live .contact-flow-video {
  opacity: 1;
}

.contact-email {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--soft);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition:
    transform 180ms ease,
    color 180ms ease;
}

.contact-email:hover,
.contact-email:focus-visible {
  transform: translateY(-2px);
  color: var(--text);
}

.inline-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  width: fit-content;
  color: var(--soft);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.feature-card-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
  width: fit-content;
  border-top: 1px solid var(--line);
  padding-top: 8px;
}

.feature-card-links .inline-link {
  border-top: none;
  padding-top: 0;
}

.app-store-link svg {
  width: 11px;
  height: 14px;
}

.cbc-badge {
  gap: 6px;
  opacity: 0.7;
  white-space: nowrap;
}

.cbc-badge svg {
  flex-shrink: 0;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: calc(100% - 56px);
  margin: 0 28px;
  padding: 24px 0 28px;
  border-top: 1px solid var(--line);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--soft);
}

.reveal {
  opacity: 1;
}



@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .button {
    transition: none;
  }

  .reveal {
    transition: none;
  }

  .contact-flow-video {
    transition: none;
  }
}

@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    gap: 36px;
  }

  .intro-grid,
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .hero h1 {
    max-width: 12ch;
  }

  .hero-rail {
    gap: 12px;
  }

  .feature-card,
  .feature-card-large,
  .project-column,
  .about-copy,
  .press-note,
  .contact-strip,
  .social-strip {
    grid-column: 1 / -1;
  }

  .feature-card-large {
    grid-template-columns: 1fr;
  }

  .contact-strip {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .contact-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .contact-award-shell {
    position: relative;
    left: auto;
    top: auto;
    transform: none;
    align-self: center;
    width: min(280px, 60vw);
    pointer-events: auto;
  }

  .social-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .site-header,
  main {
    width: min(calc(100% - 32px), var(--max-width));
    margin: 0 auto;
  }

  .site-header {
    padding-top: 16px;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .brand {
    min-width: auto;
    height: 1rem;
  }

  .brand-mobile-wordmark {
    display: block;
  }

  .brand-morph {
    display: none;
  }

  .site-nav {
    flex-wrap: nowrap;
    gap: 0;
  }

  .hero {
    padding-top: 40px;
    gap: 22px;
  }

  .hero-stage {
    margin-left: 0;
    justify-self: center;
    width: 100%;
  }

  .hero-copy {
    padding-bottom: 0;
  }

  .stage-frame {
    min-height: auto;
    aspect-ratio: 16 / 11;
    max-width: 36rem;
    margin: 0 auto;
    padding: 0;
  }

  .hero-video {
    min-height: 0;
    object-position: center center;
    transform: scale(0.92);
  }

  .feature-card {
    min-height: auto;
    gap: 8px;
    padding: 16px 0;
  }

  .social-link {
    min-height: auto;
  }

  .feature-card h3 {
    margin-bottom: 10px;
  }

  .feature-card p {
    line-height: 1.72;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .contact-actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .hero-rail {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 14px;
  }

  .project-list li {
    padding: 0;
  }

  .project-link {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .social-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .social-link:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }

  .project-column + .project-column {
    border-top: none;
    margin-top: -1px;
  }

  .project-column + .project-column .project-list li:first-child {
    border-top: none;
  }

  .inline-link {
    width: 100%;
  }

  main {
    padding-bottom: 32px;
  }
}
