@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../assets/fonts/SpaceGrotesk-VariableFont_wght.woff2") format("woff2");
}

:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --text: #111111;
  --text-body: #33383d;
  --muted: #5a5a5a;
  --card: rgba(255, 255, 255, 0.9);
  --border: rgba(0, 0, 0, 0.08);
  --chip-bg: rgba(0, 0, 0, 0.02);
  --accent: #0a66c2;
  --accent-soft: rgba(10, 102, 194, 0.1);
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
  --glow-cool: rgba(128, 198, 255, 0.18);
  --glow-warm: rgba(255, 186, 136, 0.14);
  --radius: 22px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0b0b;
    --text: #f5f5f5;
    --text-body: #d2d6da;
    --muted: #b0b0b0;
    --card: rgba(16, 16, 16, 0.92);
    --border: rgba(255, 255, 255, 0.08);
    --chip-bg: rgba(255, 255, 255, 0.04);
    --accent: #7fb3ff;
    --accent-soft: rgba(127, 179, 255, 0.14);
    --shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
    --glow-cool: rgba(76, 140, 255, 0.16);
    --glow-warm: rgba(255, 150, 90, 0.1);
  }
}

::selection {
  background: var(--accent-soft);
}

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

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  background: radial-gradient(circle at 10% 15%, var(--glow-cool), transparent 50%),
    radial-gradient(circle at 90% 85%, var(--glow-warm), transparent 45%),
    var(--bg);
  color: var(--text);
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 48px 18px 64px;
}

[data-reveal-root] {
  font-variant-ligatures: none;
  font-variant-numeric: tabular-nums;
}

.reveal-chunk {
  transition: color 900ms ease, opacity 900ms ease;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.reveal-chunk.is-scrambling {
  color: var(--accent);
  opacity: 0.72;
}

@media (prefers-reduced-motion: reduce) {
  .reveal-chunk {
    transition: none;
  }
}

main {
  width: min(680px, 92vw);
}

.card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 36px 36px;
  box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.card::before {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: calc(var(--radius) - 8px);
  pointer-events: none;
}

.intro {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 28px;
}

.portrait {
  flex: none;
  width: 64px;
  height: 64px;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid var(--border);
  filter: grayscale(1);
  transition: filter 0.3s ease;
  animation: fade-in 1.2s ease 0.2s both;
}

.portrait:hover {
  filter: grayscale(0);
}

.logo {
  font-size: clamp(2rem, 4vw, 3.1rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  margin: 0 0 4px;
}

.subtitle {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.6;
}

.photo-link {
  color: inherit;
  text-decoration: underline dotted;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  cursor: pointer;
  transition: color 0.3s ease;
}

.photo-link:hover {
  color: var(--accent);
}

.photo-lightbox {
  height: 100dvh;
  background: rgba(0, 0, 0, 0.72);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.photo-lightbox .basicLightbox__placeholder>img {
  border-radius: 12px;
}

@media (prefers-reduced-motion: reduce) {

  .photo-lightbox,
  .photo-lightbox .basicLightbox__placeholder {
    transition: none;
  }
}

.section {
  margin-top: 32px;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-body);
}

.section h2 {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  margin: 0 0 10px;
  color: var(--muted);
}

.section p {
  margin: 0;
}

.section ul {
  margin: 12px 0 0;
  padding-left: 1.25em;
}

.section li {
  margin-bottom: 6px;
}

.section li::marker {
  color: var(--muted);
}

.section a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.socials {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.socials a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  background: var(--chip-bg);
  transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.3s ease, color 0.3s ease;
}

.socials a:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  background: var(--accent-soft);
}

.socials svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.footer-note {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.95rem;
}

.brand-mark {
  flex: none;
  width: 52px;
  height: 52px;
  animation: fade-in 1.2s ease 0.4s both;
}

@media (prefers-color-scheme: dark) {
  .brand-mark {
    filter: invert(1);
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {

  .brand-mark,
  .portrait,
  .socials a {
    animation: none;
    transition: none;
  }

  .socials a:hover {
    transform: none;
  }
}

@media (max-width: 520px) {
  .card {
    padding: 32px 24px 28px;
  }

  .socials {
    grid-template-columns: 1fr 1fr;
  }

  .intro {
    gap: 14px;
  }

  .portrait {
    width: 56px;
    height: 56px;
  }

  .logo {
    font-size: 1.6rem;
  }
}