/* Jackfish home page (Oct 2026 direction). Loaded after site.css on index.html, about.html and contact.html,
   so all three share the nav, footer, type and scroll motion.
   Full camcorder film hero, big quiet type, thin rules, tight grid, orange only as small accents.
   Type: Alte Haas Grotesk for anything that reads as a title, Archivo for body copy, captions and UI.
   Alte Haas only has a regular and a bold, so hierarchy comes from size and colour, never weight. */

@font-face {
  font-family: "Alte Haas Grotesk";
  src: url("../assets/fonts/AlteHaasGrotesk-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Alte Haas Grotesk";
  src: url("../assets/fonts/AlteHaasGrotesk-Bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

/* A touch lighter than the site bone, still warm, never pure white. */
body.home { --paper: #fcfaf6; --display: "Alte Haas Grotesk", "Archivo", sans-serif; background: var(--paper); }

/* ---------- Nav: small wordmark, links as a sentence, one underlined link.
   Over the film only the wordmark shows; the links arrive once you are past it. ---------- */
.snav {
  position: fixed; z-index: 50; top: 0; left: 0; right: 0;
  height: var(--nav-h);
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: center;
  padding-inline: var(--gutter);
  color: var(--bone); font-size: 15px; font-weight: 500; letter-spacing: -0.005em;
  border-bottom: 1px solid transparent;
  transition: background-color 0.5s var(--ease), color 0.5s var(--ease), border-color 0.5s var(--ease);
}
.snav-logo { grid-column: 1 / span 3; width: 118px; height: 22px; display: flex; align-items: center; }
.snav-logo .wordmark { width: 100%; }
.snav-links { grid-column: 7 / span 4; }
.snav-talk { grid-column: 11 / span 2; justify-self: end; white-space: nowrap; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.snav-links, .snav-talk { opacity: var(--nav-o, 0); transition: opacity 0.5s var(--ease); }
.snav-links a { background: linear-gradient(currentColor, currentColor) right bottom / 0% 1px no-repeat; transition: background-size 0.5s var(--ease); }
@media (hover: hover) { .snav-links a:hover { background-size: 100% 1px; background-position: left bottom; } }
body.s-solid .snav { background: var(--paper); color: var(--ink); border-bottom-color: var(--line); }
/* Desktop: logo, links and button spread with equal gaps, so the links sit midway between the other two. */
@media (min-width: 761px) { .snav { display: flex; justify-content: space-between; } }
/* Phone: the links and the button fold into a burger that drops a small menu under the bar. */
.snav-toggle { grid-column: 10 / span 3; opacity: var(--nav-o, 0); transition: opacity 0.5s var(--ease); }
.snav-menu { display: none; }
@media (max-width: 760px) {
  .snav-links, .snav-talk { display: none; }
  .snav-toggle { grid-column: 8 / span 5; }
  body.menu-open .snav { background: var(--paper); color: var(--ink); border-bottom-color: var(--line); }
  body.menu-open .snav-toggle { opacity: 1; }
  .snav-menu {
    position: fixed; z-index: 49; top: var(--nav-h); left: 0; right: 0;
    display: flex; flex-direction: column; align-items: flex-start; gap: 24px;
    padding: 8px var(--gutter) 28px;
    background: var(--paper); border-bottom: 1px solid var(--line);
    clip-path: inset(0 0 100% 0); visibility: hidden;
    transition: clip-path 0.5s var(--ease-io), visibility 0s 0.5s;
  }
  body.menu-open .snav-menu { clip-path: inset(0); visibility: visible; transition: clip-path 0.5s var(--ease-io), visibility 0s; }
  .snav-menu nav { display: flex; flex-direction: column; width: 100%; }
  .snav-menu nav a { font-family: var(--display); font-size: clamp(34px, 10vw, 48px); line-height: 1.15; letter-spacing: -0.04em; color: var(--ink); padding-block: 6px; }
}

/* ---------- Hero: the film full screen, logo top left, one line in the middle, fish bottom right ---------- */
.s-hero { position: relative; height: 100vh; height: 100svh; overflow: hidden; background: var(--ink); color: var(--bone); }
.s-film { position: absolute; inset: 0; }
.s-film video { width: 100%; height: 100%; object-fit: cover; transform: scale(var(--z, 1)); }
.s-film::after { content: ""; position: absolute; inset: 0; background: rgba(20, 12, 10, 0.3); }
.n-line { position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; padding-inline: var(--gutter); }
.n-line h1 { max-width: 16em; text-align: center; font-family: var(--display); font-size: clamp(26px, 2.8vw, 50px); font-weight: 400; line-height: 0.98; letter-spacing: -0.045em; color: var(--bone); text-wrap: balance; text-shadow: 0 1px 28px rgba(20, 12, 10, 0.35); }
.n-fish { position: absolute; z-index: 2; right: var(--gutter); bottom: clamp(24px, 3vw, 44px); width: clamp(56px, 5vw, 84px); color: var(--orange); }
.motion .n-fish { opacity: 0; transform: translateX(-48px); }
.motion.is-loaded .n-fish { opacity: 1; transform: none; transition: opacity 1s var(--ease) 0.8s, transform 1.8s var(--ease) 0.8s; }
/* The nav logo glides in from the left the same way the fish does. */
.motion .snav-logo { opacity: 0; transform: translateX(-48px); }
.motion.is-loaded .snav-logo { opacity: 1; transform: none; transition: opacity 1s var(--ease) 0.6s, transform 1.8s var(--ease) 0.6s; }
.motion .n-line h1 { opacity: 0; transform: translateY(16px); }
.motion.is-loaded .n-line h1 { opacity: 1; transform: none; transition: opacity 1.2s var(--ease) 0.2s, transform 1.4s var(--ease) 0.2s; }

/* ---------- Work: one big project, then two side by side, name left and services right ---------- */
.n-work { padding-top: clamp(48px, 5vw, 80px); padding-bottom: var(--section); }
.n-intro { padding-inline: 4px; max-width: 26em; font-family: var(--display); font-size: clamp(20px, 1.8vw, 28px); font-weight: 400; line-height: 1.2; letter-spacing: -0.025em; color: var(--ink); }
.n-grid { display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(10px, 1.2vw, 18px); row-gap: clamp(24px, 2.4vw, 36px); }
.n-proj { display: block; }
.n-proj--full { grid-column: 1 / -1; }
.n-media { position: relative; aspect-ratio: 1.15 / 1; overflow: hidden; background: #d9d9d9; }
.n-proj--full .n-media { aspect-ratio: 2.4 / 1; }
.n-media img, .n-media video { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.n-cap { display: flex; flex-wrap: wrap; justify-content: flex-start; align-items: baseline; gap: 4px 12px; padding: 14px 4px 0; font-size: clamp(16px, 1.3vw, 20px); color: var(--ink); }
.n-cap h3 { font-family: var(--display); font-size: 1.08em; font-weight: 400; line-height: inherit; }
.n-cap p { font-family: var(--display); font-size: 0.85em; color: rgba(48, 28, 23, 0.4); }
/* Only projects that are links zoom on hover; plain photos (About) stay still. */
@media (hover: hover) { a.n-proj:hover .n-media img, a.n-proj:hover .n-media video { transform: scale(1.03); } }
@media (max-width: 760px) {
  .n-grid { grid-template-columns: 1fr; }
  .n-proj--full .n-media { aspect-ratio: 4 / 3; }
  /* Full cards with their own phone cover match the smaller cards once stacked. */
  .n-proj--stack .n-media { aspect-ratio: 1.15 / 1; }
  .n-cap { font-size: 15px; }
}

/* Projects arriving: they fade in, the caption follows a beat later. */
.motion [data-reveal="n"] { opacity: 0; transform: none; transition: opacity 1.1s var(--ease); }
.motion [data-reveal="n"].is-in { opacity: 1; }
.motion [data-reveal="n"] .n-cap { opacity: 0; transform: translateY(8px); transition: opacity 0.9s var(--ease) 0.35s, transform 1s var(--ease) 0.35s; }
.motion [data-reveal="n"].is-in .n-cap { opacity: 1; transform: none; }
/* Grow to fit: starts at 97% and reaches full size by the middle of the screen, never shrinks back (js/home.js). */
[data-anim="grow"] .n-media { transform: scale(var(--g, 0.97)); transform-origin: 50% 50%; }
.motion [data-anim="grow"] .n-media { will-change: transform; }
html:not(.motion) [data-anim="grow"] .n-media { transform: none; }

/* ---------- What we do / How we build: section head, plus the stacked rows on About (always full colour) ---------- */
.n-what { padding-bottom: var(--section); }
.n-what-head { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: clamp(28px, 3vw, 44px); padding-left: 4px; }
.n-what-head h2 { font-family: var(--display); font-size: clamp(20px, 1.8vw, 28px); font-weight: 400; line-height: 1.2; letter-spacing: -0.025em; color: var(--ink); }
.n-offers { list-style: none; margin: 0; padding: 0; }
.n-offer-row { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: center; padding: clamp(18px, 2.2vw, 34px) 4px; }
.n-offer-row h3 { grid-column: 1 / span 7; font-family: var(--display); font-size: clamp(28px, 3.2vw, 56px); font-weight: 400; line-height: 1.04; letter-spacing: -0.04em; color: var(--ink); }
.n-offer-row p { grid-column: 8 / span 5; max-width: 26em; font-size: clamp(15px, 1.15vw, 17px); line-height: 1.45; color: var(--ink-2); }
@media (max-width: 760px) {
  .n-offer-row { row-gap: 12px; }
  .n-offer-row h3, .n-offer-row p { grid-column: 1 / -1; }
}

/* Homepage services: three columns, title with its line right under it. */
.n-svcs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); column-gap: clamp(24px, 3vw, 48px); row-gap: 32px; }
.n-svc { padding-left: 4px; }
.n-svc-cta { margin-top: clamp(32px, 3.4vw, 56px); padding-left: 4px; }
.n-svc h3 { font-family: var(--display); font-size: clamp(28px, 3.2vw, 56px); font-weight: 400; line-height: 1.04; letter-spacing: -0.04em; color: var(--ink); }
.n-svc p { margin-top: clamp(10px, 1vw, 16px); text-wrap: pretty; font-size: clamp(15px, 1.15vw, 17px); line-height: 1.45; color: var(--ink-2); }
@media (max-width: 760px) { .n-svcs { grid-template-columns: 1fr; } }

/* Compact button: small, square, orange, with a little arrow, so it reads as a quiet action, not a banner. */
.n-btn { height: 34px; padding: 0 12px 0 14px; gap: 8px; font-size: 13.5px; font-weight: 600; letter-spacing: 0; }
.n-btn span { display: inline-flex; align-items: center; gap: 8px; }
.n-btn .ico { width: 12px; height: 12px; stroke-width: 2; }

/* Footer: the big "Let's talk" is a title, so it uses Alte Haas too. */
body.home .footer-cta { font-family: var(--display); font-weight: 400; font-size: clamp(52px, 7.6vw, 140px); letter-spacing: -0.045em; }
body.home .footer-cta .ico { width: 0.42em; height: 0.42em; margin-left: 0.12em; stroke-width: 4; filter: url(#ink-bleed); }

/* ---------- Belief: one centred line with small photos floating in a band above and a band below it.
   Everything is sized from the screen width, so the photos keep their distance from the line at any size. ---------- */
.n-belief { position: relative; padding: clamp(24px, 3vw, 56px) var(--gutter); margin-bottom: clamp(40px, 5vw, 80px); overflow-x: clip; }
.n-belief-line { position: relative; z-index: 2; margin: clamp(56px, 7.5vw, 124px) auto; max-width: 17em; text-align: center; font-family: var(--display); font-size: clamp(28px, 3.2vw, 56px); font-weight: 400; line-height: 1.04; letter-spacing: -0.04em; color: var(--ink); text-wrap: balance; }
.n-band { position: relative; height: min(19vw, 330px); }
.n-float { position: absolute; margin: 0; overflow: hidden; background: var(--bone); will-change: transform; }
.n-float img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Top band */
.n-float.c1 { left: 4%;  top: 18%; width: min(11vw, 196px); aspect-ratio: 4 / 3; }
.n-float.c2 { left: 30%; top: 0;   width: min(7.5vw, 134px); aspect-ratio: 1 / 1; }
.n-float.c3 { right: 7%; top: 2%;  width: min(12vw, 214px); aspect-ratio: 4 / 5; }
/* Bottom band */
.n-float.c4 { left: 11%; top: 0;   width: min(9.5vw, 170px); aspect-ratio: 4 / 5; }
.n-float.c5 { left: 50%; top: 30%; width: min(12vw, 214px); aspect-ratio: 4 / 3; }
.n-float.c6 { right: 2%; top: 12%; width: min(7vw, 125px); aspect-ratio: 1 / 1; }
@media (max-width: 760px) {
  .n-band { height: 40vw; }
  .n-belief { margin-bottom: var(--section); }
  .n-belief-line { margin: 13vw auto; }
  .n-float.c2, .n-float.c6 { display: none; }
  .n-float.c1 { left: 0; top: 30%; width: 36vw; }
  .n-float.c3 { right: 2%; top: 0; width: 30vw; }
  .n-float.c4 { left: 6%; top: 0; width: 28vw; }
  .n-float.c5 { left: auto; right: 0; top: 18%; width: 38vw; }
}

/* Desktop: less empty air between the project grid, the photo bands and the line. */
@media (min-width: 761px) {
  .n-work { padding-bottom: clamp(48px, 4vw, 72px); }
  .n-band { height: min(15vw, 270px); }
  .n-belief-line { margin: clamp(40px, 4.5vw, 76px) auto; }
}

/* ---------- Work header ---------- */
.n-work-head { margin-bottom: clamp(28px, 3vw, 44px); }


/* ==========================================================================
   Inner pages (About, Contact): body.page. No film, so the nav is solid from the start
   and the logo stays put instead of gliding in on every page load.
   ========================================================================== */
.motion body.page .snav-logo { opacity: 1; transform: none; transition: none; }
/* The page you are on keeps its underline. */
.snav-links a[aria-current="page"] { background-size: 100% 1px; }

/* Every piece of text on these pages reuses a home page style (belief line, section head, intro line,
   project caption, offer text). This block only handles spacing and layout. */
/* One gap between every section on these pages, so the rhythm never changes. */
body.page { --p-gap: clamp(72px, 7vw, 128px); }
body.page main > section { padding-top: 0; padding-bottom: var(--p-gap); }
body.page main > .p-open { padding-top: calc(var(--nav-h) + var(--p-gap)); }
.p-open .n-belief-line { margin: 0 auto; }
/* About opens on a film like the home page, so the first section gets the page gap below it instead of inside it. */
body.page main > .p-hero { padding-bottom: 0; margin-bottom: var(--p-gap); }
/* About hero is a photo, not a film, and holds a few short paragraphs in the hero line style. */
.s-film img { width: 100%; height: 100%; object-fit: cover; }
.p-hero .s-film::after { background: rgba(20, 12, 10, 0.5); }
.p-hero-copy { width: 100%; display: grid; justify-items: center; gap: 0.9em; }
/* Both paragraphs share one measure so each breaks into the same two balanced lines. */
.p-hero .n-line .p-hero-copy h1, .p-hero-copy p { max-width: 21em; text-align: center; font-family: var(--display); font-size: clamp(22px, 2.2vw, 38px); font-weight: 400; line-height: 1.12; letter-spacing: -0.035em; color: var(--bone); text-wrap: balance; text-shadow: 0 1px 28px rgba(20, 12, 10, 0.35); }
/* Hand-drawn orange underline under "proud". It runs behind the tail of the p, sized off the word so it fits at every breakpoint, and draws in after the hero text settles. */
.proud { position: relative; display: inline-block; isolation: isolate; }
.proud-p { position: relative; z-index: 2; }
.proud-line { position: absolute; z-index: 1; left: -3%; width: 106%; top: 81%; height: 0.32em; overflow: visible; pointer-events: none; }
.proud-line path { fill: none; stroke: var(--orange); stroke-width: 6.8; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.motion .proud-line path { stroke-dashoffset: 1; }
.motion.is-loaded .proud-line path { stroke-dashoffset: 0; transition: stroke-dashoffset 0.9s cubic-bezier(0.65, 0, 0.35, 1) 1.6s; }
.motion .p-hero-copy p { opacity: 0; transform: translateY(16px); }
.motion.is-loaded .p-hero-copy p { opacity: 1; transform: none; transition: opacity 1.2s var(--ease) 0.45s, transform 1.4s var(--ease) 0.45s; }
.motion.is-loaded .p-hero-copy p + p { transition-delay: 0.7s; }
/* A place name picked out in orange inside an intro line. */
.n-intro .hl { color: var(--orange); }
/* Small place name sitting in the middle of the lake photo. */
.p-place { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-family: var(--display); font-size: clamp(19px, 1.7vw, 26px); font-weight: 700; letter-spacing: -0.02em; color: var(--bone); text-shadow: 0 1px 18px rgba(20, 12, 10, 0.35); pointer-events: none; }

/* Careers: one ruled row, section-head title left, offer text right. */
.p-row { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: baseline; padding: clamp(22px, 2.6vw, 40px) 4px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.p-row h2 { grid-column: 1 / span 7; font-family: var(--display); font-size: clamp(20px, 1.8vw, 28px); font-weight: 400; line-height: 1.2; letter-spacing: -0.025em; }
.p-row p { grid-column: 8 / span 5; max-width: 26em; font-size: clamp(15px, 1.15vw, 17px); line-height: 1.45; color: var(--ink-2); }
/* About Careers: no rules, title matches the How we build rows (belief-line size). */
.p-careers .p-row { border: 0; align-items: center; }
.p-careers .p-row h2 { font-size: clamp(28px, 3.2vw, 56px); line-height: 1.04; letter-spacing: -0.04em; }

/* ---------- Contact: everything on the paper, thin rules, orange only on the picked chip and the button ---------- */
.p-contact .n-what-head { padding-left: 4px; }
.p-contact-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: start; }
.p-contact-intro { grid-column: 1 / span 5; position: sticky; top: calc(var(--nav-h) + 48px); }
.p-details { margin: 0; }
.p-details div { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; padding: 10px 4px; font-size: clamp(16px, 1.3vw, 20px); }
/* Same as a project caption: value in Alte Haas ink, label after it in faded Alte Haas. */
.p-details dt { order: 2; font-family: var(--display); font-size: 0.85em; color: rgba(48, 28, 23, 0.4); }
.p-details dd { order: 1; margin: 0; font-family: var(--display); font-size: 1.08em; }
.p-details a { background: linear-gradient(currentColor, currentColor) right bottom / 0% 1px no-repeat; transition: background-size 0.5s var(--ease); }

body.page .cf { grid-column: 7 / span 6; gap: 36px; padding: 6px 0 0; background: none; color: var(--ink); }
body.page .cf-field label, body.page .cf-group legend { color: var(--mute); }
body.page .cf-field input, body.page .cf-field textarea, body.page .cf-field select { border-bottom-color: rgba(48, 28, 23, 0.24); color: var(--ink); }
body.page .cf-field input:focus, body.page .cf-field textarea:focus, body.page .cf-field select:focus { border-bottom-color: var(--orange); box-shadow: 0 1px 0 var(--orange); }
body.page .cf-error { color: #c23f06; }
body.page .cf-field select.is-empty { color: var(--mute); }
body.page .cf-field.is-invalid input { border-bottom-color: #c23f06; }
body.page .cf-chip span { border-color: rgba(48, 28, 23, 0.2); color: var(--ink-2); }
body.page .cf-chip input:checked + span { background: var(--orange); border-color: var(--orange); color: var(--white); }
body.page .cf-status { color: var(--ink-2); }
body.page .cf .n-btn { min-width: 0; height: 40px; padding: 0 14px 0 16px; font-size: 14px; }
body.page .cf .btn.is-sent { background: var(--ink); color: var(--paper); }
@media (hover: hover) {
  .p-details a:hover { background-size: 100% 1px; background-position: left bottom; }
  body.page .cf-field input:hover, body.page .cf-field textarea:hover, body.page .cf-field select:hover { border-bottom-color: rgba(48, 28, 23, 0.5); }
  body.page .cf-chip:hover span { border-color: rgba(48, 28, 23, 0.5); }
}

@media (max-width: 1100px) {
  .p-contact-intro { grid-column: 1 / -1; position: static; }
  body.page .cf { grid-column: 1 / -1; margin-top: 56px; }
}
@media (max-width: 760px) {
  .p-row { row-gap: 10px; }
  .p-row h2, .p-row p { grid-column: 1 / -1; }
  body.page .cf { margin-top: 48px; padding: 0; gap: 30px; }
  body.page .cf .n-btn { width: 100%; justify-content: center; height: 46px; }
}

/* ---------- Project pages (body.page): banner and images are home page project cards ----------
   Name and services use the card caption, each section is a ruled row (like Careers), the next project is a card.
   Only layout lives here, no new type sizes. */
.n-cap h1 { font-family: var(--display); font-size: 1.08em; font-weight: 400; line-height: inherit; }
body.page main > .pj-top { padding-top: calc(var(--nav-h) + var(--gap)); }
.pj-sec .p-row { margin-bottom: clamp(28px, 3vw, 44px); }
/* Grey placeholder: swap the .ph box for an <img> inside .n-media when the artwork is ready. */
.n-media.ph { display: grid; place-items: center; }
.n-media.ph span { font-size: 13px; color: rgba(48, 28, 23, 0.45); }
/* Slot proportions the artwork is exported at: banner 1440x549, tall 708x944, short 708x566, squarish 708x531. */
.n-proj--full .n-media.pj-banner { aspect-ratio: 1440 / 549; }
.n-media.pj-tall { aspect-ratio: 3 / 4; }
.n-media.pj-short { aspect-ratio: 5 / 4; }
.n-media.pj-sq { aspect-ratio: 4 / 3; }
/* Image grids: the same gap across and down, so every edge lines up. These sections have no captions, so the row gap matches the column gap. */
.pj-sec .n-grid { row-gap: clamp(10px, 1.2vw, 18px); }
/* One large image beside two stacked: same two equal columns as every other row, and the large one is exactly as tall as the two together. */
.pj-feature { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(10px, 1.2vw, 18px); row-gap: clamp(10px, 1.2vw, 18px); }
.pj-feature .pj-stack { display: contents; }
.pj-feature .pj-lead { grid-row: 1 / span 2; display: flex; }
.pj-feature .pj-lead .n-media { flex: 1; aspect-ratio: auto; }
@media (max-width: 760px) {
  .n-proj--full .n-media.pj-banner { aspect-ratio: 4 / 3; }
  .pj-feature { grid-template-columns: 1fr; }
  .pj-feature .pj-lead { grid-row: auto; }
  .pj-feature .pj-lead .n-media { aspect-ratio: 4 / 5; }
}
/* Fixed grid: a project page marked .pj-fixed keeps its desktop grid and exported proportions on phones too, instead of stacking and cropping. */
@media (max-width: 760px) {
  main.pj-fixed .n-grid { grid-template-columns: 1fr 1fr; }
  main.pj-fixed .n-proj--full .n-media.pj-banner { aspect-ratio: 1440 / 549; }
  main.pj-fixed .pj-feature { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  main.pj-fixed .pj-feature .pj-lead { grid-row: 1 / span 2; }
  main.pj-fixed .pj-feature .pj-lead .n-media { aspect-ratio: auto; }
  main.pj-fixed .pj-next-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* Phones: no fade-in. The reveal waits until a block is well inside the screen, which leaves a blank band under the first screen. */
  main.pj-fixed [data-reveal="n"] { opacity: 1; }
  main.pj-fixed [data-reveal="n"] .n-cap { opacity: 1; transform: none; }
}
/* Images that must be there as soon as the page opens (the first row under the opening text): no fade-in, on any screen. */
.motion .n-proj.pj-now[data-reveal="n"] { opacity: 1; }
/* Phones: the Back button is just the arrow, so it covers less of the banner. */
@media (max-width: 760px) {
  .pj-back .pj-back-t { display: none; }
  .pj-back { height: 30px; padding: 0 10px; }
}
/* More projects: the other two, side by side across the full row, same as the home page pair. */
.pj-next-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pj-next-grid .n-media { aspect-ratio: 2.3 / 1; }
@media (max-width: 760px) { .pj-next-grid { grid-template-columns: 1fr; } }
/* Project page banner caption: the name at section-head size, services pushed to the right edge. */
.pj-top .n-cap { justify-content: space-between; }
.pj-top .n-cap h1 { font-size: clamp(26px, 2.8vw, 50px); line-height: 1; letter-spacing: -0.045em; }
.pj-top .n-cap { align-items: flex-start; }
.pj-top .n-cap p { line-height: 1.2; padding-top: 0.2em; }
/* Project page text sections: no rules above or below, just the heading and text. */
.pj-sec .p-row { border: 0; padding-block: 0; }
/* Back button: the "Start a project" button in white, top left of the banner. */
.pj-hero { position: relative; }
.pj-back { position: absolute; z-index: 2; top: clamp(12px, 1.4vw, 20px); left: clamp(12px, 1.4vw, 20px); background: var(--white); color: var(--ink); --btn-fill: var(--ink); }
@media (hover: hover) and (pointer: fine) { .pj-back:hover, .pj-back:focus-visible { color: var(--white); } }
/* Footer "Let's talk": a thin underline marks it as a link, same idea as the underlined "Start a project" in the nav. */
body.home .footer-cta span { position: relative; }
/* The line is drawn, not a text underline, so it can start and end exactly on the letters (the L has a left gap and the negative letter spacing pulls the text box in on the right). Offsets are in em from the Alte Haas outlines. */
body.home .footer-cta span::after { content: ""; position: absolute; left: 0.079em; right: -0.029em; top: calc(100% + 0.027em); height: 2px; background: currentColor; }
