/* ==========================================================================
   Ari Lee — portfolio stylesheet
   Follows the "Ari Lee" style guide: paper & ink, brick red + petrol teal,
   Anton (headlines) / Inter (labels and text), square corners. Dark mode is the default.
   ========================================================================== */

/* ---------- 1. Design tokens (colours, fonts, spacing) ---------- */
/* Dark theme = default. Change a colour here and it changes everywhere. */
:root {
  --bg: #141210;          /* page background (ink) */
  --surface: #24201C;     /* cards, panels, image placeholders */
  --input-bg: #1C1917;    /* form fields */
  --border: #3A342E;      /* hairlines */
  --border-strong: #8C8379; /* input + outline-button borders */
  --ink: #EDE6DA;         /* main text (paper) */
  --ink-muted: #A79F93;   /* secondary text */
  --on-ink: #141210;      /* text on an ink fill */
  --red: #B8291E;         /* PRIMARY accent – fills */
  --red-text: #E0533F;    /* primary accent – text/links */
  --teal: #1F5C5A;        /* SECONDARY accent – fills */
  --teal-text: #5FA8A3;   /* secondary accent – text, focus ring */
  --on-accent: #EDE6DA;   /* text on red or teal fills */

  --font-display: "Anton", "Bebas Neue", Impact, sans-serif;
  --font-sans: "Inter", system-ui, sans-serif;
  /* Labels, nav, buttons, tags: Inter semibold, uppercase, spaced out */
  --font-label: "Inter", system-ui, sans-serif;

  --space-1: 4px;  --space-2: 8px;  --space-3: 12px; --space-4: 16px;
  --space-6: 24px; --space-8: 32px; --space-12: 48px; --space-20: 80px;

  --max-width: 1344px;   /* 1280px of content + 32px side padding on each side */
}

/* Light theme: same names, paper background. Set by the sun/moon switch. */
[data-theme="light"] {
  --bg: #EDE6DA;
  --surface: #E2D6C4;
  --input-bg: #FFFFFF;
  --border: #C9BCA8;
  --border-strong: #5E574E;
  --ink: #141210;
  --ink-muted: #5E574E;
  --on-ink: #EDE6DA;
  --red-text: #B8291E;
  --teal-text: #1F5C5A;
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--teal-text); outline-offset: 3px; }
.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;
}
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--ink); color: var(--on-ink); padding: 8px 12px; font-family: var(--font-label); }
.skip-link:focus { left: 8px; }

.container { width: 100%; max-width: var(--max-width); margin: 0 auto; padding: 0 var(--space-8); }
/* padding-block = top and bottom only, so a .container on the same element keeps its side padding */
.section { padding-block: var(--space-20); }
.section--tight { padding-block: var(--space-12); }
.section.section--flush-top { padding-top: 0; }   /* a section straight after the case-study head (gallery pages) */

/* ---------- 3. Typography ---------- */
.display-xl, .display-l, .display-m, .heading {
  font-family: var(--font-display); font-weight: 400; text-transform: uppercase; margin: 0;
}
.display-xl { font-size: clamp(64px, 11vw, 120px); line-height: 0.92; }
.display-l  { font-size: clamp(48px, 7vw, 72px);  line-height: 0.95; }
.display-m  { font-size: clamp(32px, 4.5vw, 44px); line-height: 1; }
.heading    { font-size: 28px; line-height: 1.05; }
.label {
  font-family: var(--font-label); font-size: 12px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-muted); margin: 0;
}
.meta { font-family: var(--font-label); font-size: 13px; color: var(--ink-muted); margin: 0; font-variant-numeric: tabular-nums; }
.body-l { font-size: 19px; line-height: 1.55; margin: 0; }
.muted { color: var(--ink-muted); }
p { margin: 0 0 var(--space-4); }
p:last-child { margin-bottom: 0; }

/* ---------- 4. Buttons, links, tags, stickers ---------- */
.btn {
  display: inline-flex; align-items: center; gap: var(--space-2);
  min-height: 44px; padding: 0 var(--space-6);
  font-family: var(--font-label); font-size: 13px; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none;
  border: 1.5px solid transparent; border-radius: 0; cursor: pointer;
  background: transparent; color: var(--ink);
}
.btn--primary   { background: var(--red);  border-color: var(--red);  color: var(--on-accent); }
.btn--secondary { background: var(--teal); border-color: var(--teal); color: var(--on-accent); }
.btn--outline   { border-color: var(--border-strong); }
.btn--paper     { background: var(--on-accent); border-color: var(--on-accent); color: #141210; }
.btn:hover { filter: brightness(1.12); }

.link {
  font-family: var(--font-label); font-size: 13px; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--red-text); text-underline-offset: 4px;
  display: inline-block; padding: var(--space-3) 0;
}

.tag {
  display: inline-block; padding: 4px var(--space-2);
  font-family: var(--font-label); font-size: 11px; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  border: 1px solid var(--border); color: var(--ink-muted);
}
.tag-row { display: flex; flex-wrap: wrap; gap: var(--space-2); }

.sticker {
  display: inline-block; padding: 8px 12px;
  font-family: var(--font-display); font-size: 20px; line-height: 1; text-transform: uppercase;
  transform: rotate(-4deg);
}
.sticker--red  { background: var(--red);  color: var(--on-accent); }
.sticker--teal { background: var(--teal); color: var(--on-accent); }

