/* ============================================================
   Ivic Couturier — bespoke static site
   Editorial couture house: ivory, warm ink, champagne gold.
   Lean & static: one stylesheet, tiny JS, no framework.
   ============================================================ */

:root {
  --ink: #1b1613;          /* warm near-black for text */
  --cream: #faf6ef;        /* ivory page background */
  --cream-2: #f3ece1;      /* tinted section background */
  --gold: #a9824f;         /* desaturated champagne accent */
  --gold-soft: #c7a878;
  --muted: #6f655b;        /* secondary text */
  --line: #e4d9c9;         /* hairline rule */
  --white: #fffdf9;
  --maxw: 1200px;
  --gutter: clamp(1.25rem, 5vw, 4rem);
  --section-y: clamp(4.5rem, 11vw, 9rem);
  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body: "Jost", system-ui, -apple-system, sans-serif;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.75;
  letter-spacing: 0.012em;
  overflow-x: hidden;
}

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

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.005em;
  margin: 0;
}

p { margin: 0 0 1.1em; }

.container { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }
.container--narrow { max-width: 760px; }

/* ---------- shared atoms ---------- */
.eyebrow {
  font-family: var(--font-body);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 0.72rem;
  color: var(--gold);
  margin: 0 0 1.4rem;
}
.eyebrow--light { color: var(--gold-soft); }

.lede { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--muted); line-height: 1.6; }

.rule { width: 46px; height: 1px; background: var(--gold); border: 0; margin: 0 0 1.6rem; }
.rule--center { margin-inline: auto; }

.btn {
  --btn-bg: var(--ink);
  --btn-fg: var(--cream);
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 1rem 2rem;
  background: var(--btn-bg); color: var(--btn-fg);
  font-weight: 600; font-size: 0.82rem;
  text-transform: uppercase; letter-spacing: 0.16em;
  border: 1px solid var(--btn-bg);
  transition: background .35s ease, color .35s ease, transform .35s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--ghost {
  --btn-bg: transparent; --btn-fg: var(--ink);
  border-color: color-mix(in srgb, var(--ink) 35%, transparent);
}
.btn--ghost:hover { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.btn--on-dark { --btn-bg: var(--cream); --btn-fg: var(--ink); }
.btn--ghost.btn--on-dark { --btn-fg: var(--cream); border-color: rgba(255,255,255,.5); }
.btn--ghost.btn--on-dark:hover { background: var(--cream); color: var(--ink); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-weight: 600; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.16em;
  color: var(--ink);
  padding-bottom: 3px; border-bottom: 1px solid var(--gold);
  transition: gap .3s ease, color .3s ease;
}
.link-arrow:hover { gap: 0.9rem; color: var(--gold); }

/* ---------- header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.3rem var(--gutter);
  transition: background .4s ease, padding .4s ease, box-shadow .4s ease, color .4s ease;
  color: var(--ink);
}
.site-header.is-solid {
  background: color-mix(in srgb, var(--cream) 94%, transparent);
  backdrop-filter: blur(10px);
  color: var(--ink);
  padding-block: 0.85rem;
  box-shadow: 0 1px 0 var(--line);
}
.brand {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.5rem;
  letter-spacing: 0.01em;
  line-height: 1;
}
.brand .dot { color: var(--gold); font-style: normal; }
.nav { display: flex; align-items: center; gap: 2.2rem; }
.nav a {
  font-size: 0.78rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.16em;
  position: relative; padding-bottom: 3px;
}
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 1px;
  background: currentColor; transition: width .3s ease;
}
.nav a:hover::after, .nav a[aria-current="page"]::after { width: 100%; }
.nav .btn { padding: 0.65rem 1.4rem; font-size: 0.72rem; }
.nav-lang { font-size: 0.72rem; letter-spacing: 0.16em; opacity: 0.65; }
.nav-lang:hover { opacity: 1; }
.nav-lang::after { display: none; }
.nav-toggle { display: none; }

/* ---------- hero ---------- */
.hero {
  background: var(--cream); color: var(--ink);
  padding-top: clamp(7rem, 12vw, 9.5rem);
  padding-bottom: clamp(3rem, 7vw, 5rem);
  overflow: hidden;
}
.hero .container {
  display: grid; grid-template-columns: 1.02fr 0.98fr;
  gap: clamp(2rem, 6vw, 5.5rem); align-items: center;
}
.hero__text { max-width: 32rem; }
.hero h1 {
  font-size: clamp(2.8rem, 6vw, 5.2rem);
  font-weight: 600; line-height: 1.03; margin-bottom: 1.4rem;
}
.hero h1 em { font-style: italic; color: var(--gold); }
.hero__sub { font-size: clamp(1.05rem, 1.5vw, 1.2rem); color: var(--muted); margin-bottom: 2.2rem; max-width: 42ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 1rem; }
.hero__media { position: relative; z-index: 0; }
.hero__media .frame { aspect-ratio: 4/5; overflow: hidden; background: var(--cream-2); box-shadow: 0 30px 70px -30px rgba(27,22,19,.4); }
.hero__media .frame img { width: 100%; height: 100%; object-fit: cover; }
.hero__media::before { content: ""; position: absolute; inset: 18px -18px -18px 18px; border: 1px solid var(--gold); z-index: -1; }

/* ---------- generic section ---------- */
.section { padding-block: var(--section-y); }
.section--tint { background: var(--cream-2); }
.section--ink { background: var(--ink); color: var(--cream); }
.section--ink .lede, .section--ink p { color: rgba(255,255,255,.78); }
.section__head { max-width: 640px; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section__head.center { margin-inline: auto; text-align: center; }
.section h2 { font-size: clamp(2rem, 4.2vw, 3.2rem); }

/* intro split */
.intro { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.intro__media { aspect-ratio: 4/5; overflow: hidden; }
.intro__media img { width: 100%; height: 100%; object-fit: cover; }
.intro__media.offset { margin-top: -3rem; }
.intro h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 1.4rem; }

/* collections cards */
.collections { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2.5vw, 2rem); }
.coll-card { position: relative; display: block; overflow: hidden; aspect-ratio: 3/4; background: var(--cream-2); }
.coll-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s cubic-bezier(.2,.7,.2,1); }
.coll-card:hover img { transform: scale(1.06); }
.coll-card__label {
  position: absolute; inset: auto 0 0 0; z-index: 2;
  padding: 2rem 1.6rem 1.5rem;
  background: linear-gradient(0deg, rgba(14,11,9,.82), rgba(14,11,9,0));
  color: var(--cream);
}
.coll-card__label h3 { font-size: 1.6rem; margin-bottom: 0.2rem; }
.coll-card__label span { font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.18em; color: var(--gold-soft); }

/* lookbook masonry */
.lookbook { columns: 3; column-gap: clamp(0.75rem, 1.6vw, 1.1rem); }
.lookbook figure { margin: 0 0 clamp(0.75rem, 1.6vw, 1.1rem); break-inside: avoid; overflow: hidden; background: var(--cream-2); cursor: zoom-in; }
.lookbook img { width: 100%; transition: transform .9s cubic-bezier(.2,.7,.2,1), filter .5s ease; }
.lookbook figure:hover img { transform: scale(1.05); }

/* process steps */
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1.5rem, 3vw, 3rem); counter-reset: step; }
.step { position: relative; padding-top: 2.6rem; }
.step::before {
  counter-increment: step; content: "0" counter(step);
  position: absolute; top: 0; left: 0;
  font-family: var(--font-display); font-style: italic; font-size: 1.6rem; color: var(--gold);
}
.step h3 { font-size: 1.3rem; margin-bottom: 0.5rem; }
.step p { font-size: 0.98rem; color: inherit; opacity: .85; margin: 0; }
.section--ink .step::before { color: var(--gold-soft); }

