/* ============================================================
   JOZE BASA — site styles
   Design notes:
     - Background: #FAFAF7 (warm smoke white)
     - Text: #1A1A1A (deep near-black)
     - Muted: #6B6B6B
     - Accent: #C15F3C (warm terracotta, used sparingly)
     - Serif: Fraunces (Tiempos-adjacent, free)
     - Sans: Inter (UI only)
   ============================================================ */

:root {
  /* LIGHT THEME (default) */
  --bg:       #FAFAF7;
  --bg-soft:  #F2F1EC;
  --ink:      #1A1A1A;
  --ink-soft: #3A3A3A;
  --muted:    #6B6B6B;
  --line:     #E4E2DC;
  --accent:   #C15F3C;
  --scheme:   light;

  --serif: 'Fraunces', 'Iowan Old Style', 'Georgia', serif;
  --serif-weight: 500;     /* body weight — picker overrides */
  --serif-weight-display: 500;  /* derived: weight for large display text */
  --sans:  'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;

  --maxw: 1240px;
  --maxw-narrow: 760px;

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

/* DARK THEME — modern neutral charcoal, similar in tone to Linear / Vercel.
   Deliberately neither pure black nor warm/brown. Cool-neutral background,
   raised surface for cards, soft off-white text. */
[data-theme="dark"] {
  --bg:       #1E1F23;   /* deep charcoal, never pure black */
  --bg-soft:  #292A2F;   /* raised surface (cards, form bg) */
  --ink:      #ECEEF1;   /* clean off-white */
  --ink-soft: #C2C5CC;
  --muted:    #888C94;
  --line:     #35363B;
  --accent:   #E07A5F;   /* warm terracotta — lifted for dark bg */
  --scheme:   dark;
}

/* Default is ALWAYS light/white on first visit, regardless of the visitor's
   OS dark-mode setting. Dark mode only applies when the user explicitly
   clicks the toggle (which sets data-theme="dark" and saves it). */

/* RESET ----------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* Tells the browser to render native widgets (scrollbars, form
     controls, autofill) using the matching color scheme. */
  color-scheme: var(--scheme);
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--serif);
  font-weight: var(--serif-weight);
  font-size: 18px;
  line-height: 1.55;
  font-feature-settings: 'kern', 'liga', 'calt';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

/* LAYOUT ---------------------------------------------------- */
.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 32px;
}
.container--narrow { max-width: var(--maxw-narrow); }

.section {
  padding: clamp(80px, 12vw, 160px) 0;
  border-top: 1px solid var(--line);
}
.section:first-of-type { border-top: 0; }

/* NAV ------------------------------------------------------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 32px;
  font-family: var(--sans);
  font-size: 14px;
  letter-spacing: 0.04em;
  color: #fff;
  mix-blend-mode: difference;
  transition: color .3s var(--ease);
}
.nav.is-scrolled {
  mix-blend-mode: normal;
  color: var(--ink);
  /* color-mix lets the scrolled bar inherit the active theme background
     with consistent ~85% opacity, in either light or dark mode. */
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav__brand {
  font-family: var(--sans);
  font-weight: 500;
  letter-spacing: 0.18em;
  font-size: 13px;
}
.nav__links {
  display: flex;
  gap: 28px;
}
.nav__links a {
  position: relative;
  padding: 4px 0;
}
.nav__links a::after {
  content: '';
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 1px;
  background: currentColor;
  transition: right .35s var(--ease);
}
.nav__links a:hover::after { right: 0; }

.nav__toggle { display: none; }

/* Theme switcher button in the nav */
.nav__theme {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin-left: 18px;
  border-radius: 50%;
  color: currentColor;
  transition: background .25s var(--ease), transform .25s var(--ease);
}
.nav__theme:hover {
  background: color-mix(in srgb, currentColor 12%, transparent);
  transform: rotate(-12deg);
}
.nav__theme svg {
  width: 16px;
  height: 16px;
  display: block;
}
/* Moon shown by default (light mode); sun shown only in dark mode. */
.nav__theme .icon-sun  { display: none; }
.nav__theme .icon-moon { display: block; }
[data-theme="dark"] .nav__theme .icon-sun  { display: block; }
[data-theme="dark"] .nav__theme .icon-moon { display: none; }

