:root {
  --canvas: #0c0c0b;
  --panel: #151512;
  --ink: #0c0c0b;
  --text: #f2f0e7;
  --violet: #dcfd55;
  --muted: #babaae;
}
body { overflow-wrap: break-word; }
.nav { position: relative; z-index: 2; padding-block: 18px; }
.wordmark { letter-spacing: -.075em; }
.nav nav { font-weight: 500; }
.nav-contact { border-radius: 0; }
.hero {
  isolation: isolate;
  grid-template-columns: .91fr 1.09fr;
  gap: 0;
  min-height: min(820px, calc(100svh - 65px));
  padding-top: 60px;
  background: radial-gradient(ellipse at 71% 48%, #3d2426 0%, #191414 32%, transparent 62%);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: repeating-linear-gradient(0deg, #ffffff0c 0 1px, transparent 1px 5px);
  mask-image: linear-gradient(90deg, transparent, black 70%);
}
.hero-content { position: relative; z-index: 1; pointer-events: none; }
.hero-content .pill { pointer-events: auto; }
.hero-credit { font: 14px ui-monospace, monospace; color: var(--violet); letter-spacing: .06em; }
.hero h1 { font-size: clamp(74px, 12.4vw, 200px); line-height: .76; letter-spacing: -.105em; margin: .24em 0 .18em; }
.hero h1 span, .hero h1 em { display: block; width: max-content; }
.hero h1 em { font-size: .91em; letter-spacing: -.115em; color: var(--violet); padding-right: .15em; }
.summary { max-width: 30ch; }
.pill { border-radius: 0; padding: 12px 18px; }
.pill:hover { box-shadow: 4px 4px 0 #819137; }
.hero-foot { padding-top: 14px; border-top: 1px solid #ffffff33; letter-spacing: .07em; }
.hero-visual { margin: 0 5% 0 -4%; }
.lens-world { position: relative; aspect-ratio: 1; max-height: 66vh; }
.hero-screen {
  position: absolute;
  inset: 8% 9%;
  width: auto;
  aspect-ratio: auto;
  border-radius: 50%;
  border: 1px solid #ece4c88c;
  box-shadow: inset 0 0 56px #000, 0 0 58px #dcfd552b;
  --base: 0deg;
}
.hero-screen video { filter: saturate(.82) contrast(1.12); }
.hero-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  box-shadow: inset 0 0 55px #000b;
}
.screen-label {
  z-index: 1;
  inset: auto auto 14% 50%;
  transform: translateX(-50%);
  display: flex;
  width: max-content;
  gap: 10px;
  border: 1px solid #f2f0e770;
  padding: 10px 14px;
  background: #0c0c0bdc;
}
.hero-screen:hover .screen-label { color: var(--ink); background: var(--violet); }
.hero-screen:hover .screen-label span { color: currentColor; }
.lens-orbit {
  position: absolute;
  inset: 1% 0;
  border-radius: 50%;
  border: 1px solid #dffc5e70;
  transform: rotate(-23deg) scaleX(1.12) scaleY(.82);
}
.lens-orbit::before, .lens-orbit::after {
  content: "";
  position: absolute;
  inset: -6% 4%;
  border: 1px solid #f2f0e74d;
  border-radius: 50%;
  transform: rotate(34deg) scaleX(1.04);
}
.lens-orbit::after {
  inset: 10% -10%;
  border-color: #dffc5e70;
  transform: rotate(-16deg);
}
.lens-fragment {
  position: absolute;
  z-index: 2;
  width: 23%;
  aspect-ratio: 5/4;
  pointer-events: none;
  background-position: center;
  background-size: cover;
  border: 1px solid #e3ebc5aa;
  box-shadow: 0 10px 30px #0008;
  translate: var(--shift-x, 0) var(--shift-y, 0);
  transition: translate .52s cubic-bezier(.18,.74,.27,1);
  animation: drift 7s ease-in-out infinite alternate;
}
.lens-fragment-top { top: 4%; right: -1%; background-image: url("media/trapped-in-the-desert.jpg"); --angle: 13deg; }
.lens-fragment-bottom { bottom: 5%; left: 2%; background-image: url("media/bts-photo-1725.webp"); --angle: -12deg; animation-delay: -3s; }
@keyframes drift {
  from { transform: translateY(-8px) rotate(calc(var(--angle) - 3deg)); }
  to { transform: translateY(8px) rotate(calc(var(--angle) + 3deg)); }
}
.work { padding-top: clamp(40px, 7vw, 104px); }
.work > section { --chapter: var(--violet); }
#photos { --chapter: #f3a5d3; }
#personal { --chapter: #b9bcff; }
#bts { --chapter: #ffb97c; }
.section-head {
  align-items: end;
  border-bottom: 1px solid #ffffff44;
  padding-bottom: 22px;
  margin-bottom: clamp(22px, 4vw, 46px);
}
.section-head h2, .about h2, footer h2 { font: italic 400 clamp(46px, 9.5vw, 142px)/.84 Georgia, serif; letter-spacing: -.09em; }
.section-head h2 { color: var(--chapter); }
.section-head p { font-size: 14px; }
.bts-heading p { margin-block: 20px 0; }
.grid { gap: clamp(18px, 3vw, 44px) clamp(12px, 2vw, 24px); }
.project-image { border: 1px solid #ffffff30; }
.project-image::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(140deg, transparent 35%, #ffffff46 50%, transparent 65%);
  transform: translateX(-120%);
  transition: transform .7s;
}
.project:is(:hover, :focus-visible) .project-image::after { transform: translateX(120%); }
.play { background: var(--chapter); }
.project-info small { color: var(--muted); }
.project-info { border-bottom-color: #ffffff33; }
.photo-grid { gap: clamp(10px, 2vw, 24px); }
.photo, .bts-photo { border: 1px solid #ffffff33; }
.bts-photo img { transition: transform .45s; }
.bts-photo:is(:hover, :focus-visible) img { transform: scale(1.09); }
.about { padding-block: clamp(52px, 10vw, 146px); }
footer { padding-block: clamp(47px, 8vw, 110px); }
.links a { border: 1px solid currentColor; padding: 10px 14px; }
dialog[open] { animation: open-frame .34s cubic-bezier(.18,.74,.27,1) both; }
@keyframes open-frame {
  from { opacity: 0; transform: translateY(12px) scale(.96); clip-path: inset(10% 0); }
  to { opacity: 1; transform: none; clip-path: inset(0); }
}
.intro { animation: iris-intro 1.85s cubic-bezier(.65,0,.3,1) both; }
.intro-line { animation-duration: .85s; }
.page { animation: none; }
.hero-content>* { animation-delay: calc(.73s + var(--delay,0s)); }
.hero-visual { animation-delay: .62s; }
@keyframes iris-intro {
  0%, 48% { clip-path: circle(100% at 66% 45%); }
  100% { clip-path: circle(0 at 66% 45%); visibility: hidden; }
}
.section-transition[data-section] {
  background: #0c0c0b;
  color: var(--chapter, var(--violet));
  animation: iris-cut 1.12s cubic-bezier(.65,0,.3,1) both;
}
.section-transition[data-section="photos"] { --chapter: #f3a5d3; animation-name: photo-aperture; }
.section-transition[data-section="personal"] { --chapter: #b9bcff; animation-name: diagonal-cut; }
.section-transition[data-section="bts"] { --chapter: #ffb97c; animation-name: film-gate; }
.section-transition[data-section] .section-transition-title {
  z-index: 1;
  font: italic 400 clamp(42px, 11vw, 160px)/.9 Georgia, serif;
  max-width: 88vw;
  text-align: center;
  animation: personal-title .8s .08s both;
}
.transition-ring {
  position: absolute;
  width: min(80vw, 80vh);
  aspect-ratio: 1;
  border: 1px solid currentColor;
  border-radius: 50%;
  box-shadow: 0 0 0 2vw #ffffff13, 0 0 0 5vw #ffffff13;
  animation: orbit-cut 1.12s both;
}
@keyframes iris-cut {
  0% { clip-path: ellipse(0 0 at 70% 47%); }
  39%, 64% { clip-path: ellipse(145% 105% at 70% 47%); }
  100% { clip-path: ellipse(0 0 at 20% 55%); }
}
@keyframes diagonal-cut {
  0% { clip-path: polygon(0 0, 0 0, 0 0, 0 0); }
  40%, 62% { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); }
  100% { clip-path: polygon(100% 100%, 100% 100%, 100% 100%, 100% 100%); }
}
@keyframes orbit-cut {
  from { transform: rotate(-36deg) scale(.4,.15); }
  to { transform: rotate(32deg) scale(1.6,.85); }
}
@media (min-width: 761px) {
  #videos .grid { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  #videos .project { grid-column: span 4; }
  #videos .project:nth-child(1) { grid-column: span 7; }
  #videos .project:nth-child(2) { grid-column: span 5; align-self: end; }
  #videos .project:nth-child(1) .project-image { aspect-ratio: 1.6; }
  #videos .project:nth-child(3n+5) { margin-top: clamp(10px, 3vw, 44px); }
  #personal > .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #personal > .grid .project:first-child { grid-column: span 2; }
  #personal > .grid .project:first-child .project-image { aspect-ratio: 2.05; }
}
@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; gap: 14px; background-position: 0 120px; }
  .hero h1 { font-size: clamp(74px, 20vw, 140px); }
  .hero-visual { margin: 0 auto; width: min(92%, 490px); }
  .lens-world { max-height: none; }
  .section-head h2 { font-size: clamp(44px, 10vw, 76px); }
  .section-head p { font-size: 12px; }
  .screen-label { font-size: 10px; }
  .hero-foot { font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .lens-fragment { translate: none; transform: rotate(var(--angle)); }
}
