/* ==========================================================================
   ProofFolio website
   1. Tokens   2. Base   3. Layout   4. Components   5. Sections   6. Privacy page
   ========================================================================== */

/* 1. Tokens ---------------------------------------------------------------- */
:root {
  /* Colour */
  --ink: #0f2a33;
  --ink-soft: #1b3b47;
  --paper: #f3f6f5;
  --surface: #ffffff;
  --sunken: #e8eeec;
  --line: #d0dad7;
  --muted: #455a62;
  --cobalt: #2f45c9;
  --cobalt-deep: #1e2e9b;
  --cobalt-tint: #e5e9fb;

  /* Folder-tab colours: one per feature, reused wherever that feature appears */
  --t-projects: #2f45c9;
  --t-people: #0e7c70;
  --t-timeline: #a66200;
  --t-attach: #b93a73;
  --t-check: #3c7f34;
  --t-report: #6a45b8;
  --t-vault: #0f2a33;

  --alert-bg: #fff4d6;
  --alert-line: #a66200;

  /* Type: system stacks, so nothing is fetched from a third party */
  --font-display: Charter, "Bitstream Charter", "Sitka Text", Cambria, "Iowan Old Style", Georgia, serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --step--1: 0.875rem;
  --step-0: 1rem;
  --step-1: 1.125rem;
  --step-2: clamp(1.3rem, 1.15rem + 0.6vw, 1.55rem);
  --step-3: clamp(1.7rem, 1.4rem + 1.3vw, 2.3rem);
  --step-4: clamp(2rem, 1.5rem + 2.4vw, 3.25rem);
  --step-5: clamp(2.6rem, 1.6rem + 4.6vw, 4.9rem);

  /* Space */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 3rem;
  --sp-8: 4.5rem;

  /* Shape and depth */
  --r-sm: 0.5rem;
  --r-md: 0.875rem;
  --r-lg: 1.5rem;
  --r-pill: 999px;
  --shadow-1: 0 1px 2px rgb(15 42 51 / 0.06), 0 4px 12px rgb(15 42 51 / 0.06);
  --shadow-2: 0 2px 4px rgb(15 42 51 / 0.1), 0 24px 48px rgb(15 42 51 / 0.2);

  --container: 72rem;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --header-h: 4rem;
}

/* 2. Base ------------------------------------------------------------------ */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.012em;
  text-wrap: balance;
}

p {
  margin: 0;
  text-wrap: pretty;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: var(--cobalt-deep);
  text-underline-offset: 0.2em;
}

:focus-visible {
  outline: 3px solid var(--cobalt);
  outline-offset: 3px;
  border-radius: 4px;
}

.on-dark :focus-visible,
.on-cobalt :focus-visible {
  outline-color: #fff;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: var(--sp-4);
  top: -4rem;
  z-index: 100;
  padding: var(--sp-3) var(--sp-4);
  background: var(--ink);
  color: #fff;
  border-radius: var(--r-sm);
  transition: top 0.15s;
}

.skip-link:focus {
  top: var(--sp-3);
}

/* Icons (sprite) */
.i {
  width: 1.25em;
  height: 1.25em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.i--fill {
  fill: currentColor;
  stroke: none;
}

/* 3. Layout ---------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: clamp(3.5rem, 8vw, 6.5rem);
}

.section--tint {
  background: var(--surface);
}

.section-head {
  max-width: 40rem;
  margin-bottom: var(--sp-7);
}

.section-head h2 {
  font-size: var(--step-4);
}

.section-head p {
  margin-top: var(--sp-4);
  font-size: var(--step-1);
  color: var(--muted);
}

.split {
  display: grid;
  gap: var(--sp-7);
  align-items: center;
}

@media (min-width: 60rem) {
  .split {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: var(--sp-8);
  }
}

/* 4. Components ------------------------------------------------------------ */

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-3);
  min-height: 3rem;
  padding: 0.7rem 1.3rem;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  color: inherit;
  background: none;
  border: 1.5px solid transparent;
  border-radius: var(--r-pill);
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.btn--primary {
  color: #fff;
  background: var(--cobalt);
}

.btn--primary:hover {
  background: var(--cobalt-deep);
}

.btn--ghost {
  color: var(--ink);
  border-color: var(--ink);
}

.btn--ghost:hover {
  color: #fff;
  background: var(--ink);
}

.on-cobalt .btn--ghost,
.on-dark .btn--ghost {
  color: #fff;
  border-color: rgb(255 255 255 / 0.7);
}

