:root {
  --paper: #f4f1eb;
  --surface: #ffffff;
  --surface-alt: #ece9e2;
  --ink: #080808;
  --muted: #555555;
  --line: #111111;
  --coral: #e7251c;
  --teal: #e7251c;
  --violet: #e7251c;
  --sky: #e7251c;
  --sun: #e7251c;
  --leaf: #e7251c;
  --red: #e7251c;
  --black: #080808;
  --white: #ffffff;
  --shadow: 10px 10px 0 rgba(8, 8, 8, 0.96);
  --radius: 0;
  --max-width: 1160px;
}

/* Interactive portfolio experience */
.experience-shell {
  display: none;
}

body.interactive-mode {
  min-height: 100vh;
  overflow: hidden;
  background: #050505;
}

body.interactive-mode .experience-shell {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: block;
  min-height: 100dvh;
  overflow: hidden;
  color: #fff;
  background: #050505;
  isolation: isolate;
}

body.interactive-mode > .site-header,
body.interactive-mode > #legacy-content > .hero,
body.interactive-mode > #legacy-content > .signal-strip,
body.interactive-mode > #legacy-content > .chapter-transition,
body.interactive-mode > .footer {
  display: none !important;
}

body.interactive-mode > #legacy-content {
  min-height: 0;
}

.p5-intro,
.command-hub,
.content-deck,
.p5-transition {
  position: absolute;
  inset: 0;
}

.p5-intro {
  z-index: 4;
  overflow: hidden;
  background: #e60012;
}

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

.p5-intro::before {
  inset: 0;
  opacity: 0.3;
  background-image:
    radial-gradient(circle at center, #000 0 1.5px, transparent 1.6px);
  background-size: 9px 9px;
  -webkit-mask-image: linear-gradient(105deg, transparent 0 48%, #000 68% 100%);
  mask-image: linear-gradient(105deg, transparent 0 48%, #000 68% 100%);
}

.p5-intro::after {
  top: -18vh;
  right: 34%;
  width: 16vw;
  height: 140vh;
  transform: rotate(18deg);
  background: #fff;
  box-shadow: 3vw 0 0 #050505;
}

.intro-ink {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(158deg, transparent 0 58%, #050505 58.2% 66%, transparent 66.2%),
    linear-gradient(25deg, #050505 0 13%, transparent 13.2%),
    #e60012;
}

.intro-character {
  position: absolute;
  z-index: 1;
  inset: 0 0 0 auto;
  width: min(70vw, 1220px);
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: contrast(1.05) saturate(1.05);
}

.intro-copy {
  position: absolute;
  z-index: 5;
  top: clamp(6rem, 14vh, 10rem);
  left: clamp(1.2rem, 6vw, 7rem);
  width: min(48rem, 56vw);
  transform: rotate(-2deg);
}

.intro-date {
  display: inline-block;
  margin: 0 0 1rem;
  padding: 0.35rem 0.75rem;
  color: #fff;
  background: #050505;
  font-weight: 950;
  letter-spacing: 0.14em;
  transform: skew(-10deg);
}

.intro-copy h1 {
  max-width: 12ch;
  margin: 0;
  color: #fff;
  font-size: clamp(3.4rem, 8.2vw, 9.5rem);
  font-weight: 1000;
  line-height: 0.78;
  letter-spacing: -0.085em;
  text-shadow: 8px 8px 0 #050505;
  overflow-wrap: anywhere;
}

.intro-copy h1 span {
  display: block;
  color: #050505;
  text-shadow: 5px 5px 0 #fff;
}

.intro-statement {
  width: min(38rem, 72%);
  margin: 1.6rem 0 0;
  padding: 1rem 1.2rem;
  color: #050505;
  background: #fff;
  border: 4px solid #050505;
  box-shadow: 8px 8px 0 #050505;
  font-size: clamp(0.9rem, 1.3vw, 1.15rem);
  font-weight: 760;
  line-height: 1.35;
  transform: rotate(1deg) skew(-2deg);
}

.intro-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.5rem;
}

.p5-action {
  min-height: 3.25rem;
  padding: 0.75rem 1.2rem;
  border: 3px solid #050505;
  color: #050505;
  background: #fff;
  box-shadow: 6px 6px 0 #050505;
  font: inherit;
  font-weight: 950;
  text-decoration: none;
  text-transform: uppercase;
  transform: skew(-8deg);
  cursor: pointer;
}

.p5-action-primary {
  color: #fff;
  background: #050505;
  box-shadow: 6px 6px 0 #fff;
}

.p5-action:hover,
.p5-action:focus-visible {
  transform: skew(-8deg) translate(-3px, -3px);
}

.intro-dialogue {
  position: absolute;
  z-index: 6;
  left: clamp(1rem, 5vw, 6rem);
  bottom: clamp(3.6rem, 8vh, 6.5rem);
  width: min(39rem, 54vw);
  padding: 1rem 5.5rem 1rem 1.25rem;
  border: 4px solid #fff;
  color: #fff;
  background: #050505;
  box-shadow: 9px 9px 0 rgba(255, 255, 255, 0.98);
  font: inherit;
  font-size: clamp(0.9rem, 1.35vw, 1.1rem);
  font-weight: 820;
  text-align: left;
  transform: rotate(-1.2deg) skew(-4deg);
  cursor: pointer;
}

.intro-dialogue::after {
  position: absolute;
  right: -2rem;
  bottom: -1.6rem;
  width: 4.5rem;
  height: 3.2rem;
  clip-path: polygon(0 0, 100% 0, 28% 100%);
  content: "";
  background: #050505;
}

.intro-dialogue span {
  display: block;
  margin-bottom: 0.25rem;
  color: #e60012;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.intro-dialogue strong {
  position: absolute;
  top: 50%;
  right: 1rem;
  color: #e60012;
  transform: translateY(-50%) skew(4deg);
}

.intro-scroll-cue {
  position: absolute;
  z-index: 6;
  right: 1.25rem;
  bottom: 1.25rem;
  display: grid;
  gap: 0.5rem;
  justify-items: center;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 900;
  letter-spacing: 0.13em;
  writing-mode: vertical-rl;
}

.intro-scroll-cue i {
  width: 2px;
  height: 3rem;
  background: #fff;
  animation: p5-scroll-cue 1.2s ease-in-out infinite;
}

@keyframes p5-scroll-cue {
  0%, 100% { transform: scaleY(0.3); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
}

.p5-transition {
  z-index: 12;
  display: none;
  overflow: hidden;
  background: #050505;
}

.p5-transition.is-active {
  display: block;
  animation: transition-in 220ms ease-out both;
}

.p5-transition video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.p5-transition::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.55), transparent 60%);
}

.transition-label {
  position: absolute;
  z-index: 2;
  left: 5vw;
  bottom: 10vh;
  display: grid;
  gap: 0.25rem;
  padding: 1rem 1.4rem;
  color: #050505;
  background: #fff;
  border: 4px solid #050505;
  box-shadow: 9px 9px 0 #e60012;
  transform: skew(-8deg) rotate(-1deg);
}

.transition-label span {
  color: #e60012;
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.16em;
}

.transition-label strong {
  font-size: clamp(1.5rem, 4vw, 4rem);
  line-height: 0.9;
}

.transition-skip {
  position: absolute;
  z-index: 3;
  right: 1rem;
  bottom: 1rem;
  padding: 0.55rem 0.9rem;
  border: 2px solid #fff;
  color: #fff;
  background: #050505;
  font-weight: 900;
  cursor: pointer;
}

@keyframes transition-in {
  from { clip-path: polygon(0 0, 0 0, 0 100%, 0 100%); }
  to { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); }
}

.command-hub {
  z-index: 3;
  overflow: hidden;
  background: #100;
}

.hub-background {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
  filter: grayscale(1) contrast(1.4);
}

.hub-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, #050505 0 42%, transparent 67%),
    linear-gradient(0deg, rgba(230, 0, 18, 0.6), transparent 65%);
}

