/* Deployed Intelligence Labs — website */

:root {
  --paper:    #F1ECDF;
  --paper-2:  #E8E1CF;
  --paper-3:  #DED5BE;
  --ink:      #0A0A0A;
  --ink-2:    #232323;
  --ink-3:    #4A4A4A;
  --ink-dim:  rgba(10,10,10,0.58);
  --ink-faint:rgba(10,10,10,0.12);
  --rule:     rgba(10,10,10,0.85);
  --rule-mid: rgba(10,10,10,0.32);
  --rule-soft:rgba(10,10,10,0.13);

  --vermilion:  #E63319;
  --vermilion-2:#FF4F2C;
  --cobalt:     #1B3CE0;
  --cobalt-2:   #3756E6;

  --sans: "Inter Tight", "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, Menlo, monospace;

  --pad: clamp(20px, 5vw, 88px);
  --maxw: 1340px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01" on;
  overflow-x: hidden;
}

::selection { background: var(--vermilion); color: var(--paper); }

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

/* visible keyboard focus, in the site's own accent */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--vermilion);
  outline-offset: 3px;
}
.ink a:focus-visible,
.ink button:focus-visible,
footer.foot a:focus-visible {
  outline-color: var(--vermilion-2);
}

/* paper grain — extremely subtle tonal texture */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background-image: radial-gradient(rgba(10,10,10,0.025) 1px, transparent 1px);
  background-size: 4px 4px;
  opacity: 0.5;
  mix-blend-mode: multiply;
}

/* ====================================================================== */
/* LAYOUT                                                                  */
/* ====================================================================== */

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
  position: relative;
  z-index: 2;
}

section.band {
  position: relative;
  padding-top: clamp(72px, 11vw, 160px);
  padding-bottom: clamp(72px, 11vw, 160px);
  border-top: 2px solid var(--ink);
}
section.band.no-rule { border-top: none; }
section.ink {
  background: var(--ink);
  color: var(--paper);
}

.grid12 {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: clamp(16px, 2.4vw, 32px);
}

/* ====================================================================== */
/* TYPE                                                                    */
/* ====================================================================== */

.eyebrow {
  font-family: var(--mono);
  font-size: clamp(11px, 1vw, 13px);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--vermilion);
  font-weight: 600;
  margin: 0;
}

.label {
  font-family: var(--mono);
  font-size: clamp(11px, 0.95vw, 12px);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  font-weight: 600;
}
.label-sm {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-dim);
  font-weight: 500;
}
.ink .label, .ink .label-sm { color: var(--paper); }
.ink .label-sm { color: rgba(241,236,223,0.6); }

.display {
  font-family: var(--sans);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.9;
  margin: 0;
  text-wrap: balance;
}
.hed {
  font-family: var(--sans);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 0.98;
  margin: 0;
  text-wrap: balance;
}
.lede {
  font-family: var(--sans);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0;
  text-wrap: pretty;
}
.body-text {
  font-family: var(--sans);
  font-size: clamp(16px, 1.35vw, 20px);
  line-height: 1.5;
  color: var(--ink-2);
  font-weight: 400;
  letter-spacing: -0.005em;
  margin: 0;
  text-wrap: pretty;
}
.ink .body-text { color: rgba(241,236,223,0.84); }
.body-text strong { color: var(--vermilion); font-weight: 600; }
.ink .body-text strong { color: var(--vermilion-2); }

.vm { color: var(--vermilion); }
.ink .vm { color: var(--vermilion-2); }
.dim { color: var(--ink-3); }
.mono { font-family: var(--mono); }

