/* ============================================================
   Emily Daves — Biosite design system
   Direction B: Editorial Systems Studio (architectural grid)
   ============================================================ */

:root {
  /* Palette (from brief) */
  --cream:      #F7F3ED;
  --cream-hi:   #FAF7F1;
  --charcoal:   #232323;
  --ink:        #1E1E1C;
  --taupe:      #D8CCC0;
  --taupe-lt:   #E4DBD1;
  --stone-text: #6f685e;
  --stone-soft: #8a8278;
  --body-text:  #46413a;
  --brass:      #B08A4A;
  --brass-deep: #A77B3F;
  --rose:       #8E4D5A;
  --rose-lt:    #B9848F;
  --slate:      #344A5F;
  --slate-deep: #24384A;

  /* Tweakable tokens (overridden by tweaks.js) */
  --accent:      var(--rose);
  --accent-deep: #7c4250;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans:  'Source Sans 3', system-ui, -apple-system, sans-serif;
  --display: 'Marcellus', Georgia, serif;
  --gold-display: #C2A57E;
  --section-pad: 92px;
  --page-bg: #FDFDFD;

  --maxw: 1180px;
  --rail-w: 84px;
  --line: 1px solid var(--taupe);
  --radius: 4px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--page-bg);
  color: var(--charcoal);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: color-mix(in oklab, var(--accent) 30%, transparent); }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; color: var(--ink); margin: 0; letter-spacing: -0.005em; }

p { margin: 0 0 1.1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

/* ---------- Layout primitives ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 40px; }
.measure { max-width: 760px; }

.kicker {
  font-family: var(--display);
  font-size: 12px;
  letter-spacing: 0.30em;
  text-transform: uppercase;
  font-weight: 400;
  color: var(--accent-deep);
}

.eyebrow-slate { color: var(--slate); }

/* Section with architectural margin rail */
.section { border-top: var(--line); }
.section:first-of-type { border-top: none; }
.section-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 40px;
  display: grid;
  grid-template-columns: var(--rail-w) 1fr;
}
.rail {
  border-right: var(--line);
  padding: var(--section-pad) 0 var(--section-pad);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.rail-num {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--cream);
  font-weight: 700;
  background: var(--accent);
  border-radius: 100px;
  padding: 5px 9px;
  line-height: 1;
}
.rail-label {
  writing-mode: vertical-rl;
  font-family: var(--display);
  font-size: 11px;
  letter-spacing: 0.30em;
  text-transform: uppercase;
  color: var(--stone-soft);
}
.rail-tick { flex: 1; width: 1px; background: var(--taupe); }
.section-body { padding: var(--section-pad) 0 var(--section-pad) 48px; min-width: 0; }

.section-head { margin-bottom: 40px; }
.section-head h2 { font-size: clamp(28px, 3.4vw, 40px); line-height: 1.1; margin-top: 14px; }
.section-head .lead { margin-top: 18px; font-size: 18px; color: var(--body-text); max-width: 640px; }

