/* pd.css: the product-design blocks. Proof numbers on the home cover, outcomes and tags on the
   case-study cards, the "How I work" principles, and in each case study an "At a glance" summary
   and the decisions that shaped the work. Colours come only from the site variables, so every
   block follows the light and dark themes. */

/* ---------- home: proof numbers on the cover */
.proof{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));margin:56px 0 0;padding:0;list-style:none;border-top:2px solid var(--ink)}
.proof li{padding:22px 22px 22px 0;border-bottom:1px solid var(--rule);min-width:0}
.proof li + li{padding-left:22px;border-left:1px solid var(--rule)}
.proof b{display:block;font-size:clamp(40px,5.4vw,68px);font-weight:800;letter-spacing:-.035em;line-height:.92;font-variant-numeric:tabular-nums;white-space:nowrap}
.proof b i{font-style:normal;font-weight:700;letter-spacing:0;margin:0 .06em}
.proof span{display:block;margin-top:12px;font-size:15.5px;line-height:1.42;color:var(--ink-2);max-width:28ch}
.proof a{color:inherit;text-decoration-color:var(--rule)}
.proof a:hover{text-decoration-color:currentColor}
.proof{position:relative;border-top:0;padding-top:2px}
.proof::before{content:"";position:absolute;left:0;right:0;top:0;height:2px;background:var(--ink);transform-origin:left center}
.motion .proof::before{animation:draw 1100ms var(--ease-in-out) both;animation-delay:var(--d,380ms)}
.motion .proof > li{animation:rise 700ms var(--ease-out) both;animation-delay:calc(var(--d,380ms) + 240ms + var(--n,0) * 70ms)}
.home-cover .proof + .facts{margin-top:0}
.home-cover .proof + .facts::before{display:none}
@media (max-width:860px){
  .proof{grid-template-columns:1fr 1fr;margin-top:40px}
  .proof li:nth-child(3){padding-left:0;border-left:0}
}

/* ---------- home: outcome and tags on the case-study cards */
.work .outcome{margin:16px 0 0;padding-top:13px;border-top:1px solid var(--rule);font-size:16px;line-height:1.5;max-width:46ch}
.work .outcome b{display:block;margin-bottom:3px;font-size:13.5px;letter-spacing:.02em;color:var(--ink-2)}
/* the outcome as three figures taken from the case study's own impact block: the number, then what it counts,
   centred on each other, with no rule between them (not the case list's rows) */
.work .kpis{list-style:none;margin:8px 0 0;padding:0;display:grid;gap:12px}
.work .kpis li{display:grid;grid-template-columns:4.4rem 1fr;gap:14px;align-items:center;border:0;padding:0}
.work .kpis strong{font-size:22px;font-weight:800;line-height:1;letter-spacing:-.01em;font-variant-numeric:tabular-nums;white-space:nowrap;color:var(--ink)}
.work .kpis span{font-size:14.5px;line-height:1.35;color:var(--ink-2)}
.work .tags{display:flex;flex-wrap:wrap;gap:6px;margin:14px 0 0;padding:0;list-style:none}
.work .tags li{padding:3px 10px 4px;border:1px solid var(--rule);border-radius:999px;font-size:13.5px;line-height:1.3;color:var(--ink-2)}

/* ---------- home: how I work */
.principles{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));margin:30px 0 0;padding:0;list-style:none;border-top:2px solid var(--ink)}
.principles > li{padding:24px 28px 26px 0;border-bottom:1px solid var(--rule);min-width:0}
.principles > li:nth-child(even){padding:24px 0 26px 28px;border-left:1px solid var(--rule)}
.principles .pn{display:block;font:600 14px/1 var(--mono);color:var(--ink-2)}
.principles h3{margin:12px 0 10px;font-size:22px;line-height:1.22;letter-spacing:-.012em}
.principles p{margin:0 0 12px;font-size:16.5px;line-height:1.52;max-width:48ch}
.principles .proofs{display:flex;flex-wrap:wrap;gap:4px 16px;font-size:15px;font-weight:600}
.principles .proofs a::after{content:"\2192";margin-left:6px}
@media (max-width:760px){
  .principles{grid-template-columns:1fr}
  .principles > li:nth-child(even){padding-left:0;border-left:0}
}

