/* menayan.com --------------------------------------------------------------
   Type: Poppins (300/400/500/600/700)
   Look: white base, soft-shadow rounded cards, alternating section bands,
         full-bleed heroes behind a transparent header, zigzag splits.
--------------------------------------------------------------------------- */
:root {
  --paper: #ffffff;
  --band: #eff0f0;
  --dark: #4a4f54;
  --ink: #2b2d2f;
  --ink-soft: #6b6f73;
  --line: #e3e4e4;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(20, 22, 24, .10);
  --shadow-lift: 0 18px 44px rgba(20, 22, 24, .16);
  --font: "Poppins", "Helvetica Neue", Arial, sans-serif;
  --max: 1080px;
  --measure: 44rem;
  --pad: clamp(1.5rem, 5vw, 3.5rem);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-weight: 400;
  font-size: 1.0325rem;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-color: #b9bcbe; text-underline-offset: 4px; }
a:hover { text-decoration-color: var(--ink); }
a:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

.skip {
  position: absolute; left: -999px; top: 0; background: var(--ink);
  color: #fff; padding: .5rem 1rem; z-index: 30;
}
.skip:focus { left: 0; }

.wrap { max-width: var(--max); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }

/* header ------------------------------------------------------------------ */
.site-header {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap;
  max-width: var(--max); margin: 0 auto;
  padding: 1.6rem var(--pad);
}
.wordmark {
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-size: 1.15rem;
  text-decoration: none;
}
.site-nav { display: flex; gap: 1.6rem; align-items: center; }
.site-nav a {
  font-size: .98rem;
  font-weight: 400;
  text-decoration: none;
  color: var(--ink-soft);
}
.site-nav a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 6px; }
.site-nav a.li { font-weight: 700; color: var(--ink); }

/* transparent header over hero images */
.site-header.overlay {
  position: absolute; top: 0; left: 0; right: 0; z-index: 20;
  max-width: none;
}
.site-header.overlay .wordmark { color: rgba(255,255,255,.85); }
.site-header.overlay .site-nav a { color: rgba(255,255,255,.85); }
.site-header.overlay .site-nav a:hover,
.site-header.overlay .site-nav a.li { color: #fff; }

/* hero ---------------------------------------------------------------------*/
.hero {
  position: relative;
  height: min(92vh, 950px);
  overflow: hidden;
  background: var(--dark);
}
.hero-img {
  position: absolute; left: 0; top: -8%;
  width: 100%; height: 116%;
  object-fit: cover;
  animation: heroZoom 1.8s ease-out;
  will-change: transform;
}
@keyframes heroZoom { from { transform: scale(1.06); } to { transform: scale(1); } }
.hero-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,12,14,.42) 0%, rgba(10,12,14,0) 30%,
              rgba(10,12,14,0) 55%, rgba(10,12,14,.38) 100%);
}
/* top-aligned title only needs top darkening; no bottom shadow to seam
   against the section below */
.hero-scrim-top {
  background: linear-gradient(180deg, rgba(10,12,14,.48) 0%, rgba(10,12,14,0) 38%);
}
.hero-title {
  position: absolute; left: 0; right: 0; bottom: clamp(2rem, 7vh, 5rem);
  max-width: var(--max); margin: 0 auto;
  padding: 0 var(--pad);
  color: #fff;
}
/* per-page override: title pinned top-left instead of the default bottom */
.hero-title-top { bottom: auto; top: clamp(2rem, 7vh, 5rem); }
.hero-title h1 {
  margin: 0 0 .4rem;
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 600;
  line-height: 1.12;
  text-shadow: 0 2px 24px rgba(0,0,0,.35);
}
.eyebrow {
  margin: 0;
  font-size: clamp(.95rem, 1.6vw, 1.1rem);
  font-weight: 300;
  letter-spacing: .02em;
  opacity: .92;
}
.hero-caption {
  font-size: .85rem; color: var(--ink-soft); margin: 1rem 0 0;
}
@media (max-width: 640px) { .hero { height: 68vh; } }

/* hero_reveal: hero stays put (sticky) while the section right after it
   scrolls up and covers it, instead of the hero scrolling normally with
   the page. CSS-only, no JS required, degrades to normal stacking in the
   rare browser without position:sticky support. */
.hero-reveal { position: relative; }
.hero-reveal .hero { position: sticky; top: 0; z-index: 0; }
.hero-reveal-cover { position: relative; z-index: 1; }