/* HERO ------------------------------------------------------ */
.hero {
  /* === HERO VIDEO CROP =====================================
     Set these to hide black letterbox bars from your hero video.
     Tune by eye until the bars are gone (typically 40px–120px).
     You can also override these from <style> in index.html. */
  --hero-crop-top:    0px;
  --hero-crop-bottom: 0px;
  /* ========================================================= */

  position: relative;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  color: #fff;
}
.hero__video {
  position: absolute;
  left: 0;
  right: 0;
  top:    calc(-1 * var(--hero-crop-top));
  bottom: calc(-1 * var(--hero-crop-bottom));
  width: 100%;
  /* height is derived from top + bottom; the video extends past the container,
     and overflow:hidden on .hero crops the bars away. */
  object-fit: cover;
  z-index: 0;
  /* The hero video is purely decorative — disable all pointer interaction so
     browser extensions (scroll-to-change-volume, video controllers, etc.)
     can't latch onto it and hijack the page scroll. */
  pointer-events: none;
  -webkit-user-select: none;
  user-select: none;
}
.hero__canvas {
  pointer-events: none;
}
.hero__veil {
  pointer-events: none;
}

/* YouTube / Vimeo background — wrap handles cropping, iframe inside is
   scaled larger than the wrap so YouTube's logo and any UI elements get
   pushed past the visible edge. */
.hero__yt-wrap {
  position: absolute;
  left: 0;
  right: 0;
  top:    calc(-1 * var(--hero-crop-top));
  bottom: calc(-1 * var(--hero-crop-bottom));
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}
.hero__youtube {
  position: absolute;
  top: 50%;
  left: 50%;
  /* 130% scale → YouTube logo (bottom-right of the iframe) lands ~15% past
     the visible viewport on every side. Same for the "More videos" overlay. */
  width:  130%;
  height: 73.125%;             /* 130 × 9/16 */
  min-width:  231.11vh;        /* keep 16:9 even on tall/portrait screens */
  min-height: 130%;
  transform: translate(-50%, -50%);
  border: 0;
  pointer-events: none;
  -webkit-user-select: none;
  user-select: none;
  /* Fade in after a short delay so the first second of YouTube's player UI
     (title, big play button before autoplay kicks in) is hidden behind the
     dark veil/canvas while the video is warming up. */
  opacity: 0;
  animation: heroBgFade 1s ease 0.7s forwards;
}
@keyframes heroBgFade {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.hero__canvas {
  position: absolute; inset: 0;
  z-index: 0;
  background:
    radial-gradient(60% 50% at 20% 30%, rgba(193, 95, 60, 0.55), transparent 60%),
    radial-gradient(50% 60% at 80% 70%, rgba(40, 30, 60, 0.6), transparent 65%),
    linear-gradient(160deg, #1a1814 0%, #2a2420 50%, #14110e 100%);
  filter: saturate(110%);
  animation: drift 22s ease-in-out infinite alternate;
}
@keyframes drift {
  0%   { transform: scale(1.05) translate(0, 0); }
  100% { transform: scale(1.15) translate(-2%, -1%); }
}
.hero__veil {
  position: absolute; inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(0,0,0,.15) 0%, rgba(0,0,0,.35) 60%, rgba(0,0,0,.55) 100%);
}
.hero__content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 24px;
}
.hero__title {
  margin: 0;
  font-family: var(--sans);
  font-weight: 500;
  font-size: clamp(40px, 9vw, 120px);
  letter-spacing: 0.22em;
  line-height: 1;
}
.hero__sub {
  margin-top: 24px;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(16px, 1.6vw, 20px);
  letter-spacing: 0.06em;
  opacity: 0.9;
}
.hero__statement {
  margin: 22px 0 0;
  font-family: var(--serif);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(22px, 3.2vw, 40px);
  line-height: 1.2;
  letter-spacing: -0.01em;
  max-width: 18ch;
}
.hero__statement + .hero__sub {
  margin-top: 18px;
  font-style: normal;
  font-family: var(--sans);
  font-size: clamp(12px, 1.1vw, 14px);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0.85;
}

/* Plain hero — clean themed background (white in light mode), dark text.
   Used by the minimal landing page. Overrides the dark cinematic hero. */
