/* afinar.app — the dark, product-first homepage (design branch).

   The page sits on the recorder's own warm black, so the app's renders blend
   into it. Colours are defined once here and used through the variables. */

:root {
  --d-bg: rgb(16 15 14);
  --d-panel: rgb(29 28 26);
  --d-raised: rgb(36 34 31);
  --d-line: rgb(255 255 255 / 0.08);
  --d-line-strong: rgb(255 255 255 / 0.14);
  --d-ink: rgb(244 240 232);
  --d-ink-2: rgb(244 240 232 / 0.68);
  --d-ink-3: rgb(244 240 232 / 0.46);
  --d-amber: rgb(214 164 58);
  --d-amber-hi: rgb(240 196 98);
  --d-amber-glow: rgb(214 164 58 / 0.22);
  --d-on-amber: rgb(26 20 8);
  --d-radius: 22px;
  --d-radius-sm: 14px;
  --d-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Hanken Grotesk", "Helvetica Neue", sans-serif;
  --d-text: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Hanken Grotesk", "Helvetica Neue", sans-serif;
}

html:has(body.home-dark) { background: var(--d-bg); }
body.home-dark, body.home-dark .page {
  background: var(--d-bg);
  color: var(--d-ink);
  font-family: var(--d-text);
  -webkit-font-smoothing: antialiased;
}
.home-dark a { color: var(--d-amber-hi); }
.home-dark img { display: block; max-width: 100%; height: auto; }

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

/* Header: translucent over the page. */
.home-dark header.nav {
  position: sticky; top: 0; z-index: 50;
  width: 100%; max-width: none; padding-inline: max(var(--s5), (100% - 1120px) / 2);
  background: rgb(16 15 14 / 0.72);
  backdrop-filter: saturate(160%) blur(18px); -webkit-backdrop-filter: saturate(160%) blur(18px);
  border-bottom: thin solid var(--d-line);
}
.home-dark .nav__mark, .home-dark .nav__link { color: var(--d-ink); }
.home-dark .nav__link { color: var(--d-ink-2); }
.home-dark .nav__link:hover { color: var(--d-ink); }
.home-dark .nav .btn--primary, .home-dark .nav__toggle { font-family: var(--d-text); }
.home-dark .nav__toggle { color: var(--d-ink); background: transparent; border-color: var(--d-line-strong); }
@media (max-width: 48em) {
  .home-dark .nav[data-mobile-nav] .nav__links { border-top-color: var(--d-line); }
}

/* Buttons. */
.dk-btn {
  display: inline-flex; align-items: center; gap: var(--s3);
  padding: 14px 26px; border-radius: 999px;
  font: 600 17px/1 var(--d-text); letter-spacing: -0.01em;
  text-decoration: none; transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}
.home-dark .dk-btn--primary { background: var(--d-amber); color: var(--d-on-amber); box-shadow: 0 8px 30px var(--d-amber-glow); }
.home-dark .dk-btn--primary:hover { background: var(--d-amber-hi); color: var(--d-on-amber); transform: translateY(-1px); text-decoration: none; }
.home-dark .dk-btn--ghost { color: var(--d-ink); border: thin solid var(--d-line-strong); }
.home-dark .dk-btn--ghost:hover { color: var(--d-ink); background: rgb(255 255 255 / 0.05); text-decoration: none; }
.home-dark .nav .btn--primary { background: var(--d-amber); color: var(--d-on-amber); border-radius: 999px; }

/* Type. */
.dk-eyebrow {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 6px 14px; border: thin solid var(--d-line-strong); border-radius: 999px;
  font: 500 13px/1.2 var(--d-text); letter-spacing: 0.02em; color: var(--d-ink-2);
  background: rgb(255 255 255 / 0.03);
}
.dk-eyebrow b { color: var(--d-amber-hi); font-weight: 600; }
.dk-h1, .dk-h2, .dk-h3 { font-family: var(--d-display); color: var(--d-ink); margin: 0; max-width: none; text-shadow: none; }
.dk-h1 { font-size: clamp(44px, 7.4vw, 92px); line-height: 1.02; letter-spacing: -0.045em; font-weight: 700; }
.dk-h1 span {
  display: block;
  background: linear-gradient(100deg, var(--d-amber-hi), var(--d-amber) 55%, rgb(196 130 40));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.dk-h2 { font-size: clamp(32px, 4.6vw, 56px); line-height: 1.06; letter-spacing: -0.035em; font-weight: 700; }
.dk-h3 { font-size: 22px; line-height: 1.2; letter-spacing: -0.02em; font-weight: 650; }
.dk-lead { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.5; color: var(--d-ink-2); letter-spacing: -0.01em; }
.dk-body { font-size: 16px; line-height: 1.6; color: var(--d-ink-2); }
.dk-center { text-align: center; }
.dk-center .dk-lead { margin-inline: auto; }

/* Sections. */
.dk-section { padding-block: clamp(80px, 11vw, 150px); }
.dk-section--tight { padding-block: clamp(56px, 7vw, 96px); }
.dk-rule { border-top: thin solid var(--d-line); }

/* Hero. */

/* Room under the hero for its pictures' shadows, which the hero would otherwise cut off in a hard line. */

.dk-hero { position: relative; overflow: hidden; padding-top: clamp(72px, 10vw, 128px); padding-bottom: 120px; text-align: center; }
.dk-hero::before {
  content: ""; position: absolute; inset: auto 50% 0; width: 1100px; height: 900px; translate: -50% 0;
  background: radial-gradient(closest-side, var(--d-amber-glow), transparent 70%);
  pointer-events: none;
}
.dk-hero .dk-h1 { margin-top: 0; }
.dk-hero .dk-lead { max-width: 640px; margin: var(--s6) auto 0; }
.dk-actions { display: flex; flex-wrap: wrap; gap: var(--s4); justify-content: center; margin-top: var(--s7); }
.dk-note { margin-top: var(--s5); font-size: 14px; color: var(--d-ink-3); }
.dk-note a { color: var(--d-ink-2); }

.dk-stage { position: relative; margin: clamp(56px, 7vw, 88px) auto 0; width: min(920px, 100%); height: clamp(420px, 56vw, 640px); }
.dk-shot { border-radius: var(--d-radius); box-shadow: 0 40px 120px rgb(0 0 0 / 0.55), 0 0 0 thin var(--d-line-strong); }
.dk-stage .dk-main { position: absolute; left: 50%; top: 0; width: min(360px, 62%); translate: -42% 0; }
.dk-stage .dk-float { position: absolute; right: 2%; top: 52%; width: min(340px, 46%); }

/* The hero: you, the lesson, and the recorder taking both. Pieces are the app's own renders at 2x. */
.dk-stage.dk-trio { width: min(1040px, 100%); height: auto; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.72fr); grid-template-rows: auto auto;
  gap: var(--s5) clamp(24px, 4vw, 56px); align-items: start; text-align: left; -webkit-mask-image: none; mask-image: none; }
