/* === DESIGN SYSTEM === */
:root {
  --bg: #F1ECE3;
  --bg-warm: #ECE5D8;
  --bg-deep: #E5DECF;
  --ink: #1B1816;
  --ink-2: rgba(27, 24, 22, 0.62);
  --ink-3: rgba(27, 24, 22, 0.32);
  --rule: rgba(27, 24, 22, 0.16);
  --accent: #5B2A2C;
  --display: "ivyora-display", "ivyora", "Times New Roman", serif;
  --body: "Poppins", system-ui, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-weight: 400;
  letter-spacing: -0.02em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  min-height: 100vh;
}
::selection { background: var(--accent); color: var(--bg); }

/* === TOP NAV === */
.top {
  position: fixed; top: 0; left: 0; right: 0; z-index: 10;
  display: flex; justify-content: space-between; align-items: center;
  padding: 22px 40px;
  font-family: var(--body);
  font-weight: 400;
  font-size: 12px;
  letter-spacing: 0.01em;
  pointer-events: none;
  mix-blend-mode: difference;
  color: rgba(255,255,255,0.85);
}
.top a, .top .name { pointer-events: auto; text-decoration: none; }
.top .name { font-weight: 500; color: rgba(255,255,255,0.9); }
.top .back {
  color: rgba(255,255,255,0.55);
  transition: color .4s ease;
}
.top .back:hover { color: rgba(255,255,255,0.95); }

/* === REVEAL UTILITY === */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1.4s cubic-bezier(0.16, 1, 0.3, 1), transform 1.4s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
.reveal.in { opacity: 1; transform: translateY(0); }

/* === CASE HERO IMAGE (pre-designed editorial cover) === */
/* Sits below the fixed top bar, padded by 16px on all sides, contained within
   the viewport so the full image is visible above the fold without scrolling. */
.hero-image {
  margin-top: 70px;
  width: 100%;
  padding: 16px;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  height: calc(100vh - 70px);
}
.hero-image img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

/* === CASE-HERO (credit + subtitle, sits below the cover image) === */
.case-hero {
  padding: 80px 40px 60px;
  display: grid;
  grid-template-columns: 80px 1fr 80px;
  gap: 32px;
}
.case-hero .gutter { padding-top: 8px; }
.case-hero .meta-line {
  font-family: var(--body);
  font-weight: 400;
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--ink-2);
  margin-bottom: 1.6em;
}
.case-hero .subtitle {
  font-family: var(--display);
  font-style: normal;
  font-weight: 100;
  font-size: clamp(1.7rem, 2.6vw, 2.4rem);
  line-height: 1.28;
  letter-spacing: -0.025em;
  color: var(--ink);
  max-width: 32ch;
}

/* === HERO IMAGE WELL === */
.hero-frame {
  margin: 60px 40px 0;
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--bg-warm);
  overflow: hidden;
}
.hero-frame.tall { aspect-ratio: 4 / 5; max-width: 760px; margin: 60px auto 0; }
.hero-frame img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.hero-frame .label,
.split .img-frame .label,
.fullbleed .label,
.triptych .img-frame .label {
  position: absolute;
  font-family: var(--body);
  font-weight: 400;
  color: var(--ink-2);
  letter-spacing: 0.03em;
  z-index: 2;
}
.hero-frame .label { left: 22px; bottom: 22px; font-size: 11px; }
.split .img-frame .label { left: 18px; bottom: 16px; font-size: 11px; }
.fullbleed .label { left: 40px; bottom: 22px; font-size: 11px; }
.triptych .img-frame .label { left: 16px; bottom: 14px; font-size: 10px; }
.label i {
  font-family: var(--display);
  font-style: italic;
  font-weight: 100;
  font-size: 13px;
  color: var(--ink);
  margin-right: 12px;
}
.triptych .img-frame .label i { font-size: 12px; margin-right: 8px; }

/* === CHAPTER MARK === */
.chapter-mark {
  font-family: var(--display);
  font-style: italic;
  font-weight: 100;
  color: var(--ink-3);
  font-size: 22px;
}

