/* TYGO LABS — site styles
   Palette from the logo: tiger orange, cream, ink black. */
/* ---------- Fonts (self-hosted latin subsets, SIL Open Font License) ---------- */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 600; font-display: swap; src: url(../fonts/inter-latin.woff2) format("woff2"); }
@font-face { font-family: "Inter Tight"; font-style: normal; font-weight: 500 800; font-display: swap; src: url(../fonts/inter-tight-latin.woff2) format("woff2"); }
@font-face { font-family: "Instrument Serif"; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/instrument-serif-latin.woff2) format("woff2"); }
/* Metric-matched fallbacks: the system font is scaled to the web font's width and line metrics,
   so swapping to the web font does not reflow the text (no layout shift). Ratios measured in Chrome. */
@font-face { font-family: "Inter Fallback"; src: local("Arial"), local("ArialMT"); size-adjust: 106.98%; ascent-override: 90.7%; descent-override: 22.4%; line-gap-override: 0%; }
@font-face { font-family: "Inter Tight Fallback"; font-weight: 100 549; src: local("Arial"), local("ArialMT"); size-adjust: 95.57%; ascent-override: 101.5%; descent-override: 25.1%; line-gap-override: 0%; }
@font-face { font-family: "Inter Tight Fallback"; font-weight: 550 900; src: local("Arial Bold"), local("Arial-BoldMT"); size-adjust: 95.57%; ascent-override: 101.5%; descent-override: 25.1%; line-gap-override: 0%; }
@font-face { font-family: "Instrument Serif Fallback"; src: local("Georgia"); size-adjust: 76.02%; ascent-override: 130.2%; descent-override: 40.8%; line-gap-override: 0%; }

:root {
  --ink: #0c0c0d;
  --ink-2: #16161a;
  --ink-3: #222228;
  --cream: #f4f0e8;
  --cream-2: #ebe5d9;
  --paper: #fbf9f5;
  --orange: #f1650e;
  --orange-2: #ff8a3d;
  --orange-soft: #fde3d1;
  /* Accessible variants of the brand orange (WCAG AA 4.5:1): button fill under white text, and small orange text on light backgrounds. */
  --orange-btn: #c2510a;
  --orange-btn-hover: #a84506;
  --orange-text: #a84506;
  --text: #1a1a1d;
  --text-2: #55555c;
  --text-on-dark: #f4f0e8;
  --muted-on-dark: #a3a09a;
  --line: #e4ddd0;
  --line-dark: rgba(255,255,255,.1);
  --sage: #dfe8dc;
  --lilac: #e6e1f3;
  --sky: #dbe7f0;
  --radius: 22px;
  --max: 1200px;
  --body: "Inter", "Inter Fallback", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --display: "Inter Tight", "Inter Tight Fallback", "Inter", sans-serif;
  --serif: "Instrument Serif", "Instrument Serif Fallback", Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  margin: 0;
  font-family: var(--body);
  color: var(--text);
  background: var(--paper);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--orange); color: #fff; }

h1, h2, h3, h4 { font-family: var(--display); line-height: 1.04; margin: 0 0 .5em; letter-spacing: -0.025em; font-weight: 700; }
h1 { font-size: clamp(2.8rem, 7.4vw, 6.2rem); }
h2 { font-size: clamp(2.1rem, 4.6vw, 3.8rem); }
h3 { font-size: 1.45rem; letter-spacing: -0.02em; line-height: 1.15; }
p { margin: 0 0 1em; color: var(--text-2); }
em.serif, .serif {
  font-family: var(--serif); font-style: normal; font-weight: 400;
  letter-spacing: -0.01em;
}
.accent { color: var(--orange); }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 28px; }
.section { padding: 130px 0; position: relative; overflow-x: clip; }
.section.tight { padding: 90px 0; }
.dark { background: var(--ink); color: var(--text-on-dark); }
.dark p { color: var(--muted-on-dark); }
.cream { background: var(--cream); }
.center { text-align: center; }
.section-head { max-width: 780px; margin-bottom: 64px; }
.section-head.center { margin-left: auto; margin-right: auto; }
.lead { font-size: 1.22rem; line-height: 1.6; }

.badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px; border-radius: 999px;
  font-size: .82rem; font-weight: 600; letter-spacing: .01em;
  background: #fff; border: 1px solid var(--line); color: var(--text);
  margin-bottom: 24px;
}
/* A badge can double as a short section heading; undo the global heading type styles. */
h2.badge { font-family: var(--body); line-height: inherit; }
.badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 4px rgba(241,101,14,.18); }
.dark .badge { background: rgba(255,255,255,.06); border-color: var(--line-dark); color: var(--text-on-dark); }