.hero--plain {
  background: var(--bg);
  color: var(--ink);
}
.hero--plain .hero__statement { color: var(--ink); }
.hero--plain .hero__statement + .hero__sub { color: var(--muted); opacity: 1; }
.hero--plain .hero__scroll { color: var(--ink); opacity: 0.7; }
.hero--plain .hero__scroll:hover { opacity: 1; }

.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 36px;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  opacity: 0.85;
}
.hero__scroll-line {
  width: 1px;
  height: 48px;
  background: currentColor;
  transform-origin: top;
  animation: scrollline 2.2s ease-in-out infinite;
}
@keyframes scrollline {
  0%   { transform: scaleY(0); }
  50%  { transform: scaleY(1); }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* TYPOGRAPHY ------------------------------------------------ */
.eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 36px;
}
.display {
  font-family: var(--serif);
  font-weight: var(--serif-weight-display);
  font-size: clamp(34px, 5.4vw, 72px);
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin: 0 0 56px;
  max-width: 18ch;
}
.display--small {
  font-size: clamp(28px, 3.6vw, 48px);
  max-width: 24ch;
}
.prose {
  max-width: 62ch;
  font-size: clamp(17px, 1.3vw, 20px);
  line-height: 1.65;
  color: var(--ink-soft);
  font-weight: var(--serif-weight);
}
.prose p { margin: 0 0 1.1em; }
.prose p:last-child { margin-bottom: 0; }
.prose--lede {
  font-size: clamp(18px, 1.4vw, 22px);
  color: var(--muted);
  margin-bottom: 48px;
}

/* ABOUT ----------------------------------------------------- */
.section--about .display {
  font-style: italic;
  font-weight: 300;
}

/* WORK ------------------------------------------------------ */
.projects {
  display: flex;
  flex-direction: column;
  gap: clamp(72px, 9vw, 128px);
  margin-top: 24px;
}

.project {
  display: block;
}

.project__media {
  position: relative;
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  background: var(--bg-soft);
  overflow: hidden;
  border-radius: 4px;
  cursor: pointer;
  isolation: isolate;
  box-shadow: 0 30px 80px -40px rgba(20, 17, 14, 0.35);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.project__media:hover {
  transform: translateY(-3px);
  box-shadow: 0 40px 100px -40px rgba(20, 17, 14, 0.45);
}

.project__thumb {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .8s var(--ease), filter .6s var(--ease);
  filter: grayscale(10%) contrast(102%);
}
.project__media:hover .project__thumb {
  transform: scale(1.03);
  filter: grayscale(0%) contrast(100%);
}

.project__play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 2;
}
.project__play-icon {
  width: 82px; height: 82px;
  border-radius: 50%;
  background: rgba(255,255,255,0.94);
  color: var(--ink);
  display: grid;
  place-items: center;
  transition: transform .35s var(--ease), background .35s var(--ease);
  box-shadow: 0 10px 40px rgba(0,0,0,0.25);
}
.project__media:hover .project__play-icon {
  transform: scale(1.08);
  background: #fff;
}
.project__play-icon svg { width: 28px; height: 28px; margin-left: 4px; }

/* Single-video projects: just title + meta, tight to the video */
.project__body {
  max-width: 1120px;
  margin: 16px auto 0;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.project__title {
  font-family: var(--sans);
  font-weight: 500;
  font-size: clamp(20px, 1.9vw, 28px);
  line-height: 1.25;
  margin: 0;
  letter-spacing: 0.005em;
  color: var(--ink);
}
.project__meta {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
.project__desc {
  width: 100%;
  font-family: var(--serif);
  font-size: 17px;
  color: var(--ink-soft);
  margin: 6px 0 0;
  max-width: 62ch;
}

/* Multi-video projects: strip on the LEFT, title on the RIGHT, same row */
.project__row {
  max-width: 1120px;
  margin: 16px auto 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  align-items: center;
}
.project__row .project__body {
  margin: 0;
  max-width: none;
  text-align: right;
  justify-content: flex-end;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  flex-wrap: nowrap;
}
.project__row .project__title {
  text-align: right;
}

/* Strip wrap — positions left/right scroll arrows */
.project__strip-wrap {
  position: relative;
  min-width: 0;
}
.project__strip-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid var(--line);
  color: var(--ink);
  display: grid;
  place-items: center;
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s var(--ease), transform .25s var(--ease), background .2s var(--ease);
  z-index: 5;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.10);
}
.project__strip-arrow.is-visible {
  opacity: 1;
  pointer-events: auto;
}
.project__strip-arrow:hover {
  background: #fff;
  transform: translateY(-50%) scale(1.08);
}
.project__strip-arrow--left  { left:  -10px; }
.project__strip-arrow--right { right: -10px; }

