/* style.css – modern responsive theme (light + dark) */
:root {
  --bg: #f5f9fc;
  --surface: #fff;
  --ink: #0f1b2d;
  --muted: #566178;
  --line: #dde4ec;
  --beam: #1769aa;
  --beam-soft: #e2eef9;
  --amber: #d64550;
  --soft: #bfd3e3;
  --shadow: 0 10px 30px rgba(15,27,45,.08);
  --r: 16px;
  --gut: clamp(18px,4vw,32px);
}
@media(prefers-color-scheme:dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b1220;
    --surface: #121c2e;
    --ink: #e8eef7;
    --muted: #9aa7bd;
    --line: #223049;
    --beam: #6bb3ee;
    --beam-soft: #12304a;
    --amber: #ff7a85;
    --soft: #2c3d57;
    --shadow: 0 10px 30px rgba(0,0,0,.35);
  }
}
:root[data-theme="dark"] {
  --bg: #0b1220;
  --surface: #121c2e;
  --ink: #e8eef7;
  --muted: #9aa7bd;
  --line: #223049;
  --beam: #6bb3ee;
  --beam-soft: #12304a;
  --amber: #ff7a85;
  --soft: #2c3d57;
  --shadow: 0 10px 30px rgba(0,0,0,.35);
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: clamp(16px,.35vw + 15px,18px)/1.65 system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;
  -webkit-text-size-adjust: 100%;
}
a {
  color: var(--beam);
  text-underline-offset: 3px;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
:focus-visible {
  outline: 3px solid var(--beam);
  outline-offset: 3px;
  border-radius: 6px;
}
.wrap {
  width: min(1080px,100% - 2*var(--gut));
  margin-inline: auto;
}
.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--beam);
  color: #fff;
  padding: 8px 14px;
  border-radius: 8px;
  z-index: 100;
}
.skip:focus {
  left: 8px;
}

/* header */
header.site {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb,var(--bg) 82%,transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.bar {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 64px;
}
.brand {
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -.01em;
  color: var(--ink);
  text-decoration: none;
  margin-right: auto;
}
nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
nav>ul {
  display: flex;
  gap: 4px;
  font-size: .95rem;
}
nav a {
  display: block;
  padding: 10px 14px;
  border-radius: 10px;
  color: var(--ink);
  text-decoration: none;
  transition: background .2s,color .2s;
}
nav a:hover {
  background: var(--beam-soft);
  color: var(--beam);
}
nav a[aria-current] {
  color: var(--beam);
  font-weight: 600;
  background: var(--beam-soft);
}
.has-sub {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}
.sub-toggle {
  display: none;
}
.sub {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  padding: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
}
.has-sub:hover .sub, .has-sub:focus-within .sub {
  display: block;
}
.has-sub.closed .sub {
  display: none!important;
}
.theme-btn, .menu-btn {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  display: grid;
  place-items: center;
}
.theme-btn::before {
  content: "";
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: linear-gradient(90deg,currentColor 50%,transparent 50%);
  border: 2px solid currentColor;
}
.menu-btn {
  display: none;
}
.menu-btn span, .menu-btn span::before, .menu-btn span::after {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform .25s,opacity .25s;
}
.menu-btn span {
  position: relative;
}
.menu-btn span::before, .menu-btn span::after {
  content: "";
  position: absolute;
  left: 0;
}
.menu-btn span::before {
  top: -6px;
}
.menu-btn span::after {
  top: 6px;
}
.menu-btn[aria-expanded="true"] span {
  background: transparent;
}
.menu-btn[aria-expanded="true"] span::before {
  transform: translateY(6px) rotate(45deg);
}
.menu-btn[aria-expanded="true"] span::after {
  transform: translateY(-6px) rotate(-45deg);
}
@media(max-width:860px) {
  .menu-btn {
    display: grid;
  }
  nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 8px var(--gut) 16px;
    display: none;
    max-height: calc(100vh - 64px);
    overflow: auto;
  }
  nav.open {
    display: block;
  }
  nav>ul {
    flex-direction: column;
    gap: 2px;
  }
  nav a {
    padding: 12px 14px;
  }
  .has-sub>a {
    flex: 1;
  }
  .sub-toggle {
    display: block;
    width: 44px;
    height: 44px;
    border: 0;
    background: none;
    color: var(--ink);
    cursor: pointer;
  }
  .sub-toggle::before {
    content: "";
    display: block;
    width: 8px;
    height: 8px;
    margin: auto;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform .25s;
  }
  .sub-toggle[aria-expanded="true"]::before {
    transform: rotate(225deg);
  }
  .sub, .has-sub:hover .sub, .has-sub:focus-within .sub {
    position: static;
    display: none;
    width: 100%;
    border: 0;
    box-shadow: none;
    background: none;
    padding: 0 0 6px 14px;
  }
  .has-sub.expanded .sub {
    display: block;
  }
}

