:root {
  color-scheme: light dark;
  interpolate-size: allow-keywords;

  --bg: #0a0a0a;
  --fg: #ededed;
  --surface-chrome: #161618;
  --card-bg: #18181b;
  --card-bg-strong: #1f1f23;
  --surface-control: #27272a;
  --surface-code: #2a2a2e;
  --rail: #3f3f46;
  --border-subtle: #232326;
  --border-strong: #2e2e32;

  --zinc-100: #f4f4f5;
  --zinc-200: #e4e4e7;
  --zinc-300: #d4d4d8;
  --zinc-400: #9f9fa9;
  --zinc-500: #71717b;
  --zinc-600: #52525c;
  --zinc-700: #3f3f46;
  --zinc-800: #27272a;
  --zinc-900: #18181b;
  --accent: #e4e4e7;
  --accent-hover: #ffffff;
  --accent-fill: #f4f4f5;

  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --hover-brightness: 1.25;
  --font-sans: Arial, Helvetica, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #ffffff;
    --fg: #18181b;
    --surface-chrome: #f5f5f5;
    --card-bg: #fafafa;
    --card-bg-strong: #f2f2f3;
    --surface-control: #ededee;
    --surface-code: #ededee;
    --rail: #d4d4d8;
    --border-subtle: #e5e5e7;
    --border-strong: #d8d8dc;

    --zinc-100: #18181b;
    --zinc-200: #27272a;
    --zinc-300: #3f3f46;
    --zinc-400: #52525c;
    --zinc-500: #71717b;
    --zinc-600: #9f9fa9;
    --zinc-700: #d4d4d8;
    --zinc-800: #e4e4e7;
    --zinc-900: #f4f4f5;
    --accent: #18181b;
    --accent-hover: #000000;
    --accent-fill: #18181b;
    --hover-brightness: 0.97;
  }
}

*, ::before, ::after, ::backdrop {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border: 0 solid;
}

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

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body > main { flex-grow: 1; }

h1, h2, h3, h4, h5, h6 { font-size: inherit; font-weight: inherit; }
ol, ul, menu { list-style: none; }
img, svg, video, canvas, iframe { display: block; vertical-align: middle; }
img, video { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: inherit; }
b, strong { font-weight: bolder; }
code, kbd, pre { font-family: var(--font-mono); font-size: 1em; }
button, input, select, textarea { font: inherit; color: inherit; background: transparent; }
button { cursor: pointer; }

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

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, ::before, ::after { transition-duration: 0s !important; animation-duration: 0s !important; }
}

.shell { width: 100%; max-width: 72rem; margin-inline: auto; padding-inline: 1rem; }
@media (min-width: 640px) { .shell { padding-inline: 1.5rem; } }
@media (min-width: 1024px) { .shell { padding-inline: 2rem; } }
.shell-padded { padding-block: 2rem; }

.page-title { margin-bottom: 1rem; color: var(--zinc-100); font-size: 2.25rem; line-height: 2.5rem; font-weight: 700; }
@media (min-width: 768px) { .page-title { font-size: 3rem; line-height: 1; } }

.width-3xl { max-width: 48rem; margin-inline: auto; }
.width-4xl { max-width: 56rem; margin-inline: auto; }
.width-5xl { max-width: 64rem; margin-inline: auto; }

.site-nav { background: var(--surface-chrome); border-bottom: 1px solid var(--border-subtle); }
.site-nav-inner { display: flex; align-items: center; height: 4rem; }
.site-nav-home { display: flex; align-items: center; gap: 0.25rem; color: var(--zinc-300); transition: color 0.15s var(--ease); }
.site-nav-home:hover { color: var(--zinc-100); }

.site-footer { margin-top: 5rem; background: var(--surface-chrome); border-top: 1px solid var(--border-subtle); }
.footer-grid { display: grid; gap: 2rem; padding-top: 3rem; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.site-footer h3 { margin-bottom: 1rem; color: var(--zinc-100); font-size: 1.125rem; line-height: 1.75rem; font-weight: 600; }
.site-footer p { margin-bottom: 1rem; color: var(--zinc-300); }
.footer-social { display: flex; gap: 1rem; }
.footer-social a { color: var(--zinc-400); transition: color 0.15s var(--ease); }
.footer-social a:hover { color: var(--zinc-100); }
.footer-links a { display: flex; align-items: center; margin-bottom: 0.5rem; color: var(--zinc-300); transition: color 0.15s var(--ease); }
.footer-links a:hover { color: var(--zinc-100); }
.footer-links .icon { margin-right: 0.5rem; }
.site-footer .footer-copy {
  margin: 2rem 0 0;
  padding-block: 2rem 3rem;
  border-top: 1px solid var(--border-subtle);
  color: var(--zinc-400);
  text-align: center;
}

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

main :is(p, li) a:not([class]) {
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, currentColor 45%, transparent);
  text-underline-offset: 2px;
}
main :is(p, li) a:not([class]):hover { text-decoration-color: currentColor; }

