:root {
  --ink: #0c0a0f;
  --panel: #17141c;
  --panel-raised: #201c26;
  --violet: #9147ed;
  --lavender: #c4a2ef;
  --berry: #cf667f;
  --paper: #e9e5ed;
  --muted: #9d96a5;
  color-scheme: dark;
  font-family: "DM Sans", ui-sans-serif, system-ui, sans-serif;
  background: var(--ink);
  color: #f4f2f7;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
}

html {
  scroll-behavior: smooth;
}

#home,
#technology,
#projects {
  scroll-margin-top: 100px;
}

body {
  overflow-x: hidden;
  background:
    radial-gradient(ellipse 68% 52% at 50% 45%, rgba(145, 71, 237, 0.2), transparent 67%),
    radial-gradient(ellipse 30% 22% at 77% 63%, rgba(207, 102, 127, 0.055), transparent 70%),
    var(--ink);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.35'/%3E%3C/svg%3E");
  content: "";
  opacity: 0.025;
  pointer-events: none;
}

.ambient {
  position: fixed;
  top: 20%;
  left: 50%;
  z-index: -1;
  width: min(86vw, 1180px);
  aspect-ratio: 1.8;
  translate: -50% 0;
  border: 1px solid rgba(196, 162, 239, 0.1);
  border-radius: 50%;
  background: rgba(112, 64, 169, 0.1);
  filter: blur(62px);
  box-shadow: 0 0 120px rgba(145, 71, 237, 0.15);
  pointer-events: none;
}

.site-header {
  position: fixed;
  top: 18px;
  left: 50%;
  z-index: 10;
  display: flex;
  width: min(calc(100% - 48px), 1360px);
  height: 62px;
  padding: 0 11px 0 24px;
  align-items: center;
  justify-content: space-between;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  background: rgba(23, 20, 28, 0.7);
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.055),
    0 18px 50px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(18px) saturate(135%);
  -webkit-backdrop-filter: blur(18px) saturate(135%);
  translate: -50% 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  color: #f5f3f7;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 0;
  text-decoration: none;
}

.site-nav {
  position: absolute;
  left: 50%;
  display: flex;
  align-items: center;
  gap: 4px;
  translate: -50% 0;
}

.site-nav a {
  padding: 9px 13px;
  border-radius: 7px;
  color: #98919f;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: color 160ms ease, background 160ms ease;
}

.site-nav a:hover {
  background: rgba(255, 255, 255, 0.055);
  color: var(--paper);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 7px;
}

.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  padding: 0;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  background: transparent;
  color: #bdb9c4;
}

.menu-toggle span {
  width: 15px;
  height: 1px;
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
}

