
:root {
  --bg:        #0a0a0b;
  --bg-2:      #0e0e10;
  --panel:     #101013;
  --panel-2:   #141418;
  --line:      rgba(255,255,255,.10);
  --line-2:    rgba(255,255,255,.16);
  --text:      #ededed;
  --muted:     #8b8b92;
  --faint:     #62626a;
  --accent:    #FF5A1F;   
  --accent-ink:#0a0a0b;   

  --font:  "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --disp:  "Unbounded", var(--font);
  --mono:  "JetBrains Mono", ui-monospace, "SFMono-Regular", monospace;

  --max: 1140px;
  --pad: clamp(20px, 5vw, 40px);

  --elev: none;
  --elev-hi: none;
}




html[data-theme="light"] {
  --bg:        #F0EEE9;
  --bg-2:      #E6E3DB;
  --panel:     #F7F5F1;
  --panel-2:   #FFFFFF;
  --line:      rgba(28, 24, 18, .10);
  --line-2:    rgba(28, 24, 18, .20);
  --text:      #16130E;
  --muted:     #57514A;
  --faint:     #8B8377;
  --accent:    #B3350A;
  --accent-ink:#FFF7F2;
  --elev:      0 1px 2px rgba(28, 24, 18, .05), 0 8px 24px rgba(28, 24, 18, .06);
  --elev-hi:   0 2px 4px rgba(28, 24, 18, .06), 0 18px 40px rgba(28, 24, 18, .10);
}

html[data-theme="light"] .mod,
html[data-theme="light"] .fact,
html[data-theme="light"] .post-card,
html[data-theme="light"] .sh,
html[data-theme="light"] .tg,
html[data-theme="light"] .alg,
html[data-theme="light"] .fx { box-shadow: var(--elev); }

 
html[data-theme="light"] .header { background: rgba(240, 238, 233, .78); }
html[data-theme="light"] .header.scrolled { background: rgba(240, 238, 233, .93); }
html[data-theme="light"] .btn-line:hover { background: rgba(28, 24, 18, .04); }
html[data-theme="light"] .btn-accent:hover { background: #C94014; }
html[data-theme="light"] ::-webkit-scrollbar-track { background: var(--bg-2); }
html[data-theme="light"] ::-webkit-scrollbar-thumb { background: #C9C4B9; }
html[data-theme="light"] ::-webkit-scrollbar-thumb:hover { background: #B0AA9D; }
 
html[data-theme="light"] .sh,
html[data-theme="light"] .alg,
html[data-theme="light"] .fx { background: #1C1915; }

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  background-position: center top;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: radial-gradient(120% 80% at 50% 0%, transparent 0%, var(--bg) 72%);
  pointer-events: none;
}

::selection { background: var(--accent); color: var(--accent-ink); }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #26262b; border-radius: 0; }
::-webkit-scrollbar-thumb:hover { background: #34343a; }

svg { display: block; }

.container { width: min(var(--max), 100% - 2*var(--pad)); margin-inline: auto; }

h1, h2, h3 { font-family: var(--disp); font-weight: 600; line-height: 1.08; letter-spacing: -.02em; }

.accent { color: var(--accent); }


.mono-label {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--accent);
}


.scroll-progress {
  position: fixed; top: 0; left: 0;
  height: 2px; width: 0;
  background: var(--accent);
  z-index: 200;
}


.btn {
  --pad-y: 11px;
  display: inline-flex; align-items: center; gap: 9px;
  padding: var(--pad-y) 20px;
  font-family: var(--font);
  font-size: 14.5px; font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 0;
  cursor: pointer;
  transition: background-color .16s ease, color .16s ease, border-color .16s ease, transform .16s ease;
}
.btn-lg { --pad-y: 15px; padding: var(--pad-y) 26px; font-size: 15.5px; }

.btn-accent { background: var(--accent); color: var(--accent-ink); }
.btn-accent:hover { background: #FF7A45; transform: translateY(-2px); }

.btn-line { background: transparent; color: var(--text); border-color: var(--line-2); }
.btn-line:hover { border-color: var(--text); background: rgba(255,255,255,.04); transform: translateY(-2px); }


.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10,10,11,.72);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, background-color .3s ease;
}
.header.scrolled { border-bottom-color: var(--line); background: rgba(10,10,11,.9); }

.nav {
  width: min(var(--max), 100% - 2*var(--pad));
  margin-inline: auto;
  height: 68px;
  display: flex; align-items: center; gap: 28px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-weight: 600; font-size: 16px;
  color: var(--text); text-decoration: none;
  letter-spacing: 0;
  margin-right: auto;
}
.logo-mark {
  width: 34px;
  height: 34px;
  object-fit: contain;
  flex: 0 0 auto;
}
.logo-word { color: var(--text); }
.logo .logo-tld { color: var(--accent); }

.nav-links { display: flex; gap: 6px; list-style: none; }
.nav-links a {
  color: var(--muted); text-decoration: none;
  font-size: 14px; font-weight: 500;
  padding: 7px 12px;
  transition: color .15s ease;
}
.nav-links a:hover { color: var(--text); }
.nav-cta { flex: 0 0 auto; white-space: nowrap; }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: 0; cursor: pointer; padding: 8px;
}
.nav-toggle span { width: 20px; height: 1.6px; background: var(--text); transition: transform .2s ease, opacity .2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.6px) rotate(-45deg); }


.hero {
  min-height: min(880px, calc(100svh - 68px));
  padding: clamp(56px, 8vh, 92px) 0 clamp(52px, 7vh, 82px);
  isolation: isolate;
}

.hero-art {
  position: absolute;
  z-index: 0;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  pointer-events: none;
  overflow: hidden;
}
.hero-art::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--bg) 4%, rgba(10,10,11,.94) 36%, rgba(10,10,11,.48) 66%, rgba(10,10,11,.15) 100%);
  z-index: 1;
}
.hero-art img {
  width: min(58vw, 760px);
  height: auto;
  margin-right: max(-80px, -5vw);
  opacity: .82;
  filter: drop-shadow(0 28px 90px rgba(0,0,0,.48));
  transform: rotate(-2deg);
}

