/* NightField proposal decks (APP-23213). Brand: nightfield.ai src/brand/palette.json. */
@font-face { font-family: Outfit; src: url(/static/fonts/outfit-latin.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: Manrope; src: url(/static/fonts/manrope-latin.woff2) format("woff2"); font-weight: 200 800; font-display: swap; }
:root {
  --midnight: #07181B; --deep: #0C2A31; --horizon: #52716C; --mist: #87A9A1; --moon: #F3F2EA;
  --line: #1D3D43; --soft: #B9CCC6; --pin: #F2C14E;
  --pad-x: clamp(20px, 6vw, 96px);
}
* { box-sizing: border-box; }
html { background: var(--midnight); color: var(--moon); scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (min-width: 900px) and (min-height: 640px) { html { scroll-snap-type: y proximity; } }
body { margin: 0; font: 17px/1.6 Manrope, system-ui, sans-serif; background: var(--midnight); }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: Outfit, system-ui, sans-serif; font-weight: 500; letter-spacing: -0.01em; margin: 0; color: var(--moon); }
h1 { font-size: clamp(2.3rem, 5.4vw, 4.6rem); line-height: 1.04; max-width: 15ch; }
h2 { font-size: clamp(1.9rem, 3.6vw, 3.1rem); line-height: 1.1; max-width: 22ch; }
h3 { font-size: 1.15rem; line-height: 1.3; }
p { margin: 0; }
kbd { font: 600 .8em/1 Manrope, system-ui, sans-serif; border: 1px solid var(--horizon); border-bottom-width: 2px; border-radius: 5px; padding: 2px 6px; color: var(--moon); }
:focus-visible { outline: 2px solid var(--pin); outline-offset: 3px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--moon); color: var(--midnight); padding: 8px 12px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }

/* frame */
.topbar { position: fixed; inset: 0 0 auto 0; height: 60px; display: flex; align-items: center; gap: 16px; padding: 0 var(--pad-x); z-index: 50;
  background: linear-gradient(var(--midnight) 0%, #07181Bd0 60%, transparent); pointer-events: none; }
.topbar > * { pointer-events: auto; }
.topbar-logo { height: 24px; width: auto; }
.topbar-for { color: var(--mist); font-size: 14px; margin-left: auto; }
.topbar-count { color: var(--mist); font-size: 14px; font-variant-numeric: tabular-nums; min-width: 64px; text-align: right; }
.rail { position: fixed; right: 18px; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 6px; z-index: 50; }
.rail button { width: 28px; height: 28px; display: grid; place-items: center; background: none; border: 0; padding: 0; cursor: pointer; position: relative; }
.rail button::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--horizon); transition: transform .2s ease, background .2s ease; }
.rail button[aria-current="true"]::before { background: var(--moon); transform: scale(1.35); }
.rail button span { position: absolute; right: 34px; white-space: nowrap; background: var(--deep); border: 1px solid var(--line); color: var(--moon);
  font-size: 13px; padding: 4px 10px; border-radius: 8px; opacity: 0; pointer-events: none; transition: opacity .15s ease; }
.rail button:hover span, .rail button:focus-visible span { opacity: 1; }

