/* =========================================================================
   FLORA · Bespoke Floral Atelier
   Aesthetic: dark monochrome editorial (luxury fashion-magazine).
   Theme lock: DARK only (deliberate brand direction).
   Color lock: warm monochrome, no chromatic accent.
   Shape lock: sharp corners (radius 0) throughout.
   Type: Cormorant Garamond (display) + Manrope (UI/body).
   ========================================================================= */

:root {
  /* warm monochrome palette */
  --ink:        #0c0b09;   /* warm near-black background */
  --ink-2:      #131110;   /* elevated surface */
  --ivory:      #efe9df;   /* warm off-white, primary text */
  --ivory-soft: #efe9df;
  --muted:      rgba(239, 233, 223, 0.62);
  --faint:      rgba(239, 233, 223, 0.40);
  --hair:       rgba(239, 233, 223, 0.14);
  --hair-soft:  rgba(239, 233, 223, 0.08);

  --container: 1400px;
  --gutter: clamp(1.25rem, 5vw, 5rem);

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --radius: 0px; /* shape lock */

  /* z-index scale (restraint) */
  --z-nav: 100;
  --z-grain: 200;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  background: var(--ink);
  color: var(--ivory);
  font-family: "Manrope", system-ui, -apple-system, sans-serif;
  font-weight: 400;
  line-height: 1.6;
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

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

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

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

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

/* ---------- grain overlay ---------- */
.grain {
  position: fixed;
  inset: 0;
  z-index: var(--z-grain);
  pointer-events: none;
  opacity: 0.04;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' /%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' /%3E%3C/svg%3E");
}

/* ---------- typography primitives ---------- */
.eyebrow {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  color: var(--muted);
  font-weight: 500;
}

.section-title {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 400;
  font-size: clamp(2.25rem, 1.6rem + 3vw, 3.6rem);
  line-height: 1.04;
  letter-spacing: -0.01em;
}

.section-lede {
  color: var(--muted);
  max-width: 46ch;
  font-weight: 300;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  font-family: "Manrope", sans-serif;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.95rem 1.6rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform 0.4s var(--ease), background-color 0.4s var(--ease),
              color 0.4s var(--ease), border-color 0.4s var(--ease), opacity 0.4s var(--ease);
}
.btn--primary {
  background: var(--ivory);
  color: var(--ink);          /* near-black on ivory: high contrast AA+ */
}
.btn--primary:hover { opacity: 0.86; }
.btn--ghost {
  background: transparent;
  color: var(--ivory);
  border-color: var(--hair);
}
.btn--ghost:hover { border-color: var(--ivory); }
.btn:active { transform: translateY(1px); }
.btn--lg { padding: 1.1rem 2.2rem; font-size: 0.875rem; }

/* ---------- media wrapper (hover zoom) ---------- */
.media { overflow: hidden; background: var(--ink-2); }
.media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.4s var(--ease);
  will-change: transform;
}
.media:hover img { transform: scale(1.045); }

/* ---------- reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.95s var(--ease), transform 0.95s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* =========================================================================
   NAV
   ========================================================================= */
.nav {
  position: sticky;
  top: 0;
  z-index: var(--z-nav);
  background: color-mix(in srgb, var(--ink) 78%, transparent);
  backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  border-bottom: 1px solid var(--hair-soft);
}
.nav__inner {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.nav__logo {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: 0.34em;
  padding-left: 0.34em; /* optical balance for tracked caps */
}
.nav__links {
  display: flex;
  gap: 2.25rem;
  margin-left: auto;
  margin-right: 0.5rem;
}
.nav__links a {
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  color: var(--muted);
  position: relative;
  padding-block: 0.25rem;
  transition: color 0.4s var(--ease);
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--ivory);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease);
}
.nav__links a:hover { color: var(--ivory); }
.nav__links a:hover::after { transform: scaleX(1); }