/* ---------- Header: floating pill ---------- */
.site-header { position: fixed; top: 16px; left: 0; right: 0; z-index: 100; padding: 0 16px; }
.nav-pill {
  max-width: 1120px; margin: 0 auto; height: 64px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 10px 0 12px; border-radius: 999px;
  background: rgba(14,14,16,.72);
  backdrop-filter: saturate(160%) blur(16px); -webkit-backdrop-filter: saturate(160%) blur(16px);
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 10px 40px -12px rgba(0,0,0,.45);
  transition: background .3s;
}
.site-header.scrolled .nav-pill { background: rgba(14,14,16,.88); }
.brand { display: flex; align-items: center; gap: 11px; color: var(--text-on-dark); }
.brand img { width: 42px; height: 42px; border-radius: 50%; }
.brand img.brand-wordmark { width: auto; height: 34px; border-radius: 0; }
.site-footer .brand img.brand-wordmark { height: 40px; }
.nav-links { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  display: block; padding: 9px 16px; border-radius: 999px;
  color: #cfcbc3; font-weight: 500; font-size: .94rem; transition: .2s;
}
.nav-links a:hover { color: #fff; background: rgba(255,255,255,.07); }
.nav-links a.active { color: #fff; }
.nav-links a.btn { margin-left: 8px; color: #fff; }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: #fff; margin: 5px 0; transition: .25s; border-radius: 2px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 26px; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--orange-btn); color: #fff; font: 600 .98rem/1 var(--body);
  transition: transform .2s, box-shadow .2s, background .2s;
  box-shadow: 0 8px 24px -8px rgba(241,101,14,.6);
}
.btn:hover { background: var(--orange-btn-hover); transform: translateY(-2px); box-shadow: 0 14px 30px -10px rgba(241,101,14,.7); }
.btn svg { width: 16px; height: 16px; transition: transform .2s; }
.btn:hover svg { transform: translateX(3px); }
.btn.ghost { background: transparent; color: inherit; box-shadow: inset 0 0 0 1px currentColor; }
.btn.ghost:hover { background: rgba(127,127,127,.1); transform: translateY(-2px); box-shadow: inset 0 0 0 1px currentColor; }
.btn.light { background: var(--cream); color: var(--ink); box-shadow: none; }
.btn.light:hover { background: #fff; }
.btn.sm { padding: 10px 18px; font-size: .9rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }
.btn-row.center { justify-content: center; }

/* ---------- Glows & textures ---------- */
.glow { position: absolute; border-radius: 50%; filter: blur(80px); pointer-events: none; z-index: 0; }
.glow.orange { background: radial-gradient(circle, rgba(241,101,14,.55), rgba(241,101,14,0) 70%); }
.glow.cream { background: radial-gradient(circle, rgba(244,240,232,.18), rgba(244,240,232,0) 70%); }
.grain::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5; z-index: 0;
  background-image: radial-gradient(rgba(255,255,255,.07) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: radial-gradient(ellipse at center, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 20%, transparent 75%);
}
.relative { position: relative; z-index: 1; }

/* ---------- Home hero ---------- */
.hero { padding: 190px 0 120px; overflow: hidden; position: relative; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 40px; align-items: center; }
.hero h1 { margin-bottom: .35em; font-size: clamp(2.8rem, 6.2vw, 5.4rem); }
.hero h1 .serif { color: var(--orange-2); }
.hero .lead { max-width: 560px; color: var(--muted-on-dark); }
.hero-visual { position: relative; aspect-ratio: 1; max-width: 500px; margin-left: auto; width: 100%; }
.hero-visual .ring {
  position: absolute; inset: 0; border-radius: 50%;
  border: 1px dashed rgba(244,240,232,.18);
  animation: spin 60s linear infinite;
}
.hero-visual .ring.r2 { inset: 9%; border-style: solid; border-color: rgba(241,101,14,.25); animation-duration: 90s; animation-direction: reverse; }
.hero-visual .emblem {
  position: absolute; top: 27%; left: 22%; width: 56%; height: 56%; border-radius: 50%;
  box-shadow: 0 0 0 10px rgba(255,255,255,.03), 0 40px 120px -20px rgba(241,101,14,.55);
  animation: float 7s ease-in-out infinite;
}
/* Particle tigers (assets/js/tigers.js) replace the static emblem once they are drawn */
.hero-tigers { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.hero.tigers-on .hero-visual .emblem { visibility: hidden; top: 22%; left: 11%; width: 78%; height: 78%; }
.hero-visual .wordmark-img { position: absolute; top: 10%; left: 24%; width: 52%; height: auto; }
.chip {
  position: absolute; display: flex; align-items: center; gap: 10px;
  padding: 10px 14px 10px 10px; border-radius: 14px;
  background: rgba(28,28,32,.82); border: 1px solid rgba(255,255,255,.1);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  color: var(--text-on-dark); font-size: .84rem; font-weight: 500; white-space: nowrap;
  box-shadow: 0 18px 40px -16px rgba(0,0,0,.6);
  animation: float 6s ease-in-out infinite;
}
.chip i {
  width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center;
  background: rgba(241,101,14,.16); color: var(--orange-2); font-style: normal;
}
.chip i svg { width: 16px; height: 16px; }
.chip small { display: block; color: var(--muted-on-dark); font-size: .72rem; font-weight: 400; }
.chip.c1 { top: 24%; left: -14%; animation-delay: -1s; }
.chip.c2 { top: 56%; right: -10%; animation-delay: -3s; }
.chip.c3 { bottom: 2%; left: -10%; animation-delay: -4.5s; }
/* Mid-size desktops: keep the right chip inside the viewport instead of clipping it. */
@media (min-width: 961px) and (max-width: 1279px) { .chip.c2 { right: 0; } }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding: 200px 0 120px; overflow: hidden; position: relative; }
.page-hero h1 { font-size: clamp(2.6rem, 6.4vw, 5.4rem); max-width: 1000px; }
.page-hero h1 .serif { color: var(--orange-2); }
.page-hero .lead { max-width: 680px; color: var(--muted-on-dark); }
.page-hero.center h1, .page-hero.center .lead { margin-left: auto; margin-right: auto; }

/* ---------- Product lines (products page) ---------- */
.products-hero { padding-bottom: 90px; }
.product-lines { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.product-line { display: flex; flex-direction: column; padding: 38px 32px 32px; border-radius: 28px; background: var(--cream); }
.product-line h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); margin-bottom: 10px; }
.product-line > p { margin: 0 0 28px; color: var(--text-2); }
.line-item { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 22px; border-radius: 18px; background: #fff; transition: transform .2s, box-shadow .2s; }
a.line-item:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -18px rgba(12,12,13,.35); }
.line-item b { display: block; font-family: var(--display); font-size: 1.2rem; letter-spacing: -.015em; }
.line-item small { display: block; margin-top: 2px; color: var(--text-2); font-size: .9rem; }
.line-item svg { flex: none; width: 20px; height: 20px; color: var(--orange); }
.line-item.empty { background: transparent; box-shadow: inset 0 0 0 1px var(--line); color: var(--text-2); font-size: .95rem; }
.product-feature h2 { font-size: clamp(2.6rem, 6.4vw, 5.4rem); }
.product-feature h2 .serif { color: var(--orange-2); }
.product-feature .lead { color: var(--muted-on-dark); }

.not-found { min-height: 72vh; display: flex; align-items: center; }
.not-found .container { width: 100%; }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; border-top: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); background: var(--ink); padding: 26px 0; }
.marquee-track { display: flex; gap: 56px; width: max-content; animation: marquee 38s linear infinite; }
.marquee span {
  display: inline-flex; align-items: center; gap: 56px;
  font-family: var(--display); font-size: 1.6rem; font-weight: 600; color: #8f8b84; letter-spacing: -.02em; white-space: nowrap;
}
.marquee span::after { content: "✦"; color: var(--orange); font-size: 1rem; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Big statement ---------- */
.statement h2:not(.badge), .statement .statement-title { font-size: clamp(2rem, 4.4vw, 3.6rem); max-width: 1000px; margin: 0 auto; line-height: 1.12; }
/* A large pull-quote styled like a heading but marked up as a paragraph (it is a statement, not a section title). */
.statement .statement-title { font-family: var(--display); font-weight: 700; letter-spacing: -0.025em; color: inherit; }
.statement h2 .dim, .statement .statement-title .dim { color: #b9b2a5; }

/* ---------- Outcome cards ---------- */
.outcomes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.outcome {
  position: relative; overflow: hidden;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 30px 30px; min-height: 260px; display: flex; flex-direction: column; justify-content: space-between;
  transition: transform .3s, box-shadow .3s;
}
.outcome:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -30px rgba(12,12,13,.3); }
.outcome .big {
  font-family: var(--display); font-weight: 800; font-size: 4.2rem; line-height: 1; letter-spacing: -.05em;
  color: var(--orange); margin-bottom: 40px;
}
.outcome .big .serif { font-weight: 400; }
.outcome h3 { margin-bottom: 8px; }
.outcome p { margin: 0; }

/* ---------- Stacked service cards ---------- */
.stack { display: grid; gap: 28px; }
.stack-card {
  position: sticky; top: 110px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center;
  padding: 52px; border-radius: 32px; min-height: 440px;
  box-shadow: 0 -20px 50px -30px rgba(12,12,13,.25);
}
.stack-card:nth-child(2) { top: 130px; }
.stack-card:nth-child(3) { top: 150px; }
.stack-card:nth-child(4) { top: 170px; }
.stack-card:nth-child(5) { top: 190px; }
.stack-card.t-orange { background: var(--orange-soft); }
.stack-card.t-sage { background: var(--sage); }
.stack-card.t-lilac { background: var(--lilac); }
.stack-card.t-sky { background: var(--sky); }
.stack-card.t-cream { background: var(--cream-2); }
.stack-card .num { font-family: var(--display); font-weight: 700; font-size: .9rem; color: var(--orange-text); letter-spacing: .1em; }
.stack-card h3 { font-size: clamp(1.8rem, 3vw, 2.6rem); margin: 14px 0 18px; letter-spacing: -.035em; }
.stack-card p { color: #45454b; font-size: 1.05rem; }
.stack-card .more { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; margin-top: 8px; }
.stack-card .more svg { width: 16px; height: 16px; transition: transform .2s; }
.stack-card .more:hover svg { transform: translateX(4px); }

/* ---------- Mock visuals (shared) ---------- */
.viz {
  position: relative; background: var(--ink); border-radius: 22px; padding: 26px;
  color: var(--text-on-dark); box-shadow: 0 40px 80px -40px rgba(12,12,13,.6);
  min-height: 300px; overflow: hidden; font-size: .88rem;
}
.viz::before {
  content: ""; position: absolute; width: 260px; height: 260px; right: -80px; top: -80px; border-radius: 50%;
  background: radial-gradient(circle, rgba(241,101,14,.35), transparent 70%); filter: blur(30px);
}
.viz > * { position: relative; }
.viz-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; color: var(--muted-on-dark); font-size: .78rem; }
.viz-top .dots { display: flex; gap: 6px; }
.viz-top .dots i { width: 9px; height: 9px; border-radius: 50%; background: #3a3a40; }
.tag-live { display: inline-flex; align-items: center; gap: 6px; color: #7be0a4; }
.tag-live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #3fd07f; animation: pulse 1.6s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .3; } }

/* flow */
.flow { display: grid; gap: 12px; }
.flow-step {
  display: flex; align-items: center; gap: 12px; padding: 13px 14px;
  background: var(--ink-3); border: 1px solid var(--line-dark); border-radius: 14px;
}
.flow-step i { width: 32px; height: 32px; border-radius: 10px; background: rgba(241,101,14,.16); color: var(--orange-2); display: grid; place-items: center; flex-shrink: 0; }
.flow-step i svg { width: 16px; height: 16px; }
.flow-step b { font-weight: 600; display: block; }
.flow-step small { color: var(--muted-on-dark); font-size: .76rem; }
.flow-step .ok { margin-left: auto; color: #7be0a4; font-size: .78rem; font-weight: 600; }
.flow-line { height: 18px; margin-left: 29px; border-left: 2px dashed rgba(241,101,14,.5); position: relative; }
.flow-line::after {
  content: ""; position: absolute; left: -5px; top: 0; width: 8px; height: 8px; border-radius: 50%;
  background: var(--orange); animation: drip 1.8s ease-in infinite;
}
@keyframes drip { from { top: -4px; opacity: 1; } to { top: 16px; opacity: 0; } }
.flow > .flow-line + .flow-step { margin-top: -12px; }
.flow > .flow-step + .flow-line { margin-top: -12px; }

/* document extraction */
.docx { display: grid; grid-template-columns: .9fr 1.1fr; gap: 16px; align-items: center; }
.paper {
  background: #f6f2ea; border-radius: 10px; padding: 16px 14px; color: #222; position: relative;
  transform: rotate(-3deg); box-shadow: 0 20px 40px -20px rgba(0,0,0,.7);
}
.paper .ttl { font-weight: 700; font-size: .78rem; letter-spacing: .08em; margin-bottom: 10px; }
.paper .ln { height: 6px; border-radius: 3px; background: #d9d2c4; margin-bottom: 7px; }
.paper .ln.hl { background: rgba(241,101,14,.55); }
.paper .ln.w60 { width: 60%; } .paper .ln.w80 { width: 80%; } .paper .ln.w40 { width: 40%; }
.paper .scan {
  position: absolute; left: 0; right: 0; height: 2px; background: var(--orange);
  box-shadow: 0 0 14px 3px rgba(241,101,14,.7); animation: scan 2.6s ease-in-out infinite;
}
@keyframes scan { 0%,100% { top: 10%; } 50% { top: 88%; } }
.fields { display: grid; gap: 8px; }
.field-row {
  display: flex; justify-content: space-between; gap: 10px; align-items: center;
  padding: 10px 12px; border-radius: 10px; background: var(--ink-3); border: 1px solid var(--line-dark);
}
.field-row span { color: var(--muted-on-dark); font-size: .74rem; }
.field-row b { font-weight: 600; font-size: .82rem; }
.field-row b::after { content: " ✓"; color: #7be0a4; }

/* board */
.board { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.col h5 { margin: 0 0 10px; font: 600 .74rem var(--body); color: var(--muted-on-dark); letter-spacing: .06em; text-transform: uppercase; }
.task { background: var(--ink-3); border: 1px solid var(--line-dark); border-radius: 10px; padding: 10px; margin-bottom: 8px; }
.task .ln { height: 6px; border-radius: 3px; background: #3c3c44; margin-bottom: 6px; }
.task .ln.s { width: 60%; margin: 0; }
.task .who { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; }
.task .av { width: 18px; height: 18px; border-radius: 50%; background: var(--orange); opacity: .85; }
.task .av.b { background: #9aa6ff; } .task .av.c { background: #7be0a4; }
.task .pill { font-size: .62rem; padding: 2px 7px; border-radius: 999px; background: rgba(241,101,14,.18); color: var(--orange-2); }
.task.done { opacity: .55; }

/* chart */
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 16px; }
.kpi { background: var(--ink-3); border: 1px solid var(--line-dark); border-radius: 12px; padding: 12px; }
.kpi span { color: var(--muted-on-dark); font-size: .7rem; display: block; }
.kpi b { font-family: var(--display); font-size: 1.15rem; }
.kpi b.up { color: #7be0a4; }
.bars { display: flex; align-items: flex-end; gap: 8px; height: 130px; padding: 0 4px; border-bottom: 1px solid var(--line-dark); }
.bars i { flex: 1; border-radius: 6px 6px 0 0; background: linear-gradient(to top, rgba(241,101,14,.35), var(--orange)); transform-origin: bottom; animation: grow 1.4s cubic-bezier(.2,.8,.2,1) both; }
.bars i:nth-child(odd) { background: linear-gradient(to top, rgba(244,240,232,.08), rgba(244,240,232,.3)); }
@keyframes grow { from { transform: scaleY(0); } }

/* industries visual */
.ind-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ind { padding: 16px; border-radius: 14px; background: var(--ink-3); border: 1px solid var(--line-dark); }
.ind i { width: 34px; height: 34px; border-radius: 10px; background: rgba(241,101,14,.16); color: var(--orange-2); display: grid; place-items: center; margin-bottom: 12px; }
.ind i svg { width: 18px; height: 18px; }
.ind b { display: block; font-weight: 600; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: s; }
.step {
  padding: 30px 26px; border-radius: var(--radius);
  background: var(--ink-2); border: 1px solid var(--line-dark);
  transition: border-color .3s, transform .3s;
}
.step:hover { border-color: rgba(241,101,14,.5); transform: translateY(-4px); }
.step .n { font-family: var(--display); font-size: 3.4rem; font-weight: 800; line-height: 1; letter-spacing: -.05em;
  background: linear-gradient(180deg, var(--orange-2), rgba(241,101,14,.15)); -webkit-background-clip: text; background-clip: text; color: transparent;
  display: block; margin-bottom: 28px; }
.step h3 { color: var(--text-on-dark); font-size: 1.25rem; }
.step p { margin: 0; font-size: .96rem; }

/* ---------- Split / lists ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.split.center-y { align-items: center; }
.why-list { display: grid; gap: 14px; }
.why {
  display: flex; gap: 18px; padding: 24px; border-radius: 18px; background: #fff; border: 1px solid var(--line);
  transition: transform .3s;
}
.why:hover { transform: translateX(6px); }
.why i { width: 40px; height: 40px; border-radius: 12px; background: var(--orange-soft); color: var(--orange); display: grid; place-items: center; flex-shrink: 0; }
.why i svg { width: 20px; height: 20px; }
.why p { margin: 0; color: var(--text); font-weight: 500; padding-top: 8px; }

.tags { display: flex; flex-wrap: wrap; gap: 10px; }
.tag { padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-weight: 500; font-size: .95rem; transition: .2s; }
.tag:hover { border-color: var(--orange); color: var(--orange); }
.dark .tag { background: rgba(255,255,255,.04); border-color: var(--line-dark); color: var(--text-on-dark); }

/* ---------- About ---------- */
.promise {
  border-radius: 36px; padding: 90px 60px; overflow: hidden; text-align: center;
}
.promise h2 { max-width: 900px; margin: 0 auto 24px; }
.promise h2 .serif { color: var(--orange-2); }
.promise p { max-width: 620px; margin: 0 auto; font-size: 1.15rem; }
.mv { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.mv-card { border-radius: 28px; padding: 46px; min-height: 300px; display: flex; flex-direction: column; justify-content: space-between; }
.mv-card.o { background: var(--orange); color: #fff; }
.mv-card.o .badge { background: rgba(255,255,255,.18); border-color: transparent; color: #fff; }
.mv-card.d { background: var(--ink); color: var(--text-on-dark); }
.mv-card p { font-family: var(--display); font-size: clamp(1.4rem, 2.2vw, 1.9rem); line-height: 1.25; letter-spacing: -.02em; color: inherit; margin: 0; font-weight: 500; }
.values { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.value { padding: 38px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); position: relative; overflow: hidden; }
.value .n { position: absolute; right: 24px; top: 14px; font-family: var(--display); font-size: 5rem; font-weight: 800; color: var(--cream-2); line-height: 1; letter-spacing: -.05em; }
.value h3 { position: relative; max-width: 80%; }
.value p { position: relative; margin: 0; }
.team { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 340px)); justify-content: center; gap: 20px; }
.member { padding: 30px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.member img, .member .initials { width: 96px; height: 96px; border-radius: 50%; margin-bottom: 22px; }
.member img { object-fit: cover; }
.member .initials { display: grid; place-items: center; background: var(--orange-soft); color: var(--orange); font-family: var(--display); font-size: 1.8rem; font-weight: 700; }
.member h3 { margin-bottom: 4px; }
.member .role { color: var(--orange); font-weight: 600; margin: 0 0 14px; }
.member p { margin: 0; }
.member a { display: inline-block; margin-top: 14px; font-weight: 600; }
.principles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line-dark); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line-dark); }
.principle { background: var(--ink); padding: 38px 30px; }
.principle i { color: var(--orange); display: block; margin-bottom: 26px; }
.principle i svg { width: 28px; height: 28px; }
.principle h3 { color: var(--text-on-dark); font-size: 1.3rem; }
.principle p { margin: 0; font-size: .96rem; }

/* ---------- Solutions page ---------- */
.sol { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; padding: 70px 0; border-top: 1px solid var(--line); }
.sol:first-child { border-top: 0; padding-top: 0; }
.sol:nth-child(even) .sol-text { order: 2; }
.sol .num { font-family: var(--display); font-weight: 700; color: var(--orange-text); letter-spacing: .1em; font-size: .9rem; }
.sol h2 { font-size: clamp(2rem, 3.4vw, 2.9rem); margin: 14px 0 22px; }

/* ---------- Product ---------- */
.product-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.devices { position: relative; height: 520px; }
.portal {
  position: absolute; left: 0; top: 30px; width: 88%;
  background: #f7f4ee; color: var(--text); border-radius: 18px; overflow: hidden;
  box-shadow: 0 50px 100px -40px rgba(0,0,0,.8); border: 1px solid rgba(255,255,255,.15);
  font-size: .8rem;
}
.portal-bar { display: flex; align-items: center; gap: 6px; padding: 12px 14px; background: #ebe5d9; }
.portal-bar i { width: 9px; height: 9px; border-radius: 50%; background: #cfc6b5; }
.portal-bar span { margin-left: 12px; font-size: .72rem; color: #7a756c; background: #fff; padding: 3px 12px; border-radius: 6px; }
.portal-body { display: grid; grid-template-columns: 120px 1fr; min-height: 340px; }
.portal-side { background: var(--ink); padding: 16px 12px; display: grid; gap: 6px; align-content: start; }
.portal-side b { color: #fff; font-family: var(--display); font-size: .9rem; margin-bottom: 10px; }
.portal-side span { color: #9b978f; font-size: .72rem; padding: 6px 8px; border-radius: 6px; }
.portal-side span.on { background: rgba(241,101,14,.18); color: var(--orange-2); }
.portal-main { padding: 16px; display: grid; gap: 10px; align-content: start; }
.portal-main h6 { margin: 0 0 4px; font: 700 .9rem var(--display); }
.p-row { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 10px; background: #fff; border: 1px solid #ebe5d9; }
.p-row .av { width: 28px; height: 28px; border-radius: 50%; background: linear-gradient(135deg, #f7c7a3, #f1650e); flex-shrink: 0; }
.p-row .av.b { background: linear-gradient(135deg, #cfd9f6, #7b8fd8); }
.p-row .av.c { background: linear-gradient(135deg, #d6ecd9, #59b07a); }
.p-row .ln { flex: 1; }
.p-row .ln i { display: block; height: 6px; border-radius: 3px; background: #e2dccf; width: 70%; margin-bottom: 5px; }
.p-row .ln i + i { width: 45%; margin: 0; background: #efe9de; }
.p-pill { font-size: .64rem; font-weight: 700; padding: 3px 8px; border-radius: 999px; background: #dff3e6; color: #1f7a45; white-space: nowrap; }
.p-pill.o { background: var(--orange-soft); color: #b44a07; }
.p-pill.b { background: #e3e8fb; color: #3c4fa8; }
.phone {
  position: absolute; right: 0; bottom: 0; width: 220px; height: 440px;
  background: var(--ink); border-radius: 36px; padding: 10px;
  box-shadow: 0 50px 100px -30px rgba(0,0,0,.9), inset 0 0 0 2px #2c2c33;
  animation: float 7s ease-in-out infinite;
}
.phone-screen { background: #f7f4ee; border-radius: 28px; height: 100%; overflow: hidden; padding: 30px 14px 14px; color: var(--text); font-size: .74rem; }
.phone-screen .hi { font: 700 1rem var(--display); margin-bottom: 2px; }
.phone-screen .sub { color: #7a756c; font-size: .68rem; margin-bottom: 14px; }
.msg { padding: 9px 11px; border-radius: 14px; margin-bottom: 8px; max-width: 88%; line-height: 1.35; }
.msg.in { background: #fff; border: 1px solid #ebe5d9; }
.msg.out { background: var(--orange); color: #fff; margin-left: auto; }
.msg small { display: block; font-size: .6rem; opacity: .7; margin-bottom: 2px; font-weight: 600; }
.update { margin-top: 10px; padding: 10px; border-radius: 12px; background: var(--ink); color: #fff; display: flex; gap: 8px; align-items: center; }
.update i { width: 24px; height: 24px; border-radius: 8px; background: rgba(241,101,14,.25); display: grid; place-items: center; color: var(--orange-2); font-style: normal; flex-shrink: 0; }
.parties { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.party { padding: 38px 32px; border-radius: 28px; min-height: 280px; display: flex; flex-direction: column; justify-content: space-between; }
.party.a { background: var(--orange-soft); } .party.b { background: var(--sage); } .party.c { background: var(--lilac); }
.party i { width: 52px; height: 52px; border-radius: 16px; background: #fff; display: grid; place-items: center; color: var(--orange); }
.party i svg { width: 24px; height: 24px; }
.party h3 { margin: 30px 0 8px; }
.party p { margin: 0; color: #45454b; }
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.feature {
  padding: 28px 24px; border-radius: 20px; background: var(--ink-2); border: 1px solid var(--line-dark);
  transition: border-color .3s, transform .3s;
}
.feature:hover { border-color: rgba(241,101,14,.5); transform: translateY(-4px); }
.feature i { width: 42px; height: 42px; border-radius: 12px; background: rgba(241,101,14,.14); color: var(--orange-2); display: grid; place-items: center; margin-bottom: 40px; }
.feature i svg { width: 20px; height: 20px; }
.feature p { margin: 0; color: var(--text-on-dark); font-weight: 500; line-height: 1.45; }

/* ---------- CTA ---------- */
.cta {
  position: relative; overflow: hidden; border-radius: 40px; padding: 100px 40px; text-align: center;
  background: var(--ink); color: var(--text-on-dark);
}
.cta img { width: clamp(150px, 22vw, 220px); height: auto; border-radius: 50%; margin: 0 auto 30px; box-shadow: 0 20px 60px -10px rgba(241,101,14,.6); }
.cta img.cta-wordmark { width: 260px; max-width: 70%; height: auto; border-radius: 0; margin: 0 auto 22px; box-shadow: none; }
.cta h2 { max-width: 820px; margin: 0 auto 18px; }
.cta h2 .serif { color: var(--orange-2); }
.cta p { max-width: 560px; margin: 0 auto; color: var(--muted-on-dark); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 60px; align-items: start; }
.info { display: grid; gap: 14px; }
.info-item { display: flex; gap: 16px; align-items: center; padding: 20px; border-radius: 18px; background: #fff; border: 1px solid var(--line); transition: border-color .2s; }
a.info-item:hover { border-color: var(--orange); }
.info-item i { width: 46px; height: 46px; border-radius: 14px; background: var(--orange-soft); color: var(--orange); display: grid; place-items: center; flex-shrink: 0; }
.info-item i svg { width: 20px; height: 20px; }
.info-item span { display: block; font-size: .8rem; color: var(--text-2); }
.info-item b { font-weight: 600; }
.form-card { background: var(--ink); color: var(--text-on-dark); border-radius: 30px; padding: 44px; position: relative; overflow: hidden; }
.form-card h2 { font-size: 2rem; margin-bottom: 26px; }
form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 500; font-size: .86rem; margin-bottom: 8px; color: #cfcbc3; }
.field input, .field select, .field textarea {
  width: 100%; padding: 14px 16px; border: 1px solid rgba(255,255,255,.12); border-radius: 14px;
  font: inherit; font-size: .98rem; color: var(--text-on-dark); background: rgba(255,255,255,.04); transition: .2s;
}
.field select option { color: var(--text); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--orange); background: rgba(255,255,255,.07); box-shadow: 0 0 0 4px rgba(241,101,14,.18); }
.field textarea { min-height: 140px; resize: vertical; }
.form-card .btn { width: 100%; margin-top: 6px; }
.form-success, .form-error { display: none; padding: 14px 16px; border-radius: 12px; margin-top: 16px; font-weight: 500; font-size: .95rem; }
.form-success { background: rgba(63,208,127,.14); color: #8ae6b0; }
.form-error { background: rgba(255,90,90,.14); color: #ffaaaa; }
.form-error a { text-decoration: underline; }
.form-success.show, .form-error.show { display: block; }
.btn:disabled { opacity: .6; cursor: wait; transform: none; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--muted-on-dark); padding: 90px 0 36px; overflow: hidden; position: relative; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; position: relative; z-index: 1; }
.site-footer .brand { margin-bottom: 18px; }
.site-footer p { color: var(--muted-on-dark); max-width: 320px; font-size: .95rem; }
.site-footer h2 { color: var(--text-on-dark); font-family: var(--body); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 18px; font-weight: 600; line-height: 1.04; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 11px; font-size: .95rem; }
.site-footer a:hover { color: var(--orange-2); }
.footer-social { display: flex; gap: 10px; margin-top: 22px; }
.footer-social a { width: 38px; height: 38px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line-dark); color: var(--text-on-dark); transition: color .2s, border-color .2s, background .2s; }
.footer-social a:hover { color: var(--orange-2); border-color: var(--orange); background: rgba(241,101,14,.12); }
.footer-social svg { width: 16px; height: 16px; fill: currentColor; }
.wordmark {
  font-family: var(--display); font-weight: 800; letter-spacing: -.06em; line-height: .8;
  font-size: clamp(4rem, 17vw, 15rem); text-align: center; margin: 70px 0 30px; white-space: nowrap;
  background: linear-gradient(180deg, rgba(244,240,232,.16), rgba(244,240,232,0)); -webkit-background-clip: text; background-clip: text; color: transparent;
  user-select: none;
}
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; border-top: 1px solid var(--line-dark); padding-top: 26px; font-size: .85rem; }

/* Text for screen readers and search engines only */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .1s; } .reveal.d2 { transition-delay: .2s; } .reveal.d3 { transition-delay: .3s; }
/* Above-the-fold content is visible from the first paint (good for LCP); it only slides up, never fades in. */
.hero .reveal, .page-hero .reveal { opacity: 1; transform: none; transition: none; animation: hero-rise .9s cubic-bezier(.2,.7,.2,1) both; }
.hero .reveal.d1, .page-hero .reveal.d1 { animation-delay: .05s; }
.hero .reveal.d2, .page-hero .reveal.d2 { animation-delay: .12s; }
.hero .reveal.d3, .page-hero .reveal.d3 { animation-delay: .2s; }
@keyframes hero-rise { from { transform: translateY(16px); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .steps, .features { grid-template-columns: repeat(2, 1fr); }
  .principles { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 960px) {
  .hero-grid, .product-hero, .split, .contact-grid, .sol { grid-template-columns: 1fr; gap: 50px; }
  .sol:nth-child(even) .sol-text { order: 0; }
  .hero-visual { margin: 0 auto; max-width: 420px; }
  .stack-card { grid-template-columns: 1fr; gap: 30px; padding: 38px; position: relative; top: 0 !important; }
  .outcomes, .parties, .product-lines { grid-template-columns: 1fr; }
  .outcome { min-height: 0; }
  .devices { max-width: 520px; margin: 0 auto; width: 100%; }
}
@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 74px; left: 16px; right: 16px;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: rgba(14,14,16,.96); border: 1px solid rgba(255,255,255,.08); border-radius: 24px;
    padding: 12px; display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 14px 16px; font-size: 1.05rem; }
  .nav-links a.btn { margin: 6px 0 0; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .mv, .values { grid-template-columns: 1fr; }
  .promise { padding: 64px 28px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .container { padding: 0 16px; }
  .section { padding: 90px 0; }
  .hero { padding: 140px 0 80px; }
  .page-hero { padding: 150px 0 80px; }
  .chip { font-size: .76rem; }
  .hero-visual { margin-top: 40px; }
  .chip.c1 { top: -9%; left: 0; } .chip.c2 { top: 60%; right: -2%; } .chip.c3 { bottom: -9%; left: 0; }
  .steps, .features, .principles { grid-template-columns: 1fr; }
  .stack-card { padding: 28px 22px; border-radius: 26px; }
  .viz { padding: 18px; }
  .docx { grid-template-columns: 1fr; }
  .paper { transform: none; }
  .board { grid-template-columns: 1fr 1fr; }
  .board .col:nth-child(3) { display: none; }
  .devices { height: 460px; }
  .portal { width: 100%; }
  .portal-body { grid-template-columns: 1fr; }
  .portal-side { display: none; }
  .phone { width: 180px; height: 360px; right: -4px; }
  .mv-card, .value { padding: 30px; }
  .form-card { padding: 28px 20px; border-radius: 24px; }
  form .row { grid-template-columns: 1fr; gap: 0; }
  .cta { padding: 70px 22px; border-radius: 28px; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* FAQ */
.faq-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 64px; align-items: start; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item:first-child { border-top: 1px solid var(--line); }
.faq-item summary { cursor: pointer; list-style: none; padding: 20px 36px 20px 0; position: relative; font-weight: 600; font-size: 1.08rem; color: var(--text); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 4px; top: 16px; font-size: 1.4rem; color: var(--orange-text); }
.faq-item[open] summary::after { content: "\2212"; }
.faq-item p { padding: 0 0 22px; color: var(--text-2); line-height: 1.6; }
.faq-item a { color: var(--orange-text); text-decoration: underline; }
@media (max-width: 960px) { .faq-grid { grid-template-columns: 1fr; gap: 32px; } }
.hero .lead a { text-decoration: underline; text-underline-offset: 3px; font-weight: 600; }

/* ---------- Custom builds & articles ---------- */
.models { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.model { display: flex; flex-direction: column; padding: 34px 30px; border-radius: 28px; background: var(--cream); }
.model.hl { background: var(--ink); color: var(--text-on-dark); }
.model.hl p, .model.hl li { color: var(--muted-on-dark); }
.model .kicker { font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--orange-text); margin-bottom: 14px; }
.model.hl .kicker { color: var(--orange-2); }
.model h3 { font-size: 1.5rem; margin-bottom: 10px; }
.model p { margin: 0 0 18px; color: var(--text-2); }
.model ul { margin: auto 0 0; padding: 0 0 0 18px; color: var(--text-2); line-height: 1.7; font-size: .96rem; }
.cases { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.case { padding: 36px 32px; border-radius: 28px; border: 1px solid var(--line); background: var(--paper); }
.case .kicker { font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--orange-text); }
.case h3 { font-size: 1.4rem; margin: 12px 0 14px; }
.case dl { margin: 0; display: grid; gap: 14px; }
.case dt { font-weight: 600; color: var(--text); }
.case dd { margin: 2px 0 0; color: var(--text-2); line-height: 1.6; }
.prose { max-width: 760px; margin: 0 auto; }
.prose h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 64px 0 18px; }
.prose h3 { font-size: 1.2rem; margin: 32px 0 10px; }
.prose p, .prose li { color: var(--text-2); line-height: 1.75; font-size: 1.06rem; }
.prose ul { padding-left: 20px; }
.prose a { color: var(--orange-text); text-decoration: underline; }
.prose .note { padding: 22px 26px; border-radius: 18px; background: var(--cream); margin: 28px 0; }
.compare-wrap { overflow-x: auto; margin: 28px 0; }
.compare { width: 100%; border-collapse: collapse; font-size: .97rem; min-width: 560px; }
.compare th, .compare td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--text-2); line-height: 1.5; }
.compare th { color: var(--text); font-weight: 600; background: var(--cream); }
.compare td:first-child { color: var(--text); font-weight: 600; }
@media (max-width: 960px) { .models, .cases { grid-template-columns: 1fr; } }
