/* ============================================================
   Fonts (self-hosted Archivo variable: wght 100-900, wdth 62-125)
   ============================================================ */
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("fonts/archivo-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("fonts/archivo-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ============================================================
   Tokens
   ============================================================ */
:root {
  --bg: #0a0a09;
  --surface: #131311;
  --surface-2: #1a1a17;
  --line: rgba(244, 241, 235, 0.14);
  --line-soft: rgba(244, 241, 235, 0.08);
  --ink: #f4f1eb;
  --ink-muted: #b3ada0;
  --accent: #ff6b2c;
  --accent-ink: #140a05;
  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --pad-x: clamp(1.25rem, 4vw, 4rem);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  caret-color: var(--accent);
}

::selection {
  background: var(--accent);
  color: var(--accent-ink);
}

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

html {
  scrollbar-width: thin;
  scrollbar-color: var(--surface-2) var(--bg);
}

body::-webkit-scrollbar {
  width: 10px;
}

body::-webkit-scrollbar-thumb {
  background: var(--surface-2);
  border-radius: 5px;
}

body::-webkit-scrollbar-track {
  background: var(--bg);
}

a {
  color: inherit;
}

h1,
h2,
h3,
p {
  margin: 0;
}

/* honeypot field: off-canvas, never shown */
.hp {
  position: absolute;
  left: -9999px;
}

/* Language switching: markup carries both languages */
.tr { display: none; }
html[data-lang="tr"] .tr { display: inline; }
html[data-lang="tr"] .en { display: none; }

/* ============================================================
   Topbar
   ============================================================ */
.topbar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 1.1rem var(--pad-x);
  position: relative;
  z-index: 30; /* the GitHub submenu must float above the hero */
}

.topnav {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 3vw, 2.5rem);
}

.nav-btn {
  appearance: none;
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  cursor: pointer;
}

/* ============================================================
   Video popup
   ============================================================ */
.video-modal {
  width: min(92vw, 60rem);
  padding: 0;
  border: 1px solid var(--line-soft);
  border-radius: 20px;
  background: var(--surface-2);
  color: var(--ink);
  box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.9);
  overflow: hidden;
}

.video-modal::backdrop {
  background: rgba(10, 10, 9, 0.88);
}

.video-modal video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.video-close {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  z-index: 1;
  width: 2.4rem;
  height: 2.4rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  background: rgba(10, 10, 9, 0.7);
  color: var(--ink);
  cursor: pointer;
  transition: background-color 0.25s ease, color 0.25s ease;
}

.video-close:hover {
  background: var(--accent);
  color: var(--accent-ink);
}

.video-caption {
  padding: 0.9rem 1.25rem 0.4rem;
  font-size: 0.875rem;
  color: var(--ink-muted);
}

.video-disclaimer {
  padding: 0 1.25rem 1rem;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--ink-muted);
  border-top: 1px solid var(--line-soft);
  padding-top: 0.7rem;
  margin: 0 1.25rem 0;
  padding-left: 0;
  padding-right: 0;
}

.video-disclaimer b {
  color: var(--ink);
  font-weight: 600;
}

/* explicit consent on the form */
.consent-check {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  margin: 0.2rem 0 1rem;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--ink-muted);
}

.consent-check input {
  width: 1rem;
  height: 1rem;
  margin-top: 0.2rem;
  accent-color: var(--accent);
  flex-shrink: 0;
}

.consent-check a {
  color: var(--ink);
  text-underline-offset: 0.2em;
}

.consent-check input[aria-invalid="true"] {
  outline: 2px solid #ff4d3d;
  outline-offset: 2px;
}

/* footer: plain-text site summary (for readers and for AI assistants) */
.site-summary {
  max-width: 64rem;
  padding-bottom: 1.5rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--line-soft);
}

.site-summary h2 {
  font-variation-settings: "wdth" 116;
  font-weight: 620;
  font-size: 1rem;
  color: var(--ink);
  margin-bottom: 0.5rem;
}

.site-summary p {
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--ink-muted);
}

.site-disclaimer {
  margin-top: 0.6rem;
}

.footer-line {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}

.footer-line a {
  color: var(--ink-muted);
  text-underline-offset: 0.25em;
}

.footer-line a:hover {
  color: var(--ink);
}

/* legal page */
.legal {
  padding: clamp(2rem, 6vh, 4rem) var(--pad-x) clamp(3rem, 8vh, 6rem);
  max-width: 52rem;
}

.legal-updated {
  color: var(--ink-muted);
  font-size: 0.875rem;
  margin: -1.5rem 0 2rem;
}

.legal h2 {
  font-variation-settings: "wdth" 116;
  font-weight: 620;
  font-size: 1.25rem;
  margin: 2rem 0 0.6rem;
}

.legal p,
.legal li {
  color: var(--ink-muted);
  line-height: 1.6;
}

