:root {
  --ink: #09181c;
  --paper: #f3f0e7;
  --white: #fffdf7;
  --acid: #c4ff4d;
  --sky: #6bd7ff;
  --orange: #ff7043;
  --line: rgba(9, 24, 28, 0.22);
  --muted: #536266;
  --shadow: 8px 8px 0 var(--ink);
  --max: 1240px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(rgba(9, 24, 28, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(9, 24, 28, 0.045) 1px, transparent 1px),
    var(--paper);
  background-size: 42px 42px;
  font-family: "Arial", "Helvetica Neue", sans-serif;
  font-size: 16px;
  line-height: 1.55;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

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

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  padding: 10px 14px;
  color: var(--paper);
  background: var(--ink);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  padding: 10px max(24px, calc((100vw - var(--max)) / 2));
  border-bottom: 2px solid var(--ink);
  background: rgba(243, 240, 231, 0.94);
  backdrop-filter: blur(12px);
}

.identity {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.identity-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 2px solid var(--ink);
  background: var(--acid);
  font-family: "Courier New", monospace;
  font-weight: 800;
  box-shadow: 3px 3px 0 var(--ink);
}

.identity-copy {
  display: grid;
  line-height: 1.1;
}

.identity-copy strong {
  font-size: 0.98rem;
}

.identity-copy small {
  margin-top: 4px;
  color: var(--muted);
  font-family: "Courier New", monospace;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.5vw, 34px);
  font-family: "Courier New", monospace;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
}

.nav a {
  text-decoration: none;
}

.nav a:not(.nav-cta):hover {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

.nav-cta {
  padding: 10px 14px;
  color: var(--paper);
  background: var(--ink);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  gap: clamp(40px, 7vw, 92px);
  align-items: center;
  min-height: calc(100vh - 74px);
  max-width: var(--max);
  margin: 0 auto;
  padding: 82px 24px 100px;
}

.hero::before {
  position: absolute;
  top: 40px;
  left: -52px;
  width: 88px;
  height: 14px;
  content: "";
  background: var(--orange);
  transform: rotate(-12deg);
}

.eyebrow,
.section-number,
.panel-kicker,
.card-label {
  margin: 0 0 22px;
  font-family: "Courier New", monospace;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.eyebrow span {
  padding: 5px 8px;
  color: var(--paper);
  background: var(--ink);
}

h1,
h2,
h3,
p {
  text-wrap: pretty;
}

h1,
h2,
h3 {
  margin-top: 0;
  line-height: 0.98;
  letter-spacing: -0.045em;
}

h1 {
  max-width: 800px;
  margin-bottom: 30px;
  font-size: clamp(2.8rem, 5.2vw, 5.5rem);
}

h1 span {
  position: relative;
  z-index: 0;
  display: inline-block;
}

h1 span:first-of-type::after,
h1 span:last-of-type::after {
  position: absolute;
  right: -3px;
  bottom: 2px;
  left: -3px;
  z-index: -1;
  height: 0.22em;
  content: "";
  background: var(--acid);
}

h1 span:last-of-type::after {
  background: var(--sky);
}

.hero-intro {
  max-width: 680px;
  margin: 0;
  font-size: clamp(1rem, 1.25vw, 1.12rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  min-width: 178px;
  padding: 14px 16px;
  border: 2px solid var(--ink);
  font-family: "Courier New", monospace;
  font-size: 0.86rem;
  font-weight: 800;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translate(-3px, -3px);
  box-shadow: 5px 5px 0 var(--ink);
}

.button-primary {
  background: var(--acid);
}

.button-quiet {
  background: var(--white);
}

.signal-card {
  position: relative;
  z-index: 2;
  overflow: hidden;
  border: 2px solid var(--ink);
  background: var(--ink);
  box-shadow: 14px 14px 0 var(--sky);
  transform: rotate(1.4deg);
}

.signal-card::after {
  position: absolute;
  right: -40px;
  bottom: 54px;
  width: 130px;
  height: 22px;
  content: "";
  background: var(--acid);
  transform: rotate(-42deg);
}

.signal-bar,
.signal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 42px;
  padding: 8px 12px;
  color: var(--paper);
  font-family: "Courier New", monospace;
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.window-dots {
  display: flex;
  gap: 5px;
}

.window-dots i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--orange);
}

.window-dots i:nth-child(2) {
  background: var(--acid);
}

.window-dots i:nth-child(3) {
  background: var(--sky);
}

.live-label {
  display: flex;
  align-items: center;
  gap: 6px;
}

.live-label i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--acid);
  box-shadow: 0 0 0 4px rgba(196, 255, 77, 0.16);
  animation: pulse 1.8s infinite;
}

