:root {
  --ink: #f7f5ff;
  --muted: #b8b4cf;
  --dim: #817d98;
  --night: #070717;
  --night-raised: #0d0d25;
  --violet: #8170ff;
  --violet-bright: #a79dff;
  --cyan: #85e8ff;
  --yellow: #fff178;
  --line: rgba(218, 214, 255, 0.14);
  --page: min(1180px, calc(100vw - 64px));
  color-scheme: dark;
  font-family: "Avenir Next", Avenir, "Segoe UI", Helvetica, Arial, sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 80% 8%, rgba(83, 64, 170, 0.18), transparent 26rem),
    var(--night);
  color: var(--ink);
  line-height: 1.5;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image: linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(to bottom, black, transparent 72%);
  content: "";
  pointer-events: none;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  margin: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

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

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 20;
  padding: 10px 14px;
  transform: translateY(-180%);
  border-radius: 6px;
  background: var(--ink);
  color: var(--night);
  font-weight: 700;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 10;
  display: flex;
  width: var(--page);
  min-height: 90px;
  align-items: center;
  justify-content: space-between;
  transform: translateX(-50%);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: 0.95rem;
  font-weight: 650;
  letter-spacing: 0.01em;
}

.brand img {
  border-radius: 50%;
  filter: drop-shadow(0 0 12px rgba(255, 241, 120, 0.28));
}

nav {
  display: flex;
  align-items: center;
  gap: 34px;
  color: var(--muted);
  font-size: 0.83rem;
  font-weight: 550;
}

nav a {
  transition: color 180ms ease;
}

nav a:hover,
nav a:focus-visible {
  color: var(--ink);
}

.nav-contact {
  padding: 9px 16px;
  border: 1px solid rgba(167, 157, 255, 0.4);
  border-radius: 999px;
  color: var(--muted);
}

.hero {
  position: relative;
  display: grid;
  min-height: 780px;
  padding: 150px max(32px, calc((100vw - 1180px) / 2)) 95px;
  grid-template-columns: minmax(0, 0.9fr) minmax(380px, 1.1fr);
  column-gap: clamp(20px, 3vw, 52px);
  align-items: center;
  isolation: isolate;
}

.hero::after {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: var(--page);
  height: 1px;
  transform: translateX(-50%);
  background: var(--line);
  content: "";
}

.hero-glow {
  position: absolute;
  top: 10%;
  right: -10%;
  z-index: -1;
  width: 58vw;
  height: 58vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(75, 56, 178, 0.24), transparent 64%);
  filter: blur(8px);
}

.hero-copy {
  position: relative;
  z-index: 2;
  padding: 40px 0;
}

.eyebrow {
  display: flex;
  margin: 0 0 28px;
  align-items: center;
  gap: 10px;
  color: var(--cyan);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 14px var(--yellow);
}

h1,
h2,
h3,
p {
  overflow-wrap: break-word;
}

h1 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(3.7rem, 6.1vw, 6.4rem);
  font-weight: 650;
  letter-spacing: -0.065em;
  line-height: 0.94;
}

.hero-lede {
  max-width: 590px;
  margin: 32px 0 0;
  color: var(--muted);
  font-size: clamp(1.04rem, 1.4vw, 1.22rem);
  line-height: 1.68;
}

.hero-actions {
  display: flex;
  margin-top: 38px;
  align-items: center;
  gap: 26px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  padding: 0 22px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 700;
}

.button-primary {
  background: var(--ink);
  color: var(--night);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.3);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

.button-primary:hover,
.button-primary:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.42);
}

.text-link {
  padding: 8px 0;
  border-bottom: 1px solid rgba(133, 232, 255, 0.35);
  color: var(--cyan);
  font-size: 0.86rem;
}

.text-link span,
.email-link span {
  display: inline-block;
  margin-left: 4px;
  transition: transform 180ms ease;
}

.text-link:hover span,
.text-link:focus-visible span,
.email-link:hover span,
.email-link:focus-visible span {
  transform: translate(3px, -3px);
}