/* work grid ----------------------------------------------------------------*/
.work-grid {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1rem var(--pad) 3rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: clamp(2rem, 4vw, 3.5rem);
}
.card { text-decoration: none; display: block; }
.card-media {
  display: block;
  transition: transform .35s ease;
}
.card-media img { width: 100%; height: auto; }
.card:hover .card-media { transform: translateY(-6px); }
.card-title {
  display: block;
  margin-top: 1.1rem;
  text-align: center;
  font-weight: 400;
  font-size: 1.05rem;
  color: var(--ink-soft);
  text-decoration: underline;
  text-decoration-color: #c9cbcd;
  text-underline-offset: 5px;
}
.card:hover .card-title { color: var(--ink); text-decoration-color: var(--ink); }

/* section bands --------------------------------------------------------------*/
.band { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.band-a { background: var(--paper); }
.band-b { background: var(--band); }
.band-dark { background: var(--dark); color: #f2f3f4; }
.band-dark a { text-decoration-color: rgba(255,255,255,.5); }
.band-dark a:hover { text-decoration-color: #fff; }
.band-dark figcaption { color: rgba(255,255,255,.75); }

.band .lead {
  font-size: clamp(1.3rem, 2.6vw, 1.8rem);
  font-weight: 400;
  line-height: 1.6;
  text-align: center;
  max-width: 56rem;
  margin: 0 auto;
}

/* cover band: background image cropped to cover, height driven by the
   text content (padding), not the image's own aspect ratio */
.band-cover {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #fff;
}

h1, h2, h3, h4 { line-height: 1.2; }
h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); font-weight: 600; margin: 0 0 1rem; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 600; margin: 0 0 1rem; }
h3 { font-size: 1.3rem; font-weight: 600; margin: 1.5rem 0 .6rem; }
h4 { font-size: 1.08rem; font-weight: 600; margin: 1.2rem 0 .4rem; }

.band p { max-width: var(--measure); margin: 0 0 1.1rem; }
.stack > p, .stack > h2, .stack > h3, .stack > h4 { margin-left: auto; margin-right: auto; }
.stack > h2 { max-width: var(--measure); }
.stack { text-align: left; }
.stack > h2, .stack > p { text-align: center; }

/* figures ------------------------------------------------------------------*/
figure.media { margin: clamp(1.5rem, 4vw, 2.75rem) auto; max-width: var(--figw, 1000px); }
figure.media img { width: 100%; border-radius: calc(var(--radius) - 4px); }
figure.media figcaption {
  font-size: .85rem; color: var(--ink-soft);
  padding-top: .6rem; text-align: center;
}
.band-dark figure.media img { border-radius: calc(var(--radius) - 4px); }

/* zigzag splits --------------------------------------------------------------*/
.split {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: clamp(1.8rem, 4.5vw, 4rem);
  align-items: center;
}
.split.media-right { grid-template-columns: .85fr 1.15fr; }
.split.media-right .split-media { order: 2; }
.split.media-right .split-text { order: 1; }
.split-media figure.media { margin: 0; }
.split-text p { margin: 0 0 1rem; }
@media (max-width: 800px) {
  .split, .split.media-right { grid-template-columns: 1fr; }
  .split.media-right .split-media { order: 0; }
  .split-text { padding-top: 1rem; }
}

/* columns ------------------------------------------------------------------*/
.cols {
  display: grid;
  gap: clamp(1.5rem, 3.5vw, 3rem);
  margin: 2rem 0 0;
  align-items: start;
}
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
/* vertical-centered columns: a single-image column centers against a taller
   image+text column, giving a "merged rows" look */
.cols.cols-vcenter { align-items: center; }
.cols.cols-vbottom { align-items: end; }
.cols.cols-vcenter .col figure.media,
.cols.cols-vbottom .col figure.media { margin-bottom: 0; }
.cols.cols-vbottom .col > *:last-child { margin-bottom: 0; }
.cols .col figure.media { margin: 0 0 1.1rem; }
.cols .col h4 { margin-top: 0; }
.cols .col p { font-size: .95rem; }
@media (max-width: 720px) { .cols-2, .cols-3 { grid-template-columns: 1fr; } }

/* prev / next ----------------------------------------------------------------*/
.prevnext { border-top: 1px solid var(--line); }
.prevnext-wrap {
  display: flex; justify-content: space-between; gap: 1rem;
  padding-top: 2rem; padding-bottom: 3rem;
}
.prevnext a { font-weight: 500; text-decoration: none; }
.prevnext a:hover { text-decoration: underline; text-underline-offset: 5px; }
.pn-next { text-align: right; margin-left: auto; }

/* footer ---------------------------------------------------------------------*/
.site-footer {
  max-width: var(--max); margin: 0 auto;
  padding: 2.5rem var(--pad) 3.5rem;
  display: flex; justify-content: center;
  font-size: .95rem;
  color: var(--ink-soft);
}
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

/* motion: scroll reveals (only when JS is present) ---------------------------*/
.reveal-ready .reveal {
  opacity: 0;
  translate: 0 26px;
  transition: opacity .7s ease, translate .7s ease;
}
.reveal-ready .reveal.in-view { opacity: 1; translate: 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
  .reveal-ready .reveal { opacity: 1; translate: 0; }
}

/* small screens ----------------------------------------------------------------*/
@media (max-width: 560px) {
  .site-header { padding: 1.1rem var(--pad); }
  .site-nav { gap: 1.1rem; }
  .work-grid { grid-template-columns: 1fr; }
}

/* v2 adjustments ------------------------------------------------------------*/
/* bold lead statement */
.intro .lead { font-weight: 600; }

/* figures following a split (swatch boards, palette strips) run full width */
.post-media { margin-top: clamp(2rem, 5vw, 3.5rem); }
.post-media figure.media { max-width: none; }

/* backdrop sections: image fills the section, text floats over it ----------*/
.band-backdrop {
  position: relative;
  padding: 0;
  background: #ffffff;
}
.backdrop-media { display: block; width: 100%; height: auto; }
.backdrop-text {
  position: absolute;
  max-width: 30rem;
  padding: 0 var(--pad);
}
.backdrop-text h2 { margin-bottom: .8rem; }
.backdrop-text p { margin: 0 0 .9rem; }
/* anchor positions: align with the content column on wide screens */
.bt-cl, .bt-tl, .bt-bl { left: max(0px, calc((100% - var(--max)) / 2)); }
.bt-cr, .bt-tr, .bt-br { right: max(0px, calc((100% - var(--max)) / 2)); text-align: right; }
.bt-cl, .bt-cr { top: 50%; transform: translateY(-50%); }
.bt-tl, .bt-tr { top: clamp(2rem, 9vh, 6rem); }
.bt-bl, .bt-br { bottom: clamp(2rem, 9vh, 6rem); }
.bt-bc { left: 50%; transform: translateX(-50%); bottom: clamp(1rem, 3vh, 2rem); text-align: center; }
.bt-cc { left: 50%; top: 50%; transform: translate(-50%, -50%); text-align: center; max-width: 36rem; }

@media (max-width: 800px) {
  .band-backdrop { display: flex; flex-direction: column; }
  .backdrop-text, .backdrop-text.narrow {
    position: static; transform: none; order: -1;
    max-width: none; text-align: left !important;
    padding: 2.5rem var(--pad) 1.5rem;
  }
}

/* v3 adjustments ------------------------------------------------------------*/
/* compact splits: image pinned to its edge at ~40%, text gets the rest */
.split.compact.media-left { grid-template-columns: 2fr 3fr; }
.split.compact.media-right { grid-template-columns: 3fr 2fr; }
.split.compact { gap: clamp(3rem, 7vw, 5.5rem); }
@media (max-width: 800px) {
  .split.compact.media-left, .split.compact.media-right {
    grid-template-columns: 1fr;
  }
}

/* native palette bars: 4x1, short, labeled */
.palette {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: clamp(2rem, 4vw, 3rem);
  border-radius: calc(var(--radius) - 6px);
  overflow: hidden;
}
.palette .chip {
  height: clamp(72px, 9vw, 104px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: .5rem .75rem;
  font-size: .74rem;
  line-height: 1.35;
}
.chip-light-text { color: rgba(255,255,255,.92); }
.chip-dark-text { color: rgba(30,31,32,.85); }
.chip .chip-name { font-weight: 600; }
.chip .chip-code { opacity: .8; }
@media (max-width: 560px) {
  .palette .chip { font-size: .58rem; padding: .4rem .45rem; height: 64px; }
}

/* footer navigation */
.footer-nav { display: flex; gap: 1.6rem; }
.footer-nav a { text-decoration: underline; text-decoration-color: #c9cbcd; text-underline-offset: 4px; }
.footer-nav a:hover { text-decoration-color: var(--ink); color: var(--ink); }

/* v4 adjustments ------------------------------------------------------------*/
/* centered hero title: text sits in the vertical + horizontal middle of the
   full-bleed hero, with a uniform scrim for legibility over any photo */
.hero-title-center {
  top: 50%; bottom: auto;
  transform: translateY(-50%);
  text-align: center;
}
.hero-scrim-center {
  background: linear-gradient(180deg, rgba(10,12,14,.34) 0%,
              rgba(10,12,14,.24) 50%, rgba(10,12,14,.38) 100%);
}

/* bottom-anchored but horizontally centered hero title */
.hero-title-bc { text-align: center; }
/* bottom-anchored, right-justified hero title */
.hero-title-br { text-align: right; }

/* top-align a split row (image + text both flush to the top) */
.split.valign-top { align-items: start; }

/* cover-fill: closing image fills a tall full-bleed band, cropped to cover */
.band-cover-fill { min-height: min(85vh, 900px); padding: 0; }

/* dark hero title (for light photos): black text, no drop shadow */
.hero-ink-dark, .hero-ink-dark h1, .hero-ink-dark .eyebrow { color: var(--ink); }
.hero-ink-dark h1 { text-shadow: none; }
.hero-ink-dark .eyebrow { opacity: 1; color: var(--ink-soft); }

/* dark overlay nav (for light hero photos): dark wordmark + links */
.site-header.overlay.overlay-dark .wordmark { color: var(--ink); }
.site-header.overlay.overlay-dark .site-nav a { color: var(--ink-soft); }
.site-header.overlay.overlay-dark .site-nav a:hover,
.site-header.overlay.overlay-dark .site-nav a.li { color: var(--ink); }

/* responsive 16:9 video embed; behaves like figure.media inside splits */
figure.media.video { max-width: 1000px; }
.video-frame { position: relative; width: 100%; aspect-ratio: 16 / 9; }
.video-frame iframe {
  position: absolute; inset: 0; width: 100%; height: 100%;
  border: 0; border-radius: calc(var(--radius) - 4px);
}

/* section text-alignment tokens ------------------------------------------- */
/* [text-center]: center the column text within a band */
.band.text-center .cols,
.band.text-center .cols .col { text-align: center; }
.band.text-center .cols .col figure.media { margin-left: auto; margin-right: auto; }
.band.text-center .split-text { text-align: center; }
.band.text-center .stack > h2,
.band.text-center .stack > h3,
.band.text-center .stack > h4,
.band.text-center .stack > p { text-align: center; }
/* [text-right]: right-align the text side of a split */
.band.text-right .split-text { text-align: right; }
.band.text-right .split-text p { margin-left: auto; }
@media (max-width: 800px) {
  .band.text-right .split-text { text-align: left; }
  .band.text-right .split-text p { margin-left: 0; }
}
/* [text-left]: left-align a stacked (centered) section's text */
.band.text-left .stack > h2,
.band.text-left .stack > h3,
.band.text-left .stack > h4,
.band.text-left .stack > p { text-align: left; }
/* per-row text alignment inside a :::row split */
.split-text.align-center { text-align: center; }
.split-text.align-right { text-align: right; }
/* backdrop text alignment overrides */
.backdrop-text.tc { text-align: center; }
.backdrop-text.tr { text-align: right; }
/* [narrow]: slimmer backdrop text column (wraps taller, overlaps image less) */
.backdrop-text.narrow { max-width: 19rem; }

/* [inset]: tighten the content column (wider side margins, smaller content) */
.band.inset .wrap { max-width: 800px; }

/* [lead]: render every paragraph in the band at the large lead size */
.band.lead-all p {
  font-size: clamp(1.3rem, 2.6vw, 1.8rem);
  font-weight: 400;
  line-height: 1.6;
  text-align: center;
  max-width: 56rem;
  margin: 0 auto 1.1rem;
}

/* [spacious]: extra breathing room between and within stacked rows */
.band.spacious .split {
  gap: clamp(3rem, 7vw, 6rem);
  margin-block: clamp(2.5rem, 5vw, 4rem);
}
.band.spacious .split-media,
.band.spacious .split-text { padding: 0 2%; }