.hub-shade::before {
  position: absolute;
  inset: 0;
  content: "";
  opacity: 0.18;
  background-image: radial-gradient(circle, #fff 0 1.3px, transparent 1.4px);
  background-size: 9px 9px;
}

.hub-heading {
  position: absolute;
  z-index: 4;
  top: clamp(1.5rem, 5vh, 3.5rem);
  left: clamp(1.25rem, 5vw, 6rem);
  width: min(42rem, 58vw);
  transform: rotate(-2deg);
}

.hub-heading span {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  color: #050505;
  background: #fff;
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.15em;
}

.hub-heading h2 {
  max-width: 13ch;
  margin: 0.5rem 0 0;
  color: #fff;
  font-size: clamp(2.2rem, 4.4vw, 4.9rem);
  font-weight: 1000;
  line-height: 0.9;
  text-shadow: 6px 6px 0 #e60012;
}

.command-menu {
  position: absolute;
  z-index: 6;
  top: clamp(20rem, 39vh, 27rem);
  left: clamp(1rem, 7vw, 8rem);
  display: grid;
  width: min(36rem, 48vw);
  gap: 0.55rem;
  transform: rotate(-3deg);
}

.command-menu button {
  position: relative;
  display: grid;
  grid-template-columns: 3rem 1fr auto;
  align-items: center;
  min-height: clamp(4rem, 8vh, 6rem);
  padding: 0.65rem 1.2rem 0.65rem 0.5rem;
  overflow: hidden;
  border: 4px solid #050505;
  color: #050505;
  background: #fff;
  box-shadow: 8px 8px 0 #050505;
  font: inherit;
  text-align: left;
  transform: skew(-10deg);
  cursor: pointer;
  transition: transform 120ms ease, color 120ms ease, background 120ms ease;
}

.command-menu button::before {
  position: absolute;
  inset: 0 auto 0 -35%;
  width: 35%;
  content: "";
  background: #e60012;
  transform: skew(12deg);
  transition: width 160ms ease;
}

.command-menu button:hover,
.command-menu button:focus-visible {
  color: #fff;
  background: #050505;
  transform: skew(-10deg) translateX(1.1rem);
}

.command-menu button:hover::before,
.command-menu button:focus-visible::before {
  width: 75%;
}

.command-menu button span,
.command-menu button strong,
.command-menu button small {
  position: relative;
  z-index: 1;
  transform: skew(10deg);
}

.command-menu button span {
  color: #e60012;
  font-size: 1.1rem;
  font-weight: 1000;
}

.command-menu button strong {
  font-size: clamp(1.4rem, 2.6vw, 2.7rem);
  line-height: 0.9;
}

.command-menu button[data-view="experience"] strong {
  font-size: clamp(1.15rem, 2.05vw, 2.15rem);
}

.command-menu button small {
  font-weight: 900;
}

.hub-character {
  position: absolute;
  z-index: 3;
  right: -5vw;
  bottom: -4vh;
  width: min(66vw, 1080px);
  height: 86vh;
  object-fit: cover;
  object-position: 58% center;
  clip-path: polygon(20% 0, 100% 0, 100% 100%, 0 100%, 12% 70%, 3% 50%);
  filter: contrast(1.1);
}

.hub-utilities {
  position: absolute;
  z-index: 8;
  right: 1.25rem;
  bottom: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.55rem;
}

.hub-utilities a,
.hub-utilities button,
.deck-actions a,
.deck-actions button {
  min-height: 2.75rem;
  padding: 0.55rem 0.85rem;
  border: 2px solid #fff;
  color: #fff;
  background: #050505;
  font: inherit;
  font-size: 0.75rem;
  font-weight: 950;
  text-decoration: none;
  cursor: pointer;
}

.hub-utilities a:hover,
.hub-utilities button:hover,
.hub-utilities a:focus-visible,
.hub-utilities button:focus-visible,
.deck-actions a:hover,
.deck-actions button:hover,
.deck-actions a:focus-visible,
.deck-actions button:focus-visible {
  color: #050505;
  background: #fff;
}

.content-deck {
  z-index: 5;
  overflow: hidden;
  color: #050505;
  background:
    linear-gradient(145deg, transparent 0 77%, #e60012 77.2% 100%),
    #f7f4ee;
}

.content-deck::before {
  position: absolute;
  inset: 0;
  z-index: 0;
  content: "";
  pointer-events: none;
  opacity: 0.08;
  background-image: radial-gradient(circle, #050505 0 1.2px, transparent 1.3px);
  background-size: 8px 8px;
}

.deck-header {
  position: absolute;
  z-index: 10;
  inset: 0 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 4.5rem;
  padding: 0.65rem clamp(1rem, 3vw, 3rem);
  color: #fff;
  background: #050505;
  border-bottom: 0.35rem solid #e60012;
}

.deck-back {
  justify-self: start;
  border: 0;
  color: #fff;
  background: transparent;
  font: inherit;
  font-weight: 950;
  cursor: pointer;
}

.deck-back span {
  display: inline-grid;
  width: 2rem;
  height: 2rem;
  margin-right: 0.35rem;
  place-items: center;
  color: #050505;
  background: #fff;
  clip-path: polygon(20% 0, 100% 0, 85% 100%, 0 90%);
}

.deck-current {
  display: grid;
  justify-items: center;
  line-height: 1;
}

.deck-current span {
  color: #e60012;
  font-size: 0.62rem;
  font-weight: 950;
  letter-spacing: 0.17em;
}

.deck-current strong {
  font-size: clamp(1rem, 2vw, 1.7rem);
}

.deck-actions {
  display: flex;
  justify-self: end;
  gap: 0.45rem;
}

.deck-progress {
  position: absolute;
  z-index: 11;
  top: 4.5rem;
  left: 0;
  width: 100%;
  height: 0.28rem;
  background: rgba(5, 5, 5, 0.12);
}

.deck-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: #e60012;
  transition: width 120ms linear;
}

.interactive-panel-host {
  position: absolute;
  z-index: 2;
  inset: 4.8rem 0 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-color: #e60012 #050505;
}

.interactive-panel-host > section {
  min-height: calc(100dvh - 4.8rem);
}

.interactive-panel-host > section[hidden] {
  display: none !important;
}

.combined-experience-work #experience {
  padding-bottom: 1rem;
}

.combined-experience-work #work {
  margin-top: 0;
  border-top: 10px solid #050505;
}

.interactive-mode #about,
.interactive-mode #work,
.interactive-mode #resume,
.interactive-mode #contact,
.interactive-generated-panel {
  position: relative;
  width: min(1260px, calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 6rem) clamp(1rem, 4vw, 4rem);
  background: transparent;
}

.interactive-mode #about,
.interactive-mode #resume {
  display: grid;
}

.interactive-mode #about {
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: clamp(2rem, 4vw, 3.8rem);
}

.about-portrait-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: min(100%, 58rem);
  margin: 0 auto;
  gap: clamp(1.2rem, 3vw, 2.5rem);
  align-items: start;
}

.interactive-mode #about h2,
.interactive-mode #work h2,
.interactive-mode #resume h2,
.interactive-mode #contact h2,
.interactive-generated-panel h2 {
  color: #050505;
  font-weight: 1000;
  letter-spacing: -0.04em;
  text-shadow: 4px 4px 0 rgba(230, 0, 18, 0.2);
}

.interactive-mode #about .about-heading {
  display: grid;
  justify-items: start;
  width: 100%;
}

.interactive-mode #about .about-heading h2 {
  max-width: 20ch;
  margin: 0.8rem 0 0;
  font-size: clamp(2.8rem, 5.6vw, 5.8rem);
  line-height: 0.96;
}

.interactive-mode #about .eyebrow,
.interactive-mode #work .eyebrow,
.interactive-mode #resume .eyebrow,
.interactive-mode #contact .eyebrow {
  display: inline-block;
  padding: 0.3rem 0.55rem;
  color: #fff;
  background: #e60012;
  transform: skew(-8deg);
}

.interactive-mode .about-copy {
  display: grid;
  gap: 1.5rem;
  width: 100%;
  padding: clamp(1.5rem, 3vw, 2.3rem);
  border: 4px solid #050505;
  background: #fff;
  box-shadow: 10px 10px 0 #050505;
  transform: none;
}

.interactive-mode .about-copy > p {
  max-width: 72rem;
  margin: 0;
  font-size: clamp(1rem, 1.35vw, 1.2rem);
  line-height: 1.75;
}

.interactive-mode .about-copy .tag-cloud {
  margin-top: 0;
  gap: 0.7rem;
}

.interactive-mode .about-portrait {
  overflow: hidden;
  border: 5px solid #050505;
  background: #e60012;
  box-shadow: 12px 12px 0 #e60012;
  transform: rotate(-1deg);
}

.interactive-mode .about-portrait img {
  width: 100%;
  min-height: 0;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: 65% center;
}

.interactive-mode .about-portrait figcaption {
  padding: 0.65rem 0.8rem;
  color: #fff;
  background: #050505;
  font-weight: 900;
}

.interactive-mode .about-portrait-pair .about-photo {
  box-shadow: 12px 12px 0 #050505;
  transform: rotate(1deg);
}

.interactive-mode .about-photo img {
  object-position: 52% center;
}

.interactive-section-heading {
  display: grid;
  max-width: 62rem;
  margin-bottom: 2.5rem;
}

.interactive-section-heading > p {
  justify-self: start;
  margin: 0 0 0.75rem;
  padding: 0.35rem 0.7rem;
  color: #fff;
  background: #e60012;
  font-weight: 950;
  letter-spacing: 0.12em;
  transform: skew(-8deg);
}

.interactive-section-heading > span {
  font-weight: 780;
}

.experience-timeline {
  position: relative;
  display: grid;
  gap: 1rem;
  max-width: 66rem;
  margin-left: clamp(0rem, 8vw, 8rem);
}

.experience-timeline::before {
  position: absolute;
  top: 1rem;
  bottom: 1rem;
  left: 2rem;
  width: 0.55rem;
  content: "";
  background: #e60012;
  transform: skew(-12deg);
}

.timeline-item {
  position: relative;
}

