:root {
  --bg: #f4f0e8;
  --text: #111111;
  --muted: #5f6470;
  --line: rgba(17, 17, 17, 0.12);
  --white: #ffffff;
  --blue: #0057ff;
  --lime: #d8ff36;
  --red: #ff5a36;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "IBM Plex Sans", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 0% 0%, rgba(0, 87, 255, 0.1), transparent 24rem),
    radial-gradient(circle at 100% 20%, rgba(216, 255, 54, 0.14), transparent 20rem),
    linear-gradient(180deg, #fbf8f2 0%, var(--bg) 100%);
}

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

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.1;
  background-image:
    linear-gradient(rgba(17, 17, 17, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 17, 17, 0.02) 1px, transparent 1px);
  background-size: 22px 22px;
}

.layout {
  width: min(1160px, calc(100% - 32px));
  margin: 16px auto;
  padding: 20px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.58);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.site-header,
.hero,
.section-head,
.card-links {
  display: flex;
}

.site-header {
  align-items: center;
  justify-content: space-between;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.brand,
h1,
h2,
h3 {
  font-family: "Archivo", sans-serif;
}

.brand {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.05em;
}

.site-nav {
  display: flex;
  gap: 20px;
}

.site-nav a,
.card-links a,
.profile-list a {
  position: relative;
}

.site-nav a::after,
.card-links a::after,
.profile-list a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.22rem;
  width: 100%;
  height: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 160ms ease;
  background: var(--blue);
}

.site-nav a:hover::after,
.card-links a:hover::after,
.profile-list a:hover::after {
  transform: scaleX(1);
}

.hero {
  gap: 22px;
  align-items: stretch;
  padding: 26px 0 18px;
}

.hero-copy,
.profile-card,
.project-card {
  position: relative;
  overflow: hidden;
}

.hero-copy {
  flex: 1 1 62%;
  min-height: 360px;
  padding: 28px;
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(0, 87, 255, 0.95) 0%, rgba(0, 87, 255, 0.82) 55%, rgba(216, 255, 54, 0.88) 100%);
  color: var(--white);
}

.hero-copy::before {
  content: "";
  position: absolute;
  top: -60px;
  right: -20px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
}

.hero-copy::after {
  content: "";
  position: absolute;
  left: 28px;
  bottom: 28px;
  width: 96px;
  height: 10px;
  background: var(--white);
}

.hero-label,
.profile-label,
.card-type {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p,
dt,
dd {
  margin: 0;
}

h1 {
  margin-top: 14px;
  font-size: clamp(4rem, 11vw, 7.5rem);
  line-height: 0.9;
  letter-spacing: -0.07em;
}

.hero-line {
  margin-top: 18px;
  max-width: 18rem;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  line-height: 1.45;
  font-weight: 500;
}

.profile-card {
  flex: 1 1 38%;
  padding: 24px;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.78));
}

.profile-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 12px;
  background: linear-gradient(90deg, var(--lime), var(--red));
}

.profile-label {
  color: var(--muted);
}

.profile-text {
  margin-top: 18px;
  max-width: 26rem;
  font-size: 1.25rem;
  line-height: 1.45;
  font-weight: 600;
}

.profile-summary {
  margin-top: 14px;
  max-width: 27rem;
  line-height: 1.6;
  color: var(--muted);
}

.profile-list {
  margin-top: 28px;
  display: grid;
  gap: 18px;
}

.profile-list dt {
  margin-bottom: 4px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.profile-list dd {
  line-height: 1.55;
}

.projects-section {
  padding-top: 18px;
}

.section-head {
  align-items: baseline;
  justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  letter-spacing: -0.05em;
}

.section-head p {
  color: var(--muted);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  padding-top: 22px;
}

.project-card {
  min-height: 280px;
  height: 100%;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 22px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(248, 249, 251, 0.9));
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    border-color 160ms ease;
}

.project-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 8px;
  background: linear-gradient(90deg, var(--blue), var(--lime));
}

.project-card-alt::before {
  background: linear-gradient(90deg, var(--red), var(--blue));
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.08);
  border-color: rgba(0, 87, 255, 0.24);
}

.card-top {
  padding-top: 10px;
}

h3 {
  margin-top: 10px;
  font-size: clamp(2rem, 4vw, 2.7rem);
  letter-spacing: -0.06em;
}

.card-copy {
  display: grid;
  grid-template-rows: auto 1fr;
}

.card-body {
  margin-top: 16px;
  max-width: 18rem;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--muted);
}

.card-detail {
  margin-top: 12px;
  max-width: 24rem;
  line-height: 1.65;
  color: var(--muted);
}

.card-links {
  gap: 20px;
  align-items: center;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-weight: 600;
  flex-wrap: wrap;
  align-self: end;
}

.footer-note {
  margin-top: 22px;
  padding: 20px 0 6px;
  border-top: 1px solid var(--line);
}

.footer-note p {
  color: var(--muted);
}

@media (max-width: 900px) {
  .hero {
    flex-direction: column;
  }

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

@media (max-width: 1180px) and (min-width: 901px) {
  .projects-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .layout {
    width: min(100% - 16px, 1160px);
    margin: 8px auto;
    padding: 14px;
  }

  .site-header,
  .section-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .site-nav {
    gap: 16px;
  }

  .hero-copy,
  .profile-card,
  .project-card {
    padding: 18px;
  }

  .hero-copy {
    min-height: 300px;
  }
}
