/* ==========================================================================
   Candid Conspiracy: landing page styles
   Structure: tokens, base, utilities, components, sections, motion
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --ink: #1a1a1a;
  --ink-soft: #5a554f;
  --white: #ffffff;
  --fur: #f1f0ee;            /* pale grey band, lemur fur */
  --line: #e4e1dc;
  --accent: #b9502f;         /* lemur-eye amber: marks, fills */
  --accent-strong: #a5432a;  /* text and buttons, 6.4:1 on white */

  --font-display: "Newsreader", Georgia, "Times New Roman", serif;
  --font-body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;

  --container: 1360px;
  --gutter: clamp(16px, 4vw, 40px);
  --edge: max(var(--gutter), calc((100% - var(--container)) / 2));
  --header-h: 68px;
  --section-y: clamp(72px, 10vw, 136px);
  --radius: 3px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

@media (min-width: 960px) {
  :root { --header-h: 80px; }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}
html.menu-open { overflow: hidden; }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, p, ul, figure, blockquote { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
[hidden] { display: none !important; }

:focus-visible {
  outline: 2px solid var(--accent-strong);
  outline-offset: 3px;
}
.on-dark :focus-visible { outline-color: var(--white); }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.015em;
}
h2 {
  font-size: clamp(2rem, 4.2vw, 3.5rem);
  line-height: 1.06;
  text-wrap: balance;
}
h3 { font-size: 1.5rem; line-height: 1.2; }
em { font-style: italic; font-weight: 300; }

/* ---------- Utilities ---------- */
.container {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
}

