@font-face { font-family: "Inter"; src: url("/assets/aliph/fonts/inter-regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/assets/aliph/fonts/inter-medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/assets/aliph/fonts/inter-semibold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "EB Garamond"; src: url("/assets/aliph/fonts/eb-garamond-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }

:root {
  --sage: #bacba6; --card: #0a0a0a; --ink: #e9ebe3; --mute: #8f9488; --row: #161614; --row-hi: #1e1f1b;
  --pad: 16px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--sage); -webkit-text-size-adjust: 100%; }
body { background: var(--sage); color: var(--ink); font-family: "Inter", Arial, Helvetica, sans-serif; min-height: 100dvh; -webkit-tap-highlight-color: transparent; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
button:focus-visible, a:focus-visible { outline: 2px solid var(--sage); outline-offset: 2px; }

.page { padding: max(10px, env(safe-area-inset-top)) 10px max(10px, env(safe-area-inset-bottom)); }

/* intro: a slim strip on phones, a column on wide screens */
.intro { padding: 0 8px 2px; color: #1f2419; }
.home { display: inline-block; padding: 13px 4px; color: #1f2419; text-decoration: none; font-size: 14px; font-weight: 500; }
.intro-title, .intro-text, .intro-note, .intro .film-btn { display: none; }

.card { position: relative; background: var(--card); border-radius: 34px; overflow: hidden; box-shadow: inset 0 0 0 1px #1d1e1a; max-width: 520px; margin: 0 auto; }

.bar { display: flex; align-items: center; gap: 6px; padding: 14px 12px 4px 20px; }
.title { font-size: 21px; font-weight: 600; margin: 0; letter-spacing: -0.01em; transition: transform .35s cubic-bezier(.2,.8,.2,1); }
.back { width: 0; overflow: hidden; font-size: 30px; line-height: 1; height: 44px; margin-left: -6px; color: var(--ink); opacity: 0; transition: width .35s cubic-bezier(.2,.8,.2,1), opacity .25s; }
.card.open .back { width: 34px; opacity: 1; }
.pill { position: relative; margin-left: auto; display: flex; background: #1b1c19; border-radius: 999px; padding: 4px; }
.pill button { position: relative; z-index: 1; font-size: 14px; color: #8f948a; padding: 12px 11px; line-height: 16px; border-radius: 999px; transition: color .2s; white-space: nowrap; }
.pill button[aria-pressed="true"] { color: #11140e; }
.knob { position: absolute; top: 4px; bottom: 4px; left: 0; width: 0; border-radius: 999px; background: var(--sage); transition: transform .42s cubic-bezier(.3,1.5,.5,1), width .42s cubic-bezier(.3,1.5,.5,1); }

.stage { position: relative; width: calc(100% - 2px); margin: 0 1px; aspect-ratio: 1 / 0.94; touch-action: manipulation; overflow: hidden; }
.no-gl .stage { background: #0a0a0a url("/assets/aliph/halqa-film-poster.jpg") center 32% / 112% auto no-repeat; }
.no-gl #plan, .no-gl .labels { display: none; }
#plan { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: pointer; }
.labels { position: absolute; inset: 0; pointer-events: none; }
.lab { position: absolute; left: 0; top: 0; opacity: 0; text-align: center; white-space: nowrap; will-change: transform, opacity; }
.lab b { display: block; font-weight: 500; letter-spacing: -0.01em; color: #1c2017; line-height: 1.08; }
.lab .sw { position: relative; display: block; margin-top: 1px; }
.lab i { display: block; font-style: normal; color: #3e4636; }
.lab i.s2 { position: absolute; left: 50%; top: 0; transform: translateX(-50%); }
.lab.ring b { color: #8d9583; font-weight: 400; }

.panels { position: relative; padding: 4px 18px 6px; }
.panel { display: none; }
.panel.on, html:not(.js) .panel[data-panel="overview"] { display: block; }
.panel.on > * { animation: rise .45s cubic-bezier(.2,.8,.2,1) both; }
.panel.on > :nth-child(2) { animation-delay: .04s; } .panel.on > :nth-child(3) { animation-delay: .08s; }
.panel.on > :nth-child(4) { animation-delay: .12s; } .panel.on > :nth-child(5) { animation-delay: .16s; }
.panel.on > :nth-child(6) { animation-delay: .2s; } .panel.on > :nth-child(7) { animation-delay: .24s; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.panel h2 { font-family: "EB Garamond", Georgia, serif; font-weight: 400; font-size: 31px; line-height: 1.02; letter-spacing: -0.01em; }
.panel p { font-size: 14.5px; color: var(--mute); margin: 7px 0 14px; }
.row { position: relative; width: 100%; text-align: left; background: var(--row); border-radius: 18px; padding: 11px 16px; margin-top: 8px; min-height: 58px; }
button.row { transition: background .2s, transform .15s; }
button.row:active { transform: scale(.985); background: var(--row-hi); }
@media (hover: hover) { button.row:hover { background: var(--row-hi); } }
.row { display: grid; grid-template-columns: 1fr auto; column-gap: 12px; align-items: center; }
.row b { grid-column: 1; font-weight: 500; font-size: 16px; }
.row i { grid-column: 1; font-style: normal; font-size: 13px; color: #8a8f83; margin-top: 2px; }
.row em { grid-column: 2; grid-row: 1 / span 2; font-style: normal; font-size: 15.5px; color: var(--ink); white-space: nowrap; }

.card-foot { padding: 14px 18px 22px; }
.card-foot p { font-size: 12.5px; color: #8f948a; margin-top: 12px; line-height: 1.45; }
.film-btn { display: inline-flex; align-items: center; gap: 8px; background: var(--sage); color: #11140e; font-weight: 500; font-size: 15px; border-radius: 999px; padding: 14px 20px; min-height: 48px; }
.film-btn::before { content: ""; width: 0; height: 0; border-left: 9px solid #11140e; border-top: 6px solid transparent; border-bottom: 6px solid transparent; }

.film { margin: auto; border: 0; background: transparent; max-width: min(92vw, 460px); max-height: 92dvh; overflow: visible; }
html.film-open, html.film-open body { overflow: hidden; }
.film::backdrop { background: rgba(10, 12, 8, .86); }
.film video { display: block; width: 100%; max-height: 86dvh; border-radius: 22px; background: #000; }
.film-close { position: absolute; top: -48px; right: -4px; font-size: 32px; color: var(--ink); width: 48px; height: 48px; }

@media (min-width: 900px) {
  .page { min-height: 100dvh; display: grid; grid-template-columns: minmax(260px, 380px) minmax(470px, 600px); justify-content: center; align-items: start; gap: 64px; padding: 32px; }
  .intro { padding: 0; position: sticky; top: max(32px, calc(50dvh - 220px)); }
  .intro-title { display: block; font-family: "EB Garamond", Georgia, serif; font-weight: 400; font-size: 76px; line-height: .95; margin: 26px 0 18px; letter-spacing: -0.01em; color: #11140e; }
  .intro-text { display: block; font-size: 17px; line-height: 1.5; color: #2a3122; }
  .intro .film-btn { display: inline-flex; margin-top: 26px; background: #11140e; color: var(--sage); }
  .intro .film-btn::before { border-left-color: var(--sage); }
  .intro-note { display: block; margin-top: 18px; font-size: 13px; color: #4a5340; }
  .card { margin: 0; border-radius: 44px; max-width: 600px; width: 100%; }
  .card-foot { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .panel.on > * { animation: none; }
  .knob, .title, .back { transition-duration: .01s !important; }
}

/* ---------------------------------------------------------------- see the place */
.row em.v, .row.see em { color: var(--sage); }
.row.see { background: #1b1d17; box-shadow: inset 0 0 0 1px #2a2e23; }
.viewer { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; border: 0; padding: 0; background: #0a0a0a; color: var(--ink); overflow: hidden; }
.viewer[open] { display: grid; grid-template-rows: auto 1fr auto; animation: v-in .35s cubic-bezier(.2,.8,.2,1) both; }
.viewer::backdrop { background: #0a0a0a; }
@keyframes v-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.v-top { display: flex; align-items: center; gap: 12px; padding: max(10px, env(safe-area-inset-top)) 8px 6px 20px; }
.v-room { font-weight: 600; font-size: 17px; letter-spacing: -0.01em; }
.v-count { font-size: 13px; color: var(--mute); font-variant-numeric: tabular-nums; }
.v-close { margin-left: auto; width: 48px; height: 48px; font-size: 32px; line-height: 1; color: var(--ink); }
.v-stage { position: relative; overflow: hidden; margin: 0 10px; border-radius: 22px; background: #fff; touch-action: pan-y; min-height: 0; }
.v-wrap { position: absolute; transform-origin: 0 0; transition: transform .75s cubic-bezier(.22,.9,.24,1); will-change: transform; }
.v-wrap.in { animation: v-fade .45s ease both; }
@keyframes v-fade { from { opacity: 0; } to { opacity: 1; } }
.v-img { display: block; width: 100%; height: 100%; user-select: none; -webkit-user-drag: none; pointer-events: none; }
.v-spot { position: absolute; pointer-events: none; transition: left .75s cubic-bezier(.22,.9,.24,1), top .75s cubic-bezier(.22,.9,.24,1), width .75s cubic-bezier(.22,.9,.24,1), height .75s cubic-bezier(.22,.9,.24,1), opacity .4s, box-shadow .75s; outline: 1.5px solid rgba(186,203,166,.9); }
.v-load { position: absolute; left: 50%; top: 50%; width: 28px; height: 28px; margin: -14px 0 0 -14px; border-radius: 50%; border: 2px solid #c9c9c0; border-top-color: transparent; opacity: 0; animation: v-spin .8s linear infinite; transition: opacity .2s; }
.viewer.loading .v-load { opacity: 1; }
@keyframes v-spin { to { transform: rotate(360deg); } }
.v-sheet { padding: 14px 20px max(16px, env(safe-area-inset-bottom)); }
.v-kind { display: inline-block; font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: #11140e; background: var(--sage); border-radius: 999px; padding: 4px 10px; }
.v-title { font-family: "EB Garamond", Georgia, serif; font-weight: 400; font-size: 30px; line-height: 1.05; margin-top: 10px; }
.v-text { font-size: 15px; line-height: 1.45; color: #b3b8ab; margin-top: 6px; min-height: 2.9em; }
.v-nav { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.v-prev, .v-next { width: 48px; height: 48px; border-radius: 50%; background: #1b1c19; font-size: 26px; line-height: 1; color: var(--ink); flex: none; }
.v-dots { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px; flex: 1; }
.v-dots button { width: 20px; height: 28px; position: relative; }
.v-dots button::after { content: ""; position: absolute; left: 50%; top: 50%; width: 7px; height: 7px; margin: -3.5px; border-radius: 50%; background: #4a4e44; transition: background .2s, transform .2s; }
.v-dots button[aria-current="true"]::after { background: var(--sage); transform: scale(1.3); }
@media (min-width: 900px) {
  .viewer[open] { grid-template-columns: 1fr 380px; grid-template-rows: auto 1fr; }
  .v-top { grid-column: 1 / -1; padding: 16px 16px 8px 28px; }
  .v-stage { margin: 0 0 24px 24px; }
  .v-sheet { align-self: end; padding: 0 32px 32px; }
  .v-title { font-size: 40px; }
}
@media (prefers-reduced-motion: reduce) { .v-wrap, .v-spot { transition: none; } .viewer[open], .v-wrap.in { animation: none; } }
