/* ============================================================
   MERIDIAN — editorial / minimal brand stylesheet
   Reference mood: MaxMara · Celine · ICICLE
   Rules: lots of air, no shadows, no rounded cards, no colour.
   ============================================================ */

:root {
  --bg: #fbfaf8;
  --bg-alt: #f4f1ec;
  --ink: #1a1613;
  --body: #5c554e;
  --muted: #8d847a;
  --line: #e4dfd6;
  --line-soft: #efebe4;

  --serif: Didot, "Bodoni MT", "Playfair Display", "Times New Roman", Times, serif;
  --sans: "Helvetica Neue", Helvetica, Arial, "PingFang SC", "Microsoft YaHei", sans-serif;

  --maxw: 1320px;
  --pad: 40px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--body);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.85;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  letter-spacing: .01em;
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  color: var(--ink);
  font-weight: 400;
  line-height: 1.15;
  margin: 0 0 .5em;
  letter-spacing: .005em;
}
h1 { font-size: clamp(2.4rem, 5.2vw, 4.2rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.6rem); }
h3 { font-size: 1.22rem; }
p { margin: 0 0 1.4em; }
p:last-child { margin-bottom: 0; }
a { color: var(--ink); text-decoration: none; }
img { display: block; max-width: 100%; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); }
.container-narrow { max-width: 860px; }

/* ---------- shared type helpers ---------- */
.eyebrow {
  display: block;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 22px;
}
.lead { font-size: 1.05rem; line-height: 1.9; color: var(--body); }

/* underline link — the only "button" we use */
.link-line {
  display: inline-block;
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink);
  padding-bottom: 5px;
  border-bottom: 1px solid var(--ink);
  transition: opacity .3s var(--ease);
}
.link-line:hover { opacity: .5; }
.link-line.light { color: #fff; border-color: rgba(255,255,255,.65); }

/* ---------- header ---------- */
.site-header {
  position: absolute; top: 0; left: 0; right: 0; z-index: 100;
  color: #fff;
}
.site-header.solid {
  position: sticky;
  background: var(--bg);
  border-bottom: 1px solid var(--line-soft);
  color: var(--ink);
}
.header-inner {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  height: 88px;
}
.brand {
  font-family: var(--serif);
  font-size: 21px; letter-spacing: .34em; text-indent: .34em;
  color: inherit; white-space: nowrap; text-align: center;
}
.nav-left { display: flex; align-items: center; gap: 34px; }
.nav-right { display: flex; align-items: center; gap: 34px; justify-content: flex-end; }
.site-header a:not(.brand) {
  font-size: 11px; letter-spacing: .16em; text-transform: uppercase;
  color: inherit; opacity: .85; transition: opacity .3s var(--ease);
  position: relative; padding-bottom: 3px;
}
.site-header a:not(.brand):hover { opacity: 1; }
.site-header a.is-active { opacity: 1; }
.site-header a.is-active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px; background: currentColor;
}
.nav-toggle { display: none; }

/* collection submenu */
.nav-item { position: relative; display: flex; align-items: center; }
.submenu {
  position: absolute; top: 100%; left: -20px; min-width: 200px;
  background: #fff; border: 1px solid var(--line-soft);
  padding: 16px 22px; display: none; flex-direction: column; gap: 12px;
  box-shadow: 0 10px 30px rgba(13, 43, 77, .07);
}
.nav-item:hover .submenu, .nav-item:focus-within .submenu { display: flex; }
.submenu a {
  color: var(--ink) !important; opacity: .7 !important;
  padding-bottom: 0 !important; border-bottom: 0 !important;
  white-space: nowrap;
}
.submenu a:hover { opacity: 1 !important; }
.submenu a::after { display: none; }

