:root {
  --ink: #101312;
  --paper: #edf0ed;
  --white: #fbfcfa;
  --muted: #626866;
  --line: #b9bfbc;
  --teal: #4f9894;
  --coral: #f0643f;
  --acid: #edf1e9;
  --yellow: #d4d9d5;
  --panel: #dce1de;
}

* {
  box-sizing: border-box;
}

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

body {
  position: relative;
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Arial, "Microsoft YaHei", sans-serif;
  letter-spacing: 0;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  z-index: 100;
  inset: 0;
  pointer-events: none;
  opacity: 0.045;
  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='.86' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.72'/%3E%3C/svg%3E");
  background-size: 180px 180px;
  mix-blend-mode: multiply;
}

button,
a {
  font: inherit;
}

button {
  color: inherit;
}

a {
  color: inherit;
}

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

.site-header {
  position: fixed;
  z-index: 50;
  top: 0;
  left: 0;
  width: 100%;
  height: 68px;
  padding: 0 28px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  color: var(--ink);
  border-bottom: 1px solid rgba(16, 19, 18, 0.22);
  transition:
    color 360ms ease,
    background 360ms ease,
    border-color 360ms ease,
    backdrop-filter 360ms ease;
}

.site-header::after {
  content: "";
  position: absolute;
  left: -140px;
  bottom: -1px;
  width: 120px;
  height: 1px;
  pointer-events: none;
  background: var(--coral);
  box-shadow: 0 0 8px rgba(255, 107, 69, 0.8), 0 0 20px rgba(255, 107, 69, 0.28);
  animation: header-light 7s linear infinite;
}

.site-header.is-solid {
  color: var(--ink);
  background: rgba(241, 244, 242, 0.92);
  border-color: var(--line);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  width: max-content;
  align-items: baseline;
  gap: 10px;
  text-decoration: none;
}

.brand-mark {
  font-size: 20px;
  font-weight: 900;
}

.brand-role,
.engine-status {
  font-size: 10px;
  font-weight: 700;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-nav a {
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--teal);
}

.header-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 18px;
}

.engine-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.engine-status i {
  width: 8px;
  height: 8px;
  background: var(--coral);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(255, 107, 69, 0.12);
  animation: status-light 1.8s ease-in-out infinite;
}

.site-header.is-solid .engine-status i {
  background: var(--teal);
  box-shadow: none;
}

.icon-button {
  width: 36px;
  height: 36px;
  padding: 0;
  display: grid;
  place-items: center;
  color: currentColor;
  background: transparent;
  border: 1px solid currentColor;
  border-radius: 50%;
  cursor: pointer;
}

.icon-button:hover,
.icon-button:focus-visible {
  color: var(--ink);
  background: var(--acid);
  border-color: var(--acid);
}

.section-shell {
  width: min(1220px, calc(100% - 64px));
  margin: 0 auto;
}

.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  color: var(--ink);
  background: #f1f3f0;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  z-index: 2;
  pointer-events: none;
}

.hero::before {
  top: 21%;
  left: -48vw;
  width: 38vw;
  height: 1px;
  background: rgba(16, 19, 18, 0.74);
  box-shadow:
    0 0 9px rgba(16, 19, 18, 0.16),
    0 0 28px rgba(16, 19, 18, 0.08);
  transform: rotate(-7deg);
  animation: hero-light 8.5s ease-in-out infinite;
}

.hero::after {
  top: 20%;
  right: 7%;
  width: 1px;
  height: 20%;
  background: var(--coral);
  box-shadow:
    0 0 9px rgba(240, 100, 63, 0.42),
    0 0 24px rgba(240, 100, 63, 0.18);
  opacity: 0.56;
  animation: vertical-light 3.4s ease-in-out infinite;
}

.hero-video,
.hero-shade,
.physics-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-video {
  object-fit: cover;
  object-position: center 42%;
  opacity: 0.32;
  filter: grayscale(1) contrast(1.42) brightness(1.3);
  mix-blend-mode: multiply;
  transform: scale(1.018);
}

.hero-shade {
  z-index: 1;
  background: rgba(244, 246, 243, 0.24);
}

.physics-canvas {
  z-index: 2;
  opacity: 0.46;
  pointer-events: none;
  mix-blend-mode: multiply;
}

.hero-route {
  position: absolute;
  z-index: 5;
  top: 31%;
  left: 28px;
  width: 126px;
  display: grid;
}

.hero-route::before {
  content: "";
  position: absolute;
  top: 9px;
  left: 7px;
  width: 1px;
  height: calc(100% - 18px);
  background: rgba(16, 19, 18, 0.34);
}

.hero-route::after {
  content: "";
  position: absolute;
  top: 9px;
  left: 7px;
  width: 1px;
  height: 25%;
  background: var(--coral);
  box-shadow: 0 0 10px rgba(240, 100, 63, 0.38);
}

.hero-route a {
  position: relative;
  min-height: 44px;
  padding-left: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(16, 19, 18, 0.55);
  text-decoration: none;
  font-size: 10px;
  transition:
    color 320ms ease,
    transform 520ms cubic-bezier(0.2, 0.72, 0.2, 1);
}

.hero-route a::before {
  content: "";
  position: absolute;
  left: 3px;
  width: 9px;
  height: 9px;
  background: #f1f3f0;
  border: 1px solid currentColor;
  border-radius: 50%;
  transition:
    background-color 320ms ease,
    border-color 320ms ease,
    box-shadow 420ms ease,
    transform 420ms cubic-bezier(0.2, 0.72, 0.2, 1);
}

.hero-route span {
  width: 12px;
  color: currentColor;
  font-size: 9px;
  font-weight: 800;
}

.hero-route strong {
  font-size: 10px;
}

.hero-route a:hover,
.hero-route a:focus-visible,
.hero-route a.is-active {
  color: var(--ink);
  transform: translateX(4px);
}

.hero-route a.is-active::before {
  background: var(--coral);
  border-color: var(--coral);
  box-shadow:
    0 0 0 4px rgba(240, 100, 63, 0.1),
    0 0 13px rgba(240, 100, 63, 0.3);
  transform: scale(1.08);
}

.hero-content {
  position: relative;
  z-index: 3;
  width: min(1220px, calc(100% - 64px));
  margin: 0 auto;
  padding: 160px 0 112px 104px;
  pointer-events: none;
}

.hero-content a,
.hero-content button {
  pointer-events: auto;
}

.eyebrow,
.section-index,
.project-number,
.signal-kicker,
.experience-date {
  margin: 0;
  font-size: 11px;
  line-height: 1.2;
  font-weight: 800;
  text-transform: uppercase;
}

.eyebrow {
  margin-bottom: 18px;
  color: var(--ink);
  text-shadow: 0 0 16px rgba(251, 252, 250, 0.9);
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: 72px;
  line-height: 0.98;
  font-weight: 900;
  text-shadow: 0 0 28px rgba(251, 252, 250, 0.88);
}

.hero-intro {
  max-width: 680px;
  margin: 28px 0 0;
  font-size: 17px;
  line-height: 1.75;
  color: rgba(16, 19, 18, 0.76);
  text-shadow: 0 0 18px rgba(251, 252, 250, 0.96);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 34px;
}

.command-button {
  position: relative;
  min-height: 46px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--white);
  border-radius: 0;
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition:
    color 180ms ease,
    background 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.command-button--light {
  color: var(--white);
  background: var(--ink);
  border-color: var(--ink);
}

