:root {
  --bg: #FFFFFF;
  --bg2: #F7F7F5;
  --bg3: #F0F0ED;
  --ink: #171717;
  --mute: #6b6b6b;
  --line: #E5E5E2;
  --lime: #C6FF4D;
  --lime2: #A8E63D;
  --pad: clamp(20px,5vw,72px);
  color-scheme: light;
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top,0px);
  padding-bottom: env(safe-area-inset-bottom,0px);
}

*,
*::before,
*::after {
  box-sizing: inherit;
  margin: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--f,Manrope),Inter,system-ui,sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  font-size: clamp(16px,1.1vw,18px);
  overflow-x: hidden;
}

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

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 4px;
  border-radius: 2px;
}

.wrap {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 var(--pad);
}

.meta {
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--mute);
  font-weight: 500;
}

mark {
  background: linear-gradient(var(--lime),var(--lime)) 0 72%/0% 78% no-repeat;
  color: inherit;
  padding: 0 .08em;
  transition: background-size 1s cubic-bezier(.6,0,.2,1) .45s;
}

.in mark {
  background-size: 100% 78%;
}

.hero mark {
  animation: sw 1s cubic-bezier(.6,0,.2,1) 1.1s forwards;
}

@keyframes sw {
  to {
    background-size: 100% 78%;
  }
}

/* nav */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

header::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top,0px);
  background: rgba(255,255,255,.88);
  z-index: 60;
}

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 24px;
}

.logo {
  font-weight: 800;
  letter-spacing: -.02em;
}

.links {
  display: flex;
  gap: 32px;
  align-items: center;
}

.ul {
  position: relative;
  display: inline-block;
  padding: 2px 0;
  transition: color .25s;
}

.ul::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 100%;
  background: var(--lime2);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .35s cubic-bezier(.2,.7,.2,1);
}

.ul:hover::after,
.ul.on::after {
  transform: scaleX(1);
  transform-origin: left;
}

.ul:not(.on) {
  color: #444;
}

.ul:hover,
.ul.on {
  color: var(--ink);
}

.avail {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 0 rgba(168,230,61,.6);
  animation: pulse 2.4s infinite;
  flex: none;
}

@keyframes pulse {
  70% {
    box-shadow: 0 0 0 8px rgba(168,230,61,0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(168,230,61,0);
  }
}

.burger {
  display: none;
  background: none;
  border: 0;
  width: 44px;
  height: 44px;
  cursor: pointer;
  position: relative;
}

.burger span {
  position: absolute;
  left: 11px;
  right: 11px;
  height: 2px;
  background: var(--ink);
  transition: transform .35s,top .35s,opacity .2s;
}

.burger span:nth-child(1) {
  top: 18px;
}

.burger span:nth-child(2) {
  top: 25px;
}

.burger[aria-expanded=true] span:nth-child(1) {
  top: 21px;
  transform: rotate(45deg);
}

.burger[aria-expanded=true] span:nth-child(2) {
  top: 21px;
  transform: rotate(-45deg);
}

.menu {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 40;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--pad);
  gap: 8px;
  clip-path: inset(0 0 100% 0);
  visibility: hidden;
  transition: clip-path .55s cubic-bezier(.7,0,.2,1),visibility 0s .55s;
}

.menu.open {
  clip-path: inset(0);
  visibility: visible;
  transition: clip-path .55s cubic-bezier(.7,0,.2,1);
}

.menu a {
  font-size: clamp(2.4rem,11vw,4rem);
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1.15;
}

.menu .avail {
  margin-top: 24px;
}

