/* Nirmaan Ops — marketing site
   Visual system: obsidian / charcoal / warm ivory, construction amber accent,
   architectural hairlines, crop marks and technical grids. */

:root {
  --obsidian: #171918;
  --obsidian-2: #121413;
  --charcoal: #242725;
  --charcoal-2: #2c2f2c;
  --ivory: #F5F3ED;
  --ivory-2: #ECE8DE;
  --ivory-3: #E2DDD0;
  --concrete: #A5A49D;
  --concrete-2: #7d7c76;
  --amber: #D99A45;
  --amber-2: #E8B26A;
  --olive: #777E67;
  --olive-2: #9BA486;
  --brick: #D9663E;
  --logo-orange: #D9531E;

  --line-d: rgba(245, 243, 237, 0.10);
  --line-d2: rgba(245, 243, 237, 0.18);
  --line-l: rgba(23, 25, 24, 0.12);
  --line-l2: rgba(23, 25, 24, 0.22);

  --f-display: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --f-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --f-hand: "Caveat", "Segoe Print", cursive;

  --wrap: 1320px;
  --gutter: clamp(16px, 4vw, 48px);
  --nav-h: 72px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --ease-io: cubic-bezier(.7, 0, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--nav-h); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  margin: 0;
  background: var(--obsidian);
  color: var(--ivory);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4, h5, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--amber); color: var(--obsidian); }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.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: fixed; left: 12px; top: -60px; z-index: 300; padding: 10px 14px; background: var(--amber); color: var(--obsidian); font-weight: 600; transition: top .2s; }
.skip:focus { top: 12px; }