.command-button--ghost {
  color: var(--ink);
  background: rgba(251, 252, 250, 0.34);
  border-color: var(--ink);
  backdrop-filter: blur(8px);
}

.command-button:hover,
.command-button:focus-visible {
  color: var(--white);
  background: var(--coral);
  border-color: var(--coral);
  box-shadow:
    0 0 0 1px rgba(255, 107, 69, 0.22),
    0 0 24px rgba(255, 107, 69, 0.24);
}

.hero-meta {
  position: absolute;
  z-index: 4;
  right: 28px;
  bottom: 24px;
  display: flex;
  gap: 22px;
  font-size: 10px;
  font-weight: 800;
  pointer-events: none;
}

.next-section {
  position: absolute;
  z-index: 4;
  left: 28px;
  bottom: 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--ink);
  font-size: 11px;
  font-weight: 800;
  text-decoration: none;
}

.next-section span:last-child {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: var(--white);
  background: var(--ink);
  border-radius: 50%;
}

.work-section {
  padding: 112px 0 120px;
}

.section-heading-row {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.75fr);
  gap: 80px;
  align-items: end;
  margin-bottom: 56px;
}

.section-index {
  margin-bottom: 18px;
  color: var(--teal);
}

.section-index--inverse {
  color: var(--acid);
}

.section-heading-row h2,
.showreel-heading h2,
.systems-heading h2,
.tools-intro h2,
.experience-grid h2,
.contact-layout h2 {
  margin: 0;
  font-size: 46px;
  line-height: 1.08;
}

.section-lead,
.systems-heading > p:last-child,
.tools-intro > p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
}

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

.project-card {
  min-width: 0;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 0;
  transition:
    border-color 420ms ease,
    box-shadow 620ms ease,
    transform 680ms cubic-bezier(0.2, 0.72, 0.2, 1),
    background-color 420ms ease;
}

.project-card:hover {
  border-color: rgba(16, 19, 18, 0.58);
  box-shadow:
    0 0 0 1px rgba(16, 19, 18, 0.08),
    0 22px 54px rgba(16, 19, 18, 0.09);
  transform: translateY(-5px);
}

.project-card--wide {
  grid-column: span 2;
  grid-template-columns: 1.25fr 0.75fr;
  grid-template-rows: auto;
}

.project-card--accent {
  background: #dfe3e0;
  border-color: var(--line);
}

.project-media {
  position: relative;
  width: 100%;
  min-height: 290px;
  padding: 0;
  overflow: hidden;
  background: var(--ink);
  border: 0;
  cursor: pointer;
}

.project-media::after {
  content: "";
  position: absolute;
  top: 48%;
  left: -84%;
  width: 72%;
  height: 2px;
  pointer-events: none;
  background: var(--white);
  box-shadow:
    0 0 10px rgba(248, 250, 247, 0.72),
    0 0 30px rgba(248, 250, 247, 0.28);
  opacity: 0;
  transform: rotate(-10deg);
  animation: media-light 8s ease-in-out infinite;
}

.project-card:nth-child(2) .project-media::after {
  animation-delay: -2s;
}

.project-card:nth-child(3) .project-media::after {
  animation-delay: -4s;
}

.project-card:nth-child(4) .project-media::after {
  animation-delay: -6s;
}

.project-card--wide .project-media {
  min-height: 430px;
}

.project-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.82) saturate(0.4) contrast(1.06);
  transition:
    transform 650ms cubic-bezier(0.2, 0.72, 0.2, 1),
    opacity 350ms ease,
    filter 650ms ease;
}

.project-media:hover img,
.project-media:focus-visible img {
  transform: scale(1.025);
  opacity: 0.82;
  filter: grayscale(0.08) saturate(0.88) contrast(1.02);
}

.media-action {
  position: absolute;
  right: 18px;
  bottom: 18px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: var(--ink);
  background: rgba(248, 250, 247, 0.92);
  border: 1px solid rgba(16, 19, 18, 0.8);
  border-radius: 0;
  font-size: 14px;
  transition:
    color 320ms ease,
    background-color 320ms ease,
    transform 520ms cubic-bezier(0.2, 0.72, 0.2, 1);
}

.project-media:hover .media-action,
.project-media:focus-visible .media-action {
  color: var(--white);
  background: var(--coral);
  transform: translate(-4px, -4px);
}

.project-copy {
  padding: 28px;
}

.project-number {
  color: #397a77;
}

.project-card--accent .project-number {
  color: #397a77;
}

.project-copy h3 {
  margin: 13px 0 14px;
  font-size: 26px;
  line-height: 1.2;
}

.project-copy > p:not(.project-number) {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}

.project-card--accent .project-copy > p:not(.project-number) {
  color: #39403e;
}

