/* Journal grid + reading view (loaded after styles.css) */
/* ---------- Journal grid (editorial news style) ---------- */
.journal { padding: 40px 24px 120px; border-top: 1px solid var(--line); scroll-margin-top: 60px; }
main > .journal:first-child { padding-top: 120px; border-top: 0; }
.journal__head { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; margin-bottom: 64px; }
.journal__label, .journal__all { font-family: var(--pixel); font-weight: 700; font-size: 16px; line-height: 19px; letter-spacing: .04em; text-transform: uppercase; }
.journal__sub { color: var(--muted); margin-left: 6px; }
.journal__all { color: var(--soft); transition: color .2s; white-space: nowrap; }
.journal__all:hover { color: var(--accent-2); }
.jgrid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px 16px; align-items: start; }
.jgrid--rest { grid-template-columns: repeat(4, 1fr); margin-top: 48px; row-gap: 48px; }
.jcard { display: grid; gap: 12px; align-content: start; border-radius: 6px; }
.jcard:focus { outline: none; }
.jcard:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 6px; }
.jcard__media { position: relative; border-radius: 6px; overflow: hidden; aspect-ratio: 16 / 9; background: var(--tile); }
.jcard__media::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255,255,255,.09); pointer-events: none; }
.jcard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.jcard:hover .jcard__media img { transform: scale(1.04); }
.jcard__title { font: 400 clamp(15px, 1.05vw, 17px)/1.35 var(--text); letter-spacing: -0.005em; color: var(--ink); margin-top: 4px; transition: color .2s; }
.jcard--feature .jcard__title { font-size: clamp(17px, 1.3vw, 20px); }
.jcard:hover .jcard__title { color: var(--accent-2); }
.jcard__excerpt { color: var(--muted); font-size: 15px; line-height: 1.45; max-width: 780px; margin-top: -6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.jcard__meta { display: flex; align-items: center; gap: 12px; margin-top: 2px; font-family: var(--pixel); font-weight: 700; font-size: 14px; letter-spacing: .06em; color: var(--muted); }
.chip { display: inline-flex; align-items: center; padding: 6px 9px; border-radius: 3px; background: #1c1c1c; color: var(--ink); text-transform: uppercase; font-family: var(--pixel); font-weight: 700; font-size: 15px; letter-spacing: .06em; line-height: 1; }

/* ---------- Reading view (story pages) ---------- */
body.reader { background: #000; }
.reader__wrap { display: grid; grid-template-columns: 220px 1fr; min-height: 100vh; }
.reader__side { position: sticky; top: 0; height: 100vh; display: flex; justify-content: flex-end; padding: 18px 32px 0 0; background: linear-gradient(90deg, #000, #0a0a0a); }
.reader__close { display: grid; place-items: center; width: 90px; height: 90px; border-radius: 4px; background: #161616; color: #fff; font-size: 34px; line-height: 1; transition: background .2s, color .2s; }
.reader__close:hover { background: var(--accent-2); color: #000; }
.reader__panel { background: #141414; padding: 36px clamp(24px, 4vw, 56px) 40px; min-width: 0; animation: reader-in .7s var(--ease) both; }
.reader--leaving .reader__panel { animation: reader-out .35s ease-in both; }
@keyframes reader-in { from { transform: translateX(60px); opacity: 0; } }
@keyframes reader-out { to { transform: translateX(60px); opacity: 0; } }
.reader__top { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.reader__source { display: flex; align-items: center; gap: 24px; }
.reader__logo { width: 96px; height: 96px; border-radius: 4px; overflow: hidden; background: #000; flex-shrink: 0; }
.reader__logo img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.6); }
.reader__name { display: block; font: 400 24px/1.3 var(--text); color: var(--ink); }
.reader__date { display: block; font-family: var(--pixel); font-weight: 700; font-size: 18px; letter-spacing: .08em; color: var(--muted); margin-top: 4px; }
.reader__cta { display: inline-flex; align-items: center; gap: 8px; padding: 26px 36px; border-radius: 4px; background: #1c1c1c; font-family: var(--pixel); font-weight: 700; font-size: 18px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); white-space: nowrap; transition: background .2s, color .2s; }
.reader__cta:hover { background: var(--accent-2); color: #000; }
.reader .post-hero.reader__head { padding: 0; margin-top: 96px; display: grid; gap: 26px; }
.reader .reader__head h1 { font: 400 clamp(34px, 4.2vw, 64px)/1.1 var(--text); letter-spacing: -0.025em; text-transform: none; max-width: 1500px; }
.reader__intro { font: 400 clamp(18px, 1.6vw, 28px)/1.5 var(--text); color: #8f8f8f; max-width: 1500px; }
.reader__cover { margin: 56px 0 50px; border-radius: 8px; overflow: hidden; aspect-ratio: 16 / 9; background: var(--tile); box-shadow: 0 0 0 1px #222; }
.reader__cover img { width: 100%; height: 100%; object-fit: cover; }
.reader .reader__body { max-width: 1500px; font-size: clamp(18px, 1.6vw, 26px); line-height: 1.55; color: #a9a9a9; }
.reader .reader__body .lead { font: inherit; letter-spacing: 0; color: #c9c9c9; }
.reader .reader__body h2 { font: 500 clamp(24px, 2.2vw, 36px)/1.2 var(--display); letter-spacing: -0.03em; text-transform: none; color: var(--ink); margin-top: 1.8em; }
.reader .reader__body h3 { font: 500 clamp(20px, 1.7vw, 28px)/1.25 var(--display); color: var(--ink); }
.reader .reader__body blockquote { font: 500 clamp(22px, 2vw, 32px)/1.35 var(--display); }
.reader .reader__body li { padding-left: 1.6em; }
.reader .reader__body li::before { top: 0; left: 0.1em; }
.reader__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 50px; }
.reader .journal { padding: 70px 0 20px; margin-top: 70px; }
.reader .footer { margin-left: 220px; }

@media (max-width: 1100px) {
  .jgrid, .jgrid--rest { grid-template-columns: 1fr 1fr; }
  .jgrid .jcard--feature { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .journal { padding: 32px 16px 80px; }
  .journal__head { margin-bottom: 32px; }
  .journal__sub { display: none; }
  .jgrid, .jgrid--rest { grid-template-columns: 1fr; row-gap: 40px; }
  .jgrid .jcard--feature { grid-column: auto; }
  .reader__wrap { grid-template-columns: 1fr; }
  .reader__side { position: fixed; top: 0; left: 0; height: auto; z-index: 30; padding: 12px; background: none; }
  .reader__close { width: 52px; height: 52px; font-size: 26px; }
  .reader__panel { padding: 80px 16px 30px; }
  .reader__top { flex-wrap: wrap; }
  .reader__logo { width: 64px; height: 64px; }
  .reader__name { font-size: 19px; }
  .reader__cta { padding: 16px 20px; font-size: 15px; }
  .reader .post-hero.reader__head { margin-top: 48px; }
  .reader__cover { margin: 36px 0; }
  .reader .footer { margin-left: 0; }
}

/* ---------- Journal covers (big lime type + centre object), built by main.js ---------- */
.has-cover > img { visibility: hidden; }
.cover { position: absolute; inset: 0; container-type: size; background: #161616; overflow: hidden; color: var(--accent-2); isolation: isolate; }
.cover__word { position: absolute; left: 50%; transform: translateX(-50%); white-space: nowrap; font: 500 19cqw/0.8 var(--display); letter-spacing: -0.045em; text-transform: uppercase; pointer-events: none; }
.cover__word--top { top: 3.5cqh; z-index: 1; }
.cover__word--bottom { bottom: -3.5cqh; z-index: 3; }
.cover__label { position: absolute; top: 50%; transform: translateY(-50%); z-index: 4; font-family: var(--pixel); font-weight: 700; font-size: clamp(8px, 1.5cqw, 17px); letter-spacing: .06em; text-transform: uppercase; max-width: 22cqw; line-height: 1.2; }
.cover__label--l { left: 4.5cqw; }
.cover__label--r { right: 4.5cqw; text-align: right; }
.cover__art { position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; transition: transform 1s var(--ease); }
.jcard:hover .cover__art { transform: scale(1.05); }
.cover__art--logo { mix-blend-mode: screen; }
.cover__logo { height: 96cqh; width: auto; transform: rotate(var(--rot, 0deg)) scale(1.25); filter: saturate(1.15) brightness(1.1); }
.cover__card { height: 68cqh; translate: 0 10cqh; aspect-ratio: .62; border-radius: 2.2cqh; background: var(--img) no-repeat 93% 50% / auto 100%; box-shadow: 0 3cqh 8cqh rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.08); transform: rotate(var(--rot, 0deg)); }
.cover__stack { position: relative; height: 62cqh; aspect-ratio: .62; translate: 0 12cqh; }
.cover__stack .cover__card { position: absolute; inset: 0; height: 100%; translate: none; }
.cover__stack .cover__card:nth-child(1) { transform: translateX(-62%) rotate(-14deg); }
.cover__stack .cover__card:nth-child(2) { transform: translateY(-4%) rotate(0deg); z-index: 1; }
.cover__stack .cover__card:nth-child(3) { transform: translateX(62%) rotate(14deg); }
.reader__cover { position: relative; }
/* dot-dithered symbol + Figma-shader finish: RGB split on the type, grain, soft scanlines, vignette */
.cover__sym { position: absolute; inset: 0; width: 100%; height: 100%; }
.cover__word, .cover__label { text-shadow: -.035em 0 rgba(255,64,64,.5), .035em 0 rgba(64,255,230,.4); }
.cover__word { text-shadow: -0.12cqw 0 rgba(255,64,64,.5), 0.12cqw 0 rgba(64,255,230,.4); }
.cover::after { content: ""; position: absolute; inset: 0; z-index: 5; pointer-events: none;
  background:
    radial-gradient(ellipse at center, transparent 50%, rgba(0,0,0,.55) 100%),
    repeating-linear-gradient(0deg, rgba(0,0,0,.07) 0 1px, transparent 1px 3px),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .13 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* ---------- cookie banner ---------- */
.consent { position: fixed; left: 16px; bottom: 16px; z-index: 100; max-width: 420px; padding: 18px; border-radius: 6px; background: #141414; box-shadow: 0 0 0 1px #2a2a2a, 0 20px 50px rgba(0,0,0,.5); display: grid; gap: 14px; font-size: 15px; line-height: 1.45; color: #c9c9c9; }
.consent__btns { display: flex; gap: 8px; }
.consent button { flex: 1; padding: 12px 14px; border-radius: 4px; font-family: var(--pixel); font-weight: 700; font-size: 15px; letter-spacing: .06em; text-transform: uppercase; cursor: pointer; border: 0; }
.consent__no { background: #1f1f1f; color: var(--ink); }
.consent__yes { background: var(--accent-2); color: #000; }
.footer__legal a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- ad landing page (/start) + thank-you ---------- */
.lp-nav { position: sticky; top: 0; z-index: 20; display: flex; justify-content: space-between; align-items: center; padding: 14px 24px; background: linear-gradient(#000 60%, transparent); }
.lp-nav .mask--wordmark { width: 116px; height: 14px; }
.lp-hero { padding: 72px 24px 64px; display: grid; gap: 28px; max-width: 1200px; }
.lp-hero h1 { font: 500 clamp(40px, 6.4vw, 92px)/1 var(--display); letter-spacing: -0.045em; text-transform: uppercase; }
.lp-hero p.lead { font-size: clamp(18px, 1.7vw, 24px); line-height: 1.45; color: #a9a9a9; max-width: 760px; }
.lp-ctas { display: flex; flex-wrap: wrap; gap: 10px; }
.lp-section { padding: 64px 24px; border-top: 1px solid var(--line); }
.lp-section h2 { font: 500 clamp(28px, 3.2vw, 44px)/1.05 var(--display); letter-spacing: -0.035em; text-transform: uppercase; margin-bottom: 32px; }
.lp-logos { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 44px; }
.lp-logos .lbl { font-family: var(--pixel); font-weight: 700; font-size: 15px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-right: 8px; }
.lp-logos .logo { font: 500 26px/1 var(--display); letter-spacing: -0.03em; color: #8f8f8f; text-transform: uppercase; display: inline-flex; align-items: center; gap: 10px; }
.lp-logos .mask--aviator { width: 58px; height: 52px; background: #8f8f8f; }
.lp-cases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.lp-case { display: grid; gap: 12px; align-content: start; }
.lp-case .jcard__media { aspect-ratio: 16 / 10; }
.lp-case h3 { font: 400 clamp(18px, 1.4vw, 22px)/1.3 var(--text); color: var(--ink); }
.lp-case p { color: #a9a9a9; font-size: 16px; line-height: 1.5; }
.lp-services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.lp-services > div { padding: 22px; border-radius: 6px; background: #111; display: grid; gap: 10px; align-content: start; }
.lp-services h3 { font: 500 24px/1.1 var(--display); text-transform: uppercase; letter-spacing: -0.03em; color: var(--accent-2); }
.lp-services p { color: #a9a9a9; font-size: 16px; line-height: 1.5; }
.lp-book { display: grid; grid-template-columns: 1fr 2fr; gap: 32px; align-items: start; }
.lp-book .cal { min-height: 640px; border-radius: 8px; overflow: hidden; background: #0d0d0d; }
.lp-book .cal-fallback { padding: 24px; color: #a9a9a9; }
.lp-foot { padding: 32px 24px 40px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 14px; }
.lp-foot a { text-decoration: underline; text-underline-offset: 3px; }
.thanks { min-height: 70vh; display: grid; align-content: center; gap: 24px; padding: 120px 24px 80px; max-width: 900px; }
.thanks h1 { font: 500 clamp(40px, 6vw, 84px)/1 var(--display); letter-spacing: -0.045em; text-transform: uppercase; }
.thanks p { font-size: clamp(18px, 1.6vw, 22px); line-height: 1.5; color: #a9a9a9; }
@media (max-width: 900px) {
  .lp-cases, .lp-services, .lp-book { grid-template-columns: 1fr; }
  .lp-hero { padding: 40px 16px 48px; }
  .lp-section { padding: 48px 16px; }
  .consent { left: 8px; right: 8px; bottom: 8px; max-width: none; }
}

/* ---------- Koto-style reader: 50/50 split, blurred cover on the left, compact type ---------- */
.reader__wrap { grid-template-columns: 1fr 1fr; }
.reader__side { position: sticky; top: 0; height: 100vh; overflow: hidden; padding: 16px 20px 0 0; background: #000; }
.reader__blur { position: absolute; inset: -80px; filter: blur(46px) brightness(.6) saturate(.9); pointer-events: none; }
.reader__close { position: relative; z-index: 1; width: 50px; height: 50px; font-size: 22px; border-radius: 3px; background: #161616; }
.reader__panel { padding: 24px 32px 40px; }
.reader__source { gap: 14px; }
.reader__logo { width: 64px; height: 64px; border-radius: 4px; background: #000 url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'><path fill='%23e2f86b' fill-rule='evenodd' d='M46 28H72Q76 28 76 32V54L64 72H30Q26 72 26 68V46ZM42 36H67V56L59 64H34V44Z'/></svg>") center / 100% no-repeat; }
.reader__logo img { display: none; }
.reader__name { font-size: 16px; line-height: 1.3; }
.reader__date { font-size: 14px; letter-spacing: .06em; margin-top: 2px; }
.reader__cta { padding: 14px 20px; font-size: 14px; border-radius: 3px; }
.reader .post-hero.reader__head { margin-top: 56px; gap: 18px; }
.reader .reader__head h1 { font-size: clamp(26px, 2.3vw, 40px); line-height: 1.15; letter-spacing: -0.02em; }
.reader__intro { font-size: clamp(16px, 1.05vw, 19px); line-height: 1.45; }
.reader__cover { margin: 30px 0 34px; border-radius: 6px; }
.reader .reader__body { font-size: clamp(16px, 1.05vw, 19px); line-height: 1.45; }
.reader .reader__body h2 { font-size: clamp(20px, 1.5vw, 26px); margin-top: 1.6em; }
.reader .reader__body h3 { font-size: clamp(18px, 1.2vw, 22px); }
.reader .reader__body blockquote { font-size: clamp(19px, 1.4vw, 24px); }
.reader__tags { margin-top: 36px; }
.reader .journal { padding: 48px 0 12px; margin-top: 48px; }
.reader .jgrid--rest { grid-template-columns: 1fr 1fr; }
.reader .footer { margin-left: 50%; }
@media (max-width: 900px) {
  .reader__wrap { grid-template-columns: 1fr; }
  .reader__side { position: fixed; top: 0; left: 0; height: auto; overflow: visible; z-index: 30; padding: 12px; background: none; }
  .reader__blur { display: none; }
  .reader__close { width: 44px; height: 44px; }
  .reader__panel { padding: 72px 16px 30px; }
  .reader__logo { width: 52px; height: 52px; }
  .reader .footer { margin-left: 0; }
}
