/* Nationalt IdrætsID project page (from the Figma revision, Nov 2026).
   Scoped to .pj so the case study sheet opened on top keeps its own look. */
.pj {
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --sans: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
  --panel: #ecebe8;
  --quiet: #363636;
  --shot-shadow: 0 16px 32px -8px rgba(0, 0, 0, 0.4);
}
.pj p, .pj dd, .pj li { font-family: var(--sans); }
.pj h1, .pj h2, .pj h3 { text-wrap: balance; }
.pj .btn { border-radius: 2px; font-family: var(--font); }
.pj .btn-quiet { background: var(--quiet); }
.pj .btn-quiet:hover { background: #424242; }

/* Header */
.pj-head .wrap { max-width: var(--max); }
.pj-head .site-name, .pj-head .site-nav { font-family: var(--mono); font-weight: 700; }

/* Intro and overview */
.pj-top { padding-top: 48px; }
.pj-back { font-family: var(--mono); font-weight: 700; font-size: var(--step-1); gap: 17px; }
.pj-intro {
  display: grid; grid-template-columns: minmax(0, 597px) minmax(0, 341px);
  justify-content: space-between; gap: 40px 86px;
  padding-top: 73px; padding-bottom: 78px;
}
.pj-title { font-family: var(--mono); font-weight: 700; font-size: clamp(2rem, 1.4rem + 2vw, 2.5rem); line-height: 1.125; }
.pj-lede { margin-top: 11px; line-height: 1.55; }
.pj-actions { display: grid; gap: 10px; width: min(346px, 100%); margin-top: 54px; }
.pj-actions .btn { justify-content: center; }

.pj-label {
  display: block; font-family: var(--mono); font-weight: 700; font-size: var(--step--1);
  line-height: 1.55; letter-spacing: 0; text-transform: uppercase; color: var(--idr);
}
.pj-summary { display: grid; gap: 18px; }
.pj-summary dd { margin-top: 4px; }
.pj-summary dd + dd { margin-top: 0; }
.pj-facts { display: grid; gap: 18px; margin-top: 37px; }
.pj-facts div { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.pj-facts dd { text-align: right; }

/* Hero: full-bleed red band */
.pj-hero { background: var(--idr); padding: clamp(32px, 5.8vw, 83px) var(--gutter); }
.pj-hero .frame { max-width: 898px; margin-inline: auto; border-radius: 6px; }
.pj-hero .frame-bar { height: 26px; gap: 9px; padding: 0 21px; }
.pj-hero .frame-bar i { width: 6px; height: 6px; }

/* Feature sections */
.pj-feature { padding-top: 100px; }
.pj-feature + .pj-row, .pj-row + .pj-row { padding-top: 30px; }
.pj-feature-head { margin-bottom: 47px; }
.pj-feature-head h2 { font-family: var(--mono); font-weight: 700; font-size: clamp(1.375rem, 1.2rem + 0.6vw, 1.625rem); line-height: 1.33; }
.pj-feature-head p { margin-top: 9px; color: var(--fg-2); }

.pj-pair { display: grid; gap: 30px; }
.pj-pair.is-signup { grid-template-columns: 421fr 575fr; }
.pj-pair.is-profile { grid-template-columns: 632fr 364fr; }

.pj-panel {
  display: grid; place-items: center;
  background: var(--panel); border-radius: 4px; overflow: hidden;
  padding: clamp(24px, 5.8vw, 60px) clamp(16px, 4vw, 40px);
}
.pj-panel img { border-radius: 6px; box-shadow: var(--shot-shadow); }
.pj-panel.is-wide { padding-block: clamp(20px, 4.6vw, 47px); }
.pj-panel.is-wide img { width: 88%; }
.pj-panel.is-strip { padding-block: clamp(20px, 5.5vw, 57px); }
.pj-panel.is-strip img { width: 88%; }
.pj-pair.is-signup > :first-child img { width: 68%; }
.pj-pair.is-signup > :last-child img { width: 81%; }
.pj-pair.is-profile > :first-child img { width: 82%; }
.pj-pair.is-profile > :last-child img { width: 71%; }

/* Hover captions on showcase images: the bottom lifts and a short caption comes in,
   like the work cards on the landing page. Touch screens open them with a tap (site.js) */
.pj-shot { position: relative; display: grid; margin: 0; --cap-h: 58px; }
.pj-shot > .pj-panel, .pj-shot > .frame { clip-path: inset(0 0 0 0 round 6px); transition: clip-path 0.6s var(--ease-out); }
.pj-cap, .pj-phone-cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: flex; justify-content: center; text-align: center;
  font-family: var(--sans); font-size: var(--step--1); line-height: 1.4; color: var(--fg-2);
  opacity: 0; transform: translateY(8px); pointer-events: none;
  transition: opacity 0.35s var(--ease-out), transform 0.5s var(--ease-out);
}
.pj-cap { height: var(--cap-h); align-items: center; padding: 0 20px; }
.pj-hero .pj-cap { color: #fff; }

.pj-phone-fig { position: relative; flex: 0 1 230px; min-width: 0; margin: 0; --lift: 54px; }
.pj-phone-fig > .pj-phone { width: 100%; transition: transform 0.55s var(--ease-out); }
.pj-phone-fig.is-lift { margin-bottom: clamp(12px, 2vw, 28px); }
.pj-phone-cap { left: -14px; right: -14px; height: calc(var(--lift) - 6px); align-items: flex-end; font-size: 12px; line-height: 1.35; }
.pj-hero .pj-phone-cap { color: #fff; }
.pj-panel .pj-phone-cap { color: #3d3a36; }
.pj-panel .pj-phone-fig { flex-basis: 210px; }
.pj-panel .pj-phones { padding-top: calc(54px - clamp(24px, 5.8vw, 60px) + 12px); }

@media (hover: hover) {
  .pj-shot:hover > .pj-panel, .pj-shot:hover > .frame { clip-path: inset(0 0 var(--cap-h) 0 round 6px); }
  .pj-phone-fig:hover > .pj-phone { transform: translateY(calc(var(--lift) * -1)); }
  .pj-shot:hover .pj-cap, .pj-phone-fig:hover .pj-phone-cap { opacity: 1; transform: none; transition-delay: 0.08s; }
}
.pj-shot.is-open > .pj-panel, .pj-shot.is-open > .frame { clip-path: inset(0 0 var(--cap-h) 0 round 6px); }
.pj-phone-fig.is-open > .pj-phone { transform: translateY(calc(var(--lift) * -1)); }
.pj-shot.is-open .pj-cap, .pj-phone-fig.is-open .pj-phone-cap { opacity: 1; transform: none; transition-delay: 0.08s; }
@media (hover: none) { .pj-shot, .pj-phone-fig { cursor: pointer; -webkit-tap-highlight-color: transparent; } }
@media (prefers-reduced-motion: reduce) {
  .pj-shot > .pj-panel, .pj-shot > .frame, .pj-phone-fig > .pj-phone, .pj-cap, .pj-phone-cap { transition: none; }
}

/* Outcomes */
.pj-outcomes { padding-block: 168px 112px; }
.pj-outcomes-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 64px; }
.pj-outcomes-head h2, .pj-cta h2 { font-family: var(--mono); font-weight: 500; font-size: var(--step-3); line-height: 1.08; }
.pj-outcomes-head p { color: var(--fg-3); }
.pj-outcome-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px; align-items: start; }
.pj-outcome-list li { display: grid; gap: 10px; padding-top: 18px; box-shadow: inset 0 2px 0 var(--idr); }
.pj-outcome-list .k {
  font-family: var(--mono); font-weight: 700; font-size: clamp(2.5rem, 1.9rem + 2.4vw, 3.75rem);
  line-height: 1; color: #e5492f; margin-bottom: 8px; white-space: nowrap;
}
.pj-outcome-list h3 { font-family: var(--sans); font-weight: 500; font-size: var(--step-1); line-height: 1.3; }
.pj-outcome-list p { color: var(--fg-2); font-size: var(--step--1); line-height: 1.5; }

/* Case study call to action */
.pj-cta { background: var(--stage); }
.pj-cta .wrap { display: grid; grid-template-columns: minmax(0, 442px) minmax(0, 560px); justify-content: space-between; gap: 24px; padding-block: clamp(56px, 8vw, 104px); }
.pj-cta p { color: var(--fg-2); }
.pj-cta-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 60px; }
.pj-cta-actions .btn { justify-content: center; }

/* More projects */
.pj-more { padding-top: 50px; }
.pj-more > h2 { font-family: var(--font); font-weight: 500; font-size: var(--step-3); margin-bottom: 30px; }
.pj-more > h2 span { color: var(--idr); }
.pj-more-grid { display: grid; grid-template-columns: minmax(0, 578fr) minmax(0, 366fr); gap: 72px; align-items: start; }
.pj-next-shot { aspect-ratio: 578 / 385; border-radius: 8px; overflow: hidden; background: var(--stage); }
.pj-next-shot img { width: 100%; height: 100%; object-fit: cover; transition: opacity 0.25s var(--ease-out); }
.pj-next-shot img.is-swapping, .pj-next.is-swapping [data-more-kicker], .pj-next.is-swapping [data-more-title], .pj-next.is-swapping [data-more-text] { opacity: 0; }
.pj-next [data-more-kicker], .pj-next [data-more-title], .pj-next [data-more-text] { transition: opacity 0.2s var(--ease-out); }
.pj-next .pj-kicker { margin-top: 22px; }
.pj-next h3 { margin-top: 8px; font-family: var(--font); font-weight: 500; font-size: var(--step-3); }
.pj-next p { margin-top: 8px; color: var(--fg-2); }
.pj-kicker { display: block; font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-2); }
.pj-index .pj-kicker { margin-bottom: 14px; }
.pj-index ol { border-bottom: 1px solid var(--line); }
.pj-index li { border-top: 1px solid var(--line); transition: background-color 0.25s var(--ease-out); }
.pj-index .row {
  display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 0 12px;
  min-height: 59px; padding: 0 14px 0 8px; cursor: pointer; text-decoration: none;
  font-family: var(--font); font-size: var(--step-1); font-weight: 500; color: var(--fg-2); transition: color 0.2s;
}
.pj-index .row:focus-visible { outline-offset: -2px; }
.pj-index .row .n { font-family: var(--mono); font-size: 11px; font-weight: 400; color: var(--fg-3); }
.pj-index .row svg { width: 14px; height: 14px; color: var(--fg-3); }
.pj-index li.is-current { background: var(--stage); }
.pj-index li.is-current .row { color: var(--fg); }
.pj-index li.is-current .row svg { color: var(--fg); }
/* Back to the landing page: set apart from the list so it doesn't read as another project */
/* Project colour themes: DIF keeps the default red; other projects set their own accent */
.t-rodsol { --idr: #c8202e; --idr-ink: #ffffff; --band: #6e0d14; }
.t-rodsol { --accent-hover: #a3141f; }
.t-rodsol .btn-red:hover { background: var(--accent-hover); }
.t-rodsol .pj-hero { background: var(--band); }
.t-rodsol .pj-outcome-list .k { color: #ef5361; }
.t-paretify { --idr: #c99f74; --idr-ink: #ffffff; --band: #5c6655; }
.t-paretify .pj-hero { background: var(--band); }
.t-paretify .btn-red { background: #8f6a45; color: #fff; }
.t-paretify { --accent-hover: #7a5937; }
.t-paretify .btn-red:hover { background: var(--accent-hover); }
.t-paretify .pj-outcome-list .k { color: #d8b48d; }
[data-theme="light"] .t-paretify { --idr: #8f6a45; }
[data-theme="light"] .t-paretify .pj-outcome-list .k { color: #8f6a45; }

/* Two equal panels side by side, e.g. before and after */
.pj-pair.is-even { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pj-pair.is-even img { width: 92%; }
.pj-panel img.is-small { width: auto; max-width: 70%; }
.pj-pair.is-even.is-lead-small { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
@media (max-width: 900px) { .pj-pair.is-even { grid-template-columns: 1fr; } }

/* Phone screens for app projects */
.pj-phones { display: flex; justify-content: center; align-items: flex-end; gap: clamp(10px, 2.4vw, 32px); }
.pj-phone {
  flex: 0 1 230px; min-width: 0; padding: clamp(4px, 0.6vw, 7px); border-radius: clamp(18px, 2.6vw, 32px);
  background: #0c0c0b; box-shadow: var(--shadow);
}
.pj-phone img { display: block; width: 100%; height: auto; border-radius: clamp(14px, 2.1vw, 26px); }
.pj-hero .pj-phones { max-width: 1100px; margin-inline: auto; }
.pj-panel .pj-phones { width: 100%; }
.pj-panel .pj-phone { flex-basis: 210px; box-shadow: var(--shot-shadow); }
.pj-panel img.is-flat { width: 92%; border-radius: 6px; box-shadow: var(--shot-shadow); }
@media (max-width: 600px) {
  .pj-phones .is-extra { display: none; }
}

.pj-more-back { margin-top: 36px; }
.pj .contact2 { margin-top: clamp(96px, 12vw, 160px); }
.pj-more-back svg { width: 16px; height: 16px; }
.pj-more-back:hover svg { transform: translateX(-3px); }

/* Footer */
.pj-foot .wrap { align-items: center; }
.pj-foot-contact { display: flex; gap: 24px; flex-wrap: wrap; }

@media (max-width: 900px) {
  .pj-intro { grid-template-columns: 1fr; padding-top: 48px; }
  .pj-pair.is-signup, .pj-pair.is-profile { grid-template-columns: 1fr; }
  .pj-outcome-list { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
  .pj-outcomes-head { flex-direction: column; align-items: start; }
  .pj-cta .wrap { grid-template-columns: 1fr; }
  .pj-more-grid { grid-template-columns: 1fr; gap: 48px; }
  .pj-feature { padding-top: 72px; }
}
@media (max-width: 480px) {
  .pj-outcome-list { grid-template-columns: 1fr; }
  .pj-cta-actions { grid-template-columns: 1fr; }
  .pj-actions { width: 100%; }
}
