/* ==========================================================================
   Nico Shishkin — Style System
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Bodoni+Moda:ital,opsz,wght@0,6..96,400;0,6..96,500;1,6..96,400&family=Inter:wght@300;400;500&display=swap');

:root{
  --ivory: #f4f1ea;
  --paper: #faf8f4;
  --ink: #1a1712;
  --ink-soft: #3a352c;
  --stone: #8c8577;
  --stone-light: #cfc9bc;
  --line: #ddd6c8;
  --wine: #4a1220;
  --wine-soft: #6d2334;
  --mount: #ebe5d9;

  --serif: 'Bodoni Moda', 'Times New Roman', serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;

  --tracking-wide: 0.22em;
  --tracking-mid: 0.12em;

  --container: 1400px;
  --gutter: 6vw;

  /* Inner edge of .wrap content, for full-width layouts that must line up with it */

  --edge: max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter)));
}

@media (prefers-color-scheme: dark){
  :root:not([data-theme="light"]){
    --ivory: #f4f1ea;
    --paper: #faf8f4;
    --ink: #1a1712;
  }
}

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

html{ scroll-behavior: smooth; }

body{
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img{ max-width: 100%; display: block; }

a{ color: inherit; text-decoration: none; }

h1, h2, h3, h4{
  font-family: var(--serif);
  font-weight: 400;
  margin: 0;
  letter-spacing: 0.01em;
  line-height: 1.2;
}

p{ margin: 0; }

.eyebrow{
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--stone);
  font-weight: 400;
}

.wrap{
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* ---------- Buttons / Links ---------- */

.btn{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  padding: 16px 34px;
  border: 1px solid var(--ink);
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  transition: background .4s ease, color .4s ease, border-color .4s ease;
  white-space: nowrap;
}
.btn:hover{ background: var(--ink); color: var(--ivory); }

.btn.light{ border-color: var(--paper); color: var(--paper); }
.btn.light:hover{ background: var(--paper); color: var(--ink); }

.text-link{
  font-size: 11px;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--ink);
  transition: opacity .3s ease;
}
.text-link:hover{ opacity: .55; }

/* ---------- Header / Nav ---------- */

.site-header{
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;

  /* Logo on the left gutter, menu centred on the page, links --nav-gap apart */

  --nav-gap: 48px;
  padding: 26px var(--gutter);
  transition: background .5s ease, padding .5s ease, border-color .5s ease;
  border-bottom: 1px solid transparent;
}
.site-header.is-solid{
  background: rgba(244,241,234,0.98);
  padding-top: 16px;
  padding-bottom: 16px;
  border-bottom-color: var(--line);
}

.site-header .brand-mark{
  grid-column: 1;
  grid-row: 1;
  justify-self: start;
  display: block;
  height: 46px;
  color: var(--paper);
  transition: color .5s ease;
}
.site-header.is-solid .brand-mark{ color: var(--ink); }
.site-header .brand-mark svg{ display: block; height: 100%; width: auto; }

/* Home: the mark opens large above the hero copy (positioned by main.js) */

.site-header.has-hero .brand-mark{ transform-origin: 0 0; }
.site-header.has-hero .brand-mark svg{ animation: mark-in 1.8s .2s cubic-bezier(.2,.7,.2,1) both; }
@keyframes mark-in{ from{ opacity: 0; } to{ opacity: 1; } }

.site-nav{
  grid-column: 2;
  grid-row: 1;
  display: flex;
  gap: var(--nav-gap);
}
.nav-links{
  display: flex;
  gap: var(--nav-gap);
  list-style: none;
  margin: 0; padding: 0;
}
.nav-links a{
  font-size: 11px;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--ink);
  padding-bottom: 4px;
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, color .3s ease;
}
.site-header:not(.is-solid) .nav-links a{ color: var(--paper); }
.nav-links a:hover, .nav-links a[aria-current="page"]{ border-color: currentColor; }

.nav-toggle{
  display: none;
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
  background: none;
  border: none;
  cursor: pointer;
  width: 26px; height: 18px;
  position: relative;
}
.nav-toggle span{
  position: absolute; left:0; right:0; height:1px;
  background: var(--ink);
  transition: transform .3s ease, opacity .3s ease, background .3s ease;
}
.site-header:not(.is-solid) .nav-toggle span{ background: var(--paper); }
.nav-toggle span:nth-child(1){ top: 0; }
.nav-toggle span:nth-child(2){ top: 8px; }
.nav-toggle span:nth-child(3){ top: 16px; }