.on-cobalt .btn--ghost:hover,
.on-dark .btn--ghost:hover {
  color: var(--ink);
  background: #fff;
  border-color: #fff;
}

.btn--play {
  padding: 0.55rem 1.4rem 0.55rem 1.1rem;
  color: #fff;
  background: var(--ink);
  border-color: var(--ink);
  border-radius: var(--r-md);
  text-align: left;
}

.btn--play:hover {
  background: var(--ink-soft);
}

.on-cobalt .btn--play {
  border-color: rgb(255 255 255 / 0.4);
}

.btn--play .i {
  width: 1.75rem;
  height: 1.75rem;
}

.btn--play span {
  display: flex;
  flex-direction: column;
  font-size: 1.1rem;
  line-height: 1.1;
}

.btn--play small {
  font-size: 0.6875rem;
  font-weight: 500;
  opacity: 0.85;
}

.btn--sm {
  min-height: 2.5rem;
  padding: 0.4rem 1rem;
  font-size: var(--step--1);
  color: #fff;
  background: var(--ink);
  border-radius: var(--r-pill);
}

.btn--sm:hover {
  background: var(--ink-soft);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgb(243 246 245 / 0.94);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-2) var(--sp-5);
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
}

.brand img {
  width: 2rem;
  height: 2rem;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-1) var(--sp-5);
  margin-left: auto;
}

.nav a:not(.btn) {
  padding-block: 0.4rem;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 2px solid transparent;
}

.nav a:not(.btn):hover,
.nav a[aria-current] {
  border-bottom-color: var(--cobalt);
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  margin-left: auto;
  color: var(--ink);
  background: none;
  border: 1.5px solid var(--line);
  border-radius: var(--r-sm);
  cursor: pointer;
}

.nav-toggle .i {
  width: 1.5rem;
  height: 1.5rem;
}

@media (max-width: 55rem) {
  .nav {
    width: 100%;
    margin-left: 0;
    padding-bottom: var(--sp-3);
  }

  .js .nav-toggle {
    display: inline-flex;
  }

  .js .nav {
    position: absolute;
    top: 100%;
    left: calc(var(--gutter) * -1);
    right: calc(var(--gutter) * -1);
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: auto;
    padding: var(--sp-2) var(--gutter) var(--sp-5);
    background: var(--paper);
    border-bottom: 1px solid var(--line);
  }

  .js .nav.is-open {
    display: flex;
  }

  .js .nav a:not(.btn) {
    padding-block: 0.9rem;
    border-bottom: 1px solid var(--line);
  }

  .js .nav .btn--sm {
    margin-top: var(--sp-4);
    min-height: 3rem;
  }
}

/* Toast (shown only while the Play Store link is unset) */
.toast {
  position: fixed;
  left: 50%;
  bottom: var(--sp-5);
  z-index: 200;
  max-width: calc(100% - 2rem);
  padding: var(--sp-3) var(--sp-5);
  color: #fff;
  background: var(--ink);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-2);
  transform: translate(-50%, 1rem);
  opacity: 0;
  transition: opacity 0.25s, transform 0.25s;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* 5. Sections -------------------------------------------------------------- */

/* Hero */
.hero {
  padding-block: clamp(2.5rem, 6vw, 5rem) clamp(3.5rem, 8vw, 6.5rem);
  overflow: clip;
}

.hero__grid {
  display: grid;
  gap: var(--sp-7);
  align-items: center;
}

@media (min-width: 60rem) {
  .hero__grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  }
}

.hero h1 {
  max-width: 14ch;
  font-size: var(--step-5);
  line-height: 1.04;
}

.hero .lead {
  max-width: 34rem;
  margin-top: var(--sp-5);
  font-size: var(--step-1);
  color: var(--muted);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3) var(--sp-4);
  margin-top: var(--sp-6);
}

.hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2) var(--sp-5);
  margin-top: var(--sp-6);
  font-size: var(--step--1);
  color: var(--muted);
}

.hero__facts li {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
}

.hero__facts .i {
  color: var(--ink);
}

.hero__visual {
  margin: 0;
}

.mock {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 35rem;
  padding: 3rem 0 1.5rem;
}

.folder {
  position: absolute;
  inset: 9% 0 6% 6%;
  background: var(--cobalt);
  border-radius: 0 var(--r-lg) var(--r-lg) var(--r-lg);
}

.folder::before {
  content: "";
  position: absolute;
  left: 0;
  top: -2.25rem;
  width: 44%;
  height: 2.5rem;
  background: var(--cobalt);
  border-radius: var(--r-md) var(--r-md) 0 0;
  clip-path: polygon(0 0, calc(100% - 1.5rem) 0, 100% 100%, 0 100%);
}

