/* WHIPS — one stylesheet for the whole site.
   Light is the default; dark applies when the system asks for it unless the
   visitor picked light, or whenever the visitor picked dark. */

:root {
  color-scheme: light;
  --bg: #f5f3ee;
  --bg-sunk: #ece9e2;
  --surface: #fbfaf7;
  --surface-hi: #ffffff;
  --text: #191816;
  --text-2: #524f49;
  --text-3: #67635b;
  --line: rgba(25, 24, 22, 0.09);
  --line-2: rgba(25, 24, 22, 0.15);
  --focus: #1f5fd6;
  --link: #1d58c4;
  --glow: rgba(255, 255, 255, 0.75);
  --hover: rgba(25, 24, 22, 0.05);
  --glass: rgba(252, 251, 248, 0.62);
  --glass-solid: rgba(252, 251, 248, 0.96);
  --glass-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    inset 0 -1px 0 rgba(25, 24, 22, 0.04),
    0 0 0 0.5px rgba(25, 24, 22, 0.12),
    0 2px 4px rgba(45, 36, 22, 0.05),
    0 12px 30px -12px rgba(45, 36, 22, 0.28);

  --card-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 0 0 1px rgba(25, 24, 22, 0.06),
    0 1px 2px rgba(45, 36, 22, 0.06),
    0 10px 24px -10px rgba(45, 36, 22, 0.14),
    0 28px 60px -28px rgba(45, 36, 22, 0.22);
  --card-shadow-hover:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 0 0 1px rgba(25, 24, 22, 0.07),
    0 2px 4px rgba(45, 36, 22, 0.06),
    0 16px 32px -12px rgba(45, 36, 22, 0.18),
    0 40px 80px -32px rgba(45, 36, 22, 0.28);
  --sunk-shadow:
    inset 0 1px 3px rgba(45, 36, 22, 0.08),
    inset 0 0 0 1px rgba(25, 24, 22, 0.05),
    0 1px 0 rgba(255, 255, 255, 0.8);
  --window-shadow:
    0 0 0 0.5px rgba(0, 0, 0, 0.16),
    0 2px 5px rgba(30, 24, 16, 0.07),
    0 22px 44px -18px rgba(30, 24, 16, 0.3),
    0 60px 110px -40px rgba(30, 24, 16, 0.38);
  --control-bg: linear-gradient(#fdfcfa, #f1eee8);
  --control-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 0 0 1px rgba(25, 24, 22, 0.12),
    0 1px 2px rgba(45, 36, 22, 0.1);
  --primary-bg: linear-gradient(#34332f, #1a1917);
  --primary-text: #fbfaf7;
  --primary-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 0 0 1px rgba(0, 0, 0, 0.55),
    0 2px 4px rgba(30, 24, 16, 0.16),
    0 8px 18px -8px rgba(30, 24, 16, 0.35);

  --wrap: 1160px;
  --gutter: clamp(16px, 4.5vw, 44px);
  --radius-card: 28px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #151514;
  --bg-sunk: #111110;
  --surface: #1d1d1b;
  --surface-hi: #252523;
  --text: #f1efea;
  --text-2: #b8b4ac;
  --text-3: #a09c94;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --focus: #86adff;
  --link: #8fb3ff;
  --glow: rgba(255, 255, 255, 0.045);
  --hover: rgba(255, 255, 255, 0.06);
  --glass: rgba(34, 34, 32, 0.6);
  --glass-solid: rgba(34, 34, 32, 0.97);
  --glass-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.09),
    inset 0 -1px 0 rgba(0, 0, 0, 0.25),
    0 0 0 0.5px rgba(255, 255, 255, 0.1),
    0 2px 6px rgba(0, 0, 0, 0.35),
    0 14px 34px -12px rgba(0, 0, 0, 0.7);
  --card-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    0 0 0 1px rgba(255, 255, 255, 0.06),
    0 1px 2px rgba(0, 0, 0, 0.5),
    0 14px 30px -12px rgba(0, 0, 0, 0.6),
    0 34px 70px -30px rgba(0, 0, 0, 0.75);
  --card-shadow-hover:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 0 0 1px rgba(255, 255, 255, 0.09),
    0 2px 4px rgba(0, 0, 0, 0.5),
    0 20px 40px -14px rgba(0, 0, 0, 0.7),
    0 46px 90px -34px rgba(0, 0, 0, 0.85);
  --sunk-shadow:
    inset 0 1px 4px rgba(0, 0, 0, 0.45),
    inset 0 0 0 1px rgba(255, 255, 255, 0.04),
    0 1px 0 rgba(255, 255, 255, 0.04);
  --window-shadow:
    0 0 0 0.5px rgba(255, 255, 255, 0.16),
    0 2px 6px rgba(0, 0, 0, 0.4),
    0 24px 48px -18px rgba(0, 0, 0, 0.7),
    0 60px 120px -40px rgba(0, 0, 0, 0.8);
  --control-bg: linear-gradient(#2d2d2b, #232321);
  --control-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 0 0 1px rgba(0, 0, 0, 0.6),
    0 1px 2px rgba(0, 0, 0, 0.4);
  --primary-bg: linear-gradient(#fbfaf7, #e2dfd8);
  --primary-text: #191816;
  --primary-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 0 0 1px rgba(0, 0, 0, 0.6),
    0 2px 4px rgba(0, 0, 0, 0.4),
    0 10px 22px -10px rgba(0, 0, 0, 0.7);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #151514;
    --bg-sunk: #111110;
    --surface: #1d1d1b;
    --surface-hi: #252523;
    --text: #f1efea;
    --text-2: #b8b4ac;
    --text-3: #a09c94;
    --line: rgba(255, 255, 255, 0.08);
    --line-2: rgba(255, 255, 255, 0.14);
    --focus: #86adff;
    --link: #8fb3ff;
    --glow: rgba(255, 255, 255, 0.045);
    --hover: rgba(255, 255, 255, 0.06);
    --glass: rgba(34, 34, 32, 0.6);
    --glass-solid: rgba(34, 34, 32, 0.97);
    --glass-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.09),
      inset 0 -1px 0 rgba(0, 0, 0, 0.25),
      0 0 0 0.5px rgba(255, 255, 255, 0.1),
      0 2px 6px rgba(0, 0, 0, 0.35),
      0 14px 34px -12px rgba(0, 0, 0, 0.7);
    --card-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.07),
      0 0 0 1px rgba(255, 255, 255, 0.06),
      0 1px 2px rgba(0, 0, 0, 0.5),
      0 14px 30px -12px rgba(0, 0, 0, 0.6),
      0 34px 70px -30px rgba(0, 0, 0, 0.75);
    --card-shadow-hover:
      inset 0 1px 0 rgba(255, 255, 255, 0.08),
      0 0 0 1px rgba(255, 255, 255, 0.09),
      0 2px 4px rgba(0, 0, 0, 0.5),
      0 20px 40px -14px rgba(0, 0, 0, 0.7),
      0 46px 90px -34px rgba(0, 0, 0, 0.85);
    --sunk-shadow:
      inset 0 1px 4px rgba(0, 0, 0, 0.45),
      inset 0 0 0 1px rgba(255, 255, 255, 0.04),
      0 1px 0 rgba(255, 255, 255, 0.04);
    --window-shadow:
      0 0 0 0.5px rgba(255, 255, 255, 0.16),
      0 2px 6px rgba(0, 0, 0, 0.4),
      0 24px 48px -18px rgba(0, 0, 0, 0.7),
      0 60px 120px -40px rgba(0, 0, 0, 0.8);
    --control-bg: linear-gradient(#2d2d2b, #232321);
    --control-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.08),
      0 0 0 1px rgba(0, 0, 0, 0.6),
      0 1px 2px rgba(0, 0, 0, 0.4);
    --primary-bg: linear-gradient(#fbfaf7, #e2dfd8);
    --primary-text: #191816;
    --primary-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.9),
      0 0 0 1px rgba(0, 0, 0, 0.6),
      0 2px 4px rgba(0, 0, 0, 0.4),
      0 10px 22px -10px rgba(0, 0, 0, 0.7);
  }
}