.signal-media {
  position: relative;
  display: grid;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  place-items: center;
  border-block: 2px solid var(--ink);
  background:
    linear-gradient(135deg, rgba(107, 215, 255, 0.26), rgba(196, 255, 77, 0.18)),
    var(--white);
}

.signal-media img {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.signal-media img:not([src]),
.signal-media img[src=""] {
  display: none;
}

.image-fallback {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  align-content: center;
  gap: 12px;
  padding: 30px;
  color: var(--ink);
  text-align: center;
}

.image-fallback strong {
  font-size: clamp(2rem, 5vw, 4.5rem);
  line-height: 0.88;
}

.image-fallback span {
  font-family: "Courier New", monospace;
  font-size: 0.8rem;
  text-transform: uppercase;
}

.signal-footer {
  justify-content: flex-start;
  gap: 9px;
  overflow: hidden;
  color: var(--ink);
  background: var(--acid);
  white-space: nowrap;
}

.signal-footer span:not(:last-child)::after {
  margin-left: 9px;
  content: "•";
}

.hero-index {
  position: absolute;
  right: 24px;
  bottom: 26px;
  left: 24px;
  display: flex;
  justify-content: space-between;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-family: "Courier New", monospace;
  font-size: 0.72rem;
  text-transform: uppercase;
}

.work-section,
.projects-section,
.range-section,
.timeline-section,
.foundation-section {
  padding: clamp(82px, 10vw, 140px) max(24px, calc((100vw - var(--max)) / 2));
}

.work-section {
  color: var(--paper);
  background: var(--ink);
}

.projects-section {
  border-bottom: 2px solid var(--ink);
  background: var(--paper);
}

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

.project-card {
  --project-accent: var(--acid);

  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 2px solid var(--ink);
  background: var(--white);
  box-shadow: 7px 7px 0 var(--ink);
}

.project-card-parkwise {
  --project-accent: var(--orange);
}

.project-preview {
  position: relative;
  display: grid;
  aspect-ratio: 16 / 10;
  grid-template-columns: 1fr auto;
  grid-template-rows: 1fr auto;
  gap: 18px;
  overflow: hidden;
  padding: 22px;
  border-bottom: 2px solid var(--ink);
  background:
    linear-gradient(rgba(9, 24, 28, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(9, 24, 28, 0.09) 1px, transparent 1px),
    var(--project-accent);
  background-size: 28px 28px;
}

.project-preview::after {
  position: absolute;
  top: -44px;
  right: -42px;
  width: 128px;
  height: 128px;
  border: 24px solid var(--ink);
  border-radius: 50%;
  content: "";
  opacity: 0.12;
}

.project-preview-image {
  padding: 0;
  background: var(--white);
}

.project-preview-image::after {
  display: none;
}

.project-preview-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left top;
}

.project-type {
  font-family: "Courier New", monospace;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.project-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 28px;
}

.project-type {
  margin: 0 0 20px;
  color: var(--muted);
}

.project-card h3 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 3vw, 3rem);
}

.project-card-body > p:not(.project-type) {
  margin: 0;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 26px 0 30px;
  padding: 0;
  list-style: none;
}

