/* ─────────────────────────────────────────────
   ÆRRA — measured design tokens
   bg #0e1011 · ink #fff · muted #b5b5b5
   hairlines rgba(255,255,255,.05/.11)
   overlay rgba(12,14,15,.5 / .7)
   Switzer 300 (display/labels) · Figtree 300 (body)
   Grid: 5 cols · items 374×495 @1920 · gap 6px
   ───────────────────────────────────────────── */

/* ---------- fonts (self-hosted, downloaded from origin) ---------- */
@font-face { font-family: Switzer; font-weight: 200; font-style: normal; font-display: swap;
  src: url("../assets/fonts/O2INHB7RBA62NQZWIAP3RS5WRI4PR4T5.woff2") format("woff2"); }
@font-face { font-family: Switzer; font-weight: 300; font-style: normal; font-display: swap;
  src: url("../assets/fonts/H5EOHLIZH5K7IZK6SGYJI75L4KV6FUO7.woff2") format("woff2"); }
@font-face { font-family: Switzer; font-weight: 400; font-style: normal; font-display: swap;
  src: url("../assets/fonts/6IN5WOLRCYP4G4MOCOHOMXNON6Q7MDAR.woff2") format("woff2"); }
@font-face { font-family: Figtree; font-weight: 300; font-style: normal; font-display: swap;
  src: url("../assets/fonts/_Xms-HUzqDCFdgfMm4S9DQ.woff2") format("woff2"); }
@font-face { font-family: Figtree; font-weight: 400; font-style: normal; font-display: swap;
  src: url("../assets/fonts/_Xms-HUzqDCFdgfMm4S9DQ.woff2") format("woff2"); }

:root {
  --bg: #0e1011;
  --ink: #fff;
  --muted: #b5b5b5;
  --hairline: rgba(255,255,255,.05);
  --hairline-2: rgba(255,255,255,.11);
  --overlay: rgba(12,14,15,.5);
  --overlay-strong: rgba(12,14,15,.7);
  --gap: 6px;
  --font-display: Switzer, sans-serif;
  --font-body: Figtree, sans-serif;
  --ease: cubic-bezier(.44, 0, .16, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { background: var(--bg); }

body {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 300;
  line-height: 1.6;
  letter-spacing: .2px;
  color: var(--ink);
  background: var(--bg);
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

/* labels — Switzer 12px uppercase, ls .25px */
.label {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 300;
  line-height: 1.2;
  letter-spacing: .25px;
  text-transform: uppercase;
}

/* ---------- page fade transition ---------- */
body { opacity: 0; transition: opacity .45s var(--ease); }
body.is-loaded { opacity: 1; }
body.is-leaving { opacity: 0; }

/* ---------- navbar: floating centered pill 220×44 @ top 40 ---------- */
.nav {
  position: fixed;
  top: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 60;
  width: 220px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px 0 16px;
  background: var(--overlay);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 6px;
}

.logo {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: .25px;
  text-transform: uppercase;
  display: inline-flex;
}
.logo .ch { display: inline-block; }

.nav-burger {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  gap: 0;
}
.nav-burger span {
  display: block;
  width: 16px;
  height: 1px;
  background: var(--ink);
  margin: 2.5px 0;
  transition: transform .35s var(--ease), opacity .35s var(--ease);
}
.nav-burger.is-open span:first-child { transform: translateY(3px) rotate(45deg); }
.nav-burger.is-open span:last-child  { transform: translateY(-3px) rotate(-45deg); }

/* ---------- fullscreen menu overlay ---------- */
.menu {
  position: fixed;
  inset: 0;
  z-index: 55;
  background: var(--overlay-strong);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  display: grid;
  place-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity .5s var(--ease), visibility 0s linear .5s;
}
.menu.is-open { opacity: 1; visibility: visible; transition-delay: 0s; }

.menu-links { display: flex; flex-direction: column; align-items: center; gap: 10px; }

.menu-link {
  font-family: var(--font-display);
  font-size: clamp(34px, 5vw, 64px);
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: .5px;
  text-transform: uppercase;
  overflow: hidden;
  color: var(--ink);
  opacity: .55;
  transition: opacity .3s var(--ease);
}
.menu-link:hover, .menu-link.is-current { opacity: 1; }
.menu-link .ch {
  display: inline-block;
  transform: translateY(110%);
  transition: transform .6s var(--ease);
}
.menu.is-open .menu-link .ch { transform: none; }

.menu-footer {
  position: absolute;
  bottom: 24px;
  display: flex;
  gap: 24px;
}

/* ---------- home grid ---------- */
.grid-page { padding: 56px var(--gap) var(--gap); }

.work-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--gap);
}

.grid-item {
  position: relative;
  display: block;
  aspect-ratio: 374 / 495;
  overflow: hidden;
  background: #131617;
  opacity: 0;
  transform: translateY(-22px);
  animation: item-in .8s var(--ease) forwards;
}
@keyframes item-in { to { opacity: 1; transform: none; } }

.grid-item img, .grid-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .7s var(--ease);
}
.grid-item:hover img, .grid-item:hover video { transform: scale(1.045); }

