/* ==========================================================================
   Quantum Safe Bangladesh — site styles
   Palette is drawn from the brand mark (Bloch-sphere violet / magenta) and
   from the paddy-field green of the ministry brief.
   ========================================================================== */

:root {
  /* colour */
  --ink:        #061711;   /* deepest — night over the delta */
  --field:      #0C3A2B;   /* paddy green */
  --field-lift: #12513C;
  --paper:      #F3F6EF;   /* rice paper */
  --paper-warm: #E7EBE0;
  --violet:     #6B2BD9;   /* qubit violet, from the mark */
  --violet-lo:  #A98BF0;
  --rose:       #E0455E;   /* the |1> pole, and the flag */
  --grain:      #E0A63C;   /* gold — harvest */
  --line:       rgba(6, 23, 17, .14);
  --line-dark:  rgba(243, 246, 239, .16);
  --muted:      #4B5A52;
  --muted-dark: rgba(243, 246, 239, .68);

  /* type */
  --display: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --body:    "Newsreader", Georgia, "Times New Roman", serif;
  --mono:    "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --bangla:  "Anek Bangla", "Noto Sans Bengali", sans-serif;

  /* metrics */
  --gut: clamp(20px, 4vw, 48px);
  --maxw: 1220px;
  --r: 4px;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: clamp(16.5px, 1.05vw, 18.5px);
  line-height: 1.62;
  font-weight: 350;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

::selection { background: var(--violet); color: #fff; }

/* --------------------------------------------------------------- type ---- */

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.022em;
  line-height: 1.04;
  margin: 0 0 .5em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.5rem, 6.2vw, 4.5rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); }
h3 { font-size: clamp(1.15rem, 1.6vw, 1.4rem); letter-spacing: -0.012em; }
h4 { font-size: 1.02rem; letter-spacing: -0.006em; }

p { margin: 0 0 1.1em; max-width: 68ch; }
p:last-child { margin-bottom: 0; }

.lede { font-size: clamp(1.12rem, 1.5vw, 1.35rem); line-height: 1.55; color: var(--muted); }
.band--dark .lede { color: var(--muted-dark); }

.eyebrow {
  font-family: var(--mono);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .19em;
  text-transform: uppercase;
  color: var(--violet);
  margin: 0 0 1.1rem;
  display: flex;
  align-items: center;
  gap: .7rem;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 1px;
  background: currentColor;
  flex: 0 0 auto;
}
.band--dark .eyebrow { color: var(--grain); }

.bn { font-family: var(--bangla); font-weight: 400; }

.mono { font-family: var(--mono); font-size: .82rem; letter-spacing: .01em; }

.note {
  font-family: var(--mono);
  font-size: .72rem;
  line-height: 1.7;
  letter-spacing: .01em;
  color: var(--muted);
}
.band--dark .note { color: var(--muted-dark); }

/* ------------------------------------------------------------- layout ---- */

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gut); }

.band { padding-block: clamp(60px, 8vw, 116px); position: relative; }
.band--paper { background: var(--paper); color: var(--ink); }
.band--tint  { background: var(--paper-warm); color: var(--ink); }
.band--dark  { background: var(--field); color: var(--paper); }
.band--ink   { background: var(--ink); color: var(--paper); }
.band--tight { padding-block: clamp(44px, 5vw, 68px); }

.band--dark a:not(.btn), .band--ink a:not(.btn) { color: var(--paper); }

.rule { height: 1px; background: var(--line); border: 0; margin: 0; }
.band--dark .rule, .band--ink .rule { background: var(--line-dark); }

.head { max-width: 60ch; margin-bottom: clamp(32px, 4vw, 56px); }
.head p { max-width: 60ch; }