.project-tech li {
  padding: 6px 8px;
  border: 1px solid var(--ink);
  background: var(--paper);
  font-family: "Courier New", monospace;
  font-size: 0.67rem;
  font-weight: 800;
  text-transform: uppercase;
}

.project-link {
  display: flex;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 16px;
  border-top: 2px solid var(--ink);
  font-family: "Courier New", monospace;
  font-size: 0.78rem;
  font-weight: 800;
  text-decoration: none;
  text-transform: uppercase;
}

.project-link span {
  transition: transform 160ms ease;
}

.project-link:hover span,
.project-link:focus-visible span {
  transform: translate(4px, -4px);
}

.section-heading {
  display: grid;
  grid-template-columns: 0.52fr 1.3fr 0.72fr;
  gap: 32px;
  align-items: start;
  margin-bottom: 60px;
}

.section-heading h2,
.range-intro h2,
.foundation-title h2,
.contact-section h2 {
  margin-bottom: 0;
  font-size: clamp(2.25rem, 4.2vw, 4.25rem);
}

.section-heading > p:last-child {
  margin: 0;
  opacity: 0.72;
}

.case-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 24px;
}

.case-card {
  display: flex;
  min-height: 570px;
  flex-direction: column;
  padding: clamp(28px, 4vw, 54px);
  border: 2px solid;
}

.case-card-dark {
  border-color: var(--acid);
  background:
    linear-gradient(135deg, transparent 70%, rgba(196, 255, 77, 0.08) 70%),
    #10262b;
}

.case-card-light {
  color: var(--ink);
  border-color: var(--paper);
  background: var(--paper);
  box-shadow: 10px 10px 0 var(--orange);
}