.tag-list,
.skill-line {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.tag-list {
  margin: 24px 0 28px;
}

.tag-list span,
.skill-line span {
  padding: 6px 9px;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  color: var(--ink);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 2px;
}

.project-card--accent .tag-list span {
  background: transparent;
  border-color: var(--line);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 0 4px;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid currentColor;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.text-link:hover,
.text-link:focus-visible {
  color: var(--teal);
}

.showreel-section {
  padding: 110px 0 0;
  color: var(--white);
  background: var(--ink);
}

.showreel-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 40px;
  margin-bottom: 44px;
}

.showreel-heading > p {
  margin: 0 0 5px;
  color: #aab3b0;
  font-size: 12px;
  font-weight: 700;
}

.showreel-frame {
  position: relative;
  width: 100%;
  background: #000000;
  box-shadow:
    inset 0 0 0 1px rgba(248, 250, 247, 0.16),
    0 0 38px rgba(248, 250, 247, 0.04);
}

.showreel-frame::before,
.showreel-frame::after {
  content: "";
  position: absolute;
  z-index: 2;
  width: 110px;
  height: 2px;
  pointer-events: none;
}

.showreel-frame::before {
  top: 0;
  left: -110px;
  background: var(--white);
  box-shadow: 0 0 12px rgba(248, 250, 247, 0.72);
  animation: frame-light 6.5s linear infinite;
}

.showreel-frame::after {
  right: -110px;
  bottom: 0;
  background: var(--coral);
  box-shadow: 0 0 12px rgba(255, 107, 69, 0.7);
  animation: frame-light-reverse 6.5s linear infinite;
}

.showreel-frame video {
  width: 100%;
  max-height: 760px;
  aspect-ratio: 853 / 240;
  object-fit: contain;
  margin: 0 auto;
  background: #000000;
  transition:
    opacity 260ms ease,
    filter 320ms ease,
    transform 420ms cubic-bezier(0.2, 0.72, 0.2, 1);
}

.showreel-frame.is-seeking video {
  opacity: 0.58;
  filter: grayscale(1) contrast(1.12);
  transform: scale(0.995);
}

.showreel-timeline {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}

.showreel-timeline button {
  position: relative;
  min-width: 0;
  padding: 18px 12px 22px;
  color: #bcc4c2;
  background: transparent;
  border: 0;
  border-left: 1px solid #3b4341;
  text-align: left;
  font-size: 12px;
  cursor: pointer;
  transition:
    color 320ms ease,
    background-color 320ms ease,
    transform 420ms cubic-bezier(0.2, 0.72, 0.2, 1);
}

.showreel-timeline button::before {
  content: "";
  position: absolute;
  top: 0;
  left: 12px;
  right: 12px;
  height: 1px;
  background: var(--coral);
  box-shadow: 0 0 12px rgba(255, 107, 69, 0.62);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 520ms cubic-bezier(0.2, 0.72, 0.2, 1);
}

.showreel-timeline button:last-child {
  border-right: 1px solid #3b4341;
}

.showreel-timeline button span {
  display: block;
  margin-bottom: 8px;
  color: #aeb6b3;
  font-size: 10px;
  font-weight: 800;
}

.showreel-timeline button:hover,
.showreel-timeline button:focus-visible,
.showreel-timeline button.is-active {
  color: var(--white);
  background: rgba(248, 250, 247, 0.045);
  transform: translateY(-2px);
}

.showreel-timeline button:hover span,
.showreel-timeline button:focus-visible span,
.showreel-timeline button.is-active span {
  color: var(--coral);
}

.showreel-timeline button:hover::before,
.showreel-timeline button:focus-visible::before,
.showreel-timeline button.is-active::before {
  transform: scaleX(1);
}

.systems-section {
  padding: 112px 0;
  background: #e2e5e2;
}

.systems-heading {
  display: grid;
  grid-template-columns: 0.55fr 1fr;
  gap: 18px 80px;
  align-items: end;
}

.systems-heading .section-index {
  grid-column: 1 / -1;
  color: var(--ink);
}

.systems-heading > p:last-child {
  color: #39403e;
}

.signal-path {
  --signal-progress: 10%;
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  margin-top: 70px;
  border-top: 2px solid var(--ink);
}

.signal-path::before {
  content: "";
  position: absolute;
  z-index: 1;
  top: -2px;
  left: 0;
  width: var(--signal-progress);
  height: 2px;
  pointer-events: none;
  background: var(--coral);
  box-shadow: 0 0 14px rgba(255, 107, 69, 0.48);
  transition: width 680ms cubic-bezier(0.2, 0.72, 0.2, 1);
}

.signal-path::after {
  content: "";
  position: absolute;
  top: -2px;
  left: -72px;
  width: 72px;
  height: 2px;
  pointer-events: none;
  background: var(--white);
  box-shadow:
    0 0 10px rgba(248, 250, 247, 0.9),
    0 0 22px rgba(248, 250, 247, 0.42);
  animation: signal-light 5.4s linear infinite;
}

.signal-node {
  position: relative;
  z-index: 2;
  min-width: 0;
  padding: 18px 14px 22px 0;
  display: grid;
  gap: 7px;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-right: 1px solid rgba(17, 23, 22, 0.3);
  text-align: left;
  cursor: pointer;
  transition:
    opacity 320ms ease,
    transform 520ms cubic-bezier(0.2, 0.72, 0.2, 1);
}

.signal-node span,
.signal-node small {
  font-size: 10px;
}

.signal-node strong {
  font-size: 13px;
  transition:
    color 320ms ease,
    transform 520ms cubic-bezier(0.2, 0.72, 0.2, 1);
}

.signal-node small {
  color: #4f5755;
  transition: opacity 320ms ease;
}

.signal-node::before {
  content: "";
  position: absolute;
  top: -8px;
  width: 14px;
  height: 14px;
  background: #e2e5e2;
  border: 2px solid var(--ink);
  border-radius: 50%;
  transition:
    background-color 320ms ease,
    border-color 320ms ease,
    box-shadow 520ms ease,
    transform 520ms cubic-bezier(0.2, 0.72, 0.2, 1);
}

.signal-node.is-active::before {
  background: var(--coral);
  box-shadow:
    0 0 0 4px rgba(255, 107, 69, 0.12),
    0 0 18px rgba(255, 107, 69, 0.52);
  transform: scale(1.12);
}

.signal-node:hover strong,
.signal-node:focus-visible strong,
.signal-node.is-active strong {
  color: #b93419;
  transform: translateX(4px);
}

.signal-node:not(.is-active) {
  opacity: 0.68;
}

.signal-node:hover,
.signal-node:focus-visible {
  opacity: 1;
}

.signal-detail {
  display: grid;
  grid-template-columns: 1.1fr 0.45fr 1fr;
  gap: 36px;
  align-items: end;
  margin-top: 48px;
  padding-top: 30px;
  border-top: 1px solid rgba(17, 23, 22, 0.3);
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
  transition:
    opacity 220ms ease,
    filter 300ms ease,
    transform 420ms cubic-bezier(0.2, 0.72, 0.2, 1);
}

.signal-detail.is-switching {
  opacity: 0;
  filter: blur(6px);
  transform: translateY(18px);
}

.signal-detail.is-settling > * {
  animation: signal-detail-enter 680ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.signal-detail.is-settling > *:nth-child(2) {
  animation-delay: 60ms;
}

.signal-detail.is-settling > *:nth-child(3),
.signal-detail.is-settling > *:nth-child(4) {
  animation-delay: 110ms;
}

.signal-bars {
  height: 120px;
  display: flex;
  align-items: flex-end;
  gap: 9px;
}

.signal-bars i {
  flex: 1;
  min-width: 7px;
  height: 34%;
  background: var(--ink);
  box-shadow: 0 0 10px rgba(17, 23, 22, 0.25);
  transform-origin: bottom;
  animation: signal 1.2s ease-in-out infinite alternate;
}

.signal-bars i:nth-child(2) {
  height: 78%;
  animation-delay: -0.4s;
}

.signal-bars i:nth-child(3) {
  height: 46%;
  animation-delay: -0.8s;
}

.signal-bars i:nth-child(4) {
  height: 92%;
  animation-delay: -0.2s;
}

.signal-bars i:nth-child(5) {
  height: 62%;
  animation-delay: -0.65s;
}

.signal-bars i:nth-child(6) {
  height: 38%;
  animation-delay: -0.95s;
}

.signal-bars i:nth-child(7) {
  height: 70%;
  animation-delay: -0.3s;
}

.signal-bars i:nth-child(8) {
  height: 52%;
  animation-delay: -0.75s;
}

@keyframes signal {
  to {
    transform: scaleY(0.42);
  }
}

.signal-kicker {
  align-self: start;
  padding-top: 5px;
}

.signal-detail h3 {
  margin: 0 0 12px;
  font-size: 24px;
}

.signal-detail > p:last-child {
  margin: 0;
  color: #39403e;
  font-size: 14px;
  line-height: 1.7;
}

.impact-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  color: var(--white);
  background: #171a19;
}

.impact-strip div {
  min-height: 180px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-right: 1px solid rgba(248, 250, 247, 0.18);
}

.impact-strip strong {
  color: var(--coral);
  font-size: 30px;
  line-height: 1;
}

.impact-strip span {
  font-size: 12px;
  font-weight: 700;
}

.tools-section {
  padding: 120px 0;
}

.tools-layout {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 90px;
}

.tools-intro {
  position: sticky;
  top: 110px;
  align-self: start;
}

.tools-intro > p:last-child {
  margin-top: 26px;
}

.tool-list {
  border-top: 1px solid var(--ink);
}

.tool-row {
  position: relative;
  min-height: 132px;
  padding: 24px 4px;
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 16px;
  align-items: start;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.tool-row::after {
  content: "";
  position: absolute;
  top: 16%;
  left: -2px;
  width: 2px;
  height: 68%;
  pointer-events: none;
  background: var(--coral);
  box-shadow: 0 0 12px rgba(255, 107, 69, 0.55);
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 220ms ease,
    transform 320ms ease;
}

a.tool-row:hover,
a.tool-row:focus-visible {
  background: var(--white);
}

a.tool-row:hover::after,
a.tool-row:focus-visible::after {
  opacity: 1;
  transform: translateY(0);
}

.tool-index {
  padding-top: 5px;
  color: var(--teal);
  font-size: 10px;
  font-weight: 800;
}

.tool-row strong {
  display: block;
  margin-bottom: 8px;
  font-size: 24px;
}

.tool-row small {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.tool-arrow {
  min-width: 38px;
  padding-top: 5px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 800;
  text-align: right;
}

.experience-section {
  padding: 110px 0;
  color: var(--white);
  background: var(--ink);
}

.experience-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.15fr 0.65fr;
  gap: 70px;
}

.experience-date {
  margin-bottom: 16px;
  color: var(--acid);
}

.experience-main h3 {
  margin: 0 0 18px;
  font-size: 28px;
}

.experience-main > p:not(.experience-date),
.education p {
  color: #b7c0bd;
  font-size: 14px;
  line-height: 1.75;
}

.skill-line {
  margin-top: 30px;
}

.skill-line span {
  color: var(--white);
  background: #242b29;
  border-color: #414a47;
}

.education p {
  margin: 0 0 26px;
}

.education strong {
  color: var(--white);
}

.contact-section {
  position: relative;
  min-height: 72svh;
  padding: 110px 0 44px;
  display: flex;
  color: var(--ink);
  background: #dfe3e0;
  overflow: hidden;
}

.contact-section::before {
  content: "";
  position: absolute;
  top: 14%;
  left: -40%;
  width: 34%;
  height: 2px;
  pointer-events: none;
  background: var(--coral);
  box-shadow:
    0 0 10px rgba(255, 107, 69, 0.72),
    0 0 32px rgba(255, 107, 69, 0.3);
  transform: rotate(-8deg);
  animation: contact-light 8s ease-in-out infinite;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto 1fr auto;
  gap: 28px 70px;
}

.contact-layout .section-index {
  grid-column: 1 / -1;
  color: #b93419;
}

.contact-layout h2 {
  align-self: start;
  font-size: 64px;
}

.contact-links {
  align-self: end;
  border-top: 1px solid rgba(16, 19, 18, 0.42);
}

.contact-links a {
  padding: 18px 0;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 16px;
  font-weight: 800;
  text-decoration: none;
  border-bottom: 1px solid rgba(16, 19, 18, 0.42);
}

.contact-links a:hover,
.contact-links a:focus-visible {
  color: #b93419;
}

.contact-meta {
  grid-column: 1 / -1;
  align-self: end;
  margin: 50px 0 0;
  font-size: 11px;
  font-weight: 700;
}

.motion-ready .motion-section .motion-item {
  opacity: 0;
  filter: blur(7px);
  transform: translateY(36px);
  transition:
    opacity 820ms cubic-bezier(0.16, 1, 0.3, 1),
    filter 880ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 980ms cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: calc(var(--motion-order, 0) * 54ms);
  will-change: opacity, filter, transform;
}

.motion-ready .motion-section.is-visible .motion-item {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
}

.motion-ready .motion-section .project-card.motion-item,
.motion-ready .motion-section .showreel-frame.motion-item {
  clip-path: inset(0 0 14% 0);
  transition:
    opacity 820ms cubic-bezier(0.16, 1, 0.3, 1),
    filter 880ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 980ms cubic-bezier(0.16, 1, 0.3, 1),
    clip-path 1100ms cubic-bezier(0.16, 1, 0.3, 1);
}

.motion-ready .motion-section.is-visible .project-card.motion-item,
.motion-ready .motion-section.is-visible .showreel-frame.motion-item {
  clip-path: inset(0 0 0 0);
}

.motion-ready .motion-section.is-current .section-index {
  color: var(--coral);
  transition: color 640ms ease;
}

.motion-ready .motion-section.is-current .section-index--inverse {
  color: var(--white);
}

@keyframes signal-detail-enter {
  from {
    opacity: 0;
    filter: blur(5px);
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
  }
}

@keyframes header-light {
  0% {
    transform: translateX(0);
    opacity: 0;
  }

  12%,
  76% {
    opacity: 1;
  }

  100% {
    transform: translateX(calc(100vw + 280px));
    opacity: 0;
  }
}

@keyframes status-light {
  0%,
  100% {
    box-shadow: 0 0 0 4px rgba(255, 107, 69, 0.1), 0 0 5px rgba(255, 107, 69, 0.18);
  }

  50% {
    box-shadow: 0 0 0 7px rgba(255, 107, 69, 0.03), 0 0 15px rgba(255, 107, 69, 0.62);
  }
}

@keyframes hero-light {
  0%,
  18% {
    left: -48vw;
    opacity: 0;
  }

  30% {
    opacity: 0.72;
  }

  68% {
    opacity: 0.38;
  }

  82%,
  100% {
    left: 112vw;
    opacity: 0;
  }
}

@keyframes vertical-light {
  0%,
  100% {
    opacity: 0.18;
    transform: scaleY(0.7) translateY(-12px);
  }

  50% {
    opacity: 0.68;
    transform: scaleY(1) translateY(18px);
  }
}

@keyframes media-light {
  0%,
  70% {
    left: -84%;
    opacity: 0;
  }

  75% {
    opacity: 0.72;
  }

  91% {
    opacity: 0.25;
  }

  100% {
    left: 120%;
    opacity: 0;
  }
}

@keyframes frame-light {
  from {
    left: -110px;
  }

  to {
    left: 100%;
  }
}

@keyframes frame-light-reverse {
  from {
    right: -110px;
  }

  to {
    right: 100%;
  }
}

@keyframes signal-light {
  0% {
    left: -72px;
    opacity: 0;
  }

  10%,
  90% {
    opacity: 1;
  }

  100% {
    left: 100%;
    opacity: 0;
  }
}

@keyframes signal-light-vertical {
  0% {
    top: -72px;
    opacity: 0;
  }

  10%,
  90% {
    opacity: 1;
  }

  100% {
    top: 100%;
    opacity: 0;
  }
}

@keyframes contact-light {
  0%,
  14% {
    left: -40%;
    opacity: 0;
  }

  28% {
    opacity: 0.72;
  }

  70% {
    opacity: 0.28;
  }

  84%,
  100% {
    left: 112%;
    opacity: 0;
  }
}

@media (max-width: 900px) {
  .site-header {
    grid-template-columns: 1fr auto;
    padding: 0 18px;
  }

  .site-nav,
  .engine-status {
    display: none;
  }

  .hero {
    min-height: 90svh;
  }

  .hero-content,
  .section-shell {
    width: min(100% - 36px, 680px);
  }

  .hero-content {
    padding: 130px 0 100px;
  }

  .hero-route {
    display: none;
  }

  .hero h1 {
    font-size: 50px;
  }

  .hero-intro {
    font-size: 15px;
  }

  .hero-meta {
    display: none;
  }

  .section-heading-row,
  .systems-heading,
  .tools-layout,
  .experience-grid,
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .section-heading-row h2,
  .showreel-heading h2,
  .systems-heading h2,
  .tools-intro h2,
  .experience-grid h2,
  .contact-layout h2 {
    font-size: 36px;
  }

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

  .project-card--wide {
    grid-column: auto;
    grid-template-columns: 1fr;
  }

  .project-card--wide .project-media,
  .project-media {
    min-height: 320px;
  }

  .showreel-heading {
    display: block;
  }

  .showreel-heading > p {
    margin-top: 18px;
  }

  .showreel-timeline {
    grid-template-columns: repeat(5, minmax(120px, 1fr));
    overflow-x: auto;
  }

  .systems-heading .section-index {
    grid-column: auto;
  }

  .signal-path {
    grid-template-columns: 1fr;
    border-top: 0;
    border-left: 2px solid var(--ink);
  }

  .signal-path::before {
    top: 0;
    left: -2px;
    width: 2px;
    height: var(--signal-progress);
    transition: height 680ms cubic-bezier(0.2, 0.72, 0.2, 1);
  }

  .signal-path::after {
    top: -72px;
    left: -2px;
    width: 2px;
    height: 72px;
    animation-name: signal-light-vertical;
  }

  .signal-node {
    padding: 13px 0 13px 24px;
    grid-template-columns: 34px 120px 1fr;
    align-items: center;
    border-right: 0;
    border-bottom: 1px solid rgba(17, 23, 22, 0.25);
  }

  .signal-node::before {
    top: auto;
    left: -8px;
  }

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

  .signal-bars {
    height: 80px;
  }

  .impact-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .impact-strip div {
    min-height: 150px;
    border-bottom: 1px solid rgba(17, 23, 22, 0.35);
  }

  .tools-intro {
    position: static;
  }

  .contact-layout .section-index,
  .contact-meta {
    grid-column: auto;
  }
}

@media (max-width: 560px) {
  .site-header {
    height: 60px;
  }

  .brand-role {
    display: none;
  }

  .hero-content {
    padding-top: 112px;
    padding-bottom: 160px;
  }

  .hero h1 {
    font-size: 42px;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .command-button {
    justify-content: center;
  }

  .next-section {
    left: 18px;
    display: none;
  }

  .work-section,
  .systems-section,
  .tools-section,
  .experience-section {
    padding-top: 86px;
    padding-bottom: 86px;
  }

  .project-card--wide .project-media,
  .project-media {
    min-height: 220px;
  }

  .project-copy {
    padding: 22px;
  }

  .project-copy h3 {
    font-size: 23px;
  }

  .showreel-section {
    padding-top: 84px;
  }

  .impact-strip {
    grid-template-columns: 1fr;
  }

  .impact-strip div {
    min-height: 120px;
  }

  .signal-node {
    grid-template-columns: 30px 100px 1fr;
  }

  .tool-row {
    grid-template-columns: 34px 1fr auto;
  }

  .contact-section {
    min-height: 620px;
  }

  .contact-layout h2 {
    font-size: 46px;
  }
}

/* Full-screen portfolio direction */
:root {
  --ink: #07100f;
  --paper: #e8eeeb;
  --white: #f8fbf9;
  --muted: #586462;
  --line: #aebbb7;
  --teal: #3da99f;
  --coral: #ff7048;
  --acid: #c9fff1;
  --yellow: #dce9e5;
  --panel: #d5dfdc;
}

main > section {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
  scroll-margin-top: 68px;
  scroll-snap-align: start;
}

main > section:not(.hero) {
  min-height: calc(100svh - 68px);
}

main > section:not(.hero)::after {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(
    112deg,
    transparent 36%,
    rgba(217, 255, 247, 0.03) 44%,
    rgba(217, 255, 247, 0.32) 49.5%,
    rgba(255, 112, 72, 0.12) 51%,
    transparent 58%
  );
  transform: translateX(-105%);
}

main > section:not(.hero).is-current::after {
  animation: module-sweep 1450ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

main > section:not(.hero) > * {
  position: relative;
  z-index: 1;
}

.site-header {
  height: 72px;
  color: var(--white);
  border-color: rgba(248, 251, 249, 0.24);
}

.site-header.is-solid {
  color: var(--white);
  background: rgba(5, 13, 13, 0.76);
  border-color: rgba(201, 255, 241, 0.16);
  backdrop-filter: blur(22px) saturate(1.2);
}

.site-header.is-solid .engine-status i {
  background: var(--acid);
  box-shadow: 0 0 16px rgba(201, 255, 241, 0.68);
}

.site-nav a {
  position: relative;
  color: rgba(248, 251, 249, 0.72);
}

.site-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--acid), var(--coral));
  box-shadow: 0 0 10px rgba(201, 255, 241, 0.48);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 420ms cubic-bezier(0.16, 1, 0.3, 1);
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--white);
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.hero {
  color: var(--white);
  background: #06100f;
}

.hero-video {
  opacity: 0.72;
  filter: grayscale(0.48) saturate(0.82) contrast(1.28) brightness(0.62);
  mix-blend-mode: normal;
  transform: scale(1.035);
  animation: hero-camera 18s ease-in-out infinite alternate;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(3, 10, 10, 0.97) 0%, rgba(3, 10, 10, 0.83) 32%, rgba(3, 10, 10, 0.2) 73%),
    linear-gradient(0deg, rgba(3, 10, 10, 0.9) 0%, transparent 46%, rgba(3, 10, 10, 0.36) 100%);
}

