:root {
  --bg-blue: #c7f3ff;
  --bg-green: #b8ffd8;
  --bg-mint: #93f5d0;
  --bg-aqua: #83dbff;
  --text-primary: #143245;
  --text-secondary: rgba(20, 50, 69, 0.72);
  --text-muted: rgba(20, 50, 69, 0.54);
  --glass-fill: rgba(255, 255, 255, 0.18);
  --glass-fill-strong: rgba(255, 255, 255, 0.34);
  --glass-border: rgba(255, 255, 255, 0.58);
  --glass-shadow: rgba(23, 80, 94, 0.12);
  --glow-soft: rgba(255, 255, 255, 0.62);
  --panel-radius: 30px;
  --outer-space: clamp(3.75rem, 7vw, 5.75rem);
  --nav-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --hover-ease-in: cubic-bezier(0.16, 0.84, 0.24, 1);
  --hover-ease-out: cubic-bezier(0.18, 0.68, 0.2, 1);
  --hover-duration-in: 290ms;
  --hover-duration-out: 360ms;
  --hover-delay-panel: 92ms;
  --hover-delay-item: 108ms;
  --nav-duration: 760ms;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  padding: var(--outer-space);
  overflow-x: hidden;
  font-family: "Sora", sans-serif;
  color: var(--text-primary);
  background-color: #f6f8fb;
  background:
    radial-gradient(circle at 16% 14%, rgba(147, 243, 215, 0.36), transparent 24%),
    radial-gradient(circle at 10% 86%, rgba(255, 233, 183, 0.34), transparent 34%),
    radial-gradient(circle at 46% 38%, rgba(132, 229, 255, 0.78), transparent 26%),
    radial-gradient(circle at 66% 42%, rgba(168, 255, 208, 0.68), transparent 28%),
    radial-gradient(circle at 86% 28%, rgba(134, 221, 255, 0.34), transparent 22%),
    radial-gradient(circle at 52% 48%, rgba(220, 248, 255, 0.3), transparent 48%),
    radial-gradient(circle at 50% 44%, rgba(240, 251, 255, 0.96), rgba(246, 248, 251, 0.98) 60%, #f6f8fb 86%, #f2f5f8 100%);
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 12% 12%, rgba(255, 255, 255, 0.52), transparent 22%),
    radial-gradient(circle at 52% 40%, rgba(255, 255, 255, 0.48), transparent 32%),
    radial-gradient(circle at 82% 34%, rgba(255, 255, 255, 0.18), transparent 26%),
    radial-gradient(circle at 50% 56%, rgba(255, 255, 255, 0.15), transparent 58%);
  filter: blur(20px);
  transform: scale(1.04);
  opacity: 0.95;
  pointer-events: none;
  transition:
    opacity 360ms ease,
    filter 620ms var(--nav-ease),
    transform 680ms var(--nav-ease);
}

body.page--home::after {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(245, 247, 249, 0.05);
  backdrop-filter: saturate(0.96) grayscale(0.03);
  -webkit-backdrop-filter: saturate(0.96) grayscale(0.03);
  opacity: 0.28;
  pointer-events: none;
  transition:
    opacity 320ms ease,
    backdrop-filter 520ms var(--nav-ease),
    -webkit-backdrop-filter 520ms var(--nav-ease);
}

.ambient-glow {
  position: fixed;
  border-radius: 999px;
  filter: blur(42px);
  pointer-events: none;
  opacity: 0.5;
  transition:
    opacity 420ms ease,
    filter 620ms var(--nav-ease);
  will-change: opacity, filter;
}

.ambient-glow--one {
  width: 28rem;
  height: 28rem;
  top: 8%;
  left: 20%;
  background: radial-gradient(circle, rgba(130, 236, 255, 0.74), transparent 72%);
  animation: drift 18s ease-in-out infinite;
}

.ambient-glow--two {
  width: 26rem;
  height: 26rem;
  right: 18%;
  top: 14%;
  background: radial-gradient(circle, rgba(160, 255, 194, 0.74), transparent 70%);
  animation: drift 24s ease-in-out infinite reverse;
}

.ambient-glow--three {
  width: 22rem;
  height: 22rem;
  left: 40%;
  bottom: 10%;
  background: radial-gradient(circle, rgba(112, 219, 255, 0.42), transparent 72%);
  animation: drift 20s ease-in-out infinite;
}

.ambient-glow--four {
  width: 30rem;
  height: 30rem;
  left: -4%;
  bottom: -8%;
  background: radial-gradient(circle, rgba(255, 234, 189, 0.44), transparent 74%);
  animation: drift 24s ease-in-out infinite reverse;
}

.portfolio-shell {
  width: min(1220px, 100%);
  margin: 0 auto;
  padding: 0;
  display: grid;
  grid-template-columns: 252px minmax(0, 1fr) 262px;
  gap: 2.1rem;
  align-items: start;
  position: relative;
  z-index: 1;
  filter: blur(0) saturate(1);
  transition:
    transform 620ms var(--nav-ease),
    opacity 420ms ease,
    filter 520ms ease;
  transform-origin: center top;
  will-change: transform, opacity;
}

.page.is-inner-active .portfolio-shell {
  opacity: 0;
  filter: blur(0) saturate(1);
  transform: translateY(16px) scale(0.984);
  pointer-events: none;
}

body.page--home.nav-is-routing.is-inner-active .portfolio-shell {
  opacity: 0.46;
  filter: blur(11px) saturate(0.94);
  transform: translateY(10px) scale(0.99);
  transition:
    transform 680ms cubic-bezier(0.2, 0.86, 0.24, 1),
    opacity 380ms ease,
    filter 520ms ease;
}

.page.is-inner-active::before {
  opacity: 1;
  filter: blur(28px);
  transform: scale(1.075);
}

.page.is-inner-active::after {
  opacity: 0.34;
  backdrop-filter: blur(10px) saturate(0.94) grayscale(0.03);
  -webkit-backdrop-filter: blur(10px) saturate(0.94) grayscale(0.03);
}

.page.is-inner-active .ambient-glow {
  opacity: 0.62;
  filter: blur(54px);
}

body.page--home.nav-is-routing::before {
  opacity: 1;
  filter: blur(30px);
  transform: scale(1.08);
}

body.page--home.nav-is-routing::after {
  opacity: 0.38;
  backdrop-filter: blur(10px) saturate(0.94) grayscale(0.03);
  -webkit-backdrop-filter: blur(10px) saturate(0.94) grayscale(0.03);
}

body.page--home.nav-is-routing .ambient-glow {
  opacity: 0.66;
  filter: blur(56px);
}

body.page--home.nav-is-blanking::before {
  opacity: 1;
  filter: blur(40px);
  transform: scale(1.115);
  transition:
    opacity 140ms ease,
    filter 180ms cubic-bezier(0.16, 0.86, 0.24, 1),
    transform 220ms cubic-bezier(0.16, 0.86, 0.24, 1);
  transition-delay: 0ms, 0ms, 0ms;
}

