:root {
  color-scheme: dark;
  --bg: #05090e;
  --bg-soft: #09121a;
  --panel: #0b151e;
  --panel-light: #0f1d27;
  --line: rgba(117, 221, 255, .17);
  --line-strong: rgba(117, 221, 255, .42);
  --text: #f2f8fa;
  --muted: #8fa4ae;
  --accent: #75ddff;
  --accent-bright: #b8f0ff;
  --page: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  font-family: "Yu Gothic UI", "Yu Gothic", "Hiragino Kaku Gothic ProN",
    system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  overflow-wrap: anywhere;
  background-color: var(--bg);
  background-image:
    linear-gradient(rgba(117, 221, 255, .025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(117, 221, 255, .025) 1px, transparent 1px);
  background-size: 48px 48px;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background:
    radial-gradient(circle at 78% 18%, rgba(46, 184, 232, .11), transparent 31rem),
    linear-gradient(180deg, transparent 70%, rgba(0, 0, 0, .38));
}

a {
  color: inherit;
}

.site-shell {
  width: min(var(--page), calc(100% - 56px));
  margin: 0 auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 88px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  font-size: .92rem;
  font-weight: 800;
  letter-spacing: .18em;
  text-decoration: none;
}

.brand-mark {
  position: relative;
  width: 24px;
  height: 28px;
  transform: skewY(-30deg) scale(.8);
  border: 2px solid var(--accent);
  box-shadow: 0 0 20px rgba(117, 221, 255, .2);
}

.brand-mark::before,
.brand-mark span {
  position: absolute;
  content: "";
  border: 2px solid var(--accent);
}

.brand-mark::before {
  width: 24px;
  height: 15px;
  top: -10px;
  left: 4px;
  transform: skewY(50deg);
}

.brand-mark span {
  width: 10px;
  height: 28px;
  top: -5px;
  right: -9px;
  transform: skewY(50deg);
}

.global-nav {
  display: flex;
  align-items: stretch;
  align-self: stretch;
  gap: 36px;
}

.global-nav a {
  position: relative;
  display: flex;
  align-items: center;
  color: var(--muted);
  font-size: .86rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-decoration: none;
}

.global-nav a::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  content: "";
  background: var(--accent);
  box-shadow: 0 0 14px var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .2s ease;
}

.global-nav a:hover,
.global-nav a:focus-visible,
.global-nav a.is-current {
  color: var(--text);
}

.global-nav a:hover::after,
.global-nav a:focus-visible::after,
.global-nav a.is-current::after {
  transform: scaleX(1);
  transform-origin: left;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr);
  align-items: center;
  gap: clamp(42px, 7vw, 100px);
  min-height: min(760px, calc(100vh - 88px));
  padding: 88px 0 104px;
}

.eyebrow,
.section-index,
.project-kicker,
.coordinate,
.project-number {
  font-family: Consolas, "Courier New", monospace;
  letter-spacing: .16em;
}

.eyebrow {
  margin: 0 0 28px;
  color: var(--accent);
  font-size: .75rem;
  font-weight: 700;
}

.eyebrow span {
  margin-right: 8px;
  color: var(--muted);
}

h1 {
  margin: 0;
  text-transform: uppercase;
}

.title-small,
.title-main {
  display: block;
}

.title-small {
  margin-bottom: 2px;
  color: var(--muted);
  font-size: clamp(1.1rem, 2.2vw, 1.65rem);
  font-weight: 500;
  letter-spacing: .36em;
}

.title-main {
  font-size: clamp(4.5rem, 10vw, 8.2rem);
  font-weight: 900;
  line-height: .84;
  letter-spacing: -.075em;
  text-shadow: 0 0 44px rgba(117, 221, 255, .08);
}

.title-dot {
  color: var(--accent);
}

.lead {
  max-width: 620px;
  margin: 34px 0 0;
  padding-left: 19px;
  border-left: 1px solid var(--line-strong);
  color: #b4c3ca;
  font-size: clamp(.98rem, 1.6vw, 1.12rem);
  line-height: 2;
}

.hero-link {
  display: inline-flex;
  align-items: center;
  gap: 34px;
  margin-top: 36px;
  padding: 14px 18px;
  border: 1px solid var(--line-strong);
  color: var(--accent-bright);
  background: rgba(117, 221, 255, .045);
  font-size: .84rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-decoration: none;
  transition: background .2s ease, border-color .2s ease;
}

