/* =========================================================
   TONYFLOR.COM — theme, layout, components
   Editable sections marked by banner comments.
   ========================================================= */

/* ----------- THEME TOKENS (edit here) ----------- */
:root {
  /* palette */
  --c-bg:        #0b0e14;
  --c-bg-2:      #12172033;
  --c-navy:      #0f1a33;
  --c-navy-2:    #1b2a4e;
  --c-red:       #e63946;
  --c-red-deep:  #b02030;
  --c-white:     #f5f1e8;
  --c-bone:      #d9d3c4;
  --c-silver:    #c9ccd1;
  --c-steel:     #6d7380;
  --c-ink:       #05070c;

  /* type */
  --f-display: "Bebas Neue", "Oswald", Impact, "Arial Black", sans-serif;
  --f-head:    "Oswald", Impact, "Arial Narrow", sans-serif;
  --f-body:    "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;

  /* spacing */
  --s-1:  .5rem;
  --s-2:  1rem;
  --s-3:  1.5rem;
  --s-4:  2rem;
  --s-5:  3rem;
  --s-6:  5rem;
  --s-7:  8rem;

  /* misc */
  --radius: 2px;
  --edge: 1px solid rgba(201,204,209,.14);
  --shadow-hard: 0 14px 40px rgba(0,0,0,.55), 0 2px 0 rgba(230,57,70,.25);
  --max: 1240px;
}

/* ----------- RESET ----------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--f-body);
  color: var(--c-bone);
  background: var(--c-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  /* base grunge backdrop */
  background-image:
    radial-gradient(1200px 800px at 85% -10%, rgba(230,57,70,.08), transparent 60%),
    radial-gradient(1000px 700px at -10% 110%, rgba(15,26,51,.55), transparent 60%),
    linear-gradient(180deg, #0b0e14 0%, #0a0d13 100%);
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul { list-style: none; padding: 0; margin: 0; }

/* focus */
:focus-visible {
  outline: 2px solid var(--c-red);
  outline-offset: 3px;
}

/* ----------- NAV ----------- */
.nav {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px clamp(16px, 4vw, 44px);
  background: linear-gradient(180deg, rgba(11,14,20,.92), rgba(11,14,20,.65) 80%, transparent);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(201,204,209,.08);
}
.brand {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--f-display);
  letter-spacing: .12em;
}
.brand-mark {
  display: inline-grid; place-items: center;
  width: 36px; height: 36px;
  background: var(--c-red);
  color: var(--c-white);
  font-family: var(--f-display);
  font-size: 26px; line-height: 1;
  transform: skewX(-8deg);
  box-shadow: 2px 2px 0 var(--c-navy), 4px 4px 0 rgba(0,0,0,.6);
}
.brand-word { font-size: 22px; color: var(--c-white); }
.nav-links { display: flex; gap: clamp(16px, 3vw, 34px); }
.nav-links a {
  font-family: var(--f-head);
  font-size: 14px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--c-silver);
  position: relative;
  padding: 6px 2px;
  transition: color .2s;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 2px; background: var(--c-red); transform: scaleX(0);
  transform-origin: left; transition: transform .25s ease;
}
.nav-links a:hover { color: var(--c-white); }
.nav-links a:hover::after { transform: scaleX(1); }

@media (max-width: 560px) {
  .brand-word { display: none; }
  .nav-links { gap: 18px; }
  .nav-links a { font-size: 12px; letter-spacing: .18em; }
}

/* ================= HERO ================= */
.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  place-items: center;
  padding: var(--s-6) clamp(18px, 5vw, 60px);
  overflow: hidden;
  isolation: isolate;
}

