:root {
  color-scheme: dark;
  --bg: #101018;
  --bg-2: #15151b;
  --text: #f7f7f7;
  --muted: #b7b7bd;
  --soft: #8d8d96;
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(255, 255, 255, 0.22);
  --panel: rgba(255, 255, 255, 0.035);
  --panel-hover: rgba(255, 255, 255, 0.06);
  --accent: #c92a61;
  --green: #a9f0c5;
  --max: 1160px;
  --page-pad: clamp(20px, 5vw, 96px);
  --header-h: 108px;
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f2f1ed;
  --bg-2: #e8e5df;
  --text: #17171d;
  --muted: #4d4d56;
  --soft: #6b6b73;
  --line: rgba(17, 17, 24, 0.14);
  --line-strong: rgba(17, 17, 24, 0.26);
  --panel: rgba(17, 17, 24, 0.035);
  --panel-hover: rgba(17, 17, 24, 0.06);
  --accent: #c92a61;
  --green: #248d4d;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: radial-gradient(circle at 50% 0%, var(--bg-2), var(--bg) 58%);
  color: var(--text);
  font-family: Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(rgba(255,255,255,0.018) 1px, transparent 1px);
  background-size: 100% 96px;
  opacity: .45;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; }

.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 200;
  transform: translateY(-160%);
  padding: 8px 12px;
  background: var(--text);
  color: var(--bg);
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  min-height: var(--header-h);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 0 var(--page-pad);
  background: rgba(16, 16, 24, 0.84);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(255,255,255,0.03);
}
:root[data-theme="light"] .site-header {
  background: rgba(242, 241, 237, 0.88);
}
.home-wordmark {
  justify-self: start;
  font-size: clamp(30px, 3vw, 42px);
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.055em;
}
.home-wordmark:hover { color: var(--accent); }
.header-actions {
  grid-column: 2 / 4;
  display: flex;
  justify-self: end;
  align-items: center;
  gap: 20px;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(22px, 4vw, 54px);
}
.site-nav a,
.site-nav .nav-current {
  position: relative;
  color: var(--text);
  font-size: clamp(16px, 1.6vw, 21px);
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.035em;
  padding: 12px 0;
}
.site-nav a:hover { color: var(--muted); }
.site-nav .nav-current::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: var(--accent);
}
.theme-toggle {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--text);
  cursor: pointer;
}
.theme-toggle:hover { border-color: var(--accent); color: var(--accent); }
.theme-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.nav-toggle { display: none; }

.page-hero {
  min-height: 210px;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  background: #11131b;
  border-bottom: 1px solid var(--line);
}
:root[data-theme="light"] .page-hero { background: #d8dbe0; }
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(5, 7, 12, 0.58);
}
:root[data-theme="light"] .page-hero::after { background: rgba(245, 244, 240, 0.40); }
.page-hero-inner {
  position: relative;
  z-index: 1;
  width: min(var(--max), calc(100% - var(--page-pad) * 2));
  padding: 48px 0;
}
.page-hero-inner.centered { text-align: center; }
.hero-media {
  position: absolute;
  inset: 0;
  opacity: .34;
  filter: saturate(.85) blur(.2px);
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.kicker,
.small-title {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 700;
}
h1, h2, h3, p { margin-top: 0; }
h1 {
  margin: 0 0 8px;
  font-family: "Roboto Condensed", Roboto, Arial, sans-serif;
  font-size: clamp(38px, 5vw, 56px);
  line-height: .95;
  letter-spacing: -0.025em;
}
h2 {
  margin: 0;
  font-size: clamp(25px, 3vw, 34px);
  line-height: 1;
  letter-spacing: -0.035em;
}
h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.15;
  letter-spacing: -0.025em;
}
.page-hero p,
.compact-contact p,
.about-copy p {
  color: var(--text);
  max-width: 580px;
  font-size: clamp(17px, 1.8vw, 20px);
  line-height: 1.38;
}
.page-hero p { margin: 0; }

.content-section,
.about-layout {
  width: min(var(--max), calc(100% - var(--page-pad) * 2));
  margin: 0 auto;
  padding: clamp(54px, 7vw, 90px) 0;
  border-bottom: 1px solid var(--line);
}
.section-title-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}
.section-title-row a,
.link-row a,
.footer-nav a,
.footer-nav span {
  color: var(--text);
  font-weight: 700;
}
.section-title-row a,
.link-row a {
  font-size: 15px;
  color: var(--muted);
}
.section-title-row a:hover,
.link-row a:hover,
.footer-nav a:hover { color: var(--accent); }

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}
.filter-button {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  padding: 8px 13px;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
}
.filter-button:hover,
.filter-button.is-active {
  border-color: var(--line-strong);
  color: var(--text);
  background: var(--panel-hover);
}
.filter-button.is-active { border-color: var(--accent); }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.gallery-card,
.video-card {
  width: 100%;
  padding: 0;
  text-align: left;
  background: transparent;
  border: 0;
  color: inherit;
  cursor: pointer;
}
.gallery-card figure,
.video-card {
  margin: 0;
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--line);
}
.thumb-wrap,
.video-thumb {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #08080d;
}
.thumb-wrap img,
.video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 260ms ease, opacity 260ms ease;
}
.gallery-card:hover img,
.video-card:hover img {
  transform: scale(1.035);
  opacity: .88;
}
.card-caption,
.video-info {
  padding: 12px;
  min-height: 68px;
}
.card-caption strong,
.video-info h3 {
  display: block;
  color: var(--text);
  font-size: 14px;
  line-height: 1.25;
}
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 7px;
}
.tag {
  color: var(--soft);
  font-size: 12px;
}
.tag:not(:last-child)::after { content: " ·"; }
.video-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.video-thumb { aspect-ratio: 16 / 9; }
.video-info p { display: none; }
.play-badge {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 22px;
  text-shadow: 0 1px 16px rgba(0,0,0,.7);
}

