@import url("https://fonts.googleapis.com/css2?family=Jura:wght@300..700&display=swap");

/* ============================================================
   Design tokens — warm "beige moodboard / quiet luxury"
   ============================================================ */
:root {
  --paper: #f3ece1;
  --paper-2: #efe6d8;
  --cream: #ebe1d1;
  --sand: #e1d3bf;
  --clay: #cdb9a1;
  --espresso: #322a21;
  --mocha: #7c6f5e;
  --line: #ddd0bd;
  --accent: #a17f5b;
  --white: #fbf7f0;

  --font: "Jura", "Trebuchet MS", sans-serif;

  --container: 1280px;
  --pad-x: clamp(20px, 5vw, 64px);
  --section-y: clamp(72px, 11vw, 160px);
  --radius: 6px;
  --radius-img: 14px;

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

  /* fine paper-grain texture, so the "paper" tokens above read as an actual
     tactile surface instead of flat colour — layered under photos/content,
     never on top */
  --grain: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22200%22%20height%3D%22200%22%3E%3Cfilter%20id%3D%22n%22%3E%3CfeTurbulence%20type%3D%22fractalNoise%22%20baseFrequency%3D%220.85%22%20numOctaves%3D%222%22%20stitchTiles%3D%22stitch%22%2F%3E%3CfeColorMatrix%20type%3D%22matrix%22%20values%3D%220%200%200%200%200%20%200%200%200%200%200%20%200%200%200%200%200%20%200.06%200.06%200.06%200%200%22%2F%3E%3C%2Ffilter%3E%3Crect%20width%3D%22100%25%22%20height%3D%22100%25%22%20filter%3D%22url(%23n)%22%2F%3E%3C%2Fsvg%3E");
}

/* ============================================================
   Base
   ============================================================ */
body {
  font-family: var(--font);
  font-weight: 400;
  font-size: clamp(15px, 1.05vw, 16.5px);
  line-height: 1.75;
  color: var(--espresso);
  background-color: var(--paper);
  background-image: var(--grain);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection {
  background: var(--clay);
  color: var(--espresso);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

a { color: inherit; }
img { height: auto; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

main {
  counter-reset: section;
}

.section {
  position: relative;
  padding-block: var(--section-y);
}
.section--cream {
  background-color: var(--paper-2);
  background-image: var(--grain);
}

/* ============================================================
   Typography helpers
   ============================================================ */
.kicker,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.85em;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 22px;
}
.eyebrow__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

/* auto-numbered section eyebrows: 01 — Обо мне … */
.section .kicker::before {
  counter-increment: section;
  content: counter(section, decimal-leading-zero);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--espresso);
  padding-right: 0.85em;
  border-right: 1px solid var(--clay);
}

.section__title {
  font-family: var(--font);
  font-weight: 300;
  font-size: clamp(34px, 6vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.01em;
}
.section__head {
  max-width: 760px;
  margin-bottom: clamp(44px, 6vw, 72px);
}
.section__head--center {
  max-width: 640px;
  margin-inline: auto;
  text-align: center;
}
.section__head--center .kicker {
  justify-content: center;
}
.section__sub {
  margin-top: 22px;
  color: var(--mocha);
  font-size: 1.05em;
  max-width: 52ch;
}
.section__head--center .section__sub {
  margin-inline: auto;
}

/* center all section headings on mobile */
@media (max-width: 760px) {
  .section__head,
  .contacts__text {
    text-align: center;
  }
  .section__head .kicker,
  .contacts__text .kicker {
    justify-content: center;
  }
  .section__head .section__sub,
  .contacts__text p {
    margin-inline: auto;
  }
  .services__cta {
    text-align: center;
  }
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 32px;
  border-radius: 100px;
  font-family: var(--font);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.4s var(--ease), background-color 0.4s var(--ease),
    color 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn--solid {
  background-color: var(--espresso);
  color: var(--white);
}
.btn--solid:hover {
  background-color: var(--accent);
  box-shadow: 0 16px 34px -14px rgba(50, 42, 33, 0.55);
}
.btn--line {
  border-color: var(--espresso);
  color: var(--espresso);
}
.btn--line:hover {
  background-color: var(--espresso);
  color: var(--white);
}
.btn--ghost {
  border-color: var(--clay);
  color: var(--espresso);
  padding: 12px 24px;
}
.btn--ghost:hover { border-color: var(--espresso); }

/* ============================================================
   Header
   ============================================================ */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  transition: background-color 0.4s var(--ease), box-shadow 0.4s var(--ease),
    backdrop-filter 0.4s var(--ease);
}
.header.scrolled {
  background-color: rgba(243, 236, 225, 0.8);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
.header__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 78px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 13px;
  text-decoration: none;
  margin-right: auto;
}
.logo__mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--clay);
  border-radius: 50%;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  flex-shrink: 0;
}
.logo__name {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}
.nav__list { display: flex; gap: 34px; }
.nav__link {
  position: relative;
  text-decoration: none;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding-block: 6px;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.nav__link:hover::after { transform: scaleX(1); }
.header__cta { flex-shrink: 0; }

.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
}
.burger span {
  display: block;
  width: 24px;
  height: 1px;
  margin-inline: auto;
  background: var(--espresso);
  transform-origin: center;
  transition: transform 0.4s var(--ease), opacity 0.25s var(--ease);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  will-change: transform;
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

@media (max-width: 960px) {
  .nav,
  .header__cta { display: none; }
  .burger { display: flex; }
}

/* keep the burger visible above the drawer overlay while it's open, so it
   doubles as the close control once it has morphed into a cross */
.header.nav-open { z-index: 150; }

/* ============================================================
   Mobile drawer
   ============================================================ */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(50, 42, 33, 0.34);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}