/* Base ------------------------------------------------------------------ */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--text);
  background:
    radial-gradient(ellipse 90% 60% at 50% -12%, var(--glow), transparent 70%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

main { flex: 1; outline: none; }

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

h1, h2, h3 { margin: 0; font-family: var(--font-display); font-weight: 650; letter-spacing: -0.02em; line-height: 1.15; }
p { margin: 0; }

a { color: var(--link); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

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

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

.wrap {
  width: min(var(--wrap), 100% - 2 * var(--gutter));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 12px; top: -60px;
  z-index: 20;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--surface-hi);
  color: var(--text);
  box-shadow: var(--card-shadow);
}
.skip-link:focus { top: 12px; }

.eyebrow {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
}

/* Header ------------------------------------------------------------------
   Sticky, and "magnetic": at the top of the page it rests flat on the
   background; once the page scrolls it lifts into a floating glass bar with
   a shadow, keeping projects and appearance one click away anywhere. */

html { scroll-padding-top: 96px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  padding-top: 10px;
  pointer-events: none;
}
.site-header__bar {
  pointer-events: auto;
  border-radius: 22px;
  transition: background-color 260ms var(--ease), box-shadow 260ms var(--ease),
    -webkit-backdrop-filter 260ms var(--ease), backdrop-filter 260ms var(--ease), transform 260ms var(--ease);
}
.site-header__inner {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 60px;
  padding-inline: 4px;
  transition: padding 260ms var(--ease);
}
.is-scrolled .site-header__bar {
  background-color: var(--glass);
  -webkit-backdrop-filter: saturate(180%) blur(22px);
  backdrop-filter: saturate(180%) blur(22px);
  box-shadow: var(--glass-shadow);
  transform: translateY(2px);
}
.is-scrolled .site-header__inner { padding-inline: 18px 8px; }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .is-scrolled .site-header__bar { background-color: var(--glass-solid); }
}