.hero-media {
  position: absolute; inset: 0;
  z-index: -1;
}
/* NOTE: swap hero photo by editing the url below */
.hero-photo {
  position: absolute; inset: 0;
  background-image: url("images/full/tony-gallery-042.jpg");
  background-size: cover;
  background-position: center;
  filter: grayscale(.35) contrast(1.15) brightness(.72) saturate(.85);
  transform: scale(1.08);
}
.hero-photo::after {
  /* duotone wash: navy shadows, red highlights */
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(135deg, rgba(15,26,51,.82) 0%, rgba(11,14,20,.55) 45%, rgba(230,57,70,.38) 100%);
  mix-blend-mode: multiply;
}
.hero-halftone {
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(245,241,232,.22) 1px, transparent 1.4px);
  background-size: 4px 4px;
  mix-blend-mode: overlay;
  opacity: .55;
}
.hero-grain {
  position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(0deg, rgba(255,255,255,.04) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(90deg, rgba(0,0,0,.06) 0 1px, transparent 1px 3px);
  mix-blend-mode: overlay;
  opacity: .6;
}
.hero-scanline {
  position: absolute; inset: 0;
  background: repeating-linear-gradient(0deg, rgba(0,0,0,.18) 0 2px, transparent 2px 4px);
  mix-blend-mode: multiply;
  opacity: .4;
}
.hero-vignette {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, transparent 40%, rgba(0,0,0,.85) 100%);
}

/* corner brackets (film frame) */
.hero-corner {
  position: absolute; width: 46px; height: 46px;
  border: 3px solid var(--c-white);
  opacity: .85;
}
.hero-corner-tl { top: 22px; left: 22px; border-right: 0; border-bottom: 0; }
.hero-corner-tr { top: 22px; right: 22px; border-left: 0; border-bottom: 0; }
.hero-corner-bl { bottom: 22px; left: 22px; border-right: 0; border-top: 0; }
.hero-corner-br { bottom: 22px; right: 22px; border-left: 0; border-top: 0; }

/* bottom tag strip */
.hero-tag {
  position: absolute; left: 50%; bottom: 24px;
  transform: translateX(-50%);
  display: flex; align-items: center; gap: 12px;
  font-family: var(--f-head); font-size: 11px;
  letter-spacing: .28em; text-transform: uppercase;
  color: var(--c-white);
  background: rgba(11,14,20,.55);
  border: 1px solid rgba(245,241,232,.25);
  padding: 8px 14px;
}
.hero-tag .dot { width: 4px; height: 4px; background: var(--c-red); display: inline-block; }

/* hero content */
.hero-frame {
  text-align: center;
  position: relative;
  padding: clamp(20px, 4vw, 40px);
  max-width: 960px;
}
.hero-kicker {
  display: inline-block;
  font-family: var(--f-head);
  letter-spacing: .42em;
  font-size: 12px;
  text-transform: uppercase;
  color: var(--c-white);
  padding: 6px 12px;
  background: var(--c-red);
  box-shadow: 4px 4px 0 var(--c-navy);
  transform: skewX(-8deg);
  margin-bottom: var(--s-3);
}
.hero-kicker::before { content: "// "; opacity: .75; }

.hero-title {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(84px, 18vw, 260px);
  line-height: .82;
  margin: 0 0 var(--s-3);
  color: var(--c-white);
  letter-spacing: .02em;
  /* layered hard shadow — comic punch */
  text-shadow:
    6px 6px 0 var(--c-red),
    12px 12px 0 var(--c-navy),
    16px 16px 30px rgba(0,0,0,.6);
  position: relative;
}
.hero-title-inner {
  display: inline-block;
  background: linear-gradient(180deg, #ffffff 0%, #d9d3c4 60%, #a7a9ae 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-stroke: 2px rgba(11,14,20,.9);
}
.hero-sub {
  font-family: var(--f-head);
  font-size: clamp(14px, 1.6vw, 19px);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--c-bone);
  margin: 0 auto var(--s-4);
  max-width: 680px;
}
.hero-sub br { display: block; }