.paper {
  position: absolute;
  z-index: 1;
  width: 42%;
  padding: 0.7rem;
  background: var(--surface);
  border-radius: var(--r-sm);
  box-shadow: var(--shadow-1);
}

.paper i {
  display: block;
  height: 0.4rem;
  margin-bottom: 0.45rem;
  background: var(--line);
  border-radius: 99px;
}

.paper i:nth-child(2n) {
  width: 70%;
}

.paper::before {
  content: "";
  display: block;
  width: 2.25rem;
  height: 0.5rem;
  margin-bottom: 0.6rem;
  background: var(--tab);
  border-radius: 99px;
}

.paper--a {
  --tab: var(--t-attach);
  left: 0;
  top: 1%;
  transform: rotate(-6deg);
}

.paper--b {
  --tab: var(--t-timeline);
  right: 0;
  top: 11%;
  transform: rotate(5deg);
}

.phone {
  position: relative;
  z-index: 2;
  width: min(19rem, 82%);
  padding: 0.75rem 0.75rem 1rem;
  overflow: hidden;
  font-size: 0.8125rem;
  line-height: 1.35;
  background: var(--surface);
  border: 0.5rem solid var(--ink);
  border-radius: 2.25rem;
  box-shadow: var(--shadow-2);
}

.phone__status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.1rem 0.5rem 0.6rem;
  font-size: 0.6875rem;
  font-weight: 600;
}

.phone__icons {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.phone__icons .i {
  width: 0.85rem;
  height: 0.85rem;
}

.battery {
  width: 1.1rem;
  height: 0.55rem;
  border: 1.5px solid var(--ink);
  border-radius: 3px;
  background: linear-gradient(90deg, var(--ink) 70%, transparent 70%);
}

.phone__title {
  padding: 0 0.5rem 0.6rem;
}

.phone__title small {
  display: block;
  color: var(--muted);
}

.phone__title strong {
  font-family: var(--font-display);
  font-size: 1.25rem;
  line-height: 1.15;
}

.phone__tabs {
  display: flex;
  gap: 0.25rem;
  padding: 0 0.25rem 0.6rem;
  overflow: hidden;
}

.phone__tabs span {
  padding: 0.3rem 0.6rem;
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--muted);
  border-radius: var(--r-pill);
}

.phone__tabs .is-active {
  color: #fff;
  background: var(--cobalt);
}

.phone__card {
  margin: 0 0.25rem 0.6rem;
  padding: 0.7rem 0.75rem;
  background: var(--paper);
  border-radius: var(--r-md);
}

.phone__label {
  margin-bottom: 0.4rem;
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--muted);
}

.phone__row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.22rem 0;
}

.phone__row .box {
  flex: none;
  width: 0.95rem;
  height: 0.95rem;
  border: 1.5px solid var(--t-check);
  border-radius: 4px;
}

.phone__row .box.is-done {
  background: var(--t-check);
  box-shadow: inset 0 0 0 2px var(--paper);
}

.phone__row .dot {
  flex: none;
  width: 0.55rem;
  height: 0.55rem;
  margin-inline: 0.2rem;
  background: var(--t-timeline);
  border-radius: 50%;
}

.phone__row time {
  flex: none;
  min-width: 2.6rem;
  color: var(--muted);
}

.phone__files {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.4rem;
  margin: 0 0.25rem;
}

.ftile {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  color: var(--tab);
  background: color-mix(in srgb, var(--tab) 12%, #fff);
  border-radius: var(--r-sm);
}

.hero__badge {
  position: absolute;
  z-index: 3;
  left: 0;
  bottom: 9%;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  max-width: 13rem;
  padding: 0.65rem 0.85rem;
  font-size: 0.8125rem;
  line-height: 1.3;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-1);
}

.hero__badge .i {
  width: 1.4rem;
  height: 1.4rem;
  color: var(--cobalt);
}

.caption {
  margin-top: var(--sp-3);
  font-size: 0.8125rem;
  text-align: center;
  color: var(--muted);
}

@media (min-width: 38rem) {
  .hero__badge {
    left: 2%;
  }
}

/* Problem: scatter and gather */
.gather__copy h2 {
  font-size: var(--step-4);
}

.gather__copy p {
  margin-top: var(--sp-4);
  font-size: var(--step-1);
  color: var(--muted);
}

.gather__copy .btn {
  margin-top: var(--sp-6);
}

.gather__stage {
  position: relative;
  height: 25rem;
  overflow: hidden;
  background: var(--sunken);
  border-radius: var(--r-lg);
}