.drawer[hidden] { display: block; pointer-events: none; }
.drawer.open { opacity: 1; pointer-events: auto; }
.drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(86vw, 380px);
  height: 100%;
  padding: 84px 34px 40px;
  background: var(--paper);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transform: translateX(100%);
  transition: transform 0.45s var(--ease);
  overflow-y: auto;
}
.drawer.open .drawer__panel { transform: translateX(0); }
.drawer__list { display: flex; flex-direction: column; }
.drawer__link {
  display: block;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  font-size: 22px;
  font-weight: 300;
  letter-spacing: 0.02em;
  text-decoration: none;
}
.drawer__cta { margin-top: 20px; width: 100%; }
.drawer__social {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-top: auto;
  padding-top: 26px;
}
.drawer__social a {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mocha);
  text-decoration: none;
}

/* ============================================================
   Hero — split screen: text left on paper, photo right to the edge
   ============================================================ */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  min-height: 100svh;
}
.hero__text {
  align-self: center;
  /* align text start with the site container, not the raw viewport edge */
  padding: 110px clamp(36px, 5vw, 80px) 64px
    max(var(--pad-x), calc((100vw - var(--container)) / 2 + var(--pad-x)));
}
.hero__title {
  font-weight: 300;
  font-size: clamp(52px, 8vw, 116px);
  line-height: 0.94;
  letter-spacing: -0.02em;
  margin-block: 12px 28px;
}
.hero__title-line { display: block; }
.hero__title-line--alt {
  font-weight: 300;
  color: inherit;
  margin-left: clamp(16px, 4vw, 64px);
}
.hero__lead {
  max-width: 460px;
  color: var(--mocha);
  font-size: 1.1em;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 38px;
}

.hero__media {
  position: relative;
  overflow: hidden;
  background: var(--cream);
}
.hero__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
}

.hero__scroll {
  position: absolute;
  left: clamp(36px, 5vw, 80px);
  bottom: 28px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--clay);
  border-radius: 50%;
  color: var(--mocha);
  text-decoration: none;
}
.hero__scroll svg { animation: nudge 1.8s var(--ease) infinite; }
@keyframes nudge {
  0%, 100% { transform: translateY(0); opacity: 0.5; }
  50% { transform: translateY(4px); opacity: 1; }
}

