/* =====================================================================
   Anna Stychynska Photographer — Redesign
   Editorial photography portfolio. Cream / terracotta / ink.
   Fonts: Fraunces (display) + Hanken Grotesk (body), self-hosted.
   Structure is modular by section for later WordPress mapping.
   ===================================================================== */

/* ---------- Design tokens ---------- */
:root {
  --cream:      #F4EFE8;
  --paper:      #FBF8F3;
  --ink:        #1B1916;
  --ink-soft:   #2A2723;
  --text:       #2C2823;
  --muted:      #6E655A;
  --line:       #E4DBCF;
  --line-dark:  #3A352F;
  --accent:     #C2674A;   /* terracotta — refined from original coral */
  --accent-dk:  #A8523A;
  --accent-tint:#EBD9CF;
  --on-dark:    #EDE6DB;
  --on-dark-mut:#A89D8E;

  --maxw: 1280px;
  --wide: 1500px;
  --gutter: clamp(1.25rem, 4vw, 4rem);

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Hanken Grotesk", -apple-system, BlinkMacSystemFont, sans-serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 0.6s;

  --shadow-sm: 0 1px 2px rgba(27, 25, 22, 0.06), 0 8px 24px -12px rgba(27, 25, 22, 0.18);
  --shadow-md: 0 20px 50px -28px rgba(27, 25, 22, 0.45);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  font-size: clamp(1rem, 0.95rem + 0.2vw, 1.0625rem);
  line-height: 1.7;
  color: var(--text);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; padding: 0; }

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

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: -0.01em;
  color: var(--ink);
  font-optical-sizing: auto;
}

.h-display {
  font-size: clamp(2.75rem, 1.6rem + 5.4vw, 6rem);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.02em;
}
.h-xl { font-size: clamp(2.1rem, 1.3rem + 3.4vw, 3.9rem); }
.h-lg { font-size: clamp(1.7rem, 1.2rem + 2vw, 2.6rem); }

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow--light { color: var(--accent); }

.lead {
  font-size: clamp(1.06rem, 1rem + 0.35vw, 1.25rem);
  color: var(--muted);
  line-height: 1.65;
}

em, .italic { font-style: italic; }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.container--wide { max-width: var(--wide); }

.section { padding-block: clamp(4.5rem, 3rem + 8vw, 9rem); }
.section--tight { padding-block: clamp(3.5rem, 2.5rem + 5vw, 6rem); }

.section-head { max-width: 46rem; margin-bottom: clamp(2.5rem, 1.5rem + 3vw, 4rem); }
.section-head .eyebrow { display: block; margin-bottom: 1.1rem; }
.section-head p { margin-top: 1.25rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  padding: 0.95rem 1.7rem;
  border-radius: 2px;
  transition: transform 0.3s var(--ease), background-color 0.3s var(--ease),
              color 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary { background: var(--accent); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--accent-dk); }

.btn--ghost { border: 1px solid currentColor; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--cream); }

.btn--light { border: 1px solid rgba(237,230,219,0.4); color: var(--on-dark); }
.btn--light:hover { background: var(--on-dark); color: var(--ink); }

.btn .arrow { transition: transform 0.3s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 115; /* above .mobile-menu (110) so burger X stays visible when menu is open */
  padding-block: 1.4rem;
  transition: padding 0.4s var(--ease), background-color 0.4s var(--ease),
              box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  padding-block: 0.85rem;
  background: rgba(244, 239, 232, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.brand { display: flex; flex-direction: column; line-height: 1; }
/* default: light text for use over the hero image; dark once scrolled */
.site-header:not(.is-scrolled) .nav { text-shadow: 0 1px 14px rgba(0,0,0,0.28); }
.brand__name {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: #fff;
  transition: color 0.4s var(--ease);
}
.brand__role {
  font-family: var(--font-body);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.74);
  margin-top: 0.35rem;
  transition: color 0.4s var(--ease);
}
.site-header.is-scrolled .brand__name { color: var(--ink); }
.site-header.is-scrolled .brand__role { color: var(--muted); }
.nav__links { display: flex; align-items: center; gap: 2.1rem; }
.nav__links a {
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: rgba(255,255,255,0.92);
  position: relative;
  padding-block: 0.2rem;
  transition: color 0.4s var(--ease);
}
.site-header.is-scrolled .nav__links a { color: var(--text); }
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 100%; height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease);
}
.nav__links a:hover::after, .nav__links a.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav__cta { display: flex; align-items: center; gap: 1.25rem; }