body.page--home.nav-is-blanking::after {
  opacity: 0.44;
  backdrop-filter: blur(15px) saturate(0.93) grayscale(0.03);
  -webkit-backdrop-filter: blur(15px) saturate(0.93) grayscale(0.03);
  transition:
    opacity 140ms ease,
    backdrop-filter 180ms cubic-bezier(0.16, 0.86, 0.24, 1),
    -webkit-backdrop-filter 180ms cubic-bezier(0.16, 0.86, 0.24, 1);
  transition-delay: 0ms, 0ms, 0ms;
}

body.page--home.nav-is-blanking .ambient-glow {
  opacity: 0.76;
  filter: blur(72px);
  transition:
    opacity 160ms ease,
    filter 220ms cubic-bezier(0.16, 0.86, 0.24, 1);
  transition-delay: 0ms, 0ms;
}

body.page--home.nav-is-blanking.is-inner-active .portfolio-shell {
  filter: blur(13px) saturate(0.94);
  transition:
    transform 620ms var(--nav-ease),
    opacity 260ms ease,
    filter 180ms cubic-bezier(0.16, 0.86, 0.24, 1);
  transition-delay: 0ms, 0ms, 0ms;
}

.glass-panel {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  translate: 0 0;
  scale: 1;
  border-radius: var(--panel-radius);
  background:
    radial-gradient(circle at 14% 12%, rgba(255, 255, 255, 0.26), transparent 28%),
    radial-gradient(circle at 84% 88%, rgba(150, 238, 255, 0.12), transparent 30%),
    linear-gradient(140deg, var(--glass-fill-strong), var(--glass-fill));
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(28px) saturate(165%);
  -webkit-backdrop-filter: blur(28px) saturate(165%);
  box-shadow:
    0 28px 70px var(--glass-shadow),
    0 0 28px rgba(255, 255, 255, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    inset 0 -1px 0 rgba(255, 255, 255, 0.18);
  transition:
    translate var(--hover-duration-out) var(--hover-ease-out),
    scale var(--hover-duration-out) var(--hover-ease-out),
    filter 250ms var(--hover-ease-out),
    box-shadow 300ms var(--hover-ease-out),
    backdrop-filter 280ms var(--hover-ease-out),
    -webkit-backdrop-filter 280ms var(--hover-ease-out),
    border-color 260ms var(--hover-ease-out),
    background 260ms var(--hover-ease-out);
  will-change: transform, filter, box-shadow;
  transform-origin: center center;
  backface-visibility: hidden;
}

.glass-panel::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: calc(var(--panel-radius) - 1px);
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.34),
    rgba(255, 255, 255, 0.1) 35%,
    rgba(255, 255, 255, 0.05) 58%,
    rgba(255, 255, 255, 0.22)
  );
  pointer-events: none;
}

.glass-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    circle at var(--glow-x, 78%) var(--glow-y, 10%),
    rgba(255, 255, 255, 0.5),
    transparent 35%
  );
  opacity: 0;
  transition: opacity 280ms var(--hover-ease-out);
  pointer-events: none;
}

.glass-panel:hover::after,
.glass-panel:focus-within::after {
  opacity: 0.9;
}

.glass-panel:hover,
.glass-panel:focus-within {
  translate: 0 -6px;
  scale: 1.045;
  filter: brightness(1.038) contrast(1.045) saturate(1.028);
  border-color: rgba(255, 255, 255, 0.68);
  backdrop-filter: blur(22px) saturate(184%);
  -webkit-backdrop-filter: blur(22px) saturate(184%);
  box-shadow:
    0 42px 92px rgba(23, 80, 94, 0.18),
    0 0 32px rgba(255, 255, 255, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.62),
    inset 0 -1px 0 rgba(255, 255, 255, 0.18);
  transition:
    translate var(--hover-duration-in) var(--hover-ease-in),
    scale var(--hover-duration-in) var(--hover-ease-in),
    filter 220ms var(--hover-ease-in),
    box-shadow 240ms var(--hover-ease-in),
    backdrop-filter 220ms var(--hover-ease-in),
    -webkit-backdrop-filter 220ms var(--hover-ease-in),
    border-color 220ms var(--hover-ease-in),
    background 220ms var(--hover-ease-in);
  transition-delay:
    var(--hover-delay-panel),
    var(--hover-delay-panel),
    82ms,
    82ms,
    74ms,
    74ms,
    66ms,
    66ms;
}

.glass-panel:active {
  translate: 0 -7px;
  scale: 1.052;
  filter: brightness(1.045) contrast(1.05) saturate(1.036);
  box-shadow:
    0 46px 98px rgba(23, 80, 94, 0.2),
    0 0 34px rgba(175, 238, 255, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.68);
}

.float-panel {
  animation: float 9.4s ease-in-out infinite;
}

.sidebar.float-panel {
  animation-duration: 13s;
}

.gallery-card.float-panel {
  animation-duration: 10s;
  animation-delay: -2s;
}

.profile-card.float-panel {
  animation-duration: 12s;
  animation-delay: -4s;
}

.calendar-card.float-panel {
  animation-duration: 11.75s;
  animation-delay: -4.5s;
}

.social-card.float-panel:first-child {
  animation: none;
}

.social-card.float-panel:last-child {
  animation: none;
}

.clock-card.float-panel {
  animation-duration: 10.5s;
  animation-delay: -3s;
}

.widget-card.float-panel {
  animation-duration: 12.5s;
  animation-delay: -6s;
}

.sidebar,
.content-column,
.utility-column,
.gallery-card,
.profile-card,
.social-grid,
.social-card,
.clock-card,
.calendar-card,
.widget-card {
  position: relative;
  z-index: 1;
}

.sidebar {
  background:
    radial-gradient(circle at 10% 88%, rgba(255, 225, 160, 0.16), transparent 30%),
    radial-gradient(circle at 18% 72%, rgba(255, 239, 198, 0.08), transparent 24%),
    radial-gradient(circle at 14% 12%, rgba(255, 255, 255, 0.24), transparent 26%),
    radial-gradient(circle at 84% 88%, rgba(150, 238, 255, 0.1), transparent 30%),
    linear-gradient(140deg, var(--glass-fill-strong), var(--glass-fill));
  padding: 1.1rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.35rem;
  min-height: 600px;
  transition:
    min-height var(--nav-duration) var(--nav-ease),
    gap var(--nav-duration) var(--nav-ease),
    opacity 320ms ease,
    transform 420ms var(--nav-ease),
    translate var(--hover-duration-out) var(--hover-ease-out),
    scale var(--hover-duration-out) var(--hover-ease-out),
    filter 300ms var(--hover-ease-out),
    box-shadow 320ms var(--hover-ease-out),
    backdrop-filter 320ms var(--hover-ease-out),
    -webkit-backdrop-filter 320ms var(--hover-ease-out),
    border-color 280ms var(--hover-ease-out),
    background 280ms var(--hover-ease-out);
}

