/* ═══════════════════════════════════════════
   Showcase — Static Styles
   ═══════════════════════════════════════════ */

/* ── Fonts ── */
/* DM Mono — Light (300) */
@font-face {
  font-family: 'DM Mono';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('/assets/fonts/dm-mono-300-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'DM Mono';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('/assets/fonts/dm-mono-300-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* DM Mono — Light Italic (300) */
@font-face {
  font-family: 'DM Mono';
  font-style: italic;
  font-weight: 300;
  font-display: swap;
  src: url('/assets/fonts/dm-mono-300-italic-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'DM Mono';
  font-style: italic;
  font-weight: 300;
  font-display: swap;
  src: url('/assets/fonts/dm-mono-300-italic-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* DM Mono — Regular (400) */
@font-face {
  font-family: 'DM Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/dm-mono-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'DM Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/dm-mono-400-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* DM Mono — Regular Italic (400) */
@font-face {
  font-family: 'DM Mono';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/dm-mono-400-italic-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'DM Mono';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/dm-mono-400-italic-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* DM Mono — Medium (500) */
@font-face {
  font-family: 'DM Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/dm-mono-500-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'DM Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/dm-mono-500-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Libre Baskerville — Regular (400) */
@font-face {
  font-family: 'Libre Baskerville';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/libre-baskerville-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Libre Baskerville';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/libre-baskerville-400-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Libre Baskerville — Bold (700) */
@font-face {
  font-family: 'Libre Baskerville';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/libre-baskerville-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Libre Baskerville';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/libre-baskerville-400-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Libre Baskerville — Regular Italic (400) */
@font-face {
  font-family: 'Libre Baskerville';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/libre-baskerville-italic-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Libre Baskerville';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/libre-baskerville-italic-400-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ── Design Tokens ── */
:root {
  --bg: #0a0a0c;
  --bg2: #050507;
  --bg3: #14111c;
  --border: #2a2438;
  --border-lt: #1a1622;
  --violet: #6b4dba;
  --violet-lt: #8868d5;
  --violet-hl: #a88fe0;
  --text: #e8e4f0;
  --text-md: #7e7592;
  --text-dim: #6b5e82;
  --serif: 'Libre Baskerville', Georgia, serif;
  --mono: 'DM Mono', 'Courier New', monospace;
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-out-quint: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── Base ── */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--mono);
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img {
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ── Selection ── */
::selection {
  background: oklch(0.55 0.16 285 / 0.35);
  color: var(--text);
}

/* ── Focus ── */
:focus-visible {
  outline: 2px solid var(--violet-hl);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ── Animations ── */
@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ═══════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════ */

.hero {
  padding: 5rem 1.5rem 3rem;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.hero::before {
  content: '01';
  position: absolute;
  right: -0.25rem;
  bottom: -3rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(8rem, 16vw, 18rem);
  color: var(--violet);
  opacity: 0.04;
  line-height: 1;
  pointer-events: none;
  user-select: none;
  z-index: -1;
}

@media (min-width: 640px) {
  .hero {
    padding: 7rem 2.5rem 4rem;
  }
}

.hero-tag {
  display: block;
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--violet-hl);
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeIn 0.5s var(--ease) 0.1s forwards;
}

.hero-name {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.08;
  margin: 0 0 1.25rem;
}

.hero-name .first {
  display: block;
  font-size: clamp(2rem, 4vw, 3.2rem);
  color: var(--text);
  letter-spacing: 0.02em;
  opacity: 0;
  transform: translateY(12px);
  animation: slideUp 0.7s var(--ease) 0.2s forwards;
}

.hero-name .last {
  display: block;
  font-size: clamp(1rem, 1.5vw, 1.3rem);
  color: var(--text-md);
  font-style: italic;
  margin-top: 0.3rem;
  opacity: 0;
  transform: translateY(12px);
  animation: slideUp 0.7s var(--ease) 0.35s forwards;
}

.hero-sub {
  font-family: var(--mono);
  font-size: 0.8rem;
  line-height: 1.75;
  color: var(--text-md);
  max-width: 44ch;
  margin: 0;
  opacity: 0;
  transform: translateY(12px);
  animation: slideUp 0.7s var(--ease) 0.5s forwards;
}

/* ═══════════════════════════════════════════
   SHOWCASE SECTION
   ═══════════════════════════════════════════ */

.showcase-section {
  padding: 3rem 1.5rem 4rem;
}

@media (min-width: 640px) {
  .showcase-section {
    padding: 4rem 2.5rem 6rem;
  }
}

.section-header {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-bottom: 2rem;
}

.section-label {
  font-family: var(--mono);
  font-size: 0.58rem;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--violet-hl);
}

/* ═══════════════════════════════════════════
   CATEGORY FILTER PILLS
   ═══════════════════════════════════════════ */

.filter {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.pill {
  font-family: var(--mono);
  font-size: 0.58rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 0 0 4px;
  border: none;
  background: none;
  color: var(--text-md);
  cursor: pointer;
  position: relative;
  transition: color 0.2s;
}

.pill::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--violet-hl);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}

.pill:hover {
  color: var(--text);
}

.pill.active {
  color: var(--text);
}

.pill.active::after,
.pill:hover::after {
  transform: scaleX(1);
}

/* ═══════════════════════════════════════════
   BENTO GRID
   ═══════════════════════════════════════════ */

.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.bento-item {
  min-width: 0;
}

@media (max-width: 767px) {
  .bento-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .bento-item {
    grid-column: span 1 !important;
  }
}

/* ═══════════════════════════════════════════
   PROJECT BLOCK
   ═══════════════════════════════════════════ */

.block {
  background: var(--bg3);
  border: 1px solid var(--border-lt);
  overflow: hidden;
  transition: border-color 0.35s var(--ease), background 0.35s var(--ease);
  position: relative;
  opacity: 0;
  transform: translateY(12px);
  animation: reveal 0.5s var(--ease-out-quart) forwards;
}

.block::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--violet-hl);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease-out-quart);
  z-index: 2;
}

.block:hover {
  border-color: var(--violet);
  background: oklch(12% 0.02 285 / 1);
}

.block:hover::before {
  transform: scaleX(1);
}

@keyframes reveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .block {
    opacity: 1;
    transform: none;
    animation: none;
  }
}

/* ── Span 3: horizontal layout ── */
.span-3 .card-inner {
  display: grid;
  grid-template-columns: 3fr 2fr;
}

.span-3 .preview-area {
  min-height: 260px;
}

.span-3 .preview-area .preview-wrapper {
  aspect-ratio: auto;
  height: 100%;
  border: none;
  border-radius: 0;
}

.span-3 .info-area {
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.65rem;
}

/* ── Span 1 & 2: stacked layout ── */
.span-1 .preview-area .preview-wrapper,
.span-2 .preview-area .preview-wrapper {
  border: none;
  border-radius: 0;
  border-bottom: 1px solid var(--border-lt);
}

.span-1 .preview-area .preview-wrapper {
  aspect-ratio: 3 / 2;
}

.span-2 .preview-area .preview-wrapper {
  aspect-ratio: 16 / 7;
}

.span-1 .info-area,
.span-2 .info-area {
  padding: 1.25rem 1.25rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.span-2 .info-area {
  padding: 1.5rem 1.5rem 1.5rem;
  gap: 0.5rem;
}

/* ── Tags with tech dots ── */
.tags {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.tech-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.tech-dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  flex-shrink: 0;
  opacity: 0.85;
}

.tag {
  font-family: var(--mono);
  font-size: 0.58rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  color: var(--text-dim);
  text-transform: lowercase;
}

/* ── Title ── */
.title {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: 0.02em;
  color: var(--text);
  margin: 0;
  transition: transform 0.5s var(--ease-out-expo), color 0.3s var(--ease);
}

.block:hover .title {
  transform: translateX(4px);
  color: var(--violet-hl);
}

.span-3 .title { font-size: 1.6rem; }
.span-2 .title { font-size: 1.3rem; }
.span-1 .title { font-size: 1.05rem; }

/* ── Description ── */
.desc {
  font-family: var(--mono);
  font-size: 0.75rem;
  line-height: 1.65;
  color: var(--text-md);
  margin: 0;
}

.span-3 .desc { max-width: 40ch; }

/* ── Meta + View link ── */
.meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.25rem;
}

.meta {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.category-label {
  font-family: var(--mono);
  font-size: 0.55rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--violet-hl);
}

.year {
  font-family: var(--mono);
  font-size: 0.65rem;
  font-weight: 400;
  color: var(--text-dim);
  font-feature-settings: 'tnum';
}

/* ── View link button ── */
.view-link {
  font-family: var(--mono);
  font-size: 0.55rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: lowercase;
  color: var(--text-dim);
  border: 1px solid var(--border);
  padding: 0.28rem 0.72rem;
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  text-decoration: none;
  transition: all 0.3s var(--ease);
  white-space: nowrap;
  flex-shrink: 0;
}

.view-link .arr {
  display: inline-block;
  transition: transform 0.3s var(--ease-out-quart);
}

.view-link:hover {
  color: var(--text);
  border-color: var(--violet);
  background: oklch(0.55 0.16 285 / 0.1);
  gap: 0.6rem;
}

.view-link:hover .arr {
  transform: translateX(3px);
}

.view-full {
  font-size: 0.58rem;
  padding: 0.32rem 0.85rem;
  gap: 0.5rem;
}

@media (max-width: 767px) {
  .span-3 .card-inner {
    grid-template-columns: 1fr;
  }

  .span-3 .preview-area {
    min-height: auto;
  }

  .span-3 .preview-area .preview-wrapper {
    aspect-ratio: 16 / 7;
  }
}

/* ═══════════════════════════════════════════
   PREVIEW ART SVG
   ═══════════════════════════════════════════ */

.preview-wrapper {
  width: 100%;
  aspect-ratio: 8 / 5;
  overflow: hidden;
  border-radius: 2px;
  background: var(--bg3);
  border: 1px solid var(--border-lt);
}

.preview-svg {
  width: 100%;
  height: 100%;
  display: block;
  transition: transform 0.5s var(--ease-out-expo);
}

.block:hover .preview-svg {
  transform: scale(1.03);
}

/* ═══════════════════════════════════════════
   EMPTY STATE
   ═══════════════════════════════════════════ */

.empty-state {
  padding: 6rem 0;
  text-align: center;
  display: none;
}

.empty-state p {
  font-family: var(--serif);
  font-size: 1.15rem;
  color: var(--text-md);
  margin: 0 0 0.5rem;
  font-style: italic;
}

.empty-hint {
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
}

/* ═══════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════ */

.footer {
  padding: 3rem 1.5rem 2.5rem;
  border-top: 1px solid var(--border-lt);
}

@media (min-width: 640px) {
  .footer {
    padding: 3rem 2.5rem 2.5rem;
  }
}

.footer-top {
  margin-bottom: 2.5rem;
}

.footer-cta {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-style: italic;
  color: var(--text);
  margin: 0 0 0.35rem;
}

.footer-mail {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--violet-hl);
  transition: color 0.2s;
}

.footer-mail:hover {
  color: var(--text);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: var(--text-md);
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--text);
}

.footer-back a {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  transition: color 0.2s;
}

.footer-back a:hover {
  color: var(--violet-hl);
}
