/* ==========================================================================
   HOME, WORK TILES, GALLERY AND CASE VIEW
   ========================================================================== */

/* ---- Work tile ---- */
.wk { display: block; }
.wk-tilt { transform-style: preserve-3d; will-change: transform; }
.wk-media { position: relative; overflow: hidden; background: var(--ink-3); }
.wk-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--expo); }
.wk:hover .wk-media img, .wk:focus-visible .wk-media img { transform: scale(1.035); }
.wk-cap { padding-top: 12px; display: grid; gap: 2px; }
.wk-title { font-family: var(--display); font-weight: 800; font-size: clamp(1.3rem, 1.9vw, 1.9rem); line-height: 1.02; text-transform: uppercase; transition: color .2s; }
.wk:hover .wk-title { color: var(--red-text); }
.wk-play { position: absolute; left: 12px; bottom: 12px; padding: 4px 10px; background: var(--red); color: #fff; }

/* The channel-change glitch: two offset slices of the image and a burst of static. */
.wk-glitch { position: absolute; inset: 0; pointer-events: none; opacity: 0; overflow: hidden; }
.wk-glitch i { position: absolute; inset: 0; background-size: cover; background-position: center; }
.wk-glitch i:nth-child(1) { clip-path: inset(12% 0 62% 0); transform: translateX(-5%); }
.wk-glitch i:nth-child(2) { clip-path: inset(58% 0 20% 0); transform: translateX(6%); filter: grayscale(1) contrast(1.4); }
.wk-glitch b { position: absolute; inset: 0; background-image: repeating-linear-gradient(0deg, rgba(0, 0, 0, .4) 0 2px, transparent 2px 4px), linear-gradient(90deg, rgba(227, 20, 27, .28), rgba(227, 20, 27, 0) 45%); }
.wk-glitch.go { animation: glitch .42s steps(1) forwards; }
.wk-glitch.go i:nth-child(1) { animation: gl-a .42s steps(1); }
.wk-glitch.go i:nth-child(2) { animation: gl-b .42s steps(1); }
@keyframes glitch { 0%, 72% { opacity: 1; } 28% { opacity: .5; } 100% { opacity: 0; } }
@keyframes gl-a { 0% { clip-path: inset(8% 0 70% 0); transform: translateX(-7%); } 33% { clip-path: inset(46% 0 30% 0); transform: translateX(5%); } 66% { clip-path: inset(70% 0 8% 0); transform: translateX(-3%); } }
@keyframes gl-b { 0% { clip-path: inset(52% 0 28% 0); transform: translateX(8%); } 33% { clip-path: inset(14% 0 66% 0); transform: translateX(-6%); } 66% { clip-path: inset(32% 0 50% 0); transform: translateX(4%); } }
.lite .wk-glitch { display: none; }

/* ---- Page masthead used by All news ---- */
.hf-mast { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; padding-bottom: 12px; border-bottom: 1px solid var(--line-paper); }
.hf-h { font-family: var(--serif); font-weight: 400; text-transform: none; letter-spacing: -.02em; font-size: clamp(2.2rem, 4.4vw, 4rem); line-height: 1; }
.hf-h .s-i { color: var(--gold); }
.hf-date { font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; text-align: right; line-height: 1.6; color: var(--gold); }

/* ---- Home: dark editorial front page ---- */
.hx { padding-top: var(--top-h); padding-bottom: var(--sp-8); }
.hx-k { display: block; font-family: var(--mono); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.hx-by { font-family: var(--mono); font-size: .66rem; letter-spacing: .06em; text-transform: uppercase; color: var(--on-paper-2); }

/* Section heading with the brush swoosh, and its See all link */
.hx-head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--sp-4); margin-bottom: var(--sp-5); padding-bottom: var(--sp-3); border-bottom: 1px solid var(--line-paper); }
.hx-h2 { position: relative; display: inline-block; padding-bottom: 10px; font-family: var(--serif); font-weight: 500; font-size: clamp(1.6rem, 2.4vw, 2.3rem); line-height: 1.05; letter-spacing: -.02em; }
.swoosh { position: absolute; left: -2px; bottom: -6px; width: min(100%, 220px); height: 16px; overflow: visible; }
.swoosh path { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.1s cubic-bezier(.65, 0, .35, 1) .1s; }
.swoosh.in path { stroke-dashoffset: 0; }
.hx-all { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-family: var(--sans); font-weight: 600; font-size: .9rem; color: var(--gold); }
.hx-all::after { content: '→'; transition: transform .25s var(--expo); }
.hx-all:hover { color: #fff; }
.hx-all:hover::after { transform: translateX(4px); }

/* Nameplate */
.hx-plate { padding-top: var(--sp-4); text-align: center; }
.hx-line { display: grid; grid-template-columns: 1fr auto 1fr; gap: var(--sp-3); align-items: center; padding-bottom: var(--sp-3); border-bottom: 1px solid var(--line-paper); font-family: var(--mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--on-paper-2); }
.hx-line > :first-child { text-align: left; }
.hx-line > :last-child { text-align: right; color: var(--gold); }
.hx-line a:hover { color: #fff; }
.hx-name { display: flex; align-items: center; justify-content: center; gap: clamp(14px, 2vw, 28px); margin: var(--sp-5) 0; font-family: var(--serif); font-weight: 400; font-size: clamp(2.6rem, 6.4vw, 5.8rem); line-height: 1; letter-spacing: -.035em; }
.hx-name img { width: clamp(120px, 13vw, 176px); height: auto; background: none; filter: drop-shadow(0 14px 32px rgba(227, 20, 27, .35)); }
.hx-name em { font-style: italic; font-weight: 300; color: var(--gold); }
.hx-secs { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 clamp(14px, 2.2vw, 32px); border-top: 1px solid var(--line-paper); border-bottom: 3px double rgba(201, 180, 138, .45); }
.hx-secs a { display: inline-flex; align-items: center; min-height: 44px; font-family: var(--sans); font-weight: 600; font-size: .86rem; color: var(--on-paper); transition: color .2s; }
.hx-secs a:hover { color: var(--gold); }

/* Cover carousel */
.hx-covers { position: relative; margin-top: var(--sp-7); padding-block: var(--sp-6) var(--sp-7); overflow: hidden; }
.hx-covers::before { content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none; background: radial-gradient(60% 80% at 18% 30%, rgba(227, 20, 27, .2), transparent 70%), radial-gradient(50% 70% at 85% 80%, rgba(201, 180, 138, .1), transparent 70%); }
.hx-covers > * { position: relative; z-index: 1; }
.hx-cov-top { display: flex; align-items: flex-end; gap: var(--sp-4); }
.hx-cov-top .hx-head { flex: 1; margin-bottom: 0; }
.hx-arrows { display: flex; gap: var(--sp-2); padding-bottom: var(--sp-3); }
.hx-arrow { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(241, 235, 223, .3); color: var(--paper); transition: background .2s, border-color .2s, opacity .2s; }
.hx-arrow svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; }
.hx-arrow:hover:not(:disabled) { background: var(--paper); color: var(--on-light); border-color: var(--paper); }
.hx-arrow:disabled { opacity: .3; cursor: default; }
.hx-track { display: flex; align-items: flex-start; gap: 20px; margin: var(--sp-5) 0 0; padding: var(--sp-5) var(--gut) var(--sp-4); list-style: none; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gut); overscroll-behavior-x: contain; scrollbar-width: thin; scrollbar-color: rgba(201, 180, 138, .4) transparent; cursor: grab; }
.hx-track:focus-visible { outline: 2px solid var(--gold); outline-offset: -2px; }
.hx-track.dragging { cursor: grabbing; scroll-snap-type: none; }
.hx-track.dragging a { pointer-events: none; }
.hx-issue { flex: none; width: clamp(168px, 15.3vw, 228px); scroll-snap-align: start; }
.hx-issue.latest { width: clamp(220px, 23vw, 312px); }
.hx-issue a { display: grid; gap: var(--sp-2); user-select: none; -webkit-user-drag: none; }
.hx-cover { position: relative; margin: 0 0 var(--sp-2); aspect-ratio: 3 / 4.2; overflow: visible; border-radius: var(--radius); background: var(--ink-3); box-shadow: 0 10px 26px rgba(0, 0, 0, .5); transition: transform .45s var(--expo), box-shadow .45s var(--expo); }
.hx-cover img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); -webkit-user-drag: none; }
.hx-issue a:hover .hx-cover, .hx-issue a:focus-visible .hx-cover { transform: translateY(-8px) rotate(-1.2deg); box-shadow: 0 26px 48px rgba(0, 0, 0, .7); }
.hx-issue.latest .hx-cover { box-shadow: 0 0 0 2px var(--gold), 0 16px 36px rgba(0, 0, 0, .6); }
.hx-tag { position: absolute; left: 50%; top: 0; transform: translate(-50%, -50%); white-space: nowrap; box-shadow: 0 6px 16px rgba(0, 0, 0, .5); padding: 5px 9px; border-radius: var(--radius); background: var(--red); color: #fff; font-family: var(--mono); font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; }
.hx-cov-t { font-family: var(--serif); font-weight: 500; font-size: 1.15rem; line-height: 1.2; transition: color .2s; }
.hx-issue.latest .hx-cov-t { font-size: 1.45rem; }
.hx-issue a:hover .hx-cov-t { color: var(--gold); }
.hx-cov-d { font-size: .9rem; line-height: 1.45; color: var(--on-paper-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Top stories */
.hx-top { margin-top: var(--sp-6); }
.hx-top-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--sp-6); }
.hx-lead { position: relative; display: block; aspect-ratio: 16 / 11; overflow: hidden; border-radius: var(--radius); background: var(--ink-3); }
.hx-lead img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--expo); }
.hx-lead:hover img { transform: scale(1.03); }
.hx-lead::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8, 7, 7, .05) 0%, rgba(8, 7, 7, .25) 22%, rgba(8, 7, 7, .93) 50%, #080707 78%); }
.hx-lead-in { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; display: grid; gap: var(--sp-3); padding: clamp(20px, 3vw, 40px); }
.hx-lead-t { font-family: var(--serif); font-weight: 500; font-size: clamp(1.8rem, 3vw, 3rem); line-height: 1.06; letter-spacing: -.02em; color: #fff; max-width: 22ch; text-shadow: 0 2px 18px rgba(0, 0, 0, .6); transition: color .2s; }
.hx-lead:hover .hx-lead-t { color: var(--gold); }
.hx-lead-d { max-width: 56ch; font-family: var(--serif); font-style: italic; font-size: clamp(1rem, 1.2vw, 1.15rem); line-height: 1.5; color: rgba(255, 255, 255, .82); }
.hx-second { display: grid; align-content: start; }
.hx-card { display: grid; gap: var(--sp-2); align-content: start; transition: transform .35s var(--expo); }
.hx-card:hover { transform: translateY(-4px); }
.hx-card.row { grid-template-columns: 132px minmax(0, 1fr); column-gap: var(--sp-4); padding-block: var(--sp-4); border-bottom: 1px solid var(--line-paper); }
.hx-card.row:first-child { padding-top: 0; }
.hx-card.row:last-child { border-bottom: 0; }
.hx-card.row .hx-pic { grid-row: span 3; aspect-ratio: 4 / 3; margin: 0; }
.hx-card.row:hover { transform: none; }
.hx-pic { margin: 0 0 var(--sp-1); aspect-ratio: 16 / 10; overflow: hidden; border-radius: var(--radius); background: var(--ink-3); transition: box-shadow .35s var(--expo); }
.hx-card:hover .hx-pic { box-shadow: var(--lift); }
.hx-pic img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--expo); }
.hx-card:hover .hx-pic img { transform: scale(1.04); }
.hx-t { font-family: var(--serif); font-weight: 500; font-size: clamp(1.08rem, 1.25vw, 1.25rem); line-height: 1.25; letter-spacing: -.005em; transition: color .2s; }
.hx-card:hover .hx-t { color: var(--gold); }