.dk-trio figure { margin: 0; display: flex; flex-direction: column; gap: var(--s3); }
.dk-trio-label { font-size: 17px; line-height: 1.3; letter-spacing: -0.01em; color: var(--d-ink-2); }
.dk-trio-you { grid-column: 1; grid-row: 1; }
.dk-trio-song { grid-column: 1; grid-row: 2; }
.dk-trio-rec { grid-column: 2; grid-row: 1 / span 2; }
.dk-trio-cam { position: relative; aspect-ratio: 992 / 558; border-radius: 2.42% / 4.3%; overflow: hidden; }
.dk-trio-cam img, .dk-trio-cam .dk-timer { position: absolute; inset: 0; width: 100%; height: 100%; }
.dk-trio-cam video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; scale: -1 1; }
.dk-lesson { border-radius: 12px; overflow: hidden; background: rgb(24 23 21); box-shadow: 0 24px 60px rgb(0 0 0 / 0.45), 0 0 0 thin var(--d-line-strong); }
.dk-lesson-bar { display: flex; align-items: center; gap: 7px; height: 30px; padding: 0 12px; background: rgb(36 34 31); font: 500 12px/1 var(--d-text); color: var(--d-ink-3); }
.dk-lesson-bar i { width: 11px; height: 11px; border-radius: 50%; background: rgb(255 255 255 / 0.16); }
.dk-lesson-url { flex: 1; height: 18px; margin-left: 14px; border-radius: 6px; background: rgb(255 255 255 / 0.07); }
.dk-lesson video { display: block; }
.dk-lesson-tab { position: relative; background: rgb(244 239 228); border-top: thin solid rgb(0 0 0 / 0.4); }
.dk-lesson-tab img { display: block; width: 100%; height: auto; }
.dk-lesson-head { position: absolute; top: 8%; bottom: 8%; left: 6.75%; width: 2px; margin-left: -1px; background: rgb(214 70 52); box-shadow: 0 0 6px rgb(214 70 52 / 0.5); }
.dk-live-rec { position: relative; border-radius: 2.75% / 1.59%; overflow: hidden; box-shadow: 0 30px 80px rgb(0 0 0 / 0.5); }
.dk-live-rec img { display: block; width: 100%; height: auto; }
.dk-timer { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.dk-trio-tone { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 13px; color: var(--d-ink-3); }
.dk-trio-tone img { height: 14px; width: auto; }
.dk-stage {
  -webkit-mask-image: linear-gradient(black 50%, transparent 96%);
          mask-image: linear-gradient(black 50%, transparent 96%);
}

/* Statement. */
.dk-statement .dk-h2 { max-width: 900px; margin-inline: auto; }
.dk-statement .dk-lead { max-width: 620px; margin-top: var(--s6); }

/* Steps. */
.dk-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s5); margin-top: clamp(40px, 5vw, 64px); list-style: none; padding: 0; counter-reset: step; }
.dk-step {
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--d-panel); border: thin solid var(--d-line); border-radius: var(--d-radius);
  counter-increment: step;
}
.dk-step-copy { padding: var(--s6) var(--s6) var(--s5); }
.dk-step-copy::before {
  content: counter(step); display: inline-grid; place-items: center;
  width: 28px; height: 28px; margin-bottom: var(--s4); border-radius: 50%;
  font: 600 14px/1 var(--d-text); color: var(--d-on-amber); background: var(--d-amber);
}
.dk-step .dk-body { margin-top: var(--s3); }
.dk-step-shot { margin-top: auto; height: 260px; overflow: hidden; padding: 0 var(--s5); }
.dk-step-shot img { width: 100%; border-radius: var(--d-radius-sm) var(--d-radius-sm) 0 0; box-shadow: 0 0 0 thin var(--d-line-strong); }
.dk-step-shot--center { display: grid; align-items: center; padding-bottom: var(--s5); }
.dk-step-shot--center img { border-radius: var(--d-radius-sm); }

