/* =========================================================
   MASLO TECHNOLOGIES · house style
   Aesthetic: engineering atelier · editorial · ink + amber
   ========================================================= */

:root {
  /* palette */
  --ink:       #0e0d0b;      /* deep near-black */
  --ink-2:     #161410;      /* elevated dark */
  --paper:     #f5f1e8;      /* warm off-white */
  --paper-2:   #ece6d6;      /* dim paper */
  --rule:      #cbc1aa;      /* hairlines on paper */
  --rule-dk:   #2a251d;      /* hairlines on ink */
  --muted:     #6e6758;
  --muted-dk:  #8a8170;

  --accent:    #e86a1a;      /* signal amber/orange */
  --accent-2:  #f4b84a;      /* warm highlight */
  --live:      #4bb47a;

  /* typography */
  --serif:  "Fraunces", "Times New Roman", serif;
  --sans:   "Inter Tight", -apple-system, BlinkMacSystemFont, sans-serif;
  --mono:   "JetBrains Mono", ui-monospace, SFMono-Regular, monospace;

  /* layout */
  --page-max: 1280px;
  --gutter: clamp(20px, 4vw, 56px);
  --section-y: clamp(80px, 10vw, 140px);

  --ease: cubic-bezier(.2,.8,.2,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
img, svg { display: block; max-width: 100%; }

/* ---------- reusable ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}
.section--dark .eyebrow { color: var(--muted-dk); }
.eyebrow__dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(232,106,26,.15);
}
.dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
}
.dot--live {
  background: var(--live);
  box-shadow: 0 0 0 0 rgba(75,180,122,.55);
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(75,180,122,.55); }
  70%  { box-shadow: 0 0 0 10px rgba(75,180,122,0); }
  100% { box-shadow: 0 0 0 0 rgba(75,180,122,0); }
}

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px;
  border-radius: 2px;
  font-weight: 500;
  font-size: 14.5px;
  letter-spacing: .01em;
  transition: all .25s var(--ease);
  border: 1px solid transparent;
  line-height: 1;
}
.btn svg { width: 16px; height: 16px; }
.btn--primary {
  background: var(--ink);
  color: var(--paper);
}
.btn--primary:hover { background: var(--accent); }
.section--dark .btn--primary { background: var(--accent); color: var(--ink); }
.section--dark .btn--primary:hover { background: var(--paper); }
.btn--ghost {
  border: 1px solid var(--ink);
  color: var(--ink);
}
.btn--ghost:hover { background: var(--ink); color: var(--paper); }
.section--dark .btn--ghost { border-color: var(--paper); color: var(--paper); }
.section--dark .btn--ghost:hover { background: var(--paper); color: var(--ink); }
.btn--link {
  padding: 0;
  border-bottom: 1px solid currentColor;
  border-radius: 0;
  padding-bottom: 3px;
}
.btn--link:hover { color: var(--accent); }
.btn--full { width: 100%; justify-content: center; }
.btn--sm { padding: 9px 14px; font-size: 12.5px; }

/* ---------- grain ---------- */
.grain {
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 200;
  opacity: .35;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.13 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* ====================== NAV ====================== */
.nav {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; gap: 24px;
  padding: 18px var(--gutter);
  background: rgba(245,241,232,0.82);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--rule);
}
.nav__brand {
  display: flex; align-items: center; gap: 12px;
  flex-shrink: 0;
}
.nav__mark { width: 30px; height: 30px; color: var(--ink); }
.nav__wordmark { display: flex; flex-direction: column; line-height: 1; }
.nav__word {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 20px;
  font-variation-settings: "opsz" 44, "SOFT" 40;
  letter-spacing: -.01em;
}
.nav__sub {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 3px;
}
.nav__links {
  display: flex;
  gap: 28px;
  margin-left: auto;
  font-size: 14px;
}
.nav__links a {
  position: relative;
  padding: 6px 0;
  color: var(--ink);
}
.nav__links a::after {
  content: "";
  position: absolute; bottom: 0; left: 0;
  width: 0; height: 1px;
  background: var(--accent);
  transition: width .25s var(--ease);
}
.nav__links a:hover::after { width: 100%; }
.nav__cta { margin-left: 4px; }

.nav__menu { display: none; }

@media (max-width: 960px) {
  .nav__links, .nav__cta { display: none; }
  .nav__menu {
    display: flex; flex-direction: column; gap: 5px;
    margin-left: auto;
    padding: 10px;
  }
  .nav__menu span {
    width: 22px; height: 1.5px; background: var(--ink);
  }
  .nav.is-open .nav__links {
    display: flex; flex-direction: column;
    position: absolute; top: 100%; right: 0; left: 0;
    background: var(--paper);
    padding: 22px var(--gutter);
    gap: 18px;
    border-bottom: 1px solid var(--rule);
  }
  .nav.is-open .nav__cta { display: block; margin-top: 10px; }
}

/* ====================== HERO ====================== */
.hero {
  position: relative;
  padding: clamp(40px, 6vw, 80px) var(--gutter) clamp(60px, 8vw, 120px);
  overflow: hidden;
}
.hero::before {
  /* background atmosphere */
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(232,106,26,.08), transparent 60%),
    radial-gradient(900px 600px at -10% 110%, rgba(14,13,11,.06), transparent 60%);
  pointer-events: none;
}

.hero__ticker {
  position: absolute; top: 0; left: 0; right: 0;
  overflow: hidden;
  border-bottom: 1px solid var(--rule);
  background: var(--paper-2);
  height: 36px;
  display: flex; align-items: center;
}
.hero__ticker-track {
  display: flex; gap: 22px;
  white-space: nowrap;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  animation: ticker 45s linear infinite;
  padding-left: 22px;
}
@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.hero__grid {
  max-width: var(--page-max);
  margin: 56px auto 0;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}

.hero__title {
  font-family: var(--serif);
  font-size: clamp(44px, 7.2vw, 108px);
  line-height: .95;
  letter-spacing: -.025em;
  margin: 24px 0 28px;
  font-weight: 400;
  font-variation-settings: "opsz" 144, "SOFT" 30, "WONK" 0;
}
.hero__line { display: block; }
.hero__line--italic em {
  font-style: italic;
  font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1;
  color: var(--accent);
}
.hero__line { opacity: 0; transform: translateY(14px); animation: rise .9s var(--ease) forwards; }
.hero__line:nth-child(1) { animation-delay: .1s; }
.hero__line:nth-child(2) { animation-delay: .28s; }
.hero__line:nth-child(3) { animation-delay: .46s; }
@keyframes rise {
  to { opacity: 1; transform: translateY(0); }
}

.hero__lede {
  font-size: clamp(16px, 1.3vw, 19px);
  line-height: 1.55;
  max-width: 52ch;
  color: #2a2518;
  margin: 0 0 36px;
}

.hero__actions {
  display: flex; gap: 22px; align-items: center;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
  margin: 0;
}
.hero__stats div { }
.hero__stats dt {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
.hero__stats dd {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(28px, 3.4vw, 42px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -.02em;
}

/* right column */
.hero__right { position: relative; }
.arch {
  margin: 0;
  border: 1px solid var(--rule);
  background: var(--paper);
  padding: 18px 18px 8px;
  position: relative;
}
.arch::before {
  content: "";
  position: absolute;
  top: -7px; left: -7px;
  width: 14px; height: 14px;
  border: 1px solid var(--ink);
  background: var(--accent);
  border-radius: 50%;
}
.arch__cap {
  display: flex; justify-content: space-between;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}

.arch__svg {
  width: 100%;
  color: var(--ink);
  font-family: var(--mono);
}
.arch__label {
  font-size: 9px;
  letter-spacing: .2em;
  text-transform: uppercase;
  fill: var(--muted);
}
.arch__node rect {
  fill: var(--paper);
  stroke: var(--ink);
  stroke-width: 1;
}
.arch__node text {
  font-size: 11px;
  text-anchor: middle;
  dominant-baseline: middle;
  fill: var(--ink);
}
.arch__node--ghost rect { fill: var(--paper-2); }

.arch__platform {
  fill: var(--ink);
  stroke: var(--ink);
}
.arch__pill rect {
  fill: transparent;
  stroke: var(--paper);
  stroke-width: 1;
}
.arch__pill text {
  fill: var(--paper);
  font-size: 11.5px;
  text-anchor: middle;
  dominant-baseline: middle;
}
.arch__pill--wide rect {
  fill: rgba(232,106,26,.12);
  stroke: var(--accent);
}
.arch__pill--wide text { fill: var(--accent-2); font-weight: 500; }
.arch__sub {
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  fill: var(--muted-dk) !important;
}
.arch__pulse circle { fill: var(--accent); }

.hero__card {
  margin-top: 18px;
  padding: 18px 20px;
  background: var(--ink);
  color: var(--paper);
  position: relative;
  font-size: 14px;
  line-height: 1.5;
}
.hero__card-head {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 8px;
}
.hero__card p { margin: 0; color: #cfc8b6; }

.hero__scroll {
  position: absolute;
  bottom: 28px; left: var(--gutter);
  display: flex; align-items: center; gap: 14px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero__scroll-line {
  width: 80px; height: 1px; background: var(--muted);
  position: relative; overflow: hidden;
}
.hero__scroll-line::after {
  content: ""; position: absolute; inset: 0;
  background: var(--accent);
  transform: translateX(-100%);
  animation: scrollwave 2.4s var(--ease) infinite;
}
@keyframes scrollwave {
  50%  { transform: translateX(0); }
  100% { transform: translateX(100%); }
}

@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__stats { grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .hero__scroll { display: none; }
}

/* ====================== TRUST ====================== */
.trust {
  padding: 40px var(--gutter);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: var(--paper-2);
  display: flex; align-items: center; gap: 28px; flex-wrap: wrap;
  justify-content: center;
  max-width: 100%;
}
.trust__label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
}
.trust__list {
  list-style: none; display: flex; flex-wrap: wrap;
  gap: 22px 30px;
  padding: 0; margin: 0;
  font-family: var(--serif);
  font-size: clamp(16px, 1.5vw, 20px);
  font-style: italic;
  color: var(--ink);
  font-weight: 400;
}
.trust__list li {
  position: relative;
  padding-right: 30px;
}
.trust__list li:not(:last-child)::after {
  content: "·";
  position: absolute;
  right: 0;
  color: var(--accent);
  font-style: normal;
}

/* ====================== SECTIONS ====================== */
.section {
  padding: var(--section-y) var(--gutter);
  max-width: 100%;
}
.section > * { max-width: var(--page-max); margin-inline: auto; }

.section--dark {
  background: var(--ink);
  color: var(--paper);
}
.section--dark .section__kicker,
.section--dark .section__num { color: var(--muted-dk); }

.section__head {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 16px 40px;
  margin-bottom: clamp(48px, 5vw, 72px);
  align-items: baseline;
}
.section__num {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 12px;
}
.section__title {
  font-family: var(--serif);
  font-size: clamp(36px, 5.5vw, 72px);
  line-height: 1;
  letter-spacing: -.025em;
  font-weight: 400;
  margin: 0 0 14px;
  font-variation-settings: "opsz" 144, "SOFT" 30;
  grid-column: 2;
}
.section__kicker {
  grid-column: 2;
  font-size: clamp(15px, 1.1vw, 17px);
  color: var(--muted);
  max-width: 60ch;
  margin: 0;
}

@media (max-width: 600px) {
  .section__head { grid-template-columns: 1fr; }
  .section__title, .section__kicker { grid-column: 1; }
}

/* ====================== SERVICES ====================== */
.services {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  background: var(--rule);
  border: 1px solid var(--rule);
}
.service {
  background: var(--paper);
  padding: clamp(28px, 3vw, 44px);
  display: flex; flex-direction: column;
  gap: 14px;
  transition: background .3s var(--ease);
}
.service:hover { background: var(--paper-2); }
.service:hover h3 { color: var(--accent); }
.service__tag {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}
.service h3 {
  font-family: var(--serif);
  font-size: clamp(22px, 2.4vw, 32px);
  font-weight: 400;
  margin: 6px 0 0;
  letter-spacing: -.015em;
  transition: color .25s var(--ease);
  font-variation-settings: "opsz" 36;
}
.service p { margin: 0; color: #3a3427; font-size: 15.5px; }
.service__bullets {
  list-style: none; padding: 0; margin: 8px 0 0;
  font-size: 14px;
  color: var(--muted);
}
.service__bullets li {
  padding: 8px 0;
  border-top: 1px dashed var(--rule);
  display: flex; align-items: center;
}
.service__bullets li::before {
  content: "→";
  color: var(--accent);
  margin-right: 12px;
  font-family: var(--mono);
}
.service__bullets li:first-child { border-top: 0; padding-top: 12px; }

@media (max-width: 720px) {
  .services { grid-template-columns: 1fr; }
}

/* ====================== PRODUCTS ====================== */
.products {
  display: flex; flex-direction: column;
  gap: clamp(60px, 7vw, 100px);
}
.product {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}
.product--reverse .product__mock { order: 2; }

.product__mock {
  background: var(--ink-2);
  border: 1px solid rgba(245,241,232,.08);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 40px 80px -40px rgba(0,0,0,.6);
  position: relative;
}
.product__mock::before {
  content: "";
  position: absolute;
  top: -8px; left: 16px;
  width: 50px; height: 2px;
  background: var(--accent);
}

.product__mock-bar {
  display: flex; gap: 6px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(245,241,232,.08);
  background: #0a0907;
}
.product__mock-bar span {
  width: 10px; height: 10px; border-radius: 50%;
  background: #3a352a;
}
.product__mock-bar span:first-child { background: #e86a1a; }

.product__mock-body {
  padding: 24px;
  color: var(--paper);
  min-height: 280px;
  font-size: 13px;
}

/* workflow mock */
.flow { display: flex; flex-direction: column; gap: 0; padding: 10px 0; }
.flow__node {
  align-self: flex-start;
  padding: 11px 18px;
  background: rgba(245,241,232,.06);
  border: 1px solid rgba(245,241,232,.12);
  border-radius: 2px;
  font-family: var(--mono);
  font-size: 12.5px;
}
.flow__node--start { border-left: 2px solid var(--accent); }
.flow__node--branch { align-self: center; background: rgba(232,106,26,.18); border-color: var(--accent); }
.flow__node--end { align-self: flex-end; border-right: 2px solid var(--live); }
.flow__line {
  width: 1px; height: 20px;
  background: linear-gradient(to bottom, transparent, rgba(245,241,232,.3), transparent);
  margin-left: 32px;
}
.flow__line--fork {
  margin-left: 50%;
}
.flow__meta {
  display: flex; gap: 18px;
  padding-top: 20px;
  margin-top: 8px;
  border-top: 1px dashed rgba(245,241,232,.1);
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted-dk);
  letter-spacing: .1em;
  text-transform: uppercase;
}
.flow__status { color: var(--live); margin-left: auto; }

/* EHR mock */
.chart { font-family: var(--mono); font-size: 12px; }
.chart header {
  display: flex; justify-content: space-between;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(245,241,232,.12);
  margin-bottom: 14px;
  font-size: 13.5px;
}
.chart__pill {
  background: rgba(232,106,26,.18);
  color: var(--accent-2);
  padding: 2px 10px;
  border-radius: 10px;
  font-size: 10.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.chart ul { list-style: none; padding: 0; margin: 0; }
.chart li {
  display: flex; justify-content: space-between;
  padding: 11px 0;
  border-bottom: 1px dashed rgba(245,241,232,.08);
  color: #cfc8b6;
}
.chart li span:last-child { color: var(--paper); }

/* Assets mock */
.assets-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-bottom: 18px;
}
.assets-grid > div {
  padding: 14px;
  background: rgba(245,241,232,.04);
  border: 1px solid rgba(245,241,232,.08);
}
.assets-grid__k {
  display: block;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted-dk);
  margin-bottom: 6px;
}
.assets-grid__v {
  font-family: var(--serif);
  font-size: 24px;
  letter-spacing: -.01em;
}
.assets-row {
  display: flex; justify-content: space-between;
  padding: 12px 14px;
  border-top: 1px solid rgba(245,241,232,.08);
  font-family: var(--mono);
  font-size: 11.5px;
  color: #cfc8b6;
  gap: 10px;
  flex-wrap: wrap;
}
.assets-row span:first-child { color: var(--paper); }
.assets-row__ok { color: var(--live); }
.assets-row__warn { color: var(--accent-2); }

/* Runbook mock */
.runbook {
  margin: 0;
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.7;
  color: #cfc8b6;
  white-space: pre-wrap;
}
.rb__h { color: var(--accent-2); }
.rb__c { color: var(--muted-dk); }
.rb__step { color: var(--accent); }
.rb__ok { color: var(--live); }
.runbook code {
  background: rgba(245,241,232,.08);
  padding: 1px 6px;
  border-radius: 2px;
  color: var(--paper);
}

/* Directory mock */
.dir header {
  font-family: var(--serif);
  font-size: 18px;
  padding-bottom: 14px;
  margin-bottom: 8px;
  border-bottom: 1px solid rgba(245,241,232,.12);
}
.dir__family {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px dashed rgba(245,241,232,.08);
}
.dir__avatar {
  width: 40px; height: 40px;
  background: var(--accent);
  color: var(--ink);
  display: grid; place-items: center;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
}
.dir__family strong { display: block; font-weight: 500; font-size: 14px; }
.dir__family span { color: var(--muted-dk); font-size: 12px; }
.dir__badge {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent-2);
}

.product__body { padding: 8px 0; }
.product__kind {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
}
.section--dark .product__body h3 {
  font-family: var(--serif);
  font-size: clamp(28px, 3.6vw, 48px);
  font-weight: 400;
  margin: 14px 0 18px;
  line-height: 1.05;
  letter-spacing: -.02em;
  font-variation-settings: "opsz" 80;
  color: var(--paper);
}
.product__body p { color: #cfc8b6; font-size: 16px; line-height: 1.55; margin: 0 0 22px; max-width: 50ch; }
.product__points {
  list-style: none; padding: 0; margin: 0;
  font-family: var(--mono);
  font-size: 13px;
  color: #cfc8b6;
}
.product__points li {
  padding: 10px 0;
  border-top: 1px solid rgba(245,241,232,.1);
  display: flex;
}
.product__points li::before {
  content: "◇";
  color: var(--accent);
  margin-right: 12px;
}

@media (max-width: 860px) {
  .product, .product--reverse { grid-template-columns: 1fr; }
  .product--reverse .product__mock { order: 0; }
}

/* ====================== INDUSTRIES ====================== */
.industries {
  list-style: none; padding: 0; margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--rule);
  border: 1px solid var(--rule);
}
.industries li {
  background: var(--paper);
  padding: clamp(28px, 3vw, 40px) clamp(24px, 2.5vw, 32px);
  transition: background .3s var(--ease);
  cursor: default;
  position: relative;
}
.industries li:hover {
  background: var(--ink);
  color: var(--paper);
}
.industries li:hover h3 { color: var(--accent-2); }
.industries li:hover p { color: #cfc8b6; }
.industries li:hover .industries__num { color: var(--accent); }
.industries__num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .2em;
  color: var(--muted);
  transition: color .25s var(--ease);
}
.industries h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(22px, 2vw, 28px);
  margin: 10px 0 10px;
  letter-spacing: -.01em;
  transition: color .25s var(--ease);
}
.industries p {
  margin: 0;
  font-size: 14.5px;
  color: var(--muted);
  transition: color .25s var(--ease);
}

@media (max-width: 860px) {
  .industries { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .industries { grid-template-columns: 1fr; }
}

/* ====================== PROCESS ====================== */
.process {
  list-style: none; padding: 0; margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  counter-reset: step;
  position: relative;
}
.process::before {
  content: "";
  position: absolute;
  top: 32px; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--muted-dk) 15%, var(--muted-dk) 85%, transparent);
}
.process__step {
  position: relative;
  padding-top: 56px;
}
.process__step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  position: absolute;
  top: 0; left: 0;
  width: 64px; height: 64px;
  background: var(--ink);
  border: 1px solid var(--accent);
  color: var(--accent);
  font-family: var(--mono);
  font-size: 13px;
  display: grid; place-items: center;
  border-radius: 50%;
}
.process__week {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted-dk);
  display: block;
  margin-bottom: 10px;
}
.process__step h3 {
  font-family: var(--serif);
  font-size: clamp(24px, 2.6vw, 34px);
  font-weight: 400;
  margin: 0 0 14px;
  letter-spacing: -.015em;
  color: var(--paper);
  font-variation-settings: "opsz" 48;
}
.process__step p {
  margin: 0;
  color: #cfc8b6;
  font-size: 15px;
  max-width: 38ch;
}

