:root {
  color-scheme: dark;
  --ink: #f4eee6;
  --muted: #c9b9a8;
  --dim: #8f8277;
  --charcoal: #15110f;
  --night: #090b12;
  --wood: #7b4b2f;
  --copper: #d48643;
  --ember: #ffb35b;
  --ice: #9fd3ff;
  --violet: #8e71ff;
  --circuit: #74dda6;
  --line: rgba(244, 238, 230, 0.16);
  --panel: rgba(20, 17, 15, 0.74);
  --panel-strong: rgba(26, 22, 20, 0.92);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  --max: 1160px;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    linear-gradient(180deg, rgba(9, 11, 18, 0.2), var(--night) 55%),
    radial-gradient(circle at 10% 20%, rgba(212, 134, 67, 0.18), transparent 28%),
    #0b0a0b;
  color: var(--ink);
}

body::before {
  position: fixed;
  inset: 0;
  pointer-events: none;
  content: "";
  opacity: 0.34;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.026) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, transparent, black 24%, black 80%, transparent);
}

.cursor-glow {
  position: fixed;
  z-index: 8;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(
      circle at var(--cursor-x, 50vw) var(--cursor-y, 40vh),
      rgba(255, 179, 91, 0.18),
      rgba(142, 113, 255, 0.1) 22%,
      transparent 54%
    );
  filter: blur(2px);
  mix-blend-mode: screen;
  opacity: 0.75;
  transition: opacity 180ms ease;
}

.snow-canvas {
  position: fixed;
  z-index: 9;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.86;
  mix-blend-mode: screen;
}

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

img,
svg {
  display: block;
}

svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.site-shell {
  overflow: hidden;
}

.topbar {
  position: fixed;
  z-index: 50;
  top: 0;
  left: 50%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  width: min(calc(100% - 32px), var(--max));
  min-height: 64px;
  margin-top: 14px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 8px;
  background: rgba(13, 11, 12, 0.46);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(18px);
  transform: translateX(-50%);
  transition: background 180ms ease, border-color 180ms ease;
}

.topbar.is-scrolled {
  border-color: rgba(244, 238, 230, 0.18);
  background: rgba(13, 11, 12, 0.78);
}

.brand-mark,
.icon-link {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.brand-mark span {
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0;
}

.icon-link svg {
  width: 21px;
  height: 21px;
  fill: currentColor;
  stroke: none;
}

.topbar-actions {
  display: flex;
  align-items: center;
  justify-content: end;
  gap: 10px;
}

.snow-control {
  display: grid;
  grid-template-columns: auto 86px;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
}

.snow-control input {
  width: 86px;
  accent-color: var(--ice);
  cursor: pointer;
}

.primary-nav {
  display: flex;
  justify-content: center;
  gap: 6px;
}

.primary-nav a {
  padding: 12px 14px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
  transition: color 160ms ease, background 160ms ease;
}

.primary-nav a:hover,
.primary-nav a.is-active {
  background: rgba(255, 255, 255, 0.07);
  color: var(--ink);
}

.hero {
  position: relative;
  display: grid;
  min-height: 100svh;
  padding: 142px max(20px, calc((100vw - var(--max)) / 2)) 56px;
}

.hero-art,
.hero-art img,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-art {
  z-index: 0;
  overflow: hidden;
}

.hero-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.012);
}

.hero-shade {
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(7, 7, 9, 0.78) 0%, rgba(7, 7, 9, 0.38) 43%, rgba(7, 7, 9, 0.6) 100%),
    linear-gradient(0deg, rgba(9, 11, 18, 0.96) 0%, rgba(9, 11, 18, 0.08) 46%, rgba(9, 11, 18, 0.42) 100%);
}

.hero-content {
  position: relative;
  z-index: 20;
  align-self: center;
  max-width: 720px;
  padding-bottom: min(12vh, 96px);
}

.eyebrow,
.section-kicker,
.panel-label,
.project-type,
.timeline-date {
  color: var(--ice);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 760px;
  margin: 14px 0 18px;
  font-size: clamp(3.8rem, 11vw, 9.5rem);
  line-height: 0.84;
  letter-spacing: 0;
  text-wrap: balance;
}

.hero-copy {
  max-width: 620px;
  margin: 0;
  color: #f1dfcd;
  font-size: clamp(1.06rem, 2.3vw, 1.38rem);
  line-height: 1.6;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.38);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.primary-action,
.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: 8px;
  font-weight: 800;
}