/* ====================================================================== */
/* NAV                                                                     */
/* ====================================================================== */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background: rgba(241,236,223,0.82);
  backdrop-filter: blur(14px) saturate(1.1);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
  border-bottom: 1.5px solid var(--ink);
  transition: transform 0.4s var(--ease), background 0.3s ease;
}
.nav.hide { transform: translateY(-101%); }
.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad);
  height: 62px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.brand svg {
  display: block;
  flex: none;
}
.brand .glyph-cell { fill: none; stroke: var(--ink); stroke-width: 1.6; }
.brand .glyph-cell.on { fill: var(--vermilion); stroke: var(--ink); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-left: auto;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  font-weight: 500;
}
.nav-links a {
  color: var(--ink-dim);
  transition: color 0.2s ease;
  position: relative;
  padding: 4px 0;
  white-space: nowrap;
}
.nav-links a:hover { color: var(--ink); }
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--ink);
  color: var(--paper) !important;
  padding: 10px 16px;
  font-weight: 600;
  letter-spacing: 0.13em;
  transition: background 0.2s ease;
}
.nav-cta:hover { background: var(--vermilion); }
.nav-cta .dot {
  width: 7px; height: 7px; background: var(--vermilion);
  display: block; transition: background 0.2s ease;
}
.nav-cta:hover .dot { background: var(--paper); }

.nav-burger {
  display: none;
  margin-left: auto;
  width: 34px; height: 28px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}
.nav-burger span {
  display: block; height: 2px; width: 100%;
  background: var(--ink);
  transition: transform 0.3s var(--ease), opacity 0.2s ease;
}
.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 62px 0 auto 0;
  z-index: 49;
  background: var(--paper);
  border-bottom: 2px solid var(--ink);
  padding: 8px var(--pad) 24px;
  display: none;
  flex-direction: column;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-family: var(--mono);
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
  padding: 16px 0;
  border-bottom: 1px solid var(--rule-soft);
  color: var(--ink-2);
}
.mobile-menu a.cta { color: var(--vermilion); border-bottom: none; }

/* ====================================================================== */
/* HERO                                                                    */
/* ====================================================================== */

.hero {
  position: relative;
  padding-top: clamp(120px, 17vh, 200px);
  padding-bottom: clamp(48px, 7vw, 96px);
  min-height: 92vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}
.hero-grid-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: linear-gradient(to right, var(--rule-soft) 1px, transparent 1px);
  background-size: calc((min(100vw, var(--maxw)) - 2 * var(--pad)) / 12 + (clamp(16px, 2.4vw, 32px) / 12)) 100%;
  background-position: var(--pad) 0;
  opacity: 0.55;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 75%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 75%, transparent);
}
.hero-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: clamp(20px, 3vw, 40px);
}
.hero h1 {
  font-size: clamp(76px, 17.5vw, 320px);
  line-height: 0.82;
  letter-spacing: -0.045em;
}
.hero-tagline {
  margin-top: clamp(28px, 4vw, 60px);
  font-size: clamp(24px, 3.4vw, 50px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.08;
  max-width: 22ch;
}
.hero-meta {
  margin-top: clamp(36px, 5vw, 72px);
  display: flex;
  flex-wrap: wrap;
  gap: clamp(20px, 4vw, 64px);
  align-items: flex-end;
  justify-content: space-between;
  padding-top: 22px;
  border-top: 2px solid var(--ink);
}
.hero-meta .cols {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(20px, 4vw, 56px);
}
.hero-meta .col .label-sm { margin-bottom: 6px; }
.hero-meta .col .v {
  font-size: clamp(15px, 1.3vw, 18px);
  font-weight: 600;
  letter-spacing: -0.01em;
}
.hero-meta .col .v a,
.contact-meta .m .v a {
  border-bottom: 1.5px solid var(--vermilion);
  padding-bottom: 1px;
  transition: color 0.2s ease;
}
.hero-meta .col .v a:hover,
.contact-meta .m .v a:hover { color: var(--vermilion); }

.scroll-cue {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-dim);
  font-weight: 500;
}
.scroll-cue .bar {
  width: 1.5px; height: 30px;
  background: var(--ink);
  position: relative;
  overflow: hidden;
}
.scroll-cue .bar::after {
  content: "";
  position: absolute;
  left: 0; right: 0; top: -100%;
  height: 100%;
  background: var(--vermilion);
  animation: cue 1.8s var(--ease) infinite;
}
@keyframes cue {
  0% { top: -100%; }
  60%,100% { top: 100%; }
}