.grid-item .item-overlay {
  position: absolute;
  inset: 0;
  background: var(--overlay);
  opacity: 0;
  transition: opacity .4s var(--ease);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 16px;
}
.grid-item:hover .item-overlay { opacity: 1; }

.item-title, .item-date {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 300;
  letter-spacing: .25px;
  text-transform: uppercase;
  line-height: 1.2;
  overflow: hidden;
}
.item-title .ch, .item-date .ch {
  display: inline-block;
  transform: translateY(110%);
  transition: transform .5s var(--ease);
}
.grid-item:hover .ch { transform: none; }
.item-date { color: var(--muted); margin-top: 2px; }

/* ---------- bottom bar (home) ---------- */
.bottombar {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 50;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 0 40px 40px;
  pointer-events: none;
}
.bottombar > * { pointer-events: auto; }
.bottombar .left-cluster { display: inline-flex; gap: 8px; }

.author-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 44px;
  background: var(--overlay);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 6px;
  padding: 0 14px 0 8px;
}
.author-chip img { width: 28px; height: 28px; border-radius: 4px; object-fit: cover; }

.socials-chip {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  height: 44px;
  background: var(--overlay);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 6px;
  padding: 0 16px;
}
.socials-chip a { opacity: .7; transition: opacity .25s var(--ease); display: grid; place-items: center; }
.socials-chip a:hover { opacity: 1; }
.socials-chip svg { width: 13px; height: 13px; fill: currentColor; }

.filter-chip {
  position: relative;
  left: 0;
}
.filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  background: var(--overlay);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 6px;
  padding: 0 18px;
  color: var(--ink);
  transition: color .25s var(--ease);
}
.filter-btn:hover { color: var(--ink); }
.filter-btn .tri { font-size: 8px; transform: translateY(-1px); }

.filter-menu {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  background: var(--overlay-strong);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--hairline);
  border-radius: 10px;
  padding: 6px;
  min-width: 170px;
  opacity: 0;
  visibility: hidden;
  transition: all .3s var(--ease);
}
.filter-menu.is-open { opacity: 1; visibility: visible; transform: translateX(-50%); }
.filter-menu a {
  display: block;
  padding: 9px 12px;
  border-radius: 6px;
  color: var(--muted);
  text-align: center;
  transition: color .2s, background .2s;
}
.filter-menu a:hover { color: var(--ink); background: var(--hairline); }

/* ---------- work detail page ---------- */
.work-hero {
  height: 100vh;
  position: relative;
  overflow: hidden;
}
.work-hero img, .work-hero video {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}

.work-titlebar {
  position: fixed;
  left: 20px;
  bottom: 16px;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 8px;
}
.work-titlebar .chip {
  background: var(--overlay);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--hairline);
  border-radius: 8px;
  padding: 12px 16px;
}
.work-titlebar .chip.is-btn { color: var(--muted); cursor: pointer; transition: color .25s; }
.work-titlebar .chip.is-btn:hover { color: var(--ink); }

.next-chip {
  position: fixed;
  right: 20px;
  bottom: 16px;
  z-index: 50;
  background: var(--overlay);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--hairline);
  border-radius: 8px;
  padding: 12px 16px;
  color: var(--muted);
  transition: color .25s var(--ease);
}
.next-chip:hover { color: var(--ink); }

