/* ====================================================================
   BAYT SIWA — R2 · "Chapters"
   A darker, editorial rewrite. One stylesheet.
   ==================================================================== */

:root{
  /* palette — warm-dark */
  --bg:        #110d09;
  --bg-2:      #1a140e;
  --bg-3:      #241b12;
  --paper:     #efe3c6;       /* cream page for inverted sections */
  --paper-2:   #e0d1ae;

  --ink:       #f2e6c9;
  --ink-80:    rgba(242,230,201,.82);
  --ink-60:    rgba(242,230,201,.60);
  --ink-40:    rgba(242,230,201,.40);
  --ink-20:    rgba(242,230,201,.20);
  --line:      rgba(242,230,201,.12);
  --line-2:    rgba(242,230,201,.22);

  /* accents */
  --gold:      #d9b270;
  --gold-d:    #b4864a;
  --bronze:    #8d6633;
  --stone:     #5d4828;

  --ink-dark:  #1a140e;

  /* type */
  --f-display: "Fraunces", "Cormorant Garamond", ui-serif, Georgia, serif;
  --f-italic:  "Cormorant Garamond", ui-serif, Georgia, serif;
  --f-sans:    "Inter Tight", "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* motion */
  --ease:     cubic-bezier(.22,.68,.28,1);
  --ease-out: cubic-bezier(.16,1,.3,1);
  --dur:      .8s;

  /* layout */
  --w:  1440px;
  --pad: clamp(22px, 4vw, 72px);
  --side: clamp(64px, 6vw, 88px);   /* left rail width */
}

*,*::before,*::after{ box-sizing:border-box }
html,body{ margin:0; padding:0 }
html{ scroll-behavior:smooth }
body{
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  cursor: none;  /* replaced by custom cursor on pointer devices */
}
@media (pointer: coarse){ body{ cursor:auto } }

img,video{ max-width:100%; display:block }
a{ color:inherit; text-decoration:none; cursor:none }
@media (pointer: coarse){ a{ cursor:pointer } }
button{ font:inherit; color:inherit; background:none; border:0; cursor:none; padding:0 }
@media (pointer: coarse){ button{ cursor:pointer } }
::selection{ background: var(--gold); color: var(--bg) }

/* ============ CUSTOM CURSOR ============ */
.cursor-dot, .cursor-ring{
  position: fixed;
  top:0; left:0;
  pointer-events:none;
  z-index: 9999;
  transform: translate3d(-50%,-50%,0);
  mix-blend-mode: difference;
}
.cursor-dot{
  width:5px; height:5px;
  background: var(--gold);
  border-radius:50%;
  transition: opacity .2s;
}
.cursor-ring{
  width: 34px; height:34px;
  border: 1px solid rgba(217,178,112,.5);
  border-radius:50%;
  transition: width .25s var(--ease), height .25s var(--ease), border-color .25s, transform .15s var(--ease-out);
  transform: translate3d(-50%,-50%,0);
}
.cursor-ring.is-hover{ width:58px; height:58px; border-color: var(--gold) }
.cursor-ring.is-click{ width:24px; height:24px; background: rgba(217,178,112,.18) }
@media (pointer: coarse){ .cursor-dot, .cursor-ring{ display:none } }

/* ============ PAGE LOADER ============ */
.loader{
  position: fixed; inset:0;
  background: var(--bg);
  z-index: 900;
  display:grid; place-items:center;
  transition: opacity .8s var(--ease), visibility .8s;
}
.loader-mark{
  font-family: var(--f-display);
  font-size: clamp(40px, 7vw, 92px);
  font-weight: 300;
  font-style: italic;
  color: var(--gold);
  letter-spacing: .02em;
  position: relative;
  padding-bottom: 18px;
}
.loader-mark::after{
  content:"";
  position:absolute; left:0; right:100%; bottom:0;
  height:1px; background: var(--gold);
  animation: loaderLine 1.6s var(--ease) forwards;
}
@keyframes loaderLine{
  from{ right:100% }
  to{ right:0 }
}
.loader.is-done{ opacity:0; visibility:hidden }

/* ============ TYPOGRAPHY ============ */
.display, .h-display, .h-sub{
  font-family: var(--f-display);
  font-weight: 300;
  letter-spacing: -.015em;
  line-height: .98;
  margin: 0;
}
.display{ font-size: clamp(56px, 11vw, 200px) }
.h-display{ font-size: clamp(40px, 6vw, 92px); line-height: 1.02 }
.h-sub{ font-size: clamp(28px, 3.6vw, 52px); line-height: 1.08 }
em{ font-family: var(--f-italic); font-style: italic; font-weight: 300; color: var(--gold) }
.display em, .h-display em, .h-sub em{ font-family: var(--f-italic) }

.eyebrow, .label{
  font-family: var(--f-sans);
  font-size: 11px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
  margin: 0 0 18px;
  display: inline-block;
}
.label{ color: var(--ink-60) }

.lede{
  font-size: clamp(16px, 1.2vw, 19px);
  line-height: 1.55;
  color: var(--ink-80);
  max-width: 58ch;
}
p{ margin: 0 0 14px; color: var(--ink-80); max-width: 62ch }
.small{ font-size: 13px; color: var(--ink-60); line-height: 1.5 }
.muted{ color: var(--ink-40) }