/* Image placeholder: shown until you add a real image in js/data.js */
.ph {
  display: flex; align-items: center; justify-content: center; text-align: center;
  background: var(--surface); border: 1px dashed var(--border-strong);
  font-family: var(--font-label); font-size: 12px; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--ink-muted); padding: var(--space-4);
}
.media { width: 100%; object-fit: cover; background: var(--surface); }

/* ---------- 5. Header, nav, theme switch, mobile menu ---------- */
.site-header { border-bottom: 1px solid var(--border); }
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-4); min-height: 76px;
}
.logo {
  font-family: var(--font-display); font-size: 26px; text-transform: uppercase;
  text-decoration: none; letter-spacing: 0.02em;
}
.nav { display: flex; align-items: center; gap: var(--space-6); }
.nav a {
  font-family: var(--font-label); font-size: 13px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.06em; text-decoration: none;
  padding: var(--space-3) 0;
}
.nav a[aria-current="page"] { color: var(--red-text); text-decoration: underline; text-underline-offset: 6px; }
.header-actions { display: flex; align-items: center; gap: var(--space-3); }

.theme-switch {
  display: inline-flex; align-items: center; gap: 2px;
  height: 44px; padding: 4px; border-radius: 999px;
  border: 1.5px solid var(--border-strong); background: transparent; cursor: pointer;
}
.theme-switch span {
  width: 32px; height: 32px; border-radius: 999px;
  display: flex; align-items: center; justify-content: center; color: var(--ink-muted);
}
.theme-switch span.on { background: var(--ink); color: var(--on-ink); }

.menu-btn {
  display: none; width: 44px; height: 44px; align-items: center; justify-content: center;
  background: transparent; border: 0; color: var(--ink); cursor: pointer;
}
.mobile-menu {
  position: fixed; inset: 0; z-index: 50; background: var(--bg);
  display: flex; flex-direction: column; padding: var(--space-4) var(--space-6) var(--space-8);
}
.mobile-menu[hidden] { display: none; }
.mobile-menu__top { display: flex; justify-content: space-between; align-items: center; min-height: 44px; }
.mobile-menu nav { display: flex; flex-direction: column; margin-top: var(--space-8); }
.mobile-menu nav a {
  font-family: var(--font-display); font-size: 44px; text-transform: uppercase;
  text-decoration: none; padding: var(--space-2) 0;
}
.mobile-menu__bottom { margin-top: auto; display: flex; gap: var(--space-3); align-items: center; }
.mobile-menu__bottom .btn { flex: 1; justify-content: center; }

@media (max-width: 860px) {
  .nav, .header-actions { display: none; }
  .menu-btn { display: inline-flex; }
}

/* ---------- 6. Home ---------- */
.hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: var(--space-12); align-items: center; }
.hero__text { display: flex; flex-direction: column; gap: var(--space-6); }
.hero__name { display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--space-4); }
.hero__name .sticker { margin-bottom: 14px; }
.hero__reel { aspect-ratio: 16 / 9; }
.button-row { display: flex; flex-wrap: wrap; gap: var(--space-3); }

.section-head {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end;
  gap: var(--space-4); margin-bottom: var(--space-8);
}

.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-4); }
.tile {
  border: 1px solid var(--border); padding: var(--space-6);
  display: flex; flex-direction: column; gap: var(--space-3);
}
.tile__main { text-decoration: none; display: flex; flex-direction: column; gap: var(--space-3); }
.tile__main .ph, .tile__main .media { aspect-ratio: 4 / 3; }
.tile__subs { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: auto; }
.chip-link {
  font-family: var(--font-label); font-size: 12px; font-weight: 600; text-transform: uppercase;
  border: 1px solid var(--border); padding: 10px 12px; text-decoration: none; min-height: 44px;
  display: inline-flex; align-items: center;
}
.chip-link:hover { border-color: var(--ink); }

.about-teaser { display: grid; grid-template-columns: 360px 1fr; gap: var(--space-12); align-items: center; }
.about-teaser .ph, .about-teaser .media { aspect-ratio: 1 / 1; }

.band { padding: var(--space-20) 0; }
.band--red { background: var(--red); color: var(--on-accent); }
.band--red .muted { color: var(--on-accent); opacity: 0.85; }
.band .container { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--space-6); }