.legal ul {
  padding-left: 1.2rem;
  display: grid;
  gap: 0.6rem;
}

.legal a {
  color: var(--ink);
  text-underline-offset: 0.2em;
}

html[data-lang="tr"] .legal div.tr,
.legal div.en {
  display: block;
}

html[data-lang="tr"] .legal div.en {
  display: none;
}

/* ============================================================
   Google gate
   ============================================================ */
.gate-modal {
  width: min(92vw, 30rem);
}

.gate-body {
  padding: clamp(1.75rem, 4vw, 2.5rem);
}

.gate-title {
  font-variation-settings: "wdth" 118;
  font-weight: 630;
  font-size: 1.375rem;
  letter-spacing: -0.015em;
  margin-bottom: 0.8rem;
  padding-right: 2.5rem;
}

.gate-text {
  color: var(--ink-muted);
  display: none;
}

.gate-modal[data-content="masterclass"] .gate-text[data-content="masterclass"],
.gate-modal[data-content="saphire"] .gate-text[data-content="saphire"] {
  display: block;
}

.gate-form {
  margin-top: 1.1rem;
}

.gate-form .field {
  margin-top: 0.8rem;
}

.gate-form .consent-check {
  margin-top: 0.9rem;
}

.gate-submit {
  width: 100%;
  margin-top: 1rem;
}

.gate-status {
  margin-top: 0.9rem;
  font-size: 0.9375rem;
  font-weight: 600;
  min-height: 1.4em;
}

.gate-status[data-state="error"] {
  color: #ff8d81;
}

.gate-status[data-state="ok"] {
  color: var(--accent);
}

.gate-fine {
  margin-top: 1.1rem;
  font-size: 0.8125rem;
  color: var(--ink-muted);
}

/* before/after comparison: two site screenshots in one frame, a handle in
   between; an invisible range input covers the frame so pointer, touch and
   keyboard all move the split */
.cmp {
  --pos: 50%;
  position: relative;
  margin-top: 1rem;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg);
  user-select: none;
}

.cmp img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.cmp-b {
  position: absolute;
  inset: 0;
  clip-path: inset(0 0 0 var(--pos));
}

.cmp-b img {
  height: 100%;
}

.cmp-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos);
  width: 2px;
  margin-left: -1px;
  background: var(--accent);
  pointer-events: none;
}

.cmp-handle span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 2.1rem;
  height: 2.1rem;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1;
}

.cmp-handle span::before {
  content: "\2039\203A";
}

.cmp-range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
  touch-action: pan-y;
  z-index: 1;
}

.cmp-range:focus-visible + .cmp-tag,
.cmp:focus-within .cmp-handle {
  outline: none;
}

.cmp:focus-within .cmp-handle span {
  box-shadow: 0 0 0 3px rgba(255, 107, 44, 0.4);
}

.cmp-tag {
  position: absolute;
  bottom: 0.6rem;
  z-index: 2;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ink);
  background: rgba(10, 10, 9, 0.75);
  border-radius: 999px;
  padding: 0.2rem 0.65rem;
  text-decoration: none;
}

.cmp-tag-a { left: 0.7rem; }
.cmp-tag-b { right: 0.7rem; }

/* ============================================================
   Analytics consent bar
   ============================================================ */
.consent {
  position: fixed;
  left: 50%;
  bottom: 1.25rem;
  transform: translateX(-50%);
  z-index: 50;
  width: min(92vw, 40rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1.1rem 0.9rem 1.4rem;
  background: var(--surface-2);
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.9);
  font-size: 0.9375rem;
  color: var(--ink-muted);
}

.consent[hidden] {
  display: none;
}

.consent-note {
  margin-top: 0.3rem;
  font-size: 0.8125rem;
  color: var(--ink-muted);
}

.consent-note b {
  color: var(--accent);
  font-weight: 600;
}

.consent-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

.btn-small {
  padding: 0.6rem 1.2rem;
  font-size: 0.9375rem;
}

@media (max-width: 560px) {
  .consent {
    flex-direction: column;
    align-items: flex-start;
  }
}

.mark {
  display: inline-flex;
  align-items: center;
  transition: transform 0.5s var(--ease-out);
}

.mark-logo {
  display: block;
  height: 2.6rem;
  width: auto;
}

.mark:hover {
  transform: scale(1.06);
}

/* error page */
.err-main {
  min-height: 60vh;
  display: grid;
  place-items: center;
  padding: clamp(3rem, 10vh, 7rem) var(--pad-x);
  text-align: center;
}

.err-logo {
  height: clamp(6rem, 18vh, 9rem);
  width: auto;
  margin: 0 auto 1.5rem;
  display: block;
}

.err-code {
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.08em;
  font-size: 0.9375rem;
  margin: 0 0 0.6rem;
}

.err-title {
  font-variation-settings: "wdth" 120;
  font-weight: 640;
  font-size: clamp(1.75rem, 4vw, 3rem);
  letter-spacing: -0.02em;
  margin: 0 0 0.8rem;
}

