/* ════════════════════════════════════════
   KOU GRAPHICS — shared design system
   Navy × Gold / Cormorant Garamond + Space Mono + Inter
════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background-color: #080C14;
  color: #F0EDE8;
  font-family: 'Inter', sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.grid-texture {
  background-image:
    linear-gradient(rgba(200,169,110,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(200,169,110,0.045) 1px, transparent 1px);
  background-size: 48px 48px;
  background-color: #080C14;
}

.hero-glow {
  background: radial-gradient(ellipse 80% 60% at 30% 50%, rgba(17,35,70,0.75) 0%, transparent 70%);
}

.gold-line::after {
  content: '';
  display: block;
  width: 48px;
  height: 1px;
  background: #C8A96E;
  margin-top: 20px;
}
.gold-divider-solid { height: 1px; background: rgba(200,169,110,0.25); }

/* ── Navbar ── */
#navbar { transition: background 0.4s ease, box-shadow 0.4s ease; }
#navbar.scrolled {
  background: rgba(8,12,20,0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(200,169,110,0.18);
}
.logo-wrap { display: flex; flex-direction: column; line-height: 1; white-space: nowrap; flex-shrink: 0; }
.logo-main {
  font-family: 'Space Mono', monospace;
  font-size: clamp(0.75rem, 2vw, 0.95rem);
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #F0EDE8;
}
.logo-sub {
  font-family: 'Space Mono', monospace;
  font-size: clamp(0.42rem, 1vw, 0.52rem);
  letter-spacing: 0.18em;
  color: #C8A96E;
  text-transform: uppercase;
  margin-top: 3px;
}

.nav-desktop { display: none; }
@media (min-width: 768px) {
  .nav-desktop { display: flex; align-items: center; gap: 2.5rem; }
  #hamburger { display: none !important; }
}
.nav-link {
  font-family: 'Space Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #5A6478;
  transition: color 0.2s;
  white-space: nowrap;
}
.nav-link:hover, .nav-link.active { color: #C8A96E; }

#hamburger {
  background: none; border: none; cursor: pointer; padding: 8px;
  display: flex; flex-direction: column; gap: 5px; z-index: 110;
}
#hamburger span { display: block; height: 1px; transition: transform 0.3s, opacity 0.3s, width 0.3s; }

#mobile-overlay {
  display: none; position: fixed; inset: 0; z-index: 100;
  background: rgba(8,12,20,0.98);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  flex-direction: column; align-items: center; justify-content: center; gap: 0;
}
#mobile-overlay.open { display: flex; }
#mob-close {
  position: absolute; top: 20px; right: 20px; width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  background: none; border: 1px solid rgba(200,169,110,0.25); border-radius: 50%;
  cursor: pointer; color: #C8A96E; font-size: 1.1rem; line-height: 1;
  -webkit-tap-highlight-color: transparent; transition: border-color 0.2s, background 0.2s;
}
#mob-close:hover { border-color: rgba(200,169,110,0.7); background: rgba(200,169,110,0.08); }
#mobile-overlay .mob-link {
  font-family: 'Space Mono', monospace;
  font-size: 1rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: #5A6478; transition: color 0.2s;
  display: block; padding: 18px 48px;
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
#mobile-overlay .mob-link:active, #mobile-overlay .mob-link:hover,
#mobile-overlay .mob-link.active { color: #C8A96E; }

/* ── Page hero (used on every page, image varies) ── */
.page-hero {
  position: relative;
  min-height: 46vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 8.5rem 1.5rem 3.5rem;
  background-size: cover;
  background-position: center;
}
@media (min-width: 768px) { .page-hero { padding: 9.5rem 3rem 4rem; } }
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(6,10,20,0.55) 0%, rgba(6,10,20,0.86) 78%, #080C14 100%);
}
.page-hero::after {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg,transparent,rgba(200,169,110,0.55) 40%,rgba(200,169,110,0.55) 60%,transparent);
}
.page-hero > * { position: relative; z-index: 1; }

/* Full-viewport hero for the top page only */
.hero-full { min-height: 100vh; justify-content: center; }

.hero-headline {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: -0.01em;
  word-break: keep-all;
  overflow-wrap: break-word;
}
.hero-tagline {
  font-family: 'Space Mono', monospace;
  font-size: clamp(0.6rem, 1.2vw, 0.68rem);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #C8A96E;
}

.section-label {
  font-family: 'Space Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #C8A96E;
}
.section-title { font-family: 'Cormorant Garamond', serif; font-weight: 300; }

.service-card { border: 1px solid rgba(200,169,110,0.14); transition: border-color 0.3s, transform 0.3s; background-color: rgba(17,24,39,0.6); }
.service-card:hover { border-color: rgba(200,169,110,0.48); transform: translateY(-4px); }

