/* ---------- Tokens ----------
   Colours come from Alena's cover for "Heaven in Heaven": a periwinkle-violet sky, lavender clouds,
   mint and deep-teal leaves, pink hand-lettering with a plum edge, and sunny yellow. */

:root {
  --paper: #f4f2fd;        /* cloud lavender */
  --paper-deep: #e6e3fa;
  --card: #ffffff;
  --ink: #27215a;          /* deep indigo */
  --ink-soft: #5a5590;
  --line: rgba(39, 33, 90, .12);

  --violet: #6e6abe;       /* the cover's sky; white text on it is 4.7:1 */
  --violet-deep: #5550a8;  /* small violet text, and behind white text */
  --cloud: #dfdefd;
  --pink: #ffc2dc;         /* hand-lettering on violet */
  --pink-soft: #f4b5cc;
  --orchid: #b85a9d;       /* large pink type on light backgrounds */
  --plum: #7f4f95;
  --mint: #53ddc9;
  --teal: #3c8e97;
  --teal-deep: #224959;
  --yellow: #fec425;
  --yellow-light: #ffd45e;

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Nunito", ui-rounded, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-hand: "Caveat", "Bradley Hand", "Segoe Print", cursive;

  --gutter: clamp(16px, 4vw, 48px);
  --max: 1200px;
  --radius: 18px;
  --panel-radius: clamp(26px, 4vw, 48px);
  --shadow-sm: 0 1px 2px rgba(39, 33, 90, .08), 0 6px 16px -6px rgba(39, 33, 90, .18);
  --shadow-lg: 0 2px 4px rgba(39, 33, 90, .08), 0 26px 50px -18px rgba(39, 33, 90, .45);
  --ease: cubic-bezier(.2, .8, .2, 1);
  /* chalky grain, like the crayon texture in her work */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .15 0 0 0 0 .13 0 0 0 0 .35 0 0 0 .08 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  color-scheme: light;
}

/* Fraunces has no Cyrillic, so the Russian and Belarusian pages set their headings in Alegreya */
:root:lang(ru), :root:lang(be) { --font-display: "Alegreya", Georgia, "Times New Roman", serif; }

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  -webkit-text-size-adjust: 100%;
}
html:has(dialog[open]) { overflow: hidden; }

body {
  margin: 0;
  background-color: var(--paper);
  background-image: var(--grain);
  color: var(--ink);
  font: 400 1.0625rem/1.65 var(--font-body);
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--pink); color: var(--ink); }

h1, h2, h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 560;
  line-height: 1.04;
  letter-spacing: -.02em;
  font-variation-settings: "SOFT" 100, "WONK" 1;
  text-wrap: balance;
}
h2 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h3 { font-size: 1.35rem; letter-spacing: -.01em; }
p { margin: 0 0 1em; text-wrap: pretty; }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
svg { flex: none; }
:focus-visible { outline: 3px solid var(--violet-deep); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }

.hand {
  display: inline-block;
  margin: 0;
  font: 700 1.65rem/1 var(--font-hand);
  color: var(--orchid);
  rotate: -3deg;
}

.icon { width: 1.2em; height: 1.2em; }

.skip {
  position: absolute;
  left: 12px;
  top: -100px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--ink);
  color: var(--paper);
  font-weight: 700;
}
.skip:focus { top: 12px; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: .55em;
  padding: .9em 1.5em;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--card);
  color: var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  font: 800 1rem/1 var(--font-body);
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background-color .2s;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--ink); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.btn[hidden] { display: none; }
.btn-primary { background: var(--violet-deep); color: #fff; }
.btn-sun { background: var(--yellow); }
.btn-small { padding: .65em 1.15em; font-size: .95rem; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--paper) 84%, transparent);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.site-header.scrolled { border-bottom-color: var(--line); }

.header-row {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2.4vw, 28px);
  height: 72px;
}

.logo {
  display: inline-flex;
  align-items: flex-end;
  gap: .35rem;
  font: 700 2.2rem/1 var(--font-hand);
  text-decoration: none;
}
.logo-mark { width: 24px; height: 30px; margin-bottom: .12em; transform-origin: 50% 100%; }
.logo:hover .logo-mark { animation: sway .9s var(--ease); }
@keyframes sway { 30% { rotate: -9deg; } 65% { rotate: 6deg; } }