/* burger */
.burger { display: none; width: 30px; height: 22px; position: relative; z-index: 120; }
.burger span {
  position: absolute; left: 0; width: 100%; height: 2px; background: #fff;
  transition: transform 0.4s var(--ease), opacity 0.3s var(--ease), top 0.3s var(--ease), background-color 0.4s var(--ease);
}
.site-header.is-scrolled .burger span { background: var(--ink); }
body.menu-open .site-header { background: var(--cream); box-shadow: none; border-color: transparent; }
body.menu-open .brand__name { color: var(--ink); }
body.menu-open .brand__role { color: var(--muted); }
body.menu-open .site-header .nav { text-shadow: none; }
body.menu-open .burger span { background: var(--ink); }
.burger span:nth-child(1) { top: 0; }
.burger span:nth-child(2) { top: 10px; }
.burger span:nth-child(3) { top: 20px; }
body.menu-open .burger span:nth-child(1) { top: 10px; transform: rotate(45deg); }
body.menu-open .burger span:nth-child(2) { opacity: 0; }
body.menu-open .burger span:nth-child(3) { top: 10px; transform: rotate(-45deg); }

/* ---------- Hero (full-bleed, image-dominant) ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: #fff;
  background: var(--ink);
}
/* triptych background */
.hero__media {
  position: absolute; inset: 0;
  display: grid;
  grid-template-columns: 1fr 1.25fr 1fr;
  gap: 0;
  z-index: 0;
}
.hero__img { position: relative; overflow: hidden; margin: 0; }
.hero__img img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.02);
  animation: heroZoom 18s ease-in-out infinite alternate;
}
.hero__img--center img { animation-duration: 22s; object-position: center 22%; }
.hero__img--side:last-child img { animation-duration: 20s; }
@keyframes heroZoom { from { transform: scale(1.02); } to { transform: scale(1.12); } }

.hero__scrim {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(180deg, rgba(20,18,16,0.55) 0%, rgba(20,18,16,0.12) 26%, rgba(20,18,16,0.10) 52%, rgba(20,18,16,0.78) 100%),
    radial-gradient(120% 80% at 50% 88%, rgba(20,18,16,0.55), transparent 60%);
}