.sidebar:hover,
.sidebar:focus-within {
  translate: 0 -2px;
  scale: 1.008;
  filter: brightness(0.988) contrast(1.012) saturate(0.97);
  backdrop-filter: blur(24px) saturate(166%);
  -webkit-backdrop-filter: blur(24px) saturate(166%);
  box-shadow:
    0 30px 68px rgba(23, 80, 94, 0.14),
    0 0 18px rgba(255, 255, 255, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.48),
    inset 0 -1px 0 rgba(255, 255, 255, 0.14);
  transition-delay:
    112ms,
    112ms,
    92ms,
    92ms,
    84ms,
    84ms,
    76ms,
    76ms;
}

.sidebar:hover::after,
.sidebar:focus-within::after {
  opacity: 0.42;
}

.sidebar:active,
.sidebar:has(.nav-item:active) {
  translate: 0 -5px;
  scale: 1.018;
  filter: brightness(1.004) contrast(1.02) saturate(0.988);
  backdrop-filter: blur(22px) saturate(170%);
  -webkit-backdrop-filter: blur(22px) saturate(170%);
  box-shadow:
    0 34px 72px rgba(23, 80, 94, 0.16),
    0 0 18px rgba(255, 255, 255, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.52),
    inset 0 -1px 0 rgba(255, 255, 255, 0.14);
  transition:
    translate 180ms cubic-bezier(0.18, 0.82, 0.24, 1),
    scale 180ms cubic-bezier(0.18, 0.82, 0.24, 1),
    filter 200ms cubic-bezier(0.18, 0.82, 0.24, 1),
    box-shadow 220ms cubic-bezier(0.18, 0.82, 0.24, 1),
    backdrop-filter 220ms cubic-bezier(0.18, 0.82, 0.24, 1),
    -webkit-backdrop-filter 220ms cubic-bezier(0.18, 0.82, 0.24, 1),
    border-color 200ms cubic-bezier(0.18, 0.82, 0.24, 1),
    background 200ms cubic-bezier(0.18, 0.82, 0.24, 1);
}

.sidebar__brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.brand-mark {
  width: 3rem;
  height: 3rem;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.22));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    0 12px 24px rgba(88, 180, 188, 0.18);
  font-weight: 700;
  letter-spacing: 0.08em;
}

.brand-mark__image,
.avatar-core__image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  border-radius: inherit;
}

.sidebar h1,
.section-heading h2,
.profile-card h2,
.social-card h3,
.widget-copy h2 {
  margin: 0;
  letter-spacing: -0.04em;
}

.eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.nav-stack {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  transition:
    transform var(--nav-duration) var(--nav-ease),
    gap 620ms var(--nav-ease),
    padding 620ms var(--nav-ease),
    background 620ms var(--nav-ease),
    border-color 620ms var(--nav-ease),
    box-shadow 620ms var(--nav-ease),
    backdrop-filter 620ms var(--nav-ease),
    opacity 420ms ease,
    filter 420ms ease;
  will-change: transform;
  z-index: 3;
}

.nav-stack-placeholder {
  width: 100%;
  flex: 0 0 auto;
  transition:
    height 620ms var(--nav-ease),
    opacity 420ms ease;
}

.nav-stack--compact {
  position: fixed;
  top: clamp(1.15rem, 2vw, 1.85rem);
  right: clamp(1.15rem, 2.4vw, 2.1rem);
  width: auto;
  flex-direction: row;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem;
  border-radius: 999px;
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.36), rgba(255, 255, 255, 0.16));
  border: 1px solid rgba(255, 255, 255, 0.56);
  backdrop-filter: blur(26px) saturate(170%);
  -webkit-backdrop-filter: blur(26px) saturate(170%);
  box-shadow:
    0 24px 48px rgba(24, 84, 99, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.48);
  z-index: 50;
}

.nav-stack--compact::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  background: linear-gradient(
    140deg,
    rgba(255, 255, 255, 0.34),
    rgba(255, 255, 255, 0.08) 48%,
    rgba(255, 255, 255, 0.2)
  );
  pointer-events: none;
}

.nav-stack--compact .nav-item {
  min-width: 3rem;
  min-height: 3rem;
  gap: 0;
  padding: 0.4rem;
  justify-content: center;
  border-radius: 999px;
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}

.nav-stack--compact .nav-item::before {
  opacity: 0;
}

.nav-stack--compact .nav-item__content {
  width: 0;
  max-width: 0;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-10px);
}

.nav-stack--compact .nav-item__icon {
  width: 2.45rem;
  height: 2.45rem;
  border-radius: 999px;
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}

.nav-stack--compact .nav-item:focus-visible {
  transform: translateY(-1px) scale(1.02);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: none;
}

.nav-stack--compact .nav-item.is-active {
  background: rgba(255, 255, 255, 0.18);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.24),
    0 12px 24px rgba(24, 88, 106, 0.12);
}

body.nav-is-compact .sidebar {
  min-height: 420px;
  gap: 1rem;
}

.nav-item {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 0.96rem;
  padding: 0.86rem 0.92rem 0.86rem 0.84rem;
  text-decoration: none;
  color: inherit;
  translate: 0 0;
  scale: 1;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.24);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(14px) saturate(136%);
  -webkit-backdrop-filter: blur(14px) saturate(136%);
  transition:
    translate var(--hover-duration-out) var(--hover-ease-out),
    scale var(--hover-duration-out) var(--hover-ease-out),
    filter 250ms var(--hover-ease-out),
    box-shadow 280ms var(--hover-ease-out),
    background 260ms var(--hover-ease-out),
    border-color 260ms var(--hover-ease-out),
    opacity 220ms ease,
    backdrop-filter 300ms var(--hover-ease-out),
    -webkit-backdrop-filter 300ms var(--hover-ease-out);
}

.nav-item::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(145deg, rgba(150, 232, 255, 0.2), rgba(172, 255, 215, 0.12));
  opacity: 0;
  transform: scale(0.92);
  transition:
    opacity 280ms var(--hover-ease-out),
    transform 320ms var(--hover-ease-out);
  z-index: -1;
}

.nav-item:focus-visible {
  translate: 0 -4px;
  scale: 1.048;
  filter: brightness(1.04) contrast(1.05) saturate(1.02);
  background: rgba(255, 255, 255, 0.2);
  box-shadow:
    0 24px 40px rgba(42, 114, 133, 0.15),
    0 0 0 1px rgba(255, 255, 255, 0.18) inset,
    0 0 28px rgba(153, 255, 234, 0.22);
  transition:
    translate var(--hover-duration-in) var(--hover-ease-in),
    scale var(--hover-duration-in) var(--hover-ease-in),
    filter 220ms var(--hover-ease-in),
    box-shadow 240ms var(--hover-ease-in),
    background 220ms var(--hover-ease-in),
    border-color 220ms var(--hover-ease-in),
    opacity 220ms ease,
    backdrop-filter 240ms var(--hover-ease-in),
    -webkit-backdrop-filter 240ms var(--hover-ease-in);
  transition-delay:
    0ms,
    0ms,
    20ms,
    20ms,
    16ms,
    16ms,
    0ms,
    16ms,
    16ms;
  outline: none;
}

