/* ============================================================
   Les Pitounes en Tuxedo
   Palette drawn from the work itself: driftwood grey, warm
   walnut, and the pale board the pieces are photographed on.
   ============================================================ */

:root {
  --bone: #f7f4ee;
  --bone-2: #efeae0;
  --bone-3: #e4ddd0;
  --ink: #221d19;
  --ink-2: #3a332c;
  --ink-soft: #6b6157;
  --deep: #17130f;
  --deep-2: #221c16;
  --terracotta: #a85c36;
  --terracotta-lt: #c4794f;
  --driftwood: #8f877a;

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1180px;
  --gutter: clamp(1.25rem, 5vw, 4rem);
  --radius: 4px;

  --t-fast: 180ms cubic-bezier(.4, 0, .2, 1);
  --t-med: 380ms cubic-bezier(.4, 0, .2, 1);

  --header-h: 72px;
}

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

* {
  margin: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  background: var(--bone);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

/* Author `display` declarations outrank the UA sheet's [hidden] rule, so the
   lightbox and to-top button would stay laid out (and keep eating clicks)
   while nominally hidden. Enforce it. */
[hidden] {
  display: none !important;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

a {
  color: inherit;
}

ul {
  list-style: none;
  padding: 0;
}

address {
  font-style: normal;
}

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--ink);
  color: var(--bone);
  padding: .75rem 1.25rem;
  font-size: .875rem;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- type ---------- */
h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.015em;
  font-variation-settings: "SOFT" 20, "WONK" 1;
}

em {
  font-style: italic;
}

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background var(--t-med), box-shadow var(--t-med);
}

.site-header.is-stuck {
  background: rgba(247, 244, 238, .92);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(34, 29, 25, .1);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: .7rem;
  text-decoration: none;
  color: var(--bone);
  transition: color var(--t-med);
}

.site-header.is-stuck .brand {
  color: var(--ink);
}

.brand-mark {
  width: 36px;
  height: auto;
  filter: brightness(0) invert(1);
  transition: filter var(--t-med);
}

.site-header.is-stuck .brand-mark {
  filter: none;
}

.brand-text {
  font-family: var(--font-display);
  font-size: .95rem;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: .01em;
  display: flex;
  flex-direction: column;
}

.brand-text em {
  font-size: .78rem;
  font-weight: 400;
  opacity: .75;
}

.primary-nav ul {
  display: flex;
  gap: clamp(1rem, 2.5vw, 2.25rem);
  margin: 0;
}

.primary-nav a {
  position: relative;
  text-decoration: none;
  font-size: .82rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(247, 244, 238, .82);
  padding-block: .35rem;
  transition: color var(--t-fast);
}

.site-header.is-stuck .primary-nav a {
  color: var(--ink-soft);
}

.primary-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--t-med);
}

.primary-nav a:hover,
.primary-nav a.is-current {
  color: var(--bone);
}

.site-header.is-stuck .primary-nav a:hover,
.site-header.is-stuck .primary-nav a.is-current {
  color: var(--terracotta);
}

.primary-nav a:hover::after,
.primary-nav a.is-current::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* burger */
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  z-index: 110;
}

.nav-toggle-bar {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--bone);
  border-radius: 2px;
  transition: transform var(--t-med), opacity var(--t-fast), background var(--t-med);
}

.site-header.is-stuck .nav-toggle-bar,
.nav-open .nav-toggle-bar {
  background: var(--ink);
}

.nav-open .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-open .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-open .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  background: var(--deep);
  color: var(--bone);
  overflow: hidden;
}

.hero-copy {
  padding: calc(var(--header-h) + 3rem) clamp(1.25rem, 4vw, 3.5rem) 5rem var(--gutter);
  max-width: 46rem;
  margin-left: auto;
  width: 100%;
}

.eyebrow {
  font-size: .74rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--terracotta-lt);
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: clamp(3rem, 8.5vw, 6.5rem);
  line-height: .95;
  letter-spacing: -0.03em;
  font-weight: 600;
}

