/* fazely.net — FAZELY SOLUTIONS brand: orange #EB5E28, carbon #252422, charcoal #403D39, silver #CCC5B9, floral #FFFCF2. */
@font-face { font-family: "Rethink Sans"; src: url("../../fonts/RethinkSans-Regular.26ff2d0c11e7.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Rethink Sans"; src: url("../../fonts/RethinkSans-Bold.edb9a4910728.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Plus Jakarta Sans"; src: url("../../fonts/PlusJakartaSans-Bold.5a3a96a9ba07.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Space Mono"; src: url("../../fonts/SpaceMono-Bold.d6a2ed5cbe1c.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("../../fonts/InstrumentSerif-Italic.3e1d24645b0d.ttf") format("truetype"); font-weight: 400; font-style: italic; font-display: swap; }

:root {
  --orange: #EB5E28; --orange-dark: #C9481A; --orange-soft: #FBE1D3; --orange-tint: #FFF3EA;
  --carbon: #252422; --ink: #1B1A18; --charcoal: #403D39; --silver: #CCC5B9; --floral: #FFFCF2; --paper: #F7F2E7;
  --line: #E6DECF; --line-dark: #3A3834; --text: #4A463F; --muted: #776F63;
  --display: "Plus Jakarta Sans", system-ui, sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --body: "Rethink Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Space Mono", ui-monospace, Consolas, monospace;
  --wrap: 1200px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --shadow: 0 1px 2px rgba(37,36,34,.06), 0 12px 32px -12px rgba(37,36,34,.18);
  --shadow-lg: 0 2px 4px rgba(37,36,34,.05), 0 40px 80px -32px rgba(37,36,34,.35);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--body); font-size: 17px; line-height: 1.6; color: var(--carbon); background: var(--floral); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, video { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 700; margin: 0; letter-spacing: -0.03em; text-wrap: balance; }
h1 em, h2 em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; color: var(--orange-dark); font-size: 1.08em; line-height: .9; }
h2 { font-size: clamp(2.1rem, 4.2vw, 3.5rem); line-height: 1.04; }
h3 { font-size: 1.22rem; line-height: 1.25; letter-spacing: -0.015em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }
.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; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--carbon); color: var(--floral); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--orange-dark); outline-offset: 3px; border-radius: 6px; }
svg use, .ico-sm, .card-ico svg, .checks svg, .gain svg, .stage-node svg, .toast svg, .float svg, .talk-list svg, .mini-checks svg, .log svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ico-sm { width: 16px; height: 16px; flex: none; }
.kicker { display: inline-flex; align-items: center; gap: .6rem; font-family: var(--mono); font-weight: 700; font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--orange-dark); margin-bottom: 1.1rem; }
.kicker::before { content: ""; width: 22px; height: 1.5px; background: currentColor; }
.lead { font-size: 1.2rem; line-height: 1.55; color: var(--carbon); }

/* Reveal on scroll (only when JS runs) */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; font-family: var(--mono); font-weight: 700; font-size: .76rem; letter-spacing: .08em; text-transform: uppercase;
  border-radius: 999px; padding: .8rem 1.35rem; text-decoration: none; border: 1.5px solid var(--carbon); cursor: pointer; white-space: nowrap;
  transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s var(--ease), box-shadow .2s ease; }
.btn:hover { transform: translateY(-1px); }
.btn:hover .ico-sm { transform: translateX(2px); }
.btn .ico-sm { transition: transform .2s var(--ease); }
.btn-primary { background: var(--orange); border-color: var(--orange); color: var(--ink); box-shadow: 0 10px 24px -12px rgba(235,94,40,.8); }
.btn-primary:hover { background: var(--carbon); border-color: var(--carbon); color: var(--floral); box-shadow: 0 10px 24px -12px rgba(37,36,34,.7); }
.btn-dark { background: var(--carbon); border-color: var(--carbon); color: var(--floral); }
.btn-dark:hover { background: var(--orange); border-color: var(--orange); color: var(--ink); }
.btn-outline { background: transparent; color: var(--carbon); }
.btn-outline:hover { background: var(--carbon); color: var(--floral); }
.btn-lg { padding: 1rem 1.6rem; font-size: .8rem; }
.btn-block { width: 100%; padding: 1.05rem 1.4rem; font-size: .8rem; }