/* line reveal util */
.reveal-up{ opacity:0; transform: translateY(28px); transition: opacity 1.1s var(--ease-out), transform 1.1s var(--ease-out) }
.reveal-up.is-in{ opacity:1; transform:none }
.reveal-mask{
  overflow: hidden;
}
.reveal-mask > *{
  display: block;
  transform: translateY(110%);
  transition: transform 1.2s var(--ease-out);
}
.reveal-mask.is-in > *{ transform: translateY(0) }

/* ============ LEFT RAIL (side nav) ============ */
.rail{
  position: fixed;
  left: 0; top: 0; bottom: 0;
  width: var(--side);
  z-index: 80;
  display: flex; flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
  border-right: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(17,13,9,.6), rgba(17,13,9,.9));
}
.rail-brand{
  font-family: var(--f-display);
  font-size: 22px;
  font-style: italic;
  color: var(--gold);
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  letter-spacing: .18em;
  text-transform: uppercase;
}
.rail-chap{
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: 10px;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--ink-40);
  display: flex; align-items: center; gap: 14px;
}
.rail-chap::before{
  content: ""; width: 1px; height: 28px; background: var(--gold);
}
.rail-foot{
  font-size: 10px; letter-spacing: .28em; text-transform: uppercase;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  color: var(--ink-40);
}

/* ============ TOP BAR ============ */
.topbar{
  position: fixed;
  top: 0; left: var(--side); right: 0;
  z-index: 90;
  display: flex; justify-content: space-between; align-items: center;
  padding: 22px var(--pad);
  transition: background .4s var(--ease), padding .3s;
}
.topbar.is-scrolled{
  background: rgba(17,13,9,.72);
  backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid var(--line);
  padding: 14px var(--pad);
}
.topbar-left{
  font-family: var(--f-display); font-style: italic;
  font-size: 20px;
  color: var(--ink);
}
.topbar-left sup{
  font-family: var(--f-sans); font-style: normal;
  font-size: 10px; letter-spacing: .28em;
  color: var(--gold); margin-left: 12px;
  vertical-align: middle;
  text-transform: uppercase;
}
.topbar-right{ display: flex; align-items: center; gap: 28px }
.time{
  font-size: 11px; letter-spacing: .26em; text-transform: uppercase;
  color: var(--ink-60);
}

.menu-btn{
  display:inline-flex; align-items:center; gap: 14px;
  font-size: 11px; letter-spacing: .28em; text-transform: uppercase;
  padding: 10px 16px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  color: var(--ink);
  transition: background .25s, color .25s, border-color .25s;
}
.menu-btn:hover{ background: var(--gold); color: var(--bg); border-color: var(--gold) }
.menu-btn .dots{
  display:inline-flex; flex-direction: column; gap: 3px;
}
.menu-btn .dots span{
  width: 14px; height: 1.5px; background: currentColor; display: block;
  transition: transform .3s var(--ease), width .3s;
}
.menu-btn:hover .dots span:nth-child(2){ width: 8px }

/* ============ FULL-SCREEN MENU ============ */
.fsmenu{
  position: fixed; inset: 0;
  background: var(--bg);
  z-index: 200;
  display: grid;
  grid-template-columns: 1fr 1fr;
  opacity: 0; visibility: hidden;
  transition: opacity .5s var(--ease), visibility .5s;
}
.fsmenu.is-open{ opacity: 1; visibility: visible }
.fsmenu-close{
  position: absolute; top: 24px; right: var(--pad);
  width: 54px; height: 54px;
  border: 1px solid var(--line-2); border-radius: 50%;
  display: grid; place-items: center;
  color: var(--ink);
  font-size: 22px;
  transition: background .25s, color .25s, border-color .25s;
}
.fsmenu-close:hover{ background: var(--gold); color: var(--bg); border-color: var(--gold) }

.fsmenu-nav{
  padding: 14vh var(--pad);
  display: flex; flex-direction: column; justify-content: center;
  gap: 6px;
}
.fsmenu-nav a{
  font-family: var(--f-display);
  font-size: clamp(36px, 6.4vw, 92px);
  line-height: 1.02;
  font-weight: 300;
  color: var(--ink);
  opacity: .85;
  transition: opacity .3s, color .3s, transform .5s var(--ease);
  display: inline-flex; align-items: baseline; gap: 18px;
  transform: translateX(-30px);
}
.fsmenu.is-open .fsmenu-nav a{ transform: translateX(0) }
.fsmenu-nav a:nth-child(1){ transition-delay: .10s }
.fsmenu-nav a:nth-child(2){ transition-delay: .16s }
.fsmenu-nav a:nth-child(3){ transition-delay: .22s }
.fsmenu-nav a:nth-child(4){ transition-delay: .28s }
.fsmenu-nav a:nth-child(5){ transition-delay: .34s }
.fsmenu-nav a:nth-child(6){ transition-delay: .40s }
.fsmenu-nav a em{ font-style: italic; color: var(--gold) }
.fsmenu-nav a:hover{ color: var(--gold); opacity: 1 }
.fsmenu-nav a .num{
  font-family: var(--f-sans); font-size: 11px; letter-spacing: .28em;
  color: var(--ink-40); font-weight: 500; text-transform: uppercase;
  align-self: flex-start; margin-top: 20px;
}

