/* Atelieu — static site. Palette v2. Type: Playfair Display + Urbanist
   (Bloom & Make uses Bon Vivant Serif + Urbanist; Playfair is the closest self-hosted match.) */
:root {
  --paper: #F8F4EC;
  --linen: #EFE6D6;
  --butter: #F7E6A8;
  --yellow: #EBB80C;
  --yellow-hover: #D9A800;
  --ochre: #835F00;
  --blush: #EFD5C6;
  --sage: #A9B596;
  --leaf: #55634B;
  --sand: #D8C8A8;
  --ink: #2E2A27;
  --white: #ffffff;
  --header-h: 4.5rem;
  --max: 72rem;
  --narrow: 40rem;
  --space: 1.25rem;
  --radius: 2px;
  --font-serif: "Playfair Display", "Iowan Old Style", Palatino, Georgia, serif;
  --font-sans: Urbanist, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--leaf); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--ink); }
:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.skip-link {
  position: absolute; left: 1rem; top: -4rem;
  background: var(--yellow); color: var(--ink);
  padding: 0.5rem 1rem; z-index: 1000; font-weight: 600;
}
.skip-link:focus { top: 0.75rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  height: var(--header-h);
  background: var(--paper);
  border-bottom: 1px solid transparent;
  transition: background 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.site-header.is-scrolled {
  border-bottom-color: var(--sand);
}
.site-header.is-over-hero {
  position: absolute; left: 0; right: 0; top: 0;
  background: transparent; border-bottom-color: transparent;
}
.site-header.is-over-hero.is-scrolled,
.site-header.is-over-hero.is-open {
  position: sticky;
  background: var(--paper);
}
.header-inner {
  max-width: 90rem;
  margin: 0 auto;
  height: 100%;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.logo { display: flex; align-items: center; flex-shrink: 0; }
.logo img { height: 2.35rem; width: auto; }
.logo__white { display: none; }
.site-header.is-over-hero:not(.is-scrolled):not(.is-open) .logo__yellow { display: none; }
.site-header.is-over-hero:not(.is-scrolled):not(.is-open) .logo__white { display: block; }

.site-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 1.75rem;
}
.site-nav a {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
}
.site-header.is-over-hero:not(.is-scrolled):not(.is-open) .site-nav a { color: var(--white); }
.site-nav a:hover { color: var(--ochre); }
.site-nav a[aria-current="page"] {
  color: var(--ochre);
  box-shadow: inset 0 -2px 0 var(--yellow);
}
.site-header.is-over-hero:not(.is-scrolled):not(.is-open) .site-nav a:hover {
  color: var(--butter);
}
.site-header.is-over-hero:not(.is-scrolled):not(.is-open) .site-nav a[aria-current="page"] {
  color: var(--white);
  box-shadow: inset 0 -2px 0 var(--yellow);
}
.nav-cta {
  background: var(--yellow);
  color: var(--ink) !important;
  padding: 0.55rem 1.15rem;
  border-radius: 999px;
  letter-spacing: 0.1em !important;
}
.nav-cta:hover { background: var(--yellow-hover); color: var(--ink) !important; }
.nav-cta[aria-current="page"] { box-shadow: none; }
.site-header.is-over-hero:not(.is-scrolled):not(.is-open) .nav-cta {
  background: var(--yellow);
  color: var(--ink) !important;
}

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 2.75rem; height: 2.75rem;
  border: 0; background: transparent; cursor: pointer;
  position: relative;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block; position: absolute; left: 0.6rem;
  width: 1.45rem; height: 2px; background: var(--ink); content: "";
}
.site-header.is-over-hero:not(.is-scrolled):not(.is-open) .nav-toggle span,
.site-header.is-over-hero:not(.is-scrolled):not(.is-open) .nav-toggle span::before,
.site-header.is-over-hero:not(.is-scrolled):not(.is-open) .nav-toggle span::after { background: var(--white); }
.nav-toggle span { top: 50%; }
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

@media (max-width: 840px) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none;
    position: absolute; left: 0; right: 0; top: var(--header-h);
    background: var(--paper);
    flex-direction: column; align-items: flex-start;
    padding: 1.25rem 1.5rem 2rem;
    gap: 1.1rem;
    border-bottom: 1px solid var(--sand);
  }
  .site-header.is-open .site-nav { display: flex; }
  .site-nav a { font-size: 0.95rem; color: var(--ink) !important; }
  .nav-cta { color: var(--ink) !important; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  height: 100svh;
  min-height: 36rem;
  overflow: hidden;
  background: var(--ink);
  color: var(--white);
}
.hero__media, .hero__video, .hero__poster {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(46,42,39,0.35) 0%, rgba(46,42,39,0.25) 40%, rgba(46,42,39,0.45) 100%);
}
.hero__content {
  position: relative; z-index: 1;
  height: 100%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  padding: 6rem 1.5rem 3rem;
}
.hero__title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(3.5rem, 12vw, 8.5rem);
  line-height: 0.95;
  letter-spacing: 0.02em;
  margin: 0;
}
.hero__tagline {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.15rem, 2.4vw, 1.85rem);
  margin: 1.15rem 0 0;
  max-width: 28rem;
}
@media (prefers-reduced-motion: reduce) {
  .hero__video { display: none; }
  html { scroll-behavior: auto; }
  .teaser-grid a:hover img { transform: none; }
}