/* Home: the header stays clear over the film. main.js sets three values from scroll:
   --settle (0–1) as the mark docks, --ink-mix (0–1) as the film's lower edge passes the
   menu text, --line (0 or 1) once that edge rises above the header's bottom edge, and
   --band (0 or 1) once the film has left the header entirely. */

.site-header.has-hero{
  --settle: 0;
  --ink-mix: 0;
  --line: 0;
  --band: 0;
  transition: none;
  padding-top: calc(26px - 10px * var(--settle));
  padding-bottom: calc(26px - 10px * var(--settle));
  background: rgba(244,241,234, calc(.98 * var(--band)));
  border-bottom-color: rgba(221,214,200, var(--line));
}
.site-header.has-hero .brand-mark,
.site-header.has-hero .nav-links a{
  color: color-mix(in srgb, var(--ink) calc(var(--ink-mix) * 100%), var(--paper));
  transition: border-color .3s ease;
}
.site-header.has-hero .nav-toggle span{
  background: color-mix(in srgb, var(--ink) calc(var(--ink-mix) * 100%), var(--paper));
}

/* ---------- Mobile nav ---------- */

@media (max-width: 860px){
  .site-header .brand-mark{ height: 38px; }
  .site-nav{
    display: flex;
    position: fixed;
    inset: 0;
    background: var(--ivory);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 34px;
    transform: translateY(-100%);
    transition: transform .45s ease;
    z-index: 90;
  }
  .nav-links{ flex-direction: column; align-items: center; gap: 34px; }
  .nav-links a{ color: var(--ink) !important; font-size: 13px; }
  body.nav-open .site-nav{ transform: translateY(0); }
  .nav-toggle{ display: block; z-index: 110; }
  body.nav-open .nav-toggle span{ background: var(--ink) !important; }
  body.nav-open .nav-toggle span:nth-child(1){ transform: translateY(8px) rotate(45deg); }
  body.nav-open .nav-toggle span:nth-child(2){ opacity: 0; }
  body.nav-open .nav-toggle span:nth-child(3){ transform: translateY(-8px) rotate(-45deg); }
}

/* ---------- Hero ---------- */

.hero{
  position: relative;
  height: 100svh;
  min-height: 560px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--ink);
}
.hero-video{
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: .92;
  animation: hero-settle 3.2s cubic-bezier(.2,.7,.2,1) both;
}

/* Portrait screens: frame the opening shot, where the model stands right of
   centre; main.js then moves the crop with her through the later shots */

@media (max-aspect-ratio: 4/5){
  .hero-video{ object-position: 72% 50%; }
}
.hero::after{
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 85% at 0% 70%, rgba(10,9,7,.55) 0%, rgba(10,9,7,0) 100%),
    linear-gradient(180deg, rgba(10,9,7,.35) 0%, rgba(10,9,7,0) 30%, rgba(10,9,7,.6) 100%);
}
.hero-inner{
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 0 var(--gutter) 64px;
  color: var(--paper);
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.hero-mark{ height: 54px; width: auto; margin-bottom: 6px; }
.hero-inner h1{
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.2;
  font-weight: 500;
  max-width: 18ch;
  text-shadow: 0 1px 28px rgba(10,9,7,.35);
}
.hero-sub{
  font-size: 12px;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--paper);
  font-weight: 400;
  text-shadow: 0 1px 16px rgba(10,9,7,.4);
}
.scroll-cue{
  position: absolute;
  right: var(--gutter); bottom: 34px;
  z-index: 2;
  color: var(--paper);
  font-size: 10px;
  letter-spacing: var(--tracking-mid);
  text-transform: uppercase;
  writing-mode: vertical-rl;
  display: flex; align-items: center; gap: 12px;
  opacity: .8;
}
.scroll-cue::after{
  content: "";
  width: 1px; height: 46px;
  background: currentColor;
}

.hero-toggle{
  background: none;
  border: none;
  padding: 0;
  font-family: var(--sans);
  text-transform: uppercase;
  color: var(--paper);
  cursor: pointer;
  position: absolute;
  z-index: 2;
  right: calc(var(--gutter) + 36px);
  bottom: 34px;
  font-size: 10px;
  letter-spacing: var(--tracking-mid);
  opacity: .7;
  transition: opacity .3s ease;
}
.hero-toggle:hover{ opacity: 1; }
.hero-toggle[hidden]{ display: none; }

