@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("assets/fonts/geist-var-latin.woff2") format("woff2");
}

/* cache-bust: desk1 */

:root {
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.4, 0.64, 1);
  --dur: 620ms;
  --font: "Geist", system-ui, sans-serif;
}

:root,
[data-theme="light"] {
  --bg: #f5f3ef;
  --fg: #111110;
  --muted: #5f5b55;
  --line: rgba(17, 17, 16, 0.1);
  --line-strong: rgba(17, 17, 16, 0.18);
  --soft: #ebe7e0;
  --accent: #ec4e02;
  --accent-text: #b93a00;
  --accent-btn: #b93a00;
  --accent-fg: #ffffff;
  --accent-soft: color-mix(in srgb, #ec4e02 14%, transparent);
  --veil: #f5f3ef;
  --header-bg: #f5f3ef;
  --toggle-knob: #e5e7eb;
  --toggle-icon: #374151;
  --toggle-ghost: #71717a;
  color-scheme: light;
}

[data-theme="dark"] {
  --bg: #0b0b0a;
  --fg: #f4f1ea;
  --muted: #a8a29a;
  --line: rgba(244, 241, 234, 0.1);
  --line-strong: rgba(244, 241, 234, 0.18);
  --soft: #171715;
  --accent: #ff6a2b;
  --accent-text: #ff9a5c;
  --accent-btn: #ff9a5c;
  --accent-fg: #111110;
  --accent-soft: color-mix(in srgb, #ff6a2b 16%, transparent);
  --veil: #0b0b0a;
  --header-bg: #0b0b0a;
  --toggle-knob: #27272a;
  --toggle-icon: #ffffff;
  --toggle-ghost: #71717a;
  color-scheme: dark;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(6rem + env(safe-area-inset-top, 0px));
  overflow-x: clip;
}

#work,
#about,
#contact {
  scroll-margin-top: calc(5.5rem + env(safe-area-inset-top, 0px));
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: clip;
  font-family: var(--font);
  background:
    radial-gradient(
      ellipse 52% 46% at 70% -8%,
      var(--accent-soft),
      transparent 72%
    ),
    radial-gradient(
      ellipse 70% 45% at 50% -15%,
      color-mix(in srgb, var(--soft) 70%, transparent),
      transparent 60%
    ),
    var(--bg);
  color: var(--fg);
  line-height: 1.55;
  letter-spacing: -0.014em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  -webkit-tap-highlight-color: transparent;
  transition: background-color 0.35s ease, color 0.35s ease;
}

body.menu-open {
  overflow: hidden;
}

::selection {
  background: var(--accent);
  color: var(--accent-fg);
}

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  touch-action: manipulation;
}

a {
  color: inherit;
  text-decoration: none;
  touch-action: manipulation;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 1000;
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  background: var(--fg);
  color: var(--bg);
  font-size: 0.85rem;
  font-weight: 600;
}

.skip-link:focus-visible {
  top: 1rem;
}

.boot-veil {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--veil);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.45s var(--ease-out);
}

html.js.boot .boot-veil {
  opacity: 1;
}

html.js.is-ready .boot-veil {
  opacity: 0;
}

.page {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 2.5rem));
  margin: 0 auto;
  padding-bottom: 2.75rem;
}

.top {
  position: sticky;
  top: 0.75rem;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  height: 3.15rem;
  margin: 0.75rem 0 0;
  padding: 0 0.45rem 0 1rem;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--fg) 12%, transparent);
  background: color-mix(in srgb, var(--header-bg) 68%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(22px);
  backdrop-filter: saturate(180%) blur(22px);
  box-shadow:
    0 1px 0 color-mix(in srgb, var(--fg) 5%, transparent) inset,
    0 4px 18px color-mix(in srgb, #000000 8%, transparent);
  transition:
    background-color 0.35s ease,
    border-color 0.35s ease,
    box-shadow 0.35s ease;
}

.top.is-solid {
  background: color-mix(in srgb, var(--header-bg) 84%, transparent);
  border-color: color-mix(in srgb, var(--fg) 16%, transparent);
  box-shadow:
    0 1px 0 color-mix(in srgb, var(--fg) 8%, transparent) inset,
    0 12px 32px color-mix(in srgb, #000000 18%, transparent);
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .top,
  .top.is-solid {
    background: color-mix(in srgb, var(--header-bg) 94%, transparent);
  }
}

.logo {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  flex-shrink: 0;
  padding-left: 0.15rem;
}

.logo-mark {
  display: inline-flex;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--fg);
  transition: letter-spacing 0.35s var(--ease-out), opacity 0.25s ease;
}

.logo:hover .logo-mark {
  letter-spacing: 0.24em;
}

.nav {
  display: none;
  align-items: center;
  gap: 0.1rem;
}

.nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 2rem;
  padding: 0 0.78rem;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--muted);
  border-radius: 999px;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--fg);
  background: color-mix(in srgb, var(--fg) 7%, transparent);
}

.nav a.is-active {
  color: var(--fg);
  background: color-mix(in srgb, var(--fg) 10%, transparent);
}

.top-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.28rem;
  flex-shrink: 0;
}

button.lang-press {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.2rem;
  height: 2rem;
  padding: 0 0.6rem;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1;
  cursor: pointer;
  transition:
    color 0.18s ease,
    background 0.18s ease,
    transform 0.12s ease;
}

button.lang-press:hover {
  color: var(--fg);
  background: color-mix(in srgb, var(--fg) 7%, transparent);
}

button.lang-press:active {
  transform: scale(0.96);
}

button.lang-press:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.theme-toggle {
  width: 3.35rem;
  height: 1.85rem;
  padding: 0.18rem;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--fg) 10%, transparent);
  background: color-mix(in srgb, var(--fg) 5%, transparent);
  cursor: pointer;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.theme-toggle:hover {
  background: color-mix(in srgb, var(--fg) 8%, transparent);
  border-color: color-mix(in srgb, var(--fg) 18%, transparent);
}

