@import url('https://fonts.googleapis.com/css2?family=EB+Garamond:ital,wght@0,400;0,500;1,400;1,500&display=swap');

:root {
  --bg: #F4F2EB;
  --blue: #1400ff;
  --black: #111111;
  --mid: #555555;
  --border: #cccccc;
  --white: #ffffff;
  --font-serif: 'EB Garamond', Georgia, serif;
  --font-mono: 'Courier New', Courier, monospace;
}

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

html { font-size: 16px; background: var(--bg); color: var(--black); }
body { font-family: var(--font-mono); background: var(--bg); min-height: 100vh; }
a { color: inherit; text-decoration: none; }

/* MAX WIDTH */
.site-inner {
  max-width: 1200px;
  margin: 0 auto;
}

/* NAV */
.nav {
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 40px;
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.08em; text-transform: uppercase;
}
.nav-logo { font-weight: bold; color: var(--blue); letter-spacing: 0.06em; font-size: 12px; }
.nav-links { display: flex; gap: 28px; }
.nav-link { color: var(--black); font-size: 12px; letter-spacing: 0.08em; }
.nav-link.active { text-decoration: underline; text-underline-offset: 3px; }

/* BREADCRUMB */
.breadcrumb {
  font-family: var(--font-mono); font-size: 12px;
  color: var(--mid); padding: 0 40px 4px; letter-spacing: 0.04em;
}

/* HERO */
.hero-panel {
  margin: 0 40px;
  background: transparent;
  border: none;
  display: flex; align-items: center; justify-content: center;
  padding: 8px 24px 24px; overflow: hidden;
}
#bd-ascii-stage {
  display: flex; justify-content: center; align-items: center;
  width: 500px; height: 500px; margin: 0 auto; background: transparent;
}
#bd-ascii-art {
  font-family: 'Courier New', monospace; font-size: 10px;
  font-weight: 900;
  line-height: 1.05; letter-spacing: 0.5px;
  white-space: pre; user-select: none;
  display: block; margin: 0; padding: 0;
}

/* CAMPAIGN BANNER */
.campaign-banner {
  margin: 0 40px;
  background: var(--blue);
  color: var(--white);
  padding: 28px 32px 0;
}
.campaign-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 20px;
}
.campaign-top-left { flex: 1; }
.campaign-tag {
  display: inline-block; border: 1px solid var(--white);
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em;
  padding: 4px 8px; margin-bottom: 16px; text-transform: uppercase;
}
.campaign-title {
  font-family: var(--font-serif); font-size: 56px; font-weight: 400;
  line-height: 1; color: var(--white);
}
.campaign-rule {
  border: none;
  border-top: 1px solid rgba(255,255,255,0.3);
  margin: 0;
}
.campaign-specs {
  display: flex; flex-wrap: nowrap; gap: 0; white-space: nowrap; overflow: hidden;
  font-family: var(--font-mono); font-size: 12px;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  padding: 14px 0;
}
.campaign-specs span {
  flex: 1;
  padding-right: 12px;
}
.campaign-specs span:last-child {
  flex: 0 0 auto;
  padding-right: 0;
  margin-left: auto;
  text-align: right;
}
.campaign-specs strong { color: var(--white); font-weight: normal; }
.campaign-btn {
  display: inline-block; border: 1px solid var(--white); color: var(--white);
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em;
  padding: 12px 24px; white-space: nowrap; text-transform: uppercase;
  transition: background 0.15s, color 0.15s; flex-shrink: 0; align-self: center;
}
.campaign-btn:hover { background: var(--white); color: var(--blue); }

/* GALLERY */
.gallery-section { margin: 40px 40px 0; }
.gallery-header {
  display: flex; justify-content: space-between; align-items: baseline;
  padding-bottom: 12px;
  margin-bottom: 0;
}
.gallery-title-wrap { display: flex; align-items: baseline; gap: 12px; }
.gallery-num { font-family: var(--font-mono); font-size: 12px; color: var(--mid); }
.gallery-title { font-family: var(--font-serif); font-size: 36px; font-weight: 400; font-style: italic; line-height: 1; }
.gallery-count { font-family: var(--font-mono); font-size: 12px; color: var(--mid); letter-spacing: 0.06em; }
.gallery-rule { border: none; border-top: 1px solid var(--border); margin: 0 0 16px; }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border); /* gap color */
}
.gallery-item {
  position: relative;
  background: #c8c8c8; /* gray placeholder */
  overflow: hidden;
}

