/* ============================================================
   OpenKT landing page
   Warm paper, regular-weight centred headings, and a family of
   public-domain printing-house engravings as the page's material.
   ============================================================ */

:root {
  --ink:        #211f1c;
  --ink-2:      #5f5950;
  --ink-3:      #6a6458;
  --ink-4:      #757063;

  --line:       #e7e2d8;
  --line-2:     #d8d1c4;

  --paper:      #fdfcfa;
  --paper-2:    #f6f3ec;
  --paper-3:    #efeae0;
  --white:      #ffffff;

  --accent:     #b4532a;
  --accent-h:   #91401e;
  --accent-wash:#fbf1ea;

  --k-decision: #b4532a;
  --k-action:   #4f7a4a;
  --k-fact:     #4f6471;
  --k-question: #9b771a;
  --k-howto:    #3a3936;
  --k-idea:     #6e5a8a;

  --sans: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --wrap: 1080px;
  --gut: clamp(20px, 5vw, 44px);
  --sec: clamp(88px, 10vw, 156px);

  --ease: cubic-bezier(.16, 1, .3, 1);
  color-scheme: light;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 40px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* the tooth of the paper everything is printed on */
body::after {
  content: "";
  position: fixed; inset: 0; z-index: 9999;
  pointer-events: none;
  opacity: .5;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.86' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.055'/%3E%3C/svg%3E");
}

h1, h2, h3 { margin: 0; font-weight: 400; letter-spacing: -0.028em; text-wrap: balance; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
kbd { font: inherit; }

/* ---------- browser surfaces ---------- */

::selection { background: #f2dccd; color: #5c2711; }
body { caret-color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

* { scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: var(--paper-2); }
::-webkit-scrollbar-thumb { background: var(--line-2); border: 3px solid var(--paper-2); border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: var(--ink-3); }

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 0.22em; }
a:hover { color: var(--accent-h); }

/* ---------- primitives ---------- */

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut); }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.mono {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-size: 12px;
  letter-spacing: 0.004em;
  color: var(--ink-3);
}

.ico {
  width: 16px; height: 16px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.6;
  stroke-linecap: round; stroke-linejoin: round;
}

h1 { font-size: clamp(2.2rem, 4.3vw, 3.6rem); line-height: 1.08; letter-spacing: -0.036em; }
h2 { font-size: clamp(1.65rem, 2.9vw, 2.4rem); line-height: 1.14; letter-spacing: -0.03em; }
h3 { font-size: clamp(1.25rem, 1.8vw, 1.6rem); line-height: 1.2; letter-spacing: -0.028em; }

.sub {
  font-size: clamp(16px, 1.25vw, 17.5px);
  line-height: 1.6;
  color: var(--ink-2);
  text-wrap: pretty;
}

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

.btn {
  display: inline-flex; align-items: center; gap: 9px;
  height: 48px; padding-inline: 22px;
  border-radius: 26px; border: 1px solid transparent;
  font-size: 15.5px; font-weight: 500; letter-spacing: -0.014em;
  text-decoration: none; white-space: nowrap;
  transition: background-color .2s var(--ease), color .2s var(--ease),
              border-color .2s var(--ease), transform .16s var(--ease),
              box-shadow .2s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn--light {
  background: var(--white); color: var(--ink);
  box-shadow: 0 2px 6px rgba(20,14,8,.18), 0 16px 38px -14px rgba(20,14,8,.46);
}
.btn--light:hover { color: var(--ink); box-shadow: 0 3px 11px rgba(20,14,8,.24), 0 20px 46px -14px rgba(20,14,8,.54); }
.btn--solid { background: var(--accent); color: #fff; }
.btn--solid:hover { background: var(--accent-h); color: #fff; }
.btn--ghost { background: transparent; border-color: var(--line-2); color: var(--ink); }
.btn--ghost:hover { border-color: var(--ink-3); background: var(--paper-2); color: var(--ink); }

/* ============================================================
   hero
   ============================================================ */

.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 100svh;
  padding-top: clamp(58px, 9vh, 96px);
  padding-bottom: clamp(52px, 7vh, 86px);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: #241c13;
}
.hero__wall {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%;
  object-fit: cover; object-position: 62% 38%;
  filter: brightness(1.14) contrast(1.02);
}
.hero__veil {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(130% 88% at 50% 22%, rgba(36,28,19,0) 0%, rgba(36,28,19,.22) 58%, rgba(24,18,12,.58) 100%),
    linear-gradient(180deg, rgba(24,18,12,.38) 0%, rgba(24,18,12,.04) 22%, rgba(24,18,12,.32) 62%, rgba(20,15,10,.68) 100%);
}

/* the mac menu bar doubles as the site nav */
.menubar {
  position: absolute; top: 0; left: 0; right: 0; z-index: 10;
  height: 26px;
  background: rgba(24,18,12,.34);
  backdrop-filter: blur(18px) saturate(1.3);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.menubar__in {
  height: 100%; max-width: 1600px; margin-inline: auto;
  padding-inline: clamp(12px, 2vw, 22px);
  display: flex; align-items: center; gap: 18px;
  color: rgba(255,255,255,.82);
}
.menubar__mark {
  width: 12px; height: 12px; flex: none; border-radius: 50%;
  background: rgba(255,255,255,.9);
  box-shadow: inset 0 0 0 2.5px rgba(36,28,19,.86);
}
.menubar__app { font-size: 12.5px; font-weight: 600; color: #fff; text-decoration: none; letter-spacing: -0.01em; }
.menubar__menus { display: flex; gap: 17px; flex-grow: 1; }
.menubar__menus a { font-size: 12.5px; color: rgba(255,255,255,.82); text-decoration: none; transition: color .16s var(--ease); }
.menubar__menus a:hover { color: #fff; }
.menubar__status { display: flex; align-items: center; gap: 11px; }
.menubar__status .ico { width: 15px; height: 15px; opacity: .85; }
.menubar__status .mono { color: rgba(255,255,255,.88); font-size: 11.5px; }

/* ---------- the machine ---------- */

.mac {
  margin: 0 0 clamp(36px, 5.2vh, 62px);
  width: min(100% - 2 * var(--gut), 660px);
  filter: drop-shadow(0 34px 60px rgba(14,10,6,.56)) drop-shadow(0 4px 10px rgba(14,10,6,.34));
}
.mac__lid {
  background: linear-gradient(168deg, #524c45 0%, #322d28 46%, #23201c 100%);
  border-radius: 13px;
  padding: 9px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.1), inset 0 1px 0 rgba(255,255,255,.16);
}
.mac__screen {
  position: relative;
  border-radius: 5px;
  overflow: hidden;
  background: #0b0a09;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.6);
}
.mac__screen img { width: 100%; }
.mac__base {
  position: relative;
  height: 11px;
  margin-inline: -4.4%;
  border-radius: 0 0 9px 9px;
  background: linear-gradient(180deg, #c9c2b9 0%, #a39b92 34%, #6d6660 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.5), 0 2px 5px rgba(14,10,6,.4);
}
.mac__notchcut {
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 13%; height: 5px;
  background: rgba(30,24,18,.34);
  border-radius: 0 0 6px 6px;
}

.hero__text { text-align: center; color: #fff; }
.hero h1 {
  max-width: 19ch; margin-inline: auto; color: #fff;
  text-shadow: 0 1px 2px rgba(18,12,7,.3), 0 2px 44px rgba(18,12,7,.55);
}
.hero__sub {
  margin: 20px auto 0; max-width: 36em;
  font-size: clamp(15.5px, 1.25vw, 17.5px); line-height: 1.6;
  color: rgba(255,255,255,.84);
  text-shadow: 0 1px 24px rgba(18,12,7,.6);
  text-wrap: pretty;
}
.hero .btn { margin-top: clamp(24px, 3.2vh, 34px); }
.hero__note { margin-top: 15px; font-size: 13px; color: rgba(255,255,255,.7); text-shadow: 0 1px 18px rgba(18,12,7,.6); }

/* ============================================================
   what it does for you
   ============================================================ */

.assure { padding-block: clamp(60px, 7vw, 100px); border-bottom: 1px solid var(--line); }
.assure__in {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 3.6vw, 56px); text-align: center;
}
.assure__col { display: flex; flex-direction: column; align-items: center; }
.assure__col h2 { font-size: 17px; font-weight: 500; letter-spacing: -0.02em; margin-bottom: 9px; }
.assure__col p { font-size: 14.5px; line-height: 1.58; color: var(--ink-2); max-width: 27em; }

.glyph { height: 44px; margin-bottom: 18px; display: flex; align-items: center; }
.glyph svg { height: 38px; width: auto; overflow: visible; }
.g-line   { fill: none; stroke: var(--ink); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.g-arrow  { fill: none; stroke: var(--accent); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.g-bars path { stroke: var(--ink); stroke-width: 2.4; stroke-linecap: round; }
.g-soft   { fill: none; stroke: var(--ink); stroke-width: 1.7; opacity: .45; }

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .assure__col { animation: rise both var(--ease); animation-timeline: view(); animation-range: entry 8% cover 22%; }
    .assure__col:nth-child(2) { animation-range: entry 14% cover 28%; }
    .assure__col:nth-child(3) { animation-range: entry 20% cover 34%; }
    @keyframes rise { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
  }
}

/* ============================================================
   section scaffolding
   ============================================================ */

.sec { padding-block: var(--sec); }
.sec--tint { background: var(--paper-2); border-block: 1px solid var(--line); }

.sec__head { text-align: center; max-width: 780px; }
.sec__head h2 { margin-inline: auto; max-width: 22ch; }
.sec__head .sub { margin: 18px auto 0; max-width: 36em; }

.sec__foot {
  margin-top: clamp(30px, 3.4vw, 44px);
  max-width: 36em; font-size: 15px; line-height: 1.6;
  color: var(--ink-2); text-wrap: pretty;
}
.sec__foot--c { margin-inline: auto; text-align: center; }

/* ---------- the context line ---------- */

.ctx { display: flex; align-items: baseline; gap: clamp(10px, 1.4vw, 18px); padding: 13px 0; border-top: 1px solid var(--line); }
.kind { display: inline-flex; align-items: center; gap: 7px; width: 70px; flex: none; color: var(--ink-2); }
.dot { width: 7px; height: 7px; border-radius: 2px; flex: none; }
.dot--decision { background: var(--k-decision); }
.dot--action   { background: var(--k-action); }
.dot--fact     { background: var(--k-fact); }
.dot--question { background: var(--k-question); }
.dot--howto    { background: var(--k-howto); }
.dot--idea     { background: var(--k-idea); }
.ctx__b { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex-grow: 1; }
.ctx__s { font-size: clamp(14.5px, 1.2vw, 15.5px); line-height: 1.4; letter-spacing: -0.016em; text-wrap: pretty; }
.ctx__m { color: var(--ink-3); }

/* ============================================================
   the reel: one frame, three states, laid down like sheets
   ============================================================ */

.reel { padding-top: var(--sec); }
.reel__head { text-align: center; max-width: 780px; margin-inline: auto; }
.reel__head h2 { margin-inline: auto; max-width: 20ch; }
.reel__head .sub { margin: 18px auto 0; max-width: 36em; }

.reel__track { margin-top: clamp(40px, 4.6vw, 64px); }

.slide { position: sticky; top: 0; height: 100svh; min-height: 560px; }
.slide__plate {
  height: 100%;
  border-radius: 26px 26px 0 0;
  overflow: hidden;
  display: grid; place-items: center;
  background:
    linear-gradient(96deg,
      rgba(251,247,240,.975) 0%,
      rgba(251,247,240,.94) 26%,
      rgba(250,245,236,.7) 46%,
      rgba(249,243,232,.46) 66%,
      rgba(248,242,230,.4) 100%),
    radial-gradient(120% 90% at 78% 50%, rgba(248,242,230,0) 40%, rgba(244,236,222,.5) 100%),
    var(--plate) center/cover no-repeat;
  box-shadow: 0 -2px 0 rgba(255,255,255,.4), 0 -18px 40px -22px rgba(20,14,8,.5);
}
.slide:first-child .slide__plate { box-shadow: none; }

.slide__grid {
  width: 100%; max-width: var(--wrap);
  padding-inline: var(--gut);
  display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
  gap: clamp(28px, 4vw, 64px); align-items: center;
}
.slide__copy h3 { margin-bottom: 14px; max-width: 16ch; }
.slide__copy p { font-size: 15.5px; line-height: 1.62; color: var(--ink-2); max-width: 30em; }

.slide__rail { display: flex; align-items: center; gap: 9px; margin-bottom: 20px; color: var(--ink-4); }
.slide__rail b { font-weight: 500; color: var(--accent); }
.slide__rail i { width: 18px; height: 1px; background: var(--line-2); display: block; }

/* ============================================================
   authored surfaces
   ============================================================ */

.card, .cap, .diff {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 13px;
  box-shadow: 0 1px 3px rgba(20,14,8,.06), 0 22px 48px -28px rgba(20,14,8,.38);
}

.card { padding: 18px clamp(16px, 2vw, 24px) 16px; overflow: hidden; }
.card__ask {
  margin: 0 0 18px auto; width: fit-content; max-width: 86%;
  background: var(--paper-3); border-radius: 16px; padding: 10px 16px;
  font-size: 14.5px; line-height: 1.45; letter-spacing: -0.014em;
}
.card__head { display: flex; align-items: baseline; gap: 10px; padding-bottom: 12px; flex-wrap: wrap; }
.card__brand { font-size: 14px; font-weight: 600; letter-spacing: -0.022em; }
.card__foot { padding-top: 12px; color: var(--ink-4); }

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .ctx--chip { animation: land both var(--ease); animation-timeline: view(); will-change: transform, opacity; }
    .ctx--chip:nth-of-type(1) { animation-range: entry 30% cover 34%; }
    .ctx--chip:nth-of-type(2) { animation-range: entry 38% cover 42%; }
    .ctx--chip:nth-of-type(3) { animation-range: entry 46% cover 50%; }
    @keyframes land {
      from { transform: translateX(-42%); opacity: 0; }
      70%  { opacity: 1; }
      to   { transform: none; opacity: 1; }
    }
  }
}

/* ---------- capture demo ---------- */

.cap { padding: 17px clamp(16px, 2vw, 24px) 15px; }
.cap__bar { display: flex; align-items: center; gap: 13px; }
.cap__key {
  font-family: var(--mono); font-size: 11px; color: var(--ink-2);
  border: 1px solid var(--line-2); border-bottom-width: 2px;
  border-radius: 5px; padding: 2px 8px 1px; background: var(--paper-2); flex: none;
}
.cap__state { color: var(--accent); flex: none; width: 58px; }
.cap__wave { display: flex; align-items: center; justify-content: space-between; height: 30px; flex-grow: 1; min-width: 0; overflow: hidden; }
.cap__wave i {
  display: block; flex: 0 0 2px; height: 100%;
  background: var(--accent); opacity: .5; border-radius: 1px;
  transform: scaleY(var(--h, .3));
}
.cap__wave i:nth-child(8n+1) { --h: .22; }
.cap__wave i:nth-child(8n+2) { --h: .58; }
.cap__wave i:nth-child(8n+3) { --h: .34; }
.cap__wave i:nth-child(8n+4) { --h: .86; }
.cap__wave i:nth-child(8n+5) { --h: .46; }
.cap__wave i:nth-child(8n+6) { --h: .7;  }
.cap__wave i:nth-child(8n+7) { --h: .26; }
.cap__wave i:nth-child(8n)   { --h: .52; }
.cap__wave i:nth-child(5n)   { --h: .92; }
.cap__wave i:nth-child(11n)  { --h: .18; }
.cap__time { color: var(--ink-3); flex: none; }
.cap__said {
  margin-top: 16px; padding-top: 15px; border-top: 1px solid var(--line);
  font-size: 16px; line-height: 1.45; letter-spacing: -0.016em; min-height: 1.45em;
}
.cap__said span { display: inline-block; clip-path: inset(0 0 0 0); }
.cap__filed { margin-top: 15px; padding-top: 14px; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 12px; }
.cap__filed .ctx__s { flex-grow: 1; }
.cap__dest { color: var(--accent); flex: none; }
.cap__note { margin-top: 13px; color: var(--ink-4); }

@media (prefers-reduced-motion: no-preference) {
  .cap__wave i { animation: wave 1.05s ease-in-out infinite alternate; }
  .cap__wave i:nth-child(6n+1) { animation-duration: .82s; }
  .cap__wave i:nth-child(6n+2) { animation-duration: 1.24s; }
  .cap__wave i:nth-child(6n+3) { animation-duration: .96s; }
  .cap__wave i:nth-child(6n+4) { animation-duration: 1.38s; }
  .cap__wave i:nth-child(6n+5) { animation-duration: .74s; }
  .cap__wave i:nth-child(3n)   { animation-delay: -.4s; }
  .cap__wave i:nth-child(5n)   { animation-delay: -.75s; }
  .cap__wave i:nth-child(7n)   { animation-delay: -1.1s; }
  @keyframes wave {
    from { transform: scaleY(calc(var(--h, .3) * .3)); }
    to   { transform: scaleY(clamp(.12, calc(var(--h, .3) * 1.35), 1)); }
  }
  @supports (animation-timeline: view()) {
    .cap__key { animation: keydown both var(--ease); animation-timeline: view(); animation-range: entry 34% cover 16%; }
    @keyframes keydown {
      from { transform: none; border-bottom-width: 2px; background: var(--paper-2); color: var(--ink-2); }
      to   { transform: translateY(1px); border-bottom-width: 1px; background: var(--accent-wash); color: var(--accent); }
    }
    .cap__said span { animation: write both linear; animation-timeline: view(); animation-range: entry 40% cover 30%; }
    @keyframes write { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
    .cap__filed { animation: rise both var(--ease); animation-timeline: view(); animation-range: cover 24% cover 40%; }
  }
}

/* ---------- living page ---------- */

.diff { padding: 20px clamp(18px, 2vw, 26px) 18px; }
.diff__t { font-size: 17px; font-weight: 500; letter-spacing: -0.026em; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.diff__old { padding: 14px 0 0; font-size: 15.5px; line-height: 1.5; letter-spacing: -0.016em; color: var(--ink-4); }
.diff__new { padding: 10px 0 0 14px; font-size: 15.5px; line-height: 1.5; letter-spacing: -0.016em; position: relative; }
.diff__new::before { content: ""; position: absolute; left: 0; top: 19px; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.diff__m { margin-top: 16px; padding-top: 13px; border-top: 1px solid var(--line); color: var(--ink-3); }
s { text-decoration-thickness: 1px; }
sup { font-size: 9px; vertical-align: super; line-height: 0; color: var(--accent); margin-left: 2px; }

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .diff__old s { animation: strike both var(--ease); animation-timeline: view(); animation-range: entry 40% cover 20%; }
    @keyframes strike {
      from { text-decoration-color: transparent; color: var(--ink); }
      to   { text-decoration-color: var(--ink-4); color: var(--ink-4); }
    }
    .diff__new  { animation: rise both var(--ease); animation-timeline: view(); animation-range: cover 10% cover 30%; }
    .diff__new--b { animation-range: cover 18% cover 38%; }
  }
}

/* ============================================================
   access: the study
   ============================================================ */

.study {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; align-items: center;
  min-height: clamp(360px, 42vw, 520px);
  background: var(--paper-3);
  border-block: 1px solid var(--line);
}
.study__img {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%;
  object-fit: cover; object-position: 58% 46%;
}
.study__veil {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(92deg, rgba(250,245,236,.95) 0%, rgba(250,245,236,.86) 34%, rgba(250,245,236,.38) 68%, rgba(250,245,236,.1) 100%);
}
.study__in { padding-block: clamp(58px, 6.6vw, 92px); }
.study__in h2 { max-width: 16ch; }
.study__in p {
  margin-top: 20px; max-width: 34em;
  font-size: clamp(15.5px, 1.25vw, 17px); line-height: 1.62;
  color: var(--ink-2); text-wrap: pretty;
}

/* ---------- the access-filtered search ---------- */

.filter {
  margin: clamp(40px, 4.6vw, 62px) auto 0;
  max-width: 800px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px clamp(18px, 2.4vw, 28px) 16px;
  box-shadow: 0 1px 3px rgba(20,14,8,.05), 0 24px 50px -32px rgba(20,14,8,.3);
}
.filter__q {
  display: flex; align-items: center; gap: 11px;
  font-size: 15.5px; letter-spacing: -0.016em;
  padding-bottom: 14px; border-bottom: 1px solid var(--line);
}
.filter__q .ico { color: var(--ink-3); }
.filter__who { margin-left: auto; color: var(--ink-4); flex: none; }
.filter__n { padding: 13px 0 4px; color: var(--ink-3); }
.filter__n b { font-weight: 500; color: var(--ink); }
.filter__rows .ctx:first-child { border-top-color: var(--line); }
.held {
  display: flex; align-items: center; gap: 10px;
  padding: 13px 0; border-top: 1px solid var(--line);
  background: repeating-linear-gradient(-45deg, transparent 0 6px, var(--paper-2) 6px 12px);
}
.held .ico { width: 13px; height: 13px; color: var(--ink-4); margin-left: 2px; }
.held .mono { color: var(--ink-4); }
.held__sp { margin-left: auto; }
.filter__f { margin-top: 14px; padding-top: 13px; border-top: 1px solid var(--line); color: var(--ink-4); }

/* ============================================================
   works with
   ============================================================ */

.tools {
  margin-top: clamp(36px, 4.2vw, 54px);
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 14px clamp(20px, 2.8vw, 40px);
}
.tools li {
  display: flex; align-items: center; gap: 10px;
  font-size: clamp(16px, 1.5vw, 19px);
  letter-spacing: -0.024em;
  color: var(--ink);
}
.logo {
  width: 21px; height: 21px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.45;
  stroke-linejoin: round; stroke-linecap: round;
  opacity: .88;
}

/* ============================================================
   two ways to run it
   ============================================================ */

.ways {
  margin-top: clamp(40px, 4.6vw, 62px);
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(28px, 3.4vw, 56px);
}
.way { border-top: 1px solid var(--ink); padding-top: 26px; display: flex; flex-direction: column; align-items: flex-start; }
.way h3 { font-size: 1.3rem; font-weight: 500; margin-bottom: 12px; }
.way > p { font-size: 15.5px; line-height: 1.6; color: var(--ink-2); max-width: 34em; }
.way__list { margin: 20px 0 28px; width: 100%; }
.way__list li {
  padding: 11px 0 11px 22px; border-bottom: 1px solid var(--line);
  font-size: 14.5px; line-height: 1.5; color: var(--ink-2); position: relative;
}
.way__list li::before {
  content: ""; position: absolute; left: 2px; top: 19px;
  width: 5px; height: 5px; border-radius: 50%; background: var(--accent);
}
.way .btn { margin-top: auto; }

/* ============================================================
   faq
   ============================================================ */

.faq__list { margin-top: clamp(32px, 3.6vw, 46px); max-width: 800px; border-top: 1px solid var(--line-2); margin-inline: auto; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer;
  padding: 21px 42px 21px 0; position: relative;
  font-size: clamp(16px, 1.3vw, 17.5px); font-weight: 500;
  letter-spacing: -0.02em; line-height: 1.4;
  transition: color .16s var(--ease);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--accent); }
.faq summary::before, .faq summary::after {
  content: ""; position: absolute; top: 50%; background: var(--ink-3);
  transition: transform .26s var(--ease), background-color .16s var(--ease);
}
.faq summary::before { width: 13px; height: 1px; right: 2px; transform: translateY(-50%); }
.faq summary::after  { width: 1px; height: 13px; right: 8px; transform: translateY(-50%); }
.faq details[open] summary::after { transform: translateY(-50%) rotate(90deg); }
.faq summary:hover::before, .faq summary:hover::after { background: var(--accent); }
.faq details p { padding: 0 52px 24px 0; margin-top: -4px; font-size: 15.5px; line-height: 1.66; color: var(--ink-2); max-width: 70ch; }

/* ============================================================
   close + footer
   ============================================================ */

.close {
  padding-block: clamp(84px, 9.5vw, 148px); text-align: center;
  background: linear-gradient(180deg, var(--paper) 0%, var(--accent-wash) 100%);
  border-top: 1px solid var(--line);
}
.close h2 { max-width: 20ch; margin-inline: auto; }
.close .sub { margin: 20px auto 0; max-width: 34em; }
.close .btn { margin-top: 32px; }
.close__note { margin-top: 16px; font-size: 13px; color: var(--ink-3); }

.foot { border-top: 1px solid var(--line); padding-block: clamp(52px, 6vw, 80px) 26px; background: var(--paper); }
.foot__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  gap: 36px clamp(24px, 3.4vw, 52px);
  padding-bottom: 42px;
}
.wordmark { font-size: 17px; font-weight: 600; letter-spacing: -0.024em; }
.foot__tag { margin-top: 9px; font-size: 14px; line-height: 1.6; color: var(--ink-2); max-width: 26em; }
.foot__gh {
  margin-top: 16px; display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 12px; color: var(--ink-3); text-decoration: none;
  transition: color .16s var(--ease);
}
.foot__gh:hover { color: var(--accent); }
.foot__gh .ico { width: 14px; height: 14px; }
.foot__col { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.foot__h { font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-4); font-weight: 400; margin-bottom: 2px; }
.foot__col a { font-size: 14px; color: var(--ink-2); text-decoration: none; transition: color .16s var(--ease); }
.foot__col a:hover { color: var(--accent); }
.foot__legal {
  display: flex; justify-content: space-between; gap: 10px 32px; flex-wrap: wrap;
  padding-top: 22px; border-top: 1px solid var(--line);
}
.foot__legal .mono { color: var(--ink-4); font-size: 11px; }

/* ============================================================
   responsive
   ============================================================ */

@media (max-width: 900px) {
  .assure__in { grid-template-columns: minmax(0, 1fr); gap: 42px; }
  .ways { grid-template-columns: minmax(0, 1fr); gap: 42px; }
  .menubar__menus { display: none; }
  .hero { min-height: 0; padding-block: 64px 74px; }
  .mac { margin-bottom: 42px; }
  .foot__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot__brand { grid-column: 1 / -1; }

  .slide { position: static; height: auto; min-height: 0; }
  .slide__plate {
    border-radius: 20px; box-shadow: none;
    padding-block: clamp(36px, 6vw, 56px);
    background:
      linear-gradient(180deg,
        rgba(251,247,240,.97) 0%,
        rgba(251,247,240,.9) 34%,
        rgba(249,243,232,.62) 70%,
        rgba(248,242,230,.5) 100%),
      var(--plate) center/cover no-repeat;
  }
  .slide + .slide { margin-top: 16px; }
  .slide__grid { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .reel { padding-bottom: var(--sec); }
  .reel__track { display: flex; flex-direction: column; }
}

@media (max-width: 620px) {
  .hero__wall { object-position: 58% 40%; }
  .mac { width: calc(100% - var(--gut)); margin-right: 0; }

  .ctx { align-items: flex-start; }
  .kind { width: 66px; padding-top: 2px; }
  .card__ask { max-width: 100%; }
  .filter__q { flex-wrap: wrap; }
  .filter__who { margin-left: 0; width: 100%; }
  .cap__state { display: none; }

  .study__veil { background: linear-gradient(180deg, rgba(250,245,236,.9) 0%, rgba(250,245,236,.82) 52%, rgba(250,245,236,.94) 100%); }
  .study__in { padding-block: 62px 70px; }

  .faq summary { padding-right: 34px; }
  .faq details p { padding-right: 0; }
  .foot__legal { flex-direction: column; gap: 6px; }
}

@media (max-width: 460px) {
  .btn { width: 100%; justify-content: center; }
  .foot__grid { grid-template-columns: minmax(0, 1fr); }
  .tools { gap: 12px 22px; }
}

@media (min-width: 1440px) { :root { --wrap: 1140px; } }

/* install prompt (close section) */
.install{max-width:640px;margin:40px auto 0;text-align:left}
.install__label{margin:18px 0 8px;font-size:14px;opacity:.8}
.install__code{margin:0;padding:14px 16px;border-radius:10px;border:1px solid rgba(127,127,127,.25);background:rgba(127,127,127,.08);font:13px/1.55 "Geist Mono",ui-monospace,Menlo,monospace;white-space:pre-wrap;word-break:break-word;overflow-x:auto}
.install code{font-family:"Geist Mono",ui-monospace,Menlo,monospace;font-size:13px}