.mono { font-family: var(--f-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.muted { color: var(--concrete); }
.amber { color: var(--amber); }

/* ---------- section scaffolding ---------- */
section { position: relative; }
.sec { padding: clamp(96px, 13vw, 168px) 0; }
.light { background: var(--ivory); color: var(--obsidian); }
.light .muted { color: #5f5e58; }
.dark-2 { background: var(--charcoal); }

.kicker { display: inline-flex; align-items: center; gap: 12px; font-family: var(--f-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--concrete); }
.kicker::before { content: ""; width: 8px; height: 8px; background: var(--amber); }
.light .kicker { color: #5f5e58; }
.kicker b { color: var(--amber); font-weight: 500; }
.light .kicker b { color: #a86f22; }

.h2 { font-family: var(--f-display); font-weight: 500; font-size: clamp(2.2rem, 4.6vw, 4.5rem); line-height: .98; letter-spacing: -.035em; }
.h2 .dim { color: var(--concrete); }
.light .h2 .dim { color: #8a8880; }
.h3 { font-family: var(--f-display); font-weight: 500; font-size: clamp(1.7rem, 3vw, 2.6rem); line-height: 1.05; letter-spacing: -.025em; }
.lede { font-size: clamp(1.05rem, 1.4vw, 1.2rem); line-height: 1.6; color: var(--concrete); max-width: 56ch; }
.light .lede { color: #55544e; }
.sec-head { display: grid; gap: 28px; margin-bottom: clamp(56px, 8vw, 96px); }
.sec-head.split { grid-template-columns: 1fr; align-items: end; }
@media (min-width: 960px) { .sec-head.split { grid-template-columns: 1.35fr 1fr; gap: 64px; } }

/* split text */
.split-line { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.w { display: inline-block; white-space: nowrap; }
.ch { display: inline-block; will-change: transform; }

/* ---------- buttons ---------- */
.btn { position: relative; display: inline-flex; align-items: center; gap: 12px; height: 54px; padding: 0 26px; font-family: var(--f-display); font-weight: 500; font-size: 16px; letter-spacing: -.005em; border-radius: 2px; transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease); white-space: nowrap; }
.btn svg { width: 16px; height: 16px; transition: transform .35s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn-primary { background: var(--amber); color: var(--obsidian); }
.btn-primary:hover { background: var(--amber-2); }
.btn-line { border: 1px solid var(--line-d2); color: var(--ivory); background: transparent; }
.btn-line:hover { border-color: var(--ivory); }
.light .btn-line { border-color: var(--line-l2); color: var(--obsidian); }
.light .btn-line:hover { border-color: var(--obsidian); }
.btn-ink { background: var(--obsidian); color: var(--ivory); }
.btn-ink:hover { background: var(--charcoal); }
.btn-sm { height: 42px; padding: 0 18px; font-size: 14px; }
.magnet { display: inline-block; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-family: var(--f-display); font-weight: 500; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.link-arrow svg { width: 14px; height: 14px; transition: transform .3s var(--ease); }
.link-arrow:hover svg { transform: translateX(3px); }

/* ---------- crop-mark frames ---------- */
.ticks {
  --t: var(--amber); --s: 12px;
  background:
    linear-gradient(var(--t), var(--t)) top left / var(--s) 1px no-repeat,
    linear-gradient(var(--t), var(--t)) top left / 1px var(--s) no-repeat,
    linear-gradient(var(--t), var(--t)) top right / var(--s) 1px no-repeat,
    linear-gradient(var(--t), var(--t)) top right / 1px var(--s) no-repeat,
    linear-gradient(var(--t), var(--t)) bottom left / var(--s) 1px no-repeat,
    linear-gradient(var(--t), var(--t)) bottom left / 1px var(--s) no-repeat,
    linear-gradient(var(--t), var(--t)) bottom right / var(--s) 1px no-repeat,
    linear-gradient(var(--t), var(--t)) bottom right / 1px var(--s) no-repeat;
}
.tech-grid {
  background-image:
    linear-gradient(var(--line-d) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-d) 1px, transparent 1px);
  background-size: 64px 64px;
}
.illus { display: inline-flex; align-items: center; gap: 8px; font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--concrete); }
.illus::before { content: ""; width: 6px; height: 6px; border: 1px solid currentColor; transform: rotate(45deg); }
.light .illus { color: #6d6c66; }

/* ---------- loader ---------- */
.loader { position: fixed; inset: 0; z-index: 400; background: var(--obsidian); display: none; place-items: center; }
.js .loader { display: grid; }
.loader-in { display: grid; justify-items: center; gap: 22px; }
.loader svg { width: 86px; height: auto; overflow: visible; }
.loader svg .lm { fill: none; stroke: var(--ivory); stroke-width: 6; stroke-dasharray: 1600; stroke-dashoffset: 1600; animation: lm-draw 1.1s var(--ease) forwards; }
.loader svg .la { stroke-dasharray: 700; stroke-dashoffset: 700; animation: lm-draw 0.9s .35s var(--ease) forwards; }
.loader-bar { width: 160px; height: 1px; background: var(--line-d2); position: relative; overflow: hidden; }
.loader-bar i { position: absolute; inset: 0; background: var(--amber); transform-origin: left; transform: scaleX(0); animation: lb 1.15s var(--ease) forwards; }
.loader .mono { color: var(--concrete); }
@keyframes lm-draw { to { stroke-dashoffset: 0; } }
@keyframes lb { to { transform: scaleX(1); } }
.loaded .loader { pointer-events: none; }

/* ---------- custom cursor ---------- */
.cursor { position: fixed; left: 0; top: 0; z-index: 350; pointer-events: none; display: none; }
.has-cursor .cursor { display: block; }
.cursor-ring { position: absolute; width: 38px; height: 38px; margin: -19px 0 0 -19px; border: 1px solid var(--amber); border-radius: 50%; opacity: 0; transform: scale(.6); transition: opacity .3s, transform .35s var(--ease), width .35s var(--ease), height .35s var(--ease), margin .35s var(--ease), background .3s; display: grid; place-items: center; }
.cursor-ring span { font-family: var(--f-mono); font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--obsidian); opacity: 0; transition: opacity .2s; }
.cursor.on .cursor-ring { opacity: 1; transform: scale(1); }
.cursor.hot .cursor-ring { width: 72px; height: 72px; margin: -36px 0 0 -36px; background: var(--amber); }
.cursor.hot .cursor-ring span { opacity: 1; }

/* ---------- nav ---------- */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 200; height: var(--nav-h); transition: background .4s var(--ease), border-color .4s var(--ease), transform .45s var(--ease); border-bottom: 1px solid transparent; }
.nav.solid { background: rgba(23, 25, 24, .82); -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%); border-bottom-color: var(--line-d); }
.nav.hide { transform: translateY(-100%); }
.nav-in { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand svg { width: 36px; height: auto; }
.brand .word { font-family: var(--f-display); font-weight: 600; font-size: 17px; letter-spacing: .02em; }
.brand .word span { color: var(--concrete); font-weight: 500; }
.nav-links { display: none; gap: 6px; }
.nav-links a { position: relative; padding: 10px 16px; font-size: 14.5px; color: rgba(245,243,237,.72); transition: color .25s; }
.nav-links a::after { content: ""; position: absolute; left: 16px; right: 16px; bottom: 4px; height: 1px; background: var(--amber); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease); }
.nav-links a:hover, .nav-links a.active { color: var(--ivory); }
.nav-links a.active::after { transform: scaleX(1); }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav-cta .btn { display: none; }
.menu-btn { width: 46px; height: 46px; display: grid; place-items: center; border: 1px solid var(--line-d2); border-radius: 2px; }
.menu-btn i { display: block; width: 18px; height: 1.5px; background: var(--ivory); position: relative; transition: background .2s; }
.menu-btn i::before, .menu-btn i::after { content: ""; position: absolute; left: 0; width: 18px; height: 1.5px; background: var(--ivory); transition: transform .35s var(--ease), top .35s var(--ease); }
.menu-btn i::before { top: -6px; } .menu-btn i::after { top: 6px; }
.menu-open .menu-btn i { background: transparent; }
.menu-open .menu-btn i::before { top: 0; transform: rotate(45deg); }
.menu-open .menu-btn i::after { top: 0; transform: rotate(-45deg); }
@media (min-width: 980px) {
  .nav-links { display: flex; position: absolute; left: 50%; transform: translateX(-50%); }
  .nav-cta .btn { display: inline-flex; }
  .menu-btn { display: none; }
}
.m-menu { position: fixed; inset: 0; z-index: 190; background: var(--obsidian); padding: calc(var(--nav-h) + 24px) var(--gutter) 32px; display: flex; flex-direction: column; justify-content: space-between; visibility: hidden; opacity: 0; transition: opacity .35s var(--ease), visibility 0s .35s; }
.menu-open .m-menu { visibility: visible; opacity: 1; transition: opacity .35s var(--ease); }
.m-menu nav a { display: flex; justify-content: space-between; align-items: baseline; padding: 18px 0; border-bottom: 1px solid var(--line-d); font-family: var(--f-display); font-size: clamp(2rem, 9vw, 3rem); letter-spacing: -.03em; }
.m-menu nav a span { font-family: var(--f-mono); font-size: 12px; color: var(--concrete); letter-spacing: .1em; }
.m-menu .btn { width: 100%; justify-content: center; }
@media (min-width: 980px) { .m-menu { display: none; } }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; padding: calc(var(--nav-h) + 32px) 0 clamp(36px, 6vh, 64px); overflow: hidden; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -2; background: radial-gradient(120% 90% at 72% 40%, #232624 0%, var(--obsidian) 55%, var(--obsidian-2) 100%); }
.hero-grid { position: absolute; inset: 0; z-index: -1; opacity: .55; -webkit-mask-image: radial-gradient(90% 80% at 60% 45%, #000 30%, transparent 85%); mask-image: radial-gradient(90% 80% at 60% 45%, #000 30%, transparent 85%); }
#hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero-scrim { position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(180deg, rgba(18,20,19,.0) 40%, rgba(18,20,19,.85) 100%), linear-gradient(90deg, rgba(18,20,19,.8) 0%, rgba(18,20,19,.35) 45%, rgba(18,20,19,0) 62%); }
.hero-meta { position: absolute; top: calc(var(--nav-h) + 18px); left: 0; right: 0; }
.hero-meta .wrap { display: flex; justify-content: space-between; gap: 16px; color: var(--concrete); }
.hero-meta .coord { display: none; }
@media (min-width: 760px) { .hero-meta .coord { display: inline; } }
.hero h1 { font-family: var(--f-display); font-weight: 500; font-size: clamp(3.1rem, 8vw, 8.4rem); line-height: .9; letter-spacing: -.045em; margin-bottom: clamp(24px, 3.5vw, 40px); }
.hero h1 .l2 { -webkit-text-stroke: 1.2px rgba(245,243,237,.85); color: transparent; }
.hero h1 .l3 { color: var(--amber); }
.hero-foot { display: grid; gap: 28px; align-items: end; }
.hero-sub { font-size: clamp(1.05rem, 1.45vw, 1.25rem); color: rgba(245,243,237,.78); max-width: 46ch; line-height: 1.55; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
@media (min-width: 1100px) { .hero-foot { grid-template-columns: 1fr auto; } }

.scroll-ind { display: none; align-items: center; gap: 14px; color: var(--concrete); }
.scroll-ind .rail { width: 1px; height: 54px; background: var(--line-d2); position: relative; overflow: hidden; }
.scroll-ind .rail::after { content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--amber); animation: rail 2.2s var(--ease-io) infinite; }
@keyframes rail { to { top: 100%; } }
@media (min-width: 1100px) { .scroll-ind { display: inline-flex; } }

/* floating hero widgets */
.hero-float { position: absolute; z-index: 1; display: none; }
@media (min-width: 1100px) { .hero-float { display: block; } }
.chip { display: flex; align-items: center; gap: 12px; padding: 12px 16px 12px 12px; background: rgba(36,39,37,.72); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border: 1px solid var(--line-d2); border-radius: 2px; font-size: 13px; line-height: 1.35; max-width: 270px; box-shadow: 0 20px 50px -20px rgba(0,0,0,.6); }
.chip .ico { flex: none; width: 34px; height: 34px; display: grid; place-items: center; background: rgba(217,154,69,.14); color: var(--amber); }
.chip .ico.ok { background: rgba(155,164,134,.16); color: var(--olive-2); }
.chip .ico svg { width: 17px; height: 17px; }
.chip b { display: block; font-weight: 600; font-size: 13px; }
.chip small { color: var(--concrete); font-size: 12px; }
.float-a { top: 19%; right: 40%; animation: bob 7s ease-in-out infinite; }
.float-b { top: 17%; right: 5%; animation: bob 8s -2s ease-in-out infinite; }
.float-c { top: 52%; right: 2%; animation: bob 9s -4s ease-in-out infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

.hero-dash { width: 340px; padding: 18px; background: rgba(23,25,24,.82); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border: 1px solid var(--line-d2); box-shadow: 0 40px 80px -30px rgba(0,0,0,.8); }
.hd-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.hd-top b { font-family: var(--f-display); font-weight: 500; font-size: 15px; }
.hd-row { display: grid; grid-template-columns: 84px 1fr; gap: 16px; align-items: center; }
.ring { position: relative; width: 84px; height: 84px; }
.ring svg { width: 84px; height: 84px; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 6; }
.ring .bg { stroke: var(--line-d2); }
.ring .fg { stroke: var(--amber); stroke-linecap: butt; stroke-dasharray: 226; stroke-dashoffset: 226; transition: stroke-dashoffset 1.8s var(--ease); }
.in .ring .fg { stroke-dashoffset: var(--off, 80); }
.ring span { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--f-display); font-size: 20px; font-weight: 500; }
.hd-lines { display: grid; gap: 9px; font-size: 12px; }
.hd-lines div { display: grid; grid-template-columns: 60px 1fr 34px; gap: 8px; align-items: center; color: var(--concrete); }
.hd-lines em { font-style: normal; text-align: right; color: var(--ivory); font-family: var(--f-mono); font-size: 11px; }

/* bars (shared) */
.bar { height: 4px; background: var(--line-d2); position: relative; overflow: hidden; }
.light .bar { background: var(--line-l); }
.bar i { position: absolute; inset: 0 auto 0 0; width: var(--v, 0%); background: var(--amber); transform-origin: left; transform: scaleX(0); transition: transform 1.4s var(--ease); }
.bar i.ok { background: var(--olive-2); }
.light .bar i.ok { background: var(--olive); }
.bar i.bad { background: var(--brick); }
.in .bar i, .bar.in i { transform: scaleX(1); }

/* ---------- problem ---------- */
.problem { overflow: hidden; }
.prob-pin { position: relative; }
.prob-inner { padding-top: clamp(96px, 12vw, 140px); padding-bottom: clamp(96px, 12vw, 140px); }
.prob-grid { display: grid; gap: 48px; }
@media (min-width: 1000px) {
  .prob-pin { height: 100vh; min-height: 700px; display: flex; align-items: center; }
  .prob-inner { padding-top: calc(var(--nav-h) + 16px); padding-bottom: 32px; }
  .prob-grid { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.25fr); align-items: center; width: 100%; }
}
.prob-copy .h2 { margin: 26px 0 26px; }
.prob-states { position: relative; margin-top: 30px; min-height: 120px; }
.prob-state { font-size: 17px; line-height: 1.55; color: #55544e; max-width: 44ch; }
.prob-state b { color: var(--obsidian); font-weight: 600; }
.prob-state + .prob-state { margin-top: 18px; }
@media (min-width: 1000px) {
  .prob-state { position: absolute; inset: 0 auto auto 0; }
  .prob-state + .prob-state { margin-top: 0; }
  .js-anim .prob-state.s2 { opacity: 0; }
}
.prob-stage { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@media (min-width: 1000px) { .prob-stage { display: block; height: min(66vh, 600px); } }
.frag { position: relative; background: #fff; color: var(--obsidian); border: 1px solid var(--line-l); box-shadow: 0 30px 60px -30px rgba(23,25,24,.35), 0 2px 6px rgba(23,25,24,.06); padding: 14px; font-size: 12.5px; line-height: 1.4; }
.frag .ft { display: flex; justify-content: space-between; align-items: center; font-family: var(--f-mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: #6d6c66; margin-bottom: 10px; }
@media (min-width: 1000px) {
  .frag { position: absolute; width: 260px; }
  .f-chat { left: 2%; top: 4%; transform: rotate(-5deg); }
  .f-reg { left: 52%; top: 0%; transform: rotate(4deg); width: 270px; }
  .f-xls { left: 30%; top: 36%; transform: rotate(-2deg); width: 300px; }
  .f-inv { left: 0%; top: 56%; transform: rotate(3deg); }
  .f-note { left: 64%; top: 54%; transform: rotate(-6deg); width: 210px; }
}
@media (max-width: 999px) { .f-xls { grid-column: span 2; } }
.f-chat { background: #EFEAE0; }
.bub { background: #fff; padding: 7px 10px; border-radius: 8px 8px 8px 2px; margin-bottom: 6px; max-width: 92%; box-shadow: 0 1px 1px rgba(0,0,0,.06); }
.bub.me { margin-left: auto; background: #E3EBD6; border-radius: 8px 8px 2px 8px; }
.bub small { display: block; color: #8a8880; font-size: 10px; margin-top: 2px; text-align: right; }
.bub .ph { height: 54px; margin: 2px 0 4px; background: repeating-linear-gradient(135deg, #cfc8b8 0 8px, #c4bcaa 8px 16px); }
.f-reg { background: #FBF7EA; background-image: repeating-linear-gradient(180deg, transparent 0 21px, rgba(60,90,150,.18) 21px 22px); padding-top: 12px; }
.f-reg .hand { font-family: var(--f-hand); font-size: 18px; line-height: 22px; color: #2c3a66; }
.f-reg .hand s { color: #a0442a; }
.f-xls { padding: 0; overflow: hidden; }
.f-xls .ft { padding: 10px 12px 0; }
.xls { display: grid; grid-template-columns: 26px 1.4fr 1fr 1fr .8fr; font-family: var(--f-body); font-size: 11px; }
.xls span { border-right: 1px solid #dfe3dc; border-bottom: 1px solid #dfe3dc; padding: 4px 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.xls .hd { background: #e7ece4; font-weight: 600; color: #3e5a36; }
.xls .rn { background: #f1f3ef; color: #8a8880; text-align: center; }
.xls .err { color: #b3261e; }
.f-inv { background: #fff; }
.f-inv .inv-h { font-family: var(--f-display); font-weight: 600; letter-spacing: .08em; font-size: 13px; }
.f-inv dl { display: grid; grid-template-columns: 1fr auto; gap: 3px 10px; margin: 10px 0 0; font-size: 11.5px; }
.f-inv dd { margin: 0; text-align: right; font-family: var(--f-mono); }
.f-inv .stamp { position: absolute; right: 12px; bottom: 30px; transform: rotate(-12deg); border: 2px solid #b3261e; color: #b3261e; font-family: var(--f-mono); font-weight: 600; font-size: 11px; padding: 3px 8px; letter-spacing: .1em; opacity: .8; }
.f-note { background: #F3D98A; border: 0; font-family: var(--f-hand); font-size: 20px; line-height: 1.15; color: #3b3418; padding: 18px 16px 22px; }
.f-note .ft { color: #6b5d24; }

.unify { position: relative; background: var(--obsidian); color: var(--ivory); padding: 22px; border: 1px solid var(--obsidian); box-shadow: 0 50px 90px -40px rgba(23,25,24,.6); }
@media (min-width: 1000px) { .unify { position: absolute; left: 50%; top: 50%; width: min(440px, 92%); transform: translate(-50%, -50%); } }
@media (max-width: 999px) { .unify { grid-column: span 2; margin-top: 18px; } }
.js-anim .unify { visibility: hidden; }
.u-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.u-head .brand svg { width: 28px; }
.u-head .brand .word { font-size: 14px; }
.u-rows { display: grid; gap: 2px; }
.u-row { display: grid; grid-template-columns: 30px 1fr auto; gap: 12px; align-items: center; padding: 12px; background: var(--charcoal); font-size: 14px; }
.u-row .n { font-family: var(--f-mono); font-size: 11px; color: var(--amber); }
.u-row em { font-style: normal; font-family: var(--f-mono); font-size: 11px; color: var(--olive-2); }

/* ---------- platform ---------- */
.platform { background: var(--obsidian); }
.mod { display: grid; gap: clamp(40px, 6vw, 88px); align-items: center; padding: clamp(64px, 9vw, 120px) 0; border-top: 1px solid var(--line-d); }
.mod:first-of-type { border-top: 0; padding-top: 0; }
@media (min-width: 1000px) {
  .mod { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .mod.rev { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .mod.rev .mod-copy { order: 2; }
}
.mod-num { display: flex; align-items: center; gap: 16px; font-family: var(--f-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--concrete); margin-bottom: 22px; }
.mod-num b { font-family: var(--f-display); font-weight: 400; font-size: 54px; line-height: 1; color: var(--amber); letter-spacing: -.04em; }
.mod-copy .h3 { margin-bottom: 20px; }
.mod-copy p { color: var(--concrete); max-width: 46ch; }
.caps { display: grid; gap: 0; margin-top: 30px; border-top: 1px solid var(--line-d); }
.caps li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line-d); font-size: 15px; transition: padding .35s var(--ease), color .3s; }
.caps li:hover { padding-left: 6px; }
.caps li::before { content: ""; width: 10px; height: 1px; background: var(--amber); margin-top: 12px; }

.app { background: var(--charcoal); border: 1px solid var(--line-d2); box-shadow: 0 60px 120px -50px rgba(0,0,0,.9); position: relative; transition: transform .6s var(--ease), border-color .4s; }
.app:hover { border-color: rgba(217,154,69,.45); }
.app-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line-d); }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 12.5px; color: var(--concrete); }
.crumbs b { color: var(--ivory); font-weight: 500; }
.crumbs i { font-style: normal; opacity: .45; }
.app-body { padding: 18px; }
.pill { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; font-size: 11.5px; font-weight: 500; border-radius: 2px; white-space: nowrap; }
.pill.am { background: rgba(217,154,69,.14); color: var(--amber-2); }
.pill.ok { background: rgba(155,164,134,.16); color: var(--olive-2); }
.pill.bad { background: rgba(217,102,62,.16); color: #ec8a65; }
.pill.mute { background: rgba(245,243,237,.06); color: var(--concrete); }
.pill .d { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* progress showcase */
.pg-grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .pg-grid { grid-template-columns: 1.2fr 1fr; } }
.acts { display: grid; gap: 12px; }
.act { display: grid; gap: 7px; }
.act-h { display: flex; justify-content: space-between; font-size: 13px; }
.act-h em { font-style: normal; font-family: var(--f-mono); font-size: 11.5px; color: var(--concrete); }
.photos { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.photo { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #3a3d39; }
.photo svg { width: 100%; height: 100%; }
.photo .stamp { position: absolute; left: 6px; bottom: 6px; right: 6px; font-family: var(--f-mono); font-size: 9px; line-height: 1.3; color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.7); }
.pva { margin-top: 4px; padding: 12px; border: 1px solid var(--line-d); }
.pva-h { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--concrete); margin-bottom: 6px; }
.lg { display: inline-flex; gap: 10px; font-size: 11px; }
.lg i { display: inline-block; width: 10px; height: 2px; margin-right: 4px; vertical-align: middle; }
.chart path.line { fill: none; stroke-width: 2; stroke-dasharray: var(--len, 600); stroke-dashoffset: var(--len, 600); transition: stroke-dashoffset 2s var(--ease); }
.in .chart path.line { stroke-dashoffset: 0; }
.chart path.area { opacity: 0; transition: opacity 1.2s .8s; }
.in .chart path.area { opacity: 1; }
.approve { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; padding: 12px; background: var(--charcoal-2); font-size: 13px; }

/* materials */
.stock { width: 100%; border-collapse: collapse; font-size: 13px; }
.stock th { text-align: left; font-weight: 500; font-size: 11px; color: var(--concrete); font-family: var(--f-mono); letter-spacing: .06em; text-transform: uppercase; padding: 0 8px 10px; border-bottom: 1px solid var(--line-d); }
.stock td { padding: 11px 8px; border-bottom: 1px solid var(--line-d); vertical-align: middle; }
.stock td.num { font-family: var(--f-mono); font-size: 12px; text-align: right; white-space: nowrap; }
.stock th.num { text-align: right; }
.stock tr.low td { background: rgba(217,154,69,.07); }
.stock .bar { width: 80px; }
.low-pulse { position: relative; }
.low-pulse::after { content: ""; position: absolute; inset: -3px; border: 1px solid var(--amber); animation: pulse 2s ease-out infinite; }
@keyframes pulse { 0% { opacity: .8; transform: scale(1); } 100% { opacity: 0; transform: scale(1.25); } }
.ledger { display: grid; gap: 2px; margin-top: 16px; }
.led { display: grid; grid-template-columns: 92px 1fr auto; gap: 12px; align-items: center; padding: 10px 12px; background: var(--charcoal-2); font-size: 12.5px; }
.led .t { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; }
.led .q { font-family: var(--f-mono); font-size: 12px; }
.t.rcv { color: var(--olive-2); } .t.con { color: var(--amber); } .t.trf { color: #b9c2d0; } .t.adj { color: #ec8a65; }

/* invoices */
.inv-band { display: grid; gap: 28px; }
@media (min-width: 1000px) { .inv-band { grid-template-columns: 1fr 1.15fr 1fr; align-items: stretch; } }
.big-num { font-family: var(--f-display); font-weight: 500; font-size: clamp(2.8rem, 5vw, 4.6rem); letter-spacing: -.04em; line-height: 1; }
.aging { display: grid; gap: 12px; margin-top: 24px; }
.aging div { display: grid; grid-template-columns: 80px 1fr 64px; gap: 12px; align-items: center; font-size: 12.5px; color: var(--concrete); }
.aging em { font-style: normal; text-align: right; font-family: var(--f-mono); font-size: 12px; color: var(--ivory); }
.invoice { background: var(--ivory); color: var(--obsidian); padding: 22px; position: relative; box-shadow: 0 60px 100px -50px rgba(0,0,0,.9); }
.invoice .ih { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--line-l2); }
.invoice .ih b { font-family: var(--f-display); font-weight: 600; font-size: 18px; letter-spacing: -.01em; }
.invoice dl { display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; margin: 14px 0 0; font-size: 13px; }
.invoice dt { color: #55544e; }
.invoice dd { margin: 0; font-family: var(--f-mono); font-size: 12.5px; text-align: right; }
.invoice .tot { border-top: 1px solid var(--line-l2); padding-top: 10px; font-weight: 600; color: var(--obsidian); }
.invoice .att { display: flex; align-items: center; gap: 8px; margin-top: 16px; padding: 10px; background: var(--ivory-2); font-size: 12px; }
.invoice .att svg { width: 16px; height: 16px; }
.tl { position: relative; display: grid; gap: 0; padding-left: 22px; }
.tl::before { content: ""; position: absolute; left: 5px; top: 6px; bottom: 6px; width: 1px; background: var(--line-d2); }
.tl li { position: relative; padding: 0 0 22px; }
.tl li::before { content: ""; position: absolute; left: -22px; top: 5px; width: 11px; height: 11px; border: 1px solid var(--amber); background: var(--obsidian); }
.tl li.done::before { background: var(--amber); }
.tl li.rev::before { border-color: var(--brick); background: var(--brick); }
.tl b { display: block; font-weight: 500; font-size: 14px; }
.tl small { color: var(--concrete); font-size: 12.5px; }
.tl .amt { font-family: var(--f-mono); font-size: 12.5px; color: var(--ivory); }
.tl .rev .amt { color: #ec8a65; text-decoration: line-through; }

/* quality */
.q-grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .q-grid { grid-template-columns: 1fr 1.1fr; } }
.check { display: grid; gap: 0; }
.check li { display: grid; grid-template-columns: 20px 1fr auto; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line-d); font-size: 13px; }
.cb { width: 16px; height: 16px; border: 1px solid var(--line-d2); display: grid; place-items: center; }
.cb.y { background: var(--olive); border-color: var(--olive); }
.cb.n { background: var(--brick); border-color: var(--brick); }
.cb svg { width: 11px; height: 11px; color: var(--obsidian); }
.ba { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #333; user-select: none; touch-action: pan-y; }
.ba svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.ba .after-w { position: absolute; inset: 0; clip-path: inset(0 0 0 var(--x, 50%)); }
.ba .handle { position: absolute; top: 0; bottom: 0; left: var(--x, 50%); width: 2px; margin-left: -1px; background: var(--amber); pointer-events: none; }
.ba .handle::after { content: "⟷"; position: absolute; top: 50%; left: 50%; width: 34px; height: 34px; margin: -17px 0 0 -17px; display: grid; place-items: center; background: var(--amber); color: var(--obsidian); font-size: 15px; border-radius: 50%; }
.ba .tag { position: absolute; top: 8px; font-family: var(--f-mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; padding: 3px 7px; background: rgba(23,25,24,.75); color: var(--ivory); }
.ba .tag.l { left: 8px; } .ba .tag.r { right: 8px; }
.ba input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.ba input:focus-visible + .handle { outline: 2px solid var(--ivory); }
.flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; margin-top: 14px; }
.flow span { position: relative; padding: 10px 8px; background: var(--charcoal-2); font-size: 11.5px; text-align: center; color: var(--concrete); transition: background .5s, color .5s; }
.flow span.on { background: rgba(155,164,134,.2); color: var(--ivory); }
.flow span.now { background: var(--amber); color: var(--obsidian); font-weight: 600; }
.verifier { display: flex; align-items: center; gap: 10px; margin-top: 12px; font-size: 12.5px; color: var(--concrete); }
.av { width: 28px; height: 28px; display: grid; place-items: center; font-size: 11px; font-weight: 600; background: var(--olive); color: var(--ivory); border-radius: 50%; }
.av.b { background: #5b6a7a; }

/* dashboard teaser */
.mod-5 { display: grid; gap: 40px; align-items: end; }
@media (min-width: 1000px) { .mod-5 { grid-template-columns: 1fr 1fr; } }
.mosaic { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; }
.mosaic div { aspect-ratio: 1; background: var(--charcoal); display: grid; align-content: end; padding: 12px; font-size: 12px; color: var(--concrete); }
.mosaic div b { display: block; font-family: var(--f-display); font-weight: 500; font-size: clamp(18px, 2vw, 26px); color: var(--ivory); }
.mosaic div.hl { background: var(--amber); color: var(--obsidian); }
.mosaic div.hl b { color: var(--obsidian); }

/* ---------- building explorer ---------- */
.explore { background: var(--charcoal); overflow: hidden; }
.explore .tech-grid { position: absolute; inset: 0; opacity: .5; pointer-events: none; -webkit-mask-image: linear-gradient(180deg, transparent, #000 20%, #000 80%, transparent); mask-image: linear-gradient(180deg, transparent, #000 20%, #000 80%, transparent); }
.ex-shell { position: relative; display: grid; gap: 2px; background: var(--line-d); border: 1px solid var(--line-d2); }
@media (min-width: 1100px) { .ex-shell { grid-template-columns: 230px minmax(0, 1fr) 340px; min-height: 620px; } }
.ex-col { background: var(--obsidian); padding: 20px; position: relative; }
.ex-label { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 16px; color: var(--concrete); }
.elev { display: grid; gap: 4px; }
@media (max-width: 1099px) { .elev { grid-template-columns: repeat(4, 1fr); } }
.floor-btn { position: relative; display: grid; grid-template-columns: 36px 1fr 38px; gap: 10px; align-items: center; height: 54px; padding: 0 10px; border: 1px solid var(--line-d); background: var(--charcoal); text-align: left; transition: border-color .3s, background .3s; overflow: hidden; }
.floor-btn .fill { position: absolute; inset: 0 auto 0 0; width: var(--p, 0%); background: rgba(155,164,134,.13); transition: width 1s var(--ease); }
.floor-btn > * { position: relative; }
.floor-btn .fl { font-family: var(--f-display); font-weight: 500; font-size: 15px; }
.floor-btn .win { display: grid; grid-template-columns: repeat(6, 1fr); gap: 3px; }
.floor-btn .win i { height: 12px; border: 1px solid var(--line-d2); }
.floor-btn .win i.on { background: var(--olive-2); border-color: var(--olive-2); opacity: .7; }
.floor-btn .win i.wip { background: var(--amber); border-color: var(--amber); opacity: .7; }
.floor-btn .pc { font-family: var(--f-mono); font-size: 11px; text-align: right; color: var(--concrete); }
.floor-btn:hover { border-color: var(--line-d2); }
.floor-btn[aria-pressed="true"] { border-color: var(--amber); background: #2b2a24; }
.floor-btn[aria-pressed="true"] .pc { color: var(--amber); }
@media (max-width: 1099px) { .floor-btn { grid-template-columns: 1fr; height: auto; padding: 10px; gap: 4px; } .floor-btn .win { display: none; } .floor-btn .pc { text-align: left; } }
.roof { height: 10px; margin: 0 22px 4px; border: 1px solid var(--line-d2); border-bottom: 0; }
.ground { height: 8px; margin-top: 6px; background: repeating-linear-gradient(135deg, var(--line-d2) 0 2px, transparent 2px 8px); }
@media (max-width: 1099px) { .roof, .ground { display: none; } }

.plan-wrap { position: relative; }
.plan-sum { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; margin-bottom: 18px; }
.plan-sum div { background: var(--charcoal); padding: 12px 14px; }
.plan-sum small { display: block; font-family: var(--f-mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--concrete); }
.plan-sum b { font-family: var(--f-display); font-weight: 500; font-size: 22px; }
#plan { width: 100%; height: auto; }
#plan .room { cursor: pointer; outline: none; }
#plan .room rect { transition: fill .5s var(--ease), stroke .3s; stroke: transparent; stroke-width: 2; }
#plan .room:hover rect, #plan .room:focus-visible rect { stroke: rgba(245,243,237,.6); }
#plan .room.sel rect { stroke: var(--amber); }
#plan .room text { font-family: var(--f-body); font-size: 11px; fill: var(--ivory); pointer-events: none; }
#plan .room text.pct { font-family: var(--f-mono); font-size: 10px; fill: var(--concrete); }
#plan .walls { fill: none; stroke: var(--ivory); stroke-width: 4; pointer-events: none; opacity: .85; }
#plan .thin { fill: none; stroke: rgba(245,243,237,.35); stroke-width: 1; pointer-events: none; }
#plan .dim { stroke: rgba(245,243,237,.25); stroke-width: 1; fill: none; }
#plan .dimt { font-family: var(--f-mono); font-size: 9px; fill: var(--concrete); }
#plan .def { fill: var(--brick); pointer-events: none; }
#plan .def-ring { fill: none; stroke: var(--brick); stroke-width: 1; pointer-events: none; animation: defp 2s ease-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes defp { 0% { opacity: .9; transform: scale(1); } 100% { opacity: 0; transform: scale(2.6); } }
.plan-legend { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 14px; font-size: 12px; color: var(--concrete); }
.plan-legend span { display: inline-flex; align-items: center; gap: 6px; }
.plan-legend i { width: 12px; height: 12px; display: inline-block; }

.panel { display: grid; align-content: start; gap: 18px; }
.panel-h small { display: block; color: var(--concrete); font-size: 12px; margin-bottom: 4px; }
.panel-h h3 { font-family: var(--f-display); font-weight: 500; font-size: 26px; letter-spacing: -.02em; line-height: 1.1; }
.panel-big { display: flex; align-items: baseline; gap: 10px; }
.panel-big b { font-family: var(--f-display); font-weight: 500; font-size: 48px; letter-spacing: -.04em; line-height: 1; }
.panel-sec h4 { font-family: var(--f-mono); font-weight: 400; font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--concrete); margin-bottom: 10px; }
.p-acts { display: grid; gap: 10px; }
.p-mats { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.p-mats div { background: var(--charcoal); padding: 10px 12px; font-size: 12px; color: var(--concrete); }
.p-mats b { display: block; font-family: var(--f-mono); font-weight: 500; font-size: 14px; color: var(--ivory); }
.p-def { display: grid; gap: 2px; }
.p-def div { display: flex; justify-content: space-between; gap: 10px; align-items: center; background: var(--charcoal); padding: 10px 12px; font-size: 12.5px; }
.p-def .none { color: var(--concrete); }
.panel-anim > * { animation: pin .5s var(--ease) both; }
.panel-anim > *:nth-child(2) { animation-delay: .05s; } .panel-anim > *:nth-child(3) { animation-delay: .1s; } .panel-anim > *:nth-child(4) { animation-delay: .15s; } .panel-anim > *:nth-child(5) { animation-delay: .2s; } .panel-anim > *:nth-child(6) { animation-delay: .25s; }
@keyframes pin { from { opacity: 0; transform: translateX(16px); } to { opacity: 1; transform: none; } }

/* ---------- offline ---------- */
.off-grid { display: grid; gap: 56px; align-items: center; }
@media (min-width: 1000px) { .off-grid { grid-template-columns: 1fr 1fr; gap: 96px; } }
.steps { display: grid; margin-top: 40px; border-top: 1px solid var(--line-l); }
.step { display: grid; grid-template-columns: 44px 1fr; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line-l); text-align: left; width: 100%; color: #8a8880; transition: color .4s; position: relative; }
.step::after { content: ""; position: absolute; left: 0; bottom: -1px; height: 1px; width: 100%; background: var(--obsidian); transform: scaleX(0); transform-origin: left; }
.step.on { color: var(--obsidian); }
.step.on::after { transform: scaleX(1); transition: transform var(--dur, 2.6s) linear; }
.step .n { font-family: var(--f-mono); font-size: 12px; padding-top: 3px; }
.step b { display: block; font-family: var(--f-display); font-weight: 500; font-size: 19px; letter-spacing: -.01em; }
.step small { display: block; font-size: 14px; max-height: 0; overflow: hidden; opacity: 0; transition: max-height .5s var(--ease), opacity .4s; }
.step.on small { max-height: 60px; opacity: 1; }
.off-ctl { display: flex; align-items: center; gap: 16px; margin-top: 22px; }
.off-ctl button { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: #55544e; border-bottom: 1px solid var(--line-l2); padding-bottom: 2px; }

.phone-stage { position: relative; display: grid; place-items: center; padding: 20px 0; }
.phone-stage::before { content: ""; position: absolute; width: min(520px, 100%); aspect-ratio: 1; border: 1px dashed var(--line-l2); border-radius: 50%; }
.phone-stage::after { content: ""; position: absolute; width: min(380px, 80%); aspect-ratio: 1; border: 1px solid var(--line-l); border-radius: 50%; }
.phone { position: relative; z-index: 1; width: 300px; height: 610px; max-width: 86vw; background: var(--obsidian); border-radius: 44px; padding: 12px; box-shadow: 0 0 0 1px #000, 0 0 0 7px #2a2c2a, 0 60px 100px -40px rgba(23,25,24,.65); }
.screen { position: relative; height: 100%; border-radius: 34px; background: #f3f1ea; color: var(--obsidian); overflow: hidden; display: flex; flex-direction: column; }
.notch { position: absolute; top: 8px; left: 50%; width: 92px; height: 24px; margin-left: -46px; background: var(--obsidian); border-radius: 14px; z-index: 3; }
.sbar { display: flex; justify-content: space-between; align-items: center; padding: 14px 22px 6px; font-size: 12px; font-weight: 600; }
.sig { display: inline-flex; align-items: flex-end; gap: 2px; height: 11px; }
.sig i { width: 3px; background: var(--obsidian); transition: opacity .4s, background .4s; }
.sig i:nth-child(1) { height: 4px; } .sig i:nth-child(2) { height: 6px; } .sig i:nth-child(3) { height: 8px; } .sig i:nth-child(4) { height: 11px; }
.net-off .sig i { opacity: .2; }
.net-rec .sig i { animation: sigup 1s infinite; }
.net-rec .sig i:nth-child(2) { animation-delay: .15s; } .net-rec .sig i:nth-child(3) { animation-delay: .3s; } .net-rec .sig i:nth-child(4) { animation-delay: .45s; }
@keyframes sigup { 0%, 100% { opacity: .2; } 50% { opacity: 1; } }
.netpill { margin: 6px 14px 0; display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 30px; font-size: 12px; font-weight: 600; background: #e3e8da; color: #3f4a2f; transition: background .4s, color .4s; }
.netpill .dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; position: relative; }
.netpill .dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid currentColor; animation: pulse 1.6s ease-out infinite; }
.net-off .netpill { background: #f3dfd3; color: #9a3a17; }
.net-rec .netpill, .net-sync .netpill { background: #f4e6cc; color: #855512; }
.app-h { padding: 12px 16px 8px; }
.app-h small { font-size: 11px; color: #6d6c66; }
.app-h b { display: block; font-family: var(--f-display); font-weight: 600; font-size: 17px; letter-spacing: -.01em; }
.scr-body { flex: 1; padding: 4px 14px 14px; display: grid; align-content: start; gap: 10px; position: relative; }
.card { background: #fff; border-radius: 14px; padding: 12px; box-shadow: 0 1px 2px rgba(0,0,0,.05); font-size: 12.5px; }
.card .row { display: flex; justify-content: space-between; align-items: center; }
.slider { height: 6px; background: #e4e1d7; border-radius: 4px; margin-top: 10px; position: relative; }
.slider i { position: absolute; inset: 0 auto 0 0; width: var(--v, 40%); background: var(--amber); border-radius: 4px; transition: width 1.4s var(--ease); }
.slider i::after { content: ""; position: absolute; right: -8px; top: -5px; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 2px solid var(--amber); }
.thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 8px; }
.thumbs span { aspect-ratio: 1; border-radius: 8px; background: #e4e1d7; position: relative; overflow: hidden; transform: scale(.6); opacity: 0; transition: transform .5s var(--ease), opacity .4s; }
.thumbs span.add { display: grid; place-items: center; transform: none; opacity: 1; border: 1.5px dashed #c4bfb1; background: transparent; color: #8a8880; font-size: 18px; }
.thumbs span.shown { transform: none; opacity: 1; }
.thumbs span svg { width: 100%; height: 100%; }
.queue { display: grid; gap: 6px; }
.qi { display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 12px; padding: 10px 12px; font-size: 12px; opacity: 0; transform: translateY(8px); transition: opacity .4s, transform .4s var(--ease); }
.qi.shown { opacity: 1; transform: none; }
.qi .st { margin-left: auto; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: #ece7d9; color: #855512; flex: none; transition: background .4s, color .4s; }
.qi .st svg { width: 12px; height: 12px; }
.qi.synced .st { background: var(--olive); color: #fff; }
.qi .ic2 { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: #f1ede2; flex: none; }
.qi .ic2 svg { width: 15px; height: 15px; }
.toast { position: absolute; left: 14px; right: 14px; bottom: 16px; padding: 12px 14px; border-radius: 14px; background: var(--obsidian); color: var(--ivory); font-size: 12.5px; display: flex; gap: 10px; align-items: center; transform: translateY(140%); transition: transform .5s var(--ease); }
.toast.shown { transform: none; }
.toast svg { width: 16px; height: 16px; color: var(--amber); flex: none; }
.dev-store { display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: #6d6c66; padding: 0 2px; opacity: 0; transition: opacity .4s; }
.dev-store.shown { opacity: 1; }
.dev-store svg { width: 14px; height: 14px; }

/* ---------- visibility dashboard ---------- */
.visibility { background: var(--obsidian); overflow: hidden; }
.dash { display: grid; background: var(--charcoal); border: 1px solid var(--line-d2); box-shadow: 0 80px 140px -60px rgba(0,0,0,.95); }
@media (min-width: 1000px) { .dash { grid-template-columns: 200px 1fr; } }
.dash-side { display: none; border-right: 1px solid var(--line-d); padding: 18px 12px; }
@media (min-width: 1000px) { .dash-side { display: block; } }
.dash-side .brand { padding: 0 6px 18px; }
.dash-side .brand svg { width: 26px; }
.dash-side .brand .word { font-size: 13px; }
.dside a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; font-size: 13px; color: var(--concrete); }
.dside a.on { background: var(--charcoal-2); color: var(--ivory); box-shadow: inset 2px 0 0 var(--amber); }
.dside a svg { width: 15px; height: 15px; }
.dash-main { padding: clamp(14px, 2vw, 24px); display: grid; gap: 12px; min-width: 0; }
.dash-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; }
.dash-top b { font-family: var(--f-display); font-weight: 500; font-size: 20px; }
.kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 900px) { .kpis { grid-template-columns: repeat(4, 1fr); } }
.kpi { background: var(--obsidian); padding: 16px; border: 1px solid var(--line-d); }
.kpi small { display: block; font-size: 12px; color: var(--concrete); }
.kpi b { display: block; font-family: var(--f-display); font-weight: 500; font-size: clamp(26px, 2.6vw, 34px); letter-spacing: -.03em; margin: 6px 0 8px; }
.kpi .sub { font-size: 11.5px; color: var(--concrete); }
.dgrid { display: grid; gap: 12px; }
@media (min-width: 900px) { .dgrid { grid-template-columns: 1.6fr 1fr; } }
.tile { background: var(--obsidian); padding: 16px; border: 1px solid var(--line-d); min-width: 0; }
.tile-h { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 12px; font-size: 13px; font-weight: 500; }
.donut { display: grid; grid-template-columns: 110px 1fr; gap: 16px; align-items: center; }
.donut svg { width: 110px; height: 110px; transform: rotate(-90deg); }
.donut circle { fill: none; stroke-width: 14; transition: stroke-dasharray 1.6s var(--ease); }
.dl { display: grid; gap: 8px; font-size: 12.5px; }
.dl div { display: flex; justify-content: space-between; gap: 10px; }
.dl i { display: inline-block; width: 9px; height: 9px; margin-right: 8px; }
.stk { display: grid; gap: 10px; }
.stk div { display: grid; grid-template-columns: 110px 1fr 70px; gap: 10px; align-items: center; font-size: 12.5px; }
.stk em { font-style: normal; font-family: var(--f-mono); font-size: 11px; text-align: right; color: var(--concrete); }
.ptable { width: 100%; border-collapse: collapse; font-size: 13px; }
.ptable th { text-align: left; font-family: var(--f-mono); font-weight: 400; font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--concrete); padding: 0 10px 10px 0; border-bottom: 1px solid var(--line-d); }
.ptable td { padding: 11px 10px 11px 0; border-bottom: 1px solid var(--line-d); white-space: nowrap; }
.ptable td.num { font-family: var(--f-mono); font-size: 12px; }
.ptable .bar { width: 100px; }
.ptw { overflow-x: auto; }
.vis-note { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 18px; }

/* ---------- roles ---------- */
.roles-grid { display: grid; gap: 28px; }
@media (min-width: 1000px) { .roles-grid { grid-template-columns: 300px 1fr; gap: 56px; } }
.role-tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
.role-tabs::-webkit-scrollbar { display: none; }
@media (min-width: 1000px) { .role-tabs { flex-direction: column; gap: 0; border-top: 1px solid var(--line-l); overflow: visible; } }
.role-tab { flex: none; display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 10px 14px; border: 1px solid var(--line-l); font-family: var(--f-display); font-weight: 500; font-size: 15px; color: #6d6c66; text-align: left; transition: color .3s, background .3s, padding .35s var(--ease); }
.role-tab .n { font-family: var(--f-mono); font-size: 11px; font-weight: 400; }
@media (min-width: 1000px) { .role-tab { border: 0; border-bottom: 1px solid var(--line-l); padding: 16px 4px; font-size: 19px; } .role-tab:hover { padding-left: 10px; } }
.role-tab[aria-selected="true"] { color: var(--obsidian); background: var(--ivory-2); }
@media (min-width: 1000px) { .role-tab[aria-selected="true"] { background: transparent; padding-left: 14px; box-shadow: inset 3px 0 0 var(--amber); } }
.role-view { background: var(--obsidian); color: var(--ivory); border: 1px solid var(--obsidian); display: grid; min-height: 460px; }
@media (min-width: 760px) { .role-view { grid-template-columns: 190px 1fr; } }
.rv-side { padding: 18px 12px; border-right: 1px solid var(--line-d); display: none; }
@media (min-width: 760px) { .rv-side { display: block; } }
.rv-side a { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 9px 10px; font-size: 13px; color: var(--ivory); transition: opacity .4s, color .4s; }
.rv-side a.off { opacity: .28; }
.rv-side a.ro::after { content: "View"; font-family: var(--f-mono); font-size: 9.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--concrete); }
.rv-side a.rw::after { content: "Edit"; font-family: var(--f-mono); font-size: 9.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--amber); }
.rv-side a.off::after { content: "—"; color: var(--concrete); }
.rv-main { padding: clamp(18px, 2.4vw, 28px); display: grid; align-content: start; gap: 18px; min-width: 0; }
.rv-head small { display: block; font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--amber); margin-bottom: 8px; }
.rv-head h3 { font-family: var(--f-display); font-weight: 500; font-size: clamp(24px, 2.6vw, 32px); letter-spacing: -.02em; line-height: 1.1; }
.rv-head p { color: var(--concrete); margin-top: 8px; max-width: 58ch; font-size: 15px; }
.rv-can { display: grid; gap: 6px; }
@media (min-width: 640px) { .rv-can { grid-template-columns: 1fr 1fr; } }
.rv-can li { display: flex; gap: 10px; font-size: 13.5px; padding: 10px 12px; background: var(--charcoal); }
.rv-can li::before { content: ""; flex: none; width: 6px; height: 6px; margin-top: 7px; background: var(--amber); }
.rv-widget { background: var(--charcoal); padding: 16px; }
.rv-anim > * { animation: rvin .5s var(--ease) both; }
.rv-anim > *:nth-child(2) { animation-delay: .06s; } .rv-anim > *:nth-child(3) { animation-delay: .12s; }
@keyframes rvin { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.mini-rows { display: grid; gap: 8px; font-size: 13px; }
.mini-rows div { display: grid; grid-template-columns: 1fr 110px 60px; gap: 12px; align-items: center; }
.mini-rows em { font-style: normal; font-family: var(--f-mono); font-size: 11.5px; text-align: right; color: var(--concrete); }

/* ---------- industries ---------- */
.industries { background: var(--obsidian); }
.ind { display: grid; gap: 2px; background: var(--line-d); border: 1px solid var(--line-d); }
@media (min-width: 1000px) { .ind { display: flex; height: 600px; } }
.ind-p { position: relative; background: var(--obsidian); overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; padding: 28px; min-height: 420px; transition: flex-grow .8s var(--ease), background .5s; }
@media (min-width: 1000px) { .ind-p { flex: 1 1 0; min-width: 0; min-height: 0; } .ind-p.open { flex-grow: 2.6; background: #1d1f1d; } }
.ind-art { position: absolute; inset: 0; pointer-events: none; display: grid; place-items: center; opacity: .55; transition: opacity .6s; }
.ind-p.open .ind-art { opacity: 1; }
.ind-art svg { width: 100%; height: 100%; }
.ind-art svg .ln { fill: none; stroke: rgba(245,243,237,.55); stroke-width: 1; vector-effect: non-scaling-stroke; }
.ind-art svg .ln2 { fill: none; stroke: rgba(245,243,237,.22); stroke-width: 1; vector-effect: non-scaling-stroke; }
.ind-art svg .am { fill: none; stroke: var(--amber); stroke-width: 1.4; vector-effect: non-scaling-stroke; }
.ind-art svg .amf { fill: rgba(217,154,69,.85); }
.ind-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(23,25,24,.92) 0%, rgba(23,25,24,.2) 38%, rgba(23,25,24,.25) 60%, rgba(23,25,24,.95) 100%); }
.ind-top { position: relative; display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.ind-top .no { font-family: var(--f-mono); font-size: 12px; color: var(--amber); }
.ind-p h3 { position: relative; font-family: var(--f-display); font-weight: 500; font-size: clamp(26px, 2.4vw, 34px); letter-spacing: -.025em; line-height: 1.05; max-width: 12ch; }
.ind-body { position: relative; display: grid; gap: 16px; }
.ind-body p { color: rgba(245,243,237,.82); max-width: 44ch; }
.ind-body ul { display: grid; gap: 6px; font-size: 14px; color: var(--concrete); }
.ind-body ul li::before { content: "— "; color: var(--amber); }
@media (min-width: 1000px) {
  .ind-more { opacity: 0; transform: translateY(14px); transition: opacity .4s, transform .5s var(--ease); max-width: 460px; }
  .ind-p.open .ind-more { opacity: 1; transform: none; transition-delay: .25s; }
  .ind-more { max-height: 0; overflow: hidden; }
  .ind-p.open .ind-more { max-height: 420px; }
  .ind-p:not(.open) .ind-more { visibility: hidden; }
}
.ind-toggle { position: absolute; inset: 0; z-index: 2; }
@media (min-width: 1000px) { .ind-p.open .ind-toggle { pointer-events: none; } }
.ind-p .link-arrow { position: relative; z-index: 3; width: max-content; }

/* ---------- about ---------- */
.about-grid { display: grid; gap: 56px; }
@media (min-width: 1000px) { .about-grid { grid-template-columns: 1fr 1fr; gap: 96px; } }
.princ { display: grid; gap: 0; border-top: 1px solid var(--line-l); }
.princ li { display: grid; grid-template-columns: 56px 1fr; gap: 16px; padding: 24px 0; border-bottom: 1px solid var(--line-l); }
.princ .n { font-family: var(--f-mono); font-size: 12px; color: #a86f22; padding-top: 4px; }
.princ b { display: block; font-family: var(--f-display); font-weight: 500; font-size: 22px; letter-spacing: -.015em; margin-bottom: 6px; }
.princ p { color: #55544e; }
.status-note { margin-top: 32px; padding: 20px; background: var(--ivory-2); border-left: 2px solid var(--amber); font-size: 15px; color: #3c3b37; }
.faq { margin-top: clamp(72px, 9vw, 120px); display: grid; gap: 28px; }
@media (min-width: 1000px) { .faq { grid-template-columns: 1fr 1.6fr; gap: 96px; } }
.faq details { border-bottom: 1px solid var(--line-l); }
.faq details:first-child { border-top: 1px solid var(--line-l); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; font-family: var(--f-display); font-weight: 500; font-size: 18px; letter-spacing: -.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--f-mono); font-size: 20px; color: #a86f22; transition: transform .35s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 22px; color: #55544e; max-width: 64ch; }

/* ---------- final CTA ---------- */
.final { background: var(--obsidian); overflow: hidden; text-align: center; }
.final .bp { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .5; pointer-events: none; }
.final .bp path, .final .bp line, .final .bp rect, .final .bp circle { fill: none; stroke: rgba(245,243,237,.16); stroke-width: 1; }
.final .bp .am { stroke: rgba(217,154,69,.6); }
.final-in { position: relative; display: grid; justify-items: center; gap: 28px; }
.final h2 { font-family: var(--f-display); font-weight: 500; font-size: clamp(2.8rem, 8vw, 7.6rem); line-height: .92; letter-spacing: -.045em; }
.final h2 .l2 { color: var(--amber); }
.final p { color: var(--concrete); max-width: 50ch; font-size: clamp(1.05rem, 1.4vw, 1.2rem); }
.final .btn { height: 64px; padding: 0 34px; font-size: 18px; }

/* ---------- footer ---------- */
footer { background: var(--obsidian-2); border-top: 1px solid var(--line-d); padding: 72px 0 32px; font-size: 14px; }
.foot { display: grid; gap: 40px; }
@media (min-width: 760px) { .foot { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .foot { grid-template-columns: 1.6fr repeat(4, 1fr); } }
.foot-tag { color: var(--concrete); margin-top: 18px; max-width: 34ch; }
.foot h5 { font-family: var(--f-mono); font-weight: 400; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--concrete); margin-bottom: 16px; }
.foot ul { display: grid; gap: 10px; }
.foot ul a { color: rgba(245,243,237,.82); transition: color .2s; }
.foot ul a:hover { color: var(--amber); }
.foot .btn { margin-top: 22px; }
.legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--line-d); color: var(--concrete); font-size: 13px; }
.legal nav { display: flex; gap: 20px; }
.legal a:hover { color: var(--ivory); }
.wordmark { margin-top: 48px; font-family: var(--f-display); font-weight: 600; font-size: clamp(2.4rem, 12.4vw, 11.4rem); letter-spacing: -.05em; line-height: .8; color: transparent; -webkit-text-stroke: 1px rgba(245,243,237,.12); white-space: nowrap; overflow: hidden; user-select: none; }

/* ---------- dialog ---------- */
dialog.book { width: min(520px, calc(100vw - 32px)); max-height: calc(100vh - 32px); padding: 0; border: 1px solid var(--line-d2); border-radius: 2px; background: var(--obsidian); color: var(--ivory); box-shadow: 0 40px 120px rgba(0,0,0,.6); }
dialog.book::backdrop { background: rgba(10,11,10,.72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
dialog.book[open] { animation: dlg .45s var(--ease); }
@keyframes dlg { from { opacity: 0; transform: translateY(16px) scale(.98); } }
.book-in { padding: clamp(22px, 4vw, 34px); }
.book-head { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.book-head h3 { font-family: var(--f-display); font-weight: 500; font-size: 28px; letter-spacing: -.02em; }
.book-head p { color: var(--concrete); font-size: 14.5px; margin-top: 6px; }
.x { width: 38px; height: 38px; flex: none; display: grid; place-items: center; border: 1px solid var(--line-d2); }
.x:hover { border-color: var(--ivory); }
.fields { display: grid; gap: 16px; margin-bottom: 22px; }
.field { display: grid; gap: 7px; }
.field label { font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--concrete); }
.field input, .field select { height: 50px; padding: 0 14px; background: var(--charcoal); border: 1px solid var(--line-d2); border-radius: 2px; color: var(--ivory); font: inherit; font-size: 15px; transition: border-color .2s; width: 100%; }
.field input::placeholder { color: #6f6e68; }
.field input:focus, .field select:focus { outline: none; border-color: var(--amber); }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4' fill='none' stroke='%23A5A49D' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 16px; padding-right: 40px; }
.field .err { display: none; font-size: 12.5px; color: #ec8a65; }
.field.bad input, .field.bad select { border-color: #ec8a65; }
.field.bad .err { display: block; }
.send-err { margin: -6px 0 16px; padding: 10px 12px; background: rgba(217,102,62,.12); color: #f0a080; font-size: 13.5px; }
#book-submit { width: 100%; justify-content: center; }
#book-submit:disabled { opacity: .6; cursor: progress; }
.book-note { text-align: center; color: var(--concrete); font-size: 13.5px; margin-top: 16px; }
.book-note a { color: var(--ivory); border-bottom: 1px solid var(--line-d2); }
.book-done { text-align: center; padding: 16px 0 4px; }
.book-done .tick { width: 60px; height: 60px; margin: 0 auto 18px; display: grid; place-items: center; background: rgba(155,164,134,.18); color: var(--olive-2); border-radius: 50%; }
.book-done h3 { font-family: var(--f-display); font-weight: 500; font-size: 28px; }
.book-done p { color: var(--concrete); margin-top: 8px; }

/* ---------- motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .js .loader { display: none; }
}
#plan .room rect.lvl { stroke: none !important; transform-box: fill-box; transform-origin: 50% 100%; animation: lvlup .8s var(--ease) both; }
@keyframes lvlup { from { transform: scaleY(0); } }
.mod > *, .inv-band > *, .off-grid > *, .about-grid > *, .roles-grid > * { min-width: 0; }
@media (max-width: 520px) {
  .stock th:nth-child(3), .stock td:nth-child(3) { display: none; }
  .stock .bar { width: 44px; }
  .stock td { padding: 10px 5px; }
  .led { grid-template-columns: 70px 1fr auto; }
}
.mod-5 > *, .dgrid > *, .kpis > *, .mosaic > * { min-width: 0; }
@media (max-width: 520px) { .mosaic { grid-template-columns: repeat(2, 1fr); } .mosaic div { aspect-ratio: 1.6; } }