.cols {
  display: grid;
  gap: clamp(28px, 4vw, 64px);
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.cols--2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.cols--3 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.cols--4 { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.cols--split { grid-template-columns: minmax(280px, 1fr) minmax(300px, 1.15fr); align-items: start; }

@media (max-width: 820px) {
  .cols--split { grid-template-columns: 1fr; }
}

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

.btn {
  --btn-bg: var(--violet);
  --btn-fg: #fff;
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-family: var(--display);
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  text-decoration: none;
  padding: .78rem 1.35rem;
  border-radius: var(--r);
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 1px solid var(--btn-bg);
  transition: transform .18s ease, background .18s ease, border-color .18s ease, color .18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn .arw { transition: transform .18s ease; }
.btn:hover .arw { transform: translateX(3px); }

.btn--ghost { --btn-bg: transparent; --btn-fg: currentColor; border-color: var(--line); }
.band--dark .btn--ghost, .band--ink .btn--ghost { border-color: var(--line-dark); }
.btn--ghost:hover { border-color: currentColor; }

.btn--grain { --btn-bg: var(--grain); --btn-fg: var(--ink); }

.btns { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.8rem; }

.tlink {
  font-family: var(--display);
  font-weight: 600;
  font-size: .95rem;
  text-decoration: none;
  border-bottom: 2px solid var(--violet);
  padding-bottom: 2px;
  display: inline-flex;
  gap: .4rem;
  align-items: center;
}
.band--dark .tlink, .band--ink .tlink { border-color: var(--grain); }
.tlink:hover { border-color: currentColor; }

/* ------------------------------------------------------------- header ---- */

.site-head {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(6, 23, 17, .92);
  backdrop-filter: blur(10px);
  color: var(--paper);
  border-bottom: 1px solid var(--line-dark);
}
.site-head .wrap {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  min-height: 68px;
}

.brand { display: flex; align-items: center; gap: .65rem; text-decoration: none; margin-right: auto; }
.brand img { width: 34px; height: 34px; }
.brand b {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--paper);
  display: block;
}
.brand-txt > span {
  font-family: var(--mono);
  font-size: .6rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted-dark);
  display: block;
}

.nav { display: flex; align-items: center; gap: 1.5rem; }
.nav a {
  font-family: var(--display);
  font-size: .9rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--muted-dark);
  padding: .3rem 0;
  border-bottom: 2px solid transparent;
}
.nav a:hover { color: var(--paper); }
.nav a[aria-current="page"] { color: var(--paper); border-color: var(--grain); }
.nav .btn { color: #fff; border: 1px solid var(--btn-bg); }
.nav a.btn[aria-current="page"] { border-color: var(--btn-bg); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line-dark);
  border-radius: var(--r);
  color: var(--paper);
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: .5rem .7rem;
  cursor: pointer;
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute;
    inset: 68px 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--ink);
    border-bottom: 1px solid var(--line-dark);
    padding: .5rem var(--gut) 1.3rem;
    display: none;
  }
  .nav[data-open="true"] { display: flex; }
  .nav a { padding: .85rem 0; border-bottom: 1px solid var(--line-dark); }
  .nav .btn { margin-top: .9rem; justify-content: center; border-bottom: none; }
}

/* --------------------------------------------------------------- hero ---- */

.hero {
  background: var(--ink);
  color: var(--paper);
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line-dark);
}
.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, .94fr);
  gap: clamp(28px, 4vw, 60px);
  align-items: center;
  padding-block: clamp(56px, 8vw, 104px);
}
.hero h1 { max-width: 15ch; }
.hero h1 em {
  font-style: normal;
  color: var(--violet-lo);
}
.hero .lede { color: var(--muted-dark); max-width: 46ch; }

.hero-figure { position: relative; aspect-ratio: 1 / 1; width: 100%; }
.hero-figure canvas { width: 100%; height: 100%; display: block; }
.hero-figure--mark img {
  width: 100%; height: 100%;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 30px 60px rgba(0,0,0,.35));
}
.hero-figure--photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 60% 22%;
  display: block;
  border-radius: var(--r);
  border: 1px solid var(--line-dark);
  box-shadow: 0 30px 60px rgba(0,0,0,.35);
}
.hero-figure figcaption {
  position: absolute;
  left: 0; bottom: -.4rem;
  max-width: 34ch;
  font-family: var(--mono);
  font-size: .7rem;
  line-height: 1.7;
  color: var(--muted-dark);
}
.hero-photo-caption {
  margin-top: .8rem;
  font-family: var(--mono);
  font-size: .7rem;
  line-height: 1.7;
  color: var(--muted-dark);
}