/* ---------- Navigation ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in oklab, var(--cream-hi) 92%, transparent);
  border-top: 2px solid var(--accent);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: var(--line);
}
.nav-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0 40px;
  height: 70px; display: flex; align-items: center; justify-content: space-between;
}
.nav-brand { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 5px; line-height: 1; }
.nav-brand .nb-name { font-family: var(--display); font-size: 16px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--ink); white-space: nowrap; }
.nav-brand .nb-desc-row { display: flex; align-items: center; gap: 10px; }
.nav-brand .nb-rule { width: 26px; height: 1px; background: var(--brass); flex: none; }
.nav-brand .nb-desc { font-family: var(--display); font-size: 8.5px; letter-spacing: 0.34em; text-transform: uppercase; color: var(--brass); white-space: nowrap; }
.nav-right { display: flex; align-items: center; gap: 28px; }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-link {
  font-size: 14px; letter-spacing: 0.03em; color: var(--stone-text);
  position: relative; padding: 4px 0; transition: color .2s ease; white-space: nowrap;
}
.nav-link::after {
  content: ''; position: absolute; left: 0; right: 100%; bottom: -2px; height: 1.5px;
  background: var(--accent); transition: right .25s ease;
}
.nav-link:hover { color: var(--charcoal); }
.nav-link:hover::after, .nav-link[aria-current="page"]::after { right: 0; }
.nav-link[aria-current="page"] { color: var(--charcoal); font-weight: 600; }

.btn-resume {
  font-size: 12.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: #FDFDFD; background: var(--slate); padding: 10px 18px; border-radius: var(--radius);
  transition: background .2s ease, transform .2s ease;
}
.btn-resume:hover { background: var(--slate-deep); transform: translateY(-1px); }

.nav-burger { display: none; background: none; border: none; cursor: pointer; padding: 11px; min-width: 44px; min-height: 44px; }
.nav-burger span { display: block; width: 22px; height: 1.5px; background: var(--charcoal); margin: 5px 0; transition: .25s; }

.mobile-menu {
  display: none; flex-direction: column; gap: 2px;
  border-bottom: var(--line); background: var(--cream-hi); padding: 8px 0 16px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a { padding: 12px 40px; font-size: 16px; color: var(--charcoal); border-top: var(--line); }
.mobile-menu a:first-child { border-top: none; }
.mobile-menu a[aria-current="page"] { font-weight: 600; color: var(--ink); border-left: 2px solid var(--accent); padding-left: 38px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--sans); font-size: 15px; font-weight: 600; letter-spacing: 0.015em;
  padding: 13px 22px; border-radius: var(--radius); cursor: pointer;
  transition: transform .2s ease, background .2s ease, border-color .2s ease, color .2s ease;
  border: 1px solid transparent; white-space: nowrap;
}
.btn .arrow { transition: transform .2s ease; }
.btn:hover .arrow { transform: translateX(3px); }
.btn-primary { background: var(--charcoal); color: #FDFDFD; border-color: var(--charcoal); }
.btn-primary:hover { background: var(--slate); border-color: var(--slate); transform: translateY(-1px); }
.btn-secondary { background: transparent; color: var(--charcoal); border-color: var(--charcoal); }
.btn-secondary:hover { border-color: var(--accent); color: var(--accent-deep); transform: translateY(-1px); }
.btn-slate { background: var(--slate); color: #ffffff; border-color: var(--slate); }
.btn-slate:hover { background: var(--slate-deep); border-color: var(--slate-deep); transform: translateY(-1px); }
.btn-cream { background: var(--cream); color: var(--charcoal); border-color: var(--taupe); }
.btn-cream:hover { border-color: var(--accent); color: var(--accent-deep); transform: translateY(-1px); }
.btn-white { background: #FFFFFF; color: var(--charcoal); border-color: var(--taupe); }
.btn-white:hover { border-color: var(--accent); color: var(--accent-deep); transform: translateY(-1px); }
.btn-ghost { padding: 13px 4px; color: var(--accent-deep); font-weight: 600; }
.btn-ghost:hover { color: var(--charcoal); }
.btn-block { width: 100%; }

/* ---------- Cards ---------- */
.card {
  background: var(--cream-hi); border: var(--line); border-radius: var(--radius);
  padding: 26px 26px 28px; transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.card:hover { transform: translateY(-3px); border-color: color-mix(in oklab, var(--accent) 55%, var(--taupe)); box-shadow: 0 14px 30px -22px rgba(40,30,15,.45); }
.card-grid { display: grid; gap: 18px; }
.card-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.card-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }

.card-index {
  font-family: var(--sans); font-size: 11px; letter-spacing: 0.18em; color: var(--accent);
  font-weight: 700; margin-bottom: 12px;
}
.card h3 { font-size: 21px; line-height: 1.22; margin-bottom: 10px; }
.card p { font-size: 15px; color: var(--body-text); line-height: 1.56; margin: 0; }

