@import url("https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@600;700;800&family=Manrope:wght@400;500;600;700;800&display=swap");

:root {
  --bg: #07111e;
  --bg-deep: #040a13;
  --bg-soft: #0d1a2a;
  --panel: #102033;
  --panel-soft: #16304b;
  --paper: #f5f1e8;
  --paper-strong: #e5dcc9;
  --text: #edf2f7;
  --text-dim: #9cb0c4;
  --ink: #121b28;
  --ink-soft: #5a6878;
  --gold: #d7aa43;
  --gold-bright: #efca68;
  --gold-soft: rgba(215, 170, 67, 0.18);
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(255, 255, 255, 0.2);
  --line-dark: rgba(18, 27, 40, 0.14);
  --success: #19724b;
  --danger: #b33a31;
  --radius-sm: 18px;
  --radius-md: 28px;
  --radius-lg: 36px;
  --shadow-lg: 0 34px 90px rgba(0, 0, 0, 0.32);
  --shadow-md: 0 20px 54px rgba(0, 0, 0, 0.18);
  --max: 1240px;
  --shell-max: 1440px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: "Manrope", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body.nav-open,
body.modal-open {
  overflow: hidden;
}

main {
  overflow: clip;
}

img,
video {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  border: 0;
  background: none;
}

ul,
ol {
  margin: 0;
  padding-left: 1.1rem;
}

h1,
h2,
h3,
h4,
p,
blockquote {
  margin-top: 0;
}

h1,
h2,
h3,
h4 {
  margin-bottom: 0.5em;
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.025em;
  text-transform: uppercase;
  font-family: "Barlow Condensed", sans-serif;
}

h1 {
  font-size: clamp(2.9rem, 5.2vw, 4.8rem);
}

h2 {
  font-size: clamp(2.2rem, 4vw, 3.8rem);
}

h3 {
  font-size: clamp(1.45rem, 2.2vw, 2rem);
}

p:last-child {
  margin-bottom: 0;
}

::selection {
  color: var(--bg);
  background: var(--gold-bright);
}

:focus-visible {
  outline: 3px solid rgba(239, 202, 104, 0.62);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: 14px;
  left: 14px;
  z-index: 1500;
  transform: translateY(-150%);
  padding: 12px 16px;
  border-radius: 999px;
  background: var(--gold-bright);
  color: var(--bg);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.skip-link:focus {
  transform: translateY(0);
}

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

.container {
  width: min(calc(100% - 48px), var(--max));
  margin-inline: auto;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 20px;
  color: var(--gold-bright);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.24em;
  line-height: 1.2;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 32px;
  height: 2px;
  content: "";
  background: currentColor;
}

.lead {
  max-width: 42rem;
  color: var(--text-dim);
  font-size: clamp(1.02rem, 1.5vw, 1.18rem);
  line-height: 1.7;
}

.section--paper .lead,
.modal__dialog--form .lead,
.form-card p {
  color: var(--ink-soft);
}

.section {
  position: relative;
  padding: 120px 0;
}

.section--paper {
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 10%, rgba(215, 170, 67, 0.08), transparent 32%),
    linear-gradient(180deg, #f8f5ee 0%, var(--paper) 100%);
}

.section--deep {
  background:
    radial-gradient(circle at 88% 18%, rgba(215, 170, 67, 0.12), transparent 26%),
    linear-gradient(180deg, #091523 0%, #050d18 100%);
}

.section--band {
  padding: 72px 0;
  border-block: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(10, 21, 35, 0.9), rgba(5, 13, 24, 0.98));
}

.btn {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  line-height: 1.2;
  text-transform: uppercase;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn--primary {
  color: var(--bg);
  background: var(--gold);
  box-shadow: 0 18px 38px rgba(215, 170, 67, 0.24);
}

.btn--primary:hover {
  background: var(--gold-bright);
}

.btn--outline {
  border-color: var(--line-strong);
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
}

.btn--outline:hover {
  border-color: rgba(255, 255, 255, 0.38);
  background: rgba(255, 255, 255, 0.06);
}

.btn--ghost {
  border-color: rgba(255, 255, 255, 0.34);
  color: white;
  background: rgba(5, 13, 24, 0.42);
  backdrop-filter: blur(12px);
}

.btn--ghost:hover {
  border-color: white;
  color: var(--bg);
  background: white;
}

.btn--light {
  color: var(--ink);
  background: white;
}

.btn--text {
  min-height: auto;
  padding: 0;
  color: var(--gold);
  border-radius: 0;
}

.btn__arrow {
  transition: transform 180ms ease;
}

.btn:hover .btn__arrow {
  transform: translateX(4px);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1100;
  color: white;
  background: rgba(5, 13, 24, 0.94);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: background 220ms ease, border-color 220ms ease;
}

.site-header::after {
  display: none;
}

.site-header.is-scrolled {
  background: transparent;
  border-color: transparent;
}

.header-shell {
  width: min(calc(100% - 24px), var(--shell-max));
  margin: 0 auto;
  transition: margin-top 220ms ease, padding 220ms ease, border-radius 220ms ease, background 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.header-inner {
  display: flex;
  height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-header.is-scrolled .header-shell {
  margin-top: 10px;
  padding: 0 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  background: rgba(5, 13, 24, 0.96);
  box-shadow: 0 20px 46px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: max-content;
}

.brand__lockup {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand__word {
  color: white;
  font-family: "Barlow Condensed", sans-serif;
  font-size: clamp(2.05rem, 2.3vw, 2.55rem);
  font-weight: 800;
  line-height: 0.82;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}

.brand__tag {
  padding-left: 12px;
  border-left: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--gold-bright);
  font-size: 0.42rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  line-height: 1.3;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.site-nav__links {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
}

.site-nav__link {
  position: relative;
  display: inline-flex;
  height: 42px;
  align-items: center;
  padding: 0 11px;
  color: rgba(255, 255, 255, 0.64);
  font-size: 0.56rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: color 180ms ease, background 180ms ease;
}

.site-nav__link::after {
  position: absolute;
  right: 11px;
  bottom: 7px;
  left: 11px;
  height: 2px;
  content: "";
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.site-nav__link:hover::after,
.site-nav__link[aria-current="page"]::after {
  transform: scaleX(1);
}

.site-nav__link:hover {
  color: white;
}

.site-nav__link[aria-current="page"] {
  color: var(--gold-bright);
}

.site-nav__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  color: white;
}

.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
  position: absolute;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  content: "";
  transition: transform 180ms ease, opacity 180ms ease;
}

.menu-toggle span {
  position: relative;
  display: block;
  margin: 0 auto;
}

.menu-toggle span::before {
  transform: translateY(-6px);
}

.menu-toggle span::after {
  transform: translateY(6px);
}

body.nav-open .menu-toggle span {
  background: transparent;
}

body.nav-open .menu-toggle span::before {
  transform: rotate(45deg);
}

body.nav-open .menu-toggle span::after {
  transform: rotate(-45deg);
}

.loader {
  position: fixed;
  inset: 0;
  z-index: 1400;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 40%, rgba(215, 170, 67, 0.08), transparent 28%),
    var(--bg);
  transition: opacity 450ms ease, visibility 450ms ease;
}

.loader__mark {
  display: grid;
  gap: 18px;
  justify-items: center;
}

.loader__mark img {
  width: auto;
  height: 78px;
  padding: 12px 16px;
  border-radius: 20px;
  background: white;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.24);
}

.loader__line {
  width: 140px;
  height: 2px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
}

.loader__line::after {
  display: block;
  width: 50%;
  height: 100%;
  content: "";
  background: linear-gradient(90deg, transparent, var(--gold-bright), transparent);
  animation: sweep 1000ms linear infinite;
}

.loader.is-done {
  visibility: hidden;
  opacity: 0;
}

.route-curtain {
  position: fixed;
  inset: 0;
  z-index: 1350;
  pointer-events: none;
  transform: translateX(-102%);
  background: linear-gradient(90deg, #050d18, #091523);
}

.route-curtain::after {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 14%;
  content: "";
  background: linear-gradient(90deg, rgba(239, 202, 104, 0), rgba(239, 202, 104, 0.58), rgba(239, 202, 104, 0));
}

.route-curtain.is-active {
  animation: routeCurtain 700ms cubic-bezier(0.78, 0.02, 0.18, 0.98) forwards;
}

.hero,
.page-hero {
  position: relative;
  overflow: hidden;
  background: var(--bg);
}

.hero::before,
.page-hero::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  content: "";
  background:
    linear-gradient(90deg, rgba(4, 10, 19, 0.9) 0%, rgba(4, 10, 19, 0.72) 38%, rgba(4, 10, 19, 0.42) 64%, rgba(4, 10, 19, 0.8) 100%),
    linear-gradient(180deg, rgba(4, 10, 19, 0.2), rgba(4, 10, 19, 0.78));
}

.hero::after,
.page-hero::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  content: "";
  opacity: 0.34;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.92), rgba(0, 0, 0, 0.5));
}

