@import url("https://fonts.googleapis.com/css2?family=Figtree:ital,wght@0,300;0,400;0,500;1,300&display=swap");

@font-face {
  font-family: "Switzer";
  src: url("../fonts/Switzer-200.woff2") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 200;
}
@font-face {
  font-family: "Switzer";
  src: url("../fonts/Switzer-300.woff2") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 300;
}
@font-face {
  font-family: "Switzer";
  src: url("../fonts/Switzer-400.woff2") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 400;
}

:root {
  --bg: #0e1011;
  --panel: rgba(12, 14, 15, 0.5);
  --panel-solid: #14171899;
  --text: #ffffff;
  --text-dim: rgba(181, 181, 181, 1);
  --text-faint: rgba(181, 181, 181, 0.6);
  --border: rgba(255, 255, 255, 0.08);
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 6px;
  --radius-btn: 6px;
  --gap: 6px;
  --font: "Figtree", "Figtree Placeholder", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-label: "Switzer", "Switzer Placeholder", -apple-system, BlinkMacSystemFont, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  min-height: 100vh;
}

body {
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

img, video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Deterrent, not a guarantee: block the easy paths (long-press save on
     iOS/Android, drag-to-desktop, text-style selection) for casual copying. */
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
  pointer-events: none;
}

/* ---------- Top bar / logo + nav ---------- */

.topbar {
  position: fixed;
  top: 24px;
  left: 24px;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--panel);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: var(--radius-btn);
  padding: 4px;
}

.logo {
  padding: 10px 12px;
  font-family: var(--font-label);
  font-size: 12px;
  font-weight: 300;
  letter-spacing: 0.25px;
  text-transform: uppercase;
  white-space: nowrap;
}

.menu-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  border: none;
  border-radius: 4px;
  color: var(--text);
  cursor: pointer;
  flex-shrink: 0;
}
.menu-btn svg { width: 16px; height: 16px; }

.nav-panel {
  position: fixed;
  top: 24px;
  left: 24px;
  z-index: 70;
  min-width: 220px;
  background: var(--panel);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: var(--radius-btn);
  padding: 4px;
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
}
.nav-panel.open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.nav-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  font-family: var(--font-label);
  font-weight: 300;
  font-size: 12px;
  letter-spacing: 0.25px;
  text-transform: uppercase;
}
.nav-panel-header button {
  background: none;
  border: none;
  color: var(--text);
  cursor: pointer;
  width: 24px; height: 24px;
  display: flex; align-items: center; justify-content: center;
}
.nav-panel a {
  display: block;
  padding: 12px;
  font-family: var(--font-label);
  font-size: 12px;
  font-weight: 300;
  letter-spacing: 0.25px;
  text-transform: uppercase;
  color: var(--text-dim);
  border-radius: 4px;
  transition: background .15s ease, color .15s ease;
}
.nav-panel a:hover { background: rgba(255,255,255,0.06); color: var(--text); }
.nav-panel a.active { color: var(--text); }

/* ---------- Bento grid (home) ---------- */

.bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap);
  padding: var(--gap);
  min-height: 100vh;
}
.bento-item {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #111;
  aspect-ratio: 3/4;
}
.bento-item a { display: block; width: 100%; height: 100%; }
.bento-item .cap {
  position: absolute;
  bottom: 12px; left: 12px;
  font-family: var(--font-label);
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.25px;
  text-transform: uppercase;
  padding: 8px 10px;
  background: var(--panel);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 4px;
  opacity: 0;
  transition: opacity .2s ease;
}
.bento-item:hover .cap { opacity: 1; }
.bento-item:hover img, .bento-item:hover video { transform: scale(1.04); }
.bento-item img, .bento-item video { transition: transform .5s ease; }

/* ---------- Work grid (full listing) ---------- */

.work-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap);
  padding: var(--gap);
  padding-top: 100px;
  min-height: 100vh;
}
.work-item {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #111;
  aspect-ratio: 3/4;
}
.work-item .meta {
  position: absolute;
  top: 14px; left: 14px;
  font-family: var(--font-label);
  font-size: 12px;
  font-weight: 300;
  letter-spacing: 0.25px;
  text-transform: uppercase;
  line-height: 1.5;
  text-shadow: 0 2px 12px rgba(0,0,0,0.6);
}
.work-item .meta .title { font-weight: 400; }
.work-item .meta .date { color: var(--text-dim); }
.work-item img, .work-item video { transition: transform .5s ease; }
.work-item:hover img, .work-item:hover video { transform: scale(1.04); }