.gather__folder {
  position: absolute;
  inset-inline: 0;
  bottom: 1.25rem;
  width: min(26rem, calc(100% - 2rem));
  margin-inline: auto;
  padding: 1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  opacity: 0.55;
  transition: opacity 0.6s;
}

.gather.is-gathered .gather__folder {
  opacity: 1;
}

.gather__folder::before {
  content: "";
  position: absolute;
  left: 1rem;
  top: -0.6rem;
  width: 4.5rem;
  height: 0.6rem;
  background: var(--cobalt);
  border-radius: 0.5rem 0.5rem 0 0;
}

.gather__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--sp-3);
  height: 2.25rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
}

.gather__head small {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--muted);
}

.gather__slots {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.625rem;
}

.slot {
  height: 3.5rem;
  border: 1.5px dashed var(--line);
  border-radius: var(--r-sm);
}

.chip {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.6rem;
  overflow: hidden;
  font-size: 0.78rem;
  line-height: 1.25;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--tab);
  border-radius: var(--r-sm);
  box-shadow: var(--shadow-1);
}

.chip .i {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--tab);
}

.chip__text {
  min-width: 0;
}

.chip b,
.chip small {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.chip small {
  color: var(--muted);
}

.chip .m-g,
.gather.is-gathered .chip .m-s {
  display: none;
}

.gather.is-gathered .chip .m-g {
  display: inline;
}

/* Only when scripting is available do the chips float freely */
.js .chip {
  transform: translate(var(--sx, 0), var(--sy, 0)) rotate(var(--sr, 0deg));
  transition: transform 0.95s cubic-bezier(0.2, 0.85, 0.25, 1) calc(var(--i, 0) * 70ms), box-shadow 0.6s;
}

.js .gather:not(.is-ready) .chip {
  visibility: hidden;
}

.js .gather.is-gathered .chip {
  transform: translate(var(--gx, 0), var(--gy, 0)) rotate(0deg);
  box-shadow: none;
}

.js .gather.no-anim .chip {
  transition: none;
}

/* Without JS the chips simply sit in a list and the folder is hidden */
html:not(.js) .gather__stage {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  height: auto;
  padding: var(--sp-5);
}

html:not(.js) .chip {
  position: static;
  width: calc(50% - var(--sp-3));
}

html:not(.js) .gather__folder {
  display: none;
}

html:not(.js) .gather__copy .btn {
  display: none;
}

html:not(.js) .chip .m-g {
  display: inline;
}

html:not(.js) .chip .m-s {
  display: none;
}

/* Features: bento */
.bento {
  display: grid;
  gap: 1.75rem var(--sp-5);
  grid-template-columns: 1fr;
}

.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
  padding: var(--sp-5);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}

.tile::before {
  content: "";
  position: absolute;
  left: 1.25rem;
  top: -0.6rem;
  width: 4rem;
  height: 0.6rem;
  background: var(--tab);
  border-radius: 0.5rem 0.5rem 0 0;
}

.tile h3 {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  font-size: var(--step-2);
}

.tile h3 .i {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--tab);
}

.tile p {
  margin-top: var(--sp-2);
  color: var(--muted);
}

.tile__visual {
  order: -1;
  padding: var(--sp-4);
  font-size: 0.875rem;
  line-height: 1.35;
  background: var(--paper);
  border-radius: var(--r-sm);
}

.tile--projects { --tab: var(--t-projects); }
.tile--people { --tab: var(--t-people); }
.tile--timeline { --tab: var(--t-timeline); }
.tile--attach { --tab: var(--t-attach); }
.tile--checks { --tab: var(--t-check); }
.tile--reports { --tab: var(--t-report); }

.tile--vault {
  --tab: #9fb4bc;
  color: #fff;
  background: var(--ink);
  border-color: var(--ink);
}

.tile--vault h3 .i {
  color: #fff;
}

.tile--vault p {
  color: #c4d3d8;
}

.tile--vault .tile__visual {
  background: var(--ink-soft);
}

@media (min-width: 38rem) and (max-width: 63.99rem) {
  .bento {
    grid-template-columns: 1fr 1fr;
  }

  .tile--projects,
  .tile--attach,
  .tile--vault {
    grid-column: 1 / -1;
  }

  .tile--people { order: 2; }
  .tile--timeline { order: 3; }
  .tile--checks { order: 4; }
  .tile--reports { order: 5; }
  .tile--attach { order: 6; }
  .tile--vault { order: 7; }
  .tile--projects { order: 1; }
}

