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

:root {
  --bg: #030510;
  --panel: #0a0e1f;
  --panel-raised: #12182e;
  --line: #1e2644;
  --ink: #eef2ff;
  --muted: #9aa4c8;
  --faint: #5a6488;
  --violet: #8b5cf6;
  --cyan: #22d3ee;
  --magenta: #e040fb;
  --max: 1080px;
  --pad: clamp(1.25rem, 4vw, 2.5rem);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  min-height: 100vh;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--cyan);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--violet);
  color: #fff;
  padding: 0.5rem 1rem;
  z-index: 100;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.corner-nav {
  position: fixed;
  bottom: 1.5rem;
  left: 1.5rem;
  z-index: 50;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.75rem 1rem;
  background: rgba(10, 14, 31, 0.92);
  border: 1px solid var(--line);
  border-radius: 14px;
  backdrop-filter: blur(12px);
}

.corner-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color 0.2s;
}

.corner-nav a:hover,
.corner-nav a:focus {
  color: var(--violet);
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: end;
  padding: var(--pad);
  padding-bottom: 6rem;
  overflow: hidden;
}

.hero-collage {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-collage::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(3, 5, 16, 0.2) 0%, rgba(3, 5, 16, 0.75) 55%, var(--bg) 100%);
}

.collage-main {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.collage-piece {
  position: absolute;
  border-radius: 18px;
  border: 2px solid rgba(139, 92, 246, 0.45);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  object-fit: cover;
}

.collage-a {
  width: min(28vw, 220px);
  height: min(28vw, 220px);
  top: 12%;
  right: 6%;
  transform: rotate(6deg);
}

.collage-b {
  width: min(22vw, 170px);
  height: min(22vw, 170px);
  top: 38%;
  right: 22%;
  transform: rotate(-8deg);
}

.collage-c {
  width: min(20vw, 150px);
  height: min(20vw, 150px);
  bottom: 28%;
  right: 8%;
  transform: rotate(4deg);
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 640px;
}

.hero-kicker {
  margin: 0 0 0.5rem;
  font-family: ui-monospace, monospace;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan);
}

.hero-copy h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.8rem, 8vw, 4.5rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--ink) 0%, var(--violet) 60%, var(--cyan) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-tagline {
  margin: 0;
  font-size: clamp(1.05rem, 2.5vw, 1.35rem);
  color: var(--muted);
  max-width: 36ch;
}

.section {
  padding: clamp(3rem, 8vw, 5rem) var(--pad);
  max-width: var(--max);
  margin: 0 auto;
}

.section-intro {
  margin-bottom: 2.5rem;
  max-width: 520px;
}

.section-intro h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 800;
}

.section-intro p {
  margin: 0;
  color: var(--muted);
}

.intro-left {
  margin-right: auto;
}

.intro-right {
  margin-left: auto;
  text-align: right;
}

.numbered-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.numbered-steps li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem;
  align-items: start;
  padding: 1.5rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 20px;
}

.step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--violet), var(--magenta));
  font-weight: 800;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.numbered-steps h3 {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
}

.numbered-steps p {
  margin: 0;
  color: var(--muted);
}

.carousel-wrap {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.75rem;
  align-items: center;
}

.carousel-track {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding: 1rem;
  padding: 0.5rem 0 1rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--violet) var(--panel);
}

.carousel-slide {
  flex: 0 0 min(78vw, 320px);
  scroll-snap-align: start;
  margin: 0;
}

.carousel-slide img {
  width: 100%;
  border-radius: 28px;
  border: 1px solid var(--line);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}

.carousel-slide figcaption {
  margin-top: 0.75rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--faint);
}

.carousel-btn {
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--panel-raised);
  color: var(--ink);
  font-size: 1.4rem;
  cursor: pointer;
  line-height: 1;
}

.carousel-btn:hover {
  border-color: var(--violet);
  color: var(--violet);
}

.inline-expand {
  padding: 1.5rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
}

.expand-summary {
  margin: 0 0 1rem;
  color: var(--muted);
}

.expand-toggle {
  appearance: none;
  border: 1px solid var(--violet);
  background: transparent;
  color: var(--violet);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  cursor: pointer;
}

.expand-toggle:hover {
  background: rgba(139, 92, 246, 0.12);
}

.expand-body {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.expand-body p {
  margin: 0 0 1rem;
}

.site-footer {
  padding: 2rem var(--pad) 5rem;
  text-align: center;
  color: var(--faint);
  font-size: 0.85rem;
  border-top: 1px solid var(--line);
}

@media (max-width: 720px) {
  .collage-a,
  .collage-b,
  .collage-c {
    opacity: 0.65;
  }

  .intro-right {
    text-align: left;
    margin-left: 0;
  }

  .corner-nav {
    bottom: 0.75rem;
    left: 0.75rem;
    right: 0.75rem;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }
}