.err-text {
  color: var(--ink-muted);
  max-width: 34rem;
  margin: 0 auto 1.6rem;
}

.topbar-right {
  display: flex;
  align-items: center;
  justify-self: end;
}

.nav-link {
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--accent);
  text-decoration: none;
  transition: color 0.25s ease;
}

.nav-link:hover {
  color: #ff8149;
}

/* GitHub: profile link with a hover/focus submenu listing individual repos */
.nav-group {
  position: relative;
}

.nav-group > .nav-link::after {
  content: "";
  display: inline-block;
  width: 0.4em;
  height: 0.4em;
  margin-left: 0.4em;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-0.15em) rotate(45deg);
  opacity: 0.7;
}

.nav-sub {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translate(-50%, 0.25rem);
  min-width: 17rem;
  display: grid;
  gap: 0.4rem;
  margin: 0;
  padding: 0.5rem 0 0;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, transform 0.2s var(--ease-out), visibility 0s linear 0.2s;
  z-index: 20;
}

.nav-group:hover .nav-sub,
.nav-group:focus-within .nav-sub,
.nav-group.is-open .nav-sub {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0.5rem);
  transition: opacity 0.2s ease, transform 0.2s var(--ease-out), visibility 0s;
}

.nav-sub a,
.nav-sub .nav-sub-item {
  display: block;
  width: 100%;
  text-align: left;
  font: inherit;
  cursor: pointer;
  padding: 0.7rem 0.9rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  color: var(--ink);
  text-decoration: none;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.nav-sub a:hover,
.nav-sub a:focus-visible,
.nav-sub .nav-sub-item:hover,
.nav-sub .nav-sub-item:focus-visible {
  background: var(--surface-2);
  border-color: var(--accent);
}

.nav-sub-title {
  display: block;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--accent);
}

.nav-sub-desc {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.8125rem;
  line-height: 1.4;
  color: var(--ink-muted);
}

.lang-toggle {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px;
  gap: 2px;
}

.lang-btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--ink-muted);
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.25s ease, background-color 0.25s ease;
}

.lang-btn:hover {
  color: var(--ink);
}

.lang-btn[aria-pressed="true"] {
  background: var(--ink);
  color: var(--bg);
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
  padding: clamp(1.5rem, 3vh, 2.5rem) var(--pad-x) clamp(3rem, 6vh, 4.5rem);
  row-gap: clamp(1.25rem, 3vh, 2rem);
}

.display {
  font-variation-settings: "wdth" 122;
  font-weight: 640;
  font-size: clamp(2.5rem, 5.4vw, 5.5rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

/* white watercolor brush stroke behind the headline key words */
.framed {
  display: inline-block;
  padding: 0.14em 0.34em 0.16em;
  margin: -0.12em -0.2em;
  transform: rotate(-1.1deg);
  color: var(--accent);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 60' preserveAspectRatio='none'%3E%3Cfilter id='w' x='-8%25' y='-25%25' width='116%25' height='150%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.03 0.09' numOctaves='3' seed='11'/%3E%3CfeDisplacementMap in='SourceGraphic' scale='7'/%3E%3C/filter%3E%3Cg filter='url(%23w)' fill='%23ffffff'%3E%3Cpath d='M4 12 C40 2 120 0 292 6 L298 44 C220 58 100 57 6 52 Z' opacity='.4'/%3E%3Cpath d='M6 14 C50 5 130 3 290 8 L296 43 C215 56 95 55 8 50 Z' opacity='.85'/%3E%3Cpath d='M9 17 C60 8 150 6 288 11 L293 41 C205 53 85 52 11 47 Z' opacity='1'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: 100% 100%;
  background-position: left center;
}

/* watercolor brush highlight behind the key phrase in the subline */
.brush {
  display: inline-block;
  color: var(--ink);
  padding: 0.22em 0.6em 0.26em;
  margin: -0.2em -0.28em;
  transform: rotate(-1.4deg);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 60' preserveAspectRatio='none'%3E%3Cfilter id='w' x='-8%25' y='-25%25' width='116%25' height='150%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.03 0.09' numOctaves='3' seed='11'/%3E%3CfeDisplacementMap in='SourceGraphic' scale='12'/%3E%3C/filter%3E%3Cg filter='url(%23w)' fill='%23ff6b2c'%3E%3Cpath d='M4 12 C40 2 120 0 292 6 L298 44 C220 58 100 57 6 52 Z' opacity='.42'/%3E%3Cpath d='M10 20 C70 9 160 7 288 15 L292 43 C205 54 85 52 12 47 Z' opacity='.62'/%3E%3Cpath d='M20 26 C80 20 170 18 280 24 L276 38 C190 44 90 43 22 40 Z' opacity='.55'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: 100% 100%;
  background-position: left center;
}

/* brush in running text and headings: slightly tighter than the hero subline */
.distilled-text .brush {
  padding: 0.12em 0.4em 0.16em;
  margin: -0.1em -0.15em;
  transform: rotate(-1deg);
}

.section-heading .brush {
  padding: 0.08em 0.28em 0.12em;
  margin: -0.06em -0.1em;
  transform: rotate(-1.2deg);
}

.site-summary p + p {
  margin-top: 0.4rem;
}

.sub {
  margin-top: 1.75rem;
  max-width: 34rem;
  font-size: clamp(1.0625rem, 1.4vw, 1.1875rem);
  color: var(--ink-muted);
}

.hero-actions {
  margin-top: 2.5rem;
  display: flex;
  align-items: center;
  gap: 1.75rem;
  flex-wrap: wrap;
}

/* ============================================================
   Buttons & links
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 0;
  border-radius: 999px;
  padding: 0.95rem 2rem;
  transition: transform 0.4s var(--ease-out), background-color 0.25s ease;
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
}

.btn-primary:hover {
  background: #ff8149;
  transform: translateY(-2px);
}

.btn-primary:active {
  transform: translateY(0);
}

.quiet-link {
  color: var(--ink-muted);
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-underline-offset: 0.35em;
  transition: color 0.25s ease, text-decoration-color 0.25s ease;
}

.quiet-link:hover {
  color: var(--ink);
  text-decoration-color: var(--accent);
}

/* ============================================================
   Form panel
   ============================================================ */
.form-panel {
  background: var(--surface-2);
  border: 1px solid var(--line-soft);
  border-radius: 20px;
  padding: clamp(1.5rem, 2.5vw, 2rem);
  scroll-margin-top: 2rem;
  box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.9);
}

.form-title {
  font-variation-settings: "wdth" 118;
  font-weight: 620;
  font-size: 1.375rem;
  letter-spacing: -0.01em;
  margin-bottom: 1.5rem;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.field {
  margin-bottom: 0.9rem;
}

.field label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  margin-bottom: 0.45rem;
}

.req {
  color: var(--accent);
}

input,
select,
textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.8rem 0.95rem;
  transition: border-color 0.25s ease;
}