.nav-item__content {
  display: block;
  min-width: 0;
  max-width: 220px;
  overflow: hidden;
  white-space: nowrap;
  transition:
    max-width 520ms var(--nav-ease),
    opacity 360ms ease,
    transform 520ms var(--nav-ease);
}

.sidebar .nav-item {
  gap: 0.62rem;
  padding: 0.62rem 0.66rem 0.62rem 0.64rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 10px 18px rgba(28, 96, 110, 0.055);
  backdrop-filter: blur(16px) saturate(148%);
  -webkit-backdrop-filter: blur(16px) saturate(148%);
  transition:
    translate 205ms cubic-bezier(0.2, 0.76, 0.24, 1),
    scale 205ms cubic-bezier(0.2, 0.76, 0.24, 1),
    filter 210ms cubic-bezier(0.2, 0.76, 0.24, 1),
    box-shadow 220ms cubic-bezier(0.2, 0.76, 0.24, 1),
    background 210ms cubic-bezier(0.2, 0.76, 0.24, 1),
    border-color 210ms cubic-bezier(0.2, 0.76, 0.24, 1),
    opacity 180ms ease,
    backdrop-filter 210ms cubic-bezier(0.2, 0.76, 0.24, 1),
    -webkit-backdrop-filter 210ms cubic-bezier(0.2, 0.76, 0.24, 1);
}

.sidebar .nav-item__content {
  max-width: none;
  overflow: visible;
  white-space: normal;
}

.sidebar .nav-item .nav-item__icon {
  width: 3.82rem;
  height: 3.82rem;
  border-radius: 19px;
  transition:
    transform 200ms cubic-bezier(0.2, 0.76, 0.24, 1),
    opacity 180ms ease,
    background 205ms cubic-bezier(0.2, 0.76, 0.24, 1),
    border-color 205ms cubic-bezier(0.2, 0.76, 0.24, 1),
    box-shadow 220ms cubic-bezier(0.2, 0.76, 0.24, 1),
    filter 205ms cubic-bezier(0.2, 0.76, 0.24, 1),
    color 205ms cubic-bezier(0.2, 0.76, 0.24, 1);
}

.sidebar .nav-item .nav-item__icon svg {
  width: 2.42rem;
  height: 2.42rem;
}

.nav-item__icon {
  width: 4.35rem;
  height: 4.35rem;
  border-radius: 22px;
  display: grid;
  place-items: center;
  color: var(--text-primary);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.18));
  border: 1px solid rgba(255, 255, 255, 0.35);
  flex-shrink: 0;
}

.social-card__icon {
  width: 2.7rem;
  height: 2.7rem;
  border-radius: 18px;
  display: grid;
  place-items: center;
  color: var(--text-primary);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.18));
  border: 1px solid rgba(255, 255, 255, 0.35);
  flex-shrink: 0;
}

.nav-item__icon {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: rgba(20, 50, 69, 0.78);
  transition:
    transform var(--hover-duration-out) var(--hover-ease-out),
    opacity 220ms ease,
    background 250ms var(--hover-ease-out),
    border-color 250ms var(--hover-ease-out),
    box-shadow 280ms var(--hover-ease-out),
    filter 250ms var(--hover-ease-out),
    color 250ms var(--hover-ease-out);
}

.nav-item__icon svg {
  width: 2.72rem;
  height: 2.72rem;
}

.social-card__icon svg {
  width: 1.32rem;
  height: 1.32rem;
}

.nav-icon {
  position: absolute;
  inset: 0;
  margin: auto;
  transition:
    opacity 220ms ease,
    transform 240ms var(--hover-ease-out),
    filter 260ms var(--hover-ease-out);
}

.nav-icon--outline {
  opacity: 1;
  transform: scale(1);
}

.nav-icon--solid {
  opacity: 0;
  transform: scale(0.78);
  color: #79d1ff;
}

.nav-item:not(.is-active) .nav-item__icon {
  opacity: 0.96;
  transform: scale(1);
}

.nav-item:focus-visible .nav-item__icon,
.nav-item.is-active .nav-item__icon {
  color: #7bd8ff;
  transform: scale(1.06);
  background: linear-gradient(145deg, rgba(243, 252, 255, 0.9), rgba(192, 241, 255, 0.54));
  border-color: rgba(173, 233, 255, 0.74);
  box-shadow:
    0 16px 30px rgba(92, 184, 212, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.68);
  transition:
    transform var(--hover-duration-in) var(--hover-ease-in),
    opacity 220ms ease,
    background 220ms var(--hover-ease-in),
    border-color 220ms var(--hover-ease-in),
    box-shadow 240ms var(--hover-ease-in),
    filter 220ms var(--hover-ease-in),
    color 220ms var(--hover-ease-in);
}

.sidebar .nav-item:hover,
.sidebar .nav-item:focus-visible,
.sidebar .nav-item.is-active {
  translate: 0 -3px;
  scale: 1.032;
  filter: brightness(1.03) contrast(1.042) saturate(1.028);
  background: linear-gradient(145deg, rgba(248, 253, 255, 0.22), rgba(204, 243, 255, 0.13));
  border-color: rgba(196, 238, 255, 0.74);
  backdrop-filter: blur(13px) saturate(188%);
  -webkit-backdrop-filter: blur(13px) saturate(188%);
  box-shadow:
    0 18px 30px rgba(44, 124, 145, 0.125),
    0 0 18px rgba(162, 245, 255, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.66),
    inset 0 -1px 0 rgba(255, 255, 255, 0.14);
}