@media (min-width: 64rem) {
  .bento {
    grid-template-columns: repeat(12, 1fr);
  }

  .tile--projects { grid-column: 1 / 8; grid-row: 1; }
  .tile--timeline { grid-column: 8 / 13; grid-row: 1 / 3; }
  .tile--people { grid-column: 1 / 5; grid-row: 2; }
  .tile--checks { grid-column: 5 / 8; grid-row: 2; }
  .tile--attach { grid-column: 1 / 8; grid-row: 3; }
  .tile--reports { grid-column: 8 / 13; grid-row: 3; }
  .tile--vault {
    grid-column: 1 / 13;
    grid-row: 4;
    flex-direction: row;
    align-items: center;
    gap: var(--sp-7);
  }

  .tile--vault .tile__visual {
    order: 2;
    flex: 0 0 22rem;
  }

  .tile--vault .tile__body {
    flex: 1;
    max-width: 34rem;
  }
}

/* Mini previews inside tiles */
.mini-projects li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.15rem 0.6rem;
  align-items: center;
  padding: 0.6rem 0.75rem;
  background: var(--surface);
  border-radius: var(--r-sm);
}

.mini-projects li + li {
  margin-top: 0.5rem;
}

.mini-projects .dot {
  width: 0.7rem;
  height: 0.7rem;
  background: var(--tab);
  border-radius: 3px;
}

.mini-projects .is-open {
  border: 1.5px solid var(--t-projects);
}

.mini-projects .counts {
  display: flex;
  flex-wrap: wrap;
  grid-column: 2;
  gap: 0.25rem 0.5rem;
  font-size: 0.75rem;
  color: var(--muted);
}

.mini-projects .counts span {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.mini-projects .counts .i {
  width: 0.9rem;
  height: 0.9rem;
}

.mini-people li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.55rem 0.65rem;
  background: var(--surface);
  border-radius: var(--r-sm);
}

.mini-people li + li {
  margin-top: 0.5rem;
}

.avatar {
  flex: none;
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
  background: var(--t-people);
  border-radius: 50%;
}

.linked {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin-top: 0.3rem;
}

.linked span {
  padding: 0.05rem 0.5rem;
  font-size: 0.6875rem;
  color: var(--cobalt-deep);
  background: var(--cobalt-tint);
  border-radius: var(--r-pill);
}

.mini-people small,
.ev small {
  display: block;
  color: var(--muted);
}

.mini-timeline {
  position: relative;
  padding-left: 1.25rem;
}

.mini-timeline::before {
  content: "";
  position: absolute;
  left: 0.3rem;
  top: 0.5rem;
  bottom: 0.5rem;
  width: 2px;
  background: var(--line);
}

.mini-timeline li {
  position: relative;
  padding-bottom: 0.9rem;
}

.mini-timeline li:last-child {
  padding-bottom: 0;
}

.mini-timeline li::before {
  content: "";
  position: absolute;
  left: -1.25rem;
  top: 0.3rem;
  width: 0.65rem;
  height: 0.65rem;
  background: var(--t-timeline);
  border: 2px solid var(--paper);
  border-radius: 50%;
  box-sizing: content-box;
}

.mini-timeline time {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--t-timeline);
}

.mini-files {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}

.mini-files li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding: 0.7rem 0.25rem;
  font-size: 0.75rem;
  background: var(--surface);
  border-radius: var(--r-sm);
}

.mini-files .i {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--t-attach);
}

@media (min-width: 38rem) {
  .mini-files {
    grid-template-columns: repeat(6, 1fr);
  }
}

@media (min-width: 38rem) and (max-width: 63.99rem), (min-width: 64rem) {
  .tile--attach .mini-files {
    grid-template-columns: repeat(6, 1fr);
  }
}

/* Interactive checklist */
.check {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.45rem 0.25rem;
  cursor: pointer;
}

.check input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.check__box {
  flex: none;
  display: grid;
  place-items: center;
  width: 1.3rem;
  height: 1.3rem;
  color: #fff;
  background: var(--surface);
  border: 2px solid var(--t-check);
  border-radius: 5px;
  transition: background-color 0.15s;
}

.check__box .i {
  width: 0.9rem;
  height: 0.9rem;
  stroke-width: 3;
  opacity: 0;
}

.check input:checked + .check__box {
  background: var(--t-check);
}

.check input:checked + .check__box .i {
  opacity: 1;
}

.check input:checked ~ .check__text {
  color: var(--muted);
  text-decoration: line-through;
}

