/* ===================================================================
   Osc'art Design — Sonia Dureau
   Palette & identity extracted from the original book PDF
   =================================================================== */
:root {
  --burgundy: #80140A;
  --burgundy-deep: #5E0E06;
  --burgundy-soft: #9b2c20;
  --ink: #1c1a19;
  --grey: #6b6562;
  --blue: #5ab0ff;
  --cream: #faf8f5;
  --sand: #f1ebe3;
  --sand-line: #e3d9cd;
  --white: #ffffff;

  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Jost", "Helvetica Neue", Arial, sans-serif;

  --container: 1240px;
  --radius: 2px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --shadow: 0 18px 50px -22px rgba(40, 10, 6, .45);
  --header-h: 78px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  font-family: var(--sans);
  font-weight: 300;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container { width: min(100% - 48px, var(--container)); margin-inline: auto; }

h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.1; }
h2 { font-size: clamp(2rem, 4.4vw, 3.4rem); letter-spacing: .005em; }
h3 { font-size: 1.6rem; }

.eyebrow {
  display: inline-block;
  font-family: var(--sans);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .42em;
  text-transform: uppercase;
  color: var(--burgundy);
  margin-bottom: 1rem;
}
.eyebrow::before {
  content: ""; display: inline-block;
  width: 26px; height: 1px; background: var(--burgundy);
  vertical-align: middle; margin-right: .9em; transform: translateY(-2px);
}

/* ---------------------------------------------------- Buttons */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: .78rem;
  font-weight: 400;
  letter-spacing: .2em;
  text-transform: uppercase;
  padding: 1rem 2rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all .35s var(--ease);
}
.btn--solid { background: var(--burgundy); color: var(--white); }
.btn--solid:hover { background: var(--burgundy-deep); transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,.55); }
.btn--ghost:hover { background: rgba(255,255,255,.12); border-color: #fff; }

/* ==================================================================
   HEADER
   ================================================================== */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  display: flex; align-items: center;
  transition: background .4s var(--ease), box-shadow .4s var(--ease), height .4s var(--ease);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; width: min(100% - 48px, var(--container)); margin-inline: auto; }

.brand-logo { height: 42px; width: auto; transition: opacity .35s var(--ease); }
.brand-logo--dark { display: none; }
.brand-logo--light { display: block; }

.nav { display: flex; gap: 2.4rem; }
.nav-link {
  position: relative;
  font-size: .8rem; font-weight: 400; letter-spacing: .16em; text-transform: uppercase;
  color: var(--white); opacity: .9; transition: opacity .3s;
}
.nav-link::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 1px; width: 0;
  background: currentColor; transition: width .35s var(--ease);
}
.nav-link:hover { opacity: 1; }
.nav-link:hover::after { width: 100%; }

.header-actions { display: flex; align-items: center; gap: 1.2rem; }
.lang-toggle {
  background: none; border: none; cursor: pointer; color: var(--white);
  font-family: var(--sans); font-size: .8rem; letter-spacing: .12em;
  display: flex; gap: .35em; align-items: center;
}
.lang-opt { opacity: .5; transition: opacity .3s; }
.lang-opt.is-active { opacity: 1; font-weight: 500; }
.lang-sep { opacity: .35; }

/* scrolled state -> light header */
.site-header.scrolled {
  background: rgba(255,255,255,.96);
  box-shadow: 0 1px 0 var(--sand-line), 0 10px 30px -20px rgba(0,0,0,.25);
  height: 66px;
  backdrop-filter: blur(8px);
}
.site-header.scrolled .brand-logo--dark { display: block; }
.site-header.scrolled .brand-logo--light { display: none; }
.site-header.scrolled .brand-logo { height: 36px; }
.site-header.scrolled .nav-link { color: var(--ink); }
.site-header.scrolled .lang-toggle { color: var(--ink); }
.site-header.scrolled .burger span { background: var(--ink); }

