/* ==========================================================================
   IBIZN — Core stylesheet
   Palette derived directly from the logo wordmark gradient.
   Design language: hairline architecture. Everything is drawn with 1px
   strokes at the same optical weight as the logo's letterforms.
   ========================================================================== */

/* --- 0. Fonts (self-hosted) ----------------------------------------------
   Served from your own domain rather than Google's CDN. Faster (no extra
   DNS + TLS handshake), works if Google Fonts is blocked, and avoids the
   third-party-transfer problem that has made Google Fonts a GDPR headache
   in Germany. Total weight: ~148KB across all ten files.
   -------------------------------------------------------------------------- */

@font-face { font-family: "Jost"; font-style: normal; font-weight: 200; font-display: swap;
  src: url("../fonts/jost-latin-200-normal.woff2") format("woff2"); }
@font-face { font-family: "Jost"; font-style: normal; font-weight: 300; font-display: swap;
  src: url("../fonts/jost-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: "Jost"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/jost-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Jost"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("../fonts/jost-latin-500-normal.woff2") format("woff2"); }

@font-face { font-family: "Manrope"; font-style: normal; font-weight: 300; font-display: swap;
  src: url("../fonts/manrope-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/manrope-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("../fonts/manrope-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("../fonts/manrope-latin-600-normal.woff2") format("woff2"); }

@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 300; font-display: swap;
  src: url("../fonts/ibm-plex-mono-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); }

/* --- 1. Tokens ----------------------------------------------------------- */

:root {
  /* Violet ramp — sampled from the logo, extended at both ends */
  --v-900: #1E1636;
  --v-800: #2C2150;
  --v-700: #4B3B86;
  --v-600: #604E91;
  --v-500: #7C6BC4;
  --v-400: #A799D4;
  --v-300: #BFB2EB;
  --v-200: #D8D0F5;

  /* Canvas */
  --ink:      #0B0912;
  --ink-rise: #110E1C;
  --ink-high: #171327;

  /* Type */
  --chalk: #F2F0F8;
  --mute:  #948EAD;
  --faint: #635D7C;

  /* Strokes */
  --rule:        rgba(191, 178, 235, .13);
  --rule-strong: rgba(191, 178, 235, .28);
  --rule-faint:  rgba(191, 178, 235, .06);

  --grad: linear-gradient(90deg, var(--v-600) 0%, var(--v-500) 34%, var(--v-400) 68%, var(--v-300) 100%);

  /* Type families */
  --display: "Jost", "Helvetica Neue", sans-serif;
  --body:    "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono:    "IBM Plex Mono", ui-monospace, "SFMono-Regular", monospace;

  /* Frame */
  --frame: 1240px;
  --gut: 32px;

  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* --- 2. Reset ------------------------------------------------------------ */

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--ink);
  color: var(--chalk);
  font-family: var(--body);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.68;
  letter-spacing: .002em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }

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

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

h1, h2, h3, h4, p, figure, blockquote { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

::selection { background: var(--v-700); color: #fff; }

:focus-visible {
  outline: 2px solid var(--v-300);
  outline-offset: 3px;
  border-radius: 1px;
}

/* --- 3. Page frame + hairline grid --------------------------------------- */
/* The signature structural device: vertical hairlines that run the full
   height of the document, echoing the logo's thin strokes.                  */

.grid-frame {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  display: flex;
  justify-content: center;
}

.grid-frame__inner {
  width: 100%;
  max-width: var(--frame);
  padding: 0 var(--gut);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.grid-frame__inner span {
  border-left: 1px solid var(--rule-faint);
}
.grid-frame__inner span:last-child {
  border-right: 1px solid var(--rule-faint);
}

.shell {
  position: relative;
  z-index: 1;
}

.wrap {
  width: 100%;
  max-width: var(--frame);
  margin: 0 auto;
  padding: 0 calc(var(--gut) + 24px);
}

/* --- 4. Type scale ------------------------------------------------------- */

.eyebrow {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 400;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--v-400);
  display: flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--v-500);
  flex: none;
}
.eyebrow--plain::before { display: none; }

.d1 {
  font-family: var(--display);
  font-weight: 200;
  font-size: clamp(3.4rem, 9.2vw, 7.4rem);
  line-height: .94;
  letter-spacing: -.032em;
}

.d2 {
  font-family: var(--display);
  font-weight: 200;
  font-size: clamp(2.4rem, 5.4vw, 4.15rem);
  line-height: 1.02;
  letter-spacing: -.028em;
}

.d3 {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  line-height: 1.14;
  letter-spacing: -.02em;
}

.d4 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.16rem;
  line-height: 1.3;
  letter-spacing: -.01em;
}

.lede {
  font-size: clamp(1.05rem, 1.55vw, 1.2rem);
  line-height: 1.62;
  color: var(--mute);
  font-weight: 300;
}

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

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.mono-tag {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--faint);
}

/* --- 5. Navigation ------------------------------------------------------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(11, 9, 18, .72);
  backdrop-filter: saturate(150%) blur(14px);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.nav.is-stuck {
  border-bottom-color: var(--rule);
  background: rgba(11, 9, 18, .92);
}

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

.brand { display: flex; align-items: center; gap: 11px; flex: none; }
.brand__mark { width: 26px; height: 26px; }
.brand__mark rect { fill: none; }
.brand__word {
  font-family: var(--display);
  font-weight: 300;
  font-size: 1.42rem;
  letter-spacing: .01em;
}

.nav__links { display: flex; align-items: center; gap: 34px; }

.nav__link {
  font-size: 14.5px;
  font-weight: 400;
  color: var(--mute);
  position: relative;
  padding: 4px 0;
  transition: color .22s var(--ease);
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--v-400);
  transition: width .3s var(--ease);
}
.nav__link:hover { color: var(--chalk); }
.nav__link:hover::after { width: 100%; }
.nav__link.is-current { color: var(--chalk); }
.nav__link.is-current::after { width: 100%; background: var(--v-500); }

.nav__toggle {
  display: none;
  background: none;
  border: 1px solid var(--rule);
  width: 42px; height: 38px;
  cursor: pointer;
  padding: 0;
  position: relative;
}
.nav__toggle i {
  position: absolute;
  left: 12px;
  width: 17px; height: 1px;
  background: var(--chalk);
  transition: transform .3s var(--ease), opacity .2s var(--ease);
}
.nav__toggle i:nth-child(1) { top: 14px; }
.nav__toggle i:nth-child(2) { top: 22px; }
.nav__toggle[aria-expanded="true"] i:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] i:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

/* --- 6. Buttons ---------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 52px;
  padding: 0 30px;
  font-family: var(--body);
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: .005em;
  border: 1px solid transparent;
  background: none;
  cursor: pointer;
  position: relative;
  transition: transform .28s var(--ease), box-shadow .28s var(--ease),
              border-color .28s var(--ease), color .28s var(--ease),
              background .28s var(--ease);
  white-space: nowrap;
}

.btn--primary {
  background: var(--grad);
  color: #100C1E;
  font-weight: 600;
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 34px -12px rgba(124, 107, 196, .75);
}

.btn--ghost {
  border-color: var(--rule-strong);
  color: var(--chalk);
}
.btn--ghost:hover {
  border-color: var(--v-400);
  background: rgba(124, 107, 196, .08);
  transform: translateY(-2px);
}

.btn--sm { height: 44px; padding: 0 20px; font-size: 13.5px; }

.btn__arrow { transition: transform .28s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(4px); }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* Text link with animated rule */
.tlink {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--v-300);
  padding-bottom: 3px;
  border-bottom: 1px solid rgba(191, 178, 235, .3);
  transition: border-color .25s var(--ease), color .25s var(--ease);
}
.tlink:hover { color: var(--chalk); border-bottom-color: var(--v-300); }
.tlink svg { transition: transform .25s var(--ease); }
.tlink:hover svg { transform: translateX(4px); }

