/* NexAI STEM: the logo's navy, blue and pink */
:root {
  /* The three logo colours */
  --navy: #123244;
  --blue: #2578A0;
  --orange: #F060A8;
  /* Tints and shades of those colours */
  --blue-dark: #1A6482;
  --orange-dark: #D8468F;
  --muted: #51707C;
  --line: #CBE1E4;
  --line-soft: #E1EDEF;
  --mist: #F2F8F8;
  --tint: #E2F2F1;
  --on-dark: #D7EEF0;
  --white: #FFFFFF;
  /* Side margin, like LEGO Education: grows with the screen up to 120px,
     and content keeps widening until the page is 1800px wide */
  --side: max(20px, min(calc(12vw - 56px), 120px), calc((100vw - 1800px) / 2 + 120px));
  --sans: "Open Sans", "Lucida Grande", Verdana, sans-serif;
  --mono: "Roboto Mono", Menlo, Consolas, monospace;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--sans); font-size: 16px; line-height: 1.6; letter-spacing: 0.01em; color: var(--navy); background: var(--white); }
img { max-width: 100%; display: block; }
h1, h2, h3 { margin: 0; color: var(--navy); font-weight: 700; text-wrap: balance; }
h1 { font-size: clamp(34px, 4vw, 52px); line-height: 1.16; }
h2 { font-size: clamp(26px, 2.7vw, 36px); line-height: 1.22; }
h3 { font-size: 20px; line-height: 1.3; }
p, ul, ol { margin: 0; }
a { color: var(--blue); }
a:hover { color: var(--blue-dark); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.bg-dark :focus-visible, .bg-blue :focus-visible { outline-color: var(--white); }

.wrap { margin: 0; padding-inline: max(var(--side), env(safe-area-inset-left, 0px)) max(var(--side), env(safe-area-inset-right, 0px)); }
.section { padding-block: clamp(40px, 4.4vw, 64px); }
.stack { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.section-head { display: flex; flex-direction: column; gap: 12px; margin-bottom: 40px; max-width: 760px; }
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: clamp(32px, 5vw, 72px); align-items: center; }
.lead { font-size: 18px; max-width: 36em; }
.label { font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--blue); }
.small { font-size: 13px; color: var(--muted); }
.bg-mist { background: var(--mist); }
.bg-dark { background: var(--navy); color: var(--on-dark); }
.bg-dark h1, .bg-dark h2, .bg-dark h3 { color: var(--white); }
.bg-dark .label { color: var(--orange); }
.bg-blue { background: var(--blue); color: var(--white); }
.bg-blue h2 { color: var(--white); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 24px; border: 1.5px solid transparent; border-radius: 32px; font-family: var(--sans); font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none; cursor: pointer; transition: background-color 0.15s ease, color 0.15s ease; }
.btn-orange { background: var(--orange); color: var(--navy); }
.btn-orange:hover { background: var(--orange-dark); color: var(--navy); }
.btn-line { border-color: var(--white); color: var(--white); background: transparent; }
.btn-line:hover { background: var(--white); color: var(--navy); }
.btn-white { background: var(--white); color: var(--navy); }
.btn-white:hover { background: var(--line-soft); color: var(--navy); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.text-link { font-weight: 700; color: var(--blue); text-decoration: none; }
.text-link:hover { text-decoration: underline; }

/* Header: logo, stacked name as in the logo, centred pill navigation */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: var(--white); border-bottom: 1px solid var(--line-soft); display: flex; flex-wrap: wrap; align-items: center; padding-inline: var(--side); }
.logo { display: flex; align-items: center; gap: 12px; padding-block: 10px; text-decoration: none; }
.logo img { height: 56px; width: auto; }
.wordmark { display: flex; flex-direction: column; align-items: center; font-family: Montserrat, var(--sans); color: var(--navy); line-height: 1; }
.wm-top { font-size: 21px; font-weight: 800; letter-spacing: 0.02em; }
.wm-bottom { display: flex; align-items: center; gap: 7px; margin-top: 5px; font-size: 11px; font-weight: 600; letter-spacing: 0.38em; margin-right: -0.38em; }
.wm-bottom::before, .wm-bottom::after { content: ""; width: 14px; height: 2px; background: var(--orange); }
.wm-bottom::after { margin-left: -0.38em; }
.site-nav { flex: 1 1 auto; display: flex; align-items: center; gap: 4px; font-size: 15px; font-weight: 600; }
.site-nav a:not(.btn) { padding: 8px 16px; border-radius: 32px; color: var(--navy); text-decoration: none; transition: background-color 0.15s ease; }
.site-nav a:not(.btn):first-child { margin-left: auto; }
.site-nav a:not(.btn):hover { background: var(--mist); color: var(--navy); }
.site-nav a[aria-current="page"] { background: var(--tint); color: var(--blue-dark); font-weight: 700; }
.site-nav .btn { margin-left: auto; }
.menu-toggle { display: none; margin-left: auto; min-height: 44px; padding: 8px 18px; font: inherit; font-size: 14px; font-weight: 700; color: var(--navy); background: var(--line-soft); border: 0; border-radius: 32px; cursor: pointer; }

