/*
Theme Name: Arsalan Lutfi
Theme URI: https://arsalanlutfi.com
Author: Arsalan Lutfi
Author URI: https://arsalanlutfi.com
Description: A bold, maximal, editorial, cinematic portfolio theme for creative directors and brand strategists. Custom WordPress port of the Arsalan Lutfi static site.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 8.0
Tested up to: 6.7
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: arsalan-lutfi
Tags: portfolio, custom-menu, translation-ready
*/

/* ==========================================================================
   ARSALAN LUTFI — CREATIVE DIRECTOR
   Design system: bold, maximal, editorial, cinematic.
   Ported verbatim from the static site's assets/style.css.
   Google Fonts @import removed — fonts are self-hosted via assets/css/fonts.css
   (enqueued as the al-fonts handle, a dependency of this stylesheet).
   ========================================================================== */

:root{
  --ink:#0a0a08;
  --ink-2:#141310;
  --paper:#f4ede0;
  --paper-dim:#cfc6b4;
  --gold:#c9a24b;
  --gold-bright:#e9c976;
  --line: rgba(244,237,224,0.14);
  --line-strong: rgba(244,237,224,0.28);
  --max-w: 1400px;
  --pad: clamp(1.25rem, 4vw, 4rem);
  --ease: cubic-bezier(.16,.84,.44,1);
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }

body{
  margin:0;
  background: var(--ink);
  color: var(--paper);
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Custom cursor only once JS has confirmed it can run the animation loop
   (see html.js below) — otherwise a real cursor must stay visible. */
html.js body{ cursor: none; }

@media (hover:none), (pointer:coarse){
  body{ cursor: auto; }
}

/* height:auto is the required companion to the width/height attributes the
   theme emits for CLS: without it the HTML height attribute wins over the
   fluid width and every image renders stretched. */
img{ max-width:100%; display:block; height:auto; }
a{ color: inherit; text-decoration: none; }
ul{ list-style:none; margin:0; padding:0; }
button{ font-family:inherit; }

/* ---------- grain overlay ---------- */
.grain{
  position: fixed; inset:0; z-index: 9999; pointer-events:none;
  opacity: .05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- custom cursor ---------- */
.cursor-dot, .cursor-ring{
  position: fixed; top:0; left:0; pointer-events:none; z-index: 10000;
  border-radius: 50%; transform: translate(-50%,-50%);
  transition: opacity .2s var(--ease);
}
.cursor-dot{ width:6px; height:6px; background: var(--gold-bright); }
.cursor-ring{
  width:34px; height:34px; border:1px solid var(--gold);
  transition: width .25s var(--ease), height .25s var(--ease), opacity .2s var(--ease), border-color .25s var(--ease), background-color .25s var(--ease);
}
.cursor-ring.grow{ width:70px; height:70px; background: rgba(201,162,75,.12); border-color: var(--gold-bright); }
@media (hover:none), (pointer:coarse){
  .cursor-dot, .cursor-ring{ display:none; }
}

/* ---------- layout helpers ---------- */
.wrap{ max-width: var(--max-w); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }
.eyebrow{
  font-family:'Inter',sans-serif; font-size: .72rem; letter-spacing: .32em; text-transform: uppercase;
  color: var(--gold); font-weight:600; display:flex; align-items:center; gap:.75em;
}
.eyebrow::before{ content:''; width: 28px; height:1px; background: var(--gold); display:inline-block; }

h1,h2,h3,h4{ font-family:'Fraunces', serif; font-weight: 500; line-height: 1.02; margin: 0; letter-spacing: -.01em; }
em{ font-style: italic; color: var(--gold-bright); }

.section{ padding: clamp(4rem, 9vw, 8rem) 0; position: relative; }
.section-head{ max-width: 900px; margin-bottom: clamp(2.5rem, 6vw, 5rem); }
.section-head h2{ font-size: clamp(2.4rem, 5.4vw, 4.6rem); margin-top: .6em; }
.section-head p{ font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: var(--paper-dim); margin-top: 1.4em; max-width: 640px; line-height: 1.6; }

hr.rule{ border:none; border-top: 1px solid var(--line); margin: 0; }

/* ---------- reveal animation ---------- */
.reveal{ opacity: 0; transform: translateY(36px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.in{ opacity: 1; transform: translateY(0); }
.reveal-delay-1.in{ transition-delay: .08s; }
.reveal-delay-2.in{ transition-delay: .16s; }
.reveal-delay-3.in{ transition-delay: .24s; }
.reveal-delay-4.in{ transition-delay: .32s; }

/* Without JS there is no IntersectionObserver to add `.in` — keep content
   visible instead of permanently hidden at opacity:0. */
html.no-js .reveal{ opacity: 1; transform: none; }

/* ---------- nav ---------- */
.site-nav{
  position: fixed; top:0; left:0; right:0; z-index: 1000;
  display:flex; align-items:center; justify-content: space-between;
  padding: 1.6rem var(--pad);
  transition: background-color .5s var(--ease), padding .4s var(--ease), border-color .5s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-nav.scrolled{
  background: rgba(10,10,8,.86); backdrop-filter: blur(14px);
  padding-top: 1rem; padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}
.brand{ font-family:'Fraunces', serif; font-size: 1.25rem; letter-spacing: .01em; display:flex; flex-direction:column; line-height:1.05; }
.brand span{ font-family:'Inter',sans-serif; font-size:.62rem; letter-spacing:.28em; color: var(--gold); text-transform: uppercase; margin-top:.35em; font-weight:600; }
.brand img{ max-height: 2.4rem; width: auto; }

.nav-links{ display:flex; align-items:center; gap: 2.4rem; }
.nav-links a{
  font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; font-weight:500;
  position: relative; padding: .3rem 0; color: var(--paper-dim);
  transition: color .3s var(--ease);
}
.nav-links a::after{
  content:''; position:absolute; left:0; bottom:0; width:0; height:1px; background: var(--gold-bright);
  transition: width .35s var(--ease);
}
.nav-links a:hover, .nav-links a.active{ color: var(--paper); }
.nav-links a:hover::after, .nav-links a.active::after{ width:100%; }

.nav-cta{
  border:1px solid var(--line-strong); padding: .6rem 1.3rem; border-radius: 999px;
  font-size:.78rem; letter-spacing:.06em; text-transform:uppercase; font-weight:600;
  transition: all .35s var(--ease);
}
.nav-cta:hover{ background: var(--gold); border-color: var(--gold); color: var(--ink); }

.nav-toggle{
  display:none; flex-direction:column; gap:6px; width: 30px; cursor:pointer; z-index:1100; background:none; border:none;
}
.nav-toggle span{ height:1px; width:100%; background: var(--paper); transition: all .35s var(--ease); }

@media (max-width: 900px){
  .nav-links, .nav-cta{ display:none; }
  .nav-toggle{ display:flex; }
}

/* ---------- nav flyout (replaces the static site's .mobile-menu) ---------- */
.nav-flyout{
  position: fixed; inset:0; z-index: 1050;
  visibility: hidden;
  /* Delay the visibility flip until the close transition (.55s, matches
     .nav-flyout__panel below) has finished, so the slide-out/fade-out is
     actually visible instead of being clipped instantly. Opening flips
     the delay to 0 below so it becomes visible immediately. */
  transition: visibility 0s linear .55s;
}
.nav-flyout[hidden]{ display:block; } /* allow transitions to run before actually hiding */
html.flyout-open .nav-flyout{ visibility: visible; transition-delay: 0s; }

/* html.flyout-open is also the body-scroll-lock hook (JS adds/removes it
   and compensates for the vanished scrollbar via body padding-right). */
html.flyout-open,
html.flyout-open body{ overflow: hidden; }

.nav-flyout__backdrop{
  position: absolute; inset:0;
  background: rgba(10,10,8,.72);
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity .45s var(--ease);
}
html.flyout-open .nav-flyout__backdrop{ opacity: 1; }

.nav-flyout__panel{
  position: absolute; top:0; right:0; bottom:0;
  width: 100%; max-width: 460px;
  background: var(--ink-2);
  border-left: 1px solid var(--line-strong);
  padding: 2.2rem var(--pad);
  display:flex; flex-direction:column;
  transform: translateX(100%);
  transition: transform .55s var(--ease);
  overflow-y: auto;
}
html.flyout-open .nav-flyout__panel{ transform: translateX(0); }

@media (max-width: 480px){
  .nav-flyout__panel{ max-width: 100%; }
}

.nav-flyout__brand{
  display:flex; align-items:center; justify-content:space-between; gap: 1rem;
  margin-bottom: 3rem;
}

.nav-flyout__close{
  background:none; border:1px solid var(--line-strong); border-radius:50%;
  width: 42px; height: 42px; flex: none;
  display:flex; align-items:center; justify-content:center;
  color: var(--paper); cursor:pointer;
  transition: all .3s var(--ease);
}
.nav-flyout__close:hover{ background: var(--gold); border-color: var(--gold); color: var(--ink); }

.nav-flyout__nav{ display:flex; flex-direction:column; }
.nav-flyout__nav a{
  font-family:'Fraunces',serif; font-size: clamp(1.8rem, 6vw, 2.6rem);
  padding: .5rem 0; border-bottom: 1px solid var(--line);
  transition: color .3s var(--ease);
}
.nav-flyout__nav a:hover, .nav-flyout__nav a.active{ color: var(--gold-bright); }

.nav-flyout__contact{
  margin-top: auto; padding-top: 2.5rem;
  display:flex; flex-direction:column; gap: .9rem;
}
.nav-flyout__contact a, .nav-flyout__contact p{
  color: var(--paper-dim); font-size: .92rem;
}
.nav-flyout__contact a:hover{ color: var(--gold-bright); }
.nav-flyout__contact .nav-flyout__socials{
  display:flex; flex-wrap:wrap; gap: 1rem 1.4rem; margin-top: .4rem;
}

/* Visible keyboard focus inside the panel (the site otherwise relies on
   the UA default outline, which is easy to lose against --ink-2). */
.nav-flyout a:focus-visible,
.nav-flyout__close:focus-visible{
  outline: 2px solid var(--gold-bright);
  outline-offset: 4px;
}

/* ---------- marquee ---------- */
.marquee{
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  overflow: hidden; white-space: nowrap; padding: 1.1rem 0; background: var(--ink-2);
}
.marquee-track{ display:inline-block; animation: marquee 32s linear infinite; }
.marquee span{
  font-family:'Fraunces', serif; font-style: italic; font-size: clamp(1.1rem, 2vw, 1.6rem);
  color: var(--paper-dim); padding: 0 2.2rem; display:inline-flex; align-items:center; gap: 2.2rem;
}
.marquee span::after{ content:'✦'; color: var(--gold); font-style:normal; font-size:.8rem; }
@keyframes marquee{ from{ transform: translateX(0);} to{ transform: translateX(-50%);} }

/* ---------- buttons ---------- */
.btn{
  display:inline-flex; align-items:center; gap: .8rem;
  font-size: .82rem; letter-spacing:.08em; text-transform: uppercase; font-weight:600;
  padding: 1.05rem 2rem; border-radius: 999px; border: 1px solid var(--gold);
  color: var(--paper); transition: all .4s var(--ease); position: relative; overflow:hidden;
}
.btn.solid{ background: var(--gold); color: var(--ink); }
.btn:hover{ background: var(--gold); color: var(--ink); transform: translateY(-2px); box-shadow: 0 14px 34px rgba(201,162,75,.25); }
.btn .arrow{ transition: transform .4s var(--ease); }
.btn:hover .arrow{ transform: translateX(6px); }

/* ---------- hero ---------- */
.hero{
  min-height: 100svh; display:flex; flex-direction:column; justify-content:flex-end;
  padding-top: 9rem; position: relative;
}
.hero::before{
  content:''; position:absolute; inset:0;
  background:
    radial-gradient(60% 50% at 80% 10%, rgba(201,162,75,.16), transparent 60%),
    radial-gradient(50% 40% at 10% 90%, rgba(201,162,75,.08), transparent 60%);
  pointer-events:none;
}
.hero-kicker{ font-size: clamp(1rem,2vw,1.3rem); color: var(--gold-bright); font-family:'Fraunces',serif; font-style: italic; margin-bottom: 1.4rem; }
.hero h1{
  font-size: clamp(3rem, 9.4vw, 8.4rem); max-width: 18ch;
}
.hero-foot{
  display:flex; justify-content:space-between; align-items:flex-end; gap: 2rem; flex-wrap:wrap;
  margin-top: clamp(2.5rem, 6vw, 4.5rem); padding-bottom: clamp(2.5rem, 6vw, 4rem);
  border-top: 1px solid var(--line); padding-top: 2rem;
}
.hero-foot p{ max-width: 46ch; color: var(--paper-dim); font-size: 1.05rem; line-height: 1.6; }

/* ---------- grids ---------- */
.grid{ display:grid; gap: clamp(1.5rem, 3vw, 2.5rem); }
.grid-2{ grid-template-columns: repeat(2, 1fr); }
.grid-3{ grid-template-columns: repeat(3, 1fr); }
.grid-4{ grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px){ .grid-3{ grid-template-columns: repeat(2,1fr);} .grid-4{ grid-template-columns: repeat(2,1fr);} }
@media (max-width: 620px){ .grid-2, .grid-3, .grid-4{ grid-template-columns: 1fr; } }

/* ---------- service / capability cards ---------- */
.card{
  border-top: 1px solid var(--line-strong); padding-top: 1.8rem; position: relative;
  transition: transform .5s var(--ease);
}
.card .num{ font-family:'Fraunces',serif; font-style: italic; color: var(--gold); font-size: 1rem; }
.card h3{ font-size: clamp(1.5rem, 2.4vw, 2rem); margin: 1rem 0 .9rem; }
.card p{ color: var(--paper-dim); line-height: 1.65; font-size: .98rem; }
.card:hover{ transform: translateY(-6px); }

/* ---------- footer ---------- */
.site-footer{ border-top: 1px solid var(--line); padding: clamp(3.5rem, 7vw, 6rem) 0 2.5rem; }
.footer-cta h2{ font-size: clamp(2.2rem, 6vw, 5rem); max-width: 16ch; }
.footer-grid{
  display:flex; justify-content:space-between; gap: 2rem; flex-wrap:wrap;
  margin-top: 4rem; padding-top: 2.5rem; border-top: 1px solid var(--line);
}
.footer-col h4{ font-size:.72rem; letter-spacing:.24em; text-transform:uppercase; color: var(--gold); margin-bottom: 1.1rem; font-family:'Inter',sans-serif; font-weight:600; }
.footer-col a, .footer-col p{ display:block; color: var(--paper-dim); font-size: .92rem; margin-bottom: .6rem; transition: color .3s; }
.footer-col a:hover{ color: var(--gold-bright); }
.footer-bottom{ display:flex; justify-content:space-between; flex-wrap:wrap; gap:1rem; margin-top: 3.5rem; font-size:.78rem; color: var(--paper-dim); }

/* ---------- page hero (interior pages) ---------- */
.page-hero{ padding: clamp(8.5rem, 16vw, 12rem) 0 clamp(3rem, 6vw, 5rem); }
.page-hero h1{ font-size: clamp(2.6rem, 7vw, 5.6rem); max-width: 20ch; }
.page-hero p.lede{ font-size: clamp(1.1rem, 1.8vw, 1.4rem); color: var(--paper-dim); max-width: 640px; margin-top: 1.6rem; line-height: 1.6; }

/* ---------- work / case studies ---------- */
.case{
  position: relative; overflow:hidden; border-radius: 4px; aspect-ratio: 4/5; display:flex; align-items:flex-end;
  isolation: isolate;
}
.case img{ position:absolute; inset:0; width:100%; height:100%; object-fit: cover; transition: transform .8s var(--ease), filter .8s var(--ease); z-index:-2; filter: grayscale(35%) brightness(.75); }
.case::after{ content:''; position:absolute; inset:0; background: linear-gradient(to top, rgba(0,0,0,.85), rgba(0,0,0,.05) 55%); z-index:-1; }
.case:hover img{ transform: scale(1.07); filter: grayscale(0%) brightness(.85); }
.case-content{ padding: 1.8rem; width:100%; }
.case-content .eyebrow{ color: var(--gold-bright); margin-bottom:.6rem; }
.case-content h3{ font-size: clamp(1.3rem, 2vw, 1.7rem); color: var(--paper); }
.case.tall{ grid-row: span 2; }

.industry-list{ display:flex; flex-wrap:wrap; gap: .8rem 1rem; margin-top: 2rem; }
.industry-list li{
  border:1px solid var(--line-strong); padding: .55rem 1.3rem; border-radius:999px; font-size:.85rem; color: var(--paper-dim);
  transition: all .3s var(--ease);
}
.industry-list li:hover{ border-color: var(--gold); color: var(--gold-bright); }

/* ---------- gallery ---------- */
.gallery-grid{ column-count: 3; column-gap: 1.4rem; }
.gallery-grid figure{ margin: 0 0 1.4rem; break-inside: avoid; border-radius: 3px; overflow:hidden; position:relative; }
.gallery-grid img{ width:100%; display:block; transition: transform .7s var(--ease), filter .7s var(--ease); filter: grayscale(20%); }
.gallery-grid figure:hover img{ transform: scale(1.045); filter: grayscale(0%); }
@media (max-width: 900px){ .gallery-grid{ column-count: 2; } }
@media (max-width: 560px){ .gallery-grid{ column-count: 1; } }

/* ---------- journal ---------- */
.journal-list{ display:flex; flex-direction:column; }
.journal-item{
  display:grid; grid-template-columns: 120px 1fr auto; align-items:center; gap: 2rem;
  padding: 2.2rem 0; border-top: 1px solid var(--line); transition: padding-left .4s var(--ease);
}
.journal-item:last-child{ border-bottom: 1px solid var(--line); }
.journal-item:hover{ padding-left: 1rem; }
.journal-item .tag{ font-size:.72rem; letter-spacing:.18em; text-transform:uppercase; color: var(--gold); }
.journal-item h3{ font-size: clamp(1.3rem, 2.4vw, 1.9rem); font-weight:500; }
.journal-item .go{ font-size:1.4rem; color: var(--gold); transition: transform .4s var(--ease); }
.journal-item:hover .go{ transform: translateX(6px); }
@media (max-width: 700px){ .journal-item{ grid-template-columns: 1fr; gap:.6rem; } }

/* ---------- press ---------- */
.press-item{
  display:flex; justify-content:space-between; gap:2rem; padding: 1.6rem 0; border-top: 1px solid var(--line);
  align-items: baseline; flex-wrap:wrap;
}
.press-item:last-child{ border-bottom: 1px solid var(--line); }
.press-item .yr{ font-family:'Fraunces',serif; font-style:italic; color: var(--gold); min-width: 70px; }
.press-item .what{ flex:1; min-width: 240px; font-size: 1.1rem; }
.press-item .org{ color: var(--paper-dim); font-size: .88rem; text-transform: uppercase; letter-spacing:.08em; }

.stat-row{ display:flex; flex-wrap:wrap; gap: clamp(2rem,6vw,5rem); margin-top: 1rem; }
.stat h3{ font-size: clamp(2.6rem, 5vw, 4rem); color: var(--gold-bright); }
.stat p{ color: var(--paper-dim); font-size:.85rem; letter-spacing:.06em; text-transform:uppercase; margin-top:.5rem; }

/* ---------- contact ---------- */
.contact-grid{ display:grid; grid-template-columns: 1.1fr .9fr; gap: clamp(3rem,6vw,6rem); align-items:start; }
@media (max-width: 900px){ .contact-grid{ grid-template-columns: 1fr; } }
.big-link{
  font-family:'Fraunces',serif; font-size: clamp(1.8rem, 4vw, 3.2rem); display:inline-block; border-bottom: 1px solid var(--line-strong);
  padding-bottom: .1em; transition: color .3s, border-color .3s;
}
.big-link:hover{ color: var(--gold-bright); border-color: var(--gold-bright); }

.field{ margin-bottom: 1.6rem; }
.field label{ display:block; font-size:.72rem; letter-spacing:.18em; text-transform:uppercase; color: var(--gold); margin-bottom:.6rem; }
.field input, .field textarea, .field select{
  width:100%; background: transparent; border:none; border-bottom: 1px solid var(--line-strong);
  color: var(--paper); font-family:'Inter',sans-serif; font-size: 1.05rem; padding: .7rem 0; outline:none;
  transition: border-color .3s;
}
.field input:focus, .field textarea:focus, .field select:focus{ border-color: var(--gold); }
.field select option{ background: var(--ink); }
.field textarea{ resize: vertical; min-height: 100px; }

.contact-list{ margin-top: 2.4rem; display:flex; flex-direction:column; gap: 1.1rem; }
.contact-list li{ display:flex; justify-content:space-between; border-top:1px solid var(--line); padding-top:1.1rem; font-size:.95rem; color: var(--paper-dim); }
.contact-list li span:last-child{ color: var(--paper); }

/* ---------- image placeholder (al_placeholder()) ---------- */
.al-placeholder{
  --al-placeholder-ratio: 4/5;
  position: relative;
  width: 100%;
  aspect-ratio: var(--al-placeholder-ratio);
  border-radius: 4px;
  background:
    radial-gradient(120% 140% at 15% 0%, rgba(233,201,118,.28), transparent 60%),
    linear-gradient(150deg, var(--ink-2) 0%, var(--ink) 55%, var(--gold) 145%);
}
.al-placeholder--fill{
  position: absolute; inset: 0; width: 100%; height: 100%;
  aspect-ratio: auto; border-radius: 0; z-index: -2;
}

/* ---------- misc ---------- */
.tag-row{ display:flex; flex-wrap:wrap; gap: .8rem; margin-top: 1.6rem; }
.tag-row span{ border:1px solid var(--line-strong); border-radius:999px; padding:.5rem 1.1rem; font-size:.82rem; color: var(--paper-dim); }

.two-col{ display:grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem,5vw,5rem); }
@media (max-width: 900px){ .two-col{ grid-template-columns: 1fr; } }

.pull-quote{
  font-family:'Fraunces',serif; font-style: italic; font-size: clamp(1.5rem, 3vw, 2.4rem);
  line-height: 1.35; color: var(--paper); border-left: 2px solid var(--gold); padding-left: 1.6rem; margin: 0;
}

.philosophy{ color: var(--paper-dim); font-size: 1.1rem; line-height: 1.75; }
.philosophy p{ margin: 0 0 1.4rem; }
.philosophy strong{ color: var(--paper); font-weight:500; }

/* ==========================================================================
   WordPress core & accessibility classes
   ========================================================================== */

.screen-reader-text{
  border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
  height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute !important;
  width: 1px; word-wrap: normal !important;
}
.screen-reader-text:focus{
  background-color: var(--paper); border-radius: 3px; box-shadow: 0 0 2px 2px rgba(0,0,0,.6);
  clip: auto !important; clip-path: none; color: var(--ink); display: block;
  font-size: .875rem; font-weight: 700; height: auto; left: 5px; line-height: normal;
  padding: 1rem 1.4rem; text-decoration: none; top: 5px; width: auto; z-index: 100000;
}

.skip-link{
  left: 0; top: -100px; position: fixed; z-index: 100000;
  transition: top .2s var(--ease);
}
.skip-link:focus{ top: 0; }

.alignleft{ float: left; margin: .4rem 1.6rem 1.2rem 0; }
.alignright{ float: right; margin: .4rem 0 1.2rem 1.6rem; }
.aligncenter{ display: block; margin-left: auto; margin-right: auto; }

.wp-caption{ max-width: 100%; }
.wp-caption img{ display: block; margin: 0 auto; }
.wp-caption-text, .gallery-caption{
  font-size: .82rem; color: var(--paper-dim); text-align: center; padding: .6rem 0 0;
}

.sticky{ position: relative; }
.sticky::before{
  content: '\2605'; color: var(--gold); margin-right: .5em;
}

/* Pagination. NOTE: WordPress wraps paginated links in `.nav-links`, which
   collides with the header's own `.nav-links`. Scoping to `.navigation`/
   `.pagination` is required — an unscoped `.nav-links` here sits AFTER the
   max-width:900px rule that hides the header nav, so it would override it and
   leave the desktop menu visible on mobile. */
.pagination, .post-pagination, .navigation .nav-links{
  display: flex; align-items: center; justify-content: center; gap: 1rem;
  margin-top: clamp(2.5rem, 6vw, 4rem); flex-wrap: wrap;
}
.pagination .page-numbers, .post-pagination a, .post-pagination span{
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 2.6rem; height: 2.6rem; padding: 0 .9rem;
  border: 1px solid var(--line-strong); border-radius: 999px;
  color: var(--paper-dim); font-size: .82rem; letter-spacing: .04em;
  transition: all .3s var(--ease);
}
.pagination .page-numbers.current,
.pagination .page-numbers:hover,
.post-pagination a:hover{
  border-color: var(--gold); color: var(--gold-bright);
}
.pagination .page-numbers.dots{ border: none; }

/* ==========================================================================
   Print
   ========================================================================== */
@media print{
  .site-nav, .nav-flyout, .grain, .cursor-dot, .cursor-ring,
  .footer-cta, .marquee, .skip-link{
    display: none !important;
  }
  html.js body{ cursor: auto; }
  body{
    background: #fff !important; color: #000 !important;
  }
  a, h1, h2, h3, h4, p, span, li{ color: #000 !important; }
  .btn, .nav-cta{ border-color: #000 !important; }
  em{ color: #000 !important; }
}

/* ==========================================================================
   Motion & no-JS guards
   ========================================================================== */
@media (prefers-reduced-motion: reduce){
  .reveal{ opacity: 1; transform: none; transition: none; }
  .marquee-track{ animation: none; }
  html{ scroll-behavior: auto; }
  /* Flyout must open/close instantly with no slide/fade animation. */
  .nav-flyout,
  .nav-flyout__backdrop,
  .nav-flyout__panel{ transition: none !important; }
}
