/* ============ Tokens ============ */
:root, [data-theme="dark"] {
  --bg: #000000;
  --surface: #0f0f0f;
  --card: #1a1a1a;
  --card-2: #232323;
  --line: #2c2c2c;
  --text: #ffffff;
  --text-2: #d6d6d6;
  --muted: #a3a3a3;
  --brand: #6FBE44;
  --brand-strong: #84d057;
  --brand-ink: #0b1a03;
  --brand-soft: rgba(111,190,68,.14);
  --amber: #F5B020;
  --amber-soft: rgba(245,176,32,.15);
  --blue: #3A9BE0;
  --blue-soft: rgba(58,155,224,.15);
  --red: #F06262;
  --red-soft: rgba(240,98,98,.15);
  --shadow: 0 10px 30px rgba(0,0,0,.5);
  --overlay: rgba(0,0,0,.66);
  --tab-bg: rgba(14,14,14,.94);
}
[data-theme="light"] {
  --bg: #f3f5f1;
  --surface: #ffffff;
  --card: #ffffff;
  --card-2: #f0f3ed;
  --line: #dfe4db;
  --text: #121512;
  --text-2: #2c322b;
  --muted: #5b6458;
  --brand: #3f8f1c;
  --brand-strong: #34781a;
  --brand-ink: #ffffff;
  --brand-soft: rgba(63,143,28,.12);
  --amber: #b77800;
  --amber-soft: rgba(245,176,32,.18);
  --blue: #1f72b8;
  --blue-soft: rgba(31,114,184,.12);
  --red: #c93a3a;
  --red-soft: rgba(201,58,58,.1);
  --shadow: 0 10px 30px rgba(20,30,15,.14);
  --overlay: rgba(10,15,8,.45);
  --tab-bg: rgba(255,255,255,.96);
}
/* public website: daylight theme (brand green + Rubik/Heebo kept) */
.site {
  --bg: #F6F5F0; --surface:#ffffff; --card:#ffffff; --card-2:#efeee8; --line:#dad8cf;
  --text:#141712; --text-2:#2c3029; --muted:#596055; --brand:#3c7f1f; --brand-ink:#ffffff; --brand-soft: rgba(111,190,68,.16);
  --red:#c93a3a; --red-soft: rgba(201,58,58,.1); --amber:#a86a00;
}

/* ============ Base ============ */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: "Heebo", "Assistant", Arial, sans-serif; font-size: 16px; line-height: 1.55;
  overflow-x: hidden; -webkit-tap-highlight-color: transparent;
}
h1,h2,h3,h4 { font-family: "Rubik", "Heebo", sans-serif; margin: 0; line-height: 1.2; font-weight: 600; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
img { max-width: 100%; display: block; }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.xs { font-size: 12px; }
.bold { font-weight: 600; }
.brand { color: var(--brand); }
.red { color: var(--red); }
.amber { color: var(--amber); }
.hidden { display: none !important; }
.sr { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
svg.i { width: 22px; height: 22px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
svg.i.sm { width: 18px; height: 18px; }
svg.i.lg { width: 28px; height: 28px; }

/* ============ Buttons & inputs ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 20px; border-radius: 12px; border: 1px solid transparent;
  background: var(--brand); color: var(--brand-ink); font-weight: 600; font-size: 16px; cursor: pointer;
  transition: transform .08s ease, background .15s ease; white-space: nowrap;
}
.btn:active { transform: scale(.98); }
.btn.block { width: 100%; }
.btn.ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn.soft { background: var(--card-2); color: var(--text); }
.btn.white { background: #fff; color: #333; border-radius: 6px; }
.btn.danger { background: var(--red-soft); color: var(--red); }
.btn.sm { min-height: 38px; padding: 0 14px; font-size: 14px; border-radius: 10px; }
.btn[disabled] { opacity: .45; pointer-events: none; }
.icon-btn {
  width: 44px; height: 44px; border-radius: 12px; display: inline-grid; place-items: center;
  background: transparent; border: 0; color: var(--text); cursor: pointer;
}
.icon-btn:active { background: var(--card-2); }

.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field > label, .label { font-size: 14px; color: var(--text-2); font-weight: 500; }
.input, select.input, textarea.input {
  width: 100%; min-height: 50px; padding: 12px 14px; border-radius: 12px;
  background: var(--card-2); border: 1px solid var(--line); color: var(--text); font-size: 16px;
}
textarea.input { min-height: 96px; resize: vertical; }
.input:focus { border-color: var(--brand); outline: none; }
.input[disabled] { opacity: .5; }
.input.err { border-color: var(--red); }
.err-msg { color: var(--red); font-size: 13px; }
.hint { color: var(--muted); font-size: 13px; }
.row { display: flex; gap: 10px; align-items: center; }
.row.wrap { flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.grow { flex: 1; min-width: 0; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.check { display: flex; gap: 10px; align-items: center; min-height: 44px; cursor: pointer; }
.check input { width: 22px; height: 22px; accent-color: var(--brand); }

.seg { display: flex; background: var(--card-2); border-radius: 12px; padding: 4px; gap: 4px; }
.seg button { flex: 1; min-height: 40px; border: 0; background: transparent; border-radius: 9px; font-weight: 500; cursor: pointer; color: var(--muted); }
.seg button.on { background: var(--card); color: var(--text); box-shadow: 0 1px 3px rgba(0,0,0,.25); }

.stepper { display: flex; align-items: center; gap: 6px; }
.stepper button { width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: var(--card-2); font-size: 22px; cursor: pointer; color: var(--text); }
.stepper .val { min-width: 74px; text-align: center; font-weight: 600; font-size: 20px; }

/* ============ Chips / badges ============ */
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 13px; font-weight: 500; background: var(--card-2); color: var(--text-2); white-space: nowrap; }
.chip.green { background: var(--brand-soft); color: var(--brand); }
.chip.amber { background: var(--amber-soft); color: var(--amber); }
.chip.blue { background: var(--blue-soft); color: var(--blue); }
.chip.red { background: var(--red-soft); color: var(--red); }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 8px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.fchip { min-height: 38px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: transparent; white-space: nowrap; cursor: pointer; color: var(--text-2); font-size: 14px; }
.fchip.on { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); font-weight: 600; }

/* ============ Cards & lists ============ */
.card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 16px; }
.card + .card, .card + .section, .section + .card { margin-top: 12px; }
.card.tight { padding: 12px; }
.card.hl { border-color: var(--brand); }
.section { margin-top: 22px; }
.section-title { display: flex; justify-content: space-between; align-items: center; margin: 0 2px 10px; }
.section-title h3 { font-size: 17px; }
.section-title a { color: var(--brand); font-size: 14px; font-weight: 500; }
.list { display: grid; gap: 10px; }
.item { display: flex; align-items: center; gap: 12px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px; min-height: 64px; }
.item .t { font-weight: 600; }
.item .s { color: var(--muted); font-size: 13px; }
.item .end { margin-inline-start: auto; text-align: end; display: grid; gap: 4px; justify-items: end; }
.item .chev { color: var(--muted); }
.avatar { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); font-weight: 700; flex: none; }
.avatar.blue { background: var(--blue-soft); color: var(--blue); }
.avatar.amber { background: var(--amber-soft); color: var(--amber); }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; font-size: 15px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; text-align: end; font-weight: 500; }
.divider { height: 1px; background: var(--line); margin: 14px 0; }
.progress { height: 8px; background: var(--card-2); border-radius: 99px; overflow: hidden; }
.progress > span { display: block; height: 100%; background: var(--brand); border-radius: 99px; }
.empty { text-align: center; padding: 32px 16px; color: var(--muted); }
.empty svg { margin: 0 auto 10px; width: 40px; height: 40px; }
.notice { display: flex; gap: 10px; padding: 12px 14px; border-radius: 12px; background: var(--blue-soft); color: var(--text); font-size: 14px; align-items: flex-start; }
.notice.amber { background: var(--amber-soft); }
.notice.red { background: var(--red-soft); }
.notice.green { background: var(--brand-soft); }
.notice svg { flex: none; margin-top: 1px; }

