/* =========================================================
   Scikit Solutions - theme built from the logo
   Navy #26407F, royal #01227F, gold #E8A817, white.
   Signature shape: the rounded diagonal pill from the logo.
   ========================================================= */

/* ===== Design tokens ===== */
:root {
  color-scheme: light;
  --navy: #26407F;
  --royal: #01227F;
  --deep: #0A1A3F;
  --gold: #E8A817;
  --gold-ink: #8A5F00;
  --ink: #14224A;
  --mute: #52627F;
  --line: #E1E7F2;
  --soft: #F4F6FB;
  --card: #fff;
  --bg: #fff;
  --blue: #26407F;
  --r: 18px;
  --head: "Archivo", "IBM Plex Sans", system-ui, sans-serif;
  --body: "IBM Plex Sans", system-ui, sans-serif;
}

/* ===== Base ===== */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.65 var(--body);
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  font-family: var(--head);
  font-weight: 800;
  line-height: 1.08;
  margin: 0 0 .5em;
  letter-spacing: -.02em;
  color: var(--ink);
}

h1 {
  font-size: clamp(2.4rem, 5.4vw, 4.3rem);
  line-height: 1.04;
}

h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.7rem);
}

h3 {
  font-size: 1.2rem;
  letter-spacing: -.01em;
}

p {
  margin: 0 0 1em;
  max-width: 64ch;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
}

.wrap {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 92px 0;
}

.mute {
  color: var(--mute);
}

.center {
  text-align: center;
}

.center p {
  margin-inline: auto;
}

[hidden] {
  display: none !important;
}

/* Gold highlighter under key words, like KIT in the logo */
.gd {
  background: linear-gradient(transparent 64%, var(--gold) 64% 90%, transparent 90%);
  padding: 0 .08em;
}

/* Spaced small caps label, like SOLUTIONS in the logo */
.kick {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 14px;
  color: var(--navy);
  font: 700 .78rem var(--head);
  letter-spacing: .26em;
  text-transform: uppercase;
}

.kick:before {
  content: "";
  width: 30px;
  height: 7px;
  border-radius: 99px;
  background: var(--gold);
  transform: rotate(-20deg);
}

/* ===== Header and navigation ===== */
header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

header.sc {
  box-shadow: 0 8px 28px rgba(10, 26, 63, .1);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.nav > a img {
  height: 46px;
  width: auto;
  display: block;
}

.nav ul {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}

.nav a,
.sub-toggle {
  text-decoration: none;
  font-weight: 600;
}

.nav a.on {
  color: var(--navy);
  box-shadow: 0 3px 0 var(--gold);
}

#menu {
  display: none;
  background: none;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 8px 14px;
  color: var(--ink);
  font: inherit;
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--royal), var(--navy));
  color: #fff !important;
  padding: 14px 28px;
  border-radius: 999px;
  font: 700 1rem var(--head);
  text-decoration: none;
  border: 0;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(1, 34, 127, .28);
  transition: transform .15s, box-shadow .15s;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(1, 34, 127, .38);
}

.btn.alt {
  background: #fff;
  color: var(--ink) !important;
  border: 1.5px solid var(--navy);
  box-shadow: none;
}

.btn.alt:hover {
  background: var(--soft);
}

.nav .btn {
  padding: 11px 22px;
  box-shadow: none;
}