.primary-action {
  gap: 10px;
  padding: 0 18px;
  background: linear-gradient(135deg, var(--ember), #ed8844 52%, #7d7af7);
  color: #18100b;
  box-shadow: 0 18px 40px rgba(237, 136, 68, 0.26);
}

.primary-action svg {
  width: 20px;
  height: 20px;
}

.secondary-action {
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(13, 11, 12, 0.52);
  color: var(--ink);
  backdrop-filter: blur(14px);
}

.signal-panel {
  position: absolute;
  z-index: 20;
  right: max(20px, calc((100vw - var(--max)) / 2));
  bottom: 42px;
  display: grid;
  width: min(460px, calc(100% - 40px));
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.signal-panel div {
  position: relative;
  min-width: 0;
  padding: 16px;
  background: rgba(13, 11, 12, 0.68);
  overflow: hidden;
}

.signal-panel strong {
  display: block;
  margin-top: 7px;
  font-size: 0.92rem;
  line-height: 1.28;
}

.section {
  position: relative;
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
  padding: 92px 0;
}

.section > * {
  position: relative;
  z-index: 20;
}

.intro-band {
  border-bottom: 1px solid var(--line);
}

.intro-grid,
.section-heading,
.processor-section,
.life-strip,
.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}

.intro-grid h2,
.section-heading h2,
.processor-copy h2,
.life-strip h2,
.contact-section h2 {
  margin: 10px 0 0;
  font-size: clamp(2.1rem, 5vw, 3.0rem);
  line-height: 0.97;
  letter-spacing: 0;
  text-wrap: balance;
}

.intro-grid p,
.section-heading p,
.processor-copy p,
.life-strip p,
.contact-section p,
.timeline-item p,
.system-card p,
.project-card p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.72;
}

.intro-grid p,
.section-heading p,
.contact-section p {
  padding-top: 14px;
}

.system-card,
.project-card,
.timeline-item,
.contact-links a {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.22);
}

[data-snow-catch] {
  position: relative;
}

.system-board {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 42px;
}

.system-card {
  position: relative;
  min-height: 290px;
  padding: 22px;
  overflow: hidden;
}

.system-card::before {
  position: absolute;
  inset: 0;
  content: "";
  opacity: 0.4;
  background:
    linear-gradient(90deg, transparent 0 23px, rgba(116, 221, 166, 0.13) 24px 25px, transparent 26px),
    linear-gradient(0deg, transparent 0 23px, rgba(159, 211, 255, 0.12) 24px 25px, transparent 26px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, black, transparent 72%);
}

.card-topline {
  position: relative;
  display: grid;
  gap: 16px;
  min-height: 116px;
}

.card-topline span {
  color: var(--circuit);
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-size: 0.82rem;
}

.card-topline strong {
  font-size: clamp(1.2rem, 2.6vw, 1.5rem);
  line-height: 1.08;
}

.system-card p {
  position: relative;
}

.experience-section {
  width: min(calc(100% - 40px), 980px);
}

.timeline {
  display: grid;
  gap: 14px;
  margin-top: 40px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 26px;
  padding: 24px;
  background: linear-gradient(135deg, rgba(28, 22, 19, 0.9), rgba(12, 12, 16, 0.84));
}

.timeline-item h3,
.project-card h3 {
  margin: 0;
  font-size: clamp(1.35rem, 3vw, 2rem);
  line-height: 1.1;
}

.timeline-item .org {
  margin: 8px 0 16px;
  color: var(--ice);
  font-weight: 800;
}

.timeline-item p + p {
  margin-top: 12px;
}

.scope-note {
  margin-top: 18px;
  padding: 15px 16px;
  border: 1px solid rgba(159, 211, 255, 0.2);
  border-radius: 8px;
  background: rgba(159, 211, 255, 0.055);
  color: #bfc8ca;
  font-size: 0.92rem;
  line-height: 1.58;
}

.major-role {
  grid-template-columns: 170px 1fr;
  padding: 30px;
  background:
    linear-gradient(135deg, rgba(45, 30, 22, 0.94), rgba(14, 14, 18, 0.9)),
    radial-gradient(circle at 92% 12%, rgba(255, 179, 91, 0.18), transparent 34%);
}