.accent-link {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--accent) 50%, transparent);
  text-underline-offset: 2px;
}
.accent-link:hover { color: var(--accent-hover); text-decoration-color: var(--accent-hover); }

.inline-link {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.15s var(--ease);
}
.inline-link:hover { color: var(--accent-hover); }

.back-link {
  display: inline-flex;
  align-items: center;
  margin-bottom: 1.5rem;
  color: var(--accent);
  font-weight: 500;
  transition: color 0.15s var(--ease);
}
.back-link:hover { color: var(--accent-hover); }
.back-link .icon { margin-right: 0.5rem; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  border: 1px solid transparent;
  border-radius: 0.5rem;
  font-size: 1rem;
  line-height: 1.5rem;
  font-weight: 500;
  transition: all 0.15s var(--ease);
}
.btn-primary { background: var(--accent-fill); color: var(--bg); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-secondary { border-color: var(--border-strong); background: var(--surface-control); color: var(--zinc-200); }
.btn-secondary:hover { border-color: var(--rail); filter: brightness(var(--hover-brightness)); }

.panel { background: var(--card-bg); border: 1px solid var(--border-subtle); border-radius: 1rem; box-shadow: var(--shadow-lg); }
.panel-clip { overflow: hidden; }
@media (max-width: 767px) {
  .panel-responsive { background: none; border: 0; border-radius: 0; box-shadow: none; overflow: visible; }
}

.tag-row { display: flex; flex-wrap: wrap; gap: 0.375rem; }
.tag { display: inline-block; border: 1px solid; border-radius: 9999px; white-space: nowrap; }
.tag-sm { padding: 0.125rem 0.625rem; font-size: 0.75rem; line-height: 1rem; }
.tag-md { padding: 0.25rem 0.75rem; font-size: 0.875rem; line-height: 1.25rem; }
.tag-accent {
  background: color-mix(in srgb, var(--accent-fill) 10%, transparent);
  border-color: color-mix(in srgb, var(--accent-fill) 20%, transparent);
  color: var(--accent);
}
.tag-zinc { background: var(--surface-control); border-color: var(--border-strong); color: var(--zinc-400); }
.tag-onImage {
  background: rgb(255 255 255 / 0.3);
  border-color: rgb(255 255 255 / 0.4);
  color: white;
  backdrop-filter: blur(8px);
  filter: drop-shadow(0 1px 1px rgb(0 0 0 / 0.05));
}

.section-heading { color: var(--zinc-100); font-weight: 700; }
.section-heading-sm { font-size: 1.25rem; line-height: 1.75rem; }
.section-heading-md { font-size: 1.5rem; line-height: 2rem; }
.section-heading-lg { font-size: 1.875rem; line-height: 2.25rem; }
.section-heading:has(.section-heading-icon) { display: flex; align-items: center; }
.section-heading-icon { margin-right: 0.75rem; color: var(--accent); }

.bullets { padding-left: 1.5rem; color: var(--zinc-300); list-style: disc; }
.bullets > li + li { margin-top: 0.25rem; }
.bullets ::marker { color: var(--zinc-300); }

:not(pre) > code {
  white-space: nowrap;
  padding: 0.125rem 0.375rem;
  border-radius: 0.25rem;
  background: var(--surface-code);
  font-size: 0.875rem;
  line-height: 1.25rem;
}

.carousel {
  position: relative;
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--rail) transparent;
  border-radius: 1rem;
  background: var(--surface-chrome);
  box-shadow: var(--shadow-lg);
  anchor-name: --carousel;
  anchor-scope: --carousel;
}
.slide { position: relative; flex: 0 0 100%; scroll-snap-align: center; scroll-snap-stop: always; }
.carousel-tall { align-items: flex-start; background: none; box-shadow: none; }
.carousel-tall .slide img { height: auto; border-radius: 1rem; }
.carousel-wide .slide { aspect-ratio: 16 / 10; }
.slide img { width: 100%; height: 100%; object-fit: contain; }
@supports selector(::scroll-button(*)) {
  .carousel { scrollbar-width: none; }
  .carousel::-webkit-scrollbar { display: none; }
  .carousel::scroll-button(*) {
    position: fixed;
    position-anchor: --carousel;
    top: anchor(center);
    translate: 0 -50%;
    width: 2.75rem;
    height: 2.75rem;
    border: 1px solid rgb(255 255 255 / 0.2);
    border-radius: 50%;
    background: rgb(0 0 0 / 0.5);
    backdrop-filter: blur(8px);
    box-shadow: var(--shadow-lg);
    color: white;
    font-size: 1.25rem;
    cursor: pointer;
    transition: background-color 0.2s, border-color 0.2s;
  }
  .carousel::scroll-button(*):hover { background: rgb(0 0 0 / 0.7); border-color: rgb(255 255 255 / 0.4); }
  .carousel::scroll-button(*):disabled { opacity: 0.3; cursor: default; }
  .carousel:not(:has(> .slide + .slide))::scroll-button(*) { content: none; }
  .carousel::scroll-button(left) { content: "‹" / "Previous image"; left: calc(anchor(left) + 0.5rem); }
  .carousel::scroll-button(right) { content: "›" / "Next image"; right: calc(anchor(right) + 0.5rem); }
}