/* burger */
.burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.burger span { width: 24px; height: 2px; background: #fff; transition: transform .35s var(--ease), opacity .25s; }

/* ==================================================================
   HERO
   ================================================================== */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center; color: var(--white); overflow: hidden;
}
.hero-grid {
  position: absolute; inset: 0; z-index: 0;
  display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr;
}
.hero-tile {
  position: relative; background-size: cover; background-position: center;
  overflow: hidden;
}
.hero-tile::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(94,14,6,.55), rgba(28,8,4,.78));
  transition: background .6s var(--ease);
}
.hero-tile:hover::after { background: linear-gradient(180deg, rgba(94,14,6,.35), rgba(28,8,4,.62)); }
.hero-tile figcaption {
  position: absolute; z-index: 2; bottom: 18px; left: 22px;
  font-size: .68rem; letter-spacing: .3em; text-transform: uppercase;
  opacity: .85; font-weight: 400;
}

.hero-content { position: relative; z-index: 3; padding: 2rem; max-width: 760px; }
.hero-content::before {
  content: ""; position: absolute; inset: -8% -12%;
  background: radial-gradient(ellipse at center, rgba(28,8,4,.55), transparent 70%);
  z-index: -1;
}
.hero-logo {
  width: clamp(240px, 34vw, 380px); margin: 0 auto 1.8rem;
  filter: drop-shadow(0 12px 30px rgba(0,0,0,.35));
}
.hero-tagline {
  font-family: var(--serif); font-style: italic;
  font-size: clamp(1.4rem, 3.2vw, 2.1rem); font-weight: 400; margin-bottom: .5rem;
}
.hero-sub {
  font-size: .82rem; letter-spacing: .22em; text-transform: uppercase;
  opacity: .82; margin-bottom: 2.4rem;
}
.hero-cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.hero-scroll {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 3;
  width: 26px; height: 42px; border: 1px solid rgba(255,255,255,.6); border-radius: 14px;
}
.hero-scroll span {
  position: absolute; top: 8px; left: 50%; width: 3px; height: 7px; border-radius: 3px;
  background: #fff; transform: translateX(-50%); animation: scroll 1.8s infinite;
}
@keyframes scroll { 0%{opacity:0;transform:translate(-50%,0)} 40%{opacity:1} 80%{opacity:0;transform:translate(-50%,14px)} 100%{opacity:0} }

/* ==================================================================
   ABOUT
   ================================================================== */
.about { position: relative; padding: clamp(5rem, 10vw, 9rem) 0; background: var(--white); }
.about::before {
  content: ""; position: absolute; inset: 0;
  background: url("../img/about/blueprint.jpg") right top / 42% auto no-repeat;
  opacity: .05; pointer-events: none;
}
.about-inner { position: relative; display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: center; }

.about-portrait { position: relative; }
.about-portrait img {
  width: 100%; border-radius: var(--radius); box-shadow: var(--shadow);
  filter: grayscale(.18) contrast(1.02);
}
.about-portrait::after {
  content: ""; position: absolute; left: -18px; top: 26px; bottom: 26px; width: 6px;
  background: var(--burgundy);
}
.about-name {
  position: absolute; left: 18px; bottom: 18px; right: 18px;
  background: rgba(94,14,6,.92); color: #fff; padding: .9rem 1.2rem;
}
.about-name h3 { font-size: 1.5rem; line-height: 1; }
.about-name p { font-size: .7rem; letter-spacing: .24em; text-transform: uppercase; opacity: .85; margin-top: .25rem; }

.about-text p { color: #423d3a; margin-bottom: 1.1rem; max-width: 56ch; }
.about-text h2 { margin-bottom: 1.4rem; color: var(--ink); }

.about-stats { list-style: none; display: flex; gap: 2.8rem; margin-top: 2.2rem; flex-wrap: wrap; }
.about-stats li { display: flex; flex-direction: column; }
.about-stats strong { font-family: var(--serif); font-size: 2.6rem; color: var(--burgundy); line-height: 1; font-weight: 600; }
.about-stats span { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--grey); margin-top: .35rem; }

/* ==================================================================
   WORK
   ================================================================== */
.work { padding: clamp(5rem, 10vw, 9rem) 0; background: var(--cream); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 2.6rem; }
.section-head .eyebrow::after {
  content: ""; display: inline-block; width: 26px; height: 1px; background: var(--burgundy);
  vertical-align: middle; margin-left: .9em; transform: translateY(-2px);
}
.section-lead { color: var(--grey); margin-top: 1rem; font-size: 1.05rem; }