/* Opening: the film settles, then the type arrives */

.hero-inner > *{ animation: hero-rise 1.4s cubic-bezier(.2,.7,.2,1) both; }
.hero-inner > :nth-child(1){ animation-delay: .5s; }
.hero-inner > :nth-child(2){ animation-delay: .7s; }

@keyframes hero-settle{
  from{ opacity: 0; transform: scale(1.06); }
  to{ opacity: .92; transform: scale(1); }
}
@keyframes hero-rise{
  from{ opacity: 0; transform: translateY(18px); }
  to{ opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce){
  .hero-video, .hero-inner > *, .site-header.has-hero .brand-mark svg{ animation: none; }
  .split.reveal .media img{ clip-path: none; transition: none; }
}

/* ---------- Section rhythm ---------- */

section{ padding: 130px 0; }
.section-tight{ padding: 90px 0; }

/* Home: the opening statement sits a little closer to the collection below */

.intro{ padding-bottom: 40px; }
.intro + section{ padding-top: 80px; }
.section-head{
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  margin-bottom: 60px;
  flex-wrap: wrap;
}
.section-head h2{ font-size: clamp(26px, 3vw, 38px); margin-top: 10px; }
.section-head p.lede{
  max-width: 34ch;
  color: var(--ink-soft);
  font-size: 15px;
}
.lede-note{
  margin-top: 14px;
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--stone);
}

.center-head{ text-align: center; }
.center-head .eyebrow{ justify-content: center; }
.center-head h2{ margin: 12px auto 0; }
.center-head p.lede{ margin: 22px auto 0; }

/* ---------- Statement / intro block ---------- */

.statement{
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}
.statement .eyebrow{ display:block; margin-bottom: 26px; }
.statement p{
  font-family: var(--serif);
  font-size: clamp(22px, 2.6vw, 30px);
  line-height: 1.5;
  color: var(--ink);
}
.statement p + p{ margin-top: 22px; }

/* ---------- Editorial split ---------- */

.split{
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  gap: 0;
}
.split img{ width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/5; }

/* Outer sides take --edge so images and copy line up with .wrap content;
   inner sides keep the plain gutter */

.split .media{ padding: 0 var(--gutter) 0 var(--edge); }
.split .copy{ padding: 0 var(--edge) 0 var(--gutter); }
.split.reverse .media{ padding: 0 var(--edge) 0 var(--gutter); }
.split.reverse .copy{ padding: 0 var(--gutter) 0 var(--edge); }
.split .media img{ max-width: 460px; }

/* Photos are presented like mounted prints: an even margin of deeper ivory,
   a small caption beneath, and a slow top-to-bottom reveal on arrival */

.split figure.media{ margin: 0; }
.split .media img{
  box-sizing: border-box;
  padding: clamp(14px, 1.8vw, 26px);
  background: var(--mount);
}
.split .media figcaption{
  margin-top: 14px;
  font-size: 10px;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--stone);
}
.split.reverse .media figcaption{ text-align: right; }
.split.reveal .media img{
  clip-path: inset(0 0 100% 0);
  transition: clip-path 1.4s cubic-bezier(.7,0,.2,1) .2s;
}
.split.reveal.is-visible .media img{ clip-path: inset(0); }
.split.reverse .media img{ margin-left: auto; }

/* Consecutive image sections share one gap instead of two */

.split + .split{ padding-top: 0; }

/* Landscape image shown whole, filling its column; the copy centres beside it */

.split-landscape .media img{ width: 100%; height: auto; max-width: none; aspect-ratio: auto; }
.split .copy .eyebrow{ display: block; margin-bottom: 18px; }
.split .copy h2{ font-size: clamp(24px, 3vw, 34px); margin-bottom: 22px; }
.split .copy p{
  color: var(--ink-soft);
  font-size: 15px;
  margin-bottom: 16px;
  text-align: justify;
}
.split .copy .text-link{ margin-top: 20px; display: inline-block; }
.split.reverse .media{ order: 2; }
.split.reverse .copy{ order: 1; }

/* Phones: text first, the photo beneath it */

@media (max-width: 860px){
  .split{ grid-template-columns: 1fr; }
  .split .copy, .split.reverse .copy{ order: 1; padding: 0 var(--gutter) 40px; }
  .split .media, .split.reverse .media{ order: 2; padding: 0 var(--gutter); }
  .split.reverse .media img{ margin-left: 0; }
  .split.reverse .media figcaption{ text-align: left; }
}

