/* Section 5 concepts, "From Chennai to the world". The globe scene is the cover; the content
   sits underneath and is revealed when the plane splits the cover open. */
@font-face { font-family: "IBM Plex Mono"; src: url(brandfonts/IBMPlexMono-600.woff2) format("woff2"); font-weight: 600; font-display: swap; }
.fx { --px: clamp(24px, 7vw, 120px); --bg: #17110E; --ink: #F1E9DE; --muted: #B3A392; --gold: #CDA85F; --deep: #7A5A16;
  position: relative; background: var(--bg); color: var(--ink); }
/* what the split reveals: light paper in Cinematic and Story, dark in Minimal and Network */
.fx[data-c="c1"], .fx[data-c="c4"] { --ubg: #FAFAF8; --uink: #17110E; --umuted: #5F5A55; --uacc: #7A5A16; --urule: rgba(23,17,14,.14); }
.fx[data-c="c3"] { --ubg: #FFFFFF; --uink: #17110E; --umuted: #5F5A55; --uacc: #7A5A16; --urule: rgba(23,17,14,.12); }
.fx[data-c="c2"] { --ubg: #120D0B; --uink: #F1E9DE; --umuted: #B3A392; --uacc: #CDA85F; --urule: rgba(205,168,95,.22); }
.fx-head { max-width: 1400px; margin: 0 auto; padding: clamp(110px, calc(var(--vh, 1vh) * 16), 180px) var(--px) clamp(20px, calc(var(--vh, 1vh) * 4), 40px); display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 20px 48px; align-items: end; }
.fx-head h2 { margin: 0; font: 700 clamp(2.4rem, 5vw, 4.6rem)/1.02 var(--serif); letter-spacing: -0.03em; max-width: 11em; }
.fx-intro { margin: 0 0 10px; color: var(--muted); font-size: clamp(1rem, 1.2vw, 1.125rem); max-width: 32em; }
.fx-where { margin: 0; color: var(--gold); font-weight: 600; }

.fx-track { position: relative; height: calc(var(--vh, 1vh) * 270); height: calc(var(--svh, 1svh) * 270); }
.fx-stage { position: sticky; top: 0; height: calc(var(--vh, 1vh) * 100); height: calc(var(--svh, 1svh) * 100); overflow: hidden; isolation: isolate; }
.fx-under { position: absolute; inset: 0; z-index: 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(90px, 14vw, 220px); align-items: center;
  padding: calc(var(--vh, 1vh) * 10) var(--px); background: var(--ubg); color: var(--uink); }
.fx-under::before { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: -1;
  background-image: linear-gradient(var(--urule) 1px, transparent 1px), linear-gradient(90deg, var(--urule) 1px, transparent 1px); background-size: 64px 64px; opacity: .45;
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, #000 20%, transparent 100%); mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, #000 20%, transparent 100%); }
.fx-half { max-width: 520px; width: 100%; }
.fx-l { justify-self: end; text-align: right; } .fx-r { justify-self: start; }
.fx-tri, .fx-disc, .fx-countries { list-style: none; margin: 0; padding: 0; }
.fx-tri { display: grid; gap: clamp(22px, calc(var(--vh, 1vh) * 4), 40px); }
.fx-tri li, .fx-disc li { display: flex; flex-direction: column; gap: 6px; opacity: 0; transition: opacity .7s var(--ease), transform .8s var(--ease); }
.fx-l li { transform: translateX(40px); } .fx-r li { transform: translateX(-40px); }
.fx-tri li.on, .fx-disc li.on { opacity: 1; transform: none; }
.fx-tri b { font: 700 clamp(1.8rem, 3vw, 2.8rem)/1.05 var(--serif); letter-spacing: -0.02em; color: var(--uacc); }
.fx-tri span { font-size: clamp(1rem, 1.2vw, 1.125rem); }
.fx-disc { display: grid; gap: clamp(16px, calc(var(--vh, 1vh) * 3), 28px); }
.fx-disc b { font: 700 1.25rem/1.2 var(--serif); }
.fx-disc span { color: var(--umuted); font-size: .9375rem; max-width: 30em; }
.fx-cover { position: absolute; inset: 0; z-index: 2; background: var(--bg); }
/* smoke haze over the revealed page: thick at take-off, gone after half a screen of scroll (opacity set by the script) */
.fx-haze { position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0;
  background: radial-gradient(ellipse 45% 40% at 50% 92%, #FFFFFF, transparent 70%), radial-gradient(ellipse 40% 45% at 28% 62%, rgba(250,249,246,.96), transparent 70%),
    radial-gradient(ellipse 40% 45% at 72% 55%, rgba(246,244,240,.96), transparent 70%), radial-gradient(ellipse 50% 40% at 50% 30%, rgba(248,247,244,.9), transparent 70%), rgba(252,251,249,.6); }
.fx-cover canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.fx-cr { clip-path: inset(0 0 0 100%); }
.fx-fly { position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; pointer-events: none; }
.fx-cue { position: absolute; z-index: 4; left: 50%; bottom: calc(var(--vh, 1vh) * 5); margin: 0; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 10px;
  font: 600 .78rem/1 "IBM Plex Mono", monospace; color: var(--muted); opacity: 0; transition: opacity .5s var(--ease); pointer-events: none; }
.fx-cue::after { content: ""; width: 1px; height: 26px; background: linear-gradient(var(--gold), transparent); animation: cue 1.8s var(--ease) infinite; }
@keyframes cue { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }
.fx-cue.on { opacity: 1; }

/* Minimal: no lines on the revealed grid, thinner type */
.fx[data-c="c2"] .fx-under::before { display: none; }
.fx[data-c="c2"] .fx-tri b { font-size: clamp(1.5rem, 2.4vw, 2.2rem); }
/* Network: content as panels joined to the flight path; each has its own label */
.fx[data-c="c3"] .fx-tri li, .fx[data-c="c3"] .fx-disc li { position: relative; isolation: isolate; overflow: hidden; padding: 16px 20px; border: 1px solid rgba(169,133,61,.3); border-radius: 12px; background: #FFFFFF;
  box-shadow: 0 1px 0 rgba(23,17,14,.04); transition: opacity .7s var(--ease), transform .5s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease); cursor: default; }
.fx[data-c="c3"] .fx-tri b { font-size: clamp(1.4rem, 2.2vw, 2rem); }
.fx[data-c="c3"] li[data-tag]::before { content: attr(data-tag); display: block; margin-bottom: 4px; font: 600 .7rem/1.2 "IBM Plex Mono", monospace; color: #7A5A16; letter-spacing: .02em; transition: color .3s var(--ease), letter-spacing .4s var(--ease); }
.fx[data-c="c3"] .fx-tri li::after, .fx[data-c="c3"] .fx-disc li::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(100deg, transparent 30%, rgba(205,168,95,.2) 50%, transparent 70%); transform: translateX(-110%); transition: transform .9s var(--ease); }
@media (hover: hover) {
  .fx[data-c="c3"] .fx-l li.on:hover { transform: translateX(10px); } .fx[data-c="c3"] .fx-r li.on:hover { transform: translateX(-10px); }
  .fx[data-c="c3"] .fx-under li.on:hover { border-color: #A9853D; box-shadow: 0 16px 36px rgba(23,17,14,.09); }
  .fx[data-c="c3"] .fx-under li.on:hover::after { transform: translateX(110%); }
  .fx[data-c="c3"] .fx-under li.on:hover::before { color: #A9853D; letter-spacing: .08em; }
}

/* after the split: numbers, countries and the call to action */
.fx-end { position: relative; padding: clamp(70px, calc(var(--vh, 1vh) * 11), 120px) var(--px) clamp(110px, calc(var(--vh, 1vh) * 16), 170px); background: linear-gradient(transparent var(--tuck, 0px), var(--ubg) var(--tuck, 0px)); color: var(--uink); }
.fx-endin { max-width: 1100px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: clamp(28px, calc(var(--vh, 1vh) * 5), 48px); text-align: center; }
.fx-nums { margin: 0; display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 10px 34px; color: var(--umuted); }
.fx-nums b { font: 700 clamp(2rem, 3.2vw, 3rem)/1 var(--serif); color: var(--uink); margin-right: 6px; font-variant-numeric: tabular-nums; }
.fx-nums span:last-child b { margin: 0 0 0 6px; }
.fx-countries { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.fx-countries li { display: inline-flex; gap: 8px; align-items: baseline; padding: 7px 13px; border: 1px solid var(--urule); border-radius: 99px; font-size: .9rem; }
.fx-countries em { font: 600 .75rem/1 "IBM Plex Mono", monospace; font-style: normal; color: var(--uacc); transition: color .3s var(--ease); }
.fx-countries li { position: relative; isolation: isolate; overflow: hidden; transition: color .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease); }
.fx-countries li::before { content: ""; position: absolute; inset: 0; z-index: -1; background: #CDA85F; transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease); }
/* hover (11 Oct): alternate gold and black fills; the chip itself never moves (a shadow lifts it), so no flicker */
.fx-countries li:nth-child(even)::before { background: #17110E; }
@media (hover: hover) {
  .fx-countries li:hover { border-color: #CDA85F; box-shadow: 0 8px 18px rgba(23,17,14,.16); } .fx-countries li:hover::before { transform: scaleX(1); }
  .fx-countries li:nth-child(odd):hover, .fx-countries li:nth-child(odd):hover em { color: #17110E; }
  .fx-countries li:nth-child(even):hover { color: #F1E9DE; border-color: #17110E; } .fx-countries li:nth-child(even):hover em { color: #CDA85F; }
}
.fx-cta { position: relative; }
.fx-cta .btn { position: relative; z-index: 1; }
.fx[data-c="c1"] .fx-cta .btn-gold, .fx[data-c="c4"] .fx-cta .btn-gold { border: 1px solid #B08D45; }
.fx[data-c="c1"] .fx-cta .btn-gold::before, .fx[data-c="c4"] .fx-cta .btn-gold::before { background: #17110E; }
@media (hover: hover) { .fx[data-c="c1"] .fx-cta .btn-gold:hover, .fx[data-c="c4"] .fx-cta .btn-gold:hover { color: #CDA85F; } }
.fx-cta.landed .btn { box-shadow: 0 0 0 6px rgba(205,168,95,.22), 0 0 40px rgba(205,168,95,.45); transition: box-shadow .6s var(--ease); }

/* the descending flight path: Story design on desktop, every design on phones */
.fx-path { position: absolute; z-index: 2; left: 50%; width: 2px; margin-left: -1px; pointer-events: none; clip-path: inset(0 -60px -40px -60px); }   /* cuts the plane's trail off above the start of the path */
.fx-path[hidden] { display: none; }
.fx-line, .fx-done { position: absolute; inset: 0; }
.fx-line { background: repeating-linear-gradient(to bottom, var(--urule) 0 6px, transparent 6px 12px); }
.fx-done { background: var(--gold); transform: scaleY(0); transform-origin: top; box-shadow: 0 0 10px rgba(205,168,95,.5); }
.fx-pl { position: sticky; top: calc(var(--vh, 1vh) * 58); display: block; width: 30px; height: 30px; margin-left: -14px; color: var(--gold); }
.fx-pl svg { position: relative; width: 100%; height: 100%; fill: currentColor; filter: drop-shadow(0 0 8px rgba(205,168,95,.6)); }
/* 11 Nov 2026: the gold line is the plane's own trail, so the browser moves both together. It used to be a separate line
   that a script stretched on scroll, which fell a frame or more behind the pinned plane on phones during fast swipes. */
.fx-pl::before { content: ""; position: absolute; left: 14px; bottom: 50%; width: 2px; height: var(--pl, 3000px); background: var(--gold); box-shadow: 0 0 10px rgba(205,168,95,.5); }
@media (prefers-reduced-motion: no-preference) { .fx-done { display: none; } }
.fx[data-c="c4"] .fx-endin { display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(90px, 14vw, 200px); row-gap: clamp(60px, calc(var(--vh, 1vh) * 12), 120px); text-align: left; }
.fx[data-c="c4"] .fx-nums { justify-content: flex-end; text-align: right; }
.fx[data-c="c4"] .fx-countries { justify-content: flex-start; grid-column: 2; }
.fx[data-c="c4"] .fx-cta { grid-column: 1 / -1; justify-self: center; }
.fx[data-c="c4"] [data-stop] { opacity: .25; transition: opacity .6s var(--ease); }
.fx[data-c="c4"] [data-stop].on { opacity: 1; }

/* ---------- phones and reduced motion: stacked, with the plane descending a flight path ---------- */
/* short laptop windows: keep the revealed cards inside the pinned screen */
@media (min-width: 861px) and (max-height: 760px) {
  .fx-under { padding-top: calc(var(--vh, 1vh) * 4); padding-bottom: calc(var(--vh, 1vh) * 4); }
  .fx[data-c="c3"] .fx-tri li, .fx[data-c="c3"] .fx-disc li { padding: 10px 16px; }
  .fx-tri { gap: 10px; } .fx-disc { gap: 10px; }
}
@media (max-width: 860px), (prefers-reduced-motion: reduce) {
  .fx-head { grid-template-columns: 1fr; }
  .fx-track { height: auto; }
  .fx-stage { position: relative; height: auto; overflow: visible; display: flex; flex-direction: column; }
  .fx-cl { order: -1; }   /* the globe first, then the content and its flight path */
  .fx-cover { position: relative; height: min(100vw, 520px); }
  .fx-cr, .fx-fly, .fx-cue, .fx-haze { display: none; }
  .fx-under { position: relative; grid-template-columns: 1fr; row-gap: 40px; padding: 56px 24px 20px 58px; }
  .fx-l, .fx-r { justify-self: stretch; text-align: left; }
  .fx-l li, .fx-r li { transform: translateX(14px); }
  .fx-end { padding: 40px 24px 120px 58px; }
  .fx-endin, .fx[data-c="c4"] .fx-endin { display: flex; align-items: flex-start; text-align: left; }
  .fx-nums, .fx[data-c="c4"] .fx-nums, .fx-countries { justify-content: flex-start; text-align: left; }
  .fx[data-c="c4"] .fx-cta { justify-self: auto; }
  .fx-path { left: 30px; }
  [data-stop] { opacity: .3; transition: opacity .6s var(--ease); } [data-stop].on { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) { .fx-tri li, .fx-disc li { opacity: 1; transform: none; } [data-stop] { opacity: 1; } .fx-pl { display: none; } .fx-done { transform: none; } }
/* the button is never faded; it only lights up when the plane lands on it */
.fx-cta[data-stop], .fx[data-c="c4"] .fx-cta[data-stop] { opacity: 1; }
/* review pages only: where section 6 will start */
.next-ph { display: grid; place-items: center; min-height: calc(var(--vh, 1vh) * 60); background: #17110E; color: #8A7A69; font: 600 .85rem/1 "IBM Plex Mono", monospace; border-top: 1px solid rgba(205,168,95,.2); }