.lightbox { display: none; }
.lightbox:target {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgb(0 0 0 / 0.9);
}
html:has(.lightbox:target) { overflow: hidden; }
.lightbox figure { position: relative; max-width: 72rem; max-height: 100%; }
.lightbox img { width: auto; max-width: 90vw; max-height: 80vh; object-fit: contain; }
.lightbox figcaption {
  position: absolute;
  inset: auto 0 0;
  padding: 1.5rem;
  background: linear-gradient(to top, rgb(0 0 0 / 0.8), transparent);
  color: white;
  font-weight: 500;
}
.lightbox figcaption strong { display: block; margin-bottom: 0.25rem; font-weight: 500; }
.lightbox-text { display: block; color: var(--zinc-300); font-size: 0.875rem; font-weight: 400; }
.lightbox-close, .lightbox-prev, .lightbox-next {
  position: absolute;
  z-index: 10;
  padding: 0.75rem;
  border-radius: 9999px;
  background: rgb(0 0 0 / 0.5);
  backdrop-filter: blur(8px);
  color: white;
  transition: background-color 0.15s var(--ease);
}
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { background: rgb(0 0 0 / 0.7); }
.lightbox-close { top: 1rem; right: 1rem; }
.lightbox-prev, .lightbox-next { top: 50%; translate: 0 -50%; }
.lightbox-prev { left: 1rem; }
.lightbox-next { right: 1rem; }

.blog-header { margin-bottom: 2rem; }
.blog-lead { color: var(--zinc-300); font-size: 1.125rem; line-height: 1.75rem; }

.blog-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); grid-auto-rows: 21rem; gap: 1rem; }
.blog-tile { position: relative; display: grid; grid-template: minmax(0, 1fr) / minmax(0, 1fr); overflow: hidden; border-radius: 1rem; background: var(--surface-chrome); box-shadow: var(--shadow-lg); }
.blog-tile > * { grid-area: 1 / 1; }
.blog-tile img { width: 100%; height: 100%; object-fit: cover; transition: scale 0.4s var(--ease); }
.blog-tile:hover img { scale: 1.04; }
.blog-tile-body {
  z-index: 1;
  align-self: end;
  padding: 4rem 1.25rem 1.25rem;
  background: linear-gradient(to top, rgb(0 0 0 / 0.75), transparent);
  color: white;
}
.blog-tile-link::after { content: ""; position: absolute; inset: 0; z-index: 2; }
.blog-tile-title { margin-bottom: 0.25rem; font-size: 1.25rem; line-height: 1.75rem; font-weight: 600; }
.blog-tile-link:hover .blog-tile-title { text-decoration: underline; }
.blog-tile-date { display: flex; align-items: center; gap: 0.25rem; color: rgb(255 255 255 / 0.85); font-size: 0.875rem; line-height: 1.25rem; }
@media (min-width: 768px) {
  .blog-tile:first-child { grid-column: span 2; grid-row: span 2; }
  .blog-tile:first-child .blog-tile-title { font-size: 1.75rem; line-height: 2.25rem; }
}

.post { min-height: 100vh; }
.post-back { margin-bottom: 2rem; }

.post-hero {
  position: relative;
  margin-bottom: 3rem;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--accent-fill) 20%, transparent);
  border-radius: 1rem;
  box-shadow: var(--shadow-lg);
}
.post-hero-backdrop { position: absolute; inset: 0; }
.post-hero-backdrop img { width: 100%; height: 100%; object-fit: cover; }
.post-hero-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(to top, rgb(0 0 0 / 0.7), rgb(0 0 0 / 0.4), rgb(0 0 0 / 0.3));
}
.post-hero-body { position: relative; padding: 2rem; color: white; text-align: center; }
.post-hero-title {
  margin-bottom: 1.5rem;
  font-size: 2.25rem;
  line-height: 1.25;
  font-weight: 700;
  filter: drop-shadow(0 4px 4px rgb(0 0 0 / 0.15));
}
.post-hero-subtitle {
  max-width: 56rem;
  margin-inline: auto;
  font-size: 1.25rem;
  line-height: 1.625;
  opacity: 0.9;
  filter: drop-shadow(0 3px 3px rgb(0 0 0 / 0.12));
}
@media (min-width: 768px) {
  .post-hero-body { padding: 3rem; }
  .post-hero-title { font-size: 3.75rem; }
  .post-hero-subtitle { font-size: 1.5rem; }
}
.post-hero-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2rem;
  color: rgb(255 255 255 / 0.9);
  filter: drop-shadow(0 3px 3px rgb(0 0 0 / 0.12));
}
.post-hero-meta > span { display: flex; align-items: center; gap: 0.5rem; }
.post-hero-tags { justify-content: center; gap: 0.75rem; margin-top: 1.5rem; }

