:root {
  --ink: #17211f;
  --paper: #f2f3ed;
  --paper-deep: #e3e7df;
  --teal: #0c6058;
  --teal-dark: #08443f;
  --signal: #e05238;
  --line: rgba(23, 33, 31, 0.18);
  --muted: #5e6a66;
  --white: #fff;
  --contrast-ink: #17211f;
  --header-bg: rgba(242, 243, 237, 0.92);
  --grid-line: rgba(23, 33, 31, 0.045);
  --page-pad: clamp(1.25rem, 5vw, 5rem);
  --max-width: 1440px;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --ink: #e6eeeb;
  --paper: #101714;
  --paper-deep: #18221e;
  --teal: #62c4b3;
  --teal-dark: #063d38;
  --signal: #ff765b;
  --line: rgba(230, 238, 235, 0.2);
  --muted: #aab8b2;
  --contrast-ink: #07100e;
  --header-bg: rgba(16, 23, 20, 0.92);
  --grid-line: rgba(230, 238, 235, 0.055);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
  background: var(--contrast-ink);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  min-height: 100dvh;
  margin: 0;
  overflow-x: hidden;
  overflow-x: clip;
  color: var(--ink);
  background:
    linear-gradient(90deg, transparent calc(100% - 1px), var(--grid-line) 1px) 0 0 / 8.333vw 100%,
    var(--paper);
  font-family: "Manrope", sans-serif;
  font-size: 1rem;
  line-height: 1.7;
}

body.menu-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

button {
  color: inherit;
  font: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.65rem 1rem;
  color: var(--white);
  background: var(--teal);
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: fixed;
  z-index: 50;
  top: 0;
  left: 0;
  display: flex;
  width: 100%;
  height: 5rem;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--page-pad);
  border-bottom: 1px solid transparent;
  transition: background-color 180ms ease, border-color 180ms ease;
}

.site-header.scrolled {
  border-color: var(--line);
  background: var(--header-bg);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
}

.header-brand {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-0.5rem);
  transition: opacity 180ms ease, transform 180ms ease;
}

.site-header.past-hero .header-brand,
.header-brand:focus-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.brand-mark {
  display: grid;
  width: 2.25rem;
  height: 2.25rem;
  place-items: center;
  color: var(--white);
  background: var(--teal);
  font-family: "DM Mono", monospace;
  font-size: 0.75rem;
  font-weight: 500;
}

.brand-portrait {
  overflow: hidden;
  background: var(--signal);
}

.brand-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 26%;
}

.navigation {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.2vw, 2.5rem);
  font-size: 0.88rem;
  font-weight: 600;
}

.navigation a:not(.nav-cta) {
  position: relative;
}

.navigation a:not(.nav-cta)::after {
  position: absolute;
  right: 0;
  bottom: -0.25rem;
  left: 0;
  height: 1px;
  background: var(--teal);
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

.navigation a:hover::after,
.navigation a.active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-cta {
  padding: 0.55rem 0.9rem;
  color: var(--white);
  background: var(--contrast-ink);
}

.language-switch {
  display: flex;
  padding: 0.2rem;
  border: 1px solid var(--line);
  gap: 0.1rem;
}

.language-switch button {
  display: grid;
  width: 2rem;
  height: 2rem;
  padding: 0;
  place-items: center;
  border: 0;
  color: var(--muted);
  background: transparent;
  font-family: "DM Mono", monospace;
  font-size: 0.65rem;
  font-weight: 500;
  cursor: pointer;
}

.language-switch button:hover {
  color: var(--ink);
}

.language-switch button[aria-pressed="true"] {
  color: var(--white);
  background: var(--teal);
}

.language-switch button:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 2px;
}

.theme-toggle {
  display: inline-flex;
  min-width: 5.2rem;
  height: 2.4rem;
  padding: 0.2rem 0.35rem;
  border: 1px solid var(--line);
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
}

.theme-toggle-icon {
  width: 1rem;
  font-size: 0.8rem;
  line-height: 1;
  text-align: center;
}

.theme-toggle-track {
  position: relative;
  display: block;
  width: 1.9rem;
  height: 1rem;
  background: var(--line);
}

.theme-toggle-track span {
  position: absolute;
  top: 0.15rem;
  left: 0.15rem;
  width: 0.7rem;
  height: 0.7rem;
  background: var(--teal);
  transition: transform 180ms ease;
}

.theme-toggle[aria-checked="true"] .theme-toggle-track span {
  transform: translateX(0.9rem);
}

.theme-toggle:hover {
  color: var(--ink);
}

.theme-toggle:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 2px;
}

