:root {
  --paper: #f9f8f4;
  --ink: #15171b;
  --muted: rgba(21, 23, 27, 0.68);
  --faint: rgba(21, 23, 27, 0.5);
  --line: rgba(21, 23, 27, 0.14);
  --line-strong: rgba(21, 23, 27, 0.22);
  --grid: rgba(21, 23, 27, 0.06);
  --grid-fine: rgba(21, 23, 27, 0.05);
  --blue: #2b6fd6;
  --orange: #ff5a00;
  --on-accent: #ffffff;
  --glow: rgba(43, 111, 214, 0.2);
  --surface-button: rgba(255, 255, 255, 0.6);
  --shadow: 0 12px 32px rgba(21, 23, 27, 0.18);
  --radius: 10px;
  --radius-large: 20px;
  --border-width: 1px;
  --font: "Manrope", system-ui, sans-serif;
  --header-height: 64px;
  color-scheme: light;
}

html[data-theme="dark"] {
  --paper: #0d0f13;
  --ink: #e8ecf2;
  --muted: rgba(232, 236, 242, 0.72);
  --faint: rgba(232, 236, 242, 0.5);
  --line: rgba(232, 236, 242, 0.14);
  --line-strong: rgba(232, 236, 242, 0.28);
  --grid: rgba(232, 236, 242, 0.05);
  --grid-fine: rgba(232, 236, 242, 0.04);
  --blue: #6aa5f8;
  --orange: #ff7a33;
  --on-accent: #0d0f13;
  --glow: rgba(106, 165, 248, 0.22);
  --surface-button: rgba(255, 255, 255, 0.05);
  --shadow: 0 18px 44px rgba(0, 0, 0, 0.55);
  color-scheme: dark;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: clip;
  background-color: var(--paper);
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 64px 64px;
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body.is-reading {
  overflow: hidden;
}

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

[hidden] {
  display: none !important;
}

a {
  color: inherit;
}

button {
  font: inherit;
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.tool-button.menu-toggle {
  display: none;
}

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

.skip-link {
  position: absolute;
  left: 16px;
  top: 12px;
  z-index: 40;
  transform: translateY(-140%);
  padding: 10px 14px;
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 700;
}

.skip-link:focus {
  transform: none;
}

.top-accent {
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--orange) 40%, var(--orange) 60%, transparent);
  pointer-events: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--paper);
  border-bottom: var(--border-width) solid var(--line);
}

.site-header-inner,
.section,
.hero {
  width: min(1200px, calc(100% - 64px));
  margin-inline: auto;
}

.site-header-inner {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 2px;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
  flex: none;
}

.mood-badge {
  padding: 3px 8px;
  border-radius: 999px;
  background: #d9418f;
  color: #fff;
  font-size: 10px;
  letter-spacing: 0.04em;
}

[data-egg-badges] {
  display: contents;
}

.navigation {
  display: flex;
  gap: 18px;
  flex: 1 1 auto;
  min-width: 0;
  justify-content: center;
  overflow-x: auto;
  scrollbar-width: none;
  mask-image: linear-gradient(90deg, transparent, #000 16px, #000 calc(100% - 16px), transparent);
}

.navigation::-webkit-scrollbar {
  display: none;
}

.navigation a {
  flex: none;
  padding: 6px 2px;
  color: var(--faint);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}

.navigation a[aria-current="true"] {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--blue);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 7px;
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
}

.menu {
  position: relative;
}

.tool-button,
.text-button,
.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--radius);
  font: 600 13px/1 var(--font);
  text-decoration: none;
  cursor: pointer;
}

.tool-button,
.text-button {
  padding: 8px 12px;
  border: var(--border-width) solid var(--line);
  background: transparent;
  color: var(--ink);
}

.tool-button svg,
.primary-button svg,
.secondary-button svg,
.text-link svg {
  flex: none;
}

.menu-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  min-width: 190px;
  padding: 6px;
  border: var(--border-width) solid var(--line);
  border-radius: 12px;
  background-color: var(--paper);
  background-image:
    linear-gradient(var(--grid-fine) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-fine) 1px, transparent 1px);
  background-size: 32px 32px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.menu-panel[hidden] {
  display: none;
}

.menu-option {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font: 600 13px/1.2 var(--font);
  text-align: left;
  cursor: pointer;
}

.menu-option[aria-checked="true"] {
  background: color-mix(in srgb, var(--blue) 12%, transparent);
  color: var(--ink);
}