/* --- 7. Section rhythm --------------------------------------------------- */

.band {
  padding: clamp(88px, 11vw, 148px) 0;
  border-top: 1px solid var(--rule-faint);
  position: relative;
}
.band--flush { border-top: 0; }
.band--tight { padding: clamp(64px, 7vw, 96px) 0; }
.band--rise { background: linear-gradient(180deg, transparent, rgba(28, 21, 52, .38), transparent); }

.band__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(28px, 5vw, 76px);
  align-items: end;
  margin-bottom: clamp(46px, 5.5vw, 74px);
}
.band__head > div:first-child { display: flex; flex-direction: column; gap: 22px; }

.band__head--stack {
  grid-template-columns: 1fr;
  max-width: 720px;
}

/* --- 8. Hero ------------------------------------------------------------- */

.hero {
  position: relative;
  padding: clamp(64px, 9vw, 118px) 0 clamp(72px, 8vw, 104px);
  overflow: hidden;
}

.hero__glow {
  position: absolute;
  top: -28%;
  left: 50%;
  width: min(1100px, 130vw);
  aspect-ratio: 1;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(75, 59, 134, .34) 0%, rgba(75, 59, 134, .1) 38%, transparent 66%);
  pointer-events: none;
  z-index: 0;
}

.hero__inner { position: relative; z-index: 1; }