input::placeholder,
textarea::placeholder {
  color: #8f897d;
}

input:hover,
select:hover,
textarea:hover {
  border-color: rgba(244, 241, 235, 0.3);
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent);
}

input[aria-invalid="true"],
select[aria-invalid="true"] {
  border-color: #ff4d3d;
}

textarea {
  resize: vertical;
  min-height: 4.75rem;
}

.select-wrap {
  position: relative;
}

select {
  appearance: none;
  cursor: pointer;
  padding-right: 2.6rem;
}

select:invalid {
  color: #8f897d;
}

.select-arrow {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ink-muted);
  pointer-events: none;
}

.btn-submit {
  width: 100%;
  margin-top: 0.4rem;
  position: relative;
}

.btn-submit .btn-busy {
  display: none;
}

.btn-submit[data-busy="true"] .btn-label {
  display: none;
}

.btn-submit[data-busy="true"] .btn-busy {
  display: inline;
}

.btn-submit[data-busy="true"] {
  opacity: 0.75;
  cursor: progress;
}

.btn-submit:disabled {
  cursor: not-allowed;
}

.form-status {
  display: none;
  margin-top: 0.9rem;
  font-size: 0.9375rem;
  font-weight: 600;
}

.form-status[data-state="ok"] {
  display: block;
  color: #7ddb8a;
}

.form-status[data-state="error"] {
  display: block;
  color: #ff8d81;
}

.form-note {
  margin-top: 0.9rem;
  font-size: 0.875rem;
  color: var(--ink-muted);
  text-align: center;
}

/* ============================================================
   Sections
   ============================================================ */
.section {
  padding: clamp(3.5rem, 9vh, 6.5rem) var(--pad-x);
  border-top: 1px solid var(--line-soft);
}

.section-heading {
  font-variation-settings: "wdth" 120;
  font-weight: 630;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  letter-spacing: -0.02em;
  margin-bottom: clamp(2rem, 5vh, 3.25rem);
  text-wrap: balance;
}

/* distilled information: heading left, statement right */
.distilled {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 2rem 3.5rem;
  align-items: center;
}

.distilled .section-heading {
  margin-bottom: 1rem;
}

.playlists {
  list-style: none;
  margin: 1.4rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.6rem;
}

.distilled-media {
  display: block;
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  text-decoration: none;
  color: var(--ink);
  transition: border-color 0.3s ease, transform 0.4s var(--ease-out);
}

.distilled-media:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.distilled-media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.media-caption {
  display: block;
  padding: 0.7rem 0.9rem;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--ink-muted);
  background: var(--surface-2);
}

.distilled-text {
  color: var(--ink-muted);
  font-size: clamp(1.0625rem, 1.4vw, 1.1875rem);
  max-width: 42rem;
}