.theme-toggle-track {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 100%;
  position: relative;
}

.theme-toggle-knob,
.theme-toggle-ghost {
  width: 1.3rem;
  height: 1.3rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  transition: transform 0.3s var(--ease-spring), background-color 0.3s ease;
}

.theme-toggle-knob {
  background: var(--toggle-knob);
  color: var(--toggle-icon);
  z-index: 1;
}

.theme-toggle-ghost {
  color: var(--toggle-ghost);
  background: transparent;
}

.theme-toggle svg {
  width: 0.88rem;
  height: 0.88rem;
  grid-area: 1 / 1;
}

.theme-toggle .icon-sun,
.theme-toggle .icon-moon {
  opacity: 0;
  transition: opacity 0.2s ease;
}

[data-theme="dark"] .theme-toggle-knob {
  transform: translateX(0);
}

[data-theme="dark"] .theme-toggle-knob .icon-moon {
  opacity: 1;
}

[data-theme="dark"] .theme-toggle-ghost .icon-sun {
  opacity: 1;
}

[data-theme="light"] .theme-toggle-knob {
  transform: translateX(1.55rem);
}

[data-theme="light"] .theme-toggle-knob .icon-sun {
  opacity: 1;
}

[data-theme="light"] .theme-toggle-ghost {
  transform: translateX(-1.55rem);
}

[data-theme="light"] .theme-toggle-ghost .icon-moon {
  opacity: 1;
}

.menu-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.1rem;
  height: 2.1rem;
  padding: 0.48rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  transition: background 0.18s ease;
}

.menu-toggle:hover {
  background: color-mix(in srgb, var(--fg) 7%, transparent);
}

.menu-line {
  display: block;
  width: 100%;
  height: 1.5px;
  border-radius: 999px;
  background: var(--fg);
  transition: transform 0.25s var(--ease-out);
}

.menu-toggle[aria-expanded="true"] .menu-line:first-child {
  transform: translateY(3.25px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-line:last-child {
  transform: translateY(-3.25px) rotate(-45deg);
}

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 0.15rem;
  margin: 0.65rem 0 1rem;
  padding: 0.45rem;
  border: 1px solid color-mix(in srgb, var(--fg) 12%, transparent);
  border-radius: 22px;
  background: color-mix(in srgb, var(--header-bg) 78%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  backdrop-filter: saturate(180%) blur(18px);
  box-shadow: 0 10px 28px color-mix(in srgb, #000000 16%, transparent);
  opacity: 0;
  transform: translateY(-6px);
  transition:
    opacity 0.18s var(--ease-out),
    transform 0.18s var(--ease-out),
    display 0.18s allow-discrete,
    background-color 0.35s ease;
}

.mobile-nav:not([hidden]) {
  display: flex;
  opacity: 1;
  transform: translateY(0);

  @starting-style {
    opacity: 0;
    transform: translateY(-6px);
  }
}

.mobile-nav a {
  padding: 0.78rem 0.95rem;
  border-radius: 999px;
  font-weight: 600;
  color: var(--muted);
}

.mobile-nav a:hover,
.mobile-nav a:focus-visible,
.mobile-nav a.is-active {
  color: var(--fg);
  background: color-mix(in srgb, var(--fg) 8%, transparent);
}

.intro {
  display: grid;
  gap: 2.25rem;
  padding: 1.4rem 0 4.5rem;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.intro-grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  color: color-mix(in srgb, var(--fg) 20%, transparent);
  mask-image: radial-gradient(
    ellipse 74% 72% at 68% 42%,
    #000 18%,
    transparent 78%
  );
  -webkit-mask-image: radial-gradient(
    ellipse 74% 72% at 68% 42%,
    #000 18%,
    transparent 78%
  );
  opacity: 0.85;
}

.intro-grid .intro-grid-cell {
  fill: color-mix(in srgb, var(--accent) 55%, var(--fg));
}

.intro-media,
.intro-copy {
  position: relative;
  z-index: 1;
}

.photo-stage {
  position: relative;
  width: min(100%, 340px);
  margin: 0 auto;
}

.photo-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
  border-radius: 22px;
  background: var(--soft);
  box-shadow: none;
  border: 1px solid color-mix(in srgb, var(--fg) 8%, transparent);
  transition: transform 0.35s var(--ease-out);
}

.photo-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    145deg,
    color-mix(in srgb, var(--fg) 8%, transparent),
    transparent 42%
  );
  opacity: 0.4;
}

[data-theme="dark"] .photo-frame::after {
  opacity: 0.22;
}

.photo-frame picture {
  display: contents;
}

.photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 16%;
  filter: grayscale(0.28) contrast(1.04) saturate(0.92);
  transition: filter 0.55s var(--ease-out), transform 0.55s var(--ease-out);
}

.photo-stage:hover .photo-frame img,
.photo-stage:focus-within .photo-frame img {
  filter: grayscale(0) contrast(1.02) saturate(1);
}

.photo-stage:hover .photo-frame {
  transform: translateY(-3px);
}

.intro-copy {
  max-width: 36rem;
}