.hero__copy { max-width: 900px; display: flex; flex-direction: column; gap: 30px; }
.hero__sub { max-width: 590px; }

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  padding-top: 30px;
  margin-top: 12px;
  border-top: 1px solid var(--rule-faint);
}
.hero__meta span {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--faint);
}

/* --- 9. Signature: the answer panel -------------------------------------- */
/* An instrument readout, not a chat mock. This is the page's thesis:
   a machine is asked a question, and it decides whose name to say.          */

.answer {
  margin-top: clamp(52px, 6vw, 76px);
  border: 1px solid var(--rule);
  background:
    linear-gradient(180deg, rgba(23, 19, 39, .86), rgba(11, 9, 18, .86));
  position: relative;
  overflow: hidden;
}

.answer::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: var(--grad);
  opacity: .85;
}

.answer__chrome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 22px;
  border-bottom: 1px solid var(--rule-faint);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--faint);
}
.answer__engines { display: flex; gap: 16px; flex-wrap: wrap; }
.answer__engines b { font-weight: 400; color: var(--v-400); }

.answer__live { display: flex; align-items: center; gap: 8px; color: var(--v-300); }
.answer__dot {
  width: 6px; height: 6px;
  background: var(--v-300);
  border-radius: 50%;
  animation: pulse 2.1s var(--ease) infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(191, 178, 235, .5); }
  50%      { opacity: .5; box-shadow: 0 0 0 6px rgba(191, 178, 235, 0); }
}

.answer__body { padding: clamp(26px, 3.4vw, 40px) clamp(22px, 3vw, 40px) clamp(28px, 3.4vw, 40px); }

.answer__q {
  display: flex;
  align-items: baseline;
  gap: 14px;
  font-family: var(--mono);
  font-size: clamp(13px, 1.7vw, 16px);
  color: var(--chalk);
  min-height: 26px;
  flex-wrap: wrap;
}
.answer__q i {
  color: var(--v-500);
  font-style: normal;
  font-size: 11px;
  letter-spacing: .2em;
  flex: none;
}
.answer__caret {
  display: inline-block;
  width: 8px;
  height: 1.05em;
  background: var(--v-300);
  transform: translateY(2px);
  animation: blink 1s steps(2) infinite;
}
@keyframes blink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }

.answer__rule {
  height: 1px;
  background: var(--rule-faint);
  margin: 26px 0 24px;
  position: relative;
  overflow: hidden;
}
.answer__rule::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.1s var(--ease);
}
.answer.is-resolved .answer__rule::after { transform: scaleX(1); }

.answer__label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 18px;
}

.answer__list { display: flex; flex-direction: column; }

.cand {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 15px 4px;
  border-bottom: 1px solid var(--rule-faint);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .6s var(--ease), transform .6s var(--ease), background .4s var(--ease);
}
.cand.is-in { opacity: 1; transform: none; }
.cand:last-child { border-bottom: 0; }

.cand__node {
  width: 9px; height: 9px;
  border: 1px solid var(--faint);
  border-radius: 50%;
  transition: all .5s var(--ease);
  justify-self: center;
}
.cand__name {
  font-family: var(--body);
  font-size: 15px;
  font-weight: 400;
  color: var(--mute);
  transition: color .5s var(--ease);
}
.cand__state {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--faint);
  transition: color .5s var(--ease);
}

.cand--you { background: rgba(124, 107, 196, .07); padding-left: 12px; padding-right: 12px; margin: 0 -8px; }
.cand--you .cand__node {
  background: var(--v-300);
  border-color: var(--v-300);
  box-shadow: 0 0 0 4px rgba(191, 178, 235, .16);
}
.cand--you .cand__name { color: var(--chalk); font-weight: 600; }
.cand--you .cand__state { color: var(--v-300); }