.post-panel { padding: 2rem; }
.post-panel h2 { margin-bottom: 1rem; color: var(--zinc-100); font-size: 1.5rem; line-height: 2rem; font-weight: 700; }
.post-panel p { color: var(--zinc-300); font-size: 1.125rem; line-height: 1.625; }
.post-panel .post-panel-note { margin-top: 1rem; color: var(--zinc-400); font-size: 0.875rem; line-height: 1.25rem; }
.post-panel-cta { text-align: center; }
.post-panel-action { margin-top: 1.5rem; }
.post-intro { margin-bottom: 3rem; }
.post-outro + .post-outro { margin-top: 2rem; }

.post-gallery { margin-bottom: 3rem; }
.post-gallery-heading { margin-bottom: 2rem; }
.post-grid { display: grid; gap: 1.5rem; }
@media (min-width: 480px) { .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .post-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1280px) { .post-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.post-photo {
  position: relative;
  display: block;
  box-sizing: content-box;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  border-radius: 1rem;
  background: var(--surface-control);
  box-shadow: var(--shadow-lg);
  transition: all 0.3s var(--ease);
}
.post-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: scale 0.7s var(--ease);
}
.post-photo:hover img { scale: 1.1; }
.post-photo-zoom {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s var(--ease);
}
.post-photo:hover .post-photo-zoom { background: rgb(0 0 0 / 0.4); }
.post-photo-zoom > span {
  padding: 0.75rem;
  border-radius: 9999px;
  background: rgb(255 255 255 / 0.2);
  backdrop-filter: blur(8px);
  color: white;
  opacity: 0;
  scale: 0.75;
  transition: all 0.3s var(--ease);
}
.post-photo:hover .post-photo-zoom > span,
.post-photo:focus-visible .post-photo-zoom > span { opacity: 1; scale: 1; }

.home-hero { padding-top: 4rem; }
@media (min-width: 768px) { .home-hero { padding-top: 6rem; } }
.home-title { margin-bottom: 1rem; font-size: 2.5rem; line-height: 1.15; font-weight: 700; }
@media (min-width: 640px) { .home-title { font-size: 3rem; } }
@media (min-width: 768px) { .home-title { font-size: 3.5rem; } }
.home-title-first { color: var(--zinc-100); }
.home-lead { max-width: 36rem; margin-bottom: 2rem; color: var(--zinc-300); font-size: 1.125rem; line-height: 1.625; }
.home-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }

.not-found { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 100vh; padding-inline: 1rem; }
.not-found h1 { margin-bottom: 0.5rem; color: var(--zinc-100); font-size: 4.5rem; line-height: 1; font-weight: 700; }
.not-found p { margin-bottom: 2rem; color: var(--zinc-400); font-size: 1.25rem; line-height: 1.75rem; }

.page-intro { margin-bottom: 3rem; }
.page-lead { color: var(--zinc-300); font-size: 1.125rem; line-height: 1.625; }

.security-list { display: grid; gap: 1.5rem; }
.security-section { padding-block: 1rem; color: var(--zinc-100); }
@media (min-width: 768px) { .security-section { padding: 2rem; } }
.security-section .section-heading { margin-bottom: 1rem; }
.security-body { color: var(--zinc-300); line-height: 1.625; }
.security-body > * + * { margin-top: 0.75rem; }
.security-section .tag-row { margin-top: 1rem; }

.cv-header { display: flex; flex-direction: column; gap: 1.5rem; margin-bottom: 3rem; }
@media (min-width: 768px) { .cv-header { flex-direction: row; justify-content: space-between; align-items: flex-start; } }
.cv-identity { flex: 1; }
.cv-contacts { display: flex; flex-direction: column; gap: 0.5rem; color: var(--zinc-300); }
.cv-contacts a { display: flex; align-items: center; gap: 0.5rem; transition: color 0.15s var(--ease); }
.cv-contacts a:hover { color: var(--accent); }
.cv-contacts span { font-size: 0.875rem; line-height: 1.25rem; }
@media (min-width: 640px) { .cv-contacts span { font-size: 1rem; line-height: 1.5rem; } }
.cv-actions { display: flex; flex-direction: column; gap: 0.75rem; width: 100%; }
.cv-actions .btn { flex: 1; }
@media (min-width: 640px) { .cv-actions { flex-direction: row; } .cv-actions .btn { flex: none; } }
@media (min-width: 768px) { .cv-actions { width: auto; } }

