/* =========================================================================
   OBJECTIVE SYSTEMS — design system
   Dark glass + electric cyan. Display: Saira · Body: IBM Plex Sans
   Mono labels: IBM Plex Mono. No logos — text wordmark only.
   ========================================================================= */

/* ---- Tokens ------------------------------------------------------------- */
:root {
  /* surfaces — neutral premium dark (pairs with action red) */
  --bg:        #08080b;
  --bg-2:      #0e0f14;
  --bg-3:      #15161d;
  --panel:     rgba(255, 255, 255, 0.04);
  --panel-2:   rgba(255, 255, 255, 0.065);
  --line:      rgba(255, 255, 255, 0.10);
  --line-2:    rgba(255, 255, 255, 0.17);

  /* text */
  --ink:       #f0eef0;
  --ink-soft:  #c0b7bd;
  --ink-mute:  #847c84;

  /* accent — brand crimson (logo #C21043) → action red */
  --cy:        #fb3b6b;  /* bright accent: glows + accent text */
  --teal:      #e11d48;  /* deep rose */
  --cy-deep:   #c21043;  /* brand crimson (the logo) */
  --accent-grad: linear-gradient(115deg, #fb3b6b 0%, #e11d48 55%, #c21043 100%);
  --glow:      0 0 0 1px rgba(225, 29, 72, 0.40), 0 0 30px rgba(225, 29, 72, 0.26);

  /* type */
  --f-display: "Saira", system-ui, sans-serif;
  --f-body:    "IBM Plex Sans", system-ui, sans-serif;
  --f-mono:    "IBM Plex Mono", ui-monospace, monospace;

  /* layout */
  --maxw: 1180px;
  --gutter: clamp(1.1rem, 4vw, 2.5rem);
  --radius: 16px;
  --radius-lg: 24px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---- Reset -------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--f-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  font-size: 1.02rem;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }
button { font: inherit; cursor: pointer; }

/* ---- Atmosphere: fixed background field -------------------------------- */
body::before { /* radial gradient mesh */
  content: "";
  position: fixed; inset: 0; z-index: -2;
  background:
    radial-gradient(60% 50% at 12% -5%, rgba(251, 59, 107, 0.16), transparent 60%),
    radial-gradient(55% 45% at 100% 0%, rgba(225, 29, 72, 0.12), transparent 55%),
    radial-gradient(70% 60% at 80% 110%, rgba(194, 16, 67, 0.10), transparent 60%),
    var(--bg);
}
body::after { /* dot grid */
  content: "";
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(180deg, transparent, #000 8%, #000 92%, transparent);
}

/* ---- Layout helpers ----------------------------------------------------- */
.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(4rem, 9vw, 7.5rem); }
.section--tight { padding-block: clamp(3rem, 6vw, 5rem); }

/* ---- Type --------------------------------------------------------------- */
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 700; line-height: 1.05; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.5rem, 6.5vw, 4.6rem); font-weight: 800; }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.55rem); }
p { color: var(--ink-soft); }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--ink-soft); max-width: 60ch; }

.eyebrow {
  font-family: var(--f-mono);
  font-size: 0.74rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cy);
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}
.eyebrow::before {
  content: "";
  width: 1.6rem; height: 1px;
  background: var(--accent-grad);
}
.gradient-text {
  background: var(--accent-grad);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}

/* ---- Buttons ------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; gap: 0.55rem;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  font-family: var(--f-mono);
  font-size: 0.82rem; letter-spacing: 0.06em; text-transform: uppercase;
  border: 1px solid transparent;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease);
  will-change: transform;
}
.btn--primary {
  background: var(--accent-grad);
  color: #fff; font-weight: 600;
  box-shadow: 0 8px 30px rgba(251, 59, 107, 0.28);
}
.btn--primary:hover { transform: translateY(-3px); box-shadow: 0 14px 40px rgba(251, 59, 107, 0.42); }
.btn--ghost {
  background: var(--panel);
  border-color: var(--line-2);
  color: var(--ink);
  backdrop-filter: blur(8px);
}
.btn--ghost:hover { border-color: var(--cy); box-shadow: var(--glow); transform: translateY(-3px); }
.btn .arrow { transition: transform 0.25s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

/* ---- Glass panel -------------------------------------------------------- */
.glass {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
}

/* =========================================================================
   HEADER / NAV
   ========================================================================= */
