/* Tabi no Chan marketing site
   App shell: one screen at a time, the top pill switches views instead of scrolling.
   Colour: terracotta #A8432B from the seal logo, on white with warm-grey tints.
   Type: Archivo display, Manrope body, IBM Plex Mono meta. Light only. */

:root {
  --page:  #FAF7F4;
  --card:  #FFFFFF;
  --tint:  #F3EFEB;
  --tint2: #F7E9E4;
  --ink:   #17120F;
  --body:  #574E49;
  --muted: #6F665F;
  --line:  #E6E1DD;

  --acc:      #A8432B;
  --acc-deep: #8E351F;
  --acc-soft: #F2DED7;

  --r: 14px;
  --r-inner: 9px;
  --ease: cubic-bezier(.2, 0, 0, 1);
  --shadow-border:
    0 0 0 1px rgba(23, 18, 15, .06),
    0 1px 2px -1px rgba(23, 18, 15, .08),
    0 8px 22px -18px rgba(87, 78, 73, .34);
  --shadow-border-hover:
    0 0 0 1px rgba(168, 67, 43, .22),
    0 2px 4px -2px rgba(23, 18, 15, .10),
    0 12px 26px -18px rgba(87, 78, 73, .40);
  --font-display: "Archivo", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, -apple-system, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
}

*, *::before, *::after { box-sizing: border-box; }

/* Ground: a warm wash plus a fine grain. Both are fixed and pointer-events:none,
   so they never repaint while the screen scrolls. */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(70ch 60ch at 88% -10%, rgba(168, 67, 43, .10), transparent 60%),
    radial-gradient(60ch 50ch at -8% 108%, rgba(168, 67, 43, .06), transparent 62%),
    linear-gradient(180deg, #FDFBF9 0%, var(--page) 46%, #F6F1EC 100%);
}
body::after {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  opacity: .32; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.36'/%3E%3C/svg%3E");
}

body {
  margin: 0; background: var(--page); color: var(--body);
  font: 16px/1.55 var(--font-body);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  text-wrap: pretty;
}

.skip-link {
  position: fixed; left: 16px; top: 12px; z-index: 100;
  transform: translateY(-160%); padding: 10px 14px;
  border-radius: 6px; background: var(--ink); color: #fff;
  font-weight: 600; text-decoration: none;
  transition: transform .18s var(--ease);
}
.skip-link:focus { transform: translateY(0); }

h1, h2, h3 { font-family: var(--font-display); color: var(--ink); margin: 0; line-height: 1.02; letter-spacing: -.04em; text-wrap: balance; }
h1 { font-weight: 800; font-size: clamp(2.25rem, 1rem + 3.2vw, 4rem); letter-spacing: -.055em; }
h2 { font-weight: 800; font-size: clamp(1.625rem, 1.1rem + 1.6vw, 2.5rem); }
h3 { font-weight: 600; font-size: 1.0625rem; letter-spacing: -.02em; line-height: 1.25; }
p { margin: 0; }
img { max-width: 100%; height: auto; display: block; }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 3px; border-radius: 4px; }

.mono-label { font-family: var(--font-mono); font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--acc); }

/* ---------- app shell: header, one screen, footer ---------- */

html, body { height: 100%; overflow: hidden; }
.app { height: 100dvh; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; grid-template-columns: minmax(0, 1fr); }

.topbar { position: relative; z-index: 30; padding: 16px clamp(14px, 2.4vw, 28px) 4px; }

/* Floating pill: sits over the ground rather than on a full-width band. */
.pillnav {
  display: flex; align-items: center; gap: 4px;
  width: fit-content; max-width: 100%; margin-inline: auto;
  padding: 5px 6px;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid var(--line); border-radius: 999px;
  box-shadow: 0 1px 2px rgba(23, 18, 15, .04), 0 14px 34px -18px rgba(23, 18, 15, .30);
}

.mark { display: flex; align-items: center; gap: 7px; min-height: 40px; padding: 6px 12px; border-radius: 999px; text-decoration: none; color: var(--ink); transition: background-color .18s var(--ease); }
.mark:hover { background: var(--tint); }
.mark img { width: 24px; height: 24px; border-radius: 50%; }
.mark span { font-family: var(--font-display); font-weight: 800; font-size: .9375rem; letter-spacing: -.035em; white-space: nowrap; }
.mark-dot { color: var(--acc); font-family: var(--font-display); font-weight: 800; }

.divider { width: 1px; height: 16px; background: var(--line); flex: none; }