/* hero */
.hero {
  position: relative;
  min-height: calc(100svh - 64px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(56px,11vh,130px) var(--pad) 48px;
}

h1 {
  font-size: clamp(2.6rem,8.6vw,8.2rem);
  line-height: 1;
  letter-spacing: -.055em;
  font-weight: 800;
  max-width: 14ch;
}

.line {
  display: block;
  overflow: hidden;
  padding-bottom: .08em;
}

.line>span {
  display: block;
  transform: translateY(110%);
  animation: up .9s cubic-bezier(.2,.7,.2,1) forwards;
}

.line:nth-child(2)>span {
  animation-delay: .12s;
}

.line:nth-child(3)>span {
  animation-delay: .24s;
}

@keyframes up {
  to {
    transform: none;
  }
}

.fade {
  opacity: 0;
  transform: translateY(14px);
  animation: fin .8s cubic-bezier(.2,.7,.2,1) forwards;
}

@keyframes fin {
  to {
    opacity: 1;
    transform: none;
  }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(48px,8vw,128px);
  margin-top: clamp(72px,13vh,150px);
  align-items: end;
}

.hero-grid p.lead {
  font-size: clamp(1.05rem,1.6vw,1.4rem);
  max-width: 30ch;
  line-height: 1.45;
}

.ctas {
  display: flex;
  gap: 36px;
  flex-wrap: wrap;
  margin-top: 36px;
  font-weight: 700;
  font-size: .85rem;
  letter-spacing: .08em;
}

.arr {
  display: inline-block;
  transition: transform .3s;
}

a:hover>.arr {
  transform: translate(3px,-3px);
}

a.dn:hover>.arr {
  transform: translate(3px,3px);
}

.info {
  border-top: 1px solid var(--line);
  padding-top: 24px;
  display: grid;
  gap: 16px;
  color: var(--mute);
  font-size: .95rem;
}

.scroll {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 72px;
}

.scroll i {
  width: 1px;
  height: 40px;
  background: var(--line);
  position: relative;
  overflow: hidden;
}

.scroll i::after {
  content: "";
  position: absolute;
  left: 0;
  top: -50%;
  width: 1px;
  height: 50%;
  background: var(--ink);
  animation: sc 2s infinite;
}

@keyframes sc {
  to {
    top: 100%;
  }
}

/* sections */
section {
  padding: clamp(80px,14vw,200px) 0;
}

.alt {
  background: var(--bg2);
}

.alt3 {
  background: var(--bg3);
}

.head {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 32px;
  margin-bottom: clamp(48px,8vw,112px);
  border-top: 1px solid var(--line);
  padding-top: 20px;
}

h2 {
  font-size: clamp(2rem,5.4vw,5rem);
  line-height: 1.02;
  letter-spacing: -.045em;
  font-weight: 800;
}

.sub {
  color: var(--mute);
  margin-top: 20px;
  max-width: 44ch;
}

.rv {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .9s cubic-bezier(.2,.7,.2,1),transform .9s cubic-bezier(.2,.7,.2,1);
}

.rv.in {
  opacity: 1;
  transform: none;
}

/* projects */
.proj {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: clamp(24px,5vw,80px);
  align-items: center;
  padding: clamp(32px,5vw,64px) 0;
  border-top: 1px solid var(--line);
}

.proj:nth-child(even) .shot {
  order: 2;
}

.shot {
  aspect-ratio: 4/3;
  overflow: hidden;
  position: relative;
  background: var(--bg3);
  display: block;
}

.shot .art {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: clamp(16px,3vw,32px);
  font-size: clamp(2rem,6vw,5.5rem);
  font-weight: 800;
  letter-spacing: -.06em;
  line-height: .9;
  transition: transform .9s cubic-bezier(.2,.7,.2,1);
}

.proj:hover .art {
  transform: scale(1.05);
}

.shot .tag {
  position: absolute;
  top: 16px;
  left: 16px;
}

.pn {
  font-size: clamp(1.6rem,3vw,2.6rem);
  letter-spacing: -.035em;
  font-weight: 800;
  line-height: 1.1;
  margin: 12px 0 14px;
  display: inline-block;
  background: linear-gradient(var(--lime),var(--lime)) 0 100%/0 .35em no-repeat;
  transition: background-size .5s;
}

.proj:hover .pn {
  background-size: 100% .35em;
}

.stack {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin: 18px 0 24px;
  color: var(--mute);
  font-size: .9rem;
}

.row {
  display: flex;
  gap: 28px;
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: .08em;
}

/* about */
.two {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: clamp(32px,7vw,120px);
}

.about p {
  font-size: clamp(1.15rem,2vw,1.7rem);
  line-height: 1.4;
  letter-spacing: -.015em;
  max-width: 30ch;
}

.list li {
  list-style: none;
  display: flex;
  justify-content: space-between;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  font-weight: 600;
  font-size: 1.1rem;
  transition: padding .3s;
}

.list li:first-child {
  border-top: 1px solid var(--line);
}

.list li:hover {
  padding-left: 10px;
}

.list li::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lime2);
  align-self: center;
  opacity: 0;
  transition: opacity .3s;
}

.list li:hover::after {
  opacity: 1;
}

/* toolkit */
.tk {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: clamp(24px,4vw,64px);
}

.tk ul {
  margin-top: 16px;
}

.tk li {
  list-style: none;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -.02em;
  transition: color .25s,transform .25s;
}

.tk li:hover {
  transform: translateX(6px);
}