/* ---------- case studies: at a glance */
.glance{margin-top:60px}
.glance-h{margin:0 0 14px;font-size:13.5px;font-weight:700;letter-spacing:.09em;text-transform:uppercase;color:var(--ink-2)}
.glance-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border-top:2px solid var(--ink)}
.glance-cell{padding:20px 24px 24px 0;border-bottom:1px solid var(--rule);min-width:0}
.glance-cell + .glance-cell{padding-left:24px;border-left:1px solid var(--rule)}
.glance-cell h3{margin:0 0 10px;font-size:15px;letter-spacing:.01em}
.glance-cell p{margin:0;font-size:16.5px;line-height:1.52}
.glance-cell.out{background:var(--field);padding-right:24px}
.glance-nums{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));margin:0;padding:0;list-style:none}
.glance-nums li{padding:16px 20px 18px 0;border-bottom:1px solid var(--rule);min-width:0}
.glance-nums li + li{padding-left:20px;border-left:1px solid var(--rule)}
.glance-nums b{display:block;font-size:clamp(30px,3.6vw,46px);font-weight:800;letter-spacing:-.03em;line-height:1;font-variant-numeric:tabular-nums;white-space:nowrap}
.glance-nums b i{font-style:normal;font-weight:700;letter-spacing:0;margin:0 .06em}
.glance-nums span{display:block;margin-top:7px;font-size:14.5px;line-height:1.38;color:var(--ink-2)}
@media (max-width:860px){
  .glance{margin-top:44px}
  .glance-grid{grid-template-columns:1fr}
  .glance-cell + .glance-cell{padding-left:0;border-left:0}
  .glance-cell.out{padding-left:16px;padding-right:16px}
  .glance-nums{grid-template-columns:1fr 1fr}
  .glance-nums li:nth-child(odd){padding-left:0;border-left:0}
  .glance-nums li:nth-child(even){padding-left:16px;border-left:1px solid var(--rule)}
}

/* ---------- case studies: the decisions that shaped the work */
.decisions{margin:30px 0 0;padding:0;list-style:none;border-top:2px solid var(--ink)}
.dec{display:grid;grid-template-columns:minmax(0,1fr);gap:0 18px;padding:24px 0 26px;border-bottom:1px solid var(--rule)}
.dec-n{padding-top:6px;font:600 15px/1 var(--mono);color:var(--ink-2)}
.dec h3{margin:0 0 14px;font-size:22px;line-height:1.25;letter-spacing:-.012em}
.dec dl{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px 32px;margin:0}
.dec dl > div{min-width:0}
.dec dt{margin:0 0 4px;font-size:13.5px;font-weight:700;letter-spacing:.02em;color:var(--ink-2)}
.dec dd{margin:0;font-size:16.5px;line-height:1.52}
@media (max-width:700px){
  .dec{grid-template-columns:minmax(0,1fr)}
  .dec dl{grid-template-columns:1fr;gap:12px}
}

/* ---------- CV: download the PDF */
.cv-pdf{margin:22px 0 0}

/* ---------- case studies: impact figures (placeholders carry a "to confirm" tag) */
.glance-impact{margin-top:28px}
.glance-sub{margin:0 0 10px;font-size:13.5px;font-weight:700;letter-spacing:.09em;text-transform:uppercase;color:var(--ink-2)}
.glance-impact .glance-nums{border-top:2px solid var(--ink)}
.glance-nums li.draft b{color:var(--ink-2)}
.tbc{display:inline-block;margin-top:9px;padding:1px 8px 2px;border:1.5px dashed var(--caution);border-radius:999px;font-style:normal;font-size:12px;font-weight:700;letter-spacing:.02em;line-height:1.45;color:var(--ink)}

/* ---------- Ogury: freelancers drawn as hollow dots in the team figure */
.team .ext .dots i{background:transparent;box-shadow:inset 0 0 0 2px var(--ink)}

/* ---------- case studies: press coverage under a section */
.press{margin-top:34px;border-top:2px solid var(--ink);padding-top:14px}
.sec .press h3{margin:0 0 6px;font-size:13.5px;font-weight:700;letter-spacing:.09em;text-transform:uppercase;color:var(--ink-2)}
.press ul{list-style:none;margin:0;padding:0}
.press li{padding:12px 0;border-bottom:1px solid var(--rule)}
.press a{font-weight:600;line-height:1.4}
.press span{display:block;margin-top:3px;font-size:14.5px;color:var(--ink-2)}