/* KPIs */
.kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.kpi { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 14px; display: grid; gap: 4px; min-height: 96px; }
.kpi .k-label { font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.kpi .k-val { font-family: Rubik, sans-serif; font-size: 22px; font-weight: 600; }
.kpi .k-sub { font-size: 12px; color: var(--muted); }
.kpi.alert .k-val { color: var(--amber); }

/* bars */
.bars { display: grid; gap: 12px; }
.bar-row { display: grid; gap: 4px; }
.bar-row .bar-l { display: flex; justify-content: space-between; font-size: 13px; color: var(--text-2); }
.bar-track { height: 10px; background: var(--card-2); border-radius: 99px; position: relative; overflow: hidden; }
.bar-track > span { position: absolute; inset-block: 0; inset-inline-start: 0; border-radius: 99px; }
.legend { display: flex; gap: 14px; font-size: 13px; color: var(--muted); flex-wrap: wrap; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-inline-end: 6px; vertical-align: middle; }

/* Responsive table → cards on phone */
.tbl { width: 100%; border-collapse: separate; border-spacing: 0; }
.tbl th { text-align: start; font-weight: 500; color: var(--muted); font-size: 13px; padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tr.flag td { background: var(--amber-soft); }
.tbl tr.bad td { background: var(--red-soft); }
@media (max-width: 1023px) {
  .tbl, .tbl tbody { display: block; }
  .tbl thead { display: none; }
  .tbl tr { display: block; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px; margin-bottom: 10px; }
  .tbl tr.flag { border-color: var(--amber); }
  .tbl tr.bad { border-color: var(--red); }
  .tbl tr.flag td, .tbl tr.bad td { background: transparent; }
  .tbl td { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border: 0; text-align: end; }
  .tbl td::before { content: attr(data-l); color: var(--muted); font-size: 13px; text-align: start; flex: none; max-width: 45%; }
  .tbl td.t-main { display: block; font-weight: 600; font-size: 16px; text-align: start; padding-bottom: 8px; }
  .tbl td.t-main::before { display: none; }
  .tbl td:empty { display: none; }
}

/* ============ App shell ============ */
.app { min-height: 100dvh; }
.side { display: none; }
.top {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 4px;
  padding: calc(env(safe-area-inset-top) + 6px) 8px 6px; background: var(--bg);
  border-bottom: 1px solid var(--line); min-height: 60px;
}
.top h1 { font-size: 19px; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-inline: 6px; }
.top .mark { width: 36px; height: 36px; margin-inline: 4px; }
.role-pill { display: inline-flex; align-items: center; gap: 6px; padding: 0 10px; height: 34px; border-radius: 999px; background: var(--card-2); border: 1px solid var(--line); font-size: 13px; cursor: pointer; color: var(--text); white-space: nowrap; }
.role-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); }
.role-pill.crew .dot { background: var(--amber); }
.content { padding: 16px 16px calc(env(safe-area-inset-bottom) + 96px); max-width: 1180px; margin: 0 auto; }
.content.has-action { padding-bottom: calc(env(safe-area-inset-bottom) + 170px); }
.tabbar {
  position: fixed; inset-inline: 0; bottom: 0; z-index: 30; display: grid; grid-template-columns: repeat(5, 1fr);
  background: var(--tab-bg); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom);
}
.tabbar a { display: grid; justify-items: center; gap: 2px; padding: 8px 2px 10px; font-size: 11.5px; color: var(--muted); min-height: 60px; position: relative; }
.tabbar a.on { color: var(--brand); font-weight: 600; }
.tabbar a .badge { position: absolute; top: 4px; inset-inline-start: calc(50% + 6px); }
.badge { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; background: var(--red); color: #fff; font-size: 11px; font-weight: 700; display: inline-grid; place-items: center; }
.actionbar {
  position: fixed; inset-inline: 0; bottom: calc(env(safe-area-inset-bottom) + 61px); z-index: 25;
  padding: 10px 16px; background: linear-gradient(to top, var(--bg) 70%, transparent);
  display: flex; gap: 10px;
}
.actionbar .btn { flex: 1; }
.fab { position: fixed; bottom: calc(env(safe-area-inset-bottom) + 76px); inset-inline-start: 16px; z-index: 26; width: 58px; height: 58px; border-radius: 18px; background: var(--brand); color: var(--brand-ink); display: grid; place-items: center; box-shadow: var(--shadow); border: 0; cursor: pointer; }

.pagehead { margin-bottom: 14px; }
.pagehead h2 { font-size: 24px; }
.pagehead p { color: var(--muted); margin-top: 4px; }
.tabs { display: flex; gap: 6px; overflow-x: auto; margin: 0 -16px 16px; padding: 0 16px; scrollbar-width: none; border-bottom: 1px solid var(--line); }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { padding: 12px 12px; white-space: nowrap; color: var(--muted); font-weight: 500; border-bottom: 2px solid transparent; font-size: 15px; }
.tabs a.on { color: var(--text); border-bottom-color: var(--brand); }

.search { position: relative; margin-bottom: 10px; }
.search input { padding-inline-start: 44px; }
.search svg { position: absolute; inset-inline-start: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); }

