
/* ============================================================
   Content area redesign. Everything is scoped to .pj and uses
   its own tokens, so the hero, the dive and the footer are
   untouched. The container matches #layout, so content edges
   sit on the page grid lines drawn by the canvas.
   ============================================================ */
.pj {
  --pj-ink: #1a1512;
  --pj-ink-2: #584f48;
  --pj-ink-3: #70665e;
  --pj-mute: #8f857c;
  --pj-line: rgba(60, 42, 32, .15);
  --pj-accent: #a8401f;
  --pj-panel: #f0e9e0;
  --pj-ease: cubic-bezier(.16, .84, .24, 1);
  --pj-space: clamp(104px, 11vw, 168px);
  --pj-gap: 32px;
  width: min(1200px, 100vw - 32px);
  margin: 0 auto;
  padding: 0 0 var(--pj-space);
  color: var(--pj-ink);
  font-family: "Inter Tight", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  text-align: left;
  -webkit-font-smoothing: antialiased;
}
.pj *, .pj *::before, .pj *::after { box-sizing: border-box; }
.pj a { color: inherit; text-decoration: none; }
.pj a:focus-visible { outline: 2px solid var(--pj-accent); outline-offset: 4px; border-radius: 6px; }
.pj h2, .pj h3, .pj p { margin: 0; padding: 0; }
.pj img { max-width: 100%; }

/* ---------- section frame ---------- */
.pj-sec { margin: 0; padding: 0; scroll-margin-top: 112px; }
.pj-sec + .pj-sec { margin-top: var(--pj-space); }
.pj-head {
  display: flex; justify-content: space-between; align-items: baseline; gap: 24px;
  padding-top: 16px; margin-bottom: clamp(40px, 4.6vw, 64px);
  border-top: 1px solid var(--pj-ink);
  font-size: 14px; line-height: 1.4; color: var(--pj-ink-3);
}
.pj-head b { margin-right: 14px; font-weight: 500; color: var(--pj-ink); font-variant-numeric: tabular-nums; }
.pj-h2 {
  font-size: clamp(40px, 5.6vw, 80px); font-weight: 600; letter-spacing: -.05em; line-height: .98;
  color: var(--pj-ink); text-wrap: balance;
}
.pj-h2 span { display: block; color: var(--pj-mute); }
.pj-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--pj-gap); }
.pj-ar { width: 20px; height: 20px; flex: none; transition: translate .45s var(--pj-ease), color .25s; }
.pj-link {
  display: inline-flex; align-items: center; gap: 8px; padding-bottom: 5px;
  font-size: 15px; font-weight: 500; line-height: 1.3; color: var(--pj-ink);
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  transition: color .25s;
}
.pj-link .pj-ar { width: 16px; height: 16px; }
.pj-link:hover { color: var(--pj-accent); }
.pj-link:hover .pj-ar, a:hover > .pj-ar, a:hover .pj-title-row .pj-ar { translate: 3px -3px; }

/* ---------- 01 selected work ---------- */
.pj-case > a { display: block; }
.pj-shot {
  display: block; position: relative; overflow: hidden;
  aspect-ratio: 4 / 3; padding: 9% 9% 0;
  border-radius: 14px; background: var(--pj-panel);
  box-shadow: inset 0 0 0 1px rgba(60, 42, 32, .07);
  transition: background .5s;
}
.pj-shot img {
  display: block; width: 100%; height: calc(100% + 12px); max-width: none;
  object-fit: cover; object-position: top center;
  border-radius: 8px 8px 0 0;
  box-shadow: 0 0 0 1px rgba(60, 42, 32, .1), 0 28px 48px -22px rgba(70, 40, 20, .38);
  transition: transform .9s var(--pj-ease);
}
.pj-case > a:hover .pj-shot { background: #ebe2d7; }
.pj-case > a:hover .pj-shot img { transform: translateY(-12px); }
/* Keep the left-hand navigation visible in the three supporting thumbnails. */
.pj-cases .pj-shot img { object-position:left top; transform-origin:left top; transform:scale(1.12); }
.pj-cases .pj-case > a:hover .pj-shot img { transform:translateY(-12px) scale(1.12); }
.pj-case-body { display: block; padding-top: 22px; }
.pj-kicker { display: block; margin-bottom: 10px; font-size: 13px; line-height: 1.4; color: var(--pj-ink-3); }
.pj-title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.pj-title-row .pj-ar { margin-top: 5px; color: var(--pj-ink-3); }
.pj-case > a:hover .pj-title-row .pj-ar { color: var(--pj-accent); }
.pj-case h3 { font-size: 26px; font-weight: 600; letter-spacing: -.03em; line-height: 1.12; color: var(--pj-ink); }
.pj-case-sum { margin-top: 10px !important; max-width: 36ch; font-size: 16px; line-height: 1.55; color: var(--pj-ink-2); text-wrap: pretty; }
.pj-status { display: block; margin-top: 16px; font-size: 13px; line-height: 1.4; color: var(--pj-ink-3); }

.pj-case--lead > a { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--pj-gap); align-items: end; }
.pj-case--lead .pj-shot { grid-column: 1 / 9; aspect-ratio: 16 / 10.5; padding: 6.5% 8% 0; }
.pj-case--lead .pj-case-body { grid-column: 9 / 13; padding: 0 0 4px; }
.pj-case--lead h3 { font-size: clamp(34px, 3.5vw, 50px); letter-spacing: -.045em; line-height: 1.02; }
.pj-case--lead .pj-case-sum { margin-top: 16px !important; font-size: 18px; line-height: 1.5; }
.pj-facts { display: block; margin-top: 32px; border-top: 1px solid var(--pj-line); }
.pj-facts > span { display: grid; grid-template-columns: 64px 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--pj-line); font-size: 14px; line-height: 1.45; color: var(--pj-ink); }
.pj-facts i { font-style: normal; color: var(--pj-ink-3); }
.pj-case--lead .pj-link { margin-top: 32px; }
.pj-case--lead > a:hover .pj-link { color: var(--pj-accent); }
.pj-case--lead > a:hover .pj-link .pj-ar { translate: 3px -3px; }
.pj-work .pj-case--lead { margin-top: clamp(48px, 5vw, 72px); }
.pj-cases { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 56px var(--pj-gap); margin-top: clamp(64px, 6.5vw, 96px); }