/* socials */
.socials {
  display: flex; justify-content: center; flex-wrap: wrap;
  gap: 14px;
}
.social {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 18px;
  font-family: var(--f-head);
  font-size: 13px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--c-white);
  background: rgba(11,14,20,.72);
  border: 1px solid rgba(245,241,232,.35);
  transform: skewX(-8deg);
  transition: transform .2s, background .2s, border-color .2s;
  position: relative;
}
.social > * { transform: skewX(8deg); }
.social svg { width: 18px; height: 18px; }
.social::before {
  content: ""; position: absolute; inset: 0;
  background: var(--c-red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
  z-index: -1;
}
.social:hover { border-color: var(--c-white); }
.social:hover::before { transform: scaleX(1); }

/* hero entrance animation */
.js-intro .hero-kicker,
.js-intro .hero-title,
.js-intro .hero-sub,
.js-intro .socials {
  opacity: 0;
  transform: translateY(14px);
}
.js-intro .hero-photo { transform: scale(1.14); }

.js-intro.animate .hero-photo {
  animation: heroPunchIn 1.4s cubic-bezier(.2,.7,.2,1) forwards;
}
.js-intro.animate .hero-kicker   { animation: heroPop .55s .55s forwards; }
.js-intro.animate .hero-title    { animation: heroPop .75s .7s forwards; }
.js-intro.animate .hero-sub      { animation: heroPop .7s 1.05s forwards; }
.js-intro.animate .socials       { animation: heroPop .7s 1.25s forwards; }
.js-intro.animate .hero-title {
  animation-name: heroPop, titleFlicker;
  animation-duration: .75s, 1s;
  animation-delay: .7s, .7s;
  animation-fill-mode: forwards, none;
}

@keyframes heroPunchIn {
  from { transform: scale(1.14); filter: grayscale(.6) contrast(1.4) brightness(.6) saturate(.7); }
  to   { transform: scale(1.08); filter: grayscale(.35) contrast(1.15) brightness(.72) saturate(.85); }
}
@keyframes heroPop {
  to { opacity: 1; transform: translateY(0); }
}
@keyframes titleFlicker {
  0%,100% { filter: none; }
  6%  { filter: brightness(1.4) contrast(1.4); }
  8%  { filter: none; }
  14% { filter: brightness(.7); }
  16% { filter: none; }
  22% { filter: hue-rotate(-10deg) saturate(1.3); }
  24% { filter: none; }
}

/* ================= SHARED SECTION BITS ================= */
section { padding: var(--s-7) clamp(18px, 5vw, 60px); position: relative; }
.section-label {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-head);
  font-size: 12px;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--c-silver);
  padding: 6px 12px;
  border: 1px solid rgba(201,204,209,.22);
  background: rgba(15,26,51,.35);
  margin-bottom: var(--s-3);
}
.section-label-tick {
  width: 10px; height: 10px; background: var(--c-red);
  display: inline-block;
  clip-path: polygon(0 0, 100% 0, 70% 100%, 0 100%);
}
.section-title {
  font-family: var(--f-display);
  font-size: clamp(40px, 7vw, 92px);
  line-height: .9;
  color: var(--c-white);
  letter-spacing: .02em;
  margin: 0 0 var(--s-2);
}
.section-title .accent {
  color: var(--c-red);
  -webkit-text-stroke: 0;
  text-shadow: 3px 3px 0 var(--c-navy);
}
.section-sub {
  font-family: var(--f-head);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--c-silver);
  font-size: 14px;
  margin: 0 0 var(--s-4);
}

/* ================= ABOUT ================= */
.about { max-width: var(--max); margin: 0 auto; }
.about-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(30px, 5vw, 70px);
  align-items: start;
  margin-top: var(--s-3);
}
.about-copy p { font-size: 17px; color: var(--c-bone); max-width: 60ch; }
.about-copy .lede {
  font-size: clamp(19px, 2vw, 22px);
  color: var(--c-white);
  border-left: 3px solid var(--c-red);
  padding-left: 18px;
  margin-top: var(--s-3);
}

