:root {
  --paper: #0e1216;
  --panel: #161c22;
  --ink: #eef3f6;
  --mute: #8b9aa6;
  --line: #2a343e;
  --steel: #7eb6c9;
  --orange: #ff6b2c;
  --font: "Space Grotesk", system-ui, sans-serif;
  --max: 60rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: 1.05rem;
  line-height: 1.5;
  color: var(--ink);
  background:
    radial-gradient(ellipse 80% 50% at 20% 0%, rgba(126, 182, 201, 0.12), transparent 55%),
    var(--paper);
  -webkit-font-smoothing: antialiased;
}

.filters {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

a {
  color: inherit;
}

a:focus-visible,
.cta:focus-visible {
  outline: 2px solid var(--steel);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--paper);
  padding: 0.5rem 1rem;
  z-index: 10;
}

.skip:focus {
  left: 1rem;
  top: 1rem;
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(100% - 2rem, var(--max));
  margin: 0 auto;
  padding: 1.25rem 0;
}

.lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.lockup__name {
  font-size: 1.15rem;
}

.top__mail {
  font-size: 0.95rem;
  color: var(--mute);
  text-decoration: none;
}

.top__mail:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

/* Official Mudkip art + metallic / machine filter */
.mark {
  position: relative;
  display: inline-grid;
  place-items: center;
  line-height: 0;
}

.mark img {
  display: block;
  width: 100%;
  height: auto;
  /* steel cast — CSS first (reliable); SVG #metal adds specular when supported */
  filter: url(#metal) contrast(1.18) brightness(1.06) saturate(0.72);
  -webkit-filter: contrast(1.18) brightness(1.06) saturate(0.72) hue-rotate(12deg);
}

.mark::before {
  content: "";
  position: absolute;
  inset: 6% 10% 16%;
  border-radius: 46%;
  background: linear-gradient(
    125deg,
    rgba(255, 255, 255, 0.55) 0%,
    rgba(255, 255, 255, 0.12) 22%,
    transparent 42%,
    rgba(20, 50, 70, 0.45) 68%,
    rgba(160, 210, 230, 0.28) 100%
  );
  mix-blend-mode: overlay;
  pointer-events: none;
  z-index: 1;
}

.mark::after {
  content: "";
  position: absolute;
  inset: 10% 14% 20%;
  border-radius: 50%;
  background: linear-gradient(
    180deg,
    rgba(200, 230, 255, 0.2),
    transparent 35%,
    transparent 60%,
    rgba(0, 20, 40, 0.35)
  );
  mix-blend-mode: soft-light;
  pointer-events: none;
  z-index: 1;
}

.mark--xs {
  width: 1.75rem;
}
.mark--sm {
  width: 2.5rem;
}
.mark--hero {
  width: clamp(11rem, 34vw, 22rem);
}

.mark--hero img {
  animation: settle 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.hero {
  width: min(100% - 2rem, var(--max));
  margin: 0 auto;
  padding: clamp(1.5rem, 6vh, 4rem) 0 clamp(3rem, 10vh, 5.5rem);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 5vw, 3.5rem);
  align-items: center;
}

.hero__figure {
  position: relative;
  display: grid;
  place-items: center;
  justify-self: center;
}

.hero__halo {
  position: absolute;
  width: 78%;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(126, 182, 201, 0.28), transparent 68%),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 11px,
      rgba(126, 182, 201, 0.06) 11px,
      rgba(126, 182, 201, 0.06) 12px
    );
  mask-image: radial-gradient(circle, #000 40%, transparent 72%);
  pointer-events: none;
}

.hero__copy {
  animation: rise 0.7s ease 0.1s both;
}

.eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--steel);
}

.hero h1 {
  margin: 0 0 0.85rem;
  font-size: clamp(2.75rem, 7vw, 4.4rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 0.95;
}

.lede {
  margin: 0 0 1.75rem;
  max-width: 28rem;
  color: var(--mute);
  font-size: clamp(1.05rem, 2vw, 1.2rem);
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.25rem;
  background: var(--orange);
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border-radius: 0.35rem;
  transition: background 0.15s ease, transform 0.15s ease;
}

.cta:hover {
  background: #e85a1c;
  transform: translateY(-1px);
}

.strip {
  width: min(100% - 2rem, var(--max));
  margin: 0 auto;
  padding: 1.5rem 0 3.5rem;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, 1fr);
}

.strip p {
  margin: 0;
  color: var(--mute);
  font-size: 0.98rem;
}

.strip strong {
  display: block;
  color: var(--ink);
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.work {
  width: min(100% - 2rem, var(--max));
  margin: 0 auto;
  padding: 0 0 3.5rem;
}

.work h2 {
  margin: 0 0 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--steel);
}

.work-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.work-list li {
  display: grid;
  grid-template-columns: minmax(7rem, 9rem) 1fr;
  gap: 0.75rem 1.25rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}

.work-list strong {
  color: var(--ink);
  font-weight: 600;
}

.work-list span {
  color: var(--mute);
  font-size: 0.98rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 2.25rem 0 2.75rem;
  font-size: 0.9rem;
  color: var(--mute);
}

.site-footer__inner {
  width: min(100% - 2rem, var(--max));
  margin: 0 auto;
  display: grid;
  gap: 1.15rem;
}

.site-footer__brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--ink);
  font-weight: 600;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 2rem;
  max-width: 32rem;
}

.site-footer__grid a,
.site-footer__grid p {
  display: block;
  margin: 0;
  color: var(--mute);
  text-decoration: none;
  line-height: 1.55;
}

.site-footer__grid a:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.site-footer__copy {
  margin: 0.25rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-size: 0.75rem;
  opacity: 0.65;
  max-width: 36rem;
}

@keyframes settle {
  from {
    opacity: 0;
    transform: translateY(0.8rem) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(0.75rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 720px) {
  .hero {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .hero__copy {
    display: grid;
    justify-items: center;
  }

  .lede {
    max-width: 22rem;
  }

  .strip {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .site-footer__grid {
    grid-template-columns: 1fr;
  }

  .work-list li {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }

  .top__mail {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mark--hero img,
  .hero__copy {
    animation: none;
  }

  .cta:hover {
    transform: none;
  }
}