.nav {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), backdrop-filter 0.3s;
}
.nav.is-scrolled {
  background: rgba(8, 8, 11, 0.72);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--line);
}
.nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 76px;
}
.brand { display: inline-flex; align-items: center; gap: 0.6rem; }
.brand__mark { height: 38px; width: auto; display: block; }
.brand__text {
  font-family: var(--f-display); font-weight: 800; letter-spacing: 0.04em;
  font-size: 1.02rem; color: var(--ink); white-space: nowrap;
}
.brand__text span { color: var(--ink-mute); font-weight: 400; }
.brand__logo--footer { height: auto; width: 150px; display: block; }
.wordmark {
  font-family: var(--f-display);
  font-weight: 800;
  letter-spacing: 0.04em;
  font-size: 1.02rem;
  display: inline-flex; align-items: center; gap: 0.6rem;
}
.wordmark__dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--accent-grad);
  box-shadow: 0 0 12px var(--cy);
}
.wordmark span { color: var(--ink-mute); font-weight: 400; }
.nav__links { display: flex; align-items: center; gap: 0.4rem; }
.nav__links a {
  padding: 0.5rem 0.9rem; border-radius: 999px;
  font-size: 0.92rem; color: var(--ink-soft);
  transition: color 0.2s, background 0.2s;
}
.nav__links a:hover { color: var(--ink); background: var(--panel); }
.nav__cta { margin-left: 0.5rem; }
.nav__toggle { display: none; background: none; border: 0; color: var(--ink); padding: 0.4rem; }

/* =========================================================================
   HERO
   ========================================================================= */
.hero { position: relative; padding-block: clamp(5rem, 13vw, 9rem) clamp(3rem, 7vw, 5rem); }
.hero__beam { /* animated scanning beam behind hero */
  position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none;
}
.hero__beam::before {
  content: ""; position: absolute; top: -20%; left: -10%;
  width: 60%; height: 140%;
  background: radial-gradient(closest-side, rgba(251, 59, 107, 0.20), transparent 70%);
  filter: blur(20px);
  animation: drift 14s var(--ease) infinite alternate;
}
@keyframes drift { to { transform: translate(45%, 8%) scale(1.15); } }

.hero h1 { max-width: 16ch; }
.hero h1 .em { display: block; }
.hero__sub { margin-top: 1.6rem; }
.hero__actions { margin-top: 2.2rem; display: flex; gap: 0.9rem; flex-wrap: wrap; }

/* stat strip under hero */
.statstrip {
  margin-top: clamp(3rem, 7vw, 4.5rem);
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; background: var(--line);
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden;
}
.statstrip .stat { background: var(--bg-2); padding: 1.4rem 1.5rem; }
.stat__num { font-family: var(--f-display); font-weight: 800; font-size: clamp(1.6rem, 3vw, 2.3rem); }
.stat__label { font-family: var(--f-mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-mute); margin-top: 0.3rem; }

/* =========================================================================
   SECTION HEADER
   ========================================================================= */
.section-head { max-width: 64ch; }
.section-head h2 { margin-top: 0.9rem; }
.section-head p { margin-top: 1rem; }

/* =========================================================================
   DIVISION + SERVICE CARDS
   ========================================================================= */
.division-label {
  display: flex; align-items: center; gap: 1rem;
  margin: 3rem 0 1.5rem;
  font-family: var(--f-mono); font-size: 0.78rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--ink-mute);
}
.division-label::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.cards {
  display: grid; gap: 1.1rem;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
}
.card {
  position: relative;
  display: flex; flex-direction: column;
  padding: 1.6rem;
  border-radius: var(--radius);
  background: var(--panel);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), background 0.35s;
}
.card::before { /* glow sweep on hover */
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(120% 80% at 0% 0%, rgba(251, 59, 107, 0.12), transparent 55%);
  opacity: 0; transition: opacity 0.4s var(--ease);
}
.card:hover { transform: translateY(-6px); border-color: var(--line-2); background: var(--panel-2); }
.card:hover::before { opacity: 1; }
.card__icon {
  width: 48px; height: 48px; border-radius: 12px;
  display: grid; place-items: center;
  background: rgba(251, 59, 107, 0.08);
  border: 1px solid rgba(251, 59, 107, 0.22);
  color: var(--cy);
  margin-bottom: 1.1rem;
}
.card__icon svg { width: 24px; height: 24px; }
.card__index {
  position: absolute; top: 1.3rem; right: 1.5rem;
  font-family: var(--f-mono); font-size: 0.78rem; color: var(--ink-mute);
}
.card h3 { margin-bottom: 0.55rem; }
.card p { font-size: 0.95rem; flex: 1; }
.card__more {
  margin-top: 1.2rem; font-family: var(--f-mono); font-size: 0.78rem;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--cy);
  display: inline-flex; align-items: center; gap: 0.45rem;
}
.card__more .arrow { transition: transform 0.25s var(--ease); }
.card:hover .card__more .arrow { transform: translateX(4px); }