/* hero */
.hero {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: clamp(24px,6vw,72px);
  align-items: center;
  padding: clamp(36px,8vw,96px) 0 clamp(24px,5vw,56px);
}
.eyebrow {
  margin: 0 0 12px;
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--beam);
}
h1 {
  font-size: clamp(2.2rem,6vw,3.9rem);
  line-height: 1.05;
  margin: 0 0 14px;
  letter-spacing: -.03em;
}
.tagline {
  font-size: clamp(1.05rem,1.5vw + .6rem,1.3rem);
  color: var(--muted);
  margin: 0 0 24px;
  max-width: 36em;
}
.portrait {
  width: 100%;
  max-width: 340px;
  aspect-ratio: 4/5;
  object-fit: cover;
  object-position: top;
  border-radius: 28px;
  justify-self: center;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}
@media(max-width:760px) {
  .hero {
    grid-template-columns: 1fr;
  }
  .portrait {
    order: -1;
    max-width: 200px;
    justify-self: start;
  }
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  min-height: 44px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  transition: transform .2s,box-shadow .2s;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.btn.primary {
  background: var(--beam);
  border-color: var(--beam);
  color: #fff;
}
[data-theme="dark"] .btn.primary {
  color: #07202a;
}

/* sections */
section {
  padding: clamp(28px,5vw,52px) 0;
  border-top: 1px solid var(--line);
}
header.page {
  padding: clamp(32px,6vw,64px) 0 clamp(16px,3vw,28px);
}
h2 {
  font-size: .85rem;
  margin: 0 0 20px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--beam);
}
h3 {
  margin: 0 0 6px;
  font-size: 1.2rem;
  line-height: 1.3;
}
p {
  margin: 0 0 16px;
}
.prose {
  max-width: 68ch;
}
.prose strong, .entry strong {
  font-weight: 650;
}
.philosophy {
  margin: 24px 0 0;
  padding: 18px 22px;
  border-left: 4px solid var(--beam);
  background: var(--beam-soft);
  border-radius: 0 var(--r) var(--r) 0;
}
.meta {
  font-size: .9rem;
  color: var(--muted);
}
.cards, .tool-list {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(min(100%,250px),1fr));
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.card, .tool-link {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 22px;
  transition: transform .25s,box-shadow .25s,border-color .25s;
}
.card:hover, .tool-link:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--beam);
}
.tag {
  display: inline-block;
  margin-bottom: 10px;
  padding: 2px 12px;
  border-radius: 999px;
  background: var(--beam-soft);
  color: var(--beam);
  font-size: .8rem;
  font-weight: 600;
}
.tool-link {
  display: flex;
  align-items: center;
  gap: 18px;
  height: 100%;
  color: inherit;
  text-decoration: none;
}
.tool-text strong {
  display: block;
  color: var(--ink);
  font-size: 1.05rem;
}
.tool-text span {
  display: block;
  color: var(--muted);
  font-size: .92rem;
  line-height: 1.45;
}
.icon {
  width: 48px;
  height: 48px;
}
.icon-large {
  width: 84px;
  height: 84px;
}
.pills {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.pills li {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 6px 16px;
  border-radius: 999px;
  font-size: .92rem;
  transition: transform .2s,border-color .2s;
}
.pills li:hover {
  transform: translateY(-3px);
  border-color: var(--beam);
}
ul.plain {
  padding-left: 20px;
  margin: 0 0 16px;
}
ul.plain li {
  margin-bottom: 8px;
}
.row {
  display: grid;
  grid-template-columns: minmax(0,280px) 1fr;
  gap: clamp(16px,4vw,32px);
  align-items: center;
  margin-bottom: 28px;
}
.row img {
  border-radius: 12px;
  border: 1px solid var(--line);
  width: 100%;
}
@media(max-width:640px) {
  .row {
    grid-template-columns: 1fr;
  }
}
.entry {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 20px 22px;
  margin-bottom: 16px;
}
.entry h3 {
  margin-bottom: 10px;
}
.poster img {
  border-radius: 12px;
  border: 1px solid var(--line);
  width: 100%;
  max-width: 700px;
  margin-top: 12px;
  transition: transform .3s,box-shadow .3s;
}
.poster:hover img {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.publication {
  display: block;
}
.publication img {
  border-radius: 12px;
  border: 1px solid var(--line);
  width: 100%;
  max-width: 600px;
  margin: 12px auto 0;
  transition: transform .3s,box-shadow .3s;
}
.publication:hover img {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.page-education section .entry {
  position: relative;
  margin-left: 22px;
  border-radius: 0 var(--r) var(--r) 0;
  border-left: 3px solid var(--beam);
}
.page-education section .entry::before {
  content: "";
  position: absolute;
  left: -31px;
  top: 24px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--bg);
  border: 3px solid var(--beam);
}
footer {
  padding: 28px 0 56px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .9rem;
}
.foot {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

/* doctor theme */
:root {
  --a: #1769aa;
}
:root {
  --beam: var(--a);
  --beam-soft: color-mix(in srgb,var(--a) 12%,var(--surface));
}
:root[data-theme=dark] {
  --beam: color-mix(in srgb,var(--a) 60%,#fff);
  --beam-soft: color-mix(in srgb,var(--a) 25%,var(--surface));
}
@media(prefers-color-scheme:dark) {
  :root:not([data-theme=light]) {
    --beam: color-mix(in srgb,var(--a) 60%,#fff);
    --beam-soft: color-mix(in srgb,var(--a) 25%,var(--surface));
  }
}
:root[data-accent=green] {
  --a: #0b7a55;
}
:root[data-accent=red] {
  --a: #c13a46;
}
:root[data-accent=violet] {
  --a: #6b4fbb;
}
h2 {
  text-transform: none;
  letter-spacing: 0;
  font-size: 1.5rem;
  color: var(--ink);
}
.eyebrow {
  text-transform: none;
  letter-spacing: .02em;
  font-size: 1rem;
}
.notice {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 14px 18px;
  border-radius: var(--r);
  background: color-mix(in srgb,var(--amber) 12%,var(--surface));
  border: 1px solid color-mix(in srgb,var(--amber) 45%,var(--line));
  margin: 0 0 8px;
}
.notice b {
  color: var(--amber);
}
.info {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(220px,1fr));
  gap: 16px;
}
.info dl {
  margin: 0;
}
.info dt {
  font-weight: 650;
}
.info dd {
  margin: 0 0 10px;
  color: var(--muted);
}
form.book {
  display: grid;
  gap: 14px;
  max-width: 520px;
}
form.book label {
  display: grid;
  gap: 4px;
  font-weight: 600;
}
form.book input, form.book select, form.book textarea {
  font: inherit;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
}
.picker {
  display: flex;
  align-items: center;
  gap: 8px;
}
.picker button {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid var(--surface);
  outline: 1px solid var(--line);
  cursor: pointer;
}
.picker button[aria-pressed=true] {
  outline: 2px solid var(--ink);
}
.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(min(100%,300px),1fr));
  gap: 16px;
}
.fact {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 14px 14px 20px;
}
.fact .fig {
  display: block;
  width: 100%;
  height: auto;
  background: var(--beam-soft);
  border-radius: 12px;
  color: var(--beam);
  margin-bottom: 14px;
}
.fig * {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.fig .f {
  fill: currentColor;
  fill-opacity: .2;
}
.fig .beat {
  transform-box: fill-box;
  transform-origin: center;
  animation: bt 1.2s ease-in-out infinite;
}
@keyframes bt {
  50% {
    transform: scale(1.07);
  }
}
.fact h3 {
  font-size: 1.6rem;
  margin: 0 0 4px;
  color: var(--beam);
}
.fact p {
  margin: 0;
}
.fact .lab {
  font-weight: 650;
  display: block;
}

/* more life: hero backdrop, stats, explorer, tools */
.hero {
  position: relative;
  isolation: isolate;
}
.hero>* {
  position: relative;
}
.ecg-bg {
  position: absolute!important;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}
.ecg-bg path {
  fill: none;
  stroke: var(--beam);
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
  stroke-linejoin: round;
}
.ecg-bg .e1 {
  opacity: .18;
}
.ecg-bg .e2 {
  stroke-width: 3;
  stroke: var(--amber);
  stroke-dasharray: 6 94;
  animation: ecgrun 6s linear infinite;
}
@keyframes ecgrun {
  from {
    stroke-dashoffset: 6;
  }
  to {
    stroke-dashoffset: -94;
  }
}
.hero h1 {
  background: linear-gradient(90deg,var(--ink),var(--beam));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.eyebrow {
  min-height: 1.6em;
  font-size: 1.15rem;
}
#typed::after {
  content: "";
  display: inline-block;
  width: 2px;
  height: 1.1em;
  margin-left: 3px;
  vertical-align: -.15em;
  background: var(--amber);
  animation: blink 1s steps(2,start) infinite;
}
.portrait {
  border: 4px solid var(--surface);
  box-shadow: 0 0 0 3px var(--beam),var(--shadow);
  transition: transform .4s;
}
.portrait:hover {
  transform: rotate(-2deg) scale(1.02);
}
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(150px,1fr));
  gap: 14px;
  padding: 22px;
  border: 0;
  border-radius: var(--r);
  background: var(--beam);
  color: #fff;
  margin: 8px 0 0;
}
.stats div {
  text-align: center;
}
.stats strong {
  display: block;
  font-size: clamp(1.6rem,4vw,2.3rem);
  line-height: 1.15;
}
.stats span {
  font-size: .9rem;
  opacity: .9;
}
[data-theme=dark] .stats {
  color: #06121e;
}
.explorer {
  display: grid;
  grid-template-columns: minmax(150px,220px) 1fr;
  gap: clamp(16px,4vw,40px);
  align-items: center;
}
@media(max-width:640px) {
  .explorer {
    grid-template-columns: 1fr;
  }
  .explorer .body {
    max-width: 180px;
    margin: auto;
  }
}
.body {
  width: 100%;
  height: auto;
  color: var(--beam);
  background: var(--beam-soft);
  border-radius: var(--r);
  padding: 8px;
}
.body * {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.body .f * {
  fill: currentColor;
  fill-opacity: .08;
  stroke-opacity: .5;
}
.organ {
  cursor: pointer;
  color: var(--beam);
}
.organ * {
  fill: currentColor;
  fill-opacity: .25;
  transition: fill-opacity .2s;
}
.organ:hover *, .organ:focus-visible * {
  fill-opacity: .55;
}
.organ.on {
  color: var(--amber);
}
.organ.on * {
  fill-opacity: .7;
  animation: glow 1.4s ease-in-out infinite alternate;
}
@keyframes glow {
  to {
    fill-opacity: .35;
  }
}
.obtns {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.obtns button, .tmodes button {
  font: inherit;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
}
.obtns button[aria-pressed=true], .tmodes button[aria-pressed=true] {
  background: var(--beam);
  border-color: var(--beam);
  color: #fff;
}
[data-theme=dark] .obtns button[aria-pressed=true], [data-theme=dark] .tmodes button[aria-pressed=true] {
  color: #06121e;
}
.oinfo h3 {
  font-size: 1.5rem;
  color: var(--beam);
}
.widget {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: clamp(18px,3vw,28px);
  max-width: 640px;
}
.opts {
  display: grid;
  gap: 10px;
  margin: 14px 0;
}
.opts .btn {
  justify-content: flex-start;
  text-align: left;
}
.opts .right {
  background: #1b8a4b;
  border-color: #1b8a4b;
  color: #fff;
}
.opts .wrong {
  background: #c13a46;
  border-color: #c13a46;
  color: #fff;
}
#qf {
  min-height: 2.6em;
}
.tap {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  border: 0;
  background: var(--amber);
  color: #fff;
  font: 700 1.05rem/1.3 inherit;
  cursor: pointer;
  box-shadow: 0 0 0 8px color-mix(in srgb,var(--amber) 22%,transparent);
}
.tap.hit {
  animation: hit .3s;
}
@keyframes hit {
  50% {
    transform: scale(.92);
  }
}
.bpm {
  margin: 16px 0 4px;
}
.bpm strong {
  font-size: 2.6rem;
  color: var(--amber);
}
.tv {
  font-size: clamp(3rem,10vw,4.5rem);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  margin: 10px 0;
}
.tbar {
  height: 8px;
  border-radius: 99px;
  background: var(--beam-soft);
  overflow: hidden;
  margin-bottom: 16px;
}
.tbar span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--beam);
  transition: width 1s linear;
}
.tmodes {
  display: flex;
  gap: 8px;
}

