@font-face {
  font-family: "Space Grotesk";
  src: url("/fonts/space-grotesk.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --bg: #0e0d12;
  --bg-2: #17151d;
  --line: #2a2733;
  --text: #e9e6ef;
  --muted: #a7a1b3;
  --violet: #9b7bd6;
  --violet-deep: #6a4187;
  --gray: #7d7b80;
  --focus: #c4b0ff;
  --display: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 76rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 1.0625rem/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--violet); text-underline-offset: 0.18em; }
a:hover { color: #fff; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.08; letter-spacing: -0.02em; margin: 0 0 0.6rem; color: #fff; }
h1 { font-size: clamp(2.6rem, 7vw, 5rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.25rem); }
p { margin: 0 0 1rem; }

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

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 1rem; top: 1rem; z-index: 10; background: #fff; color: var(--bg); padding: 0.5rem 0.8rem; }

/* header */
.top { position: sticky; top: 0; z-index: 5; background: rgba(14, 13, 18, 0.88); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.25rem; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 0.7rem; color: #fff; text-decoration: none; font-family: var(--display); font-weight: 600; font-size: 1.2rem; letter-spacing: -0.01em; }
.brand img { width: 2.6rem; height: auto; }
.top nav { display: flex; gap: clamp(0.9rem, 2.5vw, 1.8rem); flex-wrap: wrap; }
.top nav a { color: var(--muted); text-decoration: none; font-family: var(--display); font-weight: 500; font-size: 1rem; padding: 0.4rem 0; }
.top nav a:hover { color: #fff; }
.top nav a[aria-current="page"] { color: #fff; box-shadow: inset 0 -2px 0 var(--violet); }

.kicker { font-family: var(--display); text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.78rem; font-weight: 600; color: var(--violet); margin: 0 0 0.8rem; }
.lede { font-size: clamp(1.1rem, 1.8vw, 1.3rem); color: var(--muted); max-width: 40rem; }

.btn { display: inline-block; font-family: var(--display); font-weight: 600; text-decoration: none; padding: 0.8rem 1.25rem; border-radius: 999px; background: var(--violet); color: #120f18; margin: 0 0.5rem 0.5rem 0; }
.btn:hover { background: #fff; color: #120f18; }
.btn.ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.btn.ghost:hover { box-shadow: inset 0 0 0 1px #fff; }

/* hero */
.hero { padding: clamp(2.5rem, 7vw, 5.5rem) 0 clamp(2rem, 5vw, 4rem); background: radial-gradient(60rem 30rem at 85% 20%, rgba(106, 65, 135, 0.32), transparent 70%); }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero-art .zoom { display: block; border-radius: 14px; overflow: hidden; box-shadow: 0 30px 80px -30px rgba(155, 123, 214, 0.45); }
.cta { margin-top: 1.6rem; }

/* sections */
.block { padding: clamp(2.5rem, 6vw, 4.5rem) var(--gutter); border-top: 1px solid var(--line); }
.page-head { padding-top: clamp(2.5rem, 6vw, 4.5rem); padding-bottom: 1.5rem; }
.page-head + .block { border-top: 0; padding-top: 1rem; }
.sec-head { margin-bottom: 1.8rem; max-width: 44rem; }
.sec-text { color: var(--muted); }
.jump { display: flex; gap: 1.25rem; flex-wrap: wrap; font-family: var(--display); font-weight: 500; }
.more { margin-top: 1.8rem; font-family: var(--display); font-weight: 600; }

/* galleries */
.grid { columns: 3 17rem; column-gap: 1.25rem; }
.grid.tight { columns: 2 14rem; }
.grid.tight.n1 { columns: 1; max-width: 30rem; }
.piece { break-inside: avoid; margin: 0 0 1.25rem; }
.zoom { display: block; border-radius: 10px; overflow: hidden; background: var(--bg-2); }
.zoom img { width: 100%; transition: transform 0.4s ease; }
.zoom:hover img { transform: scale(1.03); }
@media (prefers-reduced-motion: reduce) { .zoom img { transition: none; } .zoom:hover img { transform: none; } }
figcaption { padding: 0.6rem 0.1rem 0; display: flex; flex-direction: column; gap: 0.1rem; }
figcaption .t { font-family: var(--display); font-weight: 600; color: #fff; }
figcaption .m { color: var(--muted); font-size: 0.93rem; }
figcaption .desc { color: var(--muted); font-size: 0.93rem; margin-top: 0.3rem; }

/* videos */
.videos { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 22rem), 1fr)); gap: 1.6rem; }
.video { margin: 0; }
.frame { position: relative; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: var(--bg-2); }
.frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* feature + projects */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.projects { padding-bottom: 2rem; }
.project { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(1.5rem, 4vw, 3.5rem); padding: clamp(2rem, 5vw, 3.5rem) 0; border-top: 1px solid var(--line); scroll-margin-top: 5rem; }
.project h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.client { color: var(--violet); font-weight: 600; }
.links { display: flex; flex-direction: column; gap: 0.4rem; font-family: var(--display); font-weight: 600; }

/* about */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); padding-bottom: 4rem; }
.about h2 { font-size: 1.35rem; margin-top: 2rem; }
.cv { margin: 0; }
.cv dt { font-family: var(--display); font-weight: 600; color: #fff; margin-top: 1rem; }
.cv dd { margin: 0.15rem 0 0; color: var(--text); }
.cv dd span { color: var(--muted); }
.tags { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tags li { border: 1px solid var(--line); border-radius: 999px; padding: 0.3rem 0.85rem; font-size: 0.95rem; }

/* contact */
.contact { padding-bottom: 5rem; }
.mail { display: inline-block; font-family: var(--display); font-weight: 600; font-size: clamp(1.6rem, 5vw, 3rem); color: #fff; text-decoration: none; border-bottom: 2px solid var(--violet); margin: 0.5rem 0 2.2rem; overflow-wrap: anywhere; }
.mail:hover { color: var(--violet); }
.social { list-style: none; padding: 0; margin: 0 0 2rem; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 14rem), 1fr)); gap: 0.8rem; max-width: 48rem; }
.social a { display: flex; flex-direction: column; padding: 1rem 1.2rem; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; }
.social a:hover { border-color: var(--violet); }
.social .t { font-family: var(--display); font-weight: 600; color: #fff; }
.social .m { color: var(--muted); }
.where { color: var(--muted); }

/* footer */
.foot { border-top: 1px solid var(--line); padding: 1.8rem 0; color: var(--muted); font-size: 0.95rem; }
.foot-row { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.foot p { margin: 0; }
.foot-links { display: flex; gap: 1.2rem; }
.foot a { color: var(--muted); }
.foot a:hover { color: #fff; }

/* lightbox */
.lb { border: 0; padding: 0; background: rgba(6, 5, 9, 0.97); color: var(--text); max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.lb::backdrop { background: rgba(6, 5, 9, 0.97); }
.lb-inner { width: 100%; height: 100%; display: grid; grid-template-rows: 1fr auto; padding: 1rem; }
.lb-img { min-height: 0; display: grid; place-items: center; }
.lb-img img { max-width: 100%; max-height: calc(100vh - 6rem); width: auto; height: auto; object-fit: contain; border-radius: 6px; }
.lb-cap { text-align: center; color: var(--text); padding: 0.8rem 3.5rem 0; font-family: var(--display); }
.lb button { position: fixed; background: rgba(23, 21, 29, 0.85); color: #fff; border: 1px solid var(--line); width: 3rem; height: 3rem; border-radius: 50%; font-size: 1.4rem; line-height: 1; cursor: pointer; }
.lb button:hover { border-color: var(--violet); }
.lb .lb-close { top: 1rem; right: 1rem; }
.lb .lb-prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lb .lb-next { right: 1rem; top: 50%; transform: translateY(-50%); }

@media (max-width: 52rem) {
  .hero-grid, .feature, .project, .about { grid-template-columns: 1fr; }
  .hero-art { max-width: 26rem; }
  .bar { padding-top: 0.6rem; padding-bottom: 0.6rem; }
}