/* ---------- 7. Project cards + Work page ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: var(--space-8) var(--space-6); }
.card { display: flex; flex-direction: column; gap: var(--space-3); text-decoration: none; }
.card__img { aspect-ratio: 4 / 3; overflow: hidden; }
.card__img .media, .card__img .ph { width: 100%; height: 100%; }
.card__title-row { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-3); }
.card:hover .card__title { color: var(--red-text); }

.filters {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center;
  gap: var(--space-3) var(--space-6); margin: var(--space-8) 0 var(--space-6);
}
.filter-group { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.filter-group--sub { margin-left: auto; justify-content: flex-end; }
.chip {
  min-height: 44px; padding: 0 var(--space-4);
  font-family: var(--font-label); font-size: 13px; font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase; border: 1.5px solid var(--border-strong); border-radius: 0;
  background: transparent; color: var(--ink); cursor: pointer;
}
.chip .n { opacity: 0.75; margin-left: 6px; font-weight: 400; }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
.chip--sub { font-size: 12px; border-width: 1px; border-color: var(--border); }
.chip--sub[aria-pressed="true"] { background: var(--red); border-color: var(--red); color: var(--on-accent); }
@media (max-width: 700px) {
  .filter-group--sub { flex-basis: 100%; margin-left: 0; justify-content: flex-start; }
}

/* ---------- 8. Case study ---------- */
.breadcrumb { display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: center; }
.breadcrumb a { font-family: var(--font-label); font-size: 13px; padding: var(--space-3) 0; color: var(--ink-muted); }
.facts {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: var(--space-6);
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  padding: var(--space-6) 0; margin: var(--space-8) 0;
}
.facts dt { font-family: var(--font-label); font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-muted); }
.facts dd { margin: 4px 0 0; font-weight: 600; }
.case-hero { aspect-ratio: 21 / 9; }
.three-col { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-8); }
.three-col h2 { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; font-size: 28px; margin: 0 0 var(--space-3); }
.step { display: grid; grid-template-columns: 1fr 1.5fr; gap: var(--space-12); align-items: center; padding: var(--space-12) 0; border-top: 1px solid var(--border); }
.step:nth-child(even) .step__media { order: -1; }
.step__num { font-family: var(--font-label); font-size: 13px; color: var(--red-text); }
.media-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3); }
.media-grid > * { aspect-ratio: 4 / 3; }
.media-grid > *:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
.media-grid--single > *:first-child { aspect-ratio: 16 / 9; }
.finals { display: grid; grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); gap: var(--space-4); }
.finals > * { aspect-ratio: 16 / 9; }
.case-end { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-6); }
.next-card { display: flex; gap: var(--space-6); align-items: center; border: 1px solid var(--border); padding: var(--space-4); text-decoration: none; }
.next-card .ph, .next-card .media { width: 180px; aspect-ratio: 4 / 3; flex: none; }
.cta-card { background: var(--red); color: var(--on-accent); padding: var(--space-8); text-decoration: none; display: flex; flex-direction: column; justify-content: center; gap: var(--space-2); }

/* ---------- 9. About ---------- */
.about-intro { display: grid; grid-template-columns: 1.4fr 1fr; gap: var(--space-12); align-items: start; }
.about-intro .ph, .about-intro .media { aspect-ratio: 4 / 5; }
/* Profile photo (landing page teaser + About page): crop from the left, image pushed up 20%
   (20% of the part that doesn't fit is hidden above, the rest below), and sit at the top of its row */
#about-photo .media { object-position: left 20%; }
#about-photo { align-self: start; }
.disciplines { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-4); }
.discipline { border: 1px solid var(--border); padding: var(--space-6); display: flex; flex-direction: column; gap: var(--space-2); }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: grid; grid-template-columns: 220px 1fr; gap: var(--space-6); padding: var(--space-6) 0; border-bottom: 1px solid var(--border); }
.timeline .role { font-family: var(--font-display); text-transform: uppercase; font-size: 24px; line-height: 1.1; }
.tool-list { display: flex; flex-wrap: wrap; gap: var(--space-2); list-style: none; padding: 0; margin: 0; }
.three-up { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-12); }
.three-up h2 { font-family: var(--font-label); font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-muted); margin: 0 0 var(--space-4); font-weight: 600; }

/* ---------- 10. Contact + forms ---------- */
.contact { display: grid; grid-template-columns: 1fr 1.3fr; gap: var(--space-12); align-items: start; }
.contact-info dt { font-family: var(--font-label); font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-muted); margin-top: var(--space-6); }
.contact-info dd { margin: 4px 0 0; font-weight: 600; }
.form { border: 1px solid var(--border); padding: var(--space-8); display: flex; flex-direction: column; gap: var(--space-6); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
.field { display: flex; flex-direction: column; gap: var(--space-2); }
.field label { font-family: var(--font-label); font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-muted); }
.input {
  min-height: 48px; padding: 0 var(--space-4); border-radius: 0;
  border: 1px solid var(--border-strong); background: var(--input-bg); color: var(--ink);
  font-family: var(--font-sans); font-size: 16px; width: 100%;
}
textarea.input { padding: var(--space-3) var(--space-4); min-height: 160px; resize: vertical; }
.field-error { color: var(--red-text); font-size: 14px; margin: 0; }
.form-status { padding: var(--space-4); border: 1px solid var(--teal-text); color: var(--ink); }
.form-status[hidden], .field-error[hidden] { display: none; }

/* ---------- 11. Footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding: var(--space-8) 0; }
.site-footer .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-4); align-items: center; }
.footer-links { display: flex; flex-wrap: wrap; gap: var(--space-6); font-family: var(--font-label); font-size: 13px; }
.footer-links a { color: var(--ink-muted); }

/* ---------- 12. Responsive ---------- */
@media (max-width: 1000px) {
  .tiles, .disciplines { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero, .about-teaser, .about-intro, .contact, .step, .case-end { grid-template-columns: 1fr; }
  .step:nth-child(even) .step__media { order: 0; }
  .three-col, .three-up { grid-template-columns: 1fr; gap: var(--space-8); }
}
@media (max-width: 600px) {
  .container { padding: 0 20px; }
  .section { padding-block: var(--space-12); }
  .tiles, .disciplines, .form-row { grid-template-columns: 1fr; }
  .timeline li { grid-template-columns: 1fr; gap: var(--space-2); }
  .finals { grid-template-columns: 1fr; }
  .next-card .ph, .next-card .media { width: 120px; }
  .form { padding: var(--space-6); }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ---------- 13. Grid alignment (12 / 8 / 4 columns) ---------- */

/* Two-column layouts sit on a 12-column grid with 24px gutters */
.hero, .about-teaser, .about-intro, .contact, .step {
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--space-6);
}

/* How many columns each side covers (must add up to 12) */
.hero > *                     { grid-column: span 6; }  /* 6 + 6 */
.about-teaser > :first-child  { grid-column: span 4; }  /* photo 4 */
.about-teaser > :last-child   { grid-column: span 8; }  /* text 8 */
.about-intro > :first-child   { grid-column: span 7; }  /* text 7 */
.about-intro > :last-child    { grid-column: span 5; }  /* photo 5 */
.contact > :first-child       { grid-column: span 5; }  /* info 5 */
.contact > :last-child        { grid-column: span 7; }  /* form 7 */
.step > :first-child          { grid-column: span 5; }  /* text 5 */
.step > :last-child           { grid-column: span 7; }  /* images 7 */

/* Equal columns use the same 24px gutter everywhere */
.tiles, .disciplines, .three-col, .three-up { column-gap: var(--space-6); }
.card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }  /* 3 across = 4 columns each */