.sidebar .nav-item:hover .nav-item__icon,
.sidebar .nav-item:focus-visible .nav-item__icon,
.sidebar .nav-item.is-active .nav-item__icon {
  transform: scale(1.055);
  background: linear-gradient(145deg, rgba(248, 253, 255, 0.94), rgba(196, 240, 255, 0.56));
  border-color: rgba(183, 235, 255, 0.74);
  box-shadow:
    0 14px 24px rgba(88, 184, 212, 0.18),
    0 0 12px rgba(183, 240, 255, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.sidebar .nav-item:hover .nav-icon--outline {
  opacity: 0;
  transform: scale(0.82);
}

.sidebar .nav-item:hover .nav-icon--solid {
  opacity: 1;
  transform: scale(1.06);
  filter: drop-shadow(0 0 10px rgba(123, 210, 255, 0.32));
}

.nav-item:focus-visible .nav-icon--outline,
.nav-item.is-active .nav-icon--outline {
  opacity: 0;
  transform: scale(0.82);
}

.nav-item:focus-visible .nav-icon--solid,
.nav-item.is-active .nav-icon--solid {
  opacity: 1;
  transform: scale(1.06);
  filter: drop-shadow(0 0 10px rgba(123, 210, 255, 0.38));
}

.nav-item.is-active {
  translate: 0 -3px;
  scale: 1.028;
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.38);
  box-shadow:
    0 18px 34px rgba(42, 114, 133, 0.12),
    0 0 0 1px rgba(255, 255, 255, 0.22) inset;
}

.nav-item.is-active::before {
  opacity: 1;
  transform: scale(1);
}

.nav-item.is-active .nav-item__icon {
  opacity: 1;
  transform: scale(1.08);
  background: linear-gradient(145deg, rgba(238, 252, 255, 0.86), rgba(194, 240, 255, 0.58));
  border-color: rgba(169, 231, 255, 0.74);
  box-shadow:
    0 10px 24px rgba(87, 182, 217, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.nav-item.is-active .nav-icon--outline {
  opacity: 0;
  transform: scale(0.8);
}

.nav-item.is-active .nav-icon--solid {
  opacity: 1;
  transform: scale(1.1);
  filter: drop-shadow(0 0 10px rgba(123, 210, 255, 0.4));
}

.nav-item.is-active strong,
.nav-item.is-active small {
  color: var(--text-primary);
}

.page--home.nav-is-routing .nav-item:not(.is-active) {
  opacity: 0.45;
  transform: scale(0.96);
}

.page--home.nav-is-routing .nav-item.is-active {
  transform: translateY(-2px) scale(1.02);
}

.page--home.nav-is-routing .sidebar__footer,
.page--home.nav-is-routing .sidebar__brand {
  opacity: 0.72;
  transition: opacity 260ms ease;
}

.compact-nav {
  position: fixed;
  top: clamp(1.2rem, 2vw, 2rem);
  left: clamp(1.2rem, 2.4vw, 2.1rem);
  display: inline-flex;
  align-items: center;
  overflow: hidden;
  gap: 0.55rem;
  padding: 0.5rem 0.7rem 0.5rem 0.5rem;
  translate: 0 0;
  scale: 1;
  border-radius: 999px;
  z-index: 80;
  opacity: 0;
  transition:
    translate var(--hover-duration-out) var(--hover-ease-out),
    scale var(--hover-duration-out) var(--hover-ease-out),
    opacity 320ms ease,
    box-shadow 280ms var(--hover-ease-out),
    backdrop-filter 280ms var(--hover-ease-out),
    -webkit-backdrop-filter 280ms var(--hover-ease-out);
  will-change: transform, opacity;
  transform-origin: top left;
  backface-visibility: hidden;
  contain: paint;
}

body.page--home.nav-is-routing.is-inner-active .compact-nav:not(.is-morphing),
body.page--home.nav-is-blanking.is-inner-active .compact-nav {
  opacity: 0;
  pointer-events: none;
  transition: none;
}

.compact-nav.is-morphing {
  pointer-events: none;
  translate: 0 0;
  scale: 1;
  backdrop-filter: blur(14px) saturate(142%);
  -webkit-backdrop-filter: blur(14px) saturate(142%);
  box-shadow:
    0 20px 34px rgba(24, 88, 106, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.42);
}

.compact-nav.is-morphing .compact-nav__avatar,
.compact-nav.is-morphing .compact-nav__list {
  opacity: 0;
}

.compact-nav.is-morphing.is-content-visible .compact-nav__avatar,
.compact-nav.is-morphing.is-content-visible .compact-nav__list {
  opacity: 1;
}

.page.is-inner-active .compact-nav {
  opacity: 1;
}

.compact-nav:hover,
.compact-nav:focus-within {
  translate: 0 -3px;
  scale: 1.012;
  box-shadow:
    0 28px 42px rgba(24, 88, 106, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
  transition:
    translate var(--hover-duration-in) var(--hover-ease-in),
    scale var(--hover-duration-in) var(--hover-ease-in),
    opacity 220ms ease,
    box-shadow 240ms var(--hover-ease-in),
    backdrop-filter 220ms var(--hover-ease-in),
    -webkit-backdrop-filter 220ms var(--hover-ease-in);
  transition-delay:
    102ms,
    102ms,
    82ms,
    76ms,
    76ms,
    76ms;
}

.compact-nav__avatar {
  appearance: none;
  width: 3rem;
  height: 3rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.48);
  text-decoration: none;
  cursor: pointer;
  translate: 0 0;
  scale: 1;
  color: rgba(11, 53, 63, 0.74);
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.08em;
  background:
    radial-gradient(circle at 30% 26%, rgba(255, 255, 255, 0.92), transparent 24%),
    linear-gradient(145deg, rgba(110, 215, 255, 0.9), rgba(153, 255, 214, 0.82));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    0 16px 28px rgba(60, 154, 177, 0.16);
  transition:
    translate var(--hover-duration-out) var(--hover-ease-out),
    scale var(--hover-duration-out) var(--hover-ease-out),
    filter 250ms var(--hover-ease-out),
    box-shadow 280ms var(--hover-ease-out),
    opacity 220ms ease;
}

.compact-nav__avatar:hover,
.compact-nav__avatar:focus-visible {
  translate: 0 -3px;
  scale: 1.05;
  filter: brightness(1.032) contrast(1.04);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.76),
    0 24px 38px rgba(60, 154, 177, 0.22);
  transition:
    translate var(--hover-duration-in) var(--hover-ease-in),
    scale var(--hover-duration-in) var(--hover-ease-in),
    filter 220ms var(--hover-ease-in),
    box-shadow 240ms var(--hover-ease-in),
    opacity 220ms ease;
  transition-delay:
    98ms,
    98ms,
    78ms,
    78ms,
    72ms;
  outline: none;
}

.compact-nav__list {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  transition:
    opacity 180ms ease;
}

.compact-nav .nav-item {
  min-width: 4.34rem;
  min-height: 4.34rem;
  gap: 0;
  padding: 0.35rem;
  justify-content: center;
  translate: 0 0;
  scale: 1;
  border-radius: 999px;
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}

.compact-nav .nav-item::before {
  opacity: 0;
}

.compact-nav .nav-item__content {
  width: 0;
  max-width: 0;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-10px);
}

.compact-nav .nav-item__icon {
  width: 4rem;
  height: 4rem;
  border-radius: 999px;
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}

.compact-nav .nav-item__icon svg {
  width: 2.78rem;
  height: 2.78rem;
}

.compact-nav .nav-item:focus-visible {
  translate: 0 -3px;
  scale: 1.05;
  filter: brightness(1.04) contrast(1.05) saturate(1.02);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: none;
  transition:
    translate var(--hover-duration-in) var(--hover-ease-in),
    scale var(--hover-duration-in) var(--hover-ease-in),
    filter 220ms var(--hover-ease-in),
    box-shadow 240ms var(--hover-ease-in),
    background 220ms var(--hover-ease-in),
    border-color 220ms var(--hover-ease-in),
    opacity 220ms ease;
  transition-delay:
    0ms,
    0ms,
    18ms,
    18ms,
    12ms,
    12ms,
    0ms;
}

.compact-nav .nav-item:not(.is-active) .nav-item__icon {
  opacity: 0.92;
  transform: scale(1);
}

.compact-nav .nav-item:focus-visible .nav-item__icon,
.compact-nav .nav-item.is-active .nav-item__icon {
  transform: scale(1.08);
}

.compact-nav .nav-item:focus-visible .nav-icon--solid,
.compact-nav .nav-item.is-active .nav-icon--solid {
  transform: scale(1.08);
}

.compact-nav .nav-item.is-active {
  translate: 0 -2px;
  scale: 1.032;
  background: rgba(255, 255, 255, 0.16);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 10px 22px rgba(24, 88, 106, 0.1);
}

.compact-nav .nav-item.is-active .nav-item__icon {
  transform: scale(1.1);
}

.compact-nav .nav-item.is-active .nav-icon--solid {
  transform: scale(1.14);
}

.section-layer {
  position: fixed;
  inset: 0;
  z-index: 30;
  padding: var(--outer-space);
  overflow-y: auto;
  opacity: 0;
  pointer-events: none;
  transform: translateY(24px);
  transition:
    opacity 360ms ease,
    transform 620ms var(--nav-ease);
}

.section-layer::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 14%, rgba(255, 255, 255, 0.22), transparent 20%),
    radial-gradient(circle at 48% 30%, rgba(200, 244, 255, 0.16), transparent 30%);
  pointer-events: none;
}

