/* ==========================================================================
   Ahmad Elrefaey — reffaey.com
   Design system
   ========================================================================== */

:root {
  /* Palette — warm off-white, near-black ink, one restrained accent */
  --bg:        #FBFAF8;
  --bg-alt:    #F3F1EC;
  --ink:       #14110F;
  --ink-soft:  #3A3531;
  --muted:     #726B64;
  --line:      #E2DDD5;
  --line-soft: #EDE9E2;
  --accent:    #A93D24;
  --accent-dim:#C9694F;

  /* Type */
  --display: "Instrument Serif", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  /* Rhythm */
  --gutter: clamp(1.25rem, 4vw, 3.5rem);
  /* Section rhythm tightened — the old top end left 400–600px dead runs
     between sections on wide screens. Whitespace should frame something. */
  --section: clamp(3.5rem, 6vw, 6rem);
  --maxw: 1240px;
  /* ~680px at base size: 45–75 characters, the comfortable reading range. */
  --measure: 62ch;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }

/* ---------- Layout ---------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wrap--narrow { max-width: 860px; }
.section { padding-block: var(--section); }
.section--tight { padding-block: clamp(2.25rem, 4vw, 3.5rem); }
.rule { height: 1px; background: var(--line); border: 0; margin: 0; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.06;
  margin: 0;
}
.display {
  font-size: clamp(2.6rem, 6.4vw, 5.4rem);
  line-height: 1.0;
  letter-spacing: -0.025em;
}
.h2 { font-size: clamp(1.9rem, 3.8vw, 3.1rem); }
.h3 { font-size: clamp(1.4rem, 2.2vw, 1.95rem); line-height: 1.15; }

.eyebrow {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 1.35rem;
}
.lead {
  font-size: clamp(1.15rem, 1.8vw, 1.4rem);
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 56ch;
}
.prose { max-width: min(var(--measure), 680px); }
.prose p { margin: 0 0 1.35em; color: var(--ink-soft); }
.prose p:last-child { margin-bottom: 0; }
.prose strong { font-weight: 600; color: var(--ink); }
.prose em { font-style: italic; }
.dim { color: var(--muted); }

/* ---------- Links ---------- */
.link {
  color: var(--ink);
  text-decoration: none;
  background-image: linear-gradient(var(--accent), var(--accent));
  background-size: 100% 1px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  padding-bottom: 2px;
  transition: color 0.25s var(--ease), background-size 0.3s var(--ease);
}
.link:hover { color: var(--accent); }

.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  transition: color 0.25s var(--ease);
}
.arrow-link svg { transition: transform 0.3s var(--ease); flex: none; }
.arrow-link:hover { color: var(--accent); }
.arrow-link:hover svg { transform: translateX(5px); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.95em 1.7em;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  background: transparent;
  cursor: pointer;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.btn:hover { background: var(--ink); color: var(--bg); }
.btn--solid { background: var(--ink); color: var(--bg); }
.btn--solid:hover { background: var(--accent); border-color: var(--accent); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-top: 2.5rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 68px;
}
.wordmark {
  font-family: var(--display);
  font-size: 1.3rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
}
.wordmark span { color: var(--muted); }
.nav { display: flex; align-items: center; gap: clamp(1.1rem, 2.6vw, 2.2rem); }
.nav a {
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--muted);
  padding-block: 0.35rem;
  position: relative;
  transition: color 0.25s var(--ease);
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 1px;
  background: var(--accent);
}
@media (max-width: 560px) {
  .nav { gap: 1rem; }
  .nav a { font-size: 0.7rem; letter-spacing: 0.08em; }
  .wordmark { font-size: 1.1rem; }
  .wordmark span { display: none; }
}

/* ---------- Hero ---------- */
.hero { padding-block: clamp(4rem, 11vw, 9rem) clamp(3rem, 6vw, 5rem); }
.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.1rem;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.8rem;
}
.hero__meta span { display: inline-flex; align-items: center; gap: 1.1rem; }
.hero__meta span::after {
  content: "";
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--line);
}
.hero__meta span:last-child::after { display: none; }
.hero .lead { margin-top: 1.9rem; }