/* Feature grid. */
.dk-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--s5); margin-top: clamp(40px, 5vw, 64px); }
.dk-card {
  position: relative; overflow: hidden;
  background: var(--d-panel); border: thin solid var(--d-line); border-radius: var(--d-radius);
  padding: clamp(28px, 3.4vw, 44px);
}
.dk-card .dk-body { margin-top: var(--s4); max-width: 52ch; }
.dk-card .dk-link { display: inline-block; margin-top: var(--s5); font-weight: 600; }
.dk-span-6 { grid-column: span 6; }
.dk-span-4 { grid-column: span 4; }
.dk-span-3 { grid-column: span 3; }
.dk-span-2 { grid-column: span 2; }
.dk-card--glow::before {
  content: ""; position: absolute; width: 520px; height: 520px; right: -180px; top: -220px;
  background: radial-gradient(closest-side, var(--d-amber-glow), transparent 70%); pointer-events: none;
}
.dk-card--tone { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); gap: var(--s7); align-items: center; }
.dk-card--tone img { border-radius: var(--d-radius-sm); box-shadow: 0 30px 80px rgb(0 0 0 / 0.5), 0 0 0 thin var(--d-line-strong); }
.dk-icon { width: 40px; height: 40px; color: var(--d-amber-hi); margin-bottom: var(--s5); }

/* The apps people practice with: each app's own icon from its own site, in its own colours.
   Spotify is its official mark in Spotify green; the two dark logos sit on a light tile. */