.menu-option small {
  display: block;
  margin-top: 3px;
  color: var(--faint);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.menu-option .check {
  margin-left: auto;
  opacity: 0;
  color: var(--blue);
}

.menu-option[aria-checked="true"] .check {
  opacity: 1;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 640px) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
  padding: 96px 0 80px;
}

.hero-mark {
  position: absolute;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--ink);
  stroke-opacity: 0.45;
}

.hero-mark-start {
  left: -12px;
  top: 64px;
}

.hero-mark-end {
  right: -12px;
  bottom: 48px;
}

.hero-copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 26px;
  max-width: 640px;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  font-size: clamp(36px, 8vw, 78px);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.98;
  text-wrap: balance;
}

.hero-muted {
  color: color-mix(in srgb, var(--ink) 35%, transparent);
}

.lead,
.prose {
  max-width: 540px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.6;
  text-wrap: pretty;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.primary-button,
.secondary-button {
  padding: 14px 22px;
  font-size: 14px;
}

.primary-button {
  background: var(--blue);
  color: var(--on-accent);
}

.secondary-button {
  border: var(--border-width) solid var(--line-strong);
  background: var(--surface-button);
  color: var(--ink);
}

.hero-field {
  position: absolute;
  z-index: 0;
  top: -90px;
  bottom: -90px;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  pointer-events: none;
  opacity: 0.85;
  mask-image:
    radial-gradient(80% 96% at 2% 50%, transparent 0%, rgba(0, 0, 0, 0.16) 64%, #000 100%),
    linear-gradient(90deg, transparent 0%, #000 26%, #000 84%, transparent 100%),
    linear-gradient(180deg, transparent 0%, #000 22%, #000 78%, transparent 100%);
  mask-composite: intersect;
  -webkit-mask-image:
    radial-gradient(80% 96% at 2% 50%, transparent 0%, rgba(0, 0, 0, 0.16) 64%, #000 100%),
    linear-gradient(90deg, transparent 0%, #000 26%, #000 84%, transparent 100%),
    linear-gradient(180deg, transparent 0%, #000 22%, #000 78%, transparent 100%);
  -webkit-mask-composite: source-in;
}

.section {
  padding: 80px 0;
  border-top: var(--border-width) solid var(--line);
}

.section-index {
  color: var(--faint);
  font-size: 12px;
  font-weight: 500;
}

h2 {
  font-size: clamp(30px, 3.6vw, 44px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.05;
  text-wrap: balance;
}

.split,
.section-heading,
.research-layout {
  display: flex;
  flex-wrap: wrap;
  gap: 32px 48px;
  align-items: flex-end;
  justify-content: space-between;
}

.split {
  align-items: flex-start;
}

.column-narrow {
  flex: 1 1 300px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

.column-wide {
  flex: 2 1 420px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}

.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  padding-top: 8px;
  color: var(--faint);
  font-size: 12px;
  font-weight: 500;
}

.skills-section,
.stack-section {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.marquee-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.marquee {
  overflow: hidden;
  min-width: 0;
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}

.marquee-track {
  display: flex;
  gap: 12px;
  width: max-content;
}

.marquee.is-ready .marquee-track {
  animation: marquee-scroll 42s linear infinite;
}

.marquee[data-direction="reverse"].is-ready .marquee-track {
  animation-duration: 48s;
  animation-direction: reverse;
}

.marquee.is-paused .marquee-track,
.marquee:hover .marquee-track {
  animation-play-state: paused;
}

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.skill-card {
  width: 128px;
  height: 128px;
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: var(--border-width) solid var(--line);
  border-radius: var(--radius-large);
  background-color: var(--paper);
  background-image:
    linear-gradient(var(--grid-fine) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-fine) 1px, transparent 1px);
  background-size: 32px 32px;
}

.skill-card img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  transition: filter 160ms ease, opacity 160ms ease;
}

html[data-theme="dark"] .skill-card img {
  filter: grayscale(1) invert(0.92) contrast(0.85);
  opacity: 0.8;
}

html[data-theme="dark"] .skill-card:hover img {
  filter: none;
  opacity: 1;
}

html[data-theme="dark"] .skill-card:hover img.skill-ink {
  filter: invert(1);
}

.skill-card span {
  max-width: 100%;
  padding-inline: 8px;
  overflow: hidden;
  color: var(--faint);
  font-size: 11px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.experience-list,
.project-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.panel {
  position: relative;
  overflow: hidden;
  border: var(--border-width) solid var(--line);
  border-radius: var(--radius-large);
  background-color: var(--paper);
  background-image:
    linear-gradient(var(--grid-fine) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-fine) 1px, transparent 1px);
  background-size: 32px 32px;
}

.experience-card {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 32px;
}

.experience-card::before {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--glow), transparent 65%);
  pointer-events: none;
}

.experience-card-viadoc::before {
  right: -120px;
  top: -140px;
}

.experience-card-viamatica::before {
  left: -160px;
  bottom: -180px;
}

.role-layout,
.record-columns,
.showcase-grid,
.repository-grid {
  position: relative;
  display: grid;
  gap: 32px;
}

.role-layout,
.record-columns {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
}

.role-copy,
.feature-list,
.record-group {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.role-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.logo-viadoc { height: 26px; width: auto; }
.logo-viamatica { height: 28px; width: auto; }
.logo-sell4out { height: 28px; width: auto; }

.role-period {
  color: var(--faint);
  font-size: 12px;
  font-weight: 600;
}

h3 {
  font-size: clamp(24px, 2.6vw, 32px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.role-summary {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
  text-wrap: pretty;
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 0 32px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.feature-list li {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 13px 0;
  border-top: var(--border-width) solid var(--line);
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
}

.feature-list svg {
  margin-top: 1px;
  color: var(--blue);
}

.group-label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  color: var(--faint);
  font-size: 11px;
  font-weight: 500;
}

.group-label span:last-child {
  color: color-mix(in srgb, var(--ink) 30%, transparent);
}

.record-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.record-list li {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 14px;
  padding: 15px 0;
  border-top: var(--border-width) solid var(--line);
}

.record-index {
  padding-top: 4px;
  color: color-mix(in srgb, var(--ink) 32%, transparent);
  font-size: 11px;
  font-weight: 500;
}

.record-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.record-heading h3 {
  font-size: 15px;
  letter-spacing: -0.01em;
}

.record-stack {
  color: var(--faint);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-align: right;
}

.record-list p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.55;
}

.showcase-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: 16px;
}

.repository-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.product-card,
.repository-card {
  display: flex;
  flex-direction: column;
  color: var(--ink);
  text-decoration: none;
}

.repository-card {
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.repository-card:hover {
  border-color: var(--blue);
  transform: translateY(-3px);
}

.window-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 14px 16px 0;
}

.repository-card .window-bar {
  padding: 13px 16px;
  border-bottom: var(--border-width) solid var(--line);
}

.window-dots {
  display: flex;
  gap: 5px;
  flex: none;
}

.window-dots span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--ink) 18%, transparent);
}

.window-url {
  overflow: hidden;
  color: var(--faint);
  font-size: 11px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.shot-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  margin-top: 10px;
  overflow: hidden;
  border: var(--border-width) solid var(--line);
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
  background: #fff;
}

.shot-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.shot-frame img.is-active {
  opacity: 1;
}

html[data-theme="dark"] .shot-frame img {
  filter: brightness(0.88) contrast(1.04) saturate(0.94);
}

.shot-controls {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 1;
  display: flex;
  gap: 6px;
}

.shot-controls button {
  width: 22px;
  height: 22px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.shot-controls button::before {
  content: "";
  display: block;
  width: 8px;
  height: 8px;
  margin: 7px;
  border-radius: 50%;
  background: rgba(21, 23, 27, 0.28);
}

.shot-controls button[aria-current="true"]::before {
  background: var(--blue);
}

.product-body,
.repository-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px 22px 22px;
}

.product-meta,
.repository-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.product-body h3,
.repository-title h3 {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.product-body p,
.repository-body p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.status-badge {
  padding: 5px 10px;
  border: var(--border-width) solid color-mix(in srgb, var(--blue) 45%, transparent);
  border-radius: 999px;
  color: var(--blue);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.status-badge-done {
  border-color: transparent;
  background: var(--ink);
  color: var(--paper);
}

.stack-label,
.private-note {
  color: var(--faint);
  font-size: 12px;
  font-weight: 500;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
}

.language {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--faint);
  font-size: 10px;
  font-weight: 500;
}

.language-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--language);
}

.research-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  padding: 34px;
  border: var(--border-width) solid var(--line);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  font: inherit;
}

.research-card:hover {
  border-color: var(--blue);
  transform: translateY(-3px);
}

.research-watermark {
  position: absolute;
  right: -6px;
  top: -26px;
  color: color-mix(in srgb, var(--ink) 4.5%, transparent);
  font-size: 140px;
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 1;
  pointer-events: none;
}

.research-tag {
  position: relative;
  color: var(--blue);
  font-size: 11px;
  font-weight: 500;
}

.research-card h3 {
  position: relative;
  max-width: 18ch;
  font-size: clamp(21px, 2.3vw, 28px);
  line-height: 1.15;
}

.research-card p,
.tag-list {
  position: relative;
}

.research-card p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tag-list li {
  padding: 6px 11px;
  border: var(--border-width) solid var(--line);
  border-radius: 999px;
  color: var(--faint);
  font-size: 10px;
  font-weight: 500;
}

.research-card .text-link {
  position: relative;
  margin-top: 6px;
  padding-top: 14px;
  border-top: var(--border-width) solid var(--line);
  font-size: 13px;
}

.contact-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  padding: 56px 40px;
  text-align: center;
}