/* Portrait: 1080x1350 ratio = 4:5 */
.gallery-portrait img,
.gallery-portrait .gallery-placeholder {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  display: block;
  background: #c0c0c0;
}

/* Landscape: 1350x1080 ratio = 5:4 */
.gallery-landscape img,
.gallery-landscape .gallery-placeholder {
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  display: block;
  background: #b0b0b0;
}

/* Gray placeholder for images not yet added */
.gallery-item img {
  background: #c0c0c0;
  /* When image is missing, show gray. Replace src with real image path to activate. */
}

.gallery-label {
  position: absolute; top: 12px; left: 12px;
  font-family: var(--font-mono); font-size: 12px;
  color: var(--black); letter-spacing: 0.05em;
  text-transform: uppercase; z-index: 2;
  background: var(--white);
  border: 1px solid var(--black);
  padding: 4px 8px;
  text-shadow: none;
}
.gallery-num-tag {
  position: absolute; bottom: 12px; right: 12px;
  font-family: var(--font-mono); font-size: 12px;
  color: var(--black); z-index: 2;
  background: var(--white);
  border: 1px solid var(--black);
  padding: 4px 8px;
  text-shadow: none;
}

/* FOOTER */
.footer {
  display: flex; justify-content: space-between; align-items: flex-start;
  padding: 32px 40px; margin-top: 48px;
  position: relative;
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.05em; text-transform: uppercase; color: var(--mid); font-size: 12px;
}
.footer::before {
  content: '';
  position: absolute;
  top: 0; left: 40px; right: 40px;
  border-top: 1px solid var(--border);
}
.footer-brand { color: var(--black); font-weight: bold; margin-bottom: 4px; }
.footer-sub { color: var(--mid); margin-bottom: 6px; }
.footer-label { color: var(--black); margin-bottom: 6px; }
.footer-link { color: var(--blue); display: block; margin-bottom: 2px; }
.footer-link:hover { text-decoration: underline; }
.footer-links-row { display: flex; gap: 16px; }
.footer-links-row .footer-link { display: inline; }
.footer-col-right { text-align: left; }

/* ABOUT — HERO */
.about-hero { padding: 16px 40px 0; }
.about-title { font-family: var(--font-serif); font-size: 96px; font-weight: 400; line-height: 1; letter-spacing: -0.01em; }

/* ABOUT — US */
.us-section { display: flex; align-items: flex-start; gap: 0; padding: 32px 40px; }
.us-label { font-family: var(--font-serif); font-size: 56px; font-style: italic; color: var(--blue); line-height: 1; flex-shrink: 0; flex: 0 0 300px; }
.us-desc { font-family: var(--font-serif); font-size: 18px; color: var(--black); line-height: 1.5; padding-top: 8px; flex: 1; }

.divider { border: none; border-top: 1px solid var(--border); margin: 0 40px; }

/* ABOUT — STUDIO */
.studio-section { display: grid; grid-template-columns: 3fr 2fr; gap: 48px; padding: 32px 40px; align-items: start; }
.studio-info { font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; }
.studio-key { color: var(--mid); margin-bottom: 2px; font-size: 12px; }
.studio-val { color: var(--black); margin-bottom: 6px; line-height: 1.4; }
.studio-dotted { border-top: 1px dashed var(--border); margin: 10px 0; width: 100%; }

/* FOUNDERS */
.founders { display: flex; flex-direction: column; gap: 40px; }
.founder-card { display: flex; gap: 24px; align-items: flex-start; }
.founder-portrait { flex-shrink: 0; width: 130px; border: 1px solid var(--border); position: relative; }
.portrait-label { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--mid); padding: 6px 8px 4px; border-bottom: 1px solid var(--border); }
.founder-img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; display: block; background: #c0c0c0; }
.portrait-ratio { font-family: var(--font-mono); font-size: 12px; color: var(--mid); text-align: right; padding: 4px 8px; border-top: 1px solid var(--border); }
.founder-bio { flex: 1; }
.founder-name { font-family: var(--font-serif); font-size: 22px; font-weight: 400; margin-bottom: 4px; line-height: 1; }
.founder-role { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--mid); margin-bottom: 12px; }
.founder-text { font-family: var(--font-serif); font-size: 15px; line-height: 1.55; color: var(--black); }

/* TIMELINE */
.timeline-section { padding: 32px 40px; }
.timeline-label { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--mid); margin-bottom: 4px; }
.timeline-dotted { border-top: 1px dashed var(--border); margin: 6px 0; }
.timeline-row { display: grid; grid-template-columns: 160px 280px 1fr; gap: 16px; padding: 8px 0; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--black); align-items: center; font-size: 12px; }
.timeline-row-current .timeline-event, .timeline-row-current .timeline-note { color: var(--blue); }
.tl-year { color: var(--black); }
.tl-month { color: var(--blue); }
.timeline-note { color: var(--mid); }