.cv-section { margin-bottom: 1rem; padding: 1rem 0 1.5rem; }
.cv-section .section-heading { margin-bottom: 1.5rem; }
.cv-section .cv-heading-tight { margin-bottom: 1rem; }
@media (max-width: 767px) { .cv-section { border-bottom: 1px solid var(--border-subtle); } }
@media (min-width: 768px) { .cv-section { margin-bottom: 2rem; padding: 2rem; border-bottom-width: 0; } }
.cv-text { color: var(--zinc-300); }
.cv-relaxed { line-height: 1.625; }
.cv-highlight { font-weight: 500; }
.cv-label { margin-top: 1rem; }
.cv-label span { font-weight: 600; }
.cv-languages { padding-left: 1.5rem; color: var(--zinc-300); list-style: disc; }
:where(.cv-entries > :not(:last-child)) { margin-bottom: 1.5rem; }
.cv-divider { margin-block: 2rem; border-top: 1px solid var(--border-strong); }
.cv-role { color: var(--zinc-100); font-size: 1.125rem; line-height: 1.75rem; font-weight: 600; }
.cv-org { margin-bottom: 0.25rem; color: var(--accent); font-weight: 500; }
.cv-org a:hover { color: var(--accent-hover); }
.cv-dates { color: var(--zinc-400); }
.cv-detail { margin-top: 0.5rem; }
.cv-note { margin-bottom: 0.75rem; }

.qa-sections { display: grid; gap: 2.5rem; }
.qa-section > .section-heading { margin-bottom: 1rem; }
.qa-heading { margin-bottom: 2rem; }
.qa-card + .qa-card { margin-top: 0.75rem; }
.qa-card { transition: all 0.3s var(--ease); }
@media (min-width: 768px) { .qa-card:hover { border-color: var(--border-strong); } }
.qa-question {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
  list-style: none;
  cursor: pointer;
}
.qa-question::-webkit-details-marker { display: none; }
.qa-question:focus-visible { outline-offset: -2px; }
.qa-question span { color: var(--zinc-100); font-weight: 500; }
.qa-question .icon { flex-shrink: 0; margin-top: 0.25rem; color: var(--zinc-500); transition: transform 0.2s var(--ease); }
.qa-card[open] .qa-question .icon { transform: rotate(180deg); }
.qa-answer { padding: 0 1rem 1rem; }
@media (min-width: 768px) {
  .qa-question { padding-inline: 1.5rem; }
  .qa-answer { padding: 0 1.5rem 1.5rem; }
}
.qa-answer-body { color: var(--zinc-300); line-height: 1.625; }
.qa-answer-body > * + * { margin-top: 0.75rem; }
.qa-answer .tag-row { margin-top: 1rem; }
@media (max-width: 767px) {
  .qa-card + .qa-card { margin-top: 0; }
  .qa-card { border-bottom: 1px solid var(--border-subtle); }
  .qa-question { padding-inline: 0; }
  .qa-answer { padding-inline: 0; }
}

.legal, .landing { min-height: 100vh; padding: 1.25rem; }
.legal-head { margin-bottom: 3rem; }
.legal-head .page-title { margin-bottom: 0.5rem; }
.legal-kind { color: var(--zinc-400); font-size: 1.125rem; line-height: 1.75rem; font-weight: 500; }
.legal-updated { margin-top: 0.5rem; color: var(--zinc-500); font-size: 0.875rem; line-height: 1.25rem; }
.legal-body { color: var(--zinc-300); line-height: 1.625; }
.legal-body > * + * { margin-top: 2rem; }
.legal-body h2 { margin-bottom: 0.75rem; color: var(--zinc-100); font-size: 1.25rem; line-height: 1.75rem; font-weight: 700; }
.legal-body h3 { margin-bottom: 0.25rem; color: var(--zinc-100); font-weight: 600; }
.legal-faq > * + * { margin-top: 1.25rem; }
.legal-intro { margin-bottom: 0.75rem; }
.legal-note { margin-top: 0.75rem; color: var(--zinc-400); font-size: 0.875rem; line-height: 1.25rem; }
.legal-after { margin-top: 0.75rem; }
.legal-list { margin-left: 0.5rem; list-style: disc inside; }
.legal-list > li + li { margin-top: 0.5rem; }
.legal-list strong { color: var(--zinc-100); }

.wf-locales { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0.25rem 0.75rem; margin-bottom: 1rem; font-size: 0.75rem; line-height: 1rem; }
.wf-locale { padding: 0.5rem; color: var(--zinc-400); transition: color 0.15s var(--ease); }
.wf-locale:hover { color: var(--zinc-200); }
.wf-locale[aria-current] { color: var(--zinc-100); font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }

.landing-hero { display: flex; flex-direction: column; align-items: flex-start; gap: 1.5rem; margin-bottom: 2.5rem; padding-top: 1.5rem; }
.wf-locales + .landing-hero { padding-top: 0.5rem; }
@media (min-width: 768px) { .landing-hero { flex-direction: row; align-items: center; } }
.landing-icon { flex-shrink: 0; width: 112px; height: 112px; border: 1px solid var(--border-strong); border-radius: 1rem; box-shadow: var(--shadow-lg); }
.landing-icon-bare { border: 0; box-shadow: none; }
.landing-name { margin-bottom: 0.5rem; }
.landing-tagline { margin-bottom: 0.75rem; font-size: 1.125rem; line-height: 1.75rem; font-weight: 600; }
.landing-intro { max-width: 42rem; color: var(--zinc-300); line-height: 1.625; }
@media (min-width: 768px) {
  .landing-tagline { font-size: 1.25rem; }
}

.landing-cta { margin-bottom: 3rem; }
.landing-badge { display: inline-block; }
.landing-badge img { width: auto; height: 2.75rem; }
.landing-note { margin-top: 0.375rem; color: var(--zinc-400); font-size: 0.75rem; line-height: 1rem; }
.landing-platforms { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin-top: 1rem; }
.landing-chip {
  padding: 0.25rem 0.75rem;
  border: 1px solid var(--border-strong);
  border-radius: 9999px;
  color: var(--zinc-300);
  font-size: 0.75rem;
  line-height: 1rem;
  font-weight: 500;
}
.landing-platforms-note { margin-left: 0.25rem; color: var(--zinc-400); font-size: 0.75rem; line-height: 1rem; }

.landing-section { margin-bottom: 3rem; }
.landing-heading { margin-bottom: 1rem; color: var(--zinc-100); font-size: 1.25rem; line-height: 1.75rem; font-weight: 700; }
.landing-lead { margin: -0.5rem 0 1rem; color: var(--zinc-400); }

.landing-cards { display: grid; gap: 1rem; }
@media (min-width: 640px) { .landing-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) {
  .landing-cards-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .landing-cards-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.landing-card { padding: 1.25rem; border: 1px solid var(--border-subtle); border-radius: 1rem; background: var(--card-bg); }
.landing-card h3 { margin-bottom: 0.375rem; color: var(--zinc-100); font-weight: 600; }
.landing-card p { color: var(--zinc-400); font-size: 0.875rem; line-height: 1.625; }
.landing-card-tile {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: 0.75rem;
  border-radius: 0.75rem;
  background: color-mix(in srgb, var(--accent-fill) 12%, transparent);
  color: var(--accent);
}

.landing-perks { margin-top: 2rem; color: var(--zinc-400); font-size: 0.875rem; line-height: 1.25rem; text-align: center; }

.landing-outro { margin-bottom: 2rem; padding: 2rem; border: 1px solid var(--border-subtle); border-radius: 1rem; background: var(--card-bg); text-align: center; }
.landing-outro h2 { margin-bottom: 0.5rem; color: var(--zinc-100); font-size: 1.5rem; line-height: 2rem; font-weight: 700; }
.landing-outro-body { margin-bottom: 1.25rem; color: var(--zinc-400); }
.landing-outro-badge { display: flex; justify-content: center; }
.landing-outro-links { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: 1.5rem; font-size: 0.875rem; line-height: 1.25rem; }
.landing-dot { color: var(--zinc-600); }

.landing-tour { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 2.5rem; align-items: center; }
.landing-tour-item { display: contents; }
.landing-tour-shot {
  grid-row: 1;
  grid-column: 1;
  width: 100%;
  margin-bottom: 1.5rem;
  aspect-ratio: 1600 / 1024;
  object-fit: cover;
  border: 1px solid var(--border-strong);
  border-radius: 1rem;
  background: var(--zinc-900);
  box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.4);
  opacity: 0;
  scale: 1.03;
  pointer-events: none;
  transition: opacity 0.7s ease-out, scale 0.7s ease-out;
}
.landing-tour-text { position: relative; grid-column: 1; display: block; padding-left: 1.25rem; cursor: pointer; }
.landing-tour-text::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 2px;
  border-radius: 9999px;
  background: var(--zinc-800);
}
.landing-tour-title { display: block; padding-block: 0.625rem; color: var(--zinc-500); font-size: 1.125rem; line-height: 1.75rem; font-weight: 600; transition: color 0.15s var(--ease); }
.landing-tour-text:hover .landing-tour-title { color: var(--zinc-300); }
.landing-tour-body {
  display: grid;
  grid-template-rows: 0fr;
  color: var(--zinc-400);
  line-height: 1.625;
  opacity: 0;
  transition: grid-template-rows 0.5s ease-out, opacity 0.5s ease-out, padding 0.5s ease-out;
}
.landing-tour-body > span { overflow: hidden; }
.landing-tour-item:has(:checked) .landing-tour-shot { opacity: 1; scale: 1; }
.landing-tour-item:has(:checked) .landing-tour-title { color: var(--zinc-100); }
.landing-tour-item:has(:checked) .landing-tour-body { grid-template-rows: 1fr; padding-bottom: 1rem; opacity: 1; }
.landing-tour-item:has(:checked) .landing-tour-text::before { background: var(--accent-fill); }
.landing-tour-item:has(:focus-visible) .landing-tour-title { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
@media (min-width: 1024px) {
  .landing-tour { grid-template-columns: minmax(0, 5fr) minmax(0, 8fr); grid-template-rows: 1fr repeat(var(--n), auto) 1fr; }
  .landing-tour::before, .landing-tour::after { content: ""; grid-column: 1; }
  .landing-tour::before { grid-row: 1; }
  .landing-tour::after { grid-row: -2; }
  .landing-tour-shot { grid-row: 1 / -1; grid-column: 2; margin-bottom: 0; }
}

.wf-trailer-tabs { display: flex; gap: 0.5rem; margin-bottom: 0.75rem; }
.wf-trailer-tab {
  padding: 0.25rem 0.75rem;
  border: 1px solid var(--zinc-700);
  border-radius: 9999px;
  color: var(--zinc-400);
  font-size: 0.75rem;
  line-height: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.15s var(--ease), background-color 0.15s var(--ease), border-color 0.15s var(--ease);
}
.wf-trailer-tab:hover { color: var(--zinc-200); }
.wf-trailer-tab:has(:checked) {
  border-color: var(--accent-fill);
  background: var(--accent-fill);
  color: var(--bg);
}
.wf-trailer-tab:has(:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.wf-trailer-frame {
  position: relative;
  display: none;
  width: 100%;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--zinc-700) 50%, transparent);
  border-radius: 1rem;
  background: var(--zinc-900);
  box-shadow: var(--shadow-lg);
}
.wf-trailer:has(.wf-trailer-tab-mac :checked) .wf-trailer-frame-mac,
.wf-trailer:has(.wf-trailer-tab-iphone :checked) .wf-trailer-frame-iphone,
.wf-trailer:has(.wf-trailer-tab-ipad :checked) .wf-trailer-frame-ipad { display: block; }
.wf-trailer-frame-mac { aspect-ratio: 1920 / 1080; }
.wf-trailer-frame-iphone { aspect-ratio: 1920 / 886; }
.wf-trailer-frame-ipad { aspect-ratio: 1600 / 1200; }
.wf-trailer-frame video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }

.personal { min-height: 100vh; }
.personal-header { margin-bottom: 3rem; }
.personal-lead { max-width: 42rem; color: var(--zinc-300); font-size: 1.25rem; line-height: 1.625; }

.personal-section { margin-bottom: 5rem; }
.personal-heading { margin-bottom: 2rem; }
.personal-grid { display: grid; gap: 1.5rem; }
@media (min-width: 480px) { .personal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .personal-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.personal-card:hover { border-color: color-mix(in srgb, var(--accent-fill) 30%, transparent); }
.personal-card-caption {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(to top, rgb(0 0 0 / 0.8), transparent, transparent);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}
.personal-card:hover .personal-card-caption,
.personal-card:focus-visible .personal-card-caption { opacity: 1; }
.personal-card-caption h3 {
  position: absolute;
  inset: auto 0 0;
  padding: 1rem;
  color: white;
  font-size: 1.125rem;
  line-height: 1.75rem;
  font-weight: 500;
}

.project-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem; margin-bottom: 1.5rem; }
.project-header .back-link { margin-bottom: 0; }
.project-switch { display: flex; gap: 0.5rem; }
.project-switch a {
  padding: 0.5rem 1rem;
  border: 1px solid var(--border-subtle);
  border-radius: 9999px;
  background: var(--card-bg);
  color: var(--zinc-400);
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 500;
  transition: all 0.3s var(--ease);
}
.project-switch a:not([aria-current]):hover { border-color: var(--border-strong); color: var(--zinc-300); }
.project-switch a[aria-current="page"] {
  border-color: var(--accent-fill);
  background: var(--accent-fill);
  color: var(--bg);
}

.project-intro { margin-bottom: 1.5rem; }
.project-title { margin: 0.5rem 0 0.75rem; }
.project-summary { font-size: 1.125rem; line-height: 1.75rem; font-weight: 500; }

.project-card { padding-block: 1rem; color: var(--zinc-100); }
@media (min-width: 768px) { .project-card { padding: 2.5rem; } }
.project-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; margin-bottom: 1.5rem; }
.project-date { color: var(--zinc-400); font-size: 0.875rem; line-height: 1.25rem; font-weight: 500; }

.project-body { color: var(--zinc-300); }
.project-body > * + * { margin-top: 0.75rem; }
.project-body hr { border-top: 1px solid var(--border-subtle); }
.project-label { font-weight: 600; }
.project-links { display: flex; flex-wrap: wrap; gap: 0.75rem; padding-top: 0.5rem; }
.project-code-plain { padding: 0; border-radius: 0; background: none; font-size: 1em; line-height: inherit; }