.hero__content {
  position: relative; z-index: 2;
  width: 100%;
  padding-bottom: clamp(4.5rem, 3rem + 6vw, 8rem);
  padding-top: 8rem;
  text-align: center;
  max-width: 60rem;
}
.hero__eyebrow {
  display: flex; align-items: center; justify-content: center;
  flex-wrap: nowrap; white-space: nowrap;
  gap: clamp(0.5rem, 2vw, 0.9rem);
  margin-bottom: 1.7rem;
  color: #fff; opacity: 0.9;
  text-shadow: 0 1px 14px rgba(0,0,0,0.45);
}
.hero__eyebrow::before, .hero__eyebrow::after {
  content: ""; flex: 0 0 auto;
  width: clamp(1rem, 4vw, 1.8rem); height: 1px;
  background: var(--accent);
}
.hero__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.6rem, 1.5rem + 4.6vw, 5.4rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 30px rgba(0,0,0,0.35);
}
.hero__title-accent { font-style: italic; color: #fff; }
.hero__sub {
  max-width: 38rem; margin: 0 auto 2.3rem;
  font-size: clamp(1.02rem, 0.96rem + 0.35vw, 1.22rem);
  line-height: 1.6;
  color: rgba(255,255,255,0.9);
  text-shadow: 0 1px 16px rgba(0,0,0,0.4);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; margin-bottom: 2.2rem; }
.hero__langs {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 0.6rem 0.9rem;
  font-size: 0.8rem; letter-spacing: 0.04em; color: rgba(255,255,255,0.78);
}
.hero__langs span:first-child {
  font-weight: 600; text-transform: uppercase; letter-spacing: 0.18em; font-size: 0.7rem; color: #fff;
}

/* scroll cue */
.hero__scroll {
  position: absolute; left: 50%; bottom: 1.4rem; z-index: 2;
  transform: translateX(-50%);
  width: 1px; height: 3.4rem; overflow: hidden;
}
.hero__scroll-line { position: absolute; inset: 0; background: rgba(255,255,255,0.35); }
.hero__scroll-line::after {
  content: ""; position: absolute; left: 0; top: -50%; width: 100%; height: 50%;
  background: #fff; animation: scrollCue 2.2s var(--ease) infinite;
}
@keyframes scrollCue { 0% { top: -50%; } 60%,100% { top: 100%; } }

/* marquee strip under hero */
.marquee {
  border-block: 1px solid var(--line);
  padding-block: 1.1rem;
  overflow: hidden;
  white-space: nowrap;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track { display: inline-flex; gap: 3rem; animation: marquee 32s linear infinite; }
.marquee__track span {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.1rem, 0.9rem + 0.8vw, 1.6rem);
  color: var(--ink);
  display: inline-flex; align-items: center; gap: 3rem;
}
.marquee__track span::after { content: "✦"; color: var(--accent); font-style: normal; font-size: 0.8em; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Showcase (scroll-driven reveal) ----------
   A large photograph is hinted, expands to full-bleed as it reaches
   the centre of the viewport, then recedes again. Driven by a CSS var
   (--p, 0..1, peaks at centre) set from a throttled rAF scroll handler. */
/* Showcase: scroll-driven, 1:1 progress via --p (0=hidden, 1=full reveal) */
.showcase {
  position: relative;
  background: var(--ink);
  padding: 0;
  overflow: hidden;
  --p: 0;
}
.showcase__sticky {
  display: flex; align-items: stretch;
  overflow: hidden;
  padding: 0;
  height: 90vh; max-height: 900px;
}
.showcase__frame {
  position: relative;
  width: 100%; height: 100%;
  overflow: hidden;
  /* driven directly by --p, no CSS transition so scroll is 1:1 */
  clip-path: inset(calc((1 - var(--p)) * 6%) calc((1 - var(--p)) * 10%));
}
.showcase__img {
  width: 100%; height: 100%; object-fit: cover;
  object-position: center 40%;
  /* subtle zoom releases as image opens */
  transform: scale(calc(1.06 - var(--p) * 0.06));
}
.showcase__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(20,18,16,0.05) 0%,
    rgba(20,18,16,0.1) 40%,
    rgba(20,18,16,0.72) 80%,
    rgba(20,18,16,0.88) 100%
  );
}
.showcase__caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: clamp(2.5rem, 5vw, 6rem) clamp(1.5rem, 6vw, 8rem);
  display: flex; justify-content: center;
  /* short ease on caption only so text doesn't flutter at low fps */
  opacity: var(--p);
  transform: translateY(calc((1 - var(--p)) * 1.2rem));
  transition: opacity 0.12s ease, transform 0.12s ease;
}
.showcase__quote {
  max-width: 48rem; text-align: center;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 1.1rem + 2.6vw, 3.2rem);
  line-height: 1.2; color: #fff;
  text-wrap: balance;
  text-shadow: 0 2px 8px rgba(0,0,0,0.6), 0 8px 32px rgba(0,0,0,0.5);
  letter-spacing: -0.01em;
}
.showcase__quote em { font-style: italic; color: var(--accent); }

