/* =========================================================
   7light Technology PLC - main stylesheet
   Colors and fonts live in :root. Change them there once the
   official brand guide arrives.
   ========================================================= */

/* Fonts are self-hosted (assets/fonts, SIL Open Font License: see OFL.txt there).
   Montserrat is one variable file that covers weights 400-700. */
@font-face {
  font-family: "Gilda Display"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/gilda-display-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Montserrat"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("../fonts/montserrat-latin.woff2") format("woff2");
}

:root {
  --blue: #0927eb;          /* royal blue from the reference */
  --blue-deep: #061aa8;     /* footer, hover */
  --navy: #0b1340;          /* body text */
  --cyan: #3cf0e6;          /* neon accent */
  --cyan-soft: #b9fbf6;
  --pale: #e3e6f1;          /* light grey-blue bands */
  --white: #ffffff;
  --muted: #4a5378;
  --line: #c9cfe6;
  --card-bg: #f4f5f7;        /* cards: light neutral grey */

  --brand-green: #01d781;   /* logo colors */
  --brand-yellow: #ffca00;
  --brand-red: #ff493b;

  --font-display: "Gilda Display", Georgia, serif;
  --font-body: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 18px;
  --max: 1160px;
  --gutter: clamp(16px, 4vw, 40px);
  --shadow: 0 10px 30px rgba(9, 39, 235, 0.10);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--navy);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--blue); }
a:hover { color: var(--blue-deep); }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--white); padding: 8px 14px; z-index: 100; }
.skip-link:focus { left: 8px; }

/* ---------- Typography ---------- */
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); }
h2 { font-size: clamp(2rem, 4vw, 2.9rem); color: var(--blue); }
h3 { font-size: 1.4rem; }
.eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--blue); margin-bottom: .8rem;
}
.lead { font-size: 1.1rem; color: var(--muted); max-width: 720px; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .85rem 1.6rem; border: 2px solid transparent; border-radius: 4px;
  font: 700 .82rem/1 var(--font-body); letter-spacing: .12em; text-transform: uppercase;
  text-decoration: none; cursor: pointer; transition: all .2s ease;
}
.btn-light { background: var(--white); color: var(--blue); }
.btn-light:hover { background: var(--blue-deep); color: var(--white); border-color: var(--white); box-shadow: 0 8px 24px rgba(6, 26, 168, .45); }
.btn-primary { background: var(--blue); color: var(--white); }
.btn-primary:hover { background: var(--blue-deep); color: var(--white); box-shadow: 0 8px 22px rgba(9, 39, 235, .35); }
.btn-outline { border-color: var(--white); color: var(--white); background: transparent; }
.btn-outline:hover { background: var(--white); border-color: var(--white); color: var(--blue); }
.btn-row { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.8rem; }

/* ---------- Header / navigation ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--blue); color: var(--white);
  transition: box-shadow .2s ease;
}
.site-header.scrolled { box-shadow: 0 6px 24px rgba(6, 26, 168, .35); }
.nav-bar { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; gap: .7rem; color: var(--white); text-decoration: none; }
.brand img { height: 44px; width: auto; }
.brand span { font-weight: 700; font-size: 1.05rem; letter-spacing: .01em; }
.brand:hover { color: var(--white); }

.nav-menu { display: flex; align-items: center; gap: .3rem; list-style: none; margin: 0; padding: 0; }
.nav-menu a, .dropdown-toggle {
  display: block; padding: .55rem .85rem; color: var(--white); text-decoration: none;
  font: 600 .9rem/1.2 var(--font-body); background: none; border: 0; cursor: pointer; border-radius: 4px;
}
.nav-menu a:hover, .dropdown-toggle:hover, .nav-menu a[aria-current="page"] { color: var(--cyan); }
.nav-menu .nav-cta { border: 2px solid var(--white); margin-left: .5rem; }
.nav-menu .nav-cta:hover { background: var(--white); color: var(--blue); }

.has-dropdown { position: relative; }
.dropdown-toggle::after { content: ""; display: inline-block; margin-left: .4rem; border: 5px solid transparent; border-top-color: currentColor; transform: translateY(2px); }
.dropdown {
  position: absolute; top: 100%; left: 0; min-width: 240px; list-style: none; margin: .4rem 0 0; padding: .5rem;
  background: var(--white); border-radius: 10px; box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: all .18s ease;
}
.dropdown a { color: var(--navy); padding: .6rem .8rem; }
.dropdown a:hover { color: var(--blue); background: var(--pale); }
.has-dropdown:hover .dropdown, .has-dropdown.open .dropdown { opacity: 1; visibility: visible; transform: none; }

.nav-toggle { display: none; background: none; border: 0; color: var(--white); padding: .5rem; cursor: pointer; }
.nav-toggle svg { width: 28px; height: 28px; }

@media (max-width: 920px) {
  .nav-toggle { display: block; }
  .nav-menu {
    position: fixed; inset: 76px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--blue-deep); padding: 1rem var(--gutter) 1.5rem; max-height: calc(100vh - 76px); overflow-y: auto;
    transform: translateY(-120%); transition: transform .25s ease;
  }
  .nav-menu.open { transform: none; }
  .nav-menu a, .dropdown-toggle { padding: .9rem .4rem; font-size: 1rem; width: 100%; text-align: left; }
  .dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; background: transparent; display: none; padding: 0 0 0 1rem; margin: 0; }
  .has-dropdown.open .dropdown { display: block; }
  .dropdown a { color: var(--cyan-soft); }
  .dropdown a:hover { background: transparent; color: var(--cyan); }
  .nav-menu .nav-cta { margin: .8rem 0 0; text-align: center; }
}

/* ---------- Sections ---------- */
section { padding: clamp(64px, 9vw, 110px) 0; }
.bg-blue { background: var(--blue); color: var(--white); }
.bg-blue h2, .bg-blue h3 { color: var(--white); }
.bg-blue .lead { color: var(--cyan-soft); }
.bg-blue .eyebrow { color: var(--cyan); }
.bg-pale { background: var(--pale); }
.section-head { margin-bottom: 3rem; }