.menu-toggle {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0.8rem;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.menu-toggle span:not(.sr-only) {
  display: block;
  width: 100%;
  height: 1px;
  margin: 0.34rem 0;
  background: currentColor;
  transition: transform 180ms ease;
}

.hero {
  position: relative;
  display: grid;
  min-height: min(880px, 100svh);
  max-width: var(--max-width);
  margin: 0 auto;
  padding: clamp(7.5rem, 12vh, 10rem) var(--page-pad) 2.5rem;
  grid-template-columns: minmax(0, 1.15fr) minmax(20rem, 0.85fr);
  grid-template-rows: 1fr auto;
  gap: 2rem clamp(2rem, 7vw, 7rem);
  align-items: center;
}

.hero::before {
  position: absolute;
  z-index: -1;
  top: 12%;
  right: 0;
  width: 34%;
  height: 67%;
  border: 1px solid var(--line);
  content: "";
}

.eyebrow,
.section-index,
.timeline-date,
.timeline-type,
.project-meta,
.contact-note {
  font-family: "DM Mono", monospace;
  letter-spacing: 0;
  text-transform: uppercase;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 1.5rem;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 500;
}

.status-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 0 0.3rem rgba(224, 82, 56, 0.13);
}

.hero h1 {
  margin: 0;
  font-size: clamp(3.8rem, 8.5vw, 8rem);
  font-weight: 500;
  letter-spacing: 0;
  line-height: 0.9;
}

.hero-statement {
  max-width: 17ch;
  margin: 1.5rem 0;
  font-size: clamp(1.6rem, 3vw, 2.65rem);
  font-weight: 600;
  line-height: 1.15;
}

.hero-intro {
  max-width: 40rem;
  margin: 0 0 2rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
}

.button {
  display: inline-flex;
  min-height: 3.35rem;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.75rem 1.15rem;
  font-weight: 700;
  transition: transform 180ms ease, background-color 180ms ease;
}

.button:hover {
  transform: translateY(-3px);
}

.button-primary {
  min-width: 13rem;
  color: var(--white);
  background: var(--teal);
}

.button-primary:hover {
  background: var(--teal-dark);
}

html[data-theme="dark"] .button-primary {
  color: var(--contrast-ink);
}

html[data-theme="dark"] .button-primary:hover {
  color: var(--white);
  background: #1e776c;
}

.text-link {
  padding-bottom: 0.15rem;
  border-bottom: 1px solid currentColor;
  font-weight: 700;
}

.hero-visual {
  position: relative;
  justify-self: end;
  width: min(100%, 29rem);
}

.portrait-frame {
  position: relative;
  width: 82%;
  margin-left: auto;
}

.portrait-frame::before {
  position: absolute;
  z-index: -1;
  top: -1.5rem;
  left: -1.5rem;
  width: 55%;
  height: 45%;
  background: var(--signal);
  content: "";
}

.portrait-frame img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: 50% 30%;
  filter: saturate(0.78) contrast(1.05);
}

.portrait-label {
  position: absolute;
  right: -1.5rem;
  bottom: 1.5rem;
  display: flex;
  max-width: 15rem;
  padding: 1rem 1.2rem;
  color: var(--white);
  background: var(--contrast-ink);
  flex-direction: column;
}

.portrait-label span {
  color: rgba(255, 255, 255, 0.64);
  font-family: "DM Mono", monospace;
  font-size: 0.62rem;
  text-transform: uppercase;
}

.portrait-label strong {
  font-size: 0.82rem;
  line-height: 1.4;
}

.route-line {
  position: absolute;
  z-index: -1;
  right: 0;
  bottom: -2.2rem;
  width: 118%;
  height: 4rem;
  border-right: 2px solid var(--teal);
  border-bottom: 2px solid var(--teal);
}

.route-node {
  position: absolute;
  width: 0.85rem;
  height: 0.85rem;
  border: 2px solid var(--teal);
  border-radius: 50%;
  background: var(--paper);
}

.route-node-start {
  bottom: -0.45rem;
  left: 0;
}

.route-node-end {
  top: -0.45rem;
  right: -0.45rem;
  background: var(--signal);
  border-color: var(--signal);
}

.hero-meta {
  display: grid;
  grid-column: 1 / -1;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.hero-meta div {
  display: flex;
  flex-direction: column;
}

.hero-meta span {
  color: var(--muted);
  font-family: "DM Mono", monospace;
  font-size: 0.65rem;
  text-transform: uppercase;
}

.hero-meta strong {
  font-size: 0.9rem;
}

.section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: clamp(5rem, 10vw, 9rem) var(--page-pad);
}

.section-index {
  color: var(--teal);
  font-size: 0.72rem;
  font-weight: 500;
}

.section-heading {
  display: grid;
  margin-bottom: clamp(3rem, 6vw, 6rem);
  grid-template-columns: minmax(9rem, 0.5fr) 1.5fr;
  gap: 2rem;
}

.section-heading h2 {
  max-width: 20ch;
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 4.8rem);
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.05;
}

.profile-section {
  display: grid;
  border-top: 1px solid var(--line);
  grid-template-columns: minmax(9rem, 0.5fr) 1.5fr;
  gap: 2rem;
}