/* ---------- hero ---------- */
.hero { position: relative; height: 92vh; min-height: 560px; overflow: hidden; background: var(--bg-alt); }
.hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,16,13,.42) 0%, rgba(20,16,13,.22) 42%, rgba(20,16,13,.5) 100%);
}
.hero-copy {
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; color: #fff; padding: 0 24px;
}
.hero-copy h1 { color: #fff; margin-bottom: 18px; }
.hero-copy .eyebrow { color: rgba(255,255,255,.8); }
.hero-copy p { color: rgba(255,255,255,.86); max-width: 30em; margin: 0 auto 34px; font-size: 1.02rem; }

/* ---------- page hero (inner pages) ---------- */
.page-hero { position: relative; height: 62vh; min-height: 420px; overflow: hidden; background: var(--bg-alt); }
.page-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.page-hero::after { content: ""; position: absolute; inset: 0; background: rgba(20,16,13,.42); }
.page-hero .container {
  position: relative; z-index: 2; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; color: #fff;
}
.page-hero h1 { color: #fff; font-size: clamp(2rem, 4vw, 3.2rem); }
.page-hero .eyebrow { color: rgba(255,255,255,.8); }
.page-hero p { color: rgba(255,255,255,.85); max-width: 32em; margin: 0 auto; }

/* ---------- sections ---------- */
.section { padding: 130px 0; }
.section-tight { padding: 92px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 660px; margin: 0 auto 72px; }
.section-head p { margin-top: 20px; }

/* ---------- editorial grids ---------- */
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.quad { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.duo-offset { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; }

figure { margin: 0; }
figure img {
  width: 100%; height: 100%; object-fit: cover;
  transition: opacity .8s var(--ease);
}
figure figcaption {
  margin-top: 20px; text-align: center;
}
figure figcaption .name { font-family: var(--serif); font-size: 1.12rem; color: var(--ink); display: block; }
figure figcaption .meta {
  display: block; font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); margin-top: 8px;
}
a.tile img { filter: none; transition: opacity .5s var(--ease); }
a.tile:hover img { opacity: .82; }

.ratio-4-5 { aspect-ratio: 4 / 5; }
.ratio-3-4 { aspect-ratio: 3 / 4; }
.ratio-16-9 { aspect-ratio: 16 / 9; }
.ratio-1-1 { aspect-ratio: 1 / 1; }

/* ---------- manifesto ---------- */
.manifesto { text-align: center; }
.manifesto p {
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  line-height: 1.55;
  color: var(--ink);
  max-width: 20em; margin: 0 auto;
}
.manifesto p + p { margin-top: .55em; }
.manifesto .sign { font-family: var(--sans); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-top: 34px; }

/* ---------- lookbook grid (staggered, editorial) ---------- */
.lookbook { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px 30px; }
.lookbook figure:nth-child(3n + 2) { margin-top: 70px; }
.lookbook figcaption { text-align: left; margin-top: 16px; }
.lookbook figcaption .name { font-size: 1.02rem; }
.lookbook figcaption .meta { font-size: 10px; letter-spacing: .16em; }

/* ---------- styles grid (flat / hanging shots) ---------- */
.styles-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px 24px; }
.styles-grid figcaption { text-align: left; margin-top: 14px; }
.styles-grid figcaption .name { font-size: 1rem; }
.styles-grid figcaption .meta { font-size: 10px; letter-spacing: .16em; }
.styles-grid img { transition: opacity .5s var(--ease); }
.styles-grid figure:hover img { opacity: .85; }

/* ---------- full-bleed spread ---------- */
.spread { position: relative; height: 78vh; min-height: 460px; overflow: hidden; background: var(--bg-alt); }
.spread img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.spread::after { content: ""; position: absolute; inset: 0; background: rgba(20,16,13,.3); }
.spread .container {
  position: relative; z-index: 2; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; color: #fff;
}
.spread h2 { color: #fff; }
.spread .eyebrow { color: rgba(255,255,255,.8); }
.spread p { color: rgba(255,255,255,.85); max-width: 32em; margin: 0 auto 30px; }


/* ---------- category filter ---------- */
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 26px; margin-bottom: 56px; }
.filter-btn {
  background: none; border: 0; padding: 0 0 4px; cursor: pointer;
  font-family: var(--sans); font-size: 11px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted); border-bottom: 1px solid transparent; transition: .3s var(--ease);
}
.filter-btn:hover { color: var(--ink); }
.filter-btn.is-active { color: var(--ink); border-color: var(--ink); }
.filter-btn .n { font-size: 9px; opacity: .6; margin-left: 4px; }