.tagline {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--mono); font-size: 12.5px;
  color: var(--muted);
  border: 1px solid var(--line);
  padding: 7px 14px;
  margin-bottom: 30px;
}
.status-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(255, 90, 31,.5);
  animation: ping 2.4s infinite;
}
@keyframes ping { 70% { box-shadow: 0 0 0 7px rgba(255, 90, 31,0);} 100%{ box-shadow:0 0 0 0 rgba(255, 90, 31,0);} }

.hero-title {
  font-size: clamp(38px, 6.4vw, 78px);
  font-weight: 700;
  letter-spacing: 0;
  line-height: .98;
  max-width: 980px;
  text-wrap: balance;
}

.hero-sub {
  max-width: 560px;
  margin-top: 26px;
  color: var(--muted);
  font-size: clamp(16px, 1.6vw, 18.5px);
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }


.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: clamp(48px, 7vw, 76px);
  border-top: 1px solid var(--line);
}
.metric {
  padding: 22px 22px 22px 0;
  border-right: 1px solid var(--line);
}
.metric:last-child { border-right: 0; }
.metric dt {
  font-family: var(--disp); font-weight: 600;
  font-size: clamp(28px, 3.4vw, 42px);
  letter-spacing: -.03em;
  color: var(--text);
}
.metric-cur { color: var(--accent); font-size: .7em; margin-left: 1px; }
.metric dd {
  font-family: var(--mono);
  font-size: 12px; line-height: 1.35;
  color: var(--faint);
  text-transform: uppercase; letter-spacing: .04em;
  margin-top: 8px;
}


.marquee {
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: var(--bg-2);
  padding: 13px 0;
}
.marquee-track { display: flex; width: max-content; animation: marquee 34s linear infinite; }
.marquee-track span {
  font-family: var(--mono); font-size: 13px; font-weight: 500;
  color: var(--muted); white-space: nowrap; text-transform: uppercase; letter-spacing: .02em;
}
.marquee-track i { color: var(--accent); font-style: normal; margin: 0 18px; }
@keyframes marquee { to { transform: translateX(-50%); } }


.promo {
  margin-top: clamp(56px, 8vw, 88px);
  display: flex; align-items: center; gap: 32px; flex-wrap: wrap;
  border: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(255, 90, 31,.05), transparent 60%),
    var(--panel);
  padding: clamp(28px, 4vw, 44px);
  position: relative;
}
.promo::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0;
  width: 3px; background: var(--accent);
}
.promo-main { flex: 1; min-width: 260px; }
.promo-title {
  font-size: clamp(24px, 3.4vw, 40px);
  margin-top: 14px;
}
.promo-sub { margin-top: 14px; max-width: 620px; color: var(--muted); font-size: 15.5px; }
.promo-btn { flex-shrink: 0; }


.section { padding: clamp(72px, 11vw, 128px) 0; }

.section-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-title { font-size: clamp(28px, 4.4vw, 48px); font-weight: 700; margin-top: 16px; }
.section-sub { margin-top: 16px; color: var(--muted); font-size: clamp(15.5px, 1.5vw, 17px); }


.decor-divider,
.decor-trail {
  position: relative;
  overflow: hidden;
  pointer-events: none;
}

.decor-divider {
  height: clamp(48px, 6vw, 72px);
  margin-top: clamp(40px, 6vw, 72px);
  margin-bottom: -24px;
}

.decor-trail {
  height: clamp(72px, 9vw, 110px);
  margin-top: -30px;
  margin-bottom: -30px;
}

.decor-divider img,
.decor-trail img {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: auto;
  display: block;
  opacity: .42;
  transform: translate(-50%, -50%);
}

.decor-trail img { opacity: .28; }

#works {
  position: relative;
  isolation: isolate;
}

#works::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: clamp(34px, 5vw, 64px);
  right: 0;
  width: min(46vw, 520px);
  aspect-ratio: 3 / 2;
  background: url("assets/decor/nf-grid-block.svg") right center / contain no-repeat;
  opacity: .07;
  pointer-events: none;
}

.contact {
  position: relative;
  isolation: isolate;
}

.contact::after {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 12px;
  background: url("assets/decor/nf-section-corners.svg") center / 100% 100% no-repeat;
  opacity: .16;
  pointer-events: none;
}

.contact > * { position: relative; z-index: 1; }


.bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);        
  border: 1px solid var(--line);
}
.tile {
  background: var(--panel);
  padding: clamp(24px, 2.6vw, 34px);
  display: flex; flex-direction: column;
  position: relative;
  transition: background-color .2s ease;
}
.tile:hover { background: var(--panel-2); }
.tile-row { grid-column: span 3; }

.tile-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.tile-ic { color: var(--accent); }
.tile-price { font-family: var(--mono); font-size: 13px; color: var(--text); }

.tile h3 { font-size: 20px; font-weight: 600; margin-bottom: 10px; }
.tile p { color: var(--muted); font-size: 14.5px; }

.ticks { list-style: none; margin: 20px 0 24px; display: grid; gap: 9px; }
.ticks li { position: relative; padding-left: 20px; font-size: 13.5px; color: var(--muted); }
.ticks li::before { content: "+"; position: absolute; left: 0; color: var(--accent); font-family: var(--mono); font-weight: 600; }
.ticks-inline { grid-template-columns: repeat(auto-fit, minmax(210px,1fr)); }

