/* Same look as mcthreetimes.info (portfolio theme): white, Helvetica, black ink, one yellow accent, no rounded corners. */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
:root { --paper: #ffffff; --ink: #111111; --muted: #6b6b6b; --accent: #E6C200; --nav-h: 64px; --pad: 4%; }
html, body { background: var(--paper); color: var(--ink); font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased; -webkit-text-size-adjust: 100%; }
a { color: var(--ink); text-decoration: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
::selection { background: var(--accent); color: #111; }

nav { position: fixed; top: 0; left: 0; right: 0; z-index: 10; height: var(--nav-h); display: flex; align-items: center; padding: 0 var(--pad); background: var(--paper); }
.nav-name { font-weight: bold; font-size: 15px; }
.nav-name:hover { text-decoration: underline; text-underline-offset: 4px; }

main { padding: calc(var(--nav-h) + clamp(24px, 5vw, 72px)) var(--pad) 0; }

.ph { margin-bottom: clamp(40px, 6vw, 96px); }
.ph-tag { margin-bottom: 14px; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.ph-title { font-size: clamp(56px, 11vw, 176px); font-weight: 700; line-height: .9; letter-spacing: -0.055em; text-wrap: balance; }

/* staggered folio grid, same rhythm as the keebs page */
.folio { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: clamp(12px, 2vw, 32px); row-gap: clamp(40px, 6vw, 96px); align-items: start; }
.fo { grid-column: span 4; display: block; color: inherit; text-decoration: none; }
.folio > :nth-child(6n+1) { grid-column: 1 / span 5; }
.folio > :nth-child(6n+2) { grid-column: 7 / span 3; margin-top: clamp(24px, 9vw, 150px); }
.folio > :nth-child(6n+3) { grid-column: 10 / span 3; margin-top: clamp(8px, 2.5vw, 40px); }
.folio > :nth-child(6n+4) { grid-column: 2 / span 3; }
.folio > :nth-child(6n+5) { grid-column: 6 / span 4; margin-top: clamp(30px, 8vw, 130px); }
.folio > :nth-child(6n+6) { grid-column: 10 / span 3; margin-top: clamp(8px, 2vw, 32px); }
.tile-img { display: block; aspect-ratio: 4 / 3; background: rgba(12,12,12,0.09); }
.fo-cap { display: flex; justify-content: space-between; gap: 12px; margin-top: 10px; font-size: 12px; font-weight: 700; line-height: 1.3; }
.fo-n { font-weight: 400; }
.fo-t { text-align: right; }

/* fidget mode: random sizes and shapes, scattered, draggable (script.js adds .free) */
.folio.free { display: block; position: relative; }
.free > .fo { position: absolute; margin: 0 !important; z-index: 1; cursor: grab; user-select: none; -webkit-user-select: none; -webkit-user-drag: none; }
.free > .drag { cursor: grabbing; }
.free > .fo .tile-img { aspect-ratio: var(--r); overflow: hidden; }
.tile-img img, .tile-img video { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }

/* what we do: its own section, set apart from the tiles by a rule */
.what { margin-top: clamp(56px, 7vw, 110px); display: grid; grid-template-columns: max-content minmax(0, 62ch); justify-content: start; align-items: baseline; gap: 12px 88px; }
.what-t { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.what-b { max-width: 62ch; }
.what-b p { font-size: 15px; line-height: 1.6; }
.what-b p + p { margin-top: 14px; }
.what-b a { text-decoration: underline; text-underline-offset: 3px; }

.site-foot { margin-top: calc(var(--nav-h) + clamp(24px, 5vw, 72px)); padding: 0 var(--pad) 28px; }
.sf-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; padding-top: 14px; font-size: 11px; letter-spacing: .02em; }
.sf-row a { text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 700px) {
  :root { --nav-h: 52px; }
  html, body { font-size: 16px; }
  .folio { grid-template-columns: repeat(6, 1fr); row-gap: 40px; }
  .folio > :nth-child(odd) { grid-column: 1 / span 4; margin-top: 0; }
  .folio > :nth-child(even) { grid-column: 3 / span 4; margin-top: 0; }
  .what { grid-template-columns: 1fr; margin-top: 56px; }
}

/* the IP line: same size as the other paragraphs, just bold */
.what-b .what-key { font-weight: 700; }
.what-key mark { background: none; color: inherit; padding: 0; }

/* skeleton: grey box until the media is ready (only when JS runs, so no-JS still shows pictures) */
.js .tile-img:not(.ready) img, .js .tile-img:not(.ready) video { opacity: 0; }

/* no layout jump: keep tiles and the text below them hidden until script.js has placed the tiles.
   Fallback: they show by themselves after 3 s even if the script never runs. */
.folio:not(.free), .folio:not(.free) ~ .what { visibility: hidden; animation: reveal 0s 3s forwards; }
@keyframes reveal { to { visibility: visible; } }