.timeline-item button {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  width: 100%;
  min-height: 6rem;
  padding: 0.9rem 1.2rem;
  border: 4px solid #050505;
  color: #050505;
  background: #fff;
  box-shadow: 9px 9px 0 #050505;
  font: inherit;
  text-align: left;
  transform: skew(-5deg);
  cursor: pointer;
}

.timeline-item button:hover,
.timeline-item button:focus-visible,
.timeline-item.is-open button {
  color: #fff;
  background: #050505;
  box-shadow: 9px 9px 0 #e60012;
}

.timeline-item button span {
  grid-row: 1 / 3;
  align-self: center;
  color: #e60012;
  font-size: 2rem;
  font-weight: 1000;
}

.timeline-item button strong {
  font-size: clamp(1.2rem, 2.5vw, 2rem);
  line-height: 1;
}

.timeline-item button small {
  font-weight: 760;
}

.timeline-detail {
  max-height: 0;
  margin: 0 2rem;
  padding: 0 1.2rem;
  overflow: hidden;
  color: #fff;
  background: #e60012;
  font-weight: 760;
  transition: max-height 260ms ease, padding 260ms ease;
}

.timeline-item.is-open .timeline-detail {
  max-height: 10rem;
  padding: 1.2rem;
}

.skill-command-grid {
  position: relative;
  width: min(100%, 70rem);
  min-height: 38rem;
  margin-top: 1rem;
  overflow: hidden;
  border: 5px solid #050505;
  background:
    radial-gradient(circle at 50% 50%, transparent 0 31%, rgba(255, 255, 255, 0.07) 31.4% 31.8%, transparent 32.2%),
    linear-gradient(145deg, #080808 0 62%, #171717 62% 100%);
  box-shadow: 12px 12px 0 #e60012;
  isolation: isolate;
}

.skill-command-grid::before,
.skill-command-grid::after {
  position: absolute;
  inset: 50% auto auto 50%;
  z-index: -1;
  width: 33rem;
  aspect-ratio: 1;
  content: "";
  transform: translate(-50%, -50%) rotate(-8deg);
  clip-path: polygon(50% 0%, 61% 34%, 98% 35%, 68% 56%, 79% 92%, 50% 70%, 21% 92%, 32% 56%, 2% 35%, 39% 34%);
}

.skill-command-grid::before {
  background: #333;
}

.skill-command-grid::after {
  width: 25rem;
  background: #171717;
}

.skill-star {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  display: grid;
  place-content: center;
  width: 17rem;
  aspect-ratio: 1;
  color: #fff;
  text-align: center;
  transform: translate(-50%, -50%) rotate(-7deg);
  clip-path: polygon(50% 0%, 61% 34%, 98% 35%, 68% 56%, 79% 92%, 50% 70%, 21% 92%, 32% 56%, 2% 35%, 39% 34%);
  background: #050505;
  filter: drop-shadow(10px 10px 0 #f6ad00);
}

.skill-star span,
.skill-star strong,
.skill-star small {
  display: block;
  transform: rotate(7deg);
}

.skill-star span {
  color: #f6ad00;
  font-size: 0.75rem;
  font-weight: 1000;
  letter-spacing: 0.18em;
}

.skill-star strong {
  max-width: 9rem;
  margin: 0.15rem auto;
  font-family: "Arial Black", Impact, sans-serif;
  font-size: 1.5rem;
  line-height: 0.9;
  overflow-wrap: anywhere;
}

.skill-star small {
  font-weight: 1000;
  font-style: italic;
}

.skill-command-grid button {
  position: absolute;
  z-index: 2;
  display: grid;
  width: clamp(12rem, 23vw, 17rem);
  min-height: 7rem;
  padding: 0.8rem 1rem;
  overflow: hidden;
  border: 4px solid #050505;
  color: #050505;
  background: #f6ad00;
  box-shadow: 8px 8px 0 #fff;
  font: inherit;
  text-align: left;
  transform: rotate(-4deg);
  cursor: pointer;
}

.skill-command-grid button:nth-of-type(1) {
  top: 7%;
  left: 9%;
}

.skill-command-grid button:nth-of-type(2) {
  top: 12%;
  right: 7%;
  transform: rotate(4deg);
}

.skill-command-grid button:nth-of-type(3) {
  right: 8%;
  bottom: 8%;
  transform: rotate(-3deg);
}

.skill-command-grid button:nth-of-type(4) {
  bottom: 10%;
  left: 8%;
  transform: rotate(3deg);
}

.skill-command-grid button:hover,
.skill-command-grid button:focus-visible,
.skill-command-grid button[aria-expanded="true"] {
  color: #fff;
  background: #e60012;
  box-shadow: 8px 8px 0 #f6ad00;
  outline: 3px solid #fff;
  outline-offset: 3px;
}

.skill-command-grid button span {
  color: inherit;
  font-weight: 1000;
}

.skill-command-grid button strong {
  font-family: "Arial Black", Impact, sans-serif;
  font-size: clamp(1.15rem, 2.5vw, 2rem);
  line-height: 1;
}

.skill-command-grid button em {
  position: absolute;
  top: 0.7rem;
  right: 0.8rem;
  padding: 0.15rem 0.4rem;
  color: #fff;
  background: #050505;
  font-weight: 1000;
  font-style: normal;
}

.skill-command-grid button small {
  font-weight: 750;
}

.skill-readout {
  max-width: 56rem;
  margin: 2.2rem auto 0;
  padding: 1.3rem 1.5rem;
  color: #fff;
  background: #e60012;
  border: 4px solid #050505;
  box-shadow: 10px 10px 0 #050505;
  transform: rotate(-1deg);
}

.skill-readout span {
  color: #050505;
  font-size: 0.72rem;
  font-weight: 1000;
  letter-spacing: 0.14em;
}

.skill-readout h3 {
  margin: 0.2rem 0;
  font-size: clamp(1.8rem, 4vw, 3.3rem);
}

.interactive-mode #work {
  padding-inline: clamp(1rem, 3vw, 3rem);
}

.interactive-mode #work .section-heading {
  margin-bottom: 1.5rem;
}

.interactive-mode #work .work-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(19rem, 1fr));
  gap: 1rem;
  width: max-content;
  max-width: none;
  overflow: visible;
  padding: 1rem 4rem 3rem 1rem;
}

.interactive-mode #work .case-card {
  width: min(72vw, 28rem);
  min-height: 31rem;
  border: 5px solid #050505;
  background: #fff;
  box-shadow: 12px 12px 0 #050505;
  transform: rotate(-1.2deg);
  scroll-snap-align: start;
}

.interactive-mode #work .case-card:nth-child(even) {
  transform: translateY(1rem) rotate(1deg);
}

.interactive-mode #work .case-card .text-link {
  display: inline-flex;
  min-height: 3rem;
  align-items: center;
  padding: 0.55rem 0.9rem;
  color: #fff;
  background: #e60012;
  border: 3px solid #050505;
  font-weight: 950;
  text-decoration: none;
}

.interactive-mode #work .work-carousel-controls {
  position: sticky;
  right: 1rem;
  bottom: 1rem;
  z-index: 3;
  width: fit-content;
  margin-left: auto;
  color: #fff;
  background: #050505;
  border: 3px solid #fff;
}

.interactive-mode #resume {
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: start;
}

.interactive-mode #resume .resume-panel,
.interactive-mode #contact .contact-card {
  border: 4px solid #050505;
  background: #fff;
  box-shadow: 10px 10px 0 #e60012;
}

.interactive-mode #contact {
  min-height: calc(100dvh - 4.8rem);
  display: grid;
  align-items: center;
}

.interactive-mode #contact .contact-inner {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

body.interactive-mode #contact .contact-inner > div:first-child,
body.interactive-mode #contact .contact-inner > div:first-child p {
  color: #050505;
}

body.interactive-mode #contact .contact-inner .eyebrow {
  color: #e60012;
}

.interactive-mode #contact .contact-card {
  position: relative;
  padding: 4rem 1.5rem 1.5rem;
  overflow: hidden;
  background: #050505;
}

.interactive-mode #contact .contact-card::before {
  position: absolute;
  top: 0;
  left: 0;
  padding: 0.6rem 1rem;
  content: "PHONE / CONTACT";
  color: #050505;
  background: #e60012;
  font-weight: 1000;
}

.interactive-mode #contact .contact-card a {
  color: #fff;
}

.interactive-mode .tag-cloud span,
.interactive-mode .mini-tags span {
  border-color: #050505;
  color: #050505;
  background: #fff;
}

.case-overlay {
  z-index: 400 !important;
}

.lightbox {
  z-index: 500 !important;
}