@media (max-width: 760px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .hero__media {
    order: -1;
    height: 60vh;
    min-height: 360px;
  }
  .hero__text {
    padding: 36px var(--pad-x) 40px;
  }
  .hero__lead { max-width: none; }
  .hero__title-line--alt { margin-left: 12%; }
  .hero__actions { flex-wrap: nowrap; gap: 10px; }
  .hero__actions .btn {
    flex: 1 1 0;
    min-width: 0;
    padding-inline: 12px;
    letter-spacing: 0.05em;
    white-space: nowrap;
  }
  .hero__scroll { display: none; }
}

/* ============================================================
   Marquee
   ============================================================ */
.marquee {
  border-block: 1px solid var(--line);
  background-color: var(--paper-2);
  background-image: var(--grain);
  overflow: hidden;
  padding-block: 16px;
}
.marquee__track {
  display: flex;
  align-items: center;
  gap: 30px;
  width: max-content;
  animation: marquee 34s linear infinite;
}
.marquee__track span {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--espresso);
}
.marquee__sep { color: var(--accent); }
@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ============================================================
   Services / price
   ============================================================ */
.price-list {
  border-top: 1px solid var(--line);
}
.price-item {
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding: clamp(22px, 3.4vw, 34px) 4px;
  border-bottom: 1px solid var(--line);
  transition: padding-left 0.45s var(--ease);
}
.price-item:hover { padding-left: 18px; }
.price-item__info {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.price-item__name {
  font-size: clamp(21px, 3vw, 30px);
  font-weight: 300;
  line-height: 1.2;
}
.price-item__note {
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--mocha);
}
.price-item__value {
  margin-left: auto;
  flex-shrink: 0;
  font-size: clamp(22px, 3.4vw, 34px);
  font-weight: 300;
  white-space: nowrap;
}
.services__cta { margin-top: 48px; }

/* ============================================================
   Gallery — Pinterest masonry
   ============================================================ */
.gallery__grid {
  columns: 4;
  column-gap: 16px;
}
.gallery__item {
  position: relative;
  break-inside: avoid;
  margin: 0 0 16px;
  border-radius: var(--radius-img);
  overflow: hidden;
  cursor: pointer;
  outline: none;
  background: var(--cream);
}
.gallery__item img {
  width: 100%;
  display: block;
  transition: transform 0.8s var(--ease);
}
.gallery__item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(50, 42, 33, 0.6), transparent 58%);
  opacity: 0;
  transition: opacity 0.45s var(--ease);
}
.gallery__item figcaption {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 16px;
  z-index: 1;
  color: var(--white);
  font-size: 15px;
  letter-spacing: 0.04em;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease);
}
.gallery__item:hover img,
.gallery__item:focus-visible img { transform: scale(1.06); }
.gallery__item:hover::after,
.gallery__item:focus-visible::after,
.gallery__item:hover figcaption,
.gallery__item:focus-visible figcaption { opacity: 1; }
.gallery__item:hover figcaption,
.gallery__item:focus-visible figcaption { transform: translateY(0); }
.gallery__item:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--accent); }

@media (max-width: 1100px) { .gallery__grid { columns: 3; } }
@media (max-width: 720px) { .gallery__grid { columns: 2; } }
@media (max-width: 460px) {
  .gallery__grid { column-gap: 12px; }
  .gallery__item { margin-bottom: 12px; }
  .gallery__item figcaption { font-size: 13px; left: 12px; bottom: 11px; }
}

/* ============================================================
   Education
   ============================================================ */
.education__intro {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(36px, 5vw, 80px);
  align-items: center;
  margin-bottom: clamp(40px, 5vw, 66px);
}
.education__head { margin-bottom: 0; }
.education__photo {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-img);
}
.education__photo img {
  width: 100%;
  display: block;
}
.education__photo figcaption {
  position: absolute;
  left: 16px;
  bottom: 16px;
  background: var(--paper);
  color: var(--espresso);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 9px 15px;
  border-radius: 100px;
  box-shadow: 0 14px 30px -16px rgba(50, 42, 33, 0.45);
}
/* desktop: balanced crop next to the heading */
@media (min-width: 861px) {
  .education__photo img {
    aspect-ratio: 4 / 5;
    height: auto;
    object-fit: cover;
    object-position: top center;
  }
}
/* mobile: show the whole photo, no cropping */
@media (max-width: 860px) {
  .education__intro { grid-template-columns: 1fr; }
  .education__photo img { height: auto; }
}