/* ---------- brand logo wall ---------- */
.brand-wall {
  display: flex; flex-wrap: wrap; gap: 34px 54px;
  align-items: center; justify-content: center;
}
.brand-wall img {
  height: auto; max-height: 24px; max-width: 130px; width: auto;
  opacity: .45; transition: opacity .35s var(--ease);
}
.brand-wall img:hover { opacity: 1; }

/* ---------- minimal stats ---------- */
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; text-align: center; }
.stat-min strong { display: block; font-family: var(--serif); font-weight: 400; font-size: clamp(2rem, 3.6vw, 3rem); color: var(--ink); line-height: 1.1; }
.stat-min span { display: block; font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-top: 14px; }

/* ---------- certifications ---------- */
.cert-row { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; max-width: 900px; margin: 0 auto; }
.cert { border-top: 1px solid var(--line); padding-top: 28px; }
.cert h3 { font-size: 1.35rem; }
.cert .tag { font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); display: block; margin-bottom: 14px; }
.cert p { font-size: .95rem; }

/* ---------- quiet list (no icons, no cards) ---------- */
.notes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 54px; }
.note h3 { font-size: 1.15rem; margin-bottom: 12px; }
.note p { font-size: .95rem; }
.note .num { font-size: 11px; letter-spacing: .2em; color: var(--muted); display: block; margin-bottom: 16px; }

