:root {
  --ink: #111111;
  --muted: #5f625f;
  --paper: #dededb;
  --panel: #ececea;
  --panel-light: #f5f5f2;
  --line: #a6a6a1;
  --line-soft: rgba(17, 17, 17, 0.18);
  --orange: #ff6a21;
  --teal: #0b8e87;
  --white: #ffffff;
  --radius: 2px;
  --mono: "Courier New", "Consolas", monospace;
  --display: Impact, Haettenschweiler, "Arial Black", sans-serif;
  --sans: Arial, Helvetica, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  --hand-one: 0;
  --hand-two: 0;
  --hand-three: 0;
  --scroll-page: 0;
  margin: 0;
  color: var(--ink);
  font-family: var(--mono);
  background-color: var(--paper);
  background-image:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 180px 180px;
  overflow-x: hidden;
}

.scroll-model-layer {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.scroll-model {
  position: absolute;
  opacity: 0;
  filter:
    drop-shadow(0 34px 46px rgba(17, 17, 17, 0.18))
    contrast(1.05)
    saturate(0.82);
  mix-blend-mode: multiply;
  transition: opacity 120ms linear;
  will-change: opacity, transform;
}

.hand-bg-one {
  right: max(-90px, -5vw);
  top: 13vh;
  width: min(42vw, 560px);
  opacity: calc(var(--hand-one) * 0.48);
  transform:
    translate3d(-34px, calc((var(--scroll-page) - 0.9) * -14px), 0)
    rotate(-5deg)
    scale(0.98);
  transform-origin: 52% 58%;
}

.hand-bg-two {
  right: max(-130px, -6vw);
  top: 16vh;
  width: min(48vw, 650px);
  opacity: calc(var(--hand-two) * 0.4);
  transform:
    translate3d(-18px, calc((var(--scroll-page) - 2.8) * -12px), 0)
    rotate(3deg)
    scale(0.96);
}

.hand-bg-three {
  right: max(-100px, -4vw);
  top: 20vh;
  width: min(46vw, 610px);
  opacity: calc(var(--hand-three) * 0.42);
  transform:
    translate3d(-22px, calc((var(--scroll-page) - 4.7) * -12px), 0)
    rotate(-4deg)
    scale(0.96);
}

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

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

button {
  font: inherit;
}

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

.skip-link {
  position: fixed;
  left: 16px;
  top: 16px;
  z-index: 100;
  padding: 10px 12px;
  transform: translateY(-180%);
  border: 1px solid var(--ink);
  background: var(--panel-light);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto;
  width: min(1180px, calc(100% - 32px));
  margin: 16px auto 0;
  border: 1px solid var(--line);
  background: rgba(236, 236, 234, 0.92);
  backdrop-filter: blur(12px);
}

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

.brand,
.nav-links a {
  min-height: 56px;
  border-right: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 0 14px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 800;
}

.brand span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: var(--white);
  background: var(--ink);
  border-radius: 8px;
  font-family: var(--sans);
  font-size: 13px;
}

.nav-links {
  display: flex;
  justify-content: flex-end;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 86px;
  padding: 0 12px;
  color: var(--ink);
  font-size: 12px;
  text-transform: uppercase;
}

.nav-links a:last-child {
  border-right: 0;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  background: var(--orange);
  outline: none;
}

main {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.92fr);
  min-height: calc(100vh - 72px);
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
}

.hero-copy,
.hero-lab,
.section,
.contact-section {
  position: relative;
}

.hero-copy {
  display: grid;
  align-content: center;
  padding: clamp(40px, 7vw, 88px) clamp(20px, 4vw, 52px);
  border-right: 1px solid var(--line);
}

.hero-copy::before,
.hero-lab::before,
.section::before,
.contact-section::before {
  position: absolute;
  width: 7px;
  height: 7px;
  content: "";
  background: var(--orange);
}

.hero-copy::before {
  left: 18px;
  top: 82px;
}

.hero-lab::before {
  right: 18px;
  top: 82px;
}

.eyebrow,
.section-label,
.project-category {
  margin: 0 0 18px;
  color: var(--teal);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: var(--display);
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  max-width: 760px;
  margin-bottom: 24px;
  font-size: clamp(64px, 11vw, 156px);
  line-height: 0.82;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(38px, 6vw, 76px);
  line-height: 0.92;
}

h3 {
  margin-bottom: 12px;
  font-family: var(--sans);
  font-size: 19px;
  line-height: 1.15;
}