.nav { display: flex; align-items: center; gap: clamp(14px, 2.6vw, 34px); margin-left: auto; }
.nav a:not(.btn) {
  position: relative;
  font-weight: 700;
  text-decoration: none;
}
.nav a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 3px;
  border-radius: 3px;
  background: var(--pink-soft);
  scale: 0 1;
  transform-origin: left;
  transition: scale .3s var(--ease);
}
.nav a:not(.btn):hover::after { scale: 1 1; }

.lang {
  display: flex;
  gap: 2px;
  padding: 3px;
  border: 2px solid var(--ink);
  border-radius: 999px;
}
.lang a {
  padding: .4em .62em;
  border-radius: 999px;
  color: var(--ink-soft);
  font: 800 .78rem/1 var(--font-body);
  letter-spacing: .05em;
  text-decoration: none;
  transition: background-color .2s, color .2s;
}
.lang a:hover { background: var(--paper-deep); color: var(--ink); }
.lang a[aria-current="page"] { background: var(--ink); color: var(--paper); }

@media (max-width: 600px) {
  .nav a:not(.btn) { display: none; }
}
@media (max-width: 440px) {
  .nav .btn { display: none; }
}

/* ---------- Violet panels (hero and contact): a book cover of their own ---------- */

.panel {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: var(--panel-radius);
  background: var(--violet);
  color: #fff;
}
.panel::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: var(--grain), var(--grain);
  background-position: 0 0, 110px 70px;
  pointer-events: none;
}
.decor { position: absolute; z-index: -1; pointer-events: none; }
.cloud { color: var(--cloud); opacity: .5; }
.sprig-deep { color: var(--teal-deep); }
.sprig-mint { color: var(--mint); }
.daisy { color: #fff; }
.daisy-pink { color: var(--pink); }

/* ---------- Hero ---------- */

.hero { padding-block: clamp(12px, 2vw, 24px) clamp(40px, 6vw, 72px); }

.hero-panel { padding: clamp(40px, 6vw, 84px) clamp(22px, 5vw, 72px) clamp(48px, 6vw, 84px); }

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  align-items: center;
  gap: clamp(40px, 5vw, 72px);
}

.hero-kicker { margin-bottom: 1rem; color: var(--yellow-light); }

.hero h1 {
  font-size: clamp(2.7rem, 6.6vw, 5.5rem);
  font-weight: 480;
}
.hero h1 .name {
  position: relative;
  z-index: 0;
  color: var(--pink);
  font-style: italic;
  font-weight: 600;
  white-space: nowrap;
  text-shadow: .04em .04em 0 var(--plum);
}
.name-underline {
  position: absolute;
  z-index: -1;
  left: -3%;
  bottom: -.1em;
  width: 106%;
  height: .3em;
  overflow: visible;
}
.name-underline path {
  fill: none;
  stroke: var(--yellow);
  stroke-width: 8;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  vector-effect: non-scaling-stroke;
  animation: draw 1s .45s var(--ease) forwards;
}
@keyframes draw { to { stroke-dashoffset: 0; } }

.lede {
  max-width: 34ch;
  margin: 1.5rem 0 2.2rem;
  color: #fff;
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-art-wrap { position: relative; justify-self: center; width: 100%; max-width: 480px; }

.hero-art { position: relative; aspect-ratio: 1 / 1.1; }

.card {
  position: absolute;
  width: 54%;
  aspect-ratio: 4 / 5;
  margin: 0;
  padding: 10px 10px 38px;
  border-radius: 6px;
  background: var(--card);
  box-shadow: 0 2px 4px rgba(20, 16, 60, .12), 0 28px 50px -16px rgba(20, 16, 60, .55);
  transition: transform .6s var(--ease);
  animation: bob 7s ease-in-out infinite;
}
.card img, .card-blank {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 3px;
  object-fit: cover;
}
/* a strip of washi tape */
.card::before {
  content: "";
  position: absolute;
  top: -13px;
  left: 50%;
  z-index: 1;
  width: 86px;
  height: 26px;
  translate: -50% 0;
  rotate: -5deg;
  background: color-mix(in srgb, var(--yellow) 70%, transparent);
  box-shadow: 0 1px 2px rgba(39, 33, 90, .1);
}
.card-1 { left: 0; top: 4%; rotate: -8deg; animation-delay: -1s; }
.card-2 { right: 0; top: 0; rotate: 7deg; animation-delay: -3.5s; }
.card-3 { left: 20%; bottom: 0; rotate: -2deg; animation-delay: -5.5s; }
.card-2::before { background: color-mix(in srgb, var(--mint) 75%, transparent); rotate: 4deg; }
.card-3::before { background: color-mix(in srgb, var(--pink) 85%, transparent); }
.card-1 .card-blank { background: var(--pink-soft); }
.card-2 .card-blank { background: var(--mint); }
.card-3 .card-blank { background: var(--yellow); }

.card-portrait { width: 60%; left: 19%; }
.card-portrait img { object-position: 50% 30%; }
.card-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 5px;
  color: var(--ink);
  font: 700 1.5rem/1 var(--font-hand);
  text-align: center;
  rotate: -2deg;
}