.band .btn,
.fab {
  background: linear-gradient(135deg, var(--gold), #F4C455);
  color: var(--deep) !important;
  box-shadow: 0 10px 26px rgba(232, 168, 23, .4);
}

.band .btn.alt {
  background: transparent;
  color: #fff !important;
  border-color: rgba(255, 255, 255, .6);
  box-shadow: none;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  overflow: hidden;
  padding: 96px 0 112px;
  background: linear-gradient(180deg, #fff 0%, #EDF1FA 100%);
}

.hero .wrap {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 56px;
  align-items: center;
}

.hero p {
  font-size: 1.15rem;
  color: var(--mute);
}

/* The logo's rounded diagonal pills, drawn in CSS */
.art {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.art i {
  position: absolute;
  display: block;
  border-radius: 999px;
}

.art i:nth-child(1) {
  width: 560px;
  height: 92px;
  right: -90px;
  top: 40px;
  transform: rotate(-45deg);
  background: linear-gradient(90deg, var(--navy), var(--royal));
}

.art i:nth-child(2) {
  width: 440px;
  height: 92px;
  right: 150px;
  top: 250px;
  transform: rotate(45deg);
  background: var(--navy);
  opacity: .88;
}

.art i:nth-child(3) {
  width: 300px;
  height: 46px;
  right: -40px;
  bottom: 40px;
  transform: rotate(-45deg);
  background: linear-gradient(90deg, var(--gold), #F4C455);
}

.badge {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 99px;
  padding: 7px 18px;
  font-size: .92rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 24px;
}

.badge:before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold);
}

.cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.proof {
  display: flex;
  gap: 34px;
  margin-top: 44px;
  flex-wrap: wrap;
}

.proof b {
  display: block;
  font: 800 2rem var(--head);
  color: var(--navy);
  line-height: 1.1;
}

.proof span {
  color: var(--mute);
  font-size: .95rem;
}

.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-top: 5px solid var(--gold);
  border-radius: 22px;
  padding: 26px;
  box-shadow: 0 30px 60px rgba(10, 26, 63, .2);
}

.panel h3 {
  margin-bottom: 14px;
}

.panel ul {
  margin: 0;
  padding: 0;
}

.panel li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  list-style: none;
  font-weight: 500;
}

.panel i {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font: 700 .78rem var(--head);
  font-style: normal;
  color: #fff;
}

.panel em {
  margin-left: auto;
  font-style: normal;
  color: var(--gold-ink);
  font-weight: 700;
}

/* ===== Layout and cards ===== */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 22px;
}

.duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

.card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 30px;
  transition: transform .2s, box-shadow .2s;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 22px 46px rgba(10, 26, 63, .13);
}

.card.feat {
  border: 2px solid var(--navy);
  box-shadow: 0 20px 44px rgba(38, 64, 127, .16);
}

.card.dark {
  background: linear-gradient(135deg, var(--royal), var(--navy));
  border-color: transparent;
  color: #fff;
}

.card.dark h3 {
  color: #fff;
}

.card.dark p,
.card.dark li {
  color: #D5DEF3;
}

.card.dark .btn {
  background: linear-gradient(135deg, var(--gold), #F4C455);
  color: var(--deep) !important;
}

.ic {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: #fff;
  font: 800 .95rem var(--head);
  margin-bottom: 18px;
}

.ic[style*="E8A817" i] {
  color: var(--deep);
}

/* Bullets use the logo pill */
ul.ticks {
  list-style: none;
  padding: 0;
  margin: 0 0 1em;
}

.ticks li {
  position: relative;
  padding: 5px 0 5px 28px;
}

.ticks li:before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.05em;
  width: 16px;
  height: 7px;
  border-radius: 99px;
  background: var(--gold);
  transform: rotate(-35deg);
}

.card.dark .ticks li {
  color: #fff;
}

.tag {
  display: inline-block;
  background: var(--gold);
  color: var(--deep);
  font: 700 .8rem var(--head);
  border-radius: 99px;
  padding: 4px 14px;
}

/* ===== Service blocks ===== */
.model {
  display: grid;
  grid-template-columns: 280px 1fr;
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  background: var(--card);
  margin-bottom: 22px;
}

.model aside {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, var(--royal), var(--navy));
  color: #fff;
  padding: 30px;
}

.model aside:after {
  content: "";
  position: absolute;
  width: 190px;
  height: 36px;
  right: -70px;
  bottom: 40px;
  border-radius: 99px;
  background: var(--gold);
  transform: rotate(-45deg);
  opacity: .9;
}

.model aside h3 {
  color: #fff;
  font-size: 1.6rem;
}

.model aside p {
  color: #D5DEF3;
}

.model aside .kick {
  color: var(--gold) !important;
}

.model aside .kick:before {
  display: none;
}

.model .main {
  padding: 30px;
}

.meas {
  background: var(--soft);
  border-left: 4px solid var(--gold);
  border-radius: 0 12px 12px 0;
  padding: 12px 16px;
  margin: 4px 0 16px;
  font-size: .98rem;
}

.meas b {
  color: var(--navy);
}

