@font-face {
  font-family: "Minecraft";
  src: url("fonts/Minecraft.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
:root {
  --bg: #0a0a0b;
  --card: #141416;
  --line: #232326;
  --line-soft: #1c1c1f;
  --text: #f4f4f5;
  --muted: #a1a1aa;
  --faint: #71717a;
  --radius: 14px;
  --max: 880px;
  --sans: "Inter", ui-sans-system, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: #e4e4e7; color: #09090b; }

.wrap { max-width: var(--max); margin: 0 auto; padding-left: 24px; padding-right: 24px; }

h1, h2, h3 { line-height: 1.12; letter-spacing: -0.03em; margin: 0; }
h1 { font-size: clamp(32px, 5vw, 46px); font-weight: 800; margin-bottom: 14px; }
.mc { font-family: "Minecraft", var(--mono); font-weight: 400; }
#typed-name {
  background: linear-gradient(100deg, #ce672f, #f5d5ab 35%, #dd9760 60%, #a25753 85%, #ce672f);
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: nameshine 5s ease-in-out infinite alternate;
}
@keyframes nameshine { from { background-position: 0% center; } to { background-position: 220% center; } }
#typed-name::after {
  content: ""; display: inline-block; width: 3px; height: .92em;
  background: #e4e4e7; margin-left: 5px; vertical-align: -.12em;
  border-radius: 2px; opacity: 0;
  font-family: var(--sans);
}
#typed-name.typing::after { opacity: 1; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 700; margin-bottom: 12px; }
h3 { font-size: 20px; font-weight: 650; }

p { margin: 0 0 14px; color: #d4d4d8; }
code {
  font-family: var(--mono); font-size: 0.85em;
  background: #232326; border: 1px solid #2e2e33;
  padding: 2px 6px; border-radius: 6px; color: #e4e4e7;
  white-space: nowrap;
}

.section { padding-top: 72px; padding-bottom: 8px; }
.section:last-child { padding-bottom: 72px; }
.kicker {
  font-size: 12.5px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.14em; color: var(--faint);
  margin: 0 0 12px;
  display: flex; align-items: center; gap: 10px;
}
.kicker::before { content: ""; width: 22px; height: 1px; background: #3f3f46; display: inline-block; }
.sub { color: var(--muted); max-width: 560px; font-size: 16.5px; margin-bottom: 28px; }

.about {
  display: grid; grid-template-columns: 110px 1fr; gap: 28px;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 36px;
  align-items: start;
}
.about-photo {
  width: 110px; height: 110px; border-radius: 24px; object-fit: cover;
  border: 1px solid #3f3f46;
}
.about p { color: var(--muted); }
.about p:last-child { margin-bottom: 0; }

.skills-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.skill-card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px;
  transition: border-color .2s, transform .2s;
}
.skill-card:hover { border-color: #3f3f46; transform: translateY(-2px); }
.skill-card h3 { margin-bottom: 4px; }
.skill-sub { font-size: 13px; color: var(--faint); margin: 0 0 12px; }
.skill-card p:last-child { font-size: 14.5px; color: var(--muted); margin: 0; }

.feature {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  transition: border-color .2s;
}
.feature:hover { border-color: #3f3f46; }
.feature-body { padding: 30px; }
.feature-body > p { color: var(--muted); font-size: 15.5px; max-width: 760px; }
.tags { display: flex; gap: 8px; flex-wrap: wrap; margin: 0; }
.tags span {
  font-size: 12px; color: #d4d4d8;
  background: #1f1f22; border: 1px solid #2c2c31; border-radius: 7px; padding: 4px 10px;
}
.work-meta { font-size: 12.5px; color: var(--faint); border-top: 1px solid var(--line-soft); padding-top: 14px; margin-top: 16px; }

.collage { display: grid; grid-template-columns: repeat(12, 1fr); margin-top: 4px; padding-bottom: 44px; }
.shot { position: relative; margin: 0; transition: transform .25s ease; }
.shot img {
  display: block; width: 100%; height: auto;
  background: #0c0c0d; border: 1px solid #2e2e33; border-radius: 12px;
  box-shadow: 0 18px 40px rgba(0,0,0,.5);
}
.shot figcaption {
  position: absolute; left: 10px; bottom: 10px;
  font-size: 12px; font-weight: 600; color: #e4e4e7;
  background: rgba(10,10,11,.78); border: 1px solid #34343a;
  padding: 4px 11px; border-radius: 20px; white-space: nowrap;
}
.shot figcaption.pos-tr { left: auto; right: 10px; bottom: auto; top: 10px; }
.shot figcaption.pos-tl { bottom: auto; top: 10px; }
.shot figcaption.pos-br { left: auto; right: 10px; }
.shot-main { grid-column: 1 / 9; grid-row: 1; align-self: start; transform: rotate(-1.5deg); }
.shot-score { grid-column: 8 / 13; grid-row: 1; align-self: end; transform: rotate(2.5deg) translateY(58px); margin-left: -28px; z-index: 2; }
.shot-point { grid-column: 1 / 7; grid-row: 2; align-self: start; transform: rotate(1deg); margin-top: 30px; }
.shot-ev1 { grid-column: 7 / 10; grid-row: 2; align-self: start; transform: rotate(-3deg) translateY(-14px); margin-top: 38px; margin-left: -16px; z-index: 3; }
.shot-ev2 { grid-column: 10 / 13; grid-row: 2; align-self: start; transform: rotate(3deg) translateY(30px); margin-top: 38px; margin-left: -20px; z-index: 2; }
@media (hover: hover) {
  .shot:hover { transform: rotate(0deg) scale(1.03); z-index: 10; }
}

.mini-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 12px; }
.mini-card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 22px; padding: 20px 22px;
  transition: border-color .2s;
}
.mini-card:hover { border-color: #3f3f46; }
.mini-card h3 { font-size: 16px; margin-bottom: 6px; }
.mini-card p { font-size: 13.5px; color: var(--muted); margin: 0; }

.contact-card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 32px;
  display: flex; flex-direction: row; align-items: center; gap: 28px;
  position: relative; z-index: 1;
  transform: rotate(-.8deg);
  box-shadow: 0 18px 40px rgba(0,0,0,.45);
  transition: border-color .2s, transform .25s ease;
}
.contact-card:hover { border-color: #3f3f46; transform: rotate(0deg) translateY(-2px); }
.discord-btn-link { flex-shrink: 0; line-height: 0; }
.discord-btn {
  width: 120px; height: 120px; border-radius: 28px;
  border: 1px solid var(--line);
  transition: transform .15s;
}
.discord-btn-link:hover .discord-btn { transform: translateY(-2px); }
.contact-info { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.discord-name { font-size: 30px; font-weight: 800; letter-spacing: -0.02em; color: var(--text); margin: 0; }
.discord-link { font-size: 15px; color: var(--muted); text-decoration: none; margin: 0; }
.discord-link:hover { color: var(--text); }

.sponsor-card {
  display: flex; flex-direction: row; align-items: center; gap: 28px;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 32px; margin-top: -14px; margin-left: 48px;
  position: relative; z-index: 2;
  transform: rotate(.7deg);
  box-shadow: 0 18px 40px rgba(0,0,0,.45);
  text-decoration: none;
  transition: border-color .2s, transform .25s ease;
}
.sponsor-card:hover { border-color: #3f3f46; transform: rotate(0deg) translateY(-2px); }
.sponsor-logo {
  width: 120px; height: 120px; border-radius: 28px; object-fit: cover;
  border: 1px solid var(--line); flex-shrink: 0;
}
.sponsor-info { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.sponsor-tag { font-size: 13px; color: var(--faint); }
.sponsor-name { font-size: 30px; font-weight: 800; letter-spacing: -0.02em; color: var(--text); margin: 0; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

@media (max-width: 720px) {
  .about { grid-template-columns: 1fr; padding: 28px 24px; }
  .about-photo { width: 88px; height: 88px; border-radius: 20px; }
  .feature-body { padding: 22px; }
  .contact-card { padding: 24px; gap: 20px; transform: none; }
  .sponsor-card { padding: 24px; gap: 20px; margin-top: 12px; margin-left: 0; transform: none; }
  .sponsor-logo { width: 88px; height: 88px; border-radius: 22px; }
  .sponsor-name { font-size: 24px; }
  .discord-btn { width: 88px; height: 88px; border-radius: 22px; }
  .discord-name { font-size: 24px; }
  .collage { display: flex; flex-direction: column; gap: 14px; padding-bottom: 0; }
  .skills-grid { grid-template-columns: 1fr; }
  .mini-grid { grid-template-columns: 1fr; }
  .shot { margin: 0 !important; }
  .shot:nth-child(odd) { transform: rotate(-.8deg); }
  .shot:nth-child(even) { transform: rotate(.8deg); }
}