/* ---------- Hero ---------- */
.hero { padding: clamp(48px, 7vw, 90px) 0 clamp(64px, 9vw, 110px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 3rem; align-items: center; }
.hero h1 { color: var(--white); }
.hero p { color: var(--cyan-soft); font-size: 1.1rem; max-width: 520px; }
.hero-art { width: 100%; max-width: 520px; justify-self: end; }
.page-hero { padding: clamp(56px, 8vw, 96px) 0; }
.page-hero h1 { color: var(--white); max-width: 820px; }
.page-hero p { color: var(--cyan-soft); font-size: 1.1rem; max-width: 680px; }
.breadcrumb { font-size: .85rem; margin-bottom: 1rem; color: var(--cyan-soft); }
.breadcrumb a { color: var(--cyan); text-decoration: none; }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { justify-self: center; max-width: 400px; }
}

/* neon animation for the hero art */
.neon-line { stroke-dasharray: 900; stroke-dashoffset: 900; animation: draw 2.4s ease forwards .3s; }
.neon-ring { transform-origin: center; transform-box: fill-box; animation: spin 18s linear infinite; }
.neon-pulse { animation: pulse 2.4s ease-in-out infinite; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 50% { opacity: .45; } }

/* ---------- Network globe (Who we are) ---------- */
.globe { width: 170px; margin: 0 auto 1.2rem; }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 1.6rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 760px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  /* light neutral grey (BUAY, 2026-12-03: grey instead of the blue-cyan tint) */
  background: var(--card-bg);
  border: 1px solid rgba(11, 19, 64, .08); border-radius: var(--radius);
  box-shadow: 0 6px 20px rgba(11, 19, 64, .06);
  padding: 1.8rem; text-align: center; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 16px 38px rgba(9, 39, 235, .18), 0 0 0 1px var(--blue); border-color: var(--blue); }
.card h3 { font-family: var(--font-body); font-size: .98rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--blue); margin: 1.1rem 0 .5rem; }
.card p { font-size: .95rem; color: var(--muted); margin: 0; }
.card-icon {
  width: 100%; aspect-ratio: 16 / 10; border-radius: 10px; background: var(--navy);
  display: grid; place-items: center; overflow: hidden;
}
.card-icon svg { width: 46%; height: auto; }
.card-link { text-decoration: none; color: inherit; display: flex; flex-direction: column; }
.card-link .more { margin-top: 1rem; font-weight: 700; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; color: var(--blue); }