.social-link {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: #bdb9c4;
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.social-link:hover {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  transform: translateY(-2px);
}

.social-link:focus-visible,
.site-nav a:focus-visible,
.menu-toggle:focus-visible,
.coming-soon:focus-visible {
  outline: 2px solid #a66bff;
  outline-offset: 4px;
}

.social-link svg {
  width: 19px;
  fill: currentColor;
}

main {
  min-height: 100svh;
}

.hero {
  position: relative;
  display: flex;
  min-height: calc(100svh - 24px);
  padding: 112px 24px 48px;
  align-items: center;
  flex-direction: column;
  justify-content: center;
}

.hero::after {
  position: absolute;
  right: max(24px, calc((100vw - 1360px) / 2));
  bottom: 22px;
  width: 74px;
  height: 20px;
  background: repeating-linear-gradient(90deg, transparent 0 5px, rgba(196, 162, 239, 0.28) 5px 6px);
  content: "";
  mask-image: linear-gradient(to top, #000, transparent 85%);
  pointer-events: none;
}

.hero-heading {
  position: relative;
  z-index: 1;
  width: min(88vw, 1160px);
  margin-bottom: clamp(-10px, -0.6vw, -3px);
  text-align: center;
}

.hero-heading p {
  display: inline-flex;
  margin: 0 0 8px;
  align-items: center;
  gap: 8px;
  color: #958e9d;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-heading p span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--berry);
  box-shadow: 0 0 10px rgba(207, 102, 127, 0.75);
}

.hero-heading h1 {
  margin: 0;
  color: var(--paper);
  font-size: clamp(54px, 7vw, 96px);
  font-weight: 500;
  line-height: 0.94;
  letter-spacing: 0;
  text-shadow: 0 16px 50px rgba(145, 71, 237, 0.16);
}

.visual-stage {
  position: relative;
  z-index: 2;
  width: min(88vw, max(360px, calc((100svh - 350px) * 1.526)), 1160px);
  perspective: 1300px;
}

.visual-stage::before {
  position: absolute;
  inset: 12% -4% 4%;
  z-index: -2;
  border-top: 1px solid rgba(196, 162, 239, 0.12);
  border-bottom: 1px solid rgba(207, 102, 127, 0.07);
  content: "";
}

.product-visual {
  position: relative;
  width: 100%;
  transform: translate3d(var(--move-x, 0), var(--move-y, 0), 0) rotateX(var(--rotate-x, 0)) rotateY(var(--rotate-y, 0));
  transform-style: preserve-3d;
  will-change: transform;
}

.product-visual::after {
  position: absolute;
  inset: 5% 8% -3%;
  z-index: -1;
  border-radius: 4%;
  background: rgba(116, 70, 166, 0.46);
  content: "";
  filter: blur(62px);
  opacity: 0.72;
  transform: translateZ(-40px);
}

.product-visual img {
  display: block;
  width: 100%;
  height: auto;
  user-select: none;
  filter: drop-shadow(0 32px 45px rgba(0, 0, 0, 0.5));
}

.hero-copy {
  display: flex;
  position: relative;
  z-index: 3;
  margin-top: clamp(2px, 1vh, 12px);
  align-items: center;
  flex-direction: column;
  text-align: center;
}

.hero-copy p {
  margin: 0;
  color: #b1aab7;
  font-size: clamp(15px, 1.35vw, 18px);
  font-weight: 400;
  line-height: 1.5;
}

.coming-soon {
  display: inline-flex;
  min-width: 160px;
  min-height: 45px;
  margin-top: 22px;
  padding: 0 20px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid rgba(196, 162, 239, 0.28);
  border-radius: 6px;
  background: linear-gradient(180deg, rgba(145, 71, 237, 0.18), rgba(77, 44, 105, 0.12));
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.08), 0 12px 34px rgba(71, 38, 104, 0.24);
  color: #ded3e8;
  font: 500 14px/1 "DM Sans", sans-serif;
  letter-spacing: 0;
  opacity: 1;
  cursor: default;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lavender);
  box-shadow: 0 0 12px rgba(196, 162, 239, 0.85);
}

.architecture {
  position: relative;
  overflow: hidden;
  padding: clamp(100px, 12vw, 168px) 24px clamp(110px, 14vw, 190px);
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  background:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    #100d13;
  background-size: 72px 72px;
}

.architecture::before {
  position: absolute;
  top: -1px;
  left: 50%;
  width: min(42vw, 560px);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(196, 162, 239, 0.72), transparent);
  content: "";
  translate: -50% 0;
}

.architecture-inner {
  width: min(100%, 1160px);
  margin: 0 auto;
}

.section-heading {
  display: grid;
  margin-bottom: clamp(64px, 8vw, 108px);
  grid-template-columns: 1fr 0.8fr;
  align-items: end;
  column-gap: 80px;
}

.section-label {
  grid-column: 1 / -1;
  margin: 0 0 22px;
  color: var(--lavender);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: uppercase;
}

.section-heading h2 {
  max-width: 620px;
  margin: 0;
  color: var(--paper);
  font-size: clamp(38px, 5vw, 68px);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: 0;
}

.section-intro {
  max-width: 430px;
  margin: 0 0 5px;
  color: #817b87;
  font-size: 15px;
  line-height: 1.75;
}

.architecture-list {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
}

.architecture-item {
  position: relative;
  display: flex;
  min-height: 270px;
  padding: 28px 30px 30px;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  background: rgba(23, 20, 28, 0.88);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.035), 0 24px 70px rgba(0, 0, 0, 0.16);
}

.architecture-item:nth-child(1) {
  grid-column: span 5;
}

.architecture-item:nth-child(2) {
  min-height: 340px;
  grid-column: span 7;
  background: rgba(31, 27, 37, 0.94);
}

.architecture-item:nth-child(3) {
  min-height: 230px;
  margin-top: -52px;
  grid-column: 2 / span 5;
  background: rgba(28, 23, 31, 0.92);
}

