/* Ruff Huff – the readable pages (work, about, showreel, imprint): the same paper, ink and signal
   yellow as the 3D site, set as a plain page. Written by hand; the pages themselves come from
   tools/build_seo.py. */
@font-face {
  font-family: 'Jost';
  src: url('../assets/fonts/Jost-Variable.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: 'Plex Mono';
  src: url('../assets/fonts/IBMPlexMono-Regular.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}

:root {
  --paper: #f4f4f2;
  --ink: #0b0c0f;
  --ink-2: #3c3f47;
  --ink-3: #6b6e75;
  --line: rgba(11, 12, 15, 0.16);
  --tile: #dcdedf;
  --sig: #ffd400;
  --sans: 'Jost', 'Futura', 'Century Gothic', system-ui, sans-serif;
  --mono: 'Plex Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --gut: clamp(16px, 4vw, 48px);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
img, video, iframe { display: block; max-width: 100%; }
img, video { height: auto; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

/* ---------- top bar: brand, pages, the way into the 3D site ---------- */
.pg-top { position: sticky; top: 0; z-index: 5; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 28px; padding: 12px var(--gut);
  background: rgba(244, 244, 242, 0.94); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.pg-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-size: 14px; font-weight: 400; letter-spacing: 0.32em; text-transform: uppercase; white-space: nowrap; }
.pg-brand img { width: 30px; height: 30px; }
.pg-nav { display: flex; flex-wrap: wrap; gap: 2px 22px; margin-left: auto; font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; }
.pg-nav a { text-decoration: none; padding: 8px 0; border-bottom: 1.5px solid transparent; }
.pg-nav a[aria-current] { border-bottom-color: var(--ink); }
@media (hover: hover) { .pg-nav a:hover { border-bottom-color: var(--ink-3); } }

/* buttons: pills like on the 3D site; the signal one (yellow and black) leads into it */
.pg-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 20px; border-radius: 999px; border: 1.5px solid var(--ink);
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; text-decoration: none; white-space: nowrap; color: var(--ink);
  transition: background 0.18s, color 0.18s; }
.pg-btn.sig { background: var(--sig); }
@media (hover: hover) { .pg-btn:hover { background: var(--ink); color: var(--sig); } }
.pg-enter { min-height: 38px; padding: 0 16px; }

/* ---------- the page ---------- */
.pg-main { max-width: 1160px; margin: 0 auto; padding: 28px var(--gut) 80px; }
.pg-crumbs { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 30px; }
.pg-crumbs a { color: var(--ink-2); text-decoration: none; }
@media (hover: hover) { .pg-crumbs a:hover { text-decoration: underline; } }
.pg-kicker { font-family: var(--mono); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-2); margin: 0 0 14px; }
h1 { font-weight: 300; font-size: clamp(38px, 7vw, 80px); line-height: 1.02; letter-spacing: -0.012em; margin: 0; overflow-wrap: anywhere; }
h2 { font-family: var(--mono); font-weight: 400; font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-2); margin: 0 0 12px; }
.pg-lead { font-size: clamp(19px, 2.3vw, 26px); line-height: 1.38; color: var(--ink-2); margin: 16px 0 0; max-width: 34em; }

/* pictures and films */
.pg-hero, .pg-video, .pg-reel { position: relative; margin: 34px 0 0; border-radius: 14px; overflow: hidden; background: var(--tile); aspect-ratio: 16 / 9; }
.pg-hero img, .pg-video img, .pg-video iframe, .pg-reel video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.pg-reel { background: #000; }
.pg-reel video { object-fit: contain; }
.pg-video { background: #16171a; }
.pg-video.playing { background: #000; }
.pg-play { position: absolute; inset: 0; display: block; }
.pg-play::before { content: ''; position: absolute; left: 50%; top: 50%; width: clamp(64px, 9vw, 104px); aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%;
  background: var(--sig); border: 2px solid var(--ink); box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25); transition: transform 0.2s; }
.pg-play::after { content: ''; position: absolute; left: 50%; top: 50%; width: clamp(20px, 2.8vw, 32px); aspect-ratio: 0.86; transform: translate(-38%, -50%); background: var(--ink); clip-path: polygon(0 0, 100% 50%, 0 100%); }
@media (hover: hover) { .pg-play:hover::before { transform: translate(-50%, -50%) scale(1.06); } }
.pg-video figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 10px 14px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; color: #f4f4f2;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.55), transparent); pointer-events: none; }
.pg-text .pg-video { margin: 24px 0 0; }

/* text beside the facts */
.pg-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 36px 64px; margin-top: 44px; align-items: start; }
.pg-meta { margin: 0 0 30px; }
.pg-meta div { margin: 0 0 16px; }
.pg-meta dt { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); }
.pg-meta dd { margin: 3px 0 0; font-size: 18px; font-weight: 500; line-height: 1.4; }
.pg-list { margin: 0 0 30px; }
.pg-list ul, .pg-focus { list-style: none; margin: 0; padding: 0; }
.pg-list li { position: relative; padding-left: 1.2em; margin: 0 0 0.45em; line-height: 1.5; }
.pg-list li::before, .pg-focus li::before { content: ''; position: absolute; left: 0; top: 0.62em; width: 0.42em; height: 0.42em; background: currentColor; }
.pg-text p { margin: 0 0 1em; font-size: clamp(17px, 1.55vw, 20px); line-height: 1.62; max-width: 36em; }
.pg-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px !important; }

.pg-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 60px; align-items: start; }
.pg-gallery figure { margin: 0; border-radius: 10px; overflow: hidden; background: var(--tile); }
.pg-gallery img, .pg-gallery video { width: 100%; }