/* ---------- Paper texture ----------
   REMOVED. Stretching a 1344px image to `cover` across a full viewport blew its
   tonal blotches up to the size of clouds — on the live site it read as a brown
   stain down the right-hand side, not as paper stock. The page is now flat warm
   off-white.

   If you want the paper feel back, the fix is a small seamless tile, not a
   stretched photo:
     body { background-image: url("assets/img/grain.png");
            background-size: 220px; background-repeat: repeat; }
   Ask and I'll make one that tiles cleanly. */

/* ---------- Holding note ---------- */
.note {
  border-left: 2px solid var(--accent);
  padding: 0.15rem 0 0.15rem 1.15rem;
  color: var(--muted);
  font-size: 0.95rem;
}

/* ---------- Numbers strip ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1px;
  background: var(--line);
  border-block: 1px solid var(--line);
}
.stat { background: var(--bg); padding: clamp(1.6rem, 3vw, 2.4rem) clamp(1rem, 2vw, 1.5rem); }
.stat__num {
  font-family: var(--display);
  font-size: clamp(1.9rem, 3.4vw, 2.9rem);
  line-height: 1;
  letter-spacing: -0.02em;
  display: block;
}
.stat__label {
  display: block;
  margin-top: 0.7rem;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.5;
}

/* ---------- Section heading ---------- */
.sec-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  margin-bottom: clamp(2.2rem, 4vw, 3.4rem);
}
.sec-head__title { display: flex; align-items: baseline; gap: 1rem; }
.sec-head__num {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--muted);
}

/* ---------- Video ---------- */
.video {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #0E0C0B;
  overflow: hidden;
  border-radius: 3px;
}
.video video, .video img.video__poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.video iframe { width: 100%; height: 100%; border: 0; display: block; }
.video img.video__poster { transition: transform 0.7s var(--ease), opacity 0.4s var(--ease); }
.video__btn {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0;
}
.video__btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.35), rgba(0,0,0,0.05) 55%);
  opacity: 0.9;
  transition: opacity 0.4s var(--ease);
}
.video__play {
  position: relative;
  width: 62px; height: 62px;
  border-radius: 50%;
  background: rgba(251,250,248,0.94);
  display: grid;
  place-items: center;
  transition: transform 0.35s var(--ease), background 0.3s var(--ease);
}
.video__play svg { margin-left: 3px; }
.video__btn:hover .video__play { transform: scale(1.09); background: #fff; }
.video:hover img.video__poster { transform: scale(1.03); }
.video.is-playing .video__btn { display: none; }
.video__label {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 1.1rem 1.25rem;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  pointer-events: none;
  z-index: 2;
  transition: opacity 0.3s var(--ease);
}
.video.is-playing .video__label { opacity: 0; }

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: clamp(1.1rem, 2.2vw, 1.9rem);
}

/* Placeholder tile for a film that isn't in hand yet */
.video-slot {
  aspect-ratio: 16 / 9;
  border: 1px dashed var(--line);
  border-radius: 3px;
  background: var(--bg-alt);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  text-align: center;
  padding: 1.5rem;
}
.video-slot__label {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  max-width: 28ch;
  line-height: 1.6;
}
.video-slot__note {
  font-family: var(--display);
  font-size: 1.15rem;
  color: var(--muted);
}
.video-grid--pair { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }

.figure figcaption {
  margin-top: 0.85rem;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--muted);
}