@media (max-width: 860px) {
  .process { grid-template-columns: 1fr; gap: 52px; }
  .process::before { display: none; }
}

/* ====================== ABOUT ====================== */
.about {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}
.about__lede {
  font-family: var(--serif);
  font-size: clamp(22px, 2.4vw, 32px);
  line-height: 1.3;
  font-weight: 400;
  margin: 0 0 24px;
  letter-spacing: -.01em;
  font-variation-settings: "opsz" 36, "SOFT" 60;
}
.about__copy p { font-size: 16px; color: #2a2518; line-height: 1.65; }
.about__values {
  display: grid; gap: 22px;
  margin: 40px 0 0;
  padding-top: 30px;
  border-top: 1px solid var(--rule);
}
.about__values dt {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 500;
  font-style: italic;
  color: var(--ink);
  margin-bottom: 4px;
}
.about__values dd {
  margin: 0;
  color: var(--muted);
  font-size: 14.5px;
}
.about__card {
  border: 1px solid var(--ink);
  padding: 28px;
  position: sticky; top: 100px;
  background: var(--paper-2);
}
.about__card ul {
  list-style: none; padding: 0; margin: 18px 0 0;
  font-family: var(--mono);
  font-size: 13px;
}
.about__card li {
  display: flex; justify-content: space-between;
  padding: 12px 0;
  border-top: 1px dashed var(--rule);
  gap: 12px;
}
.about__card li span { color: var(--muted); }
.about__card li strong {
  color: var(--ink);
  font-weight: 500;
  text-align: right;
}

@media (max-width: 860px) {
  .about { grid-template-columns: 1fr; }
  .about__card { position: static; }
}

/* ====================== CONTACT ====================== */
.section--contact {
  background: var(--ink);
  color: var(--paper);
}
.contact {
  max-width: var(--page-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}
.contact__left { padding-top: 10px; }
.contact__title {
  font-family: var(--serif);
  font-size: clamp(36px, 5.5vw, 68px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -.025em;
  margin: 20px 0 20px;
  color: var(--paper);
  font-variation-settings: "opsz" 144, "SOFT" 30;
}
.contact__lede {
  font-size: 17px;
  color: #cfc8b6;
  max-width: 45ch;
  margin: 0 0 36px;
}
.contact__channels {
  display: grid; gap: 2px;
  background: var(--rule-dk);
  border: 1px solid var(--rule-dk);
}
.contact__channel {
  display: block;
  padding: 20px 24px;
  background: var(--ink);
  color: var(--paper);
  text-align: left;
  transition: background .25s var(--ease);
  cursor: pointer;
  border: 0;
  width: 100%;
  font-family: inherit;
}
.contact__channel:hover { background: var(--ink-2); }
.contact__k {
  display: block;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}
.contact__v {
  font-family: var(--serif);
  font-size: 20px;
  letter-spacing: -.01em;
}

.contact__form {
  background: var(--paper);
  color: var(--ink);
  padding: clamp(28px, 3vw, 40px);
  display: grid;
  gap: 18px;
  border: 1px solid var(--accent);
  position: relative;
}
.contact__form::before {
  content: "";
  position: absolute;
  top: -7px; right: -7px;
  width: 14px; height: 14px;
  background: var(--accent);
  border: 1px solid var(--ink);
  border-radius: 50%;
}
.contact__form h3 {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 400;
  margin: 0 0 4px;
  letter-spacing: -.01em;
}
.contact__form label {
  display: grid;
  gap: 6px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}
.contact__form input,
.contact__form select,
.contact__form textarea {
  font-family: var(--sans);
  font-size: 15px;
  padding: 12px 14px;
  border: 1px solid var(--rule);
  background: var(--paper);
  color: var(--ink);
  border-radius: 2px;
  text-transform: none;
  letter-spacing: normal;
  transition: border-color .2s var(--ease);
}
.contact__form input:focus,
.contact__form select:focus,
.contact__form textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.contact__form textarea { resize: vertical; }
.contact__fineprint {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .1em;
  color: var(--muted);
  margin: 4px 0 0;
  text-transform: none;
}
.contact__fineprint a { color: var(--accent); text-decoration: underline; }

@media (max-width: 860px) {
  .contact { grid-template-columns: 1fr; }
}

/* ====================== FOOTER ====================== */
.foot {
  background: #060504;
  color: var(--paper);
  padding: 70px var(--gutter) 24px;
}
.foot__top {
  max-width: var(--page-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 50px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--rule-dk);
}
.foot__brand {
  display: flex; align-items: flex-start; gap: 14px;
}
.foot__mark { width: 32px; height: 32px; color: var(--paper); flex-shrink: 0; }
.foot__brand strong {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 400;
  display: block;
  margin-bottom: 6px;
}
.foot__brand span {
  font-size: 13px;
  color: var(--muted-dk);
  max-width: 28ch;
  display: block;
}
.foot__cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.foot__cols h4 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 14px;
  font-weight: 500;
}
.foot__cols a {
  display: block;
  padding: 6px 0;
  color: #cfc8b6;
  font-size: 14px;
  transition: color .2s var(--ease);
}
.foot__cols a:hover { color: var(--accent-2); }

.foot__bottom {
  max-width: var(--page-max);
  margin: 0 auto;
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  gap: 18px; flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .1em;
  color: var(--muted-dk);
  text-transform: uppercase;
}
.foot__bottom a { color: var(--accent-2); }

@media (max-width: 760px) {
  .foot__top { grid-template-columns: 1fr; }
  .foot__cols { grid-template-columns: repeat(2, 1fr); }
}

/* ====================== MODAL ====================== */
.modal[hidden] { display: none; }
.modal {
  position: fixed; inset: 0;
  z-index: 300;
  display: grid; place-items: center;
  padding: 20px;
}
.modal__backdrop {
  position: absolute; inset: 0;
  background: rgba(14,13,11,.82);
  backdrop-filter: blur(6px);
  animation: fadeIn .25s var(--ease);
}
@keyframes fadeIn { from { opacity: 0; } }
.modal__panel {
  position: relative;
  background: var(--paper);
  width: min(640px, 94vw);
  max-height: 90vh;
  overflow-y: auto;
  padding: clamp(28px, 3vw, 44px);
  border: 1px solid var(--ink);
  animation: modalUp .35s var(--ease);
}
@keyframes modalUp {
  from { opacity: 0; transform: translateY(16px); }
}
.modal__panel::before {
  content: "";
  position: absolute;
  top: -7px; left: -7px;
  width: 14px; height: 14px;
  background: var(--accent);
  border: 1px solid var(--ink);
  border-radius: 50%;
}
.modal__close {
  position: absolute;
  top: 14px; right: 14px;
  width: 36px; height: 36px;
  font-size: 22px;
  color: var(--muted);
  display: grid; place-items: center;
  border-radius: 50%;
  transition: all .2s var(--ease);
}
.modal__close:hover { background: var(--ink); color: var(--paper); }
.modal__panel h3 {
  font-family: var(--serif);
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 400;
  margin: 10px 0 8px;
  letter-spacing: -.015em;
}
.modal__lede { color: var(--muted); font-size: 15px; margin: 0 0 24px; max-width: 48ch; }
.modal__form { display: grid; gap: 16px; }
.modal__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.modal__form label {
  display: grid; gap: 5px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}
.modal__form input,
.modal__form select,
.modal__form textarea {
  font-family: var(--sans);
  font-size: 15px;
  padding: 11px 14px;
  border: 1px solid var(--rule);
  background: var(--paper);
  border-radius: 2px;
  text-transform: none;
  letter-spacing: normal;
  color: var(--ink);
  transition: border-color .2s var(--ease);
}
.modal__form input:focus,
.modal__form select:focus,
.modal__form textarea:focus {
  outline: none; border-color: var(--accent);
}
.modal__form textarea { resize: vertical; }
.modal__fineprint {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .1em;
  color: var(--muted);
  margin: 4px 0 0;
  text-transform: none;
}

@media (max-width: 520px) {
  .modal__row { grid-template-columns: 1fr; }
}

/* ====================== CHAT AGENT ====================== */
.chat__launcher {
  position: fixed;
  bottom: 24px; right: 24px;
  z-index: 150;
  display: flex; align-items: center; gap: 10px;
  padding: 14px 20px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  box-shadow: 0 20px 40px -10px rgba(0,0,0,.4), 0 0 0 1px rgba(232,106,26,.3);
  transition: all .25s var(--ease);
}
.chat__launcher:hover {
  background: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 24px 44px -8px rgba(0,0,0,.5);
}
.chat__launcher svg { width: 20px; height: 20px; }
.chat__launcher.is-hidden { opacity: 0; pointer-events: none; transform: scale(.9); }

.chat[hidden] { display: none; }
.chat {
  position: fixed;
  bottom: 24px; right: 24px;
  z-index: 160;
  width: min(400px, calc(100vw - 32px));
  height: min(620px, calc(100vh - 48px));
  background: var(--paper);
  border: 1px solid var(--ink);
  display: flex; flex-direction: column;
  box-shadow: 0 40px 80px -20px rgba(0,0,0,.5);
  animation: chatUp .3s var(--ease);
  overflow: hidden;
}
@keyframes chatUp {
  from { opacity: 0; transform: translateY(20px); }
}
.chat::before {
  content: "";
  position: absolute;
  top: -7px; left: -7px;
  width: 14px; height: 14px;
  background: var(--accent);
  border: 1px solid var(--ink);
  border-radius: 50%;
  z-index: 2;
}

.chat__head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 18px;
  background: var(--ink);
  color: var(--paper);
  flex-shrink: 0;
}
.chat__head-left {
  display: flex; align-items: center; gap: 12px;
}
.chat__head strong {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 15px;
  display: block;
  line-height: 1.1;
}
.chat__head small {
  display: block;
  font-size: 10.5px;
  color: var(--muted-dk);
  margin-top: 2px;
  font-family: var(--mono);
  letter-spacing: .05em;
}
.chat__close {
  width: 30px; height: 30px;
  color: var(--paper);
  font-size: 22px;
  border-radius: 50%;
  transition: background .2s var(--ease);
}
.chat__close:hover { background: rgba(245,241,232,.1); }

.chat__body {
  flex: 1;
  overflow-y: auto;
  padding: 18px;
  display: flex; flex-direction: column; gap: 14px;
  background: var(--paper);
}
.chat__body::-webkit-scrollbar { width: 6px; }
.chat__body::-webkit-scrollbar-thumb { background: var(--rule); }

.chat__msg { display: flex; }
.chat__msg--user { justify-content: flex-end; }
.chat__bubble {
  max-width: 80%;
  padding: 10px 14px;
  font-size: 14px;
  line-height: 1.45;
  border-radius: 10px;
}
.chat__msg--bot .chat__bubble {
  background: var(--paper-2);
  color: var(--ink);
  border-bottom-left-radius: 2px;
  border: 1px solid var(--rule);
}
.chat__msg--user .chat__bubble {
  background: var(--ink);
  color: var(--paper);
  border-bottom-right-radius: 2px;
}
.chat__typing {
  display: inline-flex; gap: 4px;
  padding: 12px 14px;
  background: var(--paper-2);
  border: 1px solid var(--rule);
  border-radius: 10px;
  border-bottom-left-radius: 2px;
}
.chat__typing span {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--muted);
  animation: typing 1.1s infinite ease-in-out;
}
.chat__typing span:nth-child(2) { animation-delay: .15s; }
.chat__typing span:nth-child(3) { animation-delay: .3s; }
@keyframes typing {
  0%,80%,100% { transform: scale(.5); opacity: .4; }
  40% { transform: scale(1); opacity: 1; }
}

