/* ==========================================================================
   PROTEAN IMAGE GROUP — FINE-LINE MICRO-REALISM ATELIER
   Pure Vanilla CSS Design System (Zero-Dependency / Production-Ready)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Bodoni+Moda:opsz,wght@6..96,400;6..96,600;6..96,700&family=EB+Garamond:ital,wght@0,400;0,500;0,600;1,400&family=Space+Mono:ital,wght@0,400;0,700;1,400&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:wght,FILL@100..700,0..1&display=swap');

/* ==========================================================================
   1. DESIGN TOKENS & DYNAMIC THEMES
   ========================================================================== */
:root {
  /* Light Mode (Ivory / Stencil Paper) */
  --bg-color: #fbfbfe;
  --bg-surface: #ffffff;
  --bg-surface-hover: #f4f4f7;
  --text-primary: #09090b;
  --text-secondary: #27272a;
  --text-muted: #52525b;
  --stipple-color: rgba(9, 9, 11, 0.08);
  --guide-color: rgba(9, 9, 11, 0.12);
  --crosshair-color: rgba(9, 9, 11, 0.55);
  --hairline-color: rgba(9, 9, 11, 0.22);
  --header-bg: rgba(251, 251, 254, 0.92);
  --badge-bg: rgba(9, 9, 11, 0.05);
  --btn-primary-bg: #09090b;
  --btn-primary-text: #f8fafc;
  --btn-hover-bg: rgba(9, 9, 11, 0.06);

  --font-headline: 'Bodoni Moda', Georgia, serif;
  --font-body: 'EB Garamond', Georgia, serif;
  --font-mono: 'Space Mono', monospace;
}

html.dark {
  /* Dark Mode (Obsidian / Matte Carbon) */
  --bg-color: #09090b;
  --bg-surface: #121214;
  --bg-surface-hover: #18181b;
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --stipple-color: rgba(241, 245, 249, 0.07);
  --guide-color: rgba(241, 245, 249, 0.14);
  --crosshair-color: rgba(241, 245, 249, 0.5);
  --hairline-color: rgba(241, 245, 249, 0.3);
  --header-bg: rgba(9, 9, 11, 0.9);
  --badge-bg: rgba(241, 245, 249, 0.08);
  --btn-primary-bg: #f8fafc;
  --btn-primary-text: #09090b;
  --btn-hover-bg: rgba(241, 245, 249, 0.1);
}

/* ==========================================================================
   2. BASE & RESET
   ========================================================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--bg-color);
  color: var(--text-primary);
  font-family: var(--font-body);
  background-image: radial-gradient(circle, var(--stipple-color) 1px, transparent 1px);
  background-size: 8px 8px;
  position: relative;
  transition: background-color 0.3s ease, color 0.3s ease;
  line-height: 1.5;
}

::selection {
  background: var(--text-primary);
  color: var(--bg-color);
}

/* ==========================================================================
   3. SURGICAL NEEDLE GUIDELINES & CROSSHAIRS
   ========================================================================== */
body::before {
  content: '';
  position: fixed;
  top: 0; left: 10%; bottom: 0;
  width: 1px;
  background: var(--guide-color);
  z-index: -1;
  transition: background 0.3s ease;
}

body::after {
  content: '';
  position: fixed;
  top: 0; right: 10%; bottom: 0;
  width: 1px;
  background: var(--guide-color);
  z-index: -1;
  transition: background 0.3s ease;
}

.horizontal-guide {
  position: absolute;
  left: 0; right: 0; height: 1px;
  background: var(--guide-color);
  z-index: 0;
  transition: background 0.3s ease;
}

.hairline-border {
  border: 1px solid var(--hairline-color);
  transition: border-color 0.3s ease;
}