/* Navigation */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(255,252,242,.82); backdrop-filter: saturate(1.4) blur(16px); -webkit-backdrop-filter: saturate(1.4) blur(16px); border-bottom: 1px solid transparent; transition: border-color .25s ease, background .25s ease; }
.nav.scrolled { border-bottom-color: var(--line); background: rgba(255,252,242,.92); }
.nav-row { display: flex; align-items: center; gap: 2rem; height: 76px; }
.nav-logo img { width: 142px; height: auto; }
.nav-links { display: flex; gap: .2rem; margin-left: auto; }
.nav-link { position: relative; font-weight: 700; font-size: .94rem; text-decoration: none; padding: .5rem .9rem; border-radius: 999px; color: var(--charcoal); transition: color .2s ease, background .2s ease; }
.nav-link:hover { background: #F1EBDF; color: var(--carbon); }
.nav-link.active { color: var(--carbon); }
.nav-link.active::after { content: ""; position: absolute; left: 50%; bottom: 2px; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: var(--orange); }
.nav-burger { display: none; margin-left: auto; width: 44px; height: 44px; border: 0; background: #F1EBDF; border-radius: 50%; cursor: pointer; position: relative; }
.nav-burger span { position: absolute; left: 13px; right: 13px; height: 2px; background: var(--carbon); transition: transform .2s ease; }
.nav-burger span:first-child { top: 17px; } .nav-burger span:last-child { top: 25px; }
.nav-burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
.nav-mobile[hidden] { display: none; }
.nav-mobile { border-top: 1px solid var(--line); padding: .5rem 28px 1.5rem; display: grid; background: var(--floral); }
.nav-mobile a { padding: .9rem 0; font-size: 1.15rem; font-weight: 700; text-decoration: none; border-bottom: 1px solid var(--line); }

/* ================= HERO ================= */
.hero { position: relative; padding: 76px 0 88px; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(600px 420px at 82% 30%, rgba(235,94,40,.16), transparent 70%),
    radial-gradient(500px 360px at 8% 90%, rgba(204,197,185,.35), transparent 70%),
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 56px 56px,
    linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 40%, #000 30%, transparent 85%); mask-image: radial-gradient(ellipse 90% 80% at 50% 40%, #000 30%, transparent 85%); opacity: .9; }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.02fr 1fr; gap: 56px; align-items: center; }
.hero-grid > *, .project > *, .about-grid > *, .sec-head > * { min-width: 0; }
.pill { display: inline-flex; align-items: center; gap: .6rem; padding: .45rem .95rem .45rem .7rem; border: 1px solid var(--line); background: rgba(255,255,255,.7); border-radius: 999px; font-family: var(--mono); font-weight: 700; font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--charcoal); }
.pill-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 0 rgba(235,94,40,.6); animation: ping 2s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(235,94,40,.55); } 80%, 100% { box-shadow: 0 0 0 9px rgba(235,94,40,0); } }
.hero h1 { font-size: clamp(2.6rem, 4.6vw, 4.15rem); line-height: 1; letter-spacing: -0.05em; margin: 1.4rem 0 1.4rem; }
.hero h1 em { display: inline; }
.hero-sub { font-size: clamp(1.05rem, 1.4vw, 1.22rem); color: var(--text); max-width: 34em; }
.hero-ctas { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 2.1rem; }
.hero-proof { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; margin-top: 2.2rem; font-size: .9rem; color: var(--charcoal); font-weight: 700; }
.hero-proof li { display: inline-flex; align-items: center; gap: .45rem; }
.hero-proof .ico-sm { color: var(--orange-dark); stroke-width: 2.4; }
.js .hero .reveal:nth-child(2) { transition-delay: .08s; } .js .hero .reveal:nth-child(3) { transition-delay: .16s; } .js .hero .reveal:nth-child(4) { transition-delay: .24s; } .js .hero .reveal:nth-child(5) { transition-delay: .32s; }
.js .hero-visual.reveal { transition-delay: .2s; }