/* ---------- Layout ---------- */
.section { padding: 5.5rem 1.5rem; }
.section--linen { background: var(--linen); }
.section--tight { padding: 4rem 1.5rem; }
.wrap { max-width: var(--max); margin: 0 auto; }
.wrap--narrow { max-width: var(--narrow); }
.eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ochre);
  margin: 0 0 0.6rem;
}
h1, h2, h3, .font-serif { font-family: var(--font-serif); font-weight: 500; letter-spacing: 0.01em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); line-height: 1.15; margin: 0 0 1rem; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); line-height: 1.2; margin: 0 0 1rem; }
h3 { font-size: 1.35rem; margin: 0 0 0.5rem; }
.lede { font-size: 1.15rem; max-width: 36rem; margin: 0 auto; }
.center { text-align: center; }
.section-head { text-align: center; margin-bottom: 0.5rem; }
.section-head .eyebrow { margin-bottom: 0.75rem; }
.muted { color: var(--leaf); }
hr.rule { border: 0; border-top: 1px solid var(--sand); margin: 0; }

/* Buttons */
.btn {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  background: var(--yellow);
  color: var(--ink);
  transition: background 0.2s;
}
.btn:hover { background: var(--yellow-hover); color: var(--ink); }
.btn--ghost {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}
.btn--ghost:hover { background: var(--ink); color: var(--paper); }
.btn--leaf { background: var(--leaf); color: var(--white); }
.btn--leaf:hover { background: #44503d; color: var(--white); }

/* ---------- Home blocks ---------- */
.intro { text-align: center; }
.intro p { margin: 0 auto 2rem; max-width: 36rem; font-size: 1.15rem; }
.intro-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; }


.teaser-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin: 2.5rem 0 2rem;
}
.teaser-grid a { display: block; overflow: hidden; background: var(--linen); }
.teaser-grid img {
  width: 100%; height: 100%;
  object-fit: cover;
  aspect-ratio: 4/5;
  transition: transform 0.6s ease;
}
.teaser-grid a:hover img { transform: scale(1.03); }
.teaser-grid .wide { grid-column: span 2; }
.teaser-grid .wide img { aspect-ratio: 16/10; }

.about-teaser {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 3.5rem;
  align-items: center;
}
.about-teaser img { width: 100%; aspect-ratio: 4/5; object-fit: cover; object-position: 72% 38%; }
.about-teaser p { margin: 0 0 1.5rem; }

.cta-band {
  text-align: center;
  padding: 5rem 1.5rem;
  background: var(--leaf);
  color: var(--white);
}
.cta-band h2 { color: var(--white); margin-bottom: 0.5rem; }
.cta-band p { color: var(--butter); margin: 0 0 1.5rem; }

@media (max-width: 800px) {
  .teaser-grid { grid-template-columns: 1fr 1fr; }
  .teaser-grid .wide { grid-column: span 2; }
  .about-teaser { grid-template-columns: 1fr; gap: 1.75rem; }
  .about-teaser img { aspect-ratio: 4/5; max-height: 28rem; object-fit: cover; object-position: 72% 38%; }
}
@media (max-width: 520px) {
  .teaser-grid { grid-template-columns: 1fr; }
  .teaser-grid .wide { grid-column: auto; }
  .teaser-grid .wide img { aspect-ratio: 4/5; }
}

/* ---------- Portfolio grid ---------- */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
}
.portfolio-grid a {
  display: block;
  background: var(--linen);
  cursor: zoom-in;
  overflow: hidden;
}
.portfolio-grid img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  object-position: center 30%;
  display: block;
}
@media (max-width: 800px) {
  .portfolio-grid { grid-template-columns: 1fr 1fr; }
}

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(46,42,39,0.92);
  display: none; align-items: center; justify-content: center;
  padding: 2rem 1rem;
}
.lightbox.is-open { display: flex; }
.lightbox img { max-width: min(1200px, 100%); max-height: 90vh; width: auto; height: auto; }
.lightbox figcaption {
  color: var(--paper); text-align: center; margin-top: 0.75rem;
  font-size: 0.9rem;
}
.lightbox__close {
  position: absolute; top: 1rem; right: 1rem;
  background: transparent; border: 0; color: var(--white);
  font-size: 2rem; cursor: pointer; line-height: 1;
}

/* ---------- Page hero (inner) ---------- */
.page-hero {
  padding: 8rem 1.5rem 3rem;
  text-align: center;
}
.page-hero p { margin: 0 auto; max-width: 34rem; }

