:root {
  --bg: #fff1e8;
  --surface: rgba(255, 255, 255, 0.64);
  --surface-strong: #fffdf9;
  --text: #1c1b1a;
  --muted: #625c56;
  --accent: #f97316;
  --accent-strong: #ea580c;
  --line: rgba(255, 255, 255, 0.42);
  --shadow: 0 24px 80px rgba(24, 22, 20, 0.08);
  --glass-shadow: 0 24px 60px rgba(234, 88, 12, 0.10);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "IBM Plex Sans", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(249, 115, 22, 0.2), transparent 28%),
    radial-gradient(circle at 80% 12%, rgba(255, 183, 77, 0.12), transparent 24%),
    linear-gradient(180deg, #fff7f2 0%, var(--bg) 100%);
  overflow-x: hidden;
}

body.is-loading {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

.page-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 64px;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 700ms ease, transform 900ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

body.is-ready .page-shell {
  opacity: 1;
  transform: translateY(0);
}

.loading-screen {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at center, rgba(255, 177, 102, 0.24), transparent 26%),
    linear-gradient(180deg, #fff7f2 0%, #ffefe4 100%);
  transition: opacity 600ms ease, visibility 600ms ease;
}

.loading-screen.is-hidden {
  opacity: 0;
  visibility: hidden;
}

.loading-screen-inner {
  display: grid;
  place-items: center;
}

.loading-logo-shell {
  width: 112px;
  height: 112px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow:
    0 0 0 10px rgba(249, 115, 22, 0.08),
    0 16px 42px rgba(234, 88, 12, 0.18);
  animation: logoPulse 1.9s ease-in-out infinite;
}

.loading-logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.motion-orb {
  position: fixed;
  z-index: 0;
  border-radius: 999px;
  filter: blur(6px);
  pointer-events: none;
  opacity: 0.45;
  animation: orbFloat 15s ease-in-out infinite;
}

.flow-ribbon,
.glass-grain {
  position: fixed;
  pointer-events: none;
  z-index: 0;
}

.flow-ribbon {
  width: 52vw;
  height: 180px;
  border-radius: 999px;
  opacity: 0.22;
  filter: blur(18px);
  transform: rotate(-10deg);
}

.ribbon-one {
  top: 18%;
  left: -10%;
  background:
    linear-gradient(90deg, rgba(249, 115, 22, 0), rgba(249, 115, 22, 0.28), rgba(255, 205, 148, 0.06));
  animation: ribbonDriftOne 22s ease-in-out infinite;
}

.ribbon-two {
  bottom: 14%;
  right: -16%;
  background:
    linear-gradient(90deg, rgba(255, 183, 77, 0.02), rgba(249, 115, 22, 0.22), rgba(249, 115, 22, 0));
  transform: rotate(12deg);
  animation: ribbonDriftTwo 26s ease-in-out infinite;
}

.glass-grain {
  inset: 0;
  opacity: 0.18;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.22) 0.7px, transparent 0.7px),
    radial-gradient(circle at 80% 40%, rgba(255, 255, 255, 0.16) 0.7px, transparent 0.7px);
  background-size: 22px 22px, 28px 28px;
  mix-blend-mode: soft-light;
}

.orb-one {
  width: 260px;
  height: 260px;
  top: 8%;
  right: -90px;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.22), rgba(249, 115, 22, 0.02) 72%);
}

.orb-two {
  width: 220px;
  height: 220px;
  bottom: 10%;
  left: -70px;
  background: radial-gradient(circle, rgba(255, 183, 77, 0.2), rgba(249, 115, 22, 0.02) 72%);
  animation-duration: 18s;
  animation-direction: reverse;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0 28px;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.brand {
  width: 60px;
  height: 60px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(249, 115, 22, 0.2);
  box-shadow: 0 10px 26px rgba(234, 88, 12, 0.14);
  background: #fff;
}

.brand-logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.nav a {
  color: var(--muted);
}

.nav-pill {
  padding: 12px 18px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0.18));
  border: 1px solid rgba(255, 255, 255, 0.44);
  box-shadow:
    0 10px 30px rgba(234, 88, 12, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.46);
  backdrop-filter: blur(18px) saturate(1.08);
  -webkit-backdrop-filter: blur(18px) saturate(1.08);
}

.nav-pill a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 10px;
  border-radius: 999px;
  transition: color 160ms ease, background 160ms ease, transform 160ms ease;
}

.nav-pill a:hover {
  color: var(--accent-strong);
  background: rgba(255, 255, 255, 0.42);
  transform: translateY(-1px);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.85fr);
  gap: 24px;
  align-items: stretch;
  padding: 28px 0 44px;
  position: relative;
  z-index: 1;
}

