/* Amrapalli 360 — landing / section chooser */
:root {
  --bg: #07090d;
  --ink: #f4f6f8;
  --ink-dim: rgba(244, 246, 248, .62);
  --ink-faint: rgba(244, 246, 248, .38);
  --accent: #c8a26a;
  --edge: rgba(255, 255, 255, .13);
  --ease: cubic-bezier(.22, .61, .36, 1);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--ink); font-family: var(--font); -webkit-font-smoothing: antialiased; overflow: hidden; }

#split { position: fixed; inset: 0; display: grid; grid-template-columns: 1fr 1fr; }

.half {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(24px, 5vw, 64px);
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  isolation: isolate;
  outline: none;
}
.half .bg, .half .bg-hi {
  position: absolute;
  inset: -6%;
  background-size: cover;
  background-position: 50% 52%;
  transition: transform 1.2s var(--ease), opacity .9s var(--ease), filter 1.2s var(--ease);
  will-change: transform;
  z-index: -2;
  filter: saturate(105%) brightness(.82);
}
.half .bg { filter: blur(10px) saturate(105%) brightness(.7); transform: scale(1.06); }
.half .bg-hi { opacity: 0; z-index: -1; }
.half.ready .bg-hi { opacity: 1; }
.half::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top, rgba(4, 6, 9, .88) 0%, rgba(4, 6, 9, .35) 45%, rgba(4, 6, 9, .15) 100%);
  transition: opacity .6s var(--ease);
}
.half:hover .bg-hi, .half:focus-visible .bg-hi { filter: saturate(112%) brightness(.95); }
.half:hover::after, .half:focus-visible::after { opacity: .8; }

.half .eyebrow { font-size: 10px; letter-spacing: .34em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.half h2 { margin: 0; font-size: clamp(38px, 6vw, 84px); font-weight: 200; line-height: .98; letter-spacing: .01em; }
.half h2 b { font-weight: 500; }
.half p { margin: 16px 0 0; max-width: 40ch; color: var(--ink-dim); font-size: 14.5px; line-height: 1.6; }
.half .cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
  font-size: 11px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--ink);
  transition: gap .3s var(--ease);
}
.half .cta::after {
  content: "";
  width: 42px; height: 1px;
  background: var(--accent);
  transition: width .35s var(--ease);
}
.half:hover .cta, .half:focus-visible .cta { gap: 18px; }
.half:hover .cta::after, .half:focus-visible .cta::after { width: 64px; }
.half .meta { position: absolute; top: clamp(24px, 5vw, 64px); left: clamp(24px, 5vw, 64px); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-faint); }

#divider { position: fixed; top: 0; bottom: 0; left: 50%; width: 1px; background: var(--edge); z-index: 2; pointer-events: none; }

#masthead {
  position: fixed;
  top: clamp(24px, 5vw, 64px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  text-align: center;
  pointer-events: none;
  white-space: nowrap;
}
#masthead .name { font-size: 12px; letter-spacing: .44em; text-transform: uppercase; font-weight: 500; }
#masthead .sub { font-size: 10px; letter-spacing: .28em; text-transform: uppercase; color: var(--ink-faint); margin-top: 8px; }

#foot {
  position: fixed;
  left: 50%; bottom: 22px;
  transform: translateX(-50%);
  z-index: 3;
  font-size: 10px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(244, 246, 248, .3);
  pointer-events: none;
  white-space: nowrap;
}

@media (max-width: 760px) {
  #split { grid-template-columns: 1fr; grid-template-rows: 1fr 1fr; }
  /* wide, short panels: show only the central ~90° of the equirect so it reads as a photo, not a strip */
  .half .bg, .half .bg-hi { background-size: 230% auto; }
  #divider { top: 50%; bottom: auto; left: 0; right: 0; width: auto; height: 1px; }
  #masthead { top: 22px; }
  .half { padding: 22px; }
  .half .meta { top: 22px; left: 22px; }
  .half p { display: none; }
  .half h2 { font-size: 34px; }
  #foot { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .half .bg, .half .bg-hi { transition: none; }
}