.hero-link:hover,
.hero-link:focus-visible {
  border-color: var(--accent);
  background: rgba(117, 221, 255, .1);
}

.hero-visual {
  position: relative;
  min-height: 470px;
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(117, 221, 255, .055), transparent 42%),
    rgba(4, 12, 18, .64);
  overflow: hidden;
}

.hero-visual::before,
.hero-visual::after {
  position: absolute;
  width: 54px;
  height: 54px;
  content: "";
}

.hero-visual::before {
  top: -1px;
  left: -1px;
  border-top: 2px solid var(--accent);
  border-left: 2px solid var(--accent);
}

.hero-visual::after {
  right: -1px;
  bottom: -1px;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
}

.visual-grid,
.project-grid {
  position: absolute;
  inset: 0;
  opacity: .34;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(to bottom, black, transparent 92%);
}

.cube {
  position: absolute;
  filter: drop-shadow(0 22px 32px rgba(0, 0, 0, .5));
}

.cube span {
  position: absolute;
  display: block;
}

.cube-large {
  top: 30%;
  left: 45%;
  width: 160px;
  height: 190px;
  transform: translate(-50%, -50%);
}

.cube-large .cube-top {
  width: 160px;
  height: 92px;
  background: linear-gradient(135deg, #56c9ee, #15384a);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}

.cube-large .cube-left,
.cube-large .cube-right {
  top: 90px;
  width: 80px;
  height: 100px;
}

.cube-large .cube-left {
  left: 0;
  background: #102b3a;
  clip-path: polygon(0 0, 100% 50%, 100% 100%, 0 50%);
}

.cube-large .cube-right {
  right: 0;
  background: #091c29;
  clip-path: polygon(0 50%, 100% 0, 100% 50%, 0 100%);
}

.cube-small {
  right: 12%;
  bottom: 17%;
  width: 78px;
  height: 92px;
  opacity: .7;
}

.cube-small .cube-top {
  width: 78px;
  height: 46px;
  border: 1px solid var(--accent);
  background: rgba(117, 221, 255, .12);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}

.cube-small .cube-left,
.cube-small .cube-right {
  top: 45px;
  width: 39px;
  height: 47px;
  border: 1px solid var(--line-strong);
  background: rgba(8, 25, 35, .8);
}

.cube-small .cube-left {
  left: 0;
  clip-path: polygon(0 0, 100% 50%, 100% 100%, 0 50%);
}

.cube-small .cube-right {
  right: 0;
  clip-path: polygon(0 50%, 100% 0, 100% 50%, 0 100%);
}

.coordinate {
  position: absolute;
  color: var(--muted);
  font-size: .62rem;
}

.coordinate-top {
  top: 22px;
  right: 22px;
}

.coordinate-bottom {
  bottom: 22px;
  left: 22px;
}

.crosshair,
.crosshair::before {
  position: absolute;
  background: var(--line-strong);
  content: "";
}

.crosshair {
  top: 57%;
  left: 17%;
  width: 34px;
  height: 1px;
}

.crosshair::before {
  top: -17px;
  left: 17px;
  width: 1px;
  height: 34px;
}

.projects {
  padding: 112px 0 120px;
  border-top: 1px solid var(--line);
  scroll-margin-top: 24px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 42px;
}

.section-index {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: .68rem;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1;
  letter-spacing: -.05em;
}

.section-heading > p {
  margin: 0 0 5px;
  color: var(--muted);
  font-size: .88rem;
}

.project-card {
  display: grid;
  grid-template-columns: minmax(280px, .86fr) minmax(0, 1.14fr);
  min-height: 390px;
  border: 1px solid var(--line-strong);
  background: var(--panel);
  box-shadow: 0 28px 80px rgba(0, 0, 0, .25);
}

.project-visual {
  position: relative;
  min-height: 320px;
  overflow: hidden;
  border-right: 1px solid var(--line);
  background:
    radial-gradient(circle at 50% 45%, rgba(117, 221, 255, .16), transparent 15rem),
    #071018;
}

.project-visual::after {
  position: absolute;
  inset: 26px;
  border: 1px solid rgba(117, 221, 255, .1);
  content: "";
}

.project-block {
  position: absolute;
  width: 86px;
  aspect-ratio: 1;
  border: 1px solid rgba(117, 221, 255, .38);
  background: linear-gradient(135deg, rgba(117, 221, 255, .24), rgba(9, 28, 40, .8));
  box-shadow: inset 0 0 28px rgba(117, 221, 255, .06), 0 20px 30px rgba(0, 0, 0, .3);
  transform: rotate(30deg) skew(-8deg, -8deg);
}

.block-one {
  top: 105px;
  left: calc(50% - 76px);
}

.block-two {
  top: 165px;
  left: calc(50% + 8px);
  opacity: .72;
}

.block-three {
  top: 65px;
  left: calc(50% + 30px);
  width: 54px;
  opacity: .38;
}

.project-number {
  position: absolute;
  bottom: 40px;
  left: 42px;
  z-index: 1;
  color: var(--accent);
  font-size: .64rem;
}

.project-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(32px, 6vw, 70px);
}

.project-meta {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-family: Consolas, "Courier New", monospace;
  font-size: .66rem;
  letter-spacing: .12em;
}

.status-badge {
  padding: 7px 9px;
  border: 1px solid var(--line-strong);
  color: var(--accent-bright);
  background: rgba(117, 221, 255, .06);
}

.project-kicker {
  margin: 32px 0 8px;
  color: var(--muted);
  font-size: .67rem;
}

.project-content h3 {
  margin: 0;
  font-size: clamp(1.7rem, 4vw, 2.7rem);
  letter-spacing: -.04em;
}

.project-content > p:not(.project-kicker) {
  max-width: 580px;
  margin: 20px 0 0;
  color: #a6b7bf;
  line-height: 1.9;
}

.project-specs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 38px;
  border: 1px solid var(--line);
  background: var(--line);
}