.distilled .quiet-link {
  display: inline-block;
  margin-top: 1.1rem;
}


/* ============================================================
   Use-case carousel inside the hero (one slide per real use case)
   ============================================================ */
.hero-chain {
  grid-column: 1 / -1;
  border-top: 1px solid var(--line-soft);
  padding-top: clamp(1.1rem, 2.5vh, 1.75rem);
}

.chain-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.4rem;
}

.chain-title {
  font-variation-settings: "wdth" 118;
  font-weight: 630;
  font-size: clamp(1.375rem, 2.2vw, 1.75rem);
  letter-spacing: -0.015em;
}

.chain-nav {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.chain-arrow {
  width: 2.4rem;
  height: 2.4rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 107, 44, 0.55);
  border-radius: 999px;
  background: transparent;
  color: var(--accent);
  font: inherit;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background-color 0.25s ease, color 0.25s ease, opacity 0.25s ease;
}

.chain-arrow:hover:not(:disabled) {
  background: var(--accent);
  color: var(--accent-ink);
}

.chain-arrow:disabled {
  opacity: 0.35;
  cursor: default;
}

.chain-count {
  font-size: 0.9375rem;
  color: var(--ink-muted);
  font-variant-numeric: tabular-nums;
}

.chain-count b {
  color: var(--ink);
  font-weight: 600;
}

.chain-track {
  display: flex;
  overflow-x: auto;
  /* a single-line flex row's min-content is the SUM of its slides; with many
     slides that would stretch the stacked hero grid wider than the viewport */
  contain: inline-size;
  min-width: 0;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  gap: 0;
}

.chain-track::-webkit-scrollbar {
  display: none;
}

.chain-slide {
  flex: 0 0 100%;
  min-width: 0;
  scroll-snap-align: start;
}

.chain-slide-title {
  font-variation-settings: "wdth" 116;
  font-weight: 620;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
  margin-bottom: 0.5rem;
}

/* time markers on the chain timeline + figure inside a step */
.chain-clock {
  color: var(--ink-muted);
  font-size: 0.9375rem;
  margin: -1.2rem 0 2.4rem;
}

.chain-clock b {
  color: var(--accent);
  font-weight: 600;
}

.chain-tick {
  position: absolute;
  left: 1.3rem;
  top: 0.55rem;
  transform: translateY(-50%);
  font-size: 0.8125rem;
  color: var(--ink-muted);
  white-space: nowrap;
  line-height: 1;
  background: var(--bg);
  padding: 0 0.4rem 0 0.2rem;
}

.chain-tick b {
  color: var(--accent);
  font-weight: 600;
}

.chain-tick i {
  font-style: normal;
  opacity: 0.75;
  margin-left: 0.35rem;
}

.chain-figure {
  margin: 1rem 0 0;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg);
}

.chain-figure img,
.chain-figure video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--bg);
}

.chain-figure figcaption {
  padding: 0.5rem 0.8rem;
  font-size: 0.75rem;
  line-height: 1.45;
  color: var(--ink-muted);
  background: var(--surface-2);
}

.chain-figure figcaption em {
  font-style: normal;
  color: var(--accent);
}

.chain-num .en,
.chain-num .tr {
  white-space: nowrap;
}

.chain-num.chain-num-sm .en,
.chain-num.chain-num-sm .tr {
  white-space: normal;
}

.chain-num.chain-num-sm {
  white-space: normal;
  line-height: 1.1;
  font-size: clamp(1.5rem, 2.1vw, 2rem);
}

/* ============================================================
   Use case: skill chain (draws in on scroll)
   ============================================================ */
.usecase-intro {
  color: var(--ink-muted);
  max-width: 44rem;
  margin-bottom: clamp(2rem, 5vh, 3rem);
}

.section.usecase .section-heading {
  margin-bottom: 1rem;
}

.chain {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1rem, 2.5vw, 2rem);
}

/* the connector: one hairline that fills as the section enters view */
.chain::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0.95rem;
  height: 1px;
  background: var(--line-soft);
}

.chain::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0.95rem;
  height: 1px;
  width: 100%;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 1.6s var(--ease-out);
}

.chain.in::after {
  transform: scaleX(1);
}

.chain-step {
  position: relative;
  padding-top: 2.4rem;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.chain-step::before {
  content: "";
  position: absolute;
  top: 0.55rem;
  left: 0;
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 999px;
  background: var(--bg);
  border: 1.5px solid var(--accent);
  transform: scale(0.4);
  transition: transform 0.5s var(--ease-out), background-color 0.5s ease;
}

.chain.in .chain-step {
  opacity: 1;
  transform: none;
}

.chain.in .chain-step::before {
  transform: scale(1);
  background: var(--accent);
}

.chain.in .chain-step:nth-child(1) { transition-delay: 0.1s; }
.chain.in .chain-step:nth-child(2) { transition-delay: 0.45s; }
.chain.in .chain-step:nth-child(3) { transition-delay: 0.8s; }
.chain.in .chain-step:nth-child(4) { transition-delay: 1.15s; }
.chain.in .chain-step:nth-child(1)::before { transition-delay: 0.1s; }
.chain.in .chain-step:nth-child(2)::before { transition-delay: 0.45s; }
.chain.in .chain-step:nth-child(3)::before { transition-delay: 0.8s; }
.chain.in .chain-step:nth-child(4)::before { transition-delay: 1.15s; }

.chain-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.9rem;
}