.dk-apps {
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1px;
  margin: clamp(40px, 5vw, 64px) auto 0; padding: 0; list-style: none;
  background: var(--d-line); border: thin solid var(--d-line); border-radius: var(--d-radius); overflow: hidden;
}
.dk-apps li {
  display: grid; place-items: center; min-height: 96px; padding: var(--s4);
  background: var(--d-bg); color: var(--d-ink-2);
  font: 600 15px/1.25 var(--d-text); letter-spacing: -0.01em;
  transition: color 160ms ease, background 160ms ease;
}
.dk-apps li:hover { color: var(--d-ink); background: var(--d-panel); }
.dk-apps li { gap: var(--s3); align-content: center; }
.dk-apps img, .dk-apps .dk-mark-svg { width: 44px; height: 44px; border-radius: 10px; }
.dk-apps .dk-spotify { fill: rgb(30 215 96); border-radius: 0; }
.dk-apps .dk-on-light { background: rgb(255 255 255); padding: 4px; }
.dk-apps span { font-size: 13px; font-weight: 500; color: var(--d-ink-3); }
.dk-apps li:hover span { color: var(--d-ink-2); }
.dk-fine { margin: var(--s5) auto 0; max-width: 62ch; font-size: 13px; line-height: 1.5; color: var(--d-ink-3); }
@media (max-width: 62em) { .dk-apps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Instruments. */
.dk-chips { display: flex; flex-wrap: wrap; gap: var(--s3); justify-content: center; margin-top: var(--s7); padding: 0; list-style: none; }
.dk-chips button {
  padding: 10px 18px; border: thin solid var(--d-line-strong); border-radius: 999px; cursor: pointer;
  color: var(--d-ink-2); font: 500 15px/1.2 var(--d-text); background: rgb(255 255 255 / 0.03);
  transition: color 160ms ease, background 160ms ease, border-color 160ms ease;
}
.dk-chips button:hover { color: var(--d-ink); border-color: rgb(255 255 255 / 0.28); }
.dk-chips button[aria-selected="true"] { color: var(--d-on-amber); background: var(--d-amber); border-color: var(--d-amber); }
.dk-inst-text { min-height: 3.2em; max-width: 620px; margin: var(--s6) auto 0; color: var(--d-ink-2); font-size: 18px; line-height: 1.55; }
.dk-inst-text p { margin: 0; }
.dk-inst-text p:not([hidden]) { animation: dk-inst-in 260ms ease; }
@keyframes dk-inst-in { from { opacity: 0; translate: 0 4px; } }
@media (prefers-reduced-motion: reduce) { .dk-inst-text p { animation: none; } }

/* Questions. */
.dk-faq { max-width: 760px; margin: clamp(32px, 4vw, 48px) auto 0; }
.dk-faq details { border-bottom: thin solid var(--d-line); }
.dk-faq details:first-child { border-top: thin solid var(--d-line); }
.dk-faq summary {
  display: flex; justify-content: space-between; gap: var(--s5); padding: var(--s5) 0;
  font: 600 18px/1.35 var(--d-text); letter-spacing: -0.01em; color: var(--d-ink); cursor: pointer; list-style: none;
}
.dk-faq summary::-webkit-details-marker { display: none; }
.dk-faq summary::after { content: "+"; color: var(--d-ink-3); font-weight: 400; font-size: 22px; transition: rotate 160ms ease; }
.dk-faq details[open] summary::after { rotate: 45deg; }
.dk-faq p { margin: 0 0 var(--s5); color: var(--d-ink-2); line-height: 1.6; max-width: 62ch; }

/* Closing call. */
.dk-cta { position: relative; overflow: hidden; text-align: center; border-radius: 32px; margin-block: 0 clamp(64px, 8vw, 110px); padding: clamp(56px, 8vw, 104px) var(--s6); background: var(--d-panel); border: thin solid var(--d-line); }
.dk-cta::before { content: ""; position: absolute; inset: -40% -10% auto; height: 120%; background: radial-gradient(closest-side, var(--d-amber-glow), transparent 70%); pointer-events: none; }
.dk-cta > * { position: relative; }

/* Footer, darkened. */
.home-dark .footer { background: var(--d-bg); border-top: thin solid var(--d-line); color: var(--d-ink-3); }
.home-dark .footer a, .home-dark .footer .af-consent__settings { color: var(--d-ink-2); }
.home-dark .footer a:hover { color: var(--d-ink); }
.home-dark .footer__head { color: var(--d-ink); }
.home-dark .footer__legal { border-top-color: var(--d-line); color: var(--d-ink-3); }

:focus-visible { outline: 2px solid var(--d-amber-hi); outline-offset: 3px; }

@media (max-width: 62em) {
  .dk-steps { grid-template-columns: 1fr; }
  .dk-step-shot { height: 300px; width: min(440px, 100%); margin-inline: auto; }
  .dk-grid { grid-template-columns: 1fr; }
  .dk-span-6, .dk-span-4, .dk-span-3, .dk-span-2 { grid-column: auto; }
  .dk-card--tone { grid-template-columns: 1fr; }
}
@media (max-width: 40em) {
  .dk-stage { height: 520px; }
  .dk-stage .dk-main { width: 76%; translate: -50% 0; }
  .dk-stage .dk-float { right: 0; width: 70%; top: 60%; }
  .dk-stage.dk-trio { grid-template-columns: 1fr; }
  .dk-trio-you, .dk-trio-song, .dk-trio-rec { grid-column: 1; grid-row: auto; }
  .dk-trio-rec { width: min(360px, 86%); justify-self: center; }
  .dk-actions .dk-btn { width: 100%; justify-content: center; }
}
/* Analogue drawings: amber line art, gently animated. */
.dk-art { display: block; color: var(--d-amber); overflow: visible; }
.dk-art .dk-l, #dk-reel .dk-l { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-opacity: 0.55; stroke-linecap: round; stroke-linejoin: round; }
.dk-art .dk-faint { stroke-opacity: 0.22; }
.dk-art .dk-tape, #dk-reel .dk-tape { fill: currentColor; fill-opacity: 0.08; stroke: currentColor; stroke-opacity: 0.32; stroke-width: 1.2; }
.dk-art .dk-tapeline { fill: none; stroke: currentColor; stroke-opacity: 0.75; stroke-width: 2; }
.dk-art .dk-red { fill: none; stroke: rgb(214 82 60); stroke-width: 3; stroke-opacity: 0.8; }
.dk-art .dk-needle { stroke: var(--d-ink); stroke-width: 1.6; stroke-linecap: round; animation: dk-vu 2.8s ease-in-out infinite; }
.dk-art .dk-needle--slow { animation-duration: 3.6s; }
.dk-art .dk-rec { fill: rgb(220 68 52); animation: dk-blink 1.6s steps(1, end) infinite; }
.dk-art .dk-art-label { font: 500 9px/1 var(--font-mono); letter-spacing: 0.14em; fill: currentColor; fill-opacity: 0.7; }
.dk-art .dk-ring { fill: none; stroke: currentColor; stroke-width: 1.2; transform-box: fill-box; transform-origin: center; animation: dk-ring 3.2s ease-out infinite; }
.dk-art .dk-fader { fill: var(--d-panel); stroke: currentColor; stroke-opacity: 0.7; stroke-width: 1.4; animation: dk-fade var(--dur, 3s) ease-in-out infinite alternate; }
.dk-spin { transform-box: fill-box; transform-origin: center; animation: dk-rot var(--dur, 8s) linear infinite; }

.dk-reel2reel { width: min(560px, 100%); margin: clamp(48px, 6vw, 72px) auto 0; }
.dk-card-vu { position: absolute; right: -24px; bottom: -40px; width: 300px; opacity: 0.55; pointer-events: none; }
.dk-cassette { width: min(260px, 100%); margin-top: var(--s6); }
.dk-mic { width: 92px; margin: 0 auto var(--s6); }
.dk-cta .dk-faders { position: absolute; inset: auto 0 0; width: 100%; height: 150px; opacity: 0.4; pointer-events: none; }
.dk-card--glow > :not(.dk-card-vu) { position: relative; z-index: 1; }

/* The hero's sound waves sit behind everything in it. */
.dk-hero .dk-waves { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none;
  -webkit-mask-image: linear-gradient(transparent, black 18%, black 70%, transparent);
          mask-image: linear-gradient(transparent, black 18%, black 70%, transparent); }
.dk-hero > .dk-wrap { position: relative; z-index: 1; }

/* Film grain in the page's background, behind everything, so text stays crisp. */
body.home-dark .page { background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='.05'/></svg>"), var(--d-bg); }

@keyframes dk-rot { to { transform: rotate(360deg); } }
@keyframes dk-vu {
  0% { transform: rotate(-44deg); } 18% { transform: rotate(-8deg); } 30% { transform: rotate(-26deg); }
  48% { transform: rotate(14deg); } 62% { transform: rotate(-12deg); } 80% { transform: rotate(6deg); } 100% { transform: rotate(-44deg); }
}
@keyframes dk-blink { 0% { opacity: 1; } 50% { opacity: 0.15; } }
@keyframes dk-ring { from { transform: scale(0.85); opacity: 0.5; } to { transform: scale(1.5); opacity: 0; } }
@keyframes dk-fade { from { transform: translateY(-34px); } to { transform: translateY(34px); } }

@media (prefers-reduced-motion: reduce) {
  .home-dark .dk-art *, .home-dark .dk-spin { animation: none !important; }
}
@media (max-width: 62em) { .dk-card-vu { width: 220px; opacity: 0.35; } }
.dk-cta { padding-bottom: 190px; }
.dk-cta .dk-faders { height: 140px; bottom: 18px; opacity: 0.45; }

/* Where a take lands. Equal heights: the portrait column is the landscape's width times (9/16)². */
.dk-shares { display: grid; grid-template-columns: 1.6fr 0.506fr 0.95fr; gap: clamp(20px, 3vw, 40px); align-items: start; margin-top: clamp(48px, 6vw, 72px); }
.dk-share { margin: 0; display: flex; flex-direction: column; gap: var(--s3); }
.dk-share-screen { position: relative; border-radius: var(--d-radius-sm); overflow: hidden; background: rgb(0 0 0);
  box-shadow: 0 24px 60px rgb(0 0 0 / 0.45), 0 0 0 thin var(--d-line-strong); }
.dk-share--land .dk-share-screen { aspect-ratio: 16 / 9; }
.dk-share--port .dk-share-screen { aspect-ratio: 9 / 16; }
.dk-share-screen img, .dk-share-screen video { display: block; width: 100%; height: 100%; object-fit: cover; }
/* Stills of a posted take, dressed as the places it goes: a video site's player bar, and a short-video app's overlay. No logos. */

.dk-share-screen.dk-yt { aspect-ratio: 16 / 9; }
.dk-share-fill { width: 38%; }
.dk-share-dot { left: 38%; }
.dk-reel::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to bottom, rgb(0 0 0 / 0.35), transparent 22%, transparent 52%, rgb(0 0 0 / 0.65)); }
.dk-reel > :not(img) { position: absolute; z-index: 1; margin: 0; color: rgb(255 255 255); }
.dk-reel svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.dk-reel-top { top: 10px; left: 12px; right: 12px; display: flex; justify-content: space-between; align-items: center; font: 700 15px/1 var(--d-text); }
.dk-reel-top svg { width: 20px; height: 20px; }
.dk-reel-side { right: 8px; bottom: 70px; display: flex; flex-direction: column; gap: 16px; }
.dk-reel-side svg { width: 22px; height: 22px; }
.dk-reel-side circle { fill: currentColor; stroke: none; }
.dk-reel-foot { left: 10px; right: 42px; bottom: 10px; display: grid; gap: 5px; }
.dk-reel-foot p { margin: 0; }
.dk-reel-who { display: flex; align-items: center; gap: 6px; font-size: 12px; }
.dk-reel-who .dk-share-avatar { width: 22px; height: 22px; }
.dk-reel-follow { padding: 2px 8px; border: 1px solid rgb(255 255 255 / 0.75); border-radius: 6px; font-size: 11px; font-weight: 600; }
.dk-reel-cap { font-size: 12px; line-height: 1.35; }
.dk-reel-audio { font-size: 11px; opacity: 0.9; }