@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-figure { aspect-ratio: 5 / 4; order: -1; }
  .hero-figure figcaption { position: static; margin-top: .6rem; max-width: none; }
  .hero-photo { order: -1; }
}

.hero--page .wrap { grid-template-columns: minmax(0, 1fr); padding-block: clamp(52px, 7vw, 92px); }
.hero--page h1 { max-width: 20ch; }

/* ticker of capabilities under the hero */
.strip {
  background: var(--field);
  color: var(--paper);
  border-bottom: 1px solid var(--line-dark);
}
.strip .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 2.2rem;
  padding-block: .9rem;
  font-family: var(--mono);
  font-size: .7rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted-dark);
}
.strip b { color: var(--grain); font-weight: 500; }

/* -------------------------------------------------------------- video ---- */

.player {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border: 1px solid var(--line-dark);
  border-radius: var(--r);
  overflow: hidden;
  cursor: pointer;
  padding: 0;
  display: block;
}
.player img { width: 100%; height: 100%; object-fit: cover; opacity: .78; transition: opacity .3s ease, transform .5s ease; }
.player:hover img { opacity: .92; transform: scale(1.02); }
.player iframe { width: 100%; height: 100%; border: 0; display: block; }
.player-btn {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: .8rem;
  justify-items: center;
  pointer-events: none;
}
.player-btn i {
  width: 74px; height: 74px;
  border-radius: 50%;
  background: var(--rose);
  display: grid;
  place-content: center;
  box-shadow: 0 10px 40px rgba(0,0,0,.45);
  transition: transform .2s ease;
}
.player:hover .player-btn i { transform: scale(1.07); }
.player-btn span {
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 1px 12px rgba(0,0,0,.7);
}
.player:focus-visible { outline: 3px solid var(--grain); outline-offset: 3px; }

/* -------------------------------------------------------------- cards ---- */

.card {
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: clamp(20px, 2.4vw, 30px);
  background: rgba(255,255,255,.5);
  display: flex;
  flex-direction: column;
  gap: .55rem;
}
.band--dark .card, .band--ink .card {
  border-color: var(--line-dark);
  background: rgba(255,255,255,.035);
}
.card p { font-size: .95rem; color: var(--muted); }
.band--dark .card p, .band--ink .card p { color: var(--muted-dark); }
.card .tlink { margin-top: auto; padding-top: .6rem; align-self: flex-start; }

.card--lead { border-top: 3px solid var(--violet); }
.card--lead:nth-child(2) { border-top-color: var(--rose); }
.card--lead:nth-child(3) { border-top-color: var(--grain); }

.tag {
  font-family: var(--mono);
  font-size: .66rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--violet);
}
.band--dark .tag, .band--ink .tag { color: var(--grain); }

/* -------------------------------------------------------------- stats ---- */

.stat { border-top: 1px solid var(--line); padding-top: 1.1rem; }
.band--dark .stat, .band--ink .stat { border-color: var(--line-dark); }
.stat b {
  display: block;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.2rem, 4.4vw, 3.4rem);
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: .5rem;
}
.stat span { font-size: .92rem; color: var(--muted); display: block; max-width: 30ch; }
.band--dark .stat span, .band--ink .stat span { color: var(--muted-dark); }
.stat--violet b { color: var(--violet); }
.stat--rose b { color: var(--rose); }
.stat--grain b { color: var(--grain); }

/* -------------------------------------------------------------- steps ---- */