.answer__foot {
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid var(--rule-faint);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}
.answer__verdict {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(1rem, 1.7vw, 1.22rem);
  letter-spacing: -.01em;
}

/* --- 10. Capability rows ------------------------------------------------- */

.caps { border-top: 1px solid var(--rule); }

.cap {
  display: grid;
  grid-template-columns: 92px minmax(0, 1.25fr) minmax(0, 1.4fr) auto;
  gap: clamp(20px, 3.4vw, 52px);
  align-items: start;
  padding: 38px 8px;
  border-bottom: 1px solid var(--rule);
  position: relative;
  transition: background .4s var(--ease);
}
.cap::after {
  content: "";
  position: absolute;
  left: 0; bottom: -1px;
  height: 1px; width: 0;
  background: var(--grad);
  transition: width .55s var(--ease);
}
.cap:hover { background: rgba(124, 107, 196, .045); }
.cap:hover::after { width: 100%; }

.cap__idx {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .16em;
  color: var(--v-500);
  padding-top: 6px;
}
.cap__main { display: flex; flex-direction: column; gap: 10px; }
.cap__out {
  font-family: var(--display);
  font-weight: 300;
  font-size: 1.02rem;
  color: var(--v-300);
  letter-spacing: -.005em;
}
.cap__desc { font-size: 15px; color: var(--mute); line-height: 1.6; }
.cap__tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 14px; }
.cap__tags span {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--faint);
  border: 1px solid var(--rule-faint);
  padding: 4px 9px;
}
.cap__price {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--chalk);
  white-space: nowrap;
  padding-top: 5px;
  letter-spacing: .04em;
}
.cap__price small { display: block; color: var(--faint); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 5px; }

/* --- 11. Shift / stat rows ----------------------------------------------- */

.shift { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
.shift > div { background: var(--ink); padding: clamp(26px, 3vw, 38px); display: flex; flex-direction: column; gap: 14px; }
.shift__n {
  font-family: var(--display);
  font-weight: 200;
  font-size: clamp(2.6rem, 5vw, 3.6rem);
  line-height: 1;
  letter-spacing: -.03em;
}
.shift__t { font-size: 14.5px; color: var(--mute); line-height: 1.55; }
.shift__src { font-family: var(--mono); font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); margin-top: auto; padding-top: 12px; }

/* --- 12. Process steps --------------------------------------------------- */

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--rule-faint); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.step { background: var(--ink); padding: 34px 26px 38px; display: flex; flex-direction: column; gap: 14px; transition: background .4s var(--ease); }
.step:hover { background: var(--ink-rise); }
.step__n { font-family: var(--mono); font-size: 11px; letter-spacing: .18em; color: var(--v-500); }
.step__h { font-family: var(--display); font-weight: 400; font-size: 1.18rem; letter-spacing: -.012em; }
.step__p { font-size: 14.5px; color: var(--mute); line-height: 1.6; }

/* --- 13. Cards (blog, cases, principles) --------------------------------- */

.cards { display: grid; gap: 1px; background: var(--rule-faint); border: 1px solid var(--rule); }
.cards--3 { grid-template-columns: repeat(3, 1fr); }
.cards--2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--ink);
  padding: clamp(26px, 3vw, 36px);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: background .4s var(--ease);
  position: relative;
}
.card:hover { background: var(--ink-rise); }
.card__k { font-family: var(--mono); font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--v-500); }
.card__h { font-family: var(--display); font-weight: 400; font-size: 1.24rem; letter-spacing: -.015em; line-height: 1.24; }
.card__p { font-size: 14.5px; color: var(--mute); line-height: 1.62; }

/* Post card */
.post {
  background: var(--ink);
  border: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  transition: border-color .35s var(--ease), transform .35s var(--ease);
}
.post:hover { border-color: var(--rule-strong); transform: translateY(-3px); }
.post__media {
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, var(--v-900), var(--ink-high) 60%, var(--v-800));
  border-bottom: 1px solid var(--rule);
  position: relative;
  overflow: hidden;
}
.post__media img { width: 100%; height: 100%; object-fit: cover; }
.post__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(90deg, transparent 0 39px, rgba(191, 178, 235, .07) 39px 40px);
  pointer-events: none;
}
.post__body { padding: 26px 26px 30px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.post__meta { display: flex; gap: 14px; font-family: var(--mono); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--faint); }
.post__meta b { font-weight: 400; color: var(--v-400); }
.post__h { font-family: var(--display); font-weight: 400; font-size: 1.26rem; line-height: 1.24; letter-spacing: -.018em; }
.post__x { font-size: 14.5px; color: var(--mute); line-height: 1.6; }
.post__more { margin-top: auto; padding-top: 16px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--v-300); display: flex; align-items: center; gap: 8px; }
.post__more svg { transition: transform .3s var(--ease); }
.post:hover .post__more svg { transform: translateX(4px); }