/* === SECTION BLOCK === */
.section {
  padding: 14vh 40px;
  display: grid;
  grid-template-columns: 80px 1fr 80px;
  gap: 32px;
}
.section .gutter { padding-top: 8px; }
.section .body {
  max-width: 56ch;
  font-family: var(--body);
  font-weight: 400;
  font-size: clamp(1.15rem, 1.35vw, 1.4rem);
  line-height: 1.65;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.section .body p + p { margin-top: 1.4em; }
.section .body h2 {
  font-family: var(--display);
  font-style: normal;
  font-weight: 100;
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 0.8em;
  color: var(--ink);
  max-width: 16ch;
}
.section .body p.shift {
  font-family: var(--display);
  font-style: normal;
  font-weight: 100;
  font-size: clamp(1.8rem, 2.6vw, 2.6rem);
  line-height: 1.22;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin: 1em 0;
  max-width: 22ch;
}

/* === IMAGE + TEXT BLOCK === */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  padding: 5rem 40px;
}
.split.flip .img-frame { order: 1; }
.split.flip .copy { order: 0; justify-self: end; }
.split .img-frame {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--bg-warm);
  overflow: hidden;
}
.split .img-frame.tall { aspect-ratio: 4 / 5; }
.split .img-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.split .copy { max-width: 44ch; }
.split .copy h3 {
  font-family: var(--display);
  font-style: normal;
  font-weight: 100;
  font-size: clamp(1.9rem, 2.6vw, 2.4rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin-bottom: 0.7em;
  color: var(--ink);
}
.split .copy p {
  font-family: var(--body);
  font-weight: 400;
  font-size: clamp(1rem, 1.1vw, 1.13rem);
  line-height: 1.65;
  letter-spacing: -0.02em;
}
.split .copy p + p { margin-top: 1em; }

/* === FULL-BLEED IMAGE === */
.fullbleed {
  margin: 4rem 0;
  position: relative;
  aspect-ratio: 21 / 9;
  background: var(--bg-warm);
  overflow: hidden;
}
.fullbleed.tall { aspect-ratio: 16 / 9; }
.fullbleed img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Contained variant: max-width with object-fit contain so the source image is shown in full, no crop, no upscaling */
.fullbleed.contained {
  max-width: 1100px;
  margin: 4rem auto;
  aspect-ratio: 16 / 9;
  background: #0A0907;
}
.fullbleed.contained img { object-fit: contain; }

/* === DETAIL TRIPTYCH === */
.triptych {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 24px;
  padding: 3rem 40px 5rem;
}
.triptych .img-frame {
  position: relative;
  aspect-ratio: 4 / 5;
  background: var(--bg-warm);
  overflow: hidden;
}
.triptych .img-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* === EXPLORATION GRID (landscape concept frames) === */
.exploration {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
  padding: 3rem 40px 5rem;
}
.exploration .img-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #0A0907;
  overflow: hidden;
}
.exploration .img-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.exploration.four-up { grid-template-columns: 1fr 1fr; }
.exploration.four-up .img-frame { aspect-ratio: 16 / 10; }
@media (max-width: 880px) {
  .exploration.four-up { grid-template-columns: 1fr; }
}
.exploration .img-frame .label {
  position: absolute;
  left: 14px; bottom: 12px;
  font-family: var(--body);
  font-weight: 400;
  font-size: 10px;
  color: rgba(245, 240, 232, 0.85);
  letter-spacing: 0.04em;
  z-index: 2;
}
.exploration .img-frame .label i {
  font-family: var(--display);
  font-style: italic;
  font-weight: 100;
  font-size: 12px;
  color: rgba(245, 240, 232, 1);
  margin-right: 8px;
}
@media (max-width: 880px) {
  .exploration { grid-template-columns: 1fr; padding: 2rem 22px 3rem; gap: 12px; }
}

/* === CREDITS === */
.credits {
  padding: 14vh 40px 6vh;
  display: grid;
  grid-template-columns: 80px 1fr 80px;
  gap: 32px;
  border-top: 0.5px solid var(--rule);
}
.credits dl {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 18px 32px;
  font-family: var(--body);
  font-weight: 400;
  font-size: 13px;
  letter-spacing: -0.01em;
  max-width: 60ch;
}
.credits dt {
  font-family: var(--display);
  font-style: italic;
  font-weight: 100;
  font-size: 16px;
  color: var(--ink-2);
  letter-spacing: 0;
}
.credits dd { color: var(--ink); }