.steps { counter-reset: step; display: grid; gap: 1px; background: var(--line); border-block: 1px solid var(--line); }
.band--dark .steps, .band--ink .steps { background: var(--line-dark); border-color: var(--line-dark); }
.step {
  counter-increment: step;
  background: var(--paper);
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 1fr) minmax(0, 1.25fr);
  gap: clamp(14px, 2.5vw, 36px);
  padding: clamp(20px, 2.6vw, 32px) 0;
  align-items: baseline;
}
.band--tint .step { background: var(--paper-warm); }
.band--dark .step { background: var(--field); }
.band--ink .step { background: var(--ink); }
.step::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--mono);
  font-size: .78rem;
  color: var(--violet);
  letter-spacing: .06em;
}
.band--dark .step::before, .band--ink .step::before { color: var(--grain); }
.step p { font-size: .96rem; color: var(--muted); }
.band--dark .step p, .band--ink .step p { color: var(--muted-dark); }

@media (max-width: 760px) {
  .step { grid-template-columns: 2.6rem minmax(0, 1fr); }
  .step p { grid-column: 2; }
}

/* -------------------------------------------------------------- table ---- */

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); }
.band--dark .table-wrap, .band--ink .table-wrap { border-color: var(--line-dark); }

table { width: 100%; border-collapse: collapse; min-width: 620px; }
th, td { text-align: left; padding: .95rem 1.1rem; border-bottom: 1px solid var(--line); vertical-align: top; font-size: .93rem; }
.band--dark th, .band--dark td, .band--ink th, .band--ink td { border-color: var(--line-dark); }
th {
  font-family: var(--mono);
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  background: rgba(0,0,0,.03);
}
.band--dark th, .band--ink th { color: var(--muted-dark); background: rgba(255,255,255,.04); }
tr:last-child td { border-bottom: 0; }
td b { font-family: var(--display); font-weight: 600; }

.pill {
  font-family: var(--mono);
  font-size: .66rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .25rem .5rem;
  border-radius: 2px;
  white-space: nowrap;
  background: rgba(107,43,217,.12);
  color: var(--violet);
}
.pill--final { background: rgba(12,58,43,.12); color: var(--field); }
.pill--draft { background: rgba(224,166,60,.2); color: #8a5f08; }
.pill--watch { background: rgba(224,69,94,.14); color: var(--rose); }

/* --------------------------------------------------------------- list ---- */

.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: .8rem; }
.ticks li { position: relative; padding-left: 1.7rem; font-size: .96rem; }
.ticks li::before {
  content: "";
  position: absolute;
  left: 0; top: .58em;
  width: 8px; height: 8px;
  background: var(--violet);
  transform: rotate(45deg);
}
.band--dark .ticks li::before, .band--ink .ticks li::before { background: var(--grain); }

.defs { display: grid; gap: 0; }
.defs > div { display: grid; grid-template-columns: minmax(120px, 190px) 1fr; gap: 1.2rem; padding: .95rem 0; border-bottom: 1px solid var(--line); }
.band--dark .defs > div, .band--ink .defs > div { border-color: var(--line-dark); }
.defs dt { font-family: var(--display); font-weight: 600; font-size: .95rem; }
.defs dd { margin: 0; font-size: .95rem; color: var(--muted); }
.band--dark .defs dd, .band--ink .defs dd { color: var(--muted-dark); }
@media (max-width: 620px) { .defs > div { grid-template-columns: 1fr; gap: .3rem; } }

/* --------------------------------------------------------------- pull ---- */

.pull {
  border-left: 3px solid var(--rose);
  padding: .2rem 0 .2rem 1.4rem;
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.25rem, 2.3vw, 1.75rem);
  line-height: 1.3;
  letter-spacing: -0.018em;
  max-width: 46ch;
}
.pull cite { display: block; margin-top: .9rem; font: 500 .72rem/1.6 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-style: normal; }
.band--dark .pull cite, .band--ink .pull cite { color: var(--muted-dark); }

/* --------------------------------------------------------- phone/advice -- */