/* ---------- steps with a short line under each label */
.steps li > div > span{display:block;margin-top:6px;font-size:14.5px;line-height:1.4;color:var(--ink-2)}

/* ---------- home and case studies: the short films (muted loop, button for sound) */
.film{margin:0 0 56px}
.film-frame{position:relative;aspect-ratio:16/9;background:#041B2E;border:2px solid var(--ink);overflow:hidden}
.film-v{display:block;width:100%;height:100%;object-fit:cover}
.film-sound{position:absolute;right:16px;bottom:16px;display:inline-flex;align-items:center;gap:8px;padding:10px 16px 10px 14px;border:0;border-radius:999px;background:rgba(4,27,46,.82);color:#fff;font:600 15px/1.2 var(--font);cursor:pointer;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}
.film-sound::before{content:"";width:0;height:0;border-left:9px solid currentColor;border-top:6px solid transparent;border-bottom:6px solid transparent}
.film-sound[aria-pressed="true"]::before{width:9px;height:12px;border:0;background:linear-gradient(90deg,currentColor 0 3px,transparent 3px 6px,currentColor 6px 9px)}
.film-sound:hover{background:rgba(4,27,46,.95)}
.film-sound:focus-visible{outline:2px solid #fff;outline-offset:3px}
.film figcaption a{font-weight:600;white-space:nowrap}
.film figcaption a::after{content:"\2192";margin-left:6px}
@media (max-width:700px){.film{margin-bottom:40px}.film-sound{right:10px;bottom:10px;padding:8px 13px 8px 11px;font-size:14px}}
.cs-film{margin-top:56px}
.cs-film .film{margin-bottom:0}

/* ---------- home and case studies: films without a background (one video per theme, no sound)
   js/film.js picks WebM (Chrome, Firefox) or HEVC (Safari), both with alpha, and plays the film on screen.
   The pause button (WCAG 2.2.2) is placed by js/film.js on the home cards, by CSS in a case study. */
.ogv{position:relative;display:block;aspect-ratio:16/9;margin:0 -4%}
.ogv video{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;background:transparent}
/* soft edges, so a zoomed-in screen fades into the page instead of stopping on a hard line */
.ogv video{-webkit-mask-image:linear-gradient(90deg,transparent,#000 5%,#000 95%,transparent),linear-gradient(180deg,transparent,#000 7%,#000 93%,transparent);-webkit-mask-composite:source-in;mask-image:linear-gradient(90deg,transparent,#000 5%,#000 95%,transparent),linear-gradient(180deg,transparent,#000 7%,#000 93%,transparent);mask-composite:intersect}
.ogv .ogv-d{display:none}
:root[data-theme="dark"] .ogv .ogv-d{display:block}
:root[data-theme="dark"] .ogv .ogv-l{display:none}
@media (prefers-color-scheme:dark){
  :root:not([data-theme]) .ogv .ogv-d{display:block}
  :root:not([data-theme]) .ogv .ogv-l{display:none}
}
@media (max-width:860px){.ogv{margin:0}}
.ogf-pp{position:absolute;z-index:2;width:32px;height:32px;padding:0;border-radius:50%;display:grid;place-items:center;cursor:pointer;
  background:rgba(4,27,46,.78);color:#fff;border:1px solid rgba(255,255,255,.3);-webkit-tap-highlight-color:transparent;transition:background-color 200ms var(--ease-out),opacity 400ms var(--ease-out)}
.ogf-pp[hidden]{display:none}
.ogf-pp svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.ogf-pp .spk{fill:currentColor;stroke-width:1.2}
.ogf-pp .snd-on{display:none}
.ogf-pp.is-sound .snd-on{display:block}
.ogf-pp.is-sound .snd-off{display:none}
.ogf-pp:hover{background:rgba(4,27,46,.95)}
.ogf-pp:focus-visible{outline:2px solid var(--spot);outline-offset:3px}
.cs-film{position:relative}
.cs-film .ogf-pp{right:12px;bottom:12px}
.cs-film .ogv{margin:0}
.cs-film-v{position:relative}
.cs-film .ogf-pp{position:absolute}
.cv-pdf-end{margin:56px 0 0}