.lead {
  max-width: 32ch;
  margin: 0 0 3rem;
  font-size: clamp(1.65rem, 3vw, 2.8rem);
  font-weight: 500;
  line-height: 1.25;
}

.profile-details {
  display: grid;
  max-width: 52rem;
  color: var(--muted);
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
}

.profile-details p {
  margin: 0;
}

.timeline-section {
  max-width: none;
  color: var(--white);
  background: var(--teal-dark);
}

.timeline-section > * {
  max-width: calc(var(--max-width) - 2 * var(--page-pad));
  margin-right: auto;
  margin-left: auto;
}

.timeline-section .section-index,
.timeline-type {
  color: #77c6b9;
}

.timeline {
  position: relative;
}

.timeline::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(20% + 0.45rem);
  width: 1px;
  background: rgba(255, 255, 255, 0.28);
  content: "";
}

.timeline-item {
  display: grid;
  min-height: 13rem;
  padding: 2.5rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  grid-template-columns: 20% 3rem 1fr;
}

.timeline-date {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.72rem;
}

.timeline-marker {
  position: relative;
  z-index: 1;
  width: 0.95rem;
  height: 0.95rem;
  border: 3px solid var(--teal-dark);
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.55);
}

.timeline-type {
  margin: 0 0 0.5rem;
  font-size: 0.65rem;
}

.timeline-content h3 {
  max-width: 34ch;
  margin: 0;
  font-size: clamp(1.35rem, 2.5vw, 2rem);
  line-height: 1.25;
}

.timeline-company {
  margin: 0.35rem 0 1rem;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
}

.timeline-content > p:last-child {
  max-width: 47rem;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.75);
}

.skills-grid {
  display: grid;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  grid-template-columns: repeat(4, 1fr);
}

.skill-group {
  min-height: 23rem;
  padding: 1.5rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.skill-number {
  color: var(--signal);
  font-family: "DM Mono", monospace;
  font-size: 0.7rem;
}

.skill-group h3 {
  margin: 3.5rem 0 1.4rem;
  font-size: 1.35rem;
}

.skill-group ul {
  margin: 0;
  padding: 0;
  color: var(--muted);
  list-style: none;
}

.skill-group li {
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--line);
}

.languages {
  display: grid;
  margin-top: 2rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 1rem;
  align-items: center;
}

.languages > span {
  color: var(--teal);
  font-family: "DM Mono", monospace;
  font-size: 0.7rem;
  text-transform: uppercase;
}

.languages div {
  display: flex;
  flex-direction: column;
}

.languages small {
  color: var(--muted);
}

.projects-section {
  max-width: none;
  background: var(--paper-deep);
}

.projects-section > * {
  max-width: calc(var(--max-width) - 2 * var(--page-pad));
  margin-right: auto;
  margin-left: auto;
}