.eyebrow {
  margin: 0 0 0.65rem;
  font-size: clamp(1.2rem, 3.2vw, 1.55rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  text-transform: none;
  color: var(--fg);
}

h1 {
  margin: 0;
  font-family: var(--font);
  font-size: clamp(2.55rem, 6.8vw, 4.85rem);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.038em;
  color: color-mix(in srgb, var(--fg) 82%, var(--muted));
}

.blur-stagger {
  display: block;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

.blur-stagger .blur-word {
  display: inline-block;
  white-space: nowrap;
}

.blur-stagger .blur-char {
  display: inline-block;
  opacity: 0;
  filter: blur(8px);
}

.blur-stagger.is-show .blur-char {
  animation: blur-stagger-in 0.28s var(--ease-out) forwards;
}

@keyframes blur-stagger-in {
  from {
    opacity: 0;
    filter: blur(8px);
  }
  to {
    opacity: 1;
    filter: blur(0);
  }
}

.intro h1 .blur-word:last-child .blur-char:last-child {
  color: var(--accent);
}

.summary {
  margin: 1.25rem 0 0;
  max-width: 34rem;
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.65;
}

.intro-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem 1.1rem;
  margin-top: 1.8rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 2.75rem;
  padding: 0.7rem 1.25rem;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--fg) 14%, transparent);
  background: color-mix(in srgb, var(--fg) 6%, var(--bg));
  color: var(--fg);
  font-family: var(--font);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 1px 0 color-mix(in srgb, var(--fg) 6%, transparent);
  transition:
    transform 0.25s var(--ease-out),
    background 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-1px);
  background: color-mix(in srgb, var(--fg) 10%, var(--bg));
  border-color: color-mix(in srgb, var(--fg) 28%, transparent);
  box-shadow: 0 8px 24px color-mix(in srgb, var(--fg) 10%, transparent);
}

.btn:active {
  transform: translateY(0);
  box-shadow: none;
}

.btn--ghost {
  background: transparent;
  box-shadow: none;
}

.btn--ghost:hover,
.btn--ghost:focus-visible {
  background: color-mix(in srgb, var(--fg) 5%, transparent);
  box-shadow: none;
}

.btn--accent {
  background: var(--accent-btn);
  color: var(--accent-fg);
  border-color: var(--accent-btn);
  box-shadow: none;
}

.btn--accent:hover,
.btn--accent:focus-visible {
  background: color-mix(in srgb, var(--accent-btn) 88%, var(--bg));
  border-color: transparent;
  box-shadow: 0 10px 28px color-mix(in srgb, var(--accent-btn) 26%, transparent);
}

.btn .btn-arrow {
  transition: transform 0.25s var(--ease-out);
}

.btn:hover .btn-arrow,
.btn:focus-visible .btn-arrow {
  transform: translateX(3px);
}

@media (hover: none) {
  .btn:hover,
  .btn:focus-visible,
  .photo-stage:hover .photo-frame {
    transform: none;
    box-shadow: inherit;
  }

  .btn:active {
    transform: scale(0.98);
    background: color-mix(in srgb, var(--fg) 12%, var(--bg));
  }

  .btn--accent:active {
    background: color-mix(in srgb, var(--accent-btn) 82%, var(--bg));
    box-shadow: none;
  }

  .btn--ghost:active {
    background: color-mix(in srgb, var(--fg) 8%, transparent);
  }

  button.lang-press:active,
  .menu-toggle:active,
  .foot .social-link:active,
  .feature-spot-btn:active {
    transform: scale(0.94);
    background: color-mix(in srgb, var(--fg) 10%, transparent);
  }

  .mobile-nav a:active {
    background: color-mix(in srgb, var(--fg) 12%, transparent);
    color: var(--fg);
  }

  .contact-mail:active span:first-child {
    color: var(--accent);
    background-size: 100% 1px;
  }

  .photo-frame img,
  .photo-stage:hover .photo-frame img,
  .photo-stage:focus-within .photo-frame img {
    filter: grayscale(0.12) contrast(1.03) saturate(0.96);
  }
}

.block {
  padding: 4rem 0;
  border-top: 1px solid var(--line);
}

.about h2,
.contact-panel h2 {
  margin: 0;
  font-family: var(--font);
  font-size: clamp(1.85rem, 3.2vw, 2.45rem);
  font-weight: 600;
  letter-spacing: -0.03em;
}

