/* ---------- tokens ---------- */
:root {
  --bg: #f4f0ea;
  --bg-soft: #ebe5db;
  --ink: #1d1b19;
  --muted: #6f6a63;
  --line: rgba(29, 27, 25, .14);
  --accent: #b4472f;
  --accent-ink: #f4f0ea;
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1320px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; scrollbar-gutter: stable; }   /* stable: hiding the scrollbar behind the lightbox does not shift the page */
/* picture loading: a soft shimmer in the frame while the photo downloads, then the photo fades in (js/loading.js) */
.slide__img, .work__img, .hero__art a, .proj-preview, .about__img, .process__frame { isolation: isolate; }
.slide__img, .work__img, .hero__art a { position: relative; }
.slide__img::before, .work__img::before, .hero__art a::before, .proj-preview::before, .about__img::before, .process__frame::before {
  content: ""; display: none; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(100deg, transparent 15%, rgba(255, 255, 255, .6) 50%, transparent 85%);
  transform: translateX(-100%); animation: shimmer 1.3s ease-in-out infinite;
}
:is(.slide__img, .work__img, .hero__art a, .proj-preview, .about__img, .process__frame):has(img.is-loading)::before { display: block; }
.hero__art a:has(img.is-loading) { background: var(--bg-soft); }
img.is-loading { opacity: 0; }
img.img-in { animation: img-in .7s ease backwards; }
@keyframes shimmer { to { transform: translateX(100%); } }
@keyframes img-in { from { opacity: 0; } }
/* paint splashes on the page background (js/paint.js): a fixed layer behind the stickers and the content */
#paint { position: fixed; z-index: -2; inset: 0; overflow: hidden; pointer-events: none; }   /* fixed to the window: the splashes stay still, the page scrolls over them */
.paint__s { position: absolute; display: block; }
.paint__s svg { display: block; width: 100%; height: 100%; filter: url(#paint-tex) saturate(.85); }
#sparkles, #sparkles canvas { pointer-events: none; }   /* decorative sticker layer (js/sparkles.js) */
/* A soft shadow under the content column (not a plate): the stickers behind it are dimmed and blurred a little so they never
   disturb the text, and the shadow dissolves toward the sides, so the empty margins of wide screens stay clear. */
.content-shade {
  position: fixed; z-index: -1; top: 0; bottom: 0; left: 50%; width: min(calc(var(--max) + 260px), 100%); transform: translateX(-50%);
  pointer-events: none; background: rgba(46, 36, 26, .09);
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 120px, #000 calc(100% - 120px), transparent);
  mask-image: linear-gradient(to right, transparent, #000 120px, #000 calc(100% - 120px), transparent);
}
@media (max-width: 720px) { .content-shade { -webkit-mask-image: none; mask-image: none; background: rgba(46, 36, 26, .05); } }   /* phone: no side margins to feather, still blurred */
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 16px/1.65 var(--sans); -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2 { font-family: var(--serif); font-weight: 500; margin: 0; line-height: 1; letter-spacing: -.01em; }
h2 { font-size: clamp(2.2rem, 4.5vw, 3.6rem); }
em { font-style: italic; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--bg); padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------- header ---------- */
.top {
  position: sticky; top: 0; z-index: 20;
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px var(--gutter);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent; transition: border-color .3s;
}
.top.is-stuck { border-bottom-color: var(--line); }
.brand { font: 500 1.5rem/1 var(--serif); text-decoration: none; letter-spacing: .01em; }
.nav { display: flex; flex-wrap: wrap; gap: 4px clamp(14px, 2.4vw, 32px); font-size: .9rem; }
.nav a { text-decoration: none; color: var(--muted); position: relative; padding: 4px 0; transition: color .2s; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.nav a:hover, .nav a.is-active, .nav a[aria-current="page"] { color: var(--ink); }
.nav a:hover::after, .nav a.is-active::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }

/* language switcher */
.lang { display: flex; gap: 2px; margin-left: auto; margin-right: 10px; }
.nav { margin-left: clamp(14px, 3vw, 32px); }
.lang button {
  font: 600 .72rem/1 var(--sans); letter-spacing: .08em; color: var(--muted); background: transparent;
  border: 1px solid transparent; border-radius: 999px; padding: 7px 10px; cursor: pointer;
  transition: color .2s, border-color .2s, background .2s;
}
.lang button:hover { color: var(--ink); }
.lang button[aria-pressed="true"] { color: var(--ink); border-color: var(--line); background: var(--bg-soft); }

/* ---------- hero ---------- */
.hero {
  max-width: var(--max); margin: 0 auto; padding: clamp(28px, 6vw, 80px) var(--gutter) clamp(48px, 8vw, 110px);
  display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 6vw, 90px); align-items: center;
}
.eyebrow { margin: 0 0 22px; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.hero__title { font-size: clamp(4.2rem, 13vw, 10.5rem); line-height: .9; }
.hero__title .line { display: block; overflow: hidden; padding-bottom: .08em; }
.hero__title .line > span { display: inline-block; animation: rise 1.1s var(--ease) both; }
.hero__title .line:nth-child(2) > span { animation-delay: .12s; color: var(--accent); }
.hero__lead { max-width: 30ch; margin: 28px 0 32px; font: italic 400 clamp(1.25rem, 2vw, 1.6rem)/1.35 var(--serif); color: var(--muted); }
.btn {
  display: inline-flex; gap: 10px; align-items: center; padding: 14px 22px; border-radius: 999px;
  background: var(--ink); color: var(--bg); text-decoration: none; font-size: .9rem; font-weight: 500;
  transition: background .25s, transform .25s var(--ease);
}
.btn:hover { background: var(--accent); color: var(--accent-ink); transform: translateY(-2px); }
.hero__art { margin: 0; position: relative; }
.hero__art a { display: block; overflow: hidden; border-radius: 4px; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .45); animation: fade 1.2s .2s var(--ease) both; }
.hero__art img { width: 100%; height: auto; max-height: min(80vh, 800px); object-fit: cover; object-position: 50% 100%; transition: transform 1.2s var(--ease); }
.hero__art a:hover img { transform: scale(1.04); }
.hero__art figcaption { margin-top: 12px; font-size: .82rem; color: var(--muted); display: flex; justify-content: space-between; gap: 12px; }
.hero__art figcaption i { font: italic 500 1.05rem var(--serif); color: var(--ink); }

/* ---------- works ---------- */
.works { max-width: var(--max); margin: 0 auto; padding: clamp(40px, 6vw, 80px) var(--gutter); border-top: 1px solid var(--line); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 26px; }
.count { margin: 0; color: var(--muted); font-size: .85rem; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: clamp(24px, 4vw, 44px); }
.chip {
  font: 500 .85rem var(--sans); color: var(--muted); background: transparent; cursor: pointer;
  border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px;
  transition: color .2s, border-color .2s, background .2s;
}
.chip:hover { color: var(--ink); border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }

.grid { display: flex; align-items: flex-start; gap: clamp(14px, 2vw, 28px); }
.col { flex: 1 1 0; min-width: 0; }
.work { break-inside: avoid; margin: 0 0 clamp(22px, 3vw, 40px); display: block; text-decoration: none; opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.work.is-in { opacity: 1; transform: none; }
.work__img { overflow: hidden; border-radius: 3px; background: var(--bg-soft); }
.work__img img { width: 100%; height: auto; transition: transform 1s var(--ease), filter .6s; }
.work:hover .work__img img, .work:focus-visible .work__img img { transform: scale(1.045); }
.work__cap { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-top: 12px; }
.work__title { font: italic 500 1.25rem/1.2 var(--serif); }
.work__meta { font-size: .78rem; color: var(--muted); white-space: nowrap; }
.empty { color: var(--muted); font-style: italic; }

/* ---------- process: one portrait, four stages, scrubbed by scroll ---------- */
.process { max-width: var(--max); margin: 0 auto; padding: clamp(40px, 6vw, 80px) var(--gutter) 0; border-top: 1px solid var(--line); }
.process__track { position: relative; }
.process__stage { display: grid; grid-template-columns: 1fr minmax(260px, 440px); gap: clamp(28px, 6vw, 96px); align-items: center; padding-bottom: clamp(40px, 6vw, 80px); }
.process.is-scrub .process__track { height: calc(100vh + (var(--n) - 1) * 70vh); }
.process.is-scrub .process__stage { position: sticky; top: 72px; height: calc(100vh - 72px); padding-bottom: 24px; box-sizing: border-box; }
.process__info { display: flex; flex-direction: column; gap: 28px; }
.process__steps { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.step { border-bottom: 1px solid var(--line); }
.step__btn { display: grid; grid-template-columns: 3rem 1fr; gap: 14px; align-items: baseline; width: 100%; padding: 22px 0; text-align: left; cursor: pointer; background: none; border: 0; color: var(--muted); transition: color .35s, padding .5s var(--ease); }
.step__n { font: 500 .78rem var(--sans); letter-spacing: .12em; transition: color .35s; }
.step__t b { display: block; font: 500 clamp(1.5rem, 3vw, 2.4rem)/1.08 var(--serif); letter-spacing: -.01em; }
.step__t i { display: block; max-width: 34ch; font: 400 .9rem/1.5 var(--sans); font-style: normal; opacity: 0; max-height: 0; margin-top: 0; transition: opacity .4s, max-height .5s var(--ease), margin .5s var(--ease); }
.step.is-active .step__btn { color: var(--ink); padding-left: 12px; }
.step.is-active .step__n { color: var(--accent); }
.step.is-active .step__t i { opacity: .75; max-height: 4.5em; margin-top: 8px; }
.process__bar { height: 2px; background: var(--line); border-radius: 2px; overflow: hidden; }
.process__bar i { display: block; height: 100%; background: var(--accent); transform-origin: 0 50%; transform: scaleX(0); }
.process__frame { position: relative; width: 100%; max-height: calc(100vh - 72px - 48px); margin: 0 auto; border-radius: 4px; overflow: hidden; background: var(--bg-soft); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .45); cursor: zoom-in; }
.stage-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; will-change: opacity, transform; }
@media (max-width: 860px) {
  .process__stage { grid-template-columns: 1fr; gap: 18px; justify-items: center; align-content: center; }
  .process__frame { order: -1; width: auto; height: min(52vh, 86vw * 1.25); max-width: 100%; }
  .process__info { width: 100%; gap: 16px; }
  .step__btn { padding: 12px 0; }
  .step__t i { display: none; }
  .step.is-active .step__t i { display: block; }
}

/* ---------- projects: typographic index + live preview ---------- */
.projects { max-width: var(--max); margin: 0 auto; padding: clamp(40px, 6vw, 80px) var(--gutter) clamp(24px, 4vw, 48px); border-top: 1px solid var(--line); opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.projects.is-in { opacity: 1; transform: none; }
.projects__body { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(28px, 6vw, 96px); align-items: start; }
.proj-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.proj { border-bottom: 1px solid var(--line); }
.proj__row {
  display: grid; grid-template-columns: 3rem 1fr auto; gap: 14px; align-items: baseline; width: 100%;
  padding: 24px 0; text-align: left; cursor: pointer; background: none; border: 0; color: var(--muted);
  transition: color .35s, padding .5s var(--ease);
}
.proj__n { font: 500 .78rem var(--sans); letter-spacing: .12em; transition: color .35s; }
.proj__t b { display: block; font: 500 clamp(1.6rem, 3.2vw, 2.6rem)/1.08 var(--serif); letter-spacing: -.01em; }
.proj__t i { display: block; margin-top: 6px; font: 400 .85rem/1.4 var(--sans); font-style: normal; opacity: 0; max-height: 0; transition: opacity .4s, max-height .5s var(--ease); }
.proj__go { font-size: 1.3rem; opacity: 0; transform: translate(-8px, 6px); transition: opacity .35s, transform .5s var(--ease); }
.proj.is-active .proj__row { color: var(--ink); padding-left: 12px; }
.proj.is-active .proj__n { color: var(--accent); }
.proj.is-active .proj__t i { opacity: .75; max-height: 3.5em; }
.proj.is-active .proj__go { opacity: 1; transform: none; color: var(--accent); }
.proj__fold { display: none; }

.proj-preview { position: sticky; top: 96px; margin: 0; cursor: zoom-in; }
.proj-preview img {
  display: block; width: 100%; height: auto; max-height: 74vh; object-fit: contain; object-position: 50% 0;
  border-radius: 3px; box-shadow: 0 30px 60px -34px rgba(0, 0, 0, .45); background: var(--bg-soft);
  transition: opacity .15s linear, transform .8s var(--ease);
}
.proj-preview img.is-out { opacity: 0; transform: scale(.985); }
.proj-preview:hover img:not(.is-out) { transform: scale(1.015); }
.proj-preview figcaption { margin-top: 12px; font-size: .82rem; color: var(--muted); }

@media (max-width: 860px) {
  .projects__body { grid-template-columns: 1fr; }
  .proj-preview { display: none; }
  .proj__row { padding: 20px 0; }
  .proj.is-active .proj__row { padding-left: 0; }
  .proj__t i { opacity: .7; max-height: 3.5em; }                  /* no hover on a phone: the type is always shown */
  .proj__go { opacity: 1; transform: none; transition: transform .4s var(--ease); }
  .proj.is-open .proj__go { transform: rotate(90deg); }
  .proj__fold { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .55s var(--ease); }
  .proj__fold > div { overflow: hidden; }
  .proj.is-open .proj__fold { grid-template-rows: 1fr; }
  .proj__thumb { display: block; width: 100%; height: auto; margin: 2px 0 22px; border-radius: 3px; cursor: zoom-in; }
}

/* ---------- genre carousels (home) ---------- */
.genre { margin: 0 0 clamp(36px, 5vw, 64px); opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.genre.is-in { opacity: 1; transform: none; }
.genre__head { display: flex; align-items: center; justify-content: space-between; gap: 12px 16px; flex-wrap: wrap; margin-bottom: 18px; }
.genre h3 { margin: 0; font: 500 clamp(1.7rem, 3vw, 2.3rem)/1 var(--serif); }
.genre__n { margin-left: 4px; font: 500 .78rem var(--sans); color: var(--muted); vertical-align: super; }
.genre__tools { display: flex; align-items: center; gap: 8px; }
.genre__all { margin-right: 10px; font-size: .85rem; color: var(--muted); text-decoration: none; border-bottom: 1px solid var(--line); padding-bottom: 1px; transition: color .2s, border-color .2s; }
.genre__all:hover { color: var(--ink); border-color: var(--ink); }
.car-btn {
  display: grid; place-items: center; width: 36px; height: 36px; padding: 0 0 3px; cursor: pointer;
  font: 400 1.35rem/1 var(--sans); color: var(--ink); background: transparent;
  border: 1px solid var(--line); border-radius: 50%; transition: background .2s, color .2s, border-color .2s, opacity .2s;
}
.car-btn:hover:not(:disabled) { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.car-btn:disabled { opacity: .3; cursor: default; }
.car-btn[hidden] { display: none; }

.car {
  --slide-h: clamp(260px, 34vw, 430px); --gap: clamp(14px, 2vw, 24px);
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;   /* fallback when Swiper is unavailable */
}
.car::-webkit-scrollbar { display: none; }
.car__track { display: flex; }
.car.is-fallback .car__track { gap: var(--gap); }
/* Swiper "coverflow": the centred work is full, neighbours turn away and fade.
   --p / --a (distance from the centre) and --dur (transition time) are set from js/main.js. */
.car.swiper { --ease-flip: cubic-bezier(.22, .9, .3, 1); --dur: 0ms; overflow: hidden; scroll-snap-type: none; padding: 18px 0 8px; }
.car.swiper .swiper-wrapper { transition-timing-function: var(--ease-flip); pointer-events: none; }
/* in the 3D coverflow a slightly off-centre slide sits a hair behind the wrapper plane and the wrapper stole its clicks; Swiper's drag listens on .car, so this is safe */
.car.swiper .slide { pointer-events: auto; }
.car.swiper .slide {
  opacity: calc(1 - var(--a, 0) * .6);
  transition-property: transform, opacity;                 /* duration is set by Swiper (0 while dragging) */
  transition-timing-function: var(--ease-flip);
}
.car.swiper .slide:not(.swiper-slide-active) { cursor: pointer; }
/* the photo drifts against the movement and zooms a little while the slide is off-centre */
.car.swiper .slide__img img {
  translate: calc(var(--p, 0) * -7%) 0;
  scale: calc(1 + var(--a, 0) * .14 + var(--hz, 0));
  transition: translate var(--dur) var(--ease-flip), scale var(--dur) var(--ease-flip);
}
.car.swiper .slide:hover .slide__img img { transform: none; --hz: .03; }
.car.swiper .slide:not(.swiper-slide-active) .slide__img { filter: saturate(.75); }
.car.swiper .slide__img { transition: filter .6s var(--ease); }
/* the caption appears under the centred work */
.car.swiper .work__cap { opacity: 0; transform: translateY(10px); transition: opacity .5s var(--ease), transform .7s var(--ease); }
.car.swiper .swiper-slide-active .work__cap { opacity: 1; transform: none; transition-delay: .18s; }
.slide { flex: 0 0 auto; width: calc(var(--slide-h) * var(--r)); scroll-snap-align: start; display: block; text-decoration: none; -webkit-user-drag: none; }
.slide__img { height: var(--slide-h); overflow: hidden; border-radius: 3px; background: var(--bg-soft); }
.slide__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.slide:hover .slide__img img, .slide:focus-visible .slide__img img { transform: scale(1.045); }
.slide__more { display: grid; place-items: center; padding: 20px; text-align: center; background: transparent; border: 1px dashed var(--line); transition: border-color .2s; }
.slide--all:hover .slide__more { border-color: var(--ink); }
.slide__more span { display: block; max-width: 12ch; font: italic 500 1.3rem/1.25 var(--serif); color: var(--muted); }
.slide__more b { display: block; margin-top: 10px; font: 500 .9rem var(--sans); font-style: normal; color: var(--ink); }
.works__all { margin: 8px 0 0; text-align: center; }

/* technique notes under a carousel */
.genre__notes { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.genre__notes-label { margin: 0 0 14px; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.genre__notes-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 22px clamp(20px, 3vw, 44px); }
.note h4 { margin: 0 0 6px; font: italic 500 1.2rem/1.2 var(--serif); }
.note p { margin: 0; font-size: .88rem; line-height: 1.6; color: var(--muted); }

/* ---------- all-works page ---------- */
.works--page { border-top: 0; padding-top: clamp(28px, 5vw, 64px); }
.works--page h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); }
.controls { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 14px 24px; margin-bottom: clamp(24px, 4vw, 44px); }
.controls .filters { margin-bottom: 0; }
.sort { display: flex; align-items: center; gap: 10px; font-size: .85rem; color: var(--muted); }
.sort select {
  appearance: none; -webkit-appearance: none; cursor: pointer;
  font: 500 .85rem var(--sans); color: var(--ink); background-color: transparent;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%236f6a63' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
  border: 1px solid var(--line); border-radius: 999px; padding: 8px 34px 8px 16px; transition: border-color .2s;
}
.sort select:hover { border-color: var(--ink); }

/* ---------- about ---------- */
.about {
  max-width: var(--max); margin: 0 auto; padding: clamp(48px, 8vw, 110px) var(--gutter);
  border-top: 1px solid var(--line);
  display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(28px, 7vw, 110px); align-items: center;
}
.about__img { margin: 0; aspect-ratio: 3 / 4; border-radius: 4px; overflow: hidden; background: var(--bg-soft); position: sticky; top: 96px; align-self: start; }
.about__img img { width: 100%; height: 100%; object-fit: cover; }
.about__text h2 { margin-bottom: 26px; }
.about__lead { font: 400 clamp(1.3rem, 2.1vw, 1.75rem)/1.38 var(--serif); margin: 0 0 22px; max-width: 40ch; }
.about__text p { max-width: 60ch; margin: 0 0 14px; color: var(--muted); }
.about__text .about__lead { color: var(--ink); }
.facts { list-style: none; padding: 0; margin: 28px 0 0; border-top: 1px solid var(--line); }
.facts li { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: .92rem; line-height: 1.6; }
.facts span { color: var(--muted); }
.facts b { font-weight: 400; }

/* ---------- skills / qualities / goals ---------- */
.skills {
  max-width: var(--max); margin: 0 auto; padding: clamp(36px, 5vw, 72px) var(--gutter) clamp(52px, 8vw, 110px);
  border-top: 1px solid var(--line);
  display: grid; grid-template-columns: 1.15fr 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: start;
}
.skills h3 { margin: 0 0 20px; font: 500 clamp(1.5rem, 2.2vw, 1.9rem)/1.1 var(--serif); }
.skills p { margin: 0 0 14px; color: var(--muted); font-size: .96rem; }
.skills__quote { font: italic 400 1.3rem/1.4 var(--serif) !important; color: var(--ink) !important; margin-top: 22px !important; padding-left: 16px; border-left: 2px solid var(--accent); }
.skill-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.skill-list li { padding: 11px 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
@media (max-width: 960px) { .skills { grid-template-columns: 1fr; } }

/* ---------- contact ---------- */
.contact { text-align: center; padding: clamp(64px, 10vw, 140px) var(--gutter); }
.contact h2 { font-size: clamp(2.8rem, 8vw, 6.5rem); line-height: .95; }
.contact h2 em { color: var(--accent); }
.contact p { color: var(--muted); margin: 22px 0 0; }
.contact__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 36px; margin-top: 30px !important; }
.contact__links a { font: 500 clamp(1.3rem, 2.6vw, 1.9rem) var(--serif); color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; transition: color .2s; }
.contact__links a:hover { color: var(--accent); }

.foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 16px; padding: 22px var(--gutter); font-size: .82rem; color: var(--muted); }
.foot__social { display: flex; gap: 18px; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--ink); }

/* ---------- lightbox caption (PhotoSwipe) ---------- */
/* Lightbox: the usual dark look, but the dark area beside the photo is semi-transparent, so the page shows through it faintly.
   --pswp-bg alpha: lower = more see-through (1 = solid dark); the blur keeps the page behind from competing with the photo. */
.pswp { --pswp-bg: rgba(15, 14, 13, .62); }
.pswp__bg { -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
html.is-lightbox { overflow: hidden; }   /* no page scrollbar next to the lightbox */
/* caption: no plate; the bottom of the photo itself is darkened with a gradient (dark at the very bottom).
   js/main.js sizes this element to the photo's on-screen rectangle, so the side margins stay untouched. */
.pswp__caption {
  position: absolute; left: 0; right: 0; bottom: 0; height: 0; opacity: 0; box-sizing: border-box;
  display: flex; align-items: flex-end; justify-content: center; padding: 0 20px 26px; text-align: center;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, .22) 30%, rgba(0, 0, 0, .6) 65%, rgba(0, 0, 0, .9) 100%);
  transition: opacity .25s; pointer-events: none;
}
/* while zoomed in, nothing may cover the picture: hide the gradient/caption and the arrows */
.pswp--zoomed-in .pswp__caption { opacity: 0 !important; }
.pswp__caption.is-closing { transition: opacity .1s; }   /* gone before the photo starts shrinking back into its thumbnail */
.pswp--zoomed-in .pswp__button--arrow { opacity: 0; pointer-events: none; }
.pswp__capbox { color: #f6f1e8; text-shadow: 0 1px 12px rgba(0, 0, 0, .55); }
.pswp__capbox b { display: block; font: italic 500 1.5rem/1.2 var(--serif); }
.pswp__capbox span { display: block; margin-top: 2px; font: 400 .85rem var(--sans); color: rgba(246, 241, 232, .88); }
/* the title and the line under it appear one after the other for every photo */
.pswp__capbox.is-in b { animation: capIn .8s var(--ease) .2s backwards; }
.pswp__capbox.is-in span { animation: capIn .8s var(--ease) .38s backwards; }
@keyframes capIn { from { opacity: 0; transform: translateY(14px); } }

/* lightbox controls: small reactions on hover (individual transform properties, so PhotoSwipe's own transforms stay intact) */
.pswp__icn { transition: translate .35s var(--ease), rotate .45s var(--ease), scale .3s var(--ease); }
.pswp__button--close:hover .pswp__icn { rotate: 90deg; }
.pswp__button--zoom:hover .pswp__icn { scale: 1.18; }
.pswp__button--arrow--prev:hover .pswp__icn { translate: -5px 0; }
.pswp__button--arrow--next:hover .pswp__icn { translate: 5px 0; }
.pswp__button--arrow:active .pswp__icn, .pswp__button--close:active .pswp__icn { scale: .9; }
.pswp__counter { transition: opacity .4s var(--ease); }

/* ---------- motion ---------- */
@keyframes rise { from { transform: translateY(105%); } to { transform: none; } }
@keyframes fade { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .work { opacity: 1; transform: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; }
  .hero__art { max-width: 520px; }
  .about { grid-template-columns: 1fr; }
  .about__img { max-width: 420px; position: static; }
}
@media (max-width: 560px) {
  .genre__all { display: none; }
  .facts li { grid-template-columns: 96px 1fr; }
}

/* ---------- phone header: name + language + burger, links in a drop-down panel ---------- */
.burger { display: none; }
@media (max-width: 720px) {
  html { scroll-padding-top: 72px; }
  .top { gap: 10px; padding: 10px var(--gutter); }
  .brand { font-size: 1.3rem; white-space: nowrap; }
  .lang { margin-right: 0; }
  .burger {
    display: block; position: relative; flex: none; width: 40px; height: 40px; padding: 0; cursor: pointer;
    background: transparent; border: 1px solid var(--line); border-radius: 50%; transition: background .25s, border-color .25s;
  }
  .burger:hover { border-color: var(--ink); }
  .burger span { position: absolute; left: 11px; right: 11px; height: 1.5px; border-radius: 1px; background: var(--ink); transition: top .35s var(--ease), transform .35s var(--ease); }
  .burger span:nth-child(1) { top: 15px; }
  .burger span:nth-child(2) { top: 23px; }
  .top.menu-open .burger { background: var(--bg-soft); }
  .top.menu-open .burger span:nth-child(1) { top: 19px; transform: rotate(45deg); }
  .top.menu-open .burger span:nth-child(2) { top: 19px; transform: rotate(-45deg); }

  .nav {
    position: absolute; left: 0; right: 0; top: 100%; margin: 0; flex-direction: column; flex-wrap: nowrap; gap: 0;
    padding: 6px var(--gutter) 22px; background: var(--bg); border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px -28px rgba(0, 0, 0, .35);
    opacity: 0; visibility: hidden; transform: translateY(-10px);
    transition: opacity .3s var(--ease), transform .4s var(--ease), visibility 0s linear .4s;
  }
  .top.menu-open .nav { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .nav a { padding: 15px 0; border-bottom: 1px solid var(--line); font: 500 1.55rem/1 var(--serif); color: var(--ink); }
  .nav a:last-child { border-bottom: 0; }
  .nav a::after { display: none; }
  .nav a.is-active, .nav a[aria-current="page"] { color: var(--accent); }
  .top.menu-open { border-bottom-color: transparent; }
}
@media (max-width: 380px) {
  .brand { font-size: 1.12rem; }
  .lang button { padding: 7px 8px; }
}