.compact-contact {
  text-align: center;
  border-bottom: 0;
}
.compact-contact h2 { margin-bottom: 10px; }
.compact-contact p { margin: 0 auto 20px; color: var(--muted); }
.link-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
}
.centered-links { max-width: 680px; margin: 0 auto; }

.about-hero {
  min-height: 210px;
  background:
    linear-gradient(rgba(14,17,24,.15), rgba(14,17,24,.62)),
    radial-gradient(circle at 55% 50%, rgba(72, 98, 164, .70), transparent 35%),
    linear-gradient(110deg, #9aa5b0, #101018 78%);
}
:root[data-theme="light"] .about-hero {
  background:
    linear-gradient(rgba(255,255,255,.15), rgba(255,255,255,.58)),
    radial-gradient(circle at 55% 50%, rgba(72, 98, 164, .42), transparent 35%),
    linear-gradient(110deg, #c5ccd3, #777e8c 78%);
}
.icon-link {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-top: 14px;
  border-radius: 5px;
  color: #101018;
  background: #fff;
  font-weight: 700;
  font-size: 25px;
  font-family: Arial, sans-serif;
}
.about-layout {
  display: grid;
  grid-template-columns: .82fr 1.18fr;
  gap: clamp(36px, 9vw, 140px);
}
.expertise-block ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.expertise-block li {
  display: flex;
  gap: 18px;
  align-items: baseline;
  margin: 12px 0;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -0.035em;
}
.expertise-block li::before {
  content: "•";
  color: var(--green);
  font-size: .72em;
}
.about-copy {
  align-self: start;
  padding-top: 4px;
}
.about-copy p {
  margin-bottom: 24px;
  color: var(--text);
}

.legacy-band {
  min-height: 132px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.legacy-band::before {
  content: "";
  position: absolute;
  inset: -12%;
  background:
    radial-gradient(ellipse at 30% 65%, rgba(117, 31, 187, .90), transparent 32%),
    radial-gradient(ellipse at 58% 42%, rgba(84, 153, 210, .82), transparent 36%),
    radial-gradient(ellipse at 82% 30%, rgba(33, 111, 175, .78), transparent 32%),
    linear-gradient(100deg, #301056, #123a54 55%, #0a1118);
  filter: blur(.2px) saturate(1.18);
  animation: bandDrift 16s ease-in-out infinite alternate;
}
.legacy-band::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(5, 7, 12, .18);
}
:root[data-theme="light"] .legacy-band::after { background: rgba(255,255,255,.28); }
.band-noise {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 100% 44px;
  mix-blend-mode: screen;
  opacity: .24;
}
.labs-page {
  min-height: 60vh;
}
.labs-intro {
  width: min(var(--max), calc(100% - var(--page-pad) * 2));
  margin: 0 auto;
  padding: clamp(62px, 9vw, 116px) 0 clamp(48px, 7vw, 86px);
  display: grid;
  grid-template-columns: .94fr 1.06fr;
  align-items: center;
  gap: clamp(38px, 7vw, 92px);
  border-bottom: 1px solid var(--line);
}
.labs-identity {
  display: grid;
  grid-template-columns: 98px 1fr;
  gap: 28px;
  align-items: center;
}
.labs-identity img {
  width: 98px;
  height: 98px;
  object-fit: contain;
  animation: floatSoft 6.5s ease-in-out infinite;
}
.labs-identity h1 {
  margin-bottom: 18px;
  font-size: clamp(34px, 4.6vw, 52px);
}
.labs-identity p:last-child {
  max-width: 580px;
  margin: 0;
  color: var(--text);
  font-size: clamp(17px, 1.7vw, 20px);
  line-height: 1.42;
}
.labs-orbit {
  min-height: 214px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  isolation: isolate;
}
.labs-orbit::before {
  content: "";
  position: absolute;
  width: min(86%, 520px);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-strong), transparent);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.lab-orb {
  --size: clamp(82px, 8.6vw, 118px);
  width: var(--size);
  height: var(--size);
  display: grid;
  place-items: center;
  border-radius: 50%;
  position: relative;
  margin-left: -16px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 18px 44px rgba(0,0,0,.34);
  overflow: hidden;
  transition: transform .45s cubic-bezier(.2,.8,.2,1), border-color .3s ease, filter .3s ease;
  animation: orbitFloat 7s ease-in-out infinite;
}
.lab-orb:first-child { margin-left: 0; }
.lab-orb:nth-child(2) { animation-delay: -.9s; }
.lab-orb:nth-child(3) { animation-delay: -1.8s; }
.lab-orb:nth-child(4) { animation-delay: -2.7s; }
.lab-orb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s cubic-bezier(.2,.8,.2,1);
}
.lab-orb:hover {
  z-index: 2;
  transform: translateY(-12px) scale(1.06);
  border-color: var(--accent);
  filter: brightness(1.06);
}
.lab-orb:hover img { transform: scale(1.08); }
.labs-projects {
  width: min(var(--max), calc(100% - var(--page-pad) * 2));
  margin: 0 auto;
  padding: clamp(48px, 7vw, 86px) 0 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.lab-project {
  min-height: 360px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 18px;
  color: #fff;
  background: #07070b;
  border: 1px solid var(--line);
  transform-style: preserve-3d;
  transition: transform .55s cubic-bezier(.2,.8,.2,1), border-color .3s ease, opacity .3s ease;
}
.lab-project.featured { grid-column: span 2; }
.lab-project::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, transparent 20%, rgba(0,0,0,.52) 66%, rgba(0,0,0,.86)),
    radial-gradient(circle at 50% 34%, transparent 0, rgba(0,0,0,.18) 54%, rgba(0,0,0,.46) 100%);
}
.lab-project::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  opacity: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.16), transparent 70%);
  transform: translateX(-70%);
  transition: opacity .3s ease, transform .75s ease;
}
.lab-project img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform .8s cubic-bezier(.2,.8,.2,1), filter .45s ease;
}
.lab-project div {
  position: relative;
  z-index: 3;
  transform: translateY(10px);
  transition: transform .45s cubic-bezier(.2,.8,.2,1);
}
.lab-project span {
  display: block;
  margin-bottom: 8px;
  color: rgba(255,255,255,.62);
  font-size: 12px;
  font-weight: 700;
}
.lab-project h2 {
  margin-bottom: 8px;
  font-size: clamp(22px, 2.4vw, 32px);
}
.lab-project p {
  margin: 0;
  color: rgba(255,255,255,.72);
  font-size: 15px;
}
.lab-project:hover {
  transform: translateY(-10px);
  border-color: rgba(255,255,255,.28);
}
.lab-project:hover::after {
  opacity: 1;
  transform: translateX(70%);
}
.lab-project:hover img {
  transform: scale(1.10);
  filter: saturate(1.1) contrast(1.04);
}
.lab-project:hover div { transform: translateY(0); }
[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}
@keyframes bandDrift {
  from { transform: translateX(-1.5%) scale(1.02); }
  to { transform: translateX(1.5%) scale(1.06); }
}
@keyframes floatSoft {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-10px) rotate(3deg); }
}
@keyframes orbitFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
}