/* Sub-thumbnails strip — horizontal scroll */
.project__strip {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 4px;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}
.project__strip::-webkit-scrollbar { height: 6px; }
.project__strip::-webkit-scrollbar-track { background: transparent; }
.project__strip::-webkit-scrollbar-thumb { background: var(--line); border-radius: 999px; }
.project__strip::-webkit-scrollbar-thumb:hover { background: var(--muted); }

.project__strip-item {
  position: relative;
  flex: 0 0 clamp(140px, 16vw, 180px);
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 3px;
  cursor: pointer;
  background: var(--bg-soft);
  outline: 1px solid transparent;
  scroll-snap-align: start;
  transition: outline-color .25s var(--ease), transform .35s var(--ease);
}
.project__strip-item:hover {
  outline-color: var(--ink);
  transform: translateY(-2px);
}
.project__strip-item img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(20%);
  transition: filter .35s var(--ease);
}
.project__strip-item:hover img { filter: grayscale(0%); }
.project__strip-item span {
  position: absolute;
  left: 8px; bottom: 6px;
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 1px 6px rgba(0,0,0,0.7);
}

/* On narrow screens: stack the row */
@media (max-width: 720px) {
  .project__row {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .project__row .project__body {
    text-align: left;
    align-items: flex-start;
  }
  .project__row .project__title { text-align: left; }
}

/* LIGHTBOX (modal video) ------------------------------------ */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(10, 9, 8, 0.92);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px;
  opacity: 0;
  transition: opacity .3s var(--ease);
}
.lightbox.is-open {
  display: flex;
  opacity: 1;
}
.lightbox__frame {
  width: 100%;
  max-width: 1280px;
  aspect-ratio: 16 / 9;
  background: #000;
}
.lightbox__frame iframe {
  width: 100%; height: 100%; border: 0;
}
.lightbox__close {
  position: absolute;
  top: 24px; right: 28px;
  color: #fff;
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.85;
  transition: opacity .2s;
}
.lightbox__close:hover { opacity: 1; }

/* FORM ------------------------------------------------------ */
.form {
  margin-top: 24px;
}
.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.form__field {
  position: relative;
  display: block;
  margin-bottom: 20px;
}
.form__label {
  position: absolute;
  left: 0;
  top: 14px;
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--muted);
  pointer-events: none;
  transition: transform .25s var(--ease), color .25s var(--ease), font-size .25s var(--ease);
  transform-origin: left top;
}
.form__field input,
.form__field textarea {
  width: 100%;
  padding: 18px 0 12px;
  font: inherit;
  font-family: var(--serif);
  font-size: 18px;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  outline: none;
  resize: vertical;
  transition: border-color .25s var(--ease);
}
.form__field textarea { min-height: 120px; }
.form__field input:focus,
.form__field textarea:focus { border-bottom-color: var(--ink); }
.form__field input:focus + .form__label,
.form__field textarea:focus + .form__label,
.form__field input:not(:placeholder-shown) + .form__label,
.form__field textarea:not(:placeholder-shown) + .form__label {
  transform: translateY(-18px) scale(0.78);
  color: var(--ink);
}
/* honeypot */
.hp { display: none !important; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 28px;
  margin-top: 16px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--bg);
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: background .3s var(--ease), color .3s var(--ease), transform .3s var(--ease);
}
.btn:hover {
  background: transparent;
  color: var(--ink);
  transform: translateY(-1px);
}
.btn__arrow { transition: transform .3s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(4px); }
.btn[disabled] { opacity: 0.55; cursor: progress; }

