/* Notion brand study. Colour tokens are the ones notion.com publishes in its own CSS (--tatami-color-*).
   Type: Inter (Notion's UI face is a customised Inter) + Newsreader as an open stand-in for Lyon Text.
   Contrast checked: #191918 on #fff 17+, white on #0075DE 4.57, #615D59 on #F6F5F4 6.0, #78736F on #fff 4.69. */

:root {
  --ink: #191918;
  --ink-2: #31302e;
  --mute: #615d59;
  --faint: #78736f;
  --line: #dfdcd9;
  --tint: #f6f5f4;
  --paper: #fff;
  --blue: #0075de;
  --blue-l: #f2f9ff;
  --green-l: #f0faf2;
  --green: #14832b;
  --orange-l: #fff5ed;
  --orange-m: #ffdec4;
  --orange: #ab4a00;
  --wrap: 1120px;
  --pad: clamp(1.1rem, 4vw, 2.5rem);
  --r: 12px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { font-size: 15px; }
html { scroll-behavior: smooth; scroll-padding-top: 4.5rem; }
body { margin: 0; font-family: "Inter", system-ui, sans-serif; font-size: 1rem; line-height: 1.6; color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, table { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
.sec--ink :focus-visible, .cta :focus-visible { outline-color: #fff; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--ink); color: #fff; padding: .7rem 1rem; font-weight: 700; border-radius: 8px; }
.skip:focus { top: 1rem; }
.wrap { width: min(100% - 2 * var(--pad), var(--wrap)); margin-inline: auto; }
.ic { width: 1.2em; height: 1.2em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ic--lg { width: 2rem; height: 2rem; }
code { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: .88em; }

.top { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: 1rem; min-height: 3.5rem; padding: .35rem var(--pad); background: rgba(255, 255, 255, .96); border-bottom: 1px solid var(--line); }
.top__back { display: inline-flex; align-items: center; gap: .35rem; font-weight: 700; text-decoration: none; min-height: 44px; margin-right: auto; }
.top__nav { display: flex; gap: .2rem; }
.top__nav a { text-decoration: none; font-weight: 500; font-size: .95rem; padding: .5rem .8rem; border-radius: 8px; min-height: 44px; display: inline-flex; align-items: center; color: var(--mute); transition: background .15s, color .15s; }
.top__nav a:hover { background: var(--tint); color: var(--ink); }
.top__cta { background: var(--blue); color: #fff; font-weight: 600; text-decoration: none; padding: .55rem 1.1rem; border-radius: 8px; min-height: 44px; display: inline-flex; align-items: center; transition: background .15s, transform .15s; }
.top__cta:hover { background: #005bab; }
.top__cta:active { transform: scale(.97); }

/* hero */
.hero { padding-block: clamp(2.5rem, 7vw, 5.5rem) clamp(2rem, 5vw, 3.5rem); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(1.5rem, 5vw, 4rem); align-items: end; }
.kicker { display: inline-flex; align-items: center; gap: .6rem; font-size: .85rem; font-weight: 600; color: var(--mute); background: var(--tint); border: 1px solid var(--line); padding: .35rem .8rem; border-radius: 999px; }
.dot { width: .55rem; height: .55rem; border-radius: 50%; background: var(--blue); }
.hero h1 { font-size: clamp(2.4rem, 6.4vw, 4.6rem); font-weight: 800; line-height: .98; letter-spacing: -.045em; margin: 1.2rem 0 1.4rem; }
mark { background: var(--orange-m); color: inherit; padding: 0 .15em; border-radius: .2em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.lede { font-size: clamp(1.1rem, 1.8vw, 1.35rem); line-height: 1.5; max-width: 38rem; color: var(--ink-2); }
.by { margin-top: 1.2rem; font-size: .92rem; color: var(--mute); }
.proof { border: 1px solid var(--line); border-radius: 16px; padding: 1.4rem; background: var(--paper); box-shadow: 0 1px 0 rgba(0, 0, 0, .04), 0 12px 32px -18px rgba(0, 0, 0, .25); }
.proof__t { font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); margin-bottom: .6rem; }
.proof dl > div { display: flex; align-items: baseline; gap: .9rem; padding: .7rem 0; border-top: 1px solid var(--line); }
.proof dl > div:first-child { border-top: 0; }
.proof dt { font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 800; letter-spacing: -.03em; min-width: 5.2rem; font-variant-numeric: tabular-nums; }
.proof dd { color: var(--ink-2); line-height: 1.35; }
.proof__n { margin-top: .6rem; font-size: .78rem; color: var(--faint); line-height: 1.4; }

/* sections */
.sec { padding-block: clamp(3rem, 8vw, 6rem); }
.sec--tint { background: var(--tint); }
.sec--ink { background: var(--ink); color: #fff; }
.eyebrow { font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--blue); }
.sec--ink .eyebrow { color: #8cc6ff; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.7rem); font-weight: 800; line-height: 1.04; letter-spacing: -.04em; margin: .5rem 0 1.8rem; max-width: 24ch; }
h3 { font-size: 1.3rem; font-weight: 700; line-height: 1.25; letter-spacing: -.02em; }
.note { font-size: .9rem; line-height: 1.55; color: var(--mute); margin-top: 1rem; max-width: 62ch; }
.note--n { padding: .9rem 1rem; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; margin-top: .6rem; }
.note--l { color: #c9c6c2; }
.sec--ink .note a { color: #8cc6ff; }

/* live evidence */
.live { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
.frame { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--paper); box-shadow: 0 18px 40px -24px rgba(0, 0, 0, .3); }
.frame__bar { display: flex; align-items: center; gap: .4rem; padding: .6rem .9rem; background: var(--tint); border-bottom: 1px solid var(--line); }
.frame__bar i { width: .65rem; height: .65rem; border-radius: 50%; background: #d4d0cc; }
.frame__bar span { margin-left: .8rem; font-size: .8rem; color: var(--mute); background: var(--paper); padding: .15rem .8rem; border-radius: 6px; border: 1px solid var(--line); }
.frame__shot { position: relative; }
.frame__shot img { width: 100%; }
.pin { position: absolute; width: 1.7rem; height: 1.7rem; border-radius: 50%; background: var(--ink); color: #fff; font-size: .85rem; font-weight: 700; display: grid; place-items: center; box-shadow: 0 0 0 3px #fff, 0 6px 14px rgba(0, 0, 0, .3); transform: translate(-30%, -50%); }
.frame figcaption { padding: .8rem 1rem; font-size: .82rem; color: var(--mute); border-top: 1px solid var(--line); line-height: 1.45; }
.legend { counter-reset: l; display: grid; gap: 1rem; }
.legend li { counter-increment: l; position: relative; padding: .9rem 1rem .9rem 3.2rem; border: 1px solid var(--line); border-radius: var(--r); background: var(--paper); line-height: 1.45; }
.legend li::before { content: counter(l); position: absolute; left: .9rem; top: .9rem; width: 1.7rem; height: 1.7rem; border-radius: 50%; background: var(--ink); color: #fff; font-size: .85rem; font-weight: 700; display: grid; place-items: center; }
.legend b { display: block; }

/* verdict */
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.card { padding: 1.6rem; border-radius: 16px; display: flex; flex-direction: column; gap: .8rem; border: 1px solid var(--line); }
.card--g { background: var(--green-l); }
.card--g .ic { color: var(--green); }
.card--o { background: var(--orange-l); }
.card--o .ic { color: var(--orange); }
.card--b { background: var(--blue-l); }
.card--b .ic { color: var(--blue); }
.card p { color: var(--ink-2); }

/* system */
.sys { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
.sys h3 { margin-bottom: 1rem; }
.sys .sp { margin-top: 2rem; }
.swatches { display: grid; gap: .45rem; }
.swatches li { background: var(--c); color: var(--t); border-radius: 10px; padding: .8rem 1.1rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; border: 1px solid var(--line); }
.swatches b { font-weight: 600; }
.type { display: grid; gap: .6rem; }
.type li { display: grid; gap: .1rem; padding: .8rem 1rem; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; }
.type b { font-size: 1.5rem; line-height: 1.2; letter-spacing: -.02em; }
.type span { font-size: .88rem; color: var(--mute); }
.t-sans { font-family: "Inter", sans-serif; font-weight: 700; }
.t-serif { font-family: "Newsreader", Georgia, serif; font-weight: 500; font-style: italic; }
.t-mono { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-weight: 500; font-size: 1.3rem !important; }
.t-marker { font-family: "Marker Felt", "Comic Sans MS", cursive; font-weight: 700; }

/* findings */
.finding { padding-block: clamp(1.5rem, 4vw, 2.5rem); border-top: 1px solid var(--line); }
.finding__head { display: flex; gap: 1rem; align-items: center; margin-bottom: 1.4rem; }
.num { flex: none; display: grid; place-items: center; width: 2.8rem; height: 2.8rem; border-radius: 10px; background: var(--ink); color: #fff; font-weight: 700; font-size: 1.2rem; }
.finding h3 { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.finding__grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
.finding__grid--rev { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); }
.finding p { margin-bottom: 1rem; max-width: 62ch; color: var(--ink-2); }
.finding p b { color: var(--ink); }
.doubt { background: var(--blue-l); border: 1px solid #cfe6fb; border-radius: 10px; padding: .8rem 1rem; font-size: .96rem; }
.quad { width: 100%; border-collapse: separate; border-spacing: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; font-size: .98rem; }
.quad th, .quad td { padding: .8rem 1rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.quad thead th { background: var(--tint); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); }
.quad tbody th { font-weight: 600; color: var(--mute); width: 7.5rem; white-space: nowrap; }
.quad tr:last-child th, .quad tr:last-child td { border-bottom: 0; }
.quad i { font-style: normal; background: var(--orange-m); padding: 0 .25em; border-radius: .2em; }
.uses { display: grid; gap: .5rem; }
.uses li { padding: .85rem 1rem .85rem 2.6rem; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); position: relative; font-weight: 500; }
.uses li::before { content: ""; position: absolute; left: 1rem; top: 1.12rem; width: .9rem; height: .9rem; border: 2px solid var(--ink); border-radius: 3px; }
.gap { display: grid; gap: 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--paper); }
.gap__row { display: grid; gap: .2rem; padding: 1.2rem 1.3rem; margin: 0 !important; }
.gap__row span { font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); }
.gap__row b { font-size: 1.25rem; line-height: 1.3; font-family: "Newsreader", Georgia, serif; font-weight: 500; }
.gap__mid { display: flex; align-items: center; gap: .7rem; padding: .3rem 1.3rem; margin: 0 !important; background: var(--tint); color: var(--mute); font-size: .8rem; font-weight: 600; }
.gap__mid i { flex: 1; height: 0; border-top: 2px dashed #b8b3ad; }
.keep { margin-top: 1.5rem; padding: 1.4rem 1.6rem; border-radius: 16px; background: var(--green-l); border: 1px solid #cfe9d5; }
.keep h3 { display: flex; align-items: center; gap: .6rem; margin-bottom: .5rem; color: var(--green); font-size: 1.15rem; }
.keep p { max-width: 70ch; color: var(--ink-2); }

/* fixes */
.fix { margin-top: 2.5rem; padding: clamp(1.1rem, 3vw, 1.8rem); border-radius: 18px; background: var(--paper); border: 1px solid var(--line); }
.fix__head { display: grid; grid-template-columns: auto 1fr; column-gap: 1rem; row-gap: .3rem; align-items: center; margin-bottom: 1.2rem; }
.fix__head p { grid-column: 2; color: var(--mute); max-width: 62ch; }
.tag { width: 2.4rem; height: 2.4rem; display: grid; place-items: center; border-radius: 8px; background: var(--blue); color: #fff; font-weight: 700; }
.ladder { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.ladder__row { display: grid; grid-template-columns: 7rem 1fr 1.2fr; gap: 1rem; padding: .9rem 1rem; border-top: 1px solid var(--line); align-items: start; }
.ladder__row--h { background: var(--tint); border-top: 0; font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); }
.ladder__row > span:first-child { font-weight: 600; color: var(--mute); }
.ladder__row > span:nth-child(2) { color: var(--mute); }
.ladder__row b { font-weight: 600; background: var(--green-l); padding: .1rem .3rem; border-radius: 4px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.ladder i { font-style: normal; background: var(--orange-m); padding: 0 .2em; border-radius: .2em; }
.doors__tabs { display: inline-flex; gap: .3rem; padding: .3rem; background: var(--tint); border-radius: 12px; border: 1px solid var(--line); }
.doors__tabs button { font: inherit; font-weight: 600; min-height: 44px; padding: .5rem 1.1rem; border-radius: 9px; border: 0; background: transparent; color: var(--mute); cursor: pointer; transition: background .15s, color .15s; }
.doors__tabs button:hover { color: var(--ink); }
.doors__tabs button[aria-selected="true"] { background: var(--paper); color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .15); }
.doors__panel { margin-top: 1.2rem; padding: clamp(1.2rem, 3vw, 2rem); border-radius: 14px; background: var(--tint); border: 1px solid var(--line); min-height: 14rem; }
.doors__sub { font-size: clamp(1.4rem, 3vw, 2.2rem); font-weight: 700; line-height: 1.15; letter-spacing: -.03em; max-width: 26ch; }
.doors__chips { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.2rem 0; }
.doors__chips li { padding: .4rem .8rem; background: var(--paper); border: 1px solid var(--line); border-radius: 8px; font-size: .92rem; font-weight: 500; animation: pop .35s var(--ease) both; }
.doors__cta { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1.2rem; }
.btnx { display: inline-flex; align-items: center; min-height: 46px; padding: .6rem 1.3rem; background: var(--blue); color: #fff; border-radius: 8px; font-weight: 600; }
.doors__alt { color: var(--blue); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
@keyframes pop { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.perm { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(1.2rem, 4vw, 2.5rem); align-items: start; }
.perm__card { border: 1px solid var(--line); border-radius: 14px; background: var(--paper); box-shadow: 0 14px 34px -22px rgba(0, 0, 0, .35); overflow: hidden; transition: opacity .3s; }
.perm__card.is-paused { opacity: .62; }
.perm__top { display: flex; gap: .9rem; align-items: center; padding: 1.1rem 1.2rem; border-bottom: 1px solid var(--line); }
.perm__av { width: 2.6rem; height: 2.6rem; border-radius: 10px; background: var(--orange-m); display: grid; place-items: center; font-weight: 700; }
.perm__top h4 { font-size: 1.1rem; font-weight: 700; }
.perm__top p { font-size: .85rem; color: var(--mute); }
.perm__rows li { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .85rem 1.2rem; border-bottom: 1px solid var(--line); }
.perm__rows span { font-weight: 500; }
button.sw { all: unset; box-sizing: border-box; flex: none; width: 3rem; height: 1.7rem; border-radius: 999px; background: #c9c5c0; position: relative; cursor: pointer; transition: background .2s; }
button.sw::after { content: ""; position: absolute; inset: -.55rem -.2rem; }
button.sw i { position: absolute; left: .2rem; top: .2rem; width: 1.3rem; height: 1.3rem; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .3); transition: transform .22s var(--ease); }
button.sw[aria-checked="true"] { background: var(--blue); }
button.sw[aria-checked="true"] i { transform: translateX(1.3rem); }
button.sw:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.perm__foot { display: flex; gap: .6rem; padding: 1rem 1.2rem; background: var(--tint); }
.pill { font: inherit; font-weight: 600; min-height: 44px; padding: .5rem 1.1rem; border-radius: 8px; border: 1px solid #b8b3ad; background: var(--paper); color: var(--ink); cursor: pointer; transition: background .15s, transform .12s; }
.pill:hover { background: var(--tint); }
.pill:active { transform: scale(.97); }
.pill--solid { background: var(--ink); color: #fff; border-color: var(--ink); }
.pill--solid:hover { background: var(--ink-2); }
.perm__status { padding: 1rem 1.2rem; border-radius: 12px; background: var(--green-l); border: 1px solid #cfe9d5; font-weight: 500; min-height: 4.2rem; }
.perm__status.is-warn { background: var(--orange-l); border-color: #f4d3b5; }

/* plan */
.plan { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; counter-reset: p; }
.plan li { counter-increment: p; border: 1px solid var(--line); border-radius: 16px; padding: 1.5rem; display: flex; flex-direction: column; gap: .7rem; position: relative; background: var(--paper); }
.plan li::before { content: counter(p); width: 2rem; height: 2rem; display: grid; place-items: center; background: var(--ink); color: #fff; border-radius: 8px; font-weight: 700; }
.plan p { color: var(--ink-2); }
.metric { margin-top: auto !important; padding-top: .8rem; border-top: 1px dashed var(--line); font-size: .95rem; }
.metric span { display: block; font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--blue); }

/* method */
.method { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); }
.facts { display: grid; gap: .9rem; }
.facts li { padding-left: 1rem; border-left: 3px solid #8cc6ff; line-height: 1.5; color: #e6e4e1; }
.facts b { color: #fff; }
.src { display: grid; gap: .5rem; margin-top: .8rem; }
.src a { display: block; padding: .8rem 1rem; border: 1px solid #55524e; border-radius: 10px; text-decoration: none; font-weight: 500; transition: background .15s, color .15s; min-height: 44px; }
.src a:hover { background: #fff; color: var(--ink); }

.cta { background: var(--blue); color: #fff; padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.cta__grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 2rem; align-items: center; }
.cta h2 { margin-bottom: .6rem; }
.cta p { max-width: 36rem; font-size: 1.1rem; }
.cta__btns { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: flex-end; }
.btn { display: inline-flex; align-items: center; min-height: 48px; padding: .75rem 1.4rem; border-radius: 10px; font-weight: 600; text-decoration: none; border: 2px solid #fff; color: #fff; transition: transform .2s var(--ease), background .15s, color .15s; }
.btn:hover { transform: translateY(-2px); }
.btn--solid { background: #fff; color: var(--blue); }
.foot { background: var(--ink); color: #fff; padding-block: 1.4rem; font-size: .92rem; }
.foot .wrap { display: flex; flex-wrap: wrap; gap: .8rem 2rem; justify-content: space-between; }

.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .55s var(--ease), transform .65s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .doors__chips li { animation: none; }
  button.sw i, .btn:hover { transition: none; transform: none; }
  button.sw[aria-checked="true"] i { transform: translateX(1.3rem); }
}

@media (max-width: 960px) {
  .top__nav { display: none; }
  .hero__grid, .live, .sys, .finding__grid, .finding__grid--rev, .perm, .method, .cta__grid { grid-template-columns: 1fr; }
  .trio, .plan { grid-template-columns: 1fr; }
  .ladder__row { grid-template-columns: 1fr; gap: .3rem; }
  .ladder__row--h { display: none; }
  .cta__btns { justify-content: flex-start; }
}
@media (max-width: 560px) {
  .doors__tabs { display: flex; width: 100%; }
  .doors__tabs button { flex: 1; padding-inline: .4rem; }
  .quad tbody th { width: auto; white-space: normal; }
}

/* embedded in the portfolio popup */
.is-embedded .top { display: none; }
.is-embedded { scroll-padding-top: 1rem; }