.dossier-card {
  background:
    linear-gradient(180deg, rgba(15,26,51,.7), rgba(11,14,20,.85)),
    repeating-linear-gradient(90deg, rgba(255,255,255,.02) 0 2px, transparent 2px 4px);
  border: 1px solid rgba(201,204,209,.22);
  padding: 26px 28px;
  position: relative;
  box-shadow: var(--shadow-hard);
}
.dossier-card::before {
  content: "CLASSIFIED";
  position: absolute;
  top: -10px; right: 20px;
  background: var(--c-red);
  color: var(--c-white);
  padding: 4px 10px;
  font-family: var(--f-head);
  font-size: 11px;
  letter-spacing: .28em;
  transform: skewX(-8deg);
}
.dossier-head {
  display: flex; justify-content: space-between;
  font-family: var(--f-head);
  font-size: 12px;
  letter-spacing: .28em;
  color: var(--c-silver);
  text-transform: uppercase;
  padding-bottom: 12px;
  border-bottom: 1px dashed rgba(201,204,209,.22);
  margin-bottom: 14px;
}
.dossier-list { margin: 0; }
.dossier-list > div {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px dashed rgba(201,204,209,.1);
}
.dossier-list > div:last-child { border-bottom: 0; }
.dossier-list dt {
  font-family: var(--f-head);
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--c-steel);
}
.dossier-list dd {
  margin: 0;
  color: var(--c-white);
  font-weight: 500;
}
.pulse {
  display: inline-block;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--c-red);
  margin-right: 8px;
  box-shadow: 0 0 0 0 rgba(230,57,70,.7);
  animation: pulse 1.8s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(230,57,70,.7); }
  70%  { box-shadow: 0 0 0 12px rgba(230,57,70,0); }
  100% { box-shadow: 0 0 0 0 rgba(230,57,70,0); }
}

@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; }
}

/* ================= GALLERY (rotator) ================= */
.gallery { max-width: var(--max); margin: 0 auto; }
.gallery-rotator {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 190px;
  grid-auto-flow: dense;
  gap: 14px;
  margin-top: var(--s-3);
  perspective: 1400px;
}
/* a few tiles span 2 cols/rows for editorial rhythm — 26 tiles ≈ 5 rows */
.gallery-rotator .tile:nth-child(1)  { grid-column: span 2; grid-row: span 2; }
.gallery-rotator .tile:nth-child(8)  { grid-column: span 2; }
.gallery-rotator .tile:nth-child(13) { grid-row: span 2; }
.gallery-rotator .tile:nth-child(19) { grid-column: span 2; }

@media (max-width: 1100px) {
  .gallery-rotator { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 170px; }
  .gallery-rotator .tile:nth-child(1)  { grid-column: span 2; grid-row: span 2; }
  .gallery-rotator .tile:nth-child(8)  { grid-column: span 2; }
  .gallery-rotator .tile:nth-child(13) { grid-row: auto; }
  .gallery-rotator .tile:nth-child(19) { grid-column: span 2; }
}
@media (max-width: 640px) {
  .gallery-rotator { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; gap: 10px; }
  .gallery-rotator .tile:nth-child(1)  { grid-column: span 2; grid-row: span 2; }
  .gallery-rotator .tile:nth-child(8),
  .gallery-rotator .tile:nth-child(19) { grid-column: span 2; }
}

.tile {
  position: relative;
  display: block;
  overflow: hidden;
  background: #0a0d13;
  border: 1px solid rgba(201,204,209,.1);
  box-shadow: 0 6px 20px rgba(0,0,0,.4);
  transform-style: preserve-3d;
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}

/* two stacked image layers — one visible, one becoming visible */
.tile-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(.45) contrast(1.18) saturate(.82) brightness(.88);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transition: filter .5s ease, transform .7s ease;
}
.tile-img.is-front { z-index: 2; }
.tile-img.is-back  { z-index: 1; }