.case-topline {
  display: flex;
  justify-content: space-between;
  margin-bottom: 58px;
  padding-bottom: 12px;
  border-bottom: 1px solid currentColor;
  font-family: "Courier New", monospace;
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.case-card h3 {
  max-width: 630px;
  margin-bottom: 24px;
  font-size: clamp(2rem, 3.3vw, 3.5rem);
}

.case-card > p {
  max-width: 680px;
}

.work-notes {
  display: grid;
  gap: 0;
  margin: 28px 0 34px;
  padding: 0;
  list-style: none;
  border-top: 1px solid currentColor;
}

.work-notes li {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 10px;
  padding: 13px 0;
  border-bottom: 1px solid currentColor;
}

.work-notes span {
  font-family: "Courier New", monospace;
  font-size: 0.75rem;
  opacity: 0.65;
}

.case-foot {
  margin: auto 0 0;
  padding-top: 20px;
  font-weight: 700;
}

.range-section {
  position: relative;
  overflow: hidden;
}

.range-section::after {
  position: absolute;
  top: 40px;
  right: -50px;
  width: 180px;
  height: 180px;
  border: 32px solid var(--sky);
  border-radius: 50%;
  content: "";
  opacity: 0.65;
}

.range-intro {
  display: grid;
  grid-template-columns: 0.5fr 1.1fr 0.72fr;
  gap: 32px;
  align-items: end;
  margin-bottom: 54px;
}

.range-intro p:last-child {
  margin: 0;
}

.range-console {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 0.36fr 0.64fr;
  border: 2px solid var(--ink);
  background: var(--white);
  box-shadow: var(--shadow);
}

.range-tabs {
  display: grid;
  align-content: stretch;
  background: var(--ink);
}

.range-tabs button {
  display: grid;
  grid-template-columns: 36px 1fr;
  grid-template-rows: auto auto;
  gap: 2px 8px;
  align-content: center;
  min-height: 142px;
  padding: 24px;
  color: var(--paper);
  border: 0;
  border-bottom: 1px solid rgba(243, 240, 231, 0.25);
  background: transparent;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.range-tabs button:last-child {
  border-bottom: 0;
}

.range-tabs button:hover {
  background: rgba(255, 255, 255, 0.06);
}

.range-tabs button[aria-selected="true"] {
  color: var(--ink);
  background: var(--acid);
}

.range-tabs span {
  grid-row: 1 / 3;
  font-family: "Courier New", monospace;
  font-size: 0.75rem;
}

.range-tabs strong {
  font-size: 1.35rem;
  line-height: 1;
}

.range-tabs small {
  font-family: "Courier New", monospace;
  font-size: 0.72rem;
  text-transform: uppercase;
}

.range-panels {
  display: grid;
  min-height: 426px;
  padding: clamp(34px, 5vw, 70px);
  place-items: center;
}

.range-panels section {
  width: 100%;
  max-width: 700px;
}

.range-panels h3 {
  max-width: 620px;
  margin-bottom: 22px;
  font-size: clamp(2.1rem, 3.4vw, 3.55rem);
}

.range-panels section > p:not(.panel-kicker) {
  max-width: 620px;
  font-size: 1rem;
}

.tool-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 30px;
}

.tool-row span {
  padding: 7px 10px;
  border: 1px solid var(--ink);
  background: var(--paper);
  font-family: "Courier New", monospace;
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
}

.timeline-section {
  color: var(--paper);
  background: #10262b;
}

.timeline {
  margin: 0;
  padding: 0;
  border-top: 2px solid var(--paper);
  list-style: none;
}

.timeline li {
  display: grid;
  grid-template-columns: 0.42fr 0.72fr 1fr;
  gap: 28px;
  align-items: baseline;
  padding: 32px 0;
  border-bottom: 1px solid rgba(243, 240, 231, 0.3);
}

.timeline-year,
.timeline-role p {
  font-family: "Courier New", monospace;
  font-size: 0.8rem;
  text-transform: uppercase;
}

.timeline-role h3 {
  margin-bottom: 7px;
  font-size: clamp(1.4rem, 2vw, 2rem);
}

.timeline-role p,
.timeline-detail {
  margin: 0;
}

.timeline-detail {
  color: rgba(243, 240, 231, 0.76);
}

.foundation-section {
  background:
    linear-gradient(115deg, rgba(107, 215, 255, 0.18), transparent 42%),
    var(--paper);
}

.foundation-title {
  display: grid;
  grid-template-columns: 0.5fr 1.8fr;
  gap: 32px;
  margin-bottom: 54px;
}

.foundation-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 22px;
}

.education-card,
.cert-card {
  min-height: 320px;
  padding: clamp(28px, 4vw, 52px);
  border: 2px solid var(--ink);
}

.education-card {
  display: flex;
  flex-direction: column;
  background: var(--sky);
  box-shadow: 10px 10px 0 var(--ink);
}

.education-card h3 {
  max-width: 720px;
  margin: auto 0 20px;
  font-size: clamp(2rem, 3.4vw, 3.6rem);
}

