/* Homepage blueprint: a connected hero and a service navigator that stays within reach. */
:root {
  --header-height: 97px;
  --service-rail-height: 79px;
  --anchor-offset: calc(var(--header-height) + var(--service-rail-height) + 18px);
  --home-ease: cubic-bezier(.22, .68, .2, 1);
}
html { scroll-padding-top: var(--anchor-offset); }
.hero { scroll-margin-top: 0; }
.hero-line { overflow: hidden; }
.hero-line > span { animation: none; opacity: 1; transform: none; }
.hero-reveal-enabled .hero-line > span {
  transition: opacity .75s var(--home-ease), transform .95s var(--home-ease);
  transition-delay: .06s;
}
.hero-reveal-enabled .hero-line:nth-child(2) > span { transition-delay: .2s; }
.hero-reveal-enabled .hero:not(.is-entered) .hero-line > span { opacity: 0; transform: translateY(110%) rotate(2deg); }
[data-hero-step] { --hero-delay: 0ms; }
[data-hero-step="1"] { --hero-delay: 260ms; }
[data-hero-step="2"] { --hero-delay: 340ms; }
[data-hero-step="3"] { --hero-delay: 420ms; }
[data-hero-step="4"] { --hero-delay: 500ms; }
.hero-reveal-enabled [data-hero-step] { transition: opacity .7s var(--home-ease), transform .8s var(--home-ease); transition-delay: var(--hero-delay); }
.hero-reveal-enabled .hero:not(.is-entered) [data-hero-step] { opacity: 0; transform: translateY(13px); }
.hero-reveal-enabled .hero.is-entered [data-hero-step] { opacity: 1; transform: none; }
.hero:focus-within .hero-line > span, .hero:focus-within [data-hero-step] { opacity: 1 !important; transform: none !important; transition: none !important; }
.hero-actions { gap: 12px; }
.hero-actions .button { min-height: 55px; font-size: 12px; border-radius: 5px; }
.hero-actions .button-outline { border-color: #d6d3ca; background: #fffdf740; }
.hero-actions .button-orange { box-shadow: 0 4px 14px #ed531921, inset 0 1px 0 #ffffff45; }
.hero-actions .button { transition: translate .22s var(--home-ease), transform .28s var(--home-ease), background .25s, border-color .25s, box-shadow .3s; }
.hero-actions .button > span[aria-hidden] { transition: transform .3s var(--home-ease); }
.hero-actions .button:hover > span[aria-hidden], .hero-actions .button:focus-visible > span[aria-hidden] { transform: translate(3px, -3px); }
.hero-actions .button-orange:hover { background: #ff6836; box-shadow: 0 9px 24px #ed531937, 0 0 0 1px #ffb29770, inset 0 1px 0 #ffffff80; }
.hero-actions .button-outline:hover { background: #fffdf7; border-color: #bdb8ac; box-shadow: 0 7px 20px #4433160a; }
.hero-footnote .small-orbit { color: #ed511f; }
.hero-halo-layer { inset: 5%; }
.hero-halo { background: radial-gradient(ellipse at 51% 52%, #ffa1667d 0, #ffbc884d 29%, #ffd1ac21 55%, #f6f4ed00 74%); }
.hero-core {
  background: radial-gradient(circle at 32% 23%, #353b2e 0, #23291f 38%, #1b2119 75%);
  border-color: #9ca58f;
  box-shadow: 0 0 0 8px #f8f7f0, 0 0 0 9px #ccd0bf, 0 12px 32px #9c603729, inset 0 2px 8px #ffffff15;
}
.hero-core::before { inset: 6px; border-color: #a3ad9560; box-shadow: inset 0 0 0 3px #10160f22; }
.hero-core::after { inset: -24px; border-color: #e8804d80; border-top-color: transparent; border-bottom-color: transparent; }
.hero-core .core-india { color: #ffa071; }
.hero-orbit-rails .rail { stroke-opacity: .76; }
.hero-orbit-rails .hero-connector { fill: none; stroke: #d99570; stroke-width: 1; stroke-dasharray: 2 9; opacity: .2; transition: stroke .25s, opacity .35s, stroke-width .35s; }
.hero-orbit-rails .hero-connector.is-connected { stroke: #ec612d; stroke-width: 1.7; opacity: .85; animation: connector-travel 7s linear infinite; }
.hero-orbit-rails .rail-point { animation: ecosystem-point 6s ease-in-out infinite; }
.hero-orbit-rails .rail-point:nth-last-child(2) { animation-delay: -2s; }
.hero-orbit-rails .rail-point:last-child { animation-delay: -4s; }
.hero-platform-float {
  border-color: #deddd5;
  background: linear-gradient(150deg, #fff 60%, #fcfbf8);
  box-shadow: 0 5px 14px #47321b09, 0 17px 28px #65462608;
  transform: perspective(550px) translateY(var(--tile-lift, 0px)) rotateX(var(--tile-rx, 0deg)) rotateY(var(--tile-ry, 0deg));
  transition: transform .38s var(--home-ease), border-color .3s, box-shadow .35s;
}
.hero-platform[aria-pressed="true"] .hero-platform-float { border-color: #d1cbbd; box-shadow: 0 0 0 2px #ede6d750, 0 10px 22px #65381710; }
.hero-platform:hover .hero-platform-float, .hero-platform:focus-visible .hero-platform-float {
  --tile-lift: -5px;
  border-color: #ef9e76;
  box-shadow: 0 0 0 3px #ffc09a22, 0 14px 27px #df713125;
}
.hero-platform .hero-platform-name { color: #625b4e; }
.hero-platform .hero-platform-name::after { content: none; }
.hero-scene-note { letter-spacing: 1px; color: #727367; }

.service-rail { position: relative; z-index: 18; background: #fbfaf6f5; border-block: 1px solid #dfdcd3; box-shadow: 0 5px 14px #34291006; backdrop-filter: blur(16px); }
.js .service-rail { position: sticky; top: var(--header-height); }
.service-rail-inner { display: flex; align-items: center; gap: 16px; min-height: 77px; }
.service-rail-track { display: flex; align-items: stretch; flex: 1; min-width: 0; gap: 0; overflow-x: auto; overflow-y: hidden; scrollbar-width: thin; scrollbar-color: #c4b7a6 transparent; overscroll-behavior-x: contain; scroll-padding-inline: 8px; }
.service-rail-track::-webkit-scrollbar { height: 3px; }
.service-rail-track::-webkit-scrollbar-thumb { background: #c4b7a6; border-radius: 3px; }
.service-rail-link { display: inline-flex; position: relative; align-items: center; flex: 0 0 auto; gap: 10px; min-height: 76px; padding: 17px 21px; color: #505647; font-size: 11px; font-weight: 500; white-space: nowrap; line-height: 1.4; transition: color .22s, background .25s; }
.service-rail-link:first-child { padding-left: 7px; }
.service-rail-link:last-child { padding-right: 7px; }
.service-rail-link + .service-rail-link::before { content: ""; position: absolute; left: 0; height: 22px; top: 50%; transform: translateY(-50%); width: 1px; background: #e4e1d8; }
.service-rail-link::after { content: ""; position: absolute; bottom: 4px; left: 16px; right: 16px; height: 2px; background: #f35a24; transform: scaleX(0); transform-origin: left; transition: transform .3s var(--home-ease); border-radius: 2px; }
.service-rail-link:first-child::after { left: 7px; }
.service-rail-link:last-child::after { right: 7px; }
.service-rail-link svg { width: 23px; height: 23px; flex: 0 0 23px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s var(--home-ease), color .25s; }
.service-rail-link:hover { color: #a33f1b; background: #faebdf60; }
.service-rail-link:hover svg { transform: translateY(-2px); }
.service-rail-link[aria-current="true"] { color: #20241d; font-weight: 600; }
.service-rail-link[aria-current="true"] svg { color: #e24c19; }
.service-rail-link[aria-current="true"]::after { transform: scaleX(1); }
.service-rail-link:focus-visible { outline-offset: -5px; border-radius: 5px; }
.service-rail-controls { display: flex; align-items: center; gap: 5px; flex: 0 0 auto; }
.service-rail-controls button { display: grid; place-items: center; width: 35px; height: 35px; border: 1px solid #dfdad0; border-radius: 50%; background: #fffdfa; color: #393a31; padding: 0; font-size: 22px; line-height: 1; box-shadow: 0 3px 9px #43321809; transition: background .2s, border-color .2s; }
.service-rail-controls button:hover:not(:disabled) { background: #fff0e6; border-color: #e6966f; }
.service-rail-controls button:disabled { opacity: .35; box-shadow: none; }
.service-rail-controls button:focus-visible { outline-offset: 2px; }
.svc-preview-shell { top: calc(var(--header-height) + var(--service-rail-height) + 22px); }
.platform-detail-title { scroll-margin-top: 20px; }
.platform-heading-row { --reveal-delay: 0ms; }
.motion-enabled .platform-select[data-reveal] { transition: opacity .7s var(--home-ease), transform .75s var(--home-ease), background .25s, border-color .25s, box-shadow .25s; transition-delay: var(--reveal-delay, 0ms), var(--reveal-delay, 0ms), 0s, 0s, 0s; }
.platform-detail[data-reveal] { --reveal-delay: 120ms; }
.svc-item[data-reveal] { transition: opacity .65s var(--home-ease), transform .75s var(--home-ease); transition-delay: var(--reveal-delay, 0ms); }
.motion-paused .hero-line > span, .motion-paused [data-hero-step], .motion-suspended .hero-line > span, .motion-suspended [data-hero-step] { opacity: 1 !important; transform: none !important; transition: none !important; }
.motion-paused .hero-platform-float, .motion-suspended .hero-platform-float { transform: none !important; transition: none !important; }
.motion-paused .hero-actions .button, .motion-paused .hero-actions .button > span[aria-hidden] { transform: none; translate: none; transition: none; }
.motion-paused .service-rail *, .motion-suspended .service-rail * { transition: none !important; }
.motion-paused .service-rail-link:hover svg { transform: none; }
.motion-paused [data-reveal], .motion-suspended [data-reveal] { opacity: 1; transform: none; clip-path: none; transition: none !important; }

@keyframes connector-travel { to { stroke-dashoffset: -110; } }
@keyframes ecosystem-point { 0%, 100% { opacity: .6; } 50% { opacity: 1; } }
@media (min-width: 1700px) {
  .hero-actions .button { font-size: 14px; padding-inline: 23px; }
  .service-rail-link { font-size: 12px; padding-inline: 24px; }
}
@media (max-width: 1190px) {
  .hero-actions { gap: 10px; }
  .hero-actions .button { font-size: 11px; padding-inline: 15px; gap: 16px; }
  .service-rail-inner { gap: 12px; }
  .service-rail-link { padding-inline: 17px; }
}
@media (max-width: 900px) {
  :root { --header-height: 81px; --service-rail-height: 70px; }
  .service-rail-inner { min-height: 68px; gap: 9px; }
  .service-rail-link { min-height: 67px; padding-block: 14px; }
  .hero-actions .button { min-height: 49px; font-size: 11px; }
  .hero-core { box-shadow: 0 0 0 7px #f8f7f0, 0 0 0 8px #ccd0bf, 0 12px 25px #9c603729; }
  .hero-core::after { inset: -16px; }
}
@media (max-width: 680px) {
  :root { --header-height: 76px; --service-rail-height: 66px; }
  .hero-actions { flex-wrap: wrap; gap: 10px; }
  .hero-actions .button { padding: 13px 16px; font-size: 11px; gap: 16px; }
  .hero-actions .button > span[aria-hidden] { font-size: 21px; }
  .hero-visual { margin-inline: auto; }
  .hero-reveal-enabled .hero-line > span { transition-duration: .7s; }
  .hero-reveal-enabled .hero-line:nth-child(2) > span { transition-delay: .15s; }
  .service-rail-inner { width: calc(100% - 26px); min-height: 64px; gap: 7px; }
  .service-rail-link { min-height: 63px; padding: 13px 16px; font-size: 11px; gap: 8px; }
  .service-rail-link svg { width: 21px; height: 21px; flex-basis: 21px; }
  .service-rail-link::after { bottom: 3px; }
  .service-rail-controls { gap: 2px; }
  .service-rail-controls button { width: 31px; height: 38px; border-radius: 5px; box-shadow: none; }
  .motion-enabled .platform-select[data-reveal], .svc-item[data-reveal] { transition-delay: 0ms; }
}
@media (max-width: 370px) {
  .hero-actions .button { padding-inline: 12px; font-size: 10px; gap: 12px; }
  .hero-actions { gap: 9px; }
  .service-rail-inner { width: calc(100% - 20px); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-line > span, [data-hero-step] { opacity: 1 !important; transform: none !important; transition: none !important; }
  .hero-platform-float, .service-rail-link:hover svg { transform: none !important; }
  .service-rail-track { scroll-behavior: auto; }
}
@media (forced-colors: active) {
  .service-rail { border-color: CanvasText; }
  .service-rail-link[aria-current="true"] { outline: 1px solid Highlight; outline-offset: -5px; }
  .service-rail-controls button { border-color: ButtonText; }
}

/* Reference-led portrait hero: live typography and floating platform cards. */
.portrait-hero { grid-template-columns: .82fr 1.18fr; gap: 20px; padding-top: 30px; padding-bottom: 0; overflow: hidden; }
.portrait-hero .hero-copy { padding: 25px 0 45px; z-index: 6; }
.portrait-hero h1 { font-size: clamp(64px, 8.2vw, 132px); line-height: .91; letter-spacing: -.065em; }
.portrait-hero .hero-line { padding-bottom: .09em; }
.portrait-hero .hero-line:last-child { overflow: visible; }
.portrait-hero .hero-description { max-width: 470px; font-size: clamp(15px,1.35vw,21px); line-height: 1.65; margin-top: 28px; }
.portrait-hero .hero-visual { align-self: end; }
.portrait-hero .hero-ecosystem { aspect-ratio: 1 / 1.04; }
.hero-portrait { position: absolute; inset: 0; z-index: 3; pointer-events: none; overflow: hidden; }
.hero-portrait img { position: absolute; height: 106%; width: auto; max-width: none; bottom: -2%; left: 50%; transform: translateX(-50%); }
.portrait-hero .hero-logo-layer { width: 16%; }
.portrait-hero .hero-logo-layer.is-wide { width: 19%; }
.portrait-hero .hero-platform-float { background: #fff; border-color: #e5e1d9; }
.portrait-hero .hero-halo-layer { inset: 10% 0; }
.portrait-hero .hero-scene-note { z-index: 5; right: 0; bottom: 5%; max-width: 115px; }
.portrait-hero .hero-orbit-rails { transform-origin: 50% 49%; animation: portrait-orbit 100s linear infinite; }
@keyframes portrait-orbit { to { transform: rotate(360deg); } }
@media (max-width: 1000px) and (min-width: 701px) {
  .portrait-hero { grid-template-columns: .85fr 1.15fr; gap: 8px; }
  .portrait-hero h1 { font-size: clamp(60px,8vw,82px); }
  .portrait-hero .hero-platform-float { min-height: 58px; padding: 8px 5px; gap: 5px; }
  .portrait-hero .hero-actions .button { font-size: 10px; padding-inline: 12px; }
}
@media (max-width: 700px) {
  .portrait-hero { display: flex; flex-direction: column; gap: 0; width: calc(100% - 36px); padding-top: 12px; padding-bottom: 22px; }
  .portrait-hero .hero-copy { order: 2; width: 100%; padding: 0; }
  .portrait-hero .eyebrow, .portrait-hero .hero-footnote { display: none; }
  .portrait-hero h1 { display: flex; flex-wrap: nowrap; gap: .22em; font-size: clamp(22px, 6.67vw, 42px); font-weight: 700; line-height: 1.16; letter-spacing: -.055em; white-space: nowrap; }
  .portrait-hero .hero-line { flex: 0 0 auto; overflow: visible; margin-bottom: 0; padding-bottom: 8px; }
  .portrait-hero .orange-word { color: var(--orange); }
  .portrait-hero .orange-word svg { height: 8px; bottom: -5px; stroke: var(--orange); }
  .portrait-hero .hero-description { max-width: none; font-size: 15px; line-height: 1.55; margin-top: 10px; }
  .portrait-hero .hero-actions { flex-direction: column; align-items: stretch; gap: 12px; margin-top: 20px; }
  .portrait-hero .hero-actions .button { width: 100%; min-height: 50px; justify-content: space-between; padding: 13px 17px; font-size: 14px; }
  .portrait-hero .hero-visual { order: 1; width: 100%; max-width: 530px; margin: 0 auto 6px; }
  .portrait-hero .hero-portrait { mask-image: linear-gradient(to bottom, #000 0%, #000 81%, transparent 100%); }
  .portrait-hero .hero-platform-float { min-height: 55px; padding: 8px 5px; gap: 5px; }
  .portrait-hero .hero-platform img { width: 28px; height: 27px; }
  .portrait-hero .hero-logo-layer.is-wide img { width: 50px; height: 24px; }
  .portrait-hero .hero-platform-name { font-size: 7px; }
  .portrait-hero .hero-scene-note { display: none; }
  .service-rail-inner { gap: 0; }
  .service-rail-track { flex-wrap: nowrap; }
  .service-rail-controls { display: none; }
}
@media (prefers-reduced-motion: reduce) { .portrait-hero .hero-orbit-rails { animation: none; } }
