/* NightShift — V5 brand layer. Loads after site.css (the craft base).
   Light palette stays. ONE nighttime accent — deep indigo — used sparingly:
   the hero's edge, the wordmark's stroke, the footer. */
:root {
  --night: #1f2547;
  --night-2: #2a3163;
  --dawn: #d59a2b;
}

/* visually hidden, still announced (keeps the heading outline honest) */
.vh { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }

/* ---- one product: pages fade in, and fade out on the way to the next ---- */
@keyframes pagein { from { opacity: 0; } to { opacity: 1; } }
body { animation: pagein .38s var(--out) both; transition: opacity .17s linear; }
body.leaving { opacity: 0; }

/* ---- the wordmark: typographic, no image. The S is the hinge between
   Night and Shift — it carries the night-to-day stroke. That is its one quiet thing. ---- */
.wm { display: inline-flex; align-items: baseline; font-family: var(--disp); font-weight: 600; font-size: 21px; line-height: 1; letter-spacing: -.035em; color: var(--ink); text-decoration: none; font-variation-settings: "opsz" 48; white-space: nowrap; }
.wm .s { font-style: italic; font-weight: 540; padding: 0 .035em 0 .01em; color: var(--ac-deep); background: linear-gradient(0deg, var(--night) 10%, var(--ac) 62%, var(--dawn) 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.wm.on-night { color: #f3f5fb; }
.wm.on-night .s { background: linear-gradient(0deg, #9aa3d6 8%, #7fd1ad 58%, #f0c46a 100%); -webkit-background-clip: text; background-clip: text; }
.wm.big { font-size: 30px; }

/* ---- header ---- */
nav { padding: 9px 10px 9px 18px; }
.btn { white-space: nowrap; }
.vg-sess { white-space: nowrap; }
.vg-app { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-links a[aria-current="page"] { color: var(--ink); background-size: 100% 1px; }
.nav-right { display: flex; align-items: center; gap: 8px; }
.menu-btn { display: none; align-items: center; gap: 8px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); font: 600 13px/1 var(--sans); cursor: pointer; }
.menu-btn i { position: relative; width: 14px; height: 2px; background: currentColor; border-radius: 2px; }
.menu-btn i::before, .menu-btn i::after { content: ""; position: absolute; left: 0; width: 14px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .25s var(--out); }
.menu-btn i::before { top: -5px; } .menu-btn i::after { top: 5px; }
.menu-btn[aria-expanded="true"] i { background: transparent; }
.menu-btn[aria-expanded="true"] i::before { transform: translateY(5px) rotate(45deg); }
.menu-btn[aria-expanded="true"] i::after { transform: translateY(-5px) rotate(-45deg); }

/* ---- the hero's edge: night, felt — not a dark theme ---- */
.hero::before, .page-hero::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 360px; z-index: -1; pointer-events: none; background: linear-gradient(180deg, rgba(31, 37, 71, .12), rgba(31, 37, 71, .035) 52%, transparent); }
.page-hero { position: relative; isolation: isolate; padding: clamp(130px, 18vh, 184px) 24px 0; }
.page-hero .hero-bg { position: absolute; inset: 0 0 auto 0; height: 520px; }
.page-hero h1 { max-width: 900px; }
.page-hero .sub { margin: 26px 0 0; max-width: 560px; font-size: 18px; }
.tagline { font: italic 500 17px/1.4 var(--disp); color: var(--night); letter-spacing: -.01em; }

/* ---- proof tiles: four-up under the home hero and on About ---- */
.proof-grid.four { grid-template-columns: repeat(4, 1fr); margin-top: 0; }
.proof-grid.four .ptile { padding: 28px 22px 24px 0; margin-right: 22px; }
.proof-grid.four .ptile b { font-size: clamp(34px, 3.6vw, 52px); }
.proof-grid.four .ptile span { font-size: 13px; line-height: 1.5; }
.ptile b small { font-size: .58em; font-style: normal; font-weight: 500; margin-left: 1px; vertical-align: .34em; color: var(--ac-deep); }
.hero-proof { width: min(100%, var(--max)); margin: clamp(64px, 9vw, 104px) auto 0; padding: 0 24px; }
.hero-proof .proof-grid { border-bottom: 0; }
.proof-grid.outcomes .ptile b { font-size: clamp(21px, 2vw, 27px); line-height: 1.15; letter-spacing: -.02em; font-weight: 540; min-height: 2.3em; }
.proof-grid.outcomes .ptile span { margin-top: 10px; }
.more { display: inline-flex; align-items: center; gap: 8px; margin-top: 40px; color: var(--ac-deep); font-weight: 600; font-size: 14.5px; text-decoration: none; }
.more .arr { display: inline-block; transition: transform .25s var(--spring); }
.more:hover .arr { transform: translateX(4px); }

/* ---- the rail: a hairline that goes from night to day as you read (the motif, once per page) ---- */
.railed { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 0 clamp(20px, 3.4vw, 44px); margin-top: 56px; }
.rail { position: relative; width: 2px; justify-self: center; background: var(--line); border-radius: 2px; }
.rail i { position: absolute; inset: 0 0 auto 0; height: calc(var(--fill, 0) * 100%); border-radius: 2px; background: linear-gradient(180deg, var(--night) 0%, var(--ac) 58%, var(--dawn) 100%); background-size: 100% var(--rail-h, 1200px); }
.rail i::after { content: ""; position: absolute; left: -4px; bottom: -5px; width: 10px; height: 10px; border-radius: 50%; background: var(--dawn); box-shadow: 0 0 0 4px rgba(213, 154, 43, .18); opacity: calc(var(--fill, 0) * 1.4); }

/* ---- About: the working story ---- */
.movement + .movement { margin-top: 48px; }
.movement h3 { margin: 0 0 14px; color: var(--ac); font: 600 11px var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.movement p { max-width: 660px; margin: 0 0 18px; color: var(--ink); font-size: 18px; line-height: 1.72; }
.movement p.quiet { color: var(--mut); }
.pull { margin: 64px 0 0; max-width: 800px; color: var(--night); font: italic 500 clamp(28px, 3.5vw, 46px)/1.18 var(--disp); letter-spacing: -.02em; }
.pull em { color: var(--ac-deep); }

/* ---- About: what we believe ---- */
.beliefs { margin-top: 52px; border-top: 1px solid var(--line); }
.belief { display: grid; grid-template-columns: 64px minmax(0, 1fr) minmax(0, 1.05fr); gap: 8px 36px; align-items: baseline; padding: 30px 0; border-bottom: 1px solid var(--line); }
.belief > i { color: transparent; -webkit-text-stroke: 1px #9aa3b2; font: italic 400 36px/1 var(--disp); }
.belief h3 { font: 560 clamp(21px, 2.3vw, 28px)/1.18 var(--disp); letter-spacing: -.018em; }
.belief p { color: var(--mut); font-size: 15.5px; }

/* the About signature — try to make it guess */
.guess { grid-column: 2 / -1; margin-top: 22px; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: var(--shadow-1); overflow: hidden; overflow: clip; }
.guess-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 18px; border-bottom: 1px solid var(--line-soft); background: var(--paper); }
.guess-head b { font-size: 13px; }
.guess-head span { color: var(--faint); font: 600 9.5px var(--mono); letter-spacing: .09em; text-transform: uppercase; }
.guess-head span strong { color: var(--ac-deep); font-size: 12px; margin-left: 4px; }
.guess-task { margin: 0; padding: 16px 18px 12px; color: var(--ink); font: 500 13px/1.55 var(--sans); }
.guess-task code { padding: 2px 6px; border: 1px solid var(--line); border-radius: 5px; background: var(--paper); font: 500 12px var(--mono); }
.guess-task code.blank { border-style: dashed; border-color: var(--amber-mid); color: var(--amber); background: var(--amberbg); }
.guess-actions { display: flex; flex-wrap: wrap; gap: 10px; padding: 0 18px 16px; }
.guess-btn { padding: 9px 14px; border: 1px solid var(--line); border-radius: 9px; background: #fff; color: var(--ink); font: 600 13px/1 var(--sans); cursor: pointer; transition: border-color .2s, color .2s, transform .2s var(--spring); }
.guess-btn:hover { border-color: var(--ink); transform: translateY(-1px); }
.guess-btn:active { transform: scale(.97); }
.guess-log { min-height: 118px; padding: 12px 18px 14px; border-top: 1px solid var(--line-soft); background: var(--paper); font: 400 12px/1.65 var(--mono); color: var(--mut); }
.guess-log div { animation: llin .45s var(--out) both; }
.guess-log .you { color: var(--faint); }
.guess-log .ns em { font-style: normal; color: var(--ac-deep); }
.guess-log .ns.ask em { color: var(--amber); }
.guess-log .idle { color: var(--faint); }

/* ---- How it works: the walkthrough + the diagram ---- */
.wstep { display: grid; grid-template-columns: 64px minmax(0, 290px) minmax(0, 1fr); gap: 8px 32px; align-items: baseline; padding: 30px 0; border-bottom: 1px solid var(--line); }
.wstep:first-child { border-top: 1px solid var(--line); }
.wstep > i { color: transparent; -webkit-text-stroke: 1px #9aa3b2; font: italic 400 36px/1 var(--disp); }
.wstep h3 { font: 560 clamp(20px, 2.2vw, 26px)/1.2 var(--disp); letter-spacing: -.018em; }
.wstep p { color: var(--mut); font-size: 15.5px; max-width: 520px; }
.wstep p b { color: var(--ink); font-weight: 600; }
.diagram { margin-top: 52px; padding: clamp(18px, 3.4vw, 40px); border: 1px solid var(--line); border-radius: 20px; background: #fff; box-shadow: var(--shadow-1); }
.diagram svg { display: block; width: 100%; height: auto; }
.diagram .tall { display: none; }
.diagram figcaption { margin-top: 18px; color: var(--mut); font-size: 13.5px; max-width: 640px; }
.dg-box { fill: #fff; stroke: var(--line); stroke-width: 1.5; }
.dg-core { fill: #f6f7fc; stroke: var(--night); stroke-width: 1.6; }
.dg-title { fill: var(--ink); font: 600 17px var(--sans); }
.dg-core-title { fill: var(--night); font: italic 600 22px var(--disp); }
.dg-note { fill: var(--mut); font: 500 12.5px var(--sans); }
.dg-label { fill: var(--ac-deep); font: 600 10.5px var(--mono); letter-spacing: .02em; }
.dg-label.team { fill: var(--amber); }
.dg-line { fill: none; stroke: var(--ac); stroke-width: 1.6; }
.dg-line.team { stroke: var(--amber-mid); }
.dg-line.loop { stroke: var(--night); stroke-dasharray: 4 5; }
.dg-head { fill: var(--ac); } .dg-head.team { fill: var(--amber-mid); } .dg-head.loop { fill: var(--night); }

/* ---- stub pages ---- */
.stub { max-width: 640px; margin-top: 40px; color: var(--mut); font-size: 16.5px; line-height: 1.7; }
.stub p { margin: 0 0 16px; }
.stub a { color: var(--ac-deep); font-weight: 600; }

/* ---- the footer: the one place the page goes fully to night ---- */
footer.site-foot { margin: 0; padding: 60px 24px 30px; border: 0; background: var(--night); color: #c9cfe6; }
.site-foot .foot-in { display: grid; grid-template-columns: minmax(0, 1.3fr) auto auto; gap: 30px 72px; align-items: start; color: #c9cfe6; font-size: 14px; }
.site-foot .foot-tag { margin: 14px 0 0; color: #aab3d6; font: italic 500 16px/1.4 var(--disp); }
.site-foot h2 { margin: 0 0 12px; max-width: none; color: #8f99c4; font: 600 10.5px var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.site-foot ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 9px; }
.site-foot a { color: #e9ecf7; text-decoration: none; }
.site-foot a:hover, .site-foot a:focus-visible { text-decoration: underline; }
.site-foot :focus-visible { outline-color: #7fd1ad; }
.foot-legal { width: min(100%, var(--max)); margin: 44px auto 0; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .12); display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: space-between; color: #a3acd0; font-size: 12.5px; }
.foot-legal a { color: #c9cfe6; }
.foot-legal span + span { display: inline-flex; gap: 18px; }
.cta-wrap { padding-bottom: clamp(88px, 12vw, 150px); }

@media (max-width: 1000px) {
  .menu-btn { display: inline-flex; }
  .nav-links { display: none; position: absolute; top: calc(100% + 8px); left: 0; right: 0; flex-direction: column; gap: 0; padding: 8px; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: var(--shadow-1); }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 13px 12px; font-size: 15px; border-radius: 9px; background-image: none; }
  .nav-links a[aria-current="page"] { background: var(--acbg); color: var(--ac-deep); }
  .proof-grid.four { grid-template-columns: 1fr 1fr; }
  .proof-grid.four .ptile { border-bottom: 1px solid var(--line-soft); padding: 24px 16px 22px 0; margin-right: 16px; }
  .proof-grid.four .ptile:nth-child(2n) { border-right: 0; margin-right: 0; }
  .proof-grid.four .ptile:nth-last-child(-n+2) { border-bottom: 0; }
  .belief, .wstep { grid-template-columns: 48px minmax(0, 1fr); }
  .belief p, .wstep p { grid-column: 2; }
  .guess { grid-column: 1 / -1; }
  .site-foot .foot-in { grid-template-columns: 1fr 1fr; }
  .site-foot .foot-brand-col { grid-column: 1 / -1; }
}
@media (max-width: 700px) {
  .diagram .wide { display: none; }
  .diagram .tall { display: block; max-width: 360px; margin: 0 auto; }
  .movement p { font-size: 17px; }
}
@media (max-width: 620px) {
  nav { gap: 10px; padding-left: 14px; }
  .wm { font-size: 19px; }
  .menu-btn { padding: 10px 11px; }
  .nav-right .btn { padding: 10px 13px; font-size: 13px; }
  .nav-right .btn .arr { display: none; }
  .railed { grid-template-columns: 10px minmax(0, 1fr); gap: 0 16px; }
  .proof-grid.four { grid-template-columns: 1fr; }
  .proof-grid.four .ptile, .proof-grid.four .ptile:nth-child(2n) { border-right: 0; margin-right: 0; border-bottom: 1px solid var(--line-soft); }
  .proof-grid.four .ptile:nth-last-child(-n+2) { border-bottom: 1px solid var(--line-soft); }
  .proof-grid.four .ptile:last-child { border-bottom: 0; }
}

@media (prefers-reduced-motion: reduce) {
  body { animation: none; }
  .rail i { height: 100%; }
  .rail i::after { opacity: 1; }
  .guess-log div { animation: none; }
}

/* ================= BRAND-V1 — logomark "The Shift" + presence =================
   A ring, split on one diagonal: the light half hands off to the deep-indigo half; a green
   arc completes the turn. Flat colour only. The wordmark's S is split on the same diagonal. */
.logo { display: inline-flex; align-items: center; gap: .4em; font-size: 30px; line-height: 1; color: var(--ink); text-decoration: none; white-space: nowrap; }
.logo .mark { width: 1.42em; height: 1.42em; flex: none; overflow: visible; }
.logo .wm { font-size: 1em; }
.wm { letter-spacing: -.04em; }
.wm .s { font-size: 1.2em; line-height: .8; padding: 0 .03em 0 0; color: var(--ac-deep); background: linear-gradient(135deg, var(--ac) 0 53%, var(--night) 53% 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.on-night .wm, .wm.on-night { color: #f3f5fb; }
.on-night .wm .s, .wm.on-night .s { background: linear-gradient(135deg, #5cc99a 0 53%, #f3f5fb 53% 100%); -webkit-background-clip: text; background-clip: text; }
.mk-day { fill: #fff; stroke: var(--night); stroke-width: 3.5; }
.mk-day.sm { stroke-width: 5; }
.mk-night { fill: var(--night); }
.mk-turn { fill: none; stroke: var(--ac); stroke-width: 3.5; stroke-linecap: round; }
.mk-turn.sm { stroke-width: 5; }
.on-night .mk-day { fill: #f3f5fb; stroke: #f3f5fb; }
.on-night .mk-turn { stroke: #5cc99a; }
/* once, on load: the diagonal shifts from day to night in 600ms, the arc completes, then still */
@keyframes mkshift { from { transform: rotate(-180deg); } to { transform: none; } }
@keyframes mkturn { from { stroke-dashoffset: 41; } to { stroke-dashoffset: 0; } }
.logo.live .mk-night, .hero-mark .mk-night { transform-box: view-box; transform-origin: 32px 34px; animation: mkshift .6s var(--io) .3s both; }
.logo.live .mk-turn, .hero-mark .mk-turn { stroke-dasharray: 41; animation: mkturn .45s var(--out) .8s both; }
/* the mark, large and quiet, behind the headline */
.hero-mark { position: absolute; z-index: -1; top: clamp(64px, 9vh, 110px); right: max(8px, calc(50% - 650px)); width: min(48vw, 560px); height: auto; opacity: .075; pointer-events: none; overflow: visible; }
.hero-mark .mk-day { fill: none; }
/* header: ~40% taller, lockup ~2x, nav pushed right, one filled button */
nav { padding: 16px 14px 16px 24px; border-radius: 18px; width: min(calc(100% - 28px), 1180px); }
.nav-links { margin-left: auto; margin-right: 10px; gap: 28px; }
.nav-links a { font-size: 14.5px; }
.hero { padding-top: clamp(150px, 19vh, 200px); }
.page-hero { padding-top: clamp(158px, 21vh, 210px); }
.site-foot .logo { font-size: 34px; }
/* brand review page */
.bgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin-top: 28px; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.bpane { display: flex; align-items: flex-end; gap: 30px; flex-wrap: wrap; padding: 36px; background: #fff; }
.bpane.on-night { background: var(--night); }
.bpane figure { margin: 0; display: grid; gap: 10px; justify-items: start; }
.bpane figcaption { color: var(--faint); font: 600 10px var(--mono); letter-spacing: .08em; }
.bpane.on-night figcaption { color: #a3acd0; }
.bpane svg { display: block; overflow: visible; }
.mkb-stem { fill: var(--night); } .mkb-arrow { fill: var(--ac); stroke: var(--ac); stroke-width: 6.5; stroke-linecap: round; stroke-linejoin: round; }
.on-night .mkb-stem { fill: #f3f5fb; } .on-night .mkb-arrow { fill: #5cc99a; stroke: #5cc99a; }
.mkc-ring { fill: none; stroke: var(--night); stroke-width: 4.5; } .mkc-check { fill: none; stroke: var(--ac); stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; }
.on-night .mkc-ring { stroke: #f3f5fb; } .on-night .mkc-check { stroke: #5cc99a; }
.bnote { max-width: 640px; margin-top: 14px; color: var(--mut); font-size: 15px; }
.lockups { display: grid; gap: 0; margin-top: 28px; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.lockups > div { display: flex; align-items: center; gap: 56px; flex-wrap: wrap; padding: 40px 36px; }
.lockups > div + div { border-top: 1px solid var(--line-soft); }
.lockups .on-night { background: var(--night); }
@media (max-width: 1000px) { .nav-links { margin: 0; } .bgrid { grid-template-columns: 1fr; } }
@media (max-width: 620px) {
  nav { padding: 12px 10px 12px 14px; }
  .logo { font-size: 21px; gap: .34em; }
  .site-foot .logo { font-size: 28px; }
  .hero { padding-top: 124px; } .page-hero { padding-top: 132px; }
  .hero-mark { width: 78vw; right: -18vw; top: 70px; }
}
@media (prefers-reduced-motion: reduce) { .logo.live .mk-night, .hero-mark .mk-night, .logo.live .mk-turn, .hero-mark .mk-turn { animation: none; } }
