/* Case studies on the canvas: every board is a named frame, each project wears its own palette,
   and Atshaya's handwriting annotates the work. Loaded on case-study pages only. */

.case {
  --note: #6a4a9c;
  --display-stretch: 76%;
  --board-pad: clamp(40px, 6vw, 88px);
  --radius-board: 18px;
}
.case-she-ride {
  --c-base: #ecd9cf; --c-warm: #ddb7a5; --c-teal: #8bb4b4; --c-sea: #356d6a; --c-deep: #2a4642;
  --tint: #f8f1ec; --tint-cool: #edf4f2; --night: #1b2030;
}
.case-one-at-a-time {
  --c-base: #f4efe8; --c-warm: #e9e0d3; --c-teal: #2f5654; --c-sea: #1f7a5a; --c-deep: #22403e;
  --tint: #f7f3ee; --tint-cool: #eef3f0; --night: #16302e;
}
.case-leave-management {
  --c-base: #f4f4f2; --c-warm: #e9e9e6; --c-teal: #2f6fe0; --c-sea: #c4372b; --c-deep: #1c1e21;
  --tint: #f9f9f9; --tint-cool: #f2f4f7; --night: #1c1e21;
}

.hand { font-family: var(--font-hand); font-size: clamp(22px, 1.9vw, 27px); line-height: 1.12; color: var(--note); }

/* ------------------------------------------------------------------- Cover */