.physics-canvas {
  opacity: 0.38;
  mix-blend-mode: screen;
}

.hero::before {
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--acid) 42%, var(--white) 52%, var(--coral) 72%, transparent);
  box-shadow:
    0 0 16px rgba(201, 255, 241, 0.62),
    0 0 42px rgba(201, 255, 241, 0.22);
}

.hero::after {
  background: linear-gradient(180deg, transparent, var(--acid), var(--coral), transparent);
  box-shadow:
    0 0 14px rgba(201, 255, 241, 0.48),
    0 0 34px rgba(255, 112, 72, 0.2);
}

.hero-content {
  padding-bottom: 104px;
}

.eyebrow {
  color: var(--acid);
  text-shadow: 0 0 18px rgba(201, 255, 241, 0.34);
}

.hero h1 {
  max-width: 900px;
  color: var(--white);
  font-size: 82px;
  line-height: 0.94;
  background: linear-gradient(105deg, #ffffff 12%, #e8fff8 48%, #8de7d8 78%, #ffffff 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: none;
  animation: title-flow 8s ease-in-out infinite;
}

.hero-intro {
  color: rgba(235, 245, 241, 0.72);
  text-shadow: none;
}

.command-button--ghost {
  color: var(--white);
  background: rgba(248, 251, 249, 0.04);
  border-color: rgba(248, 251, 249, 0.56);
}

.hero-meta,
.next-section {
  color: rgba(248, 251, 249, 0.76);
}

.next-section span:last-child {
  color: var(--ink);
  background: linear-gradient(135deg, var(--white), var(--acid));
  box-shadow: 0 0 24px rgba(201, 255, 241, 0.18);
}

.hero-route {
  top: 25%;
}

.hero-route::before {
  left: 8px;
  background: rgba(248, 251, 249, 0.2);
}

.hero-route::after {
  left: 8px;
  background: linear-gradient(var(--acid), var(--coral));
  box-shadow: 0 0 12px rgba(201, 255, 241, 0.44);
}

.hero-route a {
  min-height: 42px;
  color: rgba(248, 251, 249, 0.46);
}

.hero-route a::before {
  left: 3px;
  width: 11px;
  height: 2px;
  background: currentColor;
  border: 0;
  border-radius: 0;
}

.hero-route a:hover,
.hero-route a:focus-visible,
.hero-route a.is-active {
  color: var(--white);
}

.hero-route a.is-active::before {
  background: linear-gradient(90deg, var(--acid), var(--coral));
  box-shadow: 0 0 12px rgba(201, 255, 241, 0.72);
  transform: scaleX(1.7);
}

.work-section {
  padding: 96px 0 34px;
  display: flex;
  flex-direction: column;
  background:
    linear-gradient(128deg, rgba(255, 255, 255, 0.9) 0%, rgba(229, 238, 234, 0.96) 45%, rgba(203, 225, 218, 0.78) 100%),
    #e5ebe8;
}

.section-heading-row {
  flex: none;
  grid-template-columns: minmax(0, 1.4fr) minmax(300px, 0.65fr);
  gap: 64px;
  margin-bottom: 26px;
}

.section-heading-row h2,
.showreel-heading h2,
.systems-heading h2,
.tools-intro h2,
.experience-grid h2,
.contact-layout h2 {
  font-size: 52px;
  line-height: 1.02;
}

.work-stage {
  min-height: 0;
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 190px;
  border-top: 1px solid rgba(7, 16, 15, 0.42);
  border-bottom: 1px solid rgba(7, 16, 15, 0.42);
}

.work-viewport {
  position: relative;
  min-width: 0;
  min-height: 580px;
  overflow: hidden;
  background: #050a0a;
}

.work-viewport::after {
  content: "";
  position: absolute;
  z-index: 5;
  top: 0;
  bottom: 0;
  left: -22%;
  width: 18%;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(90deg, transparent, rgba(201, 255, 241, 0.42), rgba(255, 255, 255, 0.7), transparent);
  filter: blur(8px);
  transform: skewX(-12deg);
}

.work-viewport.is-switching::after {
  animation: work-flash 760ms cubic-bezier(0.16, 1, 0.3, 1);
}

.work-stage .project-card {
  position: absolute;
  z-index: 1;
  inset: 0;
  min-height: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(310px, 0.72fr);
  grid-template-rows: 1fr;
  color: var(--white);
  background: #07100f;
  border: 0;
  box-shadow: none;
  opacity: 0;
  pointer-events: none;
  transform: scale(1.025);
  transition:
    opacity 620ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 980ms cubic-bezier(0.16, 1, 0.3, 1);
}

.work-stage .project-card.is-active {
  z-index: 3;
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

.work-stage .project-card.is-leaving {
  z-index: 2;
}

.work-stage .project-card:hover {
  box-shadow: none;
  transform: scale(1);
}

.work-stage .project-media,
.work-stage .project-card--wide .project-media {
  min-height: 100%;
}

.work-stage .project-media::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent 62%, rgba(5, 12, 12, 0.9) 100%),
    linear-gradient(0deg, rgba(2, 7, 7, 0.36), transparent 48%);
}

