/* ============================================================
   BARS for KINGS — editorial redesign
   Tokens, base type, nav, hero variants
   ============================================================ */

:root {
  --ink: #0d0c0a;
  --paper: #ffffff;
  --cream: #faf8f3;
  --accent: #c9a227;
  --accent-deep: #a4831a;
  --muted: #6f6a61;
  --line: #e9e4d9;
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "Instrument Sans", -apple-system, "Helvetica Neue", sans-serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-card: 0 1px 2px rgba(13, 12, 10, 0.05), 0 12px 32px -12px rgba(13, 12, 10, 0.18);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }

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

button { font-family: inherit; cursor: pointer; }

::selection { background: var(--accent); color: #fff; }

.wrap { max-width: 1280px; margin: 0 auto; padding: 0 48px; }

/* ---- Editorial type scale ---- */
.display {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-deep);
  display: flex;
  align-items: center;
  gap: 12px;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--accent);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 56px;
}

.section-head h2 {
  font-family: var(--serif);
  font-size: clamp(40px, 4.6vw, 64px);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.01em;
  margin-top: 18px;
  text-wrap: balance;
}

.section-head p {
  max-width: 360px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
  text-wrap: pretty;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 4px;
  white-space: nowrap;
  transition: color 0.25s, border-color 0.25s;
}

.text-link svg { transition: transform 0.3s var(--ease-out); }
.text-link:hover { color: var(--accent-deep); border-color: var(--accent); }
.text-link:hover svg { transform: translateX(4px); }

/* ---- Image fallback placeholder ---- */
.img-fallback {
  width: 100%;
  height: 100%;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #14110c, #2a241a);
  color: var(--accent);
  font-family: var(--serif);
  font-size: 40px;
  font-style: italic;
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background 0.35s, box-shadow 0.35s, border-color 0.35s;
  border-bottom: 1px solid transparent;
}

.nav.is-solid {
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--line);
}

.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 48px;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.wordmark {
  font-family: var(--serif);
  font-size: 23px;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.wordmark em {
  font-style: italic;
  color: var(--accent-deep);
  font-size: 0.82em;
  margin: 0 2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  position: relative;
  padding: 6px 0;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease-out);
}

.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }

.nav-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 500;
  transition: border-color 0.25s, background 0.25s;
}

.btn-ghost:hover { border-color: var(--ink); }

.btn-ink {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--ink);
  color: #fff;
  border: 1px solid var(--ink);
  border-radius: 999px;
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 600;
  transition: background 0.25s, transform 0.25s var(--ease-out);
}

.btn-ink:hover { background: var(--accent-deep); border-color: var(--accent-deep); transform: translateY(-1px); }