/* =========================================================================
   HERO · asymmetric split
   ========================================================================= */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: calc(100dvh - 72px);
  padding-block: clamp(2.5rem, 5vw, 5rem);
  overflow: hidden;
}
.hero__inner { width: 100%; position: relative; z-index: 1; }
.hero__text { max-width: 36rem; min-width: 0; }
.hero__media {
  position: absolute;
  top: 0;
  right: 0;            /* flush to the right viewport edge, no buffer */
  bottom: 0;
  width: min(46vw, 760px);
  height: 100%;
}
.atelier__media, .atelier__text { min-width: 0; }
.eyebrow + .hero__title { margin-top: 1.5rem; }
.hero__title {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 300;
  font-size: clamp(3.75rem, 2rem + 6.5vw, 6.75rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
}
.hero__title em { display: block; }
.hero__title em {
  font-style: italic;
  font-weight: 400;
  line-height: 1.1;       /* italic descender clearance */
  padding-bottom: 0.06em;
}
.hero__lede {
  margin-top: 1.75rem;
  color: var(--muted);
  font-weight: 300;
  max-width: 40ch;
}
.hero__actions {
  margin-top: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
.hero__media {
  aspect-ratio: 11 / 14;
  height: 100%;
  max-height: 80dvh;
  justify-self: end;
  width: 100%;
}

/* =========================================================================
   COLLECTIONS · horizontal scroll-snap media row
   ========================================================================= */
.collections { padding-block: clamp(4rem, 9vw, 9rem); }
.collections__head {
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
}
.collections__head .section-lede { margin-top: 1.1rem; }
.collections__track {
  list-style: none;
  padding: 0 var(--gutter);
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(260px, 24%);
  gap: clamp(1rem, 2vw, 1.75rem);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  scrollbar-width: thin;
  scrollbar-color: var(--hair) transparent;
}
.collections__track::-webkit-scrollbar { height: 4px; }
.collections__track::-webkit-scrollbar-thumb { background: var(--hair); }
.collection { scroll-snap-align: start; }
.collection__media { aspect-ratio: 4 / 5; margin-bottom: 1.1rem; }
.collection__name {
  font-family: "Cormorant Garamond", serif;
  font-weight: 400;
  font-size: 1.5rem;
  letter-spacing: 0.005em;
}
.collection__desc {
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 0.9375rem;
  font-weight: 300;
  max-width: 30ch;
}
/* reveal stagger */
.collection:nth-child(2) { transition-delay: 0.08s; }
.collection:nth-child(3) { transition-delay: 0.16s; }
.collection:nth-child(4) { transition-delay: 0.24s; }

/* =========================================================================
   ATELIER · split text + image
   ========================================================================= */
.atelier { padding-block: clamp(4rem, 9vw, 9rem); border-top: 1px solid var(--hair-soft); }
.atelier__grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2rem, 6vw, 6rem);
  align-items: center;
}
.atelier__media { aspect-ratio: 11 / 13; }
.atelier__text { max-width: 38rem; }
.atelier__body {
  margin-top: 1.5rem;
  color: var(--muted);
  font-weight: 300;
  max-width: 52ch;
}
.process {
  margin-top: 2.75rem;
  border-top: 1px solid var(--hair);
}
.process__row {
  display: grid;
  grid-template-columns: 0.4fr 0.6fr;
  gap: 1.5rem;
  padding-block: 1.25rem;
  border-bottom: 1px solid var(--hair-soft);
}
.process__term {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.25rem;
  font-weight: 400;
}
.process__def { color: var(--muted); font-size: 0.9375rem; font-weight: 300; }

/* =========================================================================
   OCCASIONS · asymmetric bento (3 cells)
   ========================================================================= */
.occasions { padding-block: clamp(4rem, 9vw, 9rem); border-top: 1px solid var(--hair-soft); }
.bento {
  margin-top: clamp(2rem, 4vw, 3.5rem);
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  grid-template-rows: auto auto;
  gap: clamp(1rem, 2vw, 1.75rem);
}
.bento__cell { display: flex; flex-direction: column; }
.bento__cell--lead { grid-row: 1 / 3; }
.bento__media { aspect-ratio: 4 / 5; }
.bento__cell:not(.bento__cell--lead) .bento__media { aspect-ratio: 9 / 7; }
.bento__caption { padding-top: 1.1rem; }
.bento__name {
  font-family: "Cormorant Garamond", serif;
  font-weight: 400;
  font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
}
.bento__desc { margin-top: 0.3rem; color: var(--muted); font-weight: 300; font-size: 0.9375rem; }
.bento__cell:nth-child(2) { transition-delay: 0.08s; }
.bento__cell:nth-child(3) { transition-delay: 0.16s; }