.fsmenu-aside{
  background-size: cover; background-position: center;
  position: relative;
}
.fsmenu-aside::after{
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.2), rgba(0,0,0,.5));
}
.fsmenu-quote{
  position: absolute; bottom: 40px; left: 40px; right: 40px;
  color: var(--paper);
  font-family: var(--f-italic);
  font-style: italic;
  font-size: clamp(18px, 1.8vw, 26px);
  line-height: 1.35;
  z-index: 1;
}

/* ============ MAIN CANVAS ============ */
main, .site{
  padding-left: var(--side);
  position: relative;
}

/* ============ HERO ============ */
.hero{
  position: relative;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr;
  overflow: hidden;
  isolation: isolate;
  color: var(--ink);
}
.hero-stage{ position: absolute; inset: 0; z-index: 0 }
.hero-slide{
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0; transform: scale(1.06);
  transition: opacity 1.8s var(--ease), transform 9s linear;
}
.hero-slide.is-on{ opacity: .7; transform: scale(1) }
.hero-veil{
  position: absolute; inset: 0; z-index: 1;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(0,0,0,.0) 0%, rgba(0,0,0,.55) 80%),
    linear-gradient(180deg, rgba(17,13,9,.75) 0%, rgba(17,13,9,.25) 40%, rgba(17,13,9,.9) 100%);
}

.hero-inner{
  position: relative; z-index: 2;
  padding: 14vh var(--pad) 18vh;
  max-width: var(--w);
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 320px;
  align-items: end;
  gap: 40px;
}
.hero-title{
  font-family: var(--f-display);
  font-weight: 200;
  font-size: clamp(72px, 15vw, 260px);
  line-height: .85;
  letter-spacing: -.03em;
  text-transform: lowercase;
}
.hero-title .row{ display: block; overflow: hidden; padding-bottom: 0.14em; line-height: 1 }
.hero-title .row > span{ display: block; line-height: 0.9 }
.hero-title .outline{
  -webkit-text-stroke: 1.2px var(--gold);
  color: transparent;
  font-style: italic;
  font-weight: 200;
  letter-spacing: -.02em;
}
.hero-title .shift{ transform: translateX(clamp(30px, 8vw, 160px)) }

.hero-side{
  display: flex; flex-direction: column; gap: 22px;
  align-items: flex-end;
  text-align: right;
  padding-bottom: 10px;
}
.hero-side .eyebrow{ color: var(--gold) }
.hero-side p{ max-width: 38ch }
.hero-cta{ display: flex; flex-direction: column; gap: 10px; align-items: flex-end; margin-top: 14px }

.hero-bottom{
  position: absolute;
  bottom: 0; left: 0; right: 0;
  z-index: 3;
  padding: 22px var(--pad);
  display: flex; justify-content: space-between; align-items: center;
  gap: 24px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, transparent, rgba(17,13,9,.5));
  font-size: 11px; letter-spacing: .26em; text-transform: uppercase;
  color: var(--ink-60);
}
.hero-bottom .mini-dots{ display: flex; gap: 6px }
.hero-bottom .mini-dots button{
  width: 22px; height: 2px;
  background: var(--ink-20);
  transition: background .3s, width .3s;
}
.hero-bottom .mini-dots button.is-on{ background: var(--gold); width: 38px }

/* ============ BUTTONS ============ */
.btn{
  display: inline-flex; align-items: center; gap: 14px;
  font-family: var(--f-sans);
  font-size: 11px; font-weight: 500;
  letter-spacing: .28em; text-transform: uppercase;
  padding: 18px 28px;
  border-radius: 999px;
  transition: background .3s, color .3s, border-color .3s, transform .3s var(--ease-out);
  position: relative; overflow: hidden;
}
.btn:hover{ transform: translateY(-2px) }
.btn .arrow{ transition: transform .3s var(--ease-out) }
.btn:hover .arrow{ transform: translateX(6px) }

.btn-gold{
  background: var(--gold); color: var(--bg);
  border: 1px solid var(--gold);
}
.btn-gold:hover{ background: var(--paper); border-color: var(--paper) }

.btn-ghost{
  color: var(--ink);
  border: 1px solid var(--line-2);
}
.btn-ghost:hover{ border-color: var(--gold); color: var(--gold) }

/* underline link */
.ul-link{
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-sans);
  font-size: 12px; letter-spacing: .24em; text-transform: uppercase;
  color: var(--gold);
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(217,178,112,.35);
  transition: gap .3s var(--ease-out), border-color .3s;
}
.ul-link:hover{ gap: 18px; border-color: var(--gold) }

/* ============ SECTIONS ============ */
.section{
  max-width: var(--w);
  margin: 0 auto;
  padding: clamp(100px, 12vw, 180px) var(--pad);
  position: relative;
}
.section--tight{ padding-top: clamp(40px, 6vw, 80px); padding-bottom: clamp(40px, 6vw, 80px) }
.section--paper{
  background: var(--paper);
  color: var(--ink-dark);
}
.section--paper p{ color: rgba(26,20,14,.72) }
.section--paper .label{ color: rgba(26,20,14,.6) }
.section--paper em{ color: var(--bronze) }
.section--paper .ul-link{ color: var(--bronze); border-color: rgba(141,102,51,.4) }
.section--paper .ul-link:hover{ border-color: var(--bronze) }
.section--paper.full{ max-width: none; }

.section-head{ max-width: 860px; margin: 0 auto 70px }
.section-head.center{ text-align: center }