.filters { display: flex; gap: .6rem; justify-content: center; flex-wrap: wrap; margin-bottom: 3rem; }
.filter {
  font-family: var(--sans); font-size: .74rem; font-weight: 400; letter-spacing: .14em; text-transform: uppercase;
  background: transparent; border: 1px solid var(--sand-line); color: var(--grey);
  padding: .7rem 1.4rem; border-radius: 40px; cursor: pointer; transition: all .3s var(--ease);
}
.filter:hover { border-color: var(--burgundy); color: var(--burgundy); }
.filter.is-active { background: var(--burgundy); border-color: var(--burgundy); color: #fff; }

.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 22px;
}

/* card */
.card {
  position: relative; overflow: hidden; border-radius: var(--radius);
  cursor: pointer; background: #ddd; grid-column: span 4;
  aspect-ratio: 4 / 3;
}
.card.span-6 { grid-column: span 6; aspect-ratio: 16 / 10; }
.card.span-8 { grid-column: span 8; aspect-ratio: 16 / 9; }
.card img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.1s var(--ease);
}
.card:hover img { transform: scale(1.06); }
.card::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,6,3,0) 38%, rgba(20,6,3,.82) 100%);
  transition: opacity .4s;
}
.card-cat {
  position: absolute; top: 16px; left: 16px; z-index: 2;
  font-size: .62rem; letter-spacing: .2em; text-transform: uppercase;
  background: rgba(255,255,255,.92); color: var(--burgundy);
  padding: .35rem .7rem; border-radius: 2px; font-weight: 500;
}
.card-count {
  position: absolute; top: 16px; right: 16px; z-index: 2;
  font-size: .68rem; letter-spacing: .08em; color: #fff;
  background: rgba(28,8,4,.55); padding: .3rem .6rem; border-radius: 40px;
  display: flex; align-items: center; gap: .35em; backdrop-filter: blur(4px);
}
.card-count svg { width: 12px; height: 12px; fill: none; stroke: #fff; stroke-width: 1.6; }
.card-body {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding: 1.4rem 1.5rem; color: #fff;
  transform: translateY(8px); opacity: .96; transition: transform .4s var(--ease);
}
.card:hover .card-body { transform: translateY(0); }
.card-title { font-family: var(--serif); font-size: 1.5rem; line-height: 1.05; }
.card-place {
  font-size: .68rem; letter-spacing: .18em; text-transform: uppercase;
  opacity: .82; margin-top: .35rem; display: flex; align-items: center; gap: .5em;
}
.card-place::before { content: ""; width: 16px; height: 1px; background: rgba(255,255,255,.7); }

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

/* ==================================================================
   CONTACT
   ================================================================== */
.contact { background: var(--burgundy); color: #fff; padding: clamp(5rem, 10vw, 8rem) 0; position: relative; }
.contact::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 80% 10%, rgba(255,255,255,.06), transparent 45%);
}
.contact-inner { position: relative; display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: center; }
.contact .eyebrow { color: #fff; }
.contact .eyebrow::before { background: rgba(255,255,255,.7); }
.contact-text h2 { margin-bottom: 1.2rem; }
.contact-text > p { opacity: .85; max-width: 46ch; margin-bottom: 2.2rem; font-size: 1.05rem; }

.contact-list { list-style: none; display: grid; gap: 1.1rem; }
.contact-list li { display: grid; grid-template-columns: 90px 1fr; align-items: baseline; gap: 1rem; padding-bottom: 1rem; border-bottom: 1px solid rgba(255,255,255,.16); }
.contact-label { font-size: .68rem; letter-spacing: .22em; text-transform: uppercase; opacity: .7; }
.contact-list a { font-family: var(--serif); font-size: 1.5rem; transition: opacity .3s; }
.contact-list a:hover { opacity: .7; }

.contact-card { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.16); padding: 2.4rem; border-radius: var(--radius); }
.contact-card h3 { margin-bottom: 1.3rem; }
.services { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: .7rem 1rem; margin-bottom: 1.6rem; }
.services li { font-size: .9rem; letter-spacing: .04em; padding-left: 1.2em; position: relative; opacity: .9; }
.services li::before { content: ""; position: absolute; left: 0; top: .6em; width: 6px; height: 6px; background: var(--blue); border-radius: 50%; }
.contact-note { font-size: .82rem; opacity: .72; line-height: 1.6; margin-bottom: 1.8rem; }