.wordmark {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 750;
  letter-spacing: 0.16em;
  color: var(--text);
  text-decoration: none;
  padding: 10px 2px;
  margin-right: auto;
}
.wordmark--small { font-size: 0.9375rem; margin: 0; }

.site-nav a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 10px;
  color: var(--text-2);
  font-weight: 550;
  font-size: 0.9375rem;
  text-decoration: none;
}
.site-nav a img { width: 20px; height: 20px; border-radius: 5px; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.18); }
.site-nav a:hover { color: var(--text); background: var(--hover); }
.site-nav a[aria-current] { color: var(--text); }

/* Appearance: a small tactile three-way switch. Needs script, so it stays
   hidden without it and the page simply follows the system. */
.theme-switch {
  display: none;
  margin: 0 0 0 4px;
  padding: 3px;
  border: 0;
  border-radius: 999px;
  background: var(--bg-sunk);
  box-shadow: var(--sunk-shadow);
}
.js .theme-switch { display: inline-flex; }

.theme-switch__option {
  position: relative;
  display: grid;
  place-items: center;
  width: 36px;
  height: 32px;
  border-radius: 999px;
  color: var(--text-3);
  cursor: pointer;
  transition: color 160ms var(--ease), background 160ms var(--ease), box-shadow 160ms var(--ease);
}
.theme-switch__option svg { width: 18px; height: 18px; }
.theme-switch__option input {
  position: absolute; inset: 0;
  margin: 0; opacity: 0; cursor: pointer;
}
.theme-switch__option:hover { color: var(--text); }
.theme-switch__option:has(input:checked) {
  color: var(--text);
  background: var(--control-bg);
  box-shadow: var(--control-shadow);
}
.theme-switch__option:has(input:focus-visible) {
  outline: 3px solid var(--focus);
  outline-offset: 1px;
}

/* Buttons ---------------------------------------------------------------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  border: 0;
  border-radius: 12px;
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text);
  background: var(--control-bg);
  box-shadow: var(--control-shadow);
  text-decoration: none;
  cursor: pointer;
  transition: transform 120ms var(--ease), box-shadow 160ms var(--ease);
}
.button:hover { text-decoration: none; }
.button:active { transform: translateY(1px); }

.button--primary {
  min-height: 50px;
  padding: 0 26px;
  border-radius: 14px;
  font-size: 1rem;
  color: var(--primary-text);
  background: var(--primary-bg);
  box-shadow: var(--primary-shadow);
}

.link-button {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  cursor: pointer;
}

/* Home ------------------------------------------------------------------ */