.work-stage .project-media::after {
  z-index: 2;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--acid), var(--white), var(--coral), transparent);
  box-shadow: 0 0 18px rgba(201, 255, 241, 0.64);
}

.work-stage .project-media img {
  filter: grayscale(0.36) saturate(0.8) contrast(1.1);
}

.work-stage .project-media:hover img,
.work-stage .project-media:focus-visible img {
  filter: grayscale(0) saturate(1) contrast(1.06);
}

.work-stage .project-copy {
  position: relative;
  z-index: 3;
  padding: 48px 42px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background:
    linear-gradient(160deg, rgba(15, 31, 29, 0.94), rgba(5, 12, 12, 0.99)),
    #07100f;
  border-left: 1px solid rgba(201, 255, 241, 0.15);
}

.work-stage .project-copy::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--acid), var(--coral));
  box-shadow: 0 0 18px rgba(201, 255, 241, 0.36);
}

.work-stage .project-number {
  color: var(--acid);
}

.work-stage .project-copy h3 {
  margin: 18px 0 18px;
  font-size: 32px;
}

.work-stage .project-copy > p:not(.project-number) {
  color: rgba(232, 242, 238, 0.66);
}

.work-stage .tag-list span {
  color: #dff9f1;
  background: rgba(201, 255, 241, 0.06);
  border-color: rgba(201, 255, 241, 0.2);
}

