:root {
  --old-web-blue: #1616e8;
  --old-web-paper: #fffef6;
}

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  background-color: var(--old-web-paper);
  background-image:
    radial-gradient(circle, rgba(22, 22, 22, 0.11) 0 0.55px, transparent 0.75px),
    radial-gradient(circle, rgba(235, 181, 0, 0.13) 0 0.55px, transparent 0.8px),
    radial-gradient(circle, rgba(226, 60, 83, 0.07) 0 0.45px, transparent 0.7px),
    radial-gradient(circle, rgba(22, 22, 232, 0.06) 0 0.45px, transparent 0.7px);
  background-position: 0 0, 5px 7px, 11px 3px, 2px 13px;
  background-size: 11px 13px, 17px 19px, 23px 29px, 31px 37px;
  background-attachment: fixed;
  color: #171717;
  font-family: "Courier New", Courier, monospace;
}

a,
a:link,
a:visited,
a:hover,
a:active {
  color: #171717;
  text-decoration: none;
}

/* Remove Cargo's own page inset so the portfolio matches the original layout. */
bodycopy.content_padding {
  padding: 0 !important;
}

.portfolio {
  position: relative;
  width: 100%;
  min-height: 100vh;
  background: transparent;
}

.portfolio *,
.portfolio *::before,
.portfolio *::after { box-sizing: border-box; }

.site-header {
  position: relative;
  z-index: 9999;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  width: 100%;
  padding: 42px 52px 0;
}

.about-link,
.work-link {
  display: block;
  font-size: 11px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.045em;
  transition: opacity 0.18s ease;
}

.about-link:hover,
.work-link:hover { opacity: 0.55; }

.about-link.active { opacity: 0.42; }

.intro-card { display: none; }

.has-js .intro-card {
  --intro-card-width: min(980px, calc(100vw - 112px));
  --intro-card-height: min(480px, calc(100vh - 150px));
  position: fixed;
  z-index: 10000;
  inset: 0;
  display: block;
  overflow: hidden;
}

.intro-enter {
  position: absolute;
  z-index: 2;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 26px;
  border: 0;
  background: transparent;
  color: #171717;
  font: inherit;
  text-align: center;
  cursor: pointer;
  transform: scale(1);
  transition:
    opacity 300ms ease,
    transform 600ms cubic-bezier(0.22, 0.72, 0.24, 1);
}