.sidis-feature {
  display: grid;
  margin-bottom: clamp(4rem, 8vw, 7rem);
  padding: clamp(2rem, 4vw, 4rem) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  grid-template-columns: minmax(0, 0.85fr) minmax(28rem, 1.15fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
}

.sidis-kicker {
  margin: 0 0 1rem;
  color: var(--signal);
  font-family: "DM Mono", monospace;
  font-size: 0.68rem;
  font-weight: 500;
  text-transform: uppercase;
}

.sidis-copy h3 {
  margin: 0;
  font-size: clamp(2.8rem, 5.5vw, 5.5rem);
  font-weight: 500;
  line-height: 0.95;
}

.sidis-lead {
  max-width: 43rem;
  margin: 2rem 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.sidis-contribution {
  margin: 2rem 0;
  padding: 0.25rem 0 0.25rem 1.25rem;
  border-left: 3px solid var(--signal);
}

.sidis-contribution span {
  color: var(--teal);
  font-family: "DM Mono", monospace;
  font-size: 0.65rem;
  font-weight: 500;
  text-transform: uppercase;
}

.sidis-contribution p {
  margin: 0.5rem 0 0;
  font-weight: 600;
  line-height: 1.55;
}

.sidis-capabilities {
  display: grid;
  margin: 2.5rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  grid-template-columns: repeat(3, 1fr);
}

.sidis-capabilities div {
  display: flex;
  min-width: 0;
  padding: 1rem 0.9rem;
  border-right: 1px solid var(--line);
  flex-direction: column;
}

.sidis-capabilities div:first-child {
  padding-left: 0;
}

.sidis-capabilities div:last-child {
  padding-right: 0;
  border-right: 0;
}

.sidis-capabilities strong {
  font-size: 0.78rem;
}

.sidis-capabilities span {
  margin-top: 0.3rem;
  color: var(--muted);
  font-size: 0.68rem;
  line-height: 1.45;
}

.source-link {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  padding-bottom: 0.2rem;
  border-bottom: 1px solid currentColor;
  font-weight: 700;
}

.source-link:hover {
  color: var(--teal);
}

.sidis-source {
  display: block;
  max-width: 44rem;
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.64rem;
  line-height: 1.5;
}

.sidis-visual {
  position: relative;
  overflow: hidden;
  min-height: 39rem;
  padding: clamp(1.25rem, 3vw, 2.25rem);
  color: var(--white);
  background:
    linear-gradient(rgba(119, 198, 185, 0.08) 1px, transparent 1px) 0 0 / 3rem 3rem,
    linear-gradient(90deg, rgba(119, 198, 185, 0.08) 1px, transparent 1px) 0 0 / 3rem 3rem,
    var(--teal-dark);
}

.sidis-visual::before {
  position: absolute;
  top: -4rem;
  right: -4rem;
  width: 13rem;
  height: 13rem;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 50%;
  content: "";
}

.sidis-visual-header {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
  font-family: "DM Mono", monospace;
  font-size: 0.68rem;
  text-transform: uppercase;
}

.sidis-visual-header span:first-child {
  color: #77c6b9;
  font-weight: 500;
}

.diagnostic-map {
  position: relative;
  display: grid;
  min-height: 29rem;
  padding: 2rem 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: repeat(3, 1fr);
  gap: 1.25rem;
  align-items: center;
}

.diagnostic-map::before,
.diagnostic-map::after {
  position: absolute;
  z-index: 0;
  background: rgba(119, 198, 185, 0.5);
  content: "";
}

.diagnostic-map::before {
  top: 50%;
  left: 12%;
  width: 76%;
  height: 1px;
}

.diagnostic-map::after {
  top: 12%;
  left: 50%;
  width: 1px;
  height: 76%;
}

.diagnostic-node,
.diagnostic-core {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: 4.5rem;
  padding: 0.7rem;
  place-items: center;
  text-align: center;
}

.diagnostic-node {
  border: 1px solid rgba(255, 255, 255, 0.38);
  color: rgba(255, 255, 255, 0.8);
  background: var(--teal-dark);
  font-family: "DM Mono", monospace;
  font-size: 0.63rem;
  line-height: 1.35;
}

.diagnostic-node::before {
  position: absolute;
  top: -0.3rem;
  left: -0.3rem;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: #77c6b9;
  content: "";
}

.node-control { grid-area: 1 / 1; }
.node-frontend { grid-area: 1 / 2; }
.node-interlocking { grid-area: 1 / 3; }
.node-etcs { grid-area: 3 / 1; }
.node-network { grid-area: 3 / 3; }

.diagnostic-core {
  min-height: 8.5rem;
  border: 0.6rem solid rgba(255, 255, 255, 0.15);
  color: var(--contrast-ink);
  background: #dbece6;
  grid-area: 2 / 2;
  align-content: center;
}

.diagnostic-core span,
.diagnostic-core small {
  color: var(--teal);
  font-family: "DM Mono", monospace;
  font-size: 0.58rem;
  text-transform: uppercase;
}

.diagnostic-core strong {
  margin: 0.2rem 0;
  font-size: 1.1rem;
}

.sidis-dataflow {
  display: flex;
  min-height: 2.8rem;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0.8rem;
  color: var(--contrast-ink);
  background: var(--signal);
  font-family: "DM Mono", monospace;
  font-size: 0.58rem;
  font-weight: 500;
  text-transform: uppercase;
}

.sidis-dataflow i {
  width: 1.5rem;
  height: 1px;
  background: rgba(23, 33, 31, 0.6);
}

.sidis-dataflow i::after {
  display: block;
  width: 0.35rem;
  height: 0.35rem;
  margin-top: -0.18rem;
  margin-left: auto;
  border-top: 1px solid var(--contrast-ink);
  border-right: 1px solid var(--contrast-ink);
  content: "";
  transform: rotate(45deg);
}

.sidis-gallery {
  margin-bottom: clamp(5rem, 9vw, 8rem);
  padding-top: clamp(3rem, 6vw, 5rem);
  border-top: 1px solid var(--line);
}

.sidis-gallery-heading {
  display: grid;
  margin-bottom: 2.5rem;
  grid-template-columns: minmax(0, 1.2fr) minmax(18rem, 0.8fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: end;
}

.sidis-gallery-heading h3 {
  max-width: 18ch;
  margin: 0;
  font-size: clamp(2rem, 4.5vw, 4rem);
  font-weight: 500;
  line-height: 1.05;
}

.sidis-gallery-heading > p {
  max-width: 39rem;
  margin: 0;
  color: var(--muted);
}

.sidis-gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
}

.sidis-shot {
  min-width: 0;
  margin: 0;
}

.sidis-shot-featured {
  grid-column: 1 / -1;
}

.sidis-shot > a {
  position: relative;
  display: block;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--contrast-ink);
}

.sidis-shot img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 48 / 23;
  object-fit: cover;
  transition: transform 350ms ease;
}