@media (max-width: 960px) {
  .menu-toggle { display: block; }
  .logo img { height: 46px; }
  .wm-top { font-size: 18px; }
  .wm-bottom { font-size: 9.5px; }
  .site-nav { display: none; flex-basis: 100%; flex-direction: column; align-items: stretch; padding-bottom: 14px; }
  .site-nav.open { display: flex; }
  .site-nav a:not(.btn):first-child { margin-left: 0; }
  .site-nav .btn { margin: 8px 0 0; }
}

/* Hero: the whole image always shows; the text sits beside it */
.hero { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 4vw, 64px); align-items: center; padding-block: clamp(44px, 5vw, 72px); }
.hero-text { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.hero-image { margin: 0; min-width: 0; }
.hero-image img { width: 100%; height: auto; border-radius: 8px; }
.hero-note { margin-top: 8px; font-size: 13px; color: var(--on-dark); }
@media (max-width: 900px) { .hero { grid-template-columns: minmax(0, 1fr); } }
.page-hero { padding-block: clamp(48px, 6vw, 80px); }
.page-hero .stack { max-width: 800px; }

/* Partner strip */
.partners { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; padding-block: 28px; }
.partners-title { flex: 1 1 170px; font-size: 14px; font-weight: 600; color: var(--muted); }
.partner-grid { flex: 4 1 540px; min-width: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 12px; }
.todo { border: 1px dashed var(--line); border-radius: 6px; padding: 14px 10px; text-align: center; font-size: 13px; color: var(--muted); background: var(--white); }

/* Image cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 24px; }
.card { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line-soft); border-radius: 8px; overflow: hidden; transition: box-shadow 0.15s ease; }
.card:hover { box-shadow: 0 6px 24px rgba(18, 50, 68, 0.12); }
.card img { width: 100%; height: auto; }
.card-body { flex: 1; display: flex; flex-direction: column; gap: 8px; padding: 22px; }
.card-body .text-link { margin-top: auto; padding-top: 8px; font-size: 14px; }

/* Plain text cards */
.tile { display: flex; flex-direction: column; gap: 8px; padding: 24px; background: var(--white); border: 1px solid var(--line-soft); border-radius: 8px; }
.tile .text-link { margin-top: auto; padding-top: 8px; font-size: 14px; }

/* Band */
.band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 48px; padding-block: 40px; }
.band h2 { flex: 1 1 520px; font-size: clamp(21px, 2.1vw, 28px); line-height: 1.3; }

/* Kit */
.parts { padding-left: 18px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: 4px 24px; }
.picture { width: 100%; height: auto; border-radius: 8px; }