.tk li:hover::before {
  background: var(--lime2);
}

.tk li::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--line);
  margin-right: 12px;
  vertical-align: middle;
  transition: background .25s;
}

/* currently */
.tl>div {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 32px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
}

.tl>div:last-child {
  border-bottom: 1px solid var(--line);
}

.tl .meta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.tl .meta::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lime);
  border: 1px solid var(--lime2);
}

.tl p {
  font-size: clamp(1.1rem,2vw,1.6rem);
  letter-spacing: -.02em;
  line-height: 1.35;
  max-width: 36ch;
}

/* contact */
.contact h2 {
  font-size: clamp(2.6rem,10vw,9.5rem);
  letter-spacing: -.06em;
  line-height: .95;
  text-transform: uppercase;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--lime);
  color: var(--ink);
  padding: 20px 36px;
  border-radius: 999px;
  font-weight: 800;
  letter-spacing: .06em;
  font-size: .9rem;
  margin-top: 40px;
  transition: background .3s,transform .25s cubic-bezier(.2,.7,.2,1);
  will-change: transform;
}

.btn:hover {
  background: var(--lime2);
}

.btn:hover .arr {
  transform: translate(3px,-3px);
}

.clinks {
  display: flex;
  gap: clamp(20px,4vw,48px);
  flex-wrap: wrap;
  margin-top: clamp(48px,8vw,96px);
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-weight: 600;
}

footer {
  border-top: 1px solid var(--line);
  padding: 28px 0;
  color: var(--mute);
  font-size: .85rem;
}

footer .wrap {
  display: flex;
  justify-content: space-between;
  gap: 16px 32px;
  flex-wrap: wrap;
  align-items: center;
}

footer a:hover {
  color: var(--ink);
}

footer .soc {
  display: flex;
  gap: 20px;
}

.fonts {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
}

.fonts button {
  font: inherit;
  font-size: .8rem;
  background: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 14px;
  min-height: 36px;
  color: var(--mute);
  cursor: pointer;
  transition: background .25s,color .25s,border-color .25s;
}

.fonts button:hover {
  color: var(--ink);
  border-color: var(--ink);
}

.fonts button[aria-pressed=true] {
  background: var(--lime);
  border-color: var(--lime);
  color: var(--ink);
}

.top {
  display: inline-flex;
  gap: 8px;
  align-items: center;
}

.top:hover .dot {
  animation: none;
}

/* typing */
.type {
  min-height: 1.6em;
  white-space: nowrap;
  font-size: clamp(1.3rem,2.4vw,2rem);
  font-weight: 700;
  letter-spacing: -.03em;
  margin-bottom: 18px;
  line-height: 1.4;
}

.cur {
  display: inline-block;
  width: 3px;
  height: 1em;
  background: var(--lime);
  box-shadow: 0 0 0 1px rgba(23,23,23,.12);
  margin-left: 4px;
  vertical-align: -.12em;
  animation: bl 1s steps(1) infinite;
}

@keyframes bl {
  50% {
    opacity: 0;
  }
}

/* cards */
.card {
  border: 1px solid var(--line);
  background: var(--bg);
  padding: 14px 16px;
  display: grid;
  gap: 6px;
  color: var(--ink);
  transition: border-color .3s,background .3s;
}

.card .meta {
  display: flex;
  align-items: center;
  gap: 8px;
}

a.card:hover {
  border-color: var(--ink);
  background: var(--bg2);
}

.cy {
  position: relative;
  height: 1.5em;
  overflow: hidden;
  font-weight: 700;
  font-size: 1.05rem;
}

.cy span {
  position: absolute;
  left: 0;
  top: 0;
  transform: translateY(100%);
  opacity: 0;
  transition: transform .6s cubic-bezier(.2,.7,.2,1),opacity .6s;
}

.cy span.on {
  transform: none;
  opacity: 1;
}

.cy span.out {
  transform: translateY(-100%);
}

.card small {
  color: var(--mute);
  font-size: .9rem;
}

.float {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.fc {
  position: absolute;
  right: var(--rt);
  top: var(--tp);
  pointer-events: auto;
  opacity: 0;
  animation: fin .9s cubic-bezier(.2,.7,.2,1) var(--dl2) forwards;
  transform: translate3d(calc(var(--px,0)*var(--d)*1px),calc(var(--py,0)*var(--d)*1px),0);
  transition: transform .7s cubic-bezier(.2,.7,.2,1);
}

.fi {
  animation: dr 7s ease-in-out infinite alternate;
  animation-delay: var(--dl2);
}

.fi .meta::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lime);
}