/* === FOOT NAV === */
.foot {
  padding: 8vh 40px 12vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: end;
}
.foot a {
  font-family: var(--body);
  font-weight: 400;
  font-size: 13px;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--ink-3);
  padding-bottom: 4px;
  transition: border-color .5s cubic-bezier(0.16, 1, 0.3, 1);
}
.foot a:hover { border-bottom-color: var(--ink); }
.foot .next .caption {
  display: block;
  font-family: var(--body);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--ink-2);
  margin-bottom: 1em;
}
.foot .next h4 {
  font-family: var(--display);
  font-style: normal;
  font-weight: 100;
  font-size: clamp(2rem, 3.4vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 0.4em;
  color: var(--ink);
}
.foot .next a { border-bottom: none; }
.foot .next a h4 { transition: opacity .4s ease; }
.foot .next a:hover h4 { opacity: 0.6; }
.foot .next { text-align: right; }

/* === RULE === */
.rule {
  border-top: 0.5px solid var(--rule);
  margin: 0 40px;
}

/* === LAPTOP MOCKUP for product full-page views === */
.laptop {
  margin: 6rem 40px;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}
.laptop .body {
  background: #1B1816;
  padding: 14px 14px 0;
  border-radius: 14px 14px 6px 6px;
  position: relative;
}
.laptop .body::before {
  content: '';
  position: absolute;
  top: 6px; left: 50%;
  transform: translateX(-50%);
  width: 76px; height: 4px;
  background: rgba(255,255,255,0.07);
  border-radius: 2px;
}
.laptop .screen {
  background: #0A0907;
  overflow: hidden;
  aspect-ratio: 16 / 10;
}
.laptop .screen img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
}
.laptop .base {
  height: 14px;
  background: linear-gradient(180deg, #2A2522 0%, #161412 100%);
  margin: 0 -16px;
  border-radius: 0 0 16px 16px;
  position: relative;
}
.laptop .base::after {
  content: '';
  position: absolute;
  top: 0; left: 38%;
  width: 24%; height: 4px;
  background: rgba(0,0,0,0.4);
  border-radius: 0 0 8px 8px;
}
.laptop .label {
  margin-top: 28px;
  text-align: center;
  font-family: var(--body);
  font-size: 11px;
  color: var(--ink-2);
  letter-spacing: 0.04em;
}
.laptop .label i {
  font-family: var(--display);
  font-style: italic;
  font-weight: 100;
  font-size: 13px;
  color: var(--ink);
  margin-right: 12px;
}

/* === MACRO FRAME for zoomed feature shots === */
.macro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 4rem 40px;
}
.macro.flip .frame { order: 1; }
.macro.flip .copy { order: 0; justify-self: end; }
.macro .frame {
  position: relative;
  background: var(--bg-warm);
  padding: 24px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}