/* Learning path and steps share one ruled-column layout */
.columns { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 32px 28px; }
.columns li { display: flex; flex-direction: column; gap: 8px; padding-top: 18px; border-top: 3px solid var(--orange); }

/* Photos */
.photo img { width: 100%; height: auto; border-radius: 8px; }
.photo-tall img { width: auto; max-width: 100%; max-height: 560px; margin-inline: auto; }

/* Stats and quote */
.stats { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 16px; }
.stats div { display: flex; flex-direction: column-reverse; justify-content: flex-end; }
.stats dt { font-size: 14px; }
.stats dd { margin: 0; font-size: 36px; font-weight: 700; line-height: 1.25; color: var(--white); }
.quote { margin: 0; padding-left: 18px; border-left: 3px solid var(--orange); }
.quote blockquote { margin: 0 0 6px; font-size: 18px; }
.quote figcaption { font-size: 14px; font-weight: 700; }

/* Bullets */
.ticks { padding-left: 18px; display: flex; flex-direction: column; gap: 4px; }

/* Team */
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 16px; }
.team-grid .todo { padding-block: 56px; }

/* Contact and form */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr)); gap: clamp(32px, 5vw, 72px); align-items: start; }
.contact-lines { display: flex; flex-direction: column; gap: 4px; font-weight: 600; }
.info-card { display: flex; flex-direction: column; gap: 6px; padding: 28px; background: var(--white); border: 1px solid var(--line); border-top: 3px solid var(--orange); border-radius: 8px; }
.info-card h2 { font-size: clamp(24px, 2.2vw, 30px); margin-bottom: 8px; }
.info-row { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; align-items: start; padding-block: 16px; border-top: 1px solid var(--line-soft); overflow-wrap: anywhere; }
.info-icon { width: 44px; height: 44px; padding: 10px; color: var(--blue); background: var(--tint); border-radius: 50%; }
.info-title { margin-bottom: 2px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.info-row a { font-weight: 600; }
.info-row p { margin-bottom: 6px; }
@media (max-width: 480px) {
  .info-card { padding: 22px 18px; }
  .info-row { grid-template-columns: 36px minmax(0, 1fr); gap: 12px; }
  .info-icon { width: 36px; height: 36px; padding: 8px; }
  .info-row a { font-size: 15px; }
}
.form { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 18px; padding: 28px; background: var(--white); border: 1px solid var(--line); border-top: 3px solid var(--orange); border-radius: 8px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field.full, .form .btn, .form-status { grid-column: 1 / -1; }
.field label { font-size: 14px; font-weight: 600; color: var(--navy); }
.field input, .field select, .field textarea { width: 100%; min-height: 44px; padding: 10px 12px; font: inherit; color: var(--navy); background: var(--white); border: 1px solid var(--line); border-radius: 4px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blue); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-note { grid-column: 1 / -1; margin-top: -6px; }
.form { position: relative; }
.form .btn:disabled { opacity: 0.6; cursor: wait; }
.form-status { font-size: 14px; font-weight: 600; color: var(--blue-dark); }
.form-status:empty { display: none; }

/* Footer: soft grey with an orange top line, full logo, icon rows, navy base strip */
.site-footer { background: var(--mist); color: var(--navy); font-size: 15px; border-top: 3px solid var(--orange); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr) minmax(0, 1.3fr) minmax(0, 1.35fr); gap: 36px 36px; align-items: start; padding-block: 56px 48px; }
.footer-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.footer-brand p { max-width: 26em; color: var(--muted); }
.footer-logo { width: 210px; height: auto; }
@media (max-width: 560px) { .footer-logo { width: 180px; } }
.footer-grid h2 { position: relative; margin-bottom: 18px; padding-bottom: 10px; font-family: Montserrat, var(--sans); font-size: 14px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--navy); }
.footer-grid h2::after { content: ""; position: absolute; left: 0; bottom: 0; width: 28px; height: 3px; border-radius: 2px; background: var(--orange); }
.footer-grid ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.site-footer a { color: var(--navy); text-decoration: none; }
.f-links a { display: inline-block; transition: color 0.15s ease, transform 0.15s ease; }
.f-links a:hover { color: var(--blue); transform: translateX(4px); }
.f-contact li, .f-address { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 10px; align-items: start; overflow-wrap: anywhere; }
.f-contact a:hover { color: var(--blue); text-decoration: underline; }
.f-icon { width: 32px; height: 32px; padding: 7px; color: var(--blue); background: var(--white); border: 1px solid var(--line); border-radius: 50%; }
.f-contact li a, .f-address p { padding-top: 5px; line-height: 1.5; }
.footer-base { background: var(--navy); color: var(--on-dark); font-size: 13px; }
.footer-base-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-block: 16px; }
.footer-tagline { font-family: Montserrat, var(--sans); font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--white); }
.footer-tagline i { font-style: normal; color: var(--orange); padding-inline: 4px; }
@media (max-width: 1000px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: minmax(0, 1fr); } }
@media (prefers-reduced-motion: reduce) { .f-links a { transition: none; } .f-links a:hover { transform: none; } }