/* ---------- Category nav (collection page) ---------- */


/* Category links (Collection) and the note under a title (Designer) share one style */

.category-nav,
.intro-note{
  margin-top: 40px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}
.category-nav{ display: flex; gap: 40px; }
.intro-note{ padding-bottom: 26px; }
.category-nav a,
.intro-note{
  font-size: 11px;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--ink);
}
.category-nav a{
  padding-bottom: 4px;
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease;
}
.category-nav a:hover{ border-color: currentColor; }

#dresses, #tailoring{ scroll-margin-top: 80px; }

/* ---------- Look grid (collection preview + full page) ---------- */

/* Each look stands on its own: open gutters, the name on the page colour,
   a slight inset crop to hide stray photo edges, and a slow zoom on hover */

.look-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 48px 24px;
}
.look-card{
  position: relative;
  display: block;
  cursor: pointer;
}
.look-card .frame{ overflow: hidden; aspect-ratio: 2/3; background: var(--mount); }
.look-card img{
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.03);
  transition: transform 1.6s cubic-bezier(.2,.7,.2,1);
}
.look-card:hover img{ transform: scale(1.07); }

/* A second view (the profile) replaces the first on hover, instantly */

.look-card .frame{ position: relative; }
.look-card .frame .alt{ position: absolute; inset: 0; opacity: 0; }
@media (hover: hover){ .look-card:hover .frame .alt{ opacity: 1; } }
.look-meta{ padding-top: 16px; }
.look-meta .name{
  font-size: 13px;
  letter-spacing: .02em;
  color: var(--ink);
  border-bottom: 1px solid transparent;
  transition: border-color .4s ease;
}
.look-card:hover .look-meta .name{ border-color: currentColor; }

@media (max-width: 1080px){ .look-grid{ grid-template-columns: repeat(3,1fr); } }
@media (max-width: 700px){ .look-grid{ grid-template-columns: repeat(2,1fr); gap: 36px 14px; } }

.collection-cta{ text-align: center; margin-top: 64px; }

/* ---------- Footer ---------- */

.site-footer{
  background: var(--ink);
  color: var(--stone-light);
  padding: 80px 0 34px;
}

/* Atelier and Instagram pinned to the outer edges, the fox on the centre axis */

.footer-main{
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: start;
  gap: 40px;
  padding-bottom: 64px;
  border-bottom: 1px solid rgba(250,248,244,.14);
}
.footer-block:last-child{ justify-self: end; text-align: right; }
.footer-fox{ align-self: center; height: 72px; width: auto; }

@media (max-width: 640px){
  .footer-main{ grid-template-columns: auto 1fr; }
  .footer-fox{ grid-column: 1 / -1; grid-row: 1; justify-self: center; margin-bottom: 8px; }

  /* Address lines stay whole: "Hampstead, London NW3" */

  .footer-block p{ white-space: nowrap; }
}
.footer-block h4{
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--stone);
  font-weight: 400;
  margin-bottom: 16px;
}
.footer-block p{ font-size: 14px; line-height: 1.8; color: var(--paper); }
.footer-block a{
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease;
}
.footer-block a:hover{ border-color: currentColor; }
.footer-social{ display: flex; justify-content: flex-end; gap: 22px; padding-top: 2px; }
.footer-social a{ border: none; opacity: .85; transition: opacity .3s ease; }
.footer-social a:hover{ opacity: 1; }
.footer-social svg{ display: block; width: 20px; height: 20px; }
.footer-bottom{
  display: flex; flex-direction: column; align-items: center;
  padding-top: 30px;
  font-size: 11px; letter-spacing: .04em;
  color: var(--stone);
  gap: 14px;
}
.footer-legal{ display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 28px; }
.footer-legal a{ color: var(--stone-light); transition: color .3s ease; }
.footer-legal a:hover{ color: var(--paper); }

/* ---------- Client services (terms, delivery, privacy) ---------- */

.legal{
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: var(--gutter);
  padding-top: 80px; padding-bottom: 80px;
  scroll-margin-top: 60px;
}
/* Divider between sections, drawn within the content edges */

