:root {
  color-scheme: dark;
  --paper: #f3f1e9;
  --ink: #090909;
  --muted: rgba(243, 241, 233, 0.58);
  --line: rgba(243, 241, 233, 0.17);
  --acid: #edff66;
  font-family: Inter, "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }

html { background: var(--ink); scroll-behavior: smooth; }

body {
  min-width: 320px;
  margin: 0;
  color: var(--paper);
  background: radial-gradient(circle at 82% 4%, rgba(89, 88, 255, 0.13), transparent 23rem), var(--ink);
}

body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  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='.12'/%3E%3C/svg%3E");
  content: "";
  opacity: 0.24;
  pointer-events: none;
}

a { color: inherit; }

.site-header {
  display: flex;
  min-height: 104px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px clamp(20px, 4vw, 64px);
  border-bottom: 1px solid var(--line);
}

.company-mark { display: block; width: clamp(178px, 20vw, 260px); }
.company-mark img { display: block; width: 100%; height: auto; }

.header-note,
.hero-index,
.eyebrow,
.section-heading,
.card-topline,
.card-action,
.site-footer {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.header-note { margin: 0; color: var(--muted); }
main { padding: 0 clamp(20px, 4vw, 64px); }

.hero {
  display: grid;
  min-height: min(68vh, 700px);
  grid-template-columns: minmax(40px, 0.3fr) minmax(0, 3fr) minmax(220px, 1fr);
  align-items: end;
  gap: clamp(20px, 4vw, 72px);
  padding: clamp(74px, 13vh, 160px) 0 clamp(62px, 9vh, 112px);
}

.hero-index {
  align-self: start;
  color: var(--acid);
  writing-mode: vertical-rl;
}

.hero-copy { align-self: center; }
.eyebrow { margin: 0 0 24px; color: var(--muted); }

.hero h1 {
  max-width: 950px;
  margin: 0;
  font-size: clamp(3.4rem, 7.7vw, 8.8rem);
  font-weight: 670;
  letter-spacing: -0.07em;
  line-height: 0.86;
}

.hero h1 em {
  color: var(--acid);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
}

.hero-intro {
  max-width: 340px;
  margin: 0 0 0 auto;
  color: rgba(243, 241, 233, 0.72);
  font-size: clamp(1rem, 1.3vw, 1.25rem);
  line-height: 1.5;
}

.projects { padding-bottom: clamp(80px, 12vw, 180px); }

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
}

.section-heading h2, .section-heading p { margin: 0; font: inherit; }
.section-heading p { color: var(--muted); }
.section-heading p span { margin-left: 18px; color: var(--paper); }
.section-heading p span:first-child { margin-left: 0; }

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.project-card {
  position: relative;
  display: grid;
  min-height: clamp(360px, 41vw, 600px);
  overflow: hidden;
  grid-template-rows: auto 1fr auto;
  padding: clamp(20px, 2.2vw, 34px);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #101010;
  color: var(--paper);
  text-decoration: none;
  isolation: isolate;
}

.project-card::before, .project-card::after {
  position: absolute;
  z-index: -1;
  content: "";
  transition: transform 480ms cubic-bezier(0.2, 0.7, 0.2, 1), opacity 480ms ease;
}

.project-card::before { inset: 0; background: var(--card-surface, #151515); }

.project-card::after {
  width: 58%;
  aspect-ratio: 1;
  top: 50%;
  left: 50%;
  border-radius: 50%;
  background: var(--card-glow, rgba(255, 255, 255, 0.08));
  filter: blur(60px);
  opacity: 0.58;
  transform: translate(-50%, -50%) scale(0.8);
}

a.project-card:hover::after, a.project-card:focus-visible::after {
  opacity: 0.9;
  transform: translate(-50%, -50%) scale(1.18);
}

a.project-card:focus-visible { outline: 3px solid var(--acid); outline-offset: -3px; }

.project-card--space-os {
  --card-surface: linear-gradient(145deg, #171912, #090a09 65%);
  --card-glow: rgba(237, 255, 102, 0.25);
}

.project-card--isotrope {
  --card-surface: linear-gradient(145deg, #10141d, #08090d 65%);
  --card-glow: rgba(103, 119, 255, 0.32);
}

.project-card--setsynth {
  --card-surface: linear-gradient(145deg, #181213, #0b0909 65%);
  --card-glow: rgba(255, 107, 117, 0.15);
}

.project-card--ooh-wiz {
  --card-surface: linear-gradient(145deg, #111816, #080b0a 65%);
  --card-glow: rgba(65, 242, 188, 0.14);
}

.card-topline, .card-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.project-number, .status { color: rgba(243, 241, 233, 0.56); }
.status { display: inline-flex; align-items: center; gap: 8px; }

.status i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--acid);
  box-shadow: 0 0 12px rgba(237, 255, 102, 0.7);
}

.status--live { color: var(--paper); }

.project-logo-wrap {
  display: grid;
  place-items: center;
  padding: clamp(42px, 7vw, 92px) clamp(12px, 3vw, 48px);
}

.project-logo {
  display: block;
  width: min(100%, 430px);
  max-height: 150px;
  object-fit: contain;
  transition: transform 480ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.project-logo--space-os { width: min(82%, 360px); }
.project-logo--isotrope { width: min(100%, 440px); }
.project-logo--setsynth { width: min(88%, 390px); }
.project-logo--ooh-wiz { width: min(74%, 330px); }

a.project-card:hover .project-logo, a.project-card:focus-visible .project-logo { transform: scale(1.035); }

.card-action {
  padding-top: 20px;
  border-top: 1px solid rgba(243, 241, 233, 0.18);
}

.card-action svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
  transition: transform 220ms ease;
}

a.project-card:hover .card-action svg, a.project-card:focus-visible .card-action svg { transform: translateX(5px); }
.is-pending .project-logo { opacity: 0.52; }
.card-action--pending { color: rgba(243, 241, 233, 0.4); }

.site-footer {
  display: grid;
  min-height: 126px;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: clamp(16px, 3vw, 44px);
  padding: 28px clamp(20px, 4vw, 64px);
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.site-footer img { width: 34px; height: 34px; object-fit: contain; }
.site-footer p { margin: 0; }
.site-footer p:first-of-type { color: var(--paper); }

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

@media (max-width: 900px) {
  .hero {
    min-height: auto;
    grid-template-columns: 28px minmax(0, 1fr);
    padding-top: 92px;
  }

  .hero-intro { grid-column: 2; margin: 0; }
  .project-card { min-height: 420px; }
}

@media (max-width: 680px) {
  .site-header { min-height: 86px; }
  .company-mark { width: 176px; }
  .header-note { display: none; }

  .hero {
    grid-template-columns: 1fr;
    gap: 38px;
    padding: 72px 0 64px;
  }

  .hero-index { display: none; }
  .hero-intro { grid-column: 1; }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .project-grid { grid-template-columns: 1fr; }
  .project-card { min-height: 390px; }
  .site-footer { grid-template-columns: auto 1fr auto; }
  .site-footer p:nth-of-type(2) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .project-card::after, .project-logo, .card-action svg { transition: none; }
}