/* company cards */
.company-card { text-align: left; padding: 0; overflow: hidden; }
.company-card .company-top { height: 8px; }
.company-card .company-body { padding: 1.6rem; display: flex; flex-direction: column; flex: 1; }
.company-card h3 { margin-top: 0; }
.company-card .tag { display: block; margin-bottom: .5rem; font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.accent-green .company-top { background: var(--brand-green); }
.accent-yellow .company-top { background: var(--brand-yellow); }
.accent-red .company-top { background: var(--brand-red); }
.accent-cyan .company-top { background: var(--cyan); }

/* why-us / feature list */
.feature { text-align: center; padding: 0 .5rem; }
.feature-icon {
  width: 84px; height: 84px; margin: 0 auto 1.1rem; border-radius: 22px;
  background: var(--blue); display: grid; place-items: center;
  box-shadow: 0 0 0 6px rgba(60, 240, 230, .25);
}
.feature-icon svg { width: 42px; height: 42px; }
.feature h3 { font-family: var(--font-body); font-size: .98rem; font-weight: 700; color: var(--blue); margin-bottom: .3rem; }
.feature p { font-size: .94rem; color: var(--blue); margin: 0; }

/* ---------- Quote band ---------- */
.quote-band { text-align: center; }
.quote-band .bar { width: min(520px, 100%); margin: 0 auto 2.4rem; }
.quote-band blockquote { margin: 0 auto; max-width: 860px; font-family: var(--font-display); font-size: clamp(1.5rem, 3vw, 2.2rem); line-height: 1.4; color: var(--white); }
.quote-band cite { display: block; margin-top: 1.2rem; font: 600 .9rem var(--font-body); color: var(--cyan); font-style: normal; letter-spacing: .08em; text-transform: uppercase; }

/* ---------- Testimonial rows (reference style) ---------- */
.testimonial {
  display: grid; grid-template-columns: 220px 1fr; gap: 1.5rem; align-items: center;
  border: 1.5px solid var(--blue); border-radius: 20px; padding: 1.3rem 1.8rem; background: var(--white); margin-bottom: 1.2rem;
}
.testimonial strong { color: var(--blue); }
.testimonial p { margin: 0; font-size: .95rem; }
@media (max-width: 640px) { .testimonial { grid-template-columns: 1fr; gap: .4rem; } }

/* ---------- Split content ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.check-list { list-style: none; padding: 0; margin: 1.2rem 0 0; }
.check-list li { position: relative; padding-left: 2rem; margin-bottom: .8rem; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: .35em; width: 1.1rem; height: 1.1rem; border-radius: 50%;
  background: var(--cyan) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%230b1340' stroke-width='2'/%3E%3C/svg%3E") center/80% no-repeat;
}
.panel { background: var(--pale); border-radius: var(--radius); padding: clamp(1.6rem, 4vw, 2.6rem); }
.panel-blue { background: var(--blue); color: var(--white); }
.panel-blue h3 { color: var(--white); }

/* facts table */
.facts { width: 100%; border-collapse: collapse; font-size: .96rem; }
.facts th, .facts td { text-align: left; padding: .85rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.facts th { width: 34%; color: var(--blue); font-weight: 700; padding-right: 1rem; }

/* timeline */
.timeline { list-style: none; margin: 0; padding: 0 0 0 1.6rem; border-left: 2px solid var(--cyan); }
.timeline li { position: relative; padding: 0 0 1.8rem 1rem; }
.timeline li::before { content: ""; position: absolute; left: -2.15rem; top: .3rem; width: 14px; height: 14px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 4px var(--cyan-soft); }
.timeline strong { color: var(--blue); display: block; }

/* ---------- Team ---------- */
.team-card { text-align: center; padding: 0; overflow: hidden; }
.team-card img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; object-position: center top; background: #000; }
.team-card .team-body { padding: 1.4rem 1.4rem 1.8rem; }
.team-card h3 { margin: 0 0 .2rem; text-transform: none; font-family: var(--font-display); font-size: 1.45rem; font-weight: 400; letter-spacing: 0; color: var(--navy); }
.team-card .role { display: block; font-weight: 700; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--blue); margin-bottom: .8rem; }
.socials-inline { display: flex; justify-content: center; gap: .6rem; margin-top: 1rem; }
.socials-inline a { width: 36px; height: 36px; border-radius: 50%; background: var(--pale); display: grid; place-items: center; }
.socials-inline svg { width: 18px; height: 18px; fill: var(--blue); }

/* ---------- News ---------- */
.empty-state { text-align: center; border: 2px dashed var(--line); border-radius: var(--radius); padding: 3rem 1.5rem; color: var(--muted); }

/* ---------- Contact ---------- */
.contact-split { display: grid; grid-template-columns: 1fr 1fr; min-height: 420px; }
.contact-split > div { padding: clamp(48px, 7vw, 90px) var(--gutter); }
.contact-split .cta-side { background: var(--white); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.contact-split .cta-side .inner, .contact-split .info-side .inner { max-width: 480px; width: 100%; }
.contact-split .cta-side { align-items: flex-end; }
.contact-split .cta-side h2 { font-size: clamp(2.2rem, 4vw, 3rem); }
.contact-split .info-side { background: var(--blue); color: var(--white); display: flex; align-items: flex-end; }
.info-list { list-style: none; margin: 0; padding: 0; }
.info-list li { margin-bottom: 1.3rem; }
.info-list .label { display: block; font-weight: 700; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: .25rem; }
.info-list a, .info-list span { color: var(--white); text-decoration: none; }
.info-list a:hover { color: var(--cyan); }
@media (max-width: 760px) {
  .contact-split { grid-template-columns: 1fr; }
  .contact-split .cta-side { align-items: flex-start; }
}

.form { display: grid; gap: 1.1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }
.form label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .35rem; }
.form input, .form select, .form textarea {
  width: 100%; padding: .8rem 1rem; border: 1.5px solid var(--line); border-radius: 8px;
  font: inherit; color: var(--navy); background: var(--white);
}
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--blue); outline: none; box-shadow: 0 0 0 3px rgba(60, 240, 230, .45); }
.form textarea { min-height: 150px; resize: vertical; }
.form-status { font-weight: 600; min-height: 1.5em; margin: 0; }
.form-status.ok { color: #0b7a4b; }
.form-status.err { color: #b42318; }
.hp-field { position: absolute; left: -9999px; }

.map-wrap { border-radius: var(--radius); overflow: hidden; border: 2px solid var(--pale); }
.map-wrap iframe { width: 100%; height: 360px; border: 0; display: block; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #c8cdea; padding: 64px 0 28px; font-size: .93rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2.4rem; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: var(--white); font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 1rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .55rem; }
.site-footer a { color: #c8cdea; text-decoration: none; }
.site-footer a:hover { color: var(--cyan); }
.footer-brand p { margin: 1rem 0 0; max-width: 300px; }
.socials { display: flex; gap: .6rem; margin-top: 1.2rem; }
.socials a { width: 38px; height: 38px; border-radius: 50%; border: 1px solid #3a4378; display: grid; place-items: center; }
.socials a:hover { border-color: var(--blue); background: var(--blue); }
.socials svg { width: 17px; height: 17px; fill: currentColor; }
.footer-bottom { border-top: 1px solid #2a3364; margin-top: 3rem; padding-top: 1.4rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; font-size: .85rem; }

/* WhatsApp floating button */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 40; width: 56px; height: 56px; border-radius: 50%;
  background: #25d366; display: grid; place-items: center; box-shadow: 0 8px 24px rgba(0, 0, 0, .25);
}
.wa-float svg { width: 30px; height: 30px; fill: #fff; }

/* ---------- Animation ---------- */
:root { --ease-out: cubic-bezier(.16, 1, .3, 1); }

/* scroll reveal: text, cards and blocks rise and sharpen in */
.reveal {
  opacity: 0; transform: translateY(34px); filter: blur(6px);
  transition: opacity .9s var(--ease-out), transform .9s var(--ease-out), filter .9s var(--ease-out);
  transition-delay: var(--d, 0s);
}
.reveal.visible { opacity: 1; transform: none; filter: none; }
.no-js .reveal { opacity: 1; transform: none; filter: none; }
section h2.reveal { transform: translateY(26px) scale(.98); }
section h2.reveal.visible { transform: none; }

/* cards: lift in, then tilt with the pointer */
.card.reveal { transform: translateY(40px) scale(.97); }
.card.reveal.visible {
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: opacity .9s var(--ease-out), transform .35s ease, filter .9s var(--ease-out), box-shadow .25s ease, border-color .25s ease;
  transition-delay: var(--d, 0s), 0s, var(--d, 0s), 0s, 0s;
}
.card.reveal.visible:hover { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(-6px); }

/* photos: a clean mask wipe, the image settles from a slight zoom, then drifts with scroll */
.photo-frame { overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow); }
.photo-frame img { box-shadow: none !important; border-radius: 0 !important; transform: translateY(var(--py, 0px)) scale(1.12); transition: transform 1.4s var(--ease-out); will-change: transform; }
.photo.img-reveal { opacity: 1; filter: none; transform: none; }
.photo.img-reveal .photo-frame { clip-path: inset(100% 0 0 0 round var(--radius)); transition: clip-path 1.1s var(--ease-out); transition-delay: var(--d, 0s); }
.photo.img-reveal.visible .photo-frame { clip-path: inset(0 0 0 0 round var(--radius)); }
.photo.img-reveal.visible .photo-frame img { transform: translateY(var(--py, 0px)) scale(1.08); transition: transform .25s linear; }
.photo.img-reveal figcaption { opacity: 0; transform: translateY(10px); transition: opacity .7s ease .5s, transform .7s var(--ease-out) .5s; }
.photo.img-reveal.visible figcaption { opacity: 1; transform: none; }
.photo-frame:hover img { transform: translateY(var(--py, 0px)) scale(1.13); transition: transform .8s var(--ease-out); }

/* hero: headline word by word, then the rest */
h1.h-split .word { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; }
h1.h-split .word > span { display: inline-block; transform: translateY(110%); transition: transform 1s var(--ease-out); transition-delay: calc(.12s + var(--i) * .07s); }
.hero-ready h1.h-split .word > span { transform: none; }
.hero-in { opacity: 0; transform: translateY(22px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); transition-delay: var(--d, 0s); }
.hero-ready .hero-in { opacity: 1; transform: none; }
.hero-art.hero-in, .hero-logo.hero-in { transform: translateY(var(--py, 0px)) scale(.92); transition: opacity 1.2s var(--ease-out), transform 1.2s var(--ease-out); transition-delay: var(--d, 0s); }
.hero-ready .hero-art.hero-in, .hero-ready .hero-logo.hero-in { transform: translateY(var(--py, 0px)); transition: opacity 1.2s var(--ease-out) var(--d, 0s), transform .25s linear; }
.globe { transform: translateY(var(--py, 0px)); }
.globe circle { animation: twinkle 3.2s ease-in-out infinite; }
.globe circle:nth-child(3n) { animation-delay: .8s; } .globe circle:nth-child(3n+1) { animation-delay: 1.6s; }
@keyframes twinkle { 50% { opacity: .35; } }

/* floating feature icons and the quote bar */
.feature-icon { animation: float 5s ease-in-out infinite; }
.feature:nth-child(2) .feature-icon { animation-delay: .6s; } .feature:nth-child(3) .feature-icon { animation-delay: 1.2s; } .feature:nth-child(4) .feature-icon { animation-delay: 1.8s; }
@keyframes float { 50% { transform: translateY(-8px); } }
.quote-band .bar path:last-of-type { stroke-dasharray: 40 14; animation: dash 1.6s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -54; } }

/* buttons: light sweep on hover */
.btn { position: relative; overflow: hidden; }
.btn::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.45) 50%, transparent 70%); transform: translateX(-120%); transition: transform .7s ease; }
.btn:hover::after { transform: translateX(120%); }

/* scroll progress bar */
.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 60; background: linear-gradient(90deg, var(--cyan), #ffffff); transform: scaleX(0); transform-origin: 0 50%; box-shadow: 0 0 10px rgba(60, 240, 230, .8); pointer-events: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .neon-line { stroke-dashoffset: 0; }
  .reveal, .hero-in, .photo.img-reveal figcaption { opacity: 1 !important; transform: none !important; filter: none !important; }
  .photo.img-reveal .photo-frame { clip-path: none !important; }
  .photo-frame img, h1.h-split .word > span { transform: none !important; }
  .scroll-progress { display: none; }
}
.form .btn { justify-self: start; }

/* ---------- Image slots (placeholders until real photos arrive) ---------- */
.img-slot {
  aspect-ratio: 4 / 3; border-radius: var(--radius); display: grid; place-items: center;
  background: repeating-linear-gradient(135deg, var(--navy) 0 14px, #121c55 14px 28px);
  border: 2px solid var(--cyan); color: var(--cyan); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; font-size: .8rem;
}
.img-slot-lg { aspect-ratio: 5 / 4; }
.gallery-item { margin: 0; }
.gallery-item img, .split > img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }

/* ---------- Photos ---------- */
.photo { margin: 0; }
.photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); background: var(--pale); box-shadow: var(--shadow); }
.photo figcaption { margin-top: .7rem; font-size: .9rem; font-weight: 600; color: var(--blue); }
.split > .photo img { aspect-ratio: 4 / 5; max-height: 600px; object-position: center 30%; }
.photo.wide img, .split > .photo.wide img { aspect-ratio: 4 / 3; }
.photo-grid .photo img { aspect-ratio: 4 / 5; }

