/* =========================================================
   KALĀ — hub
   ========================================================= */
.h-hero { position: relative; height: 100svh; min-height: 640px; display: grid; place-items: center; overflow: hidden; isolation: isolate; }
.h-hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.h-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse 60% 55% at 50% 48%, rgba(201, 162, 74, 0.1), transparent 70%); pointer-events: none; }
.h-hero__inner { text-align: center; padding: 0 var(--gutter); }
.h-hero__mandala { position: absolute; left: 50%; top: 50%; width: min(118vh, 130vw); aspect-ratio: 1; transform: translate(-50%, -50%); z-index: -1; opacity: 0.22; pointer-events: none; }
.h-hero__mandala svg { width: 100%; height: 100%; }
.h-hero__mandala path, .h-hero__mandala circle { fill: none; stroke: var(--gold); stroke-width: 0.35; }
.h-hero h1 { font-size: clamp(120px, 24vw, 400px); letter-spacing: 0.06em; margin: 18px 0 0; line-height: 0.82; }
.h-hero h1 .char { display: inline-block; }
.h-hero__deva { font-family: var(--indic); font-size: clamp(26px, 3vw, 44px); color: var(--gold-2); margin-top: 8px; opacity: 0.9; }
.h-hero__sub { font-family: var(--serif); font-style: italic; font-weight: 300; font-size: clamp(20px, 2.2vw, 32px); color: var(--paper-2); margin-top: 26px; }
.h-hero__words { display: flex; gap: clamp(16px, 4vw, 60px); justify-content: center; margin-top: 44px; flex-wrap: wrap; }
.h-hero__words a { font-size: 11px; letter-spacing: 0.34em; text-transform: uppercase; font-weight: 700; color: var(--paper-3); transition: color 0.4s; }
.h-hero__words a:hover { color: var(--gold-2); }
.h-hero__words a em { font-family: var(--serif); font-style: italic; letter-spacing: 0; text-transform: none; font-size: 16px; color: var(--gold); margin-right: 8px; font-weight: 400; }

/* ---------- Portals ---------- */
.portals { height: 100svh; min-height: 640px; display: flex; gap: 10px; padding: 10px; }
.portal { position: relative; flex: 1 1 0; min-width: 0; border-radius: 16px; overflow: hidden; isolation: isolate; transition: flex-grow 0.9s var(--ease-out); color: var(--paper); contain: layout paint style; }
.portals:hover .portal { flex-grow: 0.8; }
.portals .portal:hover, .portals .portal:focus-visible { flex-grow: 2.2; }
/* The background is sized to the widest a portal can get, so changing the portal's width only
   crops it: no image rescaling or repainting while the portals expand. */