.best {
  border-top: 1px solid var(--line);
  padding-top: 14px;
  margin: 0;
}

.best b {
  color: var(--gold-ink);
}

/* ===== Marketing pillars ===== */
.pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.pillar {
  position: relative;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 28px 24px 26px;
  text-decoration: none;
  transition: transform .2s, box-shadow .2s;
}

.pillar:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px rgba(10, 26, 63, .15);
}

.pillar:before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--royal), var(--navy));
}

.pillar:nth-child(even):before {
  background: linear-gradient(90deg, var(--gold), #F4C455);
}

.pillar .num {
  font: 800 3.2rem/1 var(--head);
  color: transparent;
  -webkit-text-stroke: 2px var(--navy);
  margin-bottom: 10px;
}

.pillar h3 {
  font-size: 1.5rem;
  margin-bottom: 6px;
}

.pillar .out {
  color: var(--mute);
  min-height: 3.6em;
}

.pillar ul {
  list-style: none;
  padding: 0;
  margin: 14px 0 0;
}

.pillar li {
  padding: 7px 0;
  border-top: 1px solid var(--line);
  font-weight: 600;
  font-size: .96rem;
}

.pillar-head {
  display: flex;
  align-items: end;
  gap: 18px;
  margin: 56px 0 22px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--line);
}

.pillar-head .num {
  font: 800 3.4rem/1 var(--head);
  color: transparent;
  -webkit-text-stroke: 2px var(--navy);
}

.pillar-head h2 {
  margin: 0;
}

.pillar-head p {
  margin: 0;
  color: var(--mute);
}

.path {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  counter-reset: p;
}

.path > div {
  counter-increment: p;
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 26px 22px;
}

.path > div:before {
  content: counter(p);
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font: 800 1rem var(--head);
  margin-bottom: 14px;
}

.path small {
  display: block;
  color: var(--gold-ink);
  font-weight: 700;
  margin-bottom: 4px;
}

/* ===== Process timeline ===== */
.tl {
  list-style: none;
  margin: 0 0 0 14px;
  padding: 0;
  border-left: 3px solid var(--line);
}

.tl li {
  position: relative;
  padding: 0 0 38px 40px;
}

.tl li:before {
  content: attr(data-n);
  position: absolute;
  left: -20px;
  top: -2px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  display: grid;
  place-items: center;
  font: 800 1rem var(--head);
}

.tl small {
  color: var(--gold-ink);
  font-weight: 700;
}

/* ===== Dark bands and stats ===== */
.band {
  position: relative;
  overflow: hidden;
  background: linear-gradient(120deg, var(--royal), var(--navy));
  color: #fff;
}

.band:before,
.band:after {
  content: "";
  position: absolute;
  border-radius: 99px;
  transform: rotate(-45deg);
  pointer-events: none;
}

.band:before {
  width: 360px;
  height: 64px;
  right: -90px;
  top: 30px;
  background: var(--gold);
  opacity: .9;
}

.band:after {
  width: 300px;
  height: 64px;
  left: -110px;
  bottom: 20px;
  background: #fff;
  opacity: .1;
}

.band .wrap {
  position: relative;
  z-index: 1;
}

.band h2,
.band h3 {
  color: #fff;
}

.band p,
.band .mute {
  color: #D5DEF3;
}

.band .kick {
  color: var(--gold);
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 28px;
  text-align: center;
  margin-top: 40px;
}

.stats b {
  display: block;
  font: 800 3.4rem/1.1 var(--head);
  color: #fff;
}

.stats div {
  color: #D5DEF3;
}

/* ===== Tabs and chips ===== */
.tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 26px 0;
}

.tabs button {
  border: 1.5px solid var(--line);
  background: #fff;
  color: var(--ink);
  border-radius: 99px;
  padding: 10px 22px;
  font: 600 1rem var(--body);
  cursor: pointer;
}