.tile-term {
  margin-top: auto;
  font-family: var(--mono); font-size: 12px;
  color: var(--faint);
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.tile-flag {
  position: absolute; top: 0; right: 0;
  font-family: var(--mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: .06em;
  background: var(--accent); color: var(--accent-ink);
  padding: 5px 10px;
}

.tile-row { flex-direction: row; flex-wrap: wrap; align-items: flex-start; gap: 8px 40px; }
.tile-row .tile-top { flex-direction: column; align-items: flex-start; gap: 16px; margin-bottom: 0; width: 46px; }
.tile-row-body { flex: 1; min-width: 240px; }
.tile-row .ticks-inline { flex-basis: 100%; margin: 8px 0 20px; }
.tile-row .tile-term { flex-basis: 100%; }


.works { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.work {
  text-decoration: none; color: inherit;
  border: 1px solid var(--line);
  background: var(--panel);
  transition: border-color .2s ease, transform .2s ease, background-color .2s ease;
  display: block;
}
.work:hover { border-color: var(--line-2); background: var(--panel-2); transform: translateY(-3px); }


.frame {
  aspect-ratio: 16 / 10;
  position: relative;
  display: grid; place-items: center;
  border-bottom: 1px solid var(--line);
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 26px 26px;
  overflow: hidden;
}

.work-shot { width: 100%; aspect-ratio: 16/10; object-fit: cover; display: block; border-bottom: 1px solid var(--line); }

.frame-tag {
  position: absolute; top: 12px; left: 14px;
  font-family: var(--mono); font-size: 12px; color: var(--faint);
}
.frame-hint {
  font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--faint);
  border: 1px dashed var(--line-2);
  padding: 7px 13px;
}
.work:hover .frame-hint { color: var(--accent); border-color: var(--accent); }

.work-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 18px 4px; }
.work-meta h3 { font-size: 16px; font-weight: 600; }
.work-arrow { color: var(--faint); font-size: 15px; transition: color .2s ease, transform .2s ease; }
.work:hover .work-arrow { color: var(--accent); transform: translate(2px,-2px); }
.work-tags { font-family: var(--mono); font-size: 11.5px; color: var(--faint); padding: 0 18px 16px; }

.works-note { font-family: var(--mono); font-size: 12px; color: var(--faint); margin-top: 20px; }


.cases { border-top: 1px solid var(--line); }
.case {
  display: grid; grid-template-columns: 88px 1fr; gap: clamp(16px, 3vw, 40px);
  padding: clamp(28px, 4vw, 44px) 0;
  border-bottom: 1px solid var(--line);
}
.case-idx { font-family: var(--mono); font-size: 15px; color: var(--accent); padding-top: 6px; }
.case-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.case-head h3 { font-size: clamp(20px, 2.4vw, 27px); font-weight: 600; }
.chips { display: flex; gap: 7px; flex-wrap: wrap; }
.chips span {
  font-family: var(--mono); font-size: 11.5px; color: var(--muted);
  border: 1px solid var(--line); padding: 4px 10px;
}
.case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.case-grid > div { background: var(--panel); padding: 20px; }
.case-grid dt { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--faint); margin-bottom: 10px; }
.case-grid dd { font-size: 14.5px; color: var(--muted); }
.case-win { background: rgba(255, 90, 31,.05) !important; }
.case-win dt { color: var(--accent); }
.case-win dd { color: var(--text); }


.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.step { background: var(--panel); padding: clamp(24px, 2.4vw, 32px); transition: background-color .2s ease; }
.step:hover { background: var(--panel-2); }
.step-n { font-family: var(--mono); font-size: 13px; color: var(--accent); }
.step h3 { font-size: 17px; font-weight: 600; margin: 18px 0 10px; }
.step p { color: var(--muted); font-size: 14px; }


.stack { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; }
.stack li {
  font-family: var(--mono); font-size: 13.5px; color: var(--muted);
  border: 1px solid var(--line);
  padding: 10px 16px;
  transition: color .18s ease, border-color .18s ease;
}
.stack li:hover { color: var(--accent); border-color: var(--accent); }


