/*
Theme Name: glotal — Coming Soon
Theme URI: https://glotal.co/
Author: Aizle
Description: A focused, animated holding page for the Global Talent Exchange Initiative.
Version: 1.0.1
Requires at least: 6.6
Requires PHP: 8.0
Text Domain: glotal-coming-soon
*/

@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 400 700; font-display: swap; src: url('assets/fonts/dm-sans-latin.woff2') format('woff2'); }
@font-face { font-family: 'Instrument Serif'; font-style: normal; font-weight: 400; font-display: swap; src: url('assets/fonts/instrument-serif-latin.woff2') format('woff2'); }
@font-face { font-family: 'Instrument Serif'; font-style: italic; font-weight: 400; font-display: swap; src: url('assets/fonts/instrument-serif-italic-latin.woff2') format('woff2'); }

:root {
  --ink: #071721;
  --ink-soft: #102633;
  --paper: #f2f3eb;
  --muted: #aebbb9;
  --lime: #d9f77b;
  --aqua: #7ad7cf;
  --line: rgba(230, 242, 230, .18);
  --sans: 'DM Sans', 'Helvetica Neue', sans-serif;
  --serif: 'Instrument Serif', Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--paper); background: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
body::selection { color: var(--ink); background: var(--lime); }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 6px; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.screen-reader-text:focus { clip: auto; width: auto; height: auto; margin: 0; padding: 12px 18px; background: var(--paper); color: var(--ink); z-index: 100; }
.glotal-site { position: relative; overflow: clip; min-height: 100vh; background: var(--ink); }
.glotal-site::before { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .19; z-index: 8; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.27'/%3E%3C/svg%3E"); }
.reading-line { position: fixed; inset: 0 auto auto 0; height: 3px; width: 0; z-index: 30; background: var(--lime); box-shadow: 0 0 18px rgba(217,247,123,.55); }
.topbar { position: absolute; z-index: 20; top: 0; left: 0; right: 0; display: flex; align-items: center; padding: 2rem max(4.5vw, 24px); }
.brand { display: inline-flex; align-items: center; gap: .2rem; width: fit-content; font-family: Arial, Helvetica, sans-serif; font-size: 1.33rem; font-weight: 700; letter-spacing: -.065em; line-height: 1; text-decoration: none; }
.brand-mark { flex: none; display: block; width: 30px; height: 30px; background: url('assets/glotal-mark-white-stroke.svg') center / contain no-repeat; }
.wordmark { display: inline-block; white-space: nowrap; }
h1, h2, h3, p { margin-top: 0; }

.section { position: relative; padding: clamp(6rem, 12vw, 12rem) max(4.5vw, 24px); }
.section::after { content: ''; display: block; clear: both; }
/* The opening story uses Patrick's supplied mark and scroll-linked colour. */
.story { --story-connect: 1; --story-target: 1; position: relative; color: var(--paper); background: #071721; }
.story-stage { position: relative; isolation: isolate; overflow: hidden; min-height: 780px; padding: 4.5rem max(3.8vw, 24px) 1.6rem; background: radial-gradient(circle at 28% 48%, #164e72 0, #0a2c46 38%, #061727 80%); }
.story-stage::before, .story-stage::after { content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.story-stage::before { opacity: var(--story-teal, 0); background: radial-gradient(circle at 28% 45%, rgba(43,239,189,.46), transparent 33%), linear-gradient(110deg, #087e6d 0, #075c68 52%, #092b47 100%); }
.story-stage::after { opacity: var(--story-violet, 0); background: radial-gradient(circle at 28% 45%, rgba(177,121,255,.46), transparent 34%), linear-gradient(110deg, #443ea1 0, #2c3e8d 51%, #13254f 100%); }
.story-foot { position: relative; z-index: 2; display: flex; justify-content: space-between; align-items: center; gap: 1rem; color: rgba(225,245,235,.68); font-size: .68rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.story-layout { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); align-items: center; gap: clamp(1rem, 3vw, 3rem); max-width: 1700px; min-height: 580px; margin: auto; transform: translateY(-4svh); }
.story-art { position: relative; justify-self: center; display: grid; place-items: center; width: min(100%, 760px); aspect-ratio: 1; isolation: isolate; }
.story-art__wash { position: absolute; inset: 3%; border-radius: 50%; background: radial-gradient(circle, rgba(217,247,123,.28) 0, rgba(76,213,195,.19) 28%, rgba(58,118,164,.10) 47%, transparent 69%); filter: blur(3px); transform: scale(calc(.85 + var(--story-progress, 0) * .28)); }
.story-art__orbit { position: absolute; border: 1px solid rgba(172,236,221,.22); border-radius: 50%; }
.story-art__orbit--outer { inset: 0; border-style: dashed; opacity: .8; transform: rotate(calc(var(--story-progress, 0) * 100deg)); }
.story-art__orbit--inner { inset: 18%; border-color: rgba(217,247,123,.4); box-shadow: 0 0 0 23px rgba(133,229,202,.04), 0 0 75px rgba(141,241,207,.12); transform: rotate(calc(var(--story-progress, 0) * -130deg)); }
.story-art__connections { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 0 7px rgba(141,241,207,.55)); }
.story-art__connections path { stroke: #a0e7d6; stroke-width: 1.7; stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--story-connect, 0)); opacity: .85; }
.story-art__connections circle { fill: var(--lime); opacity: var(--story-connect, 0); }
.story-art__mark { position: relative; z-index: 1; display: block; width: 70%; aspect-ratio: 1; background: url('assets/glotal-mark-white-stroke.svg') center / contain no-repeat; filter: drop-shadow(0 0 16px rgba(217,247,123,.55)) drop-shadow(0 0 55px rgba(112,228,216,.26)); transform: rotate(calc(var(--story-progress, 0) * 360deg)) scale(calc(.92 + var(--story-progress, 0) * .14)); }
.story-art__label { position: absolute; z-index: 2; padding: .52rem .8rem; color: #e4fbef; background: rgba(8,31,42,.85); border: 1px solid rgba(172,236,221,.46); border-radius: 2rem; font-size: .69rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; white-space: nowrap; box-shadow: 0 8px 25px rgba(0,0,0,.18); }
/* Label anchors match the six SVG node coordinates in the 600 × 600 viewBox. */
.story-art__label--one { left: 49.667%; top: 12%; transform: translate(-50%, calc(-100% - 10px)); }
.story-art__label--two { left: 81.833%; top: 30%; transform: translate(-50%, calc(-100% - 10px)); }
.story-art__label--three { left: 83.667%; top: 69.333%; transform: translate(-50%, 10px); }
.story-art__label--four { left: 50%; top: 88%; transform: translate(-50%, 10px); }
.story-art__label--five { left: 17.167%; top: 69.833%; transform: translate(-50%, 10px); }
.story-art__label--six { left: 18%; top: 29.5%; transform: translate(-50%, calc(-100% - 10px)); }
.story.is-enhanced .story-art__label--one { animation: lozenge-intro .7s .15s both; }
.story.is-enhanced .story-art__label--two,
.story.is-enhanced .story-art__label--three,
.story.is-enhanced .story-art__label--four,
.story.is-enhanced .story-art__label--five,
.story.is-enhanced .story-art__label--six { opacity: 0; }
.story-scenes { position: relative; max-width: 760px; }
.story-scene { max-width: 700px; padding: 3rem 0; }
.story-scene + .story-scene { margin-top: 5rem; }
.story-scene__kicker { margin: 0 0 1.4rem; color: var(--aqua); font-size: .71rem !important; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; }
.story-scene h1, .story-scene h2 { max-width: 10ch; margin: 0 0 1.7rem; color: #f5f7ef; font-size: clamp(4rem, 7.5vw, 9rem); font-weight: 500; line-height: .91; letter-spacing: -.085em; text-wrap: balance; }
.story-scene h1 em, .story-scene h2 em { display: block; color: var(--lime); font-family: var(--serif); font-weight: 400; letter-spacing: -.045em; }
.story-scene > p:last-child { max-width: 33rem; margin: 0; color: rgba(242,250,242,.75); font-size: clamp(1.12rem, 1.55vw, 1.38rem); line-height: 1.56; }
.story-scene:first-child > p:last-child { color: #effdbf; font-size: clamp(1.5rem, 2.2vw, 2.25rem); letter-spacing: -.03em; }
.story-scene--target h2 { white-space: nowrap; font-size: clamp(3.6rem, 6vw, 7.2rem); }
.story-target-number { display: block; color: #f5f7ef; font-variant-numeric: tabular-nums lining-nums; letter-spacing: -.105em; }
.story-scene--target h2 em { margin-top: .3rem; }
.story-foot { margin-top: 1rem; padding-top: 1.1rem; border-top: 1px solid rgba(200,243,221,.23); font-size: .6rem; }
.story.is-enhanced { --story-connect: 0; --story-target: 0; height: 310svh; }
.story.is-enhanced .story-stage { position: sticky; top: 0; display: flex; flex-direction: column; height: 100svh; min-height: 0; }
.story.is-enhanced .story-layout { width: 100%; min-height: 0; flex: 1; }
.story.is-enhanced .story-scenes { align-self: stretch; width: 100%; }
.story.is-enhanced .story-scene { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; width: 100%; margin: 0; padding: 0; opacity: 0; pointer-events: none; }
.story.is-enhanced .story-scene:first-child { opacity: 1; }
.horizon { min-height: 860px; display: flex; flex-direction: column; justify-content: center; background: radial-gradient(ellipse at 82% 78%, rgba(33,99,97,.25), transparent 45%), #0a1c26; }
.horizon::before { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, transparent 49.9%, rgba(200,240,222,.055) 50%, transparent 50.1%); }
.horizon-content { max-width: 1000px; position: relative; z-index: 2; }
.horizon h2 { max-width: 11ch; margin: 0; font-size: clamp(4.2rem, 7.7vw, 9rem); font-weight: 500; line-height: .93; letter-spacing: -.09em; text-wrap: balance; }
.horizon h2 em { color: var(--lime); }
.horizon-copy { max-width: 37rem; margin: 2.6rem 0 0; color: rgba(242,243,235,.67); font-size: clamp(1.08rem, 1.5vw, 1.37rem); line-height: 1.7; }
.horizon-badge { position: absolute; z-index: 1; right: max(7vw, 20px); bottom: 23%; display: grid; place-items: center; width: clamp(170px, 19vw, 280px); aspect-ratio: 1; border: 1px solid rgba(217,247,123,.45); border-radius: 50%; color: var(--lime); font-family: var(--serif); font-size: clamp(2rem, 2.8vw, 3.25rem); font-style: italic; text-align: center; transform: rotate(12deg); animation: float 8s ease-in-out infinite; }
.horizon-badge::before, .horizon-badge::after { content: ''; position: absolute; inset: 11px; border: 1px dashed rgba(217,247,123,.25); border-radius: 50%; }
.horizon-badge::after { inset: -10px; border-style: solid; opacity: .13; }
.horizon-foot { display: flex; justify-content: space-between; align-items: end; gap: 2rem; margin-top: clamp(7rem, 15vw, 15rem); padding-top: 1.5rem; border-top: 1px solid var(--line); }
.horizon-foot .brand { font-size: 1.7rem; }
.horizon-foot p { margin: 0; color: rgba(242,243,235,.47); font-size: .72rem; line-height: 1.6; text-align: right; letter-spacing: .06em; }
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .9s ease, transform .9s cubic-bezier(.2,.7,.1,1); }
.reveal.is-visible { opacity: 1; transform: none; }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(12deg); } 50% { transform: translateY(-17px) rotate(8deg); } }
@keyframes lozenge-intro { 0% { opacity: 0; scale: .78; } 68% { opacity: 1; scale: 1.2; } 100% { opacity: 1; scale: 1; } }

@media (max-width: 1000px) {
  .story-layout { gap: 1rem; }
  .story-scene h1, .story-scene h2 { font-size: clamp(3.5rem, 7.4vw, 6rem); }
  .story-scene--target h2 { font-size: clamp(3.1rem, 6vw, 5.2rem); }
}
@media (min-width: 701px) and (max-width: 900px) and (min-height: 760px) {
  .story-layout { grid-template-columns: 1fr; gap: 0; transform: none; }
  .story.is-enhanced .story-layout { grid-template-rows: minmax(0, 1.13fr) minmax(0, .87fr); }
  .story-art { width: min(45svh, 74vw, 470px); }
  .story-scenes { width: 100%; max-width: none; text-align: center; }
  .story-scene { margin-inline: auto; }
  .story-scene h1, .story-scene h2, .story-scene > p:last-child { margin-left: auto; margin-right: auto; }
  .story.is-enhanced .story-scene { align-items: center; }
}
@media (max-width: 700px) {
  .topbar { padding: 1.25rem 1.15rem; }
  .brand { font-size: 1.28rem; }
  .brand-mark { width: 27px; height: 27px; }
  .section { padding: 6rem 1.35rem; }
  .story-stage { min-height: 0; padding: 4rem 1.15rem 1.15rem; }
  .story-layout { grid-template-columns: 1fr; gap: 0; transform: none; }
  .story-art { width: min(88vw, 360px); }
  .story-art__label { padding: .4rem .57rem; font-size: .53rem; letter-spacing: .1em; }
  .story-scenes { width: 100%; text-align: center; }
  .story-scene { padding: 2.5rem 0 4rem; }
  .story-scene + .story-scene { margin-top: 0; }
  .story-scene h1, .story-scene h2, .story-scene > p:last-child { margin-left: auto; margin-right: auto; }
  .story-scene h1, .story-scene h2 { max-width: 12ch; margin-bottom: 1.15rem; font-size: clamp(3.05rem, 12.4vw, 5.8rem); }
  .story-scene--target h2 { font-size: clamp(2.6rem, 10.8vw, 4.8rem); }
  .story-scene__kicker { margin-bottom: .9rem; font-size: .58rem !important; }
  .story-scene > p:last-child { font-size: 1rem; }
  .story-scene:first-child > p:last-child { font-size: clamp(1.3rem, 5.4vw, 1.8rem); }
  .story-foot { font-size: .5rem; letter-spacing: .1em; }
  .story.is-enhanced { height: 310svh; }
  .story.is-enhanced .story-layout { grid-template-rows: minmax(0, .97fr) minmax(0, 1.03fr); }
  .story.is-enhanced .story-art { width: min(43svh, 88vw, 360px); }
  .story.is-enhanced .story-scenes { align-self: stretch; }
  .story.is-enhanced .story-scene { align-items: center; justify-content: flex-start; padding-top: min(2.4svh, 1.1rem); }
  .horizon h2 { font-size: clamp(4.1rem, 13.5vw, 6.7rem); }
  .horizon { min-height: 760px; justify-content: flex-start; }
  .horizon-content { align-self: center; text-align: center; }
  .horizon h2 { margin-inline: auto; }
  .horizon-copy { margin: 2rem auto 0; font-size: 1.05rem; }
  .horizon-badge { position: relative; align-self: center; right: auto; bottom: auto; width: 166px; margin: 3rem 0 0; }
  .horizon-foot { margin-top: 6rem; }
  .horizon-foot .brand { font-size: 1.4rem; }
  .horizon-foot p { font-size: .55rem; }
}
@media (max-width: 390px) {
  .story-scene h1, .story-scene h2 { font-size: clamp(2.9rem, 12vw, 4.5rem); }
  .story-scene--target h2 { font-size: clamp(2.35rem, 10.4vw, 3.8rem); }
  .horizon-foot { flex-direction: column; align-items: center; gap: 1rem; text-align: center; }
  .horizon-foot p { text-align: center; }
}
@media (max-height: 680px) and (max-width: 700px) {
  .story-stage { padding-top: 3.6rem; }
  .story.is-enhanced .story-layout { grid-template-rows: minmax(0, .9fr) minmax(0, 1.1fr); }
  .story.is-enhanced .story-art { width: min(33svh, 70vw, 245px); }
  .story-art__label { padding: .28rem .42rem; font-size: .47rem; }
  .story-art__label--one { transform: translate(-50%, calc(-100% - 4px)); }
  .story-scene h1, .story-scene h2 { font-size: clamp(2.55rem, 10.5vw, 3.5rem); }
  .story-scene--target h2 { font-size: clamp(2.2rem, 9.5vw, 3.3rem); }
  .story-scene > p:last-child { font-size: .88rem; }
  .story-foot { padding-top: .65rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
  .story-art__connections path { stroke-dashoffset: 0; }
  .story-art__connections circle, .story-art__label { opacity: 1; }
}