/* ---------- About page ---------- */

.about-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
}
.about-copy {
  padding: 140px 64px 64px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  max-width: 620px;
}
.about-copy h1 {
  font-family: var(--font-label);
  font-size: 40px;
  line-height: 1.1;
  margin: 0;
  font-weight: 200;
  letter-spacing: normal;
}
.about-copy p {
  margin: 0;
  font-size: 17px;
  font-weight: 300;
  letter-spacing: 0.2px;
  line-height: 1.6;
  color: var(--text-dim);
}
.about-copy strong { color: var(--text); font-weight: 600; }
.about-media { position: relative; overflow: hidden; min-height: 100vh; }
.about-media img, .about-media video { position: absolute; inset: 0; }

/* ---------- Contact page ---------- */

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
}
.contact-visual { position: relative; background: #111; min-height: 100vh; overflow: hidden; }
.contact-visual img, .contact-visual video { position: absolute; inset: 0; }
.contact-copy {
  padding: 140px 64px 64px;
  max-width: 560px;
}
.contact-copy h1 {
  font-family: var(--font-label);
  font-size: 40px;
  line-height: 1.1;
  margin: 0 0 20px;
  font-weight: 200;
}
.contact-copy > p {
  font-size: 17px;
  font-weight: 300;
  letter-spacing: 0.2px;
  line-height: 1.6;
  color: var(--text-dim);
  margin: 0 0 36px;
}
.contact-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.contact-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  background: var(--panel);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: var(--radius-btn);
  font-size: 15px;
  transition: background .15s ease;
}
.contact-link:hover { background: rgba(255,255,255,0.06); }
.contact-link .label {
  font-family: var(--font-label);
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.25px;
  text-transform: uppercase;
  color: var(--text-faint);
  display: block;
  margin-bottom: 6px;
}
.contact-link .arrow { opacity: 0.5; }

/* ---------- Work-single page ---------- */

.project-strip {
  display: flex;
  height: 100vh;
  overflow-x: auto;
  overflow-y: hidden;
  gap: 2px;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}
.project-strip::-webkit-scrollbar { display: none; }
.project-strip .pane {
  position: relative;
  flex: 0 0 auto;
  height: 100%;
  overflow: hidden;
  background: #111;
  scroll-snap-align: start;
}

.details-pill {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 4px;
}
.details-pill .grid-btn {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  background: var(--panel);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: var(--radius-btn);
  color: var(--text-dim);
  cursor: pointer;
}
.details-pill .grid-btn:hover { color: var(--text); }
.details-pill .grid-btn svg { width: 16px; height: 16px; }

.next-project {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: min(50vw, 340px);
  padding: 12px 16px;
  background: var(--panel);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: var(--radius-btn);
  font-family: var(--font-label);
  font-size: 12px;
  font-weight: 300;
  letter-spacing: 0.25px;
  text-transform: uppercase;
}
.next-project:hover { background: rgba(255,255,255,0.08); }
.next-project span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ---------- Footer credit ---------- */

.footer-credit {
  text-align: center;
  padding: 40px 20px 100px;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--text-faint);
}

/* ---------- Responsive ---------- */

@media (max-width: 1000px) {
  .bento, .work-grid { grid-template-columns: repeat(2, 1fr); }
  .about-layout, .contact-layout { grid-template-columns: 1fr; }
  .about-media { min-height: 320px; }
  .about-copy, .contact-copy { padding: 120px 24px 48px; }
  .project-strip { display: block; height: auto; overflow-x: visible; }
  .project-strip .pane { width: 100% !important; height: auto; aspect-ratio: 4/5 !important; }
}

@media (max-width: 600px) {
  .bento, .work-grid { grid-template-columns: 1fr; }
  .topbar .logo { font-size: 12px; padding: 14px 12px; }
  .next-project #nextTitle { display: none; }
  .next-project { padding: 10px 12px; font-size: 11px; }
}