@keyframes dr {
  to {
    transform: translateY(-8px);
  }
}

/* marquee */
.mq {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  white-space: nowrap;
}

.mq-t {
  display: flex;
  width: max-content;
  animation: mq 30s linear infinite;
}

.mq:hover .mq-t {
  animation-play-state: paused;
}

.mq ul {
  display: flex;
  list-style: none;
  padding: 0;
}

.mq li {
  padding: 22px 0;
  font-size: clamp(1.4rem,3.6vw,3rem);
  font-weight: 800;
  letter-spacing: -.03em;
  color: #8a8a85;
}

.mq li::after {
  content: "·";
  color: var(--lime2);
  margin: 0 .6em;
}

@keyframes mq {
  to {
    transform: translateX(-50%);
  }
}

/* text reveals */
.m {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding-bottom: .1em;
  margin-bottom: -.1em;
}

.m>span {
  display: inline-block;
  transform: translateY(105%);
  transition: transform .9s cubic-bezier(.2,.7,.2,1) var(--dl,0ms);
}

.in .m>span {
  transform: none;
}

h2.rv {
  opacity: 1;
  transform: none;
}

.wd {
  opacity: .2;
  transition: opacity .3s;
}

.wd.on {
  opacity: 1;
}

/* labels */
.head .meta::before {
  content: "";
  display: inline-block;
  width: 0;
  height: 2px;
  background: var(--lime2);
  vertical-align: middle;
  transition: width .7s .2s,margin .7s .2s;
}

.in .meta::before {
  width: 18px;
  margin-right: 10px;
}

/* projects */
.shot::after {
  content: "VIEW PROJECT ↗";
  position: absolute;
  right: 16px;
  bottom: 16px;
  background: var(--lime);
  color: var(--ink);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  padding: 8px 12px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .3s,transform .3s;
}

.proj:hover .shot::after,
.shot:focus-visible::after {
  opacity: 1;
  transform: none;
}

.pn {
  transition: transform .35s cubic-bezier(.2,.7,.2,1),background-size .5s;
}

.pn::after {
  content: "↗";
  display: inline-block;
  margin-left: 10px;
  color: var(--lime2);
  opacity: 0;
  transform: translate(-6px,6px);
  transition: opacity .3s,transform .3s;
}

.proj:hover .pn {
  transform: translateY(-4px);
}

.proj:hover .pn::after {
  opacity: 1;
  transform: none;
}

.proj .stack,
.proj .meta {
  transition: color .3s;
}

.proj:hover .stack,
.proj:hover .meta {
  color: var(--ink);
}

.proj:active .art {
  transform: scale(1.04);
}

@media(hover:none) {
  .shot::after,
  .pn::after {
    opacity: 1;
    transform: none;
  }
}

/* cta */
.btn {
  transition: background .3s,transform .25s cubic-bezier(.2,.7,.2,1),padding .3s,box-shadow .3s;
}

.btn:hover {
  padding-left: 40px;
  padding-right: 32px;
  box-shadow: inset 0 0 0 1px var(--ink);
}

.btn:hover .arr {
  transform: translateX(5px);
}

@media(max-width:1023px) {
  .float {
    position: static;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 28px;
  }
  .fc {
    position: static;
    transform: none;
  }
}

@media(max-width:860px) {
  .links,
  .nav-av {
    display: none;
  }
  .burger {
    display: block;
  }
  .hero-grid,
  .head,
  .proj,
  .two,
  .tk,
  .tl>div {
    grid-template-columns: 1fr;
  }
  .proj:nth-child(even) .shot {
    order: 0;
  }
  .hero {
    min-height: auto;
  }
  .head {
    gap: 12px;
  }
  .row a,
  .clinks a,
  .ctas a {
    padding: 10px 0;
  }
}

@media(prefers-reduced-motion:reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms!important;
    animation-delay: 0s!important;
    transition-duration: .01ms!important;
    scroll-behavior: auto!important;
  }
  .rv,
  .fade,
  .line>span,
  .fc {
    opacity: 1;
    transform: none;
  }
  .m>span {
    transform: none;
  }
  .wd {
    opacity: 1;
  }
  .cur,
  .fi,
  .mq-t {
    animation: none!important;
  }
  .fi .meta::before {
    background: var(--lime);
  }
  mark {
    background-size: 100% 78%;
  }
  .mq ul[aria-hidden] {
    display: none;
  }
}