.form__status {
  margin-top: 16px;
  font-family: var(--sans);
  font-size: 14px;
  min-height: 1.4em;
}
.form__status.is-ok    { color: #2f6f3a; }
.form__status.is-error { color: #a23a2c; }

/* FOOTER ---------------------------------------------------- */
.footer {
  border-top: 1px solid var(--line);
  padding: 36px 0;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--muted);
}
.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer__brand {
  font-weight: 500;
  letter-spacing: 0.22em;
  color: var(--ink-soft);
}

/* REVEAL ON SCROLL ----------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}
.reveal.is-in {
  opacity: 1;
  transform: none;
}

/* RESPONSIVE ------------------------------------------------ */
@media (max-width: 720px) {
  body { font-size: 17px; }
  .container { padding: 0 22px; }
  .nav { padding: 18px 22px; }
  .nav__links {
    position: fixed;
    top: 0; right: 0;
    width: 78%; max-width: 360px;
    height: 100vh;
    background: var(--bg);
    color: var(--ink);
    flex-direction: column;
    padding: 96px 28px;
    gap: 18px;
    font-size: 20px;
    transform: translateX(110%);
    transition: transform .4s var(--ease);
    box-shadow: -20px 0 60px rgba(0,0,0,.08);
  }
  .nav.is-open .nav__links { transform: none; }
  .nav__toggle {
    display: inline-flex;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    z-index: 60;
  }
  .nav__toggle span {
    display: block;
    width: 22px;
    height: 1.5px;
    background: currentColor;
    transition: transform .3s var(--ease), opacity .3s var(--ease);
  }
  .nav.is-open .nav__toggle span:first-child { transform: translateY(3px) rotate(45deg); }
  .nav.is-open .nav__toggle span:last-child  { transform: translateY(-4px) rotate(-45deg); }

  .form__row { grid-template-columns: 1fr; gap: 0; }
  .work-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero__title { letter-spacing: 0.16em; }
}

/* SHOW MORE (projects pagination) --------------------------- */
.showmore {
  display: flex;
  justify-content: center;
  margin-top: clamp(56px, 8vw, 96px);
}
.showmore__btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 16px 32px;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  transition: background .3s var(--ease), color .3s var(--ease), transform .3s var(--ease);
}
.showmore__btn:hover {
  background: var(--ink);
  color: var(--bg);
  transform: translateY(-1px);
}
.showmore__btn span:last-child {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.12em;
  opacity: 0.7;
}

/* Reveal animation for newly-loaded projects */
.project.is-fresh {
  animation: fadeup .7s var(--ease) both;
}
@keyframes fadeup {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: none; }
}

/* FONT PICKER ----------------------------------------------- */
.fontpicker {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 80;
  font-family: var(--sans);
}
.fontpicker__toggle {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--bg);
  display: grid;
  place-items: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.18);
  transition: transform .25s var(--ease), background .25s var(--ease);
}
.fontpicker__toggle:hover { transform: translateY(-2px); }
.fontpicker__toggle-mark {
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1;
  font-style: italic;
}
.fontpicker__panel {
  position: absolute;
  right: 0;
  bottom: 58px;
  width: 240px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 16px 14px 12px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.15);
  animation: pop .25s var(--ease);
}
@keyframes pop {
  from { opacity: 0; transform: translateY(6px) scale(0.98); }
  to   { opacity: 1; transform: none; }
}
.fontpicker__title {
  margin: 0 0 8px;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}
.fontpicker__title--mt { margin-top: 14px; }

.fontpicker__weights {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
}
.fontpicker__weights button {
  padding: 8px 0;
  border-radius: 4px;
  background: var(--bg-soft);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 15px;
  transition: background .2s var(--ease), color .2s var(--ease);
}
.fontpicker__weights button:hover { background: #E7E5DF; }
.fontpicker__weights button.is-active {
  background: var(--ink);
  color: var(--bg);
}
.fontpicker__list {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.fontpicker__list button {
  width: 100%;
  text-align: left;
  padding: 8px 10px;
  border-radius: 4px;
  font-size: 18px;
  color: var(--ink);
  transition: background .2s var(--ease);
}
.fontpicker__list button:hover { background: var(--bg-soft); }
.fontpicker__list button.is-active {
  background: var(--ink);
  color: var(--bg);
}
.fontpicker__hint {
  margin: 10px 0 0;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.04em;
}

/* MOTION-SAFE ---------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