/* ====================================================================== */
/* SHARED SECTION HEADER                                                   */
/* ====================================================================== */

.sec-head {
  margin-bottom: clamp(36px, 5vw, 72px);
}
.sec-head .eyebrow { margin-bottom: clamp(18px, 2.5vw, 30px); }
.sec-head h2 {
  font-size: clamp(38px, 6.2vw, 104px);
}
.sec-head .sub {
  margin-top: clamp(20px, 2.5vw, 34px);
  max-width: 46ch;
}

/* ====================================================================== */
/* REFRAME — A/B cards                                                     */
/* ====================================================================== */

.ab {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(18px, 2.5vw, 32px);
}
.ab-card {
  padding: clamp(26px, 3vw, 42px) clamp(24px, 2.6vw, 40px) clamp(28px, 3vw, 40px);
  border: 1.5px solid var(--rule-mid);
  display: flex;
  flex-direction: column;
}
.ab-card.b {
  border: 3px solid var(--vermilion);
}
.ab-card .row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: clamp(18px, 2.4vw, 28px);
  flex-wrap: wrap;
}
.ab-card .big {
  font-size: clamp(28px, 3.6vw, 46px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.0;
  margin-bottom: clamp(14px, 1.8vw, 22px);
}
.ab-card.a .big { color: var(--ink-3); }
.ab-card.a .body-text { color: var(--ink-3); }

/* ====================================================================== */
/* GAP — two columns                                                       */
/* ====================================================================== */

.cols2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 4vw, 64px);
}
.gap-col { padding-top: clamp(22px, 2.5vw, 32px); border-top: 2px solid var(--ink); }
.gap-col.accent { border-top-color: var(--vermilion); }
.gap-col .label { margin-bottom: clamp(12px, 1.6vw, 18px); }
.gap-col.accent .label { color: var(--vermilion); }
.kicker-line {
  margin-top: clamp(40px, 5vw, 72px);
  padding-top: clamp(22px, 2.6vw, 30px);
  border-top: 1px solid var(--rule-mid);
}

/* ====================================================================== */
/* METHOD — 4 stages                                                       */
/* ====================================================================== */

.stages {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(20px, 3vw, 44px);
}
.stage {
  border-top: 3px solid var(--vermilion);
  padding-top: clamp(20px, 2.4vw, 30px);
  display: flex;
  flex-direction: column;
  gap: clamp(12px, 1.6vw, 18px);
}
.stage .top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}
.stage .n {
  font-size: clamp(48px, 5.5vw, 84px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.9;
  color: var(--vermilion);
}
.stage .name {
  font-size: clamp(26px, 2.8vw, 40px);
  font-weight: 700;
  letter-spacing: -0.028em;
  line-height: 1.0;
}
.stage-arrow {
  align-self: center;
  color: var(--vermilion);
  font-family: var(--mono);
}

/* ====================================================================== */
/* DATA VIZ — bars                                                         */
/* ====================================================================== */

.viz-banner {
  padding: clamp(15px, 1.7vw, 20px) clamp(18px, 2vw, 24px);
  background: var(--ink);
  color: var(--paper);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px 18px;
  flex-wrap: wrap;
  margin-bottom: clamp(14px, 1.6vw, 18px);
}
.viz-banner .l {
  display: flex;
  align-items: baseline;
  gap: 13px;
  flex-wrap: wrap;
}
.viz-banner .tag {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--vermilion-2);
}
.viz-banner .v {
  font-size: clamp(15px, 1.4vw, 18px);
  font-weight: 700;
  letter-spacing: -0.012em;
}
.viz-banner .r {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 600;
  color: rgba(241,236,223,0.62);
}