/* ---------- About ---------- */
.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 3.5rem;
  align-items: start;
}
.about-layout img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  object-position: 72% 38%;
}
.about-copy p { margin: 0 0 1.1rem; }
.about-copy p.snippet {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.2rem;
  border-left: 2px solid var(--yellow);
  padding-left: 1.1rem;
  margin: 1.75rem 0;
}
.values { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem 2rem; margin: 2rem 0; }
.values h3 { font-family: var(--font-sans); font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ochre); margin-bottom: 0.25rem; font-weight: 700; }
.values p { margin: 0; }
@media (max-width: 800px) {
  .about-layout { grid-template-columns: 1fr; }
  .values { grid-template-columns: 1fr; }
}

/* ---------- FAQ ---------- */
.faq { max-width: 42rem; margin: 0 auto; }
.faq details {
  border-bottom: 1px solid var(--sand);
  padding: 0.2rem 0;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  padding: 1.15rem 1.8rem 1.15rem 0;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute; right: 0; top: 1.05rem;
  font-weight: 400; font-size: 1.4rem; color: var(--ochre);
}
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 1.15rem; padding-right: 1.5rem; }

/* ---------- Form ---------- */
.form { display: grid; gap: 1.1rem; }
.field { display: flex; flex-direction: column; gap: 0.35rem; }
.field label { font-size: 0.85rem; font-weight: 600; }
.req { color: var(--ochre); }
.field input, .field select, .field textarea {
  font: inherit;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--sand);
  border-radius: var(--radius);
  padding: 0.7rem 0.8rem;
  width: 100%;
}
.field textarea { min-height: 8rem; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--leaf);
  outline-offset: 1px;
  border-color: var(--leaf);
}
.field--check { flex-direction: row; align-items: flex-start; gap: 0.7rem; }
.field--check input { width: auto; margin-top: 0.3rem; }
.form-note { font-size: 0.9rem; color: var(--leaf); }
.form-success {
  display: none;
  background: var(--linen);
  padding: 1.5rem;
  margin-bottom: 1.25rem;
}
.form-success.is-visible { display: block; }
.form-error { color: #8C2F2F; font-size: 0.9rem; display: none; }
.form-error.is-visible { display: block; }

/* ---------- Legal ---------- */
.legal { max-width: 42rem; margin: 0 auto; padding-bottom: 4rem; }
.legal h2 { font-size: 1.35rem; margin-top: 2rem; }
.placeholder {
  background: var(--butter);
  color: var(--ink);
  padding: 0.05em 0.35em;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.92em;
}

/* ---------- Footer ---------- */
.site-footer {
  padding: 3.5rem 1.5rem 2rem;
  background: var(--linen);
  border-top: 1px solid var(--sand);
}
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: start;
}
.footer-brand img { height: 2rem; width: auto; }
.footer-brand p { margin: 0.7rem 0 0; font-size: 0.92rem; color: var(--leaf); }
.footer-links {
  display: flex; flex-wrap: wrap; gap: 0.9rem 1.4rem;
  font-size: 0.85rem;
}
.footer-links a { color: var(--ink); text-decoration: none; }
.footer-links a:hover { color: var(--leaf); }
.footer-meta {
  max-width: var(--max);
  margin: 2rem auto 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--sand);
  font-size: 0.8rem;
  color: var(--leaf);
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
}
@media (max-width: 640px) {
  .footer-inner { grid-template-columns: 1fr; }
}

/* 404 */
.error-page { min-height: 70vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 6rem 1.5rem; }


/* ---------- Instagram 2-click feed (Behold, only after consent) ---------- */
.ig-feed .section-head { margin-bottom: 2rem; }
.ig-feed .section-head p { margin: 0.35rem 0 0; }
.ig-consent__box {
  background: var(--paper);
  border: 1px solid var(--sand);
  padding: 2.25rem 1.75rem;
  text-align: center;
  max-width: 36rem;
  margin: 0 auto;
}
.ig-consent__box p {
  margin: 0 auto 1.5rem;
  max-width: 28rem;
  font-size: 1rem;
  color: var(--ink);
}
.ig-consent__always {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 1.15rem 0 0;
  font-size: 0.9rem;
  color: var(--leaf);
  cursor: pointer;
}
.ig-consent__always input {
  width: 1rem;
  height: 1rem;
  accent-color: var(--leaf);
  cursor: pointer;
}
.ig-consent__widget { margin-top: 0.5rem; }
.ig-consent__widget[hidden] { display: none; }
behold-widget { display: block; }

.about-page { padding-top: 3.5rem; }
.about-copy .eyebrow { margin-bottom: 0.75rem; }
.about-copy h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin: 0 0 1.25rem; }
.about-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem 1.5rem;
  align-items: center;
  margin: 2rem 0 0;
}
.about-actions a:not(.btn) {
  color: var(--ink);
  font-size: 0.9rem;
}
