/* ─────────────────────────────────────────
   EATING STUDIO — Dark Luxury Aesthetic
   ───────────────────────────────────────── */

:root {
  --bg:        #0d0d0d;
  --surface:   #141414;
  --border:    #1e1e1e;
  --text:      #e8e4df;
  --muted:     #666;
  --accent:    #c9a96e;
  --accent2:   #8a7455;
  --font-head: 'Space Mono', monospace;
  --font-body: 'Noto Serif SC', serif;
  --ease:      cubic-bezier(0.25, 0.1, 0.25, 1);
  --ease-out:  cubic-bezier(0.0, 0.0, 0.2, 1);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  overflow-x: hidden;
}

/* ── Header ── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  height: 64px;
  background: rgba(13,13,13,0.0);
  backdrop-filter: blur(0px);
  border-bottom: 1px solid transparent;
  transition: background 0.4s var(--ease), backdrop-filter 0.4s, border-color 0.4s;
}

.site-header.scrolled {
  background: rgba(13,13,13,0.88);
  backdrop-filter: blur(16px);
  border-bottom-color: var(--border);
}

.logo {
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--accent);
  white-space: nowrap;
}

.main-nav { display: flex; gap: 2px; align-items: center; }

.nav-filter {
  text-decoration: none;
  display: inline-block;
  background: none;
  border: 1px solid transparent;
  color: var(--muted);
  font-family: var(--font-head);
  font-size: 11px;
  letter-spacing: 0.08em;
  padding: 6px 14px;
  cursor: pointer;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
  border-radius: 2px;
}
.nav-filter:hover { color: var(--text); border-color: var(--border); }

/* ── Hero ── */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 48px;
  position: relative;
  overflow: hidden;
}

/* Subtle grain overlay */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  opacity: 0.4;
}

.hero-sub {
  font-family: var(--font-head);
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--accent);
  margin-bottom: 24px;
  text-transform: uppercase;
}

.hero h1 {
  font-family: var(--font-body);
  font-size: clamp(48px, 7vw, 96px);
  font-weight: 300;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 28px;
}
.hero h1 span { color: var(--accent); font-style: italic; }

.hero-desc {
  font-size: 14px;
  color: var(--muted);
  max-width: 420px;
  line-height: 1.8;
  font-family: var(--font-head);
  letter-spacing: 0.04em;
}

.hero-line {
  position: absolute;
  bottom: 0; left: 48px;
  width: 1px;
  height: 0;
  background: linear-gradient(to bottom, var(--accent), transparent);
  transition: height 1.2s var(--ease-out);
}
.hero-line.visible { height: 80px; }

.hero-scroll-hint {
  position: absolute;
  bottom: 40px; right: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  opacity: 0;
  transition: opacity 0.6s;
}
.hero-scroll-hint.visible { opacity: 1; }

.hero-scroll-hint span {
  font-family: var(--font-head);
  font-size: 9px;
  letter-spacing: 0.25em;
  color: var(--muted);
  writing-mode: vertical-rl;
}

.scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--accent2), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.1); }
}

/* ── Page Body ── */
.page-body { padding: 0; }

/* ── Category ── */
.category { padding: 80px 48px; }

.cat-header {
  display: flex;
  align-items: baseline;
  gap: 20px;
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
  opacity: 0;
  transform: translateY(20px);
}

.cat-num {
  font-family: var(--font-head);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.1em;
  min-width: 28px;
}

.cat-title-wrap { flex: 1; }

.cat-title {
  font-family: var(--font-body);
  font-size: 28px;
  font-weight: 300;
  color: var(--text);
  letter-spacing: 0.05em;
  line-height: 1.2;
}

.cat-sub {
  font-family: var(--font-head);
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.15em;
  margin-top: 6px;
  text-transform: uppercase;
}

.cat-count {
  font-family: var(--font-head);
  font-size: 11px;
  color: var(--accent2);
  letter-spacing: 0.1em;
}

/* ── Divider ── */
.section-divider {
  height: 1px;
  background: linear-gradient(to right, transparent, var(--border) 20%, var(--border) 80%, transparent);
  margin: 0 48px;
}

/* ── Sub-category ── */
.sub-cat { margin-bottom: 48px; }

.sub-cat-label {
  font-family: var(--font-head);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 20px;
  padding-left: 4px;
}

/* ── Works Grid ── */
.works-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 3px;
}