.section { padding-block: var(--section-y); }
.section__head { margin-bottom: clamp(32px, 5vw, 64px); }
.section__head--split {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.eyebrow {
  margin-bottom: 14px;
  color: var(--accent-strong);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.on-dark .eyebrow { color: rgba(255, 255, 255, .88); }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 200;
  padding: 12px 18px;
  background: var(--ink);
  color: var(--white);
  border-radius: var(--radius);
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 12px; }

/* ---------- Buttons and links ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  text-align: center;
  transition: background-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
}
.btn--primary { background: var(--accent-strong); color: var(--white); }
.btn--primary:hover { background: var(--ink); }
.btn--light { background: var(--white); color: var(--ink); }
.btn--light:hover { background: var(--ink); color: var(--white); }
.btn--outline { color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.btn--outline:hover { background: var(--ink); color: var(--white); }
.btn--outline-light { color: var(--white); box-shadow: inset 0 0 0 1px var(--white); }
.btn--outline-light:hover { background: var(--white); color: var(--accent-strong); }
.btn--lg { min-height: 56px; padding-inline: 36px; font-size: 1.0625rem; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-weight: 600;
  background: linear-gradient(currentColor, currentColor) 0 calc(100% - 8px) / 0 1px no-repeat;
  transition: background-size .4s var(--ease);
}
.link-arrow svg { width: 16px; height: 16px; color: var(--accent-strong); transition: transform .25s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }
.link-arrow:hover, .link-arrow:focus-visible { background-size: 100% 1px; }
.link-arrow--light svg { color: var(--white); }


/* ---------- Header and navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .97);
  border-bottom: 1px solid transparent;
  transition: border-color .25s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  transition: height .25s var(--ease);
}

.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; }
.brand__mark { width: 32px; height: 32px; color: var(--ink); }
.brand__name {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1;
}
.brand__name span { font-style: italic; font-weight: 300; }

/* mobile menu toggle */
.menu-toggle {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding-inline: 4px;
  font-weight: 600;
}
.menu-toggle__bars { position: relative; width: 22px; height: 12px; }
.menu-toggle__bars i {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: currentColor;
  transition: transform .3s var(--ease), top .3s var(--ease);
}
.menu-toggle__bars i:first-child { top: 0; }
.menu-toggle__bars i:last-child { top: 10px; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars i:first-child { top: 5px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars i:last-child { top: 5px; transform: rotate(-45deg); }

/* mobile nav panel */
.nav {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  display: flex;
  flex-direction: column;
  padding: 8px var(--gutter) max(24px, env(safe-area-inset-bottom));
  background: var(--white);
  overflow-y: auto;
  visibility: hidden;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity .25s var(--ease), transform .25s var(--ease), visibility 0s .25s;
}
.nav.is-open {
  visibility: visible;
  opacity: 1;
  transform: none;
  transition: opacity .25s var(--ease), transform .25s var(--ease), visibility 0s;
}
.nav__list { display: flex; flex-direction: column; flex: 1; }
.nav__item { border-bottom: 1px solid var(--line); }
.nav__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 64px;
  font-family: var(--font-display);
  font-size: 1.9rem;
  letter-spacing: -0.01em;
}
.nav__chevron { width: 20px; height: 20px; transition: transform .25s var(--ease); }
.nav__item--mega.is-open .nav__chevron { transform: rotate(180deg); }
.nav__item--cta { margin-top: auto; padding-top: 24px; border-bottom: 0; }
.nav__item--cta .btn { width: 100%; min-height: 56px; }

/* mega menu, mobile accordion */
.mega {
  display: grid;
  grid-template-rows: 0fr;
  visibility: hidden;
  transition: grid-template-rows .3s var(--ease), visibility 0s .3s;
}
.nav__item--mega.is-open .mega {
  grid-template-rows: 1fr;
  visibility: visible;
  transition: grid-template-rows .3s var(--ease), visibility 0s;
}
.mega__grid {
  display: grid;
  gap: 24px;
  width: 100%;
  min-height: 0;
  overflow: hidden;
  padding-inline: 0;
}
.mega__grid > :first-child { margin-top: 4px; }
.mega__grid > :last-child { margin-bottom: 20px; }
.mega__heading {
  display: block;
  margin-bottom: 4px;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-style: italic;
  font-weight: 300;
}
.mega__list a {
  display: block;
  padding: 10px 0;
  color: var(--ink-soft);
  transition: color .2s var(--ease);
}
.mega__list a:hover { color: var(--accent-strong); }
.mega__note { color: var(--ink-soft); }
.mega__overview { margin-top: 16px; }
.nav__link[aria-current="page"], .nav__toggle[data-current] { color: var(--accent-strong); }
.mega__feature { display: none; }

/* desktop nav */
@media (min-width: 960px) {
  .menu-toggle { display: none; }

  .nav {
    position: static;
    inset: auto;
    flex-direction: row;
    padding: 0;
    overflow: visible;
    visibility: visible;
    opacity: 1;
    transform: none;
    background: none;
  }
  .nav__list { flex-direction: row; align-items: center; gap: 36px; }
  .nav__item { border: 0; }
  .nav__item--home { display: none; } /* mobile menu only */
  .nav__item--cta { margin: 0 0 0 8px; padding: 0; }
  .nav__item--cta .btn { width: auto; min-height: 46px; padding-inline: 24px; }
  .nav__link {
    position: relative;
    min-height: 44px;
    width: auto;
    gap: 6px;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0;
  }
  .nav__link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 6px;
    height: 1px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .3s var(--ease);
  }
  .nav__link:hover::after,
  .nav__link[aria-current="page"]::after,
  .nav__toggle[data-current]::after,
  .nav__item--mega.is-open .nav__link::after { transform: scaleX(1); }
  .nav__chevron { width: 14px; height: 14px; }

  .mega {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: block;
    background: var(--white);
    border-top: 1px solid var(--line);
    box-shadow: 0 24px 48px -24px rgba(26, 26, 26, .25);
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity .2s var(--ease), transform .2s var(--ease), visibility 0s .2s;
  }
  .nav__item--mega.is-open .mega {
    opacity: 1;
    transform: none;
    transition: opacity .2s var(--ease), transform .2s var(--ease), visibility 0s;
  }
  .mega__grid {
    grid-template-columns: 1.1fr 1fr 1fr 1.5fr;
    width: min(100% - 2 * var(--gutter), var(--container));
    gap: 48px;
    padding-block: 40px 44px;
    overflow: visible;
  }
  .mega__grid > :first-child { margin-top: 0; }
  .mega__grid > :last-child { margin-bottom: 0; }
  .mega__heading { margin-bottom: 12px; font-size: 1.6rem; }
  .mega__list a { padding: 6px 0; }

  .mega__feature {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: var(--radius);
    color: var(--white);
    aspect-ratio: 4 / 3;
  }
  .mega__feature img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
  .mega__feature:hover img { transform: scale(1.04); }
  .mega__feature::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(20, 17, 14, .72), rgba(20, 17, 14, 0) 60%);
  }
  .mega__feature-title {
    position: absolute;
    z-index: 1;
    left: 16px;
    right: 16px;
    bottom: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-size: 1.4rem;
  }
  .mega__feature-title svg { width: 16px; height: 16px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: clamp(560px, 88svh, 900px);
  padding-block: 140px 72px;
  overflow: hidden;
  color: var(--white);
  background: #3a352f;
}
.hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 82% 50%; /* mobile: keep the bride and bouquet in frame */
}
@media (min-width: 960px) {
  .hero__img { object-position: 50% 50%; }
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(20, 17, 14, .78) 0%, rgba(20, 17, 14, .25) 55%, rgba(20, 17, 14, .1) 100%),
    linear-gradient(to bottom, rgba(20, 17, 14, .35), rgba(20, 17, 14, 0) 25%);
}
.hero__content { position: relative; z-index: 2; }
.hero h1 {
  max-width: 14ch;
  font-size: clamp(3rem, 8vw, 6.5rem);
  line-height: .98;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.hero h1 em { display: block; }
.hero__sub {
  margin-top: 24px;
  font-size: 1.0625rem;
  letter-spacing: .04em;
  color: rgba(255, 255, 255, .92);
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 32px;
  margin-top: 36px;
}

/* viewfinder frame: signature detail */
.hero__frame {
  position: absolute;
  inset: 16px;
  z-index: 2;
  pointer-events: none;
}
.corner { position: absolute; width: 28px; height: 28px; border: 0 solid rgba(255, 255, 255, .85); }
.corner--tl { top: 0; left: 0; border-top-width: 1px; border-left-width: 1px; }
.corner--tr { top: 0; right: 0; border-top-width: 1px; border-right-width: 1px; }
.corner--bl { bottom: 0; left: 0; border-bottom-width: 1px; border-left-width: 1px; }
.corner--br { bottom: 0; right: 0; border-bottom-width: 1px; border-right-width: 1px; }

/* viewfinder acquires focus on load: frame settles inward, corners draw in */
@media (prefers-reduced-motion: no-preference) {
  .hero__frame { animation: frame-settle 1.4s var(--ease) .2s both; }
  .corner { animation: corner-draw 1s var(--ease) .5s both; }
  .corner--tr { animation-delay: .6s; }
  .corner--br { animation-delay: .7s; }
  .corner--bl { animation-delay: .8s; }
}
/* aiming the camera: corners lean toward the pointer */
@media (prefers-reduced-motion: no-preference) and (pointer: fine) {
  .corner { transform: translate(calc(var(--px, 0) * 14px), calc(var(--py, 0) * 10px)); }
}
@keyframes frame-settle {
  from { opacity: 0; transform: scale(1.1); }
  35%  { opacity: 1; }
  to   { opacity: 1; transform: none; }
}
@keyframes corner-draw {
  from { width: 0; height: 0; }
}

@media (min-width: 960px) {
  .hero { padding-block: 160px 96px; }
  .hero__frame { inset: 28px; }
  .corner { width: 36px; height: 36px; }
}

/* ---------- Welcome ---------- */
.welcome__grid { display: grid; gap: 32px; }
.host { margin-top: 32px; }
.portrait {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 1px var(--line);
}
.host figcaption {
  margin-top: 14px;
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-style: italic;
  font-weight: 300;
  line-height: 1;
}
.welcome__intro h2 { font-size: clamp(2rem, 3.6vw, 3rem); text-wrap: initial; }
.welcome__intro h2 span { display: block; }
.welcome__body { max-width: 34rem; font-size: 1.125rem; line-height: 1.75; }
.welcome__body p + p { margin-top: 1.1em; }
.welcome__body .btn { margin-top: 32px; }

@media (min-width: 960px) {
  .welcome__grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    gap: clamp(48px, 7vw, 112px);
    align-items: start;
  }
  .welcome__intro { position: sticky; top: calc(var(--header-h, 80px) + 32px); }
}

