/*
Theme Name:   SLSTE (Kadence child)
Theme URI:    https://sglk-techexco.org
Description:  Child theme for Sri Lanka – Singapore Tech EXCO. Light brand theme from the SLSTE logo, animated hero map, circuit-network background, counters, contact form and section patterns on top of Kadence.
Author:       SL SG Tech Exco Pte. Ltd.
Template:     kadence
Version:      1.1.0
Requires at least: 6.4
Requires PHP: 7.4
License:      GPL-2.0-or-later
Text Domain:  sglk
*/

/* =========================================================
   1. BRAND TOKENS — taken from the SLSTE logo
   Most colours follow Kadence's Global Palette
   (Appearance → Customize → Colors & Fonts), so changing the
   palette there re-colours the whole site.
   ========================================================= */
:root{
  --sglk-bg:      var(--global-palette8, #F3F7F8);   /* page background (logo background) */
  --sglk-panel:   var(--global-palette9, #FFFFFF);   /* cards and panels                   */
  --sglk-panel-2: var(--global-palette7, #E6EEF6);   /* alt panels                         */
  --sglk-text:    var(--global-palette3, #0C1D39);   /* navy — "SL" in the logo            */
  --sglk-text-2:  var(--global-palette4, #183C76);   /* blue — "ST" in the logo            */
  --sglk-muted:   var(--global-palette5, #4D5E7C);   /* secondary text                     */
  --sglk-blue:    var(--global-palette1, #0B74C4);   /* accent — circuit nodes             */
  --sglk-cyan:    var(--global-palette2, #0FB5C9);   /* accent 2 — circuit lines           */
  --sglk-gold:    #DEAB38;                           /* Sri Lanka lion (fills, dots)       */
  --sglk-gold-ink:#946A0C;                           /* gold for small text                */
  --sglk-red:     #E42B31;                           /* Singapore crescent                 */
  --sglk-on-accent: #FFFFFF;

  --sglk-line:        color-mix(in srgb, var(--sglk-text) 11%, transparent);
  --sglk-line-strong: color-mix(in srgb, var(--sglk-text) 22%, transparent);
  --sglk-land:        color-mix(in srgb, var(--sglk-text-2) 30%, transparent);
  --sglk-glow:        color-mix(in srgb, var(--sglk-cyan) 16%, transparent);
  --sglk-shadow:      0 1px 2px rgba(12,29,57,.04), 0 18px 40px -24px rgba(12,29,57,.28);

  --sglk-font-display: "Unbounded", "Segoe UI", system-ui, sans-serif;
  --sglk-font-body:    "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --sglk-max: 1200px;
  --sglk-pad: clamp(20px, 5vw, 56px);
  --sglk-r-lg: 20px;
  --sglk-r-md: 14px;
  --sglk-ease: cubic-bezier(.2,.8,.2,1);
}

/* =========================================================
   2. SECTION BASE
   ========================================================= */
.sglk-section, .sglk-section *, .sglk-section *::before, .sglk-section *::after{ box-sizing: border-box; }
.sglk-section .wp-block-group__inner-container{ display: contents; }
.sglk-section{
  position: relative; z-index: 1;
  background: transparent;           /* lets the circuit network show through */
  color: var(--sglk-text);
  font-family: var(--sglk-font-body);
  font-size: 17px; line-height: 1.6;
  padding: clamp(80px, 11vw, 140px) 0;
  border-top: 1px solid var(--sglk-line);
  margin-top: 0 !important; margin-bottom: 0 !important;
}
.sglk-has-net{ position: relative; isolation: isolate; background: var(--sglk-bg); }
.sglk-inner{ max-width: var(--sglk-max); margin-left: auto !important; margin-right: auto !important; padding-left: var(--sglk-pad); padding-right: var(--sglk-pad); }

.sglk-section h1, .sglk-section h2, .sglk-section h3{ font-family: var(--sglk-font-display); color: var(--sglk-text); margin: 0; letter-spacing: -.02em; line-height: 1.12; }
.sglk-section h2{ font-size: clamp(28px, 3.8vw, 46px); font-weight: 600; max-width: 22ch; }
.sglk-section h3{ font-size: clamp(17px, 1.6vw, 20px); font-weight: 600; letter-spacing: -.01em; line-height: 1.3; }
.sglk-section p{ margin: 0; }
.sglk-section ul{ margin: 0; padding: 0; }
.sglk-section a:not(.wp-block-button__link){ color: inherit; }
.sglk-section .wp-block-columns{ display: grid; gap: 20px; margin: 0; }
.sglk-section .wp-block-column{ min-width: 0; }
.sglk-section .wp-block-image{ margin: 0; }
.sglk-muted{ color: var(--sglk-muted); }
.sglk-num, .sglk-count{ font-family: var(--sglk-font-display); font-weight: 600; font-variant-numeric: tabular-nums; line-height: 1; }

/* Section heading row + animated circuit trace above every h2 */
.sglk-head{ display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(24px, 5vw, 80px); align-items: end; margin-bottom: clamp(48px, 7vw, 80px); }
.sglk-head p{ color: var(--sglk-muted); font-size: clamp(17px, 1.5vw, 19px); max-width: 52ch; }
.sglk-head h2{ position: relative; padding-top: 30px; }
.sglk-head h2::before{ content: ""; position: absolute; top: 0; left: 0; width: 120px; height: 2px; background: linear-gradient(90deg, var(--sglk-blue), var(--sglk-cyan), transparent); transform-origin: left; }
.sglk-head h2::after{ content: ""; position: absolute; top: -3px; left: 0; width: 8px; height: 8px; border-radius: 50%; background: var(--sglk-cyan); box-shadow: 0 0 0 4px var(--sglk-glow), 0 0 12px var(--sglk-cyan); }
.sglk-js .sglk-head h2::before{ transform: scaleX(0); transition: transform 1s .2s var(--sglk-ease); }
.sglk-js .sglk-head.is-in h2::before{ transform: scaleX(1); }
.sglk-js .sglk-head.is-in h2::after{ animation: sglk-trace 4s 1s var(--sglk-ease) infinite; }
@keyframes sglk-trace{ 0%{ transform: translateX(0); opacity: 1; } 45%{ transform: translateX(112px); opacity: 1; } 55%,100%{ transform: translateX(112px); opacity: 0; } }
.sglk-section h3.sglk-sub{ font-size: clamp(19px, 1.8vw, 22px); margin: clamp(64px, 8vw, 100px) 0 28px; }
@media (max-width: 860px){ .sglk-head{ grid-template-columns: 1fr; align-items: start; } }

/* Buttons: navy → blue like the logo lettering, with a light sweep */
.sglk-section .wp-block-buttons{ display: flex; flex-wrap: wrap; gap: 12px; }
.sglk-section .wp-block-button__link{
  position: relative; overflow: hidden; display: inline-block; isolation: isolate;
  border-radius: 999px; padding: 13px 24px; font: 600 15px var(--sglk-font-body); line-height: 1.3;
  background: linear-gradient(100deg, var(--sglk-text), var(--sglk-text-2) 45%, var(--sglk-blue)); background-size: 200% 100%; background-position: 0 0;
  color: var(--sglk-on-accent); border: none; text-decoration: none;
  box-shadow: 0 10px 24px -14px var(--sglk-blue);
  transition: background-position .6s var(--sglk-ease), box-shadow .3s, transform .2s;
}
.sglk-section .wp-block-button__link::after{ content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.45) 50%, transparent 70%); transform: translateX(-120%); }
.sglk-section .wp-block-button__link:hover{ background-position: 100% 0; box-shadow: 0 14px 30px -12px var(--sglk-blue), 0 0 0 4px var(--sglk-glow); transform: translateY(-1px); color: var(--sglk-on-accent); }
.sglk-section .wp-block-button__link:hover::after{ transition: transform .8s var(--sglk-ease); transform: translateX(120%); }
.sglk-section .is-style-outline .wp-block-button__link{ background: color-mix(in srgb, var(--sglk-panel) 70%, transparent); color: var(--sglk-text); border: 1px solid var(--sglk-line-strong); box-shadow: none; backdrop-filter: blur(6px); }
.sglk-section .is-style-outline .wp-block-button__link::after{ background: linear-gradient(110deg, transparent 30%, var(--sglk-glow) 50%, transparent 70%); }
.sglk-section .is-style-outline .wp-block-button__link:hover{ border-color: var(--sglk-cyan); color: var(--sglk-text); box-shadow: 0 0 0 4px var(--sglk-glow); }
.sglk-section .sglk-btn-sm .wp-block-button__link{ padding: 9px 16px; font-size: 14px; }

/* Card spotlight: follows the pointer (position set by the script) */
.sglk-card, .sglk-node, .sglk-office, .sglk-audiences > .wp-block-column, .sglk-quarters > .wp-block-column, .sglk-kpis > .wp-block-column{
  background-image: radial-gradient(420px circle at var(--mx, -999px) var(--my, -999px), var(--sglk-glow), transparent 55%);
  transition: border-color .3s, box-shadow .3s;
}
.sglk-card:hover, .sglk-node:hover, .sglk-office:hover, .sglk-audiences > .wp-block-column:hover{ border-color: color-mix(in srgb, var(--sglk-cyan) 55%, transparent); box-shadow: var(--sglk-shadow), 0 0 0 4px var(--sglk-glow); }

/* =========================================================
   3. HERO
   ========================================================= */
.sglk-section.sglk-hero{ position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; overflow: hidden; padding: 120px 0 64px; border-top: 0; }
/* moving perspective grid */
.sglk-hero::before{ content: ""; position: absolute; left: -10%; right: -10%; bottom: -10%; height: 55%; z-index: 0; pointer-events: none;
  background-image: linear-gradient(var(--sglk-line) 1px, transparent 1px), linear-gradient(90deg, var(--sglk-line) 1px, transparent 1px);
  background-size: 56px 56px; transform: perspective(600px) rotateX(62deg); transform-origin: bottom;
  -webkit-mask-image: linear-gradient(to top, #000 10%, transparent 85%); mask-image: linear-gradient(to top, #000 10%, transparent 85%);
  animation: sglk-grid 6s linear infinite; }
@keyframes sglk-grid{ to{ background-position: 0 56px, 0 0; } }
.sglk-hero::after{ content: ""; position: absolute; inset: auto 0 0 0; height: 18%; background: linear-gradient(to top, var(--sglk-bg), transparent); pointer-events: none; z-index: 1; }
.sglk-map{ position: absolute; inset: 0; z-index: 1; }
.sglk-map canvas{ width: 100%; height: 100%; display: block; }
.sglk-hero .sglk-inner{ position: relative; z-index: 2; width: 100%; }
.sglk-hero-text{ max-width: min(600px, 46%); }
.sglk-route{ display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px; border: 1px solid var(--sglk-line-strong); border-radius: 999px; font-size: 14px; color: var(--sglk-muted); margin-bottom: 24px !important; background: color-mix(in srgb, var(--sglk-panel) 75%, transparent); backdrop-filter: blur(6px); }
.sglk-route::before, .sglk-route::after{ content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--sglk-red); animation: sglk-ping 2.2s ease-out infinite; }
.sglk-route::after{ background: var(--sglk-gold); animation-delay: 1.1s; }
@keyframes sglk-ping{ 0%{ box-shadow: 0 0 0 0 rgba(15,181,201,.55); } 100%{ box-shadow: 0 0 0 9px rgba(15,181,201,0); } }
.sglk-hero h1{ font-weight: 800; font-size: clamp(30px, 3.4vw, 48px); line-height: 1.08; letter-spacing: -.025em;
  background: linear-gradient(100deg, var(--sglk-text) 0%, var(--sglk-text) 40%, var(--sglk-text-2) 50%, var(--sglk-text) 60%, var(--sglk-text) 100%); background-size: 250% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent; }
.sglk-loaded .sglk-hero h1{ animation: sglk-sheen 6s 2.5s ease-in-out infinite; }
@keyframes sglk-sheen{ 0%{ background-position: 100% 0; } 50%,100%{ background-position: 0 0; } }
.sglk-hero .sglk-intro{ margin-top: 22px; max-width: 48ch; color: var(--sglk-muted); font-size: clamp(16px, 1.4vw, 19px); }
.sglk-hero .wp-block-buttons{ margin-top: 30px; }
.sglk-hero .wp-block-button:not(.is-style-outline) .wp-block-button__link{ animation: sglk-halo 3s 3s ease-out infinite; }
@keyframes sglk-halo{ 0%{ box-shadow: 0 10px 24px -14px var(--sglk-blue), 0 0 0 0 color-mix(in srgb, var(--sglk-blue) 35%, transparent); } 70%,100%{ box-shadow: 0 10px 24px -14px var(--sglk-blue), 0 0 0 12px color-mix(in srgb, var(--sglk-blue) 0%, transparent); } }
.sglk-hero-stats{ display: flex; gap: clamp(20px, 3vw, 40px); margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--sglk-line); }
.sglk-hero-stats .sglk-count{ font-size: clamp(26px, 2.6vw, 36px); background: linear-gradient(90deg, var(--sglk-text-2), var(--sglk-blue)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sglk-hero-stats .sglk-label{ font-size: 14px; color: var(--sglk-muted); margin-top: 8px; max-width: 14ch; line-height: 1.35; }
@media (max-width: 900px){
  .sglk-section.sglk-hero{ display: block; min-height: 0; padding: calc(110px + 62vw) 0 64px; }
  .sglk-hero::after{ display: none; }
  .sglk-hero-text{ max-width: none; }
}

/* Page-load sequence (front end only — .sglk-js is added by the script) */
.sglk-js .sglk-hero-text > *, .sglk-js .sglk-hero-text > .wp-block-group__inner-container > *{ opacity: 0; transform: translateY(18px); filter: blur(6px); transition: opacity .9s ease, transform .9s var(--sglk-ease), filter .9s ease; }
.sglk-js .sglk-hero-text .wp-block-heading{ transition-delay: .12s; }
.sglk-js .sglk-hero-text .sglk-intro{ transition-delay: .3s; }
.sglk-js .sglk-hero-text .wp-block-buttons{ transition-delay: .45s; }
.sglk-js .sglk-hero-text .sglk-hero-stats{ transition-delay: .6s; }
.sglk-loaded .sglk-hero-text > *, .sglk-loaded .sglk-hero-text > .wp-block-group__inner-container > *{ opacity: 1; transform: none; filter: none; }

/* =========================================================
   4. ABOUT
   ========================================================= */
.sglk-about-grid{ grid-template-columns: 1fr 1.15fr; gap: clamp(32px, 5vw, 72px) !important; align-items: start; }
.sglk-photo{ position: relative; border: 1px solid var(--sglk-line); border-radius: var(--sglk-r-lg); background: var(--sglk-panel); overflow: hidden; box-shadow: var(--sglk-shadow); }
.sglk-photo img{ width: 100%; height: auto; display: block; }
.sglk-photo figcaption{ margin: 0 !important; padding: 14px 18px; font-size: 14px; color: var(--sglk-muted); text-align: left; }
.sglk-photo::after{ content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,.55) 50%, transparent 65%); transform: translateX(-110%); }
.sglk-js .sglk-photo.is-in::after{ transition: transform 1.4s .5s var(--sglk-ease); transform: translateX(110%); }
/* corner brackets — "viewfinder" frame */
.sglk-photo::before{ content: ""; position: absolute; inset: 12px; z-index: 1; pointer-events: none; border-radius: 10px;
  background: linear-gradient(var(--sglk-cyan), var(--sglk-cyan)) top left/22px 2px, linear-gradient(var(--sglk-cyan), var(--sglk-cyan)) top left/2px 22px,
              linear-gradient(var(--sglk-cyan), var(--sglk-cyan)) top right/22px 2px, linear-gradient(var(--sglk-cyan), var(--sglk-cyan)) top right/2px 22px;
  background-repeat: no-repeat; opacity: .9; }
.sglk-why{ border-top: 1px solid var(--sglk-line); }
.sglk-why .wp-block-group{ padding: 24px 0; border-bottom: 1px solid var(--sglk-line); }
.sglk-why h3{ margin-bottom: 8px; }
.sglk-why h3::before{ content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--sglk-cyan); margin-right: 12px; vertical-align: middle; transform: translateY(-2px); animation: sglk-blink 2.4s ease-in-out infinite; }
.sglk-why .wp-block-group:nth-child(2) h3::before{ animation-delay: .8s; }
.sglk-why .wp-block-group:nth-child(3) h3::before{ animation-delay: 1.6s; }
@keyframes sglk-blink{ 0%,100%{ box-shadow: 0 0 0 0 var(--sglk-glow); } 50%{ box-shadow: 0 0 0 6px var(--sglk-glow), 0 0 12px var(--sglk-cyan); } }
.sglk-why p{ color: var(--sglk-muted); max-width: 56ch; }
@media (max-width: 900px){ .sglk-about-grid{ grid-template-columns: 1fr; } }

/* Governance org chart with data pulses on the connectors */
.sglk-org{ display: grid; gap: 44px; }
.sglk-node{ position: relative; padding: 20px 22px; border: 1px solid var(--sglk-line-strong); border-radius: var(--sglk-r-md); background-color: var(--sglk-panel); }
.sglk-node h3{ font-size: 17px; margin-bottom: 6px; }
.sglk-node p{ color: var(--sglk-muted); font-size: 15px; line-height: 1.5; }
.sglk-org-top{ width: 100%; max-width: 420px; margin: 0 auto !important; text-align: center; border-color: var(--sglk-cyan); box-shadow: 0 0 0 4px var(--sglk-glow), var(--sglk-shadow); }
.sglk-org-top::after{ content: ""; position: absolute; left: 50%; top: 100%; width: 2px; height: 22px; background: linear-gradient(var(--sglk-cyan), var(--sglk-cyan)); }
.sglk-section .sglk-org-bus{ position: relative; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.sglk-org-bus::before{ content: ""; position: absolute; top: -22px; left: 12.5%; right: 12.5%; height: 2px;
  background: linear-gradient(90deg, transparent, #fff 50%, transparent) 0 0/80px 100% no-repeat, var(--sglk-cyan); animation: sglk-flow-x 2.8s linear infinite; }
@keyframes sglk-flow-x{ from{ background-position: -80px 0, 0 0; } to{ background-position: 900px 0, 0 0; } }
.sglk-org-bus > .wp-block-column::before{ content: ""; position: absolute; left: 50%; top: -23px; width: 2px; height: 22px; background: var(--sglk-cyan); }
.sglk-org-bus > .wp-block-column::after{ content: ""; position: absolute; left: calc(50% - 4px); top: -27px; width: 10px; height: 10px; border-radius: 50%; background: var(--sglk-panel); border: 2px solid var(--sglk-cyan); animation: sglk-blink 2.8s ease-in-out infinite; }
.sglk-org-bus > .wp-block-column:nth-child(2)::after{ animation-delay: .7s; }
.sglk-org-bus > .wp-block-column:nth-child(3)::after{ animation-delay: 1.4s; }
.sglk-org-bus > .wp-block-column:nth-child(4)::after{ animation-delay: 2.1s; }
@media (max-width: 900px){
  .sglk-org{ gap: 16px; }
  .sglk-org-top{ max-width: none; text-align: left; }
  .sglk-org-top::after, .sglk-org-bus::before{ display: none; }
  .sglk-section .sglk-org-bus{ grid-template-columns: 1fr; padding-left: 24px; border-left: 2px solid var(--sglk-cyan); margin-left: 12px; }
  .sglk-org-bus > .wp-block-column::before{ left: -25px; top: 50%; width: 24px; height: 2px; }
  .sglk-org-bus > .wp-block-column::after{ left: -31px; top: calc(50% - 5px); }
}

.sglk-section .sglk-quote{ margin: clamp(64px, 8vw, 100px) 0 0; padding: 0 0 0 clamp(20px, 3vw, 36px); border: 0; border-left: 3px solid; border-image: linear-gradient(var(--sglk-gold), var(--sglk-red)) 1; background: none; }
.sglk-quote p{ font-family: var(--sglk-font-display); font-weight: 400; font-size: clamp(20px, 2.4vw, 30px); line-height: 1.35; max-width: 36ch; font-style: normal; color: var(--sglk-text); }
.sglk-quote cite{ display: block; margin-top: 14px; font-style: normal; color: var(--sglk-muted); font-size: 15px; }
.sglk-note{ margin-top: 40px !important; padding: 20px 22px 20px 56px; border: 1px solid color-mix(in srgb, var(--sglk-gold) 45%, transparent); border-radius: var(--sglk-r-md); background: color-mix(in srgb, var(--sglk-gold) 9%, var(--sglk-panel)); position: relative; }
.sglk-note::before{ content: ""; position: absolute; left: 22px; top: 22px; width: 20px; height: 20px; background: var(--sglk-gold-ink);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M12 2 3 6v6c0 5 3.8 9.3 9 10 5.2-.7 9-5 9-10V6l-9-4Z'/%3E%3Cpath d='m9 12 2 2 4-4'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M12 2 3 6v6c0 5 3.8 9.3 9 10 5.2-.7 9-5 9-10V6l-9-4Z'/%3E%3Cpath d='m9 12 2 2 4-4'/%3E%3C/svg%3E") center/contain no-repeat; }

/* =========================================================
   5. IMPACT
   ========================================================= */
.sglk-section .sglk-kpis{ position: relative; overflow: hidden; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--sglk-line); border-radius: var(--sglk-r-lg); background: linear-gradient(120deg, color-mix(in srgb, var(--sglk-cyan) 10%, var(--sglk-panel)), var(--sglk-panel)); box-shadow: var(--sglk-shadow); }
.sglk-kpis::after{ content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 30%; pointer-events: none; background: linear-gradient(100deg, transparent, rgba(255,255,255,.7), transparent); transform: translateX(-120%); animation: sglk-scan 6s 1.5s ease-in-out infinite; }
@keyframes sglk-scan{ 0%{ transform: translateX(-120%); } 40%,100%{ transform: translateX(420%); } }
.sglk-kpis > .wp-block-column{ padding: 28px clamp(18px, 2.4vw, 32px); }
.sglk-kpis > .wp-block-column + .wp-block-column{ border-left: 1px solid var(--sglk-line); }
.sglk-kpis .sglk-count{ font-size: clamp(30px, 3.4vw, 46px); background: linear-gradient(90deg, var(--sglk-text-2), var(--sglk-blue), var(--sglk-cyan)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sglk-kpis .sglk-label{ margin-top: 10px; color: var(--sglk-muted); font-size: 15px; line-height: 1.4; }
@media (max-width: 860px){
  .sglk-section .sglk-kpis{ grid-template-columns: 1fr 1fr; }
  .sglk-kpis > .wp-block-column:nth-child(3){ border-left: none; }
  .sglk-kpis > .wp-block-column:nth-child(n+3){ border-top: 1px solid var(--sglk-line); }
}
.sglk-section .sglk-pilots{ grid-template-columns: 1fr 1fr; margin-top: 20px; }
.sglk-card{ position: relative; height: 100%; padding: clamp(24px, 3vw, 34px); border: 1px solid var(--sglk-line); border-radius: var(--sglk-r-lg); background-color: var(--sglk-panel); overflow: hidden; box-shadow: var(--sglk-shadow); }
.sglk-card.sglk-pilot::before{ content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: linear-gradient(90deg, var(--sglk-text-2), var(--sglk-blue), var(--sglk-cyan), var(--sglk-blue), var(--sglk-text-2)); background-size: 200% 100%; animation: sglk-bar 4s linear infinite; }
@keyframes sglk-bar{ to{ background-position: -200% 0; } }
.sglk-tag{ display: inline-block; font-size: 13px; font-weight: 600; color: var(--sglk-blue); background: color-mix(in srgb, var(--sglk-blue) 8%, transparent); border: 1px solid color-mix(in srgb, var(--sglk-blue) 35%, transparent); border-radius: 6px; padding: 2px 10px; margin-bottom: 16px !important; }
.sglk-tag.is-gold{ color: var(--sglk-gold-ink); background: color-mix(in srgb, var(--sglk-gold) 12%, transparent); border-color: color-mix(in srgb, var(--sglk-gold) 50%, transparent); }
.sglk-pilot .sglk-desc{ color: var(--sglk-muted); margin: 10px 0 24px; }
.sglk-section .sglk-mini{ grid-template-columns: 1fr 1fr; gap: 1px; background: var(--sglk-line); border: 1px solid var(--sglk-line); border-radius: var(--sglk-r-md); overflow: hidden; }
.sglk-mini > .wp-block-column{ background: var(--sglk-panel); padding: 18px; transition: background .3s; }
.sglk-mini > .wp-block-column:hover{ background: color-mix(in srgb, var(--sglk-cyan) 7%, var(--sglk-panel)); }
.sglk-mini .sglk-count{ font-size: 26px; color: var(--sglk-text); }
.sglk-mini .sglk-label{ font-size: 14px; color: var(--sglk-muted); margin-top: 8px; }
@media (max-width: 860px){ .sglk-section .sglk-pilots{ grid-template-columns: 1fr; } }
.sglk-section .sglk-anchor{ grid-template-columns: .9fr 1.1fr; gap: 0; margin-top: 20px; border: 1px solid var(--sglk-line); border-radius: var(--sglk-r-lg); overflow: hidden; background: var(--sglk-panel); box-shadow: var(--sglk-shadow); }
.sglk-anchor .wp-block-image{ position: relative; height: 100%; overflow: hidden; }
.sglk-anchor .wp-block-image img{ height: 100%; width: 100%; object-fit: cover; min-height: 260px; transition: transform 1.2s var(--sglk-ease); }
.sglk-anchor:hover .wp-block-image img{ transform: scale(1.04); }
.sglk-anchor > .wp-block-column:last-child{ padding: clamp(24px, 3.4vw, 40px); }
.sglk-anchor .sglk-desc{ color: var(--sglk-muted); margin: 10px 0 20px; max-width: 52ch; }
.sglk-checks{ list-style: none; display: grid; gap: 10px; }
.sglk-checks li{ display: flex; gap: 12px; align-items: flex-start; font-size: 15px; }
.sglk-checks li::before{ content: ""; flex: none; width: 16px; height: 16px; margin-top: 4px; border-radius: 50%; border: 2px solid var(--sglk-gold); }
@media (max-width: 860px){ .sglk-section .sglk-anchor{ grid-template-columns: 1fr; } .sglk-anchor .wp-block-image img{ max-height: 260px; } }

/* =========================================================
   6. MEMBERSHIP
   ========================================================= */
.sglk-section .sglk-tiers{ grid-template-columns: 1fr 1fr; }
.sglk-tier{ display: flex; flex-direction: column; }
.sglk-tier.is-featured{ border-color: transparent; background: linear-gradient(var(--sglk-panel), var(--sglk-panel)) padding-box, linear-gradient(120deg, var(--sglk-gold), var(--sglk-red), var(--sglk-blue), var(--sglk-cyan), var(--sglk-gold)) border-box; background-size: 100% 100%, 300% 300%; border: 2px solid transparent; animation: sglk-border 8s linear infinite; }
@keyframes sglk-border{ to{ background-position: 0 0, 300% 0; } }
.sglk-price{ display: flex; align-items: baseline; gap: 8px; margin: 16px 0 8px !important; color: var(--sglk-muted); font-size: 15px; }
.sglk-price .sglk-num{ font-size: clamp(36px, 4vw, 52px); color: var(--sglk-text); }
.sglk-tier .sglk-desc{ color: var(--sglk-muted); flex: 1; margin-bottom: 24px; }
@media (max-width: 760px){ .sglk-section .sglk-tiers{ grid-template-columns: 1fr; } }
.sglk-section .sglk-givegets{ grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 72px); margin-top: clamp(56px, 7vw, 88px); }
.sglk-givegets h3{ margin-bottom: 16px; }
.sglk-ticks{ list-style: none; display: grid; gap: 12px; }
.sglk-ticks li{ position: relative; padding-left: 30px; }
.sglk-ticks li::before{ content: ""; position: absolute; left: 0; top: 6px; width: 14px; height: 8px; border-left: 2px solid var(--sglk-blue); border-bottom: 2px solid var(--sglk-blue); transform: rotate(-45deg); }
.sglk-ticks.is-gold li::before{ border-color: var(--sglk-gold); }
@media (max-width: 760px){ .sglk-section .sglk-givegets{ grid-template-columns: 1fr; } }
.sglk-chips{ list-style: none; display: flex; flex-wrap: wrap; gap: 10px; }
.sglk-chips li{ padding: 9px 18px; border: 1px solid var(--sglk-line-strong); border-radius: 999px; font-size: 15px; background: var(--sglk-panel); transition: border-color .25s, box-shadow .25s, transform .25s, color .25s; cursor: default; }
.sglk-chips li:hover{ border-color: var(--sglk-cyan); color: var(--sglk-blue); box-shadow: 0 0 0 4px var(--sglk-glow); transform: translateY(-2px); }
.sglk-section .sglk-steps{ grid-template-columns: repeat(3, 1fr); counter-reset: sglkstep; }
.sglk-steps > .wp-block-column{ position: relative; padding-top: 42px; }
.sglk-steps > .wp-block-column::before{ counter-increment: sglkstep; content: counter(sglkstep); position: absolute; top: 0; left: 0; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font: 600 13px var(--sglk-font-display); color: #fff; background: linear-gradient(135deg, var(--sglk-text-2), var(--sglk-blue)); box-shadow: 0 0 0 4px var(--sglk-glow); }
.sglk-steps > .wp-block-column:not(:last-child)::after{ content: ""; position: absolute; top: 14px; left: 40px; right: -8px; height: 2px;
  background: linear-gradient(90deg, transparent, var(--sglk-cyan), transparent) 0 0/60px 100% no-repeat, linear-gradient(90deg, var(--sglk-blue), color-mix(in srgb, var(--sglk-cyan) 20%, transparent)); animation: sglk-flow-step 2.4s linear infinite; }
@keyframes sglk-flow-step{ from{ background-position: -60px 0, 0 0; } to{ background-position: 400px 0, 0 0; } }
.sglk-steps h3{ margin-bottom: 6px; }
.sglk-steps p{ color: var(--sglk-muted); font-size: 15px; }
@media (max-width: 760px){ .sglk-section .sglk-steps{ grid-template-columns: 1fr; } .sglk-steps > .wp-block-column::after{ display: none; } }

/* =========================================================
   7. GET INVOLVED
   ========================================================= */
.sglk-section .sglk-roadmap{ grid-template-columns: repeat(4, 1fr); position: relative; }
.sglk-roadmap::before, .sglk-roadmap::after{ content: ""; position: absolute; top: 9px; left: 0; right: 0; height: 2px; background: var(--sglk-line-strong); }
.sglk-roadmap::after{ height: 3px; top: 8.5px;
  background: linear-gradient(90deg, transparent, #fff, transparent) 0 0/120px 100% no-repeat, linear-gradient(90deg, var(--sglk-blue), var(--sglk-cyan), var(--sglk-gold));
  transform-origin: left; animation: sglk-flow-road 3.2s 2s linear infinite; }
@keyframes sglk-flow-road{ from{ background-position: -120px 0, 0 0; } to{ background-position: 1400px 0, 0 0; } }
.sglk-js .sglk-roadmap::after{ transform: scaleX(0); transition: transform 1.6s var(--sglk-ease); }
.sglk-js .sglk-roadmap.is-in::after{ transform: scaleX(1); }
.sglk-roadmap > .wp-block-column{ position: relative; padding-top: 38px; }
.sglk-roadmap > .wp-block-column::before{ content: ""; position: absolute; top: 0; left: 0; width: 20px; height: 20px; border-radius: 50%; background: var(--sglk-panel); border: 2px solid var(--sglk-blue); z-index: 1; box-shadow: 0 0 0 5px var(--sglk-glow); }
.sglk-js .sglk-roadmap > .wp-block-column::before{ transform: scale(0); transition: transform .5s cubic-bezier(.3,1.6,.5,1); }
.sglk-js .sglk-roadmap.is-in > .wp-block-column::before{ transform: scale(1); }
.sglk-js .sglk-roadmap > .wp-block-column:nth-child(2)::before{ transition-delay: .4s; }
.sglk-js .sglk-roadmap > .wp-block-column:nth-child(3)::before{ transition-delay: .8s; }
.sglk-js .sglk-roadmap > .wp-block-column:nth-child(4)::before{ transition-delay: 1.2s; }
.sglk-roadmap > .wp-block-column.is-done::before{ background: var(--sglk-blue); }
.sglk-roadmap > .wp-block-column:last-child::before{ border-color: var(--sglk-gold); box-shadow: 0 0 0 5px color-mix(in srgb, var(--sglk-gold) 20%, transparent); }
.sglk-when{ font-size: 14px; font-weight: 600; color: var(--sglk-blue); }
.sglk-roadmap > .wp-block-column:last-child .sglk-when{ color: var(--sglk-gold-ink); }
.sglk-roadmap h3{ font-size: 17px; margin: 6px 0; }
.sglk-roadmap p:not(.sglk-when){ color: var(--sglk-muted); font-size: 14px; }
@media (max-width: 860px){
  .sglk-section .sglk-roadmap{ grid-template-columns: 1fr; gap: 28px; padding-left: 36px; }
  .sglk-roadmap::before, .sglk-roadmap::after{ top: 0; bottom: 0; left: 9px; right: auto; width: 2px; height: auto; }
  .sglk-roadmap::after{ transform-origin: top; background: linear-gradient(var(--sglk-blue), var(--sglk-cyan), var(--sglk-gold)); animation: none; }
  .sglk-js .sglk-roadmap::after{ transform: scaleY(0); }
  .sglk-js .sglk-roadmap.is-in::after{ transform: scaleY(1); }
  .sglk-roadmap > .wp-block-column{ padding-top: 0; }
  .sglk-roadmap > .wp-block-column::before{ left: -36px; }
}
.sglk-section .sglk-audiences{ grid-template-columns: repeat(3, 1fr); margin-top: clamp(64px, 8vw, 100px); }
.sglk-audiences > .wp-block-column{ display: flex; flex-direction: column; gap: 10px; padding: 26px; border-radius: var(--sglk-r-lg); border: 1px solid var(--sglk-line); background-color: var(--sglk-panel); box-shadow: var(--sglk-shadow); }
.sglk-audiences > .wp-block-column:nth-child(1){ background-color: color-mix(in srgb, var(--sglk-cyan) 9%, var(--sglk-panel)); border-color: color-mix(in srgb, var(--sglk-cyan) 40%, transparent); }
.sglk-audiences > .wp-block-column:nth-child(3){ background-color: color-mix(in srgb, var(--sglk-gold) 10%, var(--sglk-panel)); border-color: color-mix(in srgb, var(--sglk-gold) 45%, transparent); }
.sglk-audiences p{ color: var(--sglk-muted); flex: 1; }
@media (max-width: 860px){ .sglk-section .sglk-audiences{ grid-template-columns: 1fr; } }
.sglk-section .sglk-quarters{ grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--sglk-line); border-radius: var(--sglk-r-lg); overflow: hidden; box-shadow: var(--sglk-shadow); }
.sglk-quarters > .wp-block-column{ display: flex; flex-direction: column; gap: 10px; padding: 24px; background-color: var(--sglk-panel); }
.sglk-quarters > .wp-block-column + .wp-block-column{ border-left: 1px solid var(--sglk-line); }
.sglk-q{ font: 600 13px var(--sglk-font-display); color: var(--sglk-blue); }
.sglk-quarters h3{ font-size: 17px; flex: 1; }
.sglk-host{ font-size: 14px; color: var(--sglk-muted); }
.sglk-host strong{ color: var(--sglk-text); font-weight: 600; }
.sglk-host.is-open strong{ color: var(--sglk-gold-ink); }
.sglk-host.is-open strong::before{ content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--sglk-gold); margin-right: 6px; vertical-align: middle; animation: sglk-blink 1.8s ease-in-out infinite; }
@media (max-width: 860px){
  .sglk-section .sglk-quarters{ grid-template-columns: 1fr 1fr; }
  .sglk-quarters > .wp-block-column:nth-child(3){ border-left: none; }
  .sglk-quarters > .wp-block-column:nth-child(n+3){ border-top: 1px solid var(--sglk-line); }
}
@media (max-width: 520px){ .sglk-section .sglk-quarters{ grid-template-columns: 1fr; } .sglk-quarters > .wp-block-column + .wp-block-column{ border-left: none; border-top: 1px solid var(--sglk-line); } }

/* =========================================================
   8. CONTACT
   ========================================================= */
.sglk-section .sglk-contact{ grid-template-columns: 1fr 1.25fr; gap: clamp(32px, 6vw, 88px); }
.sglk-contact h2{ margin-bottom: 18px; }
.sglk-contact .sglk-lead{ color: var(--sglk-muted); margin-bottom: 28px; max-width: 44ch; }
.sglk-office{ position: relative; padding: 26px; border: 1px solid var(--sglk-line); border-radius: var(--sglk-r-lg); background-color: var(--sglk-panel); overflow: hidden; box-shadow: var(--sglk-shadow); }
.sglk-office::before{ content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: linear-gradient(var(--sglk-red), var(--sglk-gold)); }
.sglk-office p{ font-size: 15px; color: var(--sglk-muted); }
.sglk-office p + p{ margin-top: 10px; }
.sglk-office a{ color: var(--sglk-blue) !important; text-decoration: none; border-bottom: 1px solid color-mix(in srgb, var(--sglk-blue) 35%, transparent); }
.sglk-office strong{ color: var(--sglk-text); font-weight: 500; }
.sglk-clocks{ display: flex; gap: 28px; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--sglk-line); }
.sglk-clocks span{ display: block; font-size: 13px; color: var(--sglk-muted); }
.sglk-clock{ font-family: var(--sglk-font-display); font-size: 22px; font-variant-numeric: tabular-nums; }
.sglk-clock i{ font-style: normal; animation: sglk-colon 1s steps(1) infinite; }
@keyframes sglk-colon{ 50%{ opacity: .15; } }
.sglk-clocks div:first-child .sglk-clock{ color: var(--sglk-red); }
.sglk-clocks div:nth-child(2) .sglk-clock{ color: var(--sglk-gold-ink); }
@media (max-width: 860px){ .sglk-section .sglk-contact{ grid-template-columns: 1fr; } }

/* Contact form (built-in; also styles Fluent Forms fields inside sections) */
.sglk-form{ display: grid; gap: 18px; padding: clamp(22px, 3vw, 32px); border: 1px solid var(--sglk-line); border-radius: var(--sglk-r-lg); background: var(--sglk-panel); box-shadow: var(--sglk-shadow); }
.sglk-row{ display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.sglk-section label, .sglk-section .ff-el-input--label label{ display: block; font-size: 14px; font-weight: 500; color: var(--sglk-muted); margin-bottom: 8px; }
.sglk-section input[type=text], .sglk-section input[type=email], .sglk-section select, .sglk-section textarea{
  width: 100%; padding: 13px 16px; border-radius: 12px; border: 1px solid var(--sglk-line-strong); background: var(--sglk-bg); color: var(--sglk-text); font: 16px var(--sglk-font-body); transition: border-color .2s, box-shadow .2s, background .2s;
}
.sglk-section textarea{ min-height: 140px; resize: vertical; }
.sglk-section input:focus, .sglk-section select:focus, .sglk-section textarea:focus{ outline: none; background: var(--sglk-panel); border-color: var(--sglk-blue); box-shadow: 0 0 0 4px var(--sglk-glow); }
.sglk-hp{ position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.sglk-submit{ justify-self: start; border: none; border-radius: 999px; padding: 13px 26px; font: 600 15px var(--sglk-font-body); cursor: pointer; color: #fff; background: linear-gradient(100deg, var(--sglk-text), var(--sglk-text-2) 45%, var(--sglk-blue)); background-size: 200% 100%; box-shadow: 0 10px 24px -14px var(--sglk-blue); transition: background-position .6s var(--sglk-ease), box-shadow .3s; }
.sglk-submit:hover{ background-position: 100% 0; box-shadow: 0 14px 30px -12px var(--sglk-blue), 0 0 0 4px var(--sglk-glow); }
.sglk-status{ padding: 12px 16px; border-radius: 12px; font-size: 15px; border: 1px solid var(--sglk-line); }
.sglk-status.is-ok{ border-color: var(--sglk-blue); color: var(--sglk-blue); }
.sglk-status.is-err{ border-color: var(--sglk-red); color: var(--sglk-red); }
@media (max-width: 520px){ .sglk-row{ grid-template-columns: 1fr; } }

/* =========================================================
   9. SITE-WIDE EFFECTS (front end only)
   ========================================================= */
/* circuit-network background (canvas injected by the script) */
.sglk-net{ position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.sglk-net canvas{ position: sticky; top: 0; display: block; width: 100%; height: 100vh; }
/* scroll progress bar */
.sglk-progress{ position: fixed; top: 0; left: 0; height: 3px; width: 100%; z-index: 100000; transform-origin: left; transform: scaleX(0); background: linear-gradient(90deg, var(--sglk-red), var(--sglk-gold), var(--sglk-cyan), var(--sglk-blue)); box-shadow: 0 0 10px var(--sglk-cyan); pointer-events: none; }
.admin-bar .sglk-progress{ top: 32px; }

/* scroll reveal: fade + rise + de-blur; columns inside revealed rows stagger */
.sglk-js .sglk-reveal{ opacity: 0; transform: translateY(28px); filter: blur(6px); transition: opacity .9s ease, transform .9s var(--sglk-ease), filter .9s ease; }
.sglk-js .sglk-reveal.is-in{ opacity: 1; transform: none; filter: none; }
.sglk-js .wp-block-columns.sglk-reveal > .wp-block-column, .sglk-js .sglk-chips.sglk-reveal > li{ opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s var(--sglk-ease); }
.sglk-js .wp-block-columns.sglk-reveal.is-in > .wp-block-column, .sglk-js .sglk-chips.sglk-reveal.is-in > li{ opacity: 1; transform: none; }
.sglk-js .sglk-reveal.is-in > :nth-child(2){ transition-delay: .1s; }
.sglk-js .sglk-reveal.is-in > :nth-child(3){ transition-delay: .2s; }
.sglk-js .sglk-reveal.is-in > :nth-child(4){ transition-delay: .3s; }
.sglk-js .sglk-reveal.is-in > :nth-child(5){ transition-delay: .4s; }
.sglk-js .sglk-reveal.is-in > :nth-child(6){ transition-delay: .5s; }

:focus-visible{ outline: 2px solid var(--sglk-blue); outline-offset: 3px; }

@media (prefers-reduced-motion: reduce){
  .sglk-section *, .sglk-section *::before, .sglk-section *::after, .sglk-section::before{ animation: none !important; }
  .sglk-js .sglk-reveal, .sglk-js .sglk-reveal > *, .sglk-js .sglk-hero-text > *, .sglk-js .sglk-hero-text > .wp-block-group__inner-container > *{ opacity: 1 !important; transform: none !important; filter: none !important; transition: none !important; }
  .sglk-js .sglk-roadmap::after, .sglk-js .sglk-roadmap > .wp-block-column::before, .sglk-js .sglk-head h2::before{ transform: none; transition: none; }
}
