/* Content styles only. Background rendering and scroll ownership stay in the original bundle. */
* {
  box-sizing: border-box;
}
body {
  font-family: Arial, Helvetica, sans-serif;
}
#scrollOuter {
  overflow-x: hidden;
  scroll-behavior: smooth;
}
#scrollInner {
  display: block;
}
.page-shell {
  --muted: #3d4741;
  --paper-gutter: 64px;
  --section-gap: 28px;
  width: min(1088px, calc(100% - 128px));
  margin: 36px auto 100px;
  color: var(--ink);
  padding: 0 var(--paper-gutter);
}
/* Separate paper surfaces leave the animation exposed between sections.
   Only the paper is translucent; text and project images stay fully opaque. */
.site-header,
.page-shell main > section,
.page-shell main > footer {
  position: relative;
  isolation: isolate;
}
.site-header::before,
.page-shell main > section::before,
.page-shell main > footer::before {
  content: "";
  position: absolute;
  inset: 0 calc(-1 * var(--paper-gutter));
  z-index: -1;
  /* A literal color lets the original GSAP CSSRulePlugin interpolate it directly. */
  background-color: rgba(239, 238, 232, 0.90);
  pointer-events: none;
}
.page-shell main,
.page-shell main > section {
  display: flow-root;
}
.page-shell main > section + section,
.page-shell main > footer {
  margin-top: var(--section-gap);
}
.page-shell a {
  color: inherit;
  text-decoration: none;
}
.page-shell a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 6px;
}
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
}
.wordmark {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.4px;
}
.wordmark span {
  display: block;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0;
  margin-top: 6px;
  color: var(--muted);
}
nav {
  display: flex;
  gap: 26px;
  font-size: 12px;
}
nav a:hover,
.case-link:hover,
.project-list a:hover,
.footer-bottom a:hover {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 5px;
}
.hero {
  padding: 96px 0 0;
}
.hero-intro {
  display: grid;
  grid-template-columns: clamp(96px, 16vw, 190px) minmax(0, 1fr);
  grid-template-areas:
    "portrait title"
    "description description"
    "links links";
  align-items: center;
  gap: 20px 28px;
  margin-bottom: 72px;
}
.hero-intro h1 {
  grid-area: title;
  margin: 0;
}
.hero-intro .lede {
  grid-area: description;
  margin: 0;
}
.hero-portrait {
  grid-area: portrait;
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--paper);
  cursor: pointer;
}
.hero-portrait img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
}
.hero-portrait:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}
.eyebrow,
.project-type {
  font-family: Consolas, Menlo, monospace;
  font-size: 10px;
  line-height: 1.6;
  letter-spacing: 1.1px;
  text-transform: uppercase;
  color: var(--accent);
}
h1 {
  font-size: clamp(36px, 4.5vw, 56px);
  line-height: 1.09;
  font-weight: 500;
  letter-spacing: -2.4px;
  margin: 26px 0;
  max-width: 850px;
}
.lede {
  max-width: 620px;
  font-size: 18px;
  line-height: 1.65;
  color: var(--muted);
}
.hero-links {
  grid-area: links;
  display: flex;
  align-items: center;
  gap: 28px;
  margin: 12px 0 0;
  font-size: 13px;
}
.button {
  background: var(--ink);
  color: var(--paper) !important;
  padding: 15px 20px;
}
.button:hover {
  background: var(--accent);
}
.button span {
  margin-left: 24px;
}
.expertise {
  display: flex;
  gap: 36px;
  border-top: 1px solid var(--line);
  padding: 22px 0;
  font-family: Consolas, Menlo, monospace;
  font-size: 11px;
  color: var(--muted);
}
.jobs {
  padding: 44px 0;
}
.jobs-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--ink);
}
.job-image {
  display: block;
}
.job img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2;
  object-fit: cover;
  border: 1px solid var(--line);
}
.job .project-type {
  margin: 18px 0 6px;
}
.job h3 {
  margin: 0;
  font-size: 22px;
  line-height: 1.25;
}
.job-role {
  margin: 6px 0 12px;
  font-weight: 700;
}
.job p:last-child {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}
@media (max-width: 700px) {
  .jobs-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }
}
.selected {
  padding-top: 76px;
  scroll-margin-top: 28px;
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--ink);
}
.case {
  display: grid;
  grid-template-columns: 1fr 1.12fr;
  gap: 60px;
  padding: 48px 0 64px;
  border-bottom: 1px solid var(--line);
}
.project-type {
  font-size: 9px;
  letter-spacing: 0.6px;
  margin-top: 0;
}
h2 {
  font-size: 34px;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -1.2px;
  margin: 22px 0;
}
.case-intro > p:not(.project-type),
.more > div > p:not(.eyebrow) {
  font-size: 14px;
  line-height: 1.8;
  color: var(--muted);
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 24px 0;
}
.tags span {
  border: 1px solid var(--line);
  padding: 5px 8px;
  font-family: Consolas, Menlo, monospace;
  font-size: 10px;
}
.case-link {
  font-size: 12px;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 5px;
}
.project-picture {
  display: block;
  background: #18201d;
}
.project-picture img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16/9;
  object-fit: cover;
}
dl {
  margin: 21px 0 0;
}
dl > div {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
dt {
  font-size: 11px;
  font-weight: 700;
}
dd {
  font-size: 12px;
  line-height: 1.65;
  color: var(--muted);
  margin: 0;
}
.more {
  display: block;
  min-width: 0;
  padding: 45px 0 80px;
  border-top: 1px solid var(--ink);
}
.more h2 {
  font-size: 30px;
}
.gallery-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}
.gallery-heading h2 {
  margin: 14px 0;
}
.gallery-heading p:not(.eyebrow) {
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
  margin-bottom: 0;
}
.gallery-navigation {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}
.gallery-hint {
  font-size: 11px;
  color: var(--muted);
}
.gallery-buttons {
  display: flex;
  gap: 4px;
}
.gallery-buttons[hidden] {
  display: none;
}
.gallery-buttons button {
  display: grid;
  place-items: center;
  width: 26px;
  height: 28px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}