.work-stage .text-link {
  width: max-content;
  color: var(--white);
}

.work-switcher {
  min-width: 0;
  display: grid;
  grid-template-rows: auto repeat(4, 1fr);
  color: var(--ink);
  background: rgba(246, 250, 248, 0.56);
  border-left: 1px solid rgba(7, 16, 15, 0.42);
}

.work-switcher-head {
  min-height: 82px;
  padding: 18px;
  display: flex;
  align-items: baseline;
  gap: 8px;
  border-bottom: 1px solid rgba(7, 16, 15, 0.24);
}

.work-switcher-head span {
  font-size: 32px;
  font-weight: 900;
}

.work-switcher-head small {
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
}

.work-switcher button {
  position: relative;
  min-width: 0;
  padding: 16px 18px;
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 4px 8px;
  align-content: center;
  overflow: hidden;
  color: rgba(7, 16, 15, 0.52);
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(7, 16, 15, 0.18);
  text-align: left;
  cursor: pointer;
  transition:
    color 360ms ease,
    background-color 360ms ease,
    padding-left 560ms cubic-bezier(0.16, 1, 0.3, 1);
}

.work-switcher button::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 2px;
  background: linear-gradient(var(--acid), var(--teal), var(--coral));
  box-shadow: 0 0 14px rgba(61, 169, 159, 0.54);
  transform: scaleY(0);
  transition: transform 520ms cubic-bezier(0.16, 1, 0.3, 1);
}

.work-switcher button span {
  grid-row: 1 / 3;
  padding-top: 2px;
  font-size: 10px;
  font-weight: 900;
}

.work-switcher button strong {
  color: currentColor;
  font-size: 14px;
}

.work-switcher button small {
  font-size: 10px;
}

.work-switcher button:hover,
.work-switcher button:focus-visible,
.work-switcher button.is-active {
  padding-left: 24px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.72);
}

.work-switcher button.is-active::before {
  transform: scaleY(1);
}

.showreel-section {
  padding: 96px 0 24px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  background:
    linear-gradient(135deg, rgba(12, 29, 27, 0.98), rgba(3, 9, 9, 1) 62%),
    var(--ink);
}

.showreel-heading {
  margin-bottom: 24px;
}

.showreel-frame {
  width: min(1500px, calc(100% - 40px));
  min-height: 0;
  height: 100%;
  max-height: 66svh;
  margin: 0 auto;
  overflow: hidden;
  border-top: 1px solid rgba(201, 255, 241, 0.24);
  border-bottom: 1px solid rgba(255, 112, 72, 0.22);
  box-shadow:
    0 0 0 1px rgba(248, 251, 249, 0.06),
    0 28px 80px rgba(0, 0, 0, 0.42),
    0 0 60px rgba(61, 169, 159, 0.08);
}

.showreel-frame video {
  height: 100%;
  max-height: none;
  aspect-ratio: auto;
}

.showreel-timeline button::before {
  background: linear-gradient(90deg, var(--acid), var(--coral));
  box-shadow: 0 0 14px rgba(201, 255, 241, 0.5);
}

