:root {
  --black: #050505;
  --ink: #111111;
  --white: #ffffff;
  --paper: #f5f5f1;
  --muted: #a8a8a8;
  --line: rgba(255, 255, 255, 0.18);
  --line-dark: rgba(0, 0, 0, 0.16);
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.32);
  --ease: cubic-bezier(0.19, 1, 0.22, 1);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--white);
  background: var(--black);
  letter-spacing: 0;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 12% 0%, rgba(255, 255, 255, 0.12), transparent 30rem),
    linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 28px),
    var(--black);
  color: var(--white);
  overflow-x: hidden;
}

body::selection {
  color: var(--black);
  background: var(--white);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.cursor-shadow {
  position: fixed;
  width: 22rem;
  height: 22rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: opacity 180ms ease;
  opacity: 0;
  z-index: 0;
}

.progress {
  position: fixed;
  inset: 0 0 auto;
  height: 3px;
  z-index: 20;
  background: transparent;
}

.progress span {
  display: block;
  width: 0%;
  height: 100%;
  background: var(--white);
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 12;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.2rem;
  background: rgba(5, 5, 5, 0.78);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand,
.nav-links,
.hero-actions,
.contact-lines {
  display: flex;
  align-items: center;
}

.brand {
  gap: 0.8rem;
  min-width: 0;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 2.65rem;
  height: 2.65rem;
  flex: 0 0 auto;
  color: var(--black);
  background: var(--white);
  border: 1px solid var(--white);
  font-size: 0.86rem;
  font-weight: 950;
}

.brand-copy {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-links {
  justify-content: flex-end;
  gap: 0.25rem;
  flex-wrap: wrap;
}

.nav-links a {
  padding: 0.72rem 0.86rem;
  color: var(--muted);
  border: 1px solid transparent;
  font-size: 0.88rem;
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease;
}

.nav-links a:hover,
.nav-links a.is-active {
  color: var(--white);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.07);
}

main {
  position: relative;
  z-index: 1;
}

.section-band,
.section {
  padding-inline: 1.2rem;
}

.hero {
  width: calc(100% - 2.4rem);
  max-width: 1160px;
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(22rem, 0.78fr);
  align-items: center;
  gap: 4rem;
  margin-inline: auto;
  padding-inline: 0;
  padding-top: 7rem;
  padding-bottom: 4.5rem;
  border-bottom: 1px solid var(--line);
}

.hero-copy,
.section,
.site-footer {
  width: min(100%, 1160px);
  margin-inline: auto;
}

.hero-copy {
  min-width: 0;
  margin-left: 0;
}

.eyebrow,
.section-kicker p,
.role-label,
.project-card span,
.proof-grid span {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: break-word;
}

h1 {
  margin: 1rem 0 1.1rem;
  max-width: 10ch;
  font-size: 7rem;
  line-height: 0.9;
  letter-spacing: 0;
}

.hero-line {
  width: min(100%, 48rem);
  margin: 0;
  color: #e9e9e9;
  font-size: 1.36rem;
  line-height: 1.45;
  overflow-wrap: normal;
}

.hero-actions {
  gap: 0.65rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  min-height: 3rem;
  align-items: center;
  justify-content: center;
  padding: 0.84rem 1.08rem;
  border: 1px solid var(--white);
  font-size: 0.92rem;
  font-weight: 900;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: var(--black);
  background: var(--white);
}

.button-secondary {
  color: var(--white);
  background: transparent;
}

.button-secondary:hover {
  color: var(--black);
  background: var(--white);
}

.quick-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 3rem 0 0;
  border: 1px solid var(--line);
}

.quick-facts div {
  min-height: 8.2rem;
  padding: 1rem;
  border-right: 1px solid var(--line);
}

.quick-facts div:last-child {
  border-right: 0;
}

.quick-facts dt {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
}

.quick-facts dd {
  margin: 1rem 0 0;
  font-size: 1.12rem;
  font-weight: 850;
  line-height: 1.2;
}

.signal-stage {
  position: relative;
  min-height: 34rem;
  min-width: 0;
  margin-right: 0;
  border-left: 1px solid var(--line);
  overflow: hidden;
  isolation: isolate;
}

.signal-stage::before,
.signal-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.signal-stage::before {
  background:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 3rem 3rem;
  mask-image: linear-gradient(to bottom, transparent, #000 16%, #000 86%, transparent);
}

.signal-stage::after {
  border: 1px solid rgba(255, 255, 255, 0.2);
  transform: translate(1.1rem, 1.1rem);
  opacity: 0.65;
}

#signalCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.signal-readout {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
  z-index: 2;
}

.signal-readout span {
  min-height: 3rem;
  display: flex;
  align-items: center;
  padding: 0.72rem;
  color: var(--white);
  background: rgba(5, 5, 5, 0.78);
  border: 1px solid var(--line);
  font: 700 0.72rem/1.2 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.section {
  padding-top: 7rem;
  padding-bottom: 7rem;
}

.section-tight {
  padding-top: 5.2rem;
  padding-bottom: 5.2rem;
}

.section-kicker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.section:not(.section-inverted) .section-kicker {
  border-bottom-color: var(--line);
}

.section-kicker span {
  color: var(--muted);
  font-weight: 900;
}

.statement {
  display: grid;
  grid-template-columns: 1fr 0.72fr;
  gap: 3rem;
  margin-top: 2.3rem;
}

.statement p {
  margin: 0;
  font-size: 1.55rem;
  line-height: 1.35;
  font-weight: 760;
}

.statement p + p {
  color: #d0d0d0;
  font-size: 1.05rem;
  line-height: 1.65;
  font-weight: 560;
}

.skills-strip {
  width: 100%;
  overflow: hidden;
  color: var(--black);
  background: var(--white);
  border-block: 1px solid var(--white);
}

.strip-track {
  display: flex;
  width: max-content;
  animation: scrollStrip 32s linear infinite;
}

.strip-track span {
  display: inline-flex;
  align-items: center;
  min-height: 4rem;
  padding-inline: 2rem;
  border-right: 1px solid var(--line-dark);
  font-size: 1rem;
  font-weight: 950;
  white-space: nowrap;
}

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

.skill-tile {
  min-height: 15rem;
  padding: 1.25rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.035);
  transition: background 180ms ease, transform 180ms ease;
}

.skill-tile:hover {
  background: rgba(255, 255, 255, 0.09);
  transform: translateY(-3px);
}

.skill-tile h2 {
  margin: 0;
  font-size: 1.35rem;
}

.skill-tile p {
  margin: 1.5rem 0 0;
  color: #d7d7d7;
  line-height: 1.6;
}

.section-inverted {
  width: 100%;
  max-width: none;
  color: var(--black);
  background: var(--paper);
}

.section-inverted .section-kicker,
.section-inverted .timeline {
  width: min(100%, 1160px);
  margin-inline: auto;
}

.section-inverted .section-kicker {
  border-bottom-color: var(--line-dark);
}

.section-inverted .section-kicker p,
.section-inverted .section-kicker span,
.section-inverted .role-label {
  color: #555555;
}

.timeline {
  margin-top: 1.6rem;
}

.role {
  display: grid;
  grid-template-columns: minmax(15rem, 0.48fr) minmax(0, 1fr);
  gap: 3rem;
  padding: 2rem 0;
  border-bottom: 1px solid var(--line-dark);
}

.role-heading h2 {
  margin: 0.25rem 0 0.4rem;
  font-size: 2.15rem;
  line-height: 1;
}

.role-heading p:not(.role-label),
.role-heading span {
  color: #454545;
  line-height: 1.4;
}

.role-heading span {
  display: block;
  margin-top: 1rem;
  font-weight: 750;
}

.role ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.role li {
  position: relative;
  padding: 0.88rem 0 0.88rem 1.75rem;
  border-bottom: 1px solid var(--line-dark);
  line-height: 1.55;
}

.role li::before {
  content: "";
  position: absolute;
  top: 1.48rem;
  left: 0;
  width: 0.7rem;
  height: 0.7rem;
  background: var(--black);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: 1.8rem;
  background: var(--line);
  border: 1px solid var(--line);
}

.project-card {
  min-height: 24rem;
  padding: 1.2rem;
  color: var(--black);
  background: var(--white);
  transition: transform 240ms var(--ease), background 180ms ease, color 180ms ease;
}

.project-card:hover {
  transform: translateY(-0.5rem);
}

.project-card-dark {
  color: var(--white);
  background: var(--black);
}

.project-card-feature {
  grid-column: span 2;
  min-height: 29rem;
  padding: 1.45rem;
}

.project-card span {
  color: currentColor;
  opacity: 0.62;
}

.project-card h2 {
  margin: 1.6rem 0 1rem;
  font-size: 2rem;
  line-height: 1.02;
}

.project-card p {
  margin: 0;
  line-height: 1.55;
}

.project-points {
  display: grid;
  gap: 0.65rem;
  margin: 1.35rem 0 0;
  padding: 0;
  list-style: none;
}

.project-points li {
  position: relative;
  padding-left: 1.15rem;
  color: #dfdfdf;
  font-size: 0.92rem;
  line-height: 1.45;
}

.project-points li::before {
  content: "";
  position: absolute;
  top: 0.58rem;
  left: 0;
  width: 0.42rem;
  height: 0.42rem;
  background: currentColor;
}

.proof-section {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 3rem;
  align-items: start;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.proof-copy h2 {
  margin: 0.8rem 0 0;
  font-size: 4rem;
  line-height: 0.98;
}

.proof-grid {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.proof-grid article {
  min-height: 12rem;
  padding: 1.2rem;
  background: var(--black);
}

.proof-grid h3 {
  margin: 1.4rem 0 0.7rem;
  font-size: 1.28rem;
}

.proof-grid p {
  margin: 0;
  color: #d4d4d4;
  line-height: 1.55;
}

.contact-block h2 {
  width: min(100%, 58rem);
  margin: 2rem 0 0;
  font-size: 4.35rem;
  line-height: 0.95;
}

.contact-lines {
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.contact-lines span,
.contact-lines a {
  padding: 0.62rem 0.78rem;
  border: 1px solid var(--line);
  color: #dcdcdc;
}

.contact-lines a:hover {
  color: var(--black);
  background: var(--white);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 720ms var(--ease), transform 720ms var(--ease);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

.site-header[data-reveal],
.hero [data-reveal] {
  opacity: 1;
  transform: none;
}

@keyframes scrollStrip {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@media (max-width: 1080px) {
  h1 {
    font-size: 5.9rem;
  }

  .hero {
    grid-template-columns: 1fr;
  }

  .hero-copy,
  .signal-stage {
    width: min(100%, 1160px);
    margin-inline: auto;
  }

  .signal-stage {
    min-height: 28rem;
    border-left: 0;
  }

  .project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .project-card-feature {
    grid-column: span 2;
  }
}

@media (max-width: 820px) {
  .site-header {
    position: sticky;
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    justify-content: flex-start;
  }

  .nav-links a {
    padding: 0.55rem 0.65rem;
  }

  .hero {
    min-height: auto;
    padding-top: 3.5rem;
  }

  h1 {
    font-size: 4.4rem;
  }

  .hero-line,
  .statement p {
    font-size: 1.22rem;
  }

  .quick-facts,
  .statement,
  .skill-grid,
  .role,
  .proof-section {
    grid-template-columns: 1fr;
  }

  .quick-facts div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .quick-facts div:last-child {
    border-bottom: 0;
  }

  .signal-readout {
    grid-template-columns: 1fr;
  }

  .role {
    gap: 1.3rem;
  }

  .proof-copy h2,
  .contact-block h2 {
    font-size: 3rem;
  }
}

@media (max-width: 560px) {
  .section,
  .section-tight {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }

  .hero {
    width: 100%;
    max-width: none;
    padding-inline: 1.2rem;
  }

  .hero-copy,
  .signal-stage,
  .hero-actions,
  .quick-facts {
    width: 100%;
    max-width: 100%;
  }

  .hero-line {
    width: 100%;
    max-width: 19.5rem;
  }

  h1 {
    font-size: 3.2rem;
  }

  .brand-copy {
    display: none;
  }

  .button {
    width: 100%;
  }

  .hero-actions {
    align-items: stretch;
  }

  .signal-stage {
    min-height: 24rem;
  }

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

  .project-card-feature {
    grid-column: span 1;
  }

  .project-card {
    min-height: 18rem;
  }

  .contact-block h2 {
    font-size: 2.45rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