.contact-panel::before {
  content: "";
  position: absolute;
  left: -160px;
  bottom: -200px;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--glow), transparent 65%);
  pointer-events: none;
}

.contact-panel h2,
.contact-panel p,
.contact-actions {
  position: relative;
}

.contact-panel h2 {
  font-size: clamp(32px, 4.2vw, 52px);
}

.contact-panel p {
  max-width: 520px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 32px;
  color: var(--faint);
  font-size: 11px;
  font-weight: 500;
}

.article-view {
  position: fixed;
  inset: 0;
  z-index: 30;
  overflow: auto;
  background-color: var(--paper);
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 64px 64px;
}

.article-bar {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  justify-content: center;
  padding: 16px 24px;
  background: linear-gradient(var(--paper), transparent);
}

.article-bar-inner,
.article {
  width: min(820px, calc(100% - 48px));
  margin-inline: auto;
}

.article {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 24px 0 96px;
}

.article-header {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-bottom: 28px;
  border-bottom: var(--border-width) solid var(--line);
}

.article h1 {
  font-size: clamp(30px, 4.6vw, 50px);
  line-height: 1.06;
}

.article-lead {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}

.article-meta,
.article-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: var(--faint);
  font-size: 12px;
  font-weight: 500;
}

.article-section {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.article h2 {
  font-size: 26px;
  line-height: 1.2;
}

.article-section p,
.article-section li {
  color: color-mix(in srgb, var(--ink) 76%, transparent);
  font-size: 17px;
  line-height: 1.75;
}

.article-section ul {
  margin: 4px 0 0;
  padding-left: 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.article-section blockquote {
  margin: 8px 0 0;
  padding: 28px 32px;
  border: var(--border-width) solid var(--line);
  border-radius: var(--radius-large);
  background-color: var(--paper);
  background-image:
    linear-gradient(var(--grid-fine) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-fine) 1px, transparent 1px);
  background-size: 32px 32px;
}

.article-section blockquote p:first-child {
  color: color-mix(in srgb, var(--ink) 72%, transparent);
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.25;
}

.article-section blockquote p:last-child {
  margin-top: 14px;
  font-size: 15px;
  line-height: 1.6;
}

.article-footer {
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
  padding-top: 24px;
  border-top: var(--border-width) solid var(--line);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 40;
  transform: translateX(-50%);
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  box-shadow: var(--shadow);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.js .reveal {
  animation: rise 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

[data-theme-button] {
  position: relative;
}

.theme-glyph {
  display: none;
}

@media (max-width: 860px) {
  .site-header-inner,
  .section,
  .hero {
    width: min(1200px, calc(100% - 32px));
  }

  .theme-glyph {
    display: block;
  }

  [data-theme-label] {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  .tool-button {
    padding: 8px 10px;
  }

  .hero {
    grid-template-columns: 1fr;
    padding: 56px 0 48px;
  }

  .hero-field {
    opacity: 0.55;
    top: -40px;
    bottom: -20px;
  }

  .hero-mark {
    display: none;
  }

  .section {
    padding: 56px 0;
  }

  .contact-panel,
  .experience-card,
  .research-card {
    padding: 28px 20px;
  }

  .tool-button.menu-toggle {
    display: inline-flex;
  }

  .navigation {
    display: none;
  }

  .navigation.is-open {
    display: flex;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    gap: 4px;
    padding: 12px 20px 16px;
    background: var(--paper);
    border-bottom: var(--border-width) solid var(--line);
    mask-image: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .marquee.is-ready .marquee-track,
  .skill-card img,
  .shot-frame img,
  .repository-card,
  .research-card {
    animation: none;
    transition: none;
  }

  .js .reveal {
    animation: none;
  }
}