.hero-title em {
  display: block;
  font-weight: 400;
  color: var(--terracotta-lt);
}

.hero-by {
  margin-top: 1.5rem;
  font-size: clamp(.95rem, 1.6vw, 1.1rem);
  letter-spacing: .04em;
  color: rgba(247, 244, 238, .7);
}

.hero-by strong {
  font-weight: 600;
  color: var(--bone);
}

.hero-lede {
  margin-top: 1.75rem;
  max-width: 34ch;
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  color: rgba(247, 244, 238, .72);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .875rem;
  margin-top: 2.5rem;
}

.hero-media {
  position: relative;
  height: 100svh;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Bias the crop toward the face — on wide/short viewports `cover` would
     otherwise centre on the torso and cut the head off. */
  object-position: 50% 30%;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--deep) 0%, rgba(23, 19, 15, .35) 32%, rgba(23, 19, 15, .1) 100%);
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 2rem;
  transform: translateX(-50%);
  width: 26px;
  height: 42px;
  border: 1.5px solid rgba(247, 244, 238, .35);
  border-radius: 20px;
  z-index: 3;
}

.scroll-cue span {
  position: absolute;
  left: 50%;
  top: 9px;
  width: 3px;
  height: 7px;
  margin-left: -1.5px;
  background: var(--bone);
  border-radius: 2px;
  animation: cue 1.9s infinite;
}

@keyframes cue {

  0%,
  100% {
    opacity: 0;
    transform: translateY(0);
  }

  30% {
    opacity: 1;
  }

  70% {
    opacity: 0;
    transform: translateY(14px);
  }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  padding: .95rem 1.85rem;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: var(--radius);
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast), transform var(--t-fast);
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--terracotta);
  color: #fff;
}

.btn-primary:hover {
  background: var(--terracotta-lt);
}

.btn-ghost {
  border: 1px solid rgba(247, 244, 238, .3);
  color: var(--bone);
}

.btn-ghost:hover {
  border-color: var(--bone);
  background: rgba(247, 244, 238, .08);
}

/* ============================================================
   Sections
   ============================================================ */
.section {
  padding-block: clamp(4.5rem, 11vw, 9rem);
}

.section-head {
  max-width: 46rem;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.section-kicker {
  font-size: .72rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 1.1rem;
}

.section-title {
  font-size: clamp(2.1rem, 5.2vw, 3.6rem);
}

.section-desc {
  margin-top: 1.25rem;
  font-size: clamp(1rem, 1.4vw, 1.1rem);
  color: var(--ink-soft);
  max-width: 44ch;
}

/* ---------- Histoire ---------- */
.section-histoire {
  background: var(--bone);
}

.prose {
  max-width: 62ch;
  margin-left: auto;
  font-size: clamp(1rem, 1.35vw, 1.075rem);
  color: var(--ink-2);
}

.prose p+p {
  margin-top: 1.5rem;
}

.prose .lede {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.3vw, 1.6rem);
  line-height: 1.45;
  color: var(--ink);
  font-weight: 400;
}

.prose .lede::first-letter {
  float: left;
  font-size: 3.6em;
  line-height: .82;
  padding: .06em .1em 0 0;
  color: var(--terracotta);
  font-weight: 600;
}

.affiliations {
  margin-top: 2.5rem !important;
  padding-top: 1.75rem;
  border-top: 1px solid var(--bone-3);
  font-size: .9rem;
  color: var(--ink-soft);
}

.affiliations a {
  color: var(--terracotta);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.affiliations a:hover {
  color: var(--ink);
}

/* ---------- Collection ---------- */
.section-collection {
  background: var(--bone-2);
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin-bottom: 2.5rem;
}

.chip {
  padding: .55rem 1.15rem;
  font-size: .76rem;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  border: 1px solid var(--bone-3);
  border-radius: 100px;
  color: var(--ink-soft);
  background: transparent;
  transition: all var(--t-fast);
}

.chip:hover {
  border-color: var(--driftwood);
  color: var(--ink);
}

.chip.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bone);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  gap: clamp(.75rem, 1.6vw, 1.35rem);
  margin: 0;
}