.hero-art:hover .card-1 { transform: translate(-16px, -4px) rotate(-3deg); }
.hero-art:hover .card-2 { transform: translate(14px, -10px) rotate(3deg); }
.hero-art:hover .card-3 { transform: translateY(10px); }

@keyframes bob { 50% { translate: 0 -9px; } }

.hero-note {
  position: absolute;
  top: -20px;
  left: -60px;
  font-size: 1.5rem;
  color: var(--cloud);
  rotate: -8deg;
}
.hero-note svg { display: block; width: 52px; margin: 2px 0 0 54px; }

.hero-panel .cl1 { width: 190px; top: -34px; left: 24%; }
.hero-panel .cl2 { width: 240px; top: 44%; right: -80px; }
.hero-panel .cl3 { width: 300px; bottom: -40px; left: 30%; }
.hero-panel .sp1 { width: 96px; left: -46px; bottom: -66px; rotate: 14deg; }
.hero-panel .sp2 { width: 68px; left: 2px; bottom: -86px; rotate: 40deg; }
.hero-panel .sp3 { width: 110px; right: -18px; top: -56px; rotate: 196deg; }
.hero-panel .sp4 { width: 80px; right: 60px; top: -60px; rotate: 170deg; }
.hero-panel .dz1 { width: 22px; left: 22px; bottom: 34px; }
.hero-panel .dz2 { width: 18px; right: 120px; top: 26px; }
.hero-panel .dz3 { width: 20px; right: 40px; top: 120px; }

.doodle { position: absolute; z-index: -1; fill: var(--yellow); pointer-events: none; animation: twinkle 4s ease-in-out infinite; }
.d1 { width: 32px; height: 32px; top: 11%; left: 50%; }
.d2 { width: 20px; height: 20px; top: 62%; left: 47%; fill: var(--pink); animation-delay: -1.3s; }
.d3 { width: 24px; height: 24px; bottom: 9%; right: 4%; fill: var(--mint); animation-delay: -2.6s; }
@keyframes twinkle { 50% { scale: .7; rotate: 45deg; } }

@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art-wrap { max-width: 400px; }
  .hero-note { display: none; }
  .d1 { top: 3%; left: auto; right: 8%; }
  .d2 { display: none; }
  .hero-panel .sp1, .hero-panel .sp2, .hero-panel .cl1 { display: none; }
}

/* ---------- Ticker ---------- */

.ticker-wrap { overflow-x: clip; padding-block: 18px; }

.ticker {
  margin-inline: -24px;
  padding: 16px 0;
  overflow: hidden;
  background: var(--teal-deep);
  color: var(--paper);
  rotate: -1.4deg;
}
.ticker-track {
  display: flex;
  width: max-content;
  animation: marquee 40s linear infinite;
  font: italic 500 clamp(1.35rem, 2.6vw, 2rem)/1.1 var(--font-display);
  font-variation-settings: "SOFT" 100, "WONK" 1;
}
.ticker-track span { display: flex; align-items: center; gap: 1.6rem; padding-right: 1.6rem; white-space: nowrap; }
.ticker-track svg { width: .7em; height: .7em; fill: var(--yellow); }
.ticker-track svg:nth-of-type(3n+2) { fill: var(--mint); }
.ticker-track svg:nth-of-type(3n) { fill: var(--pink); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */

.section { padding-block: clamp(72px, 10vw, 136px); }

.section-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .5rem;
  margin-bottom: clamp(28px, 4vw, 52px);
}