/* ---------- Live stats (Penta Education) ---------- */
.live-stats { padding: 56px 0; }
.live-stats[hidden] { display: none; }
.stats-row { max-width: 640px; margin: 1rem auto 0; }
.stat-num { display: block; font-family: var(--font-display); font-size: clamp(2.8rem, 6vw, 4rem); color: var(--cyan); line-height: 1.1; }
.stat-label { color: var(--white); font-weight: 600; }
.live-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--cyan); margin-right: .4rem; animation: pulse 1.6s ease-in-out infinite; vertical-align: middle; }

/* ---------- Company logos ---------- */
.company-logo { height: 64px; width: auto; margin-bottom: 1rem; align-self: flex-start; }
.hero-logo { justify-self: end; }
.hero-logo .seal { width: min(320px, 70vw); height: auto; filter: drop-shadow(0 12px 30px rgba(0, 0, 0, .25)); }
.panel-logo { width: 160px; height: auto; margin: 0 auto 1.4rem; }
@media (max-width: 860px) { .hero-logo { justify-self: center; } }
.company-logo[src*="studio-mark"] { border-radius: 50%; }
.btn-outline-blue { border-color: var(--blue); color: var(--blue); background: transparent; }
.btn-outline-blue:hover { background: var(--blue); color: var(--white); }
@media (max-width: 760px) { .reveal { filter: none; } }