.section-shell {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
  transition:
    opacity 300ms ease 16ms,
    transform 560ms var(--nav-ease),
    filter 260ms ease;
}

.page.is-inner-active .section-layer {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

body.page--home.nav-is-blanking.is-inner-active .section-shell {
  opacity: 0;
  transform: translateY(14px) scale(0.992);
  filter: blur(8px);
  transition:
    opacity 170ms ease,
    transform 280ms cubic-bezier(0.2, 0.82, 0.24, 1),
    filter 220ms ease;
}

body.interactions-paused .portfolio-shell,
body.interactions-paused .section-layer,
body.interactions-paused .compact-nav {
  pointer-events: none;
}

.section-shell {
  position: relative;
  z-index: 1;
  padding-top: clamp(5rem, 8vw, 6.4rem);
}

.section-view-stack {
  display: grid;
  min-height: min(640px, calc(100vh - clamp(9.5rem, 14vw, 11rem)));
}

.section-view {
  grid-area: 1 / 1;
  display: grid;
  gap: 2rem;
  opacity: 0;
  transform: translateY(28px) scale(0.985);
  pointer-events: none;
  transition:
    opacity 260ms ease,
    transform 620ms var(--nav-ease);
}

.section-view.is-active {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.template-shell {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.template-stage {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.template-card {
  min-height: 300px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.template-card h1 {
  margin: 0;
  font-size: clamp(2.1rem, 4vw, 3.4rem);
  letter-spacing: -0.06em;
  line-height: 1.02;
}

.template-card p {
  max-width: 36rem;
  margin: 0.95rem 0 0;
  font-size: 0.98rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

.template-card--ghost {
  min-height: 160px;
  justify-content: center;
}

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

.nav-item strong {
  display: block;
  font-size: 0.76rem;
  line-height: 1.14;
  letter-spacing: -0.012em;
}

.sidebar .nav-item strong {
  max-width: none;
  font-size: 0.84rem;
}

.nav-item small {
  display: block;
  margin-top: 0.12rem;
  font-size: 0.6rem;
  color: var(--text-secondary);
}

.sidebar .nav-item small {
  display: none;
}

.sidebar__footer {
  padding: 0.55rem 0.1rem 0.1rem;
}

.sidebar__footer p {
  margin: 0.72rem 0 0;
  font-size: 0.78rem;
  line-height: 1.55;
  color: var(--text-secondary);
}

.status-pill,
.capsule,
.profile-tags span,
.widget-tags span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2rem;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.24);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-secondary);
  translate: 0 0;
  scale: 1;
  transition:
    translate var(--hover-duration-out) var(--hover-ease-out),
    scale var(--hover-duration-out) var(--hover-ease-out),
    filter 250ms var(--hover-ease-out),
    box-shadow 280ms var(--hover-ease-out),
    background 250ms var(--hover-ease-out),
    border-color 250ms var(--hover-ease-out);
}

.status-pill:hover,
.capsule:hover,
.profile-tags span:hover,
.widget-tags span:hover {
  translate: 0 -2px;
  scale: 1.04;
  filter: brightness(1.03) contrast(1.04);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.42),
    0 14px 24px rgba(55, 149, 163, 0.16);
  transition:
    translate var(--hover-duration-in) var(--hover-ease-in),
    scale var(--hover-duration-in) var(--hover-ease-in),
    filter 220ms var(--hover-ease-in),
    box-shadow 240ms var(--hover-ease-in),
    background 220ms var(--hover-ease-in),
    border-color 220ms var(--hover-ease-in);
  transition-delay:
    86ms,
    86ms,
    68ms,
    68ms,
    64ms,
    64ms;
}

.content-column,
.utility-column {
  display: flex;
  flex-direction: column;
  gap: 1.55rem;
  min-height: 0;
}

.gallery-card {
  margin-top: -0.22rem;
  padding: 1.18rem 1.24rem 1.08rem;
  min-height: 186px;
}

.section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.gallery-collage {
  position: relative;
  min-height: 124px;
  margin-top: 0.68rem;
}

.gallery-shot {
  position: absolute;
  margin: 0;
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.46);
  box-shadow:
    0 22px 40px rgba(28, 97, 113, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transform-origin: center;
  transition:
    transform var(--hover-duration-out) var(--hover-ease-out),
    box-shadow 300ms var(--hover-ease-out),
    filter 260ms var(--hover-ease-out);
}

.gallery-shot::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.15), transparent 30%, rgba(10, 36, 42, 0.12));
  pointer-events: none;
}

.gallery-shot:hover {
  transform: translateY(-12px) scale(1.035) rotate(0deg);
  box-shadow: 0 32px 58px rgba(28, 97, 113, 0.24);
  filter: brightness(1.035) contrast(1.03);
  transition:
    transform var(--hover-duration-in) var(--hover-ease-in),
    box-shadow 240ms var(--hover-ease-in),
    filter 220ms var(--hover-ease-in);
  transition-delay:
    82ms,
    72ms,
    72ms;
}

.gallery-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(1.08) contrast(0.94);
}

.gallery-shot--one {
  left: 2%;
  top: 20%;
  width: 33%;
  height: 66%;
  transform: rotate(-8deg);
}

.gallery-shot--two {
  left: 28%;
  top: 0;
  width: 38%;
  height: 52%;
  transform: rotate(5deg);
}

.gallery-shot--three {
  right: 2%;
  top: 12%;
  width: 29%;
  height: 66%;
  transform: rotate(8deg);
}

.gallery-shot--four {
  left: 38%;
  bottom: 0;
  width: 24%;
  height: 34%;
  transform: rotate(-4deg);
}

.profile-card {
  margin-top: -0.2rem;
  min-height: 246px;
  padding: 1.24rem 1.36rem 1.28rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.72rem;
}

