@font-face {
  font-family: DM Sans;
  src: url("assets/dm-sans.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 1000;
  font-display: swap;
}
:root {
  font-family: "DM Sans", sans-serif;
  color-scheme: dark;
  --bg: #110f18;
  --ink: #f7f3ef;
  --muted: #c6becd;
  --line: #ffffff30;
  --pink: #ff93c1;
  color: var(--ink);
  background: var(--bg);
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { color: inherit; }
[hidden] { display: none !important; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 2px solid var(--pink); outline-offset: 4px; }
.skip { position: fixed; left: 1rem; top: -8rem; background: var(--bg); padding: .75rem; z-index: 5; }
.skip:focus { top: 1rem; }
.wrap { width: min(100% - 5rem, 82rem); margin-inline: auto; }
.top, .footer { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.top { min-height: 4.75rem; border-bottom: 1px solid var(--line); position: relative; z-index: 1; }
.wordmark { font-weight: 950; font-size: 1.375rem; letter-spacing: -.085em; white-space: nowrap; }
.wordmark span, h1 b { color: var(--pink); }
nav { display: flex; align-items: center; gap: clamp(.8rem, 2.5vw, 2rem); font-size: .875rem; font-weight: 700; }
nav a, .footer a { padding-block: .75rem; }
nav a:hover, .footer a:hover { color: var(--pink); }
.contact { border: 1px solid var(--line); border-radius: 2rem; padding: .55rem 1rem; }

.showcase {
  --light: 243, 80, 156;
  --light-secondary: 59, 79, 221;
  --pointer-x: 34%;
  --pointer-y: 48%;
  position: relative;
  isolation: isolate;
  overflow: clip;
  border-bottom: 1px solid var(--line);
}
.light-field {
  position: absolute;
  z-index: -1;
  pointer-events: none;
  inset: 0;
  overflow: hidden;
  background:
    radial-gradient(ellipse at var(--pointer-x) var(--pointer-y), rgba(var(--light), .19), transparent 43%),
    radial-gradient(ellipse at 88% 86%, rgba(var(--light-secondary), .15), transparent 50%),
    #100f1a;
}
.light-field span {
  position: absolute;
  inset: -30% -8%;
  opacity: .66;
  background: repeating-linear-gradient(110deg, transparent 0 14%, rgba(var(--light), .07) 17%, rgba(var(--light), .21) 18%, transparent 22% 30%);
  mask-image: radial-gradient(ellipse at 42% 55%, black 0 8%, transparent 65%);
  transform: translate3d(-8%, 0, 0) rotate(-5deg);
}
.light-field span:nth-child(2) { transform: scale(1.3) rotate(17deg); opacity: .42; }
.light-field span:nth-child(3) { transform: translate3d(25%, 12%, 0) rotate(25deg); opacity: .32; }
.showcase-inner {
  display: grid;
  grid-template-columns: minmax(0, .77fr) minmax(0, 1.23fr);
  gap: clamp(1.6rem, 5vw, 5rem);
  align-items: center;
  padding-block: clamp(2.5rem, 6vw, 6rem);
}
.intro { position: relative; }
.identity { color: var(--pink); font-weight: 750; margin-bottom: 1.5rem; font-size: clamp(.9rem, 1.2vw, 1.125rem); }
h1 { font-size: clamp(3.6rem, 6.25vw, 6.75rem); line-height: .86; font-weight: 880; letter-spacing: -.09em; }
h1 span { font-weight: 620; }
h1 b { font-weight: inherit; }
.index-link { display: inline-flex; align-items: center; gap: .6rem; color: var(--muted); margin-top: 2rem; border-bottom: 1px solid var(--line); padding-bottom: .4rem; }
.index-link:hover { color: var(--ink); }
.index-link span { color: var(--pink); }
.portfolio, .portfolio-link { min-width: 0; }
.portfolio-link { display: block; }
.other-work { padding-top: clamp(3rem, 7vw, 6rem); }
.other-work > h2 { font-size: clamp(2.5rem, 5vw, 4.75rem); letter-spacing: -.075em; line-height: 1; margin-bottom: 1.3rem; }
.portfolio-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.5rem, 3.5vw, 3.5rem); }
.frame {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 0;
  aspect-ratio: 1.6;
  background: #0a0910;
  border: 1px solid #ffffff38;
  box-shadow: 0 1.5rem 4rem #0005;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.portfolio-link:hover .frame, .portfolio-link:focus-visible .frame {
  border-color: var(--pink);
  box-shadow: 0 .75rem 2.5rem #a246792e;
}
.zoom {
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  padding: .35rem 0;
  color: var(--muted);
  cursor: pointer;
  font-size: .875rem;
  margin-top: .55rem;
}
.zoom:hover { color: var(--ink); }
.portfolio-label { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: 1rem; }
.portfolio-label h2, .portfolio-label h3 { font-size: clamp(1.45rem, 3vw, 2.6rem); letter-spacing: -.06em; line-height: 1; }
.portfolio-label p { color: var(--muted); line-height: 1.45; margin-top: .5rem; }
.open-site {
  color: var(--bg);
  background: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 2rem;
  padding: .7rem .95rem;
  font-weight: 800;
  font-size: .875rem;
  white-space: nowrap;
}
.portfolio-link:hover .open-site, .portfolio-link:focus-visible .open-site { background: var(--pink); border-color: var(--pink); }
.lightbox {
  width: min(94vw, 88rem);
  max-width: none;
  max-height: 92dvh;
  overflow: auto;
  padding: 1rem;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink);
}
.lightbox::backdrop { background: #08060bee; }
.lightbox form { display: flex; justify-content: end; padding-bottom: .5rem; }
.lightbox button { border: 1px solid var(--line); background: transparent; padding: .5rem .85rem; border-radius: 2rem; cursor: pointer; }
.lightbox figure { margin: 0; }
.lightbox img { display: block; max-width: 100%; max-height: 74dvh; margin-inline: auto; object-fit: contain; }
.lightbox figcaption { color: var(--muted); text-align: center; margin-top: .6rem; }

.index { padding-block: clamp(3rem, 7vw, 6rem); }
.index-intro, .filter-bar { display: flex; align-items: end; justify-content: space-between; gap: 1rem; }
.index-intro { margin-bottom: 1.25rem; }
.index h2 { font-size: clamp(2.75rem, 6vw, 5.5rem); letter-spacing: -.08em; line-height: 1; }
form label { display: block; margin-bottom: .25rem; font-size: .875rem; font-weight: 700; }
input { border: 1px solid var(--line); background: #1d1926; color: var(--ink); border-radius: .25rem; padding: .65rem .8rem; width: min(16rem, 100%); }
input::placeholder { color: var(--muted); }
.filter-bar { margin-bottom: .75rem; align-items: center; }
.filters { display: flex; flex-wrap: wrap; gap: .35rem; }
.filters button { border: 1px solid var(--line); background: transparent; padding: .55rem .85rem; border-radius: 2rem; cursor: pointer; font-size: .875rem; font-weight: 700; }
.filters button[aria-pressed="true"] { background: var(--pink); border-color: var(--pink); color: var(--bg); }
.filters button:hover:not([aria-pressed="true"]) { border-color: var(--pink); }
#result-count { white-space: nowrap; color: var(--muted); font-size: .875rem; }
#empty { padding: 2rem 0; border-block: 1px solid var(--line); }
.projects { list-style: none; margin: 0; padding: 0; }
.project { border-top: 1px solid var(--line); }
.project:last-child { border-bottom: 1px solid var(--line); }
.project-row { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) 6.5rem; gap: 1rem; align-items: center; padding: 1rem .125rem; }
a.project-row:hover, a.project-row:focus-visible { background: #24192c; }
.project-row strong { font-size: clamp(1.05rem, 2.25vw, 1.5rem); line-height: 1.15; letter-spacing: -.04em; }
.project-detail { color: var(--muted); line-height: 1.35; }
.project-status { justify-self: end; font-size: .875rem; color: var(--pink); font-weight: 750; text-align: right; }
div.project-row .project-status { color: var(--muted); }
.footer { border-top: 1px solid var(--line); padding-block: 1rem; }
@media (max-width: 62rem) {
  .wrap { width: calc(100% - 3rem); }
  .showcase-inner { grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr); gap: 1.5rem; }
  h1 { font-size: clamp(3rem, 6.15vw, 5rem); }
}
@media (max-width: 48rem) {
  .showcase-inner, .portfolio-pair { grid-template-columns: minmax(0, 1fr); }
  .showcase-inner { gap: 1.6rem; padding-block: 2.5rem; }
  h1 { font-size: clamp(3.3rem, 11vw, 5.75rem); }
  .identity { margin-bottom: 1rem; }
  .index-link { margin-top: 1.1rem; }
}
@media (max-width: 36rem) {
  .wrap { width: calc(100% - 1.5rem); }
  .top { min-height: 4rem; gap: .45rem; }
  nav { gap: .6rem; flex-wrap: wrap; justify-content: end; }
  .contact { padding-inline: .6rem; }
  .top .contact { display: none; }
  .portfolio-label { flex-wrap: wrap; gap: .8rem; }
  .portfolio-label p { font-size: .92rem; }
  .index-intro { flex-direction: column; align-items: stretch; }
  .filter-bar { align-items: start; flex-direction: column; gap: .5rem; }
  .project-row { grid-template-columns: minmax(0, 1fr) 5.5rem; gap: .25rem .6rem; }
  .project-detail { grid-column: 1; grid-row: 2; font-size: .875rem; }
  .project-status { grid-row: 1 / 3; grid-column: 2; }
}
@media (prefers-reduced-motion: no-preference) {
  .intro { animation: arrive .6s cubic-bezier(.2,.7,.3,1) both; }
  @keyframes arrive {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: translateY(0); }
  }
  .light-field span { animation: bands 13s ease-in-out 2 alternate; }
  .light-field span:nth-child(2) { animation-duration: 17s; }
  .light-field span:nth-child(3) { animation-duration: 21s; }
  @keyframes bands {
    50% { transform: translate3d(9%, -5%, 0) scale(1.13) rotate(9deg); }
  }
}
@media (prefers-reduced-motion: reduce) {
  .frame { transition: none; }
}