.site-footer {
  width: min(var(--max), calc(100% - var(--page-pad) * 2));
  margin: 0 auto;
  padding: 46px 0 64px;
  text-align: center;
  color: var(--muted);
}
.footer-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: clamp(20px, 3.6vw, 40px);
  margin-bottom: 22px;
  font-size: clamp(20px, 2.2vw, 28px);
  line-height: 1;
  letter-spacing: -0.035em;
}
.footer-nav span { color: var(--muted); }
.site-footer p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}
.footer-version { opacity: .55; }

.lightbox,
.video-modal {
  width: min(1120px, calc(100vw - 28px));
  max-width: none;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--text);
}
.lightbox::backdrop,
.video-modal::backdrop {
  background: rgba(0,0,0,.86);
  backdrop-filter: blur(12px);
}
.lightbox figure {
  margin: 0;
  min-height: min(78vh, 760px);
  display: grid;
  grid-template-rows: 1fr auto;
  background: #050507;
}
.lightbox img {
  width: 100%;
  height: min(78vh, 760px);
  object-fit: contain;
}
.lightbox figcaption {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  padding: 14px 16px;
  color: var(--muted);
  font-size: 14px;
  background: var(--bg);
}
.lightbox figcaption strong {
  display: block;
  color: var(--text);
  margin-bottom: 2px;
}
.lightbox-close,
.lightbox-nav {
  position: fixed;
  z-index: 2;
  border: 1px solid rgba(255,255,255,.22);
  background: rgba(16,16,24,.66);
  color: #fff;
  cursor: pointer;
}
.lightbox-close {
  top: 20px;
  right: 20px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 26px;
  line-height: 1;
}
.lightbox-nav {
  top: 50%;
  width: 46px;
  height: 72px;
  transform: translateY(-50%);
  font-size: 42px;
}
.lightbox-nav.prev { left: 18px; }
.lightbox-nav.next { right: 18px; }
.video-frame {
  aspect-ratio: 16/9;
  background: #000;
}
.video-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

@media (max-width: 900px) {
  :root { --header-h: 86px; }
  .site-header {
    grid-template-columns: auto 1fr;
    padding: 0 22px;
  }
  .header-actions { grid-column: 2; gap: 12px; }
  .site-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 18px 22px 28px;
    background: var(--bg);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }
  .site-nav.is-open { display: flex; }
  .site-nav a,
  .site-nav .nav-current {
    width: 100%;
    padding: 16px 0;
    font-size: 25px;
  }
  .theme-toggle { width: 36px; height: 36px; }
  .nav-toggle {
    display: inline-flex;
    width: 38px;
    height: 38px;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: transparent;
    padding: 0 10px;
  }
  .nav-toggle span {
    display: block;
    height: 2px;
    width: 100%;
    background: var(--text);
  }
  .page-hero { min-height: 188px; }
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .video-grid { grid-template-columns: 1fr; }
  .about-layout { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  body { font-size: 15px; }
  .home-wordmark { font-size: 31px; }
  .page-hero-inner,
  .content-section,
  .about-layout,
  .site-footer {
    width: calc(100% - 32px);
  }
  .gallery-grid { gap: 8px; }
  .card-caption,
  .video-info { padding: 10px; }
  .card-caption strong,
  .video-info h3 { font-size: 13px; }
  .filter-button { font-size: 13px; padding: 8px 11px; }
  .section-title-row { align-items: start; }
  .section-title-row a { display: none; }
  .lightbox-nav { width: 38px; height: 58px; font-size: 32px; }
  .lightbox figcaption { grid-template-columns: 1fr; }
}