.dk-share-meta { display: flex; gap: var(--s3); align-items: flex-start; }
.dk-share-avatar { flex: none; width: 32px; height: 32px; border-radius: 50%; background: linear-gradient(135deg, var(--d-amber), rgb(120 84 30)); }
.dk-share-meta p { margin: 0; display: flex; flex-direction: column; gap: 2px; font-size: 15px; line-height: 1.3; color: var(--d-ink); }
.dk-share-meta span { font-size: 13px; color: var(--d-ink-3); }
.dk-chat { display: flex; flex-direction: column; gap: var(--s2); padding: var(--s5) var(--s4); border-radius: var(--d-radius-sm); background: var(--d-panel);
  box-shadow: 0 0 0 thin var(--d-line-strong); }
.dk-bubble { margin: 0; max-width: 86%; padding: 9px 13px; border-radius: 18px; font-size: 14px; line-height: 1.35; }
.dk-bubble--me { align-self: flex-end; background: rgb(214 164 58 / 0.18); color: var(--d-ink); border-bottom-right-radius: 6px; }
.dk-bubble--them { align-self: flex-start; background: rgb(255 255 255 / 0.08); color: var(--d-ink); border-bottom-left-radius: 6px; }
.dk-bubble--video { position: relative; padding: 0; overflow: hidden; width: 86%; aspect-ratio: 16 / 9; }
.dk-bubble--video img { display: block; width: 100%; height: 100%; object-fit: cover; }
.dk-share-dur { position: absolute; right: 8px; bottom: 8px; padding: 2px 6px; border-radius: 6px; background: rgb(0 0 0 / 0.6);
  font: 500 11px/1.2 var(--font-mono); color: rgb(255 255 255); }
.dk-share figcaption { order: -1; font: 500 11px/1.2 var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--d-ink-3); }
.dk-share-note { margin-top: clamp(32px, 4vw, 48px); font-size: 15px; color: var(--d-ink-3); }
@media (max-width: 860px) {
  .dk-shares { grid-template-columns: 1fr; gap: var(--s7); }
  .dk-share--port { width: min(260px, 64%); justify-self: center; }
}