.legal + .legal{
  background: linear-gradient(var(--line), var(--line)) center top / calc(100% - 2 * var(--gutter)) 1px no-repeat;
}
.page-intro + .legal{ padding-top: 80px; }
.legal h2{ font-size: clamp(24px, 3vw, 34px); }
.legal-body{ max-width: 680px; }
.legal-body h3{
  font-family: var(--sans); font-weight: 400;
  font-size: 11px; letter-spacing: var(--tracking-wide); text-transform: uppercase;
  color: var(--stone);
  margin: 34px 0 12px;
}
.legal-body h3:first-child{ margin-top: 0; }
.legal-body p{ color: var(--ink-soft); font-size: 15px; margin-bottom: 14px; }
.legal-body a{ border-bottom: 1px solid var(--line); }
.legal-body a:hover{ border-color: var(--ink); }

@media (max-width: 860px){
  .legal{ grid-template-columns: 1fr; gap: 28px; padding-top: 56px; padding-bottom: 56px; }
}

/* ---------- Page intro (interior pages) ---------- */

/* Title left, description right, on the same grid as the sections below */

.page-intro{ padding-top: 168px; }
.page-intro .section-head{ margin-bottom: 0; }

/* Hairline under the intro, matching the one under the Collection category links */

.page-intro:not(:has(.category-nav, .intro-note)) .section-head{
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line);
}
.page-intro h1{ font-size: clamp(32px, 5vw, 54px); }
.page-intro + section{ padding-top: 80px; }

/* ---------- Contact ---------- */

.contact-info .block{ margin-bottom: 42px; }
.contact-info h4{
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--stone);
  margin-bottom: 12px;
  font-weight: 400;
}
.contact-info p, .contact-info a{ font-size: 16px; }
.contact-info a{ border-bottom: 1px solid var(--line); transition: border-color .3s ease; }
.contact-info a:hover{ border-color: var(--ink); }

/* ---------- Lightbox ---------- */

.lightbox{
  position: fixed; inset: 0;
  background: rgba(20,18,14,.96);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s ease;
  padding: 40px var(--gutter);
}
.lightbox.is-open{ opacity: 1; pointer-events: auto; }
.lightbox-inner{
  display: grid;
  grid-template-columns: auto 320px;
  gap: 60px;
  max-width: 1040px;
  align-items: center;
}
.lightbox-copy{ color: var(--paper); }
.lightbox-copy .eyebrow{ color: var(--stone-light); margin-bottom: 14px; }
.lightbox-copy h3{ color: var(--paper); font-size: 26px; margin-bottom: 14px; }
.lightbox-copy .price{ font-size: 14px; color: var(--stone-light); margin-bottom: 26px; }
/* Rows in the open look: pieces with prices, material composition */

.lb-separates, .lb-details{ margin-bottom: 26px; }
.lb-separates .eyebrow, .lb-details .eyebrow{ display: block; margin-bottom: 10px; }
.lb-rows{ list-style: none; margin: 0; padding: 0; }
.lb-rows li{
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 10px 0;
  border-top: 1px solid rgba(250,248,244,.14);
  font-size: 14px;
  color: var(--paper);
}
.lb-rows li:last-child{ border-bottom: 1px solid rgba(250,248,244,.14); }
.lb-rows li span:last-child{ color: var(--stone-light); }
/* Order options, revealed under the Order by Email button */

.lb-order-options{ margin-top: 20px; font-size: 13px; color: var(--stone-light); }
.lb-order-options[hidden]{ display: none; }
.lb-order-options:not([hidden]){ animation: options-in .4s ease; }
@keyframes options-in{ from{ opacity: 0; transform: translateY(-4px); } }
.lb-order-options p{ margin-bottom: 10px; }
.lb-order-options nav{ display: flex; flex-wrap: wrap; gap: 8px 22px; }
.lb-order-options a, .lb-order-options button{
  font: inherit; color: var(--paper);
  background: none; border: none; padding: 0; cursor: pointer;
  border-bottom: 1px solid rgba(250,248,244,.3);
  transition: border-color .3s ease;
}
.lb-order-options a:hover, .lb-order-options button:hover{ border-color: var(--paper); }
.lightbox-close{
  position: absolute; top: 30px; right: var(--gutter);
  color: var(--paper); font-size: 11px;
  letter-spacing: var(--tracking-wide); text-transform: uppercase;
  background: none; border: none; cursor: pointer;
  display: flex; align-items: center; gap: 10px;
}
/* Views of the open look: thumbnail rail beside the photo, arrows over it */