/* quote / statement */
.statement { text-align: center; }
.statement blockquote {
  margin: 0 auto; max-width: 22ch;
  font-family: var(--font-display); font-style: italic; font-weight: 400;
  font-size: clamp(1.8rem, 4.5vw, 3.2rem); line-height: 1.25;
}
.statement cite { display: block; margin-top: 1.6rem; font-style: normal; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.2em; color: var(--gold); }

/* instagram strip */
.ig-strip { display: grid; grid-template-columns: repeat(6, 1fr); gap: 2px; }
.ig-strip a { position: relative; aspect-ratio: 1; overflow: hidden; }
.ig-strip img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease, opacity .4s ease; }
.ig-strip a:hover img { transform: scale(1.08); opacity: .85; }

/* contact band */
.cta-band { text-align: center; }
.cta-band h2 { font-size: clamp(2.2rem, 5vw, 3.6rem); margin-bottom: 1.2rem; }
.cta-band .btn { margin-top: 0.8rem; }

/* contact page */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list li { padding: 1.3rem 0; border-top: 1px solid var(--line); }
.contact-list li:last-child { border-bottom: 1px solid var(--line); }
.contact-list .k { display: block; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.2em; color: var(--gold); margin-bottom: 0.4rem; }
.contact-list .v { font-size: 1.15rem; }
.contact-list a.v:hover { color: var(--gold); }
.map-embed { width: 100%; aspect-ratio: 4/3; border: 1px solid var(--line); filter: grayscale(0.25) contrast(1.02); }

/* page hero (interior pages) */
.page-hero { padding-top: clamp(8rem, 14vw, 11rem); padding-bottom: clamp(3rem, 6vw, 5rem); text-align: center; }
.page-hero h1 { font-size: clamp(2.6rem, 6vw, 4.5rem); }
.page-hero p { max-width: 54ch; margin-inline: auto; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: var(--cream); padding-block: clamp(3.5rem, 7vw, 5.5rem) 2.5rem; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; padding-bottom: 3rem; border-bottom: 1px solid rgba(255,255,255,.14); }
.site-footer .brand { font-size: 2rem; margin-bottom: 1rem; display: inline-block; }
.footer-col h4 { font-family: var(--font-body); font-weight: 600; text-transform: uppercase; letter-spacing: 0.18em; font-size: 0.72rem; color: var(--gold-soft); margin-bottom: 1.1rem; }
.footer-col a, .footer-col p { display: block; color: rgba(255,255,255,.8); margin-bottom: 0.6rem; font-size: 0.98rem; }
.footer-col a:hover { color: var(--cream); }
.footer-bottom { padding-top: 1.8rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; font-size: 0.78rem; color: rgba(255,255,255,.55); }