/* ---------- Hero constellation ---------- */
.constellation { overflow: visible; }
.constellation text { font: 600 14px var(--font-body); fill: #ffffff; letter-spacing: .02em; }
.constellation .orbit-spin { transform-box: fill-box; transform-origin: center; animation: spin 28s linear infinite; }
.constellation .orbit-rev { transform-box: fill-box; transform-origin: center; animation: spin 80s linear infinite reverse; }
.constellation .hub-glow { transform-box: fill-box; transform-origin: center; animation: breathe 4s ease-in-out infinite; }
.constellation .ping { transform-box: fill-box; transform-origin: center; animation: ping 3s ease-out infinite; }
.constellation .dash-move { stroke-dasharray: 3 9; animation: dash2 4s linear infinite; }
.constellation .star { animation: twinkle 3s ease-in-out infinite; }
.constellation .link { stroke-dasharray: 420; stroke-dashoffset: 420; animation: draw 1.4s var(--ease-out) forwards; }
.constellation .node-in { opacity: 0; transform-box: fill-box; transform-origin: center; animation: pop .9s var(--ease-out) forwards; }
.constellation .node { transform-box: fill-box; transform-origin: center; transition: transform .35s var(--ease-out), filter .35s ease; cursor: default; }
.constellation .node-link { cursor: pointer; outline: none; }
.constellation .node-link .node { cursor: pointer; }
.constellation .node-link:hover .node, .constellation .node-link:focus-visible .node { transform: scale(1.1); filter: drop-shadow(0 0 10px rgba(255, 255, 255, .55)); }
.constellation .node-link:focus-visible text { text-decoration: underline; }
.constellation .node:hover { transform: scale(1.08); }
.constellation .pulse { opacity: 0; animation: fadein .4s ease 1.6s forwards; }
@keyframes breathe { 50% { transform: scale(1.14); opacity: .7; } }
@keyframes ping { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(1.7); opacity: 0; } }
@keyframes dash2 { to { stroke-dashoffset: -48; } }
@keyframes pop { from { opacity: 0; transform: scale(.4); } to { opacity: 1; transform: none; } }
@keyframes fadein { to { opacity: 1; } }
/* Network traffic on the wires: dashes stream out from the hub (colour) and back in (white) */
.constellation .flow { opacity: 0; stroke-dasharray: 4 26; animation: fadein .5s ease 1.8s forwards, flow-out 1.1s linear infinite; }
.constellation .flow-in { stroke-dasharray: 2 34; stroke-opacity: .8; animation: fadein .5s ease 2.2s forwards, flow-in 1.6s linear infinite; }
.constellation .wire .link { filter: drop-shadow(0 0 4px var(--c)); }
@keyframes flow-out { to { stroke-dashoffset: -30; } }
@keyframes flow-in { to { stroke-dashoffset: 36; } }
@media (max-width: 760px) { .constellation .stars circle:nth-child(n+7) { display: none; } .constellation text { font-size: 16px; } }
@media (prefers-reduced-motion: reduce) {
  .constellation .link { stroke-dashoffset: 0; }
  .constellation .node-in, .constellation .pulse { opacity: 1; }
  .constellation .pulse, .constellation .flow { display: none; }
}

