.portfolio-page {
  --paper: #f7f6f0;
  --ink: #2c180f;
  --accent: #ff4f00;
  --muted: #95877a;
  --rule: #b5a99b;
  --gutter: 32px;
  --info-width: calc((100vw - var(--gutter) * 2 - 176px) / 12 * 3 + 32px);
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font-neo-forma-sans);
  font-size: 18px;
  line-height: 1.2;
}
.portfolio-page [hidden] { display: none !important; }
.portfolio-page a, .portfolio-page button { -webkit-tap-highlight-color: transparent; }
.portfolio-page a:focus-visible, .portfolio-page button:focus-visible, [data-gallery]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 5px;
}
.portfolio-page button { font: inherit; cursor: pointer; }
.portfolio-page header { background: #f7f6f0f2; }
.portfolio-page .header-nav { --nav-fg: var(--ink); --nav-fg-dim: var(--muted); }
.portfolio-page .grain { opacity: .13; }
.pf-main { padding-top: 91px; min-height: 60vh; }
.pf-header-link { position: relative; font-size: 18px; line-height: 24px; padding-bottom: 2px; }
.pf-header-link.is-current { border-bottom: 1px solid currentColor; }
.pf-header-link:hover { color: var(--accent); }
.pf-mobile-menu {
  position: fixed; inset: 0; z-index: 40; height: 100dvh;
  padding: 140px 28px 36px; background: var(--ink); color: var(--paper);
  display: flex; flex-direction: column; justify-content: space-between;
}
.pf-mobile-menu nav { display: flex; flex-direction: column; gap: 30px; }
.pf-mobile-menu nav a { font-family: var(--font-neo-forma-serif); font-size: clamp(58px, 13vw, 100px); display: flex; justify-content: space-between; align-items: baseline; }
.pf-mobile-caption { font-size: 14px; }
.portfolio-page.menu-open .hdr-logo, .portfolio-page.menu-open .hamburger-circle { color: var(--paper); }
.portfolio-page.menu-open header { background: transparent; }
.pf-skip { position: fixed; z-index: 100; top: 16px; left: 16px; padding: 12px 18px; color: var(--paper); background: var(--ink); transform: translateY(-200%); }
.pf-skip:focus { transform: none; }
.pf-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; }
.pf-eyebrow { font-size: 10px; line-height: 1.25; letter-spacing: .015em; text-transform: uppercase; font-family: var(--font-neo-forma-sans); }
.pf-pill { border: 1px solid var(--ink); border-radius: 999px; background: transparent; padding: 6px 9px 5px; font-size: 10px !important; line-height: 1.2; text-transform: uppercase; display: inline-flex; align-items: center; gap: 6px; transition: background .2s, color .2s, border-color .2s; }
.pf-pill:hover, .pf-pill[aria-expanded="true"] { color: var(--paper); background: var(--ink); }
.pf-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); margin-right: 8px; }