.hero-copy,
.hero-card,
.panel,
.timeline-item,
.project-card,
.education-item {
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.68) 0%, rgba(255, 248, 242, 0.54) 100%);
  border: 1px solid var(--line);
  box-shadow: var(--glass-shadow);
  border-radius: 28px;
  position: relative;
  overflow: hidden;
}

.hero-copy::before,
.hero-card::before,
.panel::before,
.timeline-item::before,
.project-card::before,
.education-item::before,
.album-card::before,
.nav-pill::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(130deg, rgba(255, 255, 255, 0.28), transparent 36%);
  pointer-events: none;
}

.hero-copy {
  padding: 40px;
  display: flex;
  flex-direction: column;
}

.hero-card {
  padding: 32px;
}

.hero-portrait-shell {
  position: relative;
  width: min(100%, 280px);
  aspect-ratio: 1 / 1;
  margin: 0 auto 24px;
  border-radius: 50%;
  overflow: hidden;
  background:
    radial-gradient(circle at 35% 30%, rgba(255, 209, 169, 0.95), transparent 35%),
    linear-gradient(135deg, #ffb347 0%, #f97316 55%, #ea580c 100%);
  border: 3px solid rgba(249, 115, 22, 0.28);
  box-shadow: 0 18px 45px rgba(234, 88, 12, 0.18);
  animation: portraitFloat 6.8s ease-in-out infinite;
}

.hero-portrait {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.portrait-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: "Space Grotesk", sans-serif;
  font-size: 4.5rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
  letter-spacing: 0.08em;
}

.eyebrow,
.card-label,
.item-meta {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.76rem;
  color: var(--accent);
}

h1,
h2,
h3 {
  font-family: "Space Grotesk", sans-serif;
  margin: 0;
}

h1 {
  font-size: clamp(2.6rem, 6vw, 5.4rem);
  line-height: 0.96;
  margin-top: 10px;
}

h2 {
  font-size: clamp(1.9rem, 3vw, 2.7rem);
}

.hero-role {
  font-size: 1.3rem;
  color: var(--accent-strong);
  margin: 18px 0 10px;
}

.hero-summary,
#about-text,
#contact-note {
  font-size: 1.02rem;
  line-height: 1.75;
  color: var(--muted);
}

.hero-actions,
.contact-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: auto;
  padding-top: 34px;
}

.hero-fact {
  padding: 18px 18px 16px;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72) 0%, rgba(255, 247, 240, 0.58) 100%);
  border: 1px solid rgba(255, 255, 255, 0.44);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.65),
    0 14px 28px rgba(234, 88, 12, 0.06);
  display: grid;
  gap: 8px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.hero-fact-label {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero-fact-value {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.15rem;
  color: var(--accent-strong);
}

.button {
  padding: 13px 20px;
  border-radius: 999px;
  font-weight: 600;
  transition: transform 160ms ease, background 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--accent-strong);
  color: #fff;
}

.button-secondary {
  background: transparent;
  border: 1px solid var(--line);
}

.highlight-list,
.timeline,
.project-grid,
.education-list {
  display: grid;
  gap: 18px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.highlight-list li {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.highlight-list li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.section {
  padding-top: 28px;
  position: relative;
  z-index: 1;
}

.section-heading {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

.section-heading .eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.42);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 8px 20px rgba(234, 88, 12, 0.05);
}

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

.panel,
.timeline-item,
.project-card,
.education-item {
  padding: 26px;
}

.timeline-item,
.project-card,
.education-item,
.album-card,
.contact-icon-link,
.hero-fact,
.brand {
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.chip {
  padding: 10px 14px;
  border-radius: 999px;
  background: #fff5ee;
  border: 1px solid var(--line);
  font-size: 0.95rem;
}

.timeline-item,
.education-item {
  display: grid;
  gap: 10px;
}

.timeline-item h3,
.project-card h3,
.education-item h3 {
  font-size: 1.2rem;
}

.project-card {
  display: grid;
  gap: 16px;
}

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

.project-links a,
.contact-links a {
  color: var(--accent-strong);
  font-weight: 600;
}

.contact-panel {
  display: grid;
  gap: 8px;
}

.album-panel {
  display: grid;
  gap: 22px;
}

.album-note {
  margin: 0;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--muted);
}

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

.album-card {
  display: grid;
  gap: 0;
  border-radius: 24px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.58), rgba(255, 250, 247, 0.44));
  border: 1px solid rgba(255, 255, 255, 0.4);
  min-height: 320px;
  box-shadow: 0 18px 38px rgba(234, 88, 12, 0.08);
  transform: translateY(28px);
  opacity: 0;
  transition:
    transform 600ms cubic-bezier(0.2, 0.8, 0.2, 1),
    opacity 600ms ease,
    box-shadow 220ms ease;
  transition-delay: var(--delay, 0ms);
}