/* ---------- Blurred photo backgrounds behind blue sections ---------- */
/* The photo is pre-blurred (assets/images/bg/), so phones don't have to blur it live. */
.has-bg { position: relative; isolation: isolate; overflow: hidden; }
.has-bg::before {
  content: ""; position: absolute; inset: -14px 0; z-index: -2;
  background: var(--bg) center / cover no-repeat;
  transform: translateY(var(--bgy, 0px));
}
.has-bg::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  /* darker on the left where the text sits, lighter on the right so the photo shows */
  background: linear-gradient(100deg, rgba(9, 39, 235, .86) 0%, rgba(9, 39, 235, .70) 45%, rgba(6, 26, 168, .50) 100%);
}
.quote-band.has-bg::after { background: linear-gradient(180deg, rgba(9, 39, 235, .78), rgba(6, 26, 168, .78)); }
.has-bg h1, .has-bg h2, .has-bg p, .has-bg blockquote { text-shadow: 0 1px 14px rgba(4, 12, 80, .35); }
@media (max-width: 760px) {
  .has-bg::after { background: linear-gradient(180deg, rgba(9, 39, 235, .80), rgba(6, 26, 168, .72)); }
}

/* Course cards with a photo instead of an icon (Academy) */
.card-photo { background: var(--pale); }
.card-photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.card:hover .card-photo img { transform: scale(1.05); }
.container.narrow { max-width: 760px; }