/* =========================================================================
   FEATURE / SPLIT ROWS (home "two divisions")
   ========================================================================= */
.split {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
}
.split--rev { grid-template-columns: 1fr 1.05fr; }
.split--rev .split__media { order: -1; }
.split__media {
  border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--line); position: relative;
  aspect-ratio: 4 / 3;
}
.split__media img { width: 100%; height: 100%; object-fit: cover; }
.split__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(160deg, transparent 40%, rgba(8, 8, 11, 0.55));
}
.checklist { margin-top: 1.4rem; display: grid; gap: 0.75rem; }
.checklist li { display: flex; gap: 0.7rem; color: var(--ink-soft); }
.checklist svg { flex: none; width: 20px; height: 20px; color: var(--cy); margin-top: 0.25rem; }

/* =========================================================================
   CTA BAND
   ========================================================================= */
.cta {
  position: relative; overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-2);
  background:
    radial-gradient(80% 120% at 0% 0%, rgba(251, 59, 107, 0.18), transparent 55%),
    radial-gradient(80% 120% at 100% 100%, rgba(225, 29, 72, 0.16), transparent 55%),
    var(--bg-3);
  padding: clamp(2.5rem, 6vw, 4.5rem);
  text-align: center;
}
.cta h2 { max-width: 20ch; margin-inline: auto; }
.cta p { margin: 1rem auto 0; max-width: 52ch; }
.cta .hero__actions { justify-content: center; margin-top: 2rem; }

/* =========================================================================
   SERVICE PAGE
   ========================================================================= */
.service-hero { padding-block: clamp(4rem, 10vw, 7rem) clamp(2rem, 5vw, 3.5rem); }
.service-hero__division {
  font-family: var(--f-mono); font-size: 0.78rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--ink-mute);
}
.service-hero h1 { margin-top: 0.8rem; max-width: 18ch; }
.service-hero .lead { margin-top: 1.4rem; }
.service-banner {
  margin-top: clamp(2rem, 5vw, 3rem);
  border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line);
  position: relative; aspect-ratio: 21 / 9;
}
.service-banner img { width: 100%; height: 100%; object-fit: cover; }
.service-banner::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(8,8,11,0.1), rgba(8,8,11,0.6));
}