.mascot-wrap {
  position: relative;
  z-index: 1;
  width: min(58vw, 700px);
  max-width: 100%;
  justify-self: end;
}

.mascot {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 34px 42px rgba(0, 0, 0, 0.5));
  animation: drift 6s ease-in-out infinite;
}

.lantern-glow {
  position: absolute;
  top: 27%;
  left: 8%;
  width: 23%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(255, 230, 69, 0.42);
  box-shadow:
    0 0 65px 18px rgba(255, 234, 71, 0.4),
    0 0 150px 42px rgba(255, 205, 51, 0.13);
  filter: blur(14px);
  animation: lantern-pulse 3.2s ease-in-out infinite;
}

.depth-marker {
  position: absolute;
  right: max(32px, calc((100vw - 1180px) / 2));
  bottom: 36px;
  display: flex;
  width: 155px;
  align-items: center;
  gap: 10px;
  color: var(--dim);
  font-size: 0.64rem;
  letter-spacing: 0.1em;
}

.depth-marker i {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, var(--violet), rgba(129, 112, 255, 0.08));
}

.section {
  position: relative;
  display: grid;
  width: var(--page);
  margin: 0 auto;
  padding: 130px 0;
  grid-template-columns: 165px minmax(0, 1fr);
  border-bottom: 1px solid var(--line);
}

.section-label {
  display: flex;
  padding-top: 10px;
  gap: 14px;
  color: var(--dim);
  font-size: 0.69rem;
  font-weight: 650;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.section-label p {
  margin: 0;
  color: var(--muted);
}

.section-label span {
  color: var(--violet-bright);
}

h2 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(2.4rem, 4.5vw, 4.7rem);
  font-weight: 620;
  letter-spacing: -0.055em;
  line-height: 1.03;
}

.about-content {
  display: grid;
  gap: 62px;
}

.about-body {
  display: grid;
  max-width: 760px;
  grid-template-columns: 1fr 1fr;
  gap: 52px;
}

.about-body p,
.work-heading > p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.78;
}

.work {
  padding-bottom: 150px;
}

.work-content {
  min-width: 0;
}

.work-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  align-items: end;
  gap: 52px;
}

.work-grid {
  display: grid;
  margin-top: 76px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.work-card {
  display: grid;
  min-height: 520px;
  padding: 26px;
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    linear-gradient(150deg, rgba(255, 255, 255, 0.045), transparent 55%),
    rgba(13, 13, 37, 0.7);
  transition:
    transform 220ms ease,
    border-color 220ms ease;
}

.work-card:hover {
  transform: translateY(-5px);
  border-color: rgba(167, 157, 255, 0.34);
}

.work-card-accent {
  background:
    radial-gradient(circle at 90% 10%, rgba(133, 232, 255, 0.12), transparent 42%),
    linear-gradient(155deg, rgba(103, 82, 203, 0.2), rgba(13, 13, 37, 0.82));
}

.card-number {
  margin: 0;
  color: var(--violet-bright);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.work-artifact {
  position: relative;
  display: block;
  overflow: hidden;
  height: 165px;
  margin: 0 -8px;
  border: 1px solid rgba(218, 214, 255, 0.16);
  border-radius: 12px;
  background: #111122;
}

.work-artifact img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 260ms ease;
}

.work-card:hover .work-artifact img {
  transform: scale(1.025);
}

.work-card-copy {
  display: flex;
  min-height: 0;
  flex-direction: column;
}

.work-card h3 {
  margin: 0 0 15px;
  font-size: 1.35rem;
  font-weight: 620;
  letter-spacing: -0.025em;
}

.work-card div > p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.7;
}

.tool-list {
  display: flex;
  margin: auto 0 0;
  padding: 24px 0 0;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
}