/* ---------- Work ---------- */

.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; }
.filters[hidden] { display: none; }

.chip {
  padding: .6em 1.15em;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font: 700 .95rem/1 var(--font-body);
  cursor: pointer;
  transition: background-color .2s, color .2s;
}
.chip:hover { background: var(--paper-deep); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); }

.gallery {
  --gap: clamp(12px, 1.8vw, 22px);
  display: flex;
  align-items: flex-start;
  gap: var(--gap);
}
.gallery-col { display: flex; flex: 1; flex-direction: column; gap: var(--gap); min-width: 0; }

.tile {
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 14px;
  background: var(--paper-deep);
  box-shadow: var(--shadow-sm);
  cursor: zoom-in;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), opacity .6s var(--ease), translate .6s var(--ease);
}
.tile img { width: 100%; transition: transform .7s var(--ease); }
.tile:hover { transform: translateY(-4px) rotate(-.6deg); box-shadow: var(--shadow-lg); }
.gallery-col:nth-child(even) .tile:hover { transform: translateY(-4px) rotate(.6deg); }
.tile:hover img { transform: scale(1.035); }

.gallery-empty {
  width: 100%;
  padding: clamp(40px, 7vw, 80px) 24px;
  border: 2px dashed color-mix(in srgb, var(--ink) 25%, transparent);
  border-radius: var(--radius);
  text-align: center;
}
.gallery-empty .hand { font-size: 2rem; margin-bottom: .6rem; }
.gallery-empty p:last-child { margin: 0; color: var(--ink-soft); }

.gallery-more { margin: clamp(36px, 5vw, 52px) 0 0; text-align: center; }
.gallery-more:has(> [hidden]) { display: none; }
.work-more { margin: 24px 0 0; text-align: center; }

/* ---------- Stats ---------- */

.stats { padding-block: 8px clamp(24px, 4vw, 40px); }

.stats-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 3vw, 32px); }

.stat {
  display: flex;
  flex-direction: column;
  gap: .6rem;
  padding: clamp(24px, 3vw, 34px);
  border: 2px solid var(--ink);
  border-radius: 24px;
  background: var(--yellow);
  box-shadow: 5px 5px 0 var(--ink);
  rotate: -1.2deg;
}
.stat:nth-child(2) { background: var(--mint); rotate: 1.4deg; }
.stat:nth-child(3) { background: var(--pink); rotate: -.6deg; }
.stat-num {
  display: flex;
  align-items: center;
  min-height: 1em;
  font: 600 clamp(3rem, 6vw, 4.4rem)/1 var(--font-display);
  font-variation-settings: "SOFT" 100, "WONK" 1;
  letter-spacing: -.03em;
}
.stat-icon { width: .85em; height: .85em; fill: var(--ink); }
.stat-label { font-weight: 700; font-size: 1.08rem; line-height: 1.35; }

@media (max-width: 760px) {
  .stats-row { grid-template-columns: 1fr; max-width: 420px; }
}

/* ---------- About ---------- */

.about-grid {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  align-items: center;
  gap: clamp(36px, 6vw, 96px);
}

/* an arched window */
.about-photo {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  max-width: 400px;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border: 8px solid var(--card);
  border-radius: 999px 999px 28px 28px;
  background: var(--pink-soft);
  box-shadow: var(--shadow-lg);
  justify-self: center;
}
.about-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.about-initial {
  font: italic 600 clamp(8rem, 18vw, 13rem)/1 var(--font-display);
  font-variation-settings: "SOFT" 100, "WONK" 1;
  color: var(--violet-deep);
}

.about-text h2 { margin: .6rem 0 1.4rem; }
.about-text p:not(.hand) { max-width: 54ch; color: var(--ink-soft); font-size: 1.12rem; }

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

/* ---------- Process ---------- */