/* ---------- Index list (architectural list pattern) ---------- */
.index-list { border-top: var(--line); }
.index-row {
  display: flex; align-items: baseline; justify-content: space-between; gap: 20px;
  padding: 16px 4px; border-bottom: var(--line); transition: padding-left .2s ease, background .2s ease;
}
.index-row:hover { padding-left: 12px; background: color-mix(in oklab, var(--taupe-lt) 40%, transparent); }
.index-row .t { font-family: var(--serif); font-size: 19px; color: var(--charcoal); }
.index-row .d { font-size: 14px; color: var(--stone-text); flex: 1; }
.index-row .n { font-family: var(--sans); font-size: 12px; letter-spacing: 0.1em; color: var(--accent); }

/* ---------- Explore (home wayfinding, asymmetric) ---------- */
.section-explore { background: var(--cream); }
.section-explore .wrap { padding-top: var(--section-pad); padding-bottom: var(--section-pad); }
.explore-grid { display: grid; grid-template-columns: 0.82fr 1.55fr; gap: 60px; align-items: start; }
.explore-left .kicker { color: var(--accent-deep); }
.explore-left h2 { font-size: clamp(28px, 3.2vw, 36px); line-height: 1.08; margin: 12px 0 18px; color: var(--slate-deep); }
.explore-left .lead { margin: 0 0 20px; font-size: 15.5px; line-height: 1.6; color: var(--body-text); max-width: 340px; }
.explore-left .lead:last-child { margin-bottom: 0; }
.explore-rows { border-top: none; }
.door { display: grid; grid-template-columns: 56px 1fr auto; align-items: center; gap: 22px; padding: 22px 6px 22px 2px; border-bottom: 1px solid var(--taupe); transition: padding-left .22s ease, background .22s ease; }
.door:hover { padding-left: 14px; background: color-mix(in oklab, var(--brass) 10%, transparent); }
.door-num { font-family: var(--serif); font-size: 32px; color: var(--brass); line-height: 1; }
.door-ttl { display: block; font-family: var(--serif); font-size: 23px; color: var(--slate-deep); line-height: 1.1; }
.door-sub { display: block; font-size: 14px; color: var(--stone-text); margin-top: 3px; }
.door-arr { font-size: 21px; color: var(--brass); transition: transform .22s ease; }
.door:hover .door-arr { transform: translateX(5px); }