.check input:focus-visible + .check__box {
  outline: 3px solid var(--cobalt);
  outline-offset: 2px;
}

.hint {
  margin-top: 0.5rem;
  font-size: 0.75rem;
  color: var(--muted);
}

/* Mini report */
.mini-report {
  padding: 0.9rem;
  background: var(--surface);
  border-radius: var(--r-sm);
  box-shadow: var(--shadow-1);
}

.mini-report strong {
  display: block;
  margin-bottom: 0.6rem;
  font-family: var(--font-display);
  font-size: 1rem;
}

.mini-report i {
  display: block;
  height: 0.4rem;
  margin-bottom: 0.4rem;
  background: var(--line);
  border-radius: 99px;
}

.mini-report i:nth-of-type(2n) {
  width: 75%;
}

.mini-report .photos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.4rem;
  margin-block: 0.6rem;
}

.mini-report .photos span {
  aspect-ratio: 4 / 3;
  background: color-mix(in srgb, var(--t-report) 15%, #fff);
  border-radius: 4px;
}

/* Mini vault */
.mini-vault {
  display: grid;
  gap: 0.75rem;
  justify-items: center;
  padding: var(--sp-3);
}

.mini-vault .lock {
  display: grid;
  place-items: center;
  width: 3.25rem;
  height: 3.25rem;
  background: var(--ink);
  border: 1.5px solid #5d7983;
  border-radius: 50%;
}

.mini-vault .lock .i {
  width: 1.5rem;
  height: 1.5rem;
}

.mini-vault .field {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 0.6rem 0.8rem;
  color: #c4d3d8;
  background: var(--ink);
  border: 1px solid #456673;
  border-radius: var(--r-sm);
}

.mini-vault .field b {
  letter-spacing: 0.25em;
  color: #fff;
}

.mini-vault .rows {
  width: 100%;
  opacity: 0.55;
}

.mini-vault .rows i {
  display: block;
  height: 1.9rem;
  margin-top: 0.4rem;
  background: var(--ink);
  border-radius: var(--r-sm);
}

/* Use cases */
.tablist {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-bottom: var(--sp-5);
}

html:not(.js) .tablist {
  display: none;
}

.tablist button {
  min-height: 2.75rem;
  padding: 0.5rem 1.15rem;
  font: inherit;
  font-weight: 600;
  color: var(--ink);
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: var(--r-pill);
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.tablist button:hover {
  border-color: var(--ink);
}

.tablist button[aria-selected="true"] {
  color: #fff;
  background: var(--ink);
  border-color: var(--ink);
}

.sheet {
  padding: clamp(1.25rem, 3vw, 2.25rem);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}

.sheet + .sheet {
  margin-top: var(--sp-5);
}

.sheet__head {
  max-width: 40rem;
  margin-bottom: var(--sp-5);
}

.sheet__kind {
  display: inline-block;
  padding: 0.1rem 0.7rem;
  margin-bottom: var(--sp-3);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--cobalt-deep);
  background: var(--cobalt-tint);
  border-radius: var(--r-pill);
}

.sheet__head h3 {
  font-size: var(--step-3);
}

.sheet__head p {
  margin-top: var(--sp-2);
  color: var(--muted);
}

.sheet__grid {
  display: grid;
  gap: var(--sp-4);
  grid-template-columns: 1fr;
}

.block {
  padding: var(--sp-4) var(--sp-4) var(--sp-4) calc(var(--sp-4) + 0.25rem);
  background: var(--surface);
  border-left: 5px solid var(--tab);
  border-radius: var(--r-sm);
}

.block h4 {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  margin-bottom: var(--sp-3);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  letter-spacing: 0;
}

.block h4 .i {
  color: var(--tab);
}

.block li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.3rem 0;
  font-size: 0.9375rem;
  line-height: 1.4;
}

.block li small {
  display: block;
  color: var(--muted);
}

.block .date {
  flex: none;
  min-width: 3.4rem;
  font-weight: 700;
  color: var(--t-timeline);
}

.block .li-icon {
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.1rem;
  color: var(--t-attach);
}

.block .tbox {
  flex: none;
  display: grid;
  place-items: center;
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.12rem;
  color: #fff;
  border: 2px solid var(--t-check);
  border-radius: 4px;
}

.block .tbox.is-done {
  background: var(--t-check);
}

.block .tbox .i {
  width: 0.8rem;
  height: 0.8rem;
  stroke-width: 3;
}

.b-people { --tab: var(--t-people); }
.b-timeline { --tab: var(--t-timeline); }
.b-files { --tab: var(--t-attach); }
.b-tasks { --tab: var(--t-check); }
.b-report { --tab: var(--t-report); }

