:root {
  color-scheme: dark;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #edf3f3;
  background: #000;
  font-synthesis: none;
  line-height: 1.5;
  --muted: #909d9d;
  --accent: #8dff72;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; overflow-x: clip; }
a { color: inherit; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; }
.page { width: min(1040px, calc(100% - 96px)); margin-inline: auto; padding-top: 80px; }
.skip-link { position: absolute; top: 12px; left: 12px; z-index: 10; padding: 10px 16px; background: #eee; color: #000; transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.intro { position: relative; isolation: isolate; overflow: clip; min-height: 460px; display: flex; flex-direction: column; justify-content: center; }
.intro-copy { position: relative; z-index: 1; width: fit-content; padding-block: 42px 78px; pointer-events: none; }
h1 { margin: 0; font-size: clamp(68px, 10vw, 128px); font-weight: 600; letter-spacing: -.075em; line-height: 1.05; }
.title-dot { color: var(--accent); }
.scene { position: absolute; z-index: -1; top: -110px; right: -150px; width: 720px; height: 650px; pointer-events: none; }
.scene::before { content: ""; position: absolute; inset: 20%; background: radial-gradient(ellipse, #58b5321a, transparent 68%); }
.scene canvas { display: block; position: relative; width: 100%; height: 100%; opacity: .95; }
.scene[data-engine="unavailable"]::before { inset: 28%; border: 1px solid #416e36; border-radius: 12px; box-shadow: 0 0 100px #55ad3520; }
.projects { position: relative; padding-block: 40px 76px; perspective: 1000px; }
h2 { margin: 0; font-size: 12px; font-weight: 500; color: #acb8b8; }
.project-card { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 36px; border: 1px solid #293326; border-radius: 18px; background: linear-gradient(115deg, #0c110a, #090b08 65%); text-decoration: none; overflow: hidden; transform-style: preserve-3d; transition: border-color .25s, background-color .25s, transform .3s, box-shadow .3s; }
.project-card:hover, .project-card:focus-visible { border-color: #5a8049; box-shadow: 0 16px 65px #79c5480c; }
.card-glow { position: absolute; inset: 0; pointer-events: none; opacity: 0; background: radial-gradient(500px circle at var(--pointer-x, 40%) var(--pointer-y, 50%), #6aaa3a18, transparent 65%); transition: opacity .3s; }
.project-card:hover .card-glow { opacity: 1; }
.project-identity { display: flex; align-items: center; gap: 28px; min-width: 0; }
.angular-icon { display: grid; place-items: center; flex-shrink: 0; width: 96px; height: 108px; border-radius: 20px; border: 1px solid #29333840; background: radial-gradient(ellipse at 50% 70%, #1c30302e, #121d204d); }
.angular-icon img { display: block; filter: drop-shadow(0 0 20px #ec42a43d); transition: transform .35s; }
.project-card:hover .angular-icon img { transform: translateY(-3px) rotate(-5deg); }
h3 { margin: 6px 0 8px; font-size: 29px; font-weight: 550; letter-spacing: -.035em; }
.project-copy p { margin: 0; color: #a2b0b1; font-size: 13px; }
.arrow { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid #34462c; border-radius: 50%; color: #d1e4c7; font-size: 23px; transition: transform .25s, background-color .25s; }
.project-card:hover .arrow { transform: translate(2px, -2px); background: #25351b; }
.intro-copy, .project-card { animation: arrive .8s backwards; }
.project-card { animation-delay: .2s; }
@keyframes arrive { from { opacity: 0; translate: 0 16px; } to { opacity: 1; translate: 0 0; } }

@media (max-width: 850px) {
  .page { width: calc(100% - 64px); }
  .intro { min-height: 430px; }
  .scene { right: -200px; opacity: .6; }
  .project-card { padding: 28px; }
  .project-identity { gap: 22px; }
}

@media (max-width: 560px) {
  .page { width: calc(100% - 40px); }
  .intro { min-height: 400px; }
  .intro-copy { padding-block: 55px 76px; }
  h1 { font-size: clamp(64px, 15vw, 84px); }
  .scene { width: 520px; height: 520px; right: -110px; top: -10px; opacity: .5; }
  .projects { padding-block: 28px 48px; }
  .project-card { gap: 12px; padding: 22px 18px; border-radius: 14px; align-items: flex-start; }
  .project-identity { gap: 16px; align-items: flex-start; }
  .angular-icon { width: 48px; height: 60px; border-radius: 12px; margin-top: 4px; }
  .angular-icon img { width: 34px; height: 34px; }
  h3 { font-size: 24px; }
  .project-copy p { font-size: 12px; }
  .arrow { width: 28px; height: 28px; font-size: 18px; margin-top: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .project-card:hover .angular-icon img, .project-card:hover .arrow { transform: none; }
}