.chat__suggest {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-top: 4px;
}
.chat__suggest button {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .05em;
  padding: 8px 12px;
  border: 1px solid var(--rule);
  background: var(--paper);
  color: var(--ink);
  border-radius: 100px;
  transition: all .2s var(--ease);
  cursor: pointer;
}
.chat__suggest button:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(232,106,26,.04);
}

.chat__form {
  display: flex;
  padding: 12px;
  border-top: 1px solid var(--rule);
  background: var(--paper);
  gap: 8px;
  flex-shrink: 0;
}
.chat__form input {
  flex: 1;
  padding: 11px 14px;
  border: 1px solid var(--rule);
  border-radius: 100px;
  font-size: 14px;
  background: var(--paper-2);
  color: var(--ink);
  font-family: var(--sans);
}
.chat__form input:focus { outline: none; border-color: var(--accent); background: var(--paper); }
.chat__form button {
  width: 40px; height: 40px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 50%;
  display: grid; place-items: center;
  transition: background .2s var(--ease);
  flex-shrink: 0;
}
.chat__form button:hover { background: var(--accent); }
.chat__form button svg { width: 16px; height: 16px; }

.chat__settings {
  border-top: 1px solid var(--rule);
  background: var(--paper-2);
  font-size: 12.5px;
  padding: 0 16px;
  flex-shrink: 0;
}
.chat__settings summary {
  padding: 12px 0;
  cursor: pointer;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  list-style: none;
}
.chat__settings summary::-webkit-details-marker { display: none; }
.chat__settings summary::before {
  content: "+";
  color: var(--accent);
  margin-right: 8px;
  font-weight: 500;
}
.chat__settings[open] summary::before { content: "−"; }
.chat__settings p {
  font-size: 12px;
  color: var(--muted);
  margin: 4px 0 12px;
  line-height: 1.5;
}
.chat__settings label {
  display: block;
  margin-bottom: 10px;
}
.chat__settings label span {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}
.chat__settings input,
.chat__settings select {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--rule);
  border-radius: 2px;
  font-size: 13px;
  font-family: var(--mono);
  background: var(--paper);
  color: var(--ink);
}
.chat__settings button { margin-bottom: 14px; }

@media (max-width: 500px) {
  .chat {
    bottom: 0; right: 0; left: 0;
    width: 100%; height: 100vh; max-height: 100vh;
    border-radius: 0;
  }
  .chat__launcher { bottom: 16px; right: 16px; padding: 12px 16px; }
  .chat__launcher span { display: none; }
}

/* reveal on scroll helper
   Progressive enhancement: only hide when JS is available. This way the
   site degrades gracefully for no-JS, print, and full-page screenshots. */
.js .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.js .reveal.is-in {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}