/* ---------- 02 building with AI ---------- */
.pj-index { margin-top: clamp(40px, 4.6vw, 64px); border-bottom: 1px solid var(--pj-line); }
.pj-row {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--pj-gap); align-items: baseline;
  padding: 28px 0; border-top: 1px solid var(--pj-line);
}
.pj-row .pj-n { grid-column: 1 / 2; font-size: 14px; color: var(--pj-ink-3); font-variant-numeric: tabular-nums; }
.pj-row h3 { grid-column: 2 / 6; font-size: 22px; font-weight: 500; letter-spacing: -.02em; line-height: 1.2; color: var(--pj-ink); transition: translate .5s var(--pj-ease); }
.pj-row p { grid-column: 6 / 10; font-size: 15.5px; line-height: 1.55; color: var(--pj-ink-2); text-wrap: pretty; }
.pj-row .pj-tag { grid-column: 10 / 12; font-size: 13px; line-height: 1.4; color: var(--pj-ink-3); text-align: right; }
.pj-row .pj-ar { grid-column: 12 / 13; justify-self: end; align-self: center; color: var(--pj-ink-3); }
.pj-row:hover h3 { translate: 10px 0; }
.pj-row:hover .pj-ar { color: var(--pj-accent); translate: 3px -3px; }

/* ---------- 03 across screens ---------- */
.pj-intro { align-items: end; row-gap: 24px; }
.pj-intro .pj-h2 { grid-column: 1 / 9; }
.pj-intro p { grid-column: 9 / 13; padding-bottom: 8px; font-size: 18px; line-height: 1.5; color: var(--pj-ink-2); text-wrap: pretty; }
.pj-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px var(--pj-gap); margin-top: clamp(48px, 5vw, 72px); }
.pj-media {
  display: block; position: relative; overflow: hidden; aspect-ratio: 36 / 25;
  border-radius: 14px; background: var(--pj-panel);
  box-shadow: inset 0 0 0 1px rgba(60, 42, 32, .07);
}
.pj-media > img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--pj-ease); }
.pj-tile > a:hover .pj-media > img { transform: scale(1.03); }
.pj-tile > a { display: block; }
.pj-tile .pj-title-row { margin-top: 22px; }
.pj-tile h3 { font-size: 26px; font-weight: 600; letter-spacing: -.03em; line-height: 1.12; color: var(--pj-ink); }
.pj-tile p { margin-top: 10px; max-width: 44ch; font-size: 16px; line-height: 1.55; color: var(--pj-ink-2); text-wrap: pretty; }
.pj-tile > a:hover .pj-title-row .pj-ar { color: var(--pj-accent); }

/* ---------- 04 how I work ---------- */
.pj-lede {
  margin-top: clamp(32px, 3.6vw, 48px) !important; max-width: 27em;
  font-size: clamp(21px, 2.1vw, 30px); font-weight: 400; letter-spacing: -.02em; line-height: 1.32;
  color: var(--pj-ink); text-wrap: pretty;
}
.pj-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px var(--pj-gap); margin-top: clamp(56px, 6vw, 88px); }
.pj-step { display: flex; flex-direction: column; align-items: flex-start; padding-top: 18px; border-top: 1px solid var(--pj-ink); }
.pj-step .pj-n { font-size: 14px; color: var(--pj-ink-3); font-variant-numeric: tabular-nums; }
.pj-step h3 { margin-top: clamp(32px, 4vw, 56px); font-size: 22px; font-weight: 500; letter-spacing: -.02em; line-height: 1.2; color: var(--pj-ink); }
.pj-step p { margin-top: 12px; max-width: 34ch; font-size: 16px; line-height: 1.6; color: var(--pj-ink-2); text-wrap: pretty; }
.pj-step .pj-link { margin-top: 24px; }