.piece.is-hidden {
  display: none;
}

.piece-btn {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--bone-3);
}

.piece-btn img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 600ms cubic-bezier(.2, .6, .2, 1), filter var(--t-med);
}

.piece-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(23, 19, 15, .82) 0%, rgba(23, 19, 15, .1) 45%, transparent 70%);
  opacity: 0;
  transition: opacity var(--t-med);
}

.piece-btn:hover img,
.piece-btn:focus-visible img {
  transform: scale(1.06);
}

.piece-btn:hover::after,
.piece-btn:focus-visible::after {
  opacity: 1;
}

.piece-info {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 1.1rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: .2rem;
  text-align: left;
  color: var(--bone);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity var(--t-med), transform var(--t-med);
}

.piece-btn:hover .piece-info,
.piece-btn:focus-visible .piece-info {
  opacity: 1;
  transform: none;
}

.piece-name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
}

.piece-meta {
  font-size: .74rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--terracotta-lt);
}

.gallery-empty {
  margin-top: 2rem;
  color: var(--ink-soft);
}

/* ---------- Points de vente ---------- */
.section-vente {
  background: var(--bone);
}

.shops {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
  margin: 0;
}

.shop {
  padding: 1.9rem 1.75rem;
  background: #fff;
  border: 1px solid var(--bone-3);
  border-radius: var(--radius);
  transition: transform var(--t-med), box-shadow var(--t-med), border-color var(--t-med);
}

.shop:hover {
  transform: translateY(-3px);
  border-color: var(--driftwood);
  box-shadow: 0 12px 32px -18px rgba(34, 29, 25, .5);
}

.shop h3 {
  font-size: 1.15rem;
  margin-bottom: .7rem;
}

.shop address {
  color: var(--ink-soft);
  font-size: .94rem;
  line-height: 1.6;
}

.shop .tel {
  display: inline-block;
  margin-top: .9rem;
  font-size: .88rem;
  font-weight: 500;
  color: var(--terracotta);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-fast);
}

.shop .tel:hover {
  border-bottom-color: currentColor;
}

/* ---------- Contact ---------- */
.section-contact {
  background: var(--deep);
  color: var(--bone);
}

.section-contact .section-title {
  color: var(--bone);
}

.section-contact .section-desc {
  color: rgba(247, 244, 238, .6);
}

.section-contact .section-kicker {
  color: var(--terracotta-lt);
}

.contact-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 1rem;
}

.contact-card {
  display: flex;
  flex-direction: column;
  gap: .4rem;
  padding: 1.75rem;
  border: 1px solid rgba(247, 244, 238, .16);
  border-radius: var(--radius);
  text-decoration: none;
  transition: background var(--t-fast), border-color var(--t-fast), transform var(--t-med);
}

.contact-card:hover {
  background: rgba(247, 244, 238, .05);
  border-color: rgba(247, 244, 238, .4);
  transform: translateY(-3px);
}

.contact-label {
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--terracotta-lt);
}

.contact-value {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  font-weight: 600;
  word-break: break-word;
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  background: var(--deep-2);
  color: rgba(247, 244, 238, .55);
  padding-block: 3.5rem;
  text-align: center;
  border-top: 1px solid rgba(247, 244, 238, .08);
}

.footer-mark {
  width: clamp(112px, 17vw, 150px);
  height: auto;
  margin: 0 auto 1.5rem;
  /* the lockup ships as dark ink on transparent — flip it for the dark footer */
  filter: brightness(0) invert(1);
  opacity: .82;
}

.footer-name {
  font-family: var(--font-display);
  color: var(--bone);
  font-size: 1rem;
}

.footer-meta {
  margin-top: .4rem;
  font-size: .84rem;
}

/* ============================================================
   To-top + Lightbox
   ============================================================ */
