/* Sifr Labs brand: forest green, cream, ink, one orange accent. Rings and the diamond come from the logo. */
:root {
  --green: #0e3b2e;
  --green-2: #164a3a;
  --cream: #f3efe7;
  --paper: #e9e5d7;
  --card: #faf8f1;
  --ink: #0a0a0a;
  --orange: #d9621f;
  --fg: var(--green);
  --muted: rgba(14, 58, 45, .72);
  --line: rgba(14, 58, 45, .16);
  --radius: 22px;
  --sans: "Archivo", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: var(--cream); color: var(--fg); font: 400 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
svg { display: block; }
button { font: inherit; color: inherit; cursor: pointer; }
p { margin: 0; }
h1, h2, h3 { margin: 0; }
h1, h2 { font-stretch: 125%; font-weight: 800; line-height: 1.02; letter-spacing: .005em; }
h3 { font-weight: 700; font-stretch: 112%; letter-spacing: -.01em; line-height: 1.15; }
.mono { font-family: var(--mono); font-size: 12px; }
.dim { opacity: .55; }
.r { width: 1em; height: 1em; display: inline-block; vertical-align: -.12em; }
::selection { background: var(--orange); color: var(--ink); }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 6px; }
.wrap { width: min(1220px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--orange); color: var(--ink); padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 52px; padding: 0 26px; border-radius: 999px; border: 1.5px solid var(--green); background: var(--green); color: #fff; font-weight: 650; font-size: 16px; white-space: nowrap; transition: transform .2s var(--ease), background .2s, color .2s, border-color .2s; }
.btn:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.green .btn:not(.btn-line), .plan.featured .btn { background: #fff; border-color: #fff; color: var(--green); }
.green .btn:not(.btn-line):hover, .plan.featured .btn:hover { background: var(--cream); border-color: var(--cream); }
.green .form .btn { background: var(--green); border-color: var(--green); color: #fff; }
.green .form .btn:hover { background: var(--ink); border-color: var(--ink); }
.btn:active { transform: scale(.97); }
.btn-sm { height: 42px; padding: 0 20px; font-size: 14px; }
.btn-line { background: transparent; border-color: currentColor; color: inherit; }
.btn-line:hover { background: var(--fg); border-color: var(--fg); color: var(--cream); }
.btn-block { width: 100%; }

/* Nav */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; border-bottom: 1px solid transparent; transition: background .3s, border-color .3s; }
.nav.scrolled { background: rgba(243, 240, 230, .86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-color: var(--line); }
.nav-inner { display: flex; align-items: center; gap: 24px; height: 74px; }
.brand { display: flex; align-items: flex-end; gap: 9px; color: var(--green); }
.wm { height: 40px; width: auto; }
.labs { font-stretch: 125%; font-weight: 500; text-transform: uppercase; letter-spacing: .2em; font-size: 12.5px; line-height: 1; padding-bottom: 3px; }
.links { display: flex; gap: 2px; margin-left: auto; }
.links a { padding: 8px 13px; border-radius: 999px; font-size: 14.5px; font-weight: 500; transition: background .2s; }
.links a:not(.btn):hover { background: rgba(14, 58, 45, .08); }
.mobile-only { display: none !important; }
.menu { display: none; width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--green); background: transparent; position: relative; margin-left: auto; }
.menu span { position: absolute; left: 12px; right: 12px; height: 1.5px; background: var(--green); transition: transform .3s var(--ease), top .3s var(--ease); }
.menu span:first-child { top: 17px; }
.menu span:last-child { top: 24px; }
.menu[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.menu[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

/* Hero */
.hero { padding: 132px 0 0; }
.hero-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 56px; align-items: end; }
.tag { display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 12.5px; text-transform: uppercase; letter-spacing: .12em; }
.hero h1 { margin-top: 26px; font-size: clamp(38px, 5.6vw, 82px); line-height: 1; }
.zero { white-space: nowrap; }
.o { display: inline-block; width: .8em; height: .8em; vertical-align: -.045em; margin-left: .02em; overflow: visible; }
.o-ring { fill: none; stroke: currentColor; stroke-width: 18; stroke-dasharray: 100; stroke-dashoffset: 100; transform: rotate(-90deg); transform-origin: 50px 50px; }
.o-dot { fill: var(--orange); transform: scale(0); transform-origin: 60px 39px; }
.in .o-ring { animation: draw 1.1s .35s var(--ease) forwards; }
.in .o-dot { animation: pop .5s 1.25s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pop { 60% { transform: scale(1.35); } 100% { transform: scale(1); } }
.lede { margin-top: 30px; max-width: 560px; font-size: clamp(17px, 1.6vw, 20px); color: var(--muted); }
.cta-row { margin-top: 34px; display: flex; gap: 12px; flex-wrap: wrap; }

/* Zero board */
.board { background: var(--green); color: var(--cream); border-radius: var(--radius); padding: 22px 24px 20px; }
.board header { display: flex; justify-content: space-between; align-items: baseline; font-weight: 600; padding-bottom: 14px; border-bottom: 1px solid rgba(243, 240, 230, .18); }
.board header .mono { opacity: .55; font-size: 11px; }
.board ul { list-style: none; margin: 0; padding: 6px 0; }
.board li { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px; padding: 9px 0; font-size: 15px; border-bottom: 1px dashed rgba(243, 240, 230, .14); transition: opacity .5s; }
.board li span:first-child { background: linear-gradient(currentColor, currentColor) left 55% / 0 1.5px no-repeat; transition: background-size .5s var(--ease); }
.board li .h { font-family: var(--mono); font-size: 13px; min-width: 34px; text-align: right; display: inline-flex; justify-content: flex-end; align-items: center; height: 20px; }
.board li .h svg { width: 18px; height: 18px; transform: scale(0); transition: transform .4s var(--ease); display: none; }
.board li.done { opacity: .55; }
.board li.done span:first-child { background-size: 100% 1.5px; }
.board li.done .h i { display: none; }
.board li.done .h svg { display: block; transform: scale(1); }
.board li.active { opacity: 1; }
.board li.active .h { color: var(--orange); }
.board li .h i { font-style: normal; }
.board footer { display: flex; justify-content: space-between; align-items: center; padding-top: 14px; font-weight: 600; }
.board footer b { font-stretch: 125%; font-weight: 900; font-size: 64px; line-height: 1; height: 64px; display: flex; align-items: center; font-variant-numeric: tabular-nums; }
.total-ring { width: 58px; height: 58px; display: none; }
.board.zeroed [data-board-total] { display: none; }
.board.zeroed .total-ring { display: block; animation: pop .5s var(--ease); }

/* Window + flow canvas */
.window { --fg: var(--green); --line: rgba(14, 58, 45, .16); color: var(--green); background: var(--card); border: 1.5px solid var(--green); border-radius: var(--radius); overflow: hidden; }
.hero .window { margin-top: 64px; }
.win-bar { display: flex; align-items: center; gap: 14px; height: 48px; padding: 0 18px; border-bottom: 1px solid var(--line); font-size: 13px; }
.win-path { font-family: var(--mono); font-size: 12.5px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.win-path i { font-style: normal; opacity: .5; }
.win-status { margin-left: auto; display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 12px; }
.pulse { width: 8px; height: 8px; background: var(--orange); transform: rotate(45deg); animation: blink 1.6s infinite; }
@keyframes blink { 50% { opacity: .25; } }
.win-btn { margin-left: auto; border: 1.5px solid var(--green); background: transparent; border-radius: 999px; padding: 4px 14px; font-size: 12.5px; font-weight: 600; transition: background .2s, color .2s; }
.win-btn:hover { background: var(--green); color: var(--cream); }
.win-foot { display: flex; justify-content: space-between; gap: 12px; padding: 12px 18px; border-top: 1px solid var(--line); }
.ok { color: var(--orange); font-weight: 500; }
.flow { position: relative; overflow-x: auto; overflow-y: hidden; background-image: radial-gradient(rgba(14, 58, 45, .16) 1px, transparent 1.2px); background-size: 24px 24px; scrollbar-width: none; }
.flow::-webkit-scrollbar { display: none; }
.stage { position: relative; transform-origin: 0 0; }
.stage svg.edges { position: absolute; inset: 0; overflow: visible; pointer-events: none; }
.edge { fill: none; stroke: rgba(14, 58, 45, .26); stroke-width: 2; transition: stroke .4s; }
.edge.sub { stroke-dasharray: 3 6; stroke-linecap: round; }
.edge.lit { stroke: var(--green); }
.edge-label { font: 500 11px var(--mono); fill: var(--green); paint-order: stroke; stroke: var(--card); stroke-width: 7px; stroke-linejoin: round; }
.packet { fill: var(--orange); }
.node { position: absolute; width: 170px; display: flex; flex-direction: column; align-items: center; text-align: center; transition: opacity .4s; }
.node-box { position: relative; width: 64px; height: 64px; border-radius: 50%; background: var(--card); border: 2px solid rgba(14, 58, 45, .32); display: grid; place-items: center; color: var(--green); transition: background .35s, color .35s, border-color .35s, transform .35s var(--ease); }
.node-box svg { width: 26px; height: 26px; }
.node-box::after { content: ""; position: absolute; top: 3px; right: 3px; width: 11px; height: 11px; background: var(--orange); transform: rotate(45deg) scale(0); transition: transform .4s var(--ease); }
.k-sub .node-box { width: 46px; height: 46px; }
.k-sub .node-box svg { width: 20px; height: 20px; }
.k-sub .node-box::after { width: 8px; height: 8px; top: 1px; right: 1px; }
.k-ai .node-box { width: 170px; height: 56px; margin-top: 4px; border-radius: 28px; display: flex; gap: 9px; justify-content: center; padding: 0 14px; font-size: 13.5px; font-weight: 650; line-height: 1.15; }
.k-ai .node-box svg { flex: none; width: 22px; height: 22px; }
.k-ai .node-box::after { top: -4px; right: 16px; }
.k-ai .ai-tag { position: absolute; top: -17px; left: 0; right: 0; font: 500 10px var(--mono); letter-spacing: .14em; opacity: .6; }
.node-label { margin-top: 10px; font-size: 13.5px; font-weight: 650; line-height: 1.2; }
.node-sub { margin-top: 2px; font: 400 11px/1.3 var(--mono); opacity: .6; }
.node.running .node-box { border-color: var(--orange); transform: scale(1.06); }
.node.running .node-box::before { content: ""; position: absolute; inset: -7px; border-radius: inherit; border: 2px solid transparent; border-top-color: var(--orange); border-right-color: var(--orange); animation: spin .9s linear infinite; }
.k-ai.running .node-box::before { animation: none; border-color: var(--orange); opacity: .5; animation: breathe 1s ease-in-out infinite; }
@keyframes breathe { 50% { inset: -11px; opacity: 0; } }
.node.done .node-box { background: var(--green); border-color: var(--green); color: var(--cream); }
.node.done .node-box::after { transform: rotate(45deg) scale(1); }
.node.skipped { opacity: .35; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Marquees */
.stack { padding: 44px 0; border-bottom: 1px solid var(--line); margin-top: 72px; border-top: 1px solid var(--line); }
.marquee { overflow: hidden; }
.marquee-track { display: flex; width: max-content; animation: marquee 60s linear infinite; }
.marquee-track.rev { animation-direction: reverse; }
.marquee:hover .marquee-track { animation-play-state: paused; }
[data-stack] span { display: inline-flex; align-items: center; gap: 28px; padding-right: 28px; font-stretch: 125%; font-weight: 900; text-transform: uppercase; letter-spacing: .32em; font-size: 15px; white-space: nowrap; }
[data-stack] svg { width: 14px; height: 14px; }
@keyframes marquee { to { transform: translateX(-50%); } }
.lib { padding: 110px 0; background: var(--paper); overflow: hidden; }
.lib .head { margin-bottom: 44px; }
.lib .marquee + .marquee { margin-top: 12px; }
.pills { animation-duration: 80s; }
.pills span { display: inline-flex; align-items: center; gap: 10px; margin-right: 12px; padding: 13px 22px; border: 1.5px solid var(--green); border-radius: 999px; font-weight: 600; font-size: 15.5px; white-space: nowrap; background: var(--cream); }
.pills span:nth-child(4n+2) { background: var(--green); color: var(--cream); }
.pills svg { width: 16px; height: 16px; }

/* Sections */
.sec { padding: 124px 0; }
.sec.paper { background: var(--paper); }
.sec.green { background: var(--green); color: var(--cream); --fg: var(--cream); --muted: rgba(243, 240, 230, .74); --line: rgba(243, 240, 230, .2); }
.head { max-width: 860px; margin-bottom: 60px; }
.kicker { font-family: var(--mono); font-size: 12.5px; text-transform: uppercase; letter-spacing: .14em; margin-bottom: 20px; display: flex; align-items: center; gap: 10px; }
.kicker::before { content: ""; width: 9px; height: 9px; background: var(--orange); transform: rotate(45deg); flex: none; }
h2 { font-size: clamp(30px, 4.4vw, 60px); }
.sub { margin-top: 22px; color: var(--muted); font-size: 19px; max-width: 640px; }

/* Services list */
.svc { list-style: none; margin: 0; padding: 0; border-top: 1.5px solid var(--green); }
.svc li { display: grid; grid-template-columns: 70px 1fr 1.25fr 220px; gap: 28px; align-items: baseline; padding: 30px 18px; margin: 0 -18px; border-bottom: 1px solid var(--line); border-radius: 16px; transition: background .3s, color .3s; }
.svc li:hover { background: var(--green); color: var(--cream); }
.svc .n { font-family: var(--mono); font-size: 13px; }
.svc h3 { font-size: clamp(21px, 2.1vw, 27px); font-stretch: 125%; font-weight: 800; }
.svc p { font-size: 16.5px; opacity: .78; }
.svc .t { font-family: var(--mono); font-size: 12px; text-align: right; opacity: .7; }

/* Showcase */
.tabs { display: flex; gap: 6px; max-width: 100%; overflow-x: auto; margin-bottom: 20px; scrollbar-width: none; }
.tabs button { border: 1.5px solid var(--line); background: transparent; padding: 10px 20px; border-radius: 999px; font-size: 14.5px; font-weight: 600; white-space: nowrap; transition: background .25s, color .25s, border-color .25s; }
.tabs button:hover { border-color: var(--cream); }
.tabs button[aria-selected="true"] { background: var(--cream); color: var(--green); border-color: var(--cream); }
.showcase { display: grid; grid-template-columns: 1fr 340px; gap: 14px; }
.showcase .window { min-width: 0; border-color: var(--cream); }
.log { border: 1.5px solid var(--line); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; min-height: 0; }
.log-head { display: flex; justify-content: space-between; align-items: baseline; font-weight: 700; }
.log-head .mono { color: var(--orange); }
.log-desc { margin-top: 10px; color: var(--muted); font-size: 15px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.log-lines { list-style: none; margin: 14px 0 0; padding: 0; font-family: var(--mono); font-size: 12px; line-height: 1.55; display: flex; flex-direction: column; gap: 9px; overflow: auto; max-height: 300px; scrollbar-width: none; }
.log-lines li { display: grid; grid-template-columns: 12px 1fr; gap: 10px; animation: in .4s var(--ease); color: var(--muted); }
.log-lines li::before { content: ""; width: 7px; height: 7px; margin-top: 6px; background: var(--orange); transform: rotate(45deg); }
.log-lines li b { color: var(--cream); font-weight: 500; }
.log-lines li.final { color: var(--orange); }
@keyframes in { from { opacity: 0; transform: translateY(5px); } }

/* Case */
.case { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: start; }
.timeline { list-style: none; margin: 0; padding: 0; border-top: 1.5px solid var(--green); }
.timeline li { display: grid; grid-template-columns: 64px 1fr; gap: 18px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.t-num { font: 500 13px var(--mono); width: 46px; height: 46px; border-radius: 50%; border: 2px solid var(--green); display: grid; place-items: center; }
.timeline b { font-weight: 700; font-size: 19px; }
.timeline p { color: var(--muted); font-size: 16px; margin-top: 6px; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 34px 0 0; }
.facts dt { font-stretch: 125%; font-weight: 900; font-size: clamp(44px, 5vw, 68px); line-height: 1; height: 1em; display: flex; align-items: center; }
.facts dt .r { width: .82em; height: .82em; }
.facts dd { margin: 10px 0 0; color: var(--muted); font-size: 14.5px; }
.case-right { display: flex; flex-direction: column; align-items: center; }
.phone { width: min(360px, 100%); border-radius: 38px; background: var(--ink); color: var(--cream); padding: 10px; }
.phone-top { display: flex; align-items: center; gap: 10px; padding: 10px 12px 12px; border-bottom: 1px solid rgba(243, 240, 230, .12); }
.phone-top b { font-size: 14px; font-weight: 600; display: block; line-height: 1.2; }
.phone-top small { opacity: .5; font-size: 12px; }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--green); display: grid; place-items: center; font-size: 20px; }
.chat { display: flex; flex-direction: column; gap: 10px; padding: 16px 8px 10px; min-height: 330px; }
.msg { max-width: 88%; padding: 11px 14px; border-radius: 18px; font-size: 14px; line-height: 1.45; opacity: 0; transform: translateY(8px) scale(.98); transition: opacity .4s var(--ease), transform .4s var(--ease); }
.msg.show { opacity: 1; transform: none; }
.msg.in { background: #19231f; border-bottom-left-radius: 5px; display: flex; flex-direction: column; }
.msg.in span { opacity: .75; }
.msg.out { align-self: flex-end; background: var(--orange); color: var(--ink); font-weight: 600; border-bottom-right-radius: 5px; }
.kbd { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 10px; }
.kbd button { border: 0; border-radius: 10px; padding: 9px; background: rgba(243, 240, 230, .1); font-size: 13px; font-weight: 600; transition: background .2s, color .2s, transform .2s; pointer-events: none; }
.kbd button.tap { background: var(--orange); color: var(--ink); transform: scale(.95); }
.invoice { width: min(390px, 100%); margin: -44px 0 0 130px; padding: 22px; border-radius: 16px; background: #fff; color: var(--ink); border: 1.5px solid var(--green); transform: rotate(2deg); position: relative; z-index: 2; }
.inv-head { display: flex; justify-content: space-between; align-items: flex-start; }
.inv-head small { display: block; font: 400 11px var(--mono); letter-spacing: .1em; opacity: .6; }
.inv-head b { font-weight: 700; }
.tag-ok { font-size: 11px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--orange); }
.invoice table { width: 100%; border-collapse: collapse; margin-top: 14px; font-size: 13px; }
.invoice td { padding: 8px 0; border-bottom: 1px solid #e7e3d6; }
.invoice td:last-child { text-align: right; font: 400 12px var(--mono); }
.invoice .sum td { font-weight: 700; border-bottom: 0; padding-top: 11px; }
.inv-foot { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 10px; font: 400 11.5px var(--mono); opacity: .65; }

/* Testimonials */
.quotes { background: var(--paper); }
.q-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.q { position: relative; padding: 30px; border-radius: var(--radius); background: var(--cream); border: 1.5px solid var(--green); display: flex; flex-direction: column; gap: 26px; }
.q:nth-child(3n+2) { background: var(--green); color: var(--cream); }
.q blockquote { margin: 0; font-size: 20px; line-height: 1.4; font-weight: 500; flex: 1; }
.q blockquote::before { content: ""; display: block; width: 12px; height: 12px; background: var(--orange); transform: rotate(45deg); margin-bottom: 22px; }
.q figcaption b { display: block; font-weight: 700; }
.q figcaption span { font-size: 14px; opacity: .7; }
.q .sample { position: absolute; top: 14px; right: 14px; font: 500 10px var(--mono); letter-spacing: .1em; padding: 4px 9px; border-radius: 999px; background: var(--orange); color: var(--ink); }

/* Industries */
.industries { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.ind { position: relative; padding: 26px; border-radius: var(--radius); border: 1.5px solid var(--line); min-height: 210px; display: flex; flex-direction: column; justify-content: flex-end; transition: background .3s, color .3s, border-color .3s; }
.ind:hover, .ind.live { background: var(--green); color: var(--cream); border-color: var(--green); }
.ind h3 { font-size: 21px; }
.ind p { font-size: 15px; margin-top: 9px; opacity: .78; }
.badge { position: absolute; top: 22px; left: 26px; font: 500 11px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--orange); display: flex; align-items: center; gap: 8px; }
.badge::before { content: ""; width: 8px; height: 8px; background: var(--orange); transform: rotate(45deg); animation: blink 1.6s infinite; }

/* Process */
.process { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 22px; position: relative; }
.process::before { content: ""; position: absolute; top: 25px; left: 26px; right: 10%; height: 1.5px; background: var(--line); }
.process li { position: relative; }
.p-ring { position: relative; display: block; width: 52px; height: 52px; font-size: 52px; background: var(--green); border-radius: 50%; }
.p-ring .r { vertical-align: top; opacity: .3; transform: scale(.8); transition: opacity .6s var(--ease), transform .6s var(--ease); transition-delay: calc(var(--d, 0s) + .25s); }
.process li.in .p-ring .r { opacity: 1; transform: none; }
.process h3 { font-size: 22px; margin-top: 26px; font-stretch: 125%; font-weight: 800; }
.process p { color: var(--muted); font-size: 15px; margin-top: 10px; }
.p-time { display: inline-block; margin-top: 16px; font: 400 12px var(--mono); color: var(--orange); }

/* Plans + principles */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.plan { padding: 32px; border-radius: var(--radius); border: 1.5px solid var(--green); display: flex; flex-direction: column; }
.plan.featured { background: var(--green); color: var(--cream); }
.plan-name { font: 500 12px var(--mono); text-transform: uppercase; letter-spacing: .14em; color: var(--orange); }
.plan h3 { font-size: 25px; margin-top: 16px; }
.plan ul { list-style: none; padding: 0; margin: 24px 0 30px; display: flex; flex-direction: column; gap: 11px; font-size: 16px; flex: 1; }
.plan li { padding-left: 24px; position: relative; opacity: .85; }
.plan li::before { content: ""; position: absolute; left: 2px; top: 9px; width: 8px; height: 8px; background: var(--orange); transform: rotate(45deg); }
.plan.featured .btn:hover { background: var(--cream); border-color: var(--cream); color: var(--green); }
.principles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; margin-top: 72px; padding-top: 40px; border-top: 1.5px solid var(--green); }
.principles h3 { font-size: 19px; }
.principles p { color: var(--muted); font-size: 15.5px; margin-top: 10px; }

/* FAQ */
.faq-wrap { display: grid; grid-template-columns: 1fr 1.4fr; gap: 56px; }
.faq { border-top: 1.5px solid var(--green); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 24px 48px 24px 0; font-size: 19px; font-weight: 650; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 26px; width: 22px; height: 22px; border-radius: 50%; border: 5px solid var(--green); transition: background .3s, border-color .3s; }
.faq details[open] summary::after { border-color: var(--orange); background: var(--orange); }
.faq details p { color: var(--muted); padding: 0 48px 24px 0; font-size: 16.5px; }

/* Name */
.name { background: var(--ink); color: var(--cream); padding: 120px 0; }
.name-inner { display: grid; grid-template-columns: .9fr 1.1fr; gap: 72px; align-items: center; }
.ar { width: min(430px, 100%); height: auto; justify-self: center; }
.name-copy { font-size: clamp(20px, 2.1vw, 27px); line-height: 1.42; font-weight: 400; opacity: .82; }
.name-copy b { font-weight: 700; color: var(--orange); }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1.05fr; gap: 64px; align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 40px 0 0; }
.contact-list li { display: grid; grid-template-columns: 120px 1fr; padding: 17px 0; border-top: 1px solid var(--line); font-size: 16px; }
.contact-list span { font: 400 12.5px var(--mono); opacity: .65; text-transform: uppercase; letter-spacing: .08em; padding-top: 3px; }
.contact-list a { border-bottom: 1.5px solid var(--orange); justify-self: start; }
.form { padding: 32px; border-radius: 26px; background: var(--cream); color: var(--green); display: flex; flex-direction: column; gap: 16px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: flex; flex-direction: column; gap: 8px; font-size: 13.5px; font-weight: 600; }
.form input, .form select, .form textarea { font: inherit; font-weight: 400; font-size: 16px; color: var(--green); background: #fff; border: 1.5px solid rgba(14, 58, 45, .25); border-radius: 14px; padding: 13px 15px; width: 100%; transition: border-color .2s; }
.form select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--green) 50%), linear-gradient(135deg, var(--green) 50%, transparent 50%); background-position: calc(100% - 21px) 50%, calc(100% - 16px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.form textarea { resize: vertical; }
.form ::placeholder { color: rgba(14, 58, 45, .45); }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--orange); }
.form .invalid { border-color: #c0341d; }
.hp { position: absolute; left: -9999px; }
.form-note { font-size: 13.5px; text-align: center; opacity: .7; }
.form-note.ok { opacity: 1; font-weight: 600; }

/* Footer */
.footer { background: var(--ink); color: var(--cream); padding: 72px 0 44px; border-top: 1px solid rgba(243, 240, 230, .14); }
.foot-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.foot-wm { width: min(460px, 78%); height: auto; }
.foot-links { display: flex; gap: 22px; flex-wrap: wrap; font-size: 15px; font-weight: 500; }
.foot-links a:hover { color: var(--orange); }
.foot-note { margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(243, 240, 230, .14); font: 400 12px var(--mono); opacity: .6; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; gap: 44px; align-items: start; }
  .board { max-width: 520px; }
  .showcase, .case, .name-inner { grid-template-columns: 1fr; }
  .log-lines { max-height: 220px; }
  .svc li { grid-template-columns: 50px 1fr; }
  .svc p { grid-column: 2; }
  .svc .t { grid-column: 2; text-align: left; }
  .industries { grid-template-columns: repeat(2, 1fr); }
  .process { grid-template-columns: repeat(2, 1fr); row-gap: 44px; }
  .process::before { display: none; }
  .principles { grid-template-columns: repeat(2, 1fr); }
  .q-grid { grid-template-columns: 1fr; }
  .invoice { margin-left: 0; margin-top: -30px; transform: rotate(-1.5deg); }
  .ar { justify-self: start; width: min(300px, 70%); }
  .name-inner { gap: 44px; }
}
@media (max-width: 900px) {
  .desk-only { display: none !important; }
  .menu { display: block; }
  .links { position: fixed; inset: 74px 0 auto; flex-direction: column; gap: 2px; padding: 12px 16px 22px; background: var(--cream); border-bottom: 1.5px solid var(--green); transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s var(--ease); }
  .links.open { opacity: 1; transform: none; pointer-events: auto; }
  .links a { padding: 13px 12px; font-size: 17px; }
  .mobile-only { display: inline-flex !important; margin-top: 10px; }
  .plans { grid-template-columns: 1fr; }
  .faq-wrap, .contact { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .sec { padding: 84px 0; }
  .lib, .name { padding: 80px 0; }
  .hero { padding-top: 112px; }
  .hero .window { margin-top: 44px; }
  .stack { margin-top: 52px; padding: 30px 0; }
  .head { margin-bottom: 40px; }
  .industries, .process, .principles { grid-template-columns: 1fr; }
  .ind { min-height: 0; }
  .ind.live { padding-top: 56px; }
  .facts { gap: 12px; }
  .row2 { grid-template-columns: 1fr; }
  .form { padding: 22px; }
  .win-foot .dim { display: none; }
  .contact-list li { grid-template-columns: 96px 1fr; }
  .board footer b { font-size: 52px; height: 52px; }
  .total-ring { width: 46px; height: 46px; }
  .svc li { padding: 24px 18px; gap: 8px 14px; }
  .faq summary { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
  .o-ring { stroke-dashoffset: 0; }
  .o-dot { transform: none; }
}

/* ---------- Icon-first sections ---------- */
.ico { width: 114px; height: 76px; overflow: visible; color: var(--green); }
.ico .ln, .ico-i { fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.ico .nd { fill: var(--card); stroke: currentColor; stroke-width: 4; }
.ico .nd.big { stroke-width: 8; fill: none; stroke-dasharray: 100; transform: rotate(-90deg); transform-origin: 48px 32px; animation: ringdraw 3.2s infinite var(--ease); }
@keyframes ringdraw { 0% { stroke-dashoffset: 100; } 40%, 85% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: -100; } }
.ico .nkpop { animation: nkpop 3.2s infinite var(--ease); }
@keyframes nkpop { 0%, 38% { opacity: 0; } 46%, 85% { opacity: 1; } 100% { opacity: 0; } }
.ico .nk { fill: var(--orange); }
.ico .dot { fill: currentColor; animation: typing 1.2s infinite ease-in-out; }
.ico .d2 { animation-delay: .15s; }
.ico .d3 { animation-delay: .3s; }
@keyframes typing { 0%, 60%, 100% { transform: translateY(0); opacity: .35; } 30% { transform: translateY(-5px); opacity: 1; } }
.ico .draw { stroke-dasharray: 30; stroke-dashoffset: 30; animation: write 3.6s infinite; }
.ico .l2 { animation-delay: .3s; }
.ico .l3 { animation-delay: .6s; }
@keyframes write { 0% { stroke-dashoffset: 30; } 25%, 85% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 30; opacity: 0; } }
.ico .stamp { transform-origin: 70px 50px; animation: stamp 3.6s infinite; }
@keyframes stamp { 0%, 30% { transform: scale(0); } 40% { transform: scale(1.25); } 46%, 85% { transform: scale(1); } 100% { transform: scale(0); } }
.ico .orbit { transform-origin: 48px 32px; }
.ico .orbit .nk { transform: translate(48px, 9px); }
.ico .bar { fill: currentColor; transform-box: fill-box; transform-origin: bottom; animation: grow 2.8s infinite var(--ease); }
.ico .b1 { --s: .45; }
.ico .b2 { --s: .7; animation-delay: .2s; }
.ico .b3 { --s: 1; animation-delay: .4s; fill: var(--orange); }
@keyframes grow { 0% { transform: scaleY(.08); } 45%, 80% { transform: scaleY(var(--s)); } 100% { transform: scaleY(.08); } }
.ico .beat { stroke-dasharray: 120; stroke-dashoffset: 120; animation: beat 2.2s infinite linear; }
@keyframes beat { 0% { stroke-dashoffset: 120; } 60% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: -120; } }

.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.tile { padding: 34px 30px 30px; border: 1.5px solid var(--line); border-radius: var(--radius); background: var(--card); transition: border-color .3s, transform .3s var(--ease), background .3s, color .3s; }
.tile:hover { border-color: var(--green); transform: translateY(-4px); }
.tile:nth-child(2), .tile:nth-child(6) { background: var(--green); color: #fff; border-color: var(--green); }
.tile:nth-child(2) .ico, .tile:nth-child(6) .ico { color: #fff; }
.tile:nth-child(2) .ico .nd { fill: var(--green); }
.tile h3 { font-size: 21px; margin-top: 26px; }
.tile p { margin-top: 8px; font-size: 15.5px; opacity: .75; }

.inds { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.inds li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 34px 16px 28px; border-radius: var(--radius); border: 1.5px solid var(--line); text-align: center; font-weight: 650; font-size: 15.5px; transition: background .3s, color .3s, border-color .3s; }
.inds li::after { content: ""; position: absolute; top: 20px; right: 22px; width: 9px; height: 9px; background: var(--orange); transform: rotate(45deg) scale(0); transition: transform .35s var(--ease); }
.inds li:hover, .inds li.live { background: var(--green); color: #fff; border-color: var(--green); }
.inds li:hover::after { transform: rotate(45deg) scale(1); }
.ico-i { width: 52px; height: 52px; stroke-width: 2.6; }
.inds li:hover .ico-i { animation: wiggle .5s var(--ease); }
@keyframes wiggle { 30% { transform: translateY(-5px) rotate(-4deg); } 60% { transform: translateY(0) rotate(3deg); } }
.inds .badge { top: 16px; left: 18px; }

.track { position: relative; padding-top: 10px; }
.track .rail { position: absolute; left: 10%; right: 10%; top: 36px; height: 3px; background: rgba(255, 255, 255, .18); border-radius: 3px; }
.track .fill { position: absolute; inset: 0 auto 0 0; width: calc(var(--p, 0) * 100%); background: #fff; border-radius: 3px; }
.track .runner { position: absolute; top: 50%; left: calc(var(--p, 0) * 100%); width: 14px; height: 14px; margin: -7px 0 0 -7px; background: var(--orange); transform: rotate(45deg); }
.track ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); position: relative; }
.track li { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; }
.dotring { width: 52px; height: 52px; border-radius: 50%; border: 9px solid rgba(255, 255, 255, .22); background: var(--green); margin-bottom: 12px; transition: border-color .4s, transform .4s var(--ease); }
.track li.on .dotring { border-color: #fff; transform: scale(1.08); }
.track li b { font-stretch: 125%; font-weight: 800; font-size: 19px; }
.track li span:last-child { font: 400 12.5px var(--mono); opacity: .7; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 64px; justify-content: center; }
.chips span { display: inline-flex; align-items: center; gap: 10px; padding: 11px 20px; border: 1.5px solid rgba(255, 255, 255, .3); border-radius: 999px; font-weight: 600; font-size: 15px; }

.foot-marks { display: flex; align-items: flex-end; gap: 28px; }
.foot-marks .foot-wm { width: min(380px, 60vw); }
.foot-ar { width: 110px; height: auto; }

@media (max-width: 1080px) {
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .inds { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .tiles { grid-template-columns: 1fr; }
  .tile { padding: 24px 22px; display: grid; grid-template-columns: 96px 1fr; gap: 4px 18px; align-items: center; }
  .tile .ico { grid-row: span 2; width: 96px; height: 64px; }
  .tile h3 { margin-top: 0; font-size: 18px; }
  .tile p { margin-top: 0; font-size: 14.5px; }
  .inds li { padding: 26px 12px 22px; font-size: 14px; }
  .ico-i { width: 42px; height: 42px; }
  .track .rail { left: 25px; right: auto; top: 26px; bottom: 26px; width: 3px; height: auto; }
  .track .fill { inset: 0 0 auto 0; width: auto; height: calc(var(--p, 0) * 100%); }
  .track .runner { left: 50%; top: calc(var(--p, 0) * 100%); }
  .track ol { grid-template-columns: 1fr; gap: 26px; }
  .track li { display: grid; grid-template-columns: 52px 1fr; grid-template-rows: auto auto; column-gap: 20px; row-gap: 2px; text-align: left; align-items: center; }
  .dotring { grid-row: span 2; margin: 0; }
  .chips { justify-content: flex-start; margin-top: 44px; }
  .foot-ar { width: 76px; }
}

/* ---------- v20: Bricolage Grotesque + Syncopate, plain-language layout ---------- */
:root { --sans: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif; --mono: "Bricolage Grotesque", ui-sans-serif, sans-serif; --wide: "Syncopate", "Bricolage Grotesque", sans-serif; }
body { font-family: var(--sans); font-optical-sizing: auto; font-size: 18px; }
h1, h2, h3 { font-family: var(--sans); font-stretch: 100%; text-transform: none; }
h1, h2 { font-weight: 800; letter-spacing: -.035em; line-height: .98; font-variation-settings: "wdth" 88; }
h2 { font-size: clamp(32px, 4.6vw, 62px); }
h3 { font-weight: 700; letter-spacing: -.015em; }
.svc h3, .process h3, .track li b { font-stretch: 100%; }
.mono, .node-sub, .edge-label, .win-path, .log-lines, .p-time { font-family: var(--sans); font-variant-numeric: tabular-nums; letter-spacing: 0; }
.log-lines { font-size: 13.5px; }

/* SIFR with a wide, light LABS underneath */
.lockup { display: inline-flex; flex-direction: column; align-items: stretch; gap: 5px; color: var(--green); line-height: 1; }
.lockup .wm { height: 30px; width: auto; display: block; }
.lockup .labs { font-family: var(--wide); font-weight: 400; font-size: 10px; text-transform: uppercase; letter-spacing: .86em; margin-right: -.86em; padding: 0; text-align: left; white-space: nowrap; }
.brand { align-items: center; }
.lockup.big { color: var(--cream); gap: 14px; }
.lockup.big .foot-wm { width: min(380px, 62vw); height: auto; display: block; }
.lockup.big .labs { font-size: clamp(14px, 2vw, 21px); letter-spacing: .95em; margin-right: -.95em; }

/* Hero: say what we do, show it right away */
.hero { padding: 150px 0 96px; }
.hero-grid { align-items: center; }
.hero h1 { margin-top: 0; font-size: clamp(40px, 5.6vw, 84px); line-height: .96; text-wrap: balance; }
.lede { margin-top: 28px; font-size: clamp(18px, 1.7vw, 22px); color: var(--green); opacity: .8; max-width: 520px; }
.works { margin-top: 30px; font-size: 15px; opacity: .65; max-width: 460px; }
.board header { font-size: 15px; }
.board .eg { font-size: 12px; font-weight: 500; opacity: .55; }
.board li { font-size: 16px; }

/* Picture story for the example */
#work .case { align-items: center; }
.story { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; counter-reset: st; }
.story li { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 26px 22px 22px; border-radius: var(--radius); background: var(--card); border: 1.5px solid var(--line); counter-increment: st; }
.story li::before { content: counter(st); position: absolute; top: 20px; right: 20px; width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--green); display: grid; place-items: center; font-weight: 700; font-size: 13px; }
.story li:nth-child(2) { background: var(--green); color: #fff; border-color: var(--green); }
.story li:nth-child(2)::before { border-color: #fff; }
.st-ico { color: inherit; margin-bottom: 14px; }
.story .ico-i { width: 46px; height: 46px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.story b { font-size: 19px; font-weight: 700; letter-spacing: -.01em; line-height: 1.2; }
.story li > span:last-child { font-size: 15px; opacity: .7; }
.facts { margin-top: 30px; }
.facts dt { font-stretch: 100%; font-weight: 800; letter-spacing: -.04em; }
#industries { background: var(--cream); }
.sub { font-size: 20px; }
.tile h3 { font-size: 23px; }
.tile p { font-size: 16.5px; }
.inds li { font-size: 16.5px; }
.chips span { font-size: 16px; }
.faq summary { font-size: 20px; }

@media (max-width: 1080px) {
  .hero { padding: 124px 0 72px; }
}
@media (max-width: 640px) {
  .hero { padding: 108px 0 56px; }
  .hero h1 { font-size: 40px; }
  .story { grid-template-columns: 1fr; }
  .story li { flex-direction: row; flex-wrap: wrap; align-items: center; column-gap: 16px; padding: 18px 56px 18px 18px; }
  .st-ico { margin: 0; }
  .story .ico-i { width: 38px; height: 38px; }
  .story b { flex: 1; font-size: 17px; }
  .story li > span:last-child { width: 100%; padding-left: 54px; margin-top: -2px; }
  .story li::before { top: 50%; margin-top: -14px; }
  .lockup .wm { height: 26px; }
  .lockup .labs { font-size: 8.5px; }
  .sub { font-size: 18px; }
}
.lockup .labs { display: flex; justify-content: space-between; letter-spacing: 0; margin: 0; padding: 0 2% 0 1%; font-size: 12px; opacity: 1; }
.lockup .labs i { font-style: normal; }
.lockup .wm { height: 34px; }
.lockup { gap: 7px; }
.lockup.big .labs { font-size: clamp(16px, 2.2vw, 24px); letter-spacing: 0; margin: 0; }
.hero { padding-bottom: 64px; }
@media (max-width: 640px) { .lockup .wm { height: 28px; } .lockup .labs { font-size: 10px; } .lockup { gap: 5px; } }
/* Headlines: Unbounded, heavy and wide like the SIFR wordmark */
h1, h2 { font-family: "Unbounded", var(--sans); font-weight: 800; font-variation-settings: normal; letter-spacing: -.035em; line-height: 1.04; }
.hero h1 { font-size: clamp(36px, 4.7vw, 70px); font-weight: 900; line-height: 1.02; letter-spacing: -.045em; }
h2 { font-size: clamp(28px, 3.7vw, 50px); }
@media (max-width: 640px) { .hero h1 { font-size: 34px; } h2 { font-size: 28px; } }
h1, h2 { letter-spacing: -.01em; word-spacing: .06em; }
.hero h1 { letter-spacing: -.015em; line-height: 1.06; font-size: clamp(34px, 4.4vw, 66px); }
.board footer b { font-family: "Unbounded", var(--sans); font-weight: 800; }
.facts dt { font-family: "Unbounded", var(--sans); }