.tabs button[aria-selected="true"],
.tabs button[aria-pressed="true"] {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chips span {
  display: inline-block;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 99px;
  padding: 8px 18px;
  font-weight: 600;
}

.chips a:hover span {
  border-color: var(--navy);
  background: var(--soft);
}

/* ===== Hourly bucket bar ===== */
.bar {
  display: flex;
  border-radius: 14px;
  overflow: hidden;
  margin: 20px 0 8px;
}

.bar div {
  padding: 14px 6px;
  text-align: center;
  color: #fff;
  line-height: 1.3;
}

.bar small {
  display: block;
  font-weight: 400;
  opacity: .9;
}

/* ===== Tables ===== */
.tw {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: #fff;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

thead th {
  background: var(--navy);
  color: #fff;
}

tr:last-child > * {
  border: 0;
}

/* ===== Testimonials ===== */
.carousel {
  max-width: 820px;
  margin: 34px auto 0;
  text-align: center;
}

.slide {
  margin: 0;
  padding: 44px 38px;
  background: #fff;
  border: 1px solid var(--line);
  border-top: 5px solid var(--gold);
  border-radius: 24px;
  box-shadow: 0 20px 46px rgba(10, 26, 63, .1);
}

.slide blockquote {
  margin: 0 0 22px;
  font: 700 1.35rem/1.5 var(--head);
  letter-spacing: -.01em;
}

.slide figcaption {
  color: var(--mute);
}

.slide figcaption b {
  display: block;
  color: var(--ink);
}

.car-ctrl {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  margin-top: 22px;
}

.car-ctrl button {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  background: #fff;
  color: var(--ink);
  font-size: 1.2rem;
  cursor: pointer;
}

.car-ctrl button:hover {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}

.dots {
  display: flex;
  gap: 8px;
}

.dots button {
  width: 12px;
  height: 12px;
  padding: 0;
  border-radius: 50%;
  background: var(--line);
  border: 0;
}

.dots button[aria-current="true"] {
  background: var(--gold);
  width: 28px;
  border-radius: 99px;
}

/* ===== FAQ ===== */
.faq details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 22px;
  margin-bottom: 12px;
}

.faq summary {
  cursor: pointer;
  font: 700 1.08rem var(--head);
}

.faq p {
  margin: 12px 0 0;
}

/* ===== Insights ===== */
.post {
  display: flex;
  flex-direction: column;
}

.post .tag {
  align-self: flex-start;
  margin-bottom: 14px;
}

.post h3 a {
  text-decoration: none;
}

.post p {
  flex: 1;
}

.prose {
  max-width: 720px;
  margin: 0 auto;
}

.prose h2 {
  font-size: 1.7rem;
  margin-top: 1.6em;
}

.prose p,
.prose li {
  font-size: 1.1rem;
  max-width: none;
}

/* ===== Forms ===== */
form {
  display: grid;
  gap: 16px;
}

label {
  font-weight: 600;
  display: grid;
  gap: 6px;
}

input,
select,
textarea {
  font: inherit;
  padding: 13px 14px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--navy);
}

.status {
  padding: 12px 14px;
  border-radius: 10px;
  font-weight: 600;
}

.status.ok {
  background: #E6F6EE;
  color: #0B5D3A;
}

.status.err {
  background: #FDECEC;
  color: #8A1C1C;
}

.hp {
  position: absolute;
  left: -9999px;
}

/* ===== Inner pages ===== */
.page {
  position: relative;
  overflow: hidden;
  padding: 84px 0 46px;
  background: linear-gradient(180deg, #fff, var(--soft));
}

.page:after {
  content: "";
  position: absolute;
  width: 380px;
  height: 64px;
  right: -90px;
  top: 60px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--navy), var(--royal));
  transform: rotate(-45deg);
  opacity: .12;
}

.page .wrap {
  position: relative;
  z-index: 1;
}

.page p {
  font-size: 1.15rem;
}

/* ===== Services dropdown ===== */
.has-sub {
  position: relative;
}

.sub-toggle {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
}

.sub-toggle:after {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-left: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-3px) rotate(45deg);
}

.sub-toggle.on {
  color: var(--navy);
}

.nav .sub {
  display: none;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  position: absolute;
  top: 100%;
  left: -16px;
  min-width: 250px;
  margin: 0;
  padding: 10px;
  list-style: none;
  background: #fff;
  border: 1px solid var(--line);
  border-top: 4px solid var(--gold);
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(10, 26, 63, .18);
}

.sub a {
  display: block;
  padding: 10px 14px;
  border-radius: 8px;
}

.sub a:hover {
  background: var(--soft);
}