/* "Let's work together" band with a photo behind both panels */
.contact-split.has-photo { position: relative; isolation: isolate; overflow: hidden; }
.contact-split.has-photo::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--bg, none) center / cover no-repeat; }
/* Left panel: near-solid white so the heading reads cleanly, with a soft brand tint
   and only a hint of the photo; right panel: strong blue over the photo. */
.contact-split.has-photo .cta-side { background: linear-gradient(100deg, rgba(255, 255, 255, .96) 0%, rgba(242, 245, 255, .93) 60%, rgba(233, 249, 250, .88) 100%); }
.contact-split.has-photo .info-side { background: linear-gradient(100deg, rgba(9, 39, 235, .86), rgba(6, 26, 168, .80)); }

/* Portrait photo on the studio page */
.photo.booth img { aspect-ratio: 4 / 5; object-position: center 30%; }

/* ---------- About header: "power on" video, whole frame visible in a 16:9 frame ---------- */
.hero-logo .video-frame {
  width: min(560px, 100%); aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: #050b24;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .18), 0 22px 50px rgba(4, 12, 80, .45);
}
.about-video { display: block; width: 100%; height: 100%; object-fit: contain; }
.hero-logo:has(.video-frame) { justify-self: stretch; display: flex; justify-content: flex-end; }
@media (max-width: 860px) { .hero-logo:has(.video-frame) { justify-content: center; } }

/* ---------- Layout helpers (replace inline style="" so the CSP can forbid inline styles) ---------- */
.contact-split { padding: 0; }
.hero-404 { min-height: 60vh; display: flex; align-items: center; }
.hero-404 p, .hero-404 h1 { margin-left: auto; margin-right: auto; }
.btn-row.btn-row-center { justify-content: center; }
.mt-3 { margin-top: 3rem; }
section.pt-0 { padding-top: 0; }
.container.container-900 { max-width: 900px; }
.container.container-820 { max-width: 820px; }
.card.text-left { text-align: left; }
.split.split-top { align-items: start; }
.eyebrow.eyebrow-cyan { color: var(--cyan); }
.panel h3.panel-statement { font-size: 1.8rem; }
.panel h3.text-navy { color: var(--navy); }
.panel.panel-white { background: var(--white); }
.note-muted { margin-top: 2rem; color: var(--muted); }
.info-list-light, .info-list-light a, .info-list-light span { color: var(--navy); }
.info-list-light .label { color: var(--blue); }
.info-list-light a:hover { color: var(--blue); }
.empty-state a { color: var(--blue); font-weight: 600; }