/* chapter header */
.chapter{
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 40px;
  align-items: baseline;
  padding: clamp(80px, 10vw, 140px) var(--pad) clamp(40px, 5vw, 80px);
  max-width: var(--w);
  margin: 0 auto;
  border-bottom: 1px solid var(--line);
}
.chapter-num{
  font-family: var(--f-display);
  font-style: italic;
  font-size: clamp(60px, 10vw, 160px);
  line-height: .9;
  color: var(--gold);
  letter-spacing: -.02em;
}
.chapter-title{
  font-family: var(--f-display);
  font-weight: 300;
  font-size: clamp(36px, 5.4vw, 84px);
  line-height: 1;
  letter-spacing: -.015em;
}
.chapter-meta{
  margin-top: 16px;
  font-size: 11px; letter-spacing: .28em; text-transform: uppercase;
  color: var(--ink-40);
  display: flex; gap: 20px; flex-wrap: wrap;
}
.chapter-meta span::before{ content: "·"; margin-right: 20px; color: var(--gold) }
.chapter-meta span:first-child::before{ display: none }

/* ornament divider */
.ornament{
  display: flex; align-items: center; justify-content: center; gap: 18px;
  color: var(--ink-40);
  padding: clamp(50px, 6vw, 90px) var(--pad);
}
.ornament::before, .ornament::after{
  content: ""; flex: 1; max-width: 220px;
  height: 1px; background: var(--line);
}
.ornament svg{ color: var(--gold) }

/* ============ HERO QUOTE (first page) ============ */
.prologue{
  text-align: center;
  max-width: 1020px;
  margin: 0 auto;
}
.prologue .quote{
  font-family: var(--f-italic);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(28px, 3.4vw, 48px);
  line-height: 1.24;
  color: var(--ink);
  max-width: 22ch;
  margin: 18px auto 26px;
}
.prologue .attr{
  font-size: 11px; letter-spacing: .28em; text-transform: uppercase;
  color: var(--ink-40);
}

/* ============ SPLIT (text + media) ============ */
.split{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 110px);
  align-items: center;
}
.split.reverse .split-media{ order: 2 }

.split-media{ position: relative; overflow: hidden }
.split-media img{
  width: 100%; height: clamp(420px, 70vh, 760px); object-fit: cover;
  filter: saturate(1.02);
  transition: transform 1.4s var(--ease-out);
}
.split-media:hover img{ transform: scale(1.04) }

.split-text h2{ margin-bottom: 24px }
.cap{
  display: block;
  margin-top: 14px;
  font-size: 11px; letter-spacing: .24em; text-transform: uppercase;
  color: var(--ink-40);
}
.section--paper .cap{ color: rgba(26,20,14,.5) }

/* ============ PINNED SECTION (sticky image / scroll text) ============ */
.pin{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 5vw, 80px);
  padding: clamp(60px, 8vw, 120px) var(--pad);
  max-width: var(--w);
  margin: 0 auto;
  position: relative;
}
.pin-media{
  position: sticky;
  top: 8vh;
  height: 84vh;
  overflow: hidden;
}
.pin-media-layer{
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0;
  transition: opacity 1s var(--ease);
}
.pin-media-layer.is-on{ opacity: 1 }

.pin-text{
  display: flex; flex-direction: column;
  gap: clamp(60px, 8vw, 120px);
  padding: 10vh 0 8vh;
}
.pin-chapter{
  min-height: 42vh;
  display: flex; flex-direction: column; justify-content: center;
}
.pin-chapter .step-n{
  font-family: var(--f-display); font-style: italic;
  font-size: clamp(28px, 2.6vw, 40px);
  color: var(--gold); margin-bottom: 10px;
}
.pin-chapter h3{
  font-family: var(--f-display);
  font-weight: 300;
  font-size: clamp(28px, 3.4vw, 52px);
  line-height: 1.08;
  letter-spacing: -.01em;
  margin: 0 0 18px;
}

/* ============ MARQUEE ============ */
.marquee{
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 26px 0;
  background: var(--bg-2);
}
.marquee--paper{ background: var(--paper-2); border-color: rgba(26,20,14,.1); color: var(--ink-dark) }
.marquee-track{
  display: inline-flex;
  gap: 64px;
  white-space: nowrap;
  animation: marq 42s linear infinite;
  font-family: var(--f-display);
  font-style: italic;
  font-size: clamp(24px, 3vw, 44px);
  color: var(--ink-80);
  padding-left: 64px;
}
.marquee--paper .marquee-track{ color: rgba(26,20,14,.72) }
.marquee-track i{
  font-style: normal;
  color: var(--gold);
  font-family: var(--f-display);
  margin: 0 4px;
}
@keyframes marq{
  from{ transform: translateX(0) }
  to{ transform: translateX(-50%) }
}

