/* css/site.css: the front page. */
html { scroll-behavior: smooth; }
body { background: var(--paper) var(--grain); line-height: 1.55; }
.nav { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 22px; padding: 12px max(20px, env(safe-area-inset-right)) 12px max(20px, env(safe-area-inset-left)); background: rgba(247, 240, 222, .92); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.logo { display: inline-flex; align-items: center; gap: 10px; font: 400 22px var(--fd); color: var(--ink); text-decoration: none; }
.nav nav { display: flex; gap: 20px; margin-left: auto; }
.nav nav a { color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: 15px; }
.nav nav a:hover { color: var(--ink); }

.hero { position: relative; min-height: min(86vh, 860px); display: grid; align-items: center; padding: 28px max(20px, env(safe-area-inset-left)); overflow: hidden; }
.stage { position: absolute; inset: 0; background: #3e8aa3; }
.stage canvas { width: 100%; height: 100%; display: block; }
.stage-note { position: absolute; right: 18px; bottom: 16px; font: 12px var(--fl); letter-spacing: .14em; text-transform: uppercase; color: #fff8ec; background: rgba(40, 25, 12, .35); padding: 6px 10px; border-radius: 8px; }
.hero-card { position: relative; z-index: 2; max-width: 520px; padding: 30px 32px 26px; margin-left: clamp(0px, 4vw, 60px); }
.hero-card h1 { font: 400 clamp(36px, 5vw, 58px)/1.04 var(--fd); margin: 10px 0 14px; letter-spacing: -.01em; }
.lead { font-size: 18px; color: var(--ink-2); margin: 0 0 20px; }
.cta { display: flex; gap: 10px; flex-wrap: wrap; }
.cta.center { justify-content: center; margin-top: 28px; }
.live { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #3f8a4a; box-shadow: 0 0 0 3px rgba(63, 138, 74, .2); }
.meander.wide { height: 12px; }

.block { padding: 80px max(20px, env(safe-area-inset-left)); max-width: 1180px; margin: 0 auto; }
.block.alt { max-width: none; background: var(--paper-2) var(--grain); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.block.alt > * { max-width: 1140px; margin-left: auto; margin-right: auto; }
.head { max-width: 720px; margin-bottom: 32px; }
.block h2 { font: 400 clamp(28px, 3.4vw, 40px)/1.12 var(--fd); margin: 8px 0 12px; }
.block p { color: var(--ink-2); font-size: 17px; }
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.tile { padding: 22px 20px; }
.tile h3 { font: 400 21px var(--fd); margin: 12px 0 6px; }
.tile p { font-size: 15px; margin: 0; }
.ico { width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center; background: var(--paper-2); box-shadow: inset 0 1px 2px rgba(60, 34, 18, .2); }
.ico svg { width: 32px; height: 32px; }

.works-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.workcard { padding: 20px; }
.workcard h3 { font: 400 22px var(--fd); margin: 0 0 4px; }
.workcard .st { display: flex; gap: 6px; margin: 14px 0 12px; }
.workcard .st i { flex: 1; height: 26px; border-radius: 6px; background: var(--paper-3); box-shadow: inset 0 1px 2px rgba(60, 34, 18, .2); display: grid; place-items: center; font: 12px var(--fl); color: var(--ink-3); font-style: normal; }
.workcard .st i.done { background: var(--terra); color: #fff8ec; box-shadow: 0 1px 0 var(--terra-d); }
.workcard .st i.open { background: #f0d7b8; color: var(--terra-d); }
.workcard .now { font-size: 14px; color: var(--ink-2); }
.workcard .needs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; font-size: 14px; }
.workcard .needs span { display: inline-flex; align-items: center; gap: 4px; }
.workcard .needs svg { width: 18px; height: 18px; }

.split { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: start; }
.facts { padding: 8px 22px; }
.fact { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px dashed var(--line-2); }
.fact:last-child { border-bottom: 0; }
.fact b { font-weight: 600; text-align: right; }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; }
.steps li { position: relative; padding: 18px 18px 18px 60px; background: var(--paper) var(--grain); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--lift); color: var(--ink-2); }
.steps li::before { counter-increment: s; content: counter(s); position: absolute; left: 16px; top: 16px; width: 30px; height: 30px; border-radius: 50%; background: var(--aegean); color: #fff8ec; display: grid; place-items: center; font: 400 16px var(--fd); }
.steps b { color: var(--ink); }
.foot { padding: 30px max(20px, env(safe-area-inset-left)) 40px; color: var(--ink-2); font-size: 14px; }
.foot-row { display: flex; flex-wrap: wrap; gap: 10px 26px; justify-content: center; margin-top: 18px; }

@media (max-width: 980px) {
  .grid4 { grid-template-columns: repeat(2, 1fr); }
  .works-grid { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .nav nav { display: none; }
  .nav .btn { margin-left: auto; }
  .hero { display: block; min-height: 0; padding: 0; }
  .stage { position: relative; height: 62vh; min-height: 340px; }
  .hero-card { margin: -46px 14px 0; padding: 22px 20px; }
  .lead { font-size: 16px; }
  .block { padding: 56px 18px; }
  .grid4 { grid-template-columns: 1fr; }
}