.hero--home {
  min-height: 100svh;
  padding-top: 76px;
}

.hero--home::before {
  background:
    linear-gradient(180deg, rgba(5, 13, 24, 0.08) 28%, rgba(5, 13, 24, 0.24) 62%, rgba(5, 13, 24, 0.88) 100%),
    linear-gradient(90deg, rgba(5, 13, 24, 0.88) 0%, rgba(5, 13, 24, 0.58) 26%, rgba(5, 13, 24, 0.18) 56%, rgba(5, 13, 24, 0.28) 100%);
}

.hero--home::after {
  display: none;
}

.page-hero {
  min-height: 74svh;
  padding: clamp(160px, 22vh, 220px) 0 84px;
  display: flex;
  align-items: flex-end;
}

.hero__media {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.03);
  filter: saturate(0.94) contrast(1.04);
}

.hero__shell {
  position: relative;
  z-index: 2;
  width: min(calc(100% - 28px), var(--shell-max));
  min-height: calc(100svh - 76px);
  margin: 0 auto;
  padding: 34px 0 126px;
}

.hero__intro {
  max-width: 21rem;
}

.hero__note {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.88rem;
  line-height: 1.68;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.34);
}

.hero__cta {
  position: absolute;
  bottom: 126px;
  left: 0;
  z-index: 5;
  display: flex;
  max-width: 29rem;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  opacity: 0;
}