/* ============ HORIZONTAL STORY (experience) ============ */
.hstory{
  overflow: hidden;
  background: var(--bg-2);
  padding: clamp(80px, 9vw, 130px) 0;
}
.hstory-head{
  max-width: var(--w); margin: 0 auto 50px;
  padding: 0 var(--pad);
  display: flex; justify-content: space-between; align-items: flex-end; gap: 30px;
  flex-wrap: wrap;
}
.hstory-head .h-display{ max-width: 16ch }
.hstory-track{
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: clamp(360px, 40vw, 580px);
  gap: 40px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0 var(--pad) 10px;
  scrollbar-width: none;
}
.hstory-track::-webkit-scrollbar{ display: none }
.hstory-card{
  scroll-snap-align: start;
  display: flex; flex-direction: column;
}
.hstory-card .hs-img{
  aspect-ratio: 4/5;
  background-size: cover; background-position: center;
  margin-bottom: 26px;
  position: relative;
  overflow: hidden;
  transition: transform .5s var(--ease-out);
}
.hstory-card:hover .hs-img{ transform: scale(1.02) }
.hstory-card .hs-num{
  font-family: var(--f-display); font-style: italic;
  font-size: 20px; color: var(--gold);
  margin-bottom: 8px;
}
.hstory-card h3{
  font-family: var(--f-display);
  font-weight: 300;
  font-size: clamp(24px, 2vw, 34px);
  line-height: 1.1;
  margin: 0 0 12px;
}
.hstory-card p{ color: var(--ink-60); max-width: 40ch; margin: 0 }

.hstory-bar{
  max-width: var(--w); margin: 30px auto 0;
  padding: 0 var(--pad);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 11px; letter-spacing: .28em; text-transform: uppercase;
  color: var(--ink-40);
}
.hstory-ctrls{ display: flex; gap: 10px }
.hstory-ctrls button{
  width: 44px; height: 44px;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  display: grid; place-items: center;
  color: var(--ink);
  transition: background .25s, border-color .25s;
}
.hstory-ctrls button:hover{ background: var(--gold); color: var(--bg); border-color: var(--gold) }

/* ============ IMAGE STACK (asymmetric grid) ============ */
.stack{
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 10vh;
  gap: 18px;
  padding: clamp(80px, 10vw, 140px) var(--pad);
  max-width: var(--w); margin: 0 auto;
}
.stack-a{ grid-column: 1 / span 5; grid-row: 1 / span 4 }
.stack-b{ grid-column: 6 / span 4; grid-row: 1 / span 3 }
.stack-c{ grid-column: 10 / span 3; grid-row: 1 / span 5 }
.stack-d{ grid-column: 1 / span 3; grid-row: 5 / span 3 }
.stack-e{ grid-column: 4 / span 6; grid-row: 4 / span 4 }
.stack-f{ grid-column: 10 / span 3; grid-row: 6 / span 2 }
.stack figure{
  margin: 0; overflow: hidden; position: relative; background: var(--bg-3);
}
.stack figure img{
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.2s var(--ease-out), filter .4s;
}
.stack figure:hover img{ transform: scale(1.05); filter: brightness(1.05) saturate(1.05) }

/* ============ MATERIALS ============ */
.materials .section-head{ text-align: center; max-width: 820px; margin: 0 auto 70px }
.mat-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.mat{
  padding: 42px 34px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  position: relative;
  transition: background .3s var(--ease);
}
.mat:hover{ background: var(--bg-2) }
.mat-num{
  font-family: var(--f-display); font-style: italic;
  font-size: 22px; color: var(--gold);
  display: block; margin-bottom: 20px;
}
.mat h3{
  font-family: var(--f-display);
  font-weight: 300;
  font-size: clamp(26px, 2.2vw, 36px);
  margin: 0 0 14px;
}
.mat p{ color: var(--ink-60); margin: 0 }
.mat-photo{
  padding: 0;
  min-height: 320px;
  background-size: cover; background-position: center;
}
.mat-photo::after{
  content:"";
  position: absolute; inset:0;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,.6));
  pointer-events: none;
}
.mat-photo .mat-cap{
  position: relative; z-index:1;
  padding: 30px 28px;
  color: var(--paper);
  font-family: var(--f-italic); font-style: italic;
  font-size: 16px; max-width: 32ch;
  margin-top: auto;
  display: flex; align-items: flex-end;
}
.mat-photo{ display: flex; align-items: flex-end }

/* ============ FEATURES (house) ============ */
.feat-grid{
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px;
}
.feat{ position: relative }
.feat-img{
  position: relative; overflow: hidden;
  aspect-ratio: 4/5; background: var(--bg-3);
}
.feat-img img{
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.4s var(--ease-out);
}
.feat:hover .feat-img img{ transform: scale(1.06) }
.feat-index{
  position: absolute; top: 16px; left: 16px;
  font-family: var(--f-sans); font-size: 10px;
  letter-spacing: .3em; text-transform: uppercase;
  color: var(--paper);
  padding: 6px 12px;
  border: 1px solid rgba(255,255,255,.4);
  border-radius: 999px;
  background: rgba(0,0,0,.2);
  backdrop-filter: blur(6px);
}
.feat h3{
  font-family: var(--f-display);
  font-weight: 300;
  font-size: clamp(24px, 2.2vw, 34px);
  margin: 22px 0 8px;
  line-height: 1.1;
}
.feat p{ color: var(--ink-60); max-width: 36ch }

