/* Palette seed: IT BUSINESS ENABLERS → hue 349 */
:root {
  --accent-hue: 349;
  --accent-two-hue: 73;
  --bg-hue: 209;
  --accent: hsl(349, 84%, 65%);
  --accent-two: hsl(73, 72%, 62%);
  --bg: hsl(209, 33%, 7%);
  --text: hsl(209, 20%, 96%);
  --panel: color-mix(in srgb, var(--bg) 72%, hsl(209, 22%, 18%));
  --muted: color-mix(in srgb, var(--text) 62%, transparent);
  --line: color-mix(in srgb, var(--text) 14%, transparent);
  --accent-mix: color-mix(in srgb, var(--accent) 20%, transparent);
  --accent-two-mix: color-mix(in srgb, var(--accent-two) 18%, transparent);
  --max: 1200px;
  --font: "Manrope", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body.shell {
  font-family: var(--font);
  background: var(--bg);
  background-image:
    radial-gradient(circle at 15% 9%, var(--accent-mix), transparent 55%),
    radial-gradient(circle at 85% 1%, var(--accent-two-mix), transparent 50%);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }

/* ── Masthead: full-width rail + numbered nav ── */
.masthead {
  position: sticky;
  top: 0;
  z-index: 200;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.masthead__bar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 18px 20px;
}

.masthead__brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.masthead__glyph {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  clip-path: polygon(12% 0, 100% 0, 88% 100%, 0 100%);
  background: linear-gradient(135deg, var(--accent), var(--accent-two));
  color: var(--bg);
  font-weight: 900;
  font-size: 1.2rem;
}

.masthead__name {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.masthead__name-line {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.masthead__name-line--dim {
  color: var(--muted);
  font-weight: 600;
}

.masthead__list {
  display: flex;
  justify-content: flex-end;
  gap: 4px;
  list-style: none;
}

.masthead__list a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.masthead__idx {
  font-size: 0.65rem;
  font-weight: 800;
  color: var(--accent);
  opacity: 0.7;
}

.masthead__list a:hover {
  color: var(--text);
  border-bottom-color: var(--accent-two);
}

.masthead__toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: var(--panel);
  cursor: pointer;
  position: relative;
}

.masthead__toggle span {
  position: absolute;
  left: 12px;
  right: 12px;
  height: 2px;
  background: var(--text);
  transition: transform 0.25s, opacity 0.25s;
}

.masthead__toggle span:first-child { top: 16px; }
.masthead__toggle span:last-child { bottom: 16px; }

.masthead__toggle.is-open span:first-child {
  top: 21px;
  transform: rotate(45deg);
}

.masthead__toggle.is-open span:last-child {
  bottom: 21px;
  transform: rotate(-45deg);
}

.masthead__beam {
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-two), transparent 80%);
}

/* ── Main flow ── */
.flow {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px 100px;
  display: flex;
  flex-direction: column;
  gap: 120px;
}

/* ── Splash: watermark + stacked pillars + ticker ── */
.splash {
  position: relative;
  padding-top: 48px;
  overflow: hidden;
}

.splash__watermark {
  position: absolute;
  top: -40px;
  right: -20px;
  font-size: clamp(12rem, 28vw, 22rem);
  font-weight: 900;
  line-height: 0.85;
  color: color-mix(in srgb, var(--accent) 6%, transparent);
  pointer-events: none;
  user-select: none;
}

.splash__layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: end;
  position: relative;
}

.splash__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.splash__chip {
  padding: 6px 14px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid color-mix(in srgb, var(--accent-two) 40%, transparent);
  color: var(--accent-two);
}

.splash__chip--ghost {
  border-color: var(--line);
  color: var(--muted);
}

.splash__title {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.035em;
  max-width: 16ch;
  margin-bottom: 24px;
}

.splash__desc {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 48ch;
  margin-bottom: 36px;
}

.splash__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.splash__actions-sep {
  width: 32px;
  height: 1px;
  background: var(--line);
}

.act {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  font-family: var(--font);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: transform 0.2s, box-shadow 0.2s;
}

.act:hover { transform: translateY(-2px); }

.act--fill {
  background: linear-gradient(120deg, var(--accent), var(--accent-two));
  color: var(--bg);
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
  box-shadow: 0 10px 40px color-mix(in srgb, var(--accent) 30%, transparent);
}

.act--line {
  color: var(--text);
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--panel) 50%, transparent);
}

.act--wide { width: 100%; }

.splash__stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-bottom: 20px;
}

.splash__stack-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 22px 28px;
  background: var(--panel);
  border-left: 4px solid var(--accent);
  border-right: 1px solid var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.splash__stack-item--offset {
  margin-left: 32px;
  border-left-color: var(--accent-two);
}

.splash__stack-num {
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: 0.1em;
}