.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }

/* --- 14. Case studies ---------------------------------------------------- */

.case {
  border: 1px solid var(--rule);
  background: var(--ink);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  transition: border-color .35s var(--ease);
}
.case:hover { border-color: var(--rule-strong); }
.case + .case { margin-top: 22px; }

.case__side {
  padding: clamp(28px, 3.4vw, 44px);
  border-right: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.case__main { padding: clamp(28px, 3.4vw, 44px); display: flex; flex-direction: column; gap: 22px; }

.case__logo {
  height: 34px;
  width: auto;
  max-width: 170px;
  object-fit: contain;
  object-position: left center;
  opacity: .9;
}
.case__sector { font-family: var(--mono); font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--v-500); }
.case__facts { display: flex; flex-direction: column; gap: 12px; margin-top: auto; padding-top: 20px; border-top: 1px solid var(--rule-faint); }
.case__fact { display: flex; justify-content: space-between; gap: 14px; font-size: 13.5px; }
.case__fact dt { color: var(--faint); font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; }
.case__fact dd { margin: 0; color: var(--chalk); text-align: right; }

.metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--rule-faint); border: 1px solid var(--rule-faint); }
.metric { background: var(--ink); padding: 20px 18px; display: flex; flex-direction: column; gap: 6px; }
.metric__v {
  font-family: var(--display);
  font-weight: 200;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  line-height: 1;
  letter-spacing: -.03em;
}
.metric__l { font-family: var(--mono); font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); line-height: 1.5; }

.quote {
  border-left: 1px solid var(--v-600);
  padding: 4px 0 4px 22px;
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(1.05rem, 1.7vw, 1.3rem);
  line-height: 1.42;
  letter-spacing: -.01em;
  color: var(--chalk);
}
.quote footer { margin-top: 14px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }

/* --- 15. Forms ----------------------------------------------------------- */

.form { display: grid; gap: 20px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

.field { display: flex; flex-direction: column; gap: 9px; }
.field label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--v-400);
}
.field label span { color: var(--faint); }

.field input,
.field select,
.field textarea {
  background: var(--ink-rise);
  border: 1px solid var(--rule);
  padding: 14px 16px;
  font-family: var(--body);
  font-size: 15px;
  font-weight: 300;
  color: var(--chalk);
  transition: border-color .25s var(--ease), background .25s var(--ease);
  width: 100%;
  border-radius: 0;
  -webkit-appearance: none;
  appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='7' viewBox='0 0 11 7'%3E%3Cpath d='M1 1l4.5 4.5L10 1' stroke='%23948EAD' stroke-width='1' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 42px;
}
.field select option { background: var(--ink-rise); color: var(--chalk); }
.field textarea { resize: vertical; min-height: 132px; line-height: 1.6; }
.field input::placeholder, .field textarea::placeholder { color: var(--faint); }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--v-500);
  background: var(--ink-high);
  outline: none;
}

.hp { position: absolute !important; left: -9999px !important; opacity: 0; height: 0; overflow: hidden; }

.form__note { font-size: 13px; color: var(--faint); line-height: 1.55; }

.alert {
  border: 1px solid var(--rule);
  border-left: 2px solid var(--v-500);
  padding: 16px 20px;
  font-size: 14.5px;
  color: var(--chalk);
  background: rgba(124, 107, 196, .08);
}
.alert--bad { border-left-color: #C4707A; background: rgba(196, 112, 122, .08); }

/* --- 16. Split layouts --------------------------------------------------- */

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}
.split--wide-left { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); }
.split--wide-right { grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); }

.stack { display: flex; flex-direction: column; gap: 22px; }
.stack--tight { gap: 14px; }
.stack--loose { gap: 34px; }

