/* Cyber L33T — responsive rebuild of the live Wix design.
   Colours, gradients and panel geometry were read off the live site's
   computed styles, not eyeballed. No build step, no JS. */

/* ponytail: self-hosted Poppins (latin subset, 8KB each). Wix pulls these
   from static.parastorage; hosting them ourselves keeps the page on one
   origin so a strict CSP stays possible. */
@font-face {
  font-family: Poppins; font-style: normal; font-weight: 400; font-display: swap;
  src: url("/assets/fonts/poppins-400.woff2") format("woff2");
}
@font-face {
  font-family: Poppins; font-style: normal; font-weight: 600; font-display: swap;
  src: url("/assets/fonts/poppins-600.woff2") format("woff2");
}
@font-face {
  font-family: Poppins; font-style: normal; font-weight: 700; font-display: swap;
  src: url("/assets/fonts/poppins-700.woff2") format("woff2");
}

:root {
  --bg: #f2f2f2;             /* site background */
  --ink: #191919;            /* header + footer bar */
  --charcoal: #323232;       /* Our Story dark panel */
  --text: #3a3a3a;
  --slate-bg: #a9b9c2;       /* base behind the split sections */
  --slate-block: #7d9cab;    /* Get in Touch slate column */
  --mission: rgba(105, 142, 162, 0.7);
  --terracotta: #daa17d;
  --navy: #34508f;
  --navy-hover: #2a4177;
  --steel: #5f7d99;          /* inner-page subheading */
  --gold: #e8c547;
  --wrap: 1120px;
  --font: Poppins, "Century Gothic", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 1.35rem; }

/* ---------- header ---------- */