/* Tablet: two-column layouts stack, cards go 2 across */
@media (max-width: 1000px) {
  .hero > *, .about-teaser > *, .about-intro > *, .contact > *, .step > *,
  .about-teaser > :first-child, .about-teaser > :last-child, .about-intro > :first-child, .about-intro > :last-child,
  .contact > :first-child, .contact > :last-child, .step > :first-child, .step > :last-child {
    grid-column: 1 / -1;   /* "from the first line to the last" = full width (beats the 4/8, 7/5, 5/7 spans above) */
  }
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Mobile: one column, 16px gutters */
@media (max-width: 600px) {
  .card-grid { grid-template-columns: 1fr; }
  .tiles, .disciplines { column-gap: var(--space-4); }
}

/* ---------- 14. Wireframe alignment (more layouts on the 12-column grid) ---------- */

/* About: experience rows = date 3 columns + details 9 columns */
.timeline li { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--space-6); }
.timeline li > :first-child { grid-column: span 3; }
.timeline li > :last-child  { grid-column: span 9; }

/* Case study: challenge / my role / outcome block centred on the page,
   10 of the 12 columns wide (columns 2–11). Full width once it stacks. */
.three-col {
  max-width: calc((100% - 11 * var(--space-6)) / 12 * 10 + 9 * var(--space-6));
  margin-left: auto;
  margin-right: auto;
  text-align: center;   /* centre each heading and text inside its column */
}
@media (max-width: 1000px) { .three-col { max-width: none; } }

/* Header: as in the wireframe, the logo sits on the left and the links,
   light/dark switch and Download CV are grouped together on the right. */
.nav { margin-left: auto; }
.site-header .container, .header-actions { gap: var(--space-6); }

/* Case study: final screens two across (6 + 6) */
.finals { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--space-6); }

/* Contact form: red asterisk on required fields */
.req { color: var(--red-text); }
.form-note { font-family: var(--font-label); font-size: 12px; color: var(--ink-muted); margin: 0; }

@media (max-width: 600px) {
  .timeline li > * { grid-column: 1 / -1; }
  .finals { grid-template-columns: 1fr; }
}

/* ---------- 15. Admin (preview) and preview banner ---------- */
.btn--danger { border-color: var(--red-text); color: var(--red-text); }
.admin-signin { max-width: 440px; margin: 0 auto; padding: var(--space-20) 20px; display: flex; flex-direction: column; gap: var(--space-6); }
.admin-tools { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--space-4); padding-top: var(--space-6); padding-bottom: var(--space-6); border-bottom: 1px solid var(--border); }
.admin-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--border); }
.admin-row { display: grid; grid-template-columns: 3fr 3fr 2fr auto; gap: var(--space-4); align-items: center; padding: var(--space-4) 0; border-bottom: 1px solid var(--border); }
.admin-actions .btn { padding: 0 var(--space-4); }
.admin-card { border: 1px solid var(--border); padding: var(--space-6); margin-bottom: var(--space-6); display: flex; flex-direction: column; gap: var(--space-4); }
.admin-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4) var(--space-6); }
.admin-wide { grid-column: 1 / -1; }
.admin-tags { display: flex; flex-wrap: wrap; gap: var(--space-4); }
.admin-fieldset { border: 1px solid var(--border); padding: var(--space-3) var(--space-4); margin: 0; display: flex; flex-wrap: wrap; gap: var(--space-4); }
.admin-fieldset legend { font-family: var(--font-label); font-size: 12px; text-transform: uppercase; color: var(--ink-muted); padding: 0 4px; }
.admin-check { display: inline-flex; align-items: center; gap: var(--space-2); min-height: 44px; cursor: pointer; }
.admin-check input { width: 20px; height: 20px; accent-color: var(--red); }
.admin-step { border-top: 1px solid var(--border); padding-top: var(--space-4); display: flex; flex-direction: column; gap: var(--space-3); }
.admin-step .btn { align-self: flex-start; }
.admin-dialog-backdrop { position: fixed; inset: 0; z-index: 60; background: rgba(0, 0, 0, 0.6); display: flex; align-items: center; justify-content: center; padding: var(--space-6); }
.admin-dialog { background: var(--bg); max-width: 440px; width: 100%; margin: 0; }
select.input { appearance: auto; }
.preview-banner { background: var(--teal); color: var(--on-accent); font-family: var(--font-label); font-size: 13px; padding: var(--space-2) var(--space-8); display: flex; flex-wrap: wrap; gap: var(--space-4); align-items: center; justify-content: center; }
.preview-banner a, .preview-banner button { color: var(--on-accent); background: none; border: 0; font: inherit; text-decoration: underline; cursor: pointer; padding: var(--space-2) 0; }
@media (max-width: 800px) {
  .admin-row { grid-template-columns: 1fr; }
  .admin-fields { grid-template-columns: 1fr; }
}