/* ============ EXPERIENCE: ACTS ============ */
.acts{
  display: flex; flex-direction: column;
  gap: clamp(80px, 9vw, 140px);
}
.act{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: center;
}
.act.reverse .act-media{ order: 2 }
.act-media{ position: relative; overflow: hidden }
.act-media img{
  width: 100%; height: clamp(420px, 70vh, 700px); object-fit: cover;
  transition: transform 1.4s var(--ease-out);
}
.act-media:hover img{ transform: scale(1.04) }
.act-media::before{
  content: "";
  position: absolute; top: 20px; left: 20px; right: 20px; bottom: 20px;
  border: 1px solid rgba(217,178,112,.35);
  pointer-events: none;
  z-index: 2;
}
.act-time{
  font-family: var(--f-display); font-style: italic;
  font-size: clamp(40px, 4.5vw, 72px);
  color: var(--gold);
  line-height: 1; margin-bottom: 16px; display: block;
}
.act h3{
  font-family: var(--f-display);
  font-weight: 300;
  font-size: clamp(30px, 3.2vw, 50px);
  line-height: 1.05; letter-spacing: -.01em;
  margin: 0 0 20px;
}

/* ============ DESIGNER — TENETS ============ */
.tenets{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
}
.tenet{
  padding: 50px 40px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: background .3s;
  position: relative;
}
.tenet:hover{ background: var(--bg-2) }
.tenet:nth-child(2n){ border-right: 0 }
.tenet-num{
  font-family: var(--f-display); font-style: italic;
  font-size: 32px; color: var(--gold);
  display: block; margin-bottom: 18px;
}
.tenet h3{
  font-family: var(--f-display);
  font-weight: 300;
  font-size: clamp(24px, 2.2vw, 34px);
  margin: 0 0 14px;
  line-height: 1.15;
}
.tenet p{ color: var(--ink-60); max-width: 48ch }

/* method */
.method-grid{
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
  border-top: 1px solid var(--line); border-left: 1px solid var(--line);
}
.step{
  padding: 40px 34px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: transparent;
  transition: background .3s;
}
.step:hover{ background: var(--bg-2) }
.step-num{
  font-family: var(--f-display); font-style: italic;
  font-size: 20px; color: var(--gold); display: block; margin-bottom: 12px;
}
.step h4{ font-family: var(--f-display); font-weight: 300; font-size: 24px; margin: 0 0 8px }
.step p{ color: var(--ink-60); margin: 0 }

/* portfolio (works) */
.works{ display: flex; flex-direction: column; gap: clamp(80px, 10vw, 160px) }
.work{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: center;
}
.work.reverse .work-media{ order: 2 }
.work-media{ overflow: hidden; position: relative }
.work-media img{
  width: 100%; height: clamp(420px, 66vh, 680px); object-fit: cover;
  transition: transform 1.4s var(--ease-out);
}
.work:hover .work-media img{ transform: scale(1.04) }
.work-idx{
  position: absolute; top: 22px; left: 22px; z-index: 2;
  font-family: var(--f-display); font-style: italic;
  font-size: 30px;
  color: var(--paper);
  text-shadow: 0 2px 20px rgba(0,0,0,.4);
}
.work-meta{
  font-size: 11px; letter-spacing: .26em; text-transform: uppercase;
  color: var(--ink-40); margin-bottom: 18px;
}
.work h3{
  font-family: var(--f-display); font-weight: 300;
  font-size: clamp(36px, 4vw, 60px); line-height: 1.04;
  margin: 0 0 20px;
}
.work p{ color: var(--ink-80); max-width: 56ch; margin-bottom: 22px }

/* press / credits */
.press-row{
  display: flex; flex-wrap: wrap; gap: 40px 60px;
  justify-content: center;
  list-style: none; padding: 0; margin: 0;
  font-family: var(--f-display); font-style: italic;
  font-size: clamp(22px, 2vw, 34px);
  color: var(--ink-40);
}
.press-row li{ transition: color .3s }
.press-row li:hover{ color: var(--gold) }

/* ============ BLEED (fullscreen image banner) ============ */
.bleed{
  position: relative;
  min-height: 95vh;
  display: flex; align-items: center; justify-content: center;
  background-size: cover; background-position: center;
  background-attachment: fixed;
  color: var(--paper);
  text-align: center;
  padding: 0 var(--pad);
}
.bleed::before{
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.45) 0%, rgba(0,0,0,.2) 40%, rgba(0,0,0,.65));
}
.bleed-inner{ position: relative; z-index: 2; max-width: 1000px }
.bleed-eyebrow{
  font-size: 11px; letter-spacing: .32em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 28px;
}
.bleed h2{
  font-family: var(--f-display);
  font-weight: 200;
  font-size: clamp(44px, 7vw, 110px);
  line-height: 1;
  letter-spacing: -.015em;
}
.bleed em{ color: var(--gold) }
@media (pointer: coarse){ .bleed{ background-attachment: scroll } }

/* ============ GALLERY (plates) ============ */
.plates-head{
  max-width: var(--w); margin: 0 auto;
  padding: 14vh var(--pad) 40px;
}
.plates-head .display{ font-size: clamp(60px, 10vw, 160px); line-height: .95; margin-bottom: 26px }
.plates-sub{ max-width: 56ch; color: var(--ink-80); margin-bottom: 36px }
.plates-tabs{ display: flex; flex-wrap: wrap; gap: 10px }
.plates-tab{
  font-size: 11px; letter-spacing: .26em; text-transform: uppercase;
  padding: 12px 20px;
  border: 1px solid var(--line-2); border-radius: 999px;
  color: var(--ink-80);
  transition: all .25s;
}
.plates-tab:hover{ color: var(--gold); border-color: var(--gold) }
.plates-tab.is-on{ background: var(--gold); color: var(--bg); border-color: var(--gold) }

