/* =========================================================================
   NAOPAKI — style
   Palette and type follow the NAOPAKI Swept Turn brand guide v1.0
   ========================================================================= */

@font-face {
  font-family: "Pirata One";
  src: url("../assets/brand/PirataOne-Regular.ttf") format("truetype");
  font-display: swap;
}

:root {
  --night: #0A0B0D;
  --black: #000000;
  --bone:  #EEEDE7;
  --white: #FFFFFF;
  --line:  rgba(238, 237, 231, .22);
  --dim:   rgba(238, 237, 231, .5);

  --sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;
  --black-letter: "Pirata One", var(--sans);

  --pad: clamp(16px, 2.4vw, 36px);
  --bar-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--bar-h); }
body {
  margin: 0;
  background: var(--night);
  color: var(--bone);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.is-locked { overflow: hidden; }
[hidden] { display: none !important; }
img, video, iframe { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
::selection { background: var(--bone); color: var(--night); }
:focus-visible { outline: 2px solid var(--bone); outline-offset: 3px; }

.mono {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.dim { color: var(--dim); }

/* ---------- film grain over everything ---------- */
.grain {
  position: fixed; inset: -50%;
  z-index: 100; pointer-events: none;
  opacity: .09;
  background-image: 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='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain .9s steps(6) infinite;
}
@keyframes grain {
  0%   { transform: translate(0, 0); }
  20%  { transform: translate(-3%, 2%); }
  40%  { transform: translate(2%, -4%); }
  60%  { transform: translate(-4%, -1%); }
  80%  { transform: translate(3%, 3%); }
  100% { transform: translate(0, 0); }
}

/* ---------- top bar ---------- */
.bar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  height: var(--bar-h);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 0 var(--pad);
  border-bottom: 1px solid var(--line);
  background: rgba(10, 11, 13, var(--bar-alpha, .45));   /* darkness is set in Pages CMS: Homepage → Top bar */
  -webkit-backdrop-filter: blur(var(--bar-blur, 10px));
  backdrop-filter: blur(var(--bar-blur, 10px));
}
.bar__seal img { width: 40px; height: 40px; transition: transform .6s cubic-bezier(.7, 0, .2, 1); }
.bar__seal:hover img { transform: rotate(360deg); }
.bar__mid { color: var(--dim); }
.bar__nav { justify-self: end; display: flex; gap: clamp(14px, 2.5vw, 36px); }
.bar__nav a { position: relative; }
.bar__nav a::before { content: "["; opacity: 0; margin-right: 2px; }
.bar__nav a::after  { content: "]"; opacity: 0; margin-left: 2px; }
.bar__nav a:hover::before, .bar__nav a:hover::after { opacity: 1; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 28px;
  padding: calc(var(--bar-h) + 40px) var(--pad) 80px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
/* slideshow behind the logo: images cross-fade with a slow push-in */
.hero__slides { position: absolute; inset: 0; overflow: hidden; background: var(--night); }
.hero__slide {
  position: absolute; inset: 0;
  background: center / cover no-repeat;
  opacity: 0; transform: scale(1.06);
  transition: opacity 1.6s ease, transform 7s linear;
}
.hero__slide.is-on { opacity: .55; transform: scale(1); }
.hero__slides.is-bw .hero__slide { filter: grayscale(1) contrast(1.2); }
.hero__slides.is-crushed .hero__slide { filter: contrast(1.65) brightness(.82) saturate(.85); }
.hero__slides.is-bw.is-crushed .hero__slide { filter: grayscale(1) contrast(1.75) brightness(.82); }
.hero__slides[data-transition="cut"] .hero__slide,
.hero__slides[data-transition="flash"] .hero__slide { transition: none; transform: none; }
.hero__slides[data-transition="cut"] .hero__slide.is-on,
.hero__slides[data-transition="flash"] .hero__slide.is-on { opacity: .62; }
/* camera-flash frame between slides (Bone, from the brand palette) */
.hero__flash { position: absolute; inset: 0; background: var(--bone); opacity: 0; pointer-events: none; }
.hero__flash.is-on { animation: flash .32s ease-out; }
@keyframes flash { 0% { opacity: .85; } 100% { opacity: 0; } }
.hero__slides::after { /* keeps the logo readable on bright photos */
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, rgba(10,11,13,.15) 0%, rgba(10,11,13,.65) 100%);
}
/* calm mode: slides still change, as a soft fade without the push-in */
.calm .hero__slide { transform: none !important; transition: opacity 1.6s ease !important; }
.hero__logo { position: relative; margin: 0; width: min(86vw, 980px); }
.hero__logo img { width: 100%; height: auto; }
.hero__ghost { position: absolute; inset: 0; opacity: 0; pointer-events: none; }
.hero__logo.is-glitching > img:first-child { animation: logo-jit .28s steps(3) 1; }
.hero__logo.is-glitching .hero__ghost--a { opacity: .55; transform: translate(-7px, 2px); clip-path: inset(18% 0 52% 0); }
.hero__logo.is-glitching .hero__ghost--b { opacity: .45; transform: translate(6px, -2px); clip-path: inset(61% 0 12% 0); filter: brightness(1.2); }
@keyframes logo-jit { 0% { transform: translate(2px, -1px); } 33% { transform: translate(-3px, 1px) skewX(-4deg); } 66% { transform: translate(1px, 0); } 100% { transform: none; } }
/* slogan under the logo (text + font editable in Pages CMS) */
.hero__slogan {
  position: relative;
  /* distances in px (editable in Pages CMS), measured from the visible bottom of the logo's letters:
     subtract the hero's 28px gap and the empty space built into the logo SVG (~4.2% of its width, logo v1.1) */
  margin: calc(var(--slogan-above, 14px) - 28px - min(86vw, 980px) * .0424) 0 calc(var(--slogan-below, 18px) - 28px); max-width: min(86vw, 980px);
  text-align: center; color: var(--bone); text-wrap: balance;
}
.hero__slogan.is-gothic { font-family: var(--black-letter); font-size: calc(clamp(22px, 2.9vw, 44px) * var(--slogan-scale, .55)); line-height: 1.15; }
.hero__slogan.is-sans { font-family: var(--sans); font-weight: 700; text-transform: uppercase; letter-spacing: -.02em; font-size: calc(clamp(16px, 2vw, 28px) * var(--slogan-scale, .55)); line-height: 1.15; }
.hero__slogan.is-mono { font-family: var(--mono); text-transform: uppercase; letter-spacing: .12em; font-size: calc(clamp(11px, 1.1vw, 14px) * var(--slogan-scale, .55) / .55); line-height: 1.6; }
.hero__tag { position: relative; margin: 0; color: var(--bone); }
.hero__tag span { color: var(--dim); margin: 0 .6em; }
.hero__corner { position: absolute; bottom: 24px; color: var(--dim); }
.hero__corner--l { left: var(--pad); }
.hero__corner--r { right: var(--pad); }
.hero__corner--r:hover { color: var(--bone); }

/* ---------- marquee ---------- */
.marquee {
  overflow: hidden; white-space: nowrap;
  border-bottom: 1px solid var(--line);
  background: var(--bone); color: var(--night);
  padding: 10px 0; font-weight: 700;
}
.marquee__track { display: inline-flex; will-change: transform; animation: marquee var(--marquee-time, 40s) linear infinite; }
.marquee__track span { flex: none; padding-right: .6em; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- section heads ---------- */
section { padding: 0 var(--pad); }
.sec-head {
  display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 16px;
  padding: clamp(60px, 10vw, 140px) 0 18px;
  border-bottom: 1px solid var(--bone);
}
.sec-head__title {
  margin: 0;
  font-size: clamp(44px, 9vw, 140px);
  line-height: .82; font-weight: 700; letter-spacing: -.04em;
  text-transform: uppercase;
}
.sec-head__title sup { font-size: 14px; letter-spacing: .08em; vertical-align: top; margin-left: 6px; font-weight: 400; }
.sec-head__controls { display: flex; gap: 22px; flex-wrap: wrap; }
.toggle { display: flex; border: 1px solid var(--line); }
.toggle button { padding: 7px 12px; color: var(--dim); }
.toggle button + button { border-left: 1px solid var(--line); }
.toggle button:hover { color: var(--bone); }
.toggle button.is-on { background: var(--bone); color: var(--night); }

/* ---------- work: list view ---------- */
.work__list { list-style: none; margin: 0; padding: 0; }
.work__item a {
  display: grid;
  grid-template-columns: 64px 1fr 120px 80px 40px;
  align-items: baseline; gap: 16px;
  padding: 14px 0 12px;
  border-bottom: 1px solid var(--line);
  transition: background .15s, color .15s, padding .25s;
}
.work__num, .work__type, .work__year, .work__arrow { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; }
.work__num, .work__type { color: var(--dim); }
.work__title {
  font-size: clamp(30px, 5.6vw, 84px);
  line-height: .95; font-weight: 700; letter-spacing: -.035em; text-transform: uppercase;
}
.work__year { text-align: right; }
.work__arrow { text-align: right; transition: transform .25s; }
.work__thumb { display: none; }
.work__list[data-view="list"] .work__item a:hover,
.work__list[data-view="list"] .work__item a:focus-visible {
  background: var(--bone); color: var(--night);
  padding-left: 12px; padding-right: 12px; outline: none;
}
.work__list[data-view="list"] .work__item a:hover .work__num,
.work__list[data-view="list"] .work__item a:hover .work__type { color: var(--night); }
.work__list[data-view="list"] .work__item a:hover .work__arrow { transform: translateX(-6px) rotate(-45deg); }
.work__item.is-hidden { display: none; }

/* floating preview that follows the cursor in list view */
.hover-preview {
  position: fixed; top: 0; left: 0; z-index: 40;
  width: clamp(200px, 22vw, 340px); height: auto;
  pointer-events: none; opacity: 0;
  filter: var(--tone, grayscale(0));
  transform: translate(-50%, -50%) scale(.92);
  transition: opacity .2s, transform .2s;
  box-shadow: 0 0 0 1px var(--line);
}
.hover-preview.is-on { opacity: 1; transform: translate(-50%, -50%) scale(1); }

/* ---------- work: grid view ---------- */
.work__list[data-view="grid"] {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; padding: 1px 0;
}
.work__list[data-view="grid"] .work__item { outline: 1px solid var(--line); }
@media (min-width: 1200px) { .work__list[data-view="grid"] { grid-template-columns: repeat(4, 1fr); } }
.work__list[data-view="grid"] .work__item a {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px;
  border: 0; padding: 14px;
}
.work__list[data-view="grid"] .work__thumb {
  display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; margin-bottom: 8px;
  filter: var(--tone, grayscale(0)) brightness(.75);
  transition: filter .35s;
}
.work__list[data-view="grid"] .work__item a:hover .work__thumb { filter: var(--tone, grayscale(0)) brightness(1); }
.work__list[data-view="grid"] .work__title { font-size: clamp(20px, 2.2vw, 30px); flex: 1 1 100%; order: 2; }
.work__list[data-view="grid"] .work__num { order: 1; }
.work__list[data-view="grid"] .work__type { order: 3; }
.work__list[data-view="grid"] .work__year { order: 4; }
.work__list[data-view="grid"] .work__arrow { display: none; }
.work__list[data-view="grid"] .work__thumb { order: 0; }

/* ---------- about ---------- */
.about { position: relative; overflow: hidden; }
.about > *:not(.about__bigword) { position: relative; }
.about__statement {
  margin: clamp(30px, 5vw, 60px) 0 0;
  max-width: 22ch;
  font-size: clamp(30px, 5vw, 76px);
  line-height: .98; font-weight: 700; letter-spacing: -.03em; text-transform: uppercase;
}
.about__statement em { font-family: var(--black-letter); font-style: normal; font-weight: 400; text-transform: none; letter-spacing: 0; }
.about__cols {
  display: grid; grid-template-columns: repeat(3, 1fr);
  margin-top: clamp(40px, 6vw, 90px);
  border-top: 1px solid var(--line);
}
.about__cols dl { margin: 0; padding: 18px 18px 18px 0; }
.about__cols dl + dl { border-left: 1px solid var(--line); padding-left: 18px; }
.about__cols dt { color: var(--dim); margin-bottom: 14px; }
.about__cols dd { margin: 0; line-height: 1.8; }

/* ---------- contact ---------- */
.contact { padding-bottom: clamp(60px, 10vw, 140px); }
.contact__mail {
  display: inline-block;
  margin-top: clamp(30px, 5vw, 60px);
  font-size: clamp(30px, 7.4vw, 124px);
  font-weight: 700; letter-spacing: -.04em; line-height: .9;
  word-break: break-all;
  border-bottom: 3px solid transparent;
  transition: border-color .2s;
}
.contact__mail:hover { border-color: var(--bone); }
.contact__social { list-style: none; padding: 0; margin: clamp(30px, 5vw, 60px) 0 0; border-top: 1px solid var(--line); }
.contact__social a {
  display: flex; justify-content: space-between;
  padding: 16px 0; border-bottom: 1px solid var(--line);
  transition: padding .2s, background .2s, color .2s;
}
.contact__social a span { color: var(--dim); }
.contact__social a:hover { background: var(--bone); color: var(--night); padding: 16px 12px; }
.contact__social a:hover span { color: var(--night); }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--bone); padding: clamp(30px, 5vw, 60px) var(--pad) 22px; }
.foot__logo { width: 100%; height: auto; opacity: .95; }
.foot__row { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 28px; color: var(--dim); }
.foot__row a:hover { color: var(--bone); }

/* ---------- project view ---------- */
.project {
  position: fixed; inset: 0; z-index: 60;
  background: var(--night);
  display: flex; flex-direction: column;
  transform: translateY(100%);
  transition: transform .55s cubic-bezier(.7, 0, .2, 1);
}
.project.is-open { transform: translateY(0); }
.project[hidden] { display: none; }
.project__bar {
  flex: 0 0 var(--bar-h);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 0 var(--pad); border-bottom: 1px solid var(--line);
}
.project:focus { outline: none; }
.project__close { justify-self: start; text-align: left; }
.project__index { color: var(--dim); }
.project__nav { justify-self: end; display: flex; gap: 22px; }
.project__bar button:hover { text-decoration: underline; text-underline-offset: 4px; }
.project__scroll { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 0 var(--pad); }
.project__head { padding: clamp(40px, 7vw, 100px) 0 clamp(24px, 4vw, 48px); border-bottom: 1px solid var(--bone); }
.project__title {
  margin: 0;
  font-family: var(--black-letter); font-weight: 400;
  font-size: clamp(64px, 15vw, 240px);
  line-height: .8; letter-spacing: .01em; text-transform: uppercase;
}
.project__meta { display: flex; gap: 28px; flex-wrap: wrap; margin: 26px 0 0; }
.project__meta span:last-child { color: var(--dim); text-transform: none; letter-spacing: .02em; }
.project__media {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(8px, 1.2vw, 16px);
  padding: clamp(24px, 4vw, 48px) 0;
}
.project__media > * { grid-column: span 2; background: #050506; }
.project__media > .is-portrait { grid-column: span 1; }
.project__media > .is-solo { grid-column: span 2; width: min(100%, 62%); justify-self: center; background: none; }
.project__media img { width: 100%; height: auto; }
.project__media .embed { position: relative; aspect-ratio: 16 / 9; }
.project__media .embed iframe, .project__media .embed video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; }
.project__media img { opacity: 0; transition: opacity .5s; }
.project__media img.is-loaded { opacity: 1; }
.project__next {
  display: block; border-top: 1px solid var(--bone);
  padding: clamp(30px, 5vw, 60px) 0 clamp(50px, 8vw, 110px);
}
.project__next span { color: var(--dim); display: block; margin-bottom: 10px; }
.project__next strong {
  font-family: var(--black-letter); font-weight: 400; text-transform: uppercase;
  font-size: clamp(48px, 10vw, 160px); line-height: .85;
  transition: letter-spacing .4s;
}
.project__next:hover strong { letter-spacing: .04em; }

/* ---------- small screens ---------- */
@media (max-width: 820px) {
  :root { --bar-h: 56px; }
  .bar__mid { display: none; }
  .bar { grid-template-columns: auto 1fr; }
  .bar__seal img { width: 34px; height: 34px; }
  .work__item a { grid-template-columns: 34px 1fr auto; gap: 10px; }
  .work__type, .work__arrow { display: none; }
  .work__list[data-view="list"] .work__thumb {
    display: block; grid-column: 1 / -1; width: 100%; aspect-ratio: 16 / 9; object-fit: cover;
    filter: var(--tone, grayscale(0)) brightness(.85); margin-bottom: 4px; order: -1;
  }
  .work__list[data-view="grid"] { grid-template-columns: 1fr 1fr; }
  .hover-preview { display: none; }
  .about__cols { grid-template-columns: 1fr; }
  .about__cols dl + dl { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; }
  .project__media { grid-template-columns: 1fr; }
  .project__media > *, .project__media > .is-portrait, .project__media > .is-solo { grid-column: span 1; width: 100%; }
  .project__close .dim, .project__index { display: none; }
  .project__nav { grid-column: 3; }
}

/* =========================================================================
   LOOK & EFFECTS — switched on/off from Pages CMS ("Look & effects"),
   via classes on <html>. Colours stay inside the brand palette.
   ========================================================================= */

/* grain strength */
.fx-grain-off .grain { display: none; }
.fx-grain-strong .grain { opacity: .17; }

/* scan lines + slow VHS tracking band */
.scan { display: none; }
.fx-scanlines .scan {
  display: block; position: fixed; inset: 0; z-index: 99; pointer-events: none;
  background: repeating-linear-gradient(to bottom, rgba(0,0,0,.22) 0 1px, transparent 1px 3px);
}
.fx-scanlines .scan::after {
  content: ""; position: absolute; left: 0; right: 0; top: -20%; height: 14%;
  background: linear-gradient(to bottom, transparent, rgba(238,237,231,.05) 45%, rgba(238,237,231,.09) 50%, transparent);
  animation: tracking 9s linear infinite;
}
@keyframes tracking { to { top: 110%; } }

/* gothic section titles (Pirata One) */
.fx-gothic-heads .sec-head__title { font-family: var(--black-letter); font-weight: 400; letter-spacing: 0; text-transform: none; line-height: .9; }

/* glitchy hover on the work list */
.fx-hover-glitch .work__list[data-view="list"] .work__item a:hover .work__title,
.fx-hover-glitch .work__list[data-view="grid"] .work__item a:hover .work__title { animation: title-jit .34s steps(2) 1; }
.fx-hover-glitch .work__list[data-view="list"] .work__item a:hover { animation: row-flick .26s steps(1) 1; }
@keyframes title-jit {
  0%   { transform: translate(-3px, 1px); clip-path: inset(0 0 45% 0); }
  25%  { transform: translate(4px, -1px) skewX(-10deg); clip-path: none; }
  50%  { transform: translate(-2px, 0); clip-path: inset(40% 0 0 0); }
  75%  { transform: translate(1px, 1px); clip-path: none; }
  100% { transform: none; }
}
@keyframes row-flick { 0% { background: var(--night); color: var(--bone); } 50% { background: var(--white); color: var(--black); } 100% { background: var(--bone); } }

/* photo colours: set per project / site-wide in Pages CMS; JS fills --tone */
.project__media img { filter: var(--tone, grayscale(0)); }

/* crosshair cursor (Bone with a Night outline) */
.fx-cursor, .fx-cursor * {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32'%3E%3Cg stroke='%230A0B0D' stroke-width='4'%3E%3Cpath d='M16 2v10M16 20v10M2 16h10M20 16h10'/%3E%3C/g%3E%3Cg stroke='%23EEEDE7' stroke-width='1.5'%3E%3Cpath d='M16 2v10M16 20v10M2 16h10M20 16h10'/%3E%3C/g%3E%3Ccircle cx='16' cy='16' r='1.5' fill='%23EEEDE7'/%3E%3C/svg%3E") 16 16, crosshair !important;
}

/* giant cropped background word in About */
.about__bigword {
  position: absolute; left: -2vw; right: -10vw; bottom: -.12em;
  white-space: nowrap; pointer-events: none; user-select: none;
  font-size: clamp(120px, 26vw, 420px); line-height: .8;
  color: transparent; -webkit-text-stroke: 1px rgba(238,237,231,.13);
}
.about__bigword.is-gothic { font-family: var(--black-letter); }
.about__bigword.is-sans { font-family: var(--sans); font-weight: 700; letter-spacing: -.05em; text-transform: uppercase; }

/* black-screen intro (first visit only) */
.intro {
  position: fixed; inset: 0; z-index: 200; background: var(--black);
  display: grid; place-items: center; transition: opacity .6s ease;
}
.intro img { width: 72px; height: 72px; opacity: 0; animation: faulty-light 1.5s steps(1) forwards; }
.intro.is-out { opacity: 0; pointer-events: none; }
@keyframes faulty-light {
  0% { opacity: 0; } 18% { opacity: 1; } 22% { opacity: 0; } 34% { opacity: .9; } 38% { opacity: .1; }
  46% { opacity: 1; } 49% { opacity: 0; } 58% { opacity: 1; } 100% { opacity: 1; }
}

/* sound toggle in the top bar */
.bar__sound { color: var(--dim); font: inherit; letter-spacing: inherit; text-transform: inherit; }
.bar__sound span { margin-left: 4px; }
.bar__sound[aria-pressed="true"] { color: var(--bone); }

/* ---------- store (placeholder page at #store) ---------- */
.store {
  position: fixed; inset: 0; z-index: 45;          /* under the top bar, so the menu still works */
  background: var(--night);
  display: grid; place-items: center; text-align: center;
  padding: var(--bar-h) var(--pad) 0;
}
.store__label {
  margin: 0; font-weight: 700; text-transform: uppercase; letter-spacing: -.04em; line-height: .85;
  font-size: clamp(44px, 11vw, 190px); color: var(--bone);
  animation: store-flicker 6s steps(1) infinite;
}
.store__label .sep { margin: 0 .04em; }
.store__sub { margin: 22px 0 0; color: var(--dim); letter-spacing: .4em; font-size: 12px; }
@keyframes store-flicker { 0%, 91%, 100% { opacity: 1; } 92% { opacity: .15; } 93% { opacity: 1; } 95% { opacity: .4; } 96% { opacity: 1; } }
.bar__nav a.is-active::before, .bar__nav a.is-active::after { opacity: 1; }
@media (max-width: 420px) { .bar__nav { gap: 12px; } }

/* separators in editable texts */
.sep { color: var(--dim); margin: 0 .5em; }

/* Calm mode: only when the visitor's device asks for "reduce motion" AND
   "Respect Reduce motion" is on in Pages CMS (Look & effects). Set by JS on <html>.
   The slideshow and the scrolling strip keep going; flashes, glitches,
   flicker and the moving grain/scan band stop. */
.calm { scroll-behavior: auto; }
.calm .scan::after, .calm .grain, .calm .hero__logo.is-glitching > img:first-child,
.calm .intro img, .calm .store__label { animation: none !important; }
.calm .hero__logo.is-glitching .hero__ghost { opacity: 0 !important; }
.calm .work__item a:hover, .calm .work__item a:hover .work__title { animation: none !important; }
.calm .project { transition: none; }