/* Surgical Corner Crosshairs */
.crosshair-tl, .crosshair-tr, .crosshair-bl, .crosshair-br {
  position: absolute;
  width: 10px; height: 10px;
}
.crosshair-tl::before, .crosshair-tr::before, .crosshair-bl::before, .crosshair-br::before {
  content: ''; position: absolute; background: var(--crosshair-color);
}
.crosshair-tl::after, .crosshair-tr::after, .crosshair-bl::after, .crosshair-br::after {
  content: ''; position: absolute; background: var(--crosshair-color);
}
.crosshair-tl::before { top: 4px; left: 0; width: 10px; height: 1px; }
.crosshair-tr::before { top: 4px; right: 0; width: 10px; height: 1px; }
.crosshair-bl::before { bottom: 4px; left: 0; width: 10px; height: 1px; }
.crosshair-br::before { bottom: 4px; right: 0; width: 10px; height: 1px; }
.crosshair-tl::after { top: 0; left: 4px; width: 1px; height: 10px; }
.crosshair-tr::after { top: 0; right: 4px; width: 1px; height: 10px; }
.crosshair-bl::after { bottom: 0; left: 4px; width: 1px; height: 10px; }
.crosshair-br::after { bottom: 0; right: 4px; width: 1px; height: 10px; }

.crosshair-tl { top: -5px; left: -5px; }
.crosshair-tr { top: -5px; right: -5px; }
.crosshair-bl { bottom: -5px; left: -5px; }
.crosshair-br { bottom: -5px; right: -5px; }

.roman-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  border: 1px double var(--hairline-color);
  border-radius: 50%;
  font-family: var(--font-headline);
  font-size: 14px;
  letter-spacing: 1px;
}

/* ==========================================================================
   4. TOP NAVIGATION
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 50;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--hairline-color);
  background-color: var(--header-bg);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2.5rem;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.brand-wrap {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  color: inherit;
}

.brand-wrap:hover .brand-logo-svg {
  transform: scale(1.05);
}

.brand-logo-svg {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.brand-name {
  font-family: var(--font-headline);
  font-size: 1.15rem;
  letter-spacing: 0.25em;
  font-weight: 600;
  text-transform: uppercase;
}

.nav-menu {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-link {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-decoration: none;
  color: var(--text-primary);
  opacity: 0.75;
  transition: opacity 0.2s ease;
}

.nav-link.active {
  font-weight: 700;
  opacity: 1;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
}

.nav-link:hover {
  opacity: 1;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.tech-spec-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  opacity: 0.75;
  letter-spacing: 0.15em;
  font-weight: 500;
}

.btn-hairline {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  border: 1px solid var(--hairline-color);
  background: transparent;
  color: var(--text-primary);
  padding: 0.4rem 0.9rem;
  border-radius: 2px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.2s ease, transform 0.1s ease;
}

.btn-hairline:hover {
  background-color: var(--btn-hover-bg);
}

.btn-hairline:active {
  transform: scale(0.96);
}

/* ==========================================================================
   5. HERO SECTION
   ========================================================================== */
.main-content {
  flex-grow: 1;
  padding: 8rem 2.5rem 6rem;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 4rem;
  align-items: center;
  min-height: 700px;
  margin-bottom: 8rem;
}

.hero-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2rem;
  z-index: 10;
}

.atelier-badge {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  font-weight: 600;
  text-transform: uppercase;
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--hairline-color);
  background-color: var(--badge-bg);
}

.hero-headline {
  font-family: var(--font-headline);
  font-size: 4.2rem;
  line-height: 1.1;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
}

.hero-headline span.faint-text {
  opacity: 0.7;
}

.hero-paragraph {
  font-family: var(--font-body);
  font-size: 1.4rem;
  line-height: 1.6;
  opacity: 0.9;
  max-width: 480px;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 1rem;
}

.btn-primary-solid {
  background-color: var(--btn-primary-bg);
  color: var(--btn-primary-text);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  padding: 1rem 2rem;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.2s ease, transform 0.1s ease;
}

.btn-primary-solid:hover {
  opacity: 0.9;
}

.btn-primary-solid:active {
  transform: scale(0.96);
}

.btn-secondary-outline {
  border: 1px solid var(--hairline-color);
  background: transparent;
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  padding: 1rem 2rem;
  border-radius: 2px;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.2s ease, transform 0.1s ease;
}

.btn-secondary-outline:hover {
  background-color: var(--btn-hover-bg);
}

.btn-secondary-outline:active {
  transform: scale(0.96);
}

