/* Shubham Keshri — Manga Page design.
   Black and white, angled panels, speed-line bursts, speech bubbles, one red accent.
   Default = readable static page. `html.cine` turns the story into overlays on the 3D film. */
:root {
  --ink: #0a0a0a;
  --paper: #fbfbf8;
  --paper-2: #e8e8e2;
  --accent: #e63b2e;
  --grey: #6c6c6c;
  --display: 'Bangers', 'Impact', 'Arial Black', sans-serif;
  --body: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;
  --pad: clamp(22px, 5vw, 88px);
  --slant: 26px;
  --noise: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  --noise-soft: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.16 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  --dots: radial-gradient(circle, rgba(10, 10, 10, 0.13) 1.2px, transparent 1.7px);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: auto; background: var(--ink); }
body {
  margin: 0; min-height: 100vh; color: var(--ink); font-family: var(--body); font-size: 17px; line-height: 1.55;
  background-color: var(--paper); background-image: var(--dots); background-size: 10px 10px;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -64px; z-index: 100; background: #fff; color: var(--ink); border: 3px solid var(--ink); padding: 8px 14px; font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }
:focus-visible { outline: 4px solid var(--accent); outline-offset: 3px; }

/* ---------- layers that only exist in cinematic mode ---------- */
.stage, .paper-frame, .intro-cover, .grain { display: none; }
.cine .stage { display: block; position: fixed; inset: 0; z-index: 0; background: #7a7a7a; }
.cine .stage canvas { width: 100%; height: 100%; display: block; }
.cine .paper-frame {
  display: block; position: fixed; inset: 16px; z-index: 40; pointer-events: none;
  border: 5px solid var(--ink); box-shadow: 0 0 0 18px var(--paper);
}
.cine .grain {
  display: block; position: fixed; inset: 0; z-index: 39; pointer-events: none; opacity: 0.16; mix-blend-mode: multiply;
  background-image: var(--noise); background-size: 220px 220px;
}
.cine .intro-cover {
  display: grid; place-items: center; position: fixed; inset: 0; z-index: 60; opacity: 1; text-align: center; line-height: 1.02;
  background-color: var(--paper); color: var(--ink);
  background-image:
    radial-gradient(circle at 50% 50%, var(--paper) 0 22%, transparent 55%),
    repeating-conic-gradient(from 0deg at 50% 50%, var(--ink) 0 0.6deg, transparent 0.6deg 3.2deg);
  font-family: var(--display); font-size: clamp(40px, 8vw, 100px); letter-spacing: 0.04em;
  transition: opacity 1.5s cubic-bezier(.4, 0, .2, 1), visibility 0s linear 1.5s;
}
.cine .intro-cover::after { content: 'SHUBHAM KESHRI'; text-shadow: 4px 4px 0 var(--accent), -4px -4px 0 var(--paper), 4px -4px 0 var(--paper), -4px 4px 0 var(--paper); animation: cardpulse 1.6s ease-in-out infinite alternate; }
@keyframes cardpulse { from { opacity: 0.55; } to { opacity: 1; } }
.cine .intro-cover.gone { opacity: 0; visibility: hidden; pointer-events: none; }

/* ---------- HUD ---------- */
.hud { position: fixed; z-index: 50; top: 42px; left: 48px; right: 48px; display: flex; align-items: center; justify-content: space-between; pointer-events: none; }
.hud > * { pointer-events: auto; }
.cine .hud { opacity: 0; transition: opacity 1s ease 0.8s; }
.cine.ready .hud { opacity: 1; }
.brand {
  font-family: var(--display); font-size: 28px; letter-spacing: 0.04em; text-decoration: none;
  background: #fff; color: var(--ink); border: 3px solid var(--ink); padding: 0 12px; line-height: 1.35; box-shadow: 4px 4px 0 var(--ink);
}
.chapters { display: flex; gap: 8px; }
.chapters a {
  font-family: var(--display); font-size: 19px; letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none;
  background: #fff; color: var(--ink); border: 3px solid var(--ink); padding: 1px 12px; box-shadow: 3px 3px 0 var(--ink);
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}
.chapters a:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--ink); }
.chapters a.on { background: var(--accent); color: #fff; }

/* ---------- beats ---------- */
main { position: relative; z-index: 10; }
.beat { padding: 110px var(--pad) 28px; max-width: 1280px; margin: 0 auto; }

/* ---------- manga panels: angled body, ink outline, speed-line burst ---------- */
.panel {
  position: relative; isolation: isolate; max-width: 560px; padding: 40px calc(var(--slant) + 26px) 32px 34px;
  color: var(--ink);
  filter: drop-shadow(3px 0 0 var(--ink)) drop-shadow(-3px 0 0 var(--ink)) drop-shadow(0 3px 0 var(--ink)) drop-shadow(0 -3px 0 var(--ink)) drop-shadow(2px 2px 0 var(--ink)) drop-shadow(-2px -2px 0 var(--ink));
}
.panel::before, .panel::after { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; clip-path: polygon(0 0, 100% 0, calc(100% - var(--slant)) 100%, 0 100%); }
.panel::before { background-color: var(--paper); background-image: var(--dots), var(--noise-soft); background-size: 9px 9px, 220px 220px; background-blend-mode: normal, multiply; }
.panel::after { /* burst from the top-right corner, fading toward the text */
  background: repeating-conic-gradient(from 90deg at 100% 0%, rgba(10, 10, 10, 0.9) 0 0.5deg, transparent 0.5deg 3.4deg);
  -webkit-mask-image: radial-gradient(circle at 100% 0%, transparent 30%, #000 75%, transparent 100%);
          mask-image: radial-gradient(circle at 100% 0%, transparent 30%, #000 75%, transparent 100%);
  opacity: 0.3;
}
.panel > * { position: relative; z-index: 1; }
.beat-right .panel { padding: 40px 34px 32px calc(var(--slant) + 26px); }
.beat-right .panel::before, .beat-right .panel::after { clip-path: polygon(var(--slant) 0, 100% 0, 100% 100%, 0 100%); }
.beat-right .panel::after { background: repeating-conic-gradient(from 180deg at 0% 0%, rgba(10, 10, 10, 0.9) 0 0.5deg, transparent 0.5deg 3.4deg); -webkit-mask-image: radial-gradient(circle at 0% 0%, transparent 18%, #000 60%, transparent 100%); mask-image: radial-gradient(circle at 0% 0%, transparent 18%, #000 60%, transparent 100%); }
.panel-wide { max-width: 660px; }
.panel-title { max-width: 640px; }
.panel-dark { color: var(--paper); filter: drop-shadow(3px 0 0 var(--paper)) drop-shadow(-3px 0 0 var(--paper)) drop-shadow(0 3px 0 var(--paper)) drop-shadow(0 -3px 0 var(--paper)) drop-shadow(2px 2px 0 var(--paper)) drop-shadow(-2px -2px 0 var(--paper)); }
.panel-dark::before { background-color: var(--ink); background-image: radial-gradient(circle, rgba(251, 251, 248, 0.16) 1.2px, transparent 1.7px); }
.panel-dark::after { background: repeating-conic-gradient(from 90deg at 100% 0%, rgba(251, 251, 248, 0.9) 0 0.5deg, transparent 0.5deg 3.4deg); opacity: 0.32; }
.beat-right .panel-dark::after { background: repeating-conic-gradient(from 180deg at 0% 0%, rgba(251, 251, 248, 0.9) 0 0.5deg, transparent 0.5deg 3.4deg); }
.panel-quote { text-align: center; max-width: 700px; color: var(--paper); filter: drop-shadow(3px 0 0 var(--paper)) drop-shadow(-3px 0 0 var(--paper)) drop-shadow(0 3px 0 var(--paper)) drop-shadow(0 -3px 0 var(--paper)); }
.panel-quote::before { background-color: var(--ink); background-image: none; }
.panel-quote::after { opacity: 0.0; }

.cap {
  position: absolute !important; left: -16px; top: -20px; margin: 0; padding: 3px 12px; z-index: 3 !important;
  font-family: var(--mono); font-weight: 500; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  background: #fff; color: var(--ink); border: 3px solid var(--ink); filter: none;
}
.panel h1, .panel h2, .panel h3 { font-family: var(--display); font-weight: 400; letter-spacing: 0.02em; line-height: 0.98; margin: 6px 0 12px; text-transform: uppercase; }
.panel h1 { font-size: clamp(54px, 8vw, 110px); text-shadow: -4px -4px 0 #fff, 4px -4px 0 #fff, -4px 4px 0 #fff, 4px 4px 0 #fff, 0 -5px 0 #fff, 0 5px 0 #fff, 5px 0 0 #fff, -5px 0 0 #fff, 6px 6px 0 var(--ink); transform: rotate(-2deg); transform-origin: 0 100%; }
.panel h1 span { color: var(--accent); }
.panel h2 { font-size: clamp(34px, 4.6vw, 56px); text-shadow: 3px 3px 0 var(--accent); }
.panel-dark h2, .panel-dark h3 { color: var(--paper); text-shadow: 3px 3px 0 var(--accent); }
.panel p { margin: 0 0 12px; }
.role { font-family: var(--display); font-size: clamp(24px, 2.8vw, 36px); letter-spacing: 0.06em; color: var(--accent); text-transform: uppercase; }
.lead { max-width: 46ch; }
.panel strong { background: linear-gradient(transparent 62%, rgba(230, 59, 46, 0.4) 62%); }
.hint { /* speech bubble */
  position: relative; display: inline-block; margin: 20px 0 14px !important; padding: 6px 22px; background: #fff; color: var(--ink);
  border: 3px solid var(--ink); border-radius: 50% / 60%; font-family: var(--mono); font-weight: 500; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase;
}
.hint::before, .hint::after { content: ''; position: absolute; clip-path: polygon(0 0, 100% 0, 0 100%); }
.hint::before { left: 24px; bottom: -22px; width: 24px; height: 26px; background: var(--ink); }
.hint::after { left: 27px; bottom: -17px; width: 16px; height: 20px; background: #fff; }
.hint-arrow { display: inline-block; animation: bob 1.4s ease-in-out infinite; color: var(--accent); font-weight: 700; }
@keyframes bob { 50% { transform: translateY(5px); } }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 14px 0 0; }
.chips li { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; padding: 4px 10px; border: 2px solid currentColor; background: transparent; }
.kit { margin: 0 0 12px; display: grid; gap: 10px; }
.kit dt { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); font-weight: 500; }
.kit dd { margin: 0; font-weight: 500; }
.meta { font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; padding-top: 10px; border-top: 3px solid currentColor; }
.quote { font-family: var(--display); font-size: clamp(26px, 3.6vw, 46px); line-height: 1.12; margin: 0 !important; letter-spacing: 0.02em; }
.quote::before { content: ''; }

.btn {
  display: inline-block; font-family: var(--display); font-size: 24px; letter-spacing: 0.06em; text-decoration: none; text-transform: uppercase;
  padding: 3px 18px; background: var(--ink); color: var(--paper); border: 3px solid var(--ink); box-shadow: 4px 4px 0 var(--accent);
  transition: transform 0.12s, box-shadow 0.12s;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--accent); }
.btn-alt { background: #fff; color: var(--ink); box-shadow: 4px 4px 0 var(--ink); }
.btn-alt:hover { box-shadow: 7px 7px 0 var(--ink); }
.panel-dark .btn { background: var(--accent); color: #fff; border-color: var(--paper); box-shadow: 4px 4px 0 var(--paper); }
.panel-dark .btn:hover { box-shadow: 7px 7px 0 var(--paper); }
.panel-dark .btn-alt { background: var(--paper); color: var(--ink); border-color: var(--paper); box-shadow: 4px 4px 0 var(--accent); }
.contact-links { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 18px !important; }
.foot { font-family: var(--mono); font-size: 12px; margin: 18px 0 0 !important; padding-top: 10px; border-top: 3px solid currentColor; }

.sfx {
  position: absolute; font-family: var(--display); font-size: clamp(56px, 9vw, 140px); line-height: 1; letter-spacing: 0.04em; color: var(--accent);
  -webkit-text-stroke: 5px var(--ink); paint-order: stroke fill; text-shadow: 7px 7px 0 var(--ink); pointer-events: none; z-index: -1;
  transform: rotate(-8deg) scale(var(--k, 1)); transform-origin: 0 50%;
}
.sfx-a { right: 6vw; bottom: 14vh; }
.sfx-b { right: 8vw; top: 22vh; }
.sfx-c { right: 8vw; top: 20vh; color: #fff; }
.sfx-d { left: 6vw; bottom: 14vh; transform: rotate(6deg) scale(var(--k, 1)); }

/* project list (static fallback) */
.work-list { list-style: none; margin: 0; padding: var(--pad); padding-top: 0; display: grid; gap: 14px; max-width: 760px; }
.work-list li { background: #fff; border: 3px solid var(--ink); padding: 10px 14px; box-shadow: 5px 5px 0 var(--ink); }
.work-list a { font-family: var(--display); font-size: 24px; letter-spacing: 0.04em; text-decoration: none; text-transform: uppercase; }
.work-list span { display: block; font-size: 15px; }
.work-ui { display: none; }

/* ---------- cinematic mode ---------- */
.cine .scroller { height: 1300vh; }
.cine main { position: static; }
.cine .beat {
  position: fixed; inset: 0; z-index: 10; display: flex; align-items: center; max-width: none; margin: 0;
  padding: 100px calc(var(--pad) + 20px) 80px; pointer-events: none; opacity: 0; visibility: hidden; will-change: opacity, transform;
}
.cine .beat.live { visibility: visible; }
.cine .beat .panel, .cine .beat a { pointer-events: auto; }
.cine .beat-right { justify-content: flex-end; }
.cine .beat-center { justify-content: center; }
.cine .beat-work { align-items: center; }
.cine .work-list { display: none; }
.cine .work-ui { display: flex; flex-direction: column; gap: 24px; width: min(520px, 100%); pointer-events: none; }
.work-card h3 { font-size: clamp(30px, 3.6vw, 48px); margin: 8px 0 12px; }
.work-card .btn { margin-top: 16px; }
.work-card.swap { animation: cardIn 0.45s cubic-bezier(.2, .8, .2, 1); }
@keyframes cardIn { from { opacity: 0; transform: translate(-16px, 6px); } to { opacity: 1; transform: none; } }
.work-nav { display: flex; gap: 8px; flex-wrap: wrap; }
.work-nav button {
  font-family: var(--display); font-size: 22px; letter-spacing: 0.06em; min-width: 48px; height: 42px; cursor: pointer; pointer-events: auto;
  background: #fff; color: var(--ink); border: 3px solid var(--ink); box-shadow: 3px 3px 0 var(--ink); transition: transform 0.12s;
}
.work-nav button:hover { transform: translate(-2px, -2px); }
.work-nav button.on { background: var(--ink); color: #fff; box-shadow: 3px 3px 0 var(--accent); }

/* ---------- standalone pages (404, privacy) ---------- */
.page { min-height: 100vh; padding: 36px var(--pad) 48px; max-width: 1200px; margin: 0 auto; position: relative; }
.page .paper-corner { display: none; }
.pg-grid { display: grid; gap: 22px; }
.pg-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 30px; }
.pg-hero { position: relative; min-height: min(340px, 38vh); display: grid; place-items: center; text-align: center; border: 5px solid var(--ink); background: var(--paper); overflow: hidden; margin-bottom: 26px; }
.pg-hero::before { content: ''; position: absolute; inset: 0; background: repeating-conic-gradient(from 0deg at 50% 52%, var(--ink) 0 0.55deg, transparent 0.55deg 3.1deg); -webkit-mask-image: radial-gradient(circle at 50% 52%, transparent 14%, #000 58%); mask-image: radial-gradient(circle at 50% 52%, transparent 14%, #000 58%); }
.pg-hero > * { position: relative; }
.big404 { font-family: var(--display); font-size: clamp(120px, 26vw, 330px); line-height: 0.85; letter-spacing: 0.02em; margin: 0; color: var(--ink);
  text-shadow: -8px -8px 0 #fff, 8px -8px 0 #fff, -8px 8px 0 #fff, 8px 8px 0 #fff, 0 -10px 0 #fff, 0 10px 0 #fff, 10px 0 0 #fff, -10px 0 0 #fff, 14px 14px 0 var(--accent); transform: rotate(-3deg); }
.pg-row { display: grid; grid-template-columns: 1.1fr 1fr; gap: 22px; align-items: stretch; }
.bubble { position: relative; background: #fff; border: 4px solid var(--ink); border-radius: 50% / 42%; padding: 30px 48px; font-weight: 700; font-size: clamp(17px, 2vw, 24px); line-height: 1.25; text-transform: uppercase; text-align: center; display: grid; place-items: center; min-height: 170px; }
.bubble b { font-family: var(--display); font-weight: 400; color: var(--accent); font-size: 1.4em; }
.bubble::before, .bubble::after { content: ''; position: absolute; clip-path: polygon(0 0, 100% 0, 0 100%); }
.bubble::before { left: 50px; bottom: -42px; width: 52px; height: 56px; background: var(--ink); }
.bubble::after { left: 56px; bottom: -34px; width: 38px; height: 44px; background: #fff; }
.pg-dark { position: relative; background: var(--ink); color: var(--paper); border: 5px solid var(--ink); padding: 32px 36px; clip-path: polygon(0 0, 100% 0, 100% 100%, 24px 100%); display: flex; flex-direction: column; justify-content: center; gap: 16px; overflow: hidden; }
.pg-dark::before { content: ''; position: absolute; inset: 0; background: repeating-conic-gradient(from 90deg at 100% 100%, rgba(251,251,248,.9) 0 .5deg, transparent .5deg 3.4deg); opacity: .3; -webkit-mask-image: radial-gradient(circle at 100% 100%, transparent 15%, #000 70%); mask-image: radial-gradient(circle at 100% 100%, transparent 15%, #000 70%); }
.pg-dark > * { position: relative; margin: 0; }
.pg-dark .role { color: var(--paper); font-size: clamp(30px, 4vw, 52px); text-shadow: 4px 4px 0 var(--accent); }
.pg-dark .btn { background: var(--accent); color: #fff; border-color: var(--paper); box-shadow: 5px 5px 0 var(--paper); align-self: flex-start; }
.doc { display: grid; gap: 22px; }
.doc-hero { position: relative; border: 5px solid var(--ink); background: var(--paper); padding: 40px 40px 34px; overflow: hidden; }
.doc-hero::before { content: ''; position: absolute; inset: 0; background: repeating-conic-gradient(from 90deg at 100% 0%, var(--ink) 0 .5deg, transparent .5deg 3.2deg); opacity: .5; -webkit-mask-image: radial-gradient(circle at 100% 0%, transparent 10%, #000 55%, transparent 95%); mask-image: radial-gradient(circle at 100% 0%, transparent 10%, #000 55%, transparent 95%); }
.doc-hero > * { position: relative; }
.doc-hero h1 { font-family: var(--display); font-weight: 400; font-size: clamp(54px, 9vw, 120px); line-height: .92; margin: 8px 0 12px; text-transform: uppercase; text-shadow: -4px -4px 0 #fff, 4px -4px 0 #fff, -4px 4px 0 #fff, 4px 4px 0 #fff, 6px 6px 0 var(--accent); }
.doc-hero p { max-width: 54ch; margin: 0 0 8px; }
.doc-panels { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; align-items: start; }
.sec { position: relative; background: #fff; border: 4px solid var(--ink); padding: 34px 28px 24px; box-shadow: 8px 8px 0 var(--ink); background-image: var(--dots); background-size: 9px 9px; }
.sec.dark { background-color: var(--ink); color: var(--paper); background-image: radial-gradient(circle, rgba(251,251,248,.14) 1.2px, transparent 1.7px); box-shadow: 8px 8px 0 var(--accent); border-color: var(--ink); }
.sec h2 { font-family: var(--display); font-weight: 400; font-size: 34px; letter-spacing: .03em; margin: 0 0 10px; text-transform: uppercase; text-shadow: 3px 3px 0 var(--accent); }
.sec .cap { position: absolute !important; left: -12px; top: -18px; }
.sec ul { margin: 8px 0 0; padding-left: 20px; } .sec li { margin: 6px 0; } .sec p { margin: 0 0 10px; }
.sec.full { grid-column: 1 / -1; }
.page-foot { margin-top: 34px; font-family: var(--mono); font-size: 12px; display: flex; gap: 18px; flex-wrap: wrap; align-items: center; }
.page-foot a { text-decoration: underline; }

/* ---------- small screens ---------- */
@media (max-width: 760px) {
  body { font-size: 16px; }
  :root { --slant: 16px; }
  .hud { top: 30px; left: 30px; right: 30px; }
  .brand { font-size: 22px; }
  .chapters { gap: 4px; }
  .chapters a { font-size: 15px; padding: 0 7px; letter-spacing: 0.04em; }
  .cine .paper-frame { inset: 8px; box-shadow: 0 0 0 10px var(--paper); border-width: 4px; }
  .panel { padding: 38px 34px 24px 20px; max-width: none; width: 100%; }
  .beat-right .panel { padding: 38px 20px 24px 34px; }
  .cine .beat { align-items: flex-end; padding: 84px 24px 56px; }
  .cine .beat-work { align-items: flex-end; }
  .cine .work-ui { width: 100%; gap: 14px; }
  .work-card h3 { font-size: 28px; }
  .work-card p { font-size: 15px; }
  .panel .cap { font-size: 10px; letter-spacing: 0.05em; padding: 2px 8px; left: -10px; top: -17px; max-width: calc(100% - 4px); }
  .sfx { font-size: 48px; -webkit-text-stroke-width: 4px; }
  .sfx-a { right: 4vw; bottom: auto; top: 14vh; }
  .sfx-b, .sfx-c, .sfx-d { top: 14vh; bottom: auto; left: 4vw; right: auto; }
  .pg-row, .doc-panels { grid-template-columns: 1fr; }
  .doc-hero { padding: 30px 22px; } .bubble { padding: 26px 30px; }
}
@media (max-height: 640px) and (min-width: 761px) {
  .panel { padding-top: 28px; padding-bottom: 22px; }
  .panel h1 { font-size: 64px; }
  .cine .beat { padding-top: 84px; }
}
@media (prefers-reduced-motion: reduce) {
  .hint-arrow, .cine .intro-cover::after { animation: none; }
  .work-card.swap { animation: none; }
  .cine .intro-cover { transition: none; }
}

/* ---------- content pages (skills, projects, blog, connect, privacy) ---------- */
.pg-head .chapters { flex-wrap: wrap; justify-content: flex-end; }
.hero-cap { position: static !important; display: inline-block; }
.nb { border: 0 !important; padding: 0 !important; }
.empty { font-family: var(--mono); font-size: 14px; padding: 18px 0; grid-column: 1 / -1; }
.row-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 16px !important; }
.sec .btn { font-size: 22px; }
.sec.dark .btn { background: var(--accent); color: #fff; border-color: var(--paper); box-shadow: 4px 4px 0 var(--paper); }
.sec.dark .btn-alt { background: var(--paper); color: var(--ink); box-shadow: 4px 4px 0 var(--accent); }
.sec.dark h2 { color: var(--paper); }
.sec .chips li { border-color: currentColor; }
.post-card { display: block; text-decoration: none; color: inherit; transition: transform 0.12s; }
.post-card:hover { transform: translate(-3px, -3px); }
.post-card .more { display: inline-block; margin-top: 12px; font-family: var(--display); font-size: 22px; letter-spacing: 0.06em; color: var(--accent); }
.post-title { font-size: clamp(34px, 5vw, 60px) !important; }
.prose { max-width: 70ch; font-size: 18px; line-height: 1.7; }
.prose h2, .prose h3, .prose h4 { font-family: var(--display); font-weight: 400; text-transform: uppercase; letter-spacing: 0.03em; margin: 28px 0 8px; text-shadow: none; }
.prose h2 { font-size: 34px; } .prose h3 { font-size: 28px; } .prose h4 { font-size: 22px; }
.prose code { font-family: var(--mono); font-size: 0.88em; background: var(--paper-2); padding: 1px 6px; border: 1px solid var(--ink); }
.prose pre { background: var(--ink); color: var(--paper); padding: 16px 18px; overflow-x: auto; border: 3px solid var(--ink); box-shadow: 5px 5px 0 var(--accent); }
.prose pre code { background: none; border: 0; padding: 0; color: inherit; }
.prose blockquote { margin: 18px 0; padding: 8px 18px; border-left: 6px solid var(--accent); font-family: var(--display); font-size: 24px; letter-spacing: 0.02em; }
.prose a { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; }
.prose hr { border: 0; border-top: 4px solid var(--ink); margin: 26px 0; }
.sec.dark .prose code { background: transparent; border-color: var(--paper); }
@media (max-width: 760px) { .pg-head { align-items: flex-start; flex-direction: column; } .pg-head .chapters { justify-content: flex-start; } }
.page > .doc-hero { margin-bottom: 28px; }
.sec ul.chips { padding-left: 0; }
.sec ul.chips li { margin: 0; }

/* Light page (phones, reduced motion, ?static): the menu is a solid bar that stays on top instead of floating over the text */
html:not(.cine) .hud {
  position: sticky; top: 0; left: auto; right: auto; z-index: 60;
  padding: 10px 14px; background: var(--paper); border-bottom: 4px solid var(--ink);
}
html:not(.cine) .hud .brand { font-size: 22px; }
html:not(.cine) main { padding-top: 18px; }

/* No flash of old text: hide the page until data/content.json has been applied (JS adds .hy, and removes it right after) */
html.hy .hud, html.hy main, html.hy .doc-hero, html.hy .pg-head, html.hy .page-foot { visibility: hidden; }