/* ---------- Selected work ---------- */
.reel { background: var(--white); }
.reel__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: clamp(28px, 4vw, 48px);
}

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-size: .9375rem;
  font-weight: 600;
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.chip:hover { background: var(--white); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--white); }

.reel__viewport, .insta__viewport {
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.reel__viewport::-webkit-scrollbar, .insta__viewport::-webkit-scrollbar { display: none; }

/* drag to scroll with a mouse; touch uses native swiping */
.reel__viewport, .insta__viewport { cursor: grab; overscroll-behavior-x: contain; }
.reel__viewport.is-dragging, .insta__viewport.is-dragging { cursor: grabbing; user-select: none; }
.reel__viewport img, .reel__viewport a,
.insta__viewport img, .insta__viewport a { -webkit-user-drag: none; user-select: none; }

.reel__track {
  --reel-h: clamp(300px, 42vw, 500px);
  display: flex;
  gap: 16px;
  width: max-content;
}
.reel__item { position: relative; flex: none; height: var(--reel-h); overflow: hidden; border-radius: var(--radius); }
.reel__item[hidden] { display: none; }
.reel__item a { display: block; height: 100%; }
.reel__item img { height: 100%; width: auto; max-width: none; transition: transform .8s var(--ease); }
.reel__item a:hover img { transform: scale(1.03); }

@media (prefers-reduced-motion: no-preference) {
  .reel__track.is-switching .reel__item { animation: item-in .6s var(--ease) both; animation-delay: calc(var(--i, 0) * 60ms); }
}
@keyframes item-in {
  from { opacity: 0; transform: translateY(14px); }
}

/* ---------- What I shoot ---------- */
.shoot { --shoot-gap: 32px; background: var(--fur); }
.shoot__events, .shoot__more { display: grid; gap: var(--shoot-gap); }
.shoot__events { gap: 0; background: var(--white); border-radius: var(--radius); }
.card--feature { background: transparent; }
.shoot__more { margin-top: var(--shoot-gap); }
.card { position: relative; display: flex; flex-direction: column; background: var(--white); border-radius: var(--radius); }
.card__media { position: relative; overflow: hidden; border-radius: var(--radius) var(--radius) 0 0; aspect-ratio: 4 / 3; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.card:hover .card__media img { transform: scale(1.03); }
.shoot__more .card:first-child .card__media img { object-position: 80% 55%; } /* keep the portrait subject in frame */
.card__body { padding: 24px 28px 28px; }
.card__body h3 { margin-bottom: 8px; font-size: 1.9rem; }
/* hovering an event type swaps the lead image */
.card__preview {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .5s var(--ease), transform .8s var(--ease);
}
.card__preview.is-active { opacity: 1; }
.card--feature .card__body h3 { font-size: clamp(2.25rem, 4vw, 3.25rem); }
.card__link { display: inline-flex; align-items: center; gap: 12px; transition: color .2s var(--ease); }
.card__link::after { content: ""; position: absolute; inset: 0; }
.card__link svg { width: 18px; height: 18px; color: var(--accent-strong); transition: transform .25s var(--ease); }
.card:hover .card__link { color: var(--accent-strong); }
.card:hover .card__link svg { transform: translateX(4px); }
.card__body p { max-width: 40ch; color: var(--ink-soft); }

/* event types: the lead category's own sub-pages */
.subtypes { display: grid; grid-auto-rows: 1fr; padding: 8px 24px 24px; }
.subtypes li + li { border-top: 1px solid var(--line); }
.subtypes a {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 100%;
  min-height: 84px;
  padding-block: 10px;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  line-height: 1.15;
  transition: color .2s var(--ease), padding-left .3s var(--ease);
}
.subtypes img { flex: none; width: 96px; height: 72px; object-fit: cover; border-radius: var(--radius); }
.subtypes span { flex: 1; }
.subtypes svg { flex: none; width: 18px; height: 18px; color: var(--accent-strong); transition: transform .25s var(--ease); }
.subtypes a:hover { color: var(--accent-strong); }
.subtypes a:hover svg { transform: translateX(4px); }

@media (min-width: 800px) {
  .shoot__events { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: stretch; }
  .card--feature .card__media { border-radius: var(--radius) 0 0 0; }
  .subtypes { padding: clamp(12px, 2vw, 24px) clamp(24px, 3.5vw, 56px); }
  .shoot { --shoot-gap: clamp(24px, 3vw, 40px); }
  .shoot__more { grid-template-columns: repeat(2, 1fr); }
  .shoot__more .card { flex-direction: row; align-items: stretch; }
  .shoot__more .card__media { flex: 0 0 46%; aspect-ratio: auto; min-height: 200px; border-radius: var(--radius) 0 0 var(--radius); }
  .shoot__more .card__body { display: flex; flex-direction: column; justify-content: center; padding: 24px clamp(20px, 2.4vw, 32px); }
}

/* ---------- Why ---------- */
.why { background: var(--ink); color: var(--white); overflow: hidden; }
.why__grid { display: grid; gap: 48px; }
.why__intro { position: relative; }
.why__mark {
  display: none;
  width: clamp(160px, 18vw, 240px);
  height: auto;
  aspect-ratio: 1;
  margin-top: 56px;
  color: rgba(255, 255, 255, .22);
}
.why__list { padding: 0; list-style: none; }
.why__item {
  position: relative;
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 8px 20px;
  padding-block: 32px;
}
.why__item::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: rgba(255, 255, 255, .35);
}
.why__item:last-child { padding-bottom: 0; }
.why__num {
  padding-top: .5em;
  font-family: var(--font-mono);
  font-size: .8rem;
  letter-spacing: .12em;
  color: #e08a68; /* lighter amber, 6.5:1 on ink */
}
.why__item h3 { margin-bottom: 10px; font-size: clamp(1.6rem, 2.6vw, 2.25rem); line-height: 1.12; }
.why__item p { max-width: 44ch; color: rgba(255, 255, 255, .78); }
.why .eyebrow { color: #e08a68; }
.why h2 em { color: #e08a68; }

@media (min-width: 960px) {
  .why__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(48px, 7vw, 112px); align-items: start; }
  .why__intro { position: sticky; top: calc(var(--header-h) + 40px); }
  .why__mark { display: block; }
  .why__item { grid-template-columns: 72px 1fr; padding-block: 44px; }
  .why__item:first-child { padding-top: 0; }
  .why__item:first-child::before { display: none; }
}

@media (prefers-reduced-motion: no-preference) {
  .js .why__item::before { transform: scaleX(0); transform-origin: left; transition: transform 1.1s var(--ease); }
  .js .why__item.is-visible::before { transform: none; }
}

/* ---------- Closing CTA ---------- */
.cta { background: var(--white); }
.cta__inner { display: flex; flex-direction: column; align-items: center; text-align: center; }
.cta__mark { width: 44px; height: 44px; margin-bottom: 24px; }
.cta h2 { max-width: 16ch; }
.cta p { max-width: 44ch; margin: 20px 0 32px; color: var(--ink-soft); }

/* ---------- Instagram ---------- */
.insta { padding-block: 0; } /* carousel sits flush on the footer */
.insta__track { display: flex; gap: 12px; width: max-content; }
.insta__track li { flex: none; width: clamp(200px, 24vw, 300px); }
.insta__track a { display: block; overflow: hidden; border-radius: var(--radius) var(--radius) 0 0; }
.insta__track img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform .8s var(--ease); }
.insta__track a:hover img { transform: scale(1.04); }

/* ---------- Footer ---------- */
.site-footer { padding-top: clamp(56px, 8vw, 96px); background: var(--accent-strong); color: var(--white); }
.footer__grid { display: grid; gap: 40px; padding-bottom: 56px; }
.footer__about {
  margin: 20px 0 24px;
  max-width: 34ch;
  font-size: .9375rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, .85);
}
.footer__title {
  margin-bottom: 24px;
  font-family: var(--font-body);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .88);
}
.footer__col li { padding-block: 4px; }
.footer__col a { transition: color .2s var(--ease); }
.footer__col a:hover { text-decoration: underline; text-underline-offset: 3px; }
.site-footer .brand__mark { color: var(--white); }

