:root {
  --ink: #12324a;
  --muted: #58758d;
  --line: rgba(122, 173, 213, 0.36);
  --paper: #f2faff;
  --white: #ffffff;
  --blue: #2f8ee8;
  --blue-deep: #17639f;
  --green: #27b58f;
  --rose: #ff7f9d;
  --peach: #ffd0b6;
  --shadow: 0 18px 54px rgba(44, 120, 176, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 14% 12%, rgba(255, 208, 182, 0.8), transparent 24rem),
    radial-gradient(circle at 88% 12%, rgba(142, 213, 255, 0.86), transparent 28rem),
    linear-gradient(180deg, #dcf3ff 0%, #fbfdff 44%, #f2faff 100%);
  line-height: 1.55;
  min-height: 100vh;
  overflow-x: hidden;
  animation: sky-shift 18s ease-in-out infinite alternate;
}

a {
  color: inherit;
}

.sky {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.sky::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.42) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.42) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, black, transparent 78%);
}

.cloud {
  position: absolute;
  width: 230px;
  height: 74px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 18px 54px rgba(102, 164, 214, 0.16);
  animation: drift 24s ease-in-out infinite alternate, float-soft 7s ease-in-out infinite;
}

.cloud::before,
.cloud::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: inherit;
}

.cloud::before {
  width: 94px;
  height: 94px;
  left: 38px;
  bottom: 20px;
}

.cloud::after {
  width: 126px;
  height: 126px;
  right: 24px;
  bottom: 10px;
}

.cloud-one {
  top: 120px;
  left: -90px;
}

.cloud-two {
  width: 285px;
  top: 42%;
  right: -120px;
  animation-duration: 29s;
}

.cloud-three {
  width: 180px;
  bottom: 140px;
  left: 56%;
  opacity: 0.58;
  animation-duration: 34s;
}

@keyframes drift {
  from {
    translate: -12px 0;
  }

  to {
    translate: 54px 0;
  }
}

@keyframes float-soft {
  0%,
  100% {
    scale: 1;
  }

  50% {
    scale: 1.04;
  }
}

@keyframes sky-shift {
  from {
    background-position: 0 0, 0 0, 0 0;
  }

  to {
    background-position: 18px -24px, -28px 18px, 0 0;
  }
}

.site-header,
main,
footer {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  position: relative;
  z-index: 2;
}

.brand {
  color: var(--ink);
  text-decoration: none;
  font-weight: 900;
  font-size: 1rem;
  transition: color 180ms ease, transform 180ms ease;
}

.brand:hover {
  color: var(--blue-deep);
  transform: translateY(-1px);
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-weight: 700;
  color: var(--muted);
}

nav a {
  text-decoration: none;
  transition: color 180ms ease, transform 180ms ease;
}

nav a:hover {
  color: var(--blue-deep);
  transform: translateY(-1px);
}

.intro {
  min-height: calc(100vh - 78px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 54px;
  align-items: center;
  padding: 44px 0 70px;
}

.role,
.section-kicker,
.tag {
  margin: 0;
  color: var(--blue-deep);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 12px 0 0;
  font-size: clamp(3.1rem, 9vw, 7.2rem);
  line-height: 0.9;
  letter-spacing: 0;
  color: #0f3148;
}

.summary {
  max-width: 720px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
}

.contact-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.contact-row a,
.contact-row span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.64);
  color: var(--ink);
  text-decoration: none;
  font-weight: 800;
  font-size: 0.9rem;
  backdrop-filter: blur(14px);
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.contact-row a:hover,
.contact-row span:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 14px 28px rgba(44, 120, 176, 0.14);
}

.profile-visual {
  border-radius: 8px;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 22% 18%, rgba(47, 142, 232, 0.22), transparent 28%),
    radial-gradient(circle at 80% 22%, rgba(255, 208, 182, 0.72), transparent 30%),
    rgba(255, 255, 255, 0.62);
  box-shadow: var(--shadow);
  padding: 22px;
  backdrop-filter: blur(18px);
  transform: perspective(1200px) rotateY(-4deg) rotateX(2deg);
  animation: card-hover 5.8s ease-in-out infinite;
}

.portrait-mark {
  aspect-ratio: 1;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(18, 50, 74, 0.92), rgba(23, 99, 159, 0.88)),
    linear-gradient(180deg, var(--blue), var(--green));
  font-size: clamp(4rem, 10vw, 7.5rem);
  font-weight: 900;
  letter-spacing: 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24);
  animation: portrait-glow 4.2s ease-in-out infinite;
}