/* ---------- timeline ---------- */
.timeline { max-width: 720px; margin: 0 auto; }
.timeline-item {
  display: grid; grid-template-columns: 90px 1fr; gap: 30px;
  padding: 30px 0; border-top: 1px solid var(--line-soft);
}
.timeline-item:last-child { border-bottom: 1px solid var(--line-soft); }
.timeline-item .year { font-size: 12px; letter-spacing: .16em; color: var(--muted); padding-top: 6px; }
.timeline-item h4 { font-family: var(--serif); font-weight: 400; font-size: 1.15rem; margin: 0 0 6px; }
.timeline-item p { margin: 0; font-size: .95rem; }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 90px; align-items: start; }
.info-block { margin-bottom: 36px; }
.info-block h4 { font-family: var(--sans); font-size: 10px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.info-block p, .info-block a { font-size: .98rem; color: var(--ink); margin: 0; line-height: 1.8; }
.info-block a { border-bottom: 1px solid var(--line); }

.field { margin-bottom: 30px; }
.field label {
  display: block; font-size: 10px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 10px;
}
.field input, .field textarea, .field select {
  width: 100%; padding: 10px 0; border: 0; border-bottom: 1px solid var(--line);
  background: transparent; font-family: var(--sans); font-size: 1rem; color: var(--ink);
  border-radius: 0; transition: border-color .3s var(--ease);
  -webkit-appearance: none; appearance: none;
}
.field select { cursor: pointer; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--ink); }
.field input::placeholder, .field textarea::placeholder { color: #b8b1a8; }
.field textarea { min-height: 120px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.form-note { font-size: 12px; color: var(--muted); margin-top: 22px; }

/* ---------- footer ---------- */
.site-footer { background: var(--bg); border-top: 1px solid var(--line-soft); padding: 96px 0 40px; }
.footer-top { display: grid; grid-template-columns: 1fr auto; gap: 60px; align-items: start; }
.footer-brand { font-family: var(--serif); font-size: 20px; letter-spacing: .3em; color: var(--ink); }
.footer-brand small { display: block; font-family: var(--sans); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-top: 18px; letter-spacing: .14em; }
.footer-nav { display: flex; align-items: center; gap: 40px; flex-wrap: wrap; }
.footer-nav a { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--body); }
.footer-nav a:hover { color: var(--ink); }
.footer-info { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin: 72px 0 0; font-size: .92rem; }
.footer-info h5 { font-family: var(--sans); font-size: 10px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; }
.footer-info p, .footer-info a { margin: 0; color: var(--body); font-size: .92rem; line-height: 1.9; }
.footer-bottom {
  margin-top: 72px; padding-top: 26px; border-top: 1px solid var(--line-soft);
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  font-size: 11px; letter-spacing: .1em; color: var(--muted); text-transform: uppercase;
}

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

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .trio, .quad, .notes, .footer-info { grid-template-columns: 1fr 1fr; }
  .stats-row { grid-template-columns: 1fr 1fr; gap: 44px 30px; }
  .cert-row { grid-template-columns: 1fr; gap: 36px; }
  .lookbook { grid-template-columns: 1fr 1fr; }
  .styles-grid { grid-template-columns: 1fr 1fr 1fr; }
  .lookbook figure:nth-child(3n + 2) { margin-top: 0; }
  .lookbook figure:nth-child(2n) { margin-top: 48px; }
  .contact-grid { gap: 56px; }
  .section { padding: 96px 0; }
}
@media (max-width: 820px) {
  :root { --pad: 24px; }
  /* mobile: header becomes a normal block so the menu pushes content down
     instead of floating in absolutely-positioned panels */
  .header-inner { display: flex; flex-direction: column; align-items: stretch; height: auto; position: relative; }
  .brand { order: 1; }
  .nav-left { order: 2; }
  .nav-right { order: 3; }
  .brand {
    display: block; text-align: center; padding: 26px 0;
    font-size: 17px; letter-spacing: .26em; text-indent: .26em;
  }
  .nav-toggle {
    display: block; background: none; border: 0; padding: 10px 0; cursor: pointer;
    width: 26px; position: absolute; left: 24px; top: 26px;
  }
  .nav-toggle span { display: block; height: 1px; background: currentColor; margin: 6px 0; }
  .nav-left, .nav-right {
    display: block; position: static; background: var(--bg);
    padding: 0 24px; max-height: 0; overflow: hidden; transition: max-height .4s var(--ease);
  }
  .nav-right { border-bottom: 1px solid var(--line-soft); }
  .nav-left.is-open, .nav-right.is-open { max-height: 620px; padding-bottom: 20px; }
  .nav-left a, .nav-right a {
    display: block; padding: 16px 0; color: var(--ink) !important;
    border-bottom: 1px solid var(--line-soft); opacity: 1 !important;
  }
  .nav-item { display: block; }
  .submenu {
    position: static; display: flex; background: none; border: 0; box-shadow: none;
    padding: 4px 0 10px 12px; min-width: 0; gap: 0;
  }
  .submenu a { padding: 10px 0 !important; opacity: .62 !important; }
  .trio, .duo, .duo-offset, .notes, .footer-info, .contact-grid, .lookbook { grid-template-columns: 1fr; gap: 40px; }
  .quad { grid-template-columns: 1fr 1fr; gap: 26px; }
  .styles-grid { grid-template-columns: 1fr 1fr; gap: 34px 20px; }
  .stats-row { grid-template-columns: 1fr 1fr; }
  .brand-wall { gap: 26px 34px; }
  .brand-wall img { max-height: 18px; max-width: 104px; }
  .lookbook { gap: 46px; }
  .lookbook figure:nth-child(n) { margin-top: 0; }
  .spread { height: 62vh; }
  .footer-top { grid-template-columns: 1fr; gap: 34px; }
  .hero { height: 84vh; }
  .section { padding: 76px 0; }
  .timeline-item { grid-template-columns: 1fr; gap: 8px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .manifesto p { max-width: 100%; }
}