/* Admin projects table (matches the admin wireframe) */
.admin-table-wrap { border: 1px solid var(--border); overflow-x: auto; }
.admin-table { width: 100%; min-width: 960px; border-collapse: collapse; }
.admin-table th, .admin-table td { text-align: left; padding: var(--space-3) var(--space-4); border-bottom: 1px solid var(--border); vertical-align: middle; font-size: 14px; }
.admin-table thead th { font-family: var(--font-label); font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-muted); }
.admin-table tbody th { font-weight: 600; font-size: 15px; }
.admin-table tbody tr:last-child > * { border-bottom: 0; }
.admin-table .right { text-align: right; }
.admin-actions { display: flex; justify-content: flex-end; gap: var(--space-2); }
.badge { display: inline-block; padding: 4px 10px; font-family: var(--font-label); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; border: 1px solid var(--border); color: var(--ink-muted); }
.badge--published { background: var(--teal); border-color: var(--teal); color: var(--on-accent); }
.badge--draft { background: var(--surface); }

/* Admin edit project (matches the "Edit project" wireframe) */
.admin-fields--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.admin-fields--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--space-4); }
.admin-media-label { font-family: var(--font-label); font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-muted); margin: 0; }
.admin-thumbs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: var(--space-3); }
.admin-thumb { display: flex; flex-direction: column; gap: var(--space-2); border: 1px solid var(--border); padding: var(--space-2); }
.admin-thumb__img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--surface); }
.admin-thumb__path { overflow-wrap: anywhere; }
.admin-thumb .input { min-height: 40px; font-size: 14px; }
.admin-thumb .btn { min-height: 40px; padding: 0 var(--space-3); }
.admin-drop { position: relative; display: flex; align-items: center; justify-content: center; min-height: 88px; padding: var(--space-4); border: 1px dashed var(--border-strong); background: var(--surface); font-family: var(--font-label); font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-muted); text-align: center; cursor: pointer; }
.admin-drop input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.admin-drop:focus-within { outline: 2px solid var(--teal-text); outline-offset: 2px; }
.admin-step { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--space-6); row-gap: var(--space-4); }
.admin-step__text { grid-column: span 5; display: flex; flex-direction: column; gap: var(--space-3); }
.admin-step__text .btn { align-self: flex-start; }
.admin-step__media { grid-column: span 7; }
.admin-feat { display: grid; grid-template-columns: 32px 1fr auto; gap: var(--space-4); align-items: center; padding: var(--space-3) 0; border-bottom: 1px solid var(--border); }
@media (max-width: 1000px) {
  .admin-fields--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-fields--5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-step__text, .admin-step__media { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .admin-fields--3, .admin-fields--5 { grid-template-columns: 1fr; }
}

/* Admin header: logo left; tabs, View site and Sign out grouped on the right (as in the wireframe) */
.admin-header .container { flex-wrap: wrap; padding-top: var(--space-3); padding-bottom: var(--space-3); }
.admin-nav { margin-left: auto; }

/* Admin image lists fill the width: three thumbnails across (as in the wireframe); a single cover/hero stays one thumbnail */
.admin-thumbs { grid-template-columns: minmax(0, 320px); }
.admin-thumbs--multi { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 600px) { .admin-thumbs--multi { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* "+ Add images" tile in the next free slot of the thumbnail row */
.admin-thumb--add { display: flex; }
.admin-thumb--add .admin-drop { flex: 1; min-height: 160px; flex-direction: column; }

/* A link inside a sentence: flows with the text, no extra space */
p .link { display: inline; padding: 0; }

/* Admin Landing page: "What I do" tiles side by side, as in the wireframe */
.admin-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--space-4); }
.admin-tile { border: 1px solid var(--border); padding: var(--space-4); display: flex; flex-direction: column; gap: var(--space-3); min-width: 0; }
.admin-tile .admin-thumbs { grid-template-columns: minmax(0, 1fr); }
.admin-tile .field.admin-wide { grid-column: auto; }

/* Admin: sections laid out like the page they edit (About teaser: photo 4 columns, text 8) */
.admin-split { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--space-6); row-gap: var(--space-4); align-items: start; }
.admin-split__media { grid-column: span 4; min-width: 0; }
.admin-split__text { grid-column: span 8; min-width: 0; display: flex; flex-direction: column; gap: var(--space-4); }
.admin-split__media .admin-thumbs { grid-template-columns: minmax(0, 1fr); }
.admin-split__media .admin-drop { aspect-ratio: 1 / 1; min-height: 0; }
@media (max-width: 1000px) { .admin-split__media, .admin-split__text { grid-column: 1 / -1; } }

/* Admin Showreel: title + note on one line, video and poster pickers side by side at 16:9 */
.admin-card__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: var(--space-2); }
.admin-reel { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--space-4); align-items: start; }
.admin-reel .admin-thumbs { grid-template-columns: minmax(0, 1fr); }
.admin-reel .admin-drop, .admin-reel .admin-thumb__img { aspect-ratio: 16 / 9; min-height: 0; height: auto; }
.admin-reel > .admin-wide { grid-column: auto; }            /* each picker takes one column, not the full row */
.admin-reel .admin-thumbs + .admin-drop { aspect-ratio: auto; min-height: 56px; }   /* small "replace" box once a file is in */