.site-footer .brand__mark { --accent: rgba(255, 255, 255, .4); }
.footer__line { display: flex; align-items: center; gap: 12px; }
.footer__line svg { flex: none; width: 20px; height: 20px; opacity: .85; }
.footer__social { display: flex; gap: 12px; margin-top: 16px; }
.footer__social a {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, .6);
  border-radius: 50%;
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.footer__social a:hover { background: var(--white); color: var(--accent-strong); text-decoration: none; }
.footer__social svg { width: 20px; height: 20px; }
.footer__logos { display: flex; flex-wrap: wrap; gap: 16px; }
.footer__logos { align-items: center; gap: 20px 28px; }
.footer__logos li { padding: 12px 16px; background: var(--white); border-radius: var(--radius); }
.footer__logos img { display: block; width: 130px; height: auto; }

.footer__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 32px;
  padding-block: 22px;
  border-top: 1px solid rgba(255, 255, 255, .3);
  font-size: .875rem;
  color: rgba(255, 255, 255, .85);
}
.footer__bar ul { display: flex; gap: 24px; }
.footer__bar a { display: inline-block; padding-block: 8px; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: transparent; transition: text-decoration-color .2s var(--ease); }
.footer__bar a:hover { text-decoration-color: currentColor; }

@media (min-width: 800px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1100px) {
  .footer__grid { grid-template-columns: 1.4fr .8fr 1.2fr 1.2fr; gap: 48px; }
}