.process { padding-top: 0; }

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(16px, 2vw, 24px);
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.step {
  padding: 26px 24px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow-sm);
}
.step::before {
  counter-increment: step;
  content: counter(step);
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: var(--cloud);
  color: var(--violet-deep);
  font: 700 1.9rem/1 var(--font-hand);
}
.step:nth-child(2)::before { background: color-mix(in srgb, var(--mint) 45%, var(--card)); }
.step:nth-child(3)::before { background: color-mix(in srgb, var(--yellow) 45%, var(--card)); }
.step:nth-child(4)::before { background: color-mix(in srgb, var(--pink) 70%, var(--card)); }
.step h3 { margin-bottom: .55rem; }
.step p { margin: 0; color: var(--ink-soft); }

@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Contact ---------- */

.contact-section { padding-top: 0; }

.contact {
  padding: clamp(56px, 8vw, 104px) clamp(22px, 6vw, 80px);
  text-align: center;
}
.contact .hand { color: var(--yellow-light); }
.contact h2 { max-width: 15ch; margin: .8rem auto 1.2rem; font-size: clamp(2.4rem, 6vw, 4.4rem); }
.contact h2 em { color: var(--pink); text-shadow: .04em .04em 0 var(--plum); }
.contact-lede { max-width: 44ch; margin: 0 auto 2.2rem; color: #fff; font-size: 1.15rem; }
.contact-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.contact .cl1 { width: 220px; top: -30px; left: -60px; }
.contact .cl2 { width: 260px; bottom: -50px; right: -70px; }
.contact .sp1 { width: 110px; left: -20px; bottom: -50px; rotate: 20deg; }
.contact .sp2 { width: 100px; right: -10px; top: -50px; rotate: 200deg; }
.contact .dz1 { width: 22px; left: 9%; top: 22%; }
.contact .dz2 { width: 20px; right: 12%; bottom: 20%; }
.contact .d1 { top: 18%; left: auto; right: 16%; }

/* ---------- Footer ---------- */

.site-footer { padding-block: 8px 40px; color: var(--ink-soft); font-size: .95rem; }
.footer-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; }
.footer-row p { margin: 0; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer-row a { display: inline-flex; align-items: center; gap: .4em; font-weight: 700; text-decoration: none; }
.footer-row a:hover { color: var(--violet-deep); }

/* ---------- Lightbox ---------- */

.lightbox {
  width: 100vw;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  overflow: hidden;
}
.lightbox::backdrop {
  background: rgba(24, 20, 60, .93);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.lightbox[open] { animation: fade-in .25s ease; }
@keyframes fade-in { from { opacity: 0; } }

.lightbox-stage { position: absolute; inset: 0; display: grid; place-items: center; padding: 64px 84px 84px; touch-action: pan-y; }
.lightbox-img {
  max-width: 100%;
  max-height: calc(100dvh - 148px);
  width: auto;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .6);
  transition: opacity .25s;
  user-select: none;
  -webkit-user-drag: none;
}
.lightbox-img.loading { opacity: 0; }

.lightbox-meta {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 22px;
  margin: 0;
  padding: 0 80px;
  text-align: center;
  font: 700 1.5rem/1.2 var(--font-hand);
}
.lightbox-count { margin-left: .5em; color: var(--cloud); font-size: 1.2rem; }

.lb-btn {
  position: absolute;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  padding: 0;
  border: 2px solid rgba(255, 255, 255, .7);
  border-radius: 50%;
  background: rgba(255, 255, 255, .06);
  color: #fff;
  cursor: pointer;
  transition: background-color .2s, scale .2s var(--ease);
}
.lb-btn:hover { background: rgba(255, 255, 255, .16); scale: 1.06; }
.lb-btn svg { width: 24px; height: 24px; }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 18px; top: 50%; translate: 0 -50%; }
.lb-next { right: 18px; top: 50%; translate: 0 -50%; }
.lightbox.single .lb-prev, .lightbox.single .lb-next, .lightbox.single .lightbox-count { display: none; }

@media (max-width: 640px) {
  .lightbox-stage { padding: 64px 10px 132px; }
  .lightbox-img { max-height: calc(100dvh - 196px); }
  .lb-prev, .lb-next { top: auto; bottom: 18px; translate: none; }
  .lightbox-meta { bottom: 84px; padding: 0 16px; }
}

/* ---------- Reveal on scroll ---------- */

.js .reveal { opacity: 0; translate: 0 22px; transition: opacity .7s var(--ease), translate .7s var(--ease); }
.js .reveal.in { opacity: 1; translate: 0 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; translate: none; }
  .ticker-track { animation: none; }
}