.cap-grid {
  display: grid; gap: 1.1rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.cap {
  padding: 1.5rem; border-radius: var(--radius);
  background: var(--panel); border: 1px solid var(--line);
  transition: border-color 0.3s, transform 0.3s var(--ease);
}
.cap:hover { border-color: var(--line-2); transform: translateY(-4px); }
.cap__n { font-family: var(--f-mono); font-size: 0.78rem; color: var(--cy); }
.cap h3 { font-size: 1.15rem; margin: 0.6rem 0 0.5rem; }
.cap p { font-size: 0.93rem; }

.crumb { font-family: var(--f-mono); font-size: 0.78rem; color: var(--ink-mute); }
.crumb a { color: var(--ink-soft); }
.crumb a:hover { color: var(--cy); }

/* other-services rail */
.rail { display: grid; gap: 0.8rem; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.rail a {
  padding: 1.1rem 1.2rem; border-radius: var(--radius);
  background: var(--panel); border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  transition: border-color 0.3s, background 0.3s, transform 0.3s var(--ease);
}
.rail a:hover { border-color: var(--cy); background: var(--panel-2); transform: translateY(-3px); }
.rail .t { font-family: var(--f-display); font-weight: 600; font-size: 0.98rem; }
.rail .n { font-family: var(--f-mono); font-size: 0.72rem; color: var(--ink-mute); }

/* =========================================================================
   ABOUT
   ========================================================================= */
.value-grid { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.value { padding: 1.6rem; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); }
.value h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }
.value p { font-size: 0.94rem; }

.steps { counter-reset: step; display: grid; gap: 1rem; }
.step {
  display: grid; grid-template-columns: auto 1fr; gap: 1.2rem; align-items: start;
  padding: 1.4rem 1.5rem; border-radius: var(--radius);
  background: var(--panel); border: 1px solid var(--line);
}
.step__n {
  counter-increment: step;
  font-family: var(--f-display); font-weight: 800; font-size: 1.4rem;
  color: var(--cy);
  width: 2.6rem; height: 2.6rem; border-radius: 10px;
  display: grid; place-items: center;
  background: rgba(34,211,238,0.07); border: 1px solid rgba(34,211,238,0.22);
}
.step__n::before { content: counter(step, decimal-leading-zero); }
.step h3 { font-size: 1.1rem; margin-bottom: 0.35rem; }
.step p { font-size: 0.94rem; }

/* =========================================================================
   CONTACT / FORMS
   ========================================================================= */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
.info-list { display: grid; gap: 1.2rem; margin-top: 1.8rem; }
.info-item { display: flex; gap: 0.9rem; align-items: flex-start; }
.info-item svg { width: 22px; height: 22px; color: var(--cy); flex: none; margin-top: 0.2rem; }
.info-item .k { font-family: var(--f-mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-mute); }
.info-item .v { color: var(--ink); }

.form { padding: clamp(1.5rem, 4vw, 2.4rem); }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-family: var(--f-mono); font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 0.5rem; }
.field input, .field select, .field textarea {
  width: 100%; padding: 0.85rem 1rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--line-2);
  border-radius: 12px;
  color: var(--ink); font-family: var(--f-body); font-size: 0.98rem;
  transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
}
.field input::placeholder, .field textarea::placeholder { color: var(--ink-mute); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--cy); background: rgba(34,211,238,0.04);
  box-shadow: 0 0 0 3px rgba(251, 59, 107, 0.14);
}
.field textarea { resize: vertical; min-height: 130px; }
.field--row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field.invalid input, .field.invalid textarea, .field.invalid select { border-color: #f87171; }
.field .err { display: none; color: #fca5a5; font-size: 0.8rem; margin-top: 0.4rem; }
.field.invalid .err { display: block; }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }
.form__note { font-size: 0.82rem; color: var(--ink-mute); margin-top: 0.8rem; }
.form__status { margin-top: 1rem; font-size: 0.92rem; display: none; }
.form__status.ok { display: block; color: var(--teal); }
.form__status.bad { display: block; color: #fca5a5; }

/* =========================================================================
   FOOTER
   ========================================================================= */
.footer { border-top: 1px solid var(--line); margin-top: 2rem; padding-block: 3.5rem 2.5rem; }
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
.footer h4 { font-family: var(--f-mono); font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-mute); font-weight: 500; margin-bottom: 1rem; }
.footer a { color: var(--ink-soft); display: block; padding: 0.25rem 0; font-size: 0.94rem; }
.footer a:hover { color: var(--cy); }
.footer__about { max-width: 36ch; }
.footer__about p { font-size: 0.92rem; margin-top: 0.9rem; }
.footer__bottom {
  margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  font-family: var(--f-mono); font-size: 0.76rem; color: var(--ink-mute);
}

/* =========================================================================
   SCROLL REVEAL
   ========================================================================= */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: 0.08s; }
.reveal[data-d="2"] { transition-delay: 0.16s; }
.reveal[data-d="3"] { transition-delay: 0.24s; }
.reveal[data-d="4"] { transition-delay: 0.32s; }

/* =========================================================================
   RESPONSIVE
   ========================================================================= */
@media (max-width: 900px) {
  .nav__links { display: none; }
  .nav__toggle { display: inline-flex; }
  .nav.is-open .nav__links {
    display: flex; flex-direction: column; align-items: stretch;
    position: absolute; top: 76px; left: 0; right: 0;
    background: rgba(8,8,11,0.96); backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line); padding: 1rem var(--gutter) 1.5rem; gap: 0.2rem;
  }
  .nav.is-open .nav__links a { padding: 0.85rem 0.4rem; }
  .nav__cta { margin: 0.6rem 0 0; }
  .split, .split--rev { grid-template-columns: 1fr; }
  .split--rev .split__media { order: 0; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .statstrip { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
  .field--row { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr; }
  .statstrip { grid-template-columns: 1fr 1fr; }
  .hero__actions .btn { width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