.lb-gallery{ display: flex; gap: 18px; align-items: flex-start; }
.lb-stage{ position: relative; }
.lb-stage img{
  display: block;
  height: min(78vh, 680px); width: auto;
  aspect-ratio: 2/3; object-fit: cover;
}
.lb-thumbs{
  display: flex; flex-direction: column; gap: 10px;
  width: 52px; flex: none;
  max-height: min(78vh, 680px); overflow-y: auto; scrollbar-width: none;
}
.lb-thumbs[hidden]{ display: none; }
.lb-thumbs button{
  padding: 0; border: none; background: none; cursor: pointer;
  opacity: .4; transition: opacity .3s ease;
}
.lb-thumbs button:hover{ opacity: .75; }
.lb-thumbs button.is-active{ opacity: 1; }
.lb-thumbs img{ display: block; width: 100%; aspect-ratio: 2/3; object-fit: cover; }
.lb-photo-nav{
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border: none; border-radius: 50%;
  background: rgba(20,18,14,.35);
  color: var(--paper);
  font-size: 22px; line-height: 1;
  cursor: pointer;
  transition: background .3s ease;
}
.lb-photo-nav:hover{ background: rgba(20,18,14,.6); }
.lb-photo-nav.prev{ left: 12px; }
.lb-photo-nav.next{ right: 12px; }
.lb-photo-nav[hidden]{ display: none; }

@media (max-width: 760px){
  .lightbox{ align-items: flex-start; overflow-y: auto; padding-top: 76px; }
  .lightbox-inner{ grid-template-columns: 1fr; gap: 24px; }
  .lb-gallery{ flex-direction: column; gap: 12px; }
  .lb-stage img{ width: 100%; height: auto; max-height: 62vh; }
  .lb-thumbs{ order: 2; flex-direction: row; width: auto; max-height: none; overflow-x: auto; }
  .lb-thumbs button{ width: 44px; flex: none; }
}

/* ---------- Loader ----------
   An ivory veil that lifts once the page has loaded. The fox loop (white
   ground, multiplied into the ivory) shows only while a slow load is still
   running (.is-slow, set by main.js), and drops out at once when it ends. */

.page-loader{
  position: fixed; inset: 0; z-index: 300;
  display: flex; align-items: center; justify-content: center;
  background: var(--ivory);
  transition: opacity .6s ease, visibility 0s .6s;
}
.page-loader.is-done{ opacity: 0; visibility: hidden; }
.loader-fox{
  width: 110px; height: auto;
  mix-blend-mode: multiply;
  opacity: 0;
  transition: opacity .4s ease;
}
.page-loader.is-slow .loader-fox{ opacity: 1; }
.page-loader.is-done .loader-fox{ opacity: 0; transition: none; }

/* In the dark lightbox the loop is inverted and screened onto the ground */

.lb-loader{
  position: absolute; top: 50%; left: 50%;
  width: 72px; height: auto;
  transform: translate(-50%, -50%);
  filter: invert(1); mix-blend-mode: screen;
  opacity: 0; pointer-events: none;
  transition: opacity .3s ease;
}
.lb-stage.is-loading .lb-loader{ opacity: 1; transition-delay: .2s; }
.lb-stage.is-loading img{ opacity: .35; }
.lb-stage img{ transition: opacity .3s ease; }

/* ---------- Reveal on scroll ---------- */

.reveal{ opacity: 0; transform: translateY(28px); transition: opacity .9s ease, transform .9s ease; }
.reveal.is-visible{ opacity: 1; transform: translateY(0); }

/* ---------- Misc ---------- */

.fox-divider{
  display: flex; justify-content: center; margin: 0 auto 30px;
  opacity: .8;
}
.fox-divider img{ height: 30px; width: auto; }

/* Selection is off site-wide, except where visitors may need to copy:
   form fields and contact links. Images and links can't be dragged off
   the page, and iOS long-press offers no save menu. */

body{ -webkit-user-select: none; user-select: none; }
input, textarea, select, .contact-info a, .footer-block a, .lb-order-options p{ -webkit-user-select: text; user-select: text; }
img, video, a{ -webkit-user-drag: none; -webkit-touch-callout: none; }
img, video{ user-select: none; }

/* Focus rings show for keyboard navigation only, not after a mouse click */

:focus:not(:focus-visible){ outline: none; }

::selection{ background: var(--stone-light); color: var(--ink); }
