@font-face { font-family: 'Zen Dots'; src: url(../fonts/zen-dots-latin-400-normal.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Zen Dots'; src: url(../fonts/zen-dots-latin-ext-400-normal.woff2) format('woff2'); font-weight: 400; font-display: swap; unicode-range: U+0100-024F, U+1E00-1EFF, U+20A0-20CF; }
/* ==========================================================================
   johanbring.com — v2
   Monokrom, rutnät, pixeltypsnitt. Inspirerad av "portal"-estetik.
   ========================================================================== */

@font-face { font-family: 'Share Tech Mono'; src: url(../fonts/share-tech-mono-latin-400-normal.woff2) format('woff2'); font-weight: 400; font-display: swap; }

:root {
  --bg: #1b1a17;
  --bg-2: #211f1b;
  --ink: #e8e0cc;
  --ink-2: rgba(232, 224, 204, .74);
  --ink-3: rgba(232, 224, 204, .46);
  --line: rgba(232, 224, 204, .62);
  --line-2: rgba(232, 224, 204, .26);
  --radius: 8px;
  --gap: clamp(8px, 1.1vw, 14px);
  --strip-h: 42px;
  --f-display: 'Zen Dots', 'Eurostile', 'Arial Black', sans-serif;
  --f-mono: 'Share Tech Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  color-scheme: dark;
}

@view-transition { navigation: auto; }

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html { font-synthesis: none; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 14px/1.5 var(--f-mono);
  padding: var(--gap);
  padding-top: 0;
  max-width: 1520px;
  margin-inline: auto;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
/* film-grain över allt */
body::before {
  content: '';
  position: fixed; inset: -50%;
  pointer-events: none;
  z-index: 200;
  opacity: .085;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -1%); } 80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); }
}

::selection { background: var(--ink); color: var(--bg); }
a { color: inherit; }
img, video, svg { display: block; max-width: 100%; }
:focus-visible { outline: 2px dashed var(--ink); outline-offset: 2px; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--bg); padding: 8px 12px; z-index: 300; }
.skip:focus { left: 8px; }
.dim { opacity: .35; }

/* ---- Grundbyggstenar ---------------------------------------------------- */
.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: var(--gap);
  background: var(--bg);
  position: relative;
}

.strip {
  display: flex;
  align-items: stretch;
  min-height: var(--strip-h);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-top: -1px;
  font: 13px/1 var(--f-mono);
  text-transform: uppercase;
  letter-spacing: .06em;
  overflow-x: auto;
  scrollbar-width: none;
}
.strip::-webkit-scrollbar { display: none; }
.panel > .strip:first-child { border-top: 0; margin-top: 0; }
.panel > .strip:last-child { border-bottom: 0; }
.strip .cell {
  display: flex; align-items: center; gap: 10px;
  padding: 0 18px;
  border-right: 1px solid var(--line);
  white-space: nowrap;
  text-decoration: none;
  font: inherit;
  flex: 0 0 auto;
}
.strip .cell:last-child { border-right: 0; }
.strip .cell.grow { flex: 1 1 auto; }
.strip .cell.center { justify-content: center; }
.strip a.cell { transition: background .15s, color .15s; }
.strip a.cell:hover, .strip .cell.is-active { background: var(--ink); color: var(--bg); }
.strip .cell sup { font-size: 9px; opacity: .6; }
.strip h2.cell { font: inherit; }

.checker {
  width: 76px;
  padding: 11px 14px !important;
  background: repeating-conic-gradient(var(--ink) 0 25%, transparent 0 50%) 0 0 / 6px 6px content-box;
  opacity: .95;
}
.barcode {
  width: 92px;
  padding: 11px 16px !important;
  background: repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px 4px, var(--ink) 4px 5px, transparent 5px 7px, var(--ink) 7px 10px, transparent 10px 12px) content-box;
}
.geo { width: 100%; height: auto; color: var(--ink); }

.arrows { color: var(--ink-2); letter-spacing: .02em; margin: 14px 0; overflow: hidden; white-space: nowrap; font-size: 12px; }

.prose-upper { text-transform: uppercase; font-size: 13px; line-height: 1.55; letter-spacing: .02em; }
.prose-upper p { margin: 0 0 .9em; }
mark { background: var(--ink); color: var(--bg); padding: 0 .3em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }

.btn-cream {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--ink); color: var(--bg);
  font: 700 13px/1 var(--f-display);
  text-decoration: none; text-transform: uppercase;
  padding: 14px 18px;
  border-radius: 6px;
  border: 1px solid var(--ink);
  transition: transform .15s, background .15s, color .15s;
}
.btn-cream:hover { background: transparent; color: var(--ink); }
.btn-cream:active { transform: translateY(1px); }

/* ---- Topbar ------------------------------------------------------------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: stretch;
  margin: 0 calc(var(--gap) * -1) var(--gap);
  padding: 0 var(--gap);
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(10px) saturate(1.2);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-2);
  min-height: 64px;
}
.brand { display: flex; align-items: center; padding-right: 22px; margin-right: 4px; border-right: 1px solid var(--line-2); flex: none; }
.brand img { height: 26px; width: auto; }
.nav { display: flex; align-items: stretch; overflow-x: auto; scrollbar-width: none; flex: 1; }
.nav::-webkit-scrollbar { display: none; }
.nav-tab {
  position: relative;
  display: flex; flex-direction: column; justify-content: center;
  padding: 0 20px;
  text-decoration: none;
  border-right: 1px solid var(--line-2);
  white-space: nowrap;
  transition: background .15s, color .15s;
}
.nav-tab .lbl { font: 400 14px/1.1 var(--f-display); text-transform: uppercase; }
.nav-tab sup { position: absolute; top: 14px; right: 5px; font-size: 9px; color: var(--ink-3); }
.nav-tab:hover { background: rgba(232, 224, 204, .08); }
.nav-tab.is-active { background: var(--ink); color: var(--bg); }
.nav-tab.is-active sup { color: rgba(27, 26, 23, .6); }
.nav-tab.ext .lbl { font-size: 12px; }
.topbar-clock { display: flex; align-items: center; gap: 10px; padding-left: 18px; font: 14px var(--f-mono); letter-spacing: .08em; flex: none; border-left: 1px solid var(--line-2); }
.topbar-clock small { color: var(--ink-3); font-size: 10px; }

/* ---- Hero ----------------------------------------------------------------- */
.hero { height: clamp(380px, 70vh, 820px); display: flex; flex-direction: column; justify-content: space-between; background: #0d0c0b; }
.hero-media { position: absolute; inset: 0; }
.hero-media img, .hero-media video { width: 100%; height: 100%; object-fit: cover; filter: contrast(1.05) saturate(.92); animation: heroIn 1.6s cubic-bezier(.2, .7, .2, 1) both; }
.hero-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15, 14, 12, .55) 0%, transparent 22%, transparent 62%, rgba(15, 14, 12, .7) 100%); }
@keyframes heroIn { from { transform: scale(1.06); opacity: 0; } to { transform: none; opacity: 1; } }
.hero-top { position: relative; display: flex; justify-content: space-between; gap: 10px; padding: 16px; }
.tag { font: 12px/1 var(--f-mono); letter-spacing: .08em; padding: 8px 10px; border: 1px solid var(--line); border-radius: 5px; background: rgba(15, 14, 12, .5); backdrop-filter: blur(4px); }
.hero-bottom { position: relative; display: flex; align-items: flex-end; }
.hero-cta {
  display: inline-flex; align-items: stretch;
  background: var(--ink); color: var(--bg);
  text-decoration: none;
  border-top-right-radius: var(--radius);
  max-width: min(100%, 720px);
}
.hero-cta > span { display: flex; align-items: center; padding: 14px 18px; }
.hc-go { border-left: 2px solid var(--bg); font: 700 12px var(--f-display); white-space: nowrap; transition: background .2s, color .2s; }
.hc-label { flex-direction: column; align-items: flex-start !important; font: 700 clamp(15px, 1.8vw, 22px)/1.05 var(--f-display); text-transform: uppercase; gap: 4px; }
.hc-label small { font: 11px var(--f-mono); letter-spacing: .1em; opacity: .7; }
.hero-cta:hover .hc-go { background: var(--bg); color: var(--ink); }

