/* Mamarat website — brand from the business card: beige #DDCFC0, charcoal #474748, gold #A99266 / #9E8250 */
@font-face { font-family: "Manchette"; src: url("fonts/ManchetteFine-Light.ttf"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Manchette"; src: url("fonts/ManchetteFine-Regular.ttf"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Manchette"; src: url("fonts/ManchetteFine-Bold.ttf"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Myriad"; src: url("fonts/MyriadPro-Regular.otf"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Myriad"; src: url("fonts/MyriadPro-Semibold.otf"); font-weight: 600; font-display: swap; }

:root {
  --bg: #DDCFC0;
  --bg-2: #E8DED2;
  --ink: #474748;
  --ink-2: #6E6A66;
  --gold: #9E8250;
  --gold-2: #A99266;
  --dark: #2E2D2D;
  --ease: cubic-bezier(.22, .8, .2, 1);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Manchette", "Myriad", system-ui, sans-serif;
  font-size: 18px;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
/* paper grain */
body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 90; opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
.gold { color: var(--gold); }
.en, .kicker, .social a { font-family: "Myriad", sans-serif; letter-spacing: .18em; }

/* ---------- intro ---------- */
.intro {
  position: fixed; inset: 0; z-index: 100; background: var(--bg);
  display: grid; place-items: center;
  transition: opacity .9s var(--ease) 2.1s, visibility 0s 3s;
}
.intro-mark { width: 92px; overflow: visible; }
.intro .arch {
  fill: var(--ink); fill-opacity: 0; stroke: var(--ink); stroke-width: .5;
  stroke-dasharray: 160; stroke-dashoffset: 160;
  animation: draw 1.1s var(--ease) forwards, fillin .5s ease .9s forwards;
}
.intro .step { fill: var(--bg); transform-box: fill-box; transform-origin: right; transform: scaleX(0); animation: grow .45s var(--ease) forwards; }
.intro .s1 { animation-delay: 1.2s } .intro .s2 { animation-delay: 1.38s } .intro .s3 { animation-delay: 1.56s } .intro .s4 { animation-delay: 1.74s }
body.ready .intro { opacity: 0; visibility: hidden; }
@keyframes draw { to { stroke-dashoffset: 0 } }
@keyframes fillin { to { fill-opacity: 1 } }
@keyframes grow { to { transform: scaleX(1) } }

/* ---------- header ---------- */
.top {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; gap: 32px; padding: 22px 5vw;
  transition: background .4s, padding .4s;
}
.top.solid { background: rgba(221, 207, 192, .86); backdrop-filter: blur(10px); padding-block: 12px; }
.brand img { height: 44px; width: auto; }
.top nav { display: flex; gap: 28px; margin-inline-start: auto; font-size: 16px; }
.top nav a { position: relative; }
.top nav a::after { content: ""; position: absolute; inset: auto 0 -4px 0; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease); }
.top nav a:hover::after { transform: scaleX(1); }
.pill { border: 1px solid var(--ink); border-radius: 40px; padding: 8px 22px; font-size: 15px; transition: background .3s, color .3s; }
.pill:hover { background: var(--ink); color: var(--bg); }

/* ---------- staircase progress ---------- */
.stairs { position: fixed; left: 26px; bottom: 32px; z-index: 40; display: flex; flex-direction: column-reverse; align-items: flex-start; gap: 5px; }
.stairs span { display: block; height: 5px; background: rgba(71, 71, 72, .18); transition: background .5s; }
.stairs span:nth-child(1) { width: 40px } .stairs span:nth-child(2) { width: 32px } .stairs span:nth-child(3) { width: 24px }
.stairs span:nth-child(4) { width: 16px } .stairs span:nth-child(5) { width: 8px }
.stairs span.on { background: var(--gold); }

/* ---------- hero ---------- */
.hero { position: relative; height: 100svh; min-height: 620px; display: grid; place-items: center; overflow: hidden; }
.blueprint { position: absolute; inset: 0; width: 100%; height: 100%; }
.blueprint line { stroke: var(--ink); stroke-width: .7; opacity: .32; }
.blueprint line.gold-l { stroke: var(--gold); stroke-width: 1.6; opacity: .9; }
.hero-copy { position: relative; text-align: center; padding: 0 6vw; }
.kicker { font-size: 13px; color: var(--ink-2); margin-bottom: 22px; opacity: 0; animation: up 1s var(--ease) 2.5s forwards; }
h1 { font-weight: 700; font-size: clamp(54px, 9.5vw, 148px); line-height: 1.06; letter-spacing: -.01em; }
h1 .line { display: block; opacity: 0; transform: translateY(40px); animation: up 1.2s var(--ease) forwards; }
h1 .line:nth-child(1) { animation-delay: 2.6s } h1 .line:nth-child(2) { animation-delay: 2.85s }
.sub { margin-top: 26px; font-size: clamp(18px, 1.8vw, 24px); font-weight: 300; opacity: 0; animation: up 1s var(--ease) 3.2s forwards; }
@keyframes up { to { opacity: 1; transform: none } }
.cue { position: absolute; bottom: 34px; inset-inline: 0; display: grid; justify-items: center; gap: 10px; font-size: 14px; color: var(--ink-2); opacity: 0; animation: up 1s ease 3.6s forwards; }
.cue i { width: 1px; height: 46px; background: linear-gradient(var(--ink), transparent); animation: drip 2s ease-in-out infinite; transform-origin: top; }
@keyframes drip { 0% { transform: scaleY(0) } 50% { transform: scaleY(1) } 100% { transform: scaleY(1); opacity: 0 } }

/* ---------- scroll stories ---------- */
.story { position: relative; height: 420vh; }
.stage { position: sticky; top: 0; height: 100svh; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 4vw; padding: 90px 7vw 40px; }
.story.flip .stage { direction: ltr; }
.story.flip .beats { direction: rtl; }
.frame { position: relative; height: min(78svh, 900px); aspect-ratio: 9 / 16; justify-self: center; border-radius: 6px; overflow: hidden; box-shadow: 0 40px 80px -40px rgba(46, 45, 45, .45); background: var(--bg-2); }
.frame canvas { width: 100%; height: 100%; display: block; }
.frame-shade { position: absolute; inset: 0; box-shadow: inset 0 0 0 1px rgba(71, 71, 72, .15); pointer-events: none; }
.beats { position: relative; height: 60svh; }
.beat { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; opacity: 0; transform: translateY(30px); transition: opacity .7s var(--ease), transform .7s var(--ease); pointer-events: none; }
.beat.on { opacity: 1; transform: none; }
.beat .num { font-family: "Myriad", sans-serif; color: var(--gold); font-size: 15px; letter-spacing: .3em; margin-bottom: 10px; }
.beat h2 { font-size: clamp(36px, 4.4vw, 68px); font-weight: 700; line-height: 1.15; margin-bottom: 18px; }
.beat p:last-child { font-size: clamp(17px, 1.4vw, 22px); color: var(--ink-2); max-width: 30ch; font-weight: 300; }

/* ---------- manifesto ---------- */
.manifesto { min-height: 90svh; display: grid; place-items: center; text-align: center; padding: 0 8vw; }
.manifesto p { font-size: clamp(34px, 5.4vw, 86px); font-weight: 700; line-height: 1.3; }
.reveal-words .w { display: inline-block; opacity: .12; transition: opacity .5s; }
.reveal-words .w.on { opacity: 1; }

/* ---------- method ---------- */
.section-title { font-size: clamp(40px, 5vw, 76px); font-weight: 700; text-align: center; line-height: 1.2; margin-bottom: 70px; }
.section-title span { display: block; font-size: clamp(17px, 1.4vw, 21px); font-weight: 300; color: var(--ink-2); margin-top: 10px; }
.method { padding: 140px 7vw 160px; background: var(--bg-2); }
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; align-items: end; max-width: 1200px; margin: 0 auto; }
.steps li {
  position: relative; background: var(--bg); padding: 30px 26px; border-top: 3px solid var(--gold);
  min-height: calc(220px + var(--i) * 70px);
}
.steps.on li { opacity: 1; transform: none; }
.steps b { font-family: "Myriad", sans-serif; color: var(--gold); font-size: 44px; font-weight: 400; line-height: 1; display: block; margin-bottom: 18px; }
.steps h3 { font-size: 26px; margin-bottom: 8px; }
.steps p { color: var(--ink-2); font-size: 17px; font-weight: 300; }

/* ---------- episodes ---------- */
.episodes { padding: 140px 7vw; }
.phones { display: flex; justify-content: center; gap: 6vw; flex-wrap: wrap; }
.phone { position: relative; width: min(320px, 80vw); }
.phone video { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 28px; border: 10px solid var(--dark); background: var(--dark); display: block; box-shadow: 0 50px 90px -50px rgba(46, 45, 45, .6); }
.phone .play { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -80%); width: 72px; height: 72px; border-radius: 50%; border: 0; background: rgba(221, 207, 192, .92); color: var(--ink); font-size: 22px; cursor: pointer; transition: transform .3s var(--ease), opacity .3s; }
.phone .play:hover { transform: translate(-50%, -80%) scale(1.08); }
.phone.playing .play { opacity: 0; pointer-events: none; }
.phone figcaption { text-align: center; margin-top: 18px; font-size: 21px; font-weight: 700; }