.legend {
  display: flex;
  gap: clamp(16px, 3vw, 32px);
  flex-wrap: wrap;
  align-items: center;
}
.legend .item { display: flex; align-items: center; gap: 9px; }
.legend .sw { width: 12px; height: 12px; display: block; flex: none; }
.legend .lt {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  font-weight: 700;
}
.legend .lsub {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--ink-dim);
}

/* org role rows */
.roles { border-top: 2px solid var(--ink); }
.role-row {
  display: grid;
  grid-template-columns: minmax(0,2.1fr) 1.1fr 78px minmax(0,3fr) 64px;
  align-items: center;
  gap: clamp(10px, 1.4vw, 18px);
  padding: clamp(9px, 1vw, 12px) 0;
  border-bottom: 1px solid var(--rule-soft);
}
.role-row .rname {
  font-size: clamp(14px, 1.2vw, 17px);
  font-weight: 700;
  letter-spacing: -0.012em;
}
.role-row .rdept {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--ink-dim);
}
.role-row .rfte {
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 600;
  text-align: right;
  letter-spacing: 0.02em;
}
.role-row .rfte i { color: var(--ink-dim); font-size: 9.5px; font-style: normal; font-weight: 500; }
.role-row .rpct {
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--vermilion);
  text-align: right;
  letter-spacing: 0.02em;
}
.role-row .rpct i { color: var(--ink-dim); font-size: 9.5px; font-style: normal; font-weight: 500; }

.bar {
  display: flex;
  height: clamp(14px, 1.5vw, 17px);
  border: 1px solid var(--ink);
  overflow: hidden;
}
.bar .fill {
  width: 0;
  background: var(--vermilion);
  transition: width 1.1s var(--ease);
}
.bar .rest { flex: 1; background: var(--ink); }
.reveal.in .bar .fill { width: var(--w); }

/* role drill-in tasks */
.role-summary {
  padding: clamp(16px, 2vw, 24px);
  border: 2px solid var(--ink);
  display: grid;
  grid-template-columns: minmax(0,1.3fr) minmax(0,2fr) 120px;
  gap: clamp(18px, 3vw, 36px);
  align-items: center;
  margin-bottom: clamp(16px, 2vw, 22px);
}
.role-summary .rname {
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
}
.role-summary .pct {
  font-size: clamp(34px, 4vw, 46px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--vermilion);
  text-align: right;
}
.role-summary .pct i { font-size: 0.5em; color: var(--ink-dim); font-style: normal; }

.tasks {
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
}
.task-row {
  display: grid;
  grid-template-columns: 38px minmax(0,2.4fr) minmax(0,1.8fr) 64px;
  align-items: center;
  gap: clamp(10px, 1.4vw, 16px);
  padding: clamp(7px, 0.9vw, 10px) 0;
  border-top: 1px solid var(--rule-soft);
}
.task-row:first-child { border-top: none; }
.task-row .tn {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-dim);
  font-weight: 600;
  padding-left: 14px;
}
.task-row .tname {
  font-size: clamp(13px, 1.1vw, 15px);
  font-weight: 600;
  letter-spacing: -0.012em;
  line-height: 1.25;
}
.task-row .tpct {
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 700;
  text-align: right;
  padding-right: 14px;
  letter-spacing: 0.02em;
}

.findings {
  margin-top: clamp(18px, 2.5vw, 28px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 4vw, 44px);
}
.finding { padding-top: clamp(12px, 1.6vw, 18px); border-top: 2px solid var(--ink); }
.finding.accent { border-top-color: var(--vermilion); }
.finding .label { margin-bottom: 8px; }
.finding.accent .label { color: var(--vermilion); }

/* ====================================================================== */
/* WHAT YOU GET                                                            */
/* ====================================================================== */