.nav .has-sub:hover .sub,
.nav .has-sub.open .sub {
  display: flex;
}

/* ===== Footer, social links, quote button ===== */
footer.site {
  background: var(--soft);
  border-top: 5px solid var(--gold);
  padding: 64px 0 28px;
}

.foot {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
}

.foot ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.foot h3 {
  font-size: 1rem;
}

.foot a {
  text-decoration: none;
  color: var(--mute);
}

.foot a:hover {
  color: var(--navy);
}

.foot img {
  height: 46px;
  width: auto;
}

.small {
  font-size: .9rem;
  margin-top: 36px;
}

.social {
  display: flex;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
}

.foot .social {
  display: flex;
}

.social a {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1.5px solid var(--navy);
  border-radius: 50%;
  color: var(--navy) !important;
  background: #fff;
  transition: background .15s, color .15s, transform .15s;
}

.social a:hover {
  background: var(--navy);
  color: #fff !important;
  transform: translateY(-2px);
}

.fab {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 15;
  padding: 13px 22px;
  border-radius: 99px;
  font-weight: 700;
  text-decoration: none;
}

/* ===== Responsive ===== */
@media (max-width: 1060px) {
  .nav ul {
    gap: 20px;
  }

  .pillars,
  .path {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 860px) {
  section {
    padding: 62px 0;
  }

  .hero .wrap,
  .split,
  .foot,
  .duo,
  .model {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 60px 0 76px;
  }

  .art {
    opacity: .14;
  }

  #menu {
    display: block;
  }

  .nav ul {
    display: none;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    background: #fff;
    padding: 22px 24px;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 30px rgba(10, 26, 63, .12);
  }

  .nav ul.open {
    display: flex;
  }

  .sub-toggle {
    padding: 4px 0;
  }

  .nav .sub {
    position: static;
    box-shadow: none;
    border: 0;
    padding: 0 0 0 14px;
    background: transparent;
  }

  .nav .has-sub:hover .sub {
    display: none;
  }

  .nav .has-sub.open .sub {
    display: flex;
  }

  .slide {
    padding: 28px 20px;
  }

  .slide blockquote {
    font-size: 1.15rem;
  }

  .pillar-head {
    flex-wrap: wrap;
  }
}