@media (max-width: 900px) {
  .intro-character {
    right: -30vw;
    width: 110vw;
    opacity: 0.82;
  }

  .intro-copy {
    top: 9vh;
    width: calc(100% - 2rem);
    left: 1rem;
  }

  .intro-copy h1 {
    font-size: clamp(3rem, 13vw, 6rem);
  }

  .intro-statement {
    width: min(34rem, 82%);
  }

  .intro-dialogue {
    left: 1rem;
    bottom: 5rem;
    width: calc(100% - 4rem);
  }

  .hub-character {
    right: -35vw;
    width: 120vw;
    opacity: 0.65;
  }

  .command-menu {
    left: 1rem;
    width: min(36rem, calc(100% - 2rem));
  }

  .command-menu button {
    grid-template-columns: 2.5rem 1fr auto;
  }

  .interactive-mode #about {
    grid-template-columns: 1fr;
  }

  .interactive-mode #about .about-portrait {
    max-width: 32rem;
  }

  .interactive-mode #about .about-portrait-pair {
    width: 100%;
    max-width: 52rem;
  }
}

@media (max-width: 680px) {
  .intro-copy {
    top: 7vh;
  }

  .intro-copy h1 {
    max-width: 10ch;
    font-size: clamp(2.75rem, 15vw, 5.2rem);
  }

  .intro-statement {
    width: calc(100% - 1rem);
    font-size: 0.84rem;
  }

  .intro-actions {
    gap: 0.5rem;
  }

  .p5-action {
    min-height: 2.8rem;
    font-size: 0.76rem;
  }

  .intro-dialogue {
    bottom: 4.2rem;
    width: calc(100% - 2rem);
    padding-right: 4.4rem;
    font-size: 0.8rem;
  }

  .hub-heading {
    top: 1.1rem;
    left: 1rem;
    width: calc(100% - 2rem);
  }

  .hub-heading h2 {
    font-size: 2.2rem;
  }

  .command-menu {
    top: clamp(11rem, 25vh, 13rem);
    gap: 0.4rem;
  }

  .command-menu button {
    min-height: 3.8rem;
    grid-template-columns: 2rem 1fr auto;
    padding: 0.45rem 0.8rem 0.45rem 0.35rem;
  }

  .command-menu button strong {
    font-size: 1.25rem;
  }

  .command-menu button small {
    font-size: 0.7rem;
  }

  .hub-utilities {
    right: 0.75rem;
    bottom: 0.75rem;
  }

  .hub-utilities a,
  .hub-utilities button {
    min-height: 2.6rem;
    padding: 0.45rem 0.6rem;
    font-size: 0.65rem;
  }

  .deck-header {
    grid-template-columns: auto 1fr auto;
    padding-inline: 0.65rem;
  }

  .deck-current {
    justify-self: start;
    margin-left: 0.4rem;
  }

  .deck-actions a {
    display: none;
  }

  .deck-actions button {
    padding-inline: 0.55rem;
    font-size: 0.65rem;
  }

  .interactive-mode #about,
  .interactive-mode #work,
  .interactive-mode #resume,
  .interactive-mode #contact,
  .interactive-generated-panel {
    width: calc(100% - 1rem);
    padding: 2rem 0.55rem 5rem;
  }

  .interactive-mode #about {
    gap: 1.2rem;
  }

  .interactive-mode .about-portrait img {
    min-height: 18rem;
  }

  .about-portrait-pair {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .interactive-mode .about-portrait-pair .about-photo {
    transform: rotate(-1.5deg);
  }

  .experience-timeline {
    margin-left: 0;
  }

  .timeline-item button {
    grid-template-columns: 3rem 1fr;
    min-height: 5.5rem;
  }

  .skill-command-grid {
    min-height: 34rem;
  }

  .skill-command-grid button {
    width: 10.5rem;
    min-height: 6.2rem;
    padding: 0.65rem 0.7rem;
    box-shadow: 5px 5px 0 #fff;
  }

  .skill-command-grid button strong {
    font-size: 1rem;
  }

  .skill-command-grid button small {
    font-size: 0.68rem;
    line-height: 1.15;
  }

  .skill-command-grid button em {
    top: 0.45rem;
    right: 0.45rem;
    font-size: 0.72rem;
  }

  .skill-command-grid button:nth-of-type(1) {
    top: 4%;
    left: 3%;
  }

  .skill-command-grid button:nth-of-type(2) {
    top: 7%;
    right: 2%;
  }

  .skill-command-grid button:nth-of-type(3) {
    right: 3%;
    bottom: 5%;
  }

  .skill-command-grid button:nth-of-type(4) {
    bottom: 7%;
    left: 2%;
  }

  .skill-command-grid::before {
    width: 25rem;
  }

  .skill-command-grid::after {
    width: 19rem;
  }

  .skill-star {
    width: 13rem;
  }

  .skill-star strong {
    max-width: 7.5rem;
    font-size: 1.05rem;
  }

  .skill-readout {
    margin-left: 0.4rem;
  }

  .interactive-mode #work .work-grid {
    grid-template-columns: repeat(4, 85vw);
    gap: 0.8rem;
    padding-right: 1rem;
  }

  .interactive-mode #work .case-card {
    width: 85vw;
    min-height: 28rem;
  }

  .interactive-mode #resume,
  .interactive-mode #contact .contact-inner {
    grid-template-columns: 1fr;
  }

  .transition-label {
    left: 1rem;
    bottom: 5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .intro-scroll-cue i,
  .p5-transition.is-active {
    animation: none;
  }

  .command-menu button,
  .timeline-detail,
  .deck-progress span {
    transition: none;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

body.nav-open {
  overflow: hidden;
}

a {
  color: inherit;
}

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

.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;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(251, 250, 247, 0.88);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(223, 228, 234, 0.78);
}

.nav {
  width: min(var(--max-width), calc(100% - 40px));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  text-decoration: none;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--ink);
  font-size: 0.82rem;
  letter-spacing: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links a {
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 700;
  padding: 8px 12px;
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--ink);
  background: #fff;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
  padding: 10px;
}

.nav-toggle span:not(.sr-only) {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--ink);
  border-radius: 2px;
}

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

section[id] {
  scroll-margin-top: 92px;
}

.hero {
  min-height: min(760px, calc(100vh - 72px));
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(300px, 0.9fr);
  align-items: center;
  gap: clamp(32px, 5vw, 64px);
  padding: 62px 0 52px;
}

.hero-copy {
  position: relative;
  z-index: 2;
  min-width: 0;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 720px;
  margin-bottom: 22px;
  font-size: clamp(2.85rem, 6.7vw, 5.85rem);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 4.2vw, 4.2rem);
  line-height: 1.02;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.18rem;
  line-height: 1.22;
}

.hero-subtitle {
  max-width: 680px;
  color: var(--muted);
  font-size: clamp(1.08rem, 2vw, 1.35rem);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 11px 18px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: #fff;
  background: var(--ink);
  box-shadow: 0 12px 28px rgba(32, 36, 42, 0.18);
}

.button-secondary {
  color: var(--ink);
  background: #fff;
  border-color: var(--line);
}

.button-quiet {
  color: var(--teal);
  background: transparent;
  border-color: rgba(18, 111, 106, 0.32);
}

.hero-board {
  position: relative;
  z-index: 1;
  min-width: 0;
  min-height: 480px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-auto-rows: minmax(156px, auto);
  gap: 16px;
}

.board-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 156px;
  border: 1px solid rgba(223, 228, 234, 0.92);
  border-radius: var(--radius);
  padding: 22px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(242, 245, 247, 0.82)),
    repeating-linear-gradient(45deg, rgba(61, 115, 185, 0.14) 0 12px, rgba(18, 111, 106, 0.1) 12px 24px);
  box-shadow: var(--shadow);
}

.board-card::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(32, 36, 42, 0.11);
  border-radius: 6px;
}

.board-card strong,
.board-label {
  position: relative;
}

.board-card strong {
  display: block;
  max-width: 12rem;
  font-size: clamp(1.35rem, 2.4vw, 2.15rem);
  line-height: 1.05;
}

.board-card-large {
  grid-row: span 2;
  min-height: 330px;
  background:
    linear-gradient(160deg, rgba(18, 111, 106, 0.9), rgba(32, 36, 42, 0.9)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.15) 0 8px, transparent 8px 18px);
  color: #fff;
}

.board-card-accent {
  background:
    linear-gradient(145deg, rgba(223, 90, 68, 0.9), rgba(241, 184, 69, 0.82)),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.22) 0 8px, transparent 8px 18px);
  color: #fff;
}

