/* Makon — home page: one continuous story around a live 3D room */
body.home2 { background: var(--night); }
body.home2 .top { transition: background .4s, backdrop-filter .4s; background: linear-gradient(rgba(14,17,16,.55), rgba(14,17,16,0)); }
body.home2.scrolled .top { background: rgba(14,17,16,.6); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }

/* the story: a tall section, the 3D room sticks while the steps change */
.story { position: relative; height: 560vh; }
.story-stage { position: sticky; top: 0; height: 100vh; height: 100dvh; overflow: hidden; }
#h3d { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: grab; touch-action: pan-y; }
#h3d.grab { cursor: grabbing; }
.h3d-fallback { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.h3d-labels { position: absolute; inset: 0; pointer-events: none; }
.h3d-dim { position: absolute; left: 0; top: 0; font: 600 11px var(--sans); letter-spacing: .06em; color: #fff; background: #18201d; padding: 4px 8px; white-space: nowrap; transition: opacity .3s; }
/* soft shade so text stays readable over the 3D */
.story-stage::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(90deg, rgba(14,17,16,.62) 0%, rgba(14,17,16,.28) 34%, transparent 58%); }
.story-steps { position: absolute; left: var(--pad); bottom: clamp(70px, 12vh, 140px); z-index: 2; width: min(560px, calc(100% - 2 * var(--pad))); pointer-events: none; }
.step { position: absolute; left: 0; bottom: 0; width: 100%; opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .8s cubic-bezier(.2,.8,.2,1); }
.step.on { opacity: 1; transform: none; pointer-events: auto; }
.step h1, .step h2 { font: 400 clamp(36px, min(5.4vw, 8.2vh), 88px)/.98 var(--serif); letter-spacing: -.03em; margin: 14px 0 18px; color: var(--white); text-shadow: 0 2px 30px rgba(0,0,0,.25); }
.step h2 { font-size: clamp(36px, min(5.2vw, 8.5vh), 80px); }
.step p { font-size: 16px; line-height: 1.65; color: rgba(251,248,242,.88); max-width: 470px; margin: 0; text-shadow: 0 1px 14px rgba(0,0,0,.35); }
.step .num { color: var(--accent); }
.hero-cta { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; margin-top: 26px; }
.hero-cta .btn-light { padding: 15px 24px; }
.room-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 26px; }
.room-chips button { border: 1px solid rgba(255,255,255,.28); background: rgba(14,17,16,.35); color: #fff; padding: 8px 12px; font: 500 12.5px var(--sans); cursor: pointer; backdrop-filter: blur(6px); transition: background .2s, color .2s; }
.room-chips button:hover { background: rgba(255,255,255,.15); }
.room-chips button[aria-pressed="true"] { background: var(--white); color: var(--ink); border-color: var(--white); }
.story-dots { position: absolute; right: var(--pad); top: 50%; transform: translateY(-50%); z-index: 2; display: grid; gap: 10px; }
.story-dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(24,32,29,.35); transition: transform .3s, background .3s; }
.story-dots i.on { background: var(--accent); transform: scale(1.6); }
.story-hint { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 2; color: #18201d; background: rgba(240,234,223,.82); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); padding: 7px 14px; border-radius: 99px; white-space: nowrap; transition: opacity .4s; }
.story-hint .touch { display: none; }
@media (hover: none) { .story-hint .touch { display: inline; } .story-hint .desk { display: none; } }
.eve-btn { position: absolute; right: var(--pad); bottom: 22px; z-index: 3; border: 1px solid rgba(24,32,29,.25); background: rgba(255,255,255,.7); color: var(--ink); padding: 9px 14px; cursor: pointer; backdrop-filter: blur(6px); }
.eve-btn[aria-pressed="true"] { background: var(--ink); color: var(--white); }

/* before / after on a real photo */
.ba { padding: clamp(100px, 12vw, 170px) var(--pad) clamp(40px, 6vw, 80px); max-width: 1500px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: clamp(30px, 5vw, 80px); align-items: center; }
.ba-head h2 { font: 400 clamp(40px, 4.6vw, 70px)/1 var(--serif); letter-spacing: -.03em; margin: 14px 0 18px; }
.ba-head p { color: var(--soft); line-height: 1.65; margin: 0 0 22px; }
.ba-frame { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #0d100f; }
.ba-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba-after { clip-path: inset(0 0 0 var(--x)); }
.ba-frame::after { content: ""; position: absolute; top: 0; bottom: 0; left: var(--x); width: 2px; margin-left: -1px; background: #fff; box-shadow: 0 0 18px rgba(0,0,0,.35); pointer-events: none; }
.ba-frame input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.ba-handle { position: absolute; top: 50%; left: var(--x); transform: translate(-50%, -50%); width: 46px; height: 46px; border-radius: 50%; background: #fff; color: var(--ink); display: grid; place-items: center; font-size: 18px; pointer-events: none; box-shadow: 0 8px 24px rgba(0,0,0,.35); z-index: 2; }
.ba-tag { position: absolute; top: 16px; z-index: 2; color: #fff; background: rgba(0,0,0,.45); padding: 6px 10px; }
.ba-tag.l { left: 16px; } .ba-tag.r { right: 16px; }

@media (max-width: 900px) {
  .story { height: 520vh; }
  .story-stage::before { background: linear-gradient(0deg, rgba(14,17,16,.82) 0%, rgba(14,17,16,.5) 40%, transparent 68%); }
  .story-steps { bottom: 64px; }
  .step h1 { font-size: clamp(38px, 11vw, 54px); }
  .step h2 { font-size: clamp(34px, 9.5vw, 48px); }
  .step p { font-size: 14.5px; }
  .room-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-right: calc(-1 * var(--pad)); }
  .room-chips::-webkit-scrollbar { display: none; }
  .room-chips button { white-space: nowrap; }
  .story-dots { top: 140px; transform: none; right: 14px; }
  .story-hint { bottom: 16px; font-size: 9px; }
  .eve-btn { top: 128px; bottom: auto; right: 34px; left: auto; padding: 7px 11px; }
  body:not(.has-announce) .eve-btn { top: 92px; } body:not(.has-announce) .story-dots { top: 104px; }
  .ba { grid-template-columns: 1fr; }
}
.h3d-fallback[hidden] { display: none !important; }

/* In motion: vertical films */
.ig { display: grid; grid-template-columns: minmax(260px, 1fr) 2.4fr; gap: clamp(28px, 4vw, 64px); align-items: center; }
.ig-head h2 { font-size: clamp(36px, 4.4vw, 64px); margin: 14px 0 18px; }
.ig-head p { max-width: 34ch; color: var(--muted, #6f675c); margin-bottom: 22px; }
.ig-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.ig-card { position: relative; margin: 0; aspect-ratio: 9 / 16; border-radius: 14px; overflow: hidden; background: #1b1f1d; box-shadow: 0 18px 40px -22px rgba(0,0,0,.45); transform: translateZ(0); }
.ig-card:nth-child(even) { margin-top: 36px; }
.ig-card video { width: 100%; height: 100%; object-fit: cover; display: block; cursor: pointer; }
.ig-card figcaption { position: absolute; left: 12px; right: 52px; bottom: 12px; color: #fff; font-size: 12.5px; letter-spacing: .02em; text-shadow: 0 1px 6px rgba(0,0,0,.5); pointer-events: none; }
.ig-snd { position: absolute; right: 10px; bottom: 10px; width: 34px; height: 34px; border-radius: 50%; border: 0; display: grid; place-items: center; background: rgba(20,22,21,.55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); color: #fff; cursor: pointer; }
.ig-snd svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.ig-snd svg path:first-child { fill: currentColor; stroke: none; }
.ig-snd .on, .ig-snd[aria-pressed="true"] .off { display: none; }
.ig-snd[aria-pressed="true"] .on { display: inline; }
@media (max-width: 900px) {
  .ig { grid-template-columns: 1fr; }
  .ig-row { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; margin: 0 -20px; padding: 0 20px 6px; scrollbar-width: none; }
  .ig-row::-webkit-scrollbar { display: none; }
  .ig-card { flex: 0 0 62vw; max-width: 280px; scroll-snap-align: center; }
  .ig-card:nth-child(even) { margin-top: 0; }
}