.site-ready .hero__cta {
  opacity: 1;
  animation: heroControlIn 800ms cubic-bezier(0.16, 1, 0.3, 1) 220ms both;
}

.hero__cta-label {
  margin: 0;
  color: white;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  line-height: 1.2;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.34);
  text-transform: uppercase;
}

.hero__title-mobile {
  display: none;
  max-width: 8ch;
  margin: 0;
  color: white;
  font-size: clamp(3.1rem, 12vw, 3.6rem);
  font-weight: 800;
  line-height: 0.84;
}

.hero__title-mobile span {
  display: block;
}

.hero__title-mobile span:last-child {
  color: var(--gold-bright);
}

.hero__summary {
  max-width: 28rem;
  margin: 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 1rem;
  line-height: 1.72;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.34);
}

.hero__backdrop,
.page-hero__backdrop {
  position: absolute;
  inset: 0;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  transform: scale(1.03);
  animation: slowPan 18s ease-in-out infinite alternate;
}

.hero--home .hero__backdrop,
.page-hero--team .page-hero__backdrop,
.page-hero--contact .page-hero__backdrop,
.page-hero--industries .page-hero__backdrop {
  background-image: url("/assets/images/kaicol-team-hero.png");
}

.page-hero--system .page-hero__backdrop {
  background-image: url("/assets/images/kaicol-payroll-login.png");
  background-position: center top;
}