.board-label {
  width: max-content;
  max-width: 100%;
  margin-bottom: 12px;
  border-radius: 999px;
  padding: 5px 10px;
  background: rgba(255, 255, 255, 0.76);
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.board-card-large .board-label,
.board-card-accent .board-label {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.signal-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.signal-strip div {
  min-height: 118px;
  padding: 26px clamp(20px, 4vw, 42px);
  border-right: 1px solid var(--line);
}

.signal-strip div:last-child {
  border-right: 0;
}

.signal-strip strong,
.signal-strip span {
  display: block;
}

.signal-strip strong {
  margin-bottom: 6px;
}

.signal-strip span {
  color: var(--muted);
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.78fr) minmax(0, 1.22fr);
  gap: clamp(28px, 5vw, 72px);
  padding: 110px 0;
}

.about-copy {
  color: var(--muted);
  font-size: 1.08rem;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.tag-cloud span,
.mini-tags span,
.role-list li {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 800;
  padding: 7px 11px;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 360px);
  gap: 32px;
  align-items: end;
  margin-bottom: 32px;
}

.section-note {
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 0.95rem;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.case-card {
  display: flex;
  flex-direction: column;
  min-height: 390px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  background: #fff;
  box-shadow: 0 10px 34px rgba(25, 33, 43, 0.06);
}

.case-card:nth-child(2) {
  border-top: 5px solid var(--sky);
}

.case-card:nth-child(3) {
  border-top: 5px solid var(--coral);
}

.case-card:nth-child(4) {
  border-top: 5px solid var(--leaf);
}

.case-card:first-child {
  border-top: 5px solid var(--teal);
}

.card-topline,
.case-kicker {
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.case-card p {
  color: var(--muted);
}

.case-card p + p {
  margin-top: -4px;
}

.card-result {
  border-left: 3px solid var(--sun);
  padding-left: 10px;
  color: var(--ink) !important;
  font-weight: 800;
}

.mini-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: auto 0 18px;
  padding-top: 18px;
}

.mini-tags span {
  font-size: 0.75rem;
  padding: 5px 9px;
}

.text-link {
  color: var(--teal);
  font-weight: 900;
  text-decoration: none;
}

.text-link:hover {
  text-decoration: underline;
}

.case-study {
  padding: 110px 0 0;
}

.case-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 380px);
  gap: clamp(30px, 5vw, 72px);
  border-top: 1px solid var(--line);
  padding-top: 34px;
}

.case-layout.is-condensed {
  grid-template-columns: minmax(0, 940px);
}

.case-main,
.case-sidebar {
  min-width: 0;
}

.case-main h2 {
  max-width: min(820px, 100%);
}

.case-overview {
  max-width: min(820px, 100%);
  color: var(--muted);
  font-size: 1.12rem;
}

.case-subtitle {
  max-width: min(820px, 100%);
  margin: -6px 0 18px;
  color: var(--teal);
  font-size: clamp(1.2rem, 2.4vw, 1.65rem);
  font-weight: 900;
  line-height: 1.2;
}

.detail-block {
  margin-top: 34px;
}

.featured-contributions {
  position: relative;
  max-width: 1080px;
  margin: 40px 0 28px;
  border: 4px solid var(--ink);
  padding: clamp(24px, 4vw, 44px);
  background:
    linear-gradient(135deg, rgba(230, 0, 24, 0.12), transparent 34%),
    var(--paper);
  box-shadow: 12px 12px 0 var(--red);
}

.featured-contributions::before {
  content: "INTERNSHIP SCOPE";
  display: inline-block;
  margin-bottom: 14px;
  padding: 7px 12px;
  color: #fff;
  background: var(--red);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.16em;
  transform: rotate(-1.5deg);
}

.featured-contributions > h3 {
  margin: 0 0 12px;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  line-height: 0.98;
  text-transform: uppercase;
}

.featured-contributions > p {
  max-width: 900px;
}

.detail-block h3,
.skills-panel h3 {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
}

.detail-block ul,
.role-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.detail-block li {
  position: relative;
  margin: 0 0 12px;
  padding-left: 22px;
  color: var(--muted);
}

.detail-block li::before {
  content: "";
  position: absolute;
  top: 0.75em;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--coral);
}

.impact-block {
  border-left: 4px solid var(--sun);
  padding-left: 22px;
}

.confidential-note {
  max-width: 820px;
  border-left: 4px solid var(--teal);
  margin-bottom: 18px;
  padding: 10px 0 10px 16px;
  color: var(--muted);
  background: linear-gradient(90deg, rgba(18, 111, 106, 0.08), rgba(18, 111, 106, 0));
}

.workflow-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 900px;
}

.workflow-strip span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  border: 1px solid rgba(18, 111, 106, 0.22);
  border-radius: 999px;
  padding: 6px 11px;
  background: #fff;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.25;
}

.workflow-strip span:not(:last-child)::after {
  content: "\2192";
  margin-left: 10px;
  color: var(--teal);
  font-weight: 900;
}

.media-gallery {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: inline mandatory;
  padding-bottom: 10px;
  margin-right: -10px;
  padding-right: 10px;
}

.media-gallery::-webkit-scrollbar {
  height: 8px;
}

.media-gallery::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(32, 36, 42, 0.22);
}

.media-gallery::-webkit-scrollbar-track {
  background: rgba(223, 228, 234, 0.5);
}

.media-gallery {
  gap: 16px;
  margin-top: 18px;
}

.compact-gallery {
  max-width: 760px;
}

.media-card {
  flex: 0 0 min(420px, 86vw);
  scroll-snap-align: start;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 10px 30px rgba(25, 33, 43, 0.06);
}

.media-card img {
  cursor: zoom-in;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background: var(--surface-alt);
}

.poster-series-title {
  margin: 34px 0 8px;
  font-family: "Arial Black", Impact, sans-serif;
  font-size: clamp(1.45rem, 3vw, 2.4rem);
  line-height: 1;
  text-transform: uppercase;
}

.poster-gallery .media-card {
  flex-basis: min(280px, 78vw);
}

.poster-gallery .media-card img {
  aspect-ratio: 2 / 3;
  object-fit: cover;
  object-position: center top;
}

.media-card figcaption {
  min-height: 94px;
  padding: 13px 14px 15px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.visual-label,
.visual-title {
  display: block;
}

.visual-label {
  margin-bottom: 4px;
  color: var(--teal);
  font-size: 0.76rem;
  font-weight: 900;
}

.visual-title {
  margin-bottom: 5px;
  color: var(--ink);
  font-weight: 900;
}

.image-action {
  display: inline-flex;
  align-items: center;
  margin-top: 10px;
  border: 1px solid rgba(18, 111, 106, 0.32);
  border-radius: 999px;
  padding: 6px 10px;
  color: var(--teal);
  background: #fff;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 900;
  cursor: pointer;
}

.featured-evidence {
  margin: 28px 0 10px;
  border-top: 1px solid var(--line);
  padding-top: 24px;
}

.evidence-header {
  max-width: 820px;
}

.evidence-header h3 {
  margin-bottom: 8px;
  font-size: 1rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.evidence-header p {
  color: var(--muted);
}

.featured-gallery {
  margin-top: 14px;
}

.evidence-doc-grid {
  margin-top: 16px;
}

.evidence-doc h4 {
  margin-bottom: 14px;
}

.doc-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.case-snapshot {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 24px 0 8px;
}

.snapshot-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  background: #fff;
}

.snapshot-item span {
  display: block;
  margin-bottom: 5px;
  color: var(--teal);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.snapshot-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.supporting-evidence {
  margin-top: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.supporting-evidence > summary {
  cursor: pointer;
  padding: 16px 18px;
  color: var(--ink);
  font-weight: 900;
}

.supporting-evidence[open] {
  padding-bottom: 18px;
}

.supporting-evidence[open] > summary {
  border-bottom: 1px solid var(--line);
}

.supporting-evidence .detail-block {
  margin: 24px 18px 0;
}

.supporting-sidebar {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 16px;
  margin: 28px 18px 0;
}

.supporting-sidebar .summary-stack {
  margin-top: 0;
}

.lightbox-open {
  overflow: hidden;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  grid-template-columns: 52px minmax(0, 1fr) 52px;
  align-items: center;
  gap: 18px;
  padding: 24px;
  background: rgba(12, 18, 24, 0.94);
}

.lightbox.open {
  display: grid;
}

.lightbox-stage {
  display: grid;
  justify-items: center;
  min-width: 0;
  margin: 0;
}

.lightbox img {
  max-width: min(1120px, 100%);
  max-height: 78vh;
  object-fit: contain;
  background: #fff;
}

.lightbox-stage figcaption {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  width: min(1120px, 100%);
  margin-top: 12px;
  color: #fff;
  font-size: 0.9rem;
  line-height: 1.45;
}

.lightbox-count {
  flex: 0 0 auto;
  color: rgba(255, 255, 255, 0.72);
}

.lightbox button {
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 50%;
  padding: 0;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  font: inherit;
  font-size: 1.45rem;
  font-weight: 800;
  cursor: pointer;
}

.lightbox button:hover,
.lightbox button:focus-visible {
  background: rgba(255, 255, 255, 0.22);
}

.lightbox-close {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 2;
}

.lightbox-nav {
  position: relative;
  justify-self: center;
}

.document-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.doc-card,
.summary-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.doc-card {
  padding: 20px;
}

.doc-card h4 {
  margin: 8px 0 10px;
  font-size: 1.05rem;
  line-height: 1.25;
}

.doc-card p {
  color: var(--muted);
  font-size: 0.94rem;
}

.doc-card p:last-child {
  margin-bottom: 0;
}

.doc-link {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  border: 1px solid rgba(18, 111, 106, 0.32);
  border-radius: 999px;
  padding: 6px 11px;
  color: var(--teal);
  background: #fff;
  font-size: 0.82rem;
  font-weight: 900;
  text-decoration: none;
}

.doc-link:hover {
  background: rgba(18, 111, 106, 0.08);
}

.doc-type {
  display: inline-flex;
  border-radius: 999px;
  padding: 5px 9px;
  color: #fff;
  background: var(--sky);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.case-sidebar {
  position: sticky;
  top: 96px;
  align-self: start;
}

.skills-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  background: #fff;
}

.skills-panel p {
  color: var(--muted);
}

.summary-stack {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.summary-card {
  padding: 18px;
}

.summary-card span {
  display: block;
  margin-bottom: 8px;
  color: var(--teal);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.summary-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.visual-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 12px;
}

.visual-slot {
  min-height: 138px;
  margin: 0;
  display: grid;
  place-items: end start;
  overflow: hidden;
  border: 1px dashed rgba(32, 36, 42, 0.24);
  border-radius: var(--radius);
  padding: 14px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.75), rgba(242, 245, 247, 0.7)),
    repeating-linear-gradient(135deg, rgba(104, 87, 198, 0.14) 0 10px, rgba(18, 111, 106, 0.12) 10px 20px);
}

.visual-slot span {
  max-width: 100%;
  border-radius: 999px;
  padding: 5px 8px;
  background: rgba(255, 255, 255, 0.84);
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 900;
}

.resume-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: clamp(30px, 5vw, 72px);
  padding: 120px 0;
}

.resume-section p {
  max-width: 720px;
  color: var(--muted);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.resume-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  background: #fff;
  box-shadow: 0 12px 38px rgba(25, 33, 43, 0.07);
}

.role-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.contact-section {
  background: var(--ink);
  color: #fff;
}

.contact-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 410px);
  gap: 40px;
  align-items: center;
  padding: 86px 0;
}