/* =========================================================================
   INQUIRY · centered manifesto CTA
   ========================================================================= */
.inquiry {
  padding-block: clamp(5rem, 11vw, 11rem);
  border-top: 1px solid var(--hair-soft);
  text-align: center;
}
.inquiry__inner { max-width: 44rem; margin-inline: auto; }
.inquiry__title {
  font-family: "Cormorant Garamond", serif;
  font-weight: 300;
  font-size: clamp(2.5rem, 1.4rem + 4vw, 4.5rem);
  line-height: 1.05;
  letter-spacing: -0.015em;
}
.inquiry__title em {
  font-style: italic;
  font-weight: 400;
  line-height: 1.1;
  padding-bottom: 0.06em;
}
.inquiry__lede {
  margin-top: 1.75rem;
  margin-inline: auto;
  color: var(--muted);
  font-weight: 300;
  max-width: 48ch;
}
.inquiry__actions {
  margin-top: 2.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}
.inquiry__mail {
  font-size: 0.875rem;
  letter-spacing: 0.04em;
  color: var(--muted);
  border-bottom: 1px solid var(--hair);
  padding-bottom: 2px;
  transition: color 0.4s var(--ease), border-color 0.4s var(--ease);
}
.inquiry__mail:hover { color: var(--ivory); border-color: var(--ivory); }

/* =========================================================================
   FOOTER
   ========================================================================= */
.footer { border-top: 1px solid var(--hair); padding-top: clamp(3rem, 6vw, 5rem); padding-bottom: 2.5rem; }
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
}
.footer__logo {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.4rem;
  letter-spacing: 0.32em;
  font-weight: 500;
}
.footer__tag { margin-top: 0.6rem; color: var(--muted); font-weight: 300; font-size: 0.9375rem; }
.footer__nav { display: flex; flex-direction: column; gap: 0.7rem; }
.footer__nav a, .footer__contact a {
  color: var(--muted);
  font-size: 0.9375rem;
  transition: color 0.4s var(--ease);
  width: fit-content;
}
.footer__nav a:hover, .footer__contact a:hover { color: var(--ivory); }
.footer__contact { display: flex; flex-direction: column; gap: 0.7rem; }
.footer__social { display: flex; gap: 1.5rem; margin-top: 0.4rem; }
.footer__base {
  padding-top: 2rem;
  border-top: 1px solid var(--hair-soft);
  color: var(--faint);
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
}

/* =========================================================================
   RESPONSIVE
   ========================================================================= */
@media (max-width: 900px) {
  .hero {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    min-height: auto;
    padding-block: 1rem 3rem;
  }
  .hero__media {
    position: static;
    order: -1;            /* image on top, text below */
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 11;
    margin-bottom: 2.5rem;
  }
  .hero__text { max-width: none; }
  .atelier__grid { grid-template-columns: 1fr; gap: 2rem; }
  .atelier__media { aspect-ratio: 16 / 11; }
  .bento { grid-template-columns: 1fr; }
  .bento__cell--lead { grid-row: auto; }
  .bento__media, .bento__cell:not(.bento__cell--lead) .bento__media { aspect-ratio: 16 / 11; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav__links { display: none; }       /* condense to logo + primary CTA */
  .nav__cta { padding: 0.75rem 1.1rem; font-size: 0.75rem; }
  .process__row { grid-template-columns: 1fr; gap: 0.4rem; }
  .footer__grid { grid-template-columns: 1fr; gap: 2rem; }
  .collections__track { grid-auto-columns: minmax(230px, 78%); }
}

@media (max-width: 480px) {
  .nav__inner { gap: 0.75rem; }
  .nav__logo { font-size: 1.2rem; letter-spacing: 0.2em; padding-left: 0.2em; }
  .nav__cta { padding: 0.6rem 0.85rem; font-size: 0.6875rem; letter-spacing: 0.08em; }
}

/* =========================================================================
   REDUCED MOTION
   ========================================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .media:hover img { transform: none; }
}