/* What the camera sees, in See your hands. */
.dk-camview { position: relative; margin: var(--s6) 0 0; border-radius: var(--d-radius-sm); overflow: hidden; box-shadow: 0 24px 60px rgb(0 0 0 / 0.45), 0 0 0 thin var(--d-line-strong); }
.dk-camview img { display: block; width: 100%; height: auto; }
.dk-camview-rec {
  position: absolute; left: 10px; top: 10px; display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 9px; border-radius: 999px; background: rgb(0 0 0 / 0.55);
  font: 600 10px/1 var(--font-mono); letter-spacing: 0.12em; color: rgb(255 255 255);
}
.dk-camview-rec::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: rgb(226 64 50); animation: dk-blink 1.6s steps(1, end) infinite; }
@media (prefers-reduced-motion: reduce) { .dk-camview-rec::before { animation: none; } }

/* Studio in the background: faint, oversized fragments of gear behind the content,
   partly off the edges and fading out. Never part of the content. */
.dk-main { position: relative; }
.dk-main > section, .dk-main > .dk-wrap { position: relative; z-index: 1; }
.dk-ambient { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; color: var(--d-amber); }
.dk-amb { position: absolute; display: block; opacity: 0.06;
  -webkit-mask-image: radial-gradient(closest-side, black 35%, transparent);
          mask-image: radial-gradient(closest-side, black 35%, transparent); }
.dk-amb-l { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.dk-amb-needle { stroke: var(--d-ink); stroke-width: 3; stroke-linecap: round; transform: rotate(-46deg); }
.dk-amb-led { transform-box: fill-box; transform-origin: bottom; transform: scaleY(0.2); }
.dk-amb-fader { fill: currentColor; }
.dk-amb-spin { transform-box: fill-box; transform-origin: center; animation: dk-rot 90s linear infinite; }

.dk-amb-reel1 { width: 820px; right: -300px; top: 13%; opacity: 0.055; }
.dk-amb-vu { width: 760px; left: -180px; top: 31%; opacity: 0.07; }
.dk-amb-leds { width: 360px; right: -60px; top: 50%; opacity: 0.08; }
.dk-amb-faders { width: 680px; left: -160px; top: 67%; opacity: 0.06; }
.dk-amb-reel2 { width: 640px; right: -260px; top: 83%; opacity: 0.05; }
.dk-amb-reel2 .dk-amb-spin { animation-duration: 120s; animation-direction: reverse; }

@keyframes dk-led { from { transform: scaleY(0.25); } to { transform: scaleY(1); } }
@media (max-width: 62em) { .dk-amb { opacity: 0.04; } .dk-amb-leds { display: none; } }
@media (prefers-reduced-motion: reduce) { .dk-ambient * { animation: none !important; } }

/* The tone library partner's mark in the tone card. */
.dk-partner { display: inline-block; margin-top: var(--s6); }
.dk-partner img { width: 210px; height: auto; }
.dk-links { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s6); }
.dk-links .dk-link { margin-top: var(--s5); }

/* The headline in the site's serif. */
.dk-h1 {
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  font-weight: 560; letter-spacing: -0.025em; line-height: 1.04;
  font-variation-settings: "opsz" 144, "SOFT" 40, "WONK" 0;
}

/* Live meters, drawn over the screenshots' own meters. */
.dk-step-shot { position: relative; }
.dk-meter { position: absolute; pointer-events: none; }

/* The page pulses with the beat (--beat runs 0 to 1 on every kick). */
:root { --beat: 0; }
.dk-hero::before { opacity: calc(0.7 + 0.5 * var(--beat)); }
.home-dark .dk-btn--primary, .home-dark .nav .btn--primary { box-shadow: 0 8px calc(26px + 30px * var(--beat)) var(--d-amber-glow); }
.dk-ambient { opacity: calc(0.75 + 0.4 * var(--beat)); }
.dk-cta::before, .dk-card--glow::before { opacity: calc(0.7 + 0.45 * var(--beat)); }

/* The gradient fills only the line's box, so give descenders room without moving the layout. */
.dk-h1 span { padding-bottom: 0.14em; margin-bottom: -0.14em; }

/* The lesson as a video page: player with the tab, a red progress bar and plain white controls. */
.dk-yt { position: relative; aspect-ratio: 16 / 9; background: rgb(0 0 0); overflow: hidden; }
.dk-yt video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.dk-yt .dk-lesson-tab { position: absolute; left: 0; right: 0; bottom: 36px; }
.dk-yt-controls { position: absolute; left: 0; right: 0; bottom: 0; height: 36px; padding: 0 12px; background: rgb(0 0 0 / 0.6); }
.dk-yt-track { position: relative; height: 3px; background: rgb(255 255 255 / 0.3); }
.dk-yt-fill { position: absolute; inset: 0 auto 0 0; width: 44%; background: rgb(214 70 52); }
.dk-yt-dot { position: absolute; left: 44%; top: 50%; width: 11px; height: 11px; margin: -5.5px 0 0 -5.5px; border-radius: 50%; background: rgb(214 70 52); }
.dk-yt-row { display: flex; align-items: center; gap: 12px; height: 30px; color: rgb(255 255 255); }
.dk-yt-row svg { width: 18px; height: 18px; fill: currentColor; }
.dk-yt-time { font: 500 11px/1 var(--d-text); }
.dk-yt-gap { flex: 1; }

/* Teenage-Engineering-minded sections: flat colour, hard edges, visible structure, labels like a manual. */
:root { --te-yellow: rgb(228 184 70); --te-ink: rgb(20 18 14); --te-ink-2: rgb(20 18 14 / 0.72); }
.te-label { display: flex; align-items: center; gap: 10px; margin: 0; font: 600 11px/1 var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--d-ink-3); }
.te-key { display: inline-grid; place-items: center; min-width: 26px; height: 20px; padding: 0 5px; border-radius: 3px;
  background: var(--d-amber); color: var(--d-on-amber); letter-spacing: 0.04em; }