.home-hero {
  padding-block: clamp(36px, 6.5vw, 84px) clamp(28px, 4vw, 48px);
}
.home-hero h1 {
  max-width: 15ch;
  font-size: clamp(2.5rem, 6.4vw, 4.75rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.038em;
  text-wrap: balance;
}
.home-hero p {
  margin-top: clamp(16px, 2vw, 24px);
  max-width: 44ch;
  font-size: clamp(1.125rem, 1.7vw, 1.375rem);
  line-height: 1.45;
  color: var(--text-2);
  text-wrap: balance;
}

.projects {
  display: grid;
  grid-template-columns: minmax(0, 2.1fr) minmax(0, 1fr);
  gap: clamp(16px, 2vw, 24px);
  padding-bottom: clamp(64px, 9vw, 120px);
}

.project-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: clamp(420px, 44vw, 520px);
  border-radius: var(--radius-card);
  background: linear-gradient(180deg, var(--surface-hi), var(--surface));
  box-shadow: var(--card-shadow);
  color: inherit;
  text-decoration: none;
  overflow: hidden;
  isolation: isolate;
  transition: box-shadow 220ms var(--ease), transform 220ms var(--ease);
}
a.project-card:hover { box-shadow: var(--card-shadow-hover); transform: translateY(-2px); text-decoration: none; }
a.project-card:focus-visible { outline-offset: 4px; border-radius: var(--radius-card); }

.project-card__head {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: clamp(22px, 3vw, 32px) clamp(22px, 3vw, 32px) 0;
}
.project-card__icon {
  flex: none;
  width: 84px;
  margin: -8px -4px -8px -8px;
}
.project-card__title { font-size: 1.625rem; letter-spacing: -0.025em; }
.project-card__tagline { margin-top: 2px; color: var(--text-2); font-size: 1rem; }
.project-card__meta { margin-top: 6px; color: var(--text-3); font-size: 0.875rem; }
.project-card__go {
  align-self: flex-start;
  margin-left: auto;
  width: 36px; height: 36px;
  flex: none;
  display: grid; place-items: center;
  border-radius: 999px;
  color: var(--text-2);
  background: var(--control-bg);
  box-shadow: var(--control-shadow);
  transition: transform 220ms var(--ease), color 220ms var(--ease);
}
.project-card__go svg { width: 16px; height: 16px; }
a.project-card:hover .project-card__go { transform: translateX(3px); color: var(--text); }

/* Two real captures, overlapped and cut by the card's lower edge. */
.project-card__shots {
  position: relative;
  flex: 1;
  min-height: 230px;
  margin-top: clamp(24px, 3vw, 36px);
  perspective: 1800px;
}
.project-card__shots .shot {
  position: absolute;
  top: 0;
}
.project-card__shots .shot--back {
  right: -4%;
  top: 14px;
  width: 64%;
  transform: rotateY(-10deg) rotateZ(0.6deg);
  transform-origin: 100% 0;
}
.project-card__shots .shot--front {
  left: 7%;
  top: 34px;
  width: 64%;
  transform: rotateY(6deg);
  transform-origin: 0 0;
  transition: transform 320ms var(--ease);
}
a.project-card:hover .project-card__shots .shot--front { transform: rotateY(4deg) translateY(-4px); }

.coming-soon {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-height: clamp(260px, 44vw, 520px);
  border-radius: var(--radius-card);
  background: var(--bg-sunk);
  box-shadow: var(--sunk-shadow);
  color: var(--text-3);
}
.coming-soon__slot {
  width: 64px; height: 64px;
  border-radius: 16px;
  border: 1.5px dashed var(--line-2);
}
.coming-soon__text { font-size: 1rem; font-weight: 600; letter-spacing: -0.01em; }

/* Windows (real captures) --------------------------------------------------- */

.shot img {
  width: 100%;
  height: auto;
  /* Matches the capture's own corner: 52 px on a 2420 × 1858 frame. */
  border-radius: 2.15% / 2.8%;
  box-shadow: var(--window-shadow);
  background: transparent;
}
.shot--editor img { border-radius: 1.54% / 2.22%; }

/* BlankKey --------------------------------------------------------------- */

.bk-hero {
  padding-top: clamp(20px, 3.5vw, 44px);
  text-align: center;
}
.bk-hero__icon {
  width: clamp(96px, 10vw, 120px);
  margin: 0 auto;
}
.bk-hero__name {
  margin-top: 4px;
  font-size: 1.375rem;
  letter-spacing: -0.015em;
}
.bk-hero .eyebrow { margin-top: 6px; }
.bk-hero__headline {
  margin: clamp(16px, 2vw, 24px) auto 0;
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 7vw, 5.25rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.045em;
}
.bk-hero__headline span { display: inline-block; }
.bk-hero__lede {
  max-width: 46rem;
  margin: clamp(16px, 2vw, 24px) auto 0;
  font-size: clamp(1.0625rem, 1.5vw, 1.25rem);
  line-height: 1.5;
  color: var(--text-2);
  text-wrap: balance;
}
.bk-hero__cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: clamp(20px, 2.6vw, 28px);
}
.bk-hero__meta { color: var(--text-3); font-size: 0.9375rem; }
.cta-pending {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-2);
}