/* ---------- By Design feature band (dark) ---------- */
.section-bydesign { background: var(--slate-deep); border-top: none; }
.section-bydesign .wrap { padding-top: 84px; padding-bottom: 84px; }
.bd-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 64px; align-items: start; }
.bd-kicker { display: block; font-family: var(--display); font-size: 12px; font-weight: 400; letter-spacing: 0.30em; text-transform: uppercase; color: var(--brass); }
.bd-head h2 { color: #ffffff; font-size: clamp(30px, 3.6vw, 44px); line-height: 1.06; margin-top: 14px; }
.bd-copy { margin-top: 18px; }
.bd-copy p { color: #aebcc6; font-size: 16px; line-height: 1.65; }
.bd-cta { margin-top: 26px; display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.btn-brass { background: var(--brass); color: #1e1e1c; border-color: var(--brass); }
.btn-brass:hover { background: #c39a55; border-color: #c39a55; transform: translateY(-1px); }
.btn-outline-light { background: transparent; color: #eef2f5; border-color: rgba(255,255,255,.38); }
.btn-outline-light:hover { border-color: var(--brass); color: var(--brass); transform: translateY(-1px); }
.bd-aside { align-self: end; }
.bd-aside-label { display: block; font-family: var(--sans); font-size: 11px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: #ffffff; margin-bottom: 26px; }
.bd-list { list-style: none; margin: 0; padding: 0; border-top: none; }
.bd-list li { padding: 13px 0; border-bottom: 1px solid color-mix(in oklab, var(--brass) 42%, transparent); font-size: 14.5px; line-height: 1.4; color: #dbe3e9; }

@media (max-width: 860px) {
  .explore-grid { grid-template-columns: 1fr; gap: 26px; }
  .explore-left .lead { max-width: none; }
  .bd-grid { grid-template-columns: 1fr; gap: 36px; }
  .bd-list { grid-template-columns: 1fr; }
}

/* ---------- Let's Connect (availability panel) ---------- */
.section-connect .wrap { padding-top: var(--section-pad); padding-bottom: var(--section-pad); }
.section-connect .connect-grid { display: grid; grid-template-columns: 1fr 1.08fr; gap: 40px; align-items: center; max-width: 1000px; margin: 0 auto; }
.connect-left .kicker { display: block; color: var(--accent-deep); margin-bottom: 14px; }
.connect-script { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 22px; line-height: 1.3; color: var(--rose); margin: 0 0 16px; max-width: 420px; }
.connect-script-foot { max-width: 1000px; margin: 44px auto 0; padding-top: 30px; border-top: 1px solid color-mix(in oklab, var(--rose) 30%, var(--taupe)); text-align: center; font-size: 26px; }
.connect-status { display: inline-flex; align-items: center; gap: 9px; font-family: var(--sans); font-size: 12.5px; font-weight: 600; letter-spacing: 0.02em; color: var(--slate-deep); margin-bottom: 18px; }
.connect-status .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--brass); box-shadow: 0 0 0 4px color-mix(in oklab, var(--brass) 20%, transparent); flex: none; }
@media (prefers-reduced-motion: no-preference) {
  .connect-status .dot { animation: dot-pulse 2.2s ease-out infinite; }
}
@keyframes dot-pulse {
  0% { box-shadow: 0 0 0 0 color-mix(in oklab, var(--brass) 55%, transparent); }
  70% { box-shadow: 0 0 0 10px color-mix(in oklab, var(--brass) 0%, transparent); }
  100% { box-shadow: 0 0 0 0 color-mix(in oklab, var(--brass) 0%, transparent); }
}
.connect-left h2 { font-size: clamp(32px, 4vw, 46px); line-height: 1.04; margin: 0 0 16px; color: var(--ink); }
.connect-left .lead { font-size: 16px; line-height: 1.6; color: var(--body-text); max-width: 440px; }
.connect-panel { border: 1px solid var(--taupe); border-radius: 8px; background: var(--cream-hi); overflow: hidden; }
.connect-row { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 14px; padding: 19px 22px; border-bottom: 1px solid var(--taupe-lt); transition: background .2s ease; }
.connect-row:last-child { border-bottom: none; }
.connect-row:hover { background: color-mix(in oklab, var(--accent) 8%, transparent); }
.connect-row .lab { display: block; font-family: var(--sans); font-size: 10.5px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--stone-soft); }
.connect-row .val { display: block; font-family: var(--serif); font-size: 20px; color: var(--ink); margin-top: 3px; line-height: 1.15; }
.connect-row .arrow { color: var(--accent-deep); font-size: 19px; transition: transform .2s ease; }
.connect-row:hover .arrow { transform: translateX(4px); }
@media (max-width: 860px) {
  .section-connect .connect-grid { grid-template-columns: 1fr; gap: 32px; }
  .connect-left .lead { max-width: none; }
}

/* ---------- Proof strip ---------- */
.proof-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--taupe); border: var(--line); border-radius: var(--radius); overflow: hidden; }
.proof-cell { background: var(--cream-hi); padding: 26px 24px; }
.proof-cell .k { font-family: var(--serif); font-size: 38px; color: var(--accent-deep); line-height: 1; }
.proof-cell .v { font-size: 14px; color: var(--stone-text); margin-top: 10px; line-height: 1.5; }

/* ---------- Pull quote ---------- */
.pullquote { font-family: var(--serif); font-size: clamp(24px, 3vw, 34px); line-height: 1.34; color: var(--ink); font-style: italic; }
.pullquote .em { color: var(--accent-deep); font-style: normal; }

/* ---------- Footer ---------- */
.footer { background: var(--slate-deep); color: #cdd6dd; margin-top: 0; }
.footer-inner { max-width: var(--maxw); margin: 0 auto; padding: 28px 40px 20px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 18px; border-bottom: 1px solid rgba(255,255,255,.12); }
.footer h4 { color: #fff; font-family: var(--serif); font-size: 22px; }
.footer-mark { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 6px; line-height: 1; }
.footer-mark .fm-name { font-family: var(--display); font-size: 19px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--cream); white-space: nowrap; }
.footer-mark .fm-desc-row { display: flex; align-items: center; gap: 10px; }
.footer-mark .fm-rule { width: 30px; height: 1px; background: var(--gold-display); flex: none; }
.footer-mark .fm-desc { font-family: var(--display); font-size: 9px; letter-spacing: 0.34em; text-transform: uppercase; color: var(--gold-display); white-space: nowrap; }
.footer .role { color: #9fb0bb; font-size: 13.5px; letter-spacing: 0.04em; margin-top: 6px; }
.footer .tag { color: var(--cream); font-style: italic; font-family: var(--serif); font-size: 16px; max-width: 320px; margin-top: 10px; line-height: 1.5; }
.footer-col-h { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: #7d8f9a; margin-bottom: 10px; }
.footer-col a { display: block; color: #cdd6dd; font-size: 14.5px; padding: 2px 0; transition: color .2s ease; }
.footer-col a:hover { color: var(--brass); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 14px; font-size: 13px; color: #7d8f9a; gap: 16px; flex-wrap: wrap; }

/* ---------- Reveal animation ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s cubic-bezier(.2,.6,.2,1), transform .7s cubic-bezier(.2,.6,.2,1); }
  .reveal.in { opacity: 1; transform: none; }
}

/* ---------- Tweaks panel ---------- */
#tweaks-panel {
  position: fixed; right: 20px; bottom: 20px; z-index: 9999; width: 290px;
  background: var(--cream-hi); border: 1px solid var(--taupe); border-radius: 8px;
  box-shadow: 0 24px 60px -20px rgba(30,20,10,.5); font-family: var(--sans);
  padding: 16px 18px 18px; display: none;
}
#tweaks-panel.show { display: block; }
#tweaks-panel .tp-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
#tweaks-panel .tp-title { font-family: var(--serif); font-size: 18px; color: var(--ink); }
#tweaks-panel .tp-close { background: none; border: none; font-size: 18px; color: var(--stone-text); cursor: pointer; line-height: 1; }
#tweaks-panel .tp-group { margin-bottom: 15px; }
#tweaks-panel .tp-label { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--stone-soft); font-weight: 700; margin-bottom: 8px; }
#tweaks-panel .tp-row { display: flex; gap: 8px; flex-wrap: wrap; }
#tweaks-panel .tp-swatch { width: 30px; height: 30px; border-radius: 50%; border: 2px solid transparent; cursor: pointer; outline: 1px solid var(--taupe); }
#tweaks-panel .tp-swatch.active { border-color: var(--ink); }
#tweaks-panel .tp-seg { display: flex; border: 1px solid var(--taupe); border-radius: var(--radius); overflow: hidden; }
#tweaks-panel .tp-seg button { flex: 1; background: transparent; border: none; padding: 8px 6px; font-family: var(--sans); font-size: 12.5px; color: var(--stone-text); cursor: pointer; border-right: 1px solid var(--taupe); }
#tweaks-panel .tp-seg button:last-child { border-right: none; }
#tweaks-panel .tp-seg button.active { background: var(--charcoal); color: var(--cream); }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  body { font-size: 16px; }
  .nav-links { display: none; }
  .nav-burger { display: block; }
  .nav-right .btn-resume { display: none; }
  .section-inner { grid-template-columns: 1fr; }
  .rail { flex-direction: row; border-right: none; border-bottom: var(--line); padding: 18px 0; gap: 14px; justify-content: flex-start; }
  .rail-label { writing-mode: horizontal-tb; }
  .rail-tick { display: none; }
  .section-body { padding: 36px 0 56px; }
  :root { --section-pad: 56px; }
  .card-grid.cols-2, .card-grid.cols-3 { grid-template-columns: 1fr; }
  .proof-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 28px; }
  .wrap { padding: 0 24px; }
}

@media (max-width: 480px) {
  :root { --section-pad: 40px; }
  .connect-script-foot { font-size: 19px; }
}

/* ---------- Audio note (depth layer) ---------- */
.card { display: flex; flex-direction: column; }

/* Two-tone capability cards: Editorial Header Band (Option A) */
.cards-toned .card { padding: 0; overflow: hidden; position: relative; }
.cards-toned .card::before { content: ''; position: absolute; z-index: 1; left: 0; top: 0; right: 0; height: 200px; background: linear-gradient(135deg, rgba(15,25,35,.55) 0%, rgba(15,25,35,0) 46%); pointer-events: none; }
.cards-toned .card .card-index {
  position: absolute; z-index: 2; top: 12px; left: 20px;
  margin: 0; padding: 0; background: none; color: #ffffff;
  font-family: var(--serif); font-weight: 500; font-size: 42px; letter-spacing: 0; line-height: 1;
  text-shadow: 0 1px 10px rgba(0,0,0,.4);
}
.cards-toned .card h3 {
  background: #ffffff;
  margin: 0; padding: 22px 26px 18px; color: var(--slate-deep);
  border-bottom: 1px solid color-mix(in oklab, var(--slate) 16%, var(--taupe));
}
.cards-toned .card p { margin: 0 0 18px; padding: 18px 26px 0; }
.cards-toned .card .audio-note { margin: auto 26px 20px; border-top-color: var(--brass); }
.cards-toned .an-track { background: #ffffff; }
.audio-note {
  margin-top: auto; padding-top: 16px;
  border-top: 1px solid var(--slate);
}
.card > .card-index + h3 { } /* spacing handled by card */
.card h3 + p { margin-bottom: 18px; }
.an-row { display: flex; align-items: center; gap: 12px; }
.an-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 11px; }
.an-play {
  width: 34px; height: 34px; flex: none; border-radius: 50%;
  border: 1px solid var(--taupe); background: #ffffff;
  color: var(--accent-deep); display: flex; align-items: center; justify-content: center;
  cursor: pointer; padding: 0; transition: background .2s ease, border-color .2s ease, color .2s ease;
}
.an-play:hover { border-color: var(--accent); background: #ffffff; color: var(--accent); }
.an-play svg { width: 15px; height: 15px; fill: currentColor; }
.an-ico-pause { display: none; }
.audio-note.is-playing .an-ico-play { display: none; }
.audio-note.is-playing .an-ico-pause { display: inline; }
.audio-note.is-playing .an-play { border-color: var(--accent); color: var(--accent); }
.an-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.an-label { font-size: 12px; letter-spacing: 0.02em; color: var(--stone-text); line-height: 1.2; }
.an-track { height: 3px; background: var(--taupe-lt); border-radius: 2px; cursor: pointer; position: relative; }
.an-fill { height: 100%; width: 0%; background: var(--accent); border-radius: 2px; transition: width .12s linear; }
.an-time { font-size: 11.5px; color: var(--stone-soft); font-variant-numeric: tabular-nums; flex: none; white-space: nowrap; }
.an-tx-toggle {
  flex: none; background: none; border: none; font-family: var(--sans);
  font-size: 11.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent-deep);
  cursor: pointer; padding: 4px 2px; transition: color .2s ease;
}
.an-tx-toggle:hover { color: var(--charcoal); }
.an-tx-toggle[aria-expanded="true"] { color: var(--charcoal); font-weight: 600; }
.an-transcript { margin-top: 12px; padding: 12px 14px; background: var(--cream); border: 1px solid var(--taupe-lt); border-radius: 4px; }
.an-transcript p { font-size: 13.5px; line-height: 1.56; color: var(--body-text); margin: 0; }
.an-transcript p.an-tx-ph { font-style: italic; color: var(--stone-text); }
.an-play:focus-visible, .an-tx-toggle:focus-visible, .an-track:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (max-width: 480px) {
  .an-tx-toggle { padding: 4px 0; }
  .an-label { font-size: 11.5px; }
}