.page-hero--paper::before {
  background:
    linear-gradient(90deg, rgba(4, 10, 19, 0.82) 0%, rgba(4, 10, 19, 0.64) 45%, rgba(4, 10, 19, 0.36) 70%, rgba(4, 10, 19, 0.78) 100%),
    linear-gradient(180deg, rgba(4, 10, 19, 0.16), rgba(4, 10, 19, 0.72));
}

.hero__grid,
.page-hero__grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.7fr);
  gap: 40px;
  align-items: end;
}

.hero__copy,
.page-hero__copy {
  max-width: 42rem;
}

.hero__text p,
.page-hero__copy p {
  margin-bottom: 0;
}

.hero__panel,
.page-hero__panel,
.contact-rail,
.cta-block,
.surface-card,
.story-tile,
.step-card,
.role-card,
.workflow-card,
.sector-card,
.metric,
.split-panel__stack article,
.value-card,
.device-frame,
.form-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.hero__panel {
  padding: 22px;
  background: linear-gradient(180deg, rgba(12, 26, 42, 0.84), rgba(6, 14, 24, 0.76));
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(12px);
}

.hero__panel strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero__panel p {
  margin-bottom: 14px;
  color: var(--text-dim);
}

.hero__panel img {
  width: 100%;
  border-radius: 20px;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.hero__stats {
  position: absolute;
  right: 14px;
  bottom: 0;
  left: 14px;
  z-index: 4;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  min-height: 105px;
  overflow: hidden;
  color: white;
  background: rgba(5, 13, 24, 0.84);
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(18px);
}

.hero-stat {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  padding: 18px 22px;
  border-right: 1px solid rgba(255, 255, 255, 0.14);
  opacity: 0;
  transform: translateY(100%);
}

.hero-stat:last-child {
  border-right: 0;
}

.hero-stat::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 2px;
  content: "";
  background: var(--gold-bright);
  transition: width 220ms ease;
}

.hero-stat:hover {
  background: rgba(255, 255, 255, 0.06);
}

.hero-stat:hover::before {
  width: 100%;
}

.site-ready .hero-stat {
  opacity: 1;
  animation: heroStatIn 760ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.site-ready .hero-stat:nth-child(1) {
  animation-delay: 320ms;
}

.site-ready .hero-stat:nth-child(2) {
  animation-delay: 420ms;
}

.site-ready .hero-stat:nth-child(3) {
  animation-delay: 520ms;
}

.site-ready .hero-stat:nth-child(4) {
  animation-delay: 620ms;
}

.hero-stat__value {
  font-family: "Barlow Condensed", sans-serif;
  font-size: clamp(2.3rem, 2.8vw, 2.8rem);
  font-weight: 800;
  line-height: 0.88;
  letter-spacing: -0.03em;
}

.hero-stat__label {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.54rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  line-height: 1.45;
  text-transform: uppercase;
}

.editorial {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.86fr);
  gap: 36px;
  align-items: start;
}

.editorial__copy h2,
.section-title h2 {
  margin-bottom: 18px;
}

.section-title {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.72fr);
  gap: 36px;
  align-items: end;
  margin-bottom: 42px;
}

.metrics,
.value-grid,
.story-grid,
.role-grid,
.workflow-grid,
.process-grid,
.sector-grid {
  display: grid;
  gap: 22px;
}

.metrics {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.metric,
.story-tile,
.step-card,
.role-card,
.workflow-card,
.sector-card,
.value-card,
.surface-card {
  padding: 28px;
}

.metric {
  background: rgba(255, 255, 255, 0.76);
  border-color: rgba(18, 27, 40, 0.08);
  box-shadow: 0 20px 42px rgba(18, 27, 40, 0.08);
}

.metric strong {
  display: block;
  margin-bottom: 10px;
  color: var(--ink);
  font-family: "Barlow Condensed", sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 0.9;
}

.metric span {
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.system-stage {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.84fr);
  gap: 34px;
  align-items: center;
}

.device-frame {
  padding: 18px;
  background:
    radial-gradient(circle at 88% 14%, rgba(239, 202, 104, 0.12), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  box-shadow: var(--shadow-lg);
}

.device-frame__bar {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}

.device-frame__bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.26);
}