.sidis-shot > a:hover img,
.sidis-shot > a:focus-visible img {
  transform: scale(1.015);
}

.sidis-shot > a:focus-visible {
  outline: 3px solid var(--signal);
  outline-offset: 3px;
}

.shot-expand {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  display: grid;
  width: 2.5rem;
  height: 2.5rem;
  place-items: center;
  color: var(--white);
  background: rgba(23, 33, 31, 0.9);
  font-size: 1rem;
}

.sidis-shot figcaption {
  display: grid;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
  grid-template-columns: 8rem minmax(0, 1fr);
  gap: 0.35rem 1rem;
}

.sidis-shot figcaption > span {
  color: var(--signal);
  font-family: "DM Mono", monospace;
  font-size: 0.65rem;
  font-weight: 500;
  text-transform: uppercase;
  grid-row: 1 / 3;
}

.sidis-shot figcaption strong {
  font-size: 0.85rem;
}

.sidis-shot figcaption small {
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1.5;
}

.project {
  display: grid;
  min-height: 24rem;
  padding: 2.5rem 0;
  border-top: 1px solid var(--line);
  grid-template-columns: minmax(9rem, 0.5fr) 1.2fr 0.8fr;
  gap: 2rem;
}

.project > * {
  min-width: 0;
}

.project:last-child {
  border-bottom: 1px solid var(--line);
}

.project-meta {
  display: flex;
  color: var(--muted);
  font-size: 0.65rem;
  flex-direction: column;
  gap: 0.35rem;
}

.project-meta span:first-child {
  color: var(--signal);
}

.project-main h3 {
  max-width: 18ch;
  margin: 0 0 1.5rem;
  font-size: clamp(2rem, 4vw, 3.6rem);
  font-weight: 500;
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.project-main > p {
  max-width: 39rem;
  color: var(--muted);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 2rem;
}

.tags span {
  padding: 0.3rem 0.7rem;
  border: 1px solid var(--line);
  font-size: 0.72rem;
}

.project-reference {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
  padding-bottom: 0.15rem;
  border-bottom: 1px solid currentColor;
  color: var(--teal);
  font-size: 0.75rem;
  font-weight: 700;
}

.project-reference:hover {
  color: var(--signal);
}

.project-reference-note {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 1.5rem 0 0;
  color: var(--muted);
  font-family: "DM Mono", monospace;
  font-size: 0.62rem;
}

.project-reference-note::before {
  width: 0.45rem;
  height: 0.45rem;
  border: 1px solid currentColor;
  border-radius: 50%;
  content: "";
  flex: 0 0 auto;
}

.project-visual {
  position: relative;
  overflow: hidden;
  width: min(100%, 19rem);
  aspect-ratio: 1;
  justify-self: end;
  align-self: center;
}

.project-visual-label {
  position: absolute;
  z-index: 3;
  top: 1.25rem;
  right: 1.25rem;
  left: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: "DM Mono", monospace;
  font-size: 0.62rem;
}

.project-visual-label strong {
  font-size: 0.72rem;
}

.project-visual-label span {
  opacity: 0.65;
}

.project-visual-il {
  color: var(--white);
  background:
    linear-gradient(rgba(119, 198, 185, 0.08) 1px, transparent 1px) 0 0 / 2rem 2rem,
    linear-gradient(90deg, rgba(119, 198, 185, 0.08) 1px, transparent 1px) 0 0 / 2rem 2rem,
    var(--contrast-ink);
}

.interlocking-graphic {
  position: absolute;
  inset: 23% 9% 9%;
}

.track {
  position: absolute;
  left: 4%;
  display: block;
  width: 92%;
  height: 3px;
  background: rgba(255, 255, 255, 0.75);
  transform-origin: left;
}

.track::after {
  position: absolute;
  top: 7px;
  left: 0;
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, 0.28);
  content: "";
}

.track-main {
  top: 48%;
}

.track-branch-one {
  top: 48%;
  left: 43%;
  width: 54%;
  transform: rotate(-24deg);
}

.track-branch-two {
  top: 48%;
  left: 43%;
  width: 54%;
  transform: rotate(24deg);
}

.signal {
  position: absolute;
  z-index: 2;
  width: 0.8rem;
  height: 0.8rem;
  border: 3px solid var(--contrast-ink);
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.65);
}

.signal::after {
  position: absolute;
  top: 0.55rem;
  left: 0.18rem;
  width: 1px;
  height: 1.1rem;
  background: rgba(255, 255, 255, 0.7);
  content: "";
}