/* MANUAL's work index: a fixed text column and an independently scrolling image rail. */
.pf-work { padding-top: 20px; padding-bottom: 48px; }
.pf-work-controls { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 80px; padding: 0 0 27px; margin: 0 var(--gutter); border-bottom: 1px solid var(--ink); }
.pf-work-toolbar { display: flex; align-items: center; gap: 24px; margin-left: calc(var(--info-width) + 16px); }
.pf-work-heading { position: relative; padding: 0; border: 0; background: none; display: flex; align-items: center; font-size: 42px !important; font-weight: 400; letter-spacing: -1.7px; line-height: 1.1; white-space: nowrap; }
.pf-work-list { padding-top: 20px; }
.pf-work-row { display: grid; grid-template-columns: var(--info-width) minmax(0,1fr); gap: 16px; height: 26vw; min-height: 300px; max-height: 540px; position: relative; padding: 0 0 24px var(--gutter); margin-bottom: 24px; }
.pf-work-row::after { content: ''; position: absolute; left: var(--gutter); right: var(--gutter); bottom: 0; height: 1px; background: var(--ink); }
@media (hover: hover) and (pointer: fine) {
  .pf-work-list > .pf-work-row { transition: opacity 200ms cubic-bezier(.23,1,.32,1); }
  .pf-work-list.has-work-hover > .pf-work-row:not(.is-work-hovered) { opacity: .2; }
}
@media (prefers-reduced-motion: reduce) {
  .pf-work-list > .pf-work-row { transition: none; }
}
.pf-work-info { min-width: 0; }
.pf-work-info a { display: block; }
.pf-work-info .pf-eyebrow { margin-bottom: 8px; font-family: var(--font-portfolio-mono); letter-spacing: .04em; line-height: 1.4; }
.pf-work-info h2 { font-family: var(--font-neo-forma-serif); font-size: 26px; line-height: 1.07; letter-spacing: -.025em; }
.pf-work-info h2 { transition: color .2s; }
.pf-work-summary { font-family: var(--font-portfolio-sans); font-size: 18px; font-weight: 350; line-height: 1.35; letter-spacing: 0; color: var(--muted); margin-top: 8px; max-width: 340px; }
.pf-project-open { display: inline-block; margin-top: 22px; font-size: 11px; text-transform: uppercase; opacity: 0; transform: translateY(5px); transition: opacity .2s, transform .2s; }
.pf-work-info a:hover h2 { color: var(--accent); }
.pf-work-info a:hover .pf-project-open, .pf-work-info a:focus-visible .pf-project-open { opacity: 1; transform: none; }
.pf-work-gallery { --gallery-stack-step: 16px; min-width: 0; height: 100%; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; touch-action: pan-x pan-y; overscroll-behavior-inline: contain; cursor: auto; }
.pf-work-gallery::-webkit-scrollbar { display: none; }
.pf-work-gallery.is-dragging, .pf-work-gallery.is-dragging .pf-work-slide { cursor: grabbing; }
.pf-gallery-track { display: flex; gap: 12px; height: 100%; width: max-content; min-width: 100%; padding-right: var(--gallery-tail, var(--gutter)); overflow: clip; }
.pf-work-slide { display: block; position: relative; height: 100%; aspect-ratio: 4 / 3; flex: none; border-radius: 4px; overflow: hidden; background: #e5dfd4; cursor: grab; transform-origin: left center; }
.pf-work-slide::after { content: ''; width: 12px; position: absolute; top: 0; bottom: 0; left: 100%; background: var(--paper); }
.pf-work-slide img, .pf-work-slide video { width: 100%; height: 100%; display: block; object-fit: cover; pointer-events: none; user-select: none; -webkit-user-drag: none; }
.pf-work-slide:hover img { filter: saturate(1.04); }

/* Case study: headline, edge-to-edge hero, twelve-column introduction, image story. */
.pf-project-headline { font-family: var(--font-neo-forma-serif); font-size: 48px; font-weight: 400; letter-spacing: -.025em; line-height: 1.1; padding: 50px var(--gutter) 32px; }
.pf-project-hero { aspect-ratio: var(--ratio,4/3); background: #e7dfd2; width: 100%; overflow: hidden; }
.pf-project-hero img, .pf-project-hero video { display: block; width: 100%; height: 100%; object-fit: cover; }
.pf-case-intro { display: grid; grid-template-columns: repeat(12,minmax(0,1fr)); gap: 16px; padding: 64px var(--gutter) 80px; min-height: 510px; }
.pf-case-title { grid-column: 1 / span 3; }
.pf-case-title h2 { font-family: var(--font-neo-forma-serif); font-size: 48px; font-weight: 400; letter-spacing: -.025em; line-height: 1.05; margin-bottom: 20px; }
.pf-case-meta { font-size: 14px; line-height: 1.4; }
.pf-case-meta > div + div { margin-top: 24px; }
.pf-case-meta dt { color: var(--muted); font-size: 10px; text-transform: uppercase; margin-bottom: 7px; }
.pf-case-meta dd { margin: 0; }
.pf-reference-credit { font-size: 10px; color: var(--muted); text-transform: uppercase; margin-bottom: 20px; }
.pf-case-credits { grid-column: 4 / span 2; font-size: 14px; line-height: 1.25; }
.pf-case-credits h3 { font-size: 10px; text-transform: uppercase; margin-bottom: 7px; }
.pf-case-credits p { color: var(--muted); margin-bottom: 24px; }
.pf-case-credits a { display: inline-block; color: var(--ink); font-size: 12px; margin-top: 10px; text-decoration: underline; text-underline-offset: 3px; }
.pf-case-description { grid-column: 8 / 13; font-size: 18px; line-height: 1.22; }
.pf-case-description h3 { color: var(--muted); font-size: 18px; font-weight: 400; margin-top: 24px; }
.pf-case-description > h3:first-child { margin-top: 0; }
.pf-case-description .pf-pill { margin-top: 20px; }
.pf-case-source { margin-top: 24px; font-size: 13px; line-height: 1.4; color: var(--muted); }
.pf-case-source a { text-decoration: underline; text-underline-offset: 3px; }
.pf-case-media { display: grid; grid-template-columns: 1fr; gap: var(--gutter); padding: 0 var(--gutter) var(--gutter); }
.pf-case-media.is-pair { grid-template-columns: repeat(2,minmax(0,1fr)); align-items: start; }
.pf-case-media figure { aspect-ratio: var(--ratio,4/3); background: #e5dfd4; min-width: 0; border-radius: 3px; overflow: hidden; }
.pf-case-media figure img, .pf-case-media figure video { display: block; width: 100%; height: 100%; object-fit: cover; }
.pf-case-media.is-flush { padding: 0; }
.pf-case-media.is-flush figure { border-radius: 0; }
.pf-case-carousel { position: relative; padding: 8vw max(var(--gutter),10vw); margin-bottom: var(--gutter); background: #e8e1d4; }
.pf-carousel-track { position: relative; aspect-ratio: 4 / 3; }
.pf-carousel-slide { position: absolute; inset: 0; }
.pf-carousel-slide img { display: block; width: 100%; height: 100%; object-fit: contain; }
.pf-carousel-controls { display: flex; justify-content: center; align-items: center; gap: 24px; padding-top: 24px; font-size: 12px; }
.pf-carousel-controls button { border: 1px solid var(--ink); border-radius: 50%; width: 36px; height: 36px; background: transparent; font-size: 20px; transition: background .2s,color .2s; }
.pf-carousel-controls button:hover { background: var(--ink); color: var(--paper); }
.pf-project-nav { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 24px; padding: 100px var(--gutter); }
.pf-related-image { overflow: hidden; aspect-ratio: 1.5; margin: 12px 0 14px; border-radius: 3px; background: #e5dfd4; }
.pf-related-image img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.pf-related-project:hover .pf-related-image img { transform: scale(1.035); }
.pf-related-project h3, .pf-related-project > p { font-family: var(--font-neo-forma-serif); font-size: 26px; line-height: 1.08; letter-spacing: -.025em; }
.pf-related-project > p { color: var(--muted); margin-top: 3px; }
.pf-view-all { align-self: center; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 16px; font-family: var(--font-neo-forma-serif); font-size: 32px; }
.pf-view-all-icon { color: var(--accent); font-size: 62px; line-height: 1; transition: transform .3s; }
.pf-view-all:hover .pf-view-all-icon { transform: translate(4px,-4px); }

.pf-footer { padding: 42px var(--gutter) 28px; border-top: 1px solid var(--ink); }
.pf-footer-top { display: flex; justify-content: space-between; align-items: center; }
.pf-backtop { font-size: 12px; }
.pf-footer-title { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; font-family: var(--font-neo-forma-serif); font-size: clamp(48px,9.2vw,160px); line-height: 1.12; letter-spacing: -.055em; margin: 64px 0 74px; }
.pf-footer-title em { font-style: italic; margin-left: -.08em; }
.pf-footer-title > span { color: var(--accent); font-family: var(--font-neo-forma-sans); font-size: .8em; }
.pf-footer-bottom { display: flex; gap: 30px; font-size: 12px; line-height: 1.4; }
.pf-footer-bottom a:last-child { margin-left: auto; color: var(--muted); }
.pf-coming-soon-page { display: flex; flex-direction: column; min-height: 100dvh; }
.pf-coming-soon-page .pf-main { flex: 1; min-height: 0; }
.pf-coming-soon { min-height: 65vh; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: 80px var(--gutter); }
.pf-coming-soon h1 { font-family: var(--font-neo-forma-serif); font-size: clamp(64px, 10vw, 160px); line-height: 1; letter-spacing: -.04em; }

@media (min-width: 1700px) {
  .pf-work-info h2 { font-size: 30px; }
}
@media (max-width: 1279px) and (min-width: 768px) {
  .pf-work-row { height: 35vw; }
  .pf-work-info h2 { font-size: 24px; }
  .pf-case-title h2 { font-size: 40px; }
  .pf-case-title { grid-column: 1 / 5; }
  .pf-case-credits { grid-column: 5 / 7; }
}
@media (max-width: 767px) {
  .portfolio-page { --gutter: 20px; font-size: 16px; }
  .pf-main { padding-top: 91px; }
  .pf-work { padding-top: 30px; }
  .pf-work-controls { padding-bottom: 22px; min-height: 0; display: block; }
  .pf-work-toolbar { margin-left: 0; justify-content: space-between; gap: 10px; }
  .pf-work-heading { font-size: 34px !important; letter-spacing: -1.1px; }
  .pf-work-list { padding-top: 22px; }
  .pf-work-row { display: flex; flex-direction: column; gap: 18px; height: auto; min-height: 0; max-height: none; padding-bottom: 22px; margin-bottom: 22px; }
  .pf-work-info { padding-right: var(--gutter); }
  .pf-work-info .pf-eyebrow { margin-bottom: 7px; }
  .pf-work-info h2 { font-size: 25px; line-height: 1.1; }
  .pf-work-summary { font-size: 16px; max-width: 100%; }
  .pf-project-open { display: none; }
  .pf-work-gallery { --gallery-stack-step: 8px; height: 310px; flex: none; width: 100%; }
  .pf-project-headline { font-size: 36px; line-height: 1.08; padding: 36px var(--gutter) 26px; }
  .pf-project-hero { aspect-ratio: 4 / 3; }
  .pf-case-intro { display: block; padding: 34px var(--gutter) 48px; min-height: 0; }
  .pf-case-title { margin-bottom: 32px; }
  .pf-case-title h2 { max-width: 300px; font-size: 38px; margin-bottom: 14px; }
  .pf-reference-credit { margin-bottom: 15px; }
  .pf-case-credits { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 0 0 24px; font-size: 13px; }
  .pf-case-description { font-size: 17px; line-height: 1.3; }
  .pf-case-description h3 { font-size: 16px; }
  .pf-case-media { gap: 12px; padding-bottom: 12px; }
  .pf-case-media.is-pair { grid-template-columns: 1fr; }
  .pf-case-carousel { padding: 40px var(--gutter); }
  .pf-project-nav { grid-template-columns: repeat(2,minmax(0,1fr)); padding: 64px var(--gutter); gap: 16px; }
  .pf-related-project h3, .pf-related-project > p { font-size: 22px; }
  .pf-view-all { grid-column: 1 / -1; grid-row: 2; padding-top: 36px; font-size: 28px; }
  .pf-view-all-icon { font-size: 42px; }
  .pf-footer { padding-top: 30px; padding-bottom: 24px; }
  .pf-footer-title { display: block; font-size: 17vw; line-height: 1.04; margin: 44px 0; }
  .pf-footer-title em { display: inline-block; }
  .pf-footer-title > span { margin-left: 12px; }
  .pf-footer-top .pf-eyebrow { font-size: 9px; }
  .pf-footer-bottom { flex-wrap: wrap; gap: 16px 24px; font-size: 11px; }
  .pf-footer-bottom a:last-child { flex: 1 0 100%; margin-left: 0; margin-top: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .portfolio-page *, .portfolio-page *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; scroll-behavior: auto !important; }
}