/* black certificates */
.certs {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(min(100%,320px),1fr));
  gap: 28px;
}
.cert-card {
  margin: 0;
}
.cert-card figcaption {
  margin-top: 12px;
}
.cert-card strong {
  display: block;
}
.cert-open {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
  font: inherit;
  text-align: inherit;
  color: inherit;
}
.cert {
  container-type: inline-size;
  position: relative;
  overflow: hidden;
  aspect-ratio: 1.414;
  background: radial-gradient(ellipse at 50% 0,#202026,#09090b 72%);
  color: #efe6d0;
  border-radius: 6px;
  padding: 3cqw;
  box-shadow: 0 18px 40px rgba(0,0,0,.35);
  transition: transform .25s,box-shadow .25s;
}
.cert-open:hover .cert, .cert-open:focus-visible .cert {
  transform: translateY(-5px);
  box-shadow: 0 26px 50px rgba(0,0,0,.45);
}
.cert::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg,transparent 42%,rgba(255,255,255,.14) 50%,transparent 58%);
  transform: translateX(-110%);
  transition: transform .9s;
}
.cert-open:hover .cert::after {
  transform: translateX(110%);
}
.cert-in {
  position: relative;
  height: 100%;
  border: .5cqw solid #c9a227;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  text-align: center;
  padding: 3.2cqw 5cqw 2.6cqw;
}
.cert-in::before {
  content: "";
  position: absolute;
  inset: 1.1cqw;
  border: .15cqw solid rgba(201,162,39,.55);
  pointer-events: none;
}
.cert p {
  margin: 0;
}
.c-k {
  font-size: 2.8cqw;
  letter-spacing: .6em;
  text-indent: .6em;
  color: #c9a227;
}
.c-t {
  font: 600 6.4cqw/1.1 Georgia,"Times New Roman",serif;
  color: #fff;
  letter-spacing: .02em;
}
.c-s {
  font-size: 2.3cqw;
  letter-spacing: .14em;
  opacity: .7;
}
.c-n {
  font: italic 6.8cqw/1.1 Georgia,"Times New Roman",serif;
  color: #e3bf4a;
  border-bottom: .2cqw solid rgba(201,162,39,.5);
  padding: 0 4cqw .8cqw;
}
.c-d {
  font-size: 2.4cqw;
  max-width: 72%;
  opacity: .85;
  line-height: 1.4;
}
.c-f {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  width: 100%;
  font-size: 2.1cqw;
  line-height: 1.4;
  opacity: .9;
}
.c-f>span {
  min-width: 22%;
}
.c-f>span:last-child {
  border-top: .15cqw solid rgba(239,230,208,.6);
  padding-top: .6cqw;
}
.c-seal {
  width: 9cqw;
  height: 9cqw;
}
.c-seal * {
  fill: none;
  stroke: #c9a227;
  stroke-width: 2;
}
.c-seal path {
  fill: #c9a227;
  stroke: none;
}
.cert.pic {
  padding: 1.6cqw;
  background: #09090b;
  border: .5cqw solid #c9a227;
}
.cert.pic img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
dialog.cert-dlg {
  border: 0;
  padding: 0;
  background: transparent;
  width: min(920px,94vw);
  max-width: none;
  overflow: visible;
}
dialog.cert-dlg::backdrop {
  background: rgba(0,0,0,.8);
}
.cert-dlg .cert {
  cursor: default;
  box-shadow: 0 30px 80px rgba(0,0,0,.6);
}
.cert-x {
  position: absolute;
  right: -6px;
  top: -44px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 0;
  background: #fff;
  color: #111;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}
.cert-cap {
  color: #fff;
  text-align: center;
  margin: 12px 0 0;
}

/* gallery */
.gal {
  display: grid;
  grid-template-columns: repeat(auto-fill,minmax(min(100%,230px),1fr));
  gap: 14px;
}
.g-tile {
  position: relative;
  display: block;
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--beam-soft);
  cursor: zoom-in;
  font: inherit;
  color: inherit;
}
figure.g-tile {
  cursor: zoom-in;
}
.gal > img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  object-position: center 20%;
  border-radius: var(--r);
  border: 1px solid var(--line);
  cursor: zoom-in;
  transition: transform .5s;
}
.gal > img:hover {
  transform: scale(1.03);
}
.g-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  transition: transform .5s;
}
.g-tile:hover img, .g-tile:focus-visible img {
  transform: scale(1.07);
}
.g-cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 22px 12px 10px;
  font-size: .9rem;
  font-weight: 600;
  color: #fff;
  text-align: left;
  background: linear-gradient(transparent,rgba(0,0,0,.7));
}
.g-tile.ph {
  cursor: default;
  display: grid;
  place-items: center;
  border-style: dashed;
  color: var(--beam);
}
.g-tile.ph svg {
  width: 52px;
  height: 52px;
}
.g-tile.ph svg * {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.g-tile.ph .g-cap {
  background: none;
  color: var(--muted);
  text-align: center;
  font-weight: 500;
}
.img-dlg img {
  display: block;
  max-width: 100%;
  max-height: 78vh;
  margin: auto;
  border-radius: 10px;
}
.g-nav {
  position: absolute;
  top: 45%;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 0;
  background: rgba(255,255,255,.9);
  color: #111;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
}
.g-nav.prev {
  left: -8px;
}
.g-nav.next {
  right: -8px;
}
@media(max-width:1000px) {
  nav a {
    padding: 10px 9px;
    font-size: .9rem;
  }
}