/* ---------- CTA ---------- */
.cta { background: var(--dark); color: var(--bg); text-align: center; padding: 150px 7vw 130px; position: relative; overflow: hidden; }
.cta-mark { width: 64px; margin: 0 auto 40px; }
.cta-mark path { fill: var(--gold-2); }
.cta-mark rect { fill: var(--dark); }
.cta h2 { font-size: clamp(38px, 5vw, 78px); line-height: 1.3; font-weight: 700; margin-bottom: 52px; }
.cta .gold { color: var(--gold-2); }
.wa { display: inline-block; background: var(--gold-2); color: var(--dark); padding: 18px 46px; border-radius: 60px; font-size: 20px; font-weight: 700; transition: transform .3s var(--ease), background .3s; }
.wa:hover { transform: translateY(-3px); background: #BCA678; }
.social { margin-top: 40px; display: flex; gap: 30px; justify-content: center; font-size: 13px; }
.social a { opacity: .7; transition: opacity .3s; }
.social a:hover { opacity: 1; }

.foot { padding: 60px 7vw; display: grid; justify-items: center; gap: 12px; text-align: center; color: var(--ink-2); font-size: 14px; }
.foot img { width: 220px; margin-bottom: 14px; }


/* ---------- showcase (still) ---------- */
.show { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 6vw; padding: 120px 8vw; }
.show.flip { direction: ltr; }
.show.flip .show-copy { direction: rtl; }
.show-img img { width: 100%; max-width: 480px; aspect-ratio: 9 / 16; object-fit: cover; margin: 0 auto; border-radius: 6px; box-shadow: 0 40px 80px -40px rgba(46, 45, 45, .45); }
.show-copy .num { font-family: "Myriad", sans-serif; color: var(--gold); font-size: 15px; letter-spacing: .3em; margin-bottom: 10px; }
.show-copy h2 { font-size: clamp(36px, 4.4vw, 68px); font-weight: 700; line-height: 1.15; margin-bottom: 18px; }
.show-copy p:last-child { font-size: clamp(17px, 1.4vw, 22px); color: var(--ink-2); max-width: 32ch; font-weight: 300; }
@media (max-width: 820px) {
  .show, .show.flip { grid-template-columns: 1fr; direction: rtl; padding: 80px 16px; gap: 34px; }
}

/* ---------- register interest ---------- */
.top .pill { margin-inline-start: auto; }
.interest { padding: 130px 7vw 120px; background: var(--bg-2); }
.form { max-width: 520px; margin: 0 auto; display: grid; gap: 20px; }
.form label { display: grid; gap: 8px; font-size: 16px; color: var(--ink-2); }
.form input, .form select {
  font: inherit; font-size: 18px; color: var(--ink); background: var(--bg);
  border: 0; border-bottom: 1.5px solid rgba(71, 71, 72, .35); border-radius: 0; padding: 12px 4px;
  outline: none; transition: border-color .3s;
}
.form input:focus, .form select:focus { border-color: var(--gold); }
.form input[dir="ltr"] { text-align: right; }
.form button {
  margin-top: 12px; font: inherit; font-size: 20px; font-weight: 700; cursor: pointer;
  background: var(--ink); color: var(--bg); border: 0; border-radius: 60px; padding: 16px; transition: background .3s;
}
.form button:hover { background: var(--dark); }
.form-note { min-height: 1.7em; text-align: center; color: var(--gold); }
.interest .social { color: var(--ink-2); }

/* ---------- survey ---------- */
.survey { max-width: 560px; margin: 0 auto; }
.s-head { display: flex; align-items: center; gap: 14px; margin-bottom: 26px; }
.s-count { font-size: 14px; color: var(--ink-2); white-space: nowrap; }
.s-bar { flex: 1; height: 3px; background: rgba(71, 71, 72, .15); }
.s-bar i { display: block; height: 100%; background: var(--gold); }
.s-q { font-size: clamp(26px, 3vw, 38px); font-weight: 700; line-height: 1.3; margin-bottom: 8px; }
.s-hint { color: var(--ink-2); font-size: 16px; margin-bottom: 8px; }
.s-opts { display: grid; gap: 12px; margin-top: 22px; }
.s-opt {
  font: inherit; font-size: 18px; text-align: right; cursor: pointer; color: var(--ink);
  background: var(--bg); border: 1.5px solid rgba(71, 71, 72, .2); border-radius: 10px; padding: 16px 20px;
}
.s-opt:hover { border-color: var(--ink); }
.s-opt.on { border-color: var(--gold); background: #EFE6DA; box-shadow: inset 0 0 0 1px var(--gold); }
.s-back, .s-next { font: inherit; font-size: 16px; cursor: pointer; margin-top: 22px; border-radius: 40px; padding: 10px 26px; }
.s-back { background: none; border: 0; color: var(--ink-2); text-decoration: underline; text-underline-offset: 4px; }
.s-next { float: left; background: var(--ink); color: var(--bg); border: 0; }
.s-next:disabled { opacity: .35; cursor: default; }
.survey .form { margin-top: 22px; }
.form textarea { font: inherit; font-size: 18px; color: var(--ink); background: var(--bg); border: 0; border-bottom: 1.5px solid rgba(71, 71, 72, .35); padding: 12px 4px; outline: none; resize: vertical; }
.form button:disabled { opacity: .5; }

/* ---------- phones / small screens ---------- */
@media (max-width: 820px) {
  body { font-size: 16px; }
  .top { padding: 16px 16px; gap: 14px; }
  .top nav { display: none; }
  .brand img { height: 36px; }
  .pill { margin-inline-start: auto; }
  .stairs { left: 12px; bottom: 18px; }
  .stage { grid-template-columns: 1fr; padding: 0; gap: 0; }
  .story.flip .stage { direction: rtl; }
  .frame { position: absolute; inset: 0; height: 100%; width: 100%; aspect-ratio: auto; border-radius: 0; box-shadow: none; }
  .frame-shade { background: linear-gradient(to top, rgba(46, 45, 45, .62) 0%, rgba(46, 45, 45, 0) 46%); box-shadow: none; }
  .beats { position: absolute; inset: auto 0 0 0; height: 46svh; padding: 0 22px 46px; color: #F3ECE3; }
  .beat { justify-content: flex-end; }
  .beat p:last-child { color: rgba(243, 236, 227, .86); }
  .beat .num { color: #D9C49A; }
  .steps { grid-template-columns: 1fr; }
  .steps li { min-height: 0; }
  .method, .episodes { padding: 100px 16px; }
  .cta { padding: 110px 16px 100px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01s !important; animation-delay: 0s !important; transition-duration: .01s !important; }
}