.pg-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 60px 0 0; }
.pg-cta .pg-btn { white-space: normal; text-align: center; line-height: 1.3; padding-top: 8px; padding-bottom: 8px; }
.pg-pager { display: flex; justify-content: space-between; gap: 20px; margin-top: 60px; padding-top: 22px; border-top: 1px solid var(--line); }
.pg-pager a { text-decoration: none; min-width: 0; }
.pg-pager .next { text-align: right; }
.pg-pager small { display: block; font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); }
.pg-pager b { display: block; font-weight: 400; font-size: clamp(18px, 2vw, 24px); line-height: 1.25; margin-top: 4px; }
@media (hover: hover) { .pg-pager a:hover b { text-decoration: underline; } }

/* the list of all work */
.pg-cards { list-style: none; margin: 44px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 34px 22px; }
.pg-cards a { display: block; text-decoration: none; }
.pg-cards img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 12px; background: var(--tile); transition: filter 0.2s; }
.pg-cards .k { display: block; margin: 14px 0 4px; font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); }
.pg-cards b { display: block; font-weight: 400; font-size: 25px; line-height: 1.15; }
.pg-cards .s { display: block; margin-top: 6px; color: var(--ink-2); line-height: 1.45; }
@media (hover: hover) { .pg-cards a:hover img { filter: brightness(1.05); } .pg-cards a:hover b { text-decoration: underline; } }

/* about */
.pg-about { display: grid; grid-template-columns: minmax(0, 0.42fr) minmax(0, 1fr); gap: 40px 64px; align-items: start; }
.pg-portrait { margin: 0; border-radius: 14px; overflow: hidden; background: var(--tile); }
.pg-portrait img { width: 100%; }
.pg-intro { margin-top: 22px; }
.pg-intro p { font-size: clamp(18px, 1.7vw, 22px); }
.pg-quote { margin: 30px 0 0; padding: 0.05em 0 0.05em 22px; border-left: 3px solid var(--ink); }
.pg-quote p { margin: 0; font-size: clamp(23px, 2.7vw, 34px); line-height: 1.26; letter-spacing: -0.01em; max-width: 22em; }
.pg-focus { display: flex; flex-wrap: wrap; gap: 6px 26px; margin-top: 28px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-2); }
.pg-focus li { position: relative; padding-left: 1.25em; white-space: nowrap; }
.pg-focus li::before { top: 0.52em; }
.pg-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 36px 56px; margin-top: 64px; padding-top: 30px; border-top: 1px solid var(--line); }
.pg-cols h2 + .pg-entry { margin-top: 0; }
.pg-cols .pg-entry + h2 { margin-top: 34px; }
.pg-entry { margin: 0 0 18px; line-height: 1.45; }
.pg-entry b { display: block; font-weight: 500; }
.pg-entry span { display: block; color: var(--ink-2); }
.pg-glance, .pg-contact { margin-top: 56px; padding-top: 30px; border-top: 1px solid var(--line); }
.pg-glance dl { margin: 0; }
.pg-glance div { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 4px 20px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.pg-glance dt { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); padding-top: 0.35em; }
.pg-glance dd { margin: 0; line-height: 1.5; }
.pg-contact ul { list-style: none; margin: 0; padding: 0; }
.pg-contact li { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 4px 20px; align-items: baseline; padding: 6px 0; }
.pg-contact span { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); }
.pg-contact a { font-size: clamp(20px, 2.6vw, 34px); overflow-wrap: anywhere; text-decoration-color: rgba(11, 12, 15, 0.35); }

.pg-imprint .pg-text h2 { margin: 36px 0 10px; }

/* footer */
.pg-foot { width: calc(100% - 2 * var(--gut)); max-width: calc(1160px - 2 * var(--gut)); margin: 0 auto; display: flex; flex-wrap: wrap; gap: 8px 24px; padding: 24px 0 44px; border-top: 1px solid var(--line);
  font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.1em; color: var(--ink-2); }
.pg-foot a { text-decoration: none; }
@media (hover: hover) { .pg-foot a:hover { text-decoration: underline; } }

/* ---------- a phone held upright ---------- */
@media (max-width: 760px) {
  body { font-size: 16px; }
  .pg-top { gap: 4px 12px; padding-top: 10px; padding-bottom: 6px; }
  .pg-enter { order: 1; margin-left: auto; }
  .pg-enter .wide { display: none; }
  .pg-nav { order: 2; width: 100%; margin-left: 0; justify-content: space-between; gap: 0 12px; font-size: 11.5px; }
  .pg-main { padding-top: 22px; }
  .pg-crumbs { margin-bottom: 22px; }
  .pg-hero, .pg-video, .pg-reel { margin-top: 26px; border-radius: 10px; }
  .pg-body { grid-template-columns: minmax(0, 1fr); gap: 8px; margin-top: 30px; }
  .pg-gallery { grid-template-columns: minmax(0, 1fr); gap: 10px; margin-top: 40px; }
  .pg-cta { margin-top: 44px; }
  .pg-cta .pg-btn { flex: 1 1 auto; }
  .pg-about { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .pg-portrait { width: 64%; border-radius: 10px; }
  .pg-cols { grid-template-columns: minmax(0, 1fr); gap: 8px; margin-top: 44px; }
  .pg-glance div, .pg-contact li { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .pg-cards { gap: 30px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