/* ==================================================================
   FOOTER
   ================================================================== */
.site-footer { background: var(--burgundy-deep); color: #fff; padding: 3.4rem 0; text-align: center; }
.footer-logo { width: 200px; margin: 0 auto 1.2rem; opacity: .96; }
.footer-tag { font-size: .76rem; letter-spacing: .2em; text-transform: uppercase; opacity: .8; margin-bottom: .6rem; }
.footer-copy { font-size: .74rem; opacity: .55; letter-spacing: .06em; }

/* ==================================================================
   LIGHTBOX
   ================================================================== */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(18, 6, 3, .94); backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transition: opacity .35s var(--ease), visibility .35s;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lb-stage { position: relative; max-width: 88vw; max-height: 84vh; text-align: center; }
.lb-stage img {
  max-width: 88vw; max-height: 78vh; width: auto; height: auto;
  border-radius: var(--radius); box-shadow: 0 30px 80px -20px rgba(0,0,0,.7);
  margin: 0 auto;
}
.lb-caption { display: flex; flex-direction: column; gap: .2rem; margin-top: 1rem; color: #fff; }
.lb-title { font-family: var(--serif); font-size: 1.4rem; }
.lb-place { font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; opacity: .7; }
.lb-counter { font-size: .72rem; opacity: .55; margin-top: .3rem; }

.lb-close {
  position: absolute; top: 22px; right: 28px; z-index: 3;
  background: none; border: none; color: #fff; font-size: 2.6rem; line-height: 1;
  cursor: pointer; opacity: .8; transition: opacity .3s, transform .3s;
}
.lb-close:hover { opacity: 1; transform: rotate(90deg); }
.lb-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.25); color: #fff;
  width: 56px; height: 56px; border-radius: 50%; font-size: 1.8rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center; transition: background .3s;
}
.lb-nav:hover { background: rgba(255,255,255,.2); }
.lb-prev { left: 3vw; }
.lb-next { right: 3vw; }

/* ==================================================================
   REVEAL ANIMATION
   ================================================================== */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.card { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease), grid-column .3s; }
.card.in { opacity: 1; transform: none; }

/* ==================================================================
   RESPONSIVE
   ================================================================== */
@media (max-width: 920px) {
  .about-inner { grid-template-columns: 1fr; }
  .about-portrait { max-width: 420px; }
  .contact-inner { grid-template-columns: 1fr; }
  .card, .card.span-6, .card.span-8 { grid-column: span 6; aspect-ratio: 4 / 3; }
}

@media (max-width: 760px) {
  :root { --header-h: 64px; }
  .nav {
    position: fixed; inset: 0 0 0 auto; width: min(80vw, 320px);
    background: var(--burgundy-deep); flex-direction: column; justify-content: center;
    gap: 1.8rem; padding: 2rem; transform: translateX(100%); transition: transform .4s var(--ease);
    z-index: 90;
  }
  .nav.open { transform: translateX(0); }
  .nav-link { color: #fff !important; font-size: 1rem; }
  .burger { display: flex; }
  .site-header.scrolled .burger span { background: var(--ink); }
  .nav.open ~ .header-actions .burger span { background: #fff; }
  .burger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .burger.active span:nth-child(2) { opacity: 0; }
  .burger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .grid { gap: 16px; }
  .card, .card.span-6, .card.span-8 { grid-column: span 12; aspect-ratio: 4 / 3; }
  .contact-list li { grid-template-columns: 1fr; gap: .2rem; }
  .contact-list a { font-size: 1.25rem; }
  .about-stats { gap: 1.8rem; }
  .lb-prev { left: 1rem; } .lb-next { right: 1rem; }
  .lb-nav { width: 46px; height: 46px; }
}