.project-columns { display: grid; grid-template-columns: minmax(0, 1fr); align-items: start; gap: 1rem; }
.project-shots { display: flex; justify-content: center; }
.project-shots .carousel { width: 100%; max-width: 24rem; }
@media (min-width: 1024px) {
  .project-columns { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .project-columns > .project-body { grid-column: span 2; }
  .project-shots { justify-content: flex-end; }
}
.project-wide { margin-top: 1.5rem; }
.project-footer-image { width: 100%; margin-top: 1.5rem; border-radius: 1rem; }

.project-pager { display: flex; gap: 1rem; margin-bottom: 2rem; padding-block: 0.875rem; border-block: 1px solid var(--border-subtle); }
.project-pager a { display: flex; align-items: center; gap: 0.625rem; min-width: 0; color: var(--zinc-200); font-weight: 600; transition: color 0.15s var(--ease); }
.project-pager a:hover { color: var(--zinc-100); }
.project-pager span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.project-pager small { display: block; color: var(--zinc-500); font-size: 0.6875rem; font-weight: 500; letter-spacing: 0.05em; text-transform: uppercase; }
.project-pager-older { margin-left: auto; text-align: right; }

.archive-group { margin-bottom: 3rem; }
.archive-heading { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.5rem; margin-bottom: 1rem; }
.archive-list { display: grid; gap: 1rem; }
@media (min-width: 768px) { .archive-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.archive-card { padding: 1.5rem; color: var(--zinc-300); }
.archive-card > * + * { margin-top: 0.5rem; }
.archive-card > .lightbox { margin: 0; }
.archive-card .project-meta { margin-bottom: 0.75rem; }
.archive-title { color: var(--zinc-100); font-size: 1.125rem; line-height: 1.75rem; font-weight: 600; }
.archive-tech { color: var(--zinc-400); font-size: 0.875rem; line-height: 1.25rem; }
.archive-card .carousel { gap: 0.5rem; max-width: 16rem; margin-top: 1rem; }
.archive-card .slide { flex-basis: calc(50% - 0.25rem); }
.archive-card .carousel-tall .slide img { border-radius: 0.5rem; }
.archive-card .carousel::scroll-button(*) { content: none; }
.archive-note { color: var(--zinc-500); font-size: 0.875rem; line-height: 1.25rem; }

.project-grid { display: grid; gap: 1.25rem; }
@media (min-width: 640px) { .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .project-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.project-tile {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  border-radius: 1rem;
  background: var(--card-bg);
  box-shadow: var(--shadow-lg);
  transition: border-color 0.3s var(--ease);
}
.project-tile:hover { border-color: var(--border-strong); }
.project-tile img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--surface-chrome); }
.project-tile-body { display: flex; flex-direction: column; gap: 0.375rem; padding: 1rem 1.25rem 1.25rem; }
.project-tile-title { color: var(--zinc-100); font-size: 1.125rem; line-height: 1.75rem; font-weight: 600; }
.project-tile-summary { color: var(--zinc-400); font-size: 0.875rem; line-height: 1.25rem; }

.timeline-page .page-title { margin-bottom: 2rem; }

.timeline { position: relative; display: grid; gap: 2rem; }
.timeline::before { content: ""; position: absolute; top: 0; bottom: 0; left: 1.5rem; width: 2px; background: var(--rail); }
.timeline-event { position: relative; display: flex; align-items: flex-start; }
.timeline-marker {
  position: relative;
  color: var(--zinc-300);
  z-index: 10;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  margin-right: 1rem;
  border: 2px solid var(--rail);
  border-radius: 50%;
  background: var(--card-bg-strong);
}

.timeline-card { position: relative; flex: 1; min-width: 0; display: flex; padding: 1.5rem; scroll-margin-block: 30vh; }
.timeline-text { flex: 1; min-width: 0; }
.timeline-date { margin-bottom: 0.5rem; color: var(--zinc-400); font-size: 0.875rem; line-height: 1.25rem; font-weight: 500; }
.timeline-title { margin-bottom: 0.75rem; }
.timeline-md a { color: var(--accent); }
.timeline-md a:hover { color: var(--accent-hover); }
.timeline-md ul { padding-inline-start: 1.25rem; list-style: disc; }
.timeline-md li { color: var(--zinc-300); }
.timeline-md li + li { margin-top: 0.25rem; }
.timeline-image { width: 100%; margin-top: 1rem; border-radius: 0.5rem; box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1); }
@media (min-width: 640px) { .timeline-image { max-width: 24rem; } }
@media (min-width: 768px) { .timeline-image { max-width: 28rem; } }

.timeline-card:target { border-color: transparent; transition: all 200ms ease; }
.timeline-card:target::before {
  content: "";
  position: absolute;
  inset: -3px;
  padding: 3px;
  border-radius: 0.75rem;
  background: var(--accent);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  pointer-events: none;
}
