@import "tailwindcss";

:root {
  --bg: #ffff;
  --card: white;
  --accent: #0087fe;
  --text: #0b2540;
  --muted: #48607a;
  --radius: 12px;
  --maxw: 960px;
  font-family:
    "Inter",
    system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    "Helvetica Neue",
    Arial,
    sans-serif;
}

* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  display: row;
  min-height: 100vh;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.top-banner {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 1) 0%,
    rgba(255, 255, 255, 0) 100%
  );
  pointer-events: none;
  z-index: 10;
}
.bottom-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 80px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 1) 100%
  );
  pointer-events: none;
  z-index: 10;
}

.container {
  width: 100%;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: 0 8px 30px rgba(6, 24, 44, 0.08);
  padding: 28px;
}

.site-header {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  margin-bottom: 80px;
  margin-top: 100px;
}
.site-headshot {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.site-header h1 {
  font-family:
    "Inter",
    system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    "Helvetica Neue",
    Arial,
    sans-serif;
  font-weight: 400;
  font-size: 20px;
  letter-spacing: -0.5px;
  margin: 0;
  display: flex;
  flex-direction: column;
}
.site-header__line {
  display: block;
  height: 1.2em;
  line-height: 1.2em;
}
#intro-name {
  opacity: 0;
}
.content h2 {
  font-family:
    "Inter",
    system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    "Helvetica Neue",
    Arial,
    sans-serif;
  font-weight: 500;
  font-size: 24px;
  color: rgba(0, 0, 0, 0.15);
  letter-spacing: -0.8px;
  margin-top: 0;
  margin-bottom: 24px;
}
.tagline {
  color: var(--muted);
  margin-top: 4px;
}

.content {
  display: grid;
  gap: 18px;
}
.section-divider {
  height: 1px;
  width: 100%;
  max-width: 960px;
  background-color: rgba(0, 0, 0, 0.05);
  margin: 40px auto;
  margin-top: 0;
}
.fade-seq {
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}
.fade-seq.fade-visible {
  opacity: 1;
  transform: translateY(0);
}
.content-panel--default.fade-seq:not(.fade-visible) {
  opacity: 0;
  transform: translateY(8px);
  visibility: visible;
  pointer-events: none;
}
.content-panel--default.fade-seq.fade-visible {
  opacity: 1;
  transform: scale(1) translateY(0);
  pointer-events: auto;
}
.content-panel--default.scale-reveal {
  transition:
    opacity 0.45s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}
.content-panel--default.scale-reveal.fade-visible {
  transform: scale(1) translateY(0);
}
p {
  font-size: 15px;
  line-height: 1.6;
  letter-spacing: -0.2px;
}
.item {
  margin-bottom: 40px;
}
.item p:not(.date) {
  margin: 0 0 4px;
}
.date {
  margin-top: 12px;
  opacity: 0.5;
}
.highlight {
  background: #f7f7f7;
  border-radius: 10px;
  padding: 8px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.highlight p {
  font-size: 14px;
  letter-spacing: -0.5px;
  margin: 0;
}
.heroicon {
  width: 20px;
  height: 20px;
  color: #000;
  flex-shrink: 0;
}
.link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 8px;
  border: 1px solid rgba(33, 33, 33, 0.2);
  border-radius: 12px;
  background: transparent;
  text-decoration: none;
  color: inherit;
  transition:
    border-color 0.2s ease,
    color 0.2s ease,
    opacity 0.2s ease;
}
.link-button:hover,
.link-button:focus-visible {
  border-color: rgba(0, 0, 0, 0.4);
  opacity: 0.7;
  outline: none;
}
.clickable-link {
  color: inherit;
  text-decoration: underline;
  transition: opacity 0.2s ease;
}
.clickable-link:hover,
.clickable-link:focus-visible,
.clickable-link:active,
.clickable-link:focus {
  color: inherit;
  opacity: 0.7;
  outline: none;
}
.timeline-section {
  display: flex;
  justify-content: flex-start;
}
.timeline {
  width: 1px;
  height: var(--timeline-height, 80px);
  background-image: repeating-linear-gradient(
    to bottom,
    #e0e0e0,
    #e0e0e0 4px,
    transparent 4px,
    transparent 8px
  );
}
section {
  border-radius: 10px;
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 1023px) {
  .site-header,
  section {
    width: 100%;
    max-width: 100%;
  }
  .site-footer {
    text-align: left;
  }
  .section-divider {
    max-width: 100%;
  }
  .site-header h1 {
    font-size: 22px;
  }
  .content h2 {
    font-size: 26px;
  }
  p {
    font-size: 16px;
  }
  .highlight p {
    font-size: 15px;
  }
  button {
    font-size: 17px;
  }
}