.phones { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1rem; }
.phone {
  border: 1px solid var(--line-dark);
  border-radius: 14px;
  padding: 1rem .9rem 1.2rem;
  background: rgba(255,255,255,.04);
  display: flex;
  flex-direction: column;
  gap: .6rem;
  min-height: 170px;
}
.phone .tag { color: var(--violet-lo); }
.phone .bn { font-size: 1.06rem; line-height: 1.5; }
.phone small { margin-top: auto; font-family: var(--mono); font-size: .66rem; color: var(--muted-dark); letter-spacing: .04em; }

/* -------------------------------------------------------- evidence cards ---- */

.evidence-card {
  border: 1px solid var(--line-dark);
  border-radius: var(--r);
  overflow: hidden;
  background: rgba(255,255,255,.03);
  display: flex;
  flex-direction: column;
}
.evidence-card--light { border-color: var(--line); background: rgba(255,255,255,.5); }

.evidence-card__frame {
  display: block;
  background: #fff;
  border-bottom: 1px solid var(--line-dark);
  aspect-ratio: 16 / 10;
  overflow: hidden;
}
.evidence-card--light .evidence-card__frame { border-color: var(--line); }
.evidence-card__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
  transition: transform .35s ease;
}
/* screenshots of dashboards/maps: show the whole frame, never crop content */
.evidence-card--shot .evidence-card__frame { aspect-ratio: 16 / 9.2; }
.evidence-card--shot .evidence-card__frame img { object-fit: contain; object-position: center; }

.evidence-card__frame:hover img { transform: scale(1.035); }
.evidence-card__frame:focus-visible { outline: 3px solid var(--grain); outline-offset: -3px; }