.hero-visual { position: relative; }
.console { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow-lg); overflow: hidden; }
.console-bar { display: flex; align-items: center; gap: 7px; height: 44px; padding: 0 16px; border-bottom: 1px solid var(--line); background: #FBF8F1; }
.console-bar i { width: 10px; height: 10px; border-radius: 50%; background: #E2DACB; }
.console-bar i:first-child { background: var(--orange); }
.console-title { margin-left: 10px; font-family: var(--mono); font-size: .72rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.live { margin-left: auto; display: inline-flex; align-items: center; gap: .4rem; font-family: var(--mono); font-weight: 700; font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: #1E7A4C; background: #E5F4EA; padding: .2rem .6rem; border-radius: 999px; }
.live b { width: 6px; height: 6px; border-radius: 50%; background: #23A05E; animation: blink 1.4s infinite; }
@keyframes blink { 50% { opacity: .25; } }
.flowmap { display: block; width: 100%; height: auto; padding: 18px 18px 6px; overflow: visible; }
.flowmap .links path { fill: none; stroke: #E3DACA; stroke-width: 1.6; stroke-dasharray: 4 5; }
.flowmap .packets circle { fill: var(--orange); filter: drop-shadow(0 0 4px rgba(235,94,40,.7)); }
.flowmap .node rect:first-child { fill: #fff; stroke: var(--line); stroke-width: 1.2; }
.flowmap .node-ico { fill: var(--orange-tint); stroke: none !important; }
.flowmap .node use { color: var(--orange-dark); stroke-width: 2; }
.flowmap .node text { font-family: var(--body); font-weight: 700; font-size: 13.5px; fill: var(--carbon); }
.flowmap .node text.sub { font-family: var(--mono); font-weight: 700; font-size: 9.5px; fill: var(--muted); letter-spacing: .04em; }
.flowmap .node-hl rect:first-child { stroke: var(--orange); stroke-width: 1.5; }
.flowmap .hub-core { fill: var(--carbon); }
.flowmap .hub-ring { fill: none; stroke: var(--orange); stroke-width: 1.5; stroke-dasharray: 3 7; transform-box: fill-box; transform-origin: center; animation: spin 14s linear infinite; }
.flowmap .hub-pulse { fill: rgba(235,94,40,.25); transform-box: fill-box; transform-origin: center; animation: pulse 2.4s var(--ease) infinite; }
.flowmap .hub-ico { color: var(--orange); stroke-width: 1.7; }
.flowmap .hub-t { font-family: var(--display); font-weight: 700; font-size: 16px; fill: var(--floral); letter-spacing: -.02em; }
.flowmap .hub-s { font-family: var(--mono); font-weight: 700; font-size: 9px; fill: var(--orange); letter-spacing: .2em; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(1.45); opacity: 0; } }

.log { display: grid; gap: 2px; padding: 6px 18px 18px; }
.log li { display: grid; grid-template-columns: 20px 1fr auto; align-items: center; gap: .6rem; padding: .5rem .7rem; border-radius: 10px; font-size: .86rem; color: var(--charcoal); background: #FBF8F1;
  opacity: 0; transform: translateY(6px); animation: logline 9s var(--ease) infinite; }
.log li:nth-child(2) { animation-delay: 1.1s; } .log li:nth-child(3) { animation-delay: 2.2s; } .log li:nth-child(4) { animation-delay: 3.3s; }
.log svg { width: 18px; height: 18px; color: #23A05E; stroke-width: 2.4; }
.log em { font-style: normal; font-family: var(--mono); font-size: .68rem; color: var(--muted); }
.log .log-wait svg { color: var(--orange-dark); }
.log .log-wait em { color: var(--orange-dark); }
@keyframes logline { 0% { opacity: 0; transform: translateY(6px); } 6%, 82% { opacity: 1; transform: none; } 92%, 100% { opacity: 0; transform: translateY(-4px); } }

.float { position: absolute; display: flex; align-items: center; gap: .7rem; padding: .7rem 1rem .7rem .75rem; background: rgba(255,255,255,.95); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); font-size: .78rem; color: var(--muted); line-height: 1.3; animation: bob 6s ease-in-out infinite; }
.float b { display: block; font-size: .86rem; color: var(--carbon); }
.float svg { width: 30px; height: 30px; padding: 6px; border-radius: 9px; background: var(--carbon); color: var(--orange); flex: none; stroke-width: 2; }
.float-a { left: -36px; bottom: -26px; }
.float-b { right: 28px; top: -62px; animation-delay: -3s; }
@keyframes bob { 50% { transform: translateY(-8px); } }

/* ================= TRUST BAND ================= */
.trust { padding: 34px 0 46px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; }
.trust-head { display: flex; align-items: center; gap: 1.2rem; margin-bottom: 26px; }
.trust-head span { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--line)); }
.trust-head span:last-child { background: linear-gradient(90deg, var(--line), transparent); }
.trust-head p { font-family: var(--mono); font-weight: 700; font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent); mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent); }
.marquee-track { display: flex; align-items: center; width: max-content; animation: marquee 46s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track li { flex: none; display: flex; align-items: center; justify-content: center; height: 84px; padding: 0 46px; }
.marquee-track img { width: auto; max-width: 220px; object-fit: contain; filter: grayscale(1) contrast(1.05); opacity: .62; transition: filter .35s ease, opacity .35s ease, transform .35s var(--ease); }
.marquee-track li:hover img { filter: none; opacity: 1; transform: scale(1.05); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ================= SECTIONS ================= */
.section { padding: 128px 0; position: relative; }
.sec-head { display: grid; grid-template-columns: 1.2fr .8fr; gap: 48px; align-items: end; margin-bottom: 60px; }
.sec-lead { color: var(--text); font-size: 1.08rem; max-width: 30em; }
.sec-head-light h2 { color: var(--floral); }
.sec-head-light h2 em { color: var(--orange); }
.sec-head-light .kicker { color: var(--orange); }
.sec-head-light .sec-lead { color: #BDB6AA; }

/* About */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.about-text { display: grid; gap: 1.2rem; padding-top: 2.1rem; }
.about-text p:not(.lead) { color: var(--text); }
.duo { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 14px; margin-top: .8rem; }
.duo > div { padding: 18px 18px 20px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.duo b { display: block; font-family: var(--display); font-size: 1.02rem; letter-spacing: -.01em; margin-bottom: .3rem; }
.duo span { font-size: .88rem; color: var(--muted); line-height: 1.45; }
.duo .duo-x { font-family: var(--serif); font-style: italic; font-size: 2.4rem; line-height: 1; color: var(--orange); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); margin: 80px 0 0; border-top: 1px solid var(--line); }
.stats > div { padding: 30px 24px 0 0; }
.stats > div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.stats dt { font-family: var(--display); font-weight: 700; font-size: clamp(2.8rem, 5vw, 4.2rem); line-height: 1; letter-spacing: -.05em; color: var(--carbon); }
.stats dt span::after { content: ""; display: inline-block; width: .16em; height: .16em; margin-left: .06em; border-radius: 50%; background: var(--orange); }
.stats dd { margin: .7rem 0 0; color: var(--muted); font-size: .95rem; max-width: 16em; }

/* Expertise bento */
.expertise { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.bento { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.card { position: relative; display: flex; flex-direction: column; gap: .75rem; padding: 26px 24px 28px; background: #fff; border: 1px solid var(--line); border-radius: 22px; overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s ease, border-color .35s ease; }
.card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--orange); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease); }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #DCD2BF; }
.card:hover::before { transform: scaleX(1); }
.card p { color: var(--text); font-size: .95rem; line-height: 1.55; }
.card-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 1.6rem; }
.card-ico { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--orange-tint); color: var(--orange-dark); transition: background .3s ease, color .3s ease, transform .4s var(--ease); }
.card-ico svg { width: 24px; height: 24px; }
.card:hover .card-ico { background: var(--orange); color: var(--ink); transform: rotate(-6deg); }
.card-n { font-family: var(--mono); font-weight: 700; font-size: .74rem; color: #B2A999; }
.card-feature { grid-column: span 2; grid-row: span 2; background: var(--carbon); border-color: var(--carbon); color: var(--floral); padding: 32px 32px 32px; }
.card-feature h3 { font-size: clamp(1.5rem, 2.3vw, 2rem); line-height: 1.12; letter-spacing: -.03em; max-width: 15em; }
.card-feature p { color: #CFC8BC; font-size: 1.02rem; max-width: 34em; }
.card-feature .card-ico { background: rgba(235,94,40,.16); color: var(--orange); }
.card-feature:hover { border-color: var(--carbon); }
.card-feature .card-n { color: #8E877B; }
.agents { display: grid; gap: 10px; margin: 1.2rem 0 1rem; }
.agent-row { display: grid; grid-template-columns: 8.5em 1fr 34%; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line-dark); border-radius: 12px; background: rgba(255,255,255,.03); }
.a-name { font-weight: 700; font-size: .9rem; }
.a-task { font-family: var(--mono); font-size: .68rem; color: #9C9589; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.a-bar { height: 6px; border-radius: 99px; background: #3A3834; overflow: hidden; }
.a-bar i { display: block; height: 100%; width: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--orange), #F7A072); transform-origin: left; transform: scaleX(0); animation: fillbar 2.7s var(--ease) infinite; animation-delay: var(--d); }
@keyframes fillbar { 0% { transform: scaleX(0); } 55%, 85% { transform: scaleX(1); } 100% { transform: scaleX(1); opacity: 0; } }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.tags li { font-family: var(--mono); font-weight: 700; font-size: .66rem; letter-spacing: .06em; text-transform: uppercase; padding: .35rem .7rem; border-radius: 999px; border: 1px solid var(--line-dark); color: #D7D0C4; }
.card-wide { grid-column: span 2; }
.card-wide-body { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: end; }
.card-wide-body h3 { margin-bottom: .75rem; }
.mini-checks { display: grid; gap: 8px; }
.mini-checks li { display: flex; align-items: center; gap: .5rem; font-size: .86rem; font-weight: 700; color: var(--charcoal); white-space: nowrap; }
.mini-checks svg { width: 18px; height: 18px; padding: 3px; border-radius: 50%; background: var(--orange-tint); color: var(--orange-dark); stroke-width: 2.6; flex: none; }

/* Workflow infographic */
.flow { background: var(--ink); color: var(--silver); overflow: hidden; }
.flow-glow { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(700px 400px at 85% 0%, rgba(235,94,40,.18), transparent 70%), radial-gradient(600px 400px at 0% 100%, rgba(204,197,185,.08), transparent 70%); }
.flow .wrap { position: relative; }
.pipeline { position: relative; }
.pipe { position: absolute; left: 12.5%; right: 12.5%; top: 31px; height: 2px; background: #34322E; border-radius: 2px; }
.pipe-fill { position: absolute; inset: 0; background: linear-gradient(90deg, var(--orange), #F7A072); transform-origin: left; transform: scaleX(0); transition: transform 1.6s var(--ease) .3s; }
.pipeline.in .pipe-fill { transform: scaleX(1); }
.pipe-dot { position: absolute; top: 50%; left: 0; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px rgba(235,94,40,.35), 0 0 18px 4px rgba(235,94,40,.7); animation: travel 6s var(--ease) infinite; }
@keyframes travel { 0% { left: 0; opacity: 0; } 6% { opacity: 1; } 94% { opacity: 1; } 100% { left: 100%; opacity: 0; } }
.stages { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stage { display: flex; flex-direction: column; align-items: flex-start; }
.stage-node { position: relative; z-index: 1; display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 26px; border-radius: 20px; background: #25231F; border: 1px solid #3D3A35; color: var(--orange); animation: glow 6s infinite; }
.stage:nth-child(2) .stage-node { animation-delay: 1.5s; } .stage:nth-child(3) .stage-node { animation-delay: 3s; } .stage:nth-child(4) .stage-node { animation-delay: 4.5s; }
.stage-node svg { width: 28px; height: 28px; }
@keyframes glow { 0%, 100% { box-shadow: none; border-color: #3D3A35; } 8% { box-shadow: 0 0 0 6px rgba(235,94,40,.18), 0 0 30px rgba(235,94,40,.45); border-color: var(--orange); } 25% { box-shadow: none; border-color: #3D3A35; } }
.stage { padding: 0 8px; }
.stage-n { font-family: var(--mono); font-weight: 700; font-size: .72rem; color: var(--orange); letter-spacing: .12em; }
.stage h3 { color: var(--floral); font-size: 1.5rem; margin: .35rem 0 .6rem; }
.stage p { font-size: .95rem; color: #B5AEA2; line-height: 1.55; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 1.1rem; }
.chips li { font-family: var(--mono); font-weight: 700; font-size: .64rem; letter-spacing: .06em; text-transform: uppercase; padding: .32rem .62rem; border-radius: 999px; background: #2A2824; color: #D9D2C6; border: 1px solid #3A3833; }
.gains { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 84px; }
.gain { padding: 24px 22px 26px; border-radius: 18px; background: rgba(255,255,255,.035); border: 1px solid #34322E; transition: border-color .3s ease, background .3s ease; }
.gain:hover { border-color: rgba(235,94,40,.6); background: rgba(235,94,40,.06); }
.gain svg { width: 26px; height: 26px; color: var(--orange); margin-bottom: 1rem; }
.gain b { display: block; font-family: var(--display); color: var(--floral); font-size: 1.08rem; letter-spacing: -.015em; margin-bottom: .35rem; }
.gain p { color: #A9A296; font-size: .92rem; line-height: 1.5; }

/* Method */
.steps { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.steps::before, .steps::after { content: ""; position: absolute; top: 23px; left: 24px; right: calc((100% - 72px) / 5 - 24px); height: 2px; border-radius: 2px; background: var(--line); }
.steps::after { background: var(--orange); transform-origin: left; transform: scaleX(0); transition: transform 1.8s var(--ease) .2s; }
.steps.in::after { transform: scaleX(1); }
.steps li { position: relative; display: flex; flex-direction: column; gap: .55rem; }
.step-n { position: relative; z-index: 1; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--floral); border: 2px solid var(--line); font-family: var(--display); font-weight: 700; font-size: 1.05rem; margin-bottom: 1rem; transition: background .4s ease, border-color .4s ease, color .4s ease; }
.steps.in .step-n { background: var(--orange); border-color: var(--orange); color: var(--ink); }
.steps.in li:nth-child(1) .step-n { transition-delay: .2s; } .steps.in li:nth-child(2) .step-n { transition-delay: .6s; } .steps.in li:nth-child(3) .step-n { transition-delay: 1s; } .steps.in li:nth-child(4) .step-n { transition-delay: 1.4s; } .steps.in li:nth-child(5) .step-n { transition-delay: 1.8s; }
.steps p { color: var(--text); font-size: .94rem; line-height: 1.55; }
.step-out { margin-top: .4rem; align-self: flex-start; justify-self: start; font-family: var(--mono); font-weight: 700; font-size: .64rem; letter-spacing: .06em; text-transform: uppercase; color: var(--orange-dark); background: var(--orange-tint); padding: .35rem .65rem; border-radius: 8px; }

/* Work */
.work { background: var(--paper); border-top: 1px solid var(--line); }
.project { display: grid; grid-template-columns: .92fr 1.08fr; gap: 64px; align-items: center; padding: 72px 0; border-top: 1px solid var(--line); }
.project:first-of-type { border-top: 0; padding-top: 8px; }
.project-rev .project-info { order: 2; }
.project-cat { display: flex; align-items: center; gap: .7rem; font-family: var(--mono); font-weight: 700; font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.project-cat span { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--carbon); color: var(--orange); letter-spacing: 0; font-size: .7rem; }
.project h3 { font-size: clamp(2.4rem, 4.4vw, 3.6rem); letter-spacing: -.05em; line-height: 1; margin: 1rem 0 1rem; }
.project-lead { font-size: 1.1rem; color: var(--text); line-height: 1.55; }
.checks { display: grid; gap: .65rem; margin: 1.6rem 0; }
.checks li { display: grid; grid-template-columns: 22px 1fr; gap: .7rem; font-size: .97rem; line-height: 1.5; color: var(--charcoal); }
.checks svg { width: 22px; height: 22px; padding: 4px; margin-top: 1px; border-radius: 50%; background: var(--carbon); color: var(--orange); stroke-width: 2.8; }
.stack { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 1.6rem; }
.stack li { font-family: var(--mono); font-weight: 700; font-size: .66rem; letter-spacing: .06em; text-transform: uppercase; padding: .38rem .7rem; border-radius: 8px; border: 1px solid #DDD4C4; color: var(--charcoal); background: #fff; }
.project-visual { position: relative; }

/* Generic app frame */
.app { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-lg); overflow: hidden; font-family: var(--body); }
.app-bar { display: flex; align-items: center; gap: 7px; height: 40px; padding: 0 16px; background: #FBF8F1; border-bottom: 1px solid var(--line); }
.app-bar i { width: 10px; height: 10px; border-radius: 50%; background: #E2DACB; }
.app-bar span { margin-left: 10px; font-family: var(--mono); font-size: .7rem; color: var(--muted); }
.toast { position: absolute; left: -26px; bottom: -22px; display: flex; align-items: center; gap: .65rem; max-width: 80%; padding: .75rem 1rem .75rem .75rem; background: var(--carbon); color: #DDD6CA; border-radius: 14px; box-shadow: var(--shadow-lg); font-size: .82rem; line-height: 1.35; animation: bob 7s ease-in-out infinite; }
.toast b { color: var(--orange); font-family: var(--mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; margin-right: .3rem; }
.toast svg { width: 28px; height: 28px; padding: 6px; border-radius: 8px; background: rgba(235,94,40,.18); color: var(--orange); flex: none; stroke-width: 2.4; }
.toast-r { left: auto; right: -22px; }

/* GIR-OPS mock */
.app-gir .app-body { display: grid; grid-template-columns: 54px 1fr; min-height: 380px; }
.app-side { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 18px 0; background: #2B3036; }
.app-side b { width: 24px; height: 24px; border-radius: 7px; background: #3C434B; }
.app-side b.on { background: var(--orange); }
.app-main { padding: 20px; display: grid; gap: 16px; background: #F6F7F8; }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.kpis > div { position: relative; padding: 12px 14px; background: #fff; border: 1px solid #E5E8EB; border-radius: 12px; overflow: hidden; }
.kpis small { display: block; font-size: .68rem; color: #6B7580; font-weight: 700; }
.kpis strong { font-family: var(--display); font-size: 1.6rem; letter-spacing: -.03em; color: #1F262D; }
.spark { position: absolute; right: 12px; bottom: 12px; display: flex; align-items: flex-end; gap: 3px; height: 26px; }
.spark i { width: 5px; border-radius: 2px; background: #F3C2AC; }
.spark i:last-child { background: var(--orange); }
.circuit { padding: 14px; background: #fff; border: 1px solid #E5E8EB; border-radius: 12px; }
.circuit small, .bay-att small, .asl-card small { display: block; font-size: .68rem; font-weight: 700; color: #6B7580; margin-bottom: 10px; }
.circuit ol { display: grid; grid-template-columns: repeat(5, 1fr); counter-reset: c; }
.circuit li { position: relative; text-align: center; font-size: .66rem; font-weight: 700; color: #7B858F; padding-top: 30px; }
.circuit li::before { counter-increment: c; content: counter(c); position: absolute; top: 0; left: 50%; z-index: 1; width: 24px; height: 24px; margin-left: -12px; border-radius: 50%; display: grid; place-items: center; background: #EEF0F2; color: #7B858F; font-size: .7rem; animation: stepon 7.5s infinite; }
.circuit li::after { content: ""; position: absolute; top: 11px; left: -50%; width: 100%; height: 2px; background: #E5E8EB; }
.circuit li:first-child::after { display: none; }
.circuit li:nth-child(2)::before { animation-delay: 1.5s; } .circuit li:nth-child(3)::before { animation-delay: 3s; } .circuit li:nth-child(4)::before { animation-delay: 4.5s; } .circuit li:nth-child(5)::before { animation-delay: 6s; }
@keyframes stepon { 0%, 100% { background: #EEF0F2; color: #7B858F; box-shadow: none; } 4%, 18% { background: var(--orange); color: #fff; box-shadow: 0 0 0 5px rgba(235,94,40,.2); } 24% { background: #2B3036; color: #fff; box-shadow: none; } 90% { background: #2B3036; color: #fff; } }
.rows { display: grid; gap: 6px; }
.row { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 10px 12px; background: #fff; border: 1px solid #E5E8EB; border-radius: 10px; font-size: .8rem; color: #2B3036; }
.row .code { font-family: var(--mono); font-size: .66rem; color: #8A939C; }
.row .lbl { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 700; }
.st { font-size: .66rem; font-weight: 700; padding: .22rem .6rem; border-radius: 999px; white-space: nowrap; }
.st-ok { background: #E3F3E9; color: #1E7A4C; } .st-run { background: #E6EEFA; color: #2A5DA8; } .st-wait { background: var(--orange-tint); color: var(--orange-dark); }

/* Aselmad mock */
.app-asl { background: #FFFDF8; }
.asl-body { display: grid; grid-template-columns: 1.1fr .9fr; gap: 14px; padding: 18px; min-height: 380px; }
.flash { display: flex; flex-direction: column; gap: 12px; padding: 14px; border-radius: 16px; background: #fff; border: 1px solid var(--line); }
.flash-art { position: relative; flex: 1; min-height: 150px; border-radius: 12px; overflow: hidden; background: linear-gradient(180deg, #F9C98A 0%, #F3A66B 45%, #E07A4B 100%); }
.flash-art .sun { position: absolute; left: 58%; top: 18%; width: 44px; height: 44px; border-radius: 50%; background: #FFF0C9; box-shadow: 0 0 40px 10px rgba(255,240,201,.6); animation: bob 6s ease-in-out infinite; }
.flash-art .mt { position: absolute; bottom: 0; }
.flash-art .mt1 { left: -10%; width: 70%; height: 62%; background: #9A4A2E; clip-path: polygon(0 100%, 45% 10%, 100% 100%); }
.flash-art .mt2 { left: 35%; width: 80%; height: 50%; background: #7D3822; clip-path: polygon(0 100%, 50% 0, 100% 100%); }
.flash-art .mt3 { left: 0; width: 100%; height: 22%; background: #5E2A1A; clip-path: polygon(0 40%, 30% 0, 60% 50%, 100% 10%, 100% 100%, 0 100%); }
.flash-art em { position: absolute; left: 10px; top: 10px; font-style: normal; font-family: var(--mono); font-size: .6rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #5E2A1A; background: rgba(255,253,248,.8); padding: .2rem .5rem; border-radius: 6px; }
.flash-word { display: flex; align-items: baseline; flex-wrap: wrap; gap: .3rem .8rem; }
.flash-word strong { font-family: var(--display); font-size: 1.9rem; letter-spacing: -.04em; }
.flash-word span { font-size: 1.3rem; color: var(--orange-dark); font-family: "Segoe UI", "Noto Naskh Arabic", "Geeza Pro", serif; }
.flash-word small { font-family: var(--mono); font-size: .7rem; color: var(--muted); }
.langs { display: flex; gap: 6px; flex-wrap: wrap; }
.langs span { font-size: .7rem; font-weight: 700; padding: .25rem .65rem; border-radius: 999px; background: #F3EEE3; color: var(--charcoal); }
.langs span.on { background: var(--carbon); color: var(--floral); }
.asl-side { display: grid; gap: 14px; grid-template-rows: 1fr 1fr; }
.asl-card { padding: 14px; border-radius: 16px; background: #fff; border: 1px solid var(--line); display: flex; flex-direction: column; }
.score { display: flex; align-items: center; gap: 14px; flex: 1; }
.ring { --p: 50; position: relative; flex: none; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: conic-gradient(var(--orange) calc(var(--p) * 1%), #F1EBDF 0); }
.ring::before { content: ""; position: absolute; inset: 7px; border-radius: 50%; background: #fff; }
.ring b { position: relative; font-family: var(--display); font-size: 1.1rem; letter-spacing: -.03em; }
.wave { display: flex; align-items: center; gap: 3px; height: 44px; flex: 1; }
.wave i { flex: 1; max-width: 5px; height: 100%; border-radius: 3px; background: var(--orange); transform-origin: center; animation: wave 1.2s ease-in-out infinite; }
.wave i:nth-child(odd) { background: #F4A97F; }
.wave i:nth-child(2) { animation-delay: -.2s; } .wave i:nth-child(3) { animation-delay: -.5s; } .wave i:nth-child(4) { animation-delay: -.1s; } .wave i:nth-child(5) { animation-delay: -.7s; } .wave i:nth-child(6) { animation-delay: -.3s; } .wave i:nth-child(7) { animation-delay: -.9s; }
.wave i:nth-child(8) { animation-delay: -.4s; } .wave i:nth-child(9) { animation-delay: -.6s; } .wave i:nth-child(10) { animation-delay: -.15s; } .wave i:nth-child(11) { animation-delay: -.8s; } .wave i:nth-child(12) { animation-delay: -.35s; } .wave i:nth-child(13) { animation-delay: -.55s; } .wave i:nth-child(14) { animation-delay: -.05s; }
@keyframes wave { 0%, 100% { transform: scaleY(.25); } 50% { transform: scaleY(1); } }
.ink { flex: 1; width: 100%; height: auto; background: repeating-linear-gradient(transparent 0 22px, #F1EBDF 22px 23px); border-radius: 8px; }
.ink path { fill: none; stroke: var(--carbon); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 420; stroke-dashoffset: 420; animation: draw 4.5s var(--ease) infinite; }
@keyframes draw { 0% { stroke-dashoffset: 420; } 55%, 85% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 0; opacity: 0; } }

/* Al Bayan mock */
.app-bay { background: #FCFBF7; }
.bay-body { display: grid; grid-template-columns: auto 1fr; gap: 14px; padding: 18px; min-height: 380px; font-family: "Segoe UI", "Noto Naskh Arabic", "Geeza Pro", Tahoma, sans-serif; }
.bay-ring { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 16px 22px; border-radius: 16px; background: #14523D; color: #F3E7C6; }
.ring-lg { width: 104px; height: 104px; background: conic-gradient(#D9B35B calc(var(--p) * 1%), rgba(255,255,255,.12) 0); }
.ring-lg::before { inset: 9px; background: #14523D; }
.ring-lg b { font-family: var(--display); font-size: 1.7rem; color: #fff; direction: ltr; }
.ring-lg b small { font-size: .9rem; color: #D9B35B; }
.bay-cap { font-size: .9rem; font-weight: 700; }
.bay-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.bay-stats > div { padding: 12px; border-radius: 14px; background: #fff; border: 1px solid #E8E2D2; display: flex; flex-direction: column; justify-content: center; }
.bay-stats strong { font-family: var(--display); font-size: 1.5rem; letter-spacing: -.03em; color: #14523D; direction: ltr; text-align: right; }
.bay-stats span { font-size: .8rem; color: #6B6559; font-weight: 700; }
.bay-att { grid-column: 1 / -1; padding: 14px; border-radius: 14px; background: #fff; border: 1px solid #E8E2D2; }
.bay-att small { font-family: inherit; font-size: .8rem; }
.dots { display: grid; grid-template-columns: repeat(15, 1fr); gap: 6px; }
.dots i { aspect-ratio: 1; border-radius: 6px; background: #1F7A5A; opacity: .85; animation: att 5s infinite; }
.dots i:nth-child(3n) { background: #2E9670; } .dots i:nth-child(7n) { background: #E8E2D2; } .dots i:nth-child(11n) { background: #D9B35B; }
.dots i:nth-child(4n) { animation-delay: .6s; } .dots i:nth-child(5n) { animation-delay: 1.2s; } .dots i:nth-child(6n) { animation-delay: 1.8s; }
@keyframes att { 0%, 100% { transform: scale(1); } 10% { transform: scale(.7); } 20% { transform: scale(1); } }
.bay-cert { grid-column: 1 / -1; display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 14px; background: linear-gradient(135deg, #FFF8E6, #F6EBCB); border: 1px solid #E8D9A8; }
.bay-cert b { display: block; font-size: 1.02rem; color: #3E3420; }
.bay-cert small { font-size: .8rem; color: #8A7748; }
.seal { flex: none; width: 40px; height: 40px; border-radius: 50%; background: radial-gradient(circle, #D9B35B 0 45%, #B38E3A 46% 60%, #D9B35B 61%); box-shadow: 0 0 0 3px #F6EBCB, 0 0 0 4px #D9B35B; animation: spin 18s linear infinite; }

/* EMIKhayr */
.browser { display: block; text-decoration: none; background: var(--carbon); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow-lg); transition: transform .35s var(--ease); }
.browser:hover { transform: translateY(-4px); }
.browser-bar { display: flex; align-items: center; gap: 7px; height: 40px; padding: 0 16px; background: #1B1A18; }
.browser-bar i { width: 10px; height: 10px; border-radius: 50%; background: #4A4741; }
.browser-bar i:first-child { background: var(--orange); }
.browser-url { margin-left: 12px; font-family: var(--mono); font-size: .72rem; color: var(--silver); background: #2C2B28; padding: .22rem .9rem; border-radius: 999px; }
.browser video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #111; }
.clips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 12px; }
.clips figure { margin: 0; }
.clips video { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 12px; background: #111; border: 1px solid var(--line); }
.clips figcaption { margin-top: 8px; font-family: var(--mono); font-weight: 700; font-size: .64rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }

/* Contact */
.contact { padding-top: 112px; }
.talk { display: grid; grid-template-columns: .85fr 1.15fr; background: #fff; border: 1px solid var(--line); border-radius: 28px; overflow: hidden; box-shadow: var(--shadow); }
.talk-left { position: relative; padding: 44px 40px; background: var(--carbon); color: var(--silver); display: flex; flex-direction: column; gap: 1.1rem; overflow: hidden; }
.talk-left::after { content: ""; position: absolute; right: -120px; bottom: -120px; width: 320px; height: 320px; border-radius: 50%; background: radial-gradient(circle, rgba(235,94,40,.35), transparent 70%); pointer-events: none; }
.talk-left .kicker-dark { color: var(--orange); margin-bottom: 0; font-size: .74rem; }
.talk-left h2 { color: var(--floral); font-size: clamp(2rem, 3.4vw, 2.9rem); }
.talk-left > p { font-size: 1.04rem; color: #C9C2B6; max-width: 32ch; }
.talk-list { display: grid; gap: .8rem; margin-top: auto; padding-top: 1.4rem; }
.talk-list li { display: grid; grid-template-columns: 22px 1fr; gap: .7rem; font-size: .95rem; color: #E4DED2; }
.talk-list svg { width: 22px; height: 22px; padding: 4px; border-radius: 50%; background: var(--orange); color: var(--ink); stroke-width: 2.8; }
.talk-right { display: flex; flex-direction: column; }
.talk-right form { display: flex; flex-direction: column; height: 100%; }
.cellgrid { display: grid; grid-template-columns: 1fr 1fr; }
.cell { display: block; border-bottom: 1px solid var(--line); }
.cell:nth-child(2) { border-right: 1px solid var(--line); }
.cell.full { grid-column: 1 / -1; }
.cell input, .cell select, .cell textarea { width: 100%; border: 0; background: transparent; font: inherit; font-size: 1.02rem; color: var(--carbon); padding: 1.15rem 1.5rem; resize: vertical; }
.cell select { appearance: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23252422' stroke-width='1.6'/%3E%3C/svg%3E") right 1.5rem center no-repeat; }
.cell input::placeholder, .cell textarea::placeholder { color: #8F877A; }
.cell:focus-within { background: var(--orange-tint); box-shadow: inset 3px 0 0 var(--orange); }
.cell input:focus, .cell select:focus, .cell textarea:focus { outline: none; }
.cell-tall textarea { min-height: 160px; }
.cell em { display: block; padding: 0 1.5rem .8rem; color: #B3261E; font-style: normal; font-size: .85rem; }
.talk-bottom { padding: 22px 24px 24px; display: grid; gap: 18px; margin-top: auto; }
.consent { display: grid; grid-template-columns: auto 1fr; gap: .7rem; align-items: start; color: var(--charcoal); font-size: .88rem; line-height: 1.45; }
.consent input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--orange); }
.consent em { grid-column: 1 / -1; color: #B3261E; font-style: normal; font-size: .85rem; }
.consent a { color: var(--orange-dark); }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-ok { margin: 2rem; padding: 28px; border-radius: 16px; background: var(--orange-tint); font-size: 1.05rem; }
.form-err { margin: 1rem 1.5rem 0; padding: 12px 14px; border-radius: 10px; background: #FBE4E2; color: #8C1D17; }

/* Footer */
.footer { padding: 80px 0 36px; background: var(--ink); color: var(--silver); }
.footer-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; padding-bottom: 44px; border-bottom: 1px solid var(--line-dark); flex-wrap: wrap; }
.footer-brand { display: grid; gap: 1.1rem; max-width: 26em; }
.footer-brand p { color: #A9A296; font-size: .98rem; }
.footer-logo img { width: 156px; }
.footer-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; padding: 44px 0; }
.footer-cols h4 { font-family: var(--mono); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--orange); margin-bottom: 1rem; }
.footer-cols a, .footer-cols p { display: block; text-decoration: none; color: var(--silver); padding: .22rem 0; font-size: .95rem; transition: color .2s ease; }
.footer-cols a:hover { color: var(--floral); }
.footer-legal { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-top: 24px; border-top: 1px solid var(--line-dark); color: #8E877B; font-size: .76rem; font-family: var(--mono); }

/* Legal pages */
.page { padding: 96px 0 128px; }
.prose { max-width: 780px; }
.prose h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); margin-bottom: 2.4rem; letter-spacing: -.045em; }
.prose h2 { font-size: 1.35rem; margin: 2.2rem 0 .7rem; letter-spacing: -0.01em; }
.prose p { color: var(--text); }
.prose a { color: var(--orange-dark); }

/* ================= RESPONSIVE ================= */
@media (max-width: 1120px) {
  .hero-grid { grid-template-columns: 1fr; gap: 64px; }
  .hero-copy { max-width: 760px; }
  .hero-visual { max-width: 680px; margin: 40px auto 0; width: 100%; }
  .float-a { left: -12px; } .float-b { right: 12px; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .project { grid-template-columns: 1fr; gap: 48px; }
  .project-rev .project-info { order: 0; }
  .project-visual { max-width: 720px; }
}
@media (max-width: 980px) {
  .nav-links, .nav-cta { display: none; }
  .nav-burger { display: block; }
  .sec-head, .about-grid { grid-template-columns: 1fr; gap: 20px; }
  .about-text { padding-top: 0; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stats > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .stats > div:nth-child(n+3) { border-top: 1px solid var(--line); margin-top: 26px; }
  .stages, .gains { grid-template-columns: 1fr 1fr; gap: 40px 20px; }
  .pipe { display: none; }
  .stage-node { margin: 0 0 20px; }
  .steps { grid-template-columns: 1fr; gap: 26px; padding-left: 0; }
  .steps::before, .steps::after { top: 24px; bottom: 24px; left: 23px; right: auto; width: 2px; height: auto; }
  .steps::after { transform: scaleY(0); transform-origin: top; }
  .steps.in::after { transform: scaleY(1); }
  .steps li { display: grid; grid-template-columns: 48px 1fr; column-gap: 20px; row-gap: .4rem; }
  .steps li > :not(.step-n) { grid-column: 2; }
  .step-n { grid-row: span 3; margin-bottom: 0; }
  .talk { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 18px; }
  .section { padding: 88px 0; }
  .hero { padding: 48px 0 64px; }
  .hero h1 { font-size: clamp(2.3rem, 10.5vw, 3rem); }
  .hero-ctas .btn { flex: 1 1 auto; }
  .float { display: none; }
  .flowmap { padding: 12px 8px 2px; }
  .log li { font-size: .78rem; }
  .marquee-track li { padding: 0 28px; height: 70px; }
  .marquee-track img { transform: scale(.82); }
  .marquee-track li:hover img { transform: scale(.86); }
  .duo { grid-template-columns: 1fr; }
  .duo .duo-x { text-align: center; line-height: .6; }
  .stats > div { padding-right: 12px; }
  .stats > div + div { padding-left: 12px; }
  .bento { grid-template-columns: 1fr; }
  .card-feature, .card-wide { grid-column: auto; grid-row: auto; }
  .card-feature { padding: 26px 22px; }
  .agent-row { grid-template-columns: 1fr 30%; }
  .a-task { display: none; }
  .card-wide-body { grid-template-columns: 1fr; }
  .stages, .gains { grid-template-columns: 1fr; }
  .project { padding: 56px 0; }
  .app-gir .app-body { grid-template-columns: 1fr; }
  .app-side { display: none; }
  .kpis { grid-template-columns: 1fr 1fr; } .kpis > div:nth-child(3) { display: none; }
  .asl-body, .bay-body { grid-template-columns: 1fr; }
  .asl-side { grid-template-rows: auto; }
  .ink { min-height: 70px; }
  .bay-ring { flex-direction: row; }
  .ring-lg { width: 84px; height: 84px; }
  .dots { grid-template-columns: repeat(10, 1fr); }
  .circuit li { font-size: .56rem; }
  .dots i:nth-child(n+21) { display: none; }
  .toast { position: relative; left: 0; right: 0; bottom: 0; margin-top: 14px; max-width: none; }
  .clips { gap: 8px; }
  .talk-left { padding: 32px 24px; }
  .cellgrid, .footer-cols { grid-template-columns: 1fr; }
  .cell:nth-child(2) { border-right: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .log li { opacity: 1; transform: none; }
  .a-bar i, .pipe-fill, .steps::after { transform: none; }
  .ink path { stroke-dashoffset: 0; }
  .marquee-track { flex-wrap: wrap; justify-content: center; width: auto; }
  .marquee-track li[aria-hidden="true"] { display: none; }
  .marquee { -webkit-mask-image: none; mask-image: none; }
}