/* ---------- Inner pages ---------- */
.page-hero { padding-block: clamp(16px, 3vw, 40px) clamp(32px, 4vw, 56px); }
.page-hero h1 {
  max-width: 18ch;
  font-size: clamp(2.5rem, 6vw, 4.75rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.page-hero__lead { max-width: 52ch; margin-top: 24px; font-size: 1.2rem; color: var(--ink-soft); }
.breadcrumbs { padding-top: clamp(24px, 3vw, 40px); }
.breadcrumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 2px 0; font-size: .9375rem; color: var(--ink-soft); }
.breadcrumbs li { display: inline-flex; align-items: center; }
.breadcrumbs li + li::before {
  content: "";
  width: 6px;
  height: 6px;
  margin: 0 14px 0 12px;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  transform: rotate(45deg);
  opacity: .55;
}
.breadcrumbs a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  background: linear-gradient(currentColor, currentColor) 0 calc(50% + 12px) / 0 1px no-repeat;
  transition: background-size .4s var(--ease), color .2s var(--ease);
}
.breadcrumbs a:hover, .breadcrumbs a:focus-visible { color: var(--accent-strong); background-size: 100% 1px; }
.breadcrumbs [aria-current="page"] { color: var(--ink); font-weight: 600; }

/* About */
.about { display: grid; gap: 40px; padding-block: clamp(16px, 3vw, 40px) clamp(64px, 9vw, 120px); }
.about__portrait img { width: 100%; max-width: 460px; aspect-ratio: 2 / 3; object-fit: cover; border-radius: var(--radius); }
.about__body h1 { font-size: clamp(3rem, 7vw, 5.5rem); line-height: 1; letter-spacing: -0.025em; }
.about__lead {
  max-width: 24ch;
  margin: 20px 0 32px;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  font-style: italic;
  font-weight: 300;
  line-height: 1.2;
  color: var(--accent-strong);
}
.about__body p { max-width: 60ch; }
.about__body p + p, .about__sub + p { margin-top: 1.1em; }
.about__sub { margin: clamp(40px, 5vw, 64px) 0 20px; font-size: clamp(1.75rem, 3vw, 2.4rem); }
.specialties { max-width: 560px; border-bottom: 1px solid var(--ink); }
.specialties li { border-top: 1px solid var(--ink); }
.specialties a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-block: 18px;
  transition: color .2s var(--ease);
}
.specialties a:hover { color: var(--accent-strong); }
.specialties__name { font-family: var(--font-display); font-size: 1.5rem; line-height: 1.2; }
.specialties__note { font-size: .9375rem; color: var(--ink-soft); text-align: right; }
.facts { display: grid; gap: 24px; margin: clamp(32px, 4vw, 48px) 0 0; }
.facts dt { margin-bottom: 6px; color: var(--accent-strong); font-size: .78rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.facts dd { margin: 0; }
.facts .social, .contact__aside .social { display: flex; gap: 12px; margin-top: 4px; }
.social a {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.social a:hover { background: var(--ink); color: var(--white); }
.social svg { width: 20px; height: 20px; }
.about-close__inner { display: flex; flex-direction: column; align-items: center; text-align: center; }
.about-close p { max-width: 52ch; margin: 20px 0 32px; color: var(--ink-soft); }

@media (min-width: 960px) {
  .about { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(48px, 7vw, 112px); align-items: start; }
  .about__portrait { position: sticky; top: calc(var(--header-h) + 40px); }
  .about__portrait img { max-width: none; }
  .facts { grid-template-columns: 1.4fr 1fr; }
}

/* Contact */
.contact { display: grid; gap: 48px; padding-bottom: clamp(64px, 9vw, 120px); }
.form__note { margin-bottom: 24px; font-size: .9375rem; color: var(--ink-soft); }
.form__grid { display: grid; gap: 24px; margin-bottom: 32px; }
.field label { display: block; margin-bottom: 8px; font-size: .9375rem; font-weight: 600; }
.field__req { color: var(--accent-strong); }
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 52px;
  padding: 12px 16px;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: var(--white);
  font: inherit;
  color: var(--ink);
  transition: box-shadow .2s var(--ease), border-color .2s var(--ease);
}
.field textarea { min-height: 160px; resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { box-shadow: 0 0 0 1px var(--ink); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 0; border-color: var(--accent-strong); box-shadow: 0 0 0 1px var(--accent-strong); }
.field [aria-invalid="true"] { border-color: var(--accent-strong); box-shadow: 0 0 0 1px var(--accent-strong); }
.field__error { margin-top: 8px; color: var(--accent-strong); font-size: .9375rem; font-weight: 600; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-success { padding: clamp(28px, 4vw, 48px); background: var(--fur); border-radius: var(--radius); }
.form-success:focus { outline: none; }
.form-success__mark { width: 40px; height: 40px; margin-bottom: 20px; }
.form-success h2 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); }
.form-success p { max-width: 44ch; margin: 14px 0 24px; color: var(--ink-soft); }
.form-success p + p { margin-top: -10px; }
.contact__aside { align-self: start; padding: clamp(24px, 3vw, 40px); background: var(--fur); border-radius: var(--radius); }
.contact__aside h2 { margin-bottom: 20px; font-size: clamp(1.6rem, 2.6vw, 2rem); }
.contact__aside .lines li { padding-block: 6px; }
.contact__aside .social { margin-top: 20px; }
.contact__reply { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--ink-soft); }