.contact-inner .eyebrow {
  color: var(--sun);
}

.contact-inner p {
  max-width: 680px;
  color: rgba(255, 255, 255, 0.72);
}

.contact-card {
  display: grid;
  gap: 10px;
}

.contact-card a {
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  padding: 14px 16px;
  color: #fff;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.06);
}

.contact-card a:hover {
  background: rgba(255, 255, 255, 0.12);
}

.footer {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 86px;
  padding: 24px 20px;
  color: var(--muted);
  text-align: center;
  background: #fff;
}

.footer p {
  margin: 0;
}

@media (max-width: 1180px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-bottom: 36px;
  }

  .hero-copy {
    max-width: 820px;
  }

  .hero-board {
    width: min(820px, 100%);
    min-height: 410px;
  }
}

@media (max-width: 1040px) {
  .hero,
  .about-grid,
  .section-heading,
  .case-layout,
  .resume-section,
  .contact-inner {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-bottom: 36px;
  }

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

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

  .case-sidebar {
    position: static;
  }
}

@media (max-width: 760px) {
  .nav {
    width: min(100% - 28px, var(--max-width));
  }

  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 72px;
    left: 14px;
    right: 14px;
    display: grid;
    gap: 8px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity 160ms ease, transform 160ms ease;
  }

  body.nav-open .nav-links {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-links a {
    border-radius: 6px;
    padding: 12px;
  }

  .section-shell {
    width: min(100% - 28px, var(--max-width));
  }

  .hero {
    padding: 52px 0 42px;
  }

  h1 {
    font-size: clamp(2.65rem, 14vw, 4.2rem);
  }

  h2 {
    font-size: clamp(2rem, 10vw, 3rem);
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .button-row {
    display: grid;
    grid-template-columns: 1fr;
  }

  .work-grid,
  .document-grid,
  .visual-grid,
  .signal-strip {
    grid-template-columns: 1fr;
  }

  .hero-board {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    min-height: auto;
  }

  .hero-board {
    min-height: auto;
  }

  .board-card,
  .board-card-large {
    min-height: 190px;
  }

  .signal-strip div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .signal-strip div:last-child {
    border-bottom: 0;
  }

  .about-grid,
  .case-study,
  .resume-section {
    padding-top: 78px;
  }

  .about-grid,
  .resume-section {
    padding-bottom: 78px;
  }

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

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

  .supporting-sidebar {
    grid-template-columns: 1fr;
  }

  .lightbox {
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    gap: 8px;
    padding: 18px 8px;
  }

  .lightbox button {
    width: 40px;
    height: 40px;
  }

  .lightbox-stage figcaption {
    display: block;
    padding: 0 8px;
  }

  .lightbox-count {
    display: block;
    margin-top: 6px;
  }
}

@media (max-width: 520px) {
  h1 {
    font-size: clamp(2.45rem, 12vw, 3.55rem);
  }

  .hero-board {
    grid-template-columns: 1fr;
  }

  .board-card,
  .board-card-large {
    min-height: 150px;
  }

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

  .lightbox-stage {
    grid-column: 1;
    grid-row: 1;
  }

  .lightbox-nav {
    position: fixed;
    top: 50%;
    z-index: 2;
    transform: translateY(-50%);
  }

  .lightbox-prev {
    left: 8px;
  }

  .lightbox-next {
    right: 8px;
  }
}

/* Red / black / white graphic rebrand */
body {
  background: var(--paper);
}

::selection {
  color: var(--white);
  background: var(--red);
}

.site-header {
  color: var(--white);
  background: rgba(8, 8, 8, 0.96);
  border-bottom: 4px solid var(--red);
  backdrop-filter: none;
}

.brand {
  gap: 12px;
  color: var(--white);
  font-family: "Arial Black", Impact, sans-serif;
  font-size: 0.92rem;
  letter-spacing: -0.035em;
}

.brand-mark {
  width: 42px;
  height: 36px;
  border: 3px solid var(--white);
  border-radius: 0;
  color: var(--white);
  background: var(--red);
  transform: skewX(-9deg) rotate(-2deg);
}

.nav-links a {
  border-radius: 0;
  color: rgba(255, 255, 255, 0.78);
  font-family: "Arial Black", Impact, sans-serif;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
  background: var(--red);
  transform: skewX(-7deg);
}

.nav-toggle {
  border: 2px solid var(--white);
  border-radius: 0;
  background: var(--red);
}

.nav-toggle span:not(.sr-only) {
  background: var(--white);
}

.hero {
  position: relative;
  grid-template-columns: minmax(0, 0.88fr) minmax(440px, 1.12fr);
  min-height: min(820px, calc(100svh - 72px));
  gap: clamp(30px, 4vw, 60px);
  padding: 54px 0 60px;
}

.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 7%;
  right: 44%;
  bottom: 5%;
  left: -9vw;
  background: var(--red);
  clip-path: polygon(0 5%, 100% 0, 91% 100%, 0 93%);
}

.hero-copy {
  padding: clamp(28px, 4vw, 52px);
  color: var(--white);
  background: var(--black);
  box-shadow: 12px 12px 0 var(--red);
  clip-path: polygon(0 0, 100% 3%, 92% 100%, 0 96%);
}

.hero .eyebrow {
  width: fit-content;
  margin-bottom: 18px;
  padding: 5px 10px;
  color: var(--black);
  background: var(--white);
  font-family: "Arial Black", Impact, sans-serif;
  transform: rotate(-1.5deg);
}

.hero h1 {
  max-width: 100%;
  margin-bottom: 24px;
  color: var(--white);
  font-family: "Arial Black", Impact, sans-serif;
  font-size: clamp(3rem, 5.8vw, 5.6rem);
  line-height: 0.86;
  letter-spacing: -0.075em;
  overflow-wrap: anywhere;
  text-transform: uppercase;
}

.hero h1 span {
  display: block;
  font-size: 0.72em;
  letter-spacing: -0.09em;
  white-space: nowrap;
  color: var(--red);
  -webkit-text-stroke: 2px var(--white);
  text-shadow: 5px 5px 0 var(--black);
}

.hero-subtitle {
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(1rem, 1.5vw, 1.18rem);
}

.hero-visual {
  position: relative;
  min-width: 0;
  margin: 0;
  filter: drop-shadow(14px 14px 0 var(--black));
  transform: rotate(-1deg);
}

.hero-visual::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -14px 18% -12px -14px;
  background: var(--red);
  clip-path: polygon(7% 0, 100% 4%, 94% 100%, 0 93%);
}

.hero-visual img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border: 6px solid var(--black);
  background: var(--red);
  clip-path: polygon(5% 0, 100% 0, 96% 93%, 88% 100%, 7% 96%, 0 77%, 4% 48%, 0 20%);
}

.hero-focus {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin: -18px 24px 0;
  color: var(--white);
}

.hero-focus span {
  border: 3px solid var(--black);
  padding: 8px 10px;
  background: var(--red);
  font-family: "Arial Black", Impact, sans-serif;
  font-size: 0.72rem;
  line-height: 1.15;
  text-transform: uppercase;
}

.hero-focus span:nth-child(even) {
  color: var(--black);
  background: var(--white);
}