.signal-one { top: 36%; left: 14%; }
.signal-two { top: 58%; right: 12%; background: #77c6b9; }

.axle {
  position: absolute;
  z-index: 2;
  width: 0.5rem;
  height: 0.5rem;
  border: 2px solid #77c6b9;
  border-radius: 50%;
  background: var(--contrast-ink);
}

.axle-one { top: 46%; left: 36%; }
.axle-two { top: 46%; left: 56%; }

.diagnostic-pulse {
  position: absolute;
  right: 2%;
  bottom: 2%;
  display: flex;
  width: 42%;
  height: 24%;
  align-items: flex-end;
  padding: 0.6rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  gap: 0.35rem;
}

.diagnostic-pulse b {
  display: block;
  width: 22%;
  height: 35%;
  background: #77c6b9;
}

.diagnostic-pulse b:nth-child(2) { height: 72%; }
.diagnostic-pulse b:nth-child(3) { height: 50%; background: var(--signal); }

.project-visual-transit {
  color: var(--contrast-ink);
  background: #dbece6;
}

.project-visual-transit::before {
  position: absolute;
  right: -18%;
  bottom: -18%;
  width: 70%;
  aspect-ratio: 1;
  border: 1px solid rgba(12, 96, 88, 0.25);
  border-radius: 50%;
  content: "";
}

.transit-graphic {
  position: absolute;
  inset: 25% 10% 9%;
}

.transit-line {
  position: absolute;
  top: 50%;
  left: -8%;
  display: block;
  width: 116%;
  height: 4px;
  background: var(--teal);
  transform: rotate(-18deg);
}

.station {
  position: absolute;
  z-index: 1;
  width: 0.85rem;
  height: 0.85rem;
  border: 3px solid var(--teal);
  border-radius: 50%;
  background: #dbece6;
}

.station-one { top: 64%; left: 3%; }
.station-two { top: 55%; left: 25%; }
.station-three { top: 45%; left: 48%; background: var(--signal); border-color: var(--signal); }
.station-four { top: 35%; left: 70%; }
.station-five { top: 25%; right: 2%; }

.transit-hub {
  position: absolute;
  top: 2%;
  left: 4%;
  display: flex;
  padding: 0.55rem;
  color: var(--white);
  background: var(--contrast-ink);
  gap: 0.3rem;
}

.transit-hub b {
  display: grid;
  width: 1.35rem;
  height: 1.35rem;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.25);
  font-family: "DM Mono", monospace;
  font-size: 0.45rem;
}

.transit-unit {
  position: absolute;
  right: 8%;
  bottom: 1%;
  display: flex;
  width: 38%;
  height: 21%;
  border: 2px solid var(--teal);
  background: #dbece6;
  gap: 8%;
  align-items: center;
  justify-content: center;
}

.transit-unit::before,
.transit-unit::after {
  position: absolute;
  bottom: -0.35rem;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--contrast-ink);
  content: "";
}

.transit-unit::before { left: 18%; }
.transit-unit::after { right: 18%; }

.transit-unit i {
  width: 24%;
  height: 38%;
  background: var(--teal);
}

.project-symbol {
  position: relative;
  display: grid;
  width: min(100%, 19rem);
  aspect-ratio: 1;
  place-items: center;
  justify-self: end;
  align-self: center;
  color: var(--white);
  background: var(--teal);
  font-family: "DM Mono", monospace;
  font-size: clamp(1.4rem, 3vw, 2.5rem);
}

.project-symbol::before,
.project-symbol::after {
  position: absolute;
  background: rgba(255, 255, 255, 0.55);
  content: "";
}

.project-symbol::before {
  width: 70%;
  height: 2px;
}

.project-symbol::after {
  width: 2px;
  height: 70%;
}

.project-symbol-ui {
  display: flex;
  padding: 18%;
  background: var(--contrast-ink);
  flex-direction: column;
  gap: 12%;
  justify-content: center;
}

.project-symbol-ui::before,
.project-symbol-ui::after {
  display: none;
}

.project-symbol-ui i {
  display: block;
  width: 100%;
  height: 15%;
  border: 1px solid rgba(255, 255, 255, 0.55);
}

.project-symbol-ui i:nth-child(2) {
  width: 72%;
  background: var(--signal);
  border: 0;
}

.project-symbol-route {
  overflow: hidden;
  background: var(--signal);
}

.project-symbol-route::before,
.project-symbol-route::after {
  display: none;
}

.project-symbol-route i {
  position: absolute;
  width: 130%;
  height: 35%;
  border: 3px solid var(--white);
  border-radius: 50%;
  transform: rotate(-22deg);
}

.project-symbol-route i:last-child {
  width: 80%;
  height: 20%;
  border-width: 2px;
}

.contact-section {
  position: relative;
  overflow: hidden;
  padding: clamp(5rem, 10vw, 9rem) var(--page-pad);
  color: var(--white);
  background: var(--contrast-ink);
}

.contact-inner {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin: 0 auto;
}

.contact-section .section-index {
  color: #77c6b9;
}