/* ---- Marquee -------------------------------------------------------------- */
.marquee { height: 74px; display: flex; align-items: center; }
.mq-track { display: flex; width: max-content; animation: mq 48s linear infinite; }
.marquee:hover .mq-track { animation-play-state: paused; }
.mq-row { display: flex; align-items: center; }
.mq-item { display: flex; align-items: center; gap: 28px; padding-right: 28px; }
.mq-sep { font: 400 34px/1 var(--f-display); color: var(--ink-3); }
.mq-word { display: flex; flex-direction: column; font-family: var(--f-display); text-transform: uppercase; line-height: .9; }
.mq-word b { font-weight: 700; font-size: 34px; letter-spacing: .01em; }
.mq-word small { font-size: 12px; letter-spacing: .1em; margin-top: 3px; }
@keyframes mq { to { transform: translateX(-50%); } }

/* ---- About ---------------------------------------------------------------- */
.about { display: grid; grid-template-columns: 1.2fr 1fr .5fr; min-height: 460px; }
.about > * + * { border-left: 1px solid var(--line); }
.about-text { display: flex; flex-direction: column; }
.about-copy { padding: 22px 22px 0; max-width: 62ch; }
.about-text .arrows { padding: 0 22px; }
.contact { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px 22px; padding: 0 22px 22px; margin: 0; font-size: 13px; }
.contact dt { color: var(--ink-3); text-transform: uppercase; font-size: 11px; letter-spacing: .1em; }
.contact dd { margin: 0; }
.contact a { text-decoration: none; border-bottom: 1px solid var(--line-2); }
.contact a:hover { border-color: var(--ink); }
.about-text .strip { margin-top: auto; border-bottom: 0; }

.about-stack { display: flex; align-items: center; justify-content: center; padding: 24px; overflow: hidden; }
.stack { display: flex; flex-direction: column; align-items: center; text-align: center; }
.stack span {
  display: block;
  font: 700 clamp(26px, 3.3vw, 54px)/.98 var(--f-display);
  text-transform: uppercase;
  letter-spacing: .02em;
  white-space: nowrap;
}
.stack .outline { color: transparent; -webkit-text-stroke: 1px var(--ink); opacity: .85; }
.stack span { animation: flick 7s steps(1) infinite; animation-delay: calc(var(--i) * .35s); }
@keyframes flick { 0%, 92%, 100% { opacity: inherit; } 93% { opacity: .2; } 95% { opacity: 1; } }
.stack.big span { font-size: clamp(42px, 8.4vw, 132px); line-height: .9; }

.about-side { display: flex; flex-direction: column; }
.side-cell { flex: 1; display: flex; align-items: center; justify-content: center; padding: 18px; }
.side-cell + .side-cell { border-top: 1px solid var(--line); }
.dotcell { flex: .5; flex-direction: column; gap: 14px; }
.dot { width: 16px; height: 16px; border: 1px solid var(--ink); border-radius: 50%; position: relative; }
.dot::after { content: ''; position: absolute; inset: 4px; border-radius: 50%; background: var(--ink); animation: blink 1.4s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.live { font-size: 11px; color: var(--ink-3); letter-spacing: .1em; }
.vbox {
  writing-mode: vertical-rl;
  font: 700 clamp(18px, 1.8vw, 26px)/1 var(--f-display);
  text-transform: uppercase;
  white-space: nowrap;
  letter-spacing: .14em;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px 12px;
}

/* ---- Works grid ------------------------------------------------------------ */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  grid-auto-flow: dense;
  gap: 1px;
}
.card {
  position: relative;
  display: flex; flex-direction: column;
  box-shadow: 0 0 0 1px var(--line);
  background: var(--bg);
  min-width: 0;
}
.card-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #0f0e0c; border-bottom: 1px solid var(--line); }
.card-media img, .card-media video { width: 100%; height: 100%; object-fit: cover; filter: saturate(.85) contrast(1.04); transition: transform .6s cubic-bezier(.2, .7, .2, 1), filter .4s; }
.card:hover .card-media img, .card:hover .card-media video { transform: scale(1.04); filter: none; }
.card-empty { position: absolute; inset: 0; display: grid; place-items: center; padding: 22%; opacity: .5; }
.card-view {
  position: absolute; right: 10px; top: 10px;
  display: flex; align-items: center; gap: 6px;
  background: var(--ink); color: var(--bg);
  font: 700 11px/1 var(--f-display); padding: 7px 9px; border-radius: 4px;
  opacity: 0; transform: translateY(-4px); transition: .2s;
}
.card:hover .card-view { opacity: 1; transform: none; }
.card-play { position: absolute; left: 10px; bottom: 10px; font: 11px/1 var(--f-mono); letter-spacing: .12em; padding: 6px 8px; border-radius: 4px; border: 1px solid var(--ink); background: rgba(15, 14, 12, .65); backdrop-filter: blur(3px); }