@media (max-width: 560px) {
  .pillars,
  .path {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .card,
  .btn,
  .pillar,
  .social a {
    transition: none;
  }

  .card:hover,
  .btn:hover,
  .pillar:hover {
    transform: none;
  }
}

/* ===== Blog ===== */
.post { padding: 0; overflow: hidden; }
.post .pbody { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.post .meta, .page .meta { color: var(--mute); font-size: .92rem; margin: 10px 0 0; }
.post .cover { display: block; width: 100%; aspect-ratio: 16/7; object-fit: cover; }
.cover.ph {
  position: relative; overflow: hidden; background: var(--navy);
}
.cover.ph i {
  position: absolute; border-radius: 99px; transform: rotate(-35deg);
}
.cover.ph i:first-child { width: 70%; height: 46px; left: -8%; top: 28%; background: var(--gold); }
.cover.ph i:last-child { width: 55%; height: 46px; right: -10%; top: 54%; background: var(--royal); }
.post[hidden] { display: none; }
.crumbs { font-size: .92rem; color: var(--mute); margin-bottom: 14px; }
.crumbs a { color: var(--navy); text-decoration: none; }
.page .tag { display: inline-block; margin-bottom: 12px; }
.prose p, .prose li { font-size: 1.08rem; line-height: 1.75; }
.prose h3 { font-size: 1.25rem; margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose blockquote {
  margin: 1.4em 0; padding: 4px 0 4px 20px; border-left: 4px solid var(--gold); color: var(--ink);
}
.prose img { max-width: 100%; height: auto; border-radius: 14px; }
.prose a { color: var(--navy); text-decoration: underline; }
.share { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-top: 2.2em; padding-top: 18px; border-top: 1px solid var(--line); }
.share span { font-weight: 700; }
.share a { text-decoration: none; border: 1.5px solid var(--line); border-radius: 99px; padding: 6px 16px; color: var(--ink); }
.share a:hover { border-color: var(--navy); }

/* ===== Motion ===== */
.js .rv { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); transition-delay: var(--d, 0s); }
.js .rv.in { opacity: 1; transform: none; }
@keyframes drift { 0%,100% { transform: translate3d(0,0,0); } 50% { transform: translate3d(14px,-18px,0); } }
.hero .art i:nth-child(1) { animation: drift 9s ease-in-out infinite; }
.hero .art i:nth-child(2) { animation: drift 11s ease-in-out -3s infinite; }
.hero .art i:nth-child(3) { animation: drift 13s ease-in-out -6s infinite; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.hero .wrap > div > * { animation: rise .8s cubic-bezier(.2,.7,.2,1) both; }
.hero .wrap > div > *:nth-child(2) { animation-delay: .1s; }
.hero .wrap > div > *:nth-child(3) { animation-delay: .2s; }
.hero .wrap > div > *:nth-child(4) { animation-delay: .3s; }
@keyframes hl { to { background-size: 100% 100%; } }
.gd { background-repeat: no-repeat; background-size: 0 100%; animation: hl 1s .5s ease forwards; }
.btn { transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(38,64,127,.25); }
.fab { animation: bob 3.2s ease-in-out infinite; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
#progress { position: fixed; top: 0; left: 0; height: 3px; width: 100%; background: var(--gold); transform: scaleX(0); transform-origin: 0 50%; z-index: 100; }

/* ===== Game ===== */
.teaser .wrap { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.teaser { background: var(--soft); }
.game-wrap { max-width: 460px; }
.hud { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.hud div { flex: 1; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 8px 14px; }
.hud small { display: block; color: var(--mute); font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; }
.hud b { font: 800 1.15rem var(--head); color: var(--navy); }
.stage { position: relative; line-height: 0; }
#game { display: block; margin: 0 auto; border: 1.5px solid var(--line); border-radius: 22px; touch-action: none; outline-offset: 3px; max-width: 100%; }
.overlay { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; text-align: center; background: rgba(255,255,255,.88); border-radius: 22px; line-height: 1.5; padding: 20px; }
.overlay[hidden] { display: none; }
.overlay h2 { margin: 0 0 8px; }
.overlay .btn { margin: 6px 4px 0; }

@media (prefers-reduced-motion: reduce) {
  .js .rv { opacity: 1; transform: none; transition: none; }
  .hero .art i, .hero .wrap > div > *, .fab { animation: none; }
  .gd { animation: none; background-size: 100% 100%; }
}

/* ===== Extra motion ===== */
.btn { position: relative; overflow: hidden; }
.btn::after { content: ""; position: absolute; top: 0; left: -80%; width: 50%; height: 100%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.35), transparent); transform: skewX(-20deg); }
.btn:hover::after { left: 130%; transition: left .6s ease; }
.card, .pillar, .model { transition: transform .3s cubic-bezier(.2,.7,.2,1), box-shadow .3s ease, border-color .3s ease; }
.card:hover, .pillar:hover, .model:hover { transform: translateY(-6px); box-shadow: 0 18px 38px rgba(20,34,74,.12); border-color: var(--gold); }
.nav a:not(.btn) { background: linear-gradient(var(--gold), var(--gold)) 0 100% / 0 3px no-repeat; transition: background-size .3s ease; }
.nav a:not(.btn):hover { background-size: 100% 3px; }
header img { transition: transform .4s cubic-bezier(.2,.7,.2,1); }
header a:hover img { transform: scale(1.04) rotate(-1deg); }
.step b, .pillar-head b { display: inline-block; transition: transform .3s ease; }
.step:hover b, .pillar:hover .pillar-head b { transform: scale(1.18) rotate(-6deg); }
.band::before, .band::after { animation: drift 12s ease-in-out infinite; }
.band::after { animation-delay: -5s; }
@keyframes shimmer { 0% { background-position: 0 0; } 100% { background-position: 200% 0; } }
.badge { background-image: linear-gradient(100deg, transparent 30%, rgba(232,168,23,.28) 50%, transparent 70%); background-size: 200% 100%; animation: shimmer 4s linear infinite; }
@media (prefers-reduced-motion: reduce) {
  .band::before, .band::after, .badge { animation: none; }
  .card:hover, .pillar:hover, .model:hover, .step:hover b { transform: none; }
}

/* ===== Header game button and modal ===== */
.play-btn { display: inline-flex; align-items: center; gap: 8px; border: 1.5px solid var(--gold); background: #fff; color: var(--ink); border-radius: 99px; padding: 8px 16px; font: 700 .95rem var(--body); cursor: pointer; transition: background-color .2s ease, transform .2s ease; }
.play-btn:hover { background: var(--gold); transform: translateY(-1px); }
.play-btn i { width: 18px; height: 8px; border-radius: 99px; background: var(--gold); transform: rotate(-35deg); animation: wiggle 2.4s ease-in-out infinite; }
.play-btn:hover i { background: var(--ink); }
@keyframes wiggle { 0%,100% { transform: rotate(-35deg) translateY(0); } 50% { transform: rotate(-35deg) translateY(-4px); } }
.gmodal { position: fixed; inset: 0; z-index: 200; background: rgba(10,26,63,.62); display: flex; align-items: center; justify-content: center; padding: 16px; overflow-y: auto; animation: fadein .25s ease; }
.gmodal[hidden] { display: none; }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
.gbox { position: relative; background: #fff; border-radius: 26px; padding: 26px 24px 22px; width: 100%; max-width: 480px; max-height: 100%; overflow-y: auto; box-shadow: 0 30px 80px rgba(0,0,0,.35); animation: pop .35s cubic-bezier(.2,.8,.2,1); }
@keyframes pop { from { opacity: 0; transform: translateY(20px) scale(.96); } to { opacity: 1; transform: none; } }
.gbox h2 { margin: 4px 0 14px; font-size: 1.7rem; }
.gclose { position: absolute; top: 12px; right: 14px; width: 38px; height: 38px; border-radius: 50%; border: 1.5px solid var(--line); background: #fff; font-size: 1.5rem; line-height: 1; cursor: pointer; color: var(--ink); }
.gclose:hover { border-color: var(--navy); }
.gbox .game-wrap { max-width: none; }
.gbox .overlay h2 { font-size: 1.4rem; }
@media (max-width: 860px) { .play-btn { margin: 6px 0; } }
@media (prefers-reduced-motion: reduce) { .play-btn i, .gmodal, .gbox { animation: none; } }

/* ===== Mobile hardening ===== */
.split > *, .duo > *, .grid > *, .hero .wrap > *, .pillars > *, .path > * { min-width: 0; }
img, canvas, video, svg { max-width: 100%; }
input, select, textarea { max-width: 100%; min-width: 0; }
h1, h2, h3, p, li, a { overflow-wrap: break-word; }
@media (max-width: 860px) {
  .duo { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .wrap { padding-left: 18px; padding-right: 18px; }
  h1 { font-size: clamp(2rem, 9vw, 2.6rem); line-height: 1.1; }
  h2 { font-size: clamp(1.55rem, 7vw, 2rem); }
  .card { padding: 22px 20px; }
  .btn, .play-btn { max-width: 100%; }
  .hero .btn { flex: 1 1 auto; text-align: center; justify-content: center; }
  .fab { right: 12px; bottom: 12px; padding: 11px 18px; font-size: .95rem; }
  .gbox { padding: 22px 16px 18px; border-radius: 20px; }
  .gmodal { padding: 10px; align-items: flex-start; }
}
@media (max-width: 560px) {
  .hero .art { display: none; }
  .hero .cta { display: flex; flex-wrap: wrap; gap: 10px; }
  .proof { display: grid !important; grid-template-columns: repeat(3, auto); justify-content: space-between; gap: 12px; }
  .proof b { font-size: 1.5rem; }
  .proof span { font-size: .8rem; }
  em { white-space: nowrap; font-style: normal; }
  body { padding-bottom: 72px; }
}
.post.card { padding: 0; }
.band .wrap, .stats .wrap, section .wrap { position: relative; z-index: 1; }
.band::before, .band::after { z-index: 0; pointer-events: none; }
@media (max-width: 860px) {
  .model aside { position: relative; overflow: hidden; }
  .model aside:after { width: 90px; height: 28px; right: -26px; bottom: 12px; opacity: .85; }
  .model aside > * { position: relative; z-index: 1; padding-right: 36px; }
}
