
:root {
  --ground: #1c1c1f;
  --card: #26262a;
  --line: rgba(255, 255, 255, 0.12);
  --white: #ffffff;
  --text: rgba(255, 255, 255, 0.72);
  --orange-gradient: linear-gradient(180deg, #ffa637 0%, #ff8a00 52%, #f27a00 100%);
  --font: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --sky-light: 1;
  --gap-light: 0.72;
  --pixel: 5px;
  --pixel-gap: 1px;
  --pixel-look: tiles;
  --pixel-cursor: ripples;
  --accent: #ff7a0d;
  --glow: #d6c6ae;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
  margin: 0;
  overflow-x: hidden;
  display: grid;
  place-items: center;
  min-height: 100svh;
  padding: calc(var(--navbar-height, 0px) + 24px) 16px 24px;
  background: var(--ground);
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }


.grid {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s;
}
.grid.is-on { opacity: 1; }
#grid-back { z-index: -1; }
#grid-front { z-index: 1; }


.card {
  position: relative;
  -webkit-user-select: none;
  user-select: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  max-width: 980px;
  text-align: center;
}

.portrait {
  flex: none;
  margin: 0;
  width: clamp(150px, 22vw, 228px);
  aspect-ratio: 1;
  padding: 4px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
}
.portrait img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background: var(--card);
}

.words { min-width: 0; }

h1 { margin: 0; }
.logo { width: clamp(250px, 34vw, 430px); margin: 0 auto; }

.tagline {
  max-width: 24em;
  margin: 18px auto 0;
  font-size: clamp(17px, 0.9vw + 11px, 21px);
  font-weight: 400;
  line-height: 1.55;
  text-wrap: pretty;
}

.links, .words > .button { margin-top: 28px; }
.links { display: flex; justify-content: center; gap: 12px; }
.button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 48px;
  padding: 0 24px 0 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  background:
    var(--orange-gradient) padding-box,
    linear-gradient(180deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.14) 42%, rgba(255, 196, 120, 0.5) 100%) border-box;
  color: var(--white);
  font-family: var(--font);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 8px 20px rgba(242, 93, 5, 0.22);
  transition: filter 0.15s, transform 0.15s, border-color 0.15s, background-color 0.15s;
}
.button svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.button:hover { filter: brightness(0.95); transform: translateY(-1px); }
.button:active { transform: none; }
.button:focus-visible { outline: 2px solid var(--white); outline-offset: 4px; }

.button--round {
  width: 48px;
  justify-content: center;
  padding: 0;
  border-color: var(--line);
  background: var(--card);
  box-shadow: none;
}
.button--round:hover { filter: none; border-color: rgba(255, 255, 255, 0.3); background: #2e2e33; }
.button--round svg { width: auto; height: 19px; fill: var(--white); stroke: none; }

@media (min-width: 760px) {
  .card { flex-direction: row; gap: clamp(36px, 4vw, 56px); text-align: left; }
  .logo, .tagline { margin-left: 0; }
  .links { justify-content: flex-start; }
  .logo { transform: translateX(-5.375%); }
}


.card > * { opacity: 0; }
.is-in .card > * { animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.is-in .words { animation-delay: 0.12s; }

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .is-in .card > * { animation: none; opacity: 1; }
  .button { transition: none; }
}