/* ---------- About ---------- */
.about__grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2.5rem, 1rem + 5vw, 6rem);
  align-items: center;
}
.about__media { position: relative; }
.about__media img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover;
  border-radius: 3px; box-shadow: var(--shadow-md);
}
.about__since {
  position: absolute; right: -1.2rem; bottom: -1.2rem;
  background: var(--accent); color: #fff;
  width: 7.5rem; height: 7.5rem; border-radius: 50%;
  display: grid; place-content: center; text-align: center;
  font-family: var(--font-display); line-height: 1.1;
  box-shadow: var(--shadow-md);
}
.about__since strong { display: block; font-size: 1.9rem; }
.about__since span { font-size: 0.62rem; font-family: var(--font-body); letter-spacing: 0.18em; text-transform: uppercase; }
.about__body p + p { margin-top: 1.2rem; }
.about__quote {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.25rem);
  line-height: 1.25;
  color: var(--ink);
  margin: 2rem 0;
  text-wrap: balance;
}
.about__quote .accent { color: var(--accent); font-style: italic; }
.about__signoff { display: flex; flex-wrap: wrap; gap: 2rem 3rem; margin-top: 2rem; }
.about__stat strong { font-family: var(--font-display); font-size: 2rem; color: var(--ink); display: block; }
.about__stat span { font-size: 0.82rem; color: var(--muted); letter-spacing: 0.03em; }

/* ---------- Portfolio ---------- */
.portfolio { background: var(--paper); }
.portfolio__head {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: 2rem; margin-bottom: clamp(2rem, 1rem + 2vw, 3rem);
}
.filter { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.filter button {
  font-size: 0.82rem; font-weight: 600; letter-spacing: 0.04em;
  padding: 0.55rem 1.15rem; border-radius: 50px;
  border: 1px solid var(--line); color: var(--muted);
  transition: all 0.3s var(--ease);
}
.filter button:hover { border-color: var(--ink); color: var(--ink); }
.filter button.is-active { background: var(--ink); border-color: var(--ink); color: var(--cream); }

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  align-items: start;
}
.gallery__item {
  position: relative;
  overflow: hidden;
  border-radius: 2px;
  cursor: pointer;
  background: var(--ink-soft);
  aspect-ratio: 3 / 4;   /* uniform cells → grid fills row-major, no gaps */
}
.gallery__item img {
  width: 100%; height: 100%; display: block;
  object-fit: cover; object-position: center;
  transition: transform 0.7s var(--ease);
}
/* fade-in for newly shown / filtered items */
@keyframes galFadeIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.gallery__item.is-anim { animation: galFadeIn 0.5s var(--ease) both; }
/* fade-out before removal (show less) */
.gallery__item.is-leaving { opacity: 0; transform: translateY(8px); transition: opacity 0.3s var(--ease), transform 0.3s var(--ease); }
.gallery__item::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(27,25,22,0.55), transparent 55%);
  opacity: 0; transition: opacity 0.4s var(--ease);
}
.gallery__item:hover img { transform: scale(1.06); }
.gallery__item:hover::after { opacity: 1; }
.gallery__cap {
  position: absolute; left: 1rem; bottom: 0.85rem; z-index: 2;
  color: #fff; opacity: 0; transform: translateY(8px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
  font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 600;
}
.gallery__item:hover .gallery__cap { opacity: 1; transform: translateY(0); }
.gallery__item.is-hidden { display: none; }

/* gallery: show more / less */
.gallery__more {
  display: flex; justify-content: center; gap: 0.75rem;
  margin-top: clamp(1.75rem, 1rem + 2vw, 2.75rem);
}
.gallery__more button[hidden] { display: none; }