/* Hero Right: 4/5 Aspect Camera Slate Frame */
.hero-right-stage {
  position: relative;
  z-index: 10;
}

.camera-slate-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  border: 1px solid var(--hairline-color);
  padding: 0.5rem;
  background-color: var(--bg-surface);
}

.camera-inner-screen {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: var(--bg-surface-hover);
}

.camera-inner-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.9;
  filter: grayscale(100%);
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

.camera-inner-screen:hover img {
  transform: scale(1.05);
  opacity: 1;
}

.overlay-border-grid {
  position: absolute;
  inset: 0;
  border: 1px solid var(--hairline-color);
  pointer-events: none;
}

.overlay-tag-left {
  position: absolute;
  top: 1rem;
  left: 1rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: 0.1em;
  background: rgba(0, 0, 0, 0.75);
  padding: 0.25rem 0.6rem;
  border-radius: 2px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.overlay-tag-right {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: 0.1em;
  background: rgba(0, 0, 0, 0.75);
  padding: 0.25rem 0.6rem;
  border-radius: 2px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* ==========================================================================
   6. SELECTED WORKS / FLASH SHEET ARCHIVE
   ========================================================================== */
.works-section {
  position: relative;
  padding: 6rem 0;
  margin-bottom: 8rem;
  border-top: 1px solid var(--hairline-color);
}

.works-header-row {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 4rem;
}

.works-title {
  font-family: var(--font-headline);
  font-size: 1.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 600;
}

.works-divider {
  flex-grow: 1;
  height: 1px;
  background: var(--hairline-color);
}

.flash-sheet-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background-color: var(--hairline-color);
  border: 1px solid var(--hairline-color);
  position: relative;
}

.flash-sheet-card {
  padding: 2rem;
  background-color: var(--bg-surface);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  transition: background-color 0.4s ease;
}

.flash-sheet-card:hover {
  background-color: var(--bg-surface-hover);
}

.card-top-meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.card-roman-num {
  font-family: var(--font-headline);
  font-size: 0.95rem;
  letter-spacing: 0.15em;
  font-weight: 600;
}

.card-spec-mono {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  opacity: 0.75;
  letter-spacing: 0.12em;
  text-align: right;
  line-height: 1.4;
}

.card-thumb-aspect {
  aspect-ratio: 16 / 9;
  margin-bottom: 1.5rem;
  overflow: hidden;
  background-color: var(--bg-surface-hover);
}

.card-thumb-aspect img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
  opacity: 0.85;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.flash-sheet-card:hover .card-thumb-aspect img {
  opacity: 1;
  transform: scale(1.03);
}

.card-director-tag {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 1rem;
  opacity: 0.75;
  margin-bottom: 0.25rem;
}

.card-heading {
  font-family: var(--font-headline);
  font-size: 1.35rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 600;
}

/* ==========================================================================
   7. FOOTER
   ========================================================================== */
.site-footer {
  position: relative;
  width: 100%;
  padding: 3.5rem 2.5rem;
  border-top: 1px solid var(--hairline-color);
  background-color: var(--header-bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  z-index: 40;
}

.footer-brand-lockup {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-brand-title {
  font-family: var(--font-headline);
  font-size: 0.95rem;
  letter-spacing: 0.2em;
  font-weight: 600;
}

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

.footer-link-item {
  font-family: var(--font-body);
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text-primary);
  opacity: 0.75;
  transition: opacity 0.2s ease;
}

.footer-link-item:hover {
  opacity: 1;
}

.footer-copyright {
  font-family: var(--font-body);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.6;
}

/* ==========================================================================
   8. RESPONSIVE MEDIA QUERIES
   ========================================================================== */
@media (max-width: 1024px) {
  .site-header {
    padding: 1rem 1.5rem;
  }
  .main-content {
    padding: 7rem 1.5rem 4rem;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .hero-headline {
    font-size: 3.2rem;
  }
}

@media (max-width: 768px) {
  .nav-menu, .tech-spec-tag {
    display: none;
  }
  .flash-sheet-grid {
    grid-template-columns: 1fr;
  }
  .hero-headline {
    font-size: 2.5rem;
  }
  .site-header {
    padding: 0.85rem 1rem;
  }
}