/* Section blocks and rows */
.hx-sec { margin-top: var(--sp-8); }
.hx-blocks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-6); }
.hx-block { margin-top: var(--sp-8); }
.hx-block .hx-card.row { grid-template-columns: 112px minmax(0, 1fr); }
.hx-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--sp-6) var(--sp-5); }

/* About */
.hx-about { margin-top: var(--sp-8); }
.hx-about-p { max-width: 44ch; font-family: var(--serif); font-size: clamp(1.2rem, 1.6vw, 1.5rem); line-height: 1.4; }
.hx-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: var(--sp-5); border-top: 1px solid var(--line-paper); }
.hx-links a { display: grid; gap: var(--sp-1); padding: var(--sp-4) var(--sp-4) var(--sp-4) 0; border-bottom: 1px solid var(--line-paper); }
.hx-links b { font-family: var(--serif); font-weight: 500; font-size: 1.3rem; transition: color .2s; }
.hx-links span { color: var(--on-paper-2); font-size: .92rem; }
.hx-links a:hover b { color: var(--gold); }

@media (max-width: 1100px) {
  .hx-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hx-blocks { grid-template-columns: minmax(0, 1fr); gap: 0; }
}
@media (max-width: 860px) {
  .hx-top-grid { grid-template-columns: minmax(0, 1fr); }
  .hx-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .hx-line { grid-template-columns: 1fr; }
  .hx-line > * { text-align: center !important; }
  .hx-line-c { display: none; }
  .hx-lead { aspect-ratio: 4 / 5; }
  .hx-row { grid-template-columns: minmax(0, 1fr); gap: var(--sp-4); }
  .hx-row .hx-card { grid-template-columns: 112px minmax(0, 1fr); column-gap: var(--sp-4); padding-bottom: var(--sp-4); border-bottom: 1px solid var(--line-paper); }
  .hx-row .hx-pic { grid-row: span 3; aspect-ratio: 1; margin: 0; }
  .hx-card.row { grid-template-columns: 112px minmax(0, 1fr); }
  .hx-card.row .hx-pic { aspect-ratio: 1; }
  .hx-issue { width: 58vw; }
  .hx-issue.latest { width: 70vw; }
  .hx-arrows { display: none; }
  .hx-links { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .swoosh path { transition: none; stroke-dashoffset: 0; }
  .hx-card, .hx-cover, .hx-lead img, .hx-pic img { transition: none; }
}
.idx { margin-top: clamp(40px, 6vw, 88px); }
.idx-row { display: grid; grid-template-columns: 3rem minmax(0, 1fr) auto; gap: 14px; align-items: baseline; padding-block: clamp(14px, 1.8vw, 24px); border-top: 1px solid var(--line); transition: padding .5s var(--expo); }
.idx li:last-child .idx-row { border-bottom: 1px solid var(--line); }
.idx-t { font-family: var(--serif); font-weight: 300; font-size: clamp(1.35rem, 2.6vw, 2.6rem); line-height: 1.1; letter-spacing: -.01em; transition: color .2s; }
.idx-row:hover { padding-left: 14px; }
.idx-row:hover .idx-t { color: var(--red-text); }
.idx-peek { position: fixed; top: 0; left: 0; z-index: 240; width: min(24vw, 340px); aspect-ratio: 4 / 3; overflow: hidden; pointer-events: none; opacity: 0; transition: opacity .2s; }
.idx-peek.on { opacity: 1; }
.idx-peek img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 640px) { .idx-s { display: none; } .idx-row { grid-template-columns: 2.2rem minmax(0, 1fr); } }