.macro .frame img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.macro .frame.tall { aspect-ratio: 3 / 4; }
.macro .copy { max-width: 38ch; }
.macro .copy .meta-feature {
  font-family: var(--body);
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--ink-2);
  margin-bottom: 1em;
}
.macro .copy h4 {
  font-family: var(--display);
  font-style: normal;
  font-weight: 100;
  font-size: clamp(1.7rem, 2.4vw, 2.2rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin-bottom: 0.6em;
  color: var(--ink);
}
.macro .copy p {
  font-family: var(--body);
  font-weight: 400;
  font-size: clamp(1rem, 1.1vw, 1.13rem);
  line-height: 1.65;
  letter-spacing: -0.02em;
}

/* === SIDE-BY-SIDE LONG-FORM (image + long body) === */
.sidebyside {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  padding: 5rem 40px;
  align-items: start;
}
.sidebyside .img-col {
  position: sticky;
  top: 90px;
}
.sidebyside .img-frame {
  position: relative;
  background: var(--bg-warm);
  overflow: hidden;
}
.sidebyside .img-frame img { width: 100%; height: auto; display: block; }
.sidebyside .img-frame .label {
  position: absolute;
  left: 18px; bottom: 14px;
  font-family: var(--body);
  font-weight: 400;
  font-size: 11px;
  color: var(--ink-2);
  letter-spacing: 0.03em;
  z-index: 2;
}
.sidebyside .img-frame .label i {
  font-family: var(--display);
  font-style: italic;
  font-weight: 100;
  font-size: 13px;
  color: var(--ink);
  margin-right: 10px;
}
.sidebyside .copy {
  max-width: 52ch;
  font-family: var(--body);
  font-weight: 400;
  font-size: clamp(1.1rem, 1.3vw, 1.35rem);
  line-height: 1.65;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.sidebyside .copy h2 {
  font-family: var(--display);
  font-style: normal;
  font-weight: 100;
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 0.8em;
  color: var(--ink);
  max-width: 16ch;
}
.sidebyside .copy p { margin-bottom: 1.2em; }
.sidebyside .copy p.shift {
  font-family: var(--display);
  font-style: normal;
  font-weight: 100;
  font-size: clamp(1.7rem, 2.4vw, 2.4rem);
  line-height: 1.22;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin: 0.9em 0;
  max-width: 22ch;
}
@media (max-width: 880px) {
  .sidebyside { grid-template-columns: 1fr; padding: 3rem 22px; gap: 22px; }
  .sidebyside .img-col { position: static; }
}

/* === CARRYING IT FORWARD — closing wellness reflection === */
.forward {
  display: grid;
  grid-template-columns: 80px 1fr 80px;
  padding: 12vh 40px 14vh;
  gap: 32px;
  border-top: 0.5px solid var(--rule);
  margin: 0 40px;
}
.forward .gutter { padding-top: 8px; }
.forward .body {
  max-width: 56ch;
  font-family: var(--body);
  font-weight: 400;
  font-size: clamp(1.15rem, 1.35vw, 1.4rem);
  line-height: 1.65;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.forward .body .stamp {
  font-family: var(--body);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--ink-2);
  margin-bottom: 2.2em;
  display: block;
}
.forward .body h2 {
  font-family: var(--display);
  font-style: normal;
  font-weight: 100;
  font-size: clamp(2.2rem, 3.6vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 0.9em;
  color: var(--ink);
  max-width: 18ch;
}
.forward .body p { margin-bottom: 1.2em; }
.forward .body p.shift {
  font-family: var(--display);
  font-style: normal;
  font-weight: 100;
  font-size: clamp(1.6rem, 2.2vw, 2.2rem);
  line-height: 1.25;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin: 0.8em 0;
  max-width: 24ch;
}
@media (max-width: 880px) {
  .forward { grid-template-columns: 1fr; padding: 8vh 22px 10vh; gap: 16px; margin: 0 22px; }
}

/* === LIFESTYLE TRIPTYCH variant === */
.lifestyle {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
  padding: 3rem 40px 4rem;
}
.lifestyle .frame {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--bg-warm);
}
.lifestyle .frame img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.lifestyle .frame .label {
  position: absolute;
  left: 16px; bottom: 14px;
  font-family: var(--body);
  font-weight: 400;
  font-size: 10px;
  color: rgba(245, 240, 232, 0.85);
  letter-spacing: 0.04em;
  text-shadow: 0 1px 2px rgba(0,0,0,0.4);
  z-index: 2;
}
.lifestyle .frame .label i {
  font-family: var(--display);
  font-style: italic;
  font-weight: 100;
  font-size: 12px;
  color: rgba(245, 240, 232, 1);
  margin-right: 8px;
}

/* === MOBILE === */
@media (max-width: 880px) {
  .top { padding: 16px 22px; }
  .case-hero { padding: 50px 22px 30px; grid-template-columns: 1fr; gap: 16px; }
  .hero-image {
    margin-top: 60px;
    height: auto;
    padding: 12px;
  }
  .hero-image img {
    max-height: calc(100vh - 60px - 24px);
    width: 100%;
  }
  .hero-frame { margin: 30px 22px 0; aspect-ratio: 4/5; }
  .hero-frame.tall { margin: 30px auto 0; }
  .laptop { margin: 3rem 22px; }
  .macro { grid-template-columns: 1fr; padding: 2.5rem 22px; gap: 20px; }
  .macro.flip .frame, .macro .frame { order: 0; }
  .macro.flip .copy, .macro .copy { order: 1; max-width: 100%; justify-self: start; }
  .lifestyle { grid-template-columns: 1fr; padding: 2rem 22px 3rem; gap: 12px; }
  .section { grid-template-columns: 1fr; padding: 8vh 22px; gap: 16px; }
  .split { grid-template-columns: 1fr; padding: 3rem 22px; gap: 22px; }
  .split.flip .img-frame, .split .img-frame { order: 0; }
  .split.flip .copy, .split .copy { order: 1; max-width: 100%; justify-self: start; }
  .triptych { grid-template-columns: 1fr; padding: 2rem 22px 3rem; gap: 16px; }
  .credits { grid-template-columns: 1fr; padding: 8vh 22px 4vh; gap: 16px; }
  .credits dl { grid-template-columns: 140px 1fr; }
  .foot { grid-template-columns: 1fr; padding: 4vh 22px 8vh; gap: 32px; }
  .foot .next { text-align: left; }
  .fullbleed { aspect-ratio: 4/5; }
  .fullbleed .label { left: 22px; }
}
