/* ==========================================================================
   Polygram – base styles
   Fonts, design tokens, reset, typography, layout primitives, buttons,
   shared keyframes.
   ========================================================================== */

/* ---- Fonts (variable fonts, SIL Open Font License) --------------------- */
@font-face {
  font-family: "Overpass"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("../fonts/overpass-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Overpass"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("../fonts/overpass-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Overpass"; font-style: italic; font-weight: 100 900; font-display: swap;
  src: url("../fonts/overpass-italic-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Overpass"; font-style: italic; font-weight: 100 900; font-display: swap;
  src: url("../fonts/overpass-italic-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Overpass Mono"; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url("../fonts/overpass-mono-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Overpass Mono"; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url("../fonts/overpass-mono-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Rubik"; font-style: normal; font-weight: 300 900; font-display: swap;
  src: url("../fonts/rubik-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Rubik"; font-style: normal; font-weight: 300 900; font-display: swap;
  src: url("../fonts/rubik-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---- Design tokens ----------------------------------------------------- */
:root {
  /* text */
  --ink: #000;              /* links, menu, strong copy */
  --heading: #101621;       /* headings */
  --text: #4c5267;          /* default body copy */
  --muted: #adb1b5;         /* eyebrow labels */
  --grey: #54595f;          /* secondary icons, list text */
  --coral: #ff5c6e;         /* accent: rotating headline, button hover */
  --marker: rgba(241, 193, 83, .4); /* yellow highlighter behind words */

  /* surfaces (pastel tints used by panels, cards and icon circles) */
  --bg: #fff;
  --tint-grey: #f5f5f5;
  --tint-blue: #eaf1fa;
  --tint-sky: #e6f7ff;
  --tint-cream: #fff6ec;
  --tint-peach: #fff0e6;
  --tint-orange: #fff3e8;
  --tint-mint: #dff1ee;
  --tint-rose: #fcedee;
  --tint-lilac: #e6dcff;
  --tint-pink: #ffcef9;
  --tint-lime: #e8ffce;
  --tint-ice: #e5f1fa;
  --tint-haze: #f6fdff;     /* soft band between product blocks */

  --font: "Overpass", "Segoe UI", Helvetica, Arial, sans-serif;
  --font-alt: "Rubik", "Segoe UI", Helvetica, Arial, sans-serif;
  --font-mono: "Overpass Mono", Consolas, monospace;

  --container: 1170px;
  --header-h: 96px;         /* height of the stuck (scrolled) header */
  --ease: ease-in-out;
}

/* ---- Reset ------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  font-family: var(--font);
  font-weight: 400;
  font-size: 18px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, video { max-width: 100%; height: auto; vertical-align: middle; }
a { color: var(--ink); text-decoration: none; transition: color .3s var(--ease); }
strong, b { font-weight: 500; }
p { margin: 0 0 1.7em; }
ul, ol { margin: 0; padding: 0; }
button { font: inherit; color: inherit; cursor: pointer; }
::selection { background: #2a2a2a; color: #fff; }

h1, h2, h3, h4 { margin: 0; color: var(--heading); font-family: var(--font); }
h1 { font-weight: 900; }
h2 { font-weight: 800; }
h3 { font-weight: 600; }
h4 { font-weight: 600; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ---- Layout primitives -------------------------------------------------
   .container  – centred page column (1170px)
   .inset      – the usual 25px side inset of content inside a container
   .split      – two equal columns (stacks on mobile)                       */
.container { width: 100%; max-width: var(--container); margin: 0 auto; }
.inset { padding-left: 25px; padding-right: 25px; }
.inset--wide { padding-left: 10px; padding-right: 10px; }

.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 20px;
  row-gap: 30px;
  align-items: start;
}
.split--center { align-items: center; }
.split--gap { column-gap: 30px; }
.split > .media { text-align: center; }

.section { padding-top: 34px; padding-bottom: 34px; }
.text-center { text-align: center; }
.text-justify { text-align: justify; }
.text-black { color: var(--ink); }
.flush-last > :last-child { margin-bottom: 0; }

/* separator line between home/page sections */
.separator { padding: 34px 25px; text-align: center; }
.separator--tight { padding-top: 10px; padding-bottom: 10px; }
.separator img { width: 100%; }

/* ---- Typography helpers ------------------------------------------------ */
/* small uppercase label above a title */
.eyebrow {
  margin: 0;
  padding-bottom: 7px;
  font-size: 16px;
  line-height: 1.7;
  letter-spacing: 1.12px;
  text-transform: uppercase;
  color: var(--muted);
}

/* large light intro paragraph under page / section titles */
.lead {
  margin: 24px;
  padding: 24px;
  font-size: 27px;
  font-weight: 300;
  line-height: 1.7;
  text-align: center;
  color: var(--ink);
}
.lead strong { font-weight: 500; }

/* bigger body copy used on the home page feature rows */
.copy-lg { font-size: 22px; line-height: 36px; color: #020101; text-align: justify; }

/* dashed underline used to emphasise keywords */
.dashed strong, .dashed u, u.dashed {
  text-decoration: underline;
  text-decoration-style: dashed;
  text-decoration-thickness: 1px;
  text-underline-position: under;
}

/* yellow highlighter behind a word: <span class="marker">word</span> */
.marker { position: relative; z-index: 1; display: inline-block; }
.marker::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 12px;
  z-index: -1;
  width: 100%;
  height: 25px;
  background: var(--marker);
}

/* hand-drawn underline below a word: <span class="scribble">word</span> */
.scribble { position: relative; white-space: nowrap; }
.scribble::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 4px;
  height: 19px;
  background: url("../img/decor/heading-underline.svg") no-repeat center / 100% 100%;
}

/* ---- Buttons ----------------------------------------------------------- */
/* outlined, square-ish: "INSIGHT →", "LEARN MORE →" */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 20px 20px 16px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  color: var(--ink);
  background: transparent;
  transition: background .3s, color .3s, border-color .3s;
}
.btn svg { width: 14px; height: 16px; fill: currentColor; margin-top: -4px; }
.btn:hover, .btn:focus-visible { background: var(--ink); color: var(--tint-grey); }

/* black pill: "CONTACT US" */
.btn-pill {
  display: inline-block;
  padding: 24px 42px;
  border-radius: 36px;
  font-size: 20px;
  font-weight: 300;
  line-height: 1;
  color: var(--tint-grey);
  background: var(--ink);
  transition: background .3s;
}
.btn-pill:hover, .btn-pill:focus-visible { color: var(--tint-grey); background: var(--coral); }

/* ---- Shared animations ------------------------------------------------- */
/* floating up/down (illustrations, buttons) */
@keyframes jump-up { 0%, 100% { transform: translate3d(0, 0, 0); } 40% { transform: translate3d(0, -20px, 0); } }
@keyframes jump-down { 0%, 100% { transform: translate3d(0, 0, 0); } 40% { transform: translate3d(0, 20px, 0); } }
@keyframes rotate-cw { to { transform: rotate(360deg); } }
@keyframes rotate-ccw { to { transform: rotate(-360deg); } }
@keyframes pulse-small { 0%, 100% { transform: scale(1); } 40% { transform: scale(.5); } }
@keyframes pulse-big { 0%, 100% { transform: scale(1); } 40% { transform: scale(2); } }
/* hover "bob" (from Elementor's hover animations) */
@keyframes bob-float { 100% { transform: translateY(-8px); } }
@keyframes bob { 0%, 100% { transform: translateY(-8px); } 50% { transform: translateY(-4px); } }

.float-up { animation: jump-up 2s linear infinite; }
.float-down { animation: jump-down 2s linear infinite; }
.bob:hover, .bob:focus-visible {
  animation: bob-float .3s ease-out forwards, bob 1.5s ease-in-out .3s infinite alternate;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}

/* ---- Responsive -------------------------------------------------------- */
@media (max-width: 1199px) {
  .container { max-width: 960px; padding-left: 15px; padding-right: 15px; }
}
@media (max-width: 991px) {
  .container { max-width: 720px; }
}
@media (max-width: 767px) {
  .container { max-width: none; }
}
@media (max-width: 767px) {
  .split { grid-template-columns: minmax(0, 1fr); }
  .inset, .inset--wide { padding-left: 10px; padding-right: 10px; }
  .lead { font-size: 23px; padding: 4px; }
  .separator { padding: 24px 10px; }
}