@media (min-width: 640px) {
  .form__grid { grid-template-columns: 1fr 1fr; }
  .field--full { grid-column: 1 / -1; }
}
@media (min-width: 960px) {
  .contact { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(48px, 7vw, 112px); }
  .contact__aside { position: sticky; top: calc(var(--header-h) + 40px); }
}

/* Gallery (masonry) */
.gallery-section { padding-bottom: clamp(64px, 9vw, 120px); }
.gallery { columns: 1; column-gap: 16px; }
.gallery li { break-inside: avoid; margin-bottom: 16px; }
.gallery__item { display: block; overflow: hidden; border-radius: var(--radius); cursor: zoom-in; }
.gallery__item img { width: 100%; height: auto; transition: transform .8s var(--ease); }
.gallery__item:hover img { transform: scale(1.03); }
@media (min-width: 600px) { .gallery { columns: 2; } }
@media (min-width: 960px) { .gallery { columns: 3; column-gap: 20px; } .gallery li { margin-bottom: 20px; } }

.next-cat { padding-block: 0 clamp(64px, 9vw, 120px); }
.next-cat a {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 28px;
  border-top: 1px solid var(--ink);
  transition: color .2s var(--ease);
}
.next-cat a:hover { color: var(--accent-strong); }
.next-cat__label { color: var(--accent-strong); font-size: .78rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.next-cat__name { display: inline-flex; align-items: center; gap: 14px; font-family: var(--font-display); font-size: clamp(1.75rem, 4vw, 3rem); line-height: 1.1; }
.next-cat__name svg { width: 24px; height: 24px; color: var(--accent-strong); transition: transform .25s var(--ease); }
.next-cat a:hover svg { transform: translateX(6px); }

/* Lightbox */
.lightbox {
  width: 100vw;
  height: 100dvh;
  max-width: none;
  max-height: none;
  padding: 0;
  border: 0;
  background: rgb(20, 17, 14);
  color: var(--white);
}
.lightbox::backdrop { background: transparent; }
.lightbox[open] { display: grid; grid-template-rows: minmax(0, 1fr) auto; animation: lb-in .3s var(--ease); }
@keyframes lb-in { from { opacity: 0; } }
@keyframes lb-out { to { opacity: 0; } }
@keyframes lb-img { from { opacity: 0; transform: translateX(var(--lb-shift, 0px)) scale(.95); } }
@keyframes lb-ui { from { opacity: 0; } }
.lightbox.is-closing { animation: lb-out .28s var(--ease) both; }
.lightbox.is-closing .lightbox__stage img { transform: scale(.97); transition: transform .28s var(--ease); }
.lightbox[open] .lightbox__stage img { animation: lb-img .55s var(--ease) both; }
.lightbox[open] .lightbox__btn, .lightbox[open] .lightbox__bar { animation: lb-ui .6s var(--ease) .25s both; }
.lightbox__stage { display: grid; place-items: center; min-height: 0; padding: 72px clamp(16px, 7vw, 96px) 8px; }
.lightbox__stage img { max-width: 100%; max-height: calc(100dvh - 160px); width: auto; height: auto; object-fit: contain; border-radius: var(--radius); }
.lightbox__bar [data-lb-count] { white-space: nowrap; }
.lightbox__bar { display: flex; justify-content: center; gap: 24px; padding: 8px clamp(16px, 4vw, 40px) 20px; font-size: .9375rem; color: rgba(255, 255, 255, .8); }
.lightbox__btn {
  position: absolute;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, .6);
  border-radius: 50%;
  background: rgba(20, 17, 14, .5);
  color: var(--white);
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.lightbox__btn:hover { background: var(--white); color: var(--ink); }
.lightbox__btn svg { width: 18px; height: 18px; }
.lightbox__btn:focus-visible { outline-color: var(--white); outline-width: 2px; outline-offset: 4px; border-color: transparent; }
.lightbox__close { top: 16px; right: clamp(16px, 4vw, 40px); }
.lightbox__prev, .lightbox__next { top: 50%; transform: translateY(-50%); }
.lightbox__prev { left: clamp(8px, 2vw, 24px); }
.lightbox__next { right: clamp(8px, 2vw, 24px); }
@media (max-width: 599px) {
  .lightbox__prev, .lightbox__next { top: auto; bottom: 12px; transform: none; }
  .lightbox__bar { flex-direction: column; align-items: center; gap: 4px; padding-inline: 72px; text-align: center; }
}
html.lightbox-open { overflow: hidden; }

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity .8s var(--ease), transform .8s var(--ease);
  }
  .js [data-reveal].is-visible { opacity: 1; transform: none; }

}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation: none !important; }
}