.gives {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 3.5vw, 44px);
}
.give {
  padding-top: clamp(22px, 2.6vw, 32px);
  border-top: 3px solid var(--ink);
  display: flex;
  flex-direction: column;
  gap: clamp(12px, 1.6vw, 18px);
}
.give.accent { border-top-color: var(--vermilion); }
.give .top { display: flex; justify-content: space-between; align-items: baseline; }
.give .n {
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}
.give.accent .n { color: var(--vermilion); }
.give .t {
  font-size: clamp(22px, 2.2vw, 30px);
  font-weight: 700;
  letter-spacing: -0.022em;
  line-height: 1.08;
}

/* ====================================================================== */
/* ABOUT                                                                   */
/* ====================================================================== */

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.55fr);
  gap: clamp(28px, 5vw, 80px);
  align-items: start;
}
.about-card {
  border: 1.5px solid var(--paper);
  padding: clamp(26px, 3vw, 40px);
}
.ink .about-card { border-color: rgba(241,236,223,0.32); }
.about-portrait {
  width: clamp(64px, 7vw, 90px);
  height: clamp(64px, 7vw, 90px);
  background: var(--vermilion);
  color: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: clamp(26px, 3vw, 38px);
  letter-spacing: -0.04em;
  margin-bottom: clamp(20px, 2.5vw, 28px);
}
.about-name {
  font-size: clamp(26px, 3vw, 40px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
}
.about-role { margin-top: 8px; }
.about-facts {
  margin-top: clamp(22px, 2.6vw, 30px);
  display: flex;
  flex-direction: column;
}
.about-facts .f {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 0;
  border-top: 1px solid rgba(241,236,223,0.2);
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.about-facts .f .k { color: rgba(241,236,223,0.55); }
.about-facts .f .v { color: var(--paper); font-weight: 600; text-align: right; }
.about-body p + p { margin-top: clamp(16px, 2vw, 22px); }
.about-body .lead {
  font-size: clamp(22px, 2.5vw, 34px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.14;
  margin-bottom: clamp(22px, 2.8vw, 32px);
  color: var(--paper);
}

/* ====================================================================== */
/* DEMO SLOT                                                               */
/* ====================================================================== */

.demo-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: clamp(32px, 4vw, 56px);
}
.demo-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1.5px solid var(--cobalt);
  color: var(--cobalt);
  padding: 9px 15px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
}
.demo-badge .pulse {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--cobalt);
  position: relative;
}
.demo-badge .pulse::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: 50%;
  background: var(--cobalt);
  animation: pulse 1.8s ease-out infinite;
}
@keyframes pulse {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(3); opacity: 0; }
}
.demo-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(14px, 2vw, 22px);
}
.demo-step {
  border: 1.5px solid var(--rule-mid);
  padding: clamp(20px, 2.2vw, 28px) clamp(18px, 2vw, 24px);
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 230px;
  position: relative;
  transition: border-color 0.3s ease, transform 0.3s var(--ease);
}
.demo-step:hover { border-color: var(--cobalt); transform: translateY(-3px); }
.demo-step .sn {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--cobalt);
}
.demo-step .st {
  font-size: clamp(18px, 1.7vw, 23px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.demo-step .sd {
  font-size: 14px;
  line-height: 1.45;
  color: var(--ink-2);
  margin-top: auto;
}
.demo-frame {
  margin-top: clamp(28px, 4vw, 48px);
  border: 2px solid var(--ink);
  background: var(--paper-2);
  padding: clamp(36px, 6vw, 80px) clamp(24px, 4vw, 56px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: clamp(16px, 2vw, 24px);
  position: relative;
  overflow: hidden;
}
.demo-frame::before {
  content: "";
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(45deg, transparent, transparent 12px, rgba(10,10,10,0.022) 12px, rgba(10,10,10,0.022) 24px);
  pointer-events: none;
}
.demo-frame .big {
  font-size: clamp(30px, 4.5vw, 64px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.95;
  position: relative;
}
.demo-frame .note { max-width: 52ch; position: relative; }
.demo-frame .cta-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  position: relative;
  margin-top: 8px;
}

/* ====================================================================== */
/* CONTACT                                                                 */
/* ====================================================================== */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.1fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}
.contact-lead {
  font-size: clamp(20px, 2vw, 28px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin-bottom: clamp(28px, 3.5vw, 44px);
}
.contact-meta { display: flex; flex-direction: column; }
.contact-meta .m {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid var(--rule-soft);
  align-items: baseline;
}
.contact-meta .m .k {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-dim);
  font-weight: 600;
}
.contact-meta .m .v { font-size: clamp(15px, 1.4vw, 19px); font-weight: 600; letter-spacing: -0.01em; }

form.contact-form { display: flex; flex-direction: column; gap: clamp(16px, 2vw, 22px); position: relative; }
.field { display: flex; flex-direction: column; gap: 9px; }
.field label {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ink-dim);
}
.field .req { color: var(--vermilion); }
.field input, .field textarea {
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 500;
  color: var(--ink);
  background: transparent;
  border: none;
  border-bottom: 1.5px solid var(--rule-mid);
  padding: 10px 2px;
  transition: border-color 0.2s ease;
  letter-spacing: -0.01em;
  width: 100%;
}
.field textarea { resize: vertical; min-height: 110px; line-height: 1.45; }
.field input:focus, .field textarea:focus {
  outline: none;
  border-bottom-color: var(--vermilion);
  border-bottom-width: 2px;
}
.field input::placeholder, .field textarea::placeholder { color: var(--ink-faint); }
.submit {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--ink);
  color: var(--paper);
  border: none;
  padding: 17px 28px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s var(--ease);
  margin-top: 6px;
}
.submit:hover { background: var(--vermilion); transform: translateY(-2px); }
.submit:disabled { opacity: 0.55; cursor: wait; transform: none; }
.submit .dot { width: 8px; height: 8px; background: var(--vermilion); display: block; transition: background 0.2s ease; }
.submit:hover .dot { background: var(--paper); }
.form-note {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.05em;
  color: var(--ink-dim);
  margin-top: 4px;
  line-height: 1.5;
}
.form-error {
  display: none;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: var(--vermilion);
  line-height: 1.5;
  margin-top: 2px;
}
.form-error.show { display: block; }
.form-error a { border-bottom: 1px solid var(--vermilion); font-weight: 700; }
.form-success {
  display: none;
  padding: clamp(24px, 3vw, 36px);
  border: 2px solid var(--vermilion);
  flex-direction: column;
  gap: 12px;
}
.form-success.show { display: flex; }
.form-success .big {
  font-size: clamp(22px, 2.4vw, 32px);
  font-weight: 800;
  letter-spacing: -0.03em;
}