/* ---------- Work cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr));
  gap: clamp(1.8rem, 3.5vw, 3rem);
}
.card { text-decoration: none; display: block; color: inherit; }
.card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--bg-alt);
  border-radius: 3px;
}
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.card:hover .card__media img { transform: scale(1.04); }
.card__body { padding-top: 1.3rem; }
.card__meta {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.6rem;
}
.card__title {
  font-family: var(--display);
  font-size: clamp(1.5rem, 2.4vw, 2.1rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
  transition: color 0.25s var(--ease);
}
.card:hover .card__title { color: var(--accent); }
.card__desc { margin: 0.7rem 0 0; color: var(--muted); font-size: 0.95rem; line-height: 1.65; max-width: 46ch; }

/* ---------- Pillars ---------- */
.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.pillar { background: var(--bg); padding: clamp(1.8rem, 3vw, 2.6rem); }
.pillar h3 { font-size: 1.45rem; margin-bottom: 0.9rem; }
.pillar p { margin: 0; color: var(--muted); font-size: 0.95rem; line-height: 1.7; }
.pillar__idx {
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  color: var(--accent);
  display: block;
  margin-bottom: 1.4rem;
}

/* ---------- Brands ---------- */
.brands { display: grid; gap: 2.2rem; }
.brand-group { display: grid; grid-template-columns: minmax(0, 190px) 1fr; gap: 1rem 2.5rem; align-items: start; }
.brand-group h3 {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 0.35rem;
}
.brand-group ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem 1.4rem; }
.brand-group li { font-size: 0.98rem; color: var(--ink-soft); }
@media (max-width: 680px) {
  .brand-group { grid-template-columns: 1fr; gap: 0.7rem; }
}

/* ---------- Timeline / CV ---------- */
.cv { display: grid; gap: 0; }
.cv__row {
  display: grid;
  grid-template-columns: minmax(0, 210px) 1fr;
  gap: 0.6rem 2.5rem;
  padding-block: clamp(1.5rem, 2.6vw, 2.1rem);
  border-top: 1px solid var(--line-soft);
}
.cv__row:last-child { border-bottom: 1px solid var(--line-soft); }
.cv__when {
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 0.4rem;
}
.cv__role { font-family: var(--display); font-size: 1.4rem; line-height: 1.2; margin-bottom: 0.15rem; }
.cv__org { font-size: 0.82rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); margin-bottom: 0.75rem; }
.cv__desc { margin: 0; color: var(--muted); font-size: 0.96rem; line-height: 1.7; max-width: 60ch; }
@media (max-width: 680px) {
  .cv__row { grid-template-columns: 1fr; }
  .cv__when { padding-top: 0; }
}