.block--report p {
  font-size: 0.9375rem;
  color: var(--muted);
}

@media (min-width: 40rem) {
  .sheet__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 62rem) {
  .sheet__grid {
    grid-template-columns: repeat(6, 1fr);
  }

  .b-people,
  .b-timeline,
  .b-files {
    grid-column: span 2;
  }

  .b-tasks,
  .b-report {
    grid-column: span 3;
  }
}

/* How it works */
.steps {
  display: grid;
  gap: var(--sp-6);
  counter-reset: step;
}

.step {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0 var(--sp-4);
}

.step::before {
  counter-increment: step;
  content: counter(step);
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  background: var(--tab);
  border-radius: 50%;
}

.step::after {
  content: "";
  position: absolute;
  left: 1.3rem;
  top: 3.1rem;
  bottom: -1.6rem;
  width: 2px;
  background: var(--line);
}

.step:last-child::after {
  display: none;
}

.step h3 {
  align-self: center;
  font-size: var(--step-2);
}

.step p {
  grid-column: 2;
  margin-top: var(--sp-2);
  color: var(--muted);
}

.s1 { --tab: var(--t-projects); }
.s2 { --tab: var(--t-attach); }
.s3 { --tab: var(--t-timeline); }
.s4 { --tab: var(--t-people); }
.s5 { --tab: var(--t-report); }

@media (min-width: 62rem) {
  .steps {
    grid-template-columns: repeat(5, 1fr);
    gap: var(--sp-5);
  }

  .step {
    grid-template-columns: 1fr;
    align-content: start;
  }

  .step::after {
    left: 3.25rem;
    right: calc(var(--sp-5) * -1);
    top: 1.3rem;
    bottom: auto;
    width: auto;
    height: 2px;
  }

  .step h3 {
    margin-top: var(--sp-4);
  }

  .step p {
    grid-column: 1;
  }
}

/* Offline and privacy */
.offline {
  color: #fff;
  background: var(--ink);
}

.offline .section-head p {
  color: #c4d3d8;
}

.offline__grid {
  display: grid;
  gap: var(--sp-5);
}

@media (min-width: 52rem) {
  .offline__grid {
    grid-template-columns: 1fr 1fr;
  }
}

.panel {
  padding: var(--sp-5);
  background: var(--ink-soft);
  border: 1px solid #2d5562;
  border-radius: var(--r-md);
}

.panel h3 {
  font-size: var(--step-2);
}

.panel ul {
  margin-top: var(--sp-4);
}

.panel li {
  display: flex;
  gap: var(--sp-3);
  padding: 0.45rem 0;
  color: #dbe6e9;
}

.panel li .i {
  margin-top: 0.15rem;
  color: #7fd6c4;
}

.panel--net li .i {
  color: #f0c36b;
}

.panel .note {
  margin-top: var(--sp-4);
  font-size: var(--step--1);
  color: #a9bec5;
}

.offline__privacy {
  display: grid;
  gap: var(--sp-4);
  align-items: center;
  margin-top: var(--sp-6);
  padding: var(--sp-5);
  border: 1px solid #2d5562;
  border-radius: var(--r-md);
}

.offline__privacy h3 {
  font-size: var(--step-2);
}

.offline__privacy p {
  margin-top: var(--sp-2);
  color: #c4d3d8;
}

.offline__privacy a.btn {
  justify-self: start;
}

@media (min-width: 52rem) {
  .offline__privacy {
    grid-template-columns: 1fr auto;
    gap: var(--sp-6);
  }
}

/* Final call to action */
.cta {
  color: #fff;
  background: var(--cobalt);
}

.cta__inner {
  max-width: 40rem;
}

.cta h2 {
  font-size: var(--step-4);
}

.cta p {
  margin-top: var(--sp-4);
  font-size: var(--step-1);
  color: #e3e8ff;
}

.cta .hero__actions {
  margin-top: var(--sp-6);
}

/* Footer */
.site-footer {
  padding-block: var(--sp-7) var(--sp-6);
  background: var(--sunken);
  border-top: 1px solid var(--line);
}

.site-footer__grid {
  display: grid;
  gap: var(--sp-6);
}

@media (min-width: 52rem) {
  .site-footer__grid {
    grid-template-columns: 1.4fr 1fr;
  }
}

.site-footer p {
  max-width: 28rem;
  margin-top: var(--sp-3);
  color: var(--muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2) var(--sp-5);
}

.footer-links a {
  display: inline-block;
  padding-block: 0.35rem;
  color: var(--ink);
}

