:root {
  color-scheme: dark;
  --bg: #050505;
  --bg-accent: #10141c;
  --panel: rgba(255, 255, 255, 0.05);
  --panel-strong: rgba(255, 255, 255, 0.08);
  --text: #f4f7fb;
  --muted: #9ea7b3;
  --line: rgba(255, 255, 255, 0.1);
  --highlight: #FFFF00;
  --highlight-soft: rgba(117, 212, 255, 0.16);
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --content-width: 1120px;
}

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

html {
  font-size: 112.5%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Calibri, Arial, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(117, 212, 255, 0.12), transparent 28%),
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.08), transparent 22%),
    linear-gradient(140deg, #020202 0%, #06080d 45%, #020202 100%);
  color: var(--text);
}

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

a {
  color: inherit;
}

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

.page-shell {
  width: min(calc(100% - 32px), var(--content-width));
  margin: 0 auto;
  padding: 40px 0 72px;
}

.page-shell::before {
  content: "";
  position: fixed;
  inset: auto -10vw -18vh auto;
  width: 34vw;
  height: 34vw;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(117, 212, 255, 0.1), transparent 70%);
  pointer-events: none;
  filter: blur(20px);
}

.hero,
.detail-card,
.project-card {
  backdrop-filter: blur(20px);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.03));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.hero {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 32px;
  align-items: center;
  padding: 28px;
  border-radius: var(--radius-xl);
}

.hero-photo-wrap {
  position: relative;
}

.hero-photo-wrap::after {
  content: "";
  position: absolute;
  inset: -14px;
  border-radius: 32px;
  border: 1px solid rgba(117, 212, 255, 0.18);
  pointer-events: none;
}

.hero-photo {
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--highlight);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font: 600 0.73rem/1.2 Calibri, sans-serif;
}

h1,
h2 {
  margin: 0;
  font-weight: 600;
  line-height: 1;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

.summary,
.project-excerpt,
.detail-paragraph {
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.8;
}

.summary {
  max-width: 62ch;
  margin: 18px 0 24px;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.social-link,
.heart-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.social-link:hover,
.social-link:focus-visible,
.heart-button:hover,
.heart-button:focus-visible,
.project-link:hover,
.project-link:focus-visible,
.back-link:hover,
.back-link:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(117, 212, 255, 0.45);
  background: rgba(117, 212, 255, 0.08);
}

.social-link svg,
.heart-button svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.location-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 44px;
  padding: 0 8px;
  border-radius: 999px;
  border: none;
  background: none;
}

.location-pill svg {
  width: 22px;
  height: 22px;
  fill: #ff4d6d;
}

.location-text {
  font: 600 0.95rem/1 Calibri, sans-serif;
  color: var(--muted);
}

.social-link[data-icon="linkedin"] svg {
  width: 32px;
  height: 32px;
}

.journey-section {
  margin-top: 44px;
  display: grid;
  grid-template-columns: 4fr 1.5fr;
  gap: 32px;
  align-items: start;
}

.journey-left {
  display: flex;
  flex-direction: column;
}

.journey-text {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
}

.journey-image-wrap {
  display: flex;
  justify-content: center;
  align-items: start;
  padding-left: 16px;
  padding-top: 24px;
}

.journey-image {
  max-width: 100%;
  max-height: 320px;
  width: auto;
  object-fit: contain;
  border-radius: var(--radius-lg);
}

.projects-section {
  margin-top: 44px;
}

.section-heading {
  margin-bottom: 22px;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  transition: max-height 0.4s cubic-bezier(.4,0,.2,1);
}

.projects-expandable {
  position: relative;
}

.expand-btn {
  display: block;
  margin: 24px auto 0 auto;
  padding: 10px 28px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text);
  font-size: 1.1rem;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.expand-btn:hover,
.expand-btn:focus-visible {
  background: var(--highlight-soft);
  border-color: var(--highlight);
}

.media-grid-expandable {
  position: relative;
}

.project-card-half {
  opacity: 0.5;
  max-height: 188px;
  overflow: hidden;
  pointer-events: none;
}

.project-card,
.detail-card {
  border-radius: var(--radius-lg);
  padding: 24px;
}

.article-shell {
  max-width: 960px;
}

.article-hero {
  grid-template-columns: 1fr;
}

.article-body {
  display: grid;
  gap: 22px;
  margin-top: 22px;
}

.article-section {
  border-radius: var(--radius-lg);
  padding: 24px;
}

.article-title {
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1.05;
  margin-bottom: 14px;
}

.article-subtitle {
  margin: 0;
  max-width: 62ch;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.8;
}

.article-section h2,
.article-section h3 {
  margin: 0 0 12px;
  line-height: 1.15;
}

.article-section h2 {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
}

.article-section h3 {
  font-size: clamp(1.2rem, 2vw, 1.45rem);
}

.article-section p,
.article-section li {
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.85;
}

.article-section ul,
.article-section ol {
  margin: 0;
  padding-left: 22px;
}

.media-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.media-card {
  overflow: hidden;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}

.media-card img,
.media-card iframe,
.media-card video,
.media-card .video-card,
.media-card .video-frame {
  width: 100%;
  display: block;
}

.media-card img,
.media-card video {
  height: auto;
}

.media-caption {
  margin: 0;
  padding: 14px 16px 16px;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.article-columns {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}

.article-divider {
  height: 1px;
  border: 0;
  background: var(--line);
  margin: 6px 0;
}

.project-top,
.detail-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.project-link {
  color: var(--text);
  text-decoration: none;
  font-size: clamp(1.45rem, 2vw, 1.9rem);
  line-height: 1.15;
}

.project-excerpt {
  margin: 12px 0 20px;
}

.project-read-more {
  color: #00BFFF;
  text-decoration: none;
  white-space: nowrap;
}

.project-read-more:hover {
  text-decoration: underline;
}

.video-card,
.video-frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: var(--radius-md);
}

.video-card {
  padding: 0;
  cursor: pointer;
  overflow: hidden;
  background: #000;
}

.video-poster {
  position: relative;
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  background-position: center;
  background-size: cover;
}

.project-media-frame {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  display: grid;
  place-items: center;
}

.project-media-image {
  display: block;
}

.project-media-image-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-media-image-contain {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.play-button {
  padding: 12px 22px;
  border-radius: 999px;
  background: rgba(5, 5, 5, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text);
  font: 600 0.95rem/1 Calibri, sans-serif;
}

.heart-wrap {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.heart-button {
  color: #ff7d93;
  cursor: pointer;
}

.heart-count {
  min-width: 1ch;
  font: 600 1rem/1 Calibri, sans-serif;
  color: var(--text);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  color: var(--muted);
  text-decoration: none;
  font: 600 0.95rem/1 Calibri, sans-serif;
}

.page-shell-detail {
  max-width: 900px;
}

.project-detail h1 {
  margin-bottom: 10px;
  line-height: 1.05;
}

.detail-card .video-card,
.detail-card .video-frame {
  margin: 22px 0 12px;
}

.detail-paragraph {
  margin: 14px 0 0;
}

@media (max-width: 800px) {
  .page-shell {
    width: min(calc(100% - 20px), var(--content-width));
    padding-top: 20px;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 20px;
  }

  .hero-photo-wrap,
  .hero-photo {
    max-width: 220px;
  }

  .project-top,
  .detail-top {
    align-items: flex-start;
    flex-direction: column;
  }

  .projects-grid,
  .media-grid,
  .article-columns {
    grid-template-columns: 1fr;
  }
}