.systems-section {
  padding: 94px 0 0;
  display: flex;
  flex-direction: column;
  background:
    linear-gradient(145deg, #f4f7f5 0%, #dbe6e2 48%, #cadbd5 100%);
}

.systems-section > .section-shell {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-bottom: 30px;
}

.signal-path {
  margin-top: 54px;
}

.signal-detail {
  grid-template-rows: auto 1fr;
  margin-top: 34px;
  align-items: start;
}

.signal-detail .signal-bars {
  grid-row: 1 / 3;
}

.signal-detail .signal-kicker {
  grid-column: 2;
  grid-row: 1;
}

.signal-detail h3 {
  grid-column: 3;
  grid-row: 1;
}

.signal-detail > p:last-child {
  grid-column: 2 / 4;
  grid-row: 2;
}

.signal-bars i {
  background: linear-gradient(180deg, var(--acid), var(--teal) 54%, var(--ink));
  box-shadow: 0 0 12px rgba(61, 169, 159, 0.2);
}

.impact-strip {
  flex: none;
  min-height: 138px;
  background:
    linear-gradient(110deg, rgba(17, 37, 34, 0.98), rgba(5, 13, 13, 1)),
    #08100f;
  border-top: 1px solid rgba(201, 255, 241, 0.18);
}

.impact-strip div {
  min-height: 138px;
  padding: 26px 32px;
}

.impact-strip strong {
  color: var(--acid);
  background: linear-gradient(90deg, var(--acid), #71d8ca, var(--coral));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.tools-section {
  padding: 96px 0 42px;
  display: flex;
  align-items: center;
  color: var(--white);
  background:
    linear-gradient(120deg, #06110f 0%, #10221f 48%, #07100f 100%);
}

.tools-layout {
  gap: 110px;
  align-items: center;
}

.tools-intro {
  position: static;
}

.tools-intro > p:last-child,
.tools-section .tool-row small {
  color: rgba(226, 241, 235, 0.62);
}

.tools-section .section-index,
.tools-section .tool-index,
.tools-section .tool-arrow {
  color: var(--acid);
}

.tools-section .tool-list {
  border-color: rgba(248, 251, 249, 0.58);
}

.tools-section .tool-row {
  min-height: 120px;
  border-color: rgba(248, 251, 249, 0.16);
}

.tools-section a.tool-row:hover,
.tools-section a.tool-row:focus-visible {
  background: rgba(201, 255, 241, 0.06);
}

.tools-section .tool-row::after {
  width: 1px;
  background: linear-gradient(var(--acid), var(--coral));
  box-shadow: 0 0 16px rgba(201, 255, 241, 0.62);
}

.experience-section {
  padding: 104px 0 48px;
  display: flex;
  align-items: center;
  color: var(--ink);
  background:
    linear-gradient(130deg, #f5f8f6 0%, #dfe9e5 56%, #c6d9d2 100%);
}

.experience-grid {
  align-items: center;
}

.experience-date,
.experience-section .section-index {
  color: #247d76;
}

.experience-main > p:not(.experience-date),
.education p {
  color: #4c5c58;
}

.education strong {
  color: var(--ink);
}

.experience-section .skill-line span {
  color: #18302d;
  background: rgba(255, 255, 255, 0.5);
  border-color: rgba(7, 16, 15, 0.22);
}

.contact-section {
  min-height: 100svh;
  padding: 104px 0 44px;
  color: var(--white);
  background:
    linear-gradient(125deg, #050c0c 0%, #0b1d1a 52%, #06100f 100%);
}

.contact-section::before {
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--acid), var(--white), var(--coral), transparent);
  box-shadow:
    0 0 14px rgba(201, 255, 241, 0.66),
    0 0 40px rgba(61, 169, 159, 0.22);
}

.contact-layout {
  flex: none;
}

.contact-layout .section-index {
  color: var(--acid);
}

.contact-layout h2 {
  font-size: 76px;
  background: linear-gradient(100deg, var(--white), var(--acid) 48%, #72d8ca 74%, var(--white));
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: title-flow 8s ease-in-out infinite;
}

.contact-links {
  border-color: rgba(248, 251, 249, 0.24);
}

.contact-links a {
  border-color: rgba(248, 251, 249, 0.24);
}

.contact-links a:hover,
.contact-links a:focus-visible {
  color: var(--acid);
}

.contact-meta {
  color: rgba(248, 251, 249, 0.56);
}

.motion-ready .motion-section .motion-item {
  opacity: 0;
  filter: blur(10px);
  transform: translateY(56px) scale(0.985);
  transition:
    opacity 900ms cubic-bezier(0.16, 1, 0.3, 1),
    filter 1100ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 1150ms cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: calc(var(--motion-order, 0) * 62ms);
}

.motion-ready .motion-section.is-visible .motion-item {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0) scale(1);
}

@keyframes module-sweep {
  0% {
    opacity: 0;
    transform: translateX(-105%);
  }

  18% {
    opacity: 0.58;
  }

  100% {
    opacity: 0;
    transform: translateX(105%);
  }
}

@keyframes work-flash {
  0% {
    left: -22%;
    opacity: 0;
  }

  28% {
    opacity: 0.8;
  }

  100% {
    left: 112%;
    opacity: 0;
  }
}

@keyframes title-flow {
  0%,
  100% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }
}

@keyframes hero-camera {
  from {
    transform: scale(1.035) translate3d(0, 0, 0);
  }

  to {
    transform: scale(1.075) translate3d(-0.6%, -0.4%, 0);
  }
}

@media (min-width: 901px) and (min-height: 720px) {
  html {
    scroll-snap-type: y proximity;
  }

  main > section:not(.hero) {
    height: calc(100svh - 72px);
  }
}

@media (min-width: 901px) and (max-height: 850px) {
  .work-section {
    padding-top: 78px;
    padding-bottom: 20px;
  }

  .section-heading-row {
    gap: 48px;
    margin-bottom: 20px;
  }

  .section-heading-row h2 {
    font-size: 46px;
  }

  .section-heading-row .section-index {
    margin-bottom: 12px;
  }

  .work-viewport {
    min-height: 0;
  }

  .work-stage .project-copy {
    padding: 34px 32px;
  }

  .work-stage .project-copy h3 {
    margin: 14px 0;
    font-size: 28px;
  }

  .work-stage .project-copy > p:not(.project-number) {
    font-size: 13px;
    line-height: 1.65;
  }

  .work-stage .tag-list {
    margin: 18px 0 20px;
  }

  .work-switcher-head {
    min-height: 68px;
    padding: 14px 18px;
  }

  .work-switcher-head span {
    font-size: 28px;
  }

  .work-switcher button {
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .systems-section {
    padding-top: 74px;
  }

  .systems-section > .section-shell {
    justify-content: flex-start;
    padding-bottom: 18px;
  }

  .systems-heading {
    gap: 14px 64px;
  }

  .systems-heading .section-index {
    margin-bottom: 8px;
  }

  .systems-heading h2 {
    font-size: 46px;
  }

  .systems-heading > p:last-child {
    font-size: 14px;
    line-height: 1.65;
  }

  .signal-path {
    margin-top: 34px;
  }

  .signal-node {
    padding-top: 15px;
    padding-bottom: 16px;
  }

  .signal-detail {
    gap: 28px;
    margin-top: 20px;
    padding-top: 22px;
  }

  .signal-bars {
    height: 92px;
  }

  .signal-detail h3 {
    margin-bottom: 8px;
    font-size: 22px;
  }

  .signal-detail > p:last-child {
    font-size: 13px;
    line-height: 1.6;
  }

  .impact-strip,
  .impact-strip div {
    min-height: 116px;
  }

  .impact-strip div {
    padding: 21px 30px;
  }

  .impact-strip strong {
    font-size: 27px;
  }

  .impact-strip span {
    line-height: 1.45;
  }
}

@media (max-width: 900px) {
  html {
    scroll-snap-type: y proximity;
  }

  .site-header {
    height: 64px;
  }

  main > section {
    scroll-margin-top: 64px;
  }

  main > section:not(.hero) {
    min-height: calc(100svh - 64px);
  }

  .hero h1 {
    font-size: 58px;
  }

  .work-section,
  .showreel-section,
  .systems-section,
  .tools-section,
  .experience-section,
  .contact-section {
    padding-top: 84px;
  }

  .section-heading-row h2,
  .showreel-heading h2,
  .systems-heading h2,
  .tools-intro h2,
  .experience-grid h2,
  .contact-layout h2 {
    font-size: 38px;
  }

  .section-heading-row {
    gap: 30px;
    margin-bottom: 22px;
  }

  .work-stage {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: minmax(520px, 1fr) auto;
  }

  .work-viewport {
    min-height: 520px;
  }

  .work-stage .project-card {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(260px, 1.1fr) minmax(240px, 0.9fr);
  }

  .work-stage .project-copy {
    padding: 28px;
    border-top: 1px solid rgba(201, 255, 241, 0.14);
    border-left: 0;
  }

  .work-stage .project-copy h3 {
    font-size: 26px;
  }

  .work-switcher {
    grid-template-columns: repeat(4, minmax(145px, 1fr));
    grid-template-rows: 1fr;
    overflow-x: auto;
    border-top: 1px solid rgba(7, 16, 15, 0.3);
    border-left: 0;
  }

  .work-switcher-head {
    display: none;
  }

  .work-switcher button {
    min-height: 84px;
    border-right: 1px solid rgba(7, 16, 15, 0.16);
    border-bottom: 0;
  }

  .work-switcher button::before {
    top: 0;
    right: 0;
    bottom: auto;
    width: auto;
    height: 2px;
    transform: scaleX(0);
  }

  .work-switcher button.is-active::before {
    transform: scaleX(1);
  }

  .showreel-section {
    grid-template-rows: auto minmax(360px, 1fr) auto;
  }

  .showreel-frame {
    width: calc(100% - 36px);
    max-height: 62svh;
  }

  .systems-section > .section-shell {
    padding-bottom: 34px;
  }

  .impact-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .tools-layout {
    gap: 42px;
  }

  .tools-section .tool-row {
    min-height: 104px;
  }

  .contact-layout h2 {
    font-size: 54px;
  }
}

@media (max-width: 560px) {
  .section-shell,
  .hero-content {
    width: calc(100% - 32px);
  }

  .hero {
    min-height: 100svh;
  }

  .hero h1 {
    font-size: 46px;
  }

  .hero-intro {
    line-height: 1.62;
  }

  .work-section {
    padding-top: 76px;
    padding-bottom: 18px;
  }

  .section-heading-row {
    display: block;
    margin-bottom: 16px;
  }

  .section-heading-row h2 {
    font-size: 30px;
  }

  .section-heading-row .section-lead {
    display: none;
  }

  .section-index {
    margin-bottom: 10px;
  }

  .work-stage {
    width: calc(100% - 24px);
    grid-template-rows: 500px 68px;
  }

  .work-viewport {
    min-height: 0;
  }

  .work-stage .project-card {
    grid-template-rows: 200px 300px;
  }

  .work-stage .project-copy {
    padding: 22px;
    justify-content: flex-start;
  }

  .work-stage .project-copy h3 {
    margin: 12px 0;
    font-size: 22px;
  }

  .work-stage .project-copy > p:not(.project-number) {
    font-size: 13px;
    line-height: 1.62;
  }

  .work-stage .tag-list {
    margin: 16px 0 18px;
  }

  .work-switcher {
    grid-template-columns: repeat(4, minmax(126px, 1fr));
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .work-switcher button {
    min-height: 68px;
    padding: 12px;
  }

  .work-switcher button:hover,
  .work-switcher button:focus-visible,
  .work-switcher button.is-active {
    padding-left: 16px;
  }

  .showreel-section {
    grid-template-rows: auto minmax(260px, 1fr) auto;
    padding-bottom: 16px;
  }

  .showreel-heading h2 {
    font-size: 34px;
  }

  .showreel-frame {
    min-height: 260px;
    max-height: 54svh;
  }

  .systems-section {
    min-height: calc(100svh - 64px);
  }

  .systems-section > .section-shell {
    justify-content: flex-start;
    padding-bottom: 20px;
  }

  .systems-heading {
    grid-template-columns: 0.8fr 1.2fr;
    gap: 12px 18px;
    align-items: start;
  }

  .systems-heading .section-index {
    grid-column: 1 / -1;
  }

  .systems-heading h2 {
    font-size: 32px;
  }

  .systems-heading > p:last-child {
    font-size: 12px;
    line-height: 1.65;
  }

  .signal-path {
    grid-template-columns: repeat(5, minmax(122px, 1fr));
    margin-top: 24px;
    overflow-x: auto;
    overflow-y: hidden;
    border-top: 2px solid var(--ink);
    border-left: 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .work-switcher::-webkit-scrollbar,
  .signal-path::-webkit-scrollbar {
    display: none;
  }

  .signal-path::before {
    top: -2px;
    left: 0;
    width: var(--signal-progress);
    height: 2px;
  }

  .signal-path::after {
    top: -2px;
    left: -72px;
    width: 72px;
    height: 2px;
    animation-name: signal-light;
  }

  .signal-node {
    min-height: 84px;
    padding: 14px 12px 12px 0;
    display: grid;
    grid-template-columns: 28px 1fr;
    gap: 4px 6px;
    align-content: center;
    border-right: 1px solid rgba(17, 23, 22, 0.24);
    border-bottom: 0;
  }

  .signal-node::before {
    top: -8px;
    left: 0;
  }

  .signal-node span {
    grid-row: 1 / 3;
  }

  .signal-node small {
    grid-column: 2;
    white-space: nowrap;
  }

  .signal-detail {
    grid-template-columns: 0.9fr 1.1fr;
    grid-template-rows: auto auto auto;
    gap: 8px 18px;
    margin-top: 20px;
    padding-top: 18px;
  }

  .signal-detail .signal-bars {
    grid-column: 1;
    grid-row: 1 / 3;
    height: 78px;
  }

  .signal-detail .signal-kicker {
    grid-column: 2;
    grid-row: 1;
  }

  .signal-detail h3 {
    grid-column: 2;
    grid-row: 2;
    margin-bottom: 0;
    font-size: 20px;
  }

  .signal-detail > p:last-child {
    grid-column: 1 / -1;
    grid-row: 3;
    font-size: 12px;
    line-height: 1.55;
  }

  .signal-detail .signal-bars,
  .signal-detail .signal-kicker,
  .signal-detail h3,
  .signal-detail > p:last-child {
    grid-column: auto;
    grid-row: auto;
  }

  .impact-strip {
    grid-template-columns: 1fr 1fr;
  }

  .impact-strip div {
    min-height: 112px;
    padding: 20px;
  }

  .impact-strip strong {
    font-size: 23px;
  }

  .tools-section,
  .experience-section {
    min-height: calc(100svh - 64px);
  }

  .tools-section {
    padding-top: 76px;
    padding-bottom: 24px;
  }

  .tools-layout {
    gap: 24px;
  }

  .tools-intro h2 {
    font-size: 32px;
  }

  .tools-intro > p:last-child {
    margin-top: 18px;
    font-size: 12px;
    line-height: 1.65;
  }

  .tools-section .tool-row {
    min-height: 80px;
    padding: 14px 4px;
  }

  .tools-section .tool-row strong {
    margin-bottom: 5px;
    font-size: 19px;
  }

  .tools-section .tool-row small {
    font-size: 11px;
    line-height: 1.5;
  }

  .experience-grid h2 {
    font-size: 34px;
  }

  .contact-layout h2 {
    font-size: 48px;
  }
}

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

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