.te-yellow { background: var(--te-yellow); color: var(--te-ink); padding-block: clamp(72px, 9vw, 120px); }
.te-yellow .te-label { color: var(--te-ink); }
.te-yellow .te-key { background: var(--te-ink); color: var(--te-yellow); }
.te-head { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: var(--s3) var(--s6); padding-bottom: var(--s5); border-bottom: 2px solid var(--te-ink); }
.te-head .te-label:first-child { grid-column: 1 / -1; }
.te-h2 { margin: 0; font-family: var(--d-text); font-size: clamp(40px, 6vw, 80px); line-height: 0.95; letter-spacing: -0.045em; font-weight: 750; color: var(--te-ink); }
.te-head-note { justify-self: end; padding-bottom: 8px; }
.te-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; }
.te-step { display: flex; flex-direction: column; gap: var(--s3); padding: var(--s6) var(--s6) 0; border-left: 1px solid var(--te-ink); }
.te-step:first-child { border-left: 0; padding-left: 0; }
.te-step:last-child { padding-right: 0; }
.te-h3 { margin: var(--s3) 0 0; font-family: var(--d-text); font-size: 24px; line-height: 1.15; letter-spacing: -0.02em; font-weight: 700; color: var(--te-ink); }
.te-body { margin: 0; font-size: 16px; line-height: 1.55; color: var(--te-ink-2); max-width: 36ch; }

/* Each step shows the one part of the app it's about, cut to that card, centred in a band of equal height. */

.te-steps .te-shot { display: grid; align-items: center; height: auto; min-height: 200px; margin-top: auto; padding: var(--s5) 0; overflow: visible; }
.te-steps .te-shot img { border-radius: 8px; box-shadow: 0 0 0 1px var(--te-ink), 0 12px 28px rgb(20 18 14 / 0.25); }
@media (max-width: 1099px) and (min-width: 861px) {
  .te-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .te-step:nth-child(odd) { border-left: 0; padding-left: 0; }
  .te-step:nth-child(even) { padding-right: 0; }
  .te-step:nth-child(n + 3) { border-top: 1px solid var(--te-ink); margin-top: var(--s6); }
}

.te-grid { gap: 0; border-top: 1px solid var(--d-line-strong); border-left: 1px solid var(--d-line-strong); }
.te-grid .dk-card { border: 0; border-right: 1px solid var(--d-line-strong); border-bottom: 1px solid var(--d-line-strong); border-radius: 0; background: transparent; }
.te-grid .dk-card > .te-label:first-child, .te-grid .dk-card--tone .te-label { margin-bottom: var(--s6); }
.te-grid .dk-icon { display: none; }
.te-grid .dk-camview { border-radius: 4px; box-shadow: none; outline: 1px solid var(--d-line-strong); }
.te-grid .dk-card--tone img { border-radius: 4px; box-shadow: none; outline: 1px solid var(--d-line-strong); }

@media (max-width: 860px) {
  .te-head { grid-template-columns: 1fr; }
  .te-head-note { justify-self: start; }
  .te-steps { grid-template-columns: 1fr; }
  .te-step, .te-step:first-child { border-left: 0; padding: var(--s6) 0 0; border-top: 1px solid var(--te-ink); }
  .te-step:first-child { border-top: 0; }
}



/* Before your first note, as two flowcharts drawn like a manual: the usual way's loops beside Afinar's three steps. */
.fc-wrap { width: min(1000px, 100%); margin: clamp(48px, 6vw, 80px) auto 0; }
.fc { display: block; width: 100%; height: auto; color: var(--d-ink, rgb(244 240 232)); }
.fc .fc-n { fill: none; stroke: currentColor; stroke-width: 1.5; }
.fc .fc-d { fill: var(--d-bg, rgb(16 15 14)); }
.fc .fc-n.fc-rec, .fc .fc-n.fc-rec-a { fill: none; stroke: rgb(226 72 54); stroke-width: 2; }
.fc .fc-a { stroke: var(--fc-accent, rgb(214 164 58)); fill: rgb(214 164 58 / 0.12); }
.fc .fc-t { fill: currentColor; font: 600 10.5px/1 "JetBrains Mono", ui-monospace, monospace; letter-spacing: 0.06em; text-anchor: middle; dominant-baseline: central; }
.fc .fc-ta { fill: var(--d-amber-hi, rgb(240 196 98)); }
.fc .fc-rec + .fc-t, .fc .fc-rec-a + .fc-t { fill: rgb(236 92 72); }
.fc .fc-l { fill: none; stroke: currentColor; stroke-width: 1.5; opacity: 0.8; }
.fc .fc-la { stroke: var(--fc-accent, rgb(214 164 58)); opacity: 1; }
.fc .fc-loop { stroke-dasharray: 4 4; opacity: 0.6; }
.fc .fc-k { fill: currentColor; opacity: 0.55; font: 500 10px/1 "JetBrains Mono", ui-monospace, monospace; letter-spacing: 0.1em; }
.fc .fc-h { fill: currentColor; font: 700 12px/1 "JetBrains Mono", ui-monospace, monospace; letter-spacing: 0.16em; }
.fc .fc-ha { fill: var(--d-amber-hi, rgb(240 196 98)); }
.fc .fc-rule { stroke: currentColor; stroke-width: 1; opacity: 0.25; }
.fc-phone { display: none; }
@media (max-width: 640px) { .fc-wrap .fc:not(.fc-phone) { display: none; } .fc-wrap .fc-phone { display: block; } }