.courses { display: grid; gap: 18px; }
.course {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-img);
  overflow: hidden;
  /* hard paint containment: the collapsed panel can never bleed onto the
     next section, even when reveal transforms promote it to its own layer */
  contain: paint;
  transition: border-color 0.4s var(--ease);
}
.course:hover { border-color: var(--clay); }
.course__details { width: 100%; }
.course__summary {
  /* reset button defaults */
  width: 100%;
  background: none;
  border: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 18px;
  padding: clamp(24px, 3.4vw, 38px);
  align-items: center;
}
.course__head {
  grid-column: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 18px;
}
.course__name {
  font-size: clamp(25px, 3.6vw, 40px);
  font-weight: 300;
  line-height: 1.08;
}
.course__price {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--accent);
  background: var(--paper-2);
  border: 1px solid var(--line);
  padding: 6px 14px;
  border-radius: 100px;
}
.course__meta {
  grid-column: 1;
  color: var(--mocha);
  font-size: 14px;
  letter-spacing: 0.04em;
}
.course__icon {
  grid-column: 2;
  grid-row: 1 / span 2;
  position: relative;
  width: 40px;
  height: 40px;
  border: 1px solid var(--clay);
  border-radius: 50%;
  flex-shrink: 0;
}
.course__icon::before,
.course__icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  background: var(--espresso);
  transition: transform 0.4s var(--ease), opacity 0.4s var(--ease);
}
.course__icon::before { width: 14px; height: 1.5px; transform: translate(-50%, -50%); }
.course__icon::after { width: 1.5px; height: 14px; transform: translate(-50%, -50%); }
.course__details.is-open .course__icon::after { transform: translate(-50%, -50%) scaleY(0); opacity: 0; }

/* Accordion panel — fully JS-controlled height animation (reliable everywhere,
   no native <details> quirks). Collapsed only when JS is active, so no-JS users
   still see the content. */
.course__body {
  /* overflow:hidden (not clip) so the body forms a block formatting context and
     the inner content's margin-top can't escape and leave a phantom gap when
     collapsed. Bleed onto the next section is prevented by contain:paint on .course. */
  overflow: hidden;
}
.js .course__body {
  height: 0;
  transition: height 0.42s var(--ease);
}
.js .course__details.is-open .course__body {
  height: auto;
}
.course__body-inner {
  padding-inline: clamp(24px, 3.4vw, 38px);
}
/* bottom spacing via a child element so it animates with the height */
.course__body-inner::after {
  content: "";
  display: block;
  height: clamp(24px, 3.4vw, 38px);
}
.course__details.is-open .course__body-inner { border-top: 1px solid var(--line); }
.course__lead { font-weight: 600; margin-top: 24px; margin-bottom: 8px; letter-spacing: 0.02em; }
.course__body ul,
.course__days { display: grid; gap: 8px; color: var(--mocha); }
.course__body ul { padding-left: 20px; list-style: disc; }
.course__days { padding-left: 0; list-style: none; }
.course__days strong { color: var(--espresso); font-weight: 600; }
strong { color: var(--accent); }
.course__days strong { color: var(--espresso); }
.course__cta { margin-top: 30px; }

/* ============================================================
   Contacts
   ============================================================ */
.contacts__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 5vw, 90px);
  align-items: center;
}
.contacts__text p { color: var(--mocha); margin-top: 20px; max-width: 44ch; text-align: center; }
.contacts__text .btn { margin-top: 32px; text-align: center; }
.contacts__social { display: grid; gap: 0; }
.contacts__social a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 4px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  transition: padding-left 0.45s var(--ease);
}
.contacts__social li:first-child a { border-top: 1px solid var(--line); }
.contacts__social a:hover { padding-left: 14px; }
.contacts__social-label {
  font-size: clamp(23px, 3vw, 32px);
  font-weight: 300;
}
.contacts__social-handle { color: var(--mocha); font-size: 14px; letter-spacing: 0.02em; }

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