.education-card > p:last-child {
  margin: 0;
  font-family: "Courier New", monospace;
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.cert-card {
  background: var(--white);
}

.cert-card ul {
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
}

.cert-card li {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.cert-card li::before {
  margin-right: 10px;
  color: var(--orange);
  content: "↳";
  font-weight: 900;
}

.contact-section {
  display: grid;
  grid-template-columns: 1.1fr 0.55fr;
  gap: 70px;
  padding: clamp(82px, 10vw, 140px) max(24px, calc((100vw - var(--max)) / 2));
  color: var(--ink);
  background: var(--acid);
}

.contact-section > p {
  align-self: end;
  margin: 0;
  font-size: 1rem;
}

.contact-links {
  display: grid;
  grid-column: 1 / -1;
  border-top: 2px solid var(--ink);
}

.contact-links a {
  display: flex;
  justify-content: space-between;
  padding: 20px 0;
  border-bottom: 1px solid var(--ink);
  font-size: clamp(1rem, 1.8vw, 1.3rem);
  font-weight: 800;
  text-decoration: none;
}

.contact-links a:hover span {
  transform: translate(4px, -4px);
}

.contact-links span {
  transition: transform 160ms ease;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 24px max(24px, calc((100vw - var(--max)) / 2));
  color: var(--paper);
  background: var(--ink);
  font-family: "Courier New", monospace;
  font-size: 0.75rem;
  text-transform: uppercase;
}

.js .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 600ms ease, transform 600ms ease;
}

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

@keyframes pulse {
  50% {
    opacity: 0.4;
    transform: scale(0.8);
  }
}

@media (max-width: 980px) {
  .nav a:not(.nav-cta) {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 70px;
  }

  .signal-card {
    width: min(620px, 94%);
    margin: 0 auto;
  }

  .hero-index {
    display: none;
  }

  .section-heading,
  .range-intro,
  .foundation-title {
    grid-template-columns: 1fr;
  }

  .section-heading > p:last-child,
  .range-intro p:last-child {
    max-width: 620px;
  }

  .case-grid,
  .foundation-grid {
    grid-template-columns: 1fr;
  }

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

  .project-card {
    display: grid;
    grid-template-columns: minmax(280px, 0.82fr) minmax(0, 1.18fr);
  }

  .project-preview {
    min-height: 340px;
    aspect-ratio: auto;
    border-right: 2px solid var(--ink);
    border-bottom: 0;
  }

  .range-console {
    grid-template-columns: 1fr;
  }

  .range-tabs {
    grid-template-columns: repeat(3, 1fr);
  }

  .range-tabs button {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    min-height: 118px;
    border-right: 1px solid rgba(243, 240, 231, 0.25);
    border-bottom: 0;
  }

  .range-tabs span {
    grid-row: auto;
  }

  .range-tabs small {
    display: none;
  }

  .timeline li {
    grid-template-columns: 0.45fr 1fr;
  }

  .timeline-detail {
    grid-column: 2;
  }
}

@media (max-width: 640px) {
  .site-header {
    min-height: 66px;
    padding-inline: 16px;
  }

  .identity-copy small {
    display: none;
  }

  .identity-mark {
    width: 38px;
    height: 38px;
  }

  .nav-cta {
    padding: 9px 10px;
    font-size: 0.72rem;
  }

  .hero,
  .work-section,
  .projects-section,
  .range-section,
  .timeline-section,
  .foundation-section,
  .contact-section {
    padding-inline: 18px;
  }

  .hero {
    padding-block: 58px 74px;
  }

  h1 {
    font-size: clamp(2.65rem, 12vw, 3.75rem);
  }

  .eyebrow {
    line-height: 2.1;
  }

  .button {
    width: 100%;
  }

  .signal-card {
    width: 95%;
    box-shadow: 8px 8px 0 var(--sky);
  }

  .signal-bar > span:nth-child(2) {
    display: none;
  }

  .case-card {
    min-height: 0;
  }

  .project-card {
    display: flex;
  }

  .project-preview {
    min-height: 0;
    aspect-ratio: 16 / 10;
    border-right: 0;
    border-bottom: 2px solid var(--ink);
  }

  .case-topline {
    margin-bottom: 38px;
  }

  .range-section::after {
    display: none;
  }

  .range-console {
    box-shadow: 6px 6px 0 var(--ink);
  }

  .range-tabs button {
    min-height: 90px;
    padding: 14px 10px;
    text-align: center;
  }

  .range-tabs span {
    display: none;
  }

  .range-tabs strong {
    font-size: 1.05rem;
  }

  .range-panels {
    min-height: 430px;
    padding: 28px 22px;
  }

  .timeline li {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .timeline-detail {
    grid-column: auto;
  }

  .foundation-grid {
    gap: 14px;
  }

  .education-card,
  .cert-card {
    min-height: 280px;
  }

  .contact-section {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .contact-links {
    grid-column: auto;
  }

  .contact-links a {
    gap: 16px;
    overflow-wrap: anywhere;
  }

  footer {
    flex-direction: column;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

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