.portfolio-card {
  border: 1px solid rgba(90,100,120,0.3);
  background: repeating-linear-gradient(-45deg, rgba(90,100,120,0.04), rgba(90,100,120,0.04) 2px, transparent 2px, transparent 12px);
  transition: border-color 0.3s;
}
.portfolio-card:hover { border-color: rgba(200,169,110,0.3); }

.form-input {
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(90,100,120,0.45);
  color: #F0EDE8;
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  transition: border-color 0.2s, background 0.2s;
  outline: none; width: 100%; padding: 12px 16px; border-radius: 2px;
}
.form-input::placeholder { color: #5A6478; }
.form-input:focus { border-color: rgba(200,169,110,0.6); background: rgba(255,255,255,0.04); }
.form-label {
  font-family: 'Space Mono', monospace;
  font-size: 0.65rem; letter-spacing: 0.15em; text-transform: uppercase;
  color: #5A6478; display: block; margin-bottom: 8px;
}
.btn-primary {
  font-family: 'Space Mono', monospace;
  font-size: 0.7rem; letter-spacing: 0.15em; text-transform: uppercase;
  background: #C8A96E; color: #080C14; padding: 14px 36px; border: none;
  cursor: pointer; transition: background 0.2s, transform 0.2s; border-radius: 2px;
  display: inline-block;
}
.btn-primary:hover { background: #dfc088; transform: translateY(-1px); }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.btn-outline {
  font-family: 'Space Mono', monospace;
  font-size: 0.7rem; letter-spacing: 0.15em; text-transform: uppercase;
  background: transparent; color: #F0EDE8; padding: 13px 34px;
  border: 1px solid rgba(200,169,110,0.4); cursor: pointer;
  transition: border-color 0.2s, color 0.2s, transform 0.2s; border-radius: 2px;
  display: inline-block;
}
.btn-outline:hover { border-color: #C8A96E; color: #C8A96E; transform: translateY(-1px); }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

.tag-pill {
  font-family: 'Space Mono', monospace;
  font-size: 0.6rem; padding: 4px 12px; border: 1px solid rgba(90,100,120,0.3);
  color: #5A6478; letter-spacing: 0.08em; display: inline-block;
}
.status-pill {
  font-family: 'Space Mono', monospace; font-size: 0.55rem;
  padding: 4px 10px; letter-spacing: 0.1em; white-space: nowrap; flex-shrink: 0;
}
.status-pill.gold { border: 1px solid rgba(200,169,110,0.4); color: #C8A96E; }
.status-pill.muted { border: 1px solid rgba(90,100,120,0.4); color: #5A6478; }

/* ── Breadcrumb / eyebrow on page hero ── */
.page-kicker {
  font-family: 'Space Mono', monospace;
  font-size: 0.62rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: #C8A96E; display: flex; align-items: center; gap: 10px;
}
.page-kicker .sep { color: rgba(200,169,110,0.4); }
.page-kicker a { color: #5A6478; transition: color .2s; }
.page-kicker a:hover { color: #C8A96E; }

footer a.footer-link { color: #5A6478; transition: color .2s; }
footer a.footer-link:hover { color: #C8A96E; }

/* ── Splash intro (home page) ── */
#splash-screen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #080C14;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: opacity 0.7s ease;
}
#splash-screen.fade-out { opacity: 0; pointer-events: none; }
#splash-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
#splash-skip {
  position: absolute;
  z-index: 3;
  bottom: 24px;
  right: 24px;
  font-family: 'Space Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #8892A4;
  background: rgba(8,12,20,0.5);
  border: 1px solid rgba(200,169,110,0.35);
  padding: 10px 18px;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
  -webkit-tap-highlight-color: transparent;
}
#splash-skip:hover { color: #C8A96E; border-color: #C8A96E; }
body.splash-active { overflow: hidden; height: 100vh; }
#splash-backdrop { display: none; }

/* Mobile: new portrait clip (406x650) doesn't fill a tall phone screen when
   letterboxed with contain, so a blurred/scaled copy of the same clip fills
   the gaps behind it — same trick Instagram/YouTube use for mismatched
   aspect video, keeps the color continuous instead of hard bars. */
@media (max-width: 768px) {
  #splash-video { object-fit: contain; background: transparent; position: relative; z-index: 2; }
  #splash-backdrop {
    display: block;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(38px) brightness(0.65) saturate(1.15);
    transform: scale(1.15);
    z-index: 1;
  }
}

@media (prefers-reduced-motion: reduce) { #splash-screen { display: none; } }