.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.quote { background: var(--panel); padding: clamp(24px, 2.6vw, 32px); display: flex; flex-direction: column; gap: 22px; transition: background-color .2s ease; }
.quote:hover { background: var(--panel-2); }
.quote blockquote { font-size: 15.5px; line-height: 1.65; color: var(--text); }
.quote blockquote::before { content: "“"; font-family: var(--disp); color: var(--accent); font-size: 30px; line-height: 0; vertical-align: -6px; margin-right: 2px; }
.quote figcaption { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.mono-ava {
  width: 38px; height: 38px; flex-shrink: 0;
  display: grid; place-items: center;
  font-family: var(--mono); font-weight: 600; font-size: 15px;
  color: var(--accent);
  border: 1px solid var(--line-2);
}
.quote figcaption span:last-child { display: flex; flex-direction: column; }
.quote figcaption strong { font-size: 14px; }
.quote figcaption em { font-style: normal; font-family: var(--mono); font-size: 12px; color: var(--faint); }


.faq { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  cursor: pointer; list-style: none;
  padding: 22px 48px 22px 0;
  font-family: var(--disp); font-weight: 500; font-size: clamp(16px, 1.8vw, 19px);
  position: relative;
  transition: color .15s ease;
}
.faq-item summary:hover { color: var(--accent); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  font-family: var(--mono); font-size: 22px; color: var(--accent); transition: transform .2s ease;
}
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item p { padding: 0 48px 24px 0; color: var(--muted); font-size: 15px; max-width: 760px; }


.cta {
  border: 1px solid var(--line);
  background:
    radial-gradient(120% 120% at 100% 0%, rgba(255, 90, 31,.06), transparent 55%),
    var(--panel);
  padding: clamp(40px, 6vw, 72px);
  text-align: center;
}
.cta-title { font-size: clamp(28px, 4.4vw, 52px); font-weight: 700; margin: 16px 0; }
.cta-sub { max-width: 540px; margin: 0 auto 32px; color: var(--muted); font-size: 16.5px; }
.cta .hero-actions { justify-content: center; margin-top: 0; }


.footer { border-top: 1px solid var(--line); padding: 30px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-inner p { font-family: var(--mono); font-size: 12.5px; color: var(--faint); }
.footer-inner a { font-family: var(--mono); font-size: 12.5px; color: var(--muted); text-decoration: none; }
.footer-inner a:hover { color: var(--accent); }


.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .status-dot, .marquee-track { animation: none; }
}


@media (max-width: 940px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: var(--bg-2); border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 16px var(--pad); border-top: 1px solid var(--line); }
  .nav-cta { display: none; }
  .hero-art img { width: min(72vw, 680px); margin-right: -20vw; opacity: .55; }
  .hero-art::before { background: linear-gradient(90deg, var(--bg) 0%, rgba(10,10,11,.9) 48%, rgba(10,10,11,.48) 100%); }
  .bento { grid-template-columns: 1fr 1fr; }
  .tile-row { grid-column: span 2; }
  .works { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .quotes { grid-template-columns: 1fr; }
  .metrics { grid-template-columns: 1fr 1fr; }
  .metric:nth-child(2) { border-right: 0; }
  .metric { border-bottom: 1px solid var(--line); }
  .metrics { border-bottom: 0; }
}

@media (max-width: 760px) {
  .logo { gap: 8px; }
  .logo-mark { width: 30px; height: 30px; }
  .hero { min-height: auto; }
  .hero-art { align-items: flex-start; justify-content: center; }
  .hero-art img { width: min(118vw, 680px); margin: 70px -40vw 0 22vw; opacity: .3; }
  .hero-art::before { background: linear-gradient(180deg, rgba(10,10,11,.25), var(--bg) 82%); }
  .promo { flex-direction: column; align-items: flex-start; }
  .promo-btn { width: 100%; justify-content: center; }
  .case { grid-template-columns: 1fr; gap: 14px; }
  .case-idx { padding-top: 0; }
  .case-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .logo-word { font-size: 14px; }
  .footer-logo .logo-mark { display: none; }
  .bento { grid-template-columns: 1fr; }
  .tile-row { grid-column: auto; }
  .tile-row { flex-direction: column; flex-wrap: nowrap; }
  .tile-row .tile-top { flex-direction: row; width: auto; margin-bottom: 20px; }
  .tile-row .ticks-inline,
  .tile-row .tile-term { flex-basis: auto; width: 100%; }
  .works { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
}


.skip-link {
  position: fixed; top: 8px; left: 8px; z-index: 300;
  background: var(--accent); color: var(--accent-ink);
  font-family: var(--mono); font-size: 13px; font-weight: 600;
  padding: 10px 16px;
  transform: translateY(-160%);
  transition: transform .2s ease;
}
.skip-link:focus { transform: none; }


a:focus-visible, button:focus-visible, summary:focus-visible,
input:focus-visible, select:focus-visible, textarea:focus-visible,
.work:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}


.nav-links a.active { color: var(--accent); }


.hero { position: relative; overflow: hidden; }
.hero > .container { position: relative; z-index: 1; }
.grid-spot {
  position: absolute; inset: 0; z-index: 0;
  pointer-events: none;
  opacity: 0; transition: opacity .3s ease;
  background-image:
    linear-gradient(rgba(255, 90, 31,.55) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 90, 31,.55) 1px, transparent 1px);
  background-size: 64px 64px;
  background-position: center top;
  -webkit-mask-image: radial-gradient(170px circle at var(--mx, -200px) var(--my, -200px), #000 0%, transparent 68%);
  mask-image: radial-gradient(170px circle at var(--mx, -200px) var(--my, -200px), #000 0%, transparent 68%);
}
.hero.spot-on .grid-spot { opacity: 1; }


.guarantees {
  list-style: none;
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; background: var(--line); border: 1px solid var(--line);
}
.guard { background: var(--panel); padding: clamp(24px, 2.4vw, 32px); transition: background-color .2s ease; }
.guard:hover { background: var(--panel-2); }
.guard-n { font-family: var(--mono); font-size: 13px; color: var(--accent); }
.guard h3 { font-size: 16.5px; font-weight: 600; margin: 16px 0 10px; }
.guard p { color: var(--muted); font-size: 14px; }


.contact {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1px; background: var(--line); border: 1px solid var(--line);
}
.contact-intro, .brief { background: var(--panel); padding: clamp(28px, 4vw, 52px); }

.contact-intro { display: flex; flex-direction: column; }
.contact-intro .cta-title { font-size: clamp(28px, 3.6vw, 46px); font-weight: 700; margin: 16px 0 0; }
.contact-intro .cta-sub { margin: 18px 0 0; max-width: none; color: var(--muted); font-size: 16px; }

.contact-points { list-style: none; margin: 26px 0; display: grid; gap: 11px; }
.contact-points li { display: flex; gap: 11px; font-size: 14.5px; color: var(--muted); }
.contact-points span { color: var(--accent); font-family: var(--mono); }

.contact-direct { display: flex; gap: 10px; flex-wrap: wrap; margin-top: auto; }

.brief { display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--faint); }

.brief input, .brief select, .brief textarea {
  font-family: var(--font); font-size: 14.5px; color: var(--text);
  background: var(--bg-2); border: 1px solid var(--line);
  padding: 12px 14px; width: 100%;
  transition: border-color .16s ease, background-color .16s ease;
}
.brief textarea { resize: vertical; min-height: 96px; }
.brief input::placeholder, .brief textarea::placeholder { color: #54545c; }
.brief input:focus, .brief select:focus, .brief textarea:focus {
  outline: none; border-color: var(--accent); background: var(--panel-2);
}
.brief select {
  appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 38px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%238b8b92' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 13px center;
}
.brief select option { background: #141418; color: var(--text); }
.field.invalid input, .field.invalid select { border-color: #ff6b6b; }

.brief-submit { margin-top: 4px; justify-content: center; }
.brief-note { font-family: var(--mono); font-size: 11.5px; line-height: 1.55; color: var(--faint); }
.brief-note.ok { color: var(--accent); }


.to-top {
  position: fixed; right: 20px; bottom: 20px; z-index: 120;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  background: var(--panel); color: var(--text);
  border: 1px solid var(--line-2);
  font-size: 18px; cursor: pointer;
  opacity: 0; transform: translateY(10px); pointer-events: none;
  transition: opacity .25s ease, transform .25s ease, background-color .16s ease, border-color .16s ease, color .16s ease;
}
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }

@media (prefers-reduced-motion: reduce) {
  .grid-spot { display: none; }
}

@media (max-width: 940px) {
  .guarantees { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .contact { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .guarantees { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .to-top { right: 14px; bottom: 14px; }
}


.breadcrumbs {
  display: flex; gap: 8px; flex-wrap: wrap;
  font-family: var(--mono); font-size: 12.5px;
  color: var(--faint);
  padding-top: 28px;
}
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--accent); }


.posts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.posts-3 { grid-template-columns: repeat(3, 1fr); }
.post-card {
  display: flex; flex-direction: column;
  border: 1px solid var(--line); background: var(--panel);
  padding: clamp(24px, 2.4vw, 32px);
  text-decoration: none; color: inherit;
  transition: border-color .2s ease, background-color .2s ease, transform .2s ease;
}
.post-card:hover { border-color: var(--line-2); background: var(--panel-2); transform: translateY(-3px); }
.post-card.feat { grid-column: 1 / -1; }
.post-card.feat h3 { font-size: clamp(24px, 3vw, 34px); }
.post-meta {
  font-family: var(--mono); font-size: 11.5px;
  text-transform: uppercase; letter-spacing: .04em; color: var(--faint);
  display: flex; gap: 10px; flex-wrap: wrap; align-items: center;
}
.post-meta .cat { color: var(--accent); }
.post-card h3 { font-size: clamp(18px, 2vw, 23px); font-weight: 600; margin: 14px 0 12px; line-height: 1.2; }
.post-card p { color: var(--muted); font-size: 14.5px; flex: 1; }
.post-card .read { margin-top: 20px; font-family: var(--mono); font-size: 12.5px; color: var(--accent); }
.post-card:hover .read { text-decoration: underline; text-underline-offset: 3px; }

.blog-all { margin-top: 28px; }


.article { padding: clamp(28px, 5vw, 56px) 0 clamp(64px, 9vw, 110px); }
.article-inner { width: min(760px, 100% - 2*var(--pad)); margin-inline: auto; }

.post-head { margin: clamp(24px, 4vw, 44px) 0 clamp(28px, 4vw, 48px); }
.post-head .post-meta { margin-bottom: 20px; }
.post-title { font-size: clamp(30px, 5.2vw, 58px); font-weight: 700; letter-spacing: -.03em; line-height: 1.04; }
.post-lead { margin-top: 24px; font-size: clamp(17px, 1.9vw, 20px); color: var(--muted); line-height: 1.6; }
.post-divider { height: 1px; background: var(--line); margin: 0; }


.prose { color: var(--muted); }
.prose > * + * { margin-top: 1.15em; }
.prose h2 {
  font-family: var(--disp); font-weight: 600; color: var(--text);
  font-size: clamp(22px, 3vw, 31px); letter-spacing: -.02em;
  margin-top: 1.9em; padding-top: .3em;
}
.prose h3 {
  font-family: var(--disp); font-weight: 600; color: var(--text);
  font-size: clamp(18px, 2.2vw, 22px); margin-top: 1.5em;
}
.prose p, .prose li { font-size: 16.5px; line-height: 1.78; }
.prose strong { color: var(--text); font-weight: 600; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose ul, .prose ol { padding-left: 4px; display: grid; gap: 10px; }
.prose li { list-style: none; padding-left: 26px; position: relative; }
.prose ul li::before { content: "—"; position: absolute; left: 0; color: var(--accent); font-family: var(--mono); }
.prose ol { counter-reset: li; }
.prose ol li::before { counter-increment: li; content: counter(li, decimal-leading-zero); position: absolute; left: 0; color: var(--accent); font-family: var(--mono); font-size: 13px; top: 2px; }
.prose blockquote {
  border-left: 3px solid var(--accent);
  background: var(--panel);
  padding: 18px 22px; margin: 1.6em 0;
  color: var(--text); font-size: 17px;
}
.prose code {
  font-family: var(--mono); font-size: .88em;
  background: var(--bg-2); border: 1px solid var(--line);
  padding: 2px 6px; color: var(--accent);
}
.prose figure, .prose .shot { margin: 1.8em 0; }


.callout {
  border: 1px solid var(--line); border-left: 3px solid var(--accent);
  background: var(--panel); padding: 20px 24px; margin: 1.8em 0;
}
.callout .callout-l { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--accent); display: block; margin-bottom: 10px; }
.callout p { margin: 0; font-size: 15.5px; }


.table-wrap { overflow-x: auto; margin: 1.8em 0; border: 1px solid var(--line); }
.prose table { width: 100%; border-collapse: collapse; min-width: 460px; }
.prose th, .prose td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.prose thead th { font-family: var(--mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em; color: var(--faint); background: var(--bg-2); }
.prose tbody tr:last-child td { border-bottom: 0; }
.prose td:first-child { color: var(--text); }


.post-cta {
  margin-top: 3em;
  border: 1px solid var(--line);
  background: radial-gradient(120% 120% at 100% 0%, rgba(255, 90, 31,.06), transparent 55%), var(--panel);
  padding: clamp(28px, 4vw, 44px); text-align: center;
}
.post-cta h2 { font-size: clamp(22px, 3vw, 32px); margin-bottom: 12px; }
.post-cta p { color: var(--muted); max-width: 460px; margin: 0 auto 24px; }


.post-more { margin-top: clamp(48px, 7vw, 80px); }
.post-more .mono-label { margin-bottom: 20px; }

@media (max-width: 760px) {
  .posts, .posts-3 { grid-template-columns: 1fr; }
}


.term {
  max-width: 640px;
  margin-top: 44px;
  border: 1px solid var(--line-2);
  background: rgba(14,14,16,.85);
  backdrop-filter: blur(6px);
  box-shadow: 0 24px 60px rgba(0,0,0,.45);
}
.term-bar {
  display: flex; align-items: center; gap: 7px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
}
.term-dot { width: 10px; height: 10px; border-radius: 50%; background: #2c2c31; }
.term-bar .term-dot:first-child { background: #3a3a40; }
.term-title {
  margin-left: 10px;
  font-family: var(--mono); font-size: 11.5px;
  color: var(--faint);
}
.term-hint {
  margin-left: auto;
  font-family: var(--mono); font-size: 10.5px;
  color: var(--faint);
  border: 1px solid var(--line);
  padding: 2px 7px;
}
.term-body {
  padding: 16px 18px 18px;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.75;
  color: var(--muted);
  min-height: 132px;
  white-space: pre-wrap;
  word-break: break-word;
}
.term-body .t-cmd { color: var(--text); }
.term-body .t-ok { color: var(--accent); }
.term-body .t-dim { color: var(--faint); }
.term-caret {
  display: inline-block;
  width: 8px; height: 15px;
  margin-left: 2px;
  background: var(--accent);
  vertical-align: -2px;
  animation: caret-blink 1s steps(1) infinite;
}
@keyframes caret-blink { 50% { opacity: 0; } }


.palette-btn {
  display: inline-flex; align-items: center; gap: 4px;
  background: transparent;
  border: 1px solid var(--line);
  padding: 7px 10px;
  cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease;
}
.palette-btn:hover { border-color: var(--line-2); background: rgba(255,255,255,.04); }
.palette-btn kbd, .palette-esc, .palette-foot span {
  font-family: var(--mono); font-size: 10.5px;
  color: var(--muted);
}
.palette-btn kbd {
  border: 1px solid var(--line);
  padding: 1px 5px;
  background: var(--panel);
}


.palette { position: fixed; inset: 0; z-index: 300; }
.palette[hidden] { display: none; }
.palette-backdrop {
  position: absolute; inset: 0;
  background: rgba(5,5,6,.7);
  backdrop-filter: blur(4px);
}
.palette-panel {
  position: relative;
  width: min(560px, calc(100% - 32px));
  margin: 14vh auto 0;
  border: 1px solid var(--line-2);
  background: var(--panel);
  box-shadow: 0 40px 100px rgba(0,0,0,.6);
  animation: palette-in .18s ease both;
}
@keyframes palette-in {
  from { transform: translateY(10px) scale(.985); opacity: 0; }
  to   { transform: none; opacity: 1; }
}
.palette-head {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}
.palette-prompt { font-family: var(--mono); color: var(--accent); font-size: 15px; }
.palette-input {
  flex: 1;
  background: none; border: 0; outline: 0;
  color: var(--text);
  font-family: var(--mono); font-size: 14px;
}
.palette-input::placeholder { color: var(--faint); }
.palette-esc { border: 1px solid var(--line); padding: 2px 6px; }
.palette-list {
  list-style: none;
  max-height: 320px;
  overflow-y: auto;
  padding: 6px;
}
.palette-list li {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px;
  font-size: 14px;
  color: var(--muted);
  cursor: pointer;
}
.palette-list li.sel, .palette-list li:hover {
  background: rgba(255, 90, 31,.08);
  color: var(--text);
}
.palette-list li.hide { display: none; }
.cmd-ic {
  width: 20px;
  font-family: var(--mono); font-size: 13px;
  color: var(--accent);
  text-align: center;
}
.cmd-note { margin-left: auto; font-family: var(--mono); font-size: 11px; color: var(--faint); }
.palette-foot {
  display: flex; gap: 18px;
  padding: 10px 16px;
  border-top: 1px solid var(--line);
}


@media (hover: hover) and (pointer: fine) {
  .cursor-dot, .cursor-ring {
    position: fixed; top: 0; left: 0;
    z-index: 400;
    pointer-events: none;
    border-radius: 50%;
    opacity: 0;
    transition: opacity .2s ease;
  }
  body.cursor-live .cursor-dot, body.cursor-live .cursor-ring { opacity: 1; }
  .cursor-dot {
    width: 6px; height: 6px;
    margin: -3px 0 0 -3px;
    background: var(--accent);
  }
  .cursor-ring {
    width: 34px; height: 34px;
    margin: -17px 0 0 -17px;
    border: 1px solid rgba(255, 90, 31,.5);
    transition: opacity .2s ease, transform .12s ease, width .18s ease, height .18s ease, margin .18s ease;
  }
  body.cursor-hot .cursor-ring {
    width: 52px; height: 52px;
    margin: -26px 0 0 -26px;
    border-color: var(--accent);
  }
}


.tile { position: relative; }
.tile::after {
  content: "";
  position: absolute; inset: -1px;
  border: 1px solid transparent;
  background:
    radial-gradient(220px circle at var(--gx, 50%) var(--gy, 50%), rgba(255, 90, 31,.45), transparent 70%)
    border-box;
  -webkit-mask: linear-gradient(#000 0 0) padding-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask: linear-gradient(#000 0 0) padding-box, linear-gradient(#000 0 0);
          mask-composite: exclude;
  opacity: 0;
  transition: opacity .25s ease;
  pointer-events: none;
}
.tile:hover::after { opacity: 1; }


.rub {
  position: fixed;
  top: -30px;
  z-index: 500;
  font-family: var(--mono);
  font-weight: 600;
  color: var(--accent);
  pointer-events: none;
  animation: rub-fall linear forwards;
}
@keyframes rub-fall {
  to { transform: translateY(110vh) rotate(360deg); opacity: .1; }
}
.egg-toast {
  position: fixed;
  left: 50%; bottom: 28px;
  transform: translateX(-50%);
  z-index: 501;
  padding: 12px 20px;
  border: 1px solid var(--accent);
  background: var(--panel);
  color: var(--text);
  font-family: var(--mono); font-size: 13px;
  box-shadow: 0 16px 50px rgba(0,0,0,.5);
  animation: palette-in .2s ease both;
}
.egg-toast b { color: var(--accent); font-weight: 600; }


.work-real { position: relative; }
.work-live, .case-live {
  position: absolute; top: 0; right: 0; z-index: 2;
  font-family: var(--mono); font-size: 10.5px;
  text-transform: uppercase; letter-spacing: .06em;
  background: var(--accent); color: var(--accent-ink);
  padding: 5px 10px;
}
.work-real:hover { border-color: var(--accent); }


.frame-liamouse {
  background:
    radial-gradient(80% 70% at 70% 20%, rgba(168,230,29,.12), transparent 60%),
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px),
    #0e0d0c;
  background-size: auto, 26px 26px, 26px 26px, auto;
  flex-direction: column; gap: 8px;
}
.lm-logo {
  font-family: var(--disp); font-weight: 700;
  font-size: clamp(22px, 3.4vw, 32px); letter-spacing: -.02em;
  color: #ededed;
}
.lm-logo b { color: #a8e61d; font-weight: 700; }
.lm-sub {
  font-family: var(--mono); font-size: 10.5px;
  text-transform: uppercase; letter-spacing: .14em; color: var(--faint);
}
.work-real:hover .lm-logo { color: #fff; }


.case-real .case-head h3 { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.case-live { position: static; }
.case-go {
  display: inline-block; margin-top: 20px;
  font-family: var(--mono); font-size: 12.5px;
  color: var(--accent); text-decoration: none;
  border: 1px solid rgba(255, 90, 31,.35);
  padding: 10px 16px;
  transition: background-color .18s ease, color .18s ease;
}
.case-go:hover { background: var(--accent); color: var(--accent-ink); }


.lab-link {
  display: flex; align-items: center; gap: clamp(18px, 3vw, 36px);
  margin-top: clamp(28px, 4vw, 44px);
  padding: clamp(24px, 3vw, 36px);
  border: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(255, 90, 31,.05), transparent 55%),
    var(--panel);
  text-decoration: none; color: inherit;
  transition: border-color .2s ease, background-color .2s ease, transform .2s ease;
}
.lab-link:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
}
.lab-link-side { display: flex; flex-direction: column; gap: 7px; flex-shrink: 0; }
.lab-link-side i {
  display: block; width: 34px; height: 3px;
  background: var(--line-2);
  transition: background-color .25s ease, width .25s ease;
}
.lab-link:hover .lab-link-side i { background: var(--accent); }
.lab-link:hover .lab-link-side i:nth-child(2) { width: 22px; }
.lab-link:hover .lab-link-side i:nth-child(3) { width: 28px; }
.lab-link-body { display: flex; flex-direction: column; gap: 10px; }
.lab-link-body strong {
  font-family: var(--disp); font-size: clamp(18px, 2.2vw, 25px); font-weight: 600;
  letter-spacing: -.01em;
}
.lab-link-sub { color: var(--muted); font-size: 14.5px; max-width: 640px; }
.lab-link-go {
  margin-left: auto; flex-shrink: 0;
  font-family: var(--mono); font-size: 12.5px; color: var(--accent);
  border: 1px solid rgba(255, 90, 31,.35);
  padding: 12px 18px;
  transition: background-color .2s ease, color .2s ease;
}
.lab-link:hover .lab-link-go { background: var(--accent); color: var(--accent-ink); }

@media (max-width: 860px) {
  .lab-link { flex-wrap: wrap; }
  .lab-link-side { flex-direction: row; }
  .lab-link-side i { width: 3px; height: 34px; }
  .lab-link:hover .lab-link-side i:nth-child(2) { width: 3px; height: 22px; }
  .lab-link:hover .lab-link-side i:nth-child(3) { width: 3px; height: 28px; }
  .lab-link-go { margin-left: 0; width: 100%; text-align: center; }
}


@media (max-width: 720px) {
  .palette-btn { display: none; }
  .term-hint { display: none; }
  .term-body { font-size: 12px; min-height: 120px; }
}
@media (prefers-reduced-motion: reduce) {
  .term-caret { animation: none; }
  .cursor-dot, .cursor-ring { display: none !important; }
  .rub { display: none; }
}


.promo-slots {
  margin-top: 18px;
  display: flex; align-items: center; gap: 11px;
  font-family: var(--mono); font-size: 12.5px;
  color: var(--muted);
}
.slot-dots { display: inline-flex; gap: 5px; }
.slot-dots i {
  width: 8px; height: 8px; border-radius: 50%;
  border: 1px solid var(--accent);
}
.slot-dots i.on { background: var(--accent); }


.calc {
  display: grid; grid-template-columns: 1.55fr 1fr;
  gap: 1px; background: var(--line); border: 1px solid var(--line);
}
.calc-controls {
  background: var(--panel);
  padding: clamp(24px, 3.2vw, 42px);
  display: grid; gap: 30px; align-content: start;
}
.calc-group { border: 0; margin: 0; padding: 0; min-inline-size: auto; }
.calc-legend {
  display: block; padding: 0; margin-bottom: 14px;
  font-family: var(--mono); font-size: 11px;
  text-transform: uppercase; letter-spacing: .06em;
  color: var(--faint);
}

.calc-types { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.calc-type { position: relative; }
.calc-type input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.calc-type span {
  display: flex; flex-direction: column; gap: 5px;
  border: 1px solid var(--line);
  padding: 14px 16px;
  cursor: pointer;
  transition: border-color .16s ease, background-color .16s ease;
}
.calc-type span:hover { border-color: var(--line-2); }
.calc-type b { font-family: var(--disp); font-size: 15px; font-weight: 600; }
.calc-type i { font-style: normal; font-family: var(--mono); font-size: 11px; color: var(--faint); }
.calc-type input:checked + span { border-color: var(--accent); background: rgba(255, 90, 31,.06); }
.calc-type input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

.calc-addons { display: grid; gap: 8px; }
.calc-addon {
  display: flex; align-items: center; gap: 12px;
  border: 1px solid var(--line);
  padding: 12px 14px;
  cursor: pointer;
  transition: border-color .16s ease;
}
.calc-addon:hover { border-color: var(--line-2); }
.calc-addon input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.add-box {
  width: 18px; height: 18px; flex-shrink: 0;
  border: 1px solid var(--line-2);
  display: grid; place-items: center;
  font-family: var(--mono); font-size: 12px;
  transition: background-color .14s ease, border-color .14s ease;
}
.add-box::before { content: "+"; color: var(--faint); }
.calc-addon input:checked + .add-box { background: var(--accent); border-color: var(--accent); }
.calc-addon input:checked + .add-box::before { content: "✓"; color: var(--accent-ink); font-weight: 700; }
.calc-addon input:focus-visible + .add-box { outline: 2px solid var(--accent); outline-offset: 2px; }
.calc-addon:has(input:checked) { border-color: rgba(255, 90, 31,.4); }
.calc-addon:has(input:checked) .add-name { color: var(--text); }
.add-name { font-size: 14px; color: var(--muted); transition: color .14s ease; }
.add-price { margin-left: auto; font-family: var(--mono); font-size: 11.5px; color: var(--faint); white-space: nowrap; }

.calc-result {
  background:
    radial-gradient(120% 120% at 100% 0%, rgba(255, 90, 31,.07), transparent 55%),
    var(--panel);
  padding: clamp(24px, 3.2vw, 42px);
  display: flex; flex-direction: column;
}
.calc-price {
  display: flex; align-items: baseline; gap: 6px;
  font-family: var(--disp); font-weight: 700;
  font-size: clamp(27px, 3.2vw, 40px);
  letter-spacing: -.03em; line-height: 1.1;
}
.calc-cur { color: var(--accent); font-size: .62em; }
.calc-price.bump { animation: price-bump .25s ease; }
@keyframes price-bump { 50% { transform: scale(1.03); } }
.calc-days { margin-top: 10px; font-family: var(--mono); font-size: 12.5px; color: var(--muted); }
.calc-list { list-style: none; margin: 22px 0; display: grid; gap: 8px; }
.calc-list li { position: relative; padding-left: 18px; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.calc-list li::before { content: "+"; position: absolute; left: 0; color: var(--accent); }
.calc-cta { margin-top: auto; justify-content: center; }
.calc-note { margin-top: 14px; font-family: var(--mono); font-size: 11.5px; line-height: 1.55; color: var(--faint); }


.compare-wrap { overflow-x: auto; border: 1px solid var(--line); }
.compare { width: 100%; border-collapse: collapse; min-width: 680px; }
.compare th, .compare td {
  text-align: left; vertical-align: top;
  padding: 15px 18px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.compare thead th {
  font-family: var(--mono); font-size: 11.5px; font-weight: 500;
  text-transform: uppercase; letter-spacing: .05em;
  color: var(--muted); background: var(--bg-2);
}
.compare thead th.me { color: var(--text); }
.compare thead th.me span { color: var(--accent); }
.compare tbody th {
  font-family: var(--mono); font-size: 11.5px; font-weight: 500;
  text-transform: uppercase; letter-spacing: .04em;
  color: var(--faint); padding-top: 17px;
}
.compare tbody td { color: var(--muted); }
.compare .me { background: rgba(255, 90, 31,.06); border-left: 1px solid rgba(255, 90, 31,.3); }
.compare tbody td.me { color: var(--text); }
.compare tr:last-child th, .compare tr:last-child td { border-bottom: 0; }


.mobile-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 150;
  display: none; gap: 10px;
  padding: 10px var(--pad) calc(10px + env(safe-area-inset-bottom));
  background: rgba(10,10,11,.92);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
  transform: translateY(105%);
  transition: transform .28s ease;
}
.mobile-cta.show { transform: none; }
.mobile-cta .btn { flex: 1; justify-content: center; padding-inline: 10px; }

@media (max-width: 940px) {
  .calc { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .mobile-cta { display: flex; }
  .to-top { bottom: 78px; }

  .decor-divider,
  .decor-trail { height: 58px; }

  .decor-divider { margin-bottom: -12px; }
  .decor-trail { margin-top: -16px; margin-bottom: -16px; }

  .decor-divider img,
  .decor-trail img {
    width: 100%;
  }

  #works::before { display: none; }
  .contact::after { inset: 6px; opacity: .11; }
}
@media (max-width: 560px) {
  .calc-types { grid-template-columns: 1fr; }
  .promo-slots { align-items: flex-start; }
  .slot-dots { margin-top: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  .mobile-cta { transition: none; }
  .calc-price.bump { animation: none; }
}


.theme-btn {
  display: inline-grid; place-items: center;
  width: 38px; height: 38px; flex: 0 0 auto;
  background: none; cursor: pointer;
  border: 1px solid var(--line-2); border-radius: 12px;
  color: var(--muted); position: relative;
  transition: color .18s ease, border-color .18s ease, background-color .18s ease;
}
.theme-btn:hover { color: var(--accent); border-color: var(--accent); }
.theme-btn svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
.theme-btn .tb-sun { fill: currentColor; stroke: none; }
.theme-btn .tb-moon { display: none; }
.theme-btn[data-now="light"] .tb-sun,
.theme-btn[data-now="light"] .tb-rays { display: none; }
.theme-btn[data-now="light"] .tb-moon { display: block; fill: currentColor; stroke: none; }
.theme-btn[data-mode="light"]::after,
.theme-btn[data-mode="dark"]::after {
  content: ""; position: absolute; top: 5px; right: 5px;
  width: 5px; height: 5px; border-radius: 50%; background: var(--accent);
}

 
.btn, .mod, .fact, .post-card, .sh, .tg, .alg, .fx, .ed,
.lab-facts, .to-top, .nav-cta { border-radius: 12px; }
.mod, .post-card, .lab-facts { border-radius: 16px; overflow: hidden; }
.btn { border-radius: 12px; }
.to-top { border-radius: 14px; }