@media (min-width: 1024px) {
  .site-header {
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
  }
  section {
    min-width: 700px;
    max-width: 700px;
  }
  .section-divider {
    min-width: 700px;
    max-width: 700px;
  }
}

button {
  padding: 10px 16px;
  border-radius: 8px;
  border: 0;
  background: var(--accent);
  color: white;
  font-weight: 600;
  cursor: pointer;
}
button:active {
  transform: translateY(1px);
}
.site-footer {
  text-align: center;
  margin-top: 80px;
  margin-bottom: 24px;
  padding-bottom: 32px;
  color: var(--muted);
  opacity: 0.2;
}

.gallery-toggle {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 20;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(11, 37, 64, 0.12);
  background: var(--card);
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.2px;
  cursor: pointer;
}
.gallery-toggle__label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.gallery-toggle__icon {
  width: 16px;
  height: 16px;
}
.gallery-toggle:focus-visible {
  outline: none;
}
.gallery-toggle:active {
  transform: none;
}
.gallery-toggle__track {
  position: relative;
  width: 36px;
  height: 20px;
  border-radius: 999px;
  background: rgba(11, 37, 64, 0.12);
  transition: background 0.2s ease;
}
.gallery-toggle__thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 1px 4px rgba(6, 24, 44, 0.2);
  transition: transform 0.2s ease;
}
.gallery-toggle[aria-pressed="false"]:hover:not(.gallery-toggle--no-nudge)
  .gallery-toggle__thumb {
  transform: translateX(3px);
}
.gallery-toggle[aria-pressed="true"] .gallery-toggle__track {
  background: var(--accent);
}
.gallery-toggle[aria-pressed="true"] .gallery-toggle__thumb {
  transform: translateX(16px);
}
.gallery-toggle[aria-pressed="true"]:hover:not(.gallery-toggle--no-nudge)
  .gallery-toggle__thumb {
  transform: translateX(13px);
}

.content-stage {
  display: grid;
  position: relative;
  max-width: 960px;
  margin: 0 auto;
  width: 100%;
}
body:not(.gallery-active) .content-panel--fun {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 0;
  overflow: hidden;
}
.content-panel {
  grid-area: 1 / 1;
  transition:
    opacity 0.45s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.45s cubic-bezier(0.4, 0, 0.2, 1),
    visibility 0.45s;
  transform-origin: center top;
}
.content-panel--default {
  opacity: 1;
  transform: scale(1);
  visibility: visible;
}
.content-panel--fun {
  opacity: 0;
  transform: scale(0.96);
  visibility: hidden;
  pointer-events: none;
}
body.gallery-active .content-panel--default {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 0;
  overflow: hidden;
  opacity: 0;
  transform: scale(0.96);
  visibility: hidden;
  pointer-events: none;
}
body.gallery-active .content-panel--fun {
  opacity: 1;
  transform: scale(1);
  visibility: visible;
  pointer-events: auto;
}
.gallery {
  max-width: 960px;
  margin: 0 auto;
  width: 100%;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.gallery-video-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
}
.gallery-video-media {
  border-radius: 20px;
}
.gallery-video-frame {
  display: grid;
  background: #f5f5f5;
  border-radius: 20px;
  overflow: hidden;
}
.gallery-video-bg,
.gallery-video-poster,
.gallery-video {
  grid-area: 1 / 1;
  width: 100%;
}
.gallery-video-caption {
  margin: 0;
  font-size: 11px;
  line-height: 1.5;
  letter-spacing: -0.1px;
  color: var(--muted);
  opacity: 0.7;
  text-align: center;
  font-style: italic;
}
.gallery-video-bg {
  background: #f5f5f5;
}
.gallery-video-poster {
  display: block;
  height: auto;
  z-index: 1;
}
.gallery-video {
  height: auto;
  display: block;
  z-index: 2;
  background: none;
}
.gallery-video-card.is-playing .gallery-video-poster {
  visibility: hidden;
}

body.gallery-active .site-header {
  margin-bottom: 40px;
}
@media (min-width: 1024px) {
  body.gallery-active .content-panel--fun .site-footer {
    margin-top: 48px;
    padding-bottom: 16px;
  }
}

@media (max-width: 639px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  .gallery-toggle {
    right: 16px;
    bottom: 16px;
  }
}

@media (min-width: 1024px) {
  .content-stage,
  .gallery {
    min-width: 700px;
    max-width: 700px;
  }
}