.work-kicker {
  margin: 0 0 1.25rem;
  font-family: var(--font);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.feature-spot {
  --spot-ease: cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  max-width: 36rem;
  padding: 1.35rem 1.35rem 1.45rem;
  margin: 0 -0.35rem;
  color: inherit;
  text-decoration: none;
  outline: none;
  border-radius: 28px;
  border: 1px solid transparent;
  background:
    linear-gradient(
      155deg,
      color-mix(in srgb, #1a5ce8 7%, transparent),
      transparent 42%
    ),
    color-mix(in srgb, var(--soft) 55%, transparent);
  transition:
    border-color 0.45s var(--spot-ease),
    background-color 0.45s var(--spot-ease),
    box-shadow 0.45s var(--spot-ease);
}

.feature-spot:hover,
.feature-spot:focus-visible {
  border-color: color-mix(in srgb, #1a5ce8 22%, var(--line));
  box-shadow: 0 18px 40px color-mix(in srgb, #1a5ce8 10%, transparent);
}

.feature-spot-head {
  display: flex;
  align-items: center;
  gap: 0.95rem;
}

.feature-spot-mark {
  width: 2.85rem;
  height: 2.85rem;
  flex-shrink: 0;
  border-radius: 0.8rem;
  overflow: hidden;
  /* Brand mark stays white in light and dark */
  border: 1px solid rgba(17, 17, 16, 0.08);
  box-shadow: 0 6px 16px color-mix(in srgb, #1a5ce8 14%, transparent);
  transition: transform 0.45s var(--spot-ease);
}

.feature-spot-mark .kx-mark-bg {
  fill: #ffffff;
}

.feature-spot-mark .kx-mark-fg {
  fill: #1a5ce8;
}

.feature-spot-title {
  margin: 0;
  font-family: var(--font);
  font-size: clamp(2.15rem, 7.4vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.05;
  transition: transform 0.45s var(--spot-ease);
}

.feature-spot-desc {
  margin: 0.95rem 0 0;
  max-width: min(44ch, 100%);
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--muted);
  transition: color 0.45s var(--spot-ease);
}

.feature-spot-proof {
  margin: 0.55rem 0 0;
  max-width: min(46ch, 100%);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.5;
  color: color-mix(in srgb, var(--fg) 72%, var(--muted));
}

.feature-spot-cta {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-top: 1.35rem;
}

.feature-spot-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--muted) 35%, transparent);
  color: var(--fg);
  background: transparent;
  transition:
    border-color 0.35s var(--spot-ease),
    background-color 0.35s var(--spot-ease),
    color 0.35s var(--spot-ease),
    transform 0.35s var(--spot-ease);
}

.feature-spot-btn svg {
  transition: transform 0.35s var(--spot-ease);
}

.feature-spot-cta-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.35s var(--spot-ease);
}

.feature-spot:hover .feature-spot-title,
.feature-spot:focus-visible .feature-spot-title,
.feature-spot:hover .feature-spot-mark,
.feature-spot:focus-visible .feature-spot-mark {
  transform: translateX(2px);
}

.feature-spot:hover .feature-spot-btn,
.feature-spot:focus-visible .feature-spot-btn {
  border-color: var(--fg);
  background: var(--fg);
  color: var(--bg);
  transform: scale(1.04);
}

.feature-spot:hover .feature-spot-btn svg,
.feature-spot:focus-visible .feature-spot-btn svg {
  transform: rotate(45deg);
}

.feature-spot:hover .feature-spot-cta-label,
.feature-spot:focus-visible .feature-spot-cta-label {
  color: var(--fg);
}

.feature-spot:hover .feature-spot-desc,
.feature-spot:focus-visible .feature-spot-desc {
  color: color-mix(in srgb, var(--fg) 70%, var(--muted));
}

/* Motion.dev owns transform springs on interactive targets */
html.has-motion .btn,
html.has-motion .contact-mail,
html.has-motion .social-link,
html.has-motion .lang-press,
html.has-motion .feature-spot {
  transform: translateZ(0);
}

html.has-motion .meta > div {
  opacity: 0;
  transform: translateY(12px);
}

html.has-motion .btn {
  transition-property: background, border-color, box-shadow, color;
}

html.has-motion .btn:hover,
html.has-motion .btn:focus-visible,
html.has-motion .btn:active {
  transform: none;
}

html.has-motion .btn .btn-arrow {
  transition: none;
}

html.has-motion .btn:hover .btn-arrow,
html.has-motion .btn:focus-visible .btn-arrow {
  transform: none;
}

/* CSS :active scale fights Motion press springs — hand off fully */
html.has-motion button.lang-press {
  transition-property: color, background, border-color;
}

html.has-motion button.lang-press:active {
  transform: none;
}

html.has-motion .feature-spot-mark,
html.has-motion .feature-spot-title,
html.has-motion .feature-spot-btn,
html.has-motion .feature-spot-btn svg {
  transition-property: border-color, background-color, color;
}

html.has-motion .feature-spot:hover .feature-spot-mark,
html.has-motion .feature-spot:focus-visible .feature-spot-mark,
html.has-motion .feature-spot:hover .feature-spot-title,
html.has-motion .feature-spot:focus-visible .feature-spot-title,
html.has-motion .feature-spot:hover .feature-spot-btn,
html.has-motion .feature-spot:focus-visible .feature-spot-btn,
html.has-motion .feature-spot:hover .feature-spot-btn svg,
html.has-motion .feature-spot:focus-visible .feature-spot-btn svg {
  transform: none;
}

html.has-motion .social-link {
  transition-property: color, background-color, border-color;
}

.feature-spot:focus-visible {
  outline: 2px solid var(--fg);
  outline-offset: 6px;
  border-radius: 4px;
}

.about-grid {
  display: grid;
  gap: 2.25rem;
}

.about p {
  margin: 1rem 0 0;
  max-width: 42ch;
  color: var(--muted);
  font-size: 1.05rem;
}

.about p.about-lead {
  font-family: var(--font);
  font-size: clamp(1.35rem, 2.4vw, 1.7rem);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -0.02em;
  color: var(--fg);
}

.meta {
  margin: 0;
}

.meta div {
  display: grid;
  grid-template-columns: 7.2rem 1fr;
  gap: 0.85rem;
  padding: 0.95rem 0;
  border-top: 1px solid var(--line);
  transition: background 0.3s ease;
}

.meta div:last-child {
  border-bottom: 1px solid var(--line);
}

.meta div > * {
  transition: transform 0.3s var(--ease-out);
}

@media (hover: hover) {
  .meta div:hover > * {
    transform: translateX(0.35rem);
  }

  .meta div:hover dt {
    color: var(--accent);
  }
}

.meta dt {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  transition: color 0.3s ease;
}

.meta dd {
  margin: 0;
  font-weight: 600;
}

.meta a {
  border-bottom: 1px solid var(--line-strong);
  transition: border-color 0.25s ease;
}

.meta a:hover,
.meta a:focus-visible {
  border-bottom-color: var(--accent);
}

.contact-panel {
  position: relative;
  overflow: visible;
  min-height: clamp(22rem, 48vw, 28rem);
  padding: clamp(2rem, 5vw, 3.25rem);
  border-radius: 48px;
  border: 1px solid color-mix(in srgb, var(--fg) 10%, transparent);
  background: color-mix(in srgb, var(--soft) 72%, var(--bg));
  color: var(--fg);
  box-shadow: 0 10px 28px color-mix(in srgb, #000000 6%, transparent);
  isolation: isolate;
}

.contact-dither {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  border-radius: inherit;
  opacity: 0.72;
  mix-blend-mode: multiply;
}

[data-theme="dark"] .contact-dither {
  opacity: 0.62;
  mix-blend-mode: screen;
}

.contact-dither::before {
  content: "";
  position: absolute;
  inset: -18% -12% -28% 12%;
  background:
    radial-gradient(
      ellipse 62% 68% at 78% 36%,
      color-mix(in srgb, var(--accent) 58%, transparent),
      transparent 68%
    ),
    radial-gradient(
      ellipse 44% 52% at 92% 72%,
      color-mix(in srgb, var(--accent) 34%, transparent),
      transparent 72%
    ),
    radial-gradient(
      ellipse 32% 38% at 58% 58%,
      color-mix(in srgb, var(--accent) 22%, transparent),
      transparent 70%
    );
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
  transition: opacity 0.4s ease;
  animation: contact-glow 8s ease-in-out infinite alternate;
}

/* Touch / no-WebGL: keep a rich living field without GPU shaders */
.contact-dither[data-state="fallback"]::before,
.contact-dither[data-state="idle"]::before {
  inset: -12% -8% -22% 4%;
  background:
    radial-gradient(
      ellipse 70% 74% at 82% 32%,
      color-mix(in srgb, var(--accent) 70%, transparent),
      transparent 66%
    ),
    radial-gradient(
      ellipse 48% 56% at 96% 78%,
      color-mix(in srgb, var(--accent) 42%, transparent),
      transparent 70%
    ),
    radial-gradient(
      ellipse 36% 42% at 54% 62%,
      color-mix(in srgb, var(--accent) 28%, transparent),
      transparent 68%
    );
  animation: contact-glow 7s ease-in-out infinite alternate;
}

.contact-dither[data-state="fallback"]::after,
.contact-dither[data-state="idle"]::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0.55;
  mix-blend-mode: soft-light;
  background-image:
    radial-gradient(
      circle,
      color-mix(in srgb, var(--accent) 55%, transparent) 0.55px,
      transparent 0.7px
    ),
    radial-gradient(
      circle,
      color-mix(in srgb, var(--fg) 18%, transparent) 0.4px,
      transparent 0.65px
    );
  background-size: 5px 5px, 8px 8px;
  background-position: 0 0, 2px 3px;
  animation: contact-grain 14s linear infinite;
}

.contact-dither[data-state="ready"]::before {
  opacity: 0.32;
  animation: none;
}

.contact-dither[data-state="ready"]::after {
  content: none;
  animation: none;
}

.contact-dither canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

@keyframes contact-glow {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 0.88;
  }
  100% {
    transform: translate3d(-4%, 3%, 0) scale(1.08);
    opacity: 1;
  }
}

