:root {
  --c1: rgb(82, 70, 70);
  --c2: rgb(168, 164, 146);
  --c3: rgb(252, 242, 229);
  --c4: rgb(236, 91, 56);
  --scale: 1;
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html,
body {
  height: 100%;
  overflow: hidden;
  background: var(--c3);
  color: var(--c1);
  font-family: "Segoe UI", "Inter", Arial, sans-serif;
}
.stage {
  width: 100vw;
  height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.page {
  width: min(92vw, 1000px);
  transform: scale(var(--scale));
  transform-origin: center center;
  transition: transform 0.1s linear;
}

.hero {
  text-align: center;
  margin-bottom: clamp(16px, 3vh, 32px);
}
.hero h1 {
  font-size: clamp(28px, 4.4vw, 52px);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.05;
}
.role {
  margin-top: 6px;
  font-size: clamp(12px, 1.3vw, 15px);
  color: var(--c4);
  font-weight: 600;
  letter-spacing: 0.02em;
}
.bio {
  margin: 12px auto 0;
  max-width: 640px;
  font-size: clamp(12px, 1.1vw, 14.5px);
  line-height: 1.55;
  color: var(--c1);
  opacity: 0.85;
}

.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(16px, 3vw, 40px);
}
.col h2 {
  font-size: clamp(11px, 1vw, 13px);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--c2);
  margin-bottom: clamp(10px, 1.6vh, 16px);
  padding-bottom: 6px;
  border-bottom: 2px solid var(--c4);
}
.row {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 12px;
  margin-bottom: clamp(10px, 1.8vh, 18px);
  align-items: start;
}
.tag {
  font-size: 10px;
  color: var(--c2);
  font-weight: 700;
  letter-spacing: 0.04em;
  padding-top: 2px;
}
.row strong {
  font-size: clamp(13px, 1.2vw, 15px);
  color: var(--c1);
}
.row p {
  margin-top: 3px;
  font-size: clamp(11px, 1vw, 13px);
  color: var(--c1);
  opacity: 0.75;
  line-height: 1.45;
}

.proj-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}
.links {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}
.links a {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--c4);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s ease-out;
}
.links a:hover {
  border-color: var(--c4);
}

footer {
  display: flex;
  justify-content: center;
  gap: clamp(14px, 2.4vw, 26px);
  margin-top: clamp(18px, 3vh, 34px);
  padding-top: clamp(12px, 2vh, 18px);
  border-top: 1px solid var(--c2);
}
footer a {
  font-size: clamp(11px, 1vw, 13px);
  color: var(--c1);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.03em;
  transition: color 0.15s ease-out;
}
footer a:hover {
  color: var(--c4);
}

.stage {
  flex-direction: column;
  text-align: center;
  gap: 18px;
}
.code404 {
  font-size: clamp(60px, 10vw, 120px);
  font-weight: 800;
  color: var(--c4);
  line-height: 1;
}
.msg404 {
  font-size: clamp(14px, 1.4vw, 17px);
  opacity: 0.8;
  max-width: 440px;
}
.home-link {
  margin-top: 10px;
  font-size: 13px;
  font-weight: 700;
  color: var(--c4);
  text-decoration: none;
  border-bottom: 1px solid var(--c4);
  padding-bottom: 2px;
}
.home-link:hover {
  opacity: 0.7;
}

@media (max-width: 640px) {
  .grid {
    grid-template-columns: 1fr;
  }
  .row {
    grid-template-columns: 50px 1fr;
  }
}
