:root {
  color-scheme: dark;
  --page: #020407;
  --white: #f6fbff;
  --blue: #8bdaff;
  --copy: #becfdd;
  --heading-glow: 0 0 5px rgba(248, 253, 255, .4), 0 0 18px rgba(216, 242, 255, .4), 0 0 44px rgba(117, 211, 255, .333);
  --copy-glow: 0 0 4px rgba(239, 250, 255, .125), 0 0 10px rgba(139, 218, 255, .19);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--page);
  color: var(--white);
  font-family: Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
canvas { display: block; }
a { color: var(--blue); text-underline-offset: .22em; }
a:hover { color: #d8f3ff; }
a:focus-visible {
  outline: 3px solid #adefd3;
  outline-offset: 5px;
  border-radius: 3px;
}
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { color: var(--white); text-shadow: var(--heading-glow); }
p { text-shadow: var(--copy-glow); }
strong { color: var(--white); }
section[id] { scroll-margin-top: 24px; }
.skip-link {
  position: fixed;
  z-index: 10;
  top: 12px;
  left: 12px;
  padding: 12px 18px;
  background: #9bdfff;
  color: #04121c;
  font-weight: 700;
  transform: translateY(-180%);
}
.skip-link:focus { transform: translateY(0); }

.masthead {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 30px 0 182px;
  background: #010306;
}
.stars {
  position: absolute;
  z-index: -1;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(#000 0%, #000 84%, transparent 100%);
  mask-image: linear-gradient(#000 0%, #000 84%, transparent 100%);
}
.masthead::after {
  position: absolute;
  z-index: -1;
  inset: 84% 0 0;
  background: linear-gradient(transparent, var(--page));
  content: "";
  pointer-events: none;
}
.masthead-content { text-align: center; }
.main-logo {
  display: block;
  width: min(78vw, 820px);
  height: clamp(190px, 34vw, 390px);
  margin: 0 auto;
  object-fit: contain;
}
.masthead-subtitle {
  margin: 17px 16px 0;
  color: var(--white);
  font-size: clamp(12px, 2vw, 26px);
  font-weight: 400;
  letter-spacing: clamp(2.3px, .65vw, 9px);
  line-height: 1.25;
  text-shadow: var(--heading-glow);
}

.intro {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: start;
  gap: 5vw;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 7vw 80px;
}
.intro h1 {
  margin-bottom: 0;
  font-size: clamp(38px, 5.3vw, 76px);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -.055em;
}
.intro-copy {
  padding-top: 0;
  color: var(--copy);
  font-size: clamp(17px, 1.5vw, 21px);
  line-height: 1.65;
}
.intro-copy p { margin-bottom: 23px; }
.intro-copy p:last-child { margin-bottom: 0; }
.brand-reference {
  color: var(--white);
  font-weight: 700;
  text-shadow: var(--heading-glow);
}
a.brand-reference { text-decoration: none; }
a.brand-reference:hover { text-decoration: underline; }
.section-links { font-size: .9em; }
.section-links a { text-decoration: none; }
.section-links a:hover { text-decoration: underline; }
.section-links span { margin: 0 .25em; color: #7d9cac; }

.feature-section { padding: 40px 4vw 65px; }
.feature-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: clamp(480px, 52vw, 720px);
  border: 1px solid rgba(139, 218, 255, .33);
  border-radius: 28px;
  background: #071323;
  box-shadow: 0 0 36px rgba(73, 173, 230, .09), inset 0 0 30px rgba(64, 156, 211, .035);
}
.feature-art {
  position: absolute;
  z-index: -2;
  inset: 0;
  background: #071323 url("assets/flipfinder-resale.jpg") center / cover no-repeat;
}
.feature-card::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(90deg, rgba(4, 14, 25, .98) 0%, rgba(4, 14, 25, .93) 28%, rgba(4, 14, 25, .78) 43%, rgba(4, 14, 25, .13) 66%, transparent 82%);
  content: "";
}
.feature-copy {
  width: 47%;
  margin-left: 5vw;
  padding: 45px 0;
}
.eyebrow {
  color: var(--blue);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: .18em;
  text-shadow: var(--copy-glow);
}
.feature-copy .eyebrow { margin-bottom: 18px; }
.flipfinder-title {
  margin-bottom: 20px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(58px, 7vw, 112px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.07em;
}
.feature-copy h3 {
  max-width: 580px;
  margin-bottom: 24px;
  font-size: clamp(22px, 2.85vw, 40px);
  font-weight: 600;
  line-height: 1.17;
  letter-spacing: -.025em;
}
.feature-description {
  max-width: 520px;
  margin-bottom: 30px;
  color: #d8e7f0;
  font-size: clamp(16px, 1.5vw, 21px);
  line-height: 1.5;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 24px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
  text-shadow: none;
  transition: background-color .18s ease, transform .18s ease;
}
.button:hover { transform: translateY(-2px); }
.button-mint { background: #adefd3; color: #06261c; }
.button-mint:hover { background: #cef9e6; color: #06261c; }

.project-lab {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 54px 7vw 90px;
}
.lab-caption { margin-bottom: 26px; font-size: 14px; }
.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.project-card {
  min-width: 0;
  padding: 34px;
  border: 1px solid rgba(139, 218, 255, .25);
  border-radius: 22px;
  background: radial-gradient(ellipse at 100% 0, rgba(44, 117, 156, .14), transparent 64%), linear-gradient(135deg, #091522, #040b12);
  transition: transform .2s ease, border-color .2s ease;
}
.project-card:hover {
  transform: translateY(-4px);
  border-color: rgba(139, 218, 255, .45);
}
.project-card .eyebrow { margin-bottom: 17px; font-size: 11px; }
.project-card h3 {
  margin-bottom: 19px;
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -.04em;
}
.project-card p:not(.eyebrow) {
  margin-bottom: 18px;
  color: var(--copy);
  font-size: 17px;
  line-height: 1.65;
}
.project-card p.project-lead { color: #e3eff7; font-size: 20px; line-height: 1.45; }
.project-card p:last-child { margin-bottom: 0; }
.preview-link {
  display: inline-block;
  margin-top: 3px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
}
.preview-link span { margin-left: .2em; }
.project-card p.concept-note {
  margin: 14px 0 0;
  color: #9fb4c5;
  font-size: 13px;
}

.contact {
  padding: 72px 7vw 80px;
  border-top: 1px solid rgba(139, 218, 255, .16);
  background: radial-gradient(ellipse at 50% 115%, rgba(30, 101, 153, .17), transparent 65%), #010306;
  text-align: center;
}
.contact-content { max-width: 1100px; margin: 0 auto; }
.contact h2 {
  margin-bottom: 24px;
  font-size: clamp(32px, 4.4vw, 62px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.045em;
}
.contact-description {
  margin-bottom: 30px;
  color: var(--copy);
  font-size: clamp(17px, 1.6vw, 21px);
  line-height: 1.6;
}
.button-blue { min-height: 48px; padding: 8px 26px; background: #9bdfff; color: #041a28; }
.button-blue:hover { background: #c6eeff; color: #041a28; }
.footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin: 45px 0 0;
}
.footer-wordmark { font-size: 22px; font-weight: 700; line-height: 1.2; text-shadow: var(--heading-glow); }
.footer-diamond {
  flex: 0 0 52px;
  width: 52px;
  height: 44px;
  background: url("assets/matrix_diamond_slow.gif") center / 62px 110.22px no-repeat;
  clip-path: polygon(28% 0, 72% 0, 100% 30%, 100% 43%, 53% 100%, 47% 100%, 0 43%, 0 30%);
  mix-blend-mode: screen;
}
.footer-tagline { margin: 7px 0 0; color: #bdcfdd; font-size: 15px; line-height: 1.5; }

@media (min-width: 1800px) {
  .intro, .project-lab { padding-right: 126px; padding-left: 126px; }
}

@media (max-width: 720px) {
  .masthead { padding: 24px 0 134px; }
  .main-logo { width: 88vw; height: max(150px, 44vw); }
  .masthead-subtitle {
    margin-top: 13px;
    font-size: clamp(11px, 2.85vw, 19px);
    letter-spacing: .56vw;
    white-space: nowrap;
  }
  .intro { grid-template-columns: minmax(0, 1fr); gap: 24px; padding: 0 7vw 48px; }
  .intro h1 { font-size: clamp(36px, 10vw, 56px); }
  .intro-copy { font-size: 17px; }
  .intro-copy p { margin-bottom: 20px; }
  .feature-section { padding: 12px 4vw 42px; }
  .feature-card { display: block; min-height: 0; border-radius: 28px; }
  .feature-art {
    position: relative;
    z-index: auto;
    width: 100%;
    aspect-ratio: 5 / 4;
    background-position: 92% center;
    background-size: auto 100%;
  }
  .feature-card::before { display: none; }
  .feature-copy { width: auto; margin: 0; padding: 25px 6vw 10px; background: #071323; }
  .feature-copy .eyebrow { margin-bottom: 16px; font-size: 11px; }
  .flipfinder-title { margin-bottom: 19px; font-size: clamp(58px, 13vw, 90px); }
  .feature-copy h3 { margin-bottom: 20px; font-size: clamp(22px, 5.5vw, 34px); }
  .feature-description { margin-bottom: 25px; font-size: 17px; }
  .project-lab { padding: 30px 7vw 54px; }
  .project-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .lab-caption { font-size: 12px; }
  .project-card { padding: 27px; }
  .project-card h3 { font-size: clamp(28px, 7.6vw, 42px); }
  .project-card .eyebrow { font-size: 10px; }
  .contact { padding: 48px 7vw 58px; }
  .contact h2 { font-size: clamp(32px, 8vw, 48px); }
  .contact-description { font-size: 17px; }
  .footer-brand { margin-top: 36px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
  .button:hover, .project-card:hover { transform: none; }
  .footer-diamond { visibility: hidden; background-image: none; }
}