.plates{
  max-width: var(--w); margin: 0 auto;
  padding: 30px var(--pad) 60px;
  column-count: 4;
  column-gap: 18px;
}
.plate{
  break-inside: avoid;
  margin: 0 0 18px;
  overflow: hidden;
  background: var(--bg-2);
  cursor: pointer;
  position: relative;
  transition: transform .4s var(--ease-out);
}
.plate img{
  width: 100%; height: auto; display: block;
  transition: transform .9s var(--ease-out), filter .4s;
}
.plate::after{
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 70%, rgba(0,0,0,.5));
  opacity: 0; transition: opacity .3s;
}
.plate:hover img{ transform: scale(1.04); filter: brightness(1.05) }
.plate:hover::after{ opacity: 1 }
.plate.is-hidden{ display: none }

/* lightbox */
.lightbox{
  position: fixed; inset: 0;
  background: rgba(15,12,7,.96);
  backdrop-filter: blur(10px);
  z-index: 300;
  display: none;
  align-items: center; justify-content: center;
}
.lightbox.is-open{ display: flex }
.lb-img{
  max-width: 92vw; max-height: 84vh;
  object-fit: contain;
  box-shadow: 0 40px 100px rgba(0,0,0,.7);
  animation: lbIn .4s var(--ease-out);
}
@keyframes lbIn{ from{ opacity:0; transform: scale(.98) } to{ opacity:1; transform: none } }
.lb-close, .lb-prev, .lb-next{
  position: absolute;
  color: var(--ink);
  font-size: 28px; line-height: 1;
  width: 62px; height: 62px;
  display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 50%;
  transition: background .25s, border-color .25s, color .25s;
}
.lb-close:hover, .lb-prev:hover, .lb-next:hover{
  background: var(--gold); color: var(--bg); border-color: var(--gold);
}
.lb-close{ top: 28px; right: 28px; font-size: 24px }
.lb-prev{ left: 28px; top: 50%; transform: translateY(-50%) }
.lb-next{ right: 28px; top: 50%; transform: translateY(-50%) }
.lb-counter{
  position: absolute; bottom: 28px; left: 0; right: 0;
  text-align: center;
  font-size: 11px; letter-spacing: .32em; text-transform: uppercase;
  color: var(--ink-60);
}
.lb-cap{
  position: absolute; bottom: 60px; left: 0; right: 0;
  text-align: center;
  font-family: var(--f-italic); font-style: italic;
  color: var(--paper-2);
  font-size: 15px;
}

/* ============ CONTACT ============ */
.contact-hero{
  position: relative;
  min-height: 80vh;
  display: flex; align-items: flex-end;
  background-size: cover; background-position: center;
  padding: 0 var(--pad);
  overflow: hidden;
}
.contact-hero::after{
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(17,13,9,.3) 0%, rgba(17,13,9,.1) 30%, rgba(17,13,9,.88));
}
.contact-hero-inner{
  position: relative; z-index: 2;
  max-width: var(--w); width: 100%;
  margin: 0 auto;
  padding-bottom: 10vh;
}
.contact-hero h1{ font-size: clamp(60px, 10vw, 180px); line-height: .95; margin-bottom: 26px }
.contact-hero-sub{
  font-family: var(--f-italic); font-style: italic;
  font-size: clamp(20px, 2vw, 30px);
  color: var(--paper); max-width: 36ch;
  font-weight: 300;
}

.direct-grid{
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px;
  background: var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.direct-card{
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 44px 34px;
  background: var(--bg);
  min-height: 200px;
  transition: background .35s var(--ease);
  gap: 20px;
}
.direct-card:hover{ background: var(--bg-2) }
.direct-card:hover .direct-line{ color: var(--gold) }
.direct-head{
  font-size: 11px; letter-spacing: .28em; text-transform: uppercase;
  color: var(--ink-40);
}
.direct-line{
  font-family: var(--f-display);
  font-weight: 300;
  font-size: clamp(22px, 2.2vw, 34px);
  color: var(--ink);
  transition: color .3s;
  line-height: 1.1;
}
.direct-go{
  font-size: 11px; letter-spacing: .28em; text-transform: uppercase;
  color: var(--gold);
  display: inline-flex; gap: 10px;
}

/* form */
.note-wrap{
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(40px, 6vw, 110px);
  align-items: flex-start;
}
.note-left .h-display{ margin-bottom: 22px; font-size: clamp(36px, 4.4vw, 64px) }
.note-img{ margin-top: 40px; overflow: hidden }
.note-img img{ width:100%; aspect-ratio: 4/5; object-fit:cover }

.note-form{
  background: var(--bg-2);
  border: 1px solid var(--line);
  padding: clamp(30px, 4vw, 56px);
  display: flex; flex-direction: column; gap: 24px;
}
.field{ display: flex; flex-direction: column; gap: 8px }
.field span{
  font-size: 11px; letter-spacing: .24em; text-transform: uppercase;
  color: var(--ink-60);
}
.field em{ font-style: normal; color: var(--ink-40); text-transform: none; letter-spacing: 0; font-size: 11px; margin-left: 6px }
.field input, .field select, .field textarea{
  font: inherit; color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line-2);
  padding: 12px 0;
  outline: none;
  transition: border-color .2s;
  border-radius: 0;
  font-size: 16px;
}
.field input:focus, .field select:focus, .field textarea:focus{
  border-bottom-color: var(--gold);
}
.field textarea{ resize: vertical; min-height: 120px }
.field-row{ display: grid; grid-template-columns: 1fr 1fr; gap: 24px }

