@font-face {
  font-family: Manrope;
  src: url('/assets/fonts/manrope.woff2') format('woff2');
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
}

@font-face {
  font-family: Newsreader;
  src: url('/assets/fonts/newsreader-italic.woff2') format('woff2');
  font-style: italic;
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --ink: #101126;
  --paper: #f6f5f0;
  --lavender: #d3cfff;
  --lime: #dcff54;
  --muted: #c3c2d8;
  --cobalt: #3728ac;
  --gutter: clamp(1.25rem, 4.9vw, 5rem);
  color-scheme: dark;
  font-family: Manrope, system-ui, sans-serif;
  background: var(--ink);
  color: #fff;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; }
h1, h2, h3, p, figure { margin: 0; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input { font: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
[id] { scroll-margin-top: 1.5rem; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip {
  position: fixed;
  z-index: 5;
  inset: 0.75rem auto auto 0.75rem;
  padding: 0.75rem 1rem;
  transform: translateY(-200%);
  background: var(--lime);
  color: var(--ink);
  border-radius: 0.375rem;
}

.skip:focus { transform: none; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 5px; }
.wrap { width: min(100% - var(--gutter) * 2, 88rem); margin-inline: auto; }

.masthead {
  position: relative;
  z-index: 1;
  background: #101122;
  border-bottom: 1px solid #ffffff16;
}

.masthead-inner, .footer-inner {
  min-height: 4.625rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  flex: none;
  min-height: 2.75rem;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.06em;
  text-decoration: none;
}

.brand img { width: 2.75rem; height: auto; }
.brand-dot { color: var(--lime); }

.masthead nav { display: flex; align-items: center; gap: clamp(1rem, 2.5vw, 2.75rem); }
.masthead nav a { display: inline-flex; align-items: center; min-height: 2.75rem; font-size: 0.875rem; text-decoration: none; font-weight: 700; }
.nav-section { color: var(--muted); }
.nav-section:hover { color: #fff; }
.nav-contact { gap: 0.55rem; color: var(--lime); }

.intro {
  position: relative;
  isolation: isolate;
  background: radial-gradient(ellipse at 82% 38%, #27256b, #151633 46%, #101122 79%);
}

.intro::before, .contact::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  pointer-events: none;
  background-image: linear-gradient(#bfb5ff12 1px, transparent 1px), linear-gradient(90deg, #bfb5ff12 1px, transparent 1px);
  background-size: 4.5rem 4.5rem;
  mask-image: linear-gradient(100deg, transparent, #000 45%, #000);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(0, 1.04fr);
  align-items: center;
  gap: clamp(2rem, 4vw, 5rem);
  padding-block: clamp(2.75rem, 5vw, 5.5rem) clamp(2rem, 3.5vw, 3.5rem);
}

.hero-copy { padding-bottom: 1.875rem; }

.index-label {
  font: 700 0.71rem/1.5 ui-monospace, monospace;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.intro-label { display: flex; gap: 0.7rem; align-items: center; color: var(--lavender); }
.intro-label > span, .project-label > span {
  width: 0.55rem;
  height: 0.55rem;
  flex: none;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 1rem #d6ff5570;
}

.hero h1 {
  margin-block: 1.35rem 1.55rem;
  font-size: clamp(3.3rem, 6.05vw, 6.75rem);
  line-height: 0.99;
  letter-spacing: -0.07em;
  word-spacing: 0.06em;
  font-weight: 800;
}

h1 em, h2 em {
  font-family: Newsreader, Georgia, serif;
  font-weight: 400;
  letter-spacing: -0.045em;
  word-spacing: 0.035em;
}

.hero h1 em { color: var(--lavender); font-size: 1.13em; }
.hero-description { max-width: 29rem; color: var(--muted); font-size: clamp(1.05rem, 1.4vw, 1.3rem); line-height: 1.65; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.65rem 1.5rem; margin-top: 1.85rem; }

.button, .text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 2.75rem;
  font-size: 0.875rem;
  line-height: 1.4;
  font-weight: 800;
}

.button {
  min-height: 3.5rem;
  padding: 0.75rem 1.15rem;
  border-radius: 0.425rem;
  text-decoration: none;
  transition: background 180ms ease, transform 180ms ease;
}

.button-lime { background: var(--lime); color: #19192b; }
.button-lime:hover { background: #edff9e; transform: translateY(-2px); }
.text-link { text-decoration-color: #ffffff60; text-underline-offset: 0.27em; }
.text-link:hover { text-decoration-color: currentColor; }
.icon-library { position: absolute; }
.arrow {
  width: 1em;
  height: 1em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.arrow-down { transform: rotate(90deg); }
.text-link .arrow { color: var(--lime); }

.playground { min-width: 0; }
.artwork-caption, .hero-register {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
}

.artwork-caption { margin-bottom: 0.625rem; }
.artwork-caption > :last-child { font-size: 1.25rem; line-height: 1; color: var(--lime); }

.artwork {
  position: relative;
  aspect-ratio: 1.14;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid #c6c0ff52;
  border-radius: 0.75rem;
  background: #1a1a50;
  box-shadow: 0 1.75rem 5rem #09091f65;
}

.artwork img, .artwork canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.artwork img { object-fit: cover; object-position: center 48%; }
.artwork canvas[data-drawing] { touch-action: none; cursor: crosshair; }
.artwork:has(canvas[data-drawing]) { border-color: var(--lime); }
.art-corner { position: absolute; width: 1.05rem; height: 1.05rem; border: solid #e4dfffbd; pointer-events: none; }
.corner-nw { inset: 0.75rem auto auto 0.75rem; border-width: 1px 0 0 1px; }
.corner-se { inset: auto 0.75rem 0.75rem auto; border-width: 0 1px 1px 0; }

.canvas-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 0.15rem 0.75rem; padding-block-start: 0.45rem; }
.palette, .tool-actions { display: flex; align-items: center; gap: 0.2rem; }
.palette { border: 0; margin: 0; padding: 0; min-inline-size: 0; }
.palette label { position: relative; width: 2.75rem; height: 2.75rem; display: grid; place-items: center; cursor: pointer; }
.palette input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.swatch { display: block; width: 1.05rem; height: 1.05rem; border-radius: 50%; pointer-events: none; }
.swatch-lime { background: var(--lime); }
.swatch-blue { background: #94d9ff; }
.swatch-coral { background: #ff8eb0; }
.palette input:checked + .swatch { outline: 1px solid #fff; outline-offset: 0.25rem; }
.palette input:focus-visible + .swatch { outline: 2px solid var(--lime); outline-offset: 0.36rem; }
.tool-actions button {
  min-height: 2.75rem;
  padding: 0.4rem 0.7rem;
  background: transparent;
  color: #f1eeff;
  border: 1px solid transparent;
  border-radius: 0.375rem;
  font-size: 0.78rem;
  font-weight: 800;
  white-space: nowrap;
}

.tool-actions button:hover { background: #ffffff12; }
.tool-actions button[aria-pressed="true"] { color: var(--lime); border-color: #d6ff5566; }
.tool-actions button span { color: var(--lime); }
.canvas-instructions { flex: 1 1 100%; color: var(--muted); font-size: 0.75rem; line-height: 1.55; min-height: 1.5em; }

.hero-register { min-height: 3.75rem; padding-block: 0.65rem; border-top: 1px solid #c6c0ff35; }
.hero-register a { display: inline-flex; align-items: center; gap: 0.5rem; text-decoration: none; min-height: 2.75rem; }
.hero-register a:hover { color: #fff; }
.hero-register a span { font-size: 1rem; color: var(--lime); }
.hero-register > :last-child { text-align: right; }

.websites, .work { color-scheme: light; background: var(--paper); color: var(--ink); }
.websites { padding-block: clamp(4.5rem, 8.5vw, 8.75rem); }
.work { padding-block: clamp(4.5rem, 8vw, 8rem); background: #eae7fa; }
.websites :focus-visible, .work :focus-visible { outline-color: var(--cobalt); }
.section-header {
  display: grid;
  grid-template-columns: minmax(9rem, 1fr) minmax(0, 2.6fr);
  gap: 1.5rem;
  margin-block-end: clamp(2.5rem, 4.2vw, 4.5rem);
}

.section-index { padding-top: 0.6rem; }
.section-index span { color: var(--cobalt); }
.section-header h2, .contact h2 {
  font-size: clamp(3rem, 6.1vw, 6.5rem);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.065em;
  word-spacing: 0.045em;
}

.section-header h2 em { color: var(--cobalt); font-size: 1.08em; }
.section-header h2 + p, .contact h2 + p {
  max-width: 39rem;
  margin-top: 1.35rem;
  color: #49475f;
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  line-height: 1.7;
}

.outcomes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid #16152c2b; }
.outcomes article { padding: 1.75rem clamp(0.85rem, 2.6vw, 2.25rem); border-inline-start: 1px solid #16152c2b; }
.outcomes article:first-child { border: 0; padding-inline-start: 0; }
.outcomes svg { width: 3rem; height: 3rem; stroke: var(--cobalt); stroke-width: 1.45; stroke-linecap: round; stroke-linejoin: round; }
.outcomes h3, .project h3 { font-size: clamp(1.3rem, 2vw, 1.8rem); line-height: 1.18; font-weight: 800; letter-spacing: -0.055em; }
.outcomes h3 { margin-block: 0.9rem 0.5rem; }
.outcomes p, .project-body > :last-child { color: #4e4a64; line-height: 1.65; }

.project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1rem, 2.75vw, 2.5rem); }
.project { min-width: 0; background: #f8f6ff; border: 1px solid #2f2b5b26; border-radius: 0.8rem; overflow: hidden; }
.project-image { display: block; position: relative; padding: clamp(1rem, 2.3vw, 2rem) clamp(1rem, 2.3vw, 2rem) 0; overflow: hidden; }
.project-image:focus-visible { outline-offset: -5px; }
.project-image-blue { background: #bdbbec; }
.project-image-gold { background: #dcd0b5; }
.project-image img {
  width: 100%;
  height: auto;
  aspect-ratio: 1.64;
  object-fit: cover;
  object-position: center top;
  border-radius: 0.45rem 0.45rem 0 0;
  box-shadow: 0 0.5rem 2rem #19153230;
  transition: transform 240ms ease;
}

.project-image:hover img { transform: translateY(-4px); }
.project-image > span {
  position: absolute;
  top: 0.7rem;
  right: 0.7rem;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  color: #fff;
  background: var(--ink);
}

.project-body { padding: clamp(1.25rem, 2.7vw, 2.25rem); }
.project-label { display: flex; align-items: center; gap: 0.55rem; margin-bottom: 0.6rem; color: #4c3e88; }
.project-label > span { width: 0.42rem; height: 0.42rem; background: currentColor; box-shadow: none; }
.project h3 a { text-decoration: none; }
.project h3 a:hover { text-decoration: underline; text-underline-offset: 0.16em; }
.project h3 a .arrow { font-size: 0.65em; color: var(--cobalt); }
.project-body > :last-child { margin-top: 0.6rem; }

.contact {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: radial-gradient(ellipse at 88% 40%, #3b329b, #191843 63%, #14152d);
}

.contact-inner {
  position: relative;
  min-height: 31rem;
  display: flex;
  align-items: center;
  padding-block: clamp(4.25rem, 9vw, 8.75rem);
}

.contact-inner > div { position: relative; z-index: 1; }
.contact .section-index { color: var(--muted); padding: 0; margin-bottom: 1.1rem; }
.contact .section-index span { color: var(--lime); }
.contact h2 { max-width: 51rem; }
.contact h2 em { color: var(--lavender); font-size: 1.08em; }
.contact h2 + p { max-width: 30rem; color: #d5d2ed; }
.contact-art { position: absolute; right: -1.5rem; width: min(44%, 31rem); color: #b7afffb0; stroke: currentColor; stroke-width: 0.75; }
.contact-star { fill: var(--lime); stroke: none; }
.site-footer { background: #101122; }
.footer-inner { flex-wrap: wrap; padding-block: 0.85rem; }
.footer-inner p { color: var(--muted); font-size: 0.85rem; }
.footer-inner .text-link { font-size: 0.8rem; }

.site-footer + .gci-analytics-footer {
  min-height: 3rem;
  padding: 0.75rem var(--gutter);
  background: #101122;
  border-top: 1px solid #ffffff16;
}

@media (max-width: 900px) {
  .hero { gap: 1.75rem; }
  .hero h1 { font-size: clamp(3rem, 6.3vw, 5.4rem); }
  .hero-copy { padding: 0; }
  .contact-art { opacity: 0.66; }
}

@media (max-width: 710px) {
  .masthead-inner { min-height: 4rem; }
  .masthead .nav-section { display: none; }
  .hero { grid-template-columns: 1fr; gap: 2.65rem; }
  .hero h1 { font-size: clamp(2.75rem, 11.5vw, 5.25rem); }
  .hero-actions { margin-top: 1.4rem; }
  .section-header { grid-template-columns: 1fr; gap: 0.85rem; }
  .section-index { padding: 0; }
  .outcomes { grid-template-columns: 1fr; }
  .outcomes article, .outcomes article:first-child { border: 0; border-bottom: 1px solid #16152c2b; padding: 1.5rem 0; }
  .outcomes h3 { margin-top: 0.5rem; }
  .project-grid { grid-template-columns: 1fr; }
  .contact-inner { min-height: 0; }
  .contact-art { width: 62%; right: -23%; opacity: 0.25; }
}

@media (max-width: 390px) {
  .brand { gap: 0.4rem; }
  .brand img { width: 2.25rem; }
  .hero-actions { gap: 0.25rem 1rem; }
  .canvas-tools { gap: 0.15rem 0.25rem; }
  .tool-actions { gap: 0; }
  .tool-actions button { padding-inline: 0.5rem; }
  .hero-register { gap: 0.5rem; font-size: 0.62rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