/* Transparent nav over a full-bleed photo hero: invert to white */
body[data-hero="full"] .nav:not(.is-solid) { color: #fff; }
body[data-hero="full"] .nav:not(.is-solid) .wordmark em { color: var(--accent); }
body[data-hero="full"] .nav:not(.is-solid) .btn-ghost { border-color: rgba(255,255,255,0.45); color: #fff; }
body[data-hero="full"] .nav:not(.is-solid) .btn-ghost:hover { border-color: #fff; }
body[data-hero="full"] .nav:not(.is-solid) .btn-ink { background: #fff; border-color: #fff; color: var(--ink); }
body[data-hero="full"] .nav:not(.is-solid) .nav-links a::after { background: #fff; }

/* ============================================================
   HERO — shared + 3 variants (body[data-hero])
   ============================================================ */
.hero { position: relative; }
.hero-variant { display: none; }
body[data-hero="full"] .hero-full { display: block; }
body[data-hero="type"] .hero-type { display: block; }
body[data-hero="split"] .hero-split { display: grid; }

/* ---- Search pill (shared) ---- */
.search-pill {
  display: flex;
  align-items: stretch;
  background: #fff;
  border-radius: 999px;
  box-shadow: 0 2px 6px rgba(13,12,10,0.08), 0 24px 48px -16px rgba(13,12,10,0.28);
  padding: 8px;
  max-width: 680px;
  width: 100%;
}

.search-seg {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  padding: 8px 24px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.25s;
  min-width: 0;
}

.search-seg:hover { background: var(--cream); }
.search-seg + .search-seg { border-left: 1px solid var(--line); }

.search-seg .seg-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
}

.search-seg .seg-value {
  font-size: 14px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-go {
  flex: none;
  width: 56px;
  border-radius: 999px;
  border: none;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s, transform 0.25s var(--ease-out);
}

.search-go:hover { background: var(--accent-deep); transform: scale(1.05); }

/* ---- Variant 1: full-bleed photo ---- */
.hero-full { height: 92vh; min-height: 640px; position: relative; overflow: hidden; }

.hero-full .hero-media {
  position: absolute;
  inset: -10% 0;
  will-change: transform;
}

.hero-full .hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-full .hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,9,7,0.42) 0%, rgba(10,9,7,0.18) 40%, rgba(10,9,7,0.62) 100%);
}

.hero-full .hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: 96px;
  color: #fff;
}

.hero-full .display { font-size: clamp(56px, 7.4vw, 118px); max-width: 13ch; }
.hero-full .display em { font-style: italic; color: var(--accent); }

.hero-full .hero-sub {
  margin: 24px 0 40px;
  font-size: 18px;
  line-height: 1.6;
  max-width: 480px;
  color: rgba(255,255,255,0.84);
  text-wrap: pretty;
}

.hero-full .eyebrow { color: var(--accent); }
.hero-full .eyebrow::before { background: var(--accent); }

/* ---- Variant 2: massive typography ---- */
.hero-type { padding: 180px 0 96px; background: var(--paper); }

.hero-type .display {
  font-size: clamp(64px, 9.4vw, 152px);
  line-height: 0.96;
}

.hero-type .display em { font-style: italic; color: var(--accent-deep); }

.hero-type .display .inline-img {
  display: inline-block;
  width: 0.92em;
  height: 0.68em;
  border-radius: 999px;
  overflow: hidden;
  vertical-align: -0.08em;
  margin: 0 0.06em;
}

.hero-type .display .inline-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}

.hero-type .display .inline-img:hover img { transform: scale(1.12); }

.hero-type .hero-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 48px;
  margin-top: 56px;
}

.hero-type .hero-sub {
  font-size: 18px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 380px;
  text-wrap: pretty;
}

/* ---- Variant 3: split editorial ---- */
.hero-split {
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  max-width: 1280px;
  margin: 0 auto;
  padding: 156px 48px 80px;
  min-height: 88vh;
}

.hero-split .display { font-size: clamp(48px, 5.4vw, 84px); }
.hero-split .display em { font-style: italic; color: var(--accent-deep); }

.hero-split .hero-sub {
  margin: 24px 0 40px;
  font-size: 17px;
  line-height: 1.65;
  color: var(--muted);
  max-width: 440px;
  text-wrap: pretty;
}

.hero-split .stack {
  position: relative;
  aspect-ratio: 4 / 5;
  max-height: 640px;
}

.hero-split .stack-card {
  position: absolute;
  inset: 0;
  border-radius: 20px;
  overflow: hidden;
  opacity: 0;
  transform: scale(0.96) rotate(1.2deg);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
  box-shadow: var(--shadow-card);
}

.hero-split .stack-card.is-active {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

.hero-split .stack-card img { width: 100%; height: 100%; object-fit: cover; }

.hero-split .stack-card figcaption {
  position: absolute;
  left: 20px;
  bottom: 20px;
  background: rgba(13,12,10,0.72);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 10px 16px;
  border-radius: 999px;
}

.hero-split .stack-dots {
  position: absolute;
  right: 20px;
  top: 20px;
  display: flex;
  gap: 6px;
  z-index: 3;
}

.hero-split .stack-dots span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,0.45);
  transition: background 0.3s, transform 0.3s;
}

.hero-split .stack-dots span.is-active { background: #fff; transform: scale(1.25); }

/* ---- Responsive ---- */
@media (max-width: 960px) {
  .wrap, .nav-inner { padding: 0 24px; }
  .nav-links { display: none; }
  .hero-split { grid-template-columns: 1fr; padding-top: 120px; }
  .section-head { flex-direction: column; align-items: flex-start; }
}