.prose p { color: var(--mute); }
.prose p + p { margin-top: 18px; }

/* Definition list — used for principles / FAQ */
.dl { border-top: 1px solid var(--rule); }
.dl__item { border-bottom: 1px solid var(--rule); }
.dl__q {
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  padding: 24px 44px 24px 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.02rem, 1.6vw, 1.18rem);
  letter-spacing: -.012em;
  color: var(--chalk);
  cursor: pointer;
  position: relative;
  transition: color .25s var(--ease);
}
.dl__q:hover { color: var(--v-300); }
.dl__q::after,
.dl__q::before {
  content: "";
  position: absolute;
  right: 6px;
  top: 50%;
  background: var(--v-400);
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.dl__q::before { width: 13px; height: 1px; transform: translateY(-50%); }
.dl__q::after  { width: 1px; height: 13px; right: 12px; transform: translateY(-50%); }
.dl__q[aria-expanded="true"]::after { transform: translateY(-50%) rotate(90deg); opacity: 0; }

.dl__a { max-height: 0; overflow: hidden; transition: max-height .45s var(--ease); }
.dl__a > div { padding: 0 60px 26px 0; color: var(--mute); font-size: 15px; line-height: 1.68; }

/* Marker list */
.mlist { display: flex; flex-direction: column; gap: 0; border-top: 1px solid var(--rule-faint); }
.mlist li {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 16px;
  padding: 15px 0;
  border-bottom: 1px solid var(--rule-faint);
  font-size: 15px;
  color: var(--mute);
  align-items: baseline;
}
.mlist li::before {
  content: "";
  width: 5px; height: 5px;
  background: var(--v-500);
  transform: translateY(-2px);
  margin-left: 6px;
}
.mlist--no li::before { background: var(--faint); }
.mlist b { color: var(--chalk); font-weight: 500; }

/* --- 17. CTA band -------------------------------------------------------- */

.cta {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background:
    radial-gradient(ellipse 90% 130% at 50% 0%, rgba(75, 59, 134, .3), transparent 62%),
    var(--ink);
  padding: clamp(72px, 9vw, 120px) 0;
  text-align: center;
}
.cta__inner { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 26px; }
.cta .btn-row { justify-content: center; }
.cta__fine { font-family: var(--mono); font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--faint); }

/* --- 18. Footer ---------------------------------------------------------- */

.foot { padding: clamp(56px, 6vw, 80px) 0 40px; }
.foot__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 60px);
  padding-bottom: 44px;
  border-bottom: 1px solid var(--rule-faint);
}
.foot__about { display: flex; flex-direction: column; gap: 18px; max-width: 340px; }
.foot__about p { font-size: 14.5px; color: var(--mute); line-height: 1.62; }
.foot__col { display: flex; flex-direction: column; gap: 13px; }
.foot__col h4 { font-family: var(--mono); font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--faint); font-weight: 400; margin-bottom: 4px; }
.foot__col a, .foot__col span { font-size: 14.5px; color: var(--mute); transition: color .22s var(--ease); }
.foot__col a:hover { color: var(--chalk); }
.foot__bar {
  padding-top: 26px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--faint);
}

/* --- 19. Page header (interior pages) ------------------------------------ */

.phead {
  padding: clamp(56px, 7vw, 96px) 0 clamp(44px, 5vw, 66px);
  border-bottom: 1px solid var(--rule);
  position: relative;
  overflow: hidden;
}
.phead__glow {
  position: absolute;
  top: -60%; left: 18%;
  width: 760px; aspect-ratio: 1;
  background: radial-gradient(circle, rgba(75, 59, 134, .3), transparent 64%);
  pointer-events: none;
}
.phead__inner { position: relative; display: flex; flex-direction: column; gap: 24px; max-width: 840px; }
.crumb { font-family: var(--mono); font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--faint); display: flex; gap: 10px; }
.crumb a { color: var(--v-400); }
.crumb a:hover { color: var(--chalk); }

/* --- 20. Article --------------------------------------------------------- */