.rail { position: relative; display: flex; align-items: center; gap: 2px; min-width: 0; }
.rl {
  position: relative; z-index: 1;
  display: inline-flex; align-items: center;
  border: 0; background: transparent; cursor: pointer; text-decoration: none;
  font: 500 .875rem var(--font-body); color: var(--muted);
  min-height: 40px; padding: 8px 13px; border-radius: 999px; white-space: nowrap;
  transition: color .18s var(--ease), background-color .18s var(--ease);
}
.rl:hover { color: var(--ink); background: var(--tint); }
.rl.is-active { color: #fff; }
.rl.is-active:hover { background: transparent; }
.rail-ink {
  position: absolute; left: 0; top: 0; height: 100%; width: 0;
  background: var(--acc); border-radius: 999px; z-index: 0;
  transition: transform .34s var(--ease), width .34s var(--ease);
}
@media (prefers-reduced-motion: reduce) { .rail-ink { transition: none; } }

.lang { display: inline-flex; align-items: center; gap: 3px; min-height: 40px; padding: 0 11px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font-family: var(--font-mono); font-size: .6875rem; cursor: pointer; transition: background-color .18s var(--ease), scale .12s var(--ease); }
.lang:hover { background: var(--tint); }
.lang:active { scale: .96; }
.lang-on { color: var(--ink); }
.lang-sep { opacity: .4; }
.nav-toggle { display: none; width: 40px; height: 40px; align-items: center; justify-content: center; border: 0; border-radius: 999px; background: transparent; color: var(--ink); font-size: 1.05rem; cursor: pointer; transition: background-color .18s var(--ease), scale .12s var(--ease); }
.nav-toggle:hover { background: var(--tint); }
.nav-toggle:active { scale: .96; }

/* Quick contact is always one click away, whichever view is open. */
.quick { position: fixed; right: clamp(16px, 2.5vw, 30px); bottom: clamp(16px, 2.5vw, 30px); z-index: 20; display: flex; flex-direction: column; align-items: flex-end; }
.quick[hidden] { display: none; }
.dock {
  display: inline-flex; align-items: center; gap: 9px;
  min-height: 50px; padding: 0 22px;
  border: 0; border-radius: 999px;
  background: var(--acc); color: #fff;
  font: 600 .9375rem var(--font-body); cursor: pointer; text-decoration: none;
  box-shadow: 0 2px 6px rgba(168, 67, 43, .24), 0 16px 36px -14px rgba(168, 67, 43, .55);
  transition: background-color .18s var(--ease), transform .2s var(--ease), scale .12s var(--ease);
}
.dock:hover, .dock[aria-expanded="true"] { background: var(--acc-deep); }
.dock:hover { transform: translateY(-2px); }
.dock:active { scale: .96; }
.dock i { font-size: 1.2rem; }
/* Book a demo already lists every channel */
.screen:has([data-panel="contact"].is-active) ~ .quick { opacity: 0; pointer-events: none; transform: translateY(8px); }

.quick-panel { width: min(320px, calc(100vw - 32px)); margin-bottom: 10px; padding: 16px; border-radius: var(--r); background: var(--card); box-shadow: 0 0 0 1px rgba(23, 18, 15, .06), 0 24px 48px -20px rgba(87, 78, 73, .45); transform-origin: bottom right; animation: quick-in .22s var(--ease) both; }
.quick-panel[hidden] { display: none; }
.quick-panel:focus { outline: none; }
@keyframes quick-in { from { opacity: 0; transform: translateY(6px) scale(.97); } to { opacity: 1; transform: none; } }
.quick-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.quick-title { font-family: var(--font-display); font-weight: 800; font-size: 1.0625rem; letter-spacing: -.02em; color: var(--ink); }
.quick-close { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; margin: -6px -6px -6px 0; border: 0; border-radius: 50%; background: transparent; color: var(--muted); cursor: pointer; transition: background-color .18s var(--ease), color .18s var(--ease); }
.quick-close:hover { background: var(--tint); color: var(--ink); }
.quick-sub { margin-top: 4px; font-size: .8125rem; color: var(--muted); }
.quick-list { display: grid; gap: 4px; margin-top: 12px; }
.quick-item { display: grid; grid-template-columns: 38px minmax(0, 1fr); column-gap: 11px; align-items: center; min-height: 52px; padding: 7px 10px 7px 7px; border-radius: var(--r-inner); color: var(--ink); text-decoration: none; transition: background-color .18s var(--ease), scale .12s var(--ease); }
.quick-item:hover { background: var(--tint2); }
.quick-item:active { scale: .98; }
.quick-item i { grid-row: 1 / 3; display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; background: var(--acc-soft); color: var(--acc); font-size: 1.15rem; }
.quick-item:first-child i { background: var(--acc); color: #fff; }
.quick-item strong { font-size: .9375rem; font-weight: 600; line-height: 1.2; }
.quick-item span { font-size: .8125rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.quick-demo { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 10px; padding: 11px 12px; border-top: 1px solid var(--line); color: var(--acc); font-size: .875rem; font-weight: 600; text-decoration: none; border-radius: 0 0 var(--r-inner) var(--r-inner); transition: color .18s var(--ease), background-color .18s var(--ease); }
.quick-demo:hover { color: var(--acc-deep); background: var(--tint); }
@media (prefers-reduced-motion: reduce) { .quick-panel { animation: none; } }

.botbar { display: flex; align-items: center; justify-content: center; gap: 14px; padding: 9px clamp(18px, 3vw, 34px); font-size: .75rem; color: var(--muted); text-align: center; }
.botbar-mid { display: flex; align-items: center; justify-content: center; gap: 12px; }
.botbar .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--line); }

/* ---------- screen + views ---------- */

.screen { position: relative; overflow-y: auto; overflow-x: hidden; display: grid; grid-template-columns: minmax(0, 1fr); }
.view {
  display: none;
  padding: clamp(18px, 2.6vw, 40px) clamp(18px, 3vw, 34px);
  width: 100%; max-width: 1320px; margin-inline: auto;
}
.view.is-active { display: block; width: 100%; align-self: safe center; }
.view.is-active > * { animation: enter .46s var(--ease) both; }
.view.is-active > *:nth-child(2) { animation-delay: .06s; }
.view.is-active > *:nth-child(3) { animation-delay: .12s; }
[data-panel="overview"].is-active > .ov { animation: none; }
[data-panel="overview"].is-active .ov-copy { animation: enter .46s var(--ease) both; }
[data-panel="overview"].is-active .stage { animation: enter .5s .06s var(--ease) both; }
@keyframes enter { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .view.is-active > *, [data-panel="overview"].is-active .ov-copy, [data-panel="overview"].is-active .stage { animation: none; }
}

.vhead { max-width: 60ch; margin-bottom: clamp(14px, 1.8vw, 26px); }
.vsub { margin-top: 12px; color: var(--muted); font-size: 1.0625rem; }

/* Desktop views are a fixed presentation frame. Mobile keeps natural scrolling
   so the same content remains readable at narrow widths. */
@media (min-width: 901px) {
  .screen { overflow: hidden; }
  .view { height: 100%; min-height: 0; overflow: hidden; }
  .view.is-active { align-self: stretch; }
}

/* ---------- buttons ---------- */

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 22px; border: 1px solid transparent; border-radius: 999px; font: 600 .9375rem var(--font-body); cursor: pointer; text-decoration: none; white-space: nowrap; transition: background-color .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease), scale .12s var(--ease); }
.btn-sm { min-height: 38px; padding: 0 17px; font-size: .875rem; }
.btn-lg { min-height: 52px; padding: 0 26px; font-size: 1rem; }
.btn:active { scale: .96; }
.btn-primary { background: var(--acc); color: #fff; }
.btn-primary:hover { background: var(--acc-deep); }
.btn-line { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-line:hover { background: var(--ink); color: #fff; }
.btn-line i { font-size: 1rem; }
.btn-quiet { background: transparent; color: var(--acc); border-color: transparent; padding-inline: 12px; }
.btn-quiet:hover { background: var(--acc-soft); color: var(--acc-deep); }
.btn-with-icon { padding-right: 10px; }
.btn-arrow { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; margin-left: 2px; border-radius: 50%; background: rgba(255, 255, 255, .17); transition: transform .22s var(--ease), background-color .22s var(--ease); }
.btn-with-icon:hover .btn-arrow { transform: translate(2px, -1px); background: rgba(255, 255, 255, .24); }
.btn-arrow i { font-size: .95rem; }

/* ---------- overview ---------- */

/* The overview is one hero moment plus one proof strip. The screenshot is sized
   from the viewport height, so the strip never falls under the footer. */
:root { --hero-reserve: 350px; --shot-ratio: 1.9484; }
[data-panel="overview"].is-active { display: flex; flex-direction: column; justify-content: center; }
.ov { flex: 0 1 auto; min-height: 0; display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.ov h1 { margin: 14px 0 0; font-size: clamp(2rem, min(.9rem + 2.3vw, 5.8svh), 3.75rem); line-height: 1.04; text-wrap: balance; }
.ov h1 > span, .ov h1 > em { display: block; }
.ov h1 em { font-style: normal; color: var(--acc); }
.ov .sub { margin-top: clamp(12px, 2.2svh, 20px); max-width: 44ch; font-size: 1.0625rem; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(18px, 3.4svh, 30px); }

.stage { justify-self: end; width: min(100%, calc((100svh - var(--hero-reserve)) * var(--shot-ratio) + 12px)); margin: 0; padding: 6px; overflow: hidden; border-radius: calc(var(--r) + 6px); background: rgba(255, 255, 255, .76); box-shadow: var(--shadow-border); }
.stage-media { width: 100%; aspect-ratio: 1512 / 776; overflow: hidden; border-radius: var(--r); background: var(--tint); }
.stage img { width: 100%; height: 100%; object-fit: cover; outline: 1px solid rgba(0, 0, 0, .1); outline-offset: -1px; }
.stage-caption-row { display: flex; align-items: center; gap: 10px; padding: 11px 12px 8px; color: var(--body); }
.stage-badge { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; flex: none; border-radius: var(--r-inner); background: var(--acc-soft); color: var(--acc); font-size: 1.05rem; }
.stage-caption { font-size: .8125rem; line-height: 1.45; }
.hero-gallery-media { position: relative; isolation: isolate; background: #EAE2DC; }
.hero-slides { position: absolute; inset: 0; }
.hero-slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .42s var(--ease), visibility .42s var(--ease); }
.hero-slide.is-active { opacity: 1; visibility: visible; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; }
.hero-slide img.is-contain { object-fit: contain; background: #fff; }
.hero-control { position: absolute; z-index: 3; top: 12px; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 1px solid rgba(255, 255, 255, .7); border-radius: 50%; background: rgba(23, 18, 15, .58); color: #fff; font-size: 1rem; cursor: pointer; backdrop-filter: blur(10px); transition: background-color .18s var(--ease), scale .12s var(--ease); }
.hero-control:hover { background: rgba(168, 67, 43, .92); }
.hero-control:active { scale: .96; }
.hero-control-prev { right: 60px; }
.hero-control-next { right: 12px; }
.hero-gallery-controls { position: absolute; z-index: 3; right: 12px; bottom: 12px; left: 12px; display: flex; align-items: center; gap: 10px; }
.hero-dots { display: flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 11px; border: 1px solid rgba(255, 255, 255, .68); border-radius: 999px; background: rgba(23, 18, 15, .5); backdrop-filter: blur(10px); }
.hero-dot { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .5); cursor: pointer; transition: background-color .18s var(--ease), scale .18s var(--ease); }
.hero-dot:hover { scale: 1.2; background: #fff; }
.hero-dot.is-active { width: 22px; border-radius: 999px; background: #fff; }
.hero-toggle { display: inline-flex; align-items: center; gap: 7px; min-height: 36px; margin-left: auto; padding: 0 13px; border: 1px solid rgba(255, 255, 255, .68); border-radius: 999px; background: rgba(23, 18, 15, .5); color: #fff; font: 600 .6875rem var(--font-body); cursor: pointer; backdrop-filter: blur(10px); transition: background-color .18s var(--ease), scale .12s var(--ease); }
.hero-toggle:hover { background: rgba(168, 67, 43, .92); }
.hero-toggle:active { scale: .96; }
.hero-count { margin-left: auto; color: var(--muted); font-family: var(--font-mono); font-size: .6875rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.is-zoomable { cursor: zoom-in; }
@media (prefers-reduced-motion: reduce) {
  .hero-slide { transition: none; }
}

/* Numbers sit under the hero as one quiet strip: value first, label second. */
.proof { flex: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: clamp(16px, 3svh, 32px) 0 0; padding-top: clamp(12px, 2svh, 18px); border-top: 1px solid var(--line); }
.proof-stat { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 3px; min-width: 0; padding: 0 clamp(14px, 2vw, 26px); border-left: 1px solid var(--line); }
.proof-stat:first-child { padding-left: 0; border-left: 0; }
.proof-stat dd { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: clamp(1.375rem, 1rem + .9vw, 2rem); line-height: 1; letter-spacing: -.04em; color: var(--ink); font-variant-numeric: tabular-nums; }
.proof-stat dt { font-size: .8125rem; line-height: 1.35; color: var(--muted); }

/* ---------- platform: capabilities bento ---------- */

/* Text-first by design: this view says what the system does. The real screens
   live in the "In practice" view, so only small feature crops appear here. */
.platform-view.is-active { display: flex; flex-direction: column; }
.bento { flex: 1 1 auto; min-height: 0; max-height: 620px; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 14px; }
.cap { min-width: 0; min-height: 0; display: flex; flex-direction: column; gap: 14px; overflow: hidden; padding: clamp(16px, 1.6vw, 22px); border-radius: var(--r); background: var(--card); box-shadow: var(--shadow-border); transition: box-shadow .2s var(--ease), transform .2s var(--ease); }
.cap:hover { box-shadow: var(--shadow-border-hover); transform: translateY(-2px); }
.cap-intake { grid-column: 1 / span 5; background: linear-gradient(160deg, var(--acc-soft), var(--tint2) 70%); }
.cap-prep { grid-column: 6 / span 7; }
.cap-track { grid-column: 1 / span 7; }
.cap-report { grid-column: 8 / span 5; }
.cap-copy { display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: 13px; align-items: start; }
.cap-icon { grid-row: 1 / 3; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 11px; background: var(--acc-soft); color: var(--acc); font-size: 1.2rem; }
.cap-intake .cap-icon { background: var(--card); }
.cap h3 { align-self: center; font-size: 1.1875rem; }
.cap-list { grid-column: 2; list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 7px; }
.cap-list li { position: relative; padding-left: 20px; font-size: .875rem; line-height: 1.45; color: var(--body); }
.cap-list li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--acc); font-weight: 700; }
.cap-shot { flex: 0 1 auto; width: 100%; height: auto; min-height: 0; margin-top: auto; object-fit: cover; object-position: left top; border-radius: var(--r-inner); outline: 1px solid rgba(0, 0, 0, .08); outline-offset: -1px; }
.cap-intake .cap-shot { background: #fff; }
.platform-support { flex: none; display: flex; align-items: flex-start; gap: 9px; margin-top: 14px; color: var(--body); font-size: .875rem; }
.platform-support i { flex: none; margin-top: 2px; color: var(--acc); font-size: 1rem; }
@media (prefers-reduced-motion: reduce) { .cap, .cap:hover { transition: none; transform: none; } }

/* ---------- workflow timeline ---------- */

.flow-view.is-active { display: flex; flex-direction: column; justify-content: center; }
.timeline { --tl-gap: clamp(12px, 1.6vw, 24px); --tl-node: 56px; list-style: none; margin: clamp(12px, 3svh, 32px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0 var(--tl-gap); }
.tl-step { position: relative; display: grid; align-content: start; justify-items: start; }
/* connector from this node to the next one */
.tl-step:not(:last-child)::after { content: ""; position: absolute; top: calc(var(--tl-node) / 2 - 1px); left: calc(var(--tl-node) + 8px); right: calc(var(--tl-gap) * -1 + 8px); height: 2px; border-radius: 2px; background: linear-gradient(90deg, rgba(168, 67, 43, .45), var(--line)); }
.tl-node { position: relative; z-index: 1; display: inline-flex; align-items: center; justify-content: center; width: var(--tl-node); height: var(--tl-node); border-radius: 50%; background: var(--card); color: var(--acc); font-size: 1.4rem; box-shadow: var(--shadow-border); transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.tl-step:hover .tl-node { transform: translateY(-2px); box-shadow: var(--shadow-border-hover); }
.tl-step-final .tl-node { background: var(--acc); color: #fff; box-shadow: 0 2px 6px rgba(168, 67, 43, .24), 0 14px 30px -14px rgba(168, 67, 43, .6); }
.tl-status { margin-top: 18px; padding: 3px 9px; border-radius: 999px; background: var(--acc-soft); color: var(--acc-deep); font-size: .75rem; font-weight: 600; white-space: nowrap; }
.tl-step-final .tl-status { background: var(--acc); color: #fff; }
.tl-step h3 { margin-top: 10px; font-size: 1.0625rem; }
.tl-step p { margin-top: 6px; max-width: 26ch; color: var(--muted); font-size: .875rem; line-height: 1.45; }
.view.is-active .tl-step { animation: enter .5s var(--ease) both; }
.view.is-active .tl-step:nth-child(2) { animation-delay: .06s; }
.view.is-active .tl-step:nth-child(3) { animation-delay: .12s; }
.view.is-active .tl-step:nth-child(4) { animation-delay: .18s; }
.view.is-active .tl-step:nth-child(5) { animation-delay: .24s; }
.view.is-active .tl-step:nth-child(6) { animation-delay: .30s; }

.flow-notes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 14px; margin-top: clamp(22px, 5svh, 52px); }
.flow-note { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r); background: rgba(255, 255, 255, .62); color: var(--body); font-size: .875rem; }
.flow-note i { flex: none; margin-top: 1px; color: var(--acc); font-size: 1.15rem; }
.flow-note-loop { border-color: var(--acc-soft); background: var(--tint2); }
@media (prefers-reduced-motion: reduce) {
  .view.is-active .tl-step { animation: none; }
  .tl-node, .tl-step:hover .tl-node { transition: none; transform: none; }
}

/* ---------- in practice: screenshot viewer ---------- */

/* A proper viewer: a vertical index on the left, one large screen on the right.
   On desktop the screen is sized from the space actually left in the view
   (container query units), so the caption always stays visible. */
[data-panel="proof"].is-active { display: flex; flex-direction: column; }
.viewer { flex: 1 1 auto; min-height: 0; display: grid; grid-template-columns: minmax(190px, 240px) minmax(0, 1fr); gap: clamp(16px, 2.2vw, 32px); align-items: start; }
.viewer[hidden] { display: none; }
.shot-tabs { display: flex; flex-direction: column; gap: 2px; max-height: 100%; margin: 0; overflow-y: auto; scrollbar-width: thin; }
/* when the index scrolls on short screens, the fade shows there is more below */
.shot-tabs { padding-bottom: 20px; -webkit-mask-image: linear-gradient(#000 calc(100% - 28px), transparent); mask-image: linear-gradient(#000 calc(100% - 28px), transparent); }
.shot-tabs[hidden] { display: none; }
.shot-tab { flex: none; min-height: 40px; padding: 0 14px; border: 0; border-radius: var(--r-inner); background: transparent; color: var(--muted); font: 500 .875rem var(--font-body); text-align: left; cursor: pointer; transition: color .18s var(--ease), background-color .18s var(--ease), box-shadow .18s var(--ease), scale .12s var(--ease); }
.shot-tab:hover { color: var(--ink); background: var(--tint); }
.shot-tab:active { scale: .98; }
.shot-tab.is-active { color: var(--ink); font-weight: 600; background: var(--card); box-shadow: inset 3px 0 0 var(--acc), var(--shadow-border); }
.viewer-main { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; }
.viewer .frame { width: 100%; aspect-ratio: 1512 / 776; max-height: none; padding: 0; border: 0; border-radius: var(--r); background: #fff; box-shadow: var(--shadow-border); }
.viewer .frame img { object-fit: contain; }
@media (min-width: 901px) {
  .viewer { grid-template-rows: minmax(0, 1fr); align-items: stretch; }
  .viewer-main { container-type: size; }
  .viewer .frame { flex: none; width: min(100cqw, calc((100cqh - 84px) * var(--shot-ratio))); }
}
.evidence-copy { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 16px; row-gap: 4px; padding-top: 14px; }
.evidence-copy h3 { font-size: 1.1875rem; }
.evidence-copy > p { grid-column: 1; color: var(--muted); font-size: .9375rem; }
.evidence-hint { grid-column: 2; grid-row: 1; align-self: center; display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: .8125rem; white-space: nowrap; }
.evidence-hint i { color: var(--acc); font-size: 1rem; }

.frame { margin: 0; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--r); border: 1px solid var(--line); background: var(--tint); display: flex; align-items: center; justify-content: center; }
.frame img { width: 100%; height: 100%; object-fit: cover; }
.frame.is-empty { border-style: dashed; }

/* ---------- full-screen image viewer ---------- */

.lightbox[hidden] { display: none; }
.lightbox {
  position: fixed; inset: 0; z-index: 200; display: grid; place-items: center;
  padding: clamp(16px, 4vw, 56px); background: rgba(23, 18, 15, .84);
  backdrop-filter: blur(14px); isolation: isolate;
}
.lightbox-backdrop { position: absolute; inset: 0; z-index: 0; border: 0; padding: 0; background: transparent; cursor: default; }
.lightbox-panel { position: relative; display: flex; align-items: center; justify-content: center; width: min(1280px, 100%); max-height: 100%; }
.lightbox-figure { position: relative; display: grid; place-items: center; gap: 12px; max-width: 100%; max-height: 100%; margin: 0; }
.lightbox-figure img { display: block; width: auto; max-width: min(100%, 1240px); height: auto; max-height: min(84svh, 900px); object-fit: contain; border: 1px solid rgba(255, 255, 255, .35); border-radius: var(--r); background: #fff; box-shadow: 0 28px 80px rgba(0, 0, 0, .32); cursor: default; }
.lightbox-figure figcaption { max-width: 72ch; color: rgba(255, 255, 255, .86); font-size: .875rem; line-height: 1.45; text-align: center; }
.lightbox-topline { position: absolute; z-index: 2; top: clamp(-48px, -3vw, -28px); right: 0; left: 0; display: flex; align-items: center; justify-content: space-between; pointer-events: none; }
.lightbox-count { color: rgba(255, 255, 255, .74); font-family: var(--font-mono); font-size: .6875rem; letter-spacing: .08em; }
.lightbox-close, .lightbox-control { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border: 1px solid rgba(255, 255, 255, .4); border-radius: 50%; background: rgba(23, 18, 15, .5); color: #fff; cursor: pointer; backdrop-filter: blur(10px); transition: background-color .18s var(--ease), transform .18s var(--ease); }
.lightbox-close { pointer-events: auto; }
.lightbox-close:hover, .lightbox-control:hover { background: var(--acc); transform: translateY(-2px); }
.lightbox-close:active, .lightbox-control:active { transform: scale(.95); }
.lightbox-control { position: absolute; z-index: 2; top: 50%; transform: translateY(-50%); }
.lightbox-control:hover { transform: translateY(-50%) translateY(-2px); }
.lightbox-prev { left: clamp(-58px, -4vw, -26px); }
.lightbox-next { right: clamp(-58px, -4vw, -26px); }
.lightbox-control[hidden] { display: none; }
body.is-lightbox-open { overflow: hidden; }
@media (prefers-reduced-motion: reduce) {
  .lightbox-close, .lightbox-control { transition: none; }
}

/* ---------- contact ---------- */

.ct { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 40%); gap: clamp(26px, 3vw, 52px); align-items: center; }
.channels { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.channel { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 19px; background: var(--card); border-radius: 999px; box-shadow: var(--shadow-border); color: var(--ink); text-decoration: none; font-size: .9375rem; font-weight: 500; transition: box-shadow .18s var(--ease), background-color .18s var(--ease), color .18s var(--ease), scale .12s var(--ease); }
.channel:hover { box-shadow: var(--shadow-border-hover); background: var(--tint2); }
.channel:active { scale: .96; }
.channel i { font-size: 1.125rem; color: var(--acc); }
.channel-value { color: var(--muted); font-weight: 400; font-variant-numeric: tabular-nums; }
.channel:first-child { background: var(--acc); color: #fff; box-shadow: 0 2px 6px rgba(168, 67, 43, .2), 0 14px 28px -16px rgba(168, 67, 43, .52); }
.channel:first-child:hover { background: var(--acc-deep); }
.channel:first-child i, .channel:first-child .channel-value { color: #fff; }
.ct-media { margin: 0; }
.ct-media img { border-radius: var(--r); aspect-ratio: 4 / 3; object-fit: cover; outline: 1px solid rgba(0,0,0,.1); outline-offset: -1px; }
.ct-media figcaption { display: grid; gap: 3px; margin-top: 12px; font-size: .875rem; color: var(--muted); }
.ct-media strong { font-family: var(--font-display); font-weight: 600; color: var(--ink); letter-spacing: -.02em; }
.contact-points { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 9px; }
.contact-points li { position: relative; padding-left: 24px; font-size: .9375rem; color: var(--body); }
.contact-points li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--acc); font-weight: 700; }


/* Laptop heights: tighten rhythm so every view still lands inside one screen. */
@media (max-height: 940px) and (min-width: 901px) {
  .view { padding-block: 18px; }
  .vhead { margin-bottom: 16px; }
  h2 { font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.125rem); }
  .bento { gap: 11px; }
  .cap { gap: 10px; }
}
@media (max-height: 820px) and (min-width: 901px) {
  .vsub { margin-top: 8px; font-size: .9375rem; }
  .cap-list li { font-size: .8125rem; }
  .cap h3 { font-size: 1.0625rem; }
  .tl-status { margin-top: 12px; }
  .flow-notes { margin-top: 20px; }
}

/* Large desktop monitors: give the frame more room instead of floating a small
   layout in the middle of the screen. */
@media (min-width: 1600px) and (min-height: 960px) {
  .view { max-width: 1520px; }
  .ov { grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr); }
  .ov .sub { font-size: 1.1875rem; }
  .cap-list li { font-size: .9375rem; }
  .tl-step p { font-size: .9375rem; }
}

/* Short laptop screens: feature crops would shrink to unreadable slivers, so the
   bento falls back to text only. */
@media (max-height: 700px) and (min-width: 901px) {
  .cap-shot { display: none; }
  .bento { max-height: 420px; }
}

/* ---------- responsive ---------- */

@media (max-width: 1180px) {
  :root { --hero-reserve: 400px; }
  .pillnav { width: 100%; border-radius: 26px; flex-wrap: wrap; row-gap: 6px; padding: 8px 10px; }
  .rail { order: 3; width: 100%; overflow-x: auto; }
  .divider { display: none; }
  .lang { margin-left: auto; }
  .tl-step p { font-size: .8125rem; }
  .ov { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
  .btn-lg { min-height: 48px; padding: 0 20px; font-size: .9375rem; }
  .btn-with-icon { padding-right: 8px; }
  .cap-track { grid-column: 1 / span 6; }
  .cap-report { grid-column: 7 / span 6; }
}

/* Below 900px the shell scrolls naturally, so every view stacks. */
@media (max-width: 900px) {
  .ov { grid-template-columns: 1fr; gap: 24px; }
  .stage { justify-self: stretch; width: 100%; }
  .proof { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 16px; }
  .proof-stat:nth-child(3) { padding-left: 0; border-left: 0; }

  .bento { max-height: none; grid-template-columns: 1fr; grid-template-rows: none; }
  .cap-intake, .cap-prep, .cap-track, .cap-report { grid-column: auto; }
  .cap:hover { transform: none; }

  .timeline { --tl-node: 48px; grid-template-columns: 1fr; gap: 0; }
  .tl-step { grid-template-columns: var(--tl-node) minmax(0, 1fr); column-gap: 16px; padding-bottom: 22px; }
  .tl-step:last-child { padding-bottom: 0; }
  .tl-node { grid-row: 1 / 4; font-size: 1.2rem; }
  .tl-step:not(:last-child)::after { top: calc(var(--tl-node) + 6px); bottom: 6px; left: calc(var(--tl-node) / 2 - 1px); right: auto; width: 2px; height: auto; background: linear-gradient(180deg, rgba(168, 67, 43, .45), var(--line)); }
  .tl-status { grid-column: 2; justify-self: start; margin-top: 4px; }
  .tl-step h3, .tl-step p { grid-column: 2; }
  .tl-step p { max-width: 48ch; }
  .flow-notes { grid-template-columns: 1fr; margin-top: 24px; }

  .viewer { grid-template-columns: 1fr; gap: 12px; }
  .shot-tabs { flex-direction: row; max-height: none; overflow-x: auto; overflow-y: hidden; padding-bottom: 4px; -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); }
  .shot-tab { min-height: 40px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); font-size: .8125rem; white-space: nowrap; }
  .shot-tab.is-active { background: var(--acc); border-color: var(--acc); color: #fff; box-shadow: none; }
  .viewer .frame { width: 100%; }

  .ct { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .topbar { padding-top: 10px; }
  .pillnav { width: 100%; border-radius: 18px; flex-wrap: wrap; padding: 7px 8px; }
  .mark { padding: 5px 8px; }
  .lang { margin-left: auto; }
  .nav-toggle { display: inline-flex; }
  .rail {
    display: none; order: 3; width: 100%; overflow: visible;
    grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px;
    padding-top: 7px; border-top: 1px solid var(--line);
  }
  .rail.is-open { display: grid; }
  .rail-ink { display: none; }
  .rl { min-height: 44px; justify-content: flex-start; padding: 8px 12px; }
  .rl.is-active, .rl.is-active:hover { background: var(--acc); color: #fff; }
}

@media (max-width: 620px) {
  .mark span { display: inline; }
  .botbar { padding-bottom: 76px; }
  .botbar-mid { width: 100%; flex-wrap: wrap; row-gap: 2px; }
  .quick { left: 16px; right: 16px; align-items: stretch; }
  .dock { justify-content: center; }
  .quick-panel { width: 100%; }
  .btn-lg { width: 100%; }
  .actions { flex-direction: column; align-items: stretch; }
  .hero-toggle { width: 36px; padding: 0; justify-content: center; }
  .hero-toggle [data-hero-toggle-label] { display: none; }
  .stage-caption-row { align-items: flex-start; }
  .evidence-copy { grid-template-columns: 1fr; }
  .evidence-hint { grid-column: 1; grid-row: auto; margin-top: 4px; }
  .lightbox { padding: 58px 12px 18px; }
  .lightbox-panel { width: 100%; }
  .lightbox-figure img { max-width: 100%; max-height: 70svh; border-radius: var(--r-inner); }
  .lightbox-topline { top: -48px; right: 0; left: 0; }
  .lightbox-control { top: auto; bottom: -2px; width: 42px; height: 42px; transform: none; }
  .lightbox-control:hover { transform: translateY(-2px); }
  .lightbox-prev { left: 0; }
  .lightbox-next { right: 0; }
  .lightbox-figure figcaption { padding: 0 54px; font-size: .8125rem; }
}