/* The download page, in the homepage's design: a card per platform, then three steps. */
.dk-dl-page .dk-hero { padding-bottom: clamp(48px, 6vw, 80px); }
.dk-dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; margin: clamp(40px, 5vw, 64px) auto 0; width: min(880px, 100%); text-align: left;
  border-top: 1px solid var(--d-line-strong); border-left: 1px solid var(--d-line-strong); }
.dk-dl-card { display: flex; flex-direction: column; align-items: flex-start; gap: var(--s5); padding: clamp(24px, 3vw, 40px);
  border-right: 1px solid var(--d-line-strong); border-bottom: 1px solid var(--d-line-strong); }
.dk-dl-card .dk-note { margin: 0; }
.home-dark .dk-btn--off { color: var(--d-ink-3); border: thin dashed var(--d-line-strong); cursor: default; box-shadow: none; }
.dk-notify { display: grid; gap: var(--s3); width: 100%; }
.dk-notify-label { font: 600 13px/1.2 var(--d-text); color: var(--d-ink); }
.dk-notify-row { display: flex; gap: var(--s3); }
.dk-notify input[type="email"] { flex: 1; min-width: 0; height: 48px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--d-line-strong);
  background: rgb(255 255 255 / 0.04); color: var(--d-ink); font: 400 16px/1 var(--d-text); }
.home-dark .dk-notify button.dk-btn--ghost { background: transparent; color: var(--d-ink); font: 600 16px/1 var(--d-text); padding: 0 22px; height: 48px; cursor: pointer; white-space: nowrap; }
.home-dark .dk-notify button.dk-btn--ghost:hover { background: rgb(255 255 255 / 0.06); }
.dk-notify input[type="email"]:focus { outline: 2px solid var(--d-amber-hi); outline-offset: 2px; }
.dk-dl-head { margin-bottom: var(--s6); border-bottom-color: var(--d-line-strong); }
.dk-dl-head .te-label { color: var(--d-ink-2); }
.dk-dl-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s6); margin: 0 0 var(--s6); padding: 0; list-style: none; }
.dk-dl-steps li { display: grid; gap: var(--s3); align-content: start; }
@media (max-width: 760px) {
  .dk-dl, .dk-dl-steps { grid-template-columns: 1fr; }
  .dk-notify-row { flex-direction: column; }
  .dk-notify input[type="email"] { flex: none; }
  .home-dark .dk-notify button.dk-btn--ghost { justify-content: center; }
}

/* Notify me at launch, in a small dialog. */
.dk-modal { width: min(460px, calc(100% - 32px)); padding: 0; border: 1px solid var(--d-line-strong); border-radius: var(--d-radius-sm); background: var(--d-panel); color: var(--d-ink); }
.dk-modal::backdrop { background: rgb(0 0 0 / 0.6); backdrop-filter: blur(4px); }
.dk-modal .dk-notify { position: relative; padding: clamp(24px, 4vw, 36px); gap: var(--s4); }
.dk-modal .dk-h3 { margin: 0; }
.dk-modal .dk-notify-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.dk-modal .dk-note { margin: 0; line-height: 1.5; }
.dk-modal-close { position: absolute; top: 12px; right: 12px; width: 32px; height: 32px; border: 0; border-radius: 50%; background: transparent; color: var(--d-ink-3); font: 400 22px/1 var(--d-text); cursor: pointer; }
.dk-modal-close:hover { color: var(--d-ink); background: rgb(255 255 255 / 0.06); }
.home-dark .dk-modal .dk-notify-row .dk-btn--primary { height: 48px; padding: 0 22px; border: 0; cursor: pointer; white-space: nowrap; justify-content: center; }
.dk-modal:focus, .dk-modal:focus-visible { outline: none; }
.dk-dl-win { display: inline-flex; flex-direction: column; align-items: center; gap: var(--s3); }
.dk-dl-win .dk-link { margin: 0; font-size: 14px; font-weight: 500; }
.dk-dl .dk-dl-card { align-items: center; text-align: center; }
.dk-dl-more { padding-top: var(--s4); }
.dk-dl-steps { margin-bottom: 0; }
.dk-notify-box { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.4; color: var(--d-ink-2); cursor: pointer; }
.dk-notify-box input { flex: none; width: 16px; height: 16px; margin: 3px 0 0; accent-color: var(--d-amber); }
.dk-notify-box input:focus-visible { outline: 2px solid var(--d-amber-hi); outline-offset: 2px; }

/* The cookie banner takes the dark tokens on every dark page, the homepage and download included. */

.home-dark .af-consent {
  --paper-raised: var(--d-panel);
  --ink: var(--d-ink);
  --ink-secondary: rgb(244 240 232 / 0.74);
  --ink-tertiary: var(--d-ink-3);
  --hairline: var(--d-line-strong);
  --amber: var(--d-amber);
}

/* The site has no motion: nothing animates, fades in or loops. Hover colour changes stay. */

.home-dark *, .home-dark *::before, .home-dark *::after { animation: none !important; }
.dk-trio-cam .dk-cam-still { object-fit: cover; scale: -1 1; }
.dk-yt > .dk-yt-still { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