/* Hero constellation: wire colours and animation start times */
.wire-green { --c: #01d781; }
.wire-yellow { --c: #ffca00; }
.wire-red { --c: #ff493b; }
.ad-0 { animation-delay: 0s !important; }
.ad-10 { animation-delay: .1s !important; }
.ad-20 { animation-delay: .2s !important; }
.ad-30 { animation-delay: .3s !important; }
.ad-50 { animation-delay: .5s !important; }
.ad-68 { animation-delay: .68s !important; }
.ad-86 { animation-delay: .86s !important; }
.ad-90 { animation-delay: .9s !important; }
.ad-100 { animation-delay: 1s !important; }
.ad-118 { animation-delay: 1.18s !important; }
.ad-130 { animation-delay: 1.3s !important; }
.ad-136 { animation-delay: 1.36s !important; }
.ad-160 { animation-delay: 1.6s !important; }
.ad-170 { animation-delay: 1.7s !important; }
.ad-180 { animation-delay: 1.8s !important; }
.ad-200 { animation-delay: 2s !important; }

/* Field-work photos: two per row on phones instead of one, so the home page is not so long */
@media (max-width: 760px) {
  .photo-grid.grid-3 { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .photo-grid .photo figcaption { font-size: .78rem; margin-top: .45rem; line-height: 1.35; }
  /* An odd last photo (e.g. 3 studio photos) spans the full row instead of sitting alone */
  .photo-grid.grid-3 > .photo:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .photo-grid.grid-3 > .photo:last-child:nth-child(odd) img { aspect-ratio: 16 / 10; }
}

/* =========================================================
   Card content animation (2026-12-03)
   Inside a card, the image, labels, title, text and links rise in
   one after another (--cd is set per element by main.js). Card photos
   come into focus, and a soft light sweep in the 7light logo colours
   (green, yellow, red) crosses them once on reveal and again on hover.
   ========================================================= */
.card .card-anim { transition: color .35s ease, transform .35s var(--ease-out); }
html:not(.no-js) .card.reveal:not(.visible) .card-anim { opacity: 0; }
.card.reveal.visible .card-anim { animation: card-text-in .85s var(--ease-out) calc(var(--d, 0s) + var(--cd, .4s)) backwards; }
@keyframes card-text-in { from { opacity: 0; transform: translateY(24px); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }
/* hover: the card you point at gets a gentle text response */
.card:hover h3.card-anim { transform: translateY(-3px); }
.card:hover p.card-anim { color: var(--navy); }
.card:hover .role.card-anim, .card:hover .tag.card-anim { transform: translateY(-2px); }
.card:hover .more.card-anim { transform: translateX(6px); }

/* photos: start zoomed and soft, settle into focus (an animation, not a transition, so hover zoom is not delayed) */
html:not(.no-js) .card.reveal:not(.visible) .card-photo img,
html:not(.no-js) .card.reveal:not(.visible) > img { transform: scale(1.18); filter: blur(8px); }
.card.reveal.visible .card-photo img, .team-card.reveal.visible > img { animation: focus-in 1.3s var(--ease-out) calc(var(--d, 0s) + .1s) backwards; }
@keyframes focus-in { from { transform: scale(1.18); filter: blur(8px); } to { transform: none; filter: none; } }
.team-card > img { transition: transform .6s var(--ease-out); }
.team-card.visible:hover > img { transform: scale(1.04); }

/* product cards: the coloured top bar draws in from the left */
.company-card .company-top { transform-origin: 0 50%; transition: transform .9s var(--ease-out); transition-delay: calc(var(--d, 0s) + .15s); }
html:not(.no-js) .company-card.reveal:not(.visible) .company-top { transform: scaleX(0); }

/* 7light logo glow: only on the card being hovered, the logo fades in faintly over its photo with a
   soft logo-colour wash, then fades out (2s). Cards that are not hovered do not change. */
.card-photo, .team-card { position: relative; }
.card-photo::after, .team-card::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; pointer-events: none; z-index: 1;
  background: url("../images/brand/logo-mark.svg") center / 30% auto no-repeat,
              linear-gradient(135deg, rgba(1, 215, 129, .20) 0%, rgba(255, 202, 0, .16) 50%, rgba(255, 73, 59, .18) 100%);
  opacity: 0;
}
.card-photo::after { bottom: 0; }
/* on team photos the logo sits in the lower-right corner so it never covers a face */
.team-card::after { aspect-ratio: 1 / 1; background-position: right 8% bottom 8%, 0 0; background-size: 22% auto, auto; }
.card.reveal.visible:hover .card-photo::after, .team-card.reveal.visible:hover::after { animation: logo-glow 2s ease-in-out 0s 1 both; }
@keyframes logo-glow { 0% { opacity: 0; } 40% { opacity: .5; } 100% { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  .card .card-anim, .card-photo img, .team-card > img, .company-card .company-top { opacity: 1 !important; transform: none !important; filter: none !important; }
  .card-photo::after, .team-card::after { display: none; }
}

/* PentaEdu demo video (products/penta-education.html) */
.demo-videos { max-width: 1160px; margin: 0 auto 2.2rem; gap: 2rem; }
.demo-video { margin: 0; }
.demo-video h3 { margin: 0 0 .8rem; text-align: center; font-family: var(--font-body); font-size: .95rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); }
.demo-frame { aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #0b1340; box-shadow: 0 18px 44px rgba(11, 19, 64, .18); }
.demo-frame video { display: block; width: 100%; height: 100%; object-fit: contain; background: #0b1340; }
.demo-video figcaption { margin-top: .8rem; text-align: center; font-size: .85rem; color: var(--muted); }