/* ---- Work page ---- */
.wk-h1 { line-height: .82; }
.wk-sub { max-width: 46ch; margin-left: auto; }
.wk-sub em { color: var(--red-text); font-style: italic; }
.tuner { position: sticky; top: 0; z-index: 200; display: flex; gap: clamp(14px, 2.2vw, 34px); padding: calc(var(--top-h) - 4px) var(--gut) 12px; overflow-x: auto; scrollbar-width: none; background: linear-gradient(180deg, var(--ink) 80%, rgba(11, 10, 10, 0)); }
.tuner::-webkit-scrollbar { display: none; }
.tune { flex: none; position: relative; display: inline-flex; align-items: flex-start; gap: 5px; min-height: 44px; padding-block: 8px; color: var(--muted); transition: color .2s; }
.tune-n { font-size: .6rem; padding-top: .35em; color: var(--metal); }
.tune-t { font-family: var(--display); font-weight: 800; font-size: clamp(1.25rem, 2vw, 1.9rem); line-height: 1; text-transform: uppercase; }
.tune-c { font-size: .62rem; padding-top: .2em; line-height: 1; top: 0; }
.tune::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--expo); }
.tune:hover, .tune.on { color: var(--paper); }
.tune.on::after { transform: scaleX(1); }
.mas-wrap { padding-top: clamp(20px, 3vw, 44px); padding-bottom: clamp(64px, 8vw, 120px); }
.mas { position: relative; }
.mas-i { position: absolute; top: 0; left: 0; will-change: transform; }
.mas-note { padding-top: 16px; min-height: 2em; }
.wk-end { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.wk-end .lede { max-width: 28ch; }

/* ---- Case view ---- */
.case { position: fixed; inset: 0; z-index: 500; background: var(--ink); display: grid; grid-template-columns: minmax(0, 62fr) minmax(0, 38fr); overflow: hidden; }
.cs-media { position: relative; display: grid; place-items: center; height: 100svh; padding: 28px; background: #050505; min-width: 0; }
.cs-frame, .cs-play { display: grid; place-items: center; width: 100%; height: 100%; min-height: 0; position: relative; }
.cs-media img { max-width: 100%; max-height: calc(100svh - 56px); width: auto; height: auto; background: none; }
.cs-play-i { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); padding: 12px 22px; background: var(--red); color: #fff; font-size: .9rem; }
.cs-yt { width: 100%; max-height: 100%; border: 0; background: #000; }
.cs-panel { display: flex; flex-direction: column; justify-content: space-between; gap: 40px; padding: calc(var(--top-h) + 8px) clamp(20px, 3vw, 52px) 24px; height: 100svh; overflow-y: auto; overscroll-behavior: contain; min-width: 0; }
.cs-top { display: grid; gap: clamp(14px, 1.8vw, 24px); justify-items: start; }
.cs-title:focus { outline: none; }
.cs-desc { font-size: clamp(1.25rem, 1.8vw, 1.7rem); }
.cs-cred { width: 100%; border-top: 1px solid var(--line); }
.cs-cred > div { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: 8px; padding-block: 10px; border-bottom: 1px solid var(--line); align-items: baseline; }
.cs-links { display: flex; flex-wrap: wrap; gap: 10px; }
.cs-close { position: absolute; top: 12px; right: var(--gut); z-index: 3; min-height: 44px; padding: 0 14px; display: inline-flex; align-items: center; gap: 10px; background: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.cs-close:hover { background: var(--red); color: #fff; }
.cs-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; border-top: 1px solid var(--line); padding-top: 14px; }
.cs-n { display: grid; gap: 4px; align-content: start; }
.cs-n-r { text-align: right; }
.cs-n-t { font-family: var(--display); font-weight: 800; font-size: clamp(1.15rem, 1.6vw, 1.6rem); line-height: 1.04; text-transform: uppercase; }
.cs-n:hover .cs-n-t { color: var(--red-text); }
.cs-flash { position: absolute; inset: 0; z-index: 4; pointer-events: none; opacity: 0; background-size: 220px; }
.cs-fly { position: fixed; z-index: 600; object-fit: cover; pointer-events: none; background: none; }
@media (max-width: 899px) {
  .case { display: block; overflow-y: auto; overscroll-behavior: contain; }
  .cs-media { height: auto; max-height: 62svh; padding: 0; padding-top: var(--top-h); }
  .cs-media img { max-height: calc(62svh - var(--top-h)); }
  .cs-panel { height: auto; overflow: visible; padding-top: 24px; padding-bottom: calc(var(--chyron-h) + 24px); }
}