.project-specs span {
  padding: 13px 14px;
  color: var(--text);
  background: var(--bg-soft);
  font-size: .78rem;
}

.project-specs small {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-family: Consolas, "Courier New", monospace;
  font-size: .58rem;
  letter-spacing: .1em;
}

.demo-note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: .72rem;
  text-align: right;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 92px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-family: Consolas, "Courier New", monospace;
  font-size: .65rem;
  letter-spacing: .12em;
}

@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 76px 0 88px;
  }

  .hero-copy {
    max-width: 680px;
  }

  .hero-visual {
    min-height: 390px;
  }

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

  .project-visual {
    min-height: 300px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 560px) {
  .site-shell {
    width: min(100% - 28px, var(--page));
  }

  .site-header {
    min-height: 72px;
  }

  .brand {
    gap: 9px;
    font-size: .75rem;
    letter-spacing: .12em;
  }

  .brand-mark {
    width: 19px;
    height: 22px;
  }

  .global-nav {
    gap: 18px;
  }

  .global-nav a {
    font-size: .75rem;
    letter-spacing: .04em;
  }

  .hero {
    gap: 52px;
    padding: 62px 0 74px;
  }

  .eyebrow {
    margin-bottom: 22px;
    font-size: .64rem;
    letter-spacing: .1em;
  }

  .title-main {
    font-size: clamp(4.25rem, 23vw, 6rem);
  }

  .title-small {
    font-size: .92rem;
  }

  .lead {
    margin-top: 28px;
    padding-left: 14px;
    font-size: .94rem;
    line-height: 1.85;
  }

  .lead br {
    display: none;
  }

  .hero-visual {
    min-height: 330px;
  }

  .cube-large {
    transform: translate(-50%, -50%) scale(.78);
  }

  .coordinate-top {
    right: 14px;
  }

  .coordinate-bottom {
    bottom: 14px;
    left: 14px;
  }

  .projects {
    padding: 76px 0 82px;
  }

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

  .section-heading > p {
    margin-top: 14px;
  }

  .project-visual {
    min-height: 250px;
  }

  .block-one {
    top: 75px;
  }

  .block-two {
    top: 135px;
  }

  .block-three {
    top: 40px;
  }

  .project-number {
    bottom: 24px;
    left: 28px;
  }

  .project-content {
    padding: 30px 24px;
  }

  .project-kicker {
    margin-top: 26px;
  }

  .project-specs {
    grid-template-columns: 1fr;
    margin-top: 30px;
  }

  .demo-note {
    text-align: left;
  }

  .site-footer {
    min-height: 80px;
  }

  .site-footer span:last-child {
    display: none;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: .01ms !important;
  }
}