/* ============================================================
   Footer
   ============================================================ */
.footer {
  background-color: var(--espresso);
  background-image: var(--grain);
  color: var(--white);
  padding-block: 24px;
}
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 28px;
}
.footer__love {
  font-size: 14px;
  letter-spacing: 0.02em;
  color: var(--clay);
}
.footer__meta {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(251, 247, 240, 0.5);
}

.footer__dev {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(251, 247, 240, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.footer__dev-label {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(251, 247, 240, 0.5);
}
.footer__tg {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--white);
  background: rgba(251, 247, 240, 0.08);
  border: 1px solid rgba(251, 247, 240, 0.14);
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}
.footer__tg svg { color: var(--clay); transition: color 0.25s ease; }
.footer__tg:hover {
  background: var(--accent);
  border-color: var(--accent);
  transform: translateY(-2px);
}
.footer__tg:hover svg { color: var(--white); }
.footer__tg:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--accent); }

@media (max-width: 540px) {
  .footer__inner { justify-content: center; text-align: center; }
  .footer__dev { flex-direction: column; gap: 10px; }
}

/* ============================================================
   Back to top
   ============================================================ */
.to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 60;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: var(--espresso);
  color: var(--white);
  cursor: pointer;
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease),
    background-color 0.35s var(--ease);
}
.to-top.show { opacity: 1; transform: translateY(0); pointer-events: auto; }
.to-top:hover { background: var(--accent); }

/* ============================================================
   Lightbox
   ============================================================ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: clamp(72px, 10vw, 96px) clamp(72px, 9vw, 110px);
  background: rgba(28, 23, 18, 0.93);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}
.lightbox[hidden] { display: grid; pointer-events: none; }
.lightbox.open { opacity: 1; pointer-events: auto; }
.lightbox__figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  max-height: 100%;
  min-width: 0;
}
.lightbox__img {
  max-width: 100%;
  max-height: 78vh;
  width: auto;
  border-radius: 6px;
  object-fit: contain;
  transform: scale(0.96);
  transition: transform 0.35s var(--ease);
}
.lightbox.open .lightbox__img { transform: scale(1); }
.lightbox__caption {
  color: var(--white);
  font-size: 14px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-align: center;
}
.lightbox__close,
.lightbox__nav {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: rgba(251, 247, 240, 0.12);
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.3s var(--ease);
}
.lightbox__close svg,
.lightbox__nav svg { display: block; }
.lightbox__close:hover,
.lightbox__nav:hover { background: rgba(251, 247, 240, 0.28); }
.lightbox__close { top: 20px; right: 20px; width: 48px; height: 48px; }
.lightbox__nav { top: 50%; transform: translateY(-50%); width: 52px; height: 52px; }
.lightbox__nav--prev { left: clamp(12px, 2.5vw, 28px); }
.lightbox__nav--next { right: clamp(12px, 2.5vw, 28px); }

@media (max-width: 600px) {
  .lightbox { padding: 64px 16px 88px; }
  .lightbox__img { max-height: 70vh; }
  .lightbox__nav { top: auto; bottom: 20px; transform: none; width: 48px; height: 48px; }
  .lightbox__nav--prev { left: calc(50% - 56px); right: auto; }
  .lightbox__nav--next { left: calc(50% + 8px); right: auto; }
}

/* ============================================================
   Scroll reveal
   ============================================================ */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  transition-delay: 0ms;
}
.js [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}
.js [data-reveal-delay="1"] { transition-delay: 100ms; }
.js [data-reveal-delay="2"] { transition-delay: 200ms; }
.js [data-reveal-delay="3"] { transition-delay: 300ms; }

@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .marquee__track,
  .hero__scroll svg { animation: none; }
}