/* ---------- 05 about ---------- */
.pj-about-grid { margin-top: clamp(48px, 5vw, 72px); row-gap: 48px; align-items: start; }
.pj-note { grid-column: 1 / 6; }
.pj-note p { font-size: 20px; line-height: 1.5; letter-spacing: -.01em; color: var(--pj-ink-2); text-wrap: pretty; }
.pj-note .pj-link { margin-top: 28px; }
.pj-career { grid-column: 7 / 13; }
.pj-job { display: grid; grid-template-columns: 136px 1fr; gap: 24px; align-items: baseline; padding: 24px 0; border-top: 1px solid var(--pj-line); }
.pj-job:first-child { border-top: 0; }
.pj-job > span { font-size: 14px; color: var(--pj-ink-3); font-variant-numeric: tabular-nums; }
.pj-job h3 { font-size: 22px; font-weight: 500; letter-spacing: -.02em; line-height: 1.2; color: var(--pj-ink); }
.pj-job p { margin-top: 6px; font-size: 15.5px; line-height: 1.5; color: var(--pj-ink-2); }
.pj-phones {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 2.6vw, 36px); align-items: start;
  margin-top: clamp(64px, 7vw, 104px); padding: clamp(32px, 5vw, 72px) clamp(24px, 9vw, 128px);
  overflow: hidden;
  border-radius: 20px; background: var(--pj-panel);
  box-shadow: inset 0 0 0 1px rgba(60, 42, 32, .07);
}
.pj-phones img { display: block; width: 100%; height: auto; filter: drop-shadow(0 26px 30px rgba(70, 40, 20, .22)); }

/* ---------- footer: same container as the content, so both share the page grid edges ---------- */
.closing-footer .closing-inner { width: min(1200px, 100vw - 32px); }

/* ---------- entrance (only once the page is lit, same gate as the hero hand-off) ---------- */
.pj-js .pj-in { opacity: 0; transform: translateY(28px); transition: opacity .8s ease var(--d, 0ms), transform 1.1s var(--pj-ease) var(--d, 0ms); }
.pj-js body.lit .pj-in.is-in { opacity: 1; transform: none; }
body.paused .pj .pj-in, .motion-paused .pj .pj-in { opacity: 1; transform: none; transition: none; }
@media (prefers-reduced-motion: reduce) {
  .pj .pj-in { opacity: 1 !important; transform: none !important; transition: none !important; }
  .pj *, .pj *::before { transition: none !important; }
}

/* ---------- tablet ---------- */
@media (max-width: 1040px) {
  .pj { --pj-gap: 24px; }
  .pj-case--lead > a { align-items: start; row-gap: 28px; }
  .pj-case--lead .pj-shot, .pj-case--lead .pj-case-body { grid-column: 1 / -1; }
  .pj-case--lead .pj-case-body { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--pj-gap); align-items: start; }
  .pj-case--lead .pj-case-body > * { grid-column: 1; }
  .pj-case--lead .pj-facts { grid-column: 2; grid-row: 1 / span 3; margin-top: 0; }
  .pj-case--lead .pj-link { justify-self: start; }
  .pj-cases .pj-case h3 { font-size: 22px; }
  .pj-case--lead .pj-shot { aspect-ratio: 16 / 9; }
  .pj-row h3 { grid-column: 2 / 7; }
  .pj-row p { grid-column: 7 / 12; }
  .pj-row .pj-tag { display: none; }
  .pj-intro .pj-h2, .pj-intro p { grid-column: 1 / -1; }
  .pj-intro p { max-width: 34em; padding-bottom: 0; }
  .pj-note { grid-column: 1 / -1; max-width: 34em; }
  .pj-career { grid-column: 1 / -1; }
}

/* ---------- phone ---------- */
@media (max-width: 760px) {
  .pj { --pj-space: 88px; --pj-gap: 20px; }
  .pj-head { margin-bottom: 32px; }
  .pj-case--lead .pj-case-body { display: block; }
  .pj-case--lead .pj-facts { margin-top: 24px; }
  .pj-case--lead .pj-link { margin-top: 24px; }
  .pj-case--lead .pj-shot { aspect-ratio: 4 / 3; padding: 8% 8% 0; }
  .pj-cases, .pj-pair, .pj-steps { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .pj-cases .pj-case h3, .pj-tile h3 { font-size: 24px; }
  .pj-row { grid-template-columns: minmax(0, 1fr) 20px; column-gap: 16px; row-gap: 8px; padding: 22px 0; }
  .pj-row .pj-n { display: none; }
  .pj-row h3 { grid-column: 1; font-size: 20px; }
  .pj-row .pj-ar { grid-column: 2; grid-row: 1; align-self: start; margin-top: 3px; }
  .pj-row p { grid-column: 1; }
  .pj-row:hover h3 { translate: none; }
  .pj-step h3 { margin-top: 28px; }
  .pj-note p { font-size: 18px; }
  .pj-job { grid-template-columns: minmax(0, 1fr); gap: 6px; padding: 20px 0; }
  .pj-phones { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; padding: 32px; border-radius: 16px; }
  .pj-phones img:nth-child(n+3) { display: none; }
}
