.opening{--frame-height:calc(100svh - var(--header-height))}
.opening{--opening-bg:#141311;--opening-text:#f6f3ec;--opening-dim:#d1c5b8;--opening-line:#e1c4a132;--opening-letter:#2a2520}
[data-theme=light] .opening{--opening-bg:#f4efe5;--opening-text:#12110f;--opening-dim:#494037;--opening-line:#78624e45;--opening-letter:#e0d7c9}
.opening-stage{position:relative;isolation:isolate;overflow:hidden;background:var(--opening-bg);color:var(--opening-text)}
.opening-grid{position:absolute;inset:0;z-index:-2;pointer-events:none;background:linear-gradient(90deg,var(--opening-line) 1px,transparent 1px),linear-gradient(var(--opening-line) 1px,transparent 1px);background-size:clamp(52px,8vw,130px) clamp(52px,8vw,130px);mask-image:linear-gradient(90deg,transparent,#000 76%);opacity:.6}
.opening-symbol{position:absolute;right:-10vw;top:10%;width:70vw;height:86%;z-index:-1;background:var(--opening-letter);mask:url(/assets/complete-agency/vajra-mark.png) center/contain no-repeat;pointer-events:none}
.opening-layout{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));position:relative;align-items:center;min-height:var(--frame-height);padding-top:20px}
.opening-copy{z-index:1;padding-block:2.75rem}
.opening-brand{color:var(--opening-text);font-size:clamp(1.2rem,2vw,2rem);font-weight:780;letter-spacing:.15em;text-transform:uppercase}
.opening h1{color:var(--opening-text);font-size:clamp(3.5rem,7.35vw,8.4rem);letter-spacing:-.087em;font-weight:670;line-height:.84;margin:16px 0 28px}
.opening h1 :is(span,em){display:inline-block}
.opening h1 em{color:var(--accent-text);font-weight:500}
.opening-lead{color:var(--opening-dim);font-size:clamp(var(--text-min),1.7vw,1.38rem);max-width:29ch}
.opening-portrait{width:92%;margin:0;align-self:end;justify-self:end;position:relative;display:flex;justify-content:center;isolation:isolate}
.opening-portrait img{width:100%;height:calc((var(--frame-height) - 28px) * .92);object-fit:cover;object-position:50% 5%;display:block;mask-image:linear-gradient(#000 91%,transparent)}
.opening-portrait figcaption{position:absolute;bottom:4px;right:0;background:var(--opening-bg);color:var(--opening-text);border-left:2px solid var(--accent);padding:4px 10px;font-weight:720;font-size:var(--text-min);line-height:1.5}
.opening-portrait figcaption span{display:block;color:var(--opening-dim);font-size:var(--text-min);font-weight:480}
@media(max-width:760px){
  .opening-layout{grid-template-columns:1fr;align-content:center;padding-top:28px}
  .opening-copy{padding-block:7px 0}
  .opening h1{font-size:clamp(2.52rem,11.9vw,5.7rem);margin:12px 0 18px}
  .opening-lead{font-size:var(--text-min)}
  .opening-symbol{width:120%;height:54%;top:auto;bottom:2%;right:-14%}
  .opening-portrait{width:min(92%,515px);justify-self:center;margin-top:8px}
  .opening-portrait img{height:clamp(267px,50svh,488px);object-fit:contain;object-position:center bottom}
}

@media(prefers-reduced-motion:no-preference){
  .opening-stage{--opening-ease:cubic-bezier(.2,.75,.26,1)}
  .opening-brand,.opening-lead,.opening-portrait figcaption{
    animation:opening-rise .78s var(--opening-ease) backwards;
  }
  .opening h1 :is(span,em){
    animation:opening-line .94s var(--opening-ease) backwards;
  }
  .opening h1 span{animation-delay:.12s}
  .opening h1 em{animation-delay:.25s}
  .opening-lead{animation-delay:.36s}
  .opening-portrait figcaption{animation-delay:.42s}
  .opening-portrait img{animation:opening-portrait-in 1.12s var(--opening-ease) backwards}
  .opening-grid{animation:opening-grid-in 1.1s ease-out backwards}
  @keyframes opening-rise{
    from{opacity:0;transform:translateY(18px)}
  }
  @keyframes opening-line{
    from{opacity:0;transform:translateY(26px);clip-path:inset(100% -12% -30% -12%)}
    to{opacity:1;transform:none;clip-path:inset(-25% -12% -40% -12%)}
  }
  @keyframes opening-portrait-in{
    from{opacity:0;transform:translate(16px,20px) scale(1.045)}
  }
  @keyframes opening-grid-in{from{opacity:0}}
  @supports(animation-timeline:view()){
    .opening{view-timeline-name:--opening-scroll}
    .opening-symbol{
      animation:opening-symbol-drift linear both;
      animation-timeline:--opening-scroll;
      animation-range:exit 0% exit 100%;
    }
    .opening-portrait{
      animation:opening-portrait-drift linear both;
      animation-timeline:--opening-scroll;
      animation-range:exit 0% exit 100%;
    }
    @keyframes opening-symbol-drift{to{translate:-5% 12%;opacity:.45}}
    @keyframes opening-portrait-drift{to{translate:0 9%}}
  }
}

.horizon{--screen:calc(100svh - var(--header-height));background:#0a0a0a;color:#f6f3ec}
.horizon-controls{display:grid;grid-template-columns:1fr auto;align-items:center;gap:12px;padding:16px max(18px,calc((100% - 1350px)/2));background:#0a0a0a;font-size:var(--text-min);font-weight:700;letter-spacing:.12em;text-transform:uppercase}
.horizon-status{display:flex;align-items:center;gap:12px;white-space:nowrap}
.horizon-status progress{width:clamp(35px,8vw,110px);height:2px;accent-color:#d6ae76}
.horizon-panel{display:grid;align-items:center;min-height:min(65svh,580px);background:linear-gradient(135deg,#171512,#0a0a0a 72%);border-bottom:1px solid #282522}
.horizon-copy{padding-block:45px}
.horizon-capability{color:#e6bf87;font-size:calc(2 * var(--text-min));line-height:1.1;text-wrap:balance;letter-spacing:.065em;text-transform:uppercase}
.horizon-panel h2{font-size:clamp(3rem,7.55vw,8rem);line-height:.92;letter-spacing:-.069em;color:#f6f3ec;max-width:15ch;margin:16px 0 20px;text-wrap:balance}
.horizon-description{color:#f2e8dc;font-size:clamp(var(--text-min),1.6vw,1.28rem);max-width:48ch;line-height:1.48}
.horizon-finale{text-align:center;background:#0a0a0a}
.horizon-finale h2,.horizon-finale .horizon-description{margin-inline:auto}
.horizon-finale h2{max-width:none;text-transform:uppercase}
.horizon-finale .horizon-description{margin-top:20px;font:italic 500 clamp(var(--text-min),2vw,1.5rem)/1.4 Playfair,Georgia,serif}
.horizon-end{font-size:var(--text-min);color:#dbd0c0;margin-top:14px}
.horizon[data-pinned]{height:calc(var(--screen) + 1180svh)}
.horizon[data-pinned] .horizon-stage{position:sticky;top:var(--header-height);height:var(--screen);overflow:hidden;isolation:isolate}
.horizon canvas{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}
.horizon[data-pinned] .horizon-controls{position:absolute;inset:0 0 auto;z-index:2;background:linear-gradient(#0a0a0ac9,transparent);padding-bottom:28px}
.horizon[data-pinned] .horizon-panel{position:absolute;inset:0;align-items:end;min-height:0;border:0;background:none;pointer-events:none;opacity:var(--horizon-opacity,0)}
.horizon[data-pinned] .horizon-copy{padding-block:0 clamp(22px,5svh,64px)}
.horizon[data-pinned] .horizon-finale{align-items:center}
.horizon[data-pinned] .horizon-finale>.horizon-copy{padding:20px 0}
@media(max-width:760px){
  .horizon-controls{gap:10px;letter-spacing:.035em;padding-block:10px}
  .horizon-status{gap:6px}
  .horizon-panel h2{font-size:clamp(2rem,min(9.2vw,6.4svh),4.8rem);margin-block:10px 12px}
  .horizon-capability{letter-spacing:.025em;overflow-wrap:anywhere}
  .horizon-description{max-width:34ch}
  .horizon-finale .horizon-description{margin-top:15px}
}
@media(max-height:530px) and (orientation:landscape){
  .horizon-panel h2{font-size:clamp(2.4rem,11vh,5rem)}
  .horizon[data-pinned] .horizon-copy{padding-bottom:24px}
}

.horizon-capability{font-family:"Courier Prime","Courier New",monospace;font-weight:700}
.horizon-panel h2{font-family:Inter,Arial,sans-serif}
.horizon-description{font-family:Playfair,Georgia,serif;font-style:italic;font-weight:500;font-size:clamp(var(--text-min),1.65vw,1.36rem)}

.horizon-panel:not(.horizon-finale):nth-child(3n+2) .horizon-copy{text-align:right}
.horizon-panel:not(.horizon-finale):nth-child(3n+2) :is(h2,.horizon-description){margin-inline-start:auto}
.horizon-panel:nth-child(3n+3) .horizon-copy{text-align:center}
.horizon-panel:nth-child(3n+3) :is(h2,.horizon-description){margin-inline:auto}
.horizon-panel:not(.horizon-finale):nth-child(3n+2){--type-direction:1}
.horizon-panel:nth-child(3n+3),.horizon-finale{--type-direction:0}

.horizon[data-pinned] .horizon-panel::before{
  content:"";
  position:absolute;
  inset:0;
  z-index:-1;
  background:radial-gradient(ellipse at 12% 89%,#060504ac,transparent 66%);
}
.horizon[data-pinned] .horizon-panel:not(.horizon-finale):nth-child(3n+2)::before{
  background:radial-gradient(ellipse at 88% 87%,#060504bd,transparent 68%);
}
.horizon[data-pinned] .horizon-panel:nth-child(3n+3)::before{
  background:radial-gradient(ellipse at 50% 78%,#060504b8,transparent 70%);
}
.horizon[data-pinned] .horizon-finale::before{display:none}
.horizon[data-pinned] .horizon-copy > *{
  --entry-shift:var(--type-arrival);
  opacity:calc(1 - var(--entry-shift));
  transform:translate(
    calc(var(--type-direction,-1) * var(--entry-shift) * clamp(20px,6vw,100px)),
    calc(var(--entry-shift) * 36px - var(--type-departure) * 20px)
  );
}
.horizon[data-pinned] .horizon-copy .horizon-capability{--entry-shift:var(--label-arrival)}
.horizon[data-pinned] .horizon-copy :is(.horizon-description,.horizon-end){--entry-shift:var(--copy-arrival)}

@media(prefers-reduced-motion:no-preference){.opening-actions{animation:opening-rise .78s var(--opening-ease) .36s backwards}}
/* Editorial booking treatment: part of the opening composition. */
.opening-actions{display:grid;justify-items:start;gap:18px;margin-top:34px}.opening-actions .opening-book{display:inline-flex;align-items:center;justify-content:space-between;gap:32px;min-height:64px;min-width:255px;padding:8px 0 15px;border:0;border-bottom:1px solid var(--line);border-radius:0;background:none;color:var(--ink);text-decoration:none;box-shadow:none;transition:border-color .25s,gap .25s}.opening-book>span{font:500 italic clamp(28px,2.6vw,36px)/1.15 Playfair,Georgia,serif;letter-spacing:-.035em}.opening-book>i{width:42px;height:42px;border:1px solid var(--accent);border-radius:50%;position:relative;flex:none}.opening-book>i:before,.opening-book>i:after{content:"";position:absolute;inset:50% 12px auto;height:1px;background:var(--accent)}.opening-book>i:after{transform:rotate(90deg)}.opening-book:hover{border-color:var(--accent);gap:46px}.opening-book:focus-visible{outline:3px solid var(--accent);outline-offset:8px}.opening-actions>p{font-size:max(18px,1.125rem);line-height:1.5;color:var(--dim);margin:0;max-width:29ch}@media(max-width:650px){.opening-actions{gap:14px;margin-top:26px}.opening-actions .opening-book{min-width:230px}.opening-book>span{font-size:30px}}

/* Keep the same sun journey on short displays and without hardware graphics. */
.horizon[data-compact] .horizon-panel h2{font-size:clamp(28px,min(5.5vw,6.6svh),72px);line-height:1.02;max-width:24ch;margin-block:10px 12px}
.horizon[data-compact] .horizon-capability{font-size:36px;line-height:1.1}
.horizon[data-compact] .horizon-description{font-size:18px;line-height:1.4;max-width:54ch}
.horizon[data-compact] .horizon-copy{padding-bottom:clamp(16px,3svh,28px)}
.horizon[data-short] .horizon-panel h2{font-size:28px}
.horizon[data-short] .horizon-capability{font-size:36px}
.horizon-atmosphere{position:absolute;inset:0;overflow:hidden;pointer-events:none;background:#0a0a0a}
.horizon-fallback-sky{position:absolute;inset:0;background:linear-gradient(180deg,var(--sky-upper),var(--sky-lower))}
.horizon-fallback-sun{position:absolute;left:var(--sun-x);top:var(--sun-y);height:5.4%;aspect-ratio:1;border-radius:50%;transform:translate(-50%,-50%);background:var(--sun-color);opacity:var(--sun-light);box-shadow:0 0 28px 14px color-mix(in srgb,var(--sun-color) 22%,transparent),0 0 110px 48px color-mix(in srgb,var(--sun-color) 13%,transparent)}
.horizon-fallback-water{position:absolute;inset:var(--waterline) 0 0;background:linear-gradient(180deg,var(--water-upper),var(--water-lower));border-top:1px solid #ffffff16}
.horizon-fallback-reflection{position:absolute;top:var(--waterline);bottom:0;left:var(--sun-x);width:46%;transform:translateX(-50%);background:repeating-linear-gradient(0deg,transparent 0 4px,#ffffff28 5px 6px),radial-gradient(ellipse at 50% 0%,var(--sun-color),transparent 70%);mask-image:radial-gradient(ellipse at 50% 0%,#000,transparent 68%);-webkit-mask-image:radial-gradient(ellipse at 50% 0%,#000,transparent 68%);opacity:calc(var(--sun-light)*.23)}
.horizon-atmosphere:after{content:'';position:absolute;inset:0;background:linear-gradient(0deg,#05040399,transparent 65%);opacity:calc(.5 + var(--ending-shade))}
.horizon:not([data-pinned]) .horizon-panel{background:radial-gradient(circle at 76% 18%,#ffe9bd 0 12px,#dbab7333 14px,transparent 85px),linear-gradient(180deg,#162536,#65432e 53%,#202c34 54%,#0a0a0a);text-shadow:0 2px 14px #0008}
@media(max-height:440px) and (min-width:600px){.horizon[data-short] .horizon-panel:not(.horizon-finale) .horizon-copy{display:grid;grid-template-columns:1fr 1fr;column-gap:28px;text-align:left}.horizon[data-short] .horizon-capability{grid-column:1}.horizon[data-short] .horizon-panel h2{grid-column:1;margin-block:8px}.horizon[data-short] .horizon-description{grid-column:2;grid-row:1/3;align-self:end;margin:0}}