.site-header { background: var(--ink); color: #fff; position: sticky; top: 0; z-index: 100; }
.site-header .wrap { display: flex; align-items: center; gap: 1rem; padding-block: 0.9rem; position: relative; }
.logo { display: flex; align-items: center; }
/* ponytail: the mark's viewBox is 826x137, so size by height or it renders
   as wide as the whole column. */
.logo img { height: 34px; width: auto; }

/* CSS-only menu: <details> holds ONLY the toggle; the list is a sibling shown
   via .menu[open] ~ .nav. Keeping the list inside a closed <details> made it
   compute to zero width on desktop and spill its links off-screen. */
.menu { margin-left: auto; }
.menu summary {
  list-style: none; cursor: pointer; width: 42px; height: 34px;
  border-radius: 7px; background: rgba(255,255,255,0.16);
  display: grid; place-content: center; gap: 4px;
}
.menu summary::-webkit-details-marker { display: none; }
.menu summary span { display: block; width: 18px; height: 2px; background: #fff; }
.menu[open] summary { background: rgba(255,255,255,0.3); }

.nav {
  display: none;
  position: absolute; right: 1.35rem; top: calc(100% + 0.4rem);
  background: var(--ink); border: 1px solid rgba(255,255,255,0.18);
  border-radius: 10px; padding: 0.5rem; margin: 0; list-style: none;
  min-width: 220px; box-shadow: 0 12px 30px rgba(0,0,0,0.35);
}
.menu[open] ~ .nav { display: block; }

.nav a {
  display: block; color: #fff; text-decoration: none;
  padding: 0.6rem 0.8rem; border-radius: 6px; font-size: 0.95rem;
}
.nav a:hover, .nav a:focus-visible { background: rgba(255,255,255,0.12); }
.nav a[aria-current="page"] { color: #9fd0ef; }

@media (min-width: 900px) {
  .menu { display: none; }
  .nav {
    display: flex; position: static; margin-left: auto; gap: 0.25rem;
    background: none; border: 0; box-shadow: none; padding: 0; min-width: 0;
  }
  .nav a { padding: 0.4rem 0.7rem; font-size: 0.88rem; }
}

/* ---------- home: one continuous backdrop ---------- */

/* The live site runs a single photo at 50% opacity over a diagonal gradient,
   behind the headline, the mission panel AND the audience cards. Splitting
   that into separate sections is what made the image look chopped off. */
.showcase {
  position: relative; isolation: isolate;
  background: linear-gradient(225deg, #fec1b4 4.2%, #ccd5d2 22.7%, #7899a9 47.6%, #698ea2 100%);
}
.showcase::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: url("/media/hero-home.jpg") center/cover no-repeat;
  opacity: 0.5;
}

.showcase-head { padding-block: clamp(2.5rem, 10vw, 6rem) clamp(1.75rem, 6vw, 3rem); }
.showcase-head h1 {
  font-size: clamp(2.35rem, 9.5vw, 4.5rem); line-height: 1.12; margin: 0;
  font-weight: 700; color: #fff; max-width: 14ch; letter-spacing: -0.01em;
}

/* an inset panel, not a full-bleed band -- the photo needs to run past it on
   both sides or the hero reads as a chopped-off strip */
.mission-panel {
  background: var(--mission); color: #fff;
  padding: clamp(1.25rem, 4.5vw, 1.9rem) clamp(1.25rem, 4vw, 1.9rem);
}
.mission h2 { font-size: clamp(1.15rem, 4.6vw, 1.6rem); margin: 0 0 0.5rem; color: #fff; font-weight: 400; }
.mission h2 b { font-weight: 700; }
.mission p { margin: 0; font-size: clamp(0.95rem, 3.2vw, 1.05rem); }

/* ---------- audience cards (frosted glass panel) ---------- */

.audiences { padding-block: clamp(2.25rem, 8vw, 3.75rem); }
.audience-list {
  list-style: none; margin: 0; display: grid;
  gap: clamp(2rem, 6vw, 2.5rem);
  /* the live site's signature panel: translucent, blurred, 30px radius */
  background: rgba(242, 242, 242, 0.5);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-radius: 30px; padding: clamp(1.75rem, 6vw, 3rem) clamp(1.25rem, 4vw, 2.5rem);
}
.audience { text-align: center; }
.audience img {
  width: clamp(130px, 36vw, 175px); aspect-ratio: 1; object-fit: cover;
  border-radius: 50%; margin: 0 auto 1.1rem;
}
.audience h3 { font-size: clamp(1.1rem, 4.2vw, 1.3rem); margin: 0 0 0.6rem; color: var(--ink); font-weight: 600; }
.audience p { margin: 0 auto; max-width: 32ch; font-size: 0.95rem; }

@media (min-width: 760px) {
  .audience-list { grid-template-columns: repeat(3, 1fr); align-items: start; }
}

/* ---------- our story (full-bleed split) ---------- */

.story { background: var(--slate-bg); display: grid; }
.story-panel { padding: clamp(2.25rem, 8vw, 4.5rem) 1.35rem; display: grid; align-content: center; }
.story-panel--light {
  background: #fff;
  /* the faint hexagon of dots sitting behind "Our Story" on the live site */
  background-image: url("/media/hex-dots.png");
  background-repeat: no-repeat; background-position: center;
  background-size: clamp(220px, 55vw, 430px);
}
.story-panel--light h2 {
  font-size: clamp(2.5rem, 11vw, 4rem); line-height: 1.05; margin: 0;
  color: #4a4a4a; font-weight: 700; text-align: center;
}
.story-panel--dark { background: var(--charcoal); color: #f2f2f2; }
.story-panel--dark p { margin: 0; font-size: clamp(0.95rem, 3.2vw, 1.05rem); max-width: 42ch; }
.story mark { background: none; color: var(--gold); font-weight: 600; }

@media (min-width: 860px) {
  .story { grid-template-columns: 1fr 1fr; }
  /* live runs these panels ~500px tall; without a floor they collapse to the
     text height and the split stops reading as two blocks */
  .story-panel { padding-inline: clamp(2rem, 5vw, 4rem); min-height: clamp(340px, 33vw, 500px); }
  .story-panel--light h2 { text-align: left; }
}

/* ---------- get in touch (full-bleed colour blocks) ---------- */

.contact { background: var(--slate-bg); display: grid; }
.contact-blocks { display: grid; }
.contact-copy {
  background: var(--slate-block); color: #fff;
  padding: clamp(2.25rem, 8vw, 4.5rem) 1.35rem;
  /* mobile keeps the terracotta as a top band so the palette survives */
  border-top: 14px solid var(--terracotta);
}
.contact-copy h2 { font-size: clamp(2.25rem, 10vw, 3.5rem); line-height: 1.05; margin: 0 0 0.5rem; color: #fff; font-weight: 700; }
.contact-copy p { margin: 0; font-size: clamp(1rem, 3.6vw, 1.15rem); color: rgba(255,255,255,0.92); }

.contact-action {
  background: var(--bg); padding: clamp(2.25rem, 8vw, 4.5rem) 1.35rem;
  display: grid; align-content: center; justify-items: start; gap: 0.75rem;
}
.contact-action .label { margin: 0; font-size: 0.95rem; color: #666; }
.contact-email a { word-break: break-word; }
.contact-email { margin: 0; }

@media (min-width: 860px) {
  .contact { grid-template-columns: 3fr 5fr; }
  .contact-copy, .contact-action { min-height: clamp(340px, 33vw, 500px); }
  .contact-copy {
    /* terracotta then slate, mirroring the live site's colour split */
    background: linear-gradient(90deg, var(--terracotta) 0 58%, var(--slate-block) 58% 100%);
    border-top: 0; display: grid; align-content: center; justify-items: end;
    text-align: right; padding-inline: clamp(2rem, 4vw, 3rem);
  }
  .contact-action { padding-inline: clamp(2.5rem, 6vw, 5rem); }
}

/* ---------- buttons ---------- */

.btn {
  display: inline-block; text-align: center;
  background: var(--navy); color: #fff; border: 0; border-radius: 8px;
  font: inherit; font-size: 1.05rem; font-weight: 600;
  padding: 0.8rem 1.3rem; cursor: pointer; text-decoration: none;
}
.btn:hover, .btn:focus-visible { background: var(--navy-hover); }

/* ---------- inner pages: video hero ---------- */

.hero { position: relative; overflow: hidden; background: var(--ink); }
.hero-video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 0;
}
.hero .wrap {
  position: relative; z-index: 2;
  padding-block: clamp(3.5rem, 14vw, 7rem) clamp(4rem, 12vw, 8rem);
  min-height: clamp(320px, 52vw, 560px); display: grid; align-content: start;
}
.hero h1 {
  font-size: clamp(2.35rem, 8.5vw, 4.25rem); line-height: 1.12; margin: 0;
  font-weight: 700; color: #fff; max-width: 15ch;
  text-shadow: 0 2px 18px rgba(0,0,0,0.35);
}
/* the layered wave the live site uses to break out of every inner hero.
   auto/100% reproduces Wix's preserveAspectRatio="slice" — it crops the
   1920-wide shape rather than squashing it on a phone. */
.hero-wave {
  position: absolute; left: 0; right: 0; bottom: -1px; z-index: 3;
  height: clamp(34px, 5.5vw, 100px); pointer-events: none;
  background: url("/assets/wave.svg") bottom center / auto 100% no-repeat;
}

.page-intro { background: var(--bg); text-align: center; }
.page-intro .wrap { padding-block: clamp(2rem, 7vw, 3.25rem); }
.page-intro h2 {
  font-size: clamp(1.5rem, 5.5vw, 2.5rem); line-height: 1.25; margin: 0;
  color: var(--steel); font-weight: 700; max-width: 22ch; margin-inline: auto;
}

/* one continuous wash from the page background into the peach, the way the
   live page fades rather than butting a hard-edged block against white */
.services { background: linear-gradient(180deg, var(--bg) 0%, #fbe3d9 45%, #ffc0ac 100%); }
.services .wrap { padding-block: clamp(1rem, 4vw, 2rem) clamp(2.5rem, 8vw, 4rem); text-align: center; }
.services > .wrap > h2 {
  font-size: clamp(1.7rem, 6vw, 2.5rem); margin: 0 0 1.75rem; color: var(--ink); font-weight: 700;
}
.services .prose p { max-width: 62ch; margin: 0 auto 1.25rem; }
.service-list { list-style: none; padding: 0; margin: 2.5rem 0 0; display: grid; gap: clamp(2rem, 6vw, 2.5rem); }
.service h3 { font-size: clamp(1.1rem, 4.2vw, 1.3rem); margin: 0.9rem 0 0.75rem; color: var(--ink); font-weight: 600; }
.service p { margin: 0 auto; max-width: 34ch; font-size: 0.95rem; }
/* ponytail: .icon is a <span>; without display:block the width is ignored and
   the SVG stretches to the column. */
.service .icon { display: block; width: 46px; height: 46px; margin: 0 auto; color: var(--navy); }
.service .icon svg { width: 100%; height: 100%; display: block; }
.services .cta { margin-top: 2.5rem; }

@media (min-width: 760px) {
  .service-list { grid-template-columns: repeat(3, 1fr); align-items: start; }
}

/* ---------- footer ---------- */

.site-footer { background: var(--ink); color: rgba(255,255,255,0.85); }
.site-footer .wrap {
  padding-block: clamp(1.5rem, 5vw, 2rem);
  display: grid; gap: 1rem; justify-items: center; text-align: center;
}
.site-footer .brand { display: grid; justify-items: center; gap: 0.35rem; }
.site-footer .flogo { height: 30px; width: auto; }
.site-footer p { margin: 0; font-size: 0.9rem; }
.site-footer .ae {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.8rem; color: rgba(255,255,255,0.6); text-decoration: none;
}
.site-footer .ae img { height: 15px; width: auto; opacity: 0.75; }
.site-footer .ae:hover img, .site-footer .ae:focus-visible img { opacity: 1; }
/* :visited named explicitly or the UA's purple wins against the dark footer */
.site-footer a, .site-footer a:visited { color: rgba(255,255,255,0.75); }
.site-footer a:hover, .site-footer a:focus-visible { color: #fff; }
.site-footer .copy { font-size: 0.78rem; color: rgba(255,255,255,0.55); }

@media (min-width: 760px) {
  .site-footer .wrap {
    grid-template-columns: 1fr auto 1fr; align-items: center; text-align: left;
  }
  .site-footer .legal { justify-self: start; display: grid; gap: 0.3rem; }
  .site-footer .brand { grid-column: 2; }
  .site-footer .spacer { grid-column: 3; }
}

/* ---------- floating back-to-top ---------- */

/* ponytail: plain anchor to #top, no JS. */
.to-top {
  position: fixed; right: 1rem; bottom: 1rem; z-index: 90;
  width: 46px; height: 46px; border-radius: 50%;
  background: #2b2b2b; color: #fff; text-decoration: none;
  display: grid; place-content: center; box-shadow: 0 4px 14px rgba(0,0,0,0.3);
}
.to-top:hover, .to-top:focus-visible { background: #444; }

/* ---------- a11y ---------- */

.skip { position: absolute; left: -9999px; background: var(--navy); color: #fff; padding: 0.75rem 1rem; z-index: 200; }
.skip:focus { left: 0.5rem; top: 0.5rem; }
:focus-visible { outline: 3px solid var(--navy); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  /* a looping background video is motion; show the poster frame instead */
  .hero-video { display: none; }
}