.skill {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--accent);
  border: 1px solid rgba(255, 107, 44, 0.45);
  border-radius: 999px;
  padding: 0.15rem 0.6rem;
}

.skill[data-skill] {
  cursor: pointer;
  transition: background-color 0.25s ease, color 0.25s ease;
}

.skill[data-skill]:hover,
.skill[data-skill][aria-expanded="true"] {
  background: var(--accent);
  color: var(--accent-ink);
}

/* shared skill popup card */
.skill-pop {
  position: fixed;
  z-index: 60;
  background: var(--surface-2);
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.9);
  padding: 0.9rem 1rem 0.95rem;
  cursor: pointer;
  color: var(--ink);
}

.skill-pop-head {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: baseline;
  margin-bottom: 0.4rem;
}

.skill-pop-head b {
  color: var(--accent);
  font-weight: 600;
}

.skill-pop-head span {
  font-size: 0.8125rem;
  color: var(--ink-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.skill-pop-desc {
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--ink-muted);
  margin-bottom: 0.7rem;
}

.skill-pop-code {
  margin: 0;
  padding: 0.7rem 0.8rem;
  background: var(--bg);
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.75rem;
  line-height: 1.5;
  color: var(--ink-muted);
  white-space: pre;
  overflow-x: auto;
}

.skill-pop-src {
  display: block;
  margin-top: 0.7rem;
  font-size: 0.8125rem;
  color: var(--ink-muted);
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-underline-offset: 0.3em;
}

.skill-pop-src:hover {
  color: var(--ink);
}

.skill-pop-cta {
  display: block;
  margin-top: 0.8rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}

.skill-pop:hover .skill-pop-cta {
  color: #ff8149;
}

.skill-result {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
}

.chain-step h3 {
  font-variation-settings: "wdth" 116;
  font-weight: 620;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
  line-height: 1.25;
  margin-bottom: 0.6rem;
}

.chain-step p,
.chain-list {
  color: var(--ink-muted);
  font-size: 0.9375rem;
  line-height: 1.55;
}

.chain-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.7rem;
}

.chain-list b {
  color: var(--ink);
  font-weight: 600;
}

.chain-sites {
  display: grid;
  gap: 0.8rem;
  margin-top: 1rem;
}

.site-card {
  display: block;
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  text-decoration: none;
  transition: border-color 0.3s ease, transform 0.4s var(--ease-out);
}

.site-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.site-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.site-name {
  position: absolute;
  left: 0.7rem;
  bottom: 0.6rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ink);
  background: rgba(10, 10, 9, 0.75);
  border-radius: 999px;
  padding: 0.2rem 0.65rem;
}

.chain-num {
  font-variation-settings: "wdth" 120;
  font-weight: 640;
  font-size: clamp(2.25rem, 3.6vw, 3.25rem);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--accent);
  margin-bottom: 0.7rem;
}

/* process steps: the sequence carries information */
.steps {
  list-style: none;
  counter-reset: step;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 4vw, 3.5rem);
}

.step {
  counter-increment: step;
  border-top: 1px solid var(--line-soft);
  padding-top: 1.4rem;
}

.step h3 {
  font-variation-settings: "wdth" 116;
  font-weight: 620;
  font-size: 1.25rem;
  margin-bottom: 0.6rem;
}

.step h3::before {
  content: counter(step);
  color: var(--accent);
  font-weight: 640;
  margin-right: 0.6rem;
}

.step p {
  color: var(--ink-muted);
}

/* ============================================================
   Close & footer
   ============================================================ */
.close {
  text-align: center;
  padding-top: clamp(5rem, 14vh, 9rem);
  padding-bottom: clamp(5rem, 14vh, 9rem);
}

.display-close {
  font-size: clamp(2rem, 4.5vw, 4rem);
  max-width: 22ch;
  margin: 0 auto 2.25rem;
}

.footer {
  border-top: 1px solid var(--line-soft);
  padding: 1.75rem var(--pad-x);
  font-size: 0.875rem;
  color: var(--ink-muted);
}

/* ============================================================
   Entrance (one authored moment: hero reveal on load)
   ============================================================ */
/* scoped to .entrance (removed by JS after load) so the language toggle
   never replays the reveal on freshly displayed content */