.splash__stack-word {
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.splash__ticker {
  display: flex;
  gap: 24px;
  margin-top: 56px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  animation: ticker 28s linear infinite;
}

.splash__ticker span:nth-child(odd) { color: color-mix(in srgb, var(--accent) 70%, var(--muted)); }

@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ── About: spine + pull quote ── */
.about {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 0;
  border: 1px solid var(--line);
}

.about__spine {
  padding: 40px 28px;
  background: color-mix(in srgb, var(--panel) 80%, var(--accent) 6%);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.about__marker {
  font-size: 3rem;
  font-weight: 900;
  line-height: 1;
  background: linear-gradient(180deg, var(--accent), var(--accent-two));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.about__heading {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  writing-mode: horizontal-tb;
}

.about__tenets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.about__tenets li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  line-height: 1.4;
}

.about__tenet-dot {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  margin-top: 5px;
  background: var(--accent-two);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}

.about__body {
  padding: 40px 48px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.about__pull {
  position: relative;
  padding-left: 28px;
  border-left: 3px solid var(--accent);
}

.about__pull p {
  font-size: clamp(1.15rem, 2.5vw, 1.5rem);
  font-weight: 700;
  line-height: 1.45;
  color: color-mix(in srgb, var(--text) 90%, var(--accent) 10%);
}

.about__copy p {
  color: var(--muted);
  font-size: 1.02rem;
  columns: 2;
  column-gap: 40px;
}

/* ── Spectrum: diagonal head + mosaic / void ── */
.spectrum__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.spectrum__marker {
  display: block;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  color: var(--accent-two);
  margin-bottom: 8px;
}

.spectrum__title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 900;
  letter-spacing: -0.03em;
}

.spectrum__subtitle {
  margin-top: 8px;
  font-size: 0.9rem;
  color: var(--muted);
  max-width: 36ch;
}

.spectrum__head-deco {
  display: flex;
  gap: 6px;
  align-items: flex-end;
}

.spectrum__head-deco span {
  display: block;
  width: 4px;
  background: linear-gradient(180deg, var(--accent), var(--accent-two));
}

.spectrum__head-deco span:nth-child(1) { height: 48px; opacity: 0.4; }
.spectrum__head-deco span:nth-child(2) { height: 72px; }
.spectrum__head-deco span:nth-child(3) { height: 36px; opacity: 0.6; }

.spectrum__mosaic {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: minmax(120px, auto);
  gap: 12px;
}

.spectrum__void {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 220px;
  padding: 48px;
  border: 1px dashed color-mix(in srgb, var(--accent) 35%, var(--line));
  background:
    repeating-linear-gradient(
      -45deg,
      transparent,
      transparent 12px,
      color-mix(in srgb, var(--line) 50%, transparent) 12px,
      color-mix(in srgb, var(--line) 50%, transparent) 13px
    );
  position: relative;
}

.spectrum__void-ring {
  width: 64px;
  height: 64px;
  border: 2px solid var(--accent-two);
  border-radius: 50%;
  position: relative;
}

.spectrum__void-ring::after {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px dashed var(--accent);
  border-radius: 50%;
}

.spectrum__void-label {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.spectrum__void-hint {
  font-size: 0.85rem;
  color: var(--muted);
  text-align: center;
  max-width: 32ch;
}

.spectrum__mosaic.has-items .spectrum__void { display: none; }

.spectrum__tile {
  padding: 24px;
  background: var(--panel);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color 0.2s, transform 0.2s;
}

.spectrum__tile:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--accent) 50%, transparent);
}

.spectrum__tile:nth-child(6n+2),
.spectrum__tile:nth-child(6n+4) {
  background: color-mix(in srgb, var(--panel) 55%, var(--accent-two) 10%);
}

.spectrum__tile-num {
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: 0.12em;
}

.spectrum__tile h3 {
  font-size: 1rem;
  font-weight: 700;
}

.spectrum__tile p {
  font-size: 0.85rem;
  color: var(--muted);
}

/* span patterns for bento when items exist */
.spectrum__tile:nth-child(3n+1) { grid-column: span 2; }
.spectrum__tile:nth-child(3n+2) { grid-column: span 2; }
.spectrum__tile:nth-child(3n)   { grid-column: span 2; }

/* ── Pipeline: alternating zigzag timeline ── */
.pipeline__head {
  margin-bottom: 48px;
}

.pipeline__marker {
  display: block;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: 8px;
}

.pipeline__title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 900;
}

.pipeline__track {
  list-style: none;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.pipeline__track::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 24px;
  bottom: 24px;
  width: 2px;
  background: linear-gradient(180deg, var(--accent), var(--accent-two));
  transform: translateX(-50%);
  opacity: 0.35;
}

.pipeline__leg {
  display: flex;
  width: 50%;
  padding: 16px 0;
}

.pipeline__leg--a {
  align-self: flex-start;
  padding-right: 48px;
  justify-content: flex-end;
}

.pipeline__leg--b {
  align-self: flex-end;
  padding-left: 48px;
  justify-content: flex-start;
}

.pipeline__node {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  max-width: 420px;
}