/* slides */
.slide { position: relative; min-height: 100vh; min-height: 100svh; padding: 104px var(--pad-x) 96px; display: flex; align-items: center;
  scroll-snap-align: start; border-top: 1px solid #ffffff08; overflow: hidden; }
.inner { width: 100%; max-width: 1180px; margin: 0 auto; position: relative; z-index: 1; }
.eyebrow { color: var(--mist); font-size: 15px; font-weight: 600; margin-bottom: 18px; display: flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ""; width: 22px; height: 1px; background: var(--mist); }
.lead { font-size: clamp(1.05rem, 1.4vw, 1.25rem); color: var(--soft); max-width: 62ch; margin-top: 22px; }
.note { color: var(--mist); margin-top: 28px; font-size: 15px; max-width: 70ch; }
.small { font-size: 14px; color: var(--mist); }
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* cover */
.cover { align-items: flex-end; padding-bottom: 12vh; }
.cover-art { position: absolute; inset: 0; background:
  linear-gradient(90deg, #07181Bf2 0%, #07181Bc8 34%, #07181B40 62%, #07181B10 100%),
  linear-gradient(180deg, #07181B00 55%, #07181B 100%),
  url(/static/brand/night-shift.jpg) center 60% / cover no-repeat; }
.cover-logo { width: 200px; height: auto; margin-bottom: 44px; }
.cover .lead { max-width: 48ch; }
.cover .meta { color: var(--mist); font-size: 14px; margin-top: 26px; }
.ask-hint { margin-top: 34px; display: inline-flex; align-items: center; gap: 12px; background: #0C2A31cc; border: 1px solid var(--line); color: var(--moon);
  border-radius: 14px; padding: 12px 16px; font: 500 15px/1.4 Manrope, system-ui, sans-serif; cursor: pointer; text-align: left; min-height: 44px; }
.ask-hint:hover { border-color: var(--mist); }
.ask-hint svg { width: 22px; height: 22px; flex: none; fill: none; stroke: var(--pin); stroke-width: 2; }

/* what we heard */
.quote { margin: 0 0 44px; }
.quote p { font: 400 clamp(1.8rem, 3.4vw, 3rem)/1.18 Outfit, system-ui, sans-serif; color: var(--moon); letter-spacing: -0.01em; max-width: 26ch; }
.quote cite { display: block; margin-top: 18px; color: var(--mist); font-style: normal; font-size: 15px; }
.three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { background: var(--deep); border: 1px solid var(--line); border-radius: 18px; padding: 22px 22px 24px; }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--soft); }

/* challenge */
.four { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 44px; }
.tile { border-top: 1px solid var(--horizon); padding-top: 20px; }
.tile h3 { margin: 14px 0 6px; }
.tile p { color: var(--soft); font-size: 15.5px; }
.ico, .step-ico, .n-ico { display: inline-grid; place-items: center; }
.ico svg, .step-ico svg, .n-ico svg { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ico { width: 44px; height: 44px; border-radius: 12px; background: var(--deep); border: 1px solid var(--line); color: var(--mist); }
.ico svg { width: 22px; height: 22px; }

/* answer */
.flow { list-style: none; padding: 0; margin: 48px 0 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; counter-reset: s; }
.flow li { position: relative; padding: 0 18px 0 0; }
.flow li::after { content: ""; position: absolute; top: 24px; left: 56px; right: 8px; height: 1px; background: linear-gradient(90deg, var(--horizon), transparent); }
.flow li:last-child::after { display: none; }
.step-ico { width: 48px; height: 48px; border-radius: 50%; background: var(--deep); border: 1px solid var(--horizon); color: var(--moon); margin-bottom: 16px; }
.step-ico svg { width: 22px; height: 22px; }
.flow strong { display: block; font: 500 1.08rem/1.3 Outfit, system-ui, sans-serif; margin-bottom: 4px; }
.flow span:not(.step-ico) { color: var(--soft); font-size: 15px; display: block; }

/* tables */
.table-wrap { margin-top: 36px; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: #0A2227; }
.map { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.map th, .map td { text-align: left; padding: 14px 20px; border-top: 1px solid var(--line); vertical-align: top; }
.map thead th { border-top: 0; color: var(--mist); font-weight: 600; font-size: 14px; background: var(--deep); }
.map tbody th { font-weight: 600; color: var(--moon); width: 28%; }
.map td { color: var(--soft); }
.map.scope tbody th { width: 34%; }
.map.scope b { display: inline-block; min-width: 40px; color: var(--mist); font-weight: 700; }
.map.scope th, .map.scope td { padding: 11px 20px; }

/* why now */
.split { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 64px; align-items: center; }
.stat span { display: block; font: 400 clamp(3.2rem, 8vw, 7rem)/0.95 Outfit, system-ui, sans-serif; letter-spacing: -0.03em; color: var(--moon); }
.stat small { display: block; margin-top: 18px; color: var(--mist); font-size: 1.05rem; max-width: 22ch; }

/* proof */
.timeline { list-style: none; padding: 0; margin: 44px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.timeline li { border-top: 2px solid var(--horizon); padding-top: 18px; }
.timeline li.hl { border-top-color: var(--moon); }
.timeline time { color: var(--mist); font-weight: 600; font-size: 14px; display: block; margin-bottom: 8px; font-variant-numeric: tabular-nums; }
.timeline p { color: var(--soft); }
.timeline strong { color: var(--moon); font-weight: 600; }

/* price */
.price-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 36px; align-items: start; }
.price { background: var(--deep); border: 1px solid var(--line); border-radius: 22px; padding: 28px; }
.price-big { font: 400 clamp(3.4rem, 6vw, 5rem)/1 Outfit, system-ui, sans-serif; letter-spacing: -0.03em; }
.price-unit { color: var(--mist); margin: 6px 0 16px; }
.price > p:not(.price-big):not(.price-unit) { color: var(--soft); }
.bands { width: 100%; border-collapse: collapse; margin: 16px 0 14px; font-size: 15px; }
.bands th, .bands td { text-align: left; padding: 9px 0; border-top: 1px solid var(--line); }
.bands th { color: var(--mist); font-weight: 600; font-size: 13.5px; border-top: 0; }
.bands td:last-child, .bands th:last-child { text-align: right; }
.included { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.included li { color: var(--soft); padding-left: 26px; position: relative; }
.included li::before { content: ""; position: absolute; left: 0; top: .55em; width: 12px; height: 7px; border-left: 2px solid var(--mist); border-bottom: 2px solid var(--mist); transform: rotate(-45deg); }
.included strong { color: var(--moon); font-weight: 600; }
.trial { margin-top: 22px; border: 1px solid var(--mist); border-radius: 18px; padding: 20px 22px; }
.trial-title { font: 500 1.25rem/1.3 Outfit, system-ui, sans-serif; color: var(--moon); margin-bottom: 4px; }
.trial p:not(.trial-title) { color: var(--soft); }

/* team */
.team .lead { margin-top: 14px; }
.org-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; margin-top: 30px; align-items: start; }
.org { position: relative; }
.org-top { display: flex; justify-content: center; align-items: center; gap: 0; }
.org-dash { width: 48px; border-top: 1px dashed var(--mist); }
.org-stem { width: 1px; height: 22px; background: var(--horizon); margin: 0 auto; }
.org-ceo { display: flex; justify-content: center; }
.org-branch { height: 22px; margin: 0 calc(100% / 6); border: 1px solid var(--horizon); border-bottom: 0; border-radius: 10px 10px 0 0; position: relative; }
.org-branch::before { content: ""; position: absolute; left: 50%; top: -23px; width: 1px; height: 22px; background: var(--horizon); }
.squads { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.squad { background: #0A2227; border: 1px solid var(--line); border-radius: 18px; padding: 12px; display: grid; gap: 8px; align-content: start; }
.squad.care { border-color: #87A9A170; background: #0C2A31; }
.squad-name { color: var(--mist); font-size: 13.5px; font-weight: 700; padding: 2px 4px 4px; }
.node { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; background: var(--deep); color: var(--moon); border: 1px solid var(--line);
  border-radius: 14px; padding: 9px 12px; min-height: 56px; cursor: pointer; font: inherit; position: relative; transition: border-color .15s ease, background .15s ease; }
.node:hover { border-color: var(--mist); }
.node[aria-pressed="true"] { border-color: var(--moon); background: #12363E; }
.org-top .node, .org-ceo .node { width: auto; min-width: 230px; }
.node.person { background: transparent; border-color: var(--horizon); }
.node.dashed { border-style: dashed; }
.n-ico { width: 34px; height: 34px; border-radius: 10px; background: #0A2227; color: var(--mist); flex: none; }
.n-ico svg { width: 18px; height: 18px; }
.n-photo { width: 36px; height: 36px; border-radius: 50%; overflow: hidden; flex: none; border: 1px solid var(--mist); }
.n-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; }
.n-txt { display: grid; line-height: 1.25; min-width: 0; }
.n-txt strong { font: 500 15.5px/1.25 Outfit, system-ui, sans-serif; }
.n-txt small { color: var(--mist); font-size: 13px; }
.trial-tag { font-size: 11.5px; font-weight: 800; color: var(--midnight); background: var(--moon); border-radius: 999px; padding: 2px 8px; margin-left: auto; flex: none; }
.role-detail { background: var(--moon); color: var(--midnight); border-radius: 20px; padding: 22px; position: sticky; top: 84px; min-height: 300px; }
.role-detail .rd-kicker { color: #3E5D58; font-size: 13px; font-weight: 700; }
.role-detail h3 { color: var(--midnight); font-size: 1.35rem; margin: 6px 0 10px; }
.role-detail .rd-does { color: #1E3A37; }
.role-detail dl { margin: 16px 0 0; display: grid; gap: 4px; }
.role-detail dt { font-size: 12.5px; font-weight: 800; color: #3E5D58; margin-top: 10px; }
.role-detail dd { margin: 0; color: #1E3A37; font-size: 15px; }
.legend { margin-top: 18px; color: var(--mist); font-size: 14.5px; display: flex; align-items: center; gap: 10px; }
.legend .trial-tag { margin: 0; }

/* therapist */
.therapist { display: grid; grid-template-columns: 0.75fr 1.25fr; gap: 56px; align-items: center; }
.portrait { margin: 0; }
.portrait img { border-radius: 24px; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 25%; width: 100%; max-height: 72vh; border: 1px solid var(--line); }
.portrait figcaption { color: var(--mist); font-size: 14px; margin-top: 12px; }
.does { margin: 26px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.does li { padding-left: 26px; position: relative; color: var(--soft); }
.does li::before { content: ""; position: absolute; left: 0; top: .6em; width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--mist); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 28px; }
.never, .signoff { border-radius: 16px; padding: 18px 20px; }
.never { border: 1px solid var(--horizon); }
.signoff { background: var(--deep); border: 1px solid var(--line); }
.never h3, .signoff h3 { font-size: 1rem; color: var(--mist); margin-bottom: 6px; font-weight: 600; }
.never p, .signoff p { color: var(--moon); }

/* plan */
.phases { list-style: none; padding: 0; margin: 36px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.phase { background: #0A2227; border: 1px solid var(--line); border-radius: 18px; padding: 20px; display: flex; flex-direction: column; gap: 8px; }
.phase.trial-phase { background: var(--moon); border-color: var(--moon); }
.phase.trial-phase h3, .phase.trial-phase p { color: var(--midnight); }
.phase.trial-phase .ph-label, .phase.trial-phase .ph-areas { color: #3E5D58; }
.ph-label { color: var(--mist); font-weight: 700; font-size: 13.5px; }
.phase p { color: var(--soft); font-size: 15.5px; flex: 1; }
.ph-areas { color: var(--mist); font-size: 13.5px; font-weight: 600; }

/* ask */
.ask { align-items: center; }
.ask-art { position: absolute; inset: auto 0 0 0; height: 42%; background:
  linear-gradient(180deg, var(--midnight) 0%, #07181Bb0 45%, #07181B60 100%), url(/static/brand/field-scene.jpg) center bottom / cover no-repeat; opacity: .9; }
.steps { margin: 30px 0 0; padding: 0; list-style: none; counter-reset: st; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.steps li { counter-increment: st; background: #0C2A31e6; border: 1px solid var(--line); border-radius: 18px; padding: 20px; color: var(--soft); }
.steps li::before { content: counter(st); display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--mist);
  color: var(--moon); font-weight: 700; font-size: 14px; margin-bottom: 12px; }
.steps strong { display: block; color: var(--moon); font: 500 1.08rem/1.3 Outfit, system-ui, sans-serif; margin-bottom: 4px; }
.date { margin-top: 24px; color: var(--moon); font-weight: 600; }
.actions { display: flex; gap: 12px; margin-top: 22px; flex-wrap: wrap; }
.cta { height: 50px; padding: 0 22px; border-radius: 14px; border: 1px solid var(--moon); background: var(--moon); color: var(--midnight); font: 700 15.5px/1 Manrope, system-ui, sans-serif; cursor: pointer; }
.cta.ghost { background: transparent; color: var(--moon); border-color: var(--horizon); }
.cta:hover { filter: brightness(1.05); }
.sign { margin-top: 26px; color: var(--mist); font-size: 14.5px; max-width: 60ch; }

/* phones and small laptops */
@media (max-width: 1100px) {
  .org-wrap { grid-template-columns: 1fr; }
  .role-detail { position: static; min-height: 0; }
  .flow { grid-template-columns: repeat(3, 1fr); row-gap: 28px; }
  .flow li:nth-child(3)::after { display: none; }
}
@media (max-width: 900px) {
  .rail { display: none; }
  .slide { padding: 92px 20px 84px; min-height: 0; }
  .cover { min-height: 100svh; padding-bottom: 96px; }
  .three, .four, .timeline, .price-grid, .phases, .steps, .split, .therapist, .two { grid-template-columns: 1fr; }
  .four { gap: 22px; }
  .split, .therapist { gap: 28px; }
  .portrait img { aspect-ratio: 4 / 3; max-height: 46vh; object-position: 50% 22%; }
  .flow { grid-template-columns: 1fr; row-gap: 18px; }
  .flow li { display: grid; grid-template-columns: 48px 1fr; column-gap: 16px; padding: 0; }
  .flow li::after { display: none; }
  .step-ico { grid-row: span 2; margin: 0; }
  .org-top { flex-direction: column; gap: 0; }
  .org-dash { width: 0; height: 18px; border-top: 0; border-left: 1px dashed var(--mist); }
  .org-top .node, .org-ceo .node { width: 100%; }
  .org-branch { width: 1px; height: 18px; margin: 0 auto; border: 0; border-radius: 0; background: var(--horizon); }
  .org-branch::before { display: none; }
  .squads { grid-template-columns: 1fr; }
  .map th, .map td { padding: 12px 14px; }
  .map tbody th { width: 40%; }
  .topbar-for { display: none; }
  .topbar-count { margin-left: auto; }
  .ask-art { height: 30%; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .table-wrap { border-radius: 14px; }
  .map.scope thead { display: none; }
  .map.scope tr { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); padding: 10px 0; }
  .map.scope tbody th { grid-column: 1 / -1; width: auto; border: 0; padding: 4px 14px 6px; }
  .map.scope td { border: 0; padding: 0 14px 4px; font-size: 14px; }
  .map.scope td::before { display: block; color: var(--mist); font-size: 12px; font-weight: 700; }
  .map.scope td:nth-of-type(1)::before { content: "Built by"; }
  .map.scope td:nth-of-type(2)::before { content: "Checked by"; }
  .map:not(.scope) tbody th, .map:not(.scope) td { display: block; width: auto; }
  .map:not(.scope) tbody td { border-top: 0; padding-top: 0; }
  .map:not(.scope) thead { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
@media print {
  html { scroll-snap-type: none; background: #07181B; }
  .topbar, .rail { display: none; }
  .slide { min-height: 0; height: auto; page-break-after: always; break-after: page; padding: 48px; }
  .reveal { opacity: 1; transform: none; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