.article { max-width: 720px; margin: 0 auto; }
.article > * + * { margin-top: 26px; }
.article p { font-size: 17px; line-height: 1.78; color: #CFCADF; }
.article h2 {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(1.6rem, 3vw, 2.15rem);
  letter-spacing: -.024em;
  line-height: 1.14;
  margin-top: 56px;
  color: var(--chalk);
}
.article h3 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.28rem;
  letter-spacing: -.014em;
  margin-top: 40px;
}
.article ul, .article ol { display: flex; flex-direction: column; gap: 11px; padding-left: 0; }
.article li { display: grid; grid-template-columns: 16px 1fr; gap: 14px; font-size: 16.5px; line-height: 1.7; color: #CFCADF; }
.article ul li::before { content: ""; width: 5px; height: 5px; background: var(--v-500); margin-top: .62em; }
.article ol { counter-reset: n; }
.article ol li { counter-increment: n; }
.article ol li::before { content: counter(n, decimal-leading-zero); font-family: var(--mono); font-size: 11px; color: var(--v-500); margin-top: .38em; }
.article blockquote {
  border-left: 1px solid var(--v-600);
  padding-left: 24px;
  font-family: var(--display);
  font-weight: 300;
  font-size: 1.32rem;
  line-height: 1.44;
  letter-spacing: -.012em;
  color: var(--chalk);
}
.article a:not(.btn):not(.tlink) { color: var(--v-300); border-bottom: 1px solid rgba(191, 178, 235, .32); }
.article a:not(.btn):not(.tlink):hover { border-bottom-color: var(--v-300); }
.article figure { margin: 44px 0; }
.article figure img { width: 100%; border: 1px solid var(--rule); }
.article figcaption { margin-top: 12px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }
.article hr { border: 0; border-top: 1px solid var(--rule); margin: 52px 0; }

.article__note {
  border: 1px solid var(--rule);
  border-left: 2px solid var(--v-500);
  background: rgba(124, 107, 196, .06);
  padding: 24px 26px;
}
.article__note p { font-size: 15.5px; color: var(--mute); }

/* --- 21. Reveal on scroll ------------------------------------------------ */

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .75s var(--ease), transform .75s var(--ease);
}
[data-reveal].is-in { opacity: 1; transform: none; }

/* --- 22. Responsive ------------------------------------------------------ */

@media (max-width: 1080px) {
  .cap { grid-template-columns: 60px minmax(0, 1fr) auto; }
  .cap__desc-col { display: none; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .foot__grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .grid-frame__inner { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  :root { --gut: 20px; }
  .wrap { padding: 0 24px; }
  .nav__links {
    position: fixed;
    inset: 76px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(11, 9, 18, .98);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--rule);
    padding: 8px 24px 26px;
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
  }
  .nav__links.is-open { opacity: 1; transform: none; visibility: visible; }
  .nav__link { padding: 15px 0; border-bottom: 1px solid var(--rule-faint); font-size: 16px; }
  .nav__link::after { display: none; }
  .nav__cta { margin-top: 16px; }
  .nav__toggle { display: block; }

  .band__head { grid-template-columns: 1fr; align-items: start; }
  .split, .split--wide-left, .split--wide-right { grid-template-columns: 1fr; }
  .shift { grid-template-columns: 1fr; }
  .post-grid { grid-template-columns: repeat(2, 1fr); }
  .cards--3 { grid-template-columns: 1fr 1fr; }
  .case { grid-template-columns: 1fr; }
  .case__side { border-right: 0; border-bottom: 1px solid var(--rule); }
  .form__row { grid-template-columns: 1fr; }
  .dl__a > div { padding-right: 20px; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .wrap { padding: 0 20px; }
  .cap { grid-template-columns: 1fr; gap: 12px; padding: 30px 0; }
  .cap__idx { padding-top: 0; }
  .cap__price { padding-top: 6px; }
  .steps, .cards--3, .cards--2, .post-grid, .metrics { grid-template-columns: 1fr; }
  .foot__grid { grid-template-columns: 1fr; }
  .grid-frame { display: none; }
  .answer__chrome { flex-direction: column; align-items: flex-start; gap: 9px; }
  .cand { grid-template-columns: 18px minmax(0, 1fr); }
  .cand__state { grid-column: 2; font-size: 9.5px; }
  .btn { width: 100%; }
  .btn-row { flex-direction: column; }
  .nav__cta .btn { width: auto; }
}

/* --- 23. Motion + print -------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  [data-reveal], .cand { opacity: 1 !important; transform: none !important; }
}

@media print {
  body { background: #fff; color: #000; }
  .nav, .cta, .grid-frame, .hero__glow, .phead__glow { display: none; }
}