/* Showcase: a foreground window that changes state, with two real captures
   behind it in perspective. */
.showcase { padding-top: clamp(32px, 4.5vw, 56px); }

.stage {
  position: relative;
  width: min(1240px, 100% - 2 * var(--gutter));
  margin-inline: auto;
  perspective: 2600px;
  perspective-origin: 50% 30%;
}
.stage__back {
  position: absolute;
  top: 15%;
  width: 49%;
  z-index: 1;
}
.stage__back--left {
  left: 0;
  transform: rotateY(12deg) translateZ(-40px);
  transform-origin: 0 50%;
}
.stage__back--right {
  right: 0;
  top: 2%;
  transform: rotateY(-12deg) translateZ(-40px);
  transform-origin: 100% 50%;
}
.stage__front {
  position: relative;
  z-index: 2;
  width: 60%;
  margin-inline: auto;
  display: grid;
}
.stage__state {
  grid-area: 1 / 1;
  align-self: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 240ms var(--ease), visibility 0s linear 240ms;
}
.stage__state.is-active {
  opacity: 1;
  visibility: visible;
  transition: opacity 240ms var(--ease), visibility 0s;
}
.stage__state--edit { width: 104%; margin-left: -2%; }

.showcase__tabs {
  display: none;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px clamp(8px, 2vw, 22px);
  margin-top: clamp(28px, 4vw, 44px);
}
.js .showcase__tabs { display: flex; }
.showcase__tab {
  position: relative;
  min-height: 44px;
  padding: 0 8px;
  border: 0;
  background: none;
  font: inherit;
  font-size: 0.9875rem;
  font-weight: 550;
  color: var(--text-3);
  cursor: pointer;
  transition: color 160ms var(--ease);
}
.showcase__tab::after {
  content: "";
  position: absolute;
  left: 8px; right: 8px; bottom: 6px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transform: scaleX(0);
  transition: transform 220ms var(--ease);
}
.showcase__tab:hover { color: var(--text); }
.showcase__tab[aria-selected="true"] { color: var(--text); }
.showcase__tab[aria-selected="true"]::after { transform: scaleX(1); }

.showcase__caption {
  min-height: 1.5em;
  margin-top: 6px;
  text-align: center;
  color: var(--text-3);
  font-size: 0.9375rem;
}

.capabilities {
  padding-top: clamp(48px, 7vw, 88px);
  text-align: center;
}
.capabilities h2 { font-size: 0.8125rem; }
.capabilities ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  max-width: 60rem;
  margin: 16px auto 0;
  padding: 0;
  list-style: none;
}
.capabilities li {
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 550;
  color: var(--text-2);
  background: var(--bg-sunk);
  box-shadow: var(--sunk-shadow);
}

.editor {
  padding-top: clamp(80px, 11vw, 150px);
}
.editor__copy { max-width: 38rem; margin-inline: auto; text-align: center; }
.editor__copy h2 {
  margin-top: 10px;
  font-size: clamp(2rem, 4.4vw, 3.25rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.05;
}
.editor__copy p:last-child { margin-top: 16px; color: var(--text-2); font-size: clamp(1.0625rem, 1.4vw, 1.1875rem); text-wrap: pretty; }
.editor__shot {
  width: min(1120px, 100% - 2 * var(--gutter));
  margin: clamp(32px, 5vw, 56px) auto 0;
}

.features {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 40px);
  padding-block: clamp(80px, 10vw, 136px) clamp(64px, 8vw, 104px);
}
.features h3 {
  padding-top: 16px;
  border-top: 1px solid var(--line-2);
  font-size: 1.0625rem;
  letter-spacing: -0.01em;
}
.features p { margin-top: 8px; color: var(--text-2); font-size: 0.96875rem; line-height: 1.55; }

.bk-requirements {
  padding-bottom: clamp(56px, 7vw, 88px);
  text-align: center;
  color: var(--text-3);
  font-size: 0.9375rem;
}

/* Prose pages --------------------------------------------------------------- */