/* rotation FX — flip on the y-axis with a comic-book swap */
.tile.is-rotating .tile-img.is-front {
  animation: tileFlipOut 1.4s cubic-bezier(.6,.05,.2,1) forwards;
}
.tile.is-rotating .tile-img.is-back {
  animation: tileFlipIn 1.4s cubic-bezier(.6,.05,.2,1) forwards;
}
@keyframes tileFlipOut {
  0%   { transform: rotateY(0deg)   scale(1);    filter: grayscale(.45) contrast(1.18) saturate(.82) brightness(.88); }
  45%  { transform: rotateY(-90deg) scale(.94);  filter: grayscale(.9)  contrast(1.6)  saturate(.4)  brightness(.5); }
  46%  { opacity: 0; }
  100% { transform: rotateY(-90deg) scale(.94);  opacity: 0; }
}
@keyframes tileFlipIn {
  0%   { transform: rotateY(90deg)  scale(.94); opacity: 0; filter: grayscale(.9) contrast(1.6) saturate(.4) brightness(.5); }
  45%  { opacity: 0; }
  46%  { opacity: 1; }
  100% { transform: rotateY(0deg)   scale(1);   opacity: 1; filter: grayscale(.45) contrast(1.18) saturate(.82) brightness(.88); }
}

/* halftone dot overlay */
.tile::after {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(0,0,0,.35) 1px, transparent 1.2px);
  background-size: 3px 3px;
  mix-blend-mode: multiply;
  opacity: .55;
  transition: opacity .4s ease;
  pointer-events: none;
  z-index: 3;
}

/* red bottom accent bar */
.tile::before {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 3px; background: var(--c-red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s ease;
  z-index: 4;
}

/* "swap" flash — a quick red sweep when an image rotates in */
.tile-flash {
  position: absolute; inset: 0;
  pointer-events: none;
  z-index: 5;
  opacity: 0;
  background:
    linear-gradient(110deg,
      transparent 30%,
      rgba(230,57,70,.55) 45%,
      rgba(245,241,232,.85) 50%,
      rgba(230,57,70,.55) 55%,
      transparent 70%);
  mix-blend-mode: screen;
}
.tile.is-rotating .tile-flash {
  animation: flashSweep 1.4s ease-out forwards;
}
@keyframes flashSweep {
  0%   { opacity: 0; transform: translateX(-30%) skewX(-12deg); }
  40%  { opacity: 1; }
  100% { opacity: 0; transform: translateX(60%)  skewX(-12deg); }
}

/* frame number badge */
.tile-num {
  position: absolute;
  bottom: 8px; left: 8px;
  z-index: 6;
  font-family: var(--f-head);
  font-size: 10px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--c-white);
  background: rgba(11,14,20,.75);
  border: 1px solid rgba(245,241,232,.25);
  padding: 3px 7px;
  transform: skewX(-8deg);
  opacity: 0;
  transition: opacity .25s ease;
}
.tile:hover .tile-num,
.tile:focus-visible .tile-num { opacity: 1; }

.tile:hover {
  transform: translateY(-3px);
  border-color: rgba(230,57,70,.6);
  box-shadow: 0 12px 30px rgba(0,0,0,.6), 0 0 0 1px rgba(230,57,70,.3);
}
.tile:hover .tile-img.is-front {
  filter: none;
  transform: scale(1.04);
}
.tile:hover::after { opacity: .08; }
.tile:hover::before { transform: scaleX(1); }
.tile:focus-visible { outline: 3px solid var(--c-red); outline-offset: 2px; }