.evidence-card__body { padding: clamp(16px, 2vw, 22px); display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.evidence-card__body h3 { font-size: 1.02rem; font-weight: 600; letter-spacing: -0.01em; margin: 0; }
.evidence-card__body .tlink { margin-top: auto; padding-top: .5rem; font-size: .85rem; align-self: flex-start; }

/* ----------------------------------------------------------- diagram ---- */

.diagram {
  margin: 0 0 clamp(36px, 4.5vw, 60px);
}

.diagram__frame {
  display: block;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: clamp(12px, 1.8vw, 22px);
  overflow: hidden;
}
.band--dark .diagram__frame, .band--ink .diagram__frame { border-color: var(--line-dark); }
.diagram__frame img { width: 100%; height: auto; }
.diagram__frame:focus-visible { outline: 3px solid var(--grain); outline-offset: 3px; }

.diagram figcaption {
  font-family: var(--mono);
  font-size: .72rem;
  line-height: 1.7;
  color: var(--muted);
  max-width: 78ch;
  margin-top: .9rem;
  padding-left: .9rem;
  border-left: 2px solid var(--violet);
}
.band--dark .diagram figcaption, .band--ink .diagram figcaption { color: var(--muted-dark); }

/* ----------------------------------------------------------- formula ---- */

.formula-card {
  border: 1px solid var(--line-dark);
  border-radius: var(--r);
  padding: clamp(22px, 3vw, 32px);
  background: rgba(255,255,255,.03);
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
.band--paper .formula-card, .band--tint .formula-card { border-color: var(--line); background: rgba(255,255,255,.5); }

.formula-card__head { display: flex; align-items: baseline; gap: .8rem; flex-wrap: wrap; }
.formula-card__acronym {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.55rem;
  letter-spacing: -0.01em;
  color: var(--grain);
  margin: 0;
}
.band--paper .formula-card__acronym, .band--tint .formula-card__acronym { color: var(--violet); }
.formula-card__name {
  font-family: var(--mono);
  font-size: .66rem;
  letter-spacing: .09em;
  text-transform: uppercase;
  line-height: 1.5;
  color: var(--muted-dark);
  margin: 0;
}
.band--paper .formula-card__name, .band--tint .formula-card__name { color: var(--muted); }

.formula-card__eq {
  font-family: var(--mono);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  color: var(--paper);
  background: rgba(255,255,255,.05);
  border: 1px solid var(--line-dark);
  border-radius: 6px;
  padding: 1rem 1.1rem;
  text-align: center;
  letter-spacing: .01em;
}
.band--paper .formula-card__eq, .band--tint .formula-card__eq {
  color: var(--ink);
  background: rgba(107,43,217,.06);
  border-color: var(--line);
}

.formula-card__legend { display: grid; gap: .65rem; margin: 0; }
.formula-card__legend > div { display: grid; grid-template-columns: 4.6rem 1fr; gap: .8rem; align-items: baseline; }
.formula-card__legend dt { font-family: var(--mono); font-weight: 600; color: var(--violet-lo); font-size: .92rem; margin: 0; }
.band--paper .formula-card__legend dt, .band--tint .formula-card__legend dt { color: var(--violet); }
.formula-card__legend dd { margin: 0; font-size: .89rem; line-height: 1.55; color: var(--muted-dark); }
.band--paper .formula-card__legend dd, .band--tint .formula-card__legend dd { color: var(--muted); }

.formula-card__note {
  font-size: .84rem;
  line-height: 1.6;
  color: var(--muted-dark);
  border-top: 1px solid var(--line-dark);
  padding-top: .9rem;
  margin: 0;
}
.band--paper .formula-card__note, .band--tint .formula-card__note { color: var(--muted); border-color: var(--line); }

@media (max-width: 480px) {
  .formula-card__legend > div { grid-template-columns: 1fr; gap: .15rem; }
}

/* --------------------------------------------------------------- team ---- */

.person {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 1.4rem;
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: clamp(20px, 2.6vw, 32px);
  align-items: start;
}
.avatar {
  width: 96px; height: 96px;
  border-radius: 50%;
  display: grid;
  place-content: center;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.7rem;
  letter-spacing: -0.03em;
  color: #fff;
  background: linear-gradient(150deg, var(--violet), #2B1F6B 55%, var(--rose));
}
.person h3 { margin-bottom: .1rem; }
.person .tag { margin-bottom: .8rem; display: block; }
@media (max-width: 560px) { .person { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------- form ---- */

.form { display: grid; gap: 1rem; max-width: 560px; }
.field { display: grid; gap: .4rem; }
.field label { font-family: var(--mono); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.band--dark .field label { color: var(--muted-dark); }
.field input, .field select, .field textarea {
  font-family: var(--body);
  font-size: 1rem;
  color: inherit;
  background: rgba(255,255,255,.06);
  border: 1px solid var(--line-dark);
  border-radius: var(--r);
  padding: .7rem .8rem;
  width: 100%;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--grain); outline-offset: 1px; }
.field select option { color: #111; }

/* ------------------------------------------------------------- footer ---- */

.site-foot { background: var(--ink); color: var(--muted-dark); padding-block: clamp(44px, 5vw, 70px) 2rem; }
.foot-grid { display: grid; grid-template-columns: minmax(220px, 1.4fr) repeat(auto-fit, minmax(150px, 1fr)); gap: 2rem clamp(24px, 4vw, 56px); }
.site-foot h4 { color: var(--paper); font-family: var(--mono); font-size: .68rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 1rem; }
.site-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.site-foot a { text-decoration: none; font-size: .92rem; }
.site-foot a:hover { color: var(--paper); }
.foot-brand img { width: 46px; margin-bottom: .9rem; }
.foot-brand p { font-size: .92rem; max-width: 34ch; }
.foot-base { margin-top: 2.6rem; padding-top: 1.4rem; border-top: 1px solid var(--line-dark); display: flex; flex-wrap: wrap; gap: .6rem 1.6rem; justify-content: space-between; font-family: var(--mono); font-size: .68rem; letter-spacing: .05em; }

/* ------------------------------------------------------------- motion ---- */

.reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.3,1); }
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover, .player:hover img { transform: none; }
}

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

.skip {
  position: absolute;
  left: -9999px;
  background: var(--grain);
  color: var(--ink);
  padding: .7rem 1rem;
  font-family: var(--mono);
  font-size: .8rem;
  z-index: 100;
}
.skip:focus { left: 1rem; top: .6rem; }