/* ---------- Admin on phones: same pattern as the site's mobile wireframes ----------
   Header = logo + menu button; tabs, backup, View site and Sign out live in the full-screen menu. */
.admin-menu nav button {
  font-family: var(--font-display); font-size: 40px; text-transform: uppercase; text-align: left;
  background: none; border: 0; padding: var(--space-2) 0; color: var(--ink); cursor: pointer;
}
.admin-menu nav button[aria-current="page"] { color: var(--red-text); text-decoration: underline; text-underline-offset: 6px; }
.admin-menu__bottom { margin-top: auto; display: flex; flex-direction: column; gap: var(--space-3); }
.admin-menu__bottom .mobile-menu__bottom { margin-top: 0; }
.admin-menu__bottom > .btn { justify-content: center; }

@media (max-width: 860px) {
  .admin-header .container { flex-wrap: nowrap; min-height: 64px; padding-top: var(--space-2); padding-bottom: var(--space-2); }
  .admin-header .logo { font-size: 20px; }
  .admin-header .admin-nav, .admin-header .button-row, .admin-tools { display: none; }
  .admin-header .menu-btn { display: inline-flex; }
}

@media (max-width: 600px) {
  /* Page titles one size down; head buttons share one row */
  [data-page="admin"] main.section--tight { padding-top: var(--space-6); }
  [data-page="admin"] .display-l { font-size: 36px; }
  [data-page="admin"] .section-head { align-items: center; gap: var(--space-3); margin-bottom: var(--space-6); }
  [data-page="admin"] .section-head > div:first-child { flex: 1 1 0; min-width: 0; }
  [data-page="admin"] .section-head .button-row { flex-basis: 100%; flex-wrap: nowrap; gap: var(--space-2); }
  [data-page="admin"] .section-head .button-row .btn { flex: 1 1 0; justify-content: center; padding: 0 var(--space-3); }

  /* Cards: less padding so fields get the width */
  .admin-card { padding: var(--space-4); }
  .admin-tiles, .admin-reel { grid-template-columns: minmax(0, 1fr); }

  /* Projects table becomes a single-column list, like Selected work on the mobile home:
     title + status, then discipline · type · year, then the buttons */
  .admin-table-wrap { border: 0; border-top: 1px solid var(--border); overflow: visible; }
  .admin-table { min-width: 0; }
  .admin-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .admin-table, .admin-table tbody { display: block; }
  .admin-table tr { display: flex; flex-wrap: wrap; align-items: center; column-gap: var(--space-2); row-gap: 6px; padding: var(--space-4) 0; border-bottom: 1px solid var(--border); }
  .admin-table th, .admin-table td, .admin-table tbody tr:last-child > * { display: block; border: 0; padding: 0; }
  .admin-table tbody tr:last-child { border-bottom: 1px solid var(--border); }
  .admin-table tbody th { flex: 1 1 0; min-width: 0; font-size: 17px; }
  .admin-table tbody th .badge { margin-left: 4px; vertical-align: 2px; }
  .admin-table td[data-label="Status"] { order: 1; }
  .admin-table td[data-label="Discipline"], .admin-table td[data-label="Type"], .admin-table td[data-label="Year"] { order: 2; font-size: 14px; color: var(--ink-muted); }
  .admin-table td[data-label="Discipline"] { flex-basis: 100%; }
  .admin-table td[data-label="Type"]::after { content: " ·"; }
  .admin-table__actions { order: 3; flex-basis: 100%; padding-top: var(--space-2) !important; }
  .admin-table__actions .admin-actions { justify-content: flex-start; }
  .admin-table__actions .btn { flex: 1 1 0; justify-content: center; padding: 0 var(--space-2); }

  /* Selected work rows: number + title, buttons on their own line */
  .admin-feat { grid-template-columns: 24px minmax(0, 1fr); row-gap: var(--space-2); }
  .admin-feat .admin-actions { grid-column: 1 / -1; justify-content: flex-start; }
  .admin-feat .admin-actions .btn { flex: 1 1 0; justify-content: center; }
}

