:root {
  color-scheme: light;
  --page-bg: #f5f6fa;
  --surface: #fdfdfd;
  --heading: #2f2f2f;
  --body: #404b56;
  --accent: #246cd3;
  --placeholder: #9aa6b5;
  --link-border: #6d6d6d;
  --border-light: #d5d5d5;
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: Aptos, "Aptos", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color: var(--body);
  background: var(--page-bg);
}

.page {
  width: min(100%, 32rem);
  margin: 0 auto;
  padding: max(1.25rem, env(safe-area-inset-top)) 1rem max(1.5rem, env(safe-area-inset-bottom));
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.1rem;
}

.hero {
  padding: 0.4rem 0 0;
}

.eyebrow {
  margin: 0 0 0.45rem;
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}

h1 {
  margin: 0;
  font-family: "Beirut", Aptos, "Segoe UI", sans-serif;
  color: var(--heading);
  font-size: clamp(2.1rem, 7vw, 3.2rem);
  line-height: 0.96;
  letter-spacing: -0.025em;
  font-weight: 600;
}

.subtitle {
  margin: 0.75rem 0 0;
  max-width: 26rem;
  color: var(--body);
  font-size: 0.98rem;
  line-height: 1.5;
}

.viewer-card {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: calc(var(--radius) + 2px);
  padding: 0.38rem;
}

.video-toggle {
  position: relative;
  display: block;
  width: 100%;
  border: 0;
  padding: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: #ffffff;
  cursor: pointer;
}

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

.video {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: contain;
  object-position: center;
  background: var(--surface);
}

.video-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: transparent;
  transition: opacity 180ms ease;
}

.video-overlay.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.play-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.7rem 0.95rem;
  border-radius: 999px;
  border: 1px solid var(--border-light);
  background: rgba(253, 253, 253, 0.96);
  color: var(--heading);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0;
}

.play-icon {
  width: 0.8rem;
  height: 0.8rem;
  display: inline-block;
  clip-path: polygon(18% 10%, 88% 50%, 18% 90%);
  background: var(--accent);
}

.viewer-note {
  margin: 0.55rem 0 0;
  color: var(--placeholder);
  font-size: 0.85rem;
  line-height: 1.4;
  text-align: center;
}

.footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  padding: 0.3rem 0 0;
  text-align: center;
}

.socials {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.linkedin-button,
.github-link {
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    color 180ms ease;
}

.linkedin-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.7rem;
  padding: 0.72rem 0.95rem;
  border: 1px solid var(--accent);
  border-radius: 12px;
  background: var(--surface);
  color: var(--accent);
  font-size: 0.93rem;
  font-weight: 600;
  text-decoration: none;
}

.linkedin-button svg {
  width: 1rem;
  height: 1rem;
  fill: currentColor;
}

.github-link {
  width: 2.7rem;
  height: 2.7rem;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid var(--border-light);
  background: var(--surface);
  color: var(--heading);
}

.github-link svg {
  width: 1rem;
  height: 1rem;
  fill: currentColor;
}

.linkedin-button:hover,
.linkedin-button:focus-visible,
.github-link:hover,
.github-link:focus-visible {
  transform: translateY(-1px);
}

.linkedin-button:hover,
.linkedin-button:focus-visible {
  background: var(--accent);
  color: var(--surface);
}

.github-link:hover,
.github-link:focus-visible {
  border-color: var(--link-border);
}

.identity {
  margin: 0.1rem 0 0;
  color: var(--heading);
  font-weight: 700;
  font-size: 1rem;
}

.affiliation {
  margin: 0;
  color: var(--body);
  font-size: 0.9rem;
  max-width: 28rem;
  line-height: 1.45;
}

@media (min-width: 640px) {
  .page {
    width: min(100%, 38rem);
    padding-left: 1.4rem;
    padding-right: 1.4rem;
  }

  .video {
    aspect-ratio: 16 / 10;
  }
}

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