.to-top {
  position: fixed;
  right: clamp(1rem, 3vw, 2rem);
  bottom: clamp(1rem, 3vw, 2rem);
  z-index: 90;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: var(--bone);
  border-radius: 50%;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity var(--t-med), transform var(--t-med), background var(--t-fast);
}

.to-top svg {
  width: 20px;
  height: 20px;
}

.to-top.is-visible {
  opacity: 1;
  transform: none;
}

.to-top:hover {
  background: var(--terracotta);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(.5rem, 2vw, 1.5rem);
  padding: clamp(1rem, 4vw, 3rem);
  background: rgba(15, 12, 10, .95);
  opacity: 0;
  transition: opacity var(--t-med);
}

.lightbox.is-open {
  opacity: 1;
}

.lb-figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  min-width: 0;
  margin: 0;
}

.lb-figure img {
  max-width: 100%;
  max-height: 78svh;
  object-fit: contain;
  border-radius: var(--radius);
}

.lb-figure figcaption {
  color: rgba(247, 244, 238, .8);
  font-size: .88rem;
  letter-spacing: .06em;
  text-align: center;
}

.lb-close {
  position: absolute;
  top: clamp(.5rem, 2vw, 1.5rem);
  right: clamp(.5rem, 2vw, 1.5rem);
  width: 48px;
  height: 48px;
  font-size: 2rem;
  line-height: 1;
  color: rgba(247, 244, 238, .75);
  transition: color var(--t-fast);
}

.lb-close:hover {
  color: #fff;
}

.lb-nav {
  width: 52px;
  height: 52px;
  font-size: 2.4rem;
  line-height: 1;
  color: rgba(247, 244, 238, .6);
  border-radius: 50%;
  transition: color var(--t-fast), background var(--t-fast);
}

.lb-nav:hover {
  color: #fff;
  background: rgba(247, 244, 238, .1);
}

body.lb-open,
body.nav-open {
  overflow: hidden;
}

/* ============================================================
   Reveal on scroll
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 700ms cubic-bezier(.2, .6, .2, 1), transform 700ms cubic-bezier(.2, .6, .2, 1);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-copy {
    order: 2;
    padding: 3rem var(--gutter) 4.5rem;
    max-width: none;
  }

  .hero-media {
    order: 1;
    height: 56svh;
    min-height: 320px;
  }

  .hero-media::after {
    background: linear-gradient(to bottom, rgba(23, 19, 15, .55) 0%, rgba(23, 19, 15, .2) 40%, var(--deep) 100%);
  }

  .scroll-cue {
    display: none;
  }

  .prose {
    margin-left: 0;
  }
}

@media (max-width: 760px) {
  .nav-toggle {
    display: flex;
  }

  .primary-nav {
    position: fixed;
    inset: 0;
    background: var(--bone);
    display: grid;
    place-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--t-med), visibility var(--t-med);
  }

  .nav-open .primary-nav {
    opacity: 1;
    visibility: visible;
  }

  .primary-nav ul {
    flex-direction: column;
    align-items: center;
    gap: 1.75rem;
  }

  .primary-nav a,
  .site-header.is-stuck .primary-nav a {
    font-size: 1.35rem;
    font-family: var(--font-display);
    letter-spacing: .02em;
    text-transform: none;
    color: var(--ink);
  }

  .prose .lede::first-letter {
    font-size: 3em;
  }

  .lb-nav {
    width: 44px;
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .gallery {
    grid-template-columns: 1fr 1fr;
    gap: .5rem;
  }

  .piece-info {
    padding: .7rem;
  }

  .piece-name {
    font-size: .82rem;
  }

  .piece-meta {
    font-size: .64rem;
  }

  .btn {
    width: 100%;
    text-align: center;
  }
}

/* ============================================================
   Motion / print
   ============================================================ */
@media (prefers-reduced-motion: reduce) {

  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media print {

  .site-header,
  .to-top,
  .lightbox,
  .scroll-cue,
  .filters {
    display: none !important;
  }

  body {
    background: #fff;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