.stage-list { display: grid; gap: 0; }
.stage { display: grid; grid-template-columns: 28px 1fr auto; gap: 12px; align-items: start; padding: 10px 0; position: relative; }
.stage .dot { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--card-2); border: 2px solid var(--line); color: var(--muted); font-size: 12px; font-weight: 700; z-index: 1; }
.stage.done .dot { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.stage.now .dot { border-color: var(--brand); color: var(--brand); }
.stage:not(:last-child)::after { content: ""; position: absolute; inset-inline-start: 13px; top: 38px; bottom: -10px; width: 2px; background: var(--line); }
.stage.done:not(:last-child)::after { background: var(--brand); }

.photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.photo { position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--card-2) center/cover no-repeat; border: 2px solid transparent; cursor: pointer; }
.photo.sel { border-color: var(--brand); }
.photo .tag { position: absolute; bottom: 6px; inset-inline-start: 6px; font-size: 11px; padding: 2px 8px; border-radius: 99px; background: rgba(0,0,0,.65); color: #fff; }
.photo .lock { position: absolute; top: 6px; inset-inline-end: 6px; width: 26px; height: 26px; border-radius: 8px; background: rgba(0,0,0,.6); color: #fff; display: grid; place-items: center; }
.photo .lock svg { width: 15px; height: 15px; }
.photo .ord { position: absolute; top: 6px; inset-inline-start: 6px; width: 24px; height: 24px; border-radius: 50%; background: var(--brand); color: var(--brand-ink); font-weight: 700; font-size: 13px; display: grid; place-items: center; }

.timeline { display: grid; gap: 12px; }
.tl { display: grid; grid-template-columns: 10px 1fr; gap: 12px; }
.tl .d { width: 10px; height: 10px; border-radius: 50%; background: var(--brand); margin-top: 7px; }

/* ============ Sheet & toast ============ */
.sheet-wrap { position: fixed; inset: 0; z-index: 60; background: var(--overlay); display: flex; align-items: flex-end; justify-content: center; animation: fade .18s ease; }
.sheet { background: var(--surface); width: 100%; max-width: 560px; max-height: 92dvh; overflow-y: auto; border-radius: 22px 22px 0 0; padding: 8px 18px calc(env(safe-area-inset-bottom) + 18px); animation: up .22s ease; border: 1px solid var(--line); border-bottom: 0; }
.sheet .grab { width: 44px; height: 5px; border-radius: 9px; background: var(--line); margin: 4px auto 12px; }
.sheet h3 { font-size: 20px; margin-bottom: 4px; }
.sheet .sub { color: var(--muted); margin-bottom: 14px; font-size: 14px; }
.sheet .acts { display: grid; gap: 10px; margin-top: 16px; }
@keyframes up { from { transform: translateY(40px); opacity: .4; } }
@keyframes fade { from { opacity: 0; } }
#toast-root { position: fixed; inset-inline: 0; top: calc(env(safe-area-inset-top) + 10px); z-index: 80; display: grid; justify-items: center; gap: 8px; pointer-events: none; padding: 0 16px; }
.toast { background: #222; color: #fff; border-radius: 14px; padding: 12px 16px; box-shadow: var(--shadow); display: flex; gap: 10px; align-items: center; max-width: 520px; font-size: 15px; animation: up .2s ease; border: 1px solid #333; }
.toast.ok svg { color: #84d057; }
.toast.warn svg { color: #F5B020; }
.toast.bad svg { color: #F06262; }

/* ============ Desktop ============ */
@media (min-width: 1024px) {
  .app { display: grid; grid-template-columns: 260px 1fr; }
  .side { display: flex; flex-direction: column; gap: 4px; position: sticky; top: 0; height: 100dvh; overflow-y: auto; background: var(--surface); border-inline-end: 1px solid var(--line); padding: 18px 14px; }
  .side .logo-row { display: flex; align-items: center; gap: 10px; padding: 4px 8px 18px; }
  .side .logo-row svg { width: 44px; height: 44px; }
  .side .nav-h { font-size: 12px; color: var(--muted); padding: 14px 10px 6px; }
  .side a.nav { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; color: var(--text-2); font-size: 15px; }
  .side a.nav:hover { background: var(--card-2); }
  .side a.nav.on { background: var(--brand-soft); color: var(--brand); font-weight: 600; }
  .side a.nav .badge { margin-inline-start: auto; }
  .tabbar, .top .mark { display: none; }
  .top { padding: 10px 24px; }
  .content { padding: 24px 32px 80px; }
  .content.has-action { padding-bottom: 120px; }
  .actionbar { position: sticky; bottom: 0; inset-inline: auto; background: linear-gradient(to top, var(--bg) 70%, transparent); padding: 16px 0 20px; justify-content: flex-start; }
  .actionbar .btn { flex: 0 0 auto; min-width: 200px; }
  .fab { bottom: 28px; inset-inline-start: 28px; }
  .kpis { grid-template-columns: repeat(4, 1fr); }
  .list.cols { grid-template-columns: repeat(2, 1fr); }
  .dgrid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; align-items: start; }
  .dgrid > .card + .card { margin-top: 0; }
  .photo-grid { grid-template-columns: repeat(5, 1fr); }
  .tabs { margin-inline: 0; padding: 0; }
  .sheet-wrap { align-items: center; }
  .sheet { border-radius: 20px; border-bottom: 1px solid var(--line); }
}

/* ============ Launcher ============ */
.launch { min-height: 100dvh; padding: calc(env(safe-area-inset-top) + 24px) 16px 40px; max-width: 980px; margin: 0 auto; }
.launch .hero { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.launch .hero svg { width: 64px; height: 64px; }
.launch h1 { font-size: 26px; }
.launch .cards { display: grid; gap: 12px; }
.lcard { display: flex; gap: 14px; align-items: center; padding: 18px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); cursor: pointer; text-align: start; width: 100%; }
.lcard .ic { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); flex: none; }
.lcard h3 { font-size: 18px; }
.flow { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); }
.flow .n { width: 30px; height: 30px; border-radius: 50%; background: var(--brand); color: var(--brand-ink); display: grid; place-items: center; font-weight: 700; flex: none; }
@media (min-width: 760px) { .launch .cards { grid-template-columns: repeat(3, 1fr); } .lcard { flex-direction: column; align-items: flex-start; } .flows { grid-template-columns: 1fr 1fr; } }
.flows { display: grid; gap: 10px; }

/* ============ Public website (premium, ScrollCraft) ============ */
/* site type: Fredoka (headings) + Assistant (text), chosen 2026-11-17 */
.site { --fd: "Fredoka", "Rubik", sans-serif; --fb: "Assistant", "Heebo", Arial, sans-serif; --fdw: 500; --fdl: 400; --fdm: 600; }
.site :is(h1, h2, h3, h4) { font-family: var(--fd); }
/* accessibility helpers */
.s-skip { position: fixed; top: 8px; inset-inline-start: 8px; z-index: 100; padding: 12px 18px; border-radius: 6px; background: var(--ink); color: #fff; font-weight: 600; transform: translateY(-160%); transition: transform .15s var(--ease); }
.s-skip:focus { transform: none; }
.site :is(#sMain, h1, h2)[tabindex="-1"]:focus { outline: none; }
.site .s-head .btn.sm { min-height: 44px; }
.site .err-msg:empty { display: none; }
.s-doc .s-wrap { max-width: 860px; }
.s-doc h2 { font-family: var(--fd); font-weight: var(--fdm); font-size: clamp(22px, 2.2vw, 28px); margin: 40px 0 12px; }
.s-doc p, .s-doc li { color: var(--text-2); line-height: 1.75; font-size: 17px; }
.s-doc ul { padding-inline-start: 22px; display: grid; gap: 8px; }
.s-doc a { color: var(--gt); text-decoration: underline; text-underline-offset: .25em; }
.s-docnote { background: #fff7e3; border: 1px solid #f0d9a2; color: #6b4e00 !important; border-radius: 8px; padding: 12px 16px; font-size: 15px !important; }
.s-foot a { text-decoration: underline; text-decoration-color: rgba(255,255,255,.3); text-underline-offset: .25em; }
/* engine reset is global; keep the app's own defaults */
html { scroll-behavior: auto; }
body { letter-spacing: normal; font-size: 16px; }
svg { display: revert; }
.site {
  --sc-canvas: #F6F5F0; --sc-surface: #ffffff; --sc-ink: #141712; --sc-ink-soft: #555b51;
  --sc-accent: #6FBE44; --sc-accent-ink: #0b1a03; --sc-shadow-color: 80 20% 25%;
  --sc-font-display: "Fredoka", "Rubik", sans-serif; --sc-font-text: "Assistant", "Heebo", sans-serif;
  --g: #6FBE44; --gt: #3c7f1f; --sun: #F5B020; --sunt: #a86a00; --ink: #141712; --soft: #555b51; --hair: rgba(20,23,18,.1); --hair2: rgba(20,23,18,.2); --paper: #F6F5F0;
  --gut: clamp(16px, 5vw, 72px); --maxw: 1240px; --sec: clamp(72px, 10vw, 150px);
  --ease: cubic-bezier(.23,1,.32,1);
  background: var(--paper); color: var(--ink); min-height: 100dvh; overflow-x: clip;
  font-family: var(--fb); -webkit-font-smoothing: antialiased;
}
.site ::selection { background: var(--g); color: #0b1a03; }
.site :focus-visible { outline: 2px solid var(--g); outline-offset: 3px; border-radius: 4px; }
.site h1, .site h2, .site h3 { text-wrap: balance; }
.site p { text-wrap: pretty; }
.site .num { font-variant-numeric: tabular-nums; }

/* header */
.s-head { position: sticky; top: 0; z-index: 40; background: rgba(246,245,240,.88); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--hair); transition: background .25s var(--ease), border-color .25s var(--ease); }
.s-head.over { position: fixed; inset-inline: 0; background: linear-gradient(rgba(246,245,240,.7), rgba(246,245,240,0)); border-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.s-head.over.solid, .s-head.over.menu-open { background: rgba(246,245,240,.92); border-color: var(--hair); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.s-head .in { max-width: var(--maxw); margin: 0 auto; display: flex; align-items: center; gap: 12px; padding: 10px var(--gut); min-height: 68px; }
.s-brand { display: flex; align-items: center; gap: 10px; font-family: var(--fd); font-weight: var(--fdm); font-size: 17px; letter-spacing: -.01em; }
.s-brand svg { width: 42px; height: 42px; }
.s-brand small { display: block; font-family: var(--fb); font-weight: 300; font-size: 11.5px; color: var(--soft); letter-spacing: .01em; }
.s-brand span { white-space: nowrap; }
@media (max-width: 480px) { .s-brand { font-size: 15px; gap: 8px; } .s-brand svg { width: 36px; height: 36px; } .s-brand small { display: none; } .s-head .in { gap: 6px; padding-inline: 10px; } .s-head .cta { padding: 0 12px; } }
.s-nav { display: none; gap: 28px; margin-inline-start: auto; }
.s-nav a { color: #3a3f37; font-size: 15px; position: relative; padding: 6px 0; transition: color .15s var(--ease); }
.s-nav a::after { content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 1px; background: var(--g); transform: scaleX(0); transition: transform .2s var(--ease); }
.s-nav a.on { color: var(--ink); } .s-nav a.on::after { transform: none; }
@media (hover: hover) { .s-nav a:hover { color: var(--ink); } .s-nav a:hover::after { transform: none; } }
.s-head .cta { margin-inline-start: auto; }
.s-menu { position: fixed; inset: 68px 0 0; background: var(--paper); z-index: 39; padding: 16px var(--gut) 40px; display: grid; align-content: start; gap: 0; overflow-y: auto; }
.s-menu a:not(.btn) { font-size: 26px; font-family: var(--fd); font-weight: var(--fdw); padding: 16px 2px; border-bottom: 1px solid var(--hair); }

/* buttons on the site: the brand's white 5px CTA */
.site .btn.white { background: var(--g); color: #0b1a03; border-radius: 5px; font-weight: 500; letter-spacing: .005em; box-shadow: 0 1px 0 rgba(255,255,255,.35) inset, 0 8px 20px -12px rgba(40,70,20,.55); transition: transform .12s var(--ease), background .15s var(--ease); }
@media (hover: hover) { .site .btn.white:hover { background: #7fcb55; } }
.d-day .btn.white, .s-foot .btn.white { background: #fff; color: #161616; }
.site .btn.white:active { transform: translateY(1px); }
.site .btn.sm { border-radius: 5px; }
.s-link { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; padding: 10px 2px; min-height: 44px; color: var(--ink); font-weight: 500; cursor: pointer; text-decoration: underline; text-decoration-color: var(--g); text-underline-offset: .35em; text-decoration-thickness: 1px; }
.s-link svg { transform: scaleX(-1); color: var(--gt); } /* chev points to reading direction */
[dir="rtl"] .s-link svg { transform: none; }
@media (hover: hover) { .s-link:hover { text-decoration-color: var(--ink); } }

/* type */
.s-wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gut); }
.s-sec { padding: var(--sec) 0; }
.s-kicker { color: var(--gt); font-weight: 500; font-size: 15px; margin-bottom: 14px; letter-spacing: .02em; }
.s-h1 { font-family: var(--fd); font-weight: var(--fdw); font-size: clamp(36px, 5.6vw, 76px); line-height: 1.04; letter-spacing: -.025em; max-width: 16ch; }
.s-h2 { font-family: var(--fd); font-weight: var(--fdw); font-size: clamp(30px, 4vw, 54px); line-height: 1.08; letter-spacing: -.02em; }
.s-lead { color: var(--soft); font-weight: 300; font-size: clamp(17px, 1.4vw, 20px); line-height: 1.65; margin-top: 18px; max-width: 58ch; }

/* title plate for interior pages */
.s-title { position: relative; overflow: hidden; isolation: isolate; min-height: clamp(380px, 38vw, 540px); display: flex; align-items: center;
  background: radial-gradient(ellipse 45% 70% at 22% 75%, rgba(255,214,140,.7), rgba(255,214,140,0) 70%), linear-gradient(180deg, #cfe5f2 0%, #e6f0f1 45%, #f7eedd 85%, #f4e6cc 100%); }
.s-title-in { position: relative; z-index: 3; width: 100%; padding-top: clamp(40px, 6vw, 72px); padding-bottom: clamp(110px, 12vw, 170px); }
.s-title-in > * { max-width: min(620px, 52%); }
.s-title .s-h1 { color: var(--ink); text-shadow: 0 1px 20px rgba(255,255,255,.6); }
.s-title .s-lead { color: #2f342c; }
.s-title-art { position: absolute; z-index: 2; bottom: clamp(36px, 4.5vw, 64px); inset-inline-end: calc(var(--gut) - 10px); width: min(560px, 40vw); pointer-events: none; }
.s-title-art .h-house { position: relative; inset: auto; left: auto; bottom: auto; margin: 0; width: 100%; max-width: none; display: block; transform: none; }
.s-title-art .h-ground { display: none; }
.s-title-sun { position: absolute; width: 46%; left: 28%; top: -6%; z-index: -1; filter: drop-shadow(0 0 40px rgba(255,190,60,.6)); }
.s-title-sun svg { width: 100%; height: auto; display: block; }
.s-title-hills { position: absolute; z-index: 1; left: 0; right: 0; bottom: -1px; width: 100%; height: clamp(110px, 13vw, 200px); }
.s-crumbs ol { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 0; font-size: 14.5px; color: #3e4a37; }
.s-crumbs li + li::before { content: "/"; margin: 0 10px; color: #8a9a7c; }
.s-crumbs a { color: var(--gt); font-weight: 500; text-decoration: underline; text-decoration-color: rgba(60,127,31,.35); text-underline-offset: .3em; }
.s-crumbs [aria-current] { color: #3e4a37; }
.s-title-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 20px; }
.s-title-tags span { font-size: 13.5px; padding: 7px 12px; border-radius: 99px; background: rgba(255,255,255,.75); color: var(--gt); font-weight: 500; border: 1px solid rgba(60,127,31,.2); }
.s-title-tags span:first-child { background: var(--ink); color: #fff; border-color: var(--ink); }
.s-projpage { padding-top: 8px; }
@media (max-width: 759px) {
  .s-title { min-height: 0; display: flex; flex-direction: column; }
  .s-title-in { padding-top: 32px; padding-bottom: 0; }
  .s-title-in > * { max-width: none; }
  .s-title-art { order: 2; position: relative; inset: auto; bottom: auto; width: 60vw; margin: 14px auto 18px; z-index: 2; }
  .s-title-hills { height: 96px; }
}

/* ---------- HOME act 1: layered hero ---------- */
.h-hero { position: relative; }
.h-stage { position: sticky; top: 0; height: 100svh; min-height: 560px; overflow: hidden; background: #0d130e; }
.h-hero.is-static .h-stage { position: relative; height: 100svh; }
.h-house { max-width: none; position: absolute; bottom: 4%; left: 2%; width: min(900px, 58vw); margin-left: 0; height: auto; will-change: transform; transform-origin: 50% 100%; }
.h-copy { position: absolute; z-index: 3; top: clamp(96px, 17vh, 170px); inset-inline-start: var(--gut); max-width: min(680px, 88vw); will-change: transform, opacity; }
.h-copy h1 { font-family: var(--fd); font-weight: var(--fdw); font-size: clamp(38px, 5.6vw, 82px); line-height: 1.02; letter-spacing: -.03em; color: #141712; text-shadow: 0 1px 24px rgba(255,255,255,.55); }
.h-copy h1 em { font-style: normal; font-weight: 600; color: #141712; display: inline-block; background: linear-gradient(transparent 82%, rgba(111,190,68,.85) 82%, rgba(111,190,68,.85) 90%, transparent 90%); }
.h-copy p { color: #2f342c; margin-top: 20px; max-width: 46ch; font-weight: 300; font-size: clamp(17px, 1.35vw, 20px); line-height: 1.6; }
.h-copy .acts { display: flex; gap: 14px 22px; margin-top: 30px; flex-wrap: wrap; align-items: center; }
/* separate phone composition */
@media (max-width: 759px) {
  .h-stage { min-height: 600px; }
  .h-copy { top: 92px; inset-inline: 16px; max-width: none; }
  .h-copy h1 { font-size: clamp(34px, 9.6vw, 44px); line-height: 1.06; }
  .h-copy p { font-size: 16.5px; margin-top: 14px; }
  .h-copy .acts { margin-top: 22px; }
  .h-house { left: 50%; width: 132vw; margin-left: -66vw; bottom: 5%; }
}
@media (max-width: 759px) and (max-height: 700px) { .h-copy p { display: none; } }

/* ---------- act 2: tension ---------- */
.t-sec { padding: var(--sec) 0 calc(var(--sec) * .8); background: var(--paper); }
.t-big { font-family: var(--fd); font-weight: var(--fdl); font-size: clamp(28px, 4.4vw, 64px); line-height: 1.12; letter-spacing: -.025em; max-width: 20ch; }
.t-big span { color: var(--soft); }
.t-pair { display: grid; gap: 28px; margin-top: clamp(48px, 7vw, 96px); padding-top: 32px; border-top: 1px solid var(--hair); }
.t-pair h3 { font-family: var(--fd); font-weight: var(--fdm); font-size: 17px; color: var(--gt); margin-bottom: 10px; letter-spacing: .01em; }
.t-pair p { color: var(--soft); font-weight: 300; font-size: 17px; line-height: 1.7; max-width: 52ch; }

/* ---------- act 3: the day on the roof (stays cinematic/dark) ---------- */
.d-day, .s-foot { --ink: #f7f7f3; --soft: #b4b6ad; --hair: rgba(247,247,243,.11); --hair2: rgba(247,247,243,.2); --gt: #6FBE44; color: var(--ink); }
.d-day { position: relative; }
.d-stage { position: sticky; top: 0; height: 100svh; min-height: 600px; overflow: hidden; background: #05070d; }
.d-sky { position: absolute; inset: 0; background: var(--sky, linear-gradient(#05070d, #0c1324 52%, #2a1c24)); }
.d-stars { position: absolute; inset: 0 0 40% 0; opacity: calc(var(--night, 0) * .9); background-image: radial-gradient(1px 1px at 12% 18%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 28% 8%, #fff 50%, transparent 51%), radial-gradient(1.4px 1.4px at 44% 22%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 63% 12%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 78% 26%, #fff 50%, transparent 51%), radial-gradient(1.3px 1.3px at 88% 9%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 6% 34%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 52% 36%, #fff 50%, transparent 51%); }
.d-hills { fill: var(--hillc, #1b2420); }
.d-scene { position: absolute; inset: 0; width: 100%; height: 100%; }
.d-scene .pv { transform-box: fill-box; transform-origin: 50% 50%; }
.d-scene-m { display: none; }
.d-read { position: absolute; z-index: 4; top: clamp(88px, 13vh, 130px); inset-inline-end: var(--gut); width: 300px; padding: 20px 22px 16px; border-radius: 10px; background: rgba(10,10,10,.84); border: 1px solid var(--hair); box-shadow: inset 0 1px 0 rgba(255,255,255,.07), 0 18px 40px -16px rgba(0,0,0,.7); }
.d-clock { display: flex; align-items: baseline; gap: 12px; justify-content: space-between; border-bottom: 1px solid var(--hair); padding-bottom: 12px; }
.d-clock bdi { font-family: var(--fd); font-weight: var(--fdl); font-size: 40px; letter-spacing: -.02em; line-height: 1; }
.d-clock span { color: var(--sun); font-size: 14px; font-weight: 500; }
.d-meter, .d-now { gap: 10px; display: flex; justify-content: space-between; align-items: baseline; margin-top: 12px; color: var(--soft); font-size: 14px; }
.d-meter b, .d-now b { color: #fff; font-family: var(--fd); font-weight: var(--fdm); font-size: 22px; }
.d-meter b { color: var(--g); font-size: 28px; }
.d-meter small, .d-now small { font-size: 13px; color: var(--soft); font-weight: 400; font-family: var(--fb); }
.d-curve { width: 100%; height: 56px; margin-top: 10px; display: block; transform: scaleX(-1); } /* time runs right-to-left, with the sun */
.d-curve .base { stroke: var(--hair2); stroke-width: 1; fill: none; vector-effect: non-scaling-stroke; }
.d-curve .ln { stroke: var(--g); stroke-width: 2; fill: none; vector-effect: non-scaling-stroke; }
.d-curve .fill { fill: rgba(111,190,68,.16); }
.d-note { margin-top: 10px; font-size: 12px; color: #8f9189; line-height: 1.5; }
.d-beats { position: absolute; z-index: 4; inset-inline-start: var(--gut); bottom: 58px; width: min(560px, 44vw); height: 110px; }
.d-beat { position: absolute; inset-inline: 0; bottom: 0; }
.d-beat .t { color: var(--sun); font-weight: 500; font-size: 15px; letter-spacing: .02em; margin-bottom: 10px; }
.d-beat p { font-family: var(--fd); font-weight: var(--fdw); font-size: clamp(22px, 1.9vw, 30px); line-height: 1.2; letter-spacing: -.02em; text-shadow: 0 2px 24px rgba(0,0,0,.55); }
.d-go { position: absolute; bottom: -48px; inset-inline-start: 0; opacity: calc((var(--night, 0) - .6) * 2.5); }
/* beat legibility: a scrim only behind the copy column */
.d-stage::after { content: ""; position: absolute; inset: auto 0 0 0; height: 22%; z-index: 3; pointer-events: none; background: linear-gradient(to top, rgba(0,0,0,.55), rgba(0,0,0,0)); }
@media (max-width: 759px) {
  .d-scene-d { display: none; } .d-scene-m { display: block; }
  .d-stage { min-height: 620px; }
  .d-stage::after { inset: auto 0 0 0; width: auto; height: 26%; background: linear-gradient(to top, rgba(0,0,0,.7), rgba(0,0,0,0)); }
  .d-read { top: 76px; inset-inline: 16px; width: auto; padding: 10px 14px 8px; display: grid; grid-template-columns: auto 1fr 1fr; grid-template-areas: "clock meter now" "curve curve curve" "note note note"; gap: 0 12px; align-items: center; }
  .d-clock { flex-direction: column; align-items: flex-start; gap: 2px; border: 0; padding: 0; border-inline-end: 1px solid var(--hair); padding-inline-end: 12px; grid-area: clock; }
  .d-clock bdi { font-size: 26px; }
  .d-meter { grid-area: meter; } .d-now { grid-area: now; }
  .d-clock span { font-size: 12.5px; }
  .d-meter, .d-now { margin-top: 0; font-size: 12px; flex-direction: column; align-items: flex-start; gap: 0; }
  .d-meter b { font-size: 20px; } .d-now b { font-size: 16px; }
  .d-curve { grid-area: curve; height: 18px; margin-top: 6px; }
  .d-note { grid-area: note; margin-top: 4px; font-size: 10.5px; }
  .d-beats { inset-inline: 16px; bottom: calc(env(safe-area-inset-bottom) + 58px); width: auto; height: 96px; }
  .d-beat { top: auto; bottom: 0; }
  .d-beat p { font-size: 20px; }
  .d-beat .t { font-size: 13.5px; margin-bottom: 6px; }
  .d-go { bottom: -46px; }
}
/* reduced motion: the day as a still noon composition with every beat readable */
.d-day.is-static .d-stage { position: relative; height: auto; min-height: 0; padding: 70svh 0 56px; background: #040404; }
.d-day.is-static .d-scene, .d-day.is-static .d-sky { position: absolute; }
.d-day.is-static .d-scene, .d-day.is-static .d-sky { height: 70svh; }
.d-day.is-static .d-stage::after { display: none; }
.d-day.is-static .d-read { position: relative; top: auto; margin: 28px var(--gut) 0; inset: auto; }
.d-day.is-static .d-beats { position: relative; inset: auto; top: auto; width: auto; height: auto; margin: 32px var(--gut) 0; display: grid; gap: 22px; }
.d-day.is-static .d-beat { position: static; opacity: 1; }
.d-day.is-static .d-beat p { font-size: 22px; text-shadow: none; }
.d-day.is-static .d-go { position: static; opacity: 1; }
@media (min-width: 760px) { .d-day.is-static .d-read { width: 320px; margin-inline-start: auto; } .d-day.is-static .d-beats { grid-template-columns: 1fr 1fr; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gut); } }

/* ---------- act 4: process ---------- */
.p-sec { padding: var(--sec) 0 0; }
.p-grid { display: grid; gap: 48px; }
.p-why { list-style: none; padding: 0; margin: 36px 0 0; display: grid; gap: 0; }
.p-why li { padding: 16px 0; border-top: 1px solid var(--hair); display: grid; gap: 4px; }
.p-why b { font-family: var(--fd); font-weight: var(--fdm); font-size: 17px; }
.p-why span { color: var(--soft); font-weight: 300; font-size: 15.5px; }
.p-steps { list-style: none; margin: 0; padding: 0; counter-reset: s; display: grid; }
.p-steps li { display: grid; grid-template-columns: 56px 1fr; gap: 16px; padding: 26px 0; border-top: 1px solid var(--hair); }
.p-steps li:last-child { border-bottom: 1px solid var(--hair); }
.p-steps .n { font-family: var(--fd); font-weight: var(--fdl); font-size: 40px; line-height: 1; color: var(--gt); }
.p-steps h3 { font-family: var(--fd); font-weight: var(--fdm); font-size: clamp(20px, 1.7vw, 24px); letter-spacing: -.01em; }
.p-steps p { color: var(--soft); font-weight: 300; margin-top: 6px; font-size: 16px; line-height: 1.65; }
.p-stats { position: relative; display: grid; grid-template-columns: 1fr 1fr; margin-top: clamp(64px, 8vw, 120px); border-radius: 12px; overflow: hidden; isolation: isolate;
  background: radial-gradient(ellipse 60% 120% at 100% 0%, rgba(111,190,68,.14), transparent 60%), radial-gradient(ellipse 40% 80% at 0% 100%, rgba(245,176,32,.10), transparent 70%), #fff;
  border: 1px solid var(--hair); box-shadow: 0 1px 0 rgba(255,255,255,.9) inset, 0 34px 60px -40px rgba(30,45,20,.5); }
.p-stats::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: linear-gradient(90deg, rgba(111,190,68,0), var(--g) 30%, var(--sun) 70%, rgba(245,176,32,0)); opacity: .9; z-index: -1; }
.p-stats > div { padding: clamp(22px, 3vw, 36px) clamp(16px, 2.4vw, 32px); display: grid; gap: 10px; align-content: start; border-inline-start: 1px solid var(--hair); }
.p-stats > div:nth-child(odd) { border-inline-start: 0; }
.p-stats > div:nth-child(n+3) { border-top: 1px solid var(--hair); }
.p-stats i { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: rgba(111,190,68,.14); color: var(--gt); margin-bottom: 6px; }
.p-stats b { font-family: var(--fd); font-weight: var(--fdl); font-size: clamp(42px, 5.2vw, 74px); line-height: .95; letter-spacing: -.035em; color: var(--ink); }
.p-stats b em { font-style: normal; font-weight: 400; font-size: .5em; color: var(--gt); letter-spacing: 0; vertical-align: .55em; margin-inline: .04em; }
.p-stats b em.u { font-size: .32em; font-weight: 500; vertical-align: .2em; margin-inline-start: .18em; }
.p-stats > div > span { color: var(--soft); font-size: 15px; position: relative; padding-top: 12px; }
.p-stats > div > span::before { content: ""; position: absolute; top: 0; inset-inline-start: 0; width: 22px; height: 2px; border-radius: 2px; background: var(--g); }
.p-statnote { color: #6b7067; font-size: 12px; margin-top: 14px; padding-inline-start: 4px; }

/* ---------- act 5: proof ---------- */
.r-sec { padding: var(--sec) 0; }
.r-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; }
.s-proj { display: grid; gap: 14px; margin-top: 36px; }
.s-pcard { position: relative; display: flex; flex-direction: column; border-radius: 12px; overflow: hidden; isolation: isolate; color: var(--ink);
  background: radial-gradient(ellipse 60% 70% at 100% 100%, rgba(111,190,68,.10), transparent 60%), #fff;
  border: 1px solid var(--hair); box-shadow: 0 1px 0 rgba(255,255,255,.9) inset, 0 34px 60px -40px rgba(30,45,20,.5); transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.s-pcard::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; z-index: 2; background: linear-gradient(90deg, rgba(111,190,68,0), var(--g) 30%, var(--sun) 70%, rgba(245,176,32,0)); }
.s-pcard .ph { position: relative; aspect-ratio: 16/10; background: #dfe7ea center/cover; transition: transform .6s var(--ease); }
@media (hover: hover) { .s-pcard:hover { transform: translateY(-3px); box-shadow: 0 1px 0 rgba(255,255,255,.9) inset, 0 40px 70px -40px rgba(30,45,20,.6); } .s-pcard:hover .ph { transform: scale(1.03); } .s-pcard:hover .go svg { transform: translateX(-3px); } }
.s-pcard .cap { position: relative; z-index: 1; background: inherit; display: grid; gap: 10px; align-content: start; padding: 20px clamp(18px, 2vw, 26px) 22px; margin-top: -1px; }
.s-pcard .cap i { position: absolute; top: -22px; inset-inline-start: clamp(18px, 2vw, 26px); width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--gt); box-shadow: 0 0 0 4px rgba(111,190,68,.14), 0 8px 18px -10px rgba(30,45,20,.5); }
.s-pcard .cap h3 { font-family: var(--fd); font-weight: var(--fdm); font-size: clamp(19px, 1.6vw, 23px); letter-spacing: -.01em; margin-top: 14px; padding-bottom: 12px; position: relative; }
.s-pcard .cap h3::after { content: ""; position: absolute; bottom: 0; inset-inline-start: 0; width: 22px; height: 2px; border-radius: 2px; background: var(--g); }
.s-pcard .meta { display: flex; flex-wrap: wrap; gap: 6px; }
.s-pcard .meta span { font-size: 13px; line-height: 1; padding: 7px 10px; border-radius: 99px; background: rgba(111,190,68,.12); color: var(--gt); font-weight: 500; }
.s-pcard .meta span:first-child { background: var(--ink); color: #fff; }
.s-pcard .go { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; font-weight: 500; color: var(--soft); margin-top: 2px; }
.s-pcard .go svg { color: var(--gt); transition: transform .2s var(--ease); }
.r-film { position: relative; overflow: hidden; display: flex; gap: 18px; align-items: center; margin-top: 18px; padding: 20px 22px; border: 1px solid var(--hair); border-radius: 12px; background: radial-gradient(ellipse 40% 120% at 0% 50%, rgba(245,176,32,.10), transparent 70%), #fff; box-shadow: 0 1px 0 rgba(255,255,255,.9) inset, 0 34px 60px -44px rgba(30,45,20,.5); }
.r-film::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: linear-gradient(90deg, rgba(111,190,68,0), var(--g) 30%, var(--sun) 70%, rgba(245,176,32,0)); }
.r-film b { display: block; font-family: var(--fd); font-weight: var(--fdm); font-size: 17px; }
.r-film span { color: var(--soft); font-size: 14px; }
.r-play { flex: none; width: 56px; height: 56px; border-radius: 50%; border: 0; background: var(--g); color: #0b1a03; display: grid; place-items: center; cursor: pointer; box-shadow: 0 0 0 5px rgba(111,190,68,.16), 0 10px 22px -10px rgba(30,45,20,.6); transition: transform .12s var(--ease); }
.r-play svg { width: 22px; height: 22px; transform: scaleX(-1); }
.r-play:active { transform: scale(.96); }
.r-film-msg { display: flex; gap: 12px; align-items: flex-start; } .r-film-msg svg { color: var(--sun); margin-top: 2px; }
.r-quote { margin: clamp(56px, 8vw, 110px) 0 0; max-width: 900px; }
.r-quote blockquote { margin: 0; font-family: var(--fd); font-weight: var(--fdl); font-size: clamp(26px, 3.4vw, 46px); line-height: 1.18; letter-spacing: -.02em; }
.r-quote blockquote::before { content: "\201D"; display: block; color: var(--g); font-size: 1.8em; line-height: .6; margin-bottom: 8px; font-weight: 500; }
.r-quote p { color: var(--soft); font-weight: 300; margin-top: 20px; max-width: 60ch; font-size: 17px; line-height: 1.7; }
.r-quote figcaption { margin-top: 16px; color: var(--soft); font-size: 15px; } .r-quote figcaption b { color: var(--ink); font-weight: 500; }

/* ---------- act 6: FAQ ---------- */
.f-sec { padding: 0 0 var(--sec); }
.f-grid { display: grid; gap: 28px; padding-top: var(--sec); border-top: 1px solid var(--hair); }
.f-list details { border-bottom: 1px solid var(--hair); }
.f-list details:first-child { border-top: 1px solid var(--hair); }
.f-list summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 0; min-height: 44px; font-family: var(--fd); font-weight: var(--fdm); font-size: clamp(18px, 1.5vw, 21px); }
.f-list summary::-webkit-details-marker { display: none; }
.f-list summary svg { color: var(--gt); transition: transform .2s var(--ease); flex: none; }
.f-list details[open] summary svg { transform: rotate(45deg); }
.f-list details p { color: var(--soft); font-weight: 300; padding: 0 0 24px; max-width: 64ch; line-height: 1.7; font-size: 16.5px; }

/* ---------- act 7: calculator ---------- */
.c-sec { padding: var(--sec) 0; background: radial-gradient(ellipse 80% 70% at 85% 0%, rgba(111,190,68,.18), transparent 60%), linear-gradient(#eef3e7, var(--paper)); border-top: 1px solid var(--hair); scroll-margin-top: 60px; }
.c-head { max-width: 760px; }
.c-grid { display: grid; gap: 22px; margin-top: 40px; }
.c-in { display: grid; gap: 26px; align-content: start; }
.c-type { border: 0; padding: 0; margin: 0; min-width: 0; }
.c-type legend { font-size: 15px; color: var(--ink); margin-bottom: 10px; padding: 0; }
.c-seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; background: #fff; border-radius: 8px; padding: 4px; border: 1px solid var(--hair); }
.c-type label { position: relative; cursor: pointer; }
.c-type input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.c-type span { display: grid; place-items: center; min-height: 46px; border-radius: 5px; font-size: 15px; color: var(--soft); text-align: center; padding: 0 6px; transition: background .15s var(--ease), color .15s var(--ease); }
.c-type input:checked + span { background: var(--ink); color: #fff; font-weight: 500; }
.c-type input:focus-visible + span { outline: 2px solid var(--g); outline-offset: 2px; }
.c-field { display: grid; grid-template-columns: 1fr auto; gap: 12px 10px; align-items: baseline; }
.c-field label { font-size: 15px; color: var(--ink); }
.c-field output { font-family: var(--fd); font-weight: var(--fdm); font-size: 22px; }
.c-field input[type=range] { grid-column: 1 / -1; width: 100%; accent-color: var(--g); height: 32px; cursor: pointer; }
.c-money { grid-column: 1 / -1; position: relative; }
.c-money .input { background: #fff; border-color: var(--hair2); border-radius: 6px; font-family: var(--fd); font-size: 20px; padding-right: 40px; text-align: right; }
.c-money span { position: absolute; right: 14px; top: 50%; translate: 0 -50%; color: var(--soft); }
.c-assume { font-size: 13px; color: #5f655b; line-height: 1.7; border-top: 1px solid var(--hair); padding-top: 16px; }
.c-out { background: #fff; border: 1px solid var(--hair); border-radius: 10px; padding: clamp(20px, 3vw, 34px); box-shadow: 0 30px 60px -34px rgba(30,45,20,.45); }
.c-big span { color: var(--soft); font-size: 14px; display: block; }
.c-big b { display: block; font-family: var(--fd); font-weight: var(--fdl); font-size: clamp(56px, 7vw, 92px); line-height: 1; letter-spacing: -.04em; margin-top: 8px; }
.c-big b small { font-size: .32em; letter-spacing: 0; color: var(--gt); font-weight: 500; }
.c-big em { font-style: normal; color: var(--soft); font-size: 14px; display: block; margin-top: 8px; }
.c-roof { display: flex; flex-wrap: wrap; gap: 3px; margin: 20px 0 6px; align-items: center; max-width: 100%; }
.c-roof i { width: 15px; height: 22px; border-radius: 1.5px; background: linear-gradient(160deg, #24598f, #0f2c4c); border: 1px solid #4f86bb; }
.c-roof span { color: var(--soft); font-size: 13px; margin-inline-start: 6px; }
.c-dl { margin: 18px 0 0; display: grid; grid-template-columns: 1fr 1fr; }
.c-dl div { padding: 14px 0; border-top: 1px solid var(--hair); }
.c-dl div:nth-child(odd) { padding-inline-end: 12px; }
.c-dl dt { color: var(--soft); font-size: 13.5px; }
.c-dl dd { margin: 4px 0 0; font-family: var(--fd); font-weight: var(--fdm); font-size: clamp(20px, 2vw, 26px); }
.c-dl dd small { font-size: 13px; color: var(--soft); font-family: var(--fb); font-weight: 400; }
.c-surplus { color: var(--gt); font-size: 14.5px; margin: 6px 0 4px; }
.c-out .btn { margin-top: 18px; }
.c-fine { color: #5f655b; font-size: 12.5px; margin-top: 10px; text-align: center; }

/* ---------- interior blocks ---------- */
.v-list, .b-list { list-style: none; padding: 0; margin: 0; display: grid; }
.v-list li { display: grid; grid-template-columns: 40px 1fr; gap: 18px; padding: 28px 0; border-top: 1px solid var(--hair); }
.v-list li svg { width: 30px; height: 30px; color: var(--gt); stroke-width: 1.5; }
.v-list h3, .b-list h3 { font-family: var(--fd); font-weight: var(--fdm); font-size: clamp(20px, 1.7vw, 24px); }
.v-list p, .b-list p { color: var(--soft); font-weight: 300; margin-top: 6px; line-height: 1.65; }
.b-list li { padding: 26px 0; border-top: 1px solid var(--hair); }
.b-list li h3::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--g); margin-inline-end: 12px; vertical-align: middle; }
.a-grid { display: grid; gap: 40px; }
.s-ctasec { padding-top: 0; }
.s-cta { border-radius: 8px; padding: clamp(28px, 5vw, 56px); background: radial-gradient(ellipse 60% 120% at 10% 120%, rgba(111,190,68,.30), transparent 60%), #fff; border: 1px solid var(--hair); display: grid; gap: 20px; box-shadow: 0 24px 50px -34px rgba(30,45,20,.45); }
.s-cta .s-lead { margin-top: 10px; }
.s-cta .acts { display: flex; gap: 12px 22px; flex-wrap: wrap; align-items: center; }
.s-back { color: var(--soft); font-size: 14px; display: inline-flex; gap: 6px; align-items: center; min-height: 44px; }
.s-contact { display: grid; gap: 28px; }
.s-cinfo ul { padding: 0; margin: 0 0 22px; display: grid; gap: 14px; list-style: none; color: var(--text-2); }
.s-cinfo li { display: flex; gap: 10px; align-items: center; } .s-cinfo li svg { color: var(--gt); }
.s-calcchip { border: 1px solid rgba(111,190,68,.45); background: rgba(111,190,68,.08); border-radius: 8px; padding: 14px 16px; display: grid; gap: 4px; }
.s-calcchip span { color: var(--gt); font-size: 13.5px; font-weight: 500; }
.s-calcchip b { font-family: var(--fd); font-weight: var(--fdm); font-size: 17px; }
.s-calcchip .s-link { justify-self: start; font-size: 14px; padding: 4px 0; min-height: 36px; color: var(--soft); }
.s-form { background: #fff; border: 1px solid var(--hair); border-radius: 10px; padding: clamp(18px, 3vw, 32px); box-shadow: 0 24px 50px -36px rgba(30,45,20,.45); }
.site .s-form .input { border-radius: 6px; background: #fbfbf8; border-color: #d6d4cb; }
.s-success { text-align: center; padding: 26px 10px; }
.s-success .ok { width: 64px; height: 64px; border-radius: 50%; background: rgba(111,190,68,.18); color: var(--gt); display: grid; place-items: center; margin: 0 auto 14px; }

/* footer */
.s-foot { background: linear-gradient(#2c2c2c, #1c1c1c); padding: clamp(48px, 7vw, 90px) 0 calc(env(safe-area-inset-bottom) + 80px); }
.s-foot-line { font-family: var(--fd); font-weight: var(--fdl); font-size: clamp(24px, 3vw, 40px); letter-spacing: -.02em; line-height: 1.2; max-width: 24ch; margin-bottom: clamp(36px, 5vw, 64px); }
.s-foot-line a { color: var(--g); }
.s-foot-about { color: #c2c2bd; font-size: 14px; margin-top: 14px; font-weight: 300; line-height: 1.7; max-width: 40ch; }
.s-foot .cols { display: grid; gap: 30px; }
.s-foot h4, .s-foot .s-fh { font-size: 16px; margin-bottom: 10px; font-weight: 500; letter-spacing: 0; }
.s-foot li { list-style: none; display: flex; gap: 8px; align-items: center; color: #d6d6d6; font-size: 14px; padding: 5px 0; }
.s-foot ul { padding: 0; margin: 0; }
.s-foot li svg { color: #6FBE44; width: 16px; height: 16px; }
.s-foot .bottom { border-top: 1px solid #444; margin-top: 30px; padding-top: 18px; display: flex; flex-wrap: wrap; gap: 10px 20px; color: #bbb; font-size: 13px; }
.preview-banner { position: sticky; top: 0; z-index: 50; background: #F5B020; color: #000; padding: 10px 16px; display: flex; gap: 10px; align-items: center; justify-content: space-between; font-weight: 600; font-size: 14px; flex-wrap: wrap; }
.preview-banner + .site .s-head { top: 52px; }
.demo-back { color-scheme: dark; position: fixed; bottom: calc(env(safe-area-inset-bottom) + 14px); inset-inline-end: 14px; z-index: 45; height: 40px; padding: 0 14px; border-radius: 99px; background: rgba(24,24,24,.92); border: 1px solid #333; color: #fff; display: inline-flex; gap: 6px; align-items: center; font-size: 13px; }
.gallery { display: grid; gap: 10px; grid-template-columns: 1fr 1fr; }
.gallery div { aspect-ratio: 4/3; border-radius: 6px; background: #111 center/cover; }
.gallery div:first-child { grid-column: 1 / -1; aspect-ratio: 16/9; }

@media (min-width: 760px) {
  .t-pair { grid-template-columns: 1fr 1fr; gap: 48px; }
  .p-stats { grid-template-columns: repeat(4, 1fr); }
  .p-stats > div:nth-child(n) { border-top: 0; border-inline-start: 1px solid var(--hair); }
  .p-stats > div:first-child { border-inline-start: 0; }
  .s-proj { grid-template-columns: 1fr 1fr; }
  .r-sec .s-proj .s-pcard:first-child { grid-column: 1 / -1; }
  .r-sec .s-proj .s-pcard:first-child .ph { aspect-ratio: 21/9; }
  .c-grid { grid-template-columns: 1fr 1.05fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
  .v-list { grid-template-columns: 1fr 1fr; column-gap: 56px; }
  .b-list { grid-template-columns: 1fr 1fr; column-gap: 56px; }
}
@media (min-width: 1000px) {
  .s-nav { display: flex; }
  .s-burger { display: none; }
  .s-head .cta { margin-inline-start: 0; }
  .p-grid { grid-template-columns: .9fr 1.1fr; gap: clamp(48px, 7vw, 120px); align-items: start; }
  .p-head { position: sticky; top: 110px; }
  .s-proj { gap: 20px; }
  .r-sec .s-proj { grid-template-columns: 1.4fr 1fr; }
  .r-sec .s-proj .s-pcard:first-child { grid-column: auto; grid-row: span 2; }
  .r-sec .s-proj .s-pcard:first-child .ph { aspect-ratio: auto; flex: 1; min-height: 300px; }
  .r-sec .s-proj .s-pcard:not(:first-child) .ph { aspect-ratio: 16/8; }
  .r-sec .s-proj .s-pcard:only-child { grid-column: 1 / -1; grid-row: auto; }
  .s-proj:not(.r-sec .s-proj) { grid-template-columns: repeat(3, 1fr); }
  .s-proj:not(.r-sec .s-proj) .s-pcard:first-child { grid-column: auto; }
  .s-proj:not(.r-sec .s-proj) .s-pcard:first-child .ph { aspect-ratio: 16/10; }
  .f-grid { grid-template-columns: .8fr 1.2fr; gap: 72px; }
  .s-cta { grid-template-columns: 1fr auto; align-items: center; }
  .s-foot .cols { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
  .s-contact { grid-template-columns: .8fr 1.2fr; gap: 64px; align-items: start; }
  .a-grid { grid-template-columns: 1fr 1fr; gap: 80px; }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .gallery div:first-child { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
}

@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
.reveal { animation: rise .6s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
.proc { display: grid; gap: 10px; }
.proc .st { display: flex; gap: 10px; align-items: center; color: var(--muted); }
.proc .st.on { color: var(--text); font-weight: 600; }
.proc .st.done { color: var(--brand); }
.spin { width: 18px; height: 18px; border: 2px solid var(--line); border-top-color: var(--brand); border-radius: 50%; animation: sp 0.8s linear infinite; }
@keyframes sp { to { transform: rotate(360deg); } }
.method { font-size: 12px; padding: 2px 8px; border-radius: 6px; font-weight: 600; }
.m-ext { background: var(--blue-soft); color: var(--blue); }
.m-calc { background: var(--brand-soft); color: var(--brand); }
.m-man { background: var(--card-2); color: var(--text-2); }
.m-rev { background: var(--amber-soft); color: var(--amber); }
.m-unk { background: var(--red-soft); color: var(--red); }
.qty-in { width: 96px; min-height: 40px; padding: 6px 10px; text-align: center; }
.diff-add { border-inline-start: 3px solid var(--brand); }
.diff-chg { border-inline-start: 3px solid var(--amber); }
.diff-del { border-inline-start: 3px solid var(--red); opacity: .8; }
.diff-del .t { text-decoration: line-through; }

/* ---------- home hero: drone footage of real installs ---------- */
.h-media { position: absolute; inset: 0; overflow: hidden; }
.h-vid { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); transform-origin: 50% 40%; will-change: transform; background: #0d130e; }
.h-scrim { position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(6,10,7,.55) 0%, rgba(6,10,7,.2) 22%, rgba(6,10,7,0) 40%),
              linear-gradient(270deg, rgba(6,10,7,.78) 0%, rgba(6,10,7,.45) 38%, rgba(6,10,7,0) 68%),
              linear-gradient(0deg, rgba(6,10,7,.55) 0%, rgba(6,10,7,0) 26%); }
.h-hero .h-copy h1 { color: #fff; text-shadow: 0 2px 30px rgba(0,0,0,.35); }
.h-hero .h-copy h1 em { color: #fff; background: linear-gradient(transparent 84%, var(--g) 84%, var(--g) 92%, transparent 92%); }
.h-hero .h-copy p { color: rgba(255,255,255,.9); font-weight: 400; text-shadow: 0 1px 16px rgba(0,0,0,.4); }
.h-hero .h-copy .s-link { color: #fff; }
.h-hero .h-copy .s-link svg { color: var(--g); }
.h-foot { position: absolute; z-index: 3; inset-inline: var(--gut); bottom: max(22px, env(safe-area-inset-bottom)); display: flex; align-items: center; justify-content: flex-start; gap: 14px; color: rgba(255,255,255,.82); font-size: 13px; opacity: calc(1 - var(--hp, 0) * 1.6); }
.h-foot span { display: inline-flex; align-items: center; gap: 8px; }
.h-foot span svg { width: 16px; height: 16px; color: var(--sun); }
.h-pp { width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,.45); background: rgba(10,14,10,.35); color: #fff; display: grid; place-items: center; cursor: pointer; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.h-pp svg { width: 18px; height: 18px; }
.h-pp:focus-visible { outline: 2px solid var(--g); outline-offset: 3px; }
.s-head.over:not(.solid):not(.menu-open) { background: linear-gradient(rgba(246,245,240,.92), rgba(246,245,240,.6) 60%, rgba(246,245,240,0)); }
@media (max-width: 759px) {
  .h-scrim { background: linear-gradient(180deg, rgba(6,10,7,.25) 0%, rgba(6,10,7,.62) 18%, rgba(6,10,7,.5) 46%, rgba(6,10,7,.05) 66%, rgba(6,10,7,.0) 78%, rgba(6,10,7,.55) 100%); }
  .h-vid { transform-origin: 50% 60%; }
  .h-foot { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) { .h-vid { transform: none !important; } }

/* project cards + gallery: drone loops */
.s-pcard .ph.has-v { overflow: hidden; }
.ph-v { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.ph-tag { position: absolute; z-index: 1; top: 12px; inset-inline-end: 12px; display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px 5px 9px; border-radius: 99px; background: rgba(10,14,10,.55); color: #fff; font-size: 12px; font-weight: 500; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.ph-tag svg { width: 11px; height: 11px; color: var(--g); }
.gallery .g-v { position: relative; overflow: hidden; background: #111; }
.gallery .g-v video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.r-film.on { padding: 0; display: block; background: #000; }
.r-film.on::before { z-index: 1; }
.r-film.on video { display: block; width: 100%; aspect-ratio: 16/9; background: #000; }

/* ---------- system sign-in ---------- */
.login { min-height: 100dvh; display: grid; place-items: center; padding: calc(env(safe-area-inset-top) + 24px) 16px calc(env(safe-area-inset-bottom) + 24px); background: radial-gradient(ellipse 80% 50% at 50% 0%, var(--brand-soft, rgba(111,190,68,.12)), transparent 70%), var(--bg); }
.login-card { width: 100%; max-width: 400px; display: grid; gap: 4px; }
.login-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 28px; }
.login-brand svg { width: 52px; height: 52px; }
.login-card h1 { font-size: 26px; margin-bottom: 2px; }
.login-card > p.muted { margin-bottom: 18px; }
.login-card .input { font-size: 18px; letter-spacing: .02em; text-align: left; }
.login-err { color: var(--red); font-size: 14px; min-height: 20px; margin: -4px 0 8px; }
.login-demo { margin-top: 26px; border-top: 1px solid var(--line, rgba(127,127,127,.25)); padding-top: 14px; font-size: 13px; color: var(--text-2); }
.login-demo summary { cursor: pointer; min-height: 32px; }
.login-demo ul { margin: 8px 0 6px; padding-inline-start: 18px; display: grid; gap: 4px; }