.tool-list li {
  padding: 6px 10px;
  border: 1px solid rgba(133, 232, 255, 0.22);
  border-radius: 999px;
  color: var(--cyan);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.contact {
  overflow: hidden;
  min-height: 530px;
  align-items: center;
  border-bottom: 0;
}

.contact-light {
  position: absolute;
  right: 2%;
  bottom: -75%;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: rgba(255, 230, 69, 0.08);
  box-shadow: 0 0 150px 40px rgba(255, 226, 63, 0.06);
  filter: blur(22px);
}

.contact-content {
  position: relative;
  z-index: 1;
}

.contact-kicker {
  margin: 0 0 12px;
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact h2 {
  font-size: clamp(4.5rem, 9vw, 8.5rem);
}

.email-link {
  display: inline-flex;
  margin-top: 36px;
  padding-bottom: 6px;
  align-items: center;
  border-bottom: 1px solid rgba(133, 232, 255, 0.35);
  color: var(--cyan);
  font-size: clamp(1rem, 2vw, 1.35rem);
}

footer {
  display: grid;
  width: var(--page);
  min-height: 126px;
  margin: 0 auto;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 28px;
  border-top: 1px solid var(--line);
  color: var(--dim);
  font-size: 0.72rem;
}

.footer-brand {
  color: var(--muted);
  font-size: 0.8rem;
}

footer p {
  margin: 0;
}

footer p:last-child {
  justify-self: end;
}

@keyframes drift {
  0%,
  100% {
    transform: translate3d(0, -3px, 0) rotate(-0.3deg);
  }
  50% {
    transform: translate3d(0, 8px, 0) rotate(0.5deg);
  }
}

@keyframes lantern-pulse {
  0%,
  100% {
    opacity: 0.68;
    transform: scale(0.96);
  }
  50% {
    opacity: 1;
    transform: scale(1.06);
  }
}

@media (max-width: 980px) {
  :root {
    --page: min(100% - 42px, 760px);
  }

  .hero {
    min-height: auto;
    padding: 150px 28px 90px;
    grid-template-columns: 1fr;
  }

  .hero-copy {
    padding-bottom: 0;
  }

  .mascot-wrap {
    width: min(100%, 650px);
    margin: 80px auto 0;
    justify-self: center;
  }

  .depth-marker {
    right: 28px;
  }

  .section {
    padding: 100px 0;
    grid-template-columns: 110px minmax(0, 1fr);
  }

  .work-heading {
    grid-template-columns: 1fr;
  }

  .work-heading > p {
    max-width: 560px;
  }

  .work-grid {
    grid-template-columns: 1fr;
  }

  .work-card {
    min-height: 480px;
  }

  .work-artifact {
    height: 250px;
  }
}

@media (max-width: 680px) {
  :root {
    --page: calc(100% - 36px);
  }

  .site-header {
    min-height: 76px;
  }

  .brand span {
    font-size: 0.85rem;
  }

  nav {
    gap: 9px;
  }

  nav > a:not(.nav-contact) {
    display: none;
  }

  .nav-contact {
    padding: 7px 13px;
  }

  .hero {
    padding: 130px 18px 78px;
  }

  h1 {
    font-size: clamp(3.05rem, 15vw, 4.3rem);
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .mascot-wrap {
    width: 114%;
    margin-top: 56px;
    margin-left: -7%;
  }

  .depth-marker {
    display: none;
  }

  .section {
    padding: 78px 0;
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .section-label {
    padding-top: 0;
  }

  h2 {
    font-size: clamp(2.4rem, 12vw, 3.7rem);
  }

  .about-content {
    gap: 42px;
  }

  .about-body {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .work-grid {
    margin-top: 52px;
  }

  .work-card {
    min-height: 440px;
  }

  .work-artifact {
    height: 210px;
  }

  .contact {
    min-height: 450px;
  }

  .contact h2 {
    font-size: clamp(4rem, 21vw, 6rem);
  }

  footer {
    min-height: 170px;
    padding: 30px 0;
    grid-template-columns: 1fr auto;
    gap: 18px;
  }

  footer > p:nth-child(2) {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