.weather-strip {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.weather-strip span {
  display: block;
  color: var(--blue-deep);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.weather-strip strong {
  display: block;
  margin-top: 4px;
}

.signal-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.signal-list div {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 54px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  transition: transform 180ms ease, background 180ms ease;
}

.signal-list div:hover {
  transform: translateX(4px);
  background: rgba(255, 255, 255, 0.9);
}

.signal-list span {
  color: var(--blue-deep);
  font-weight: 900;
}

.section {
  padding: 70px 0;
  border-top: 1px solid var(--line);
}

.split {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 48px;
  align-items: start;
}

.split h2,
.section-heading h2 {
  margin: 8px 0 0;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.05;
  letter-spacing: 0;
}

.split > p {
  margin: 0;
  color: var(--muted);
  font-size: 1.1rem;
}

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

.skill-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.skill {
  min-height: 172px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.7);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 10px 28px rgba(24, 33, 51, 0.06);
  backdrop-filter: blur(14px);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.skill:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.skill span {
  color: var(--green);
  font-weight: 900;
  font-size: 0.8rem;
}

.skill strong {
  font-size: 1.05rem;
  line-height: 1.25;
}

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

.process-grid div {
  min-height: 210px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.66);
  box-shadow: 0 10px 28px rgba(24, 33, 51, 0.06);
  backdrop-filter: blur(14px);
  transition: transform 220ms ease, box-shadow 220ms ease, background 220ms ease;
}

.process-grid div:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.84);
  box-shadow: var(--shadow);
}

.process-grid span {
  color: var(--blue-deep);
  font-weight: 900;
}

.process-grid strong {
  display: block;
  margin-top: 28px;
  font-size: 1.4rem;
}

.process-grid p {
  margin: 10px 0 0;
  color: var(--muted);
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: -4px 0 18px;
}

.filter-bar button {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.66);
  color: var(--blue-deep);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  backdrop-filter: blur(12px);
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.filter-bar button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(44, 120, 176, 0.14);
}

.filter-bar button.active {
  color: var(--white);
  border-color: transparent;
  background: linear-gradient(135deg, var(--blue-deep), var(--blue));
  animation: active-pop 240ms ease;
}

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

.project {
  min-height: 220px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 10px 28px rgba(24, 33, 51, 0.06);
  backdrop-filter: blur(14px);
  transition:
    opacity 180ms ease,
    transform 220ms ease,
    box-shadow 180ms ease;
}

.project:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.project-hidden {
  opacity: 0;
  transform: translateY(10px) scale(0.98);
  pointer-events: none;
}

.project.featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 0.45fr 1fr;
  gap: 28px;
  background:
    radial-gradient(circle at 16% 18%, rgba(255, 208, 182, 0.22), transparent 18rem),
    linear-gradient(135deg, #12324a, #17639f 62%, #2f8ee8);
  color: var(--white);
}

.project h3 {
  margin: 8px 0 0;
  font-size: 1.6rem;
  line-height: 1.1;
}

.project p:not(.tag),
.project li {
  color: var(--muted);
}

.project.featured li {
  color: #d7deea;
}

.project ul {
  margin: 0;
  padding-left: 19px;
}

.project li + li {
  margin-top: 8px;
}

footer {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-weight: 700;
}

footer a {
  color: var(--ink);
}

[hidden] {
  display: none !important;
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 640ms ease var(--delay, 0ms),
    transform 640ms cubic-bezier(0.2, 0.8, 0.2, 1) var(--delay, 0ms);
}

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

@keyframes card-hover {
  0%,
  100% {
    transform: perspective(1200px) rotateY(-4deg) rotateX(2deg) translateY(0);
  }

  50% {
    transform: perspective(1200px) rotateY(-2deg) rotateX(1deg) translateY(-8px);
  }
}

@keyframes portrait-glow {
  0%,
  100% {
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.24),
      0 16px 34px rgba(47, 142, 232, 0.16);
  }

  50% {
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.34),
      0 22px 48px rgba(47, 142, 232, 0.3);
  }
}

@keyframes active-pop {
  0% {
    transform: scale(0.96);
  }

  100% {
    transform: scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 980px) {
  .intro,
  .split,
  .project.featured {
    grid-template-columns: 1fr;
  }

  .profile-visual {
    max-width: 430px;
    transform: none;
    animation: none;
  }

  .skill-grid,
  .process-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 660px) {
  .site-header,
  main,
  footer {
    width: min(100% - 28px, 1120px);
  }

  .site-header,
  footer {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
  }

  .intro {
    min-height: auto;
    padding-top: 34px;
  }

  .skill-grid,
  .project-list,
  .process-grid {
    grid-template-columns: 1fr;
  }
}