/* ---------- Prices ---------- */
.prices__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-items: stretch;
}
.price-card {
  display: flex; flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 2.2rem 2rem 2rem;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
}
.price-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }
.price-card--featured { background: var(--ink); border-color: var(--ink); color: var(--on-dark); }
.price-card--featured .price-card__name,
.price-card--featured .price-card__price { color: var(--on-dark); }
.price-card--featured .price-card__feats li { color: var(--on-dark-mut); }
.price-card--featured .price-card__feats li::before { color: var(--accent); }
.price-card--featured .price-card__desc { color: var(--on-dark-mut); }

.price-card__badge {
  align-self: flex-start;
  font-size: 0.68rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 1rem;
}
.price-card--featured .price-card__badge { background: var(--accent); color:#fff; padding: 0.3rem 0.7rem; border-radius: 50px; }
.price-card__name { font-family: var(--font-display); font-size: 1.5rem; color: var(--ink); margin-bottom: 0.6rem; }
.price-card__price { font-family: var(--font-display); font-size: 2.6rem; color: var(--ink); line-height: 1; margin-bottom: 0.4rem; }
.price-card__price small { font-family: var(--font-body); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); display: block; margin-bottom: 0.5rem; }
.price-card__desc { color: var(--muted); font-size: 0.96rem; margin-bottom: 1.5rem; }
.price-card__feats { display: flex; flex-direction: column; gap: 0.7rem; margin-bottom: 2rem; flex: 1; }
.price-card__feats li { position: relative; padding-left: 1.6rem; font-size: 0.92rem; color: var(--text); }
.price-card__feats li::before { content: "✦"; position: absolute; left: 0; color: var(--accent); font-size: 0.8em; top: 0.15em; }
.price-card .btn { width: 100%; justify-content: center; }
.prices__note { margin-top: 1.5rem; font-size: 0.85rem; color: var(--muted); text-align: center; }