.detail-list {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.detail-list li {
  position: relative;
  padding-left: 22px;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.58;
}

.detail-list li::before {
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 8px;
  height: 8px;
  border: 1px solid rgba(116, 221, 166, 0.85);
  border-radius: 50%;
  content: "";
  box-shadow: 0 0 18px rgba(116, 221, 166, 0.38);
  transform: translateY(-50%);
}

.role-visual {
  margin: 24px 0 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 22px 58px rgba(0, 0, 0, 0.26);
}

.role-visual img {
  width: 100%;
  aspect-ratio: 16 / 8.5;
  object-fit: cover;
  object-position: center;
}

.role-visual figcaption {
  padding: 13px 16px 15px;
  color: var(--dim);
  font-size: 0.86rem;
  line-height: 1.45;
}

.project-grid {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 12px;
  margin-top: 42px;
}

.project-card {
  min-height: 282px;
  padding: 26px;
  background:
    linear-gradient(135deg, rgba(119, 74, 47, 0.32), rgba(13, 11, 12, 0.86)),
    var(--panel-strong);
}

.featured-project {
  grid-row: span 2;
  display: flex;
  min-height: 576px;
  flex-direction: column;
  justify-content: end;
  background:
    linear-gradient(180deg, transparent, rgba(9, 11, 18, 0.88) 72%),
    url("vision/lights.png") center / cover;
}

.project-card h3 {
  margin-top: 12px;
}

.project-card p {
  margin-top: 16px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.tag-row span {
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
  color: #eee0d2;
  font-size: 0.82rem;
  font-weight: 800;
}

.inline-link {
  display: inline-flex;
  width: fit-content;
  margin-top: 18px;
  color: var(--ice);
  font-weight: 900;
  text-decoration: underline;
  text-decoration-color: rgba(159, 211, 255, 0.42);
  text-underline-offset: 5px;
}

.processor-section {
  align-items: center;
}

.processor-copy p + p {
  margin-top: 16px;
}

.scene-card {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.scene-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.scene-card figcaption {
  padding: 14px 16px 16px;
  color: var(--dim);
  font-size: 0.86rem;
  line-height: 1.45;
}

.life-strip {
  align-items: center;
  width: min(calc(100% - 40px), 980px);
  padding-top: 40px;
  border-top: 1px solid var(--line);
}

.life-strip h2 {
  font-size: clamp(1.8rem, 4vw, 3rem);
}

.life-strip p {
  padding-top: 0;
}

.text-link {
  color: var(--ice);
  font-weight: 900;
  text-decoration: underline;
  text-decoration-color: rgba(159, 211, 255, 0.42);
  text-underline-offset: 4px;
}

.contact-section {
  align-items: center;
  padding-bottom: 120px;
}

.contact-links {
  display: grid;
  gap: 12px;
}

.contact-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  padding: 0 22px;
  color: var(--ink);
  font-size: 1.2rem;
  font-weight: 900;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.contact-links a:hover {
  border-color: rgba(255, 179, 91, 0.42);
  background: rgba(255, 179, 91, 0.08);
  transform: translateY(-2px);
}

.contact-links svg {
  width: 22px;
  height: 22px;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 520ms ease, transform 520ms ease;
}

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

@media (max-width: 980px) {
  .system-board {
    grid-template-columns: repeat(2, 1fr);
  }

  .system-card {
    min-height: 230px;
  }

  .project-grid,
  .intro-grid,
  .section-heading,
  .processor-section,
  .life-strip,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .featured-project {
    min-height: 460px;
  }
}

@media (max-width: 720px) {
  .topbar {
    grid-template-columns: auto auto;
    width: calc(100% - 24px);
  }

  .topbar-actions {
    justify-self: end;
  }

  .snow-control {
    grid-template-columns: 1fr;
    gap: 2px;
    width: 86px;
    padding: 5px 9px;
  }

  .snow-control input {
    width: 68px;
  }

  .primary-nav {
    order: 3;
    grid-column: 1 / -1;
    justify-content: space-between;
    overflow-x: auto;
    padding-top: 6px;
  }

  .primary-nav a {
    flex: 1;
    min-width: 0;
    padding: 10px 6px;
    font-size: 0.82rem;
    text-align: center;
    white-space: nowrap;
  }

  .icon-link {
    justify-self: end;
  }

  .hero {
    min-height: auto;
    padding-top: 144px;
    padding-bottom: 24px;
  }

  .hero-art img {
    object-position: 42% center;
  }

  .hero-shade {
    background:
      linear-gradient(90deg, rgba(7, 7, 9, 0.78), rgba(7, 7, 9, 0.48)),
      linear-gradient(0deg, rgba(9, 11, 18, 0.98) 0%, rgba(9, 11, 18, 0.14) 58%, rgba(9, 11, 18, 0.6) 100%);
  }

  .hero h1 {
    font-size: clamp(3.25rem, 18vw, 5.5rem);
  }

  .hero-actions {
    display: grid;
  }

  .primary-action,
  .secondary-action {
    width: 100%;
  }

  .signal-panel {
    position: relative;
    right: auto;
    bottom: auto;
    grid-template-columns: 1fr;
    width: 100%;
    margin-top: 34px;
  }

  .section {
    width: min(calc(100% - 28px), var(--max));
    padding: 68px 0;
  }

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

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 20px;
  }

  .major-role {
    padding: 22px;
  }

  .project-card,
  .system-card {
    padding: 20px;
  }
}

@media (max-width: 430px) {
  .eyebrow,
  .section-kicker,
  .panel-label,
  .project-type,
  .timeline-date {
    font-size: 0.68rem;
  }

  .hero {
    padding-top: 134px;
  }

  .hero h1 {
    font-size: clamp(3rem, 16vw, 4.35rem);
  }
}

@media (max-width: 480px) and (orientation: portrait) {
  .hero-art img {
    object-position: left center;
  }
}

@media (hover: none), (pointer: coarse) {
  .cursor-glow {
    opacity: 0;
  }

  .cursor-glow.is-touching {
    opacity: 0.68;
  }
}

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

  .reveal {
    opacity: 1;
    transform: none;
  }

  .snow-canvas {
    opacity: 0.42;
  }
}