@media (prefers-reduced-motion: no-preference) {
  .entrance .hero-copy > *,
  .entrance .form-panel {
    animation: rise 0.9s var(--ease-out) both;
  }

  .entrance .hero-copy .sub { animation-delay: 0.08s; }
  .entrance .hero-copy .hero-actions { animation-delay: 0.16s; }
  .entrance .form-panel { animation-delay: 0.24s; }

  /* headline brush paints first, then the frame draws over it, then the subline brush */
  .entrance .framed {
    animation: brush-in 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) 0.3s both;
  }

  .entrance .brush {
    animation: brush-in 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) 0.9s both;
  }
}

@keyframes brush-in {
  from {
    background-size: 0% 100%;
  }
  to {
    background-size: 100% 100%;
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 960px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
    gap: 3rem;
  }

  .steps,
  .distilled {
    grid-template-columns: 1fr;
  }

  /* chain becomes vertical: connector runs down the left edge */
  .chain {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding-left: 1.6rem;
  }

  .chain::before,
  .chain::after {
    top: 0.55rem;
    bottom: 0;
    left: 0.4rem;
    right: auto;
    width: 1px;
    height: auto;
  }

  .chain::after {
    height: 100%;
    bottom: auto;
    transform: scaleY(0);
    transform-origin: center top;
  }

  .chain.in::after {
    transform: scaleY(1);
  }

  .chain-step {
    padding-top: 0;
  }

  .chain-step::before {
    left: -1.6rem;
    top: 0.2rem;
  }

  .chain-tick {
    position: static;
    display: block;
    transform: none;
    margin-bottom: 0.5rem;
    padding: 0;
  }

  .chain-clock {
    margin-top: -0.6rem;
  }

  .chain-sites {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

}

@media (max-width: 560px) {
  .field-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .hero-actions .btn {
    width: 100%;
  }

  /* phone topbar: mark + language on the first row, menu on its own row */
  .topbar {
    grid-template-columns: 1fr auto;
    row-gap: 0.9rem;
  }

  .topbar-right {
    grid-column: 2;
    grid-row: 1;
  }

  .topnav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: start;
    flex-wrap: wrap;
  }

  /* phone: the GitHub submenu stays anchored to its link but opens left-aligned */
  .nav-sub {
    left: 0;
    transform: translate(0, 0.25rem);
  }

  .nav-group:hover .nav-sub,
  .nav-group:focus-within .nav-sub,
  .nav-group.is-open .nav-sub {
    transform: translate(0, 0.5rem);
  }


  .display {
    font-size: clamp(2.25rem, 10vw, 2.9rem);
  }
}


/* ---------- hero film (replaces the inline form) ---------- */
.hero-video {
  display: grid;
  gap: 1rem;
}

.stickman-frame {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: var(--bg);
  border: 1px solid var(--line-soft);
  box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.9);
}

.stickman {
  display: block;
  width: 100%;
  height: auto;
  /* the file is a padded square; a 16:9 box with cover shows exactly the drawn band */
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--bg);
}

/* enlarged film popup */
.stickman-modal {
  width: min(92vw, 64rem);
}

.stickman-big-wrap {
  position: relative;
  background: var(--bg);
}

.stickman-big {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--bg);
}

.stickman-cap-big {
  bottom: 4.5rem;
  font-size: 1.375rem;
}

.stickman-cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 1.4rem;
  margin: 0;
  text-align: center;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--ink);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.9);
}

.stickman-cap.on {
  opacity: 1;
}

.stickman-sound {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.85rem;
  border: 1px solid rgba(244, 241, 235, 0.35);
  border-radius: 999px;
  background: rgba(10, 10, 9, 0.7);
  color: var(--ink);
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.stickman-sound:hover,
.stickman-sound[aria-pressed="true"] {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}

.stickman-sound[aria-pressed="true"] .snd-wave {
  opacity: 1;
}

.stickman-sound .snd-wave {
  opacity: 0.35;
}

.stickman-line {
  color: var(--ink-muted);
  font-size: 0.9375rem;
  line-height: 1.55;
  margin: 0;
}

.stickman-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
}

.stickman-note {
  color: var(--ink-muted);
  font-size: 0.8125rem;
}

.form-modal {
  width: min(92vw, 40rem);
}

.form-modal .form-panel {
  border: 0;
  border-radius: 0;
  box-shadow: none;
  scroll-margin-top: 0;
}

@media (max-width: 960px) {
  .hero-video {
    max-width: 34rem;
  }
}

@media (min-width: 961px) {
  .hero-video {
    max-width: 38rem;
    justify-self: end;
  }
}


/* ---------- carousel hint: an arrow runs from the title to the buttons now and then ---------- */
.chain-hint {
  flex: 1 1 auto;
  height: 2.5rem;
  min-width: 6rem;
  margin: 0 1rem;
  color: var(--accent);
  opacity: 0;
  pointer-events: none;
}

.chain-hint-line,
.chain-hint-head {
  stroke-dasharray: 320;
  stroke-dashoffset: 320;
}