.architecture-item::before {
  position: absolute;
  top: -1px;
  left: 30px;
  width: 68px;
  height: 2px;
  background: var(--violet);
  content: "";
}

.architecture-item:nth-child(2)::before {
  background: var(--lavender);
}

.architecture-item:nth-child(3)::before {
  background: var(--berry);
}

.item-index {
  display: inline-flex;
  width: fit-content;
  min-height: 23px;
  padding: 0 9px;
  align-items: center;
  border: 1px solid rgba(145, 71, 237, 0.28);
  border-radius: 4px;
  color: #b77bec;
  font-size: 9px;
  font-weight: 600;
}

.architecture-item:nth-child(2) .item-index {
  border-color: rgba(196, 162, 239, 0.27);
  color: var(--lavender);
}

.architecture-item:nth-child(3) .item-index {
  border-color: rgba(207, 102, 127, 0.28);
  color: #dc8298;
}

.architecture-item h3 {
  margin: 38px 0 12px;
  color: #e5e1e9;
  font-size: clamp(21px, 2vw, 28px);
  font-weight: 500;
  letter-spacing: 0;
}

.architecture-item a {
  color: var(--lavender);
  text-decoration-color: rgba(196, 162, 239, 0.3);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  transition: color 160ms ease, text-decoration-color 160ms ease;
}

.architecture-item a:hover {
  color: #eadcff;
  text-decoration-color: rgba(234, 220, 255, 0.8);
}

.architecture-item a:focus-visible {
  border-radius: 2px;
  outline: 2px solid #a66bff;
  outline-offset: 3px;
}

.architecture-item h3 a {
  color: inherit;
  text-decoration: none;
}

.architecture-item p {
  max-width: 610px;
  margin: 0;
  color: #98919f;
  font-size: 14px;
  line-height: 1.7;
}

.architecture-item .model-credit {
  margin-top: 13px;
  color: #69636f;
  font-size: 12px;
  line-height: 1.6;
}

.ecosystem {
  padding: clamp(90px, 11vw, 150px) 24px clamp(100px, 13vw, 170px);
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  background: #0c0a0f;
}

.ecosystem-inner {
  width: min(100%, 1160px);
  margin: 0 auto;
}

.ecosystem-heading {
  display: flex;
  margin-bottom: 54px;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
}

.ecosystem-heading .section-label {
  margin: 0 0 8px;
}

.ecosystem-heading h2 {
  max-width: 620px;
  margin: 0;
  color: var(--paper);
  font-size: clamp(32px, 4.2vw, 56px);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: 0;
  text-align: right;
}