/* ================= BLOG ================= */
.blog { max-width: var(--max); margin: 0 auto; }
.blog-grid {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  margin-top: var(--s-3);
}
.post {
  background:
    linear-gradient(180deg, rgba(15,26,51,.65), rgba(11,14,20,.9));
  border: 1px solid rgba(201,204,209,.14);
  padding: 26px 24px 28px;
  position: relative;
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.post::before {
  content: "";
  position: absolute; top: 0; left: 0; width: 36px; height: 36px;
  background: var(--c-red);
  clip-path: polygon(0 0, 100% 0, 0 100%);
}
.post:hover {
  transform: translateY(-3px);
  border-color: rgba(230,57,70,.5);
  box-shadow: 0 18px 40px rgba(0,0,0,.5);
}
.post-meta {
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--f-head);
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--c-steel);
  margin-bottom: 14px;
}
.tag {
  display: inline-block;
  padding: 4px 10px;
  color: var(--c-white);
  transform: skewX(-8deg);
  letter-spacing: .2em;
}
.tag-red    { background: var(--c-red); }
.tag-blue   { background: var(--c-navy-2); }
.tag-silver { background: #3a3f4a; border: 1px solid var(--c-silver); color: var(--c-silver); }
.post h3 {
  font-family: var(--f-head);
  font-size: 22px;
  line-height: 1.15;
  color: var(--c-white);
  margin: 0 0 10px;
  letter-spacing: .02em;
}
.post p {
  font-size: 15px;
  color: var(--c-bone);
  margin: 0 0 16px;
}
.read-more {
  display: inline-block;
  padding: 0;
  font-family: var(--f-head);
  font-size: 12px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--c-red);
  background: none;
  border: 0;
  border-bottom: 1px solid transparent;
  cursor: pointer;
  transition: border-color .2s, color .2s;
}
.read-more:hover { border-color: var(--c-red); color: var(--c-white); }
.post-body { display: none; }

/* ================= POST READER (modal) ================= */
.reader {
  position: fixed; inset: 0; z-index: 110;
  background: rgba(5,7,12,.94);
  display: grid; place-items: center;
  padding: clamp(20px, 4vw, 60px);
  overflow-y: auto;
}
.reader[hidden] { display: none; }
.reader::before {
  /* subtle scanline texture so the modal feels in-theme */
  content: "";
  position: fixed; inset: 0;
  background: repeating-linear-gradient(0deg, rgba(255,255,255,.025) 0 1px, transparent 1px 3px);
  pointer-events: none;
}
.reader-frame {
  position: relative;
  width: min(760px, 100%);
  max-height: calc(100vh - 80px);
  overflow-y: auto;
  background:
    linear-gradient(180deg, rgba(15,26,51,.85), rgba(11,14,20,.96)),
    repeating-linear-gradient(90deg, rgba(255,255,255,.02) 0 2px, transparent 2px 4px);
  border: 1px solid rgba(245,241,232,.25);
  box-shadow: 0 30px 90px rgba(0,0,0,.7), 8px 8px 0 rgba(230,57,70,.4);
  padding: clamp(28px, 4vw, 48px);
}
.reader-frame::before {
  /* red corner triangle, matches the post cards */
  content: "";
  position: absolute; top: 0; left: 0;
  width: 44px; height: 44px;
  background: var(--c-red);
  clip-path: polygon(0 0, 100% 0, 0 100%);
}
.reader-head {
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--f-head);
  font-size: 11px;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--c-steel);
  padding-bottom: 14px;
  border-bottom: 1px dashed rgba(201,204,209,.22);
  margin-bottom: 22px;
}
.reader-head .tag { font-size: 11px; }
.reader-num { color: var(--c-silver); }
.reader-title {
  font-family: var(--f-head);
  font-size: clamp(26px, 4vw, 40px);
  line-height: 1.1;
  color: var(--c-white);
  margin: 0 0 22px;
  letter-spacing: .01em;
}
.reader-body p {
  font-size: 16px;
  line-height: 1.75;
  color: var(--c-bone);
  margin: 0 0 18px;
}
.reader-body p:first-child {
  font-size: 18px;
  color: var(--c-white);
  border-left: 3px solid var(--c-red);
  padding-left: 16px;
}
.reader-body em { color: var(--c-white); font-style: italic; }
.reader-foot {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px dashed rgba(201,204,209,.22);
  text-align: center;
  font-family: var(--f-head);
  font-size: 11px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--c-steel);
}
.reader-close {
  position: fixed;
  top: 22px; right: 22px;
  z-index: 2;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  font-family: var(--f-display);
  font-size: 28px; line-height: 1;
  color: var(--c-white);
  background: rgba(11,14,20,.7);
  border: 1px solid rgba(245,241,232,.3);
  cursor: pointer;
  transition: background .2s, border-color .2s;
}
.reader-close:hover { background: var(--c-red); border-color: var(--c-white); }
.reader-frame:focus-visible { outline: none; }
@media (max-width: 560px) {
  .reader-close { top: 14px; right: 14px; }
}