.button {
  border-width: 3px;
  border-radius: 0;
  font-family: "Arial Black", Impact, sans-serif;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.button-primary {
  color: var(--white);
  background: var(--red);
  border-color: var(--white);
  box-shadow: 5px 5px 0 var(--white);
}

.button-secondary,
.button-quiet {
  color: var(--black);
  background: var(--white);
  border-color: var(--black);
}

.button:hover {
  transform: translate(-2px, -2px) rotate(-1deg);
  box-shadow: 6px 6px 0 var(--black);
}

.signal-strip {
  color: var(--white);
  background: var(--black);
  border-top: 6px solid var(--red);
  border-bottom: 6px solid var(--red);
}

.signal-strip div {
  border-color: rgba(255, 255, 255, 0.32);
}

.signal-strip span {
  color: rgba(255, 255, 255, 0.68);
}

.eyebrow,
.card-topline,
.case-kicker {
  color: var(--red);
  font-family: "Arial Black", Impact, sans-serif;
}

h2 {
  font-family: "Arial Black", Impact, sans-serif;
  letter-spacing: -0.055em;
  text-transform: uppercase;
}

.tag-cloud span,
.mini-tags span,
.role-list li,
.workflow-strip span {
  border: 2px solid var(--black);
  border-radius: 0;
  box-shadow: 3px 3px 0 var(--red);
}

.work-grid {
  gap: 22px;
}

.case-card {
  border: 3px solid var(--black);
  border-top-width: 8px;
  background: var(--white);
  box-shadow: 8px 8px 0 var(--black);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.case-card:nth-child(1),
.case-card:nth-child(2),
.case-card:nth-child(3),
.case-card:nth-child(4) {
  border-top-color: var(--red);
}

.case-card:hover {
  transform: translate(-4px, -4px) rotate(-0.35deg);
  box-shadow: 13px 13px 0 var(--red);
}

.card-result,
.impact-block {
  border-color: var(--red);
}

.text-link {
  color: var(--red);
  font-family: "Arial Black", Impact, sans-serif;
  text-transform: uppercase;
}

.case-study {
  position: relative;
}

.case-layout {
  border-top: 6px solid var(--black);
}

.case-kicker {
  display: inline-block;
  padding: 6px 12px;
  color: var(--white);
  background: var(--red);
  transform: skewX(-8deg);
}

.case-subtitle {
  color: var(--red);
}

.media-card,
.snapshot-item,
.supporting-evidence,
.doc-card {
  border: 3px solid var(--black);
  background: var(--white);
  box-shadow: 6px 6px 0 rgba(8, 8, 8, 0.94);
}

.media-card img {
  background: #efede7;
}

.image-action,
.doc-link {
  border: 2px solid var(--black);
  border-radius: 0;
  color: var(--white);
  background: var(--red);
  font-family: "Arial Black", Impact, sans-serif;
  text-transform: uppercase;
}

.featured-evidence {
  border-top: 5px solid var(--red);
}

.supporting-evidence > summary {
  color: var(--white);
  background: var(--black);
  font-family: "Arial Black", Impact, sans-serif;
  text-transform: uppercase;
}

.supporting-evidence[open] > summary {
  border-bottom: 5px solid var(--red);
}

.contact-section {
  position: relative;
  overflow: hidden;
  background: var(--black);
  border-top: 10px solid var(--red);
}

.contact-section::before {
  content: "";
  position: absolute;
  top: -20%;
  right: -8%;
  width: 42%;
  height: 150%;
  background: var(--red);
  clip-path: polygon(42% 0, 100% 0, 72% 100%, 0 100%);
}

.contact-inner {
  position: relative;
}

.contact-card a {
  border: 3px solid var(--white);
  border-radius: 0;
  background: var(--black);
}

.footer {
  color: var(--white);
  background: var(--black);
  border-top: 6px solid var(--red);
  font-family: "Arial Black", Impact, sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

/* Chapter cards reproduce the reference clip's angled slide-to-slide rhythm. */
.chapter-transition {
  position: relative;
  isolation: isolate;
  display: grid;
  min-height: clamp(210px, 31vw, 340px);
  margin: 76px 0 8px;
  overflow: hidden;
  place-items: center;
  color: var(--white);
  background: var(--black);
  clip-path: polygon(0 8%, 100% 0, 100% 92%, 0 100%);
  scroll-snap-align: start;
}

.chapter-transition::before {
  content: "";
  position: absolute;
  z-index: -2;
  inset: 0 0 0 41%;
  background: var(--red);
  clip-path: polygon(22% 0, 100% 0, 100% 100%, 0 100%);
}

.chapter-transition::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: 0;
  right: 2%;
  width: min(34vw, 440px);
  height: 100%;
  opacity: 0.72;
  background-image: radial-gradient(circle, var(--black) 0 2px, transparent 2.5px);
  background-size: 12px 12px;
  clip-path: polygon(24% 0, 100% 8%, 78% 100%, 0 88%);
}

.chapter-inner {
  width: min(var(--max-width), calc(100% - 40px));
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: clamp(24px, 5vw, 70px);
  transform: translateX(-34px) skewX(-3deg);
  opacity: 0;
  transition: transform 700ms cubic-bezier(0.2, 0.78, 0.2, 1), opacity 420ms ease;
}

.chapter-transition.is-visible .chapter-inner {
  transform: translateX(0) skewX(-3deg);
  opacity: 1;
}

.chapter-index {
  color: var(--red);
  font-family: "Arial Black", Impact, sans-serif;
  font-size: clamp(4rem, 10vw, 9rem);
  line-height: 0.75;
  -webkit-text-stroke: 2px var(--white);
  text-shadow: 7px 7px 0 var(--black);
}

.chapter-label {
  position: relative;
  z-index: 1;
  display: inline-block;
  width: fit-content;
  max-width: 100%;
  margin: 0;
  padding: 10px 18px;
  color: var(--black);
  background: var(--white);
  font-family: "Arial Black", Impact, sans-serif;
  font-size: clamp(1.8rem, 6vw, 5.5rem);
  line-height: 0.88;
  letter-spacing: -0.055em;
  overflow-wrap: anywhere;
  text-transform: uppercase;
}

body.motion-ready .motion-section {
  opacity: 0.16;
  transform: translateY(34px);
  transition: opacity 520ms ease, transform 720ms cubic-bezier(0.2, 0.78, 0.2, 1);
}

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

@media (max-width: 1180px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero::before {
    right: 11%;
  }

  .hero-copy {
    max-width: 840px;
  }

  .hero-visual {
    width: min(900px, 100%);
    margin-left: auto;
  }
}

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

  .nav-links {
    color: var(--black);
    background: var(--white);
    border: 3px solid var(--black);
    box-shadow: 7px 7px 0 var(--red);
  }

  .nav-links a {
    color: var(--black);
  }

  .brand {
    max-width: calc(100vw - 98px);
    font-size: clamp(0.68rem, 3.2vw, 0.86rem);
  }

  .brand-mark {
    flex: 0 0 auto;
  }

  .hero {
    padding-top: 32px;
  }

  .hero::before {
    top: 2%;
    right: 4%;
    bottom: 42%;
  }

  .hero-copy {
    padding: 30px 24px 38px;
    clip-path: polygon(0 0, 100% 2%, 95% 100%, 0 97%);
  }

  .hero h1 {
    font-size: clamp(2.55rem, 13vw, 4.3rem);
  }

  .hero-focus {
    grid-template-columns: 1fr;
    margin: -14px 12px 0;
  }

  .chapter-transition {
    min-height: 38svh;
    margin-top: 52px;
  }

  .chapter-inner {
    width: min(100% - 28px, var(--max-width));
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .chapter-index {
    font-size: clamp(4.2rem, 24vw, 7rem);
  }

  .chapter-label {
    font-size: clamp(1.8rem, 10vw, 3.5rem);
  }
}

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

  body.motion-ready .motion-section,
  .chapter-inner {
    opacity: 1;
    transform: none;
  }
}

/* Recruiter-facing portrait chosen from the supplied personal-photo set. */
.about-grid {
  grid-template-columns: minmax(230px, 0.7fr) minmax(0, 1.08fr) minmax(210px, 0.52fr);
  align-items: start;
}

.about-portrait {
  position: relative;
  margin: 0;
  padding: 10px;
  color: var(--white);
  background: var(--black);
  box-shadow: 10px 10px 0 var(--red);
  transform: rotate(1.2deg);
}

.about-portrait::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 10px;
  border: 3px solid var(--white);
  pointer-events: none;
  clip-path: polygon(0 0, 100% 0, 100% 84%, 88% 100%, 0 100%);
}

.about-portrait img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: 58% center;
  filter: saturate(0.72) contrast(1.08);
}

.about-portrait figcaption {
  padding: 11px 5px 3px;
  font-family: "Arial Black", Impact, sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Selected-work carousel: interaction pattern rebuilt in the site's own visual system. */
.work-carousel-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: -4px 0 18px;
}

.work-carousel-controls p {
  margin: 0;
  color: var(--black);
  font-family: "Arial Black", Impact, sans-serif;
  font-size: 1rem;
}

.work-carousel-controls > div {
  display: flex;
  gap: 10px;
}

.carousel-arrow,
.case-overlay-close {
  border: 3px solid var(--black);
  border-radius: 0;
  color: var(--white);
  background: var(--red);
  box-shadow: 4px 4px 0 var(--black);
  cursor: pointer;
  font-family: "Arial Black", Impact, sans-serif;
  text-transform: uppercase;
}