.cover { max-width: calc(1200px + 2 * var(--gutter)); margin: 0 auto; padding: clamp(14px, 2.4vw, 32px) var(--gutter) 0; color: var(--c-deep); }
.cover-wrap { background: var(--c-base); border: 2px solid var(--ink); border-radius: 30px; }
@supports (overflow: clip) { .cover { overflow: clip; } }
.cover-wrap {
  position: relative; display: grid; grid-template-rows: auto 1fr auto auto; overflow: hidden;
  min-height: clamp(560px, calc(100svh - var(--header-h) - 120px), 860px); padding: 22px clamp(22px, 4vw, 56px) clamp(24px, 3.4vw, 44px);
}
.cover-back {
  position: relative; z-index: 3; justify-self: start; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px 8px 10px;
  border-radius: 999px; background: #ffffffa6; font: 500 14px/1 var(--font-display); color: var(--ink); transition: background-color .2s;
}
.cover-back:hover { background: #fff; }
.cover-back .icon { width: 16px; height: 16px; }
.cover-copy { position: relative; z-index: 2; grid-row: 3; align-self: end; padding-bottom: clamp(20px, 3vw, 36px); }
.cover-title { font: 700 clamp(76px, 11.5vw, 172px)/.82 var(--font-display); font-stretch: 75%; letter-spacing: -.01em; color: inherit; }
.cover-sub { max-width: 26ch; margin-top: clamp(14px, 2vw, 24px); font: 500 clamp(19px, 1.9vw, 26px)/1.3 var(--font-display); letter-spacing: -.01em; }
.cover-meta {
  position: relative; z-index: 2; grid-row: 4; display: flex; flex-wrap: wrap; gap: 14px clamp(28px, 4vw, 56px);
  padding-top: 18px; border-top: 1px solid currentColor; border-top-color: color-mix(in srgb, currentColor 25%, transparent);
}
.cover-meta dt { font: 400 13px/1.3 var(--font-display); }
.cover-meta dd { margin-top: 4px; font: 500 15.5px/1.3 var(--font-display); }
.cover-art { position: absolute; inset: 0; pointer-events: none; }
.cover-she-ride .cover-phones { z-index: 3; }

/* She Ride: her cover art, rebuilt in CSS, with the real screens. */
.cover-she-ride .she-sun { position: absolute; right: -9%; top: -26%; width: 56%; aspect-ratio: 1; border-radius: 50%; background: var(--c-warm); }
.cover-she-ride .she-hill { position: absolute; left: -14%; right: -14%; bottom: -36%; height: 62%; border-radius: 50% 50% 0 0; background: #91b5b2; }
.cover-she-ride .cover-phones { position: absolute; right: 3%; bottom: 15%; width: min(46%, 540px); aspect-ratio: 1.12; }
.cover-phone { position: absolute; bottom: 0; width: 33%; }
.cover-phone.p1 { left: 1%; bottom: 3%; rotate: -9deg; }
.cover-phone.p2 { left: 33%; width: 35%; bottom: 12%; z-index: 2; }
.cover-phone.p3 { right: 1%; bottom: 3%; rotate: 9deg; }

/* One at a time: the meadow, the logo. */
.cover-one-at-a-time { color: #fff; }
.cover-one-at-a-time .cover-wrap, .cover-leave-management .cover-wrap { background: var(--night); }

.cover-photo { width: 100%; height: 100%; object-fit: cover; }
.cover-one-at-a-time .cover-photo { object-position: 50% 42%; }
.cover-one-at-a-time .cover-art::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, #0d2220c7, #0d222066 48%, #0d222000 75%), linear-gradient(0deg, #0d2220b3, #0d222000 46%);
}
.cover-logo { width: clamp(250px, 36vw, 520px); height: auto; filter: drop-shadow(0 2px 14px #0005); }
.cover-one-at-a-time .cover-title { line-height: 1; }
.cover-one-at-a-time .cover-back, .cover-leave-management .cover-back { background: #ffffff26; color: #fff; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.cover-one-at-a-time .cover-back:hover, .cover-leave-management .cover-back:hover { background: #ffffff40; }

/* Leave management: the product on the desk. */
.cover-leave-management { color: #fff; }
.cover-leave-management .cover-photo { object-position: 62% 50%; }
.cover-leave-management .cover-art::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, #141518f2 0%, #141518b8 36%, #14151826 66%), linear-gradient(0deg, #141518f0 0%, #141518cc 24%, #14151800 58%);
}
.cover-leave-management .cover-title { font-size: clamp(60px, 8.6vw, 132px); }

/* ----------------------------------------------------------------- Chapters */

.chapters {
  position: sticky; top: calc(var(--header-h) + 10px); z-index: 40; display: flex; justify-content: center;
  margin-top: 14px; padding: 0 var(--gutter); pointer-events: none; transition: top .3s var(--ease-out);
}
.header-hidden .chapters { top: 10px; }
.chapters-track {
  position: relative; display: flex; gap: 2px; max-width: 100%; padding: 5px; overflow-x: auto; scrollbar-width: none; pointer-events: auto;
  border: 2px solid var(--ink); border-radius: 999px; background: #ffffffee; box-shadow: 3px 3px 0 var(--ink);
  -webkit-backdrop-filter: saturate(1.5) blur(12px); backdrop-filter: saturate(1.5) blur(12px);
}
.chapters-track::-webkit-scrollbar { display: none; }
.chapters a {
  flex: none; padding: 9px 15px; border-radius: 999px; font: 500 14px/1 var(--font-display); color: var(--muted); white-space: nowrap;
  transition: background-color .2s, color .2s;
}
.chapters a:hover { color: var(--ink); background: #16211e0d; }
.chapters a.is-current { background: var(--ink); color: #fff; }
.chapters-progress { position: absolute; left: 50%; bottom: -8px; width: 120px; height: 3px; margin-left: -60px; overflow: hidden; border-radius: 3px; background: #19171c1a; }
.chapters-progress span { display: block; height: 100%; background: var(--note); transform: scaleX(0); transform-origin: 0 50%; }

/* ------------------------------------------------------------------- Boards */

/* The page's scroll padding already clears the header; this lands each heading just under the chapter bar. */
.board {
  max-width: calc(1200px + 2 * var(--gutter)); margin: clamp(64px, 8vw, 120px) auto 0; padding: 0 var(--gutter);
  scroll-margin-top: 70px;
}
.board-wrap { position: relative; padding: var(--board-pad) clamp(22px, 5vw, 72px); border: 2px solid var(--ink); border-radius: 30px; background: var(--frame, var(--paper)); }
.board-head { max-width: 780px; margin-bottom: clamp(36px, 5vw, 64px); }
.board-title { font: 600 clamp(34px, 4.4vw, 60px)/1.02 var(--font-display); font-stretch: 86%; letter-spacing: -.028em; color: var(--ink); }
.board-lead { max-width: 60ch; margin-top: 18px; font-size: clamp(17px, 1.35vw, 19px); line-height: 1.62; color: var(--text); }

/* At a glance: the recruiter's two-minute version. */
.board-glance { --board-pad: clamp(32px, 4.6vw, 64px); margin-top: clamp(40px, 5vw, 72px); }
.glance { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 44px clamp(48px, 7vw, 104px); align-items: start; }
.glance-brief { font: 500 clamp(24px, 2.4vw, 34px)/1.3 var(--font-display); letter-spacing: -.018em; color: var(--ink); }
.glance-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 32px; margin: 0; }
.glance-cell { padding-top: 14px; border-top: 1px solid var(--line-strong); }
.glance-cell dt { margin-bottom: 8px; font: 500 14px/1.3 var(--font-display); color: var(--subtle); }
.glance-cell dd { font-size: 16.5px; line-height: 1.5; color: var(--ink); }

/* Statement: the big "why". */
.board-statement { --frame: var(--c-base); }
.statement { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px clamp(48px, 7vw, 110px); align-items: end; }
.statement-title {
  font: 700 clamp(70px, 10vw, 158px)/.84 var(--font-display); font-stretch: var(--display-stretch); letter-spacing: -.012em; color: var(--c-deep);
}
.statement-because { font: 500 clamp(22px, 2.1vw, 30px)/1.28 var(--font-display); letter-spacing: -.012em; color: var(--ink); margin-bottom: 28px; }
.facts { display: flex; flex-wrap: wrap; gap: 14px clamp(24px, 3.6vw, 52px); margin: 4px 0 30px; }
.facts div { display: flex; flex-direction: column-reverse; }
.facts dd { font: 700 clamp(54px, 6vw, 92px)/.86 var(--font-display); font-stretch: 75%; color: var(--c-deep); }
.facts dt { margin-top: 8px; font-size: 14.5px; line-height: 1.3; color: var(--text); }
.statement-dark .facts dd { color: #fff; }
.statement-dark .facts dt { color: #c9ccd1; }
.pillars { margin: 0; padding: 0; list-style: none; }
.pillars li {
  display: grid; grid-template-columns: minmax(8.5ch, auto) minmax(0, 1fr); gap: 6px 24px; align-items: baseline; padding: 16px 0;
  border-top: 1px solid color-mix(in srgb, var(--c-deep) 22%, transparent);
}
.pillar-word { font: 700 clamp(26px, 2.5vw, 36px)/1 var(--font-display); font-stretch: 78%; color: var(--c-deep); }
.pillar-text { font-size: 16.5px; line-height: 1.5; color: var(--text); }
.statement-quote .statement-title { font-size: clamp(54px, 7vw, 112px); line-height: .9; color: var(--c-teal); }
.statement-dark { --frame: #1c1e21; }
.statement-dark .statement-title, .statement-dark .pillar-word { color: #fff; }
.statement-dark .statement-because { color: #fff; }
.statement-dark .pillar-text { color: #c9ccd1; }
.statement-dark .pillars li { border-top-color: #ffffff2e; }

/* Problem */
.problem { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px clamp(48px, 7vw, 104px); align-items: start; }
.pains { margin: 0; padding: 0; list-style: none; }
.pains li { padding: 20px 0; border-top: 1px solid var(--line-strong); font-size: clamp(19px, 1.7vw, 23px); line-height: 1.4; color: var(--text); }
.pains li:last-child { border-bottom: 1px solid var(--line-strong); }
.pains strong { color: var(--ink); font-weight: 600; }
.hmw { padding: clamp(28px, 4vw, 48px); border-radius: var(--radius-board); background: var(--tint); }
.hmw blockquote { margin: 0; }
.hmw blockquote p { font: 500 clamp(26px, 2.7vw, 40px)/1.2 var(--font-display); letter-spacing: -.02em; color: var(--ink); }
.hmw figcaption { margin-top: 20px; font: 400 15px/1.4 var(--font-display); color: var(--muted); }
.problem-after { max-width: 64ch; margin-top: 40px; font-size: 17.5px; line-height: 1.65; color: var(--muted); }

/* --------------------------------------------------------------- Phones */

/* Phone frames (.phone, .phone-frame, .phone-screen) live in styles.css: the homepage uses them too. */

/* Storyboard: a sticky phone that follows the story. */
.board-story { --frame: var(--tint); }
.story { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 7vw, 120px); }
.story-stage { position: sticky; top: calc(var(--header-h) + 72px); display: grid; place-items: center; height: calc(100svh - var(--header-h) - 104px); }
.story-phone { width: min(300px, 100%, calc((100svh - var(--header-h) - 150px) * .447)); }
.story-phone .phone-frame { aspect-ratio: 259 / 579; }
.story-screen { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .45s ease; }
.story-screen.is-active { opacity: 1; }
.story-marks { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.story-ring path {
  fill: none; stroke: var(--note); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 1; stroke-dashoffset: 1; opacity: 0; transition: stroke-dashoffset .9s cubic-bezier(.5, .1, .2, 1) .35s, opacity .2s;
}
.story-ring.is-active path { stroke-dashoffset: 0; opacity: 1; }
.story-steps { position: relative; margin: 0; padding: 0 0 0 36px; list-style: none; }
.story-steps::before { content: ''; position: absolute; left: 7px; top: 0; bottom: 0; border-left: 2px dotted color-mix(in srgb, var(--c-sea) 45%, transparent); }
.story-step { position: relative; display: flex; flex-direction: column; justify-content: center; min-height: 72svh; padding: 48px 0; }
.story-step::before {
  content: ''; position: absolute; left: -36px; top: 50%; width: 16px; height: 16px; margin-top: -8px; border: 2px solid var(--c-sea);
  border-radius: 50%; background: var(--tint); transition: background-color .3s, transform .3s;
}
.story-step.is-active::before { background: var(--c-sea); transform: scale(1.15); }
.story-time { font: 600 16px/1.2 var(--font-display); font-variant-numeric: tabular-nums; color: var(--c-sea); }
.story-step h3 { margin: 10px 0 14px; font: 600 clamp(28px, 2.9vw, 42px)/1.08 var(--font-display); font-stretch: 88%; letter-spacing: -.02em; }
.story-step > p:not(.story-time):not(.hand) { max-width: 44ch; font-size: 18px; line-height: 1.62; color: var(--text); }
.story-note { max-width: 30ch; margin-top: 20px; rotate: -1.5deg; }
.story-inline { display: none; }

/* Annotated poster: a screen with Atshaya's notes around it. */
.poster { margin: 0; }
.poster-board {
  position: relative; aspect-ratio: 16 / 9; container-type: inline-size; overflow: hidden; border-radius: var(--radius-board); background: var(--tint);
}
.poster-phone { position: absolute; left: var(--px); top: var(--py); width: var(--pw); }
.poster-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; fill: none; stroke: var(--note); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.js .poster-lines path { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset .8s cubic-bezier(.5, .1, .2, 1); }
.js .poster-lines path:nth-child(even) { transition-duration: .25s; }
.js .poster.is-drawn .poster-lines path { stroke-dashoffset: 0; }
.js .poster .poster-note { opacity: 0; transition: opacity .5s ease; }
.js .poster.is-drawn .poster-note { opacity: 1; }
.poster-notes { margin: 0; padding: 0; list-style: none; }
.poster-note { position: absolute; top: var(--y); width: 27%; transform: translateY(-50%); }
.poster-note.note-left { right: calc(100% - var(--x)); text-align: right; }
.poster-note.note-right { left: var(--x); }
.poster-note .hand { font-size: 2.1cqi; line-height: 1.12; }
.poster-num, .poster-dot { display: none; }
.poster-dots { position: absolute; inset: 0; }
.poster-dot {
  position: absolute; left: var(--x); top: var(--y); width: 24px; height: 24px; margin: -12px 0 0 -12px; place-items: center;
  border-radius: 50%; background: var(--note); color: #fff; font: 600 12.5px/1 var(--font-display); box-shadow: 0 0 0 3px #ffffffd9;
}
.poster-caption { margin-top: 16px; font-size: 15px; color: var(--muted); }

/* Day and night */
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(14px, 2vw, 24px); }
.split-panel {
  display: flex; flex-direction: column; align-items: center; gap: 30px; margin: 0; padding: clamp(36px, 5vw, 64px) 24px;
  border-radius: var(--radius-board); background: var(--c-base);
}
.split-panel .phone { width: min(270px, 64%); }
.split-panel figcaption { max-width: 34ch; text-align: center; }
.split-panel figcaption strong { display: block; margin-bottom: 8px; font: 600 21px/1.2 var(--font-display); color: var(--ink); }
.split-dark { background: var(--night); --note: #d7c8f5; }
.split-dark figcaption strong { color: #fff; }
.split-dark .phone-frame { box-shadow: 0 0 0 1px #ffffff1f, 0 28px 50px -26px #000; }

/* Every screen in a row */
.screen-row {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(176px, 1fr); gap: clamp(16px, 2vw, 28px);
  margin: 0; padding: 4px 4px 18px; list-style: none; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin;
}
.screen-row > li { scroll-snap-align: start; }
.screen-row > li > p { margin-top: 16px; text-align: center; font: 500 15px/1.3 var(--font-display); color: var(--muted); }

/* Colour */
.swatches { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; overflow: hidden; border-radius: var(--radius-board); }
.swatches li {
  display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; min-height: clamp(220px, 26vw, 360px); padding: clamp(18px, 2vw, 28px);
  background: var(--swatch); color: var(--ink);
}
.swatches li.is-dark { color: #fff; }
.swatches li.is-dark code { opacity: 1; }
.swatches strong { font: 700 clamp(24px, 2.4vw, 34px)/1 var(--font-display); font-stretch: 80%; }
.swatches span { font-size: 15px; }
.swatches code { font: 400 13px/1 var(--font-mono); opacity: .8; }

/* Reflection */
.board-reflection { --frame: var(--tint); }
.reflection { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 48px clamp(48px, 7vw, 104px); align-items: start; }
.reflection-body p { max-width: 60ch; margin-top: 20px; font-size: 18px; line-height: 1.7; color: var(--text); }
.reflection-next { padding: 30px 32px; border-radius: 24px; background: #fff; }
.reflection-next .hand { margin-bottom: 10px; font-size: 30px; }
.reflection-next ul { margin: 0; padding: 0; list-style: none; }
.reflection-next li { position: relative; padding: 14px 0 14px 28px; border-top: 1px solid var(--line); font-size: 16.5px; line-height: 1.5; color: var(--text); }
.reflection-next li::before { content: ''; position: absolute; left: 2px; top: 21px; width: 12px; height: 12px; border: 1.6px solid var(--note); border-radius: 50%; }

/* ---------------------------------------------------------- One at a time */

.board-how { --frame: var(--tint-cool); }
.how { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 48px clamp(40px, 6vw, 88px); align-items: start; }
.how-steps { position: sticky; top: calc(var(--header-h) + 90px); }
.how-steps { margin: 0; padding: 0; list-style: none; counter-reset: step; }
.how-steps li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 4px 16px; padding: 22px 0; border-top: 1px solid #16211e1f; }
.how-steps li:last-child { border-bottom: 1px solid #16211e1f; }
.step-num { grid-row: 1 / 3; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--c-teal); color: #fff; font: 600 16px/1 var(--font-display); }
.how-steps h3 { font: 600 21px/1.25 var(--font-display); letter-spacing: -.01em; }
.how-steps p { font-size: 16px; line-height: 1.55; color: var(--text); }
.how-chats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 3vw, 36px); align-items: start; }
.how-chats .chat:nth-child(2) { margin-top: clamp(0px, 8vw, 96px); }

.chat { margin: 0; }
.chat-phone {
  display: flex; flex-direction: column; width: 100%; max-width: 320px; aspect-ratio: 9 / 18.6; margin: 0 auto; overflow: hidden;
  border: 9px solid #141414; border-radius: 46px; background: #ece4d9; box-shadow: 0 30px 60px -32px #10231c8c;
}
.chat-status, .chat-head { background: #1e6b55; color: #fff; }
.chat-status { display: flex; align-items: center; justify-content: space-between; padding: 8px 20px 4px; font: 600 12.5px/1 var(--font-display); }
.chat-island { width: 84px; height: 22px; border-radius: 12px; background: #141414; }
.chat-signal { width: 30px; height: 10px; border-radius: 3px; border: 1.5px solid #ffffffcc; }
.chat-head { display: flex; align-items: center; gap: 8px; padding: 8px 12px 10px; font: 600 13.5px/1.2 var(--font-display); }
.chat-head .icon { width: 18px; height: 18px; flex: none; }
.chat-avatar { flex: none; width: 30px; height: 30px; border-radius: 50%; background: #fff; }
.chat-name { display: flex; flex: 1; align-items: center; gap: 4px; min-width: 0; overflow: hidden; white-space: nowrap; }
.chat-head .chat-verified { width: 15px; height: 15px; color: #8fd4ff; }
.chat-log {
  display: flex; flex: 1; flex-direction: column; justify-content: flex-end; gap: 7px; min-height: 0; margin: 0; padding: 12px 10px 10px;
  list-style: none; overflow: hidden;
}
.msg { display: flex; align-items: flex-end; gap: 6px; max-width: 88%; }
.msg-io, .msg-her { align-self: flex-start; }
.msg-you, .msg-him { align-self: flex-end; flex-direction: row-reverse; }
.msg-bubble { padding: 7px 10px 8px; border-radius: 14px 14px 14px 5px; background: #fff; color: #1b1b1b; box-shadow: 0 1px .5px #0000001f; }
.msg-you .msg-bubble, .msg-him .msg-bubble { border-radius: 14px 14px 5px 14px; background: #2b8a66; color: #fff; }
.msg-bubble p { font-size: 13px; line-height: 1.38; }
.msg-media { display: block; width: 100%; height: auto; margin-bottom: 6px; border-radius: 9px; }
.msg-action { display: block; margin-bottom: 7px; padding: 6px; border-radius: 7px; background: #e5e5e5; text-align: center; font-size: 11.5px; color: #333; }
.msg-avatar { flex: none; width: 24px; height: 24px; border-radius: 50%; object-fit: cover; }
.chat-typing { display: none; align-self: flex-start; gap: 4px; padding: 11px 12px; border-radius: 14px 14px 14px 5px; background: #fff; }
.chat-typing span { width: 6px; height: 6px; border-radius: 50%; background: #9aa0a6; animation: typing 1s infinite ease-in-out; }
.chat-typing span:nth-child(2) { animation-delay: .15s; }
.chat-typing span:nth-child(3) { animation-delay: .3s; }
.chat.is-typing .chat-typing { display: flex; }
.chat.is-armed .msg:not(.is-shown) { display: none; }
.chat.is-armed .msg.is-shown { animation: msg-in .35s var(--ease-out) both; }
.chat-input { display: flex; align-items: center; gap: 8px; padding: 6px 10px 14px; color: #5f6469; font-size: 12.5px; }
.chat-input > span:not(.chat-mic) { flex: 1; padding: 9px 0; }
.chat-input .icon { width: 18px; height: 18px; }
.chat-mic { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #1e8a62; color: #fff; }
.chat figcaption { display: flex; align-items: center; justify-content: space-between; gap: 12px; max-width: 320px; margin: 16px auto 0; }
.chat figcaption .hand { font-size: 25px; }
.chat-replay {
  display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: 999px;
  background: #fff; font: 500 13px/1 var(--font-display); color: var(--ink);
}
.chat-replay .icon { width: 15px; height: 15px; }
.chat-replay:hover { border-color: var(--ink); }
@keyframes typing { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-3px); opacity: 1; } }
@keyframes msg-in { from { opacity: 0; transform: translateY(10px) scale(.97); } }

.board-website { --frame: var(--c-base); }
.site-shots { display: grid; gap: clamp(56px, 8vw, 112px); }
.site-shot { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 3fr); gap: 28px clamp(28px, 4vw, 56px); align-items: center; margin: 0; }
.site-shot:nth-child(even) { grid-template-columns: minmax(0, 3fr) minmax(0, 8fr); }
.site-shot:nth-child(even) .browser { order: 2; }
.site-shot figcaption .hand { font-size: clamp(25px, 2.3vw, 32px); rotate: -2deg; }
.site-shot-caption { display: block; margin-top: 12px; font-size: 15px; line-height: 1.5; color: var(--muted); }
.browser { overflow: hidden; border-radius: 18px; background: #fff; box-shadow: 0 2px 4px #0000000d, 0 40px 70px -40px #22403e73; }
.browser-bar { display: flex; gap: 7px; padding: 12px 16px; background: #f1efeb; }
.browser-bar i { width: 10px; height: 10px; border-radius: 50%; background: #d6d2cb; }

/* --------------------------------------------------------- Leave management */

.board-spots { --frame: var(--tint); }
.spots { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 48px clamp(40px, 6vw, 96px); align-items: center; }
.spots-figure { margin: 0; }
.spots-image { position: relative; max-width: 380px; margin: 0 auto; }
.spots-image img { display: block; width: 100%; height: auto; }
.hotspot {
  position: absolute; left: var(--x); top: var(--y); display: grid; place-items: center; width: 30px; height: 30px; margin: -15px 0 0 -15px;
  border-radius: 50%; background: var(--ink); color: #fff; font: 600 13px/1 var(--font-display); box-shadow: 0 0 0 4px #ffffffe6, 0 6px 14px -6px #000a;
  transition: transform .25s var(--ease-out), background-color .25s;
}
.hotspot.is-active { transform: scale(1.22); background: var(--c-sea); }
.spots-legend ol { margin: 0; padding: 0; list-style: none; }
.spots-legend li { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 16px; padding: 18px 0; border-top: 1px solid var(--line-strong); }
.spots-legend li:last-child { border-bottom: 1px solid var(--line-strong); }
.spot-num { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: #fff; font: 600 13px/1 var(--font-display); transition: background-color .25s; }
.spots-legend li.is-active .spot-num { background: var(--c-sea); }
.spots-legend h3 { font: 600 19px/1.3 var(--font-display); letter-spacing: -.01em; }
.spots-legend p { margin-top: 4px; font-size: 16px; line-height: 1.55; color: var(--text); }
.spots-caption { margin-top: 16px; font-size: 14px; color: var(--muted); }
.spots-wide { --frame: var(--paper); }
.spots-wide .spots { grid-template-columns: 1fr; }
.spots-wide .spots-image { max-width: none; overflow: hidden; border-radius: var(--radius-board); background: #232529; }
.spots-wide .spots-legend ol { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 0 28px; }
.spots-wide .spots-legend li { grid-template-columns: 1fr; gap: 10px; border-bottom: 0; }

.board-bento { --frame: var(--tint); }
.bento { columns: 3; column-gap: clamp(20px, 3vw, 36px); }
.bento-card { break-inside: avoid; margin: 0 0 clamp(28px, 3vw, 40px); }
.bento-card figcaption .hand { margin-bottom: 10px; font-size: 23px; rotate: -1.5deg; }
.bento-card .zoomable img { border-radius: 16px; box-shadow: 0 1px 2px #0000000f, 0 22px 40px -28px #1c1e2166; }

.board-system { --frame: var(--paper); }
.system { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 4fr); gap: 40px clamp(40px, 6vw, 88px); align-items: center; }
.system-sheet { padding: clamp(14px, 2vw, 24px); border-radius: var(--radius-board); background: var(--tint); }
.system-sheet img { margin: 0 auto; border-radius: 10px; }
.system-notes { margin: 0; padding: 0; list-style: none; }
.system-notes li { padding: 18px 0; border-top: 1px solid var(--line); }
.system-notes .hand { font-size: 26px; }
.system-notes p:not(.hand) { margin-top: 4px; font-size: 16px; line-height: 1.55; color: var(--text); }

/* Shared: anything that opens in the lightbox. */
.zoomable { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.zoomable img { display: block; width: 100%; height: auto; }

/* ------------------------------------------------------------------- Ending */

.ending { max-width: calc(1200px + 2 * var(--gutter)); margin: clamp(72px, 9vw, 128px) auto 0; padding: 0 var(--gutter); }
.ending-frame {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 40px clamp(36px, 5vw, 80px); align-items: center;
  padding: clamp(32px, 5vw, 72px); border: 2px solid var(--ink); border-radius: 30px; background: var(--lav);
}

.ending-credit { margin-top: 30px; font: 500 15px/1.4 var(--font); color: var(--text); }
.ending h2 { font: 700 clamp(84px, 11vw, 168px)/.82 var(--font-display); font-stretch: 75%; letter-spacing: -.005em; color: var(--ink); }
.ending-text { max-width: 40ch; margin-top: 22px; font-size: 18px; line-height: 1.6; color: var(--text); }
.ending-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.ending .copy-status { margin-top: 12px; }
.ending-next {
  display: grid; gap: 6px; padding: 16px 16px 26px; border-radius: 28px; background: #fff;
  box-shadow: 0 2px 4px #4a35640f, 0 40px 70px -44px #4a356499; transition: transform .35s var(--ease-out), box-shadow .35s;
}
.ending-next:hover { transform: translateY(-4px); box-shadow: 0 2px 4px #4a35640f, 0 48px 80px -44px #4a3564b3; }
.ending-next-label { order: -1; padding: 4px 10px 6px; font: 500 14px/1.3 var(--font-display); color: var(--subtle); }
.ending-next-media { display: block; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 18px; background: #eee; }
.ending-next-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease-out); }
.ending-next:hover .ending-next-media img { transform: scale(1.03); }
.next-she-ride img { object-position: 50% 0; }
.ending-next-title { margin-top: 16px; padding: 0 10px; font: 700 clamp(34px, 3.4vw, 46px)/.95 var(--font-display); font-stretch: 80%; color: var(--ink); }
.ending-next-text { padding: 0 10px; font-size: 16px; line-height: 1.5; color: var(--muted); }
.ending-next-go { display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; padding: 0 10px; font: 600 15px/1 var(--font-display); color: var(--ink); }
.ending-next-go .icon { width: 17px; height: 17px; transition: transform .25s var(--ease-out); }
.ending-next:hover .ending-next-go .icon { transform: translateX(3px); }

/* -------------------------------------------------------------- Responsive */

@media (max-width: 1000px) {
  .glance, .statement, .problem, .reflection, .spots, .system, .ending-frame { grid-template-columns: 1fr; }
  .statement { align-items: start; }
  .how { grid-template-columns: minmax(0, 1fr); }
  .how-steps { position: static; }
  .bento { columns: 2; }
  .cover-she-ride .cover-phones { width: min(52%, 460px); bottom: 22%; }
}

@media (max-width: 900px) {
  .story { grid-template-columns: 1fr; }
  .story-stage { display: none; }
  .story-step { min-height: 0; padding: 36px 0; }
  .story-step::before { top: 54px; margin-top: 0; }
  .story-inline { display: block; width: min(250px, 72%); margin-top: 28px; }
  .poster-board { aspect-ratio: auto; display: flex; flex-direction: column; align-items: center; gap: 30px; padding: 36px 20px 30px; }
  .poster-phone { position: relative; left: auto; top: auto; width: min(260px, 72%); }
  .poster-lines { display: none; }
  .poster-notes { display: grid; gap: 16px; width: 100%; max-width: 440px; }
  .poster-note, .poster-note.note-left, .poster-note.note-right { position: static; display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 12px; width: auto; transform: none; text-align: left; }
  .poster-note .hand { font-size: 22px; }
  .poster-num, .poster-dot { display: grid; }
  .poster-num { place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--note); color: #fff; font: 600 12.5px/1 var(--font-display); }
  .site-shot, .site-shot:nth-child(even) { grid-template-columns: 1fr; }
  .site-shot:nth-child(even) .browser { order: 0; }
  .site-shot figcaption { order: -1; }
}

@media (max-width: 760px) {
  .cover { padding-top: 10px; }
  .cover-wrap { min-height: 0; grid-template-rows: auto auto auto auto; padding: 16px 18px 22px; }
  .cover-she-ride .cover-wrap { padding-bottom: 28px; }
  .cover-she-ride .cover-art { position: relative; grid-row: 2; height: 290px; margin: 8px -18px 0; }
  .cover-she-ride .cover-phones { right: 50%; translate: 50% 0; bottom: 6px; width: min(330px, 86vw); }
  .cover-she-ride .she-sun { width: 90vw; top: -40px; right: -32vw; }
  .cover-she-ride .she-hill { bottom: -50%; height: 70%; }
  .cover-one-at-a-time .cover-wrap, .cover-leave-management .cover-wrap { min-height: min(640px, calc(100svh - var(--header-h) - 40px)); grid-template-rows: auto 1fr auto auto; }
  .cover-title { font-size: clamp(68px, 21vw, 110px); }
  .cover-leave-management .cover-title { font-size: clamp(42px, 14.6vw, 96px); }
  .cover-copy { padding-bottom: 20px; }
  .cover-meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px; }
  .chapters { margin-top: 10px; padding: 0 10px; }
  .chapters-track { padding: 4px; }
  .chapters a { padding: 8px 13px; font-size: 13.5px; }
  .board { margin-top: 56px; scroll-margin-top: 64px; }
  .board-wrap { padding: 32px 20px; }
  .glance-grid { grid-template-columns: 1fr; gap: 22px; }
  .pillars li { grid-template-columns: 1fr; gap: 4px; }
  .split { grid-template-columns: 1fr; }
  .swatches { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .swatches li { min-height: 170px; }
  .how-chats { grid-template-columns: minmax(0, 1fr); gap: 44px; }
  .how-chats .chat:nth-child(2) { margin-top: 0; }
  .chat-phone { max-width: 300px; }
  .bento { columns: 1; }
  .bento-card { max-width: 330px; margin-inline: auto; }
  .spots-wide .spots-legend ol { grid-template-columns: 1fr; }
  .hotspot { width: 24px; height: 24px; margin: -12px 0 0 -12px; font-size: 12px; box-shadow: 0 0 0 3px #ffffffe6; }
  .ending-next { padding-bottom: 22px; }
  .ending-frame { padding: 30px 20px; }
  .facts dd { font-size: 56px; }
}

@media (prefers-reduced-motion: reduce) {
  .story-ring path { stroke-dashoffset: 0; transition: none; }
  .js .poster-lines path { stroke-dashoffset: 0; }
  .js .poster .poster-note { opacity: 1; }
  .chat.is-armed .msg:not(.is-shown) { display: flex; }
}

@media print {
  .chapters, .ending, .chat-replay, .cover-back { display: none !important; }
  .cover { min-height: 0; }
  .story-stage { display: none; }
  .story-inline { display: block; width: 220px; }
  .story-step { min-height: 0; }
  .board { margin-top: 24px; break-inside: avoid; }
  .board-wrap { padding: 24px; }
}

/* Bold frames: sticker labels, ink outlines, the homepage's playful layer. */
.case .frame-label {
  display: inline-flex; margin: 0 0 -14px 26px; position: relative; z-index: 2; padding: 7px 14px; border: 2px solid var(--ink); border-radius: 999px;
  background: var(--yellow); font: 600 14px/1 var(--font); color: var(--ink); rotate: -2deg; box-shadow: 2px 2px 0 var(--ink);
}
.board:nth-of-type(3n + 2) .frame-label { background: #c8eedb; rotate: 1.5deg; }
.board:nth-of-type(3n) .frame-label { background: #ffd1e3; rotate: -1deg; }
.ending .frame-label { background: #fff; }
.ending-next { border: 2px solid var(--ink); box-shadow: 6px 6px 0 var(--ink); }
.ending-next:hover { box-shadow: 9px 9px 0 var(--ink); }
.cover-back { border: 1.5px solid var(--ink); }
.chat-phone { border-color: #141414; }
.hmw { border: 2px solid var(--ink); }
.reflection-next { border: 2px solid var(--ink); }
.poster-board { border: 2px solid var(--ink); }
.split-panel { border: 2px solid var(--ink); }
.swatches { border: 2px solid var(--ink); }
.browser { border: 2px solid var(--ink); }
.case-image-button, .system-sheet { border: 2px solid var(--ink); }
@media (max-width: 760px) {
  .board-wrap, .cover-wrap, .ending-frame { border-radius: 22px; }
  .case .frame-label { margin-left: 16px; font-size: 13px; }
}

/* ------------------------------------------------------ Ride along (She Ride) */
/* Her prototype, playable: tap the real buttons on the real screens. */

.board-proto { --frame: var(--c-base); }
.proto { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 40px clamp(40px, 6vw, 96px); align-items: center; }
.proto-side .board-head { margin-bottom: 28px; }
.proto-stage { position: relative; display: grid; place-items: center; padding: 20px 0; }
.proto-stage::before {
  content: ''; position: absolute; width: min(440px, 92%); aspect-ratio: 1; border-radius: 50%; background: var(--c-warm); z-index: 0;
}
.proto-phone { position: relative; z-index: 1; width: min(282px, 76%, calc((100vh - var(--header-h) - 190px) * .447)); }
.proto-phone .phone-frame { aspect-ratio: 259 / 579; }
.proto-screen { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.proto-screen[hidden], .proto-hot[hidden], .proto-note[hidden] { display: none; }
.proto-screen.is-active { animation: proto-in .38s cubic-bezier(.2, .8, .2, 1); }
@keyframes proto-in { from { opacity: 0; transform: translateX(14%) scale(.98); } }
.proto-hot {
  position: absolute; left: var(--x0); top: var(--y0); width: calc(var(--x1) - var(--x0)); height: calc(var(--y1) - var(--y0));
  padding: 0; border: 0; border-radius: 12px; background: transparent; cursor: pointer;
  box-shadow: 0 0 0 0 #ffd84d00; animation: proto-hint 1.8s ease-out 1.2s infinite;
}
.proto-hot:hover, .proto-hot:focus-visible { animation: none; box-shadow: 0 0 0 3px #ffd84d, 0 0 0 7px #ffd84d66; outline: none; }
@keyframes proto-hint { 0% { box-shadow: 0 0 0 0 #ffd84dcc; } 70%, 100% { box-shadow: 0 0 0 14px #ffd84d00; } }
.proto-sticker {
  position: absolute; z-index: 2; left: calc(50% + 96px); top: 8%; padding: 9px 15px; border: 2px solid var(--ink); border-radius: 999px;
  background: var(--yellow); box-shadow: 3px 3px 0 var(--ink); font: 600 15px/1 var(--font); color: var(--ink); rotate: 6deg;
}
.proto-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 26px; padding: 0; list-style: none; }
.proto-chip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px 0 6px; border: 2px solid var(--ink); border-radius: 999px;
  background: #fff; font: 600 14px/1 var(--font); color: var(--ink); transition: background-color .2s, box-shadow .2s;
}
.proto-chip:hover { box-shadow: 2px 2px 0 var(--ink); }
.proto-chip.is-active { background: var(--ink); color: #fff; }
.proto-chip-num { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--c-base); color: var(--ink); font-size: 13px; }
.proto-chip.is-active .proto-chip-num { background: var(--yellow); }
.proto-notes { min-height: 3.6em; }
.proto-note { font-size: clamp(28px, 2.6vw, 38px); line-height: 1.1; color: var(--note); }
.proto-note.is-active { animation: fade-up .35s ease both; }
@keyframes fade-up { from { opacity: 0; transform: translateY(8px); } }
.proto-action { display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; padding: 8px 14px; border-radius: 999px; background: #fff; font: 600 14px/1.2 var(--font); color: var(--ink); }
.proto-action .icon { width: 16px; height: 16px; color: var(--violet); }
.proto-controls { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }

/* --------------------------------------------- Scroll her website (One at a time) */

.board-site { --frame: var(--c-base); }
.site-scroll { position: relative; }
.site-scroll-pin { position: relative; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 28px clamp(28px, 4vw, 56px); align-items: center; }
.site-window { overflow: hidden; border: 2px solid var(--ink); border-radius: 18px; background: #fff; box-shadow: 8px 8px 0 var(--ink); }
.site-window .browser-bar { display: flex; align-items: center; gap: 7px; padding: 11px 14px; border-bottom: 2px solid var(--ink); background: #f3efe8; }
.site-window .browser-bar i { width: 10px; height: 10px; border-radius: 50%; background: #d6d2cb; }
.site-url { margin-left: 10px; padding: 4px 12px; border-radius: 999px; background: #fff; font: 500 12.5px/1 var(--font); color: var(--muted); }
.site-viewport { height: min(560px, 62vh); overflow: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.site-page { display: block; width: 100%; height: auto; }
.site-notes { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.site-note { padding: 12px 16px; border: 2px solid transparent; border-radius: 16px; transition: background-color .3s, border-color .3s; }
.site-note .hand { font-size: 26px; color: #5d5852; transition: color .3s; }
.site-note.is-on .hand { color: var(--ink); }
.site-note.is-on { opacity: 1; border-color: var(--ink); background: #fff; box-shadow: 3px 3px 0 var(--ink); }
.site-progress { display: none; }
@media (min-width: 1001px) and (min-height: 700px) and (prefers-reduced-motion: no-preference) {
  .js .site-scroll { height: 280vh; }
  .js .site-scroll-pin { position: sticky; top: calc(var(--header-h) + 74px); }
  .js .site-viewport { height: min(600px, calc(100vh - var(--header-h) - 160px)); overflow: hidden; }
  .js .site-page { transform: translateY(var(--page-y, 0px)); will-change: transform; }
  .js .site-progress { display: block; grid-column: 1; height: 4px; margin-top: 4px; overflow: hidden; border-radius: 4px; background: #16211e1a; }
  .js .site-progress span { display: block; height: 100%; background: var(--ink); transform: scaleX(var(--p, 0)); transform-origin: 0 50%; }
}

/* ------------------------------------------------- Approve the queue (Leave mgmt) */

.board-approve { --frame: #fff; }
.approve { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: 40px clamp(40px, 6vw, 96px); align-items: center; }
.approve-app {
  padding: 18px 18px 16px; border: 2px solid var(--ink); border-radius: 30px; background: #fff; box-shadow: 10px 10px 0 var(--ink);
  font-family: 'Plus Jakarta Sans', var(--font); color: #1c1c1c;
}
.approve-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.approve-menu { width: 20px; height: 14px; background: linear-gradient(#1c1c1c 0 0) 0 0 / 100% 2px no-repeat, linear-gradient(#1c1c1c 0 0) 0 6px / 100% 2px no-repeat, linear-gradient(#1c1c1c 0 0) 0 12px / 100% 2px no-repeat; }
.approve-brand { display: inline-flex; align-items: center; gap: 6px; font: 700 19px/1 var(--font); letter-spacing: -.02em; color: #2b2a30; }
.approve-logo { width: 16px; height: 16px; border-radius: 4.5px; background: linear-gradient(#fff 0 0) 3.5px 5px / 9px 2px no-repeat, linear-gradient(#fff 0 0) 3.5px 9px / 6px 2px no-repeat, #2b2a30; }
.approve-avatar { width: 22px; height: 22px; border: 2px solid #1c1c1c; border-radius: 50%; }
.approve-title { font-size: 15px; font-weight: 600; }
.approve-sub { margin-top: 12px; font-size: 15px; font-weight: 700; }
.approve-tabs { display: flex; gap: 22px; margin-top: 12px; border-bottom: 1px solid #e8e8e8; font-size: 13.5px; color: #666; }
.approve-tabs span { padding: 8px 0; }
.approve-tabs .is-on { color: #c4372b; font-weight: 600; box-shadow: inset 0 -2px #c4372b; }
.req-list { margin: 6px 0 0; padding: 0; list-style: none; }
.req { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 2px; border-bottom: 1px solid #f0f0f0; transition: opacity .3s; }
.req label { display: flex; align-items: flex-start; gap: 12px; min-width: 0; cursor: pointer; }
.req input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.req-box { flex: none; width: 20px; height: 20px; margin-top: 2px; border: 1.5px solid #9a9a9a; border-radius: 5px; transition: background-color .15s, border-color .15s; }
.req input:checked + .req-box { border-color: #1c1c1c; background: #1c1c1c url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.2 4.2L19 7'/%3E%3C/svg%3E") center / 14px no-repeat; }
.req input:focus-visible + .req-box { outline: 2px solid var(--violet); outline-offset: 2px; }
.req-text { display: flex; flex-direction: column; min-width: 0; }
.req-name { overflow: hidden; font-size: 14.5px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.req-type, .req-date { font-size: 12.5px; color: #757575; }
.req-status { flex: none; padding: 5px 10px; border-radius: 8px; background: #fff3e0; color: #b45309; font-size: 12.5px; font-weight: 600; transition: background-color .3s, color .3s; }
.req.is-approved .req-status { background: #e3f5e8; color: #17703a; }
.req.is-rejected .req-status { background: #fde8e8; color: #b42318; }
.req.is-done .req-name { color: #5f5f5f; }
.req.is-done label { cursor: default; }
.req.just-changed .req-status { animation: pop .45s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes pop { 0% { transform: scale(.6); } 100% { transform: scale(1); } }
.approve-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.approve-btn { min-height: 44px; border: 1.5px solid; border-radius: 10px; background: #fff; font: 700 15px/1 'Plus Jakarta Sans', var(--font); transition: background-color .2s; }
.approve-yes { border-color: #7cc596; color: #17703a; }
.approve-yes:hover:not(:disabled) { background: #eef9f1; }
.approve-no { border-color: #ef9a9a; color: #b42318; }
.approve-no:hover:not(:disabled) { background: #fdf0f0; }
.approve-btn:disabled { opacity: .4; cursor: not-allowed; }
.approve-status { min-height: 1.4em; margin-top: 10px; font-size: 13.5px; font-weight: 600; text-align: center; color: #17703a; }
.approve-reset { display: inline-flex; align-items: center; gap: 6px; margin: 4px auto 0; padding: 6px 12px; border: 1.5px solid #1c1c1c; border-radius: 999px; background: #fff; font: 600 13px/1 var(--font); }
.approve-reset:not([hidden]) { display: flex; }
.approve-reset .icon { width: 14px; height: 14px; }
.approve-steps { margin: 0; padding: 0; list-style: none; }
.approve-steps li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 4px 16px; padding: 18px 0; border-top: 2px solid var(--ink); }
.approve-steps li:last-child { border-bottom: 2px solid var(--ink); }
.approve-steps h3 { font: 600 20px/1.25 var(--font); letter-spacing: -.01em; }
.approve-steps p { margin-top: 4px; font-size: 16px; line-height: 1.55; color: var(--text); }
.approve-steps .step-num { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--yellow); border: 2px solid var(--ink); font: 700 16px/1 var(--font); }
.approve-hand { margin-top: 22px; font-size: 30px; color: var(--note); rotate: -2deg; }
.approve-note { margin-top: 10px; font-size: 13.5px; color: var(--muted); }

/* ---------------------------------------------------------- Covers, bolder */

.cover-title { text-shadow: none; }
.cover-wrap { box-shadow: 10px 10px 0 var(--ink); }

@media (max-width: 1000px) {
  .proto, .approve, .site-scroll-pin { grid-template-columns: minmax(0, 1fr); }
  .approve-app { max-width: 380px; margin: 0 auto; }
}
@media (max-width: 760px) {
  .proto-phone { width: min(280px, 82%); }
  .proto-sticker { left: auto; right: 0; top: 4%; font-size: 13.5px; }
  .proto-side { order: -1; }
  .proto-note { font-size: 27px; }
  .proto-controls .button { flex: 1 1 auto; }
  .site-viewport { height: 70vh; }
  .site-notes { grid-auto-flow: column; grid-auto-columns: 78%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; }
  .site-note { opacity: 1; border-color: var(--ink); background: #fff; scroll-snap-align: start; }
  .cover-wrap { box-shadow: 6px 6px 0 var(--ink); }
  .approve-app { box-shadow: 6px 6px 0 var(--ink); }
}
@media (prefers-reduced-motion: reduce) {
  .proto-hot { animation: none; box-shadow: 0 0 0 3px #ffd84d; }
}
.approve > * { min-width: 0; }
.approve-tabs { overflow: hidden; }
.approve-tabs span { white-space: nowrap; }
@media (max-width: 400px) {
  .approve-app { padding: 14px 12px; border-radius: 22px; }
  .approve-tabs { gap: 12px; font-size: 12.5px; }
  .approve-btn { font-size: 14px; }
}
.approve-app { width: 100%; }

/* ------------------------------------------------- She Ride, alive: Thozhi + live screens */
/* The screens themselves live in she-app.css (generated). These rules place them in the case study. */

.proto-phone .app[hidden], .evo-pane[hidden] { display: none; }
.proto-phone [data-proto-go] { outline: 3px solid #ffd84d00; outline-offset: 0; }
@media (prefers-reduced-motion: no-preference) {
  .proto-phone .app.is-live [data-proto-go] { animation: proto-ring 1.9s ease-out 1.4s infinite; }
}
.proto-phone [data-proto-go]:focus-visible { animation: none; outline: 3px solid #ffd84d; outline-offset: 3px; }
@keyframes proto-ring { 0% { outline-color: #ffd84dff; outline-offset: 0; } 70%, 100% { outline-color: #ffd84d00; outline-offset: 12px; } }

/* Cover: Thozhi says hello in front of the phones. */
.cover-she-ride .cover-tz { position: absolute; z-index: 4; right: calc(3% + min(46%, 540px) * .8); bottom: 9%; width: min(15%, 200px); }
@media (prefers-reduced-motion: no-preference) {
  .cover-she-ride .cover-tz .tz-wave { animation: tz-wave .5s ease-in-out 1.1s 6 alternate; }
}

/* Meet Thozhi: a character sheet you can play with. */
.board-tz { --frame: #f8e9e1; }
.tz-board { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); grid-template-areas: "hero traits" "moments moments"; gap: 40px clamp(32px, 5vw, 80px); align-items: center; }
.tz-hero { grid-area: hero; position: relative; display: grid; justify-items: center; }
.tz-stage { position: relative; display: grid; place-items: center; width: min(360px, 100%); aspect-ratio: 1; }
.tz-sun { position: absolute; inset: 4%; border: 2px solid var(--ink); border-radius: 50%; background: #f1cdbd; transition: background-color .45s ease; }
.tz-stage.is-night .tz-sun { background: #1c2033; }
.tz-pose { position: relative; width: 68%; margin-top: 4%; }
.tz-pose[hidden], .tz-line[hidden] { display: none; }
.tz-say { position: absolute; z-index: 2; left: 0; top: 2%; max-width: 64%; }
.tz-line {
  padding: 12px 16px; border: 2px solid var(--ink); border-radius: 18px 18px 18px 4px; background: #fff; box-shadow: 3px 3px 0 var(--ink);
  font: 600 16px/1.35 var(--font); color: var(--ink);
}
.tz-line strong { color: #2f6f6a; }
.tz-name { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center; gap: 6px 14px; margin-top: 18px; text-align: center; }
.tz-name-ta { font-size: 28px; font-weight: 700; color: var(--ink); }
.tz-name-en { font: 700 46px/1 var(--font-display); font-stretch: 78%; letter-spacing: -.01em; color: var(--ink); }
.tz-name-hand { font-size: 28px; color: var(--note); rotate: -3deg; }
.tz-traits { grid-area: traits; margin: 0; padding: 0; list-style: none; }
.tz-traits li { padding: 20px 0; border-top: 2px solid var(--ink); }
.tz-traits li:last-child { border-bottom: 2px solid var(--ink); }
.tz-traits h3 { font: 600 clamp(20px, 1.8vw, 24px)/1.2 var(--font-display); letter-spacing: -.01em; color: var(--ink); }
.tz-traits p { max-width: 46ch; margin-top: 6px; font-size: 17px; line-height: 1.55; color: var(--text); }
.tz-moments { grid-area: moments; }
.tz-moments-title { margin-bottom: 14px; font: 400 28px/1 var(--font-hand); color: var(--note); }
.tz-picks { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.tz-pick {
  display: grid; justify-items: center; gap: 2px; width: 100%; height: 100%; padding: 14px 8px 16px; border: 2px solid var(--ink); border-radius: 22px;
  background: #fff; color: var(--ink); font: 500 13.5px/1.3 var(--font); cursor: pointer; transition: translate .2s var(--ease-out), box-shadow .2s;
}
.tz-pick:hover { translate: 0 -3px; box-shadow: 3px 3px 0 var(--ink); }
.tz-pick.is-active { background: var(--yellow); box-shadow: 3px 3px 0 var(--ink); }
.tz-pick:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; }
.tz-pick-art { display: grid; place-items: center; width: min(92px, 100%); aspect-ratio: 1; margin-bottom: 8px; border-radius: 50%; background: #f6ddd2; }
.tz-pick-art.is-night { background: #1c2033; }
.tz-pick-art .thozhi { width: 80%; }
.tz-pick strong { font-weight: 600; font-size: 16px; }
.tz-pick span:last-child { color: var(--muted); }
.tz-pick.is-active span:last-child { color: var(--text); }

/* Before and after, on one phone. */
.board-evo { --frame: var(--c-base); }
.evo { display: grid; justify-items: center; gap: 22px; }
.evo-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0; padding: 0; list-style: none; }
.evo-tab { min-height: 40px; padding: 0 16px; border: 2px solid var(--ink); border-radius: 999px; background: #fff; color: var(--ink); font: 600 14px/1 var(--font); cursor: pointer; }
.evo-tab:hover { box-shadow: 2px 2px 0 var(--ink); }
.evo-tab.is-active { background: var(--ink); color: #fff; }
.evo-phone-wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 28px; width: 100%; }
.evo-tag { font: 400 clamp(26px, 2.4vw, 34px)/1 var(--font-hand); color: var(--c-deep); }
.evo-tag-before { justify-self: end; rotate: -4deg; }
.evo-tag-after { justify-self: start; rotate: 4deg; }
.evo-phone { width: min(300px, 64vw); }
.evo-stage { --pos: 50%; }
.evo-pane { position: absolute; inset: 0; }
.evo-before { position: absolute; inset: 0; z-index: 2; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.evo-before-img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.evo-handle { position: absolute; z-index: 3; top: 0; bottom: 0; left: var(--pos); width: 3px; translate: -50% 0; background: #fff; box-shadow: 0 0 0 1px #19171c33; pointer-events: none; }
.evo-handle::after {
  content: ''; position: absolute; left: 50%; top: 50%; width: 40px; height: 40px; translate: -50% -50%; border: 2px solid var(--ink); border-radius: 50%;
  background: var(--yellow) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2319171c' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 7-5 5 5 5M15 7l5 5-5 5'/%3E%3C/svg%3E") center / 20px no-repeat;
  box-shadow: 2px 2px 0 var(--ink);
}
.evo-range { position: absolute; z-index: 4; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; touch-action: pan-y; }
.evo-stage:has(.evo-range:focus-visible) .evo-handle::after { outline: 3px solid var(--violet); outline-offset: 3px; }
.evo-hint { font-size: 26px; color: var(--note); }

.swatches:has(> li:nth-child(6)) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.swatches:has(> li:nth-child(6)) li { min-height: clamp(150px, 15vw, 210px); }

@media (max-width: 1000px) {
  .tz-board { grid-template-columns: minmax(0, 1fr); grid-template-areas: "hero" "traits" "moments"; }
  .tz-picks { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cover-she-ride .cover-tz { right: calc(3% + min(52%, 460px) * .78); bottom: 16%; }
}
@media (max-width: 760px) {
  .cover-she-ride .cover-tz { right: auto; left: 4%; bottom: 2px; width: 92px; }
  .tz-say { position: relative; left: auto; top: auto; max-width: none; order: -1; margin-bottom: -6px; }
  .tz-line { font-size: 15px; }
  .tz-name-en { font-size: 40px; }
  .evo-phone-wrap { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); justify-items: center; }
  .evo-phone { grid-column: 1 / -1; grid-row: 1; }
  .evo-tag-before, .evo-tag-after { justify-self: center; font-size: 24px; }
  .swatches:has(> li:nth-child(6)) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 420px) {
  .tz-picks { gap: 8px; }
  .tz-pick { padding: 10px 4px 12px; font-size: 12.5px; }
  .tz-pick strong { font-size: 14px; }
}

/* How I did it: four steps under the brief, in her words, for a recruiter's first read. */
.how-did { margin-top: clamp(28px, 4vw, 44px); padding-top: clamp(22px, 3vw, 32px); border-top: 2px dashed #19171c40; }
.how-did-title { font-size: 28px; color: var(--note); }
.how-did-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 14px 0 0; padding: 0; list-style: none; counter-reset: none; }
.how-did-steps li { position: relative; padding: 18px 18px 20px; border: 2px solid var(--ink); border-radius: 20px; background: #fff; box-shadow: 4px 4px 0 var(--ink); }
.how-num { display: grid; place-items: center; width: 34px; height: 34px; border: 2px solid var(--ink); border-radius: 50%; background: var(--yellow); font: 700 15px/1 var(--font); color: var(--ink); }
.how-did-steps h3 { margin-top: 12px; font: 600 18px/1.25 var(--font-display); letter-spacing: -.01em; color: var(--ink); }
.how-did-steps p { margin-top: 6px; font-size: 15px; line-height: 1.5; color: var(--text); }
.glance-link { color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
@media (max-width: 1000px) { .how-did-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .how-did-steps { grid-template-columns: minmax(0, 1fr); } }

/* ------------------------------------------ She Ride research: apps, persona, structure */

.board-compete { --frame: #fff; }
.compete { display: grid; gap: clamp(24px, 3vw, 36px); }
.rivals { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.rival { padding: 22px 22px 24px; border: 2px solid var(--ink); border-radius: 22px; background: #fff; box-shadow: 5px 5px 0 var(--ink); }
.rival-name { font: 700 34px/1 var(--font); font-stretch: 78%; letter-spacing: -.005em; color: var(--ink); }
.rival-kind { margin-top: 6px; font-size: 14px; color: var(--muted); }
.rival-list { display: grid; gap: 10px; margin: 16px 0 0; padding: 0; list-style: none; }
.rival-list li { position: relative; padding-left: 18px; font-size: 15.5px; line-height: 1.5; color: var(--text); }
.rival-list li::before { content: ''; position: absolute; left: 0; top: .56em; width: 8px; height: 8px; border-radius: 50%; background: var(--c-sea); }
.rival-list strong { color: var(--ink); }
.learns { margin: 0; padding: 0; list-style: none; }
.learn { display: grid; grid-template-columns: 44px minmax(0, 1.1fr) minmax(0, 1fr); gap: 10px 24px; align-items: start; padding: 20px 0; border-top: 2px solid var(--ink); }
.learn:last-child { border-bottom: 2px solid var(--ink); }
.learn-num { display: grid; place-items: center; width: 38px; height: 38px; border: 2px solid var(--ink); border-radius: 50%; background: var(--yellow); font: 700 16px/1 var(--font); color: var(--ink); }
.learn-what h3 { font: 600 clamp(19px, 1.6vw, 22px)/1.25 var(--font-display); letter-spacing: -.01em; color: var(--ink); }
.learn-what p { margin-top: 6px; font-size: 16px; line-height: 1.55; color: var(--text); }
.learn-so { padding: 12px 16px 14px; border-radius: 14px; background: var(--c-base); font-size: 16px; line-height: 1.5; color: var(--ink); }
.learn-so-label { margin-right: 2px; font-weight: 700; color: var(--violet-strong); }
.compete-note, .persona-note { font-size: 13.5px; color: var(--muted); }

.board-persona { --frame: #fff; }
.persona { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 24px clamp(24px, 3vw, 40px); align-items: start; }
.persona-card { padding: 26px 24px; border: 2px solid var(--ink); border-radius: 24px; background: var(--c-base); box-shadow: 6px 6px 0 var(--ink); text-align: center; }
.persona-face { display: block; width: 136px; height: 136px; margin: 0 auto; overflow: hidden; border: 2px solid var(--ink); border-radius: 50%; background: #fff; }
.persona-face svg { display: block; width: 100%; height: 100%; }
.persona-name { margin-top: 14px; font: 700 44px/1 var(--font); font-stretch: 78%; color: var(--ink); }
.persona-meta { margin-top: 10px; font-size: 15px; line-height: 1.5; color: var(--text); }
.persona-tag { display: inline-block; margin-top: 16px; padding: 6px 12px; border: 1.5px dashed var(--ink); border-radius: 999px; background: #fff; font: 600 13px/1 var(--font); color: var(--ink); }
.persona-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.persona-cols > div { padding: 20px 20px 22px; border: 2px solid var(--ink); border-radius: 20px; background: #fff; }
.persona-cols > div:last-child { background: var(--yellow); box-shadow: 4px 4px 0 var(--ink); }
.persona-cols h3 { font: 600 19px/1.2 var(--font-display); color: var(--ink); }
.persona-cols ul { display: grid; gap: 8px; margin: 12px 0 0; padding: 0 0 0 18px; font-size: 15.5px; line-height: 1.5; color: var(--text); }
.persona-cols > div:last-child ul { color: var(--ink); }
.persona-note { grid-column: 1 / -1; }

.board-ia { --frame: var(--c-base); }
.ia { display: grid; gap: 18px; }
.ia-root { position: relative; justify-self: center; padding: 11px 24px; border: 2px solid var(--ink); border-radius: 999px; background: var(--ink); color: #fff; font: 700 18px/1 var(--font); }
.ia-root::after { content: ''; position: absolute; left: 50%; top: 100%; width: 2px; height: 20px; background: var(--ink); }
.ia-steps { position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin: -18px 0 0; padding: 38px 0 0; list-style: none; }
.ia-steps::before { content: ''; position: absolute; left: 10%; right: 10%; top: 20px; height: 2px; background: var(--ink); }
.ia-step { position: relative; display: grid; align-content: start; gap: 12px; }
.ia-step::before { content: ''; position: absolute; left: 50%; top: -18px; width: 2px; height: 18px; background: var(--ink); }
.ia-node { position: relative; display: flex; align-items: center; gap: 8px; min-height: 52px; padding: 12px 14px; border: 2px solid var(--ink); border-radius: 16px; background: var(--yellow); box-shadow: 3px 3px 0 var(--ink); font: 600 16px/1.2 var(--font); color: var(--ink); }
.ia-num { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 12.5px; }
.ia-screen { padding: 3px 8px 4px; border: 1.5px solid var(--ink); border-radius: 999px; background: #fff; font: 600 11.5px/1 var(--font); color: var(--ink); }
.ia-node .ia-screen { position: absolute; top: -11px; right: 10px; rotate: 3deg; }
.ia-items { display: grid; gap: 8px; margin: 0 0 0 12px; padding: 0 0 0 12px; border-left: 2px dashed #19171c4d; list-style: none; }
.ia-items li { padding: 8px 12px; border: 1.5px solid #19171c26; border-radius: 12px; background: #fff; font-size: 14px; line-height: 1.35; color: var(--text); }
.ia-layer, .ia-side { padding: 16px 20px 18px; border: 2px solid var(--ink); border-radius: 18px; }
.ia-layer { background: #1c2033; color: #fff; box-shadow: 4px 4px 0 var(--ink); }
.ia-side { border-style: dashed; background: #fff; }
.ia-layer-name { margin-bottom: 10px; font: 600 15px/1.2 var(--font); color: #ffd98a; }
.ia-side .ia-layer-name { color: var(--ink); }
.ia-layer ul, .ia-side ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.ia-layer li, .ia-side li { padding: 7px 12px 8px; border-radius: 999px; font-size: 14px; line-height: 1.3; }
.ia-layer li { background: #ffffff1f; color: #fff; }
.ia-layer li strong { color: #ffd98a; }
.ia-side li { background: var(--c-base); color: var(--ink); }
.ia-key { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--text); }

@media (max-width: 1000px) {
  .rivals { grid-template-columns: minmax(0, 1fr); }
  .persona { grid-template-columns: minmax(0, 1fr); }
  .persona-card { max-width: 420px; }
  .ia-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 14px; margin-top: 0; padding-top: 0; }
  .ia-steps::before, .ia-step::before, .ia-root::after { display: none; }
}
@media (max-width: 760px) {
  .learn { grid-template-columns: 38px minmax(0, 1fr); }
  .learn-so { grid-column: 2; }
  .persona-cols { grid-template-columns: minmax(0, 1fr); }
  .ia-steps { grid-template-columns: minmax(0, 1fr); }
  .rival-name { font-size: 30px; }
}

/* -------------------------------------------- Leave management, mocked up (see leave_app.py) */

.board-before { --frame: #fff; }
.before { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 32px clamp(28px, 4vw, 56px); align-items: start; }
.before-shot { margin: 0; overflow: hidden; border: 2px solid var(--ink); border-radius: 16px; background: #fff; box-shadow: 8px 8px 0 var(--ink); }
.before-shot .browser-bar { display: flex; gap: 7px; padding: 10px 14px; border-bottom: 2px solid var(--ink); background: #ececec; }
.before-shot .browser-bar i { width: 10px; height: 10px; border-radius: 50%; background: #c9c9c9; }
.before-shot .lm-frame { filter: grayscale(.35); }
.before-shot figcaption { display: flex; flex-wrap: wrap; gap: 6px 22px; padding: 12px 16px 14px; border-top: 2px dashed #19171c33; background: #fffdf6; }
.before-shot figcaption .hand { font-size: 22px; color: var(--note); }
.before-hand { font-size: 28px; color: var(--note); }
.counts { display: grid; gap: 0; margin: 10px 0 0; padding: 0; list-style: none; }
.counts li { padding: 16px 0; border-top: 2px solid var(--ink); }
.counts li:last-child { border-bottom: 2px solid var(--ink); }
.cnt-n { font: 700 clamp(36px, 3.4vw, 50px)/.95 var(--font); font-stretch: 78%; letter-spacing: -.01em; color: var(--ink); }
.cnt-l { margin-top: 4px; font: 600 15px/1.3 var(--font); color: var(--violet-strong); }
.cnt-d { margin-top: 6px; font-size: 15.5px; line-height: 1.5; color: var(--text); }
.counts-note { margin-top: 14px; font-size: 13.5px; line-height: 1.5; color: var(--muted); }

.board-launch { --frame: #1c1e21; --note: #d7c8f5; color: #fff; }
.board-launch .board-title { color: #fff; }
.board-launch .board-lead { color: #d9dade; }
.launch { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 28px clamp(28px, 4vw, 56px); align-items: center; }
.launch-shot { overflow: hidden; border: 2px solid #ffffff33; border-radius: 18px; }
.launch-hand { font-size: 28px; color: var(--note); }
.quote { margin: 16px 0 0; padding: 22px 24px; border: 2px solid var(--ink); border-radius: 20px; background: #fff; color: var(--ink); box-shadow: 6px 6px 0 var(--yellow); }
.quote blockquote { margin: 0; }
.quote p { font: 500 clamp(18px, 1.6vw, 21px)/1.45 var(--font); letter-spacing: -.005em; }
.quote figcaption { margin-top: 12px; font-size: 14px; font-weight: 600; color: var(--muted); }

.spots-mock .spots-image { overflow: hidden; border: 2px solid var(--ink); background: #f6f7f9; box-shadow: 8px 8px 0 var(--ink); }
.board-year { --frame: #fff; }
.year-shot { overflow: hidden; border: 2px solid var(--ink); border-radius: 18px; box-shadow: 8px 8px 0 var(--ink); }

/* Fix a missed swipe */
.board-noswipe { --frame: var(--c-base); }
.ns { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 40px clamp(40px, 6vw, 96px); align-items: center; }
.ns-app { padding: 20px; border: 2px solid var(--ink); border-radius: 26px; background: #fff; box-shadow: 10px 10px 0 var(--ink); font-family: 'Plus Jakarta Sans', var(--font); color: #1d1d1f; }
.ns-banner { display: flex; align-items: flex-start; gap: 10px; padding: 14px 16px; border: 1px solid #f2c9a8; border-radius: 14px; background: #fff7ef; font-size: 14.5px; line-height: 1.45; transition: background-color .3s, border-color .3s; }
.ns-banner svg { flex: none; width: 20px; height: 20px; margin-top: 1px; color: #c2410c; }
.ns-banner.is-clear { border-color: #a7dcbc; background: #ecf8f0; }
.ns-banner.is-clear svg { color: #17633a; }
.ns-form { display: grid; gap: 14px; margin-top: 18px; }
.ns-field { display: grid; gap: 6px; font-size: 13px; font-weight: 600; color: #4a4e55; }
.ns-field[hidden] { display: none; }
.ns-field select { width: 100%; height: 46px; padding: 0 40px 0 14px; border: 1.5px solid #c9ccd2; border-radius: 12px; appearance: none; -webkit-appearance: none; color: #1d1d1f; font: 600 15px/1 'Plus Jakarta Sans', var(--font);
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231d1d1f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7 9.5 5 5 5-5'/%3E%3C/svg%3E") right 12px center / 18px no-repeat; }
.ns-field select:focus-visible { outline: 3px solid var(--violet); outline-offset: 2px; }
.ns-hint { font-size: 13.5px; color: #5c6066; }
.ns-hint:empty { display: none; }
.ns-submit { height: 48px; border: 0; border-radius: 999px; background: #1d1d1f; color: #fff; font: 700 15px/1 'Plus Jakarta Sans', var(--font); cursor: pointer; }
.ns-submit:disabled { opacity: .35; cursor: not-allowed; }
.ns-submit:focus-visible, .ns-reset:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; }
.ns-status { min-height: 1.4em; font-size: 14px; font-weight: 600; text-align: center; color: #17633a; }
.ns-reset { display: inline-flex; align-items: center; justify-self: center; gap: 6px; padding: 6px 12px; border: 1.5px solid #1d1d1f; border-radius: 999px; background: #fff; font: 600 13px/1 var(--font); cursor: pointer; }
.ns-reset[hidden] { display: none; }
.ns-reset .icon { width: 14px; height: 14px; }

/* Approve from the calendar */
.board-tcal { --frame: #fff; }
.tcw { position: relative; font-family: 'Plus Jakarta Sans', var(--font); }
.tcw-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; margin-bottom: 14px; }
.tcw-title { font: 700 18px/1.2 var(--font); color: var(--ink); }
.tcw-title span { margin-left: 10px; font-weight: 500; font-size: 15px; color: var(--muted); }
.tcw .md-legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 13px; color: var(--text); }
.tcw .md-legend i { display: inline-block; width: 10px; height: 10px; margin-right: 6px; border-radius: 50%; vertical-align: 0; }
.tcw .md-legend i.is-approved { background: #1f8f4e; } .tcw .md-legend i.is-pending { background: #d99a2b; } .tcw .md-legend i.is-rejected { background: #c4372b; } .tcw .md-legend i.flag { box-shadow: inset 0 0 0 2px #c4372b; }
.tcw-scroll { overflow-x: auto; padding: 14px 16px 6px; border: 2px solid var(--ink); border-radius: 18px; background: #fff; box-shadow: 8px 8px 0 var(--ink); scrollbar-width: thin; }
.tcw-scroll:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; }
.tcw .tc { min-width: 760px; }
.tcw .tc-row { min-height: 52px; }
/* While the week scrolls sideways, the names stay put. */
.tcw .tc-who, .tcw .tc-days > span:first-child { position: sticky; left: 0; z-index: 2; background: #fff; }
.tcw .tc-who { align-self: stretch; padding-right: 8px; }
.tcw button.tc-bar { height: 32px; cursor: pointer; transition: box-shadow .2s, transform .2s; }
.tcw button.tc-bar:hover { transform: translateY(-1px); box-shadow: inset 3px 0 #d99a2b, 0 0 0 2px #d99a2b; }
.tcw button.tc-bar:focus-visible { outline: 3px solid var(--violet); outline-offset: 2px; }
.tcw button.tc-bar[aria-expanded='true'] { box-shadow: inset 3px 0 #d99a2b, 0 0 0 2px var(--ink); }
.tcw .tc-bar.just-changed { animation: pop .45s cubic-bezier(.3, 1.6, .5, 1); }
.tc-pop {
  position: absolute; z-index: 5; width: 260px; padding: 16px 16px 14px; border: 2px solid var(--ink); border-radius: 18px; background: #fff; box-shadow: 6px 6px 0 var(--ink);
}
.tc-pop[hidden] { display: none; }
.tc-pop-who { padding-right: 26px; font: 700 16px/1.3 var(--font); color: var(--ink); }
.tc-pop-what { margin-top: 4px; font-size: 14px; line-height: 1.45; color: var(--text); }
.tc-pop-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.tc-pop-x { position: absolute; right: 8px; top: 6px; width: 32px; height: 32px; border: 0; background: none; font-size: 22px; line-height: 1; color: var(--muted); cursor: pointer; }
.tc-pop-x:focus-visible { outline: 3px solid var(--violet); outline-offset: 0; border-radius: 8px; }
.tcw-status { margin-top: 14px; }
.tcw-hand { margin-left: auto; font-size: 26px; line-height: 1; color: var(--note); }

@media (max-width: 1000px) {
  .before, .launch, .ns { grid-template-columns: minmax(0, 1fr); }
  .ns-app { max-width: 460px; }
}
@media (max-width: 760px) {
  .before-shot figcaption .hand { font-size: 19px; }
  .quote { padding: 18px; box-shadow: 4px 4px 0 var(--yellow); }
  .ns-app { padding: 16px; box-shadow: 6px 6px 0 var(--ink); }
  .tcw-scroll { padding: 10px 10px 4px; box-shadow: 5px 5px 0 var(--ink); }
  .tcw .tc { min-width: 600px; --who: 118px; }
  .tcw .tc-who { gap: 7px; font-size: 12px; line-height: 1.2; }
  .tcw .tc-who .lm-av { width: 24px; height: 24px; }
  .tcw-hand { margin-left: 0; }
}