.footer-links[hidden],
[hidden] {
  display: none !important;
}

.site-footer .copyright {
  max-width: none;
  margin-top: var(--sp-6);
  padding-top: var(--sp-4);
  font-size: var(--step--1);
  color: var(--muted);
  border-top: 1px solid var(--line);
}

/* 6. Privacy page ----------------------------------------------------------- */
.doc-hero {
  padding-block: clamp(2.5rem, 6vw, 4.5rem) var(--sp-6);
}

.doc-hero h1 {
  font-size: var(--step-5);
}

.doc-hero p {
  max-width: 40rem;
  margin-top: var(--sp-4);
  font-size: var(--step-1);
  color: var(--muted);
}

.draft-banner {
  margin-bottom: var(--sp-6);
  padding: var(--sp-4) var(--sp-5);
  background: var(--alert-bg);
  border: 1px solid var(--alert-line);
  border-radius: var(--r-md);
}

.draft-banner p {
  max-width: none;
  margin: 0;
  font-size: var(--step--1);
  color: var(--ink);
}

.draft-banner p + p {
  margin-top: var(--sp-2);
}

.doc {
  display: grid;
  gap: var(--sp-6);
  padding-bottom: var(--sp-8);
}

@media (min-width: 62rem) {
  .doc {
    grid-template-columns: 16rem minmax(0, 1fr);
    gap: var(--sp-8);
    align-items: start;
  }
}

.toc {
  padding: var(--sp-4);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}

.toc summary {
  font-weight: 700;
  cursor: pointer;
}

.toc ol {
  margin-top: var(--sp-3);
  padding-left: 1.4rem;
  list-style: decimal;
}

.toc li {
  padding-block: 0.15rem;
}

.toc a {
  color: var(--ink);
}

@media (min-width: 62rem) {
  .toc {
    position: sticky;
    top: calc(var(--header-h) + 1.25rem);
  }
}

.policy {
  max-width: 46rem;
  counter-reset: sec;
}

.policy h2 {
  margin-top: var(--sp-7);
  padding-top: var(--sp-5);
  font-size: var(--step-3);
  border-top: 1px solid var(--line);
  counter-increment: sec;
}

.policy h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.policy h2::before {
  content: counter(sec) ". ";
  color: var(--muted);
}

.policy h3 {
  margin-top: var(--sp-5);
  font-family: var(--font-body);
  font-size: var(--step-1);
  letter-spacing: 0;
}

.policy p,
.policy li {
  margin-top: var(--sp-3);
}

.policy ul {
  padding-left: 1.25rem;
  list-style: disc;
}

.policy li {
  margin-top: var(--sp-2);
}

.policy dl {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-1) var(--sp-5);
  margin: var(--sp-4) 0 0;
  padding: var(--sp-4);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}

.policy dt {
  margin-top: var(--sp-3);
  font-weight: 700;
}

.policy dt:first-child {
  margin-top: 0;
}

.policy dd {
  margin: 0;
}

@media (min-width: 40rem) {
  .policy dl {
    grid-template-columns: 11rem 1fr;
  }

  .policy dt,
  .policy dt:first-child {
    margin-top: var(--sp-2);
  }

  .policy dt:first-child {
    margin-top: 0;
  }
}

.fill {
  padding: 0.05rem 0.35rem;
  background: #ffe9a8;
  border-radius: 4px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.confirm {
  margin-top: var(--sp-4);
  padding: var(--sp-3) var(--sp-4);
  font-size: var(--step--1);
  background: var(--alert-bg);
  border-left: 5px solid var(--alert-line);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
}

.confirm p,
.confirm li {
  margin-top: var(--sp-2);
}

.confirm p:first-child {
  margin-top: 0;
}

.confirm ul {
  padding-left: 1.1rem;
}

.table-wrap {
  margin-top: var(--sp-4);
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}

.table-wrap table {
  width: 100%;
  min-width: 34rem;
  border-collapse: collapse;
  font-size: var(--step--1);
  background: var(--surface);
}

.table-wrap th,
.table-wrap td {
  padding: var(--sp-3) var(--sp-4);
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

.table-wrap tr:last-child td {
  border-bottom: 0;
}

.table-wrap th {
  background: var(--sunken);
}

/* Motion and print */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    transition-delay: 0ms !important;
  }
}

@media print {
  .site-header,
  .site-footer,
  .toc,
  .toast {
    display: none !important;
  }

  body {
    background: #fff;
  }

  .fill,
  .confirm {
    background: none;
    border: 1px dashed #999;
  }
}