.chain-carousel:not(.used) .chain-hint {
  animation: hint-fade 9s ease-in-out 2s infinite;
}

.chain-carousel:not(.used) .chain-hint-line {
  animation: hint-draw 9s ease-out 2s infinite;
}

.chain-carousel:not(.used) .chain-hint-head {
  animation: hint-draw-head 9s ease-out 2s infinite;
}

@keyframes hint-fade {
  0%, 4% { opacity: 0; }
  10%, 36% { opacity: 1; }
  44%, 100% { opacity: 0; }
}

@keyframes hint-draw {
  0%, 4% { stroke-dashoffset: 320; }
  24%, 100% { stroke-dashoffset: 0; }
}

@keyframes hint-draw-head {
  0%, 20% { stroke-dashoffset: 320; }
  30%, 100% { stroke-dashoffset: 0; }
}

@media (max-width: 560px) {
  .chain-hint {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .chain-carousel:not(.used) .chain-hint,
  .chain-carousel:not(.used) .chain-hint-line,
  .chain-carousel:not(.used) .chain-hint-head {
    animation: none;
    opacity: 0;
  }
}


/* player bar under the film */
.stickman-controls {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-top: -0.2rem;
}

.stickman-btn {
  width: 2.4rem;
  height: 2.4rem;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(244, 241, 235, 0.35);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.stickman-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}

.stickman-btn .ico-play { display: none; }
.stickman-btn .ico-pause { display: block; }
.stickman-btn[aria-pressed="false"] .ico-play { display: block; }
.stickman-btn[aria-pressed="false"] .ico-pause { display: none; }

.stickman-seek {
  flex: 1 1 auto;
  min-width: 4rem;
  height: 0.3rem;
  margin: 0;
  padding: 0;
  accent-color: var(--accent);
  cursor: pointer;
}

.stickman-time {
  flex: 0 0 auto;
  font-size: 0.8125rem;
  color: var(--ink-muted);
  font-variant-numeric: tabular-nums;
}

.stickman-controls .stickman-sound {
  flex: 0 0 auto;
}

/* ---------- "The Flood": decision duel (Concept Works) ---------- */
.sel-modal {
  width: min(96vw, 66rem);
}

.sel-stage {
  position: relative;
  aspect-ratio: 1000 / 620;
  background: #000;
}

.sel-stage canvas {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
}

.sel-overlay[hidden] {
  display: none;
}

.sel-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  place-content: safe center;
  padding: clamp(1rem, 4vw, 2.5rem);
  background: rgba(10, 10, 9, 0.9);
  overflow: auto;
}

.sel-panel {
  max-width: 34rem;
  text-align: center;
}

.sel-panel-end {
  max-width: 40rem;
  width: 100%;
}

.sel-eyebrow {
  margin: 0 0 0.6rem;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}

.sel-title {
  margin: 0 0 0.8rem;
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 640;
  line-height: 1;
  letter-spacing: -0.025em;
  font-variation-settings: "wdth" 122;
}

.sel-text {
  margin: 0 0 0.9rem;
  color: var(--ink);
  line-height: 1.55;
}

.sel-text b {
  color: var(--accent);
  font-weight: 600;
}

.sel-hint {
  margin: 0 0 1.4rem;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--ink-muted);
}

.sel-hint kbd {
  display: inline-block;
  min-width: 1.4em;
  padding: 0 0.3em;
  border: 1px solid var(--line);
  border-radius: 0.3em;
  font: inherit;
  font-size: 0.875em;
  color: var(--ink);
}

.sel-status {
  min-height: 1.4em;
  margin: 0.9rem 0 0;
  font-size: 0.875rem;
  color: var(--ink-muted);
}

.sel-status[data-state="error"] {
  color: var(--accent);
}

.sel-result {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0.5rem 1rem;
  align-items: center;
  margin: 1.2rem 0;
  padding: 1rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-variant-numeric: tabular-nums;
}

.sel-result .who {
  font-weight: 640;
  font-size: 1.0625rem;
  font-variation-settings: "wdth" 116;
}

.sel-result .who-jev {
  color: var(--accent);
}

.sel-result .big {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 640;
  line-height: 1;
  letter-spacing: -0.02em;
}

.sel-result .lbl {
  font-size: 0.8125rem;
  color: var(--ink-muted);
}

.sel-verdict {
  margin: 0 0 0.6rem;
  font-size: 1.0625rem;
  line-height: 1.5;
}

.sel-agg {
  margin: 0 0 1.2rem;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--ink-muted);
}

.sel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: center;
}

.sel-actions .btn-ghost {
  display: inline-block;
  padding: 0.85rem 1.6rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: transparent;
  font: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
}

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

@media (max-width: 700px) {
  .sel-modal {
    width: 100vw;
    max-width: none;
    border-radius: 0;
  }
  .sel-result {
    gap: 0.4rem 0.6rem;
  }
}