.portal__bg { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.portal__bg img { position: absolute; top: 0; left: 50%; height: 100%; width: max(100%, 64vw); max-width: none; object-fit: cover; transform: translate3d(-50%, 0, 0) scale(1.1); transition: transform 1.4s var(--ease-out); will-change: transform; backface-visibility: hidden; }
.portal:hover .portal__bg img { transform: translate3d(-50%, 0, 0) scale(1.02); }
/* dimming is an overlay whose opacity fades (GPU), instead of animating a filter on the image */
.portal__bg::after { content: ""; position: absolute; inset: 0; background: rgba(8, 7, 5, 0.42); transition: opacity 1s var(--ease-out); will-change: opacity; }
.portal:hover .portal__bg::after { opacity: 0.35; }
.portal::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(8, 7, 5, 0.1) 30%, rgba(8, 7, 5, 0.92) 100%); }
.portal__num { position: absolute; top: 26px; left: 28px; font-family: var(--serif); font-style: italic; font-size: 22px; color: var(--gold-2); }
.portal__tag { position: absolute; top: 30px; right: 28px; font-size: 10px; letter-spacing: 0.26em; text-transform: uppercase; font-weight: 700; color: var(--paper-2); text-align: right; line-height: 1.8; white-space: nowrap; }
.portal__body { position: absolute; left: 28px; bottom: 30px; width: min(520px, calc(64vw - 56px)); }
.portal__native { font-family: var(--indic); font-size: 24px; color: var(--gold-2); }
.portal__title { font-family: var(--serif); font-weight: 300; font-size: clamp(56px, 6.5vw, 110px); line-height: 0.9; margin: 6px 0 14px; white-space: nowrap; }
/* description reveals with opacity/transform only: no height animation, so no reflow */
.portal__desc { max-width: 42ch; color: var(--paper-2); font-size: 15px; line-height: 1.6; opacity: 0; transform: translate3d(0, 16px, 0); transition: opacity 0.6s, transform 0.8s var(--ease-out); position: absolute; left: 0; bottom: calc(100% - 14px); margin: 0 0 16px; pointer-events: none; }
.portal:hover .portal__desc, .portal:focus-visible .portal__desc { opacity: 1; transform: none; }
.portal:hover .portal__title, .portal:focus-visible .portal__title { transform: translate3d(0, -8px, 0); }
.portal__title, .portal__native { transition: transform 0.8s var(--ease-out); }
.portal:hover .portal__native, .portal:focus-visible .portal__native { opacity: 0; }
.portal__cta { display: inline-flex; align-items: center; gap: 12px; margin-top: 18px; font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase; font-weight: 700; color: var(--gold-2); }
.portal__cta i { width: 70px; height: 1px; background: currentColor; transform-origin: left; transform: scaleX(0.55); transition: transform 0.6s var(--ease-out); }
.portal:hover .portal__cta i { transform: none; }
.portal--map .portal__bg { background: radial-gradient(ellipse at 50% 45%, #13224a, #060a14 75%); }
.portal--map .portal__bg img { width: min(100%, 46vw); height: auto; max-height: 92%; top: 50%; object-fit: contain; transform: translate3d(-50%, -50%, 0) scale(0.94); }
.portal--map:hover .portal__bg img { transform: translate3d(-50%, -50%, 0) scale(1); }
.portal--map .portal__bg::after { opacity: 0; }
.portal--fusion .portal__bg { background: #1a120c; }
.portal--fusion .portal__bg img { object-position: 50% 38%; }
@media (max-width: 860px) {
  .portals { flex-direction: column; height: auto; }
  .portal, .portals:hover .portal, .portals .portal:hover { flex: none; height: 78svh; }
  .portal__bg img { width: 100%; }
  .portal--map .portal__bg img { width: 88%; }
  .portal__body { width: auto; right: 22px; }
  .portal__desc { position: static; opacity: 1; transform: none; margin: 0 0 12px; }
  .portal:hover .portal__native { opacity: 1; }
}

/* ---------- Brief table ---------- */
.overview { padding: clamp(90px, 12vw, 170px) var(--gutter); max-width: 1400px; margin: 0 auto; }
.overview h2 { font-family: var(--serif); font-weight: 300; font-size: clamp(44px, 6vw, 92px); line-height: 0.95; max-width: 16ch; }
.overview h2 em { color: var(--gold); }
.overview > p { max-width: 62ch; margin: 26px 0 60px; }
.a-table { width: 100%; border-collapse: collapse; }
.a-table th, .a-table td { text-align: left; padding: 22px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.a-table thead th { font-size: 10px; letter-spacing: 0.26em; text-transform: uppercase; color: var(--paper-3); font-weight: 700; }
.a-table td:first-child { font-family: var(--serif); font-style: italic; color: var(--gold); font-size: 22px; width: 60px; }
.a-table .t { font-family: var(--serif); font-size: 28px; line-height: 1.1; }
.a-table .t small { display: block; font-family: var(--sans); font-size: 13px; color: var(--paper-3); margin-top: 6px; }
.a-table td { color: var(--paper-2); font-size: 15px; }
.a-table a.go { display: inline-flex; gap: 10px; align-items: center; font-size: 10px; letter-spacing: 0.26em; text-transform: uppercase; font-weight: 700; color: var(--gold-2); white-space: nowrap; }
.a-table tr { transition: background 0.3s; }
.a-table tbody tr:hover { background: rgba(201, 162, 74, 0.05); }
@media (max-width: 860px) { .a-table { display: block; overflow-x: auto; } }