.prose {
  width: min(44rem, 100% - 2 * var(--gutter));
  margin-inline: auto;
  padding-block: clamp(32px, 6vw, 72px) clamp(64px, 8vw, 104px);
}
.prose__head { display: flex; align-items: center; gap: 14px; margin-bottom: 8px; }
.prose__head img { width: 56px; margin: -6px; }
.prose h1 { font-size: clamp(2rem, 4.4vw, 2.75rem); font-weight: 700; letter-spacing: -0.03em; }
.prose h2 { margin-top: 2.2em; font-size: 1.3125rem; letter-spacing: -0.015em; }
.prose h3 { margin-top: 1.6em; font-size: 1.0625rem; }
.prose p, .prose ul, .prose ol { margin-top: 0.85em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: 0.35em; }
.prose .lede { margin-top: 12px; font-size: 1.1875rem; color: var(--text-2); }
.prose .note { color: var(--text-3); font-size: 0.9375rem; }
.prose hr { margin: 2.5em 0; border: 0; border-top: 1px solid var(--line-2); }
.prose table { width: 100%; margin-top: 1em; border-collapse: collapse; font-size: 0.9375rem; }
.prose th, .prose td { padding: 8px 10px 8px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose th { color: var(--text-2); font-weight: 600; }

.contact-card {
  margin-top: 1.2em;
  padding: 20px 22px;
  border-radius: 18px;
  background: linear-gradient(180deg, var(--surface-hi), var(--surface));
  box-shadow: var(--card-shadow);
}
.contact-card p:first-child { margin-top: 0; }
.contact-card a { font-weight: 600; }

/* Footer ------------------------------------------------------------------ */

.site-footer {
  border-top: 1px solid var(--line);
  color: var(--text-3);
  font-size: 0.9375rem;
}
.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 24px;
  padding-block: 20px 28px;
}
.site-footer__mark { margin-right: auto; }
.site-footer__nav { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.site-footer__nav a, .site-footer__nav .link-button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--text-2);
  text-decoration: none;
}
.site-footer__nav a:hover, .site-footer__nav .link-button:hover { color: var(--text); text-decoration: underline; }

/* Consent ------------------------------------------------------------------ */

.consent {
  position: fixed;
  z-index: 30;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  width: min(400px, 100vw - 32px);
  padding: 20px;
  border-radius: 20px;
  background: linear-gradient(180deg, var(--surface-hi), var(--surface));
  box-shadow: var(--card-shadow-hover);
}
.consent[hidden] { display: none; }
.consent__title { font-size: 1rem; }
.consent__text { margin-top: 6px; color: var(--text-2); font-size: 0.9375rem; line-height: 1.5; }
.consent__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }

/* 404 ------------------------------------------------------------------------ */

.not-found { padding-block: clamp(64px, 12vw, 160px); }
.not-found h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); font-weight: 700; letter-spacing: -0.035em; }
.not-found p { margin-top: 14px; color: var(--text-2); font-size: 1.125rem; }

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

@media (max-width: 960px) {
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stage__front { width: 72%; }
  .stage__back { width: 46%; }
}

@media (max-width: 760px) {
  .projects { grid-template-columns: 1fr; }
  .project-card { min-height: 0; }
  .project-card__shots { flex: none; min-height: 0; height: min(58vw, 300px); }
  .project-card__shots .shot--front { width: 78%; left: 4%; }
  .project-card__shots .shot--back { width: 70%; right: -14%; }
  .coming-soon { min-height: 112px; flex-direction: row; }
  .coming-soon__slot { width: 44px; height: 44px; border-radius: 12px; }

  /* Phones: the foreground window alone, as wide as possible; the other
     states stay one tap away in the tabs. */
  .stage { width: calc(100% - 24px); }
  .stage__back { display: none; }
  .stage__front { width: 100%; }
  .stage__state--edit { width: 100%; margin-left: 0; }
}

@media (max-width: 560px) {
  .features { grid-template-columns: 1fr; }
  .project-card__head { gap: 14px; }
  .project-card__icon { width: 72px; }
  .project-card__go { display: none; }
  .showcase__tabs { gap: 0; flex-wrap: nowrap; }
  .showcase__tab { padding: 0 7px; font-size: 0.9375rem; white-space: nowrap; }
  .showcase__tab::after { left: 7px; right: 7px; }
  .theme-switch__option { width: 34px; }
  .bk-hero__headline span { display: block; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  a.project-card:hover,
  a.project-card:hover .project-card__shots .shot--front,
  a.project-card:hover .project-card__go { transform: none; }
}

@media print {
  .site-header .theme-switch, .consent, .showcase__tabs { display: none !important; }
}