.card-meta { display: flex; flex-wrap: wrap; gap: 0; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); border-bottom: 1px solid var(--line-2); }
.card-meta span { padding: 8px 12px; border-right: 1px solid var(--line-2); }
.card-meta span:last-child { border-right: 0; }
.card.no-nr .card-meta span:first-child { display: none; }
.card-title { font: 700 15px/1.15 var(--f-display); text-transform: uppercase; padding: 14px 14px 6px; letter-spacing: .01em; }
.card-title a { text-decoration: none; }
.card-title a::after { content: ''; position: absolute; inset: 0; z-index: 1; }
.card-text { margin: 0; padding: 0 14px 16px; font-size: 12px; line-height: 1.5; text-transform: uppercase; color: var(--ink-2); }
.card-foot { margin-top: auto; display: flex; align-items: stretch; border-top: 1px solid var(--line); }
.card-foot > * { padding: 10px 14px; display: flex; align-items: center; gap: 8px; }
.price { font: 700 13px var(--f-display); flex: 1; }
.price.sold { text-decoration: line-through; color: var(--ink-3); }
.buy { position: relative; z-index: 2; background: var(--ink); color: var(--bg); text-decoration: none; font: 700 12px var(--f-display); }
.buy:hover { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }

.card.is-feature { grid-column: span 2; grid-row: span 2; }
.card.is-feature .card-media { aspect-ratio: auto; flex: 1; min-height: 340px; }
.card.is-feature .card-title { font-size: clamp(20px, 2.2vw, 30px); padding: 18px 18px 8px; }
.card.is-feature .card-text { padding: 0 18px 20px; font-size: 13px; max-width: 70ch; }

.empty { padding: 60px 20px; text-align: center; color: var(--ink-3); grid-column: 1 / -1; font-family: var(--f-display); }
.browse .cell { font-family: var(--f-display); font-size: 12px; }

/* reveal */
.reveal { opacity: 0; transform: translateY(14px); }
.reveal.is-in { opacity: 1; transform: none; transition: opacity .7s, transform .7s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--d, 0s); }