.carousel-arrow {
  width: 52px;
  height: 46px;
  font-size: 1.35rem;
}

.carousel-arrow:hover:not(:disabled),
.case-overlay-close:hover {
  transform: translate(-2px, -2px);
  box-shadow: 7px 7px 0 var(--black);
}

.carousel-arrow:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.work-grid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(330px, 42%);
  grid-template-columns: none;
  gap: 22px;
  padding: 4px 12px 20px 3px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-color: var(--red) var(--black);
  scrollbar-width: thin;
}

.work-grid .case-card {
  scroll-snap-align: start;
}

/* Full-page case-study overlay with independent scrolling and a torn-card transition. */
body.case-overlay-open {
  overflow: hidden;
}

.case-overlay {
  position: fixed;
  z-index: 60;
  inset: 0;
  visibility: hidden;
  pointer-events: none;
}

.case-overlay-backdrop {
  position: absolute;
  inset: 0;
  opacity: 0;
  background: rgba(8, 8, 8, 0.82);
  transition: opacity 280ms ease;
}

.case-overlay-shell {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: var(--paper);
  clip-path: polygon(8% 0, 100% 0, 100% 100%, 0 100%, 0 8%);
  opacity: 0;
  transform: translate3d(8%, 0, 0) scale(0.985);
  transition:
    transform 360ms cubic-bezier(0.2, 0.78, 0.2, 1),
    opacity 260ms ease,
    clip-path 360ms cubic-bezier(0.2, 0.78, 0.2, 1);
}

.case-overlay.is-open,
.case-overlay.is-closing {
  visibility: visible;
}

.case-overlay.is-open {
  pointer-events: auto;
}

.case-overlay.is-open .case-overlay-backdrop {
  opacity: 1;
}

.case-overlay.is-open .case-overlay-shell {
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 0 0);
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

.case-overlay-header {
  position: absolute;
  z-index: 3;
  top: 0;
  left: 0;
  right: 0;
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 10px clamp(16px, 4vw, 52px);
  color: var(--white);
  background: var(--black);
  border-bottom: 6px solid var(--red);
}

.case-overlay-close {
  padding: 10px 15px;
}

.case-overlay-brand {
  font-family: "Arial Black", Impact, sans-serif;
  font-size: clamp(0.7rem, 2vw, 0.9rem);
}

.case-overlay-scroll {
  height: 100%;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 74px 0 90px;
}

.case-overlay-scroll .case-study {
  display: block;
  padding-top: 68px;
  padding-bottom: 40px;
}

.case-overlay-scroll .case-study.motion-section {
  opacity: 1;
  transform: none;
}

.video-controls {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px;
  color: var(--white);
  background: var(--black);
  border-top: 5px solid var(--red);
}

.video-controls button,
.video-controls select {
  min-height: 40px;
  border: 2px solid var(--white);
  color: var(--white);
  background: var(--red);
  font: inherit;
  font-weight: 900;
}

.video-controls label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 900;
}

@media (max-width: 1040px) {
  .about-grid {
    grid-template-columns: minmax(0, 1fr) minmax(210px, 0.48fr);
  }

  .about-grid > :first-child {
    grid-column: 1 / -1;
  }

  .work-grid {
    grid-auto-columns: minmax(300px, 58%);
  }
}

@media (max-width: 760px) {
  .about-grid {
    grid-template-columns: 1fr;
  }

  .about-grid > :first-child {
    grid-column: auto;
  }

  .about-portrait {
    width: min(82vw, 360px);
    margin: 10px auto 16px;
  }

  .work-grid {
    grid-auto-columns: minmax(270px, 88%);
  }

  .case-overlay-header {
    min-height: 68px;
    padding-inline: 12px;
  }

  .case-overlay-brand {
    max-width: 42%;
    text-align: right;
  }

  .case-overlay-scroll {
    padding-top: 68px;
  }

  .case-overlay-scroll .case-study {
    width: min(100% - 28px, var(--max-width));
    padding-top: 48px;
  }
}


/* Keep the About headline inside its own column so it never overlaps the body copy. */
body:not(.interactive-mode) .about-grid > *:first-child {
  min-width: 0;
}

body:not(.interactive-mode) .about-grid h2 {
  max-width: 100%;
  font-size: clamp(1.55rem, 2.5vw, 3.2rem);
}


/* Personal practice case study: video cards sit in the same gallery grid as images. */
.media-card video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #000;
}


/* ============================================================
   Responsive layer — phones, tablets, laptops, large monitors
   ============================================================ */

html {
  -webkit-text-size-adjust: 100%;
}

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

/* Keep a comfortable measure instead of letting text run the full width. */
.about-copy > p,
.case-main > p,
.case-overview,
.detail-block > p,
.case-feature > p,
.interactive-generated-panel > p {
  max-width: 74ch;
}

/* --- Large monitors: use the space, keep the reading line sane --- */
@media (min-width: 1600px) {
  :root {
    --max-width: 1360px;
  }
}

@media (min-width: 2000px) {
  :root {
    --max-width: 1520px;
  }

  html {
    font-size: 17px;
  }
}

@media (min-width: 2400px) {
  html {
    font-size: 18px;
  }
}

/* --- Tablet: two columns instead of cramped three --- */
@media (min-width: 761px) and (max-width: 1100px) {
  .work-grid {
    grid-auto-columns: minmax(320px, 1fr);
  }

  .media-gallery {
    gap: 18px;
  }
}

/* --- Phones --- */
@media (max-width: 600px) {
  .section-shell {
    width: min(100% - 32px, var(--max-width));
  }

  /* Comfortable tap targets. */
  .nav-links a,
  .button,
  .text-link,
  .doc-link,
  .image-action,
  .carousel-arrow,
  .command-menu button,
  .timeline-item button,
  .contact-card a,
  .deck-actions a,
  .hub-utilities a,
  .hub-utilities button {
    min-height: 44px;
  }

  .nav-links a,
  .contact-card a {
    display: flex;
    align-items: center;
  }

  /* Galleries swipe one card at a time instead of half-showing two. */
  .media-gallery {
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  .media-gallery .media-card {
    flex-basis: min(82vw, 340px);
    scroll-snap-align: center;
  }

  .poster-gallery .media-card {
    flex-basis: min(70vw, 280px);
  }

  .media-card figcaption {
    min-height: 0;
  }

  /* Long headlines should never collide or spill. */
  h1,
  h2,
  h3 {
    overflow-wrap: break-word;
    hyphens: none;
  }
}

@media (max-width: 380px) {
  .section-shell {
    width: min(100% - 24px, var(--max-width));
  }
}


/* --- Interactive build: opening title must fit its own panel --- */
.intro-copy {
  width: min(56rem, 64vw);
}

.intro-copy h1 {
  max-width: none;
  font-size: clamp(2.4rem, 7vw, 7rem);
  line-height: 0.9;
  overflow-wrap: normal;
  word-break: keep-all;
}

.hub-heading h2 {
  margin-top: 0.75rem;
}

/* Keep controls clear of the iPhone home indicator. */
.hub-utilities,
.deck-header {
  padding-bottom: env(safe-area-inset-bottom, 0);
}

@media (max-width: 900px) {
  .intro-copy {
    top: clamp(3.5rem, 9vh, 7rem);
    left: 4vw;
    width: min(92vw, 34rem);
  }

  .intro-copy h1 {
    font-size: clamp(2.2rem, 10.5vw, 4.6rem);
    line-height: 0.98;
    text-shadow: 5px 5px 0 #050505;
  }

  .intro-copy h1 span {
    text-shadow: 4px 4px 0 #fff;
  }

  .intro-statement {
    width: min(92vw, 34rem);
  }

  .hub-heading {
    width: min(92vw, 34rem);
  }

  .hub-heading h2 {
    max-width: none;
    font-size: clamp(2rem, 9vw, 3.4rem);
    text-shadow: 4px 4px 0 #e60012;
  }
}

@media (max-width: 600px) {
  .intro-actions {
    gap: 0.5rem;
  }

  .command-menu {
    width: min(92vw, 34rem);
    left: 4vw;
    top: clamp(13rem, 30vh, 20rem);
  }

  .experience-timeline .timeline-item button {
    grid-template-columns: 2.4rem 1fr;
  }
}

/* Large monitors: the full-screen stage should not leave the panel stranded. */
@media (min-width: 1600px) {
  .interactive-mode #about,
  .interactive-mode #work,
  .interactive-mode #resume,
  .interactive-mode #contact,
  .interactive-generated-panel {
    width: min(1440px, calc(100% - 3rem));
  }
}


/* Personal case: visible feature blocks reuse the case detail styling. */
.case-feature {
  margin-top: 34px;
}
.case-feature h3 {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
}
.case-feature ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.case-feature li {
  position: relative;
  margin: 0 0 12px;
  padding-left: 22px;
  color: var(--muted);
}
.case-feature li::before {
  content: "";
  position: absolute;
  top: 0.75em;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--coral);
}
.supporting-evidence .case-feature {
  margin: 24px 18px 0;
}