.contact-section h2 {
  max-width: 18ch;
  margin: 2rem 0;
  font-size: clamp(2.8rem, 7vw, 6.5rem);
  font-weight: 500;
  line-height: 1;
}

.contact-section p:not(.section-index) {
  max-width: 39rem;
  color: rgba(255, 255, 255, 0.65);
}

.contact-options {
  max-width: 58rem;
  margin-top: 2.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.contact-option {
  display: grid;
  min-height: 6rem;
  padding: 1.2rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  grid-template-columns: 7rem minmax(13rem, 1.15fr) minmax(12rem, 0.85fr) 2rem;
  gap: 1rem;
  align-items: center;
  transition: color 180ms ease, background-color 180ms ease, padding 180ms ease;
}

.contact-option:focus-visible {
  padding-right: 1.25rem;
  padding-left: 1.25rem;
  color: var(--contrast-ink);
  background: var(--white);
  outline: none;
}

.contact-type {
  color: #77c6b9;
  font-family: "DM Mono", monospace;
  font-size: 0.65rem;
  font-weight: 500;
  text-transform: uppercase;
}

.contact-option:focus-visible .contact-type {
  color: var(--teal);
}

.contact-option strong {
  min-width: 0;
  font-size: clamp(0.9rem, 1.5vw, 1.15rem);
  overflow-wrap: anywhere;
}

.contact-option small {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.7rem;
  line-height: 1.45;
}

.contact-option:focus-visible small {
  color: var(--muted);
}

@media (hover: hover) and (pointer: fine) {
  .contact-option:hover {
    padding-right: 1.25rem;
    padding-left: 1.25rem;
    color: var(--contrast-ink);
    background: var(--white);
  }

  .contact-option:hover .contact-type {
    color: var(--teal);
  }

  .contact-option:hover small {
    color: var(--muted);
  }
}

.contact-arrow {
  justify-self: end;
  font-size: 1.15rem;
}

.button-light {
  min-width: 13rem;
  margin-top: 1.5rem;
  color: var(--contrast-ink);
  background: var(--white);
}

.contact-note {
  display: block;
  margin-top: 1rem;
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.6rem;
}

.contact-track {
  position: absolute;
  right: -8%;
  bottom: -30%;
  width: 48vw;
  min-width: 30rem;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 50%;
}

.contact-track::before,
.contact-track::after {
  position: absolute;
  inset: 12%;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: inherit;
  content: "";
}

.contact-track::after {
  inset: 24%;
}

.contact-track span {
  position: absolute;
  top: 7%;
  left: 25%;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: var(--signal);
}

.footer {
  display: flex;
  min-height: 7rem;
  align-items: center;
  justify-content: space-between;
  padding: 1rem var(--page-pad);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.7);
  background: var(--contrast-ink);
  font-size: 0.8rem;
}

.scroll-top {
  position: fixed;
  z-index: 45;
  right: clamp(1rem, 2.5vw, 2.5rem);
  bottom: max(clamp(1rem, 2.5vw, 2.5rem), calc(env(safe-area-inset-bottom) + 0.75rem));
  display: grid;
  width: 3.25rem;
  height: 3.25rem;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: var(--white);
  background: var(--teal);
  font-size: 1.25rem;
  opacity: 0;
  pointer-events: none;
  transform: translateY(0.75rem);
  transition: opacity 180ms ease, transform 180ms ease, background-color 180ms ease;
}

.scroll-top.visible,
.scroll-top:focus-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.scroll-top:hover {
  background: var(--teal-dark);
}

.scroll-top:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 3px;
}

.footer .brand {
  color: var(--white);
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 600ms ease, transform 600ms ease;
}

.reveal[data-delay="1"] { transition-delay: 100ms; }
.reveal[data-delay="2"] { transition-delay: 180ms; }
.reveal[data-delay="3"] { transition-delay: 260ms; }

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 960px) {
  .hero {
    min-height: auto;
    grid-template-columns: 1fr 0.8fr;
    padding-top: 8rem;
  }

  .hero h1 {
    font-size: clamp(3.7rem, 10vw, 6rem);
  }

  .portrait-frame {
    width: 100%;
  }

  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .project {
    grid-template-columns: 0.35fr 1.1fr 0.7fr;
  }

  .sidis-feature {
    grid-template-columns: 1fr;
  }

  .sidis-visual {
    min-height: 36rem;
  }
}