@keyframes contact-grain {
  to {
    transform: translate3d(-8px, 6px, 0);
  }
}

.contact-panel-body {
  position: relative;
  z-index: 1;
  max-width: min(100%, 38rem);
}

.contact-kicker {
  margin: 0 0 0.55rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.contact-panel h2 {
  color: inherit;
}

.contact-mail {
  position: relative;
  display: inline-flex;
  margin-top: 1.1rem;
  font-family: var(--font);
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  overflow: hidden;
  color: var(--fg);
}

.contact-mail span:first-child {
  position: relative;
  z-index: 1;
  background-image: linear-gradient(currentColor, currentColor);
  background-position: 0 100%;
  background-repeat: no-repeat;
  background-size: 0% 1px;
  transition: background-size 0.45s var(--ease-out), color 0.25s ease;
}

.contact-mail:hover span:first-child,
.contact-mail:focus-visible span:first-child {
  background-size: 100% 1px;
  color: var(--accent);
}

.mail-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    110deg,
    transparent,
    color-mix(in srgb, var(--fg) 8%, transparent),
    transparent
  );
  transform: translateX(-130%);
  transition: transform 0.7s var(--ease-out);
}

.contact-mail:hover .mail-shine,
.contact-mail:focus-visible .mail-shine {
  transform: translateX(130%);
}

.contact-note {
  margin: 1rem 0 0;
  max-width: 36rem;
  color: var(--muted);
}

.social-icons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: inherit;
  opacity: 0.72;
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  transition: opacity 0.2s ease, color 0.2s ease;
}

.social-link:hover,
.social-link:focus-visible {
  opacity: 1;
}

.social-link svg {
  width: 0.95rem;
  height: 0.95rem;
  fill: currentColor;
  flex-shrink: 0;
}

.foot .social-link {
  color: var(--muted);
  opacity: 1;
  padding: 0.35rem;
  border-radius: 8px;
}

.foot .social-link:hover,
.foot .social-link:focus-visible {
  color: var(--accent);
  background: color-mix(in srgb, var(--fg) 6%, transparent);
}

.foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.25rem;
  padding-top: 1.35rem;
  border-top: 1px solid var(--line);
}