/* ── Work Card ── */
.work-card {
  background: var(--surface);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform 0.4s var(--ease), z-index 0s, box-shadow 0.4s var(--ease);
  opacity: 0;
  transform: translateY(24px);
}

/* Gradient reveal on hover */
.work-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(201,169,110,0.08) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  pointer-events: none;
}
.work-card:hover { transform: scale(1.025); box-shadow: 0 12px 40px rgba(0,0,0,0.5); }
.work-card:hover::after { opacity: 1; }

/* Hover overlay with vignette */
.work-card .card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0);
  transition: background 0.35s var(--ease);
  z-index: 1;
}
.work-card:hover .card-overlay { background: rgba(0,0,0,0.18); }

/* is-wide — 16:9 */
.work-card.is-wide .card-thumb { aspect-ratio: 16/9; }

/* is-tall — 9:16 */
.work-card.is-tall { max-width: 220px; }
.work-card.is-tall .card-thumb { aspect-ratio: 9/16; }

/* Cover */
.card-thumb {
  background-size: cover;
  background-position: center top;
  background-color: #111;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Subtle Ken Burns on hover */
.work-card:hover .card-thumb .heroimg {
  animation: kenBurns 6s ease-in-out forwards;
}

@keyframes kenBurns {
  0%   { transform: scale(1) translate(0, 0); }
  100% { transform: scale(1.06) translate(-1%, -1%); }
}

.heroimg {
  position: absolute;
  inset: -5%;
  background-size: cover;
  background-position: center;
  transition: transform 6s var(--ease-out);
}

.play-icon {
  font-size: 32px;
  color: rgba(255,255,255,0.2);
  transition: color 0.3s var(--ease), transform 0.3s var(--ease), filter 0.3s var(--ease);
  user-select: none;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.4));
  position: relative;
  z-index: 2;
}
.work-card:hover .play-icon {
  color: rgba(201,169,110,0.9);
  transform: scale(1.15);
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.6));
}

.card-info {
  padding: 12px 14px 14px;
  border-top: 1px solid var(--border);
  position: relative;
  z-index: 2;
  background: var(--surface);
}

.card-title {
  font-family: var(--font-head);
  font-size: 10px;
  color: var(--text);
  letter-spacing: 0.04em;
  line-height: 1.4;
  transition: color 0.2s;
}
.work-card:hover .card-title { color: var(--accent); }

/* ── Player Modal ── */
.player-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0,0,0,0.92);
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
}

.player-close {
  position: absolute;
  top: 24px; right: 32px;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 22px;
  cursor: pointer;
  transition: color 0.2s, transform 0.2s;
  padding: 8px;
  pointer-events: auto;
  z-index: 10;
}
.player-close:hover { color: var(--text); transform: rotate(90deg); }

.player-wrap {
  background: #000;
  overflow: hidden;
  /* Mobile: full width */
  width: 100%;
  max-width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (min-width: 769px) {
  .player-wrap {
    width: 90vw;
    max-width: 1060px;
    margin: 0 auto;
  }
}

.player-wrap video {
  width: 100%;
  height: 100%;
  display: block;
}

.player-wrap.is-wide   { aspect-ratio: 16/9; }
.player-wrap.is-tall   { aspect-ratio: 9/16; max-height: 85vh; }

.player-title {
  margin-top: 20px;
  font-family: var(--font-head);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.1em;
}

/* ── Footer ── */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 60px 48px;
  text-align: center;
}

.footer-logo {
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.3em;
  color: var(--accent);
  display: block;
  margin-bottom: 12px;
}

.footer-note {
  font-size: 12px;
  color: var(--muted);
  font-family: var(--font-head);
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}

.footer-copy {
  font-size: 11px;
  color: #333;
  font-family: var(--font-head);
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .site-header { padding: 0 20px; }
  .logo { font-size: 12px; }
  .nav-filter { font-size: 10px; padding: 5px 8px; }
  .hero { padding: 0 24px; }
  .hero h1 { font-size: 44px; }
  .hero-scroll-hint { display: none; }
  .category { padding: 60px 20px; }
  .section-divider { margin: 0 20px; }
  .cat-title { font-size: 22px; }
  .works-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 2px; }
  .work-card.is-tall { max-width: 140px; }
  .work-card.is-tall .card-thumb { aspect-ratio: 9/16; }
}