.pipeline__leg--a .pipeline__node { flex-direction: row-reverse; text-align: right; }
.pipeline__leg--b .pipeline__node { flex-direction: row; text-align: left; }

.pipeline__node-ring {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--accent);
  background: var(--bg);
  position: relative;
  z-index: 1;
}

.pipeline__leg--b .pipeline__node-ring {
  border-color: var(--accent-two);
  color: var(--accent-two);
}

.pipeline__node-body {
  padding: 20px 24px;
  background: var(--panel);
  border: 1px solid var(--line);
  flex: 1;
}

.pipeline__leg--a .pipeline__node-body {
  border-right: 3px solid var(--accent);
}

.pipeline__leg--b .pipeline__node-body {
  border-left: 3px solid var(--accent-two);
}

.pipeline__node-body h3 {
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.pipeline__node-body p {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.55;
}

/* ── Reach: tiles row + split form ── */
.reach__intro {
  max-width: 56ch;
  margin-bottom: 40px;
}

.reach__marker {
  display: block;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  color: var(--accent-two);
  margin-bottom: 8px;
}

.reach__title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 900;
  margin-bottom: 12px;
}

.reach__lead {
  color: var(--muted);
  font-size: 0.95rem;
}

.reach__grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.reach__tiles {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.reach__tile {
  padding: 28px 24px;
  background: var(--panel);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 140px;
}

.reach__tile--accent {
  background: color-mix(in srgb, var(--panel) 50%, var(--accent) 12%);
  border-color: color-mix(in srgb, var(--accent) 30%, var(--line));
}

.reach__tile-icon {
  width: 28px;
  height: 28px;
  margin-bottom: 4px;
  border: 2px solid var(--accent-two);
  border-radius: 4px;
}

.reach__tile-icon--phone {
  border-radius: 6px;
  clip-path: polygon(30% 0, 70% 0, 80% 100%, 20% 100%);
}

.reach__tile-icon--mail {
  border-radius: 2px;
  border-top-width: 6px;
}

.reach__tile-icon--pin {
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
}

.reach__tile-kind {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.reach__tile-val {
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.4;
  word-break: break-word;
}

a.reach__tile-val:hover { color: var(--accent); }

.reach__form {
  padding: 36px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-top: 3px solid transparent;
  border-image: linear-gradient(90deg, var(--accent), var(--accent-two)) 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.reach__form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.reach__field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.reach__field span {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.reach__field input,
.reach__field textarea {
  font-family: var(--font);
  font-size: 0.95rem;
  padding: 14px 16px;
  background: color-mix(in srgb, var(--bg) 65%, transparent);
  border: none;
  border-bottom: 2px solid var(--line);
  color: var(--text);
  outline: none;
  transition: border-color 0.2s;
}

.reach__field input:focus,
.reach__field textarea:focus {
  border-bottom-color: var(--accent);
}

.reach__field textarea {
  resize: vertical;
  min-height: 110px;
}

/* ── Base footer ── */
.base {
  max-width: var(--max);
  margin: 0 auto;
  padding: 28px 20px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
  color: var(--muted);
}

.base__meta {
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.7rem;
}

/* ── Responsive ── */
@media (max-width: 980px) {
  .masthead__nav {
    position: fixed;
    inset: 72px 16px auto;
    background: color-mix(in srgb, var(--panel) 96%, transparent);
    border: 1px solid var(--line);
    padding: 16px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 0.25s, transform 0.25s;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
  }

  .masthead__nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .masthead__list {
    flex-direction: column;
    align-items: stretch;
  }

  .masthead__toggle { display: block; }

  .splash__layout { grid-template-columns: 1fr; }
  .splash__stack-item--offset { margin-left: 0; }
  .splash__watermark { opacity: 0.5; right: 0; }

  .about {
    grid-template-columns: 1fr;
  }

  .about__spine {
    border-right: none;
    border-bottom: 1px solid var(--line);
  }

  .about__tenets { margin-top: 0; }

  .about__copy p { columns: 1; }

  .pipeline__track::before { left: 24px; }

  .pipeline__leg {
    width: 100%;
    padding-left: 64px !important;
    padding-right: 0 !important;
    justify-content: flex-start !important;
  }

  .pipeline__leg .pipeline__node {
    flex-direction: row !important;
    text-align: left !important;
  }

  .pipeline__leg--a .pipeline__node-body,
  .pipeline__leg--b .pipeline__node-body {
    border-left: 3px solid var(--accent-two);
    border-right: none;
  }

  .reach__tiles { grid-template-columns: 1fr; }
  .reach__form-row { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .flow { gap: 80px; padding-bottom: 60px; }

  .splash__actions { flex-direction: column; align-items: stretch; }
  .splash__actions-sep { display: none; }
  .act { width: 100%; }

  .about__body { padding: 28px 24px; }

  .spectrum__mosaic { grid-template-columns: 1fr; }
  .spectrum__tile { grid-column: span 1 !important; }

  .base { flex-direction: column; text-align: center; }
}