.device-frame img {
  width: 100%;
  border-radius: 22px;
}

.system-copy,
.split-panel__copy {
  max-width: 42rem;
}

.system-points,
.bullet-list,
.story-points {
  display: grid;
  gap: 12px;
  color: var(--text-dim);
}

.system-points li,
.story-points li,
.bullet-list li {
  list-style: none;
  position: relative;
  padding-left: 22px;
}

.system-points li::before,
.story-points li::before,
.bullet-list li::before {
  position: absolute;
  top: 0.6rem;
  left: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  content: "";
  background: var(--gold);
  box-shadow: 0 0 0 6px var(--gold-soft);
}

.story-grid,
.value-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.story-tile,
.role-card,
.workflow-card,
.step-card,
.value-card,
.sector-card,
.surface-card {
  background: rgba(255, 255, 255, 0.04);
}

.section--paper .story-tile,
.section--paper .role-card,
.section--paper .workflow-card,
.section--paper .step-card,
.section--paper .value-card,
.section--paper .sector-card,
.section--paper .surface-card {
  background: rgba(255, 255, 255, 0.86);
  border-color: rgba(18, 27, 40, 0.08);
  box-shadow: 0 20px 42px rgba(18, 27, 40, 0.08);
}

.tile-number,
.panel-label,
.workflow-card strong,
.step-card strong,
.role-card strong,
.sector-card strong {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.panel-label::before,
.tile-number::before {
  width: 26px;
  height: 2px;
  content: "";
  background: currentColor;
}

.split-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1fr);
  gap: 34px;
  align-items: start;
}

.split-panel__stack {
  display: grid;
  gap: 18px;
}

.split-panel__stack article {
  padding: 22px 24px;
  background: rgba(255, 255, 255, 0.03);
}

.section--paper .split-panel__stack article {
  background: rgba(255, 255, 255, 0.78);
  border-color: rgba(18, 27, 40, 0.08);
}

.workflow-grid,
.process-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.process-grid {
  gap: 18px;
}

.step-card {
  position: relative;
  overflow: hidden;
}

.step-card::after {
  position: absolute;
  inset: auto auto 0 0;
  width: 100%;
  height: 2px;
  content: "";
  background: linear-gradient(90deg, var(--gold), transparent 80%);
}

.sector-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.marquee {
  overflow: hidden;
  padding: 18px 0;
  border-block: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(11, 23, 38, 0.94), rgba(5, 13, 24, 0.98));
}

.marquee__track {
  display: flex;
  gap: 28px;
  min-width: max-content;
  color: rgba(255, 255, 255, 0.74);
  font-family: "Barlow Condensed", sans-serif;
  font-size: clamp(1.3rem, 2vw, 2rem);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  animation: marquee 22s linear infinite;
}

.cta-block,
.contact-rail {
  padding: 34px;
  background:
    radial-gradient(circle at 86% 14%, rgba(239, 202, 104, 0.16), transparent 26%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03));
  box-shadow: var(--shadow-md);
}

.page-hero__panel {
  padding: 24px;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(12px);
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.84fr) minmax(360px, 0.94fr);
  gap: 28px;
  align-items: start;
}

.contact-details {
  display: grid;
  gap: 18px;
  margin-top: 26px;
}