@media (max-width: 760px) {
  .site-header {
    height: calc(4.5rem + env(safe-area-inset-top));
    padding-top: env(safe-area-inset-top);
    padding-right: max(var(--page-pad), env(safe-area-inset-right));
    padding-left: max(var(--page-pad), env(safe-area-inset-left));
  }

  .menu-toggle {
    position: relative;
    z-index: 2;
    display: block;
  }

  .menu-open .menu-toggle span:first-child {
    transform: translateY(4px) rotate(45deg);
  }

  .menu-open .menu-toggle span:nth-child(2) {
    transform: translateY(-2px) rotate(-45deg);
  }

  .navigation {
    position: fixed;
    inset: 0;
    display: flex;
    min-height: 100dvh;
    overflow-y: auto;
    padding: calc(7rem + env(safe-area-inset-top)) max(var(--page-pad), env(safe-area-inset-right)) calc(3rem + env(safe-area-inset-bottom)) max(var(--page-pad), env(safe-area-inset-left));
    background: var(--paper);
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    font-size: 1.65rem;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-1rem);
    transition: opacity 180ms ease, transform 180ms ease;
  }

  .menu-open .navigation {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-cta {
    margin-top: 1rem;
  }

  .language-switch {
    margin-top: 1rem;
  }

  .hero {
    display: flex;
    min-height: auto;
    padding-top: calc(7.5rem + env(safe-area-inset-top));
    flex-direction: column;
    align-items: stretch;
  }

  .hero h1 {
    max-width: 100%;
    font-size: clamp(3.2rem, 16vw, 5rem);
    overflow-wrap: anywhere;
  }

  .hero-statement {
    font-size: 1.7rem;
  }

  .hero-visual {
    width: min(88%, 24rem);
    margin: 2rem auto;
    align-self: center;
  }

  .portrait-label {
    right: -1rem;
  }

  .hero-meta {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .hero-meta div {
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--line);
  }

  .profile-section,
  .section-heading {
    grid-template-columns: 1fr;
  }

  .profile-details {
    grid-template-columns: 1fr;
  }

  .timeline::before {
    left: 0.45rem;
  }

  .timeline-item {
    grid-template-columns: 2rem 1fr;
  }

  .timeline-date {
    grid-column: 2;
    margin-bottom: 0.8rem;
  }

  .timeline-marker {
    grid-row: 1 / 3;
  }

  .timeline-content {
    grid-column: 2;
  }

  .languages {
    grid-template-columns: 1fr 1fr;
  }

  .languages > span {
    grid-column: 1 / -1;
  }

  .project {
    min-height: 0;
    grid-template-columns: 1fr;
  }

  .sidis-capabilities {
    grid-template-columns: 1fr;
  }

  .sidis-gallery-heading,
  .sidis-gallery-grid {
    grid-template-columns: 1fr;
  }

  .sidis-shot-featured {
    grid-column: auto;
  }

  .sidis-shot figcaption {
    grid-template-columns: 1fr;
  }

  .sidis-shot figcaption > span {
    grid-row: auto;
  }

  .shot-expand {
    right: 0.6rem;
    bottom: 0.6rem;
    width: 2.2rem;
    height: 2.2rem;
  }

  .sidis-capabilities div,
  .sidis-capabilities div:first-child,
  .sidis-capabilities div:last-child {
    padding: 0.9rem 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .sidis-capabilities div:last-child {
    border-bottom: 0;
  }

  .sidis-visual {
    min-height: 31rem;
  }

  .diagnostic-map {
    min-height: 22rem;
    gap: 0.65rem;
  }

  .diagnostic-node {
    min-height: 3.8rem;
    padding: 0.45rem;
    font-size: 0.52rem;
  }

  .diagnostic-core {
    min-height: 6.8rem;
    padding: 0.4rem;
    border-width: 0.35rem;
  }

  .diagnostic-core strong {
    font-size: 0.82rem;
  }

  .project-symbol,
  .project-visual {
    width: min(65vw, 18rem);
    justify-self: start;
  }

  .footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 1.25rem;
    padding-top: 2rem;
    padding-right: max(var(--page-pad), env(safe-area-inset-right));
    padding-bottom: calc(2rem + env(safe-area-inset-bottom));
    padding-left: max(var(--page-pad), env(safe-area-inset-left));
  }

  .contact-section {
    padding-right: max(var(--page-pad), env(safe-area-inset-right));
    padding-bottom: calc(clamp(5rem, 10vw, 9rem) + env(safe-area-inset-bottom));
    padding-left: max(var(--page-pad), env(safe-area-inset-left));
  }

  .contact-track {
    right: -45%;
    bottom: -18%;
    opacity: 0.55;
  }

  .contact-track span {
    display: none;
  }

  .contact-option {
    position: relative;
    padding: 1.35rem 2.5rem 1.35rem 0;
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }

  .contact-option:focus-visible {
    padding-right: 2.5rem;
    padding-left: 0.75rem;
  }

  .contact-arrow {
    position: absolute;
    top: 50%;
    right: 0.75rem;
    transform: translateY(-50%);
  }
}

@media (max-width: 480px) {
  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .skills-grid {
    grid-template-columns: 1fr;
  }

  .skill-group {
    min-height: 19rem;
  }

  .languages {
    grid-template-columns: 1fr;
  }

  .languages > span {
    grid-column: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}