/* ================= FOOTER ================= */
.footer {
  border-top: 1px solid rgba(201,204,209,.1);
  background: #070a0f;
  padding: var(--s-5) clamp(18px, 5vw, 60px);
  margin-top: var(--s-5);
  position: relative;
}
.footer::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--c-red) 0 20%, var(--c-navy-2) 20% 55%, var(--c-silver) 55% 60%, var(--c-red) 60% 100%);
}
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px 30px;
  align-items: center;
}
.footer-brand {
  display: flex; align-items: center; gap: 14px;
  font-family: var(--f-head);
  color: var(--c-white);
}
.footer-brand > div { display: flex; flex-direction: column; line-height: 1.2; }
.footer-brand strong {
  font-family: var(--f-display);
  font-size: 26px;
  letter-spacing: .12em;
}
.footer-tag {
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--c-steel);
}
.footer-links {
  display: flex; gap: 16px; flex-wrap: wrap;
}
.footer-links a {
  font-family: var(--f-head);
  font-size: 12px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--c-silver);
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  transition: border-color .2s, color .2s;
}
.footer-links a:hover { color: var(--c-white); border-color: var(--c-red); }
.copyright {
  grid-column: 1 / -1;
  font-size: 12px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--c-steel);
  margin: 10px 0 0;
}
@media (max-width: 640px) {
  .footer-inner { grid-template-columns: 1fr; text-align: left; }
}

/* ================= LIGHTBOX ================= */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(5,7,12,.94);
  display: grid; place-items: center;
  padding: 40px;
}
.lightbox[hidden] { display: none; }
.lb-frame {
  position: relative;
  max-width: min(1200px, 94vw);
  max-height: 88vh;
  margin: 0;
  border: 1px solid rgba(245,241,232,.25);
  box-shadow: 0 20px 80px rgba(0,0,0,.7), 6px 6px 0 rgba(230,57,70,.4);
  background: #0a0d13;
}
.lb-frame img {
  max-width: min(1200px, 94vw);
  max-height: 82vh;
  object-fit: contain;
  display: block;
}
.lb-frame figcaption {
  font-family: var(--f-head);
  font-size: 12px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--c-silver);
  padding: 12px 16px;
  background: #0b0e14;
  border-top: 1px solid rgba(201,204,209,.12);
}
.lb-close, .lb-prev, .lb-next {
  position: absolute;
  color: var(--c-white);
  font-family: var(--f-display);
  line-height: 1;
  display: grid; place-items: center;
  background: rgba(11,14,20,.7);
  border: 1px solid rgba(245,241,232,.3);
  transition: background .2s, transform .2s, border-color .2s;
}
.lb-close { top: 22px; right: 22px; width: 44px; height: 44px; font-size: 28px; }
.lb-prev, .lb-next { top: 50%; transform: translateY(-50%); width: 54px; height: 54px; font-size: 36px; }
.lb-prev { left: 22px; }
.lb-next { right: 22px; }
.lb-close:hover, .lb-prev:hover, .lb-next:hover {
  background: var(--c-red); border-color: var(--c-white);
}
.lb-prev:hover, .lb-next:hover { transform: translateY(-50%) scale(1.05); }

/* ================= REDUCED MOTION ================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .js-intro .hero-kicker,
  .js-intro .hero-title,
  .js-intro .hero-sub,
  .js-intro .socials { opacity: 1; transform: none; }
  .js-intro .hero-photo { transform: scale(1.08); }
  .pulse { animation: none; }
}