.avatar-shell {
  position: relative;
  margin-bottom: 0.2rem;
}

.avatar-shell::before,
.avatar-shell::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
}

.avatar-shell::before {
  width: 8.8rem;
  height: 8.8rem;
  background: radial-gradient(circle, rgba(132, 226, 255, 0.3), transparent 62%);
  filter: blur(12px);
}

.avatar-shell::after {
  width: 7.3rem;
  height: 7.3rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.avatar-ring {
  width: 7.1rem;
  height: 7.1rem;
  border-radius: 50%;
  padding: 0.38rem;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.14));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 24px 40px rgba(55, 149, 163, 0.2);
}

.avatar-core {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: grid;
  place-items: stretch;
  overflow: hidden;
  background:
    radial-gradient(circle at 30% 24%, rgba(255, 255, 255, 0.9), transparent 24%),
    linear-gradient(150deg, rgba(110, 215, 255, 0.9), rgba(141, 255, 202, 0.84));
  color: rgba(11, 53, 63, 0.72);
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.08em;
}

.avatar-core__image {
  filter: saturate(0.94) contrast(1.02);
}

.profile-card h2 {
  max-width: 20ch;
  margin: 0;
  font-size: clamp(1.12rem, 1.55vw, 1.45rem);
  line-height: 1.16;
}

.profile-typing {
  min-height: 4.9rem;
  max-width: 17ch;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.08em;
  font-family:
    "Manrope",
    "PingFang SC",
    "Hiragino Sans",
    "Apple SD Gothic Neo",
    "Noto Sans CJK SC",
    "Noto Sans JP",
    "Noto Sans KR",
    sans-serif;
  font-size: clamp(1.28rem, 2.05vw, 1.82rem);
  font-weight: 500;
  line-height: 1.26;
  letter-spacing: -0.015em;
  color: rgba(17, 52, 66, 0.94);
}

#typing-text {
  display: inline;
  opacity: 1;
  filter: blur(0);
  transition:
    opacity 340ms cubic-bezier(0.18, 0.78, 0.24, 1),
    filter 420ms cubic-bezier(0.18, 0.78, 0.24, 1);
}

.typing-caret {
  width: 1px;
  height: 0.98em;
  margin-left: 0.04em;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(118, 209, 255, 0.95), rgba(157, 255, 215, 0.72));
  box-shadow: 0 0 12px rgba(134, 220, 255, 0.32);
  animation: caretBlink 1.08s ease-in-out infinite;
}

.profile-copy {
  margin: 0;
  max-width: 42ch;
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--text-secondary);
}

.profile-tags,
.widget-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem;
}

.profile-tags {
  max-width: 100%;
}

.profile-tags span {
  min-height: 1.6rem;
  padding: 0.3rem 0.6rem;
  font-size: 0.62rem;
}

.social-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.35rem;
  align-items: stretch;
  animation: float 10.6s ease-in-out infinite;
  animation-delay: -2.2s;
}

.social-grid > .social-card.float-panel {
  animation: none;
}

.social-card {
  padding: 0.9rem 1rem;
  min-height: 92px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.95rem;
  appearance: none;
  font: inherit;
  text-align: left;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  translate: 0 0;
  scale: 1;
  transition:
    translate var(--hover-duration-out) var(--hover-ease-out),
    scale var(--hover-duration-out) var(--hover-ease-out),
    filter 250ms var(--hover-ease-out),
    box-shadow 300ms var(--hover-ease-out),
    border-color 260ms var(--hover-ease-out),
    backdrop-filter 280ms var(--hover-ease-out),
    -webkit-backdrop-filter 280ms var(--hover-ease-out);
}

.social-card:hover,
.social-card:focus-visible {
  translate: 0 -5px;
  scale: 1.045;
  filter: brightness(1.034) contrast(1.04);
  box-shadow:
    0 30px 48px rgba(28, 97, 113, 0.18),
    0 0 30px rgba(255, 255, 255, 0.14);
  transition:
    translate var(--hover-duration-in) var(--hover-ease-in),
    scale var(--hover-duration-in) var(--hover-ease-in),
    filter 220ms var(--hover-ease-in),
    box-shadow 240ms var(--hover-ease-in),
    border-color 220ms var(--hover-ease-in),
    backdrop-filter 220ms var(--hover-ease-in),
    -webkit-backdrop-filter 220ms var(--hover-ease-in);
  transition-delay:
    88ms,
    88ms,
    70ms,
    70ms,
    64ms,
    64ms,
    64ms;
  outline: none;
}

.social-card--linkedin {
  border-color: rgba(10, 102, 194, 0.18);
}

.social-card--linkedin .social-card__icon {
  color: #0a66c2;
}

.social-card--github {
  border-color: rgba(17, 24, 39, 0.14);
}

.social-card--github .social-card__icon {
  color: #111827;
}

.social-card--email {
  border-color: rgba(77, 146, 164, 0.18);
}

.social-card--email .social-card__icon {
  color: #317d90;
}

.social-card h3 {
  font-size: 1.2rem;
}

.social-card__content {
  min-width: 0;
  display: flex;
  align-items: center;
}

.toast-stack {
  position: fixed;
  left: clamp(1rem, 2vw, 1.75rem);
  bottom: clamp(1rem, 2vw, 1.75rem);
  z-index: 80;
  pointer-events: none;
}

.glass-toast {
  min-width: min(280px, calc(100vw - 2rem));
  padding: 0.95rem 1.15rem;
  border-radius: 22px;
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.32), transparent 30%),
    linear-gradient(140deg, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0.16));
  border: 1px solid rgba(255, 255, 255, 0.54);
  box-shadow:
    0 24px 54px rgba(23, 80, 94, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.58);
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  font-size: 0.84rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  opacity: 0;
  transform: translate3d(0, 18px, 0) scale(0.96);
  filter: blur(8px);
  visibility: hidden;
  transition:
    opacity 280ms var(--hover-ease-out),
    transform 340ms var(--nav-ease),
    filter 340ms var(--nav-ease),
    visibility 0ms linear 340ms;
}

.glass-toast.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
  filter: blur(0);
  visibility: visible;
  transition:
    opacity 280ms var(--hover-ease-in),
    transform 340ms var(--nav-ease),
    filter 340ms var(--nav-ease),
    visibility 0ms linear 0ms;
}

.clock-card,
.calendar-card,
.widget-card {
  padding: 1.15rem;
}

.clock-card {
  min-height: 126px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.clock-display {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  font-weight: 700;
  letter-spacing: -0.08em;
  line-height: 0.95;
}

.clock-zone {
  margin: 0;
  font-size: 0.76rem;
  color: var(--text-secondary);
}

.calendar-card {
  min-height: 192px;
  display: flex;
  flex-direction: column;
  gap: 0.62rem;
}

.calendar-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem;
}

.calendar-header h2 {
  margin: 0;
  font-size: 0.9rem;
  letter-spacing: -0.04em;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.32rem;
}