/* ---------- Awards ---------- */
.awards { display: grid; gap: 0; }
.award {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 1rem 1.8rem;
  align-items: baseline;
  padding-block: 1.05rem;
  border-top: 1px solid var(--line-soft);
}
.award:last-child { border-bottom: 1px solid var(--line-soft); }
.award__year { font-family: var(--display); font-size: 1.15rem; color: var(--muted); }
.award__what { font-size: 0.98rem; line-height: 1.5; }
.award__what b { font-weight: 600; }
.award__what span { color: var(--muted); display: block; font-size: 0.87rem; margin-top: 0.15rem; }
.award__metal {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.32em 0.8em;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
  white-space: nowrap;
}
.award__metal[data-metal="Gold"] { color: #8A6A16; border-color: #DCC98D; background: #FBF5E4; }
.award__metal[data-metal="Silver"] { color: #5E6266; border-color: #CFD3D6; background: #F4F5F6; }
.award__metal[data-metal="Bronze"] { color: #8A5433; border-color: #DBBBA1; background: #FAF0E8; }
@media (max-width: 620px) {
  .award { grid-template-columns: 60px 1fr; }
  .award__metal { grid-column: 2; justify-self: start; }
}

/* ---------- Results block ---------- */
.results {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-block: clamp(2.5rem, 5vw, 3.5rem);
}
.result { background: var(--bg-alt); padding: clamp(1.5rem, 2.6vw, 2.1rem); }
.result__num { font-family: var(--display); font-size: clamp(1.8rem, 3.2vw, 2.6rem); line-height: 1; color: var(--accent); }
.result__label {
  display: block;
  margin-top: 0.6rem;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Pull quote ---------- */
.pull {
  font-family: var(--display);
  font-size: clamp(1.6rem, 3.2vw, 2.5rem);
  line-height: 1.22;
  letter-spacing: -0.015em;
  max-width: 22ch;
  margin: 0;
}
.pull--wide { max-width: 30ch; }

/* ---------- Portrait ---------- */
.portrait-row {
  display: grid;
  grid-template-columns: minmax(0, 340px) 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
.portrait { border-radius: 3px; overflow: hidden; background: var(--bg-alt); aspect-ratio: 1; }
.portrait img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 780px) {
  .portrait-row { grid-template-columns: 1fr; }
  .portrait { max-width: 260px; }
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: clamp(2rem, 4vw, 3.5rem);
}
.contact-item { }
.contact-item dt {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.7rem;
}
.contact-item dd { margin: 0; font-family: var(--display); font-size: clamp(1.25rem, 2vw, 1.6rem); line-height: 1.3; }
.contact-item dd a { text-decoration: none; border-bottom: 1px solid var(--line); transition: border-color 0.25s var(--ease), color 0.25s var(--ease); }
.contact-item dd a:hover { color: var(--accent); border-color: var(--accent); }

/* ---------- Prev / Next ---------- */
.pagenav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border-block: 1px solid var(--line);
}
.pagenav a {
  background: var(--bg);
  padding: clamp(1.6rem, 3vw, 2.4rem) clamp(1.2rem, 2.5vw, 2rem);
  text-decoration: none;
  transition: background 0.3s var(--ease);
}
.pagenav a:hover { background: var(--bg-alt); }
.pagenav a:last-child { text-align: right; }
.pagenav__dir {
  display: block;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.6rem;
}
.pagenav__title { font-family: var(--display); font-size: clamp(1.15rem, 2vw, 1.6rem); line-height: 1.2; }
.pagenav a:only-child { grid-column: span 2; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding-block: clamp(3rem, 6vw, 4.5rem) 2.5rem; }
.footer-top {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem 3rem;
  align-items: start;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.footer-cta { font-family: var(--display); font-size: clamp(1.8rem, 4vw, 3.2rem); line-height: 1.1; letter-spacing: -0.02em; max-width: 16ch; }
.footer-cta a { text-decoration: none; border-bottom: 2px solid var(--accent); transition: color 0.25s var(--ease); }
.footer-cta a:hover { color: var(--accent); }
.footer-links { display: flex; flex-direction: column; gap: 0.65rem; }
.footer-links a {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--muted);
  transition: color 0.25s var(--ease);
}
.footer-links a:hover { color: var(--ink); }
.footer-bot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line-soft);
  font-size: 0.76rem;
  color: var(--muted);
}
@media (max-width: 620px) {
  .footer-top { grid-template-columns: 1fr; }
}

/* ---------- Mid-range widths (tablet landscape → small laptop) ----------
   There was no rule between 780px and desktop, so 800–1200px inherited the
   full desktop layout. These give that band its own behaviour. */
@media (min-width: 781px) and (max-width: 1024px) {
  .portrait-row { grid-template-columns: minmax(0, 260px) 1fr; gap: 2rem; }
  .cv__row { grid-template-columns: minmax(0, 170px) 1fr; gap: 0.5rem 1.75rem; }
  .brand-group { grid-template-columns: minmax(0, 150px) 1fr; gap: 0.75rem 1.5rem; }
  .video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1025px) and (max-width: 1200px) {
  .video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- Case-page intro: give the right-hand column a job ----------
   Chapter pages ran a single narrow column of body copy down a 1920px
   viewport with nothing beside it. On wide screens the stats now sit
   alongside the prose as a rail instead of stacking underneath it. */
@media (min-width: 1100px) {
  .section--tight:has(> .prose):has(> .results) {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(250px, 330px);
    gap: clamp(2.5rem, 5vw, 4.5rem);
    align-items: start;
  }
  .section--tight:has(> .prose):has(> .results) > .results {
    grid-template-columns: 1fr;
    margin-block: 0;
  }
}

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.75s var(--ease), transform 0.75s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Accessibility ---------- */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--bg);
  padding: 0.8rem 1.2rem;
  z-index: 200;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
}
.skip:focus { left: 0; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