/* ====================================================================== */
/* FOOTER                                                                  */
/* ====================================================================== */

footer.foot {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(48px, 6vw, 88px) 0 clamp(32px, 4vw, 48px);
  position: relative;
  z-index: 2;
}
.foot-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap;
  padding-bottom: clamp(36px, 5vw, 60px);
  border-bottom: 1px solid rgba(241,236,223,0.2);
}
.foot-mark {
  font-size: clamp(30px, 4vw, 52px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 0.95;
}
.foot-links {
  display: flex;
  gap: clamp(28px, 5vw, 64px);
  flex-wrap: wrap;
}
.foot-col { display: flex; flex-direction: column; gap: 11px; }
.foot-col .h {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(241,236,223,0.5);
  font-weight: 600;
  margin-bottom: 4px;
}
.foot-col a, .foot-col span {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: rgba(241,236,223,0.85);
  transition: color 0.2s ease;
}
.foot-col a:hover { color: var(--vermilion-2); }
.foot-bottom {
  margin-top: clamp(26px, 3vw, 36px);
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: rgba(241,236,223,0.5);
}

/* ====================================================================== */
/* SCROLL REVEAL                                                           */
/* ====================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }
.reveal[data-delay="4"] { transition-delay: 0.32s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .bar .fill { transition: none; }
  .scroll-cue .bar::after { animation: none; }
  .demo-badge .pulse::after { animation: none; }
}

/* ====================================================================== */
/* RESPONSIVE                                                              */
/* ====================================================================== */

@media (max-width: 1080px) {
  .stages { grid-template-columns: 1fr 1fr; gap: clamp(20px, 4vw, 36px); }
  .gives { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .demo-steps { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .nav-links { display: none; }
  .nav-burger { display: flex; }
  .ab { grid-template-columns: 1fr; }
  .cols2 { grid-template-columns: 1fr; gap: 32px; }
  .findings { grid-template-columns: 1fr; gap: 24px; }
  .role-summary { grid-template-columns: 1fr; gap: 18px; }
  .role-summary .pct { text-align: left; }

  /* org rows collapse: hide dept + fte, stack name over bar */
  .role-row {
    grid-template-columns: 1fr 56px;
    grid-template-areas: "name pct" "bar bar";
    gap: 7px 12px;
    padding: 13px 0;
  }
  .role-row .rname { grid-area: name; }
  .role-row .rdept { display: none; }
  .role-row .rfte { display: none; }
  .role-row .bar { grid-area: bar; }
  .role-row .rpct { grid-area: pct; }

  .task-row {
    grid-template-columns: 30px 1fr 52px;
    grid-template-areas: "tn tname tpct" "tn bar bar";
    gap: 6px 10px;
  }
  .task-row .tn { grid-area: tn; padding-left: 8px; }
  .task-row .tname { grid-area: tname; }
  .task-row .bar { grid-area: bar; }
  .task-row .tpct { grid-area: tpct; padding-right: 8px; }
}

@media (max-width: 520px) {
  .stages { grid-template-columns: 1fr; }
  .demo-steps { grid-template-columns: 1fr; }
  .hero h1 { font-size: clamp(58px, 19vw, 110px); }
}

/* ====================================================================== */
/* REFINEMENTS                                                            */
/* ====================================================================== */

/* hero descriptor line */
.hero-desc {
  margin-top: clamp(18px, 2.4vw, 30px);
  max-width: 40ch;
  font-size: clamp(15px, 1.45vw, 20px);
  font-weight: 500;
  line-height: 1.4;
  color: var(--ink-2);
  letter-spacing: -0.01em;
}


.ab-card .row .label,
.ab-card .row .label-sm { white-space: nowrap; }
.about-facts .f .v { white-space: nowrap; }

/* nav scroll-spy active state */
.nav-links a.active { color: var(--ink); }
.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 2px;
  background: var(--vermilion);
}
.nav-links a.nav-cta.active::after { display: none; }

.role-row, .task-row { transition: background 0.18s ease, box-shadow 0.18s ease; }
.roles .role-row:hover,
.tasks .task-row:hover {
  background: var(--paper-2);
  box-shadow: inset 3px 0 0 var(--vermilion);
}


.role-row.is-focus {
  background: var(--paper-2);
  box-shadow: inset 3px 0 0 var(--vermilion);
}
.drill-tag {
  display: inline-block;
  margin-left: 11px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--vermilion);
  border: 1px solid var(--vermilion);
  padding: 2px 6px;
  vertical-align: 2px;
  white-space: nowrap;
}

.bridge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
  margin-bottom: clamp(40px, 5.5vw, 80px);
}
.bridge .b-line {
  width: 1.5px;
  height: clamp(40px, 5vw, 64px);
  background: var(--vermilion);
}
.bridge .b-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ink-dim);
}
.bridge .b-label strong { color: var(--vermilion); font-weight: 700; }

.aside-line {
  margin-top: clamp(16px, 2vw, 22px);
  font-size: clamp(17px, 1.7vw, 22px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--ink);
  max-width: 30ch;
}
.aside-line .vm { color: var(--vermilion); }

@media (max-width: 760px) {
  .role-row.is-focus .drill-tag { display: none; }
}

@media (max-width: 700px) {
  .viz-banner { flex-direction: column; align-items: flex-start; gap: 8px; }
}