/* ---- Disciplines ------------------------------------------------------------ */
.disc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 1px; }
.disc {
  display: flex; flex-direction: column; gap: 22px;
  padding: 30px 26px 26px;
  text-decoration: none;
  box-shadow: 0 0 0 1px var(--line);
  transition: background .2s, color .2s;
  min-height: 380px;
}
.disc-ico { width: min(150px, 60%); height: 170px; align-self: center; flex: none; display: flex; align-items: center; }
.disc-ico .geo { transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.disc:hover .disc-ico .geo { transform: rotate(-12deg) scale(1.06); }
.disc-body { display: flex; flex-direction: column; gap: 6px; }
.disc-nr { font-size: 11px; color: var(--ink-3); letter-spacing: .1em; text-transform: uppercase; font-family: var(--f-mono); }
.disc-name { font: 700 22px/1 var(--f-display); text-transform: uppercase; }
.disc-sub { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.disc-desc { font-size: 12px; text-transform: uppercase; color: var(--ink-2); line-height: 1.5; }
.disc:hover { background: var(--ink); color: var(--bg); }
.disc:hover .geo { color: var(--bg); }
.disc:hover .disc-nr, .disc:hover .disc-desc { color: rgba(27, 26, 23, .7); }

/* ---- Category head ----------------------------------------------------------- */
.cat-head { display: grid; grid-template-columns: 1.5fr 1fr 130px; min-height: 420px; }
.cat-head > * + * { border-left: 1px solid var(--line); }
.cat-title { display: flex; align-items: center; justify-content: center; padding: 26px; overflow: hidden; }
.cat-info { display: flex; flex-direction: column; }
.cat-info .side-cell:first-child { flex: .9; }
.cat-ico { width: 150px; display: block; }
.cat-desc { flex-direction: column; align-items: flex-start; justify-content: flex-end; }
.cat-desc p { margin: 0 0 .7em; }
.kicker { font: 700 14px var(--f-display); text-transform: uppercase; }
.cat-jp { display: flex; align-items: center; justify-content: center; padding: 16px; }
.nf .cat-info .side-cell { justify-content: center; }

/* ---- Post ------------------------------------------------------------------- */
.draft-note { background: var(--ink); color: var(--bg); font: 700 12px var(--f-display); padding: 10px 16px; border-radius: 6px; margin-bottom: var(--gap); text-align: center; }
.post-head { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(300px, 1fr); }
.post-media { background: #0d0c0b; display: flex; align-items: center; justify-content: center; min-height: 360px; border-right: 1px solid var(--line); position: relative; }
.post-media > a, .post-media > img { width: 100%; height: 100%; display: flex; }
.post-media img { width: 100%; max-height: 86vh; object-fit: contain; }
.post-media video { width: 100%; max-height: 86vh; }
.post-media .card-empty { position: static; width: 40%; }
.embed { width: 100%; aspect-ratio: 16 / 9; position: relative; }
.embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.embed-poster { all: unset; cursor: pointer; position: absolute; inset: 0; display: grid; place-items: center; background: #0d0c0b; }
.embed-poster img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; max-height: none; opacity: .8; transition: opacity .3s, transform .6s; }
.embed-poster:hover img { opacity: 1; transform: scale(1.02); }
.play-btn { position: relative; display: flex; align-items: center; gap: 12px; background: var(--ink); color: var(--bg); font: 700 16px var(--f-display); padding: 16px 22px; border-radius: 6px; }
.embed-poster:focus-visible .play-btn, .embed-poster:hover .play-btn { outline: 1px solid var(--ink); outline-offset: 4px; }

.post-side { display: flex; flex-direction: column; min-width: 0; }
.post-side > .strip:first-child { border-top: 0; margin-top: 0; }
.post-intro { padding: 22px 22px 0; }
.post-title { font: 700 clamp(24px, 3vw, 42px)/1.02 var(--f-display); text-transform: uppercase; margin-bottom: 18px; overflow-wrap: anywhere; }
.post-excerpt a { text-decoration: underline; }
.meta { margin: 0; border-top: 1px solid var(--line); }
.meta > div { display: grid; grid-template-columns: 110px 1fr; border-bottom: 1px solid var(--line-2); }
.meta dt, .meta dd { margin: 0; padding: 10px 22px; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.meta dt { color: var(--ink-3); border-right: 1px solid var(--line-2); padding-right: 10px; }
.audio-embed { padding: 18px 22px 0; }
.audio-embed iframe { width: 100%; height: 166px; border: 0; border-radius: 6px; }
.post-actions { margin-top: auto; padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.post-actions .btn-cream { justify-content: center; }
.price-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.price-row .price { font-size: 20px; }

.post-body .prose { padding: 28px clamp(18px, 4vw, 56px) 36px; max-width: 78ch; font-size: 15.5px; line-height: 1.7; }
.prose h2, .prose h3, .prose h4 { font: 700 20px/1.2 var(--f-display); text-transform: uppercase; margin: 1.6em 0 .6em; }
.prose h3 { font-size: 16px; }
.prose p { margin: 0 0 1em; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.prose blockquote { margin: 1.4em 0; padding: 4px 0 4px 18px; border-left: 3px solid var(--ink); color: var(--ink-2); }
.prose ul, .prose ol { padding-left: 1.3em; }

.gallery-grid { columns: 3 280px; column-gap: var(--gap); padding: var(--gap); }
.g-item { break-inside: avoid; margin: 0 0 var(--gap); border: 1px solid var(--line-2); border-radius: 5px; overflow: hidden; background: #0d0c0b; }
.g-item img { width: 100%; height: auto; transition: transform .6s, filter .3s; filter: saturate(.9); cursor: zoom-in; }
.g-item:hover img { transform: scale(1.02); filter: none; }
.g-item video { width: 100%; }
.g-item figcaption { padding: 8px 12px; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-2); border-top: 1px solid var(--line-2); }

.post-nav { border: 1px solid var(--line); }
.post-nav .cell { max-width: 42%; overflow: hidden; text-overflow: ellipsis; }

/* ---- Lightbox -------------------------------------------------------------- */
.lightbox { position: fixed; inset: 0; z-index: 400; background: rgba(12, 11, 10, .95); display: flex; align-items: center; justify-content: center; }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; max-width: 92vw; }
.lightbox img { max-width: 92vw; max-height: 84vh; object-fit: contain; border: 1px solid var(--line-2); }
.lightbox figcaption { text-align: center; padding: 12px; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-2); }
.lightbox button { position: absolute; background: var(--bg); color: var(--ink); border: 1px solid var(--line); border-radius: 6px; font: 700 16px var(--f-display); width: 48px; height: 48px; cursor: pointer; }
.lightbox button:hover { background: var(--ink); color: var(--bg); }
.lb-close { top: 16px; right: 16px; }
.lb-nav.prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-nav.next { right: 16px; top: 50%; transform: translateY(-50%); }

/* ---- Footer ----------------------------------------------------------------- */
.footer { margin-bottom: 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; }
.footer-cell { padding: 26px 22px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.footer-cell + .footer-cell { border-left: 1px solid var(--line); }
.footer-cell h4 { font: 700 12px var(--f-display); text-transform: uppercase; margin-bottom: 8px; color: var(--ink-3); }
.footer-cell a { text-decoration: none; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; }
.footer-cell a:hover { text-decoration: underline; }
.footer-brand img { width: 220px; height: auto; margin-bottom: 10px; }
.footer-brand p { margin: 0; color: var(--ink-2); text-transform: uppercase; font-size: 12px; }
.footer .strip { border-bottom: 0; }

/* ---- Responsivt ----------------------------------------------------------- */
@media (max-width: 1100px) {
  .about { grid-template-columns: 1fr 1fr; }
  .about-side { grid-column: 1 / -1; flex-direction: row; border-left: 0 !important; border-top: 1px solid var(--line); }
  .about-side .side-cell + .side-cell { border-top: 0; border-left: 1px solid var(--line); }
  .about-side .vbox { writing-mode: horizontal-tb; padding: 10px 16px; white-space: nowrap; font-size: clamp(18px, 5vw, 30px); }
  .cat-head { grid-template-columns: 1fr 1fr; }
  .cat-jp { display: none; }
  .post-head { grid-template-columns: 1fr; }
  .post-media { border-right: 0; border-bottom: 1px solid var(--line); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-cell:nth-child(3) { border-left: 0; }
  .footer-cell:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 760px) {
  body { font-size: 13px; }
  .topbar { flex-wrap: wrap; min-height: 0; }
  .brand { padding: 14px 0; border-right: 0; flex: 1; }
  .topbar-clock { border-left: 0; }
  .nav { order: 3; flex-basis: calc(100% + var(--gap) * 2); margin: 0 calc(var(--gap) * -1); border-top: 1px solid var(--line-2); }
  .nav-tab { padding: 9px 14px; }
  .hero { height: 62vh; min-height: 380px; }
  .hero-top .tag + .tag { display: none; }
  .marquee { height: 58px; }
  .mq-word b { font-size: 24px; }
  .mq-sep { font-size: 24px; }
  .about { grid-template-columns: 1fr; }
  .about > * + * { border-left: 0; border-top: 1px solid var(--line); }
  .about-stack { padding: 32px 12px; }
  .card.is-feature { grid-column: auto; grid-row: auto; }
  .card.is-feature .card-media { aspect-ratio: 4 / 3; min-height: 0; flex: none; }
  .cat-head { grid-template-columns: 1fr; min-height: 0; }
  .cat-head > * + * { border-left: 0; border-top: 1px solid var(--line); }
  .cat-info .side-cell:first-child { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-cell + .footer-cell { border-left: 0; border-top: 1px solid var(--line); }
  .disc { min-height: 0; }
  .disc-ico { width: 110px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
@media print {
  body::before, .topbar, .marquee, .lightbox { display: none; }
}