.hero-text,
.section-heading p,
.about-copy p,
.contact-section h2,
.case-copy p,
.timeline p,
.timeline li,
.education-list p,
.award-track p,
.skill-categories p {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1.65;
}

.hero-text {
  max-width: 720px;
  margin-bottom: 26px;
  font-size: 15px;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  transition: transform 160ms ease, background 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  outline: none;
}

.button.primary {
  background: var(--orange);
  color: var(--ink);
}

.button.secondary {
  background: var(--panel-light);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin: 34px 0 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.hero-stats div {
  min-height: 92px;
  padding: 16px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(245, 245, 242, 0.72);
}

.hero-stats dt {
  margin-bottom: 8px;
  font-family: var(--sans);
  font-size: 18px;
  font-weight: 900;
}

.hero-stats dd {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.hero-lab {
  display: grid;
  min-height: 620px;
  padding: clamp(28px, 5vw, 62px);
  align-items: center;
}

.profile-stage {
  position: relative;
  overflow: hidden;
  min-height: min(72vh, 620px);
  border: 1px solid var(--ink);
  background: var(--panel-light);
}

.profile-stage::before,
.profile-stage::after {
  position: absolute;
  z-index: 2;
  width: 22px;
  height: 22px;
  content: "";
  border-color: var(--panel-light);
  border-style: solid;
}

.profile-stage::before {
  left: 12px;
  top: 12px;
  border-width: 1px 0 0 1px;
}

.profile-stage::after {
  right: 12px;
  bottom: 12px;
  border-width: 0 1px 1px 0;
}

.profile-stage img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  object-position: center 36%;
  filter: contrast(1.03) saturate(0.9);
}

.section {
  padding: clamp(52px, 8vw, 96px) 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
}

.section::before {
  left: 18px;
  top: 18px;
}

.section-label {
  padding-left: clamp(20px, 4vw, 52px);
}

.about-grid,
.section-heading,
.split-section,
.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 0;
}

.about-grid > div,
.section-heading > div,
.section-heading > p,
.split-section > div,
.contact-section > div {
  padding: clamp(20px, 4vw, 52px);
}

.about-grid > div:first-child,
.section-heading > div:first-child,
.split-section > div:first-child,
.contact-section > div:first-child {
  border-right: 1px solid var(--line);
}

.about-copy {
  border-top: 1px solid var(--line);
}

.focus-strip,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-top: 22px;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.focus-strip span,
.tag-row span {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  padding: 0 12px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--panel-light);
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
}

.award-track,
.skill-categories,
.education-list {
  display: grid;
  gap: 0;
  padding: 0 clamp(20px, 4vw, 52px);
}

.award-track {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.award-track article,
.timeline article,
.skill-categories article,
.education-list article {
  min-height: 190px;
  padding: 24px;
  border: 1px solid var(--line);
  border-right: 0;
  background: rgba(245, 245, 242, 0.56);
  transition: background 160ms ease, transform 160ms ease;
}

.award-track article:last-child,
.skill-categories article:last-child,
.education-list article:last-child {
  border-right: 1px solid var(--line);
}

.award-track article:hover,
.timeline article:hover,
.skill-categories article:hover,
.education-list article:hover {
  transform: translateY(-3px);
  background: var(--panel-light);
}

.award-track span,
.timeline span,
.education-list span {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--orange);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.work-section .section-heading {
  margin-bottom: 36px;
}

.project-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  padding: 0 clamp(20px, 4vw, 52px);
}

.case-card {
  display: grid;
  grid-template-rows: auto 1fr;
  border: 1px solid var(--line);
  border-right: 0;
  background: rgba(245, 245, 242, 0.78);
  transition: background 180ms ease, transform 180ms ease;
}

.case-card:nth-child(2n),
.case-card:last-child {
  border-right: 1px solid var(--line);
}

.case-card-large {
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  grid-template-rows: auto;
  border-bottom: 0;
}

.case-card:hover {
  transform: translateY(-3px);
  background: var(--panel-light);
}

.case-media {
  display: grid;
  min-height: 340px;
  place-items: center;
  padding: 16px;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px),
    #d4d4d0;
  background-size: 90px 90px;
}

.case-card-large .case-media {
  min-height: 520px;
  border-right: 1px solid var(--line);
  border-bottom: 0;
}

.case-media img {
  width: 100%;
  height: min(46vh, 430px);
  object-fit: contain;
  filter: grayscale(0.08) contrast(1.05);
}

.case-card-large .case-media img {
  height: min(58vh, 520px);
}

.case-copy {
  padding: clamp(24px, 4vw, 42px);
}