@media (max-width: 900px) {
  .labs-intro { grid-template-columns: 1fr; }
  .labs-orbit { justify-content: flex-start; min-height: 140px; }
  .labs-projects { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lab-project.featured { grid-column: span 2; }
}
@media (max-width: 560px) {
  .legacy-band { min-height: 104px; }
  .labs-intro { padding-top: 48px; }
  .labs-identity { grid-template-columns: 68px 1fr; gap: 18px; }
  .labs-identity img { width: 68px; height: 68px; }
  .labs-projects { grid-template-columns: 1fr; }
  .lab-project, .lab-project.featured { grid-column: auto; min-height: 300px; }
  .lab-orb { --size: 74px; margin-left: -10px; }
}

/* v0.2.2 — shared footer, labs showcase, motion polish */
:root {
  --motion-smooth: cubic-bezier(.2,.8,.2,1);
  --motion-pop: cubic-bezier(.18,.89,.32,1.28);
}

.page-loader {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: grid;
  place-items: center;
  gap: 18px;
  align-content: center;
  background: var(--bg);
  color: var(--text);
  transition: opacity .42s ease, visibility .42s ease;
}
.page-loader.is-done {
  opacity: 0;
  visibility: hidden;
}
.loader-mark {
  font-size: clamp(28px, 5vw, 46px);
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.055em;
  animation: loaderPulse .72s ease-in-out infinite alternate;
}
.loader-line {
  width: min(170px, 42vw);
  height: 2px;
  overflow: hidden;
  background: var(--line);
}
.loader-line span {
  display: block;
  width: 45%;
  height: 100%;
  background: var(--accent);
  animation: loaderSlide .85s var(--motion-smooth) infinite;
}
@keyframes loaderPulse {
  from { opacity: .48; transform: translateY(3px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes loaderSlide {
  from { transform: translateX(-110%); }
  to { transform: translateX(250%); }
}

.site-header {
  transition: min-height .28s ease, background .28s ease, box-shadow .28s ease, border-color .28s ease;
}
.site-header.is-scrolled {
  min-height: 76px;
  box-shadow: 0 16px 40px rgba(0,0,0,.16);
  border-bottom-color: var(--line);
}
.home-wordmark,
.site-nav a,
.site-nav .nav-current,
.footer-nav a,
.footer-nav span,
.link-row a,
.theme-toggle,
.nav-toggle,
.filter-button {
  transition: color .22s ease, opacity .22s ease, transform .22s var(--motion-smooth), border-color .22s ease, background .22s ease;
}
.home-wordmark:hover,
.site-nav a:hover,
.footer-nav a:hover,
.link-row a:hover {
  transform: translateY(-2px);
}
.is-tapping {
  transform: scale(.97) !important;
}

.page-hero .hero-media img {
  transform: scale(1.04);
  animation: heroBreathe 11s ease-in-out infinite alternate;
}
@keyframes heroBreathe {
  from { transform: scale(1.04) translate3d(0,0,0); }
  to { transform: scale(1.10) translate3d(-1.2%, .8%, 0); }
}

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .62s ease, transform .72s var(--motion-smooth);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

.gallery-card,
.video-card {
  animation: itemRise .52s var(--motion-smooth) both;
  animation-delay: calc(min(var(--item-index, 0), 10) * 42ms);
}
@keyframes itemRise {
  from { opacity: 0; transform: translateY(16px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.gallery-card figure,
.video-card {
  transition: transform .34s var(--motion-smooth), border-color .24s ease, background .24s ease, box-shadow .34s ease;
}
.gallery-card:hover figure,
.video-card:hover {
  transform: translateY(-6px);
  border-color: var(--line-strong);
  box-shadow: 0 18px 46px rgba(0,0,0,.22);
}
.thumb-wrap::after,
.video-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  background: linear-gradient(115deg, transparent 18%, rgba(255,255,255,.14), transparent 64%);
  transform: translateX(-72%);
  transition: opacity .24s ease, transform .75s var(--motion-smooth);
}
.gallery-card:hover .thumb-wrap::after,
.video-card:hover .video-thumb::after {
  opacity: 1;
  transform: translateX(72%);
}
.thumb-wrap img,
.video-thumb img,
.lightbox img {
  opacity: .001;
}
.thumb-wrap img.is-ready,
.video-thumb img.is-ready,
.lightbox img.is-ready {
  opacity: 1;
}

.is-skeleton {
  pointer-events: none;
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--line);
  min-height: 240px;
}
.skeleton-thumb {
  aspect-ratio: 1/1;
  background: linear-gradient(100deg, transparent 0%, var(--panel-hover) 35%, transparent 70%);
  animation: skeletonSweep 1.05s ease-in-out infinite;
}
.video-grid .skeleton-thumb { aspect-ratio: 16/9; }
.skeleton-line {
  width: 64%;
  height: 12px;
  margin: 14px;
  background: var(--line);
  opacity: .55;
}
.load-error {
  color: var(--muted);
  margin: 0;
}
@keyframes skeletonSweep {
  from { transform: translateX(-65%); }
  to { transform: translateX(120%); }
}

.lightbox[open],
.video-modal[open] {
  animation: modalIn .26s var(--motion-smooth) both;
}
.lightbox figure,
.video-frame {
  transform-origin: center;
  animation: modalPanelIn .32s var(--motion-smooth) both;
}
@keyframes modalIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes modalPanelIn {
  from { opacity: 0; transform: translateY(12px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.lightbox-close:hover,
.lightbox-nav:hover {
  border-color: rgba(255,255,255,.48);
  background: rgba(201,42,97,.78);
}

.site-footer {
  padding: clamp(58px, 9vw, 92px) 0 56px;
  border-top: 1px solid var(--line);
}
.footer-work {
  margin: 0 auto clamp(82px, 11vw, 132px);
  text-align: center;
}
.footer-work h2 {
  margin-bottom: 10px;
  font-size: clamp(31px, 3.8vw, 42px);
}
.footer-work p {
  margin: 0 auto 20px;
  max-width: 760px;
  color: var(--muted);
  font-size: clamp(18px, 2.3vw, 25px);
  line-height: 1.32;
}
.footer-nav {
  margin-bottom: 24px;
}
.footer-nav a,
.footer-nav span {
  font-size: clamp(24px, 3.1vw, 34px);
}
.footer-nav span {
  color: var(--muted);
}

.labs-page {
  min-height: auto;
}
.labs-showcase {
  grid-template-columns: 1fr;
  justify-items: center;
  text-align: center;
  padding: clamp(62px, 9vw, 112px) 0 clamp(54px, 7vw, 82px);
  gap: clamp(46px, 6.2vw, 74px);
}
.labs-identity {
  width: min(760px, 100%);
  grid-template-columns: 70px 1fr;
  text-align: left;
  margin: 0 auto;
}
.labs-identity img {
  width: 70px;
  height: 70px;
}
.labs-identity .kicker {
  margin-bottom: 14px;
}
.labs-identity h1 {
  margin-bottom: 16px;
}
.labs-orbit {
  width: min(720px, 100%);
  min-height: clamp(132px, 16vw, 184px);
  margin: 0 auto;
  justify-content: center;
  padding: 26px 0;
}
.labs-orbit::before {
  width: min(92%, 620px);
  top: 50%;
}
.lab-orb {
  --size: clamp(90px, 10vw, 138px);
  margin-left: clamp(-18px, -1.3vw, -12px);
  z-index: 1;
  overflow: visible;
  outline: none;
}
.lab-orb:first-child { margin-left: 0; }
.lab-orb::after {
  content: "";
  position: absolute;
  inset: -7px;
  border-radius: 50%;
  border: 1px solid transparent;
  opacity: 0;
  transform: scale(.92);
  transition: opacity .28s ease, transform .34s var(--motion-smooth), border-color .28s ease;
}
.lab-orb img {
  border-radius: 50%;
  box-shadow: 0 20px 48px rgba(0,0,0,.34);
}
.lab-orb:hover,
.lab-orb:focus-visible,
.lab-orb.is-active {
  z-index: 3;
  transform: translateY(-12px) scale(1.055);
  border-color: var(--accent);
  filter: brightness(1.06);
}
.lab-orb:hover::after,
.lab-orb:focus-visible::after,
.lab-orb.is-active::after {
  opacity: 1;
  transform: scale(1);
  border-color: rgba(201,42,97,.46);
}
.orb-tooltip {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 16px);
  z-index: 5;
  width: max-content;
  max-width: 260px;
  padding: 10px 14px;
  border-radius: 7px;
  background: rgba(8,8,11,.94);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.025em;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(8px) scale(.96);
  transition: opacity .24s ease, transform .32s var(--motion-smooth);
  box-shadow: 0 14px 35px rgba(0,0,0,.28);
}
.orb-tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  width: 10px;
  height: 10px;
  background: inherit;
  transform: translate(-50%, -50%) rotate(45deg);
}
.lab-orb:hover .orb-tooltip,
.lab-orb:focus-visible .orb-tooltip,
.lab-orb.is-active .orb-tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(0) scale(1);
}
.lab-active-panel {
  width: min(420px, 100%);
  margin: -18px auto 0;
  padding: 18px 22px;
  text-align: center;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: opacity .24s ease, transform .28s var(--motion-smooth);
}
.lab-active-panel.is-changing {
  animation: panelChange .34s var(--motion-smooth) both;
}
.lab-active-panel span {
  display: block;
  margin-bottom: 8px;
  color: var(--soft);
  font-size: 12px;
  font-weight: 700;
}
.lab-active-panel h2 {
  margin-bottom: 6px;
  font-size: clamp(24px, 2.8vw, 32px);
}
.lab-active-panel p {
  margin: 0;
  color: var(--muted);
}
@keyframes panelChange {
  from { opacity: .5; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 900px) {
  .site-header.is-scrolled { min-height: 76px; }
  .site-nav.is-open {
    animation: menuDrop .22s var(--motion-smooth) both;
  }
  @keyframes menuDrop {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
  }
  .labs-showcase {
    text-align: center;
    justify-items: center;
  }
  .labs-identity {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    gap: 18px;
  }
  .labs-identity img {
    width: 76px;
    height: 76px;
  }
  .labs-identity p:last-child {
    margin-left: auto;
    margin-right: auto;
  }
  .labs-orbit {
    justify-content: center;
  }
}

@media (max-width: 560px) {
  .footer-work { margin-bottom: 72px; }
  .footer-nav {
    gap: 18px 24px;
  }
  .footer-nav a,
  .footer-nav span {
    font-size: 27px;
  }
  .labs-showcase {
    width: calc(100% - 32px);
    padding-top: 52px;
  }
  .labs-orbit {
    width: 100%;
    min-height: 190px;
    display: grid;
    grid-template-columns: repeat(2, 88px);
    place-content: center;
    gap: 14px;
    padding: 18px 0 8px;
  }
  .labs-orbit::before { display: none; }
  .lab-orb {
    --size: 88px;
    margin-left: 0;
    animation: none;
  }
  .lab-orb:hover,
  .lab-orb:focus-visible,
  .lab-orb.is-active {
    transform: translateY(-6px) scale(1.035);
  }
  .orb-tooltip {
    display: none;
  }
  .lab-active-panel {
    margin-top: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-loader { display: none; }
  .gallery-card,
  .video-card,
  .page-hero .hero-media img,
  .legacy-band::before,
  .labs-identity img,
  .lab-orb,
  .loader-mark,
  .loader-line span,
  .skeleton-thumb {
    animation: none !important;
  }
  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }
}


/* v0.3.0 — contact dock, footer icons, privacy link */
.footer-contact-icons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  margin-top: 22px;
}
.contact-icon,
.contact-panel-actions a {
  width: 46px;
  height: 46px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--panel);
  color: var(--text);
  transition: transform .22s var(--motion-smooth), border-color .22s ease, background .22s ease, color .22s ease, box-shadow .22s ease;
}
.contact-icon:hover,
.contact-panel-actions a:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  background: var(--panel-hover);
  color: var(--accent);
  box-shadow: 0 14px 34px rgba(0,0,0,.18);
}
.contact-icon svg,
.contact-panel-actions svg,
.contact-trigger svg,
.contact-panel-head button svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.contact-panel-actions a:nth-child(3) svg {
  stroke-width: 1.7;
}
.footer-meta {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
}
.footer-meta a {
  color: var(--muted);
  text-decoration: none;
  transition: color .22s ease, transform .22s var(--motion-smooth);
}
.footer-meta a:hover {
  color: var(--accent);
  transform: translateY(-1px);
}
.footer-dot {
  color: var(--soft);
  opacity: .55;
}

.contact-dock {
  position: fixed;
  right: clamp(18px, 3vw, 34px);
  bottom: clamp(18px, 3vw, 34px);
  z-index: 70;
  display: grid;
  justify-items: end;
  gap: 12px;
  pointer-events: none;
}
.contact-trigger,
.contact-panel {
  pointer-events: auto;
}
.contact-trigger {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 88%, var(--bg));
  color: #fff;
  cursor: pointer;
  box-shadow: 0 18px 48px rgba(0,0,0,.28);
  transition: transform .28s var(--motion-pop), background .22s ease, box-shadow .22s ease;
}
.contact-trigger:hover {
  transform: translateY(-4px) scale(1.035);
  box-shadow: 0 24px 58px rgba(0,0,0,.34);
}
.contact-trigger svg {
  width: 27px;
  height: 27px;
  stroke-width: 1.8;
}
.contact-panel {
  width: min(340px, calc(100vw - 32px));
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  color: var(--text);
  box-shadow: 0 24px 70px rgba(0,0,0,.34);
  backdrop-filter: blur(18px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px) scale(.975);
  transform-origin: bottom right;
  transition: opacity .22s ease, visibility .22s ease, transform .28s var(--motion-smooth);
}
:root[data-theme="light"] .contact-panel {
  background: color-mix(in srgb, var(--bg) 94%, transparent);
  box-shadow: 0 24px 70px rgba(17,17,24,.18);
}
.contact-dock.is-open .contact-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}
.contact-dock.is-open .contact-trigger {
  transform: rotate(-8deg) scale(.96);
}
.contact-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.contact-panel-head strong {
  font-size: 18px;
  letter-spacing: -0.035em;
}
.contact-panel-head button {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}
.contact-panel-head button:hover {
  color: var(--accent);
  border-color: var(--line-strong);
}
.contact-panel textarea {
  width: 100%;
  min-height: 108px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 13px 14px;
  background: var(--panel);
  color: var(--text);
  outline: none;
  font: inherit;
  font-size: 14px;
  line-height: 1.45;
  transition: border-color .22s ease, background .22s ease;
}
.contact-panel textarea:focus {
  border-color: var(--accent);
  background: var(--panel-hover);
}
.contact-panel-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: 13px 0 8px;
}
.contact-panel-actions a {
  position: relative;
}
.contact-panel-actions span {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  transform: translateX(-50%) translateY(6px);
  padding: 5px 8px;
  border-radius: 999px;
  background: var(--text);
  color: var(--bg);
  font-size: 11px;
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
}
.contact-panel-actions a:hover span,
.contact-panel-actions a:focus-visible span {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.contact-note {
  margin: 0;
  text-align: center;
  color: var(--soft);
  font-size: 12px;
  line-height: 1.35;
}

@media (max-width: 560px) {
  .footer-contact-icons { gap: 12px; }
  .contact-icon { width: 44px; height: 44px; }
  .contact-dock {
    right: 16px;
    bottom: 16px;
  }
  .contact-trigger {
    width: 54px;
    height: 54px;
  }
  .contact-panel {
    width: calc(100vw - 32px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .contact-trigger,
  .contact-panel,
  .contact-icon,
  .contact-panel-actions a {
    transition: none !important;
  }
}


/* v0.3.0 — static blog, search, filters, language switch */
.blog-page {
  background: color-mix(in srgb, var(--bg) 94%, var(--bg-2));
}
.blog-hero,
.writing-progress,
.blog-tools,
.blog-list-section,
.article-wrap,
.related-posts {
  width: min(980px, calc(100% - var(--page-pad) * 2));
  margin: 0 auto;
}
.blog-hero {
  padding: clamp(66px, 9vw, 122px) 0 clamp(40px, 6vw, 74px);
}
.blog-hero-top,
.article-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}
.blog-hero h1,
.article-wrap h1 {
  margin-bottom: 18px;
  font-size: clamp(38px, 5.2vw, 64px);
  line-height: .95;
}
.blog-hero h1 {
  margin-bottom: 10px;
  font-size: clamp(54px, 8vw, 92px);
}
.blog-hero p:not(.kicker):not(.translation-warning) {
  max-width: 640px;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.32;
}
.blog-language {
  display: inline-flex;
  gap: 5px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
}
.blog-language button {
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  padding: 7px 11px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.blog-language button:hover,
.blog-language button.is-active {
  background: var(--text);
  color: var(--bg);
}
.translation-warning {
  display: inline-block;
  margin: 18px 0 0;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--soft);
  font-size: 13px;
}
.writing-progress {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: clamp(28px, 6vw, 70px);
  align-items: center;
  padding: 38px 0 54px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.progress-logo {
  font-weight: 700;
  line-height: .84;
  letter-spacing: -0.08em;
  font-size: clamp(34px, 4vw, 52px);
  text-align: center;
  color: var(--text);
}
.progress-list {
  display: grid;
  gap: 16px;
}
.progress-item > div:first-child {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 7px;
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
}
.progress-item small {
  color: var(--soft);
  font-weight: 500;
}
.progress-item.muted { opacity: .62; }
.progress-bar {
  height: 11px;
  overflow: hidden;
  border-radius: 999px;
  background: color-mix(in srgb, var(--text) 14%, transparent);
}
.progress-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: color-mix(in srgb, var(--text) 72%, var(--accent));
  animation: progressIn .72s var(--motion-smooth) both;
}
@keyframes progressIn {
  from { transform: scaleX(0); transform-origin: left; }
  to { transform: scaleX(1); transform-origin: left; }
}
.blog-tools {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto;
  gap: 18px;
  align-items: end;
  padding: 44px 0 18px;
}
.blog-search {
  display: grid;
  gap: 8px;
  color: var(--soft);
  font-size: 13px;
  font-weight: 700;
}
.blog-search input {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 18px;
  background: var(--panel);
  color: var(--text);
  outline: none;
  font: inherit;
}
.blog-search input:focus {
  border-color: var(--accent);
  background: var(--panel-hover);
}
.blog-filter-bar {
  justify-content: flex-end;
  margin: 0;
}
.blog-list-section {
  padding: 28px 0 clamp(70px, 8vw, 120px);
}
.blog-list-title {
  margin-bottom: 22px;
}
.blog-list-title h2,
.related-posts h2 {
  font-size: clamp(34px, 4vw, 48px);
  letter-spacing: -0.08em;
}
.post-count {
  color: var(--soft);
  font-size: 14px;
  font-weight: 700;
}
.post-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.post-card {
  display: grid;
  min-height: 138px;
  align-content: start;
  gap: 10px;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(145deg, var(--panel-hover), var(--panel));
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: transform .28s var(--motion-smooth), border-color .22s ease, background .22s ease, box-shadow .28s ease;
}
.post-card:hover {
  transform: translateY(-5px);
  border-color: var(--line-strong);
  box-shadow: 0 22px 50px rgba(0,0,0,.12);
}
.post-card.is-muted {
  cursor: default;
  opacity: .72;
}
.post-card.is-muted:hover {
  transform: none;
  box-shadow: none;
}
.post-category {
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.post-card h3 {
  font-size: clamp(18px, 2vw, 25px);
  line-height: 1.05;
}
.post-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.35;
}
.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 2px;
  color: var(--soft);
  font-size: 12px;
}
.post-note {
  color: var(--accent);
}
.post-card.is-skeleton {
  min-height: 138px;
  cursor: wait;
}
.skeleton-line.short { width: 54%; }
.article-wrap {
  max-width: 760px;
  padding: clamp(58px, 8vw, 110px) 0 clamp(44px, 6vw, 74px);
}
.back-link {
  display: inline-block;
  margin-bottom: 34px;
  color: var(--muted);
  font-weight: 700;
}
.back-link:hover { color: var(--accent); }
.article-wrap h1 {
  margin-bottom: 18px;
  font-size: clamp(38px, 5.2vw, 64px);
  line-height: .95;
}
.article-meta {
  margin: 0 0 34px;
  color: var(--soft);
  font-size: 14px;
}
.article-body {
  font-family: Georgia, 'Times New Roman', serif;
  color: var(--text);
  font-size: clamp(17px, 1.45vw, 19px);
  line-height: 1.78;
  letter-spacing: -0.01em;
}
.article-body h2 {
  margin: 2.4em 0 1em;
  font-family: var(--font);
  font-size: 13px;
  letter-spacing: .16em;
  color: var(--accent);
}
.poem-block {
  white-space: normal;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(17px, 1.45vw, 19px);
  line-height: 1.85;
}
.article-body p {
  margin: 0 0 1.3em;
}
.related-posts {
  max-width: 900px;
  padding: 18px 0 clamp(70px, 8vw, 118px);
  text-align: center;
}
.related-posts h2 {
  margin-bottom: 28px;
}
.mini-post-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.mini-post {
  display: grid;
  gap: 8px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
  text-align: left;
  transition: transform .24s var(--motion-smooth), border-color .22s ease;
}
.mini-post:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
}
.mini-post span,
.mini-post small {
  color: var(--soft);
  font-size: 12px;
}
.mini-post strong {
  line-height: 1.05;
}
@media (max-width: 760px) {
  .blog-hero,
  .writing-progress,
  .blog-tools,
  .blog-list-section,
  .article-wrap,
  .related-posts {
    width: calc(100% - 32px);
  }
  .blog-hero { text-align: center; }
  .blog-hero-top,
  .article-tools {
    justify-content: center;
    flex-wrap: wrap;
  }
  .blog-hero p:not(.kicker):not(.translation-warning) {
    margin-left: auto;
    margin-right: auto;
  }
  .writing-progress {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .blog-tools {
    grid-template-columns: 1fr;
  }
  .blog-filter-bar {
    justify-content: center;
  }
  .post-grid,
  .mini-post-row {
    grid-template-columns: 1fr;
  }
  .blog-list-title {
    align-items: center;
    text-align: center;
    flex-direction: column;
  }
  .article-wrap {
    text-align: left;
  }
  .article-wrap h1,
  .article-meta,
  .back-link,
  .article-tools {
    text-align: center;
  }
}


/* v0.3.1 — refined article typography + automated related topics */
.article-page {
  background: var(--bg);
}
.article-wrap {
  max-width: 780px;
  padding-top: clamp(76px, 9vw, 136px);
}
.article-tools {
  margin-bottom: 22px;
}
.article-wrap .kicker {
  color: #d60000;
  letter-spacing: .06em;
}
.article-wrap h1 {
  margin-bottom: 18px;
  font-size: clamp(38px, 5.2vw, 64px);
  line-height: .95;
}
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  align-items: center;
  margin: 0 0 clamp(42px, 5vw, 68px);
  color: color-mix(in srgb, var(--text) 82%, var(--muted));
  font-size: 15px;
  font-weight: 600;
}
.article-meta span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.article-meta span:not(:last-child)::after {
  content: '';
  width: 1px;
  height: 18px;
  margin-left: 14px;
  background: var(--line-strong);
}
.article-body {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(20px, 1.75vw, 25px);
  line-height: 1.66;
  letter-spacing: -0.018em;
}
.article-body p {
  margin: 0 0 1.45em;
}
.article-lede {
  position: relative;
  margin: 0 0 clamp(36px, 5vw, 56px);
  padding: 0 0 0 42px;
  border: 0;
  color: var(--text);
  font-size: clamp(24px, 2.5vw, 32px);
  line-height: 1.22;
  letter-spacing: -0.035em;
}
.article-lede::before {
  content: '“';
  position: absolute;
  left: 0;
  top: -0.22em;
  color: color-mix(in srgb, var(--text) 78%, var(--accent));
  font-size: 2em;
  line-height: 1;
}
.article-lede p {
  margin: 0;
}
.translation-warning {
  margin-bottom: 28px;
}
.related-posts {
  max-width: 980px;
  padding-top: clamp(28px, 5vw, 68px);
  border-top: 1px solid var(--line);
}
.related-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 16px;
}
.related-posts h2 {
  margin: 0;
  text-align: left;
}
.related-search input {
  width: min(300px, 48vw);
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 15px;
  background: var(--panel);
  color: var(--text);
  outline: none;
  font: inherit;
  font-size: 14px;
}
.related-search input:focus {
  border-color: var(--accent);
  background: var(--panel-hover);
}
.related-filter-bar {
  justify-content: flex-start;
  margin: 0 0 18px;
}
.mini-post-row {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.mini-post {
  min-height: 150px;
  border-radius: 22px;
  background: linear-gradient(145deg, var(--panel-hover), var(--panel));
  transition: transform .24s var(--motion-smooth), border-color .22s ease, box-shadow .24s ease, opacity .22s ease;
}
.mini-post:hover {
  box-shadow: 0 24px 56px rgba(0,0,0,.12);
}
.mini-post.is-muted {
  cursor: default;
  opacity: .64;
}
.mini-post.is-muted:hover {
  transform: none;
  box-shadow: none;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
@media (max-width: 760px) {
  .article-wrap {
    width: min(100% - 34px, 680px);
    padding-top: 58px;
  }
  .article-tools,
  .article-meta {
    justify-content: flex-start;
    text-align: left;
  }
  .article-wrap h1 {
  margin-bottom: 18px;
  font-size: clamp(38px, 5.2vw, 64px);
  line-height: .95;
}
  .article-meta {
    gap: 9px 12px;
    margin-bottom: 40px;
  }
  .article-meta span:not(:last-child)::after {
    margin-left: 10px;
  }
  .article-body {
    font-size: 19px;
    line-height: 1.66;
  }
  .article-lede {
    padding-left: 30px;
    font-size: 24px;
  }
  .related-head {
    display: grid;
    justify-items: center;
    text-align: center;
  }
  .related-posts h2 {
    text-align: center;
  }
  .related-search input {
    width: min(100%, 320px);
  }
  .related-filter-bar {
    justify-content: center;
  }
  .mini-post-row {
    grid-template-columns: 1fr;
  }
}

/* v0.3.1 final — editorial article polish */
.article-wrap {
  max-width: 720px;
  padding-top: clamp(70px, 8vw, 118px);
}
.article-wrap h1 {
  margin-bottom: 18px;
  font-size: clamp(38px, 5.2vw, 64px);
  line-height: .95;
}
.article-meta {
  margin-bottom: clamp(36px, 5vw, 58px);
  font-size: 14px;
}
.article-body {
  max-width: 700px;
  font-size: clamp(18px, 1.35vw, 20.5px);
  line-height: 1.76;
  letter-spacing: -0.012em;
}
.article-body p {
  margin-bottom: 1.42em;
}
.article-lede {
  margin-bottom: clamp(32px, 4.6vw, 50px);
  padding-left: 36px;
  font-size: clamp(21px, 2vw, 27px);
  line-height: 1.28;
}
.related-posts {
  max-width: 860px;
}
.related-head {
  align-items: center;
}
.related-posts h2 {
  font-size: clamp(32px, 3.6vw, 44px);
}
.mini-post-row {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.mini-post {
  min-height: 124px;
  padding: 18px 19px;
}
@media (max-width: 760px) {
  .article-wrap {
    width: min(100% - 34px, 660px);
    padding-top: 54px;
  }
  .article-wrap h1 {
  margin-bottom: 18px;
  font-size: clamp(38px, 5.2vw, 64px);
  line-height: .95;
}
  .article-body {
    font-size: 18px;
    line-height: 1.72;
  }
  .article-lede {
    padding-left: 28px;
    font-size: 22px;
  }
}


/* v0.3.2 — original blog archive, no AI summaries */
.article-wrap {
  width: min(760px, calc(100% - var(--page-pad) * 2));
}
.article-wrap h1 {
  margin-bottom: 18px;
  font-size: clamp(38px, 5.2vw, 64px);
  line-height: .95;
}
.article-body {
  max-width: 720px;
  font-size: clamp(17px, 1.45vw, 19px);
  line-height: 1.78;
  letter-spacing: -0.01em;
}
.article-body p {
  margin: 0 0 1.35em;
}
.article-body h2 {
  margin: 2.4em 0 1em;
  font-family: var(--font);
  font-size: 13px;
  letter-spacing: .16em;
  color: var(--accent);
}
.poem-block {
  font-family: Georgia, 'Times New Roman', serif;
  color: var(--text);
  font-size: clamp(17px, 1.45vw, 19px);
  line-height: 1.85;
}
.post-card p { display: none !important; }
.post-card {
  min-height: 122px;
  align-content: space-between;
}
.post-meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.translation-warning[hidden] { display: none !important; }
@media (max-width: 720px) {
  .article-wrap { padding-top: 58px; }
  .article-wrap h1 { font-size: clamp(36px, 13vw, 52px); }
  .article-body, .poem-block { font-size: 17px; line-height: 1.72; }
}

/* 0.3.4 — preserved article formatting */
.article-body em,
.article-body i {
  font-style: italic;
}
.article-body strong,
.article-body b {
  font-weight: 700;
}
.article-body a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .18em;
}
.article-body blockquote {
  margin: 0 0 1.5em;
  padding-left: 1.2em;
  border-left: 2px solid var(--line-strong);
  color: var(--text);
}
.article-body--poetry {
  max-width: 620px;
  margin-inline: auto;
}
.article-body--poetry p {
  margin-bottom: .72em;
}
.article-body [style*="text-align: center"] {
  text-align: center;
}
.article-body [style*="text-align: right"] {
  text-align: right;
}
.article-body [style*="text-align: left"] {
  text-align: left;
}
@media (max-width: 720px) {
  .article-body--poetry {
    max-width: 100%;
  }
}


/* v0.3.4 — blog simplification + English article switch */
.blog-hero-minimal {
  padding: clamp(44px, 6vw, 72px) 0 clamp(22px, 3.8vw, 34px);
}
.blog-hero-minimal .blog-hero-top {
  margin-bottom: 14px;
}
.blog-hero-placeholder {
  display: inline-block;
  width: 48px;
  height: 1px;
  opacity: 0;
}
.blog-hero-minimal h1 {
  margin-bottom: 0;
}
.article-tools .blog-language {
  margin-left: auto;
}
.article-wrap [data-lang-content="en"] .article-body {
  font-size: clamp(19px, 1.62vw, 23px);
}
@media (max-width: 760px) {
  .blog-hero-minimal {
    padding-top: 34px;
  }
  .blog-hero-minimal .blog-hero-top {
    justify-content: center;
  }
  .blog-hero-placeholder { display:none; }
  .article-tools .blog-language {
    margin-left: 0;
  }
}