.gallery-buttons button::before {
  content: "";
  width: 9px;
  height: 12px;
  background: currentColor;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}
.gallery-buttons button[data-gallery-direction="-1"]::before {
  transform: scaleX(-1);
}
.gallery-buttons button:hover:not(:disabled) {
  color: var(--accent);
}
.gallery-buttons button:disabled {
  opacity: 0.25;
  cursor: default;
}
.gallery-buttons button:focus-visible,
.gallery-track:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}
.gallery-track {
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: var(--accent) #cdd0c7;
  padding: 4px 4px 20px;
  margin: 0 -4px;
}
.gallery-track::-webkit-scrollbar {
  height: 7px;
}
.gallery-track::-webkit-scrollbar-track {
  background: #cdd0c7;
  border-radius: 8px;
}
.gallery-track::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 8px;
}
.gallery-list {
  display: flex;
  gap: 20px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.gallery-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  flex: 0 0 38%;
  min-width: 0;
  scroll-snap-align: start;
}
.gallery-card {
  display: block;
  border: 1px solid var(--line);
  background: #f8f7f2;
}
.gallery-visual {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1.35;
  background: #18201d;
}
.gallery-visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gallery-brief {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  margin: 0;
  padding: 22px;
  background: linear-gradient(transparent, rgba(10, 20, 16, 0.92) 65%);
  color: #fff;
  font-size: 13px;
  line-height: 1.65;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.gallery-card:hover .gallery-brief,
.gallery-card:focus .gallery-brief {
  opacity: 1;
  transform: none;
}
.gallery-caption {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 18px;
}
.gallery-category {
  font: 9px/1.6 Consolas, Menlo, monospace;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  color: var(--muted);
}
.gallery-caption h3 {
  font-size: 17px;
  line-height: 1.3;
  font-weight: 500;
  letter-spacing: -0.3px;
  margin: 6px 0 0;
}
.gallery-caption > span {
  color: var(--accent);
}
@media (max-width: 850px) {
  .gallery-item {
    flex-basis: 64%;
  }
  .gallery-heading {
    display: block;
  }
  .gallery-navigation {
    justify-content: space-between;
    margin-top: 24px;
  }
}
@media (max-width: 600px) {
  .gallery-item {
    flex-basis: 88%;
  }
  .gallery-caption {
    padding: 14px;
  }
  .gallery-brief {
    padding: 16px;
    font-size: 12px;
  }
}
@media (hover: none) {
  .gallery-brief {
    position: static;
    opacity: 1;
    transform: none;
    background: #f8f7f2;
    color: var(--muted);
    padding: 14px 16px;
    font-size: 12px;
  }
  .gallery-visual {
    aspect-ratio: auto;
  }
  .gallery-visual img {
    height: auto;
    aspect-ratio: 1.35;
  }
  .gallery-card {
    height: 100%;
  }
}
@media (prefers-reduced-motion: reduce) {
  .gallery-brief {
    transition: none;
    transform: none;
  }
}
footer {
  border-top: 1px solid var(--ink);
  padding: 27px 0 18px;
}
footer h2 {
  font-size: 33px;
  margin: 26px 0;
}
.email {
  font-size: 19px;
  border-bottom: 1px solid var(--accent);
  padding-bottom: 6px;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 60px;
  padding-top: 15px;
  border-top: 1px solid var(--line);
  font-size: 10px;
  color: var(--muted);
}
@media (max-width: 850px) {
  .page-shell {
    --paper-gutter: 30px;
    width: calc(100% - 56px);
    margin-top: 20px;
  }
  .case {
    gap: 28px;
  }
  .expertise {
    gap: 18px;
  }
  nav {
    gap: 14px;
  }
  h1 {
    letter-spacing: -1.5px;
  }
}
@media (max-width: 600px) {
  .page-shell {
    --paper-gutter: 22px;
    --section-gap: 20px;
    width: calc(100% - 24px);
    margin: 12px auto 60px;
  }
  .site-header {
    align-items: flex-start;
  }
  nav {
    flex-direction: column;
    gap: 10px;
  }
  nav a:nth-child(2) {
    display: none;
  }
  .hero {
    padding-top: 56px;
  }
  h1 {
    font-size: 36px;
  }
  h1 br {
    display: none;
  }
  .lede {
    font-size: 16px;
  }
  .hero-intro {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "title" "portrait" "description" "links";
    margin-bottom: 48px;
  }
  .hero-portrait {
    justify-self: center;
    width: 112px;
  }
  .hero-links {
    gap: 20px;
    font-size: 11px;
  }
  .button {
    padding: 14px;
  }
  .button span {
    margin-left: 8px;
  }
  .expertise {
    flex-direction: column;
    gap: 12px;
  }
  .section-head {
    display: block;
  }
  .selected {
    padding-top: 45px;
  }
  .case,
  .more {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  h2 {
    font-size: 30px;
  }
  footer h2 {
    font-size: 27px;
  }
  .footer-bottom {
    flex-direction: column;
    margin-top: 45px;
  }
}
@media (prefers-reduced-motion: reduce) {
  #scrollOuter {
    scroll-behavior: auto;
  }
}