/* details panel */
.details-panel {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: var(--overlay-strong);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  display: grid;
  place-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity .45s var(--ease), visibility 0s linear .45s;
}
.details-panel.is-open { opacity: 1; visibility: visible; transition-delay: 0s; }
.details-inner { max-width: 560px; padding: 0 24px; text-align: center; }
.details-inner h1 {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 18px;
}
.details-inner p { color: var(--muted); margin-bottom: 28px; }
.details-meta { display: flex; justify-content: center; gap: 48px; }
.details-meta dt { color: var(--muted); margin-bottom: 4px; }
.details-meta dd { color: var(--ink); }

/* work gallery */
.work-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap);
  padding: var(--gap);
}
.work-gallery .full { grid-column: 1 / -1; }
.work-gallery img, .work-gallery video {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}

/* ---------- static pages (about / contact) ---------- */
.page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap);
  padding: 56px var(--gap) var(--gap);
}
.page-media { position: relative; overflow: hidden; min-height: 70vh; }
.page-media img { width: 100%; height: 100%; object-fit: cover; display: block; }

.page-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8vh 6vw;
}
.page-content .kicker { color: var(--muted); margin-bottom: 22px; }
.page-content h1 {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.2vw, 32px);
  font-weight: 300;
  line-height: 1.35;
  letter-spacing: .2px;
  margin-bottom: 24px;
}
.page-content p { color: var(--muted); max-width: 46ch; margin-bottom: 18px; }

/* contact form */
.contact-form { display: flex; flex-direction: column; gap: 22px; max-width: 420px; }
.contact-form label { display: block; color: var(--muted); margin-bottom: 8px; }
.contact-form input, .contact-form textarea {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--hairline-2);
  color: var(--ink);
  font: inherit;
  padding: 8px 0;
  outline: none;
  transition: border-color .3s var(--ease);
}
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--ink); }
.contact-form textarea { min-height: 90px; resize: vertical; }
.contact-form button {
  align-self: flex-start;
  border: 1px solid var(--hairline-2);
  border-radius: 8px;
  padding: 12px 20px;
  transition: background .3s, color .3s;
}
.contact-form button:hover { background: var(--ink); color: var(--bg); }

/* ---------- footer ---------- */
.footer {
  padding: 80px 20px 28px;
  border-top: 1px solid var(--hairline);
  margin-top: var(--gap);
}
.footer-head { margin-bottom: 56px; }
.footer-head strong {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 16px;
  letter-spacing: .15px;
  display: block;
}
.footer-head span { color: var(--muted); }
.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 220px));
  gap: 32px;
  margin-bottom: 64px;
}
.footer-cols h4 { color: var(--muted); font-weight: 300; margin-bottom: 14px; }
.footer-cols a { display: block; color: var(--ink); padding: 3px 0; opacity: .85; transition: opacity .2s; }
.footer-cols a:hover { opacity: 1; }
.footer-bottom { display: flex; justify-content: space-between; color: var(--muted); }
.footer-bottom a { text-decoration: underline; }

/* ---------- 404 / utility ---------- */
.utility-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 80px 24px;
}
.utility-page h1 {
  font-family: var(--font-display);
  font-size: clamp(40px, 8vw, 96px);
  font-weight: 300;
  text-transform: uppercase;
}
.utility-page p { color: var(--muted); margin-top: 12px; }

/* prose (terms/licensing) */
.prose { max-width: 640px; margin: 0 auto; padding: 140px 24px 80px; }
.prose h1 { font-family: var(--font-display); font-weight: 300; font-size: 32px; margin-bottom: 24px; text-transform: uppercase; }
.prose h2 { font-family: var(--font-display); font-weight: 300; font-size: 18px; margin: 28px 0 10px; }
.prose p { color: var(--muted); margin-bottom: 14px; }

/* ---------- responsive ---------- */
@media (max-width: 1200px) { .work-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 800px) {
  .work-grid { grid-template-columns: repeat(2, 1fr); }
  .page { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) { .work-grid { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