.album-card.is-visible {
  transform: translateY(0);
  opacity: 1;
}

.album-card:hover {
  box-shadow: 0 22px 44px rgba(234, 88, 12, 0.14);
}

.album-media,
.album-media-placeholder {
  min-height: 210px;
}

.album-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.album-media-placeholder {
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: #fff;
  position: relative;
  isolation: isolate;
}

.album-media-placeholder::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.2), transparent 35%),
    linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.24) 100%);
  z-index: -1;
}

.accent-sun .album-media-placeholder {
  background: linear-gradient(135deg, #ffb347 0%, #f97316 58%, #ea580c 100%);
}

.accent-rust .album-media-placeholder {
  background: linear-gradient(135deg, #d97706 0%, #c2410c 55%, #7c2d12 100%);
}

.accent-ink .album-media-placeholder {
  background: linear-gradient(135deg, #4b5563 0%, #1f2937 55%, #0f172a 100%);
}

.accent-flame .album-media-placeholder {
  background: linear-gradient(135deg, #fb7185 0%, #f97316 50%, #ef4444 100%);
}

.accent-ember .album-media-placeholder {
  background: linear-gradient(135deg, #fdba74 0%, #ea580c 40%, #7c2d12 100%);
}

.accent-gold .album-media-placeholder {
  background: linear-gradient(135deg, #facc15 0%, #f59e0b 45%, #d97706 100%);
}

.accent-oxide .album-media-placeholder {
  background: linear-gradient(135deg, #c084fc 0%, #f97316 55%, #9a3412 100%);
}

.album-chip {
  align-self: flex-start;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.album-media-placeholder strong {
  margin-top: auto;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.6rem;
  line-height: 1.05;
  max-width: 12ch;
}

.album-copy {
  display: grid;
  gap: 8px;
  padding: 18px 18px 20px;
}

.album-link-label {
  color: var(--accent-strong);
  font-weight: 600;
}

.contact-links {
  margin-top: 18px;
}

.contact-icon-link {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background:
    linear-gradient(180deg, #fb7f25 0%, #ea580c 100%);
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 10px 24px rgba(234, 88, 12, 0.18);
  transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}

.contact-icon-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(234, 88, 12, 0.24);
  filter: saturate(1.05) brightness(1.03);
}

.contact-icon-link svg {
  width: 22px;
  height: 22px;
  fill: #fff;
}

.contact-icon-link.is-disabled {
  opacity: 0.55;
  cursor: default;
  pointer-events: none;
}

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(42px);
  transition:
    opacity 700ms ease,
    transform 820ms cubic-bezier(0.2, 0.8, 0.2, 1);
  transition-delay: var(--reveal-delay, 0ms);
}

.reveal-on-scroll.reveal-left {
  transform: translateX(-42px);
}

.reveal-on-scroll.reveal-right {
  transform: translateX(42px);
}

.reveal-on-scroll.reveal-scale {
  transform: scale(0.94);
}

.reveal-on-scroll.is-revealed {
  opacity: 1;
  transform: none;
}

@keyframes logoPulse {
  0%,
  100% {
    transform: scale(0.96);
    opacity: 0.82;
  }
  50% {
    transform: scale(1.04);
    opacity: 1;
  }
}

@keyframes orbFloat {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(0, -18px, 0);
  }
}

@keyframes ribbonDriftOne {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(-10deg);
  }
  50% {
    transform: translate3d(8%, -24px, 0) rotate(-7deg);
  }
}

@keyframes ribbonDriftTwo {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(12deg);
  }
  50% {
    transform: translate3d(-10%, 18px, 0) rotate(8deg);
  }
}

@keyframes portraitFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

@media (max-width: 900px) {
  .hero,
  .about-grid,
  .project-grid,
  .album-grid {
    grid-template-columns: 1fr;
  }

  .hero-facts {
    grid-template-columns: 1fr;
    padding-top: 24px;
  }

  .hero-copy,
  .hero-card {
    padding: 28px;
  }

  .motion-orb {
    opacity: 0.28;
  }

  .flow-ribbon {
    width: 78vw;
    opacity: 0.16;
  }
}

@media (max-width: 640px) {
  .page-shell {
    width: min(100% - 20px, 1120px);
  }

  .topbar {
    align-items: flex-start;
    gap: 14px;
    flex-direction: column;
  }

  .nav-pill {
    width: 100%;
    justify-content: space-between;
    border-radius: 28px;
  }

  .loading-logo-shell {
    width: 92px;
    height: 92px;
  }

  .glass-grain,
  .flow-ribbon {
    display: none;
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }

  .loading-screen {
    display: none;
  }

  .page-shell,
  .reveal-on-scroll,
  .album-card {
    opacity: 1 !important;
    transform: none !important;
  }
}