.foot-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.foot-mail {
  color: inherit;
  font-weight: 550;
  letter-spacing: -0.01em;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.foot-mail:hover,
.foot-mail:focus-visible {
  color: var(--accent);
  border-bottom-color: color-mix(in srgb, var(--accent) 55%, transparent);
}

html.js.boot [data-animate="rise"],
html.js.is-ready [data-animate="rise"]:not(.is-in) {
  opacity: 0;
  transform: translateY(16px);
}

html.js.is-ready [data-animate="rise"] {
  transition:
    opacity var(--dur) var(--ease-out),
    transform var(--dur) var(--ease-out);
  transition-delay: calc(var(--d, 0) * 70ms);
}

html.js.is-ready [data-animate="rise"].is-in {
  opacity: 1;
  transform: none;
}

[data-delay="1"] { --d: 1; }
[data-delay="2"] { --d: 2; }
[data-delay="3"] { --d: 3; }

html.js.boot.is-ready [data-animate="rise"] {
  transition-delay: calc(80ms + var(--d, 0) * 70ms);
}

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

@media (min-width: 900px) {
  .top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    height: 3.35rem;
    top: 1rem;
    margin-top: 1rem;
    padding: 0 0.45rem 0 1.15rem;
  }

  .logo {
    justify-self: start;
  }

  .nav {
    display: flex;
    justify-self: center;
    gap: 0.2rem;
  }

  .nav a {
    height: 2.15rem;
    padding: 0 0.92rem;
    font-size: 0.84rem;
    letter-spacing: -0.015em;
    transition:
      color 0.22s ease,
      background-color 0.22s ease,
      box-shadow 0.22s ease;
  }

  .nav a:hover,
  .nav a:focus-visible {
    color: var(--fg);
    background: color-mix(in srgb, var(--fg) 8%, transparent);
  }

  .nav a.is-active {
    color: var(--fg);
    background: color-mix(in srgb, var(--fg) 11%, transparent);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--fg) 9%, transparent);
  }

  .top-right {
    justify-self: end;
    gap: 0.38rem;
    padding-right: 0.1rem;
  }

  button.lang-press {
    min-width: 2.35rem;
    height: 2.15rem;
    padding: 0 0.68rem;
    font-size: 0.72rem;
    letter-spacing: 0.07em;
    border: 1px solid transparent;
    transition:
      color 0.2s ease,
      background 0.2s ease,
      border-color 0.2s ease,
      transform 0.12s ease;
  }

  button.lang-press:hover {
    color: var(--fg);
    background: color-mix(in srgb, var(--fg) 8%, transparent);
    border-color: color-mix(in srgb, var(--fg) 10%, transparent);
  }

  .theme-toggle {
    width: 3.45rem;
    height: 2rem;
    padding: 0.2rem;
    transition:
      background-color 0.28s ease,
      border-color 0.28s ease;
  }

  .theme-toggle:hover {
    background: color-mix(in srgb, var(--fg) 10%, transparent);
    border-color: color-mix(in srgb, var(--fg) 20%, transparent);
  }

  .theme-toggle-knob,
  .theme-toggle-ghost {
    width: 1.35rem;
    height: 1.35rem;
  }

  [data-theme="light"] .theme-toggle-knob {
    transform: translateX(1.6rem);
  }

  [data-theme="light"] .theme-toggle-ghost {
    transform: translateX(-1.6rem);
  }

  .menu-toggle,
  .mobile-nav {
    display: none !important;
  }

  .intro {
    grid-template-columns: 0.95fr 1.05fr;
    gap: 5rem;
    min-height: calc(100svh - 7rem);
    padding: 2.25rem 0 5.5rem;
  }

  .intro-links {
    gap: 0.75rem 0.95rem;
    margin-top: 2rem;
  }

  .btn {
    min-height: 2.85rem;
    padding: 0.72rem 1.4rem;
    gap: 0.45rem;
    border-radius: 999px;
    font-size: 0.94rem;
    box-shadow: 0 1px 0 color-mix(in srgb, var(--fg) 5%, transparent);
  }

  .btn:hover,
  .btn:focus-visible {
    transform: translateY(-2px);
    background: color-mix(in srgb, var(--fg) 11%, var(--bg));
    border-color: color-mix(in srgb, var(--fg) 26%, transparent);
    box-shadow: 0 10px 26px color-mix(in srgb, var(--fg) 11%, transparent);
  }

  .btn--ghost {
    box-shadow: none;
  }

  .btn--ghost:hover,
  .btn--ghost:focus-visible {
    background: color-mix(in srgb, var(--fg) 6%, transparent);
    border-color: color-mix(in srgb, var(--fg) 22%, transparent);
    box-shadow: none;
  }

  .btn--accent:hover,
  .btn--accent:focus-visible {
    background: color-mix(in srgb, var(--accent-btn) 86%, var(--bg));
    box-shadow: 0 12px 30px color-mix(in srgb, var(--accent-btn) 28%, transparent);
  }

  .btn:hover .btn-arrow,
  .btn:focus-visible .btn-arrow {
    transform: translateX(4px);
  }

  .photo-stage {
    width: min(100%, 400px);
    max-width: none;
    margin: 0;
  }

  .feature-spot {
    padding: 1.5rem 1.55rem 1.6rem;
    margin: 0 -0.45rem;
    border-radius: 30px;
    background:
      linear-gradient(
        155deg,
        color-mix(in srgb, #1a5ce8 6%, transparent),
        transparent 44%
      ),
      color-mix(in srgb, var(--soft) 48%, transparent);
    transition:
      border-color 0.4s var(--spot-ease),
      background 0.4s var(--spot-ease),
      box-shadow 0.4s var(--spot-ease);
  }

  .feature-spot:hover,
  .feature-spot:focus-visible {
    border-color: color-mix(in srgb, #1a5ce8 18%, var(--line));
    background:
      linear-gradient(
        155deg,
        color-mix(in srgb, #1a5ce8 11%, transparent),
        transparent 50%
      ),
      color-mix(in srgb, var(--soft) 68%, transparent);
    box-shadow: 0 14px 34px color-mix(in srgb, #1a5ce8 9%, transparent);
  }

  [data-theme="dark"] .feature-spot:hover,
  [data-theme="dark"] .feature-spot:focus-visible {
    border-color: color-mix(in srgb, #1a5ce8 28%, var(--line));
    box-shadow: 0 16px 38px color-mix(in srgb, #1a5ce8 16%, transparent);
  }

  .feature-spot:hover .feature-spot-title,
  .feature-spot:focus-visible .feature-spot-title,
  .feature-spot:hover .feature-spot-mark,
  .feature-spot:focus-visible .feature-spot-mark {
    transform: translateX(3px);
  }

  .feature-spot:hover .feature-spot-btn,
  .feature-spot:focus-visible .feature-spot-btn {
    transform: scale(1.06);
  }

  .feature-spot-cta {
    margin-top: 1.45rem;
    gap: 0.95rem;
  }

  .about-grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 4.5rem;
  }

  .contact-mail {
    margin-top: 1.25rem;
  }

  .contact-mail span:first-child {
    background-image: linear-gradient(currentColor, currentColor);
    background-size: 0% 1.5px;
    transition:
      background-size 0.4s var(--ease-out),
      color 0.25s ease;
  }

  .contact-mail:hover span:first-child,
  .contact-mail:focus-visible span:first-child {
    background-size: 100% 1.5px;
    color: var(--accent);
  }

  .contact-note {
    margin-top: 1.1rem;
  }

  .foot {
    margin-top: 1.4rem;
    padding-top: 1.5rem;
    gap: 1.15rem;
  }

  .foot .social-icons {
    gap: 0.28rem;
  }

  .foot .social-link {
    padding: 0.42rem;
    border-radius: 999px;
    transition:
      color 0.2s ease,
      background-color 0.2s ease;
  }

  .foot .social-link:hover,
  .foot .social-link:focus-visible {
    color: var(--accent);
    background: color-mix(in srgb, var(--accent) 9%, transparent);
  }

  .foot-mail {
    border-bottom-width: 1px;
    border-bottom-style: solid;
    padding-bottom: 0.05rem;
  }

  .foot-mail:hover,
  .foot-mail:focus-visible {
    color: var(--accent);
    border-bottom-color: color-mix(in srgb, var(--accent) 72%, transparent);
  }

  [data-theme="dark"] .nav a:hover,
  [data-theme="dark"] .nav a:focus-visible,
  [data-theme="dark"] button.lang-press:hover {
    background: color-mix(in srgb, var(--fg) 10%, transparent);
  }

  [data-theme="dark"] .nav a.is-active {
    background: color-mix(in srgb, var(--fg) 13%, transparent);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--fg) 12%, transparent);
  }

  [data-theme="dark"] .btn:hover,
  [data-theme="dark"] .btn:focus-visible {
    box-shadow: 0 12px 28px color-mix(in srgb, #000000 42%, transparent);
  }

  [data-theme="dark"] .btn--accent:hover,
  [data-theme="dark"] .btn--accent:focus-visible {
    box-shadow: 0 14px 32px color-mix(in srgb, var(--accent-btn) 22%, transparent);
  }
}

@media (max-width: 899px) {
  .page {
    width: min(1120px, calc(100% - 1.25rem));
    padding-bottom: calc(2.5rem + env(safe-area-inset-bottom, 0px));
  }

  .top {
    top: max(0.45rem, env(safe-area-inset-top, 0px));
    margin-top: max(0.45rem, env(safe-area-inset-top, 0px));
    height: 3.25rem;
    gap: 0.35rem;
    padding: 0 0.35rem 0 0.9rem;
  }

  .logo {
    padding-left: 0.05rem;
    min-height: 2.75rem;
  }

  .logo-mark {
    font-size: 0.74rem;
    letter-spacing: 0.17em;
  }

  .top-right {
    gap: 0.2rem;
  }

  button.lang-press {
    min-width: 2.75rem;
    height: 2.75rem;
    border-radius: 999px;
    border: 1px solid color-mix(in srgb, var(--fg) 10%, transparent);
    background: color-mix(in srgb, var(--fg) 4%, transparent);
    font-size: 0.72rem;
  }

  .theme-toggle {
    width: 3.35rem;
    height: 2.1rem;
    margin: 0 0.05rem;
  }

  .theme-toggle-knob,
  .theme-toggle-ghost {
    width: 1.45rem;
    height: 1.45rem;
  }

  [data-theme="light"] .theme-toggle-knob {
    transform: translateX(1.45rem);
  }

  [data-theme="light"] .theme-toggle-ghost {
    transform: translateX(-1.45rem);
  }

  .menu-toggle {
    width: 2.75rem;
    height: 2.75rem;
    padding: 0.72rem;
    border: 1px solid color-mix(in srgb, var(--fg) 10%, transparent);
    background: color-mix(in srgb, var(--fg) 4%, transparent);
  }

  .menu-toggle[aria-expanded="true"] {
    background: color-mix(in srgb, var(--fg) 10%, transparent);
    border-color: color-mix(in srgb, var(--fg) 18%, transparent);
  }

  .menu-toggle[aria-expanded="true"] .menu-line:first-child {
    transform: translateY(3.25px) rotate(45deg);
  }

  .menu-toggle[aria-expanded="true"] .menu-line:last-child {
    transform: translateY(-3.25px) rotate(-45deg);
  }

  .mobile-nav {
    margin: 0.5rem 0 0.95rem;
    padding: 0.4rem;
    border-radius: 22px;
  }

  .mobile-nav a {
    min-height: 3rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.9rem 1.05rem;
    font-size: 1.05rem;
    border-radius: 16px;
  }

  .intro {
    gap: 1.35rem;
    padding: 0.75rem 0 2.85rem;
    min-height: calc(100svh - 5.75rem);
  }

  .intro-media {
    order: -1;
  }

  .photo-stage {
    width: min(100%, 268px);
  }

  .photo-frame {
    border-radius: 22px;
    border-color: color-mix(in srgb, var(--fg) 12%, transparent);
  }

  .eyebrow {
    margin-bottom: 0.4rem;
    font-size: clamp(1.28rem, 5.6vw, 1.55rem);
  }

  h1 {
    font-size: clamp(2.5rem, 11.2vw, 3.7rem);
    line-height: 0.96;
  }

  .summary {
    margin-top: 0.9rem;
    font-size: 1.03rem;
    line-height: 1.58;
    max-width: 32rem;
  }

  .feature-spot {
    margin: 0;
    padding: 1.25rem 1.15rem 1.35rem;
    border-radius: 24px;
    width: 100%;
    max-width: none;
  }

  .feature-spot-mark {
    width: 2.75rem;
    height: 2.75rem;
  }

  .feature-spot-cta {
    margin-top: 1.2rem;
    width: 100%;
  }

  .feature-spot-btn {
    width: 2.75rem;
    height: 2.75rem;
  }

  .feature-spot-cta-label {
    font-size: 0.78rem;
  }

  .intro-links {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.65rem;
    margin-top: 1.4rem;
  }

  .intro-links .btn {
    width: 100%;
    min-width: 0;
    min-height: 3.05rem;
    padding: 0.85rem 1.2rem;
    font-size: 0.98rem;
    border-radius: 16px;
  }

  .btn {
    min-height: 3rem;
    border-radius: 16px;
  }

  .block {
    padding: 2.75rem 0;
  }

  .about h2,
  .contact-panel h2 {
    font-size: clamp(1.85rem, 8vw, 2.6rem);
  }

  .about-grid {
    gap: 1.75rem;
  }

  .about p.about-lead {
    font-size: clamp(1.25rem, 5.5vw, 1.5rem);
  }

  .meta div {
    grid-template-columns: 6.25rem minmax(0, 1fr);
    gap: 0.7rem;
    padding: 0.95rem 0;
    align-items: center;
  }

  .meta a {
    display: inline-block;
    padding: 0.15rem 0;
    min-height: 1.6rem;
  }

  .contact-panel {
    border-radius: 26px;
    min-height: min(19.5rem, 64vw);
    padding: 1.7rem 1.3rem 1.9rem;
  }

  .contact-dither {
    opacity: 0.88;
  }

  [data-theme="dark"] .contact-dither {
    opacity: 0.78;
  }

  .contact-dither[data-state="fallback"]::after,
  .contact-dither[data-state="idle"]::after {
    opacity: 0.7;
  }

  .contact-panel-body {
    max-width: 100%;
  }

  .contact-kicker {
    font-size: 0.72rem;
    letter-spacing: 0.16em;
  }

  .contact-mail {
    display: inline-block;
    max-width: 100%;
    margin-top: 1rem;
    padding: 0.2rem 0;
    font-size: clamp(1.4rem, 7.2vw, 2.05rem);
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .contact-mail span:first-child {
    background-size: 100% 1px;
    background-image: linear-gradient(
      color-mix(in srgb, var(--fg) 28%, transparent),
      color-mix(in srgb, var(--fg) 28%, transparent)
    );
  }

  .contact-note {
    margin-top: 0.85rem;
    font-size: 0.98rem;
    line-height: 1.55;
  }

  .foot {
    padding-top: 1.2rem;
    gap: 0.85rem;
  }

  .foot .social-link {
    width: 2.75rem;
    height: 2.75rem;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: 1px solid color-mix(in srgb, var(--fg) 10%, transparent);
    background: color-mix(in srgb, var(--fg) 4%, transparent);
  }

  .foot .social-link svg {
    width: 1.1rem;
    height: 1.1rem;
  }

  .foot-mail {
    font-weight: 500;
  }
}

@media (max-width: 420px) {
  .page {
    width: calc(100% - 1rem);
  }

  .meta div {
    grid-template-columns: 1fr;
    gap: 0.22rem;
    padding: 0.9rem 0;
  }

  .meta dt {
    font-size: 0.72rem;
    letter-spacing: 0.02em;
  }

  .meta dd {
    font-size: 1.02rem;
  }

  .theme-toggle {
    width: 3.15rem;
    height: 2rem;
  }

  [data-theme="light"] .theme-toggle-knob {
    transform: translateX(1.35rem);
  }

  [data-theme="light"] .theme-toggle-ghost {
    transform: translateX(-1.35rem);
  }

  .intro-links .btn {
    border-radius: 15px;
  }
}

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

  .boot-veil,
  [data-animate="rise"],
  .photo-frame,
  .theme-toggle,
  .theme-toggle-knob,
  .theme-toggle-ghost,
  .feature-spot,
  .feature-spot-mark,
  .feature-spot-title,
  .feature-spot-desc,
  .feature-spot-proof,
  .feature-spot-btn,
  .feature-spot-btn svg,
  .feature-spot-cta-label,
  .meta div > *,
  .btn,
  .contact-dither,
  .contact-dither::before,
  .contact-dither::after,
  .contact-panel,
  .contact-mail span:first-child,
  .mail-shine,
  .social-link,
  .lang-press,
  .blur-stagger .blur-char,
  .intro-grid-cell {
    animation: none !important;
    transition: none !important;
  }

  .blur-stagger .blur-char {
    opacity: 1 !important;
    filter: none !important;
  }

  html.js.boot .boot-veil {
    display: none;
  }

  [data-animate="rise"] {
    opacity: 1 !important;
    transform: none !important;
  }

  .photo-frame img {
    filter: none;
  }

  .feature-spot:hover .feature-spot-title,
  .feature-spot:focus-visible .feature-spot-title,
  .feature-spot:hover .feature-spot-mark,
  .feature-spot:focus-visible .feature-spot-mark,
  .feature-spot:hover .feature-spot-btn,
  .feature-spot:focus-visible .feature-spot-btn,
  .feature-spot:hover .feature-spot-btn svg,
  .feature-spot:focus-visible .feature-spot-btn svg {
    transform: none;
  }

  .feature-spot:hover .feature-spot-btn,
  .feature-spot:focus-visible .feature-spot-btn {
    border-color: color-mix(in srgb, var(--muted) 35%, transparent);
    background: transparent;
    color: var(--fg);
  }

  .feature-spot:hover .feature-spot-cta-label,
  .feature-spot:focus-visible .feature-spot-cta-label {
    color: var(--muted);
  }

  body,
  .top,
  .mobile-nav {
    transition: background-color 0.15s ease, color 0.15s ease !important;
  }
}