/* CTA BANNER */
.cta-banner {
  margin: 32px 40px 0; background: var(--blue); color: var(--white);
  padding: 28px 32px; display: flex;
  justify-content: space-between; align-items: center; gap: 24px;
}
.cta-text { font-family: var(--font-serif); font-size: 28px; font-weight: 400; color: var(--white); }
.cta-text em { font-style: italic; }

/* =============================================
   BREAKPOINTS
   ============================================= */

/* --- TABLET: 768px --- */
@media (max-width: 768px) {

  /* Nav */
  .nav { padding: 14px 20px; }
  .breadcrumb { padding: 0 20px 8px; }

  /* Hero */
  .hero-panel { margin: 0 20px; padding: 16px; }
  #bd-ascii-stage { width: 340px; height: 340px; }

  /* Campaign */
  .campaign-banner { margin: 0 20px; padding: 20px 24px 0; }
  .campaign-title { font-size: 36px; }
  .campaign-top { flex-wrap: wrap; gap: 16px; }
  .campaign-btn { width: 100%; text-align: center; }
  .campaign-specs { flex-wrap: wrap; gap: 8px 0; }
  .campaign-specs span { flex: 0 0 50%; }
  .campaign-specs span:last-child { margin-left: 0; text-align: left; }

  /* Gallery */
  .gallery-section { margin: 32px 20px 0; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-title { font-size: 28px; }

  /* Footer */
  .footer { padding: 24px 20px; flex-direction: column; gap: 24px; }
  .footer::before { left: 20px; right: 20px; }

  /* About */
  .about-hero { padding: 12px 20px 0; }
  .about-title { font-size: 64px; }
  .us-section { padding: 20px 20px; gap: 24px; }
  .us-label { font-size: 40px; }
  .divider { margin: 0 20px; }

  /* Studio — stack columns */
  .studio-section {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 24px 20px;
  }

  /* Founders */
  .founder-card { flex-direction: column; }
  .founder-portrait { width: 100%; }
  .founder-img { aspect-ratio: 4 / 3; }

  /* Timeline */
  .timeline-section { padding: 24px 20px; }
  .timeline-row { grid-template-columns: 110px 1fr; }
  .timeline-row > div:last-child { display: none; }

  /* CTA */
  .cta-banner { margin: 24px 20px 0; flex-direction: column; align-items: flex-start; gap: 16px; }
  .cta-text { font-size: 22px; }
}

/* --- MOBILE: 480px --- */
@media (max-width: 480px) {

  /* Nav */
  .nav { padding: 12px 16px; flex-wrap: wrap; gap: 8px; }
  .breadcrumb { padding: 0 16px 8px; }

  /* Hero */
  .hero-panel { margin: 0 16px; padding: 12px; }
  #bd-ascii-stage { width: 260px; height: 260px; }
  #bd-ascii-art { font-size: 6px; }

  /* Campaign */
  .campaign-banner { margin: 0 16px; padding: 16px 16px 0; }
  .campaign-title { font-size: 26px; }
  .campaign-tag { font-size: 10px; }
  .campaign-specs span { flex: 0 0 100%; }
  .campaign-specs span:last-child { text-align: left; }

  /* Gallery */
  .gallery-section { margin: 24px 16px 0; }
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-title { font-size: 24px; }

  /* Footer */
  .footer { padding: 20px 16px; }
  .footer::before { left: 16px; right: 16px; }

  /* About */
  .about-hero { padding: 12px 16px 0; }
  .about-title { font-size: 48px; }
  .us-section { padding: 16px 16px; flex-direction: column; gap: 8px; }
  .us-label { font-size: 32px; }
  .us-desc { font-size: 16px; }
  .divider { margin: 0 16px; }

  /* Studio */
  .studio-section { padding: 20px 16px; }

  /* Founders */
  .founder-card { flex-direction: column; }
  .founder-portrait { width: 100%; }

  /* Timeline */
  .timeline-section { padding: 20px 16px; }
  .timeline-row { grid-template-columns: 100px 1fr; gap: 8px; }
  .timeline-row > div:last-child { display: none; }

  /* CTA */
  .cta-banner { margin: 20px 16px 0; padding: 20px 16px; }
  .cta-text { font-size: 18px; }
}