.friend-link,
.project-list a {
  position: relative;
  color: inherit;
  text-decoration: none;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.friend-link {
  display: grid;
  min-height: 176px;
  padding: 34px 36px;
  align-items: center;
  grid-template-columns: 150px 1fr auto;
  border: 1px solid rgba(196, 162, 239, 0.17);
  border-radius: 8px;
  background: linear-gradient(110deg, rgba(145, 71, 237, 0.12), rgba(31, 27, 37, 0.76) 58%, rgba(207, 102, 127, 0.07));
  gap: 30px;
}

.link-kind,
.project-meta {
  color: #8d8493;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
}

.friend-identity {
  display: flex;
  align-items: center;
  gap: 18px;
}

.friend-identity img {
  display: block;
  width: 64px;
  height: 54px;
  flex: 0 0 auto;
}

.link-copy {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.link-copy strong,
.project-list strong {
  color: var(--paper);
  font-size: 26px;
  font-weight: 500;
}

.link-copy > span,
.project-list a > span:not(.project-meta):not(.external-arrow) {
  color: #98919f;
  font-size: 14px;
  line-height: 1.65;
}

.external-arrow {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 50%;
  color: var(--lavender);
  font-size: 16px;
  transition: background 180ms ease, transform 180ms ease;
}

.project-list {
  display: grid;
  margin-top: 18px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}

.project-list a {
  display: flex;
  min-height: 240px;
  padding: 30px 32px 78px;
  flex-direction: column;
  align-items: flex-start;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  background: rgba(23, 20, 28, 0.72);
}

.project-list strong {
  margin: 36px 0 11px;
  font-size: 23px;
}

.project-list .external-arrow {
  position: absolute;
  right: 28px;
  bottom: 28px;
}

.friend-link:hover,
.project-list a:hover {
  border-color: rgba(196, 162, 239, 0.3);
  background-color: rgba(36, 30, 43, 0.88);
  transform: translateY(-3px);
}

.friend-link:hover .external-arrow,
.project-list a:hover .external-arrow {
  background: rgba(196, 162, 239, 0.1);
  transform: rotate(5deg);
}

.friend-link:focus-visible,
.project-list a:focus-visible {
  outline: 2px solid var(--violet);
  outline-offset: 4px;
}

.site-footer {
  display: flex;
  min-height: 88px;
  padding: 0 24px;
  align-items: center;
  justify-content: center;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  background: #09070b;
}

.site-footer p {
  margin: 0;
  color: #69636f;
  font-size: 12px;
}

.sr-only {
  position: absolute;
  overflow: hidden;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

@media (max-width: 700px) {
  .site-header {
    top: 12px;
    width: calc(100% - 24px);
    height: 56px;
    padding: 0 8px 0 18px;
    border-radius: 16px;
  }

  .menu-toggle {
    display: flex;
  }

  .site-nav {
    top: calc(100% + 10px);
    left: 0;
    display: flex;
    visibility: hidden;
    width: 100%;
    padding: 8px;
    align-items: stretch;
    flex-direction: column;
    gap: 2px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    background: rgba(23, 20, 28, 0.94);
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.38);
    opacity: 0;
    backdrop-filter: blur(20px) saturate(130%);
    -webkit-backdrop-filter: blur(20px) saturate(130%);
    transform: translateY(-8px);
    translate: 0;
    pointer-events: none;
    transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
  }

  .site-nav a {
    padding: 12px 14px;
    font-size: 14px;
  }

  .site-header.menu-open .site-nav {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .site-header.menu-open .menu-toggle span:nth-child(1) {
    transform: translateY(5px) rotate(45deg);
  }

  .site-header.menu-open .menu-toggle span:nth-child(2) {
    opacity: 0;
  }

  .site-header.menu-open .menu-toggle span:nth-child(3) {
    transform: translateY(-5px) rotate(-45deg);
  }

  .hero {
    padding: 90px 16px 42px;
  }

  .hero-heading {
    width: 100%;
    margin-bottom: 6px;
  }

  .hero-heading h1 {
    font-size: clamp(48px, 16vw, 70px);
  }

  .visual-stage {
    width: min(calc(100vw - 48px), max(280px, calc((100svh - 330px) * 1.526)), 760px);
  }

  .visual-stage::before {
    inset-inline: 0;
  }

  .hero-copy {
    margin-top: 16px;
  }

  .architecture {
    padding: 80px 20px 110px;
  }

  .architecture-inner {
    display: block;
  }

  .section-heading {
    display: block;
    margin-bottom: 52px;
  }

  .section-heading h2 {
    max-width: 330px;
    font-size: 38px;
  }

  .section-intro {
    margin-top: 24px;
  }

  .architecture-list {
    display: block;
  }

  .architecture-item {
    min-height: 0;
    margin: 0 0 14px;
    padding: 25px 24px 28px;
  }

  .architecture-item:nth-child(2),
  .architecture-item:nth-child(3) {
    min-height: 0;
    margin-top: 0;
  }

  .architecture-item h3 {
    margin-top: 32px;
  }

  .ecosystem {
    padding: 80px 20px 110px;
  }

  .ecosystem-heading {
    display: block;
    margin-bottom: 40px;
  }

  .ecosystem-heading .section-label {
    margin-bottom: 18px;
  }

  .ecosystem-heading h2 {
    max-width: 360px;
    font-size: 38px;
    text-align: left;
  }

  .friend-link {
    min-height: 220px;
    padding: 26px 24px;
    grid-template-columns: 1fr auto;
    gap: 24px;
  }

  .friend-link .friend-identity {
    grid-column: 1 / -1;
  }

  .project-list {
    display: block;
  }

  .project-list a {
    min-height: 225px;
    margin-top: 14px;
    padding: 26px 24px 76px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .product-visual {
    transform: none !important;
  }

  .social-link {
    transition: none;
  }
}