/* ---------- reveal motion ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .9s ease, transform .9s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }

/* ---------- lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 100; display: none; place-items: center; background: rgba(14,11,9,.94); padding: 4vw; }
.lightbox.open { display: grid; }
.lightbox img { max-width: 92vw; max-height: 90vh; width: auto; box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.lightbox__close { position: absolute; top: 1.4rem; right: 1.6rem; background: none; border: 0; color: var(--cream); font-size: 2rem; cursor: pointer; line-height: 1; }
.lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); background: none; border: 0; color: var(--cream); font-size: 2.4rem; cursor: pointer; padding: 1rem; opacity: .7; }
.lightbox__nav:hover { opacity: 1; }
.lightbox__prev { left: 1rem; } .lightbox__next { right: 1rem; }

/* ---------- responsive ---------- */
@media (max-width: 920px) {
  .nav { position: fixed; inset: 0 0 0 auto; width: min(80vw, 320px);
    flex-direction: column; align-items: flex-start; justify-content: center; gap: 1.8rem;
    background: var(--cream); color: var(--ink); padding: 2rem 2.4rem;
    transform: translateX(100%); transition: transform .4s cubic-bezier(.2,.7,.2,1); box-shadow: -20px 0 60px rgba(0,0,0,.15); }
  .nav.open { transform: none; }
  .nav a { font-size: 1rem; color: var(--ink); }
  .nav .btn--ghost { color: var(--ink) !important; border-color: var(--ink) !important; }
  .nav-toggle { display: inline-flex; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; z-index: 70; padding: 6px; }
  .nav-toggle span { width: 26px; height: 2px; background: currentColor; transition: transform .3s ease, opacity .3s ease; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .hero .container { grid-template-columns: 1fr; }
  .hero__media { margin-top: 1.75rem; max-width: 30rem; }
  .hero__media::before { inset: 12px -12px -12px 12px; }
  .intro { grid-template-columns: 1fr; }
  .intro__media.offset { margin-top: 0; }
  .collections { grid-template-columns: 1fr 1fr; }
  .lookbook { columns: 2; }
  .process { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .ig-strip { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 540px) {
  .collections { grid-template-columns: 1fr; }
  .lookbook { columns: 1; }
  .process { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .hero h1 { font-size: clamp(2.4rem, 11vw, 3.4rem); }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .coll-card img, .lookbook img, .ig-strip img { transition: none !important; }
}

/* ---------- conversion: contact modal ---------- */
.cmodal { position: fixed; inset: 0; z-index: 90; display: none; place-items: center; padding: 5vw;
  background: rgba(14,11,9,.6); backdrop-filter: blur(4px); }
.cmodal.open { display: grid; }
.cmodal__card { position: relative; width: 100%; max-width: 440px; background: var(--cream);
  padding: clamp(1.9rem, 5vw, 2.8rem); box-shadow: 0 40px 90px -30px rgba(0,0,0,.55); animation: pop .4s cubic-bezier(.2,.7,.2,1); }
@keyframes pop { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.cmodal__close { position: absolute; top: .9rem; right: 1.1rem; background: none; border: 0; font-size: 1.9rem; line-height: 1; cursor: pointer; color: var(--muted); }
.cmodal h3 { font-size: 2.1rem; margin: .1rem 0 .5rem; }
.cmodal p { color: var(--muted); margin-bottom: 1.6rem; }
.cmodal__actions { display: flex; flex-direction: column; gap: .7rem; }
.cmodal__actions .btn { width: 100%; justify-content: center; }
.cmodal__addr { margin: 1.4rem 0 0; padding-top: 1.2rem; border-top: 1px solid var(--line); font-size: .92rem; }

/* ---------- conversion: sticky mobile action bar ---------- */
.action-bar { display: none; }
@media (max-width: 920px) {
  .action-bar { position: fixed; inset: auto 0 0 0; z-index: 80; display: grid; grid-template-columns: repeat(3, 1fr);
    background: var(--ink); box-shadow: 0 -8px 30px rgba(0,0,0,.25); }
  .action-bar a { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: .7rem .5rem;
    color: var(--cream); font-size: .64rem; font-weight: 600; text-transform: uppercase; letter-spacing: .12em;
    border-left: 1px solid rgba(255,255,255,.12); }
  .action-bar a:first-child { border-left: 0; }
  .action-bar svg { width: 20px; height: 20px; }
  body { padding-bottom: 66px; }
}