.case-copy > span {
  display: block;
  margin-bottom: 22px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.case-copy h3 {
  max-width: 760px;
  font-family: var(--display);
  font-size: clamp(32px, 4.8vw, 64px);
  line-height: 0.95;
  text-transform: uppercase;
}

.case-card:not(.case-card-large) .case-copy h3 {
  font-size: clamp(28px, 3.2vw, 44px);
}

.case-copy strong {
  display: block;
  margin: 24px 0 0;
  padding: 14px 0 0;
  border-top: 1px solid var(--orange);
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
}

.timeline {
  display: grid;
  gap: 0;
  padding: 0 clamp(20px, 4vw, 52px) 0 0;
}

.timeline article {
  border-right: 1px solid var(--line);
  border-bottom: 0;
}

.timeline article + article {
  border-top: 0;
}

.timeline ul {
  margin: 18px 0 0;
  padding-left: 18px;
}

.skills-section .section-heading {
  margin-bottom: 36px;
}

.skill-categories {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.category-icon {
  display: grid;
  width: 46px;
  height: 46px;
  margin-bottom: 22px;
  place-items: center;
  color: var(--white);
  background: var(--ink);
}

.category-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.skill-list {
  display: grid;
  margin-top: 20px;
  border-top: 1px solid var(--line);
}

.skill-list span {
  min-height: 42px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
}

.education-list {
  grid-template-columns: 1.3fr 0.7fr;
}

.contact-section {
  margin: 0 0 1px;
  border: 1px solid var(--line);
  background: var(--ink);
  color: var(--white);
}

.contact-section::before {
  right: 18px;
  top: 18px;
}

.contact-section .eyebrow,
.contact-section h2,
.contact-section p {
  color: var(--white);
}

.contact-section h2 {
  font-family: var(--display);
  font-size: clamp(32px, 4vw, 54px);
  line-height: 0.98;
}

.contact-actions {
  justify-content: flex-start;
}

.contact-actions > span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
}

.contact-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.contact-socials a {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  padding: 0 12px;
  border-right: 1px solid rgba(255, 255, 255, 0.2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--white);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.contact-socials a:hover,
.contact-socials a:focus-visible {
  background: var(--orange);
  color: var(--ink);
  outline: none;
}

footer {
  display: grid;
  grid-template-columns: 1fr auto;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 28px;
  border: 1px solid var(--line);
  border-top: 0;
  background: var(--panel);
  color: var(--muted);
  font-size: 12px;
}

footer p,
footer a {
  margin: 0;
  padding: 18px;
}

footer a {
  border-left: 1px solid var(--line);
  color: var(--ink);
  font-weight: 900;
  text-transform: uppercase;
}

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

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

@media (max-width: 980px) {
  .site-header,
  .hero,
  .about-grid,
  .section-heading,
  .split-section,
  .contact-section,
  footer {
    grid-template-columns: 1fr;
  }

  .brand,
  .hero-copy,
  .about-grid > div:first-child,
  .section-heading > div:first-child,
  .split-section > div:first-child,
  .contact-section > div:first-child {
    border-right: 0;
  }

  .nav-links {
    justify-content: flex-start;
    border-top: 1px solid var(--line);
  }

  .hero-lab {
    min-height: 520px;
    border-top: 1px solid var(--line);
  }

  .award-track,
  .skill-categories,
  .education-list {
    grid-template-columns: 1fr 1fr;
  }

  .project-gallery,
  .case-card-large {
    grid-template-columns: 1fr;
  }

  .case-card,
  .case-card-large,
  .case-card-large .case-media {
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }

  footer a {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 680px) {
  .site-header,
  main,
  footer {
    width: calc(100% - 16px);
  }

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

  .nav-links a {
    justify-content: flex-start;
    border-bottom: 1px solid var(--line);
  }

  h1 {
    font-size: clamp(58px, 20vw, 96px);
  }

  h2 {
    font-size: clamp(34px, 14vw, 56px);
  }

  .hero-stats,
  .award-track,
  .skill-categories,
  .education-list,
  .project-gallery {
    grid-template-columns: 1fr;
  }

  .hero-lab {
    min-height: 420px;
    padding: 18px;
  }

  .profile-stage {
    min-height: 400px;
  }

  .case-media,
  .case-card-large .case-media {
    min-height: 280px;
  }

  .case-media img,
  .case-card-large .case-media img {
    height: auto;
  }

  .scroll-model {
    right: -180px;
    width: 520px;
  }
}

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