.contact-detail {
  display: grid;
  gap: 6px;
  padding: 18px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.contact-detail span {
  color: var(--text-dim);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.contact-rail .contact-detail strong,
.contact-rail .contact-detail a {
  color: white;
}

.form-card {
  padding: 34px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.94);
  border-color: rgba(18, 27, 40, 0.08);
  box-shadow: 0 24px 56px rgba(18, 27, 40, 0.12);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.field {
  display: grid;
  gap: 8px;
}

.field--full {
  grid-column: 1 / -1;
}

.field--trap {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.field label {
  color: rgba(18, 27, 40, 0.82);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(18, 27, 40, 0.12);
  border-radius: 16px;
  color: var(--ink);
  background: rgba(245, 241, 232, 0.78);
}

.field textarea {
  min-height: 140px;
  resize: vertical;
}

.form-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-top: 22px;
}

.form-status {
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.form-status.is-success {
  color: var(--success);
}

.form-status.is-error {
  color: var(--danger);
}

.site-footer {
  padding: 48px 0 28px;
  border-top: 1px solid var(--line);
  background: #040a13;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.1fr repeat(3, minmax(0, 0.7fr));
  gap: 22px;
  align-items: start;
}

.footer-brand .brand {
  margin-bottom: 14px;
}

.brand--footer .brand__word {
  font-size: clamp(1.9rem, 2vw, 2.3rem);
}

.brand--footer .brand__tag {
  color: rgba(255, 255, 255, 0.66);
}

.footer-brand p,
.footer-col a,
.footer-col span {
  color: var(--text-dim);
}

.footer-col {
  display: grid;
  gap: 10px;
}

.footer-col strong {
  color: white;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-dim);
  font-size: 0.86rem;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 1300;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(4, 10, 19, 0.6);
  backdrop-filter: blur(12px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 220ms ease, visibility 220ms ease;
}

.modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.modal__dialog {
  position: relative;
  width: min(1040px, 100%);
  max-height: min(92svh, 100%);
  overflow: auto;
  border-radius: 34px;
  box-shadow: var(--shadow-lg);
}

.modal__dialog--form {
  padding: 34px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.97);
}

.modal__dialog--story {
  padding: 30px;
  background:
    radial-gradient(circle at 86% 12%, rgba(239, 202, 104, 0.12), transparent 24%),
    linear-gradient(180deg, #112133 0%, #08111d 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.modal__close {
  position: sticky;
  top: 0;
  z-index: 2;
  margin-left: auto;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: inherit;
  font-size: 1.35rem;
}

.modal__dialog--form .modal__close {
  border-color: rgba(18, 27, 40, 0.12);
  background: rgba(18, 27, 40, 0.05);
}

.modal__head {
  max-width: 38rem;
  margin-top: -14px;
  margin-bottom: 24px;
}

.story-modal__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.82fr);
  gap: 24px;
  align-items: center;
}

.story-modal__media img {
  width: 100%;
  border-radius: 24px;
}

.story-modal__detail h2 {
  margin-bottom: 18px;
}

.story-modal__lead {
  margin-bottom: 18px;
  color: var(--text-dim);
}

.story-film {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.story-film video {
  width: 100%;
  border-radius: 22px;
}

.surface-card video {
  width: 100%;
  border-radius: 22px;
}

.quote-block {
  padding: 32px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-family: "Barlow Condensed", sans-serif;
  font-size: clamp(2rem, 4vw, 3.8rem);
  line-height: 0.96;
  text-transform: uppercase;
}

.media-note {
  margin-top: 14px;
  color: var(--text-dim);
  font-size: 0.88rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.reveal {
  opacity: 0;
  transform: translateY(34px) scale(0.985);
  transition: opacity 760ms cubic-bezier(0.22, 1, 0.36, 1), transform 760ms cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.not-found {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 140px 0 60px;
}

.not-found__card {
  width: min(100%, 760px);
  padding: 42px;
  text-align: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  border-radius: 32px;
  box-shadow: var(--shadow-lg);
}

@keyframes heroLineIn {
  from {
    opacity: 0;
    transform: translateY(22px);
    filter: blur(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@keyframes slowPan {
  from {
    transform: scale(1.02) translate3d(-1.4%, -0.4%, 0);
  }

  to {
    transform: scale(1.08) translate3d(1.4%, 0.8%, 0);
  }
}

@keyframes heroControlIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes heroStatIn {
  from {
    opacity: 0;
    transform: translateY(100%);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes routeCurtain {
  0% {
    transform: translateX(-102%);
  }

  40%,
  60% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(102%);
  }
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

@keyframes sweep {
  from {
    transform: translateX(-100%);
  }

  to {
    transform: translateX(220%);
  }
}

@media (max-width: 1100px) {
  .hero__grid,
  .page-hero__grid,
  .editorial,
  .system-stage,
  .split-panel,
  .section-title,
  .contact-layout,
  .story-modal__grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .story-grid,
  .value-grid,
  .workflow-grid,
  .process-grid,
  .sector-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .metrics {
    grid-template-columns: 1fr;
  }

  .brand__tag {
    display: none;
  }

  .site-header.is-scrolled .header-shell {
    margin-top: 7px;
  }

  .site-nav {
    position: fixed;
    top: 84px;
    right: 16px;
    left: 16px;
    display: grid;
    gap: 16px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 22px;
    background: rgba(5, 13, 24, 0.96);
    backdrop-filter: blur(18px);
    transform: translateY(-10px) scale(0.98);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
  }

  body.nav-open .site-nav {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scale(1);
  }

  .site-nav__links {
    display: grid;
    gap: 6px;
    margin-left: 0;
  }

  .site-nav__actions {
    display: grid;
    gap: 10px;
  }

  .menu-toggle {
    display: inline-grid;
    place-items: center;
  }

  .site-nav__actions .btn,
  .site-nav__actions .btn--ghost {
    width: 100%;
  }

  .hero__cta {
    right: 0;
    bottom: 188px;
    max-width: 26rem;
  }

  .hero__stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    min-height: 172px;
  }

  .hero-stat {
    min-height: 86px;
    padding: 13px 18px;
  }

  .hero-stat:nth-child(2) {
    border-right: 0;
  }

  .hero-stat:nth-child(-n + 2) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  }
}

@media (max-width: 760px) {
  .container {
    width: min(calc(100% - 32px), var(--max));
  }

  .hero--home {
    min-height: 780px;
  }

  .page-hero {
    min-height: auto;
    padding-top: 136px;
  }

  .hero__shell {
    min-height: calc(100svh - 76px);
    padding: 22px 0 172px;
  }

  .hero__video {
    object-position: 63% center;
  }

  .hero__intro {
    max-width: 14rem;
  }

  .hero__note {
    font-size: 0.8rem;
  }

  .hero__cta {
    right: 0;
    bottom: 190px;
    gap: 10px;
    max-width: 100%;
  }

  .hero__title-mobile {
    display: block;
  }

  .hero__summary {
    max-width: 21rem;
    font-size: 0.88rem;
  }

  .hero-stat__value {
    font-size: clamp(2rem, 9vw, 2.5rem);
  }

  .story-grid,
  .value-grid,
  .workflow-grid,
  .process-grid,
  .sector-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .button-row,
  .form-footer,
  .footer-bottom {
    flex-direction: column;
    align-items: stretch;
  }

  .button-row .btn,
  .form-footer .btn {
    width: 100%;
  }

  .metric,
  .story-tile,
  .step-card,
  .role-card,
  .workflow-card,
  .sector-card,
  .value-card,
  .surface-card,
  .hero__panel,
  .page-hero__panel,
  .cta-block,
  .contact-rail,
  .form-card,
  .modal__dialog--form,
  .modal__dialog--story,
  .not-found__card {
    padding: 24px;
  }

  .story-modal__grid {
    gap: 18px;
  }

  .modal {
    padding: 12px;
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 0ms !important;
    transition-delay: 0ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .hero__cta,
  .hero-stat {
    opacity: 1;
    transform: none;
  }
}