.calendar-grid--labels span {
  font-size: 0.56rem;
  font-weight: 600;
  text-align: center;
  color: var(--text-muted);
  text-transform: uppercase;
}

.calendar-day {
  min-height: 1.48rem;
  display: grid;
  place-items: center;
  border-radius: 12px;
  font-size: 0.64rem;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.calendar-day--muted {
  opacity: 0.42;
}

.calendar-day--today {
  color: var(--text-primary);
  font-weight: 700;
  background: linear-gradient(145deg, rgba(172, 245, 255, 0.62), rgba(174, 255, 211, 0.44));
  border-color: rgba(255, 255, 255, 0.46);
  box-shadow:
    0 8px 18px rgba(89, 168, 176, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.42);
}

.widget-card {
  min-height: 152px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 0.8rem;
}

.widget-orb {
  position: relative;
  min-height: 88px;
  display: grid;
  place-items: center;
}

.widget-orb__ring,
.widget-orb__sphere {
  position: absolute;
  border-radius: 50%;
}

.widget-orb__ring {
  width: 8rem;
  height: 8rem;
  border: 1px solid rgba(255, 255, 255, 0.48);
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.16), transparent 62%),
    linear-gradient(140deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.02));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.6),
    0 0 40px rgba(121, 238, 255, 0.18);
  animation: haloPulse 7s ease-in-out infinite;
}

.widget-orb__sphere {
  width: 5.5rem;
  height: 5.5rem;
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.95), transparent 26%),
    conic-gradient(from 180deg, #6edfff, #99ffd6, #84d8ff, #6edfff);
  box-shadow:
    inset 0 2px 8px rgba(255, 255, 255, 0.4),
    0 30px 50px rgba(40, 124, 140, 0.28);
  animation:
    orbFloat 9s ease-in-out infinite,
    orbSpin 15s linear infinite;
}

.widget-copy p {
  margin: 0.35rem 0 0;
  line-height: 1.5;
  font-size: 0.74rem;
  color: var(--text-secondary);
}

.widget-copy h2 {
  font-size: 1rem;
}

.widget-tags {
  gap: 0.45rem;
}

.widget-tags span {
  min-height: 1.5rem;
  padding: 0.28rem 0.58rem;
  font-size: 0.6rem;
}

@keyframes drift {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(18px, -22px, 0) scale(1.05);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(0, -14px, 0) scale(1.012);
  }
}

@keyframes caretBlink {
  0%,
  46%,
  100% {
    opacity: 1;
  }
  54%,
  92% {
    opacity: 0.18;
  }
}

@keyframes haloPulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.85;
  }
  50% {
    transform: scale(1.05);
    opacity: 1;
  }
}

@keyframes orbFloat {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-10px) scale(1.02);
  }
}

@keyframes orbSpin {
  from {
    rotate: 0deg;
  }
  to {
    rotate: 360deg;
  }
}

@media (max-width: 1160px) {
  .portfolio-shell {
    gap: 1.6rem;
    grid-template-columns: minmax(0, 1fr) 300px;
  }

  .sidebar {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: center;
    gap: 1rem;
    min-height: unset;
  }

  .nav-stack {
    flex: 1;
    flex-direction: row;
    flex-wrap: wrap;
  }

  .nav-item {
    min-width: 220px;
    flex: 1 1 220px;
  }

  .sidebar__footer {
    max-width: 260px;
    padding-top: 0;
  }

  .content-column {
    min-width: 0;
  }
}

@media (max-width: 840px) {
  body {
    padding: 1.5rem;
  }

  .section-layer {
    padding: 1.5rem;
  }

  .section-shell {
    padding-top: 5.25rem;
  }

  .portfolio-shell {
    gap: 1.4rem;
    grid-template-columns: 1fr;
  }

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

  .sidebar {
    flex-direction: column;
    align-items: stretch;
  }

  .nav-stack {
    flex-direction: column;
  }

  .utility-column {
    order: 3;
  }

  .social-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .gallery-card,
  .profile-card,
  .calendar-card,
  .widget-card {
    min-height: unset;
  }

  .compact-nav {
    left: 1rem;
    right: 1rem;
    width: auto;
    justify-content: flex-start;
  }

  .section-view-stack {
    min-height: auto;
  }

  .template-card {
    min-height: 240px;
    padding: 1.4rem;
  }

  .template-grid {
    grid-template-columns: 1fr;
    gap: 1.4rem;
  }
}

@media (max-width: 640px) {
  body {
    padding: 0.9rem;
  }

  .section-layer {
    padding: 0.9rem;
  }

  .portfolio-shell {
    gap: 1.2rem;
  }

  .sidebar,
  .gallery-card,
  .profile-card,
  .social-card,
  .clock-card,
  .calendar-card,
  .widget-card,
  .template-card,
  .template-card--ghost {
    padding: 1.1rem;
    border-radius: 26px;
  }

  .gallery-collage {
    min-height: 320px;
  }

  .gallery-shot--one {
    left: 2%;
    top: 18%;
    width: 42%;
    height: 50%;
  }

  .gallery-shot--two {
    left: 24%;
    top: 2%;
    width: 49%;
    height: 42%;
  }

  .gallery-shot--three {
    right: 0;
    top: 24%;
    width: 38%;
    height: 52%;
  }

  .gallery-shot--four {
    left: 34%;
    bottom: 8%;
    width: 34%;
    height: 28%;
  }

  .profile-card h2 {
    max-width: 14ch;
  }

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

  .glass-toast {
    min-width: min(100vw - 1.8rem, 320px);
  }

  .calendar-grid {
    gap: 0.3rem;
  }

  .calendar-day {
    min-height: 1.65rem;
    font-size: 0.68rem;
  }

  .widget-orb {
    min-height: 180px;
  }

  .compact-nav {
    gap: 0.3rem;
    padding: 0.4rem 0.45rem 0.4rem 0.4rem;
  }

  .compact-nav__avatar {
    width: 2.6rem;
    height: 2.6rem;
    font-size: 1rem;
  }

  .compact-nav .nav-item {
    min-width: 3.55rem;
    min-height: 3.55rem;
  }

  .compact-nav .nav-item__icon {
    width: 3.28rem;
    height: 3.28rem;
  }

  .compact-nav .nav-item__icon svg {
    width: 2.3rem;
    height: 2.3rem;
  }

  .section-view {
    gap: 1.2rem;
  }

  .template-card h1 {
    font-size: 1.95rem;
  }
}

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

  .ambient-glow,
  .float-panel,
  .social-grid,
  .widget-orb__ring,
  .widget-orb__sphere,
  .typing-caret {
    animation: none;
  }

  .nav-stack,
  .glass-panel,
  .nav-item,
  .nav-item__icon,
  .nav-item__content,
  .nav-icon,
  .compact-nav,
  .compact-nav__avatar,
  .social-card,
  .gallery-shot,
  #typing-text,
  .status-pill,
  .capsule,
  .profile-tags span,
  .widget-tags span,
  .glass-panel::after,
  .glass-toast {
    transition: none;
  }
}
