:root {
  color-scheme: light;
  --paper: #f4f2e9;
  --ink: #181a17;
  --muted: #54574d;
  --line: #d0cec1;
  --acid: #dcfc63;
  --lilac: #ddd1ff;
  --mono: ui-monospace, "SFMono-Regular", Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.55 system-ui, sans-serif; }
a { color: inherit; text-underline-offset: .25em; }
button { font: inherit; }
:focus-visible { outline: 3px solid #765bda; outline-offset: 4px; }
.shell { width: min(1180px, calc(100% - 6rem)); margin-inline: auto; }
.skip { position: fixed; z-index: 2; top: 1rem; left: 1rem; padding: .65rem 1rem; background: var(--acid); transform: translateY(-180%); }
.skip:focus { transform: none; }

.topbar, .footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: .7rem 1rem;
  padding-block: 1.2rem;
}
.topbar { border-bottom: 1px solid var(--line); }
.wordmark { display: inline-flex; align-items: center; font-weight: 760; letter-spacing: -.045em; text-decoration: none; }
.mark { display: inline-grid; place-items: center; width: 2rem; height: 2rem; margin-right: .65rem; border-radius: 50%; background: var(--ink); color: var(--acid); font: 1.4rem/1 system-ui, sans-serif; transition: transform .45s; }
.wordmark:hover .mark { transform: rotate(45deg); }
.nav { display: flex; align-items: center; flex-wrap: wrap; gap: .55rem clamp(1rem, 4vw, 2.75rem); }
.nav a { font-weight: 650; text-decoration: none; }
.nav a:hover { text-decoration: underline; }
.home-link {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .35rem .65rem;
  border: 1px solid var(--ink);
  border-radius: .3rem;
  background: var(--acid);
  font-size: .875rem;
  font-weight: 650;
  text-decoration: none;
}
.home-link:hover, .nav .home-link:hover { background: #e7ff89; text-decoration: none; }

.hero {
  display: grid;
  grid-template-columns: 1fr .91fr;
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center;
  padding-block: clamp(3rem, 7vw, 6.6rem);
}
.eyebrow { color: var(--muted); font: 700 .72rem/1.4 var(--mono); letter-spacing: .09em; text-transform: uppercase; }
.dot { display: inline-block; width: .55rem; height: .55rem; border-radius: 50%; background: #65741c; margin-right: .3rem; }
h1, h2, h3 { margin: 0; font-weight: 800; letter-spacing: -.07em; line-height: .97; }
h1 { font-size: clamp(3.5rem, 9.6vw, 8.75rem); }
h1 em { font: italic 500 1.03em/.83 Georgia, serif; letter-spacing: -.09em; }
h2 { font-size: clamp(2.15rem, 4.5vw, 3.95rem); }
h3 { font-size: clamp(1.7rem, 4vw, 3.05rem); }
.lede { max-width: 36ch; margin-block: 1.7rem; color: var(--muted); font-size: clamp(1rem, 2vw, 1.2rem); }
.button { display: inline-flex; align-items: center; justify-content: space-between; gap: 1.2rem; padding: .75rem 1rem; border: 1px solid var(--ink); border-radius: .3rem; background: var(--acid); font-weight: 750; text-decoration: none; transition: background .2s, box-shadow .2s; }
.button:hover { background: #e7ff89; box-shadow: .22rem .22rem 0 var(--ink); }
.hero-actions, .footer-links { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1.2rem; }
.text-action { font-weight: 650; }

.home-hero h1 {
  max-inline-size: 13ch;
  font-size: clamp(2.65rem, 6.3vw, 6rem);
  text-wrap: balance;
}
.home-hero h1 em {
  background: linear-gradient(transparent 72%, var(--acid) 72%, var(--acid) 88%, transparent 88%);
}
.hero-art {
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  position: relative;
  display: grid;
  place-items: center;
  isolation: isolate;
  min-height: clamp(15.5rem, 38vw, 31rem);
  overflow: hidden;
  border: 1px solid #3a4235;
  border-radius: 1.6rem;
  background:
    radial-gradient(ellipse at 68% 22%, #3b3a52 0, transparent 55%),
    radial-gradient(ellipse at 25% 85%, #333e23 0, transparent 58%),
    #191d19;
}
.hero-art::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background: radial-gradient(#f4f2e954 1px, transparent 1px) 0 0 / 18px 18px;
  mask-image: radial-gradient(ellipse, black, transparent 85%);
}
.hero-art-scene {
  position: relative;
  display: grid;
  place-items: center;
  width: min(82%, 25rem);
  aspect-ratio: 1;
  transform: perspective(740px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y));
  transition: transform .26s cubic-bezier(.2,.75,.3,1);
}
.hero-orbit {
  position: absolute;
  width: 100%;
  height: 55%;
  border: 1px solid #e9e2ff63;
  border-radius: 50%;
}
.hero-orbit-wide { transform: rotate(-27deg); }
.hero-orbit-tall { transform: rotate(43deg); }
.hero-orbit-dashed { width: 86%; border-style: dashed; border-color: #dcfc6394; transform: rotate(13deg); }
.hero-monogram {
  z-index: 1;
  display: grid;
  place-items: center;
  width: 52%;
  aspect-ratio: 1;
  transform: rotate(-10deg);
  border: 1px solid #f0ffae;
  border-radius: 25%;
  background: linear-gradient(150deg, #efffae, var(--acid) 75%);
  box-shadow: .45rem .55rem 0 #131612, 0 1.5rem 2.4rem #0006;
  font: italic 500 clamp(2.7rem, 8vw, 7rem)/1 Georgia, serif;
  letter-spacing: -.13em;
}
.hero-monogram span { padding-inline-end: .16em; }
.hero-art-spark {
  position: absolute;
  z-index: 2;
  inset: 12% 11% auto auto;
  color: var(--lilac);
  font-size: clamp(1.5rem, 4vw, 3rem);
  line-height: 1;
}
.hero-art-satellite {
  position: absolute;
  inset: auto auto 20% 9%;
  width: clamp(.75rem, 2vw, 1.45rem);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--acid);
  box-shadow: 0 0 1.15rem #dcfc636b;
}

@media (prefers-reduced-motion: no-preference) {
  .hero-art-spark { translate: 0 calc(var(--orbit-drift, 0px) * -.7); }
  .hero-art-satellite { translate: 0 var(--orbit-drift, 0px); }
  .home-hero .eyebrow, .home-hero h1, .home-hero .lede, .home-hero .hero-actions, .hero-art {
    animation: home-enter .65s cubic-bezier(.2,.75,.3,1) backwards;
  }
  .home-hero h1 { animation-delay: .08s; }
  .home-hero .lede { animation-delay: .15s; }
  .home-hero .hero-actions, .hero-art { animation-delay: .2s; }
  .hero-monogram { animation: monogram-enter 1s .25s cubic-bezier(.2,.75,.3,1) backwards; }
  .hero-art-spark { animation: spark-enter .85s .5s cubic-bezier(.2,.75,.3,1) backwards; }
  @keyframes home-enter { from { opacity: 0; transform: translateY(1.15rem); } }
  @keyframes monogram-enter { from { opacity: 0; transform: translateY(1rem) rotate(-30deg) scale(.75); } }
  @keyframes spark-enter { from { opacity: 0; transform: rotate(-90deg) scale(.4); } }
}

@media screen and (prefers-reduced-motion: no-preference) {
  html::after {
    position: fixed;
    z-index: 5;
    inset: 0 0 auto;
    height: 3px;
    content: "";
    pointer-events: none;
    background: linear-gradient(90deg, #708828, #7b5cc3);
    transform: scaleX(var(--scroll-progress, 0));
    transform-origin: left;
  }
}

.studio-mark { flex: none; width: 2rem; height: 2rem; margin-inline-end: .65rem; border-radius: .5rem; }
.studio-hero { padding-block: clamp(1.5rem, 4vw, 3rem); }
.studio-hero h1 { margin-block: 1rem 1.25rem; }
.studio-banner {
  display: block;
  width: 100%;
  height: auto;
  border-radius: clamp(.75rem, 2vw, 1.5rem);
}
.studio-intro {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
}
.studio-intro .lede { max-width: 58ch; margin: 0; }
img.project-icon { display: block; height: auto; }

.demo-section { display: grid; grid-template-columns: .82fr 1.18fr; gap: clamp(1rem, 5vw, 4rem); align-items: start; }
.demo-section p { max-width: 32ch; color: var(--muted); }

.section { border-top: 1px solid var(--line); padding-block: clamp(2.4rem, 6vw, 4.5rem); scroll-margin-top: 1rem; }
.section-heading { margin-bottom: 1.5rem; }
.project-list { display: grid; gap: .8rem; }
.project { display: grid; grid-template-columns: auto 1fr auto; gap: clamp(.85rem, 3vw, 2.3rem); align-items: center; border: 1px solid var(--line); border-radius: .9rem; padding: clamp(.9rem, 3vw, 1.8rem); text-decoration: none; background: #fbf9f0; transition: border-color .25s, transform .25s, background .25s; }
.project:hover { transform: translateY(-3px); border-color: var(--ink); background: #fffdf7; }
.project-icon { display: grid; place-items: center; border-radius: 22%; width: clamp(2.9rem, 10vw, 6.4rem); aspect-ratio: 1; font-size: clamp(1.65rem, 5vw, 3rem); color: var(--ink); background: var(--lilac); }
.project-icon-prototype { background: var(--acid); }
.project-icon-delivery { background: #f8dfbf; }
.project-copy p { margin: .55rem 0 0; color: var(--muted); }
.project-copy .project-kicker { margin: 0 0 .35rem; }
.project-arrow { align-self: start; font-size: 1.45rem; line-height: 1; }
.faq { display: grid; grid-template-columns: .82fr 1.18fr; gap: clamp(1rem, 5vw, 4rem); }
.about-copy p { max-width: 60ch; margin: 0; color: var(--muted); }
.about-copy p + p { margin-top: 1rem; }
.questions { border-top: 1px solid var(--line); }
details { border-bottom: 1px solid var(--line); }
summary { padding-block: 1rem; font-weight: 700; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; padding-inline: .3rem; font: 1.35rem/1 var(--mono); }
details[open] summary::after { content: "−"; }
details p { color: var(--muted); margin: 0 0 1rem; max-width: 58ch; }
.footer { border-top: 1px solid var(--line); padding-bottom: 2rem; font-size: .9rem; }
.subhero, .prose { padding-block: clamp(2.8rem, 8vw, 6.5rem); }
.case-hero h1 { font-size: clamp(2.2rem, 8.4vw, 7rem); overflow-wrap: anywhere; }
.prose h1 { font-size: clamp(2.35rem, 7vw, 5.5rem); margin-bottom: 1.3rem; overflow-wrap: anywhere; }
.prose h2 { font-size: 1.7rem; margin-top: 2rem; }
.prose p { max-width: 65ch; }

.cv-hero { display: grid; grid-template-columns: 1fr minmax(14rem, .45fr); gap: 2rem; align-items: end; }
.cv-hero .lede { max-width: 47ch; margin-bottom: 0; }
.cv-facts { padding: 1.15rem 1.35rem; border: 1px solid var(--line); border-radius: .9rem; background: #fbf9f0; }
.cv-facts p { margin: 0 0 .9rem; }
.cv-facts a, .cv-nav a { font-weight: 650; }
.cv-nav { display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; padding-block: 1rem; }
.timeline { list-style: none; margin: 0; padding: 0 0 0 1.35rem; border-inline-start: 1px solid var(--line); }
.timeline-item { position: relative; padding-bottom: 1.75rem; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before { content: ""; position: absolute; top: .2rem; left: -1.64rem; width: .55rem; aspect-ratio: 1; border: 1px solid var(--ink); border-radius: 50%; background: var(--acid); }
.timeline-item h3 { font-size: clamp(1.45rem, 3vw, 2.15rem); letter-spacing: -.045em; line-height: 1.12; }
.timeline-item p { margin: .5rem 0 0; }
.timeline-item .eyebrow { margin: 0 0 .45rem; }
.cv-role, .cv-roles { color: var(--muted); }
.cv-roles, .cv-certs { padding-inline-start: 1.2rem; }
.timeline-item details { scroll-margin-top: 1rem; }
.timeline-item details p { margin: 0 0 .9rem; }
.tutoring { background: #eaf1d4; border-radius: .65rem; padding: .85rem 1rem 1rem; margin-bottom: 1.35rem; }
.tutoring::before { top: 1rem; }
.cv-skills { display: grid; gap: 1rem; margin: 0; }
.cv-skills dt { font-weight: 700; }
.cv-skills dd { margin: 0; color: var(--muted); }

@media (max-width: 850px) {
  .shell { width: min(1180px, calc(100% - 3rem)); }
  .hero, .demo-section { grid-template-columns: 1fr; }
  h1 { font-size: clamp(4rem, 15vw, 7rem); }
  .hero-art-scene { width: min(71%, 19rem); }
}

@media (max-width: 540px) {
  .shell { width: calc(100% - 2rem); }
  .faq, .cv-hero { grid-template-columns: 1fr; }
  .project { grid-template-columns: auto 1fr; }
  .project-arrow { display: none; }
}

@media print {
  body { background: white; }
  .topbar, .footer, .cv-nav, .skip { display: none; }
  .cv { width: 100%; font-size: 10pt; }
  .cv-hero, .cv .faq { display: block; padding-block: 1rem; }
  .cv h1 { font-size: 28pt; }
  .cv h1 br { display: none; }
  .cv h1 em { margin-left: .15em; }
  .cv h2 { font-size: 16pt; margin-bottom: .65rem; }
  .cv h3 { font-size: 12pt; }
  .cv-facts { margin-top: .75rem; padding: 0; border: 0; background: white; }
  .timeline-item, .cv-skills div { break-inside: avoid; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button, .mark, .project { transition: none; }
  .hero-art-scene { transform: none; transition: none; }
  .project:hover, .wordmark:hover .mark { transform: none; }
}
