:root {
  color-scheme: dark;
  --ink: #eff2eb;
  --muted: #929a91;
  --line: rgba(239, 242, 235, .14);
  --acid: #c9ff58;
  --base: #0d0f0e;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--base);
  color: var(--ink);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 72% 7%, rgba(100, 130, 100, .13), transparent 28rem),
    var(--base);
}

body::before {
  content: "";
  position: fixed;
  z-index: 10;
  inset: 0;
  pointer-events: none;
  opacity: .17;
  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='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.22'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

.ambient {
  position: fixed;
  width: 34rem;
  height: 34rem;
  left: calc(var(--pointer-x, 72%) - 17rem);
  top: calc(var(--pointer-y, 14%) - 17rem);
  border-radius: 50%;
  pointer-events: none;
  background: rgba(178, 255, 134, .055);
  filter: blur(75px);
  transition: left .9s cubic-bezier(.2,.8,.2,1), top .9s cubic-bezier(.2,.8,.2,1);
}

a { color: inherit; }

.site-header {
  height: 92px;
  padding: 0 clamp(1.4rem, 5vw, 5rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  gap: .7rem;
  align-items: center;
  text-decoration: none;
  font-size: .95rem;
  font-weight: 780;
  letter-spacing: -.04em;
}

.brand-dot {
  width: .55rem;
  height: .55rem;
  border-radius: 50%;
  background: var(--acid);
  box-shadow: 0 0 1.2rem rgba(201, 255, 88, .6);
}

.header-meta {
  display: flex;
  gap: 2.2rem;
  color: var(--muted);
  font-size: .64rem;
  font-weight: 650;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.status i {
  display: inline-block;
  width: .35rem;
  height: .35rem;
  margin: 0 .45rem .05rem 0;
  border-radius: 50%;
  background: var(--acid);
}

main { padding: 0 clamp(1.4rem, 5vw, 5rem); }

.hero {
  min-height: min(740px, calc(100svh - 92px));
  padding: clamp(5rem, 12vh, 9rem) 0 5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.overline, .section-heading, .project-label, footer {
  font-size: .65rem;
  font-weight: 680;
  letter-spacing: .17em;
  text-transform: uppercase;
}

.overline {
  margin: 0 0 2rem;
  color: var(--acid);
}

.hero h1 {
  max-width: 72rem;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(4rem, 10.4vw, 10.2rem);
  font-weight: 400;
  line-height: .78;
  letter-spacing: -.075em;
}

.hero h1 em {
  color: transparent;
  font-weight: 400;
  -webkit-text-stroke: 1px rgba(239, 242, 235, .72);
}

.lede {
  max-width: 40rem;
  margin: clamp(2.8rem, 6vw, 5rem) 0 2.5rem;
  color: #aab1a8;
  font-size: clamp(1rem, 1.5vw, 1.18rem);
  line-height: 1.75;
}

.jump {
  width: fit-content;
  display: flex;
  gap: 1rem;
  align-items: center;
  color: var(--ink);
  text-decoration: none;
  font-size: .74rem;
  font-weight: 650;
}

.jump span { color: var(--acid); font-size: 1.15rem; }

.projects { padding: 3rem 0 clamp(6rem, 10vw, 10rem); }

.section-heading {
  display: flex;
  justify-content: space-between;
  padding: 0 0 1.2rem;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}

.section-heading p { margin: 0; }
.section-heading p:first-child { color: var(--ink); }

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 2.2vw, 2rem);
  margin-top: clamp(1.5rem, 3vw, 2.6rem);
}

.project {
  --card-x: 50%;
  --card-y: 50%;
  position: relative;
  overflow: hidden;
  min-height: 42rem;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 1.35rem;
  transform: translateY(0);
  transition: transform .45s cubic-bezier(.2,.8,.2,1), border-color .45s ease;
}

.project::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(circle at var(--card-x) var(--card-y), rgba(255,255,255,.15), transparent 34%);
  transition: opacity .4s ease;
}

.project:hover {
  transform: translateY(-.5rem);
  border-color: rgba(255, 255, 255, .3);
}

.project:hover::after { opacity: 1; }

.project-art {
  position: relative;
  overflow: hidden;
  min-height: 23rem;
  display: grid;
  place-items: center;
}

.project-icon {
  position: absolute;
  z-index: 3;
  top: 1.5rem;
  right: 1.5rem;
  width: 2.8rem;
  height: 2.8rem;
  padding: .72rem;
  border: 1px solid rgba(255,255,255,.23);
  border-radius: 50%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
}

.project-icon .fill { fill: currentColor; stroke: none; }

.project-webgl { background: #07101e; }

.project-webgl .project-art {
  background:
    radial-gradient(circle at 50% 52%, rgba(99, 193, 255, .5), transparent 8%),
    radial-gradient(circle at 50% 50%, #19406e, #07101e 55%);
}

.orbit {
  position: absolute;
  width: 34rem;
  height: 10rem;
  border: 1px solid rgba(157, 218, 255, .55);
  border-radius: 50%;
  box-shadow: inset 0 0 2rem rgba(64, 155, 255, .1), 0 0 1.4rem rgba(64, 155, 255, .2);
}

.orbit-one { transform: rotate(-19deg); }
.orbit-two { transform: rotate(27deg) scale(.88); border-color: rgba(161, 255, 219, .38); }

.orb {
  width: 1.1rem;
  height: 1.1rem;
  z-index: 2;
  border-radius: 50%;
  background: #d5fbff;
  box-shadow: 0 0 1rem #80dfff, 0 0 4rem 1.4rem rgba(62, 159, 255, .7);
}

.project-news { background: #e9e4d6; color: #191914; }

.project-news .project-art {
  background: radial-gradient(circle at 50% 40%, #f9f5e9, #d3cdbd);
  perspective: 900px;
}

.project-news .project-icon { border-color: rgba(25,25,20,.25); }

.project-info {
  grid-column: 1 / -1;
  min-height: 32rem;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  background: #eef4f0;
  color: #17201b;
}

.project-info .project-art {
  min-height: 32rem;
  background: linear-gradient(145deg, #f8faf7, #e6eee9);
}

.project-info .project-icon { border-color: rgba(23,32,27,.22); }
.project-info .project-copy { background: #dce9e1; }

.info-mosaic {
  width: min(78%, 34rem);
  aspect-ratio: 1.45;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: repeat(4, 1fr);
  gap: .6rem;
  transform: rotate(-3deg);
}

.tile {
  display: block;
  border: 1px solid rgba(23,32,27,.09);
  border-radius: .75rem;
  box-shadow: 0 .8rem 1.8rem rgba(48,66,55,.09);
}

.tile-sky { grid-column: span 3; grid-row: span 2; background: #cfe4f2; }
.tile-mint { grid-column: span 2; grid-row: span 3; background: #cce5d6; }
.tile-lemon { grid-column: span 1; grid-row: span 2; background: #ebe5a1; }
.tile-coral { grid-column: span 2; grid-row: span 2; background: #eebdaf; }
.tile-lavender { grid-column: span 2; grid-row: span 1; background: #d9cdec; }
.tile-aqua { grid-column: span 2; grid-row: span 1; background: #bce0dc; }

.paper-stack {
  position: absolute;
  width: min(73%, 24rem);
  aspect-ratio: .76;
  padding: 1.4rem;
  background: #f5f0e2;
  border: 1px solid rgba(25,25,20,.2);
  box-shadow: 0 1.5rem 3rem rgba(59, 48, 31, .19);
}

.paper-back { transform: translate(1.4rem, 1rem) rotate(7deg); background: #d4cfc0; }
.paper-front { transform: translateY(3.2rem) rotate(-4deg); }
.paper-name { display:block; font-family: Georgia,serif; font-size: clamp(1rem,2vw,1.55rem); text-align:center; letter-spacing:-.06em; }
.paper-rule { display:block; height:4px; margin:.7rem 0 1.1rem; border-block:1px solid; }
.paper-headline { display:block; font-family: Georgia,serif; font-size:clamp(1.5rem,3vw,2.5rem); line-height:.82; letter-spacing:-.06em; }
.paper-lines { display:block; width:75%; height:4rem; margin-top:1.3rem; background:repeating-linear-gradient(#7d786e 0 1px,transparent 1px 10px); opacity:.55; }

.project-copy {
  position: relative;
  z-index: 2;
  flex: 1;
  padding: clamp(1.5rem, 3.2vw, 2.7rem);
  display: flex;
  flex-direction: column;
}

.project-webgl .project-copy { background: linear-gradient(160deg, #0b182a, #07101e); }
.project-news .project-copy { background: #e9e4d6; }

.project-label {
  display: flex;
  justify-content: space-between;
  opacity: .62;
}

.project-copy h2 {
  margin: 2rem 0 .8rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.4rem, 4.2vw, 4.2rem);
  font-weight: 400;
  line-height: .9;
  letter-spacing: -.06em;
}

.project-copy p {
  max-width: 33rem;
  margin: 0;
  opacity: .69;
  font-size: .9rem;
  line-height: 1.65;
}

.open {
  margin-top: auto;
  padding-top: 2.3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.open i {
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-style: normal;
  transition: transform .35s ease, background .35s ease, color .35s ease;
}

.project:hover .open i { transform: rotate(45deg); background: var(--ink); color: var(--base); }
.project-news:hover .open i { background: #191914; color: #e9e4d6; }
.project-info:hover .open i { background: #17201b; color: #eef4f0; }

footer {
  min-height: 8rem;
  padding: 2rem clamp(1.4rem, 5vw, 5rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

footer span { color: var(--ink); }

@media (max-width: 820px) {
  .project-grid { grid-template-columns: 1fr; }
  .project { min-height: 39rem; }
  .project-art { min-height: 21rem; }
  .hero { min-height: 680px; }
  .project-info { display: flex; grid-column: auto; min-height: 39rem; }
  .project-info .project-art { min-height: 21rem; }
}

@media (max-width: 560px) {
  .site-header { height: 76px; }
  .header-meta > span:first-child { display: none; }
  .hero { min-height: calc(100svh - 76px); padding-top: 4rem; }
  .hero h1 { font-size: clamp(3.6rem, 18vw, 5.6rem); }
  .lede { margin-top: 2.5rem; }
  .section-heading p:last-child { display: none; }
  .project { min-height: 36rem; }
  .project-art { min-height: 19rem; }
  footer { display: block; line-height: 1.8; }
  footer p { margin: .4rem 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ambient, .project, .open i { transition: none; }
}