/* About page: the full logo at its largest */
.about-logo { width: min(100%, 380px); height: auto; justify-self: center; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .card { transition: none; }
}

/* Cards sized by image shape: every image in a row gets the same height, uncropped */
.fit-rows { display: flex; flex-direction: column; gap: 24px; }
.fit-row { display: flex; gap: 24px; }
.fit-card { flex: var(--r) 1 0%; min-width: 0; }
@media (max-width: 900px) {
  .fit-row { flex-direction: column; }
  .fit-card { flex: none; }
}

/* Tall photo beside text */
.portrait-row { display: flex; align-items: center; gap: clamp(32px, 5vw, 72px); }
.portrait-row > .stack { flex: 1 1 0; }
.portrait-row > .photo-tall { flex: none; }
@media (max-width: 760px) {
  .portrait-row { flex-direction: column; align-items: stretch; }
  .portrait-row > .stack { flex: none; }
}

/* Full-width photo with the words over its lower-left corner (Home, For Schools, For Students) */
.hero-bleed { position: relative; background: var(--white); }
.hero-bleed > img { width: 100%; height: auto; }
.hero-overlay { position: absolute; inset: 0; display: flex; transition: opacity 0.1s linear; align-items: flex-end; background: linear-gradient(to right, rgba(12, 16, 22, 0.72) 0%, rgba(12, 16, 22, 0.35) 42%, rgba(12, 16, 22, 0) 62%), linear-gradient(to top, rgba(12, 16, 22, 0.6) 0%, rgba(12, 16, 22, 0) 50%); color: var(--white); }
.hero-overlay .wrap { width: 100%; display: flex; justify-content: flex-start; padding-block: 0 clamp(36px, 3.5vw, 56px); }
.hero-overlay .stack { max-width: 600px; gap: 14px; }
.hero-overlay h1 { color: var(--white); font-size: clamp(32px, 3vw, 46px); text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35); }
.hero-overlay .label { color: #FBD6EA; }
.hero-overlay .lead { color: #F2F5F9; font-size: 16px; text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4); }
.hero-tag { position: absolute; top: 14px; right: var(--side); padding: 3px 10px; font-size: 12px; color: var(--white); background: rgba(12, 16, 22, 0.6); border-radius: 4px; }
@media (max-width: 1099px) {
  .hero-overlay { position: static; background: var(--white); color: var(--navy); }
  .hero-overlay .wrap { display: block; padding-block: 36px 48px; }
  .hero-overlay .stack { max-width: 760px; }
  .hero-overlay h1, .hero-overlay .lead { text-shadow: none; }
  .hero-overlay .lead { font-size: 18px; }
  .hero-overlay h1 { color: var(--navy); }
  .hero-overlay .label { color: var(--blue); }
  .hero-overlay .lead { color: var(--navy); }
  .hero-overlay .btn-line { border-color: var(--navy); color: var(--navy); }
  .hero-overlay .btn-line:hover { background: var(--navy); color: var(--white); }
}

/* Home, Arduino-style: the photo stays in place while the next sections slide over it.
   It pins only once its bottom edge reaches the bottom of the screen, so none of it is cut off. */
@media (min-width: 1100px) {
  .hero-bleed { position: sticky; top: min(var(--header-h, 76px), calc(100vh - var(--img-h, 56.19vw))); z-index: 0; }
  .hero-bleed ~ section { position: relative; z-index: 1; }
  :where(.hero-bleed ~ section) { background-color: var(--white); }
}

/* Three side-by-side panels */
.panels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); box-shadow: 0 -10px 30px rgba(12, 16, 22, 0.18); }
.panel { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: clamp(40px, 4vw, 64px) clamp(20px, 3vw, 40px); text-align: center; }
.panel h2 { font-size: clamp(22px, 2vw, 28px); }
.panel img { width: auto; max-width: 100%; max-height: 230px; margin-block: 18px 22px; border-radius: 8px; }
.panel .btn { margin-top: auto; }
.panel-light { background: #EAF5F4; }
.panel-dark { background: var(--navy); color: var(--on-dark); }
.panel-dark h2 { color: var(--white); }
.panel-tint { background: #DFF2F0; }
.panel-tint h2 { color: var(--blue-dark); }
.btn-navy-line { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-navy-line:hover { background: var(--navy); color: var(--white); }
@media (max-width: 900px) { .panels { grid-template-columns: minmax(0, 1fr); } }

/* Wide rounded banner */
.banner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: center; padding: clamp(28px, 4vw, 56px); background: var(--blue); color: var(--white); border-radius: 12px; }
.banner h2 { color: var(--white); }
.banner .label { color: #FBD6EA; }
.banner img { width: 100%; height: auto; border-radius: 8px; }
@media (max-width: 900px) { .banner { grid-template-columns: minmax(0, 1fr); } }

/* Full-width dark band */
.band-dark { background: var(--navy); color: var(--on-dark); }
.band-dark h2 { color: var(--white); }
.band-dark .label { color: var(--orange); }

/* Three coloured cards with tags */
.audience { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 20px; }
.aud-card { display: flex; flex-direction: column; gap: 12px; padding: 32px; border-radius: 10px; }
.aud-card h3 { font-size: clamp(22px, 2vw, 28px); color: inherit; }
.aud-card .btn { margin-top: auto; align-self: flex-start; }
.chip { align-self: flex-start; padding: 3px 9px; border-radius: 4px; font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; }
.aud-navy { background: var(--navy); color: var(--white); }
.aud-navy .chip { background: var(--orange); color: var(--navy); }
.aud-blue { background: var(--blue); color: var(--white); }
.aud-blue .chip { background: var(--white); color: var(--blue-dark); }
.aud-orange { background: var(--orange); color: var(--navy); }
.aud-orange .chip { background: var(--navy); color: var(--white); }
.aud-orange .btn-line { border-color: var(--navy); color: var(--navy); }
.aud-orange .btn-line:hover { background: var(--navy); color: var(--white); }

/* Very wide image: full width below the text */
.hero-stack { grid-template-columns: minmax(0, 1fr); }
.hero-stack .hero-text { max-width: 760px; }

/* Four cards share one row instead of leaving one alone */
.cards-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }


/* ---------- Polish ---------- */

/* Header gains a soft shadow once the page scrolls */
.site-header { transition: box-shadow 0.2s ease; }
.site-header.scrolled { box-shadow: 0 4px 18px rgba(18, 50, 68, 0.1); }

/* Cards lift slightly when pointed at */
.panel, .aud-card, .tile, .card, .value { transition: transform 0.2s ease, box-shadow 0.2s ease; }
.aud-card:hover, .tile:hover, .card:hover, .value:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(18, 50, 68, 0.14); }
.panel img { transition: transform 0.3s ease; }
.panel:hover img { transform: scale(1.03); }

/* Icons on the For Schools lab cards */
.tile-icon-card { gap: 10px; }
.tile-icon { width: 48px; height: 48px; padding: 11px; margin-bottom: 6px; color: var(--blue); background: var(--tint); border-radius: 12px; }
.tile-icon-card:nth-child(2) .tile-icon, .tile-icon-card:nth-child(4) .tile-icon { color: var(--orange-dark); background: #FCE1EF; }

/* Numbered stages and steps */
.columns.numbered { counter-reset: col; }
.columns.numbered li { counter-increment: col; position: relative; padding-top: 30px; }
.columns.numbered li::before { content: counter(col); position: absolute; top: -17px; left: 0; display: grid; place-items: center; width: 32px; height: 32px; font-family: Montserrat, var(--sans); font-size: 14px; font-weight: 800; color: var(--white); background: var(--navy); border: 3px solid var(--white); border-radius: 50%; box-shadow: 0 0 0 2px var(--orange); }
.bg-mist .columns.numbered li::before { border-color: var(--mist); }

/* About: why schools choose us */
.values { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 20px; }
.value { display: flex; flex-direction: column; gap: 8px; padding: 26px; background: var(--white); border: 1px solid var(--line-soft); border-radius: 10px; }
.value h3 { font-size: 18px; }
.value p { color: var(--muted); }
.value-icon { width: 52px; height: 52px; padding: 12px; margin-bottom: 6px; color: var(--white); background: var(--blue); border-radius: 50%; }
.value:nth-child(even) .value-icon { color: var(--navy); background: var(--orange); }

/* Floating WhatsApp button */
.wa-float { position: fixed; right: max(18px, env(safe-area-inset-right, 0px)); bottom: max(18px, env(safe-area-inset-bottom, 0px)); z-index: 30; display: flex; align-items: center; gap: 10px; height: 56px; padding: 0 15px; color: var(--white); background: #128C7E; border-radius: 28px; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22); text-decoration: none; font-weight: 700; font-size: 15px; transition: transform 0.2s ease, background-color 0.2s ease; }
.wa-float:hover { color: var(--white); background: #0E7468; transform: translateY(-2px); }
.wa-float .wa-label { max-width: 0; overflow: hidden; white-space: nowrap; transition: max-width 0.3s ease; }
.wa-float:hover .wa-label, .wa-float:focus-visible .wa-label { max-width: 140px; }
.wa-float:focus-visible { outline-color: var(--orange); }

/* Sections fade in as they scroll into view (only when scripts run; content is visible otherwise) */
.js-reveal .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.js-reveal .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .site-header, .panel, .aud-card, .tile, .card, .value, .panel img, .wa-float, .wa-float .wa-label { transition: none; }
  .aud-card:hover, .tile:hover, .card:hover, .value:hover, .panel:hover img, .wa-float:hover { transform: none; }
  .js-reveal .reveal { opacity: 1; transform: none; }
}

/* Home: three large rounded offer cards (same pattern as the smaller coloured cards) */
.offers { padding-block: clamp(36px, 3.6vw, 52px); background: var(--white); }
.offer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; align-items: stretch; }
.offer { display: flex; flex-direction: column; gap: 14px; padding: clamp(26px, 2.6vw, 36px); border-radius: 18px; transition: transform 0.2s ease, box-shadow 0.2s ease; }
.offer:hover { transform: translateY(-6px); box-shadow: 0 18px 38px rgba(18, 50, 68, 0.2); }
.offer h2 { font-size: clamp(26px, 2.4vw, 34px); line-height: 1.15; color: inherit; }
.offer p { font-size: 16.5px; }
.offer img { width: 100%; height: auto; aspect-ratio: auto; margin-top: auto; border-radius: 12px; }
.offer .btn { align-self: flex-start; }
.offer-navy { background: var(--navy); color: var(--white); }
.offer-navy .chip { background: var(--orange); color: var(--navy); }
.offer-blue { background: var(--blue); color: var(--white); }
.offer-blue .chip { background: var(--white); color: var(--blue-dark); }
.offer-orange { background: var(--orange); color: var(--navy); }
.offer-orange .chip { background: var(--navy); color: var(--white); }
.offer-orange .btn-line { border-color: var(--navy); color: var(--navy); }
.offer-orange .btn-line:hover { background: var(--navy); color: var(--white); }
.offer-teal { background: var(--blue-dark); color: var(--white); }
.offer-teal .chip { background: var(--white); color: var(--blue-dark); }
@media (max-width: 960px) { .offer-grid { grid-template-columns: minmax(0, 1fr); max-width: 560px; margin-inline: auto; } }
@media (prefers-reduced-motion: reduce) { .offer { transition: none; } .offer:hover { transform: none; } }

/* Home: the lower cards are white with a coloured top line, so they don't repeat the big cards above */
.audience-light .aud-card { background: var(--white); color: var(--navy); border: 1px solid var(--line-soft); border-top: 4px solid var(--navy); box-shadow: 0 2px 10px rgba(18, 50, 68, 0.05); }
.audience-light .aud-blue { border-top-color: var(--blue); }
.audience-light .aud-orange { border-top-color: var(--orange); }
.audience-light .aud-card p { color: var(--muted); }
.audience-light .aud-navy .chip { background: var(--navy); color: var(--white); }
.audience-light .aud-blue .chip { background: var(--blue); color: var(--white); }
.audience-light .aud-orange .chip { background: var(--orange); color: var(--navy); }
.audience-light .btn-line { border-color: var(--navy); color: var(--navy); }
.audience-light .btn-line:hover { background: var(--navy); color: var(--white); }

/* Company name written in the logo's colours */
.brand-name { font-family: Montserrat, var(--sans); font-weight: 800; letter-spacing: 0.01em; white-space: nowrap; }
.bn-stem { color: var(--navy); }
.bn-robotics { color: var(--blue); box-shadow: inset 0 -3px 0 var(--orange); }

/* Key facts under the About story */
.fact-row { list-style: none; padding: 0; margin-top: 8px; display: flex; flex-wrap: wrap; gap: 12px; }
.fact-row li { display: flex; flex-direction: column; min-width: 120px; padding: 12px 18px; background: var(--mist); border-left: 3px solid var(--orange); border-radius: 6px; }
.fact-row strong { font-family: Montserrat, var(--sans); font-size: 20px; font-weight: 800; color: var(--navy); line-height: 1.2; }
.fact-row span { font-size: 13px; color: var(--muted); }

/* Home: impact as a soft rounded card, matching the other cards on the page */
.impact-card { display: flex; align-items: center; gap: clamp(28px, 5vw, 64px); padding: clamp(24px, 4vw, 48px); background: #EAF5F4; border-radius: 18px; }
.impact-card > .stack { flex: 1 1 0; }
.impact-card > .photo-tall { flex: none; }
.impact-card .photo-tall img { max-height: 440px; border-radius: 12px; box-shadow: 0 10px 28px rgba(18, 50, 68, 0.18); }
.impact-card .fact-row li { background: var(--white); }
@media (max-width: 760px) {
  .impact-card { flex-direction: column; align-items: stretch; }
  .impact-card > .stack { flex: none; }
  .impact-card .photo-tall img { max-height: 360px; }
}

/* Kit slogan */
.kit-slogan { font-family: Montserrat, var(--sans); font-weight: 600; color: var(--blue-dark); }

/* Company name on the navy copyright strip */
.footer-base .bn-stem { color: var(--white); }
.footer-base .bn-robotics { color: var(--orange); box-shadow: none; }
.nowrap { white-space: nowrap; }

/* Home heading: exactly two lines on wider screens */
@media (min-width: 1100px) {
  .hero-overlay .stack:has(.h1-two-lines) { max-width: 820px; }
  .hero-overlay .h1-two-lines { text-wrap: nowrap; white-space: nowrap; }
  .hero-overlay .h1-two-lines .line-2 { display: block; }
  .hero-overlay .stack:has(.h1-two-lines) .lead { max-width: 600px; }
}

/* Tighter rhythm: when two sections share a background, don't double the space between them */
main > section:not([class]) + section:not([class]) > .section,
.offers + section:not([class]) > .section,
.bg-mist + .bg-mist > .section { padding-top: 0; }
.section-head { margin-bottom: 32px; }

/* About: photo collage beside the story (rows sized by image shape, so nothing is cropped) */
.story-split { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
@media (max-width: 900px) { .story-split { grid-template-columns: minmax(0, 1fr); } }
.collage-wrap { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.collage { display: flex; flex-direction: column; gap: 12px; }
.collage-row { display: flex; gap: 12px; }
.collage figure { flex: var(--r) 1 0%; min-width: 0; margin: 0; overflow: hidden; border-radius: 14px; box-shadow: 0 8px 22px rgba(18, 50, 68, 0.14); }
.collage img { width: 100%; height: auto; transition: transform 0.4s ease; }
.collage figure:hover img { transform: scale(1.04); }
.collage-note { text-align: right; }
@media (max-width: 480px) { .collage, .collage-row { gap: 8px; } .collage figure { border-radius: 10px; } }
@media (prefers-reduced-motion: reduce) { .collage img { transition: none; } .collage figure:hover img { transform: none; } }

/* ---------- Menu ---------- */
.site-nav { font-family: Montserrat, var(--sans); font-size: 14.5px; font-weight: 600; letter-spacing: 0.01em; gap: 2px; }
.site-nav a:not(.btn) { position: relative; padding: 9px 16px; color: var(--navy); transition: background-color 0.15s ease, color 0.15s ease; }
.site-nav a:not(.btn):hover { background: var(--mist); color: var(--blue-dark); }
.site-nav a[aria-current="page"] { background: var(--tint); color: var(--blue-dark); font-weight: 800; }
.site-nav a[aria-current="page"]::after { content: ""; position: absolute; left: 50%; bottom: 3px; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: var(--orange); }
.site-nav .btn { font-family: var(--sans); }
.menu-toggle { display: none; align-items: center; gap: 8px; }
.menu-toggle .icon-close { display: none; }
.menu-toggle[aria-expanded="true"] .icon-open { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: block; }
@media (max-width: 960px) {
  .menu-toggle { display: inline-flex; }
  .site-nav { gap: 0; padding: 6px 0 16px; border-top: 1px solid var(--line-soft); }
  .site-nav a:not(.btn) { display: flex; align-items: center; justify-content: space-between; padding: 14px 6px; border-radius: 0; border-bottom: 1px solid var(--line-soft); font-size: 16px; }
  .site-nav a:not(.btn)::before { content: ""; order: 2; width: 8px; height: 8px; border-right: 2px solid var(--line); border-top: 2px solid var(--line); transform: rotate(45deg); }
  .site-nav a:not(.btn):hover { background: transparent; }
  .site-nav a[aria-current="page"] { background: transparent; color: var(--blue-dark); padding-left: 14px; box-shadow: inset 3px 0 0 var(--orange); }
  .site-nav a[aria-current="page"]::after { display: none; }
  .site-nav .btn { margin-top: 14px; }
}

/* Company name and "Pvt Ltd" always stay on one line */
.company-line { white-space: nowrap; }
.f-address .brand-name { font-size: 14.5px; }