.chips{
  border: 0; padding: 0; margin: 6px 0 0;
  display: flex; flex-wrap: wrap; gap: 8px;
}
.chips legend{
  font-size: 11px; letter-spacing: .24em; text-transform: uppercase;
  color: var(--ink-60); padding: 0; width: 100%; margin-bottom: 12px;
}
.chip{
  display: inline-flex; align-items: center; padding: 10px 18px;
  border: 1px solid var(--line-2); border-radius: 999px;
  font-size: 12px;
  cursor: none;
  transition: all .2s;
  position: relative;
}
@media (pointer: coarse){ .chip{ cursor: pointer } }
.chip input{ position: absolute; opacity: 0; pointer-events: none }
.chip:has(input:checked){ background: var(--gold); color: var(--bg); border-color: var(--gold) }

.form-ok{
  background: rgba(217,178,112,.12);
  border-left: 2px solid var(--gold);
  padding: 14px 20px;
  color: var(--gold);
  font-size: 14px;
}
.submit-row{ display: flex; flex-wrap: wrap; gap: 22px; align-items: center }

/* ============ FOOTER ============ */
.colophon{
  border-top: 1px solid var(--line);
  padding: 100px var(--pad) 40px;
}
.colo-top{
  max-width: var(--w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}
.colo-top h4{
  font-size: 11px; letter-spacing: .28em; text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 18px;
  font-weight: 500;
}
.colo-top a{
  display: block; color: var(--ink-60);
  font-size: 13px; padding: 3px 0;
  transition: color .2s;
}
.colo-top a:hover{ color: var(--gold) }
.colo-mark{
  font-family: var(--f-display);
  font-size: 44px;
  font-style: italic;
  font-weight: 300;
  color: var(--gold);
  margin: 0 0 18px;
}
.colo-bottom{
  max-width: var(--w); margin: 80px auto 0;
  padding-top: 30px;
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center;
  gap: 20px; flex-wrap: wrap;
  font-size: 11px; letter-spacing: .26em; text-transform: uppercase;
  color: var(--ink-40);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1100px){
  :root{ --side: 56px }
  .hero-inner{ grid-template-columns: 1fr }
  .hero-side{ align-items: flex-start; text-align: left }
  .hero-cta{ align-items: flex-start }
  .mat-grid{ grid-template-columns: repeat(2, 1fr) }
  .feat-grid{ grid-template-columns: repeat(2, 1fr) }
  .method-grid{ grid-template-columns: repeat(2, 1fr) }
  .tenets{ grid-template-columns: 1fr }
  .tenet:nth-child(2n){ border-right: 1px solid var(--line) }
  .tenet{ border-right: 0 }
  .direct-grid{ grid-template-columns: 1fr }
  .note-wrap{ grid-template-columns: 1fr }
  .plates{ column-count: 3 }
  .colo-top{ grid-template-columns: 2fr 1fr 1fr; }
  .colo-top > div:last-child{ grid-column: span 3 }
  .stack{ grid-template-columns: repeat(6, 1fr); grid-auto-rows: 14vh }
  .stack-a{ grid-column: 1 / span 4; grid-row: 1 / span 3 }
  .stack-b{ grid-column: 5 / span 2; grid-row: 1 / span 2 }
  .stack-c{ grid-column: 5 / span 2; grid-row: 3 / span 3 }
  .stack-d{ grid-column: 1 / span 2; grid-row: 4 / span 2 }
  .stack-e{ grid-column: 3 / span 4; grid-row: 4 / span 3 }
  .stack-f{ grid-column: 1 / span 2; grid-row: 6 / span 2 }
}
@media (max-width: 860px){
  :root{ --side: 44px }
  .topbar{ padding-left: 14px }
  .rail-foot, .rail-chap{ display: none }
  .hero-title{ font-size: 80px }
  .fsmenu{ grid-template-columns: 1fr }
  .fsmenu-aside{ display: none }
  .split, .split.reverse,
  .act, .act.reverse,
  .work, .work.reverse,
  .pin{ grid-template-columns: 1fr; gap: 30px }
  .split.reverse .split-media,
  .act.reverse .act-media,
  .work.reverse .work-media{ order: 0 }
  .pin-media{ position: relative; top: 0; height: 70vh }
  .mat-grid, .feat-grid, .method-grid{ grid-template-columns: 1fr }
  .field-row{ grid-template-columns: 1fr }
  .plates{ column-count: 2 }
  .hero-bottom{ flex-direction: column; align-items: flex-start; gap: 14px }
  .colo-top{ grid-template-columns: 1fr 1fr }
  .colo-top > div:first-child, .colo-top > div:last-child{ grid-column: span 2 }
  .chapter{ grid-template-columns: 1fr; gap: 20px }
}
@media (max-width: 520px){
  :root{ --side: 0px }
  .rail{ display: none }
  main, .site{ padding-left: 0 }
  .topbar{ left: 0 }
  .plates{ column-count: 1 }
  .stack{ grid-template-columns: 1fr; grid-auto-rows: auto }
  .stack > figure{ grid-column: auto !important; grid-row: auto !important; aspect-ratio: 4/5 }
}