/* ---------- Image lightbox (wireframes 05b desktop, 09b phone) ---------- */
.lightbox-open { cursor: zoom-in; }
.lightbox-open:focus-visible { outline: 2px solid var(--teal-text); outline-offset: 3px; }
html.lightbox-on, html.lightbox-on body { overflow: hidden; }       /* the page behind stops scrolling */
.lightbox {
  position: fixed; inset: 0; z-index: 80;
  background: rgba(14, 12, 10, 0.96); color: #F5F1EA;               /* always dark, whatever the theme */
  display: flex; flex-direction: column; gap: var(--space-4);
  padding: var(--space-4) var(--space-8) var(--space-6);
}
.lightbox[hidden] { display: none; }
.lightbox__top { display: flex; align-items: center; gap: var(--space-4) var(--space-6); }
.lightbox__title { flex: 1 1 auto; }
.lightbox__zoom { display: flex; align-items: center; gap: 4px; }
.lightbox__btn.lightbox__zbtn { width: 44px; height: 44px; }
.lightbox__zbtn:disabled { opacity: 0.35; cursor: default; border-color: #8A8379; }
.lightbox__level { min-width: 56px; text-align: center; font-family: var(--font-label); font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
.lightbox__chip {
  height: 44px; padding: 0 14px; background: transparent; color: inherit; border: 1.5px solid #8A8379; border-radius: 0; cursor: pointer;
  font-family: var(--font-label); font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
}
.lightbox__chip[data-z="actual"] { margin-left: 8px; }
.lightbox__chip:hover { border-color: #F5F1EA; }
.lightbox__chip[aria-pressed="true"] { background: #F5F1EA; border-color: #F5F1EA; color: #141210; }   /* current setting */
.lightbox__chip:focus-visible { outline: 2px solid #F5F1EA; outline-offset: 2px; }
.lightbox--video .lightbox__zoom { visibility: hidden; }
.lightbox__title { margin: 0; font-family: var(--font-label); font-size: 14px; }
.lightbox__count { color: #C9C2B6; margin-left: 8px; }
.lightbox__btn {
  width: 56px; height: 56px; display: inline-flex; align-items: center; justify-content: center;
  background: transparent; color: inherit; border: 1.5px solid #8A8379; border-radius: 0; cursor: pointer;
}
.lightbox__btn:hover { border-color: #F5F1EA; }
.lightbox__btn:focus-visible, .lightbox__thumb:focus-visible { outline: 2px solid #F5F1EA; outline-offset: 2px; }
.lightbox__close { width: 44px; height: 44px; }
.lightbox__stage {
  flex: 1; min-height: 0; display: grid; gap: var(--space-4) var(--space-6); align-items: center;
  grid-template-columns: 56px minmax(0, 1fr) 56px;
  grid-template-rows: minmax(0, 1fr) auto;
  grid-template-areas: "prev fig next" ". thumbs .";
}
.lightbox__prev { grid-area: prev; }
.lightbox__next { grid-area: next; }
.lightbox__figure { grid-area: fig; margin: 0; height: 100%; min-height: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--space-3); }
.lightbox__media { flex: 1; min-height: 0; width: 100%; display: flex; align-items: center; justify-content: center; overflow: hidden; touch-action: none; }
.lightbox__media img { cursor: zoom-in; user-select: none; -webkit-user-select: none; transform-origin: center center; }
.is-zoomed .lightbox__media img { cursor: grab; }
.is-dragging .lightbox__media img { cursor: grabbing; }
.lightbox__media img, .lightbox__media video { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }   /* never cropped */
.lightbox__caption { font-size: 15px; color: #C9C2B6; text-align: center; max-width: 720px; }
.lightbox__caption:empty { display: none; }
.lightbox__thumbs { grid-area: thumbs; display: flex; justify-content: center; flex-wrap: wrap; gap: var(--space-2); }
.lightbox__thumb { width: 96px; aspect-ratio: 16 / 9; padding: 0; background: #2B2824; border: 1px solid #5A544C; border-radius: 0; cursor: pointer; overflow: hidden; opacity: 0.6; }
.lightbox__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lightbox__thumb[aria-current="true"] { border: 2px solid #F5F1EA; opacity: 1; }
.lightbox--single .lightbox__prev, .lightbox--single .lightbox__next, .lightbox--single .lightbox__thumbs { display: none; }

@media (max-width: 700px) {
  /* Phone: image full width, arrows and dots at the bottom within thumb reach */
  .lightbox { padding: var(--space-3) 20px var(--space-5, 20px); }
  .lightbox__stage { grid-template-columns: 48px minmax(0, 1fr) 48px; grid-template-areas: "fig fig fig" "prev thumbs next"; column-gap: var(--space-3); }
  .lightbox__btn { width: 48px; height: 48px; }
  .lightbox__top { flex-wrap: wrap; row-gap: var(--space-2); }
  .lightbox__zoom { order: 3; flex-basis: 100%; justify-content: center; }      /* zoom row under the header */
  .lightbox__level { min-width: 52px; }
  .lightbox__chip { padding: 0 12px; font-size: 12px; }
  .lightbox__close { width: 44px; height: 44px; border: 0; }
  .lightbox__media { flex: 0 1 auto; }                                   /* caption sits right under the image */
  .is-zoomed .lightbox__media { flex: 1 1 auto; }                        /* zoomed in: use the whole screen height to look around */
  .lightbox__media img, .lightbox__media video { max-height: calc(100vh - 200px); max-height: calc(100dvh - 200px); }
  .lightbox__caption { font-size: 14px; text-align: left; align-self: stretch; }
  .lightbox__thumbs { align-self: center; }
  .lightbox__thumb { width: 8px; height: 8px; aspect-ratio: auto; border: 0; background: #5A544C; opacity: 1; position: relative; overflow: visible; }
  .lightbox__thumb::before { content: ""; position: absolute; inset: -12px -4px; }      /* bigger tap area than the dot */
  .lightbox__thumb img { display: none; }
  .lightbox__thumb[aria-current="true"] { border: 0; background: #F5F1EA; }
}

/* ---------- Auto showreel from Selected work (Home) ---------- */
.autoreel { position: relative; overflow: hidden; background: #141210; }
/* Slides stack; the incoming one plays an entrance on top of the outgoing one (kept visible underneath).
   Entrances (data-in) and camera moves (data-move) rotate per slide, so it never repeats the same way. */
.autoreel__slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; color: #F5F1EA; text-decoration: none; }
.autoreel__slide.is-leaving { opacity: 1; visibility: visible; z-index: 1; }
.autoreel__slide.is-active  { opacity: 1; visibility: visible; z-index: 2; animation: 0.45s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.autoreel__slide.is-active[data-in="fade"]  { animation-name: reel-in-fade; }
.autoreel__slide.is-active[data-in="slide"] { animation-name: reel-in-slide; }
.autoreel__slide.is-active[data-in="wipe"]  { animation-name: reel-in-wipe; }
.autoreel__slide.is-active[data-in="zoom"]  { animation-name: reel-in-zoom; }
.autoreel.is-first .autoreel__slide.is-active { animation: none; }          /* first image just appears */
@keyframes reel-in-fade  { from { opacity: 0; } }
@keyframes reel-in-slide { from { transform: translateX(100%); } }
@keyframes reel-in-wipe  { from { clip-path: inset(0 0 0 100%); } to { clip-path: inset(0); } }
@keyframes reel-in-zoom  { from { opacity: 0; transform: scale(1.18); } }

.autoreel__img { width: 100%; height: 100%; object-fit: cover; display: block; }
.autoreel__slide:is(.is-active, .is-leaving) .autoreel__img { animation: 2s ease-out both; }   /* keeps moving while the next one comes in */
.autoreel__slide:is(.is-active, .is-leaving)[data-move="in"]    .autoreel__img { animation-name: reel-move-in; }
.autoreel__slide:is(.is-active, .is-leaving)[data-move="out"]   .autoreel__img { animation-name: reel-move-out; }
.autoreel__slide:is(.is-active, .is-leaving)[data-move="left"]  .autoreel__img { animation-name: reel-move-left; }
.autoreel__slide:is(.is-active, .is-leaving)[data-move="right"] .autoreel__img { animation-name: reel-move-right; }
.autoreel__slide:is(.is-active, .is-leaving)[data-move="up"]    .autoreel__img { animation-name: reel-move-up; }
.autoreel__slide:is(.is-active, .is-leaving)[data-move="tilt"]  .autoreel__img { animation-name: reel-move-tilt; }
@keyframes reel-move-in    { from { transform: scale(1); }                         to { transform: scale(1.1); } }
@keyframes reel-move-out   { from { transform: scale(1.14); }                      to { transform: scale(1.02); } }
@keyframes reel-move-left  { from { transform: scale(1.1) translateX(3%); }        to { transform: scale(1.1) translateX(-3%); } }
@keyframes reel-move-right { from { transform: scale(1.1) translateX(-3%); }       to { transform: scale(1.1) translateX(3%); } }
@keyframes reel-move-up    { from { transform: scale(1.1) translateY(3%); }        to { transform: scale(1.1) translateY(-3%); } }
@keyframes reel-move-tilt  { from { transform: scale(1.12) rotate(-1.2deg); }      to { transform: scale(1.06) rotate(0.6deg); } }
.autoreel__cap {
  position: absolute; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; gap: 2px;
  padding: var(--space-10, 40px) var(--space-5, 20px) var(--space-4); background: linear-gradient(transparent, rgba(0, 0, 0, 0.75));
}
.autoreel__kicker { font-family: var(--font-label); font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: #D9D3C8; }
.autoreel__title { font-family: var(--font-display); font-size: 24px; line-height: 1.1; text-transform: uppercase; }
.autoreel__slide:hover .autoreel__title, .autoreel__slide:focus-visible .autoreel__title { text-decoration: underline; text-underline-offset: 4px; }
.autoreel__slide:focus-visible { outline: 2px solid #F5F1EA; outline-offset: -4px; }
/* Progress bars along the top: each is a button (tall tap area, thin visible line) */
.autoreel__bars { position: absolute; top: 4px; left: var(--space-4); right: 64px; display: flex; gap: 4px; }
.autoreel__bar { flex: 1; height: 24px; padding: 0; background: none; border: 0; cursor: pointer; display: flex; align-items: center; }
.autoreel__bar i { display: block; width: 100%; height: 3px; background: rgba(255, 255, 255, 0.35); background-image: linear-gradient(#F5F1EA, #F5F1EA); background-repeat: no-repeat; background-size: 0% 100%; }
.autoreel__bar.is-done i { background-size: 100% 100%; }
.autoreel__bar.is-active i { animation: autoreel-fill 1.5s linear forwards;   /* slide length: a new image every 1.5 s */ }
@keyframes autoreel-fill { from { background-size: 0% 100%; } to { background-size: 100% 100%; } }
.autoreel__bar:focus-visible { outline: 2px solid #F5F1EA; outline-offset: 2px; }
.autoreel__pause {
  position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; padding: 0; cursor: pointer;
  background: rgba(0, 0, 0, 0.55) center / 18px 18px no-repeat; border: 1.5px solid #F5F1EA; border-radius: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F5F1EA' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M8 5v14M16 5v14'/%3E%3C/svg%3E");
}
.autoreel__pause[aria-pressed="true"] {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23F5F1EA'%3E%3Cpath d='M7 4.5v15l13-7.5z'/%3E%3C/svg%3E");
}
.autoreel__pause:focus-visible { outline: 2px solid #F5F1EA; outline-offset: 2px; }
/* Paused (hover, focus, pause button, reduced motion): the zoom and the timer both stop */
.autoreel.is-paused .autoreel__img, .autoreel.is-paused .autoreel__bar i { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) {
  .autoreel__slide.is-active, .autoreel__slide.is-active .autoreel__img { animation: none !important; }
  .autoreel__slide.is-leaving { visibility: hidden; }
}
/* Clean by default: the progress bars and pause button stay hidden and only fade in while the
   reel is hovered or has keyboard focus (they keep working the whole time). */
.autoreel__bars, .autoreel__pause { opacity: 0; transition: opacity 0.2s ease; }
.autoreel:hover .autoreel__bars, .autoreel:hover .autoreel__pause,
.autoreel:focus-within .autoreel__bars, .autoreel:focus-within .autoreel__pause { opacity: 1; }