/* ---------- Testimonials ---------- */
.testimonials { background: var(--accent-tint); }
.tlist {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.tcard {
  background: var(--paper);
  border-radius: 4px;
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}
.tcard__quote { font-family: var(--font-display); font-size: 1.18rem; line-height: 1.45; color: var(--ink-soft); margin-bottom: 1.2rem; }
.tcard__quote::before { content: "“"; color: var(--accent); font-size: 1.4em; line-height: 0; vertical-align: -0.3em; margin-right: 0.1em; }
.tcard__who { display: flex; align-items: center; gap: 0.7rem; }
.tcard__avatar {
  width: 2.4rem; height: 2.4rem; border-radius: 50%;
  background: var(--accent); color: #fff;
  display: grid; place-content: center; font-family: var(--font-display); font-size: 1rem;
}
.tcard__name { font-weight: 600; font-size: 0.92rem; color: var(--ink); }
.tcard__role { font-size: 0.8rem; color: var(--muted); }

/* ---------- Contact ---------- */
.contact { background: var(--ink); color: var(--on-dark); position: relative; overflow: hidden; }
.contact__grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(2.5rem, 1rem + 5vw, 6rem); align-items: center; }
.contact h2 { color: var(--on-dark); }
.contact h2 .accent { color: var(--accent); font-style: italic; }
.contact__lead { color: var(--on-dark-mut); margin: 1.4rem 0 2.2rem; max-width: 30rem; }
.contact__actions { display: flex; flex-wrap: wrap; gap: 1rem; }
.contact__details { display: flex; flex-direction: column; gap: 1.4rem; }
.contact__item { display: flex; flex-direction: column; gap: 0.2rem; padding-bottom: 1.3rem; border-bottom: 1px solid var(--line-dark); }
.contact__item .label { font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--on-dark-mut); }
.contact__item a, .contact__item span.val { font-family: var(--font-display); font-size: 1.35rem; color: var(--on-dark); transition: color 0.3s var(--ease); }
.contact__item a:hover { color: var(--accent); }
.contact__socials { display: flex; gap: 0.8rem; margin-top: 0.4rem; }
.contact__socials a {
  width: 2.8rem; height: 2.8rem; border-radius: 50%;
  border: 1px solid var(--line-dark);
  display: grid; place-content: center;
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.contact__socials a:hover { background: var(--accent); border-color: var(--accent); transform: translateY(-3px); }
.contact__socials svg { width: 1.15rem; height: 1.15rem; fill: var(--on-dark); }
.contact__socials a:hover svg { fill: #fff; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--on-dark-mut); border-top: 1px solid var(--line-dark); padding-block: 2.4rem 1.6rem; }
.site-footer .footer__main { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.2rem; }
.site-footer .brand__name { color: var(--on-dark); font-size: 1.2rem; }
.footer__meta { font-size: 0.85rem; }
.footer__links { display: flex; gap: 1.6rem; font-size: 0.88rem; }
.footer__links a { transition: color 0.3s var(--ease); }
.footer__links a:hover { color: var(--accent); }
.footer__credit {
  margin-top: 1.8rem; padding-top: 1.3rem;
  border-top: 1px solid var(--line-dark);
  font-size: 0.78rem; letter-spacing: 0.02em; color: var(--on-dark-mut);
  text-align: center;
}
.footer__credit a {
  color: var(--on-dark-mut);
  text-decoration: none;
  border-bottom: 1px solid rgba(168,157,142,0.35);
  padding-bottom: 1px;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.footer__credit a:hover { color: var(--accent); border-bottom-color: var(--accent); }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(20, 18, 16, 0.94);
  display: flex; align-items: center; justify-content: center;
  padding: clamp(1rem, 4vw, 3rem);
  opacity: 0; visibility: hidden; transition: opacity 0.4s var(--ease), visibility 0.4s;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox img { max-width: 100%; max-height: 90vh; border-radius: 0; box-shadow: none; display: block; }
.lightbox__close, .lightbox__nav {
  position: absolute; color: #fff; width: 3rem; height: 3rem;
  display: grid; place-content: center; font-size: 1.4rem;
  border-radius: 50%; transition: background-color 0.3s var(--ease);
}
.lightbox__close:hover, .lightbox__nav:hover { background: rgba(255,255,255,0.12); }
.lightbox__close { top: 1.2rem; right: 1.2rem; }
.lightbox__nav { top: 50%; transform: translateY(-50%); font-size: 2rem; }
.lightbox__nav--prev { left: 1rem; }
.lightbox__nav--next { right: 1rem; }

/* ---------- Mobile menu panel ---------- */
.mobile-menu {
  position: fixed; inset: 0; z-index: 110;
  background: var(--cream);
  display: flex; flex-direction: column; justify-content: center;
  padding: var(--gutter);
  transform: translateY(-100%);
  transition: transform 0.5s var(--ease);
}
body.menu-open .mobile-menu { transform: translateY(0); }
.mobile-menu a {
  font-family: var(--font-display); font-size: 2.2rem; color: var(--ink);
  padding-block: 0.5rem; transition: color 0.3s var(--ease); opacity: 0; transform: translateY(12px);
}
body.menu-open .mobile-menu a { opacity: 1; transform: translateY(0); transition: opacity 0.5s var(--ease), transform 0.5s var(--ease), color 0.3s var(--ease); }
body.menu-open .mobile-menu a:nth-child(1) { transition-delay: 0.12s; }
body.menu-open .mobile-menu a:nth-child(2) { transition-delay: 0.18s; }
body.menu-open .mobile-menu a:nth-child(3) { transition-delay: 0.24s; }
body.menu-open .mobile-menu a:nth-child(4) { transition-delay: 0.30s; }
body.menu-open .mobile-menu a:nth-child(5) { transition-delay: 0.36s; }
.mobile-menu a:hover { color: var(--accent); }

/* ---------- Legal pages ---------- */
.legal { padding-top: clamp(8rem, 7rem + 5vw, 11rem); padding-bottom: clamp(4rem, 3rem + 4vw, 7rem); }
.legal__inner { max-width: 48rem; }
.legal h1 { font-size: clamp(2.2rem, 1.5rem + 2.5vw, 3.4rem); margin-bottom: 2rem; }
.legal h2 { font-size: 1.4rem; margin: 2.4rem 0 0.9rem; }
.legal h3 { font-size: 1.1rem; margin: 1.6rem 0 0.5rem; font-family: var(--font-body); font-weight: 700; }
.legal p, .legal li { color: var(--text); margin-bottom: 0.9rem; }
.legal ul { list-style: disc; padding-left: 1.4rem; }
.legal a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.legal .back-link { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 600; color: var(--accent); margin-bottom: 2.5rem; text-decoration: none; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }

/* hero load animation */
.hero [data-anim] { opacity: 0; transform: translateY(24px); animation: rise 0.9s var(--ease) forwards; }
.hero [data-anim="1"] { animation-delay: 0.1s; }
.hero [data-anim="2"] { animation-delay: 0.22s; }
.hero [data-anim="3"] { animation-delay: 0.34s; }
.hero [data-anim="4"] { animation-delay: 0.46s; }
.hero__media { opacity: 0; animation: heroFade 1.4s var(--ease) 0.1s forwards; }
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes heroFade { to { opacity: 1; } }

/* =====================================================================
   Responsive
   ===================================================================== */
@media (max-width: 1024px) {
  .hero__media { grid-template-columns: 0.8fr 1.4fr 0.8fr; }
  .prices__grid { grid-template-columns: 1fr; max-width: 32rem; margin-inline: auto; }
}

@media (max-width: 820px) {
  .nav__links, .nav__cta .btn { display: none; }
  .burger { display: block; }
  .nav__cta { gap: 0; }

  /* hero: single dominant image on smaller screens */
  .hero__media { grid-template-columns: 1fr; }
  .hero__img--side { display: none; }
  .hero__img--center img { object-position: center 18%; }
  .hero__content { text-align: center; padding-bottom: clamp(3.5rem, 2rem + 6vw, 6rem); }

  .showcase__sticky { height: 72vh; }
  /* --p still drives animation; just slightly gentler insets on tablet */
  .showcase__frame { clip-path: inset(calc((1 - var(--p)) * 4%) calc((1 - var(--p)) * 6%)); }

  .about__grid { grid-template-columns: 1fr; }
  .about__media { max-width: 24rem; }
  .contact__grid { grid-template-columns: 1fr; }
  .tlist { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .gallery { grid-template-columns: repeat(2, 1fr); }
  /* USP row: keep all three blocks side by side on one line */
  .about__signoff { flex-wrap: nowrap; gap: 0.85rem; justify-content: space-between; }
  .about__stat { flex: 1 1 0; min-width: 0; }
  .about__stat strong { font-size: 1.45rem; }
  .about__stat span { font-size: 0.66rem; line-height: 1.25; letter-spacing: 0; }
  .about__since { width: 6rem; height: 6rem; right: 0.5rem; }
  .about__since strong { font-size: 1.4rem; }
  .site-footer .footer__main { flex-direction: column; text-align: center; }
  .lightbox__nav { font-size: 1.4rem; width: 2.5rem; height: 2.5rem; }
  /* hero eyebrow: shrink so terms + rules stay on one centred line */
  .hero__eyebrow { font-size: 0.62rem; letter-spacing: 0.16em; }
  .showcase__sticky { height: 65vh; }
  /* mobile keeps the scroll animation (JS-driven via --p); just a smaller quote */
  .showcase__quote { font-size: clamp(1.3rem, 1rem + 2vw, 1.8rem); }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .reveal { opacity: 1; transform: none; }
  .hero [data-anim], .hero__media { opacity: 1; transform: none; }
  .hero__img img { animation: none; }
  .marquee__track { animation: none; }
  /* reduced-motion: show fully revealed, no animation */
  .showcase { --p: 1; }
  .showcase__caption { transition: none; }
}