.intro-name {
  display: block;
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(26px, 4.3vw, 62px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.045em;
  white-space: nowrap;
}

.intro-enter:focus-visible {
  outline: 1px solid rgba(22, 22, 232, 0.58);
  outline-offset: -8px;
}

.intro-line {
  position: absolute;
  z-index: 1;
  display: block;
  background: rgba(22, 22, 232, 0.18);
  pointer-events: none;
  transition:
    top 980ms cubic-bezier(0.22, 0.72, 0.24, 1),
    right 980ms cubic-bezier(0.22, 0.72, 0.24, 1),
    left 980ms cubic-bezier(0.22, 0.72, 0.24, 1),
    width 980ms cubic-bezier(0.22, 0.72, 0.24, 1),
    height 980ms cubic-bezier(0.22, 0.72, 0.24, 1),
    transform 980ms cubic-bezier(0.22, 0.72, 0.24, 1),
    opacity 420ms ease;
}

.intro-line-top,
.intro-line-bottom {
  left: 50%;
  width: var(--intro-card-width);
  height: 1px;
  transform: translateX(-50%);
}

.intro-line-top { top: calc(50% - (var(--intro-card-height) / 2)); }
.intro-line-bottom { top: calc(50% + (var(--intro-card-height) / 2)); }

.intro-line-left,
.intro-line-right {
  top: 50%;
  width: 1px;
  height: var(--intro-card-height);
  transform: translateY(-50%);
}

.intro-line-left { left: calc(50% - (var(--intro-card-width) / 2)); }
.intro-line-right { right: calc(50% - (var(--intro-card-width) / 2)); }

.intro-line-center {
  bottom: 0;
  left: 50%;
  width: 1px;
  height: 0;
  transform: none;
}

.has-js .portfolio:not(.is-entering):not(.is-entered) .portfolio-main {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(8px);
}

.has-js .portfolio-main {
  transition:
    opacity 300ms ease 560ms,
    transform 400ms cubic-bezier(0.22, 0.72, 0.24, 1) 560ms,
    visibility 0s linear 560ms;
}

.portfolio-main:focus { outline: none; }

.portfolio.is-entering .intro-enter,
.portfolio.is-entered .intro-enter {
  opacity: 0;
  pointer-events: none;
  transform: scale(0.985);
}

.portfolio.is-entered .intro-card {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 140ms ease, visibility 0s linear 140ms;
}

.intro-active,
.intro-active body { overflow: hidden; }

.portfolio-main {
  position: relative;
  width: 100%;
  min-height: calc(100vh - 55px);
  padding: 132px 52px 100px;
}

.work-index,
.project-row { position: relative; width: 550px; }

.section-label {
  margin-bottom: 32px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.055em;
  opacity: 0.82;
}

.project-list-reveal {
  display: grid;
  grid-template-rows: 1fr;
  opacity: 1;
  transform: none;
  animation: none;
}

.project-list-inner {
  min-height: 0;
  overflow: visible;
}

.has-js .project-list-reveal:not(.is-open) {
  grid-template-rows: 0fr;
  opacity: 0;
  transform: translateY(-8px);
}

.has-js .project-list-reveal:not(.is-open) .project-list-inner {
  overflow: hidden;
}

.has-js .portfolio.is-entering .project-list-reveal:not(.is-open),
.has-js .portfolio.is-entered .project-list-reveal:not(.is-open) {
  animation: selected-works-open 720ms cubic-bezier(0.22, 0.72, 0.24, 1) 640ms forwards;
}

.project-list-reveal.is-open {
  grid-template-rows: 1fr;
  opacity: 1;
  transform: none;
  animation: none;
}

.project-list-reveal.is-open .project-list-inner { overflow: visible; }

@keyframes selected-works-open {
  to {
    grid-template-rows: 1fr;
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .has-js .project-list-reveal:not(.is-open) {
    grid-template-rows: 1fr;
    opacity: 1;
    transform: none;
    animation: none;
  }

  .has-js .project-list-reveal:not(.is-open) .project-list-inner {
    overflow: visible;
  }
}

.project-row { margin: 0; padding: 0; }
.project-line { list-style: none; }
.project-line::-webkit-details-marker { display: none; }
.project-line::marker { content: ""; }

.project-line {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 170px;
  gap: 24px;
  align-items: baseline;
  width: 100%;
  padding: 13px 0;
  cursor: pointer;
}

.project-line:focus-visible {
  outline: 1px solid rgba(22, 22, 232, 0.58);
  outline-offset: 4px;
}

.project-line::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: rgba(22, 22, 232, 0.16);
  transform: scaleX(1);
  transform-origin: left center;
  animation: none;
}

.has-js .portfolio:not(.is-entering):not(.is-entered) .project-line::after {
  transform: scaleX(0);
}

.has-js .portfolio.is-entering .project-line::after,
.has-js .portfolio.is-entered .project-line::after {
  transform: scaleX(0);
  animation: selected-work-line 320ms ease-out forwards;
}

.project-row:nth-of-type(1) .project-line::after { animation-delay: 720ms; }
.project-row:nth-of-type(2) .project-line::after { animation-delay: 775ms; }
.project-row:nth-of-type(3) .project-line::after { animation-delay: 830ms; }
.project-row:nth-of-type(4) .project-line::after { animation-delay: 885ms; }
.project-row:nth-of-type(5) .project-line::after { animation-delay: 940ms; }
.project-row:nth-of-type(6) .project-line::after { animation-delay: 995ms; }
.project-row:nth-of-type(7) .project-line::after { animation-delay: 1050ms; }
.project-row:nth-of-type(8) .project-line::after { animation-delay: 1105ms; }
.project-row:nth-of-type(9) .project-line::after { animation-delay: 1160ms; }
.project-row:nth-of-type(10) .project-line::after { animation-delay: 1215ms; }

@keyframes selected-work-line {
  to { transform: scaleX(1); }
}

@media (prefers-reduced-motion: reduce) {
  .has-js .portfolio.is-entering .project-line::after,
  .has-js .portfolio.is-entered .project-line::after {
    transform: scaleX(1);
    animation: none;
  }
}

.project-title {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.25;
  transition: color 0.16s ease, transform 0.16s ease;
}

.project-type {
  font-size: 10px;
  font-weight: 400;
  line-height: 1.2;
  text-align: right;
  white-space: nowrap;
  opacity: 0.56;
}

@media screen and (min-width: 1080px) and (hover: hover) and (pointer: fine) {
  .portfolio::before {
    content: "";
    position: absolute;
    z-index: 10;
    top: 24px;
    right: 0;
    bottom: 24px;
    left: 0;
    border-top: 1px solid rgba(22, 22, 232, 0.28);
    pointer-events: none;
    transition: opacity 180ms ease;
  }

  .portfolio::after {
    content: "";
    position: absolute;
    z-index: 10;
    top: 0;
    right: 24px;
    bottom: 0;
    left: 24px;
    border-right: 1px solid rgba(22, 22, 232, 0.28);
    border-left: 1px solid rgba(22, 22, 232, 0.28);
    pointer-events: none;
    transition: opacity 180ms ease;
  }

  .portfolio-main::before {
    content: "";
    position: fixed;
    z-index: 10;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 1px;
    background: rgba(22, 22, 232, 0.28);
    pointer-events: none;
    transition: opacity 180ms ease;
  }

  .has-js .portfolio:not(.is-entered)::before,
  .has-js .portfolio:not(.is-entered)::after,
  .has-js .portfolio:not(.is-entered) .portfolio-main::before {
    opacity: 0;
  }

  .portfolio.is-entering .intro-line-top,
  .portfolio.is-entered .intro-line-top {
    top: 24px;
    left: 0;
    width: 100%;
    transform: none;
  }

  .portfolio.is-entering .intro-line-left,
  .portfolio.is-entered .intro-line-left {
    top: 0;
    left: 24px;
    height: 100%;
    transform: none;
  }

  .portfolio.is-entering .intro-line-right,
  .portfolio.is-entered .intro-line-right {
    top: 0;
    right: 24px;
    height: 100%;
    transform: none;
  }

  .portfolio.is-entering .intro-line-bottom,
  .portfolio.is-entered .intro-line-bottom {
    opacity: 0;
    transform: translateX(-50%) translateY(10px);
  }

  .portfolio.is-entering .intro-line-center,
  .portfolio.is-entered .intro-line-center {
    height: 100%;
  }

  .home-about-panel {
    position: absolute;
    z-index: 20;
    top: 132px;
    left: 56%;
    width: min(540px, 40vw);
    opacity: 1;
    visibility: visible;
    transition: opacity 0.18s ease, visibility 0.18s ease;
  }

  .work-index:hover ~ .home-about-panel {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }

  .work-index:focus-within ~ .home-about-panel {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }

  .project-row {
    transition: opacity 0.18s ease;
  }

  .work-index:hover .project-row:not(:hover) {
    opacity: 0.28;
  }

  .work-index:focus-within .project-row:not(:focus-within) {
    opacity: 0.28;
  }

  .project-row:hover .project-title,
  .project-row:focus-within .project-title {
    color: var(--old-web-blue);
    transform: translateX(3px);
  }

  .project-preview {
    position: fixed;
    z-index: 30;
    left: 56%;
    top: clamp(148px, 17vh, 172px);
    max-height: calc(100vh - clamp(148px, 17vh, 172px) - 40px);
    transform: none;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.18s ease, visibility 0.18s ease;
  }
  .project-row:hover .project-preview,
  .project-row:focus-within .project-preview { opacity: 1; visibility: visible; }
  .poster-preview,
  .text-preview,
  .landscape-preview {
    width: calc(44vw - 84px);
  }
  .poster-preview {
    --preview-media-height: clamp(340px, 49vh, 470px);
    display: grid;
    grid-template-rows: var(--preview-media-height) auto auto auto;
  }
  .poster-preview .poster-preview-image {
    width: min(400px, 100%);
    align-self: end;
    justify-self: start;
  }
  .poster-preview .poster-preview-image img,
  .poster-preview .poster-preview-image picture img,
  .poster-preview .poster-preview-image media-item,
  .poster-preview .poster-preview-image media-item::part(media) {
    max-height: calc(var(--preview-media-height) - 15px);
  }
  .poster-preview .matched-poster-image {
    width: auto;
    height: calc(var(--preview-media-height) - 15px);
    max-width: 100%;
  }
  .poster-preview:not(.landscape-preview) .poster-preview-image {
    width: min(460px, 100%);
  }
  .poster-preview:not(.landscape-preview) .poster-preview-image img,
  .poster-preview:not(.landscape-preview) .poster-preview-image picture img,
  .poster-preview:not(.landscape-preview) .poster-preview-image media-item,
  .poster-preview:not(.landscape-preview) .poster-preview-image media-item::part(media) {
    max-height: min(52vh, 500px);
  }
  .poster-preview:not(.landscape-preview) .matched-poster-image {
    width: auto;
    height: min(52vh, 500px);
  }
  .poster-preview .poster-synopsis,
  .poster-preview .poster-credits,
  .poster-preview .poster-meta,
  .text-preview .preview-text,
  .text-preview .preview-text p { width: 100%; }
  .landscape-preview .poster-preview-image { width: min(520px, 100%); }
}

.poster-preview-image {
  display: block;
  width: 400px;
  height: auto;
  margin: 0 0 15px;
  padding: 0;
  font-size: 0;
  line-height: 0;
}

.poster-preview-image img,
.poster-preview-image picture img,
.poster-preview-image media-item,
.poster-preview-image media-item::part(media) {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: min(58vh, 560px);
  margin: 0;
  padding: 0;
  object-fit: contain;
  object-position: center;
}

.poster-preview-image picture { display: block; width: 100%; }

.matched-poster-image {
  width: min(100%, 41vh);
  aspect-ratio: 998 / 1414;
  overflow: hidden;
}

.poster-preview-image.matched-poster-image img,
.poster-preview-image.matched-poster-image media-item,
.poster-preview-image.matched-poster-image media-item::part(media) {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
}

.poster-synopsis {
  width: 400px;
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.5;
  opacity: 0.82;
}

.poster-credits {
  width: 400px;
  margin: 0 0 12px;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.45;
  opacity: 0.72;
}

.poster-meta {
  width: 400px;
  margin: 0;
  font-size: 10px;
  font-weight: 400;
  line-height: 1.45;
  opacity: 0.5;
}

.preview-text,
.preview-text p { width: 410px; }
.preview-title { margin-bottom: 9px; font-size: 11px; font-weight: 700; line-height: 1.2; letter-spacing: 0.04em; }
.preview-subtitle { margin-bottom: 13px; font-size: 11px; line-height: 1.35; opacity: 0.72; }
.preview-meta { margin-bottom: 14px; font-size: 10px; line-height: 1.45; opacity: 0.5; }
.preview-text p { margin: 0; font-size: 10px; line-height: 1.55; opacity: 0.7; }

.about-page {
  width: 100%;
  min-height: calc(100vh - 55px);
  padding: 132px 52px 120px;
}

.about-main { width: 540px; max-width: 100%; }
.about-section { width: 100%; margin-bottom: 62px; }
.about-section-title {
  margin-bottom: 22px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.055em;
  opacity: 0.82;
}
.about-intro { width: 520px; max-width: 100%; margin: 0; font-size: 13px; line-height: 1.55; }
.about-intro + .about-intro { margin-top: 1.1em; }
.education-item { margin-bottom: 25px; }
.education-school { margin-bottom: 5px; font-size: 12px; line-height: 1.4; }
.education-degree { font-size: 10px; line-height: 1.4; opacity: 0.46; }
.contact-section { margin-top: 2px; }
.contact-details { font-size: 11px; line-height: 1.4; }
.contact-details a {
  border-bottom: 1px solid rgba(0, 0, 0, 0.18);
  padding-bottom: 2px;
}
.contact-details .contact-phone {
  display: inline-block;
  margin-top: 6px;
}

.home-about-panel .about-section { margin-bottom: 48px; }
.home-about-panel .about-section:last-child { margin-bottom: 0; }
.home-about-panel .about-intro { width: 100%; }

@media screen and (max-width: 1079px), screen and (hover: none), screen and (pointer: coarse) {
  html, body { overflow-x: hidden; }
  body { background-attachment: scroll; }
  body.homepage .pinned_top { display: none !important; }
  .site-header { padding: 24px 18px 0; }
  .about-link, .work-link { font-size: 10px; }
  .has-js .intro-card {
    --intro-card-width: calc(100vw - 36px);
    --intro-card-height: 220px;
  }
  .intro-enter { width: 100%; padding: 20px; }
  .intro-name { font-size: clamp(23px, 7.3vw, 34px); }
  .portfolio {
    height: auto !important;
    min-height: 100vh;
  }
  .portfolio::before {
    content: "";
    position: fixed;
    z-index: 10;
    top: calc(14px + env(safe-area-inset-top));
    right: 0;
    left: 0;
    border-top: 1px solid rgba(22, 22, 232, 0.28);
    pointer-events: none;
    transition: opacity 180ms ease;
  }
  .portfolio::after {
    content: "";
    position: fixed;
    z-index: 10;
    top: 0;
    right: calc(10px + env(safe-area-inset-right));
    bottom: 0;
    left: calc(10px + env(safe-area-inset-left));
    border-right: 1px solid rgba(22, 22, 232, 0.28);
    border-left: 1px solid rgba(22, 22, 232, 0.28);
    pointer-events: none;
    transition: opacity 180ms ease;
  }
  .portfolio-main::before { content: none; }
  .has-js .portfolio:not(.is-entered)::before,
  .has-js .portfolio:not(.is-entered)::after { opacity: 0; }
  .portfolio.is-entering .intro-line-top,
  .portfolio.is-entered .intro-line-top {
    top: calc(14px + env(safe-area-inset-top));
    left: 0;
    width: 100%;
    transform: none;
  }
  .portfolio.is-entering .intro-line-left,
  .portfolio.is-entered .intro-line-left {
    top: 0;
    left: calc(10px + env(safe-area-inset-left));
    height: 100%;
    transform: none;
  }
  .portfolio.is-entering .intro-line-right,
  .portfolio.is-entered .intro-line-right {
    top: 0;
    right: calc(10px + env(safe-area-inset-right));
    height: 100%;
    transform: none;
  }
  .portfolio.is-entering .intro-line-bottom,
  .portfolio.is-entered .intro-line-bottom { opacity: 0; }
  .intro-line-center {
    display: none;
  }
  .portfolio-main {
    position: relative !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    width: 100% !important;
    height: auto !important;
    min-height: 100vh !important;
    overflow: visible !important;
    padding: calc(84px + env(safe-area-inset-top)) calc(18px + env(safe-area-inset-right)) calc(76px + env(safe-area-inset-bottom)) calc(18px + env(safe-area-inset-left));
  }
  .work-index, .project-row { width: 100%; }
  .section-label { margin-bottom: 25px; font-size: 10px; }
  .project-line { grid-template-columns: minmax(0, 1fr) minmax(96px, 46%); gap: 10px; align-items: start; width: 100%; min-height: 48px; padding: 15px 0; cursor: pointer; }
  .project-title { font-size: 13px; line-height: 1.3; }
  .project-title::after {
    content: "+";
    display: inline-block;
    margin-left: 7px;
    color: var(--old-web-blue);
    font-size: 11px;
    line-height: 1;
    opacity: 0.48;
  }
  .project-row[open] .project-title::after { content: "\2212"; }
  .project-type { font-size: 10px; line-height: 1.35; white-space: normal; opacity: 0.68; }
  .project-preview { position: static; display: none; width: 100%; padding: 15px 0 30px; transform: none; opacity: 1; visibility: visible; pointer-events: auto; }
  .project-row[open] .project-preview { display: block; }
  .poster-preview, .poster-preview-image, .poster-synopsis, .poster-credits, .poster-meta { width: 100%; }
  .poster-preview-image.matched-poster-image { width: 100%; }
  .poster-preview-image { height: auto; margin-bottom: 15px; }
  .poster-preview-image img,
  .poster-preview-image picture,
  .poster-preview-image picture img,
  .poster-preview-image media-item,
  .poster-preview-image media-item::part(media) { display: block; width: 100%; height: auto; max-height: none; }
  .poster-synopsis { font-size: 13px; line-height: 1.55; }
  .poster-credits { margin-bottom: 12px; font-size: 11.5px; line-height: 1.5; }
  .poster-meta { font-size: 10px; line-height: 1.45; }
  .preview-text, .preview-text p { width: 100%; }
  .preview-title, .preview-subtitle { font-size: 10px; }
  .preview-meta { font-size: 9px; line-height: 1.5; }
  .home-about-panel { position: static; width: 100%; margin-top: 64px; }
  .about-page { min-height: 100vh; padding: calc(84px + env(safe-area-inset-top)) calc(18px + env(safe-area-inset-right)) calc(76px + env(safe-area-inset-bottom)) calc(18px + env(safe-area-inset-left)); }
  .about-main { width: 100%; }
  .about-section { margin-bottom: 52px; }
  .about-section-title { margin-bottom: 19px; font-size: 10px; }
  .about-intro { width: 100%; font-size: 13px; line-height: 1.6; }
  .education-school { font-size: 11px; }
  .education-degree { font-size: 10px; }
  .contact-details { font-size: 12px; }
  .contact-details a {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
  }
  .contact-details .contact-phone { margin-top: 2px; }
}

@media (prefers-reduced-motion: reduce) {
  .intro-enter,
  .intro-line,
  .has-js .portfolio-main,
  .portfolio::before,
  .portfolio::after,
  .portfolio-main::before {
    transition: none;
  }
}
