/* bhack.io — LA Center Studios × AI production campus
   Design system: marziani.ai tokens (ink base, gold ramp, Plex mono numbers) */
:root {
  --ink: #16140e;
  --surface: #221f15;
  --surface-2: #2b271b;
  --line: #3d3722;
  --line-soft: #2d291b;
  --paper: #f1ece2;
  --muted: #a89c85;
  --gold-deep: #a4752d;
  --gold: #d4af6a;
  --gold-bright: #e8cf8e;
  --gold-pale: #fcf7bb;
  --grad-gold: linear-gradient(90deg, var(--gold-deep), var(--gold-pale));
  --grad-gold-diag: linear-gradient(135deg, var(--gold-deep), var(--gold) 55%, var(--gold-pale));
  --radius: 16px;
  --radius-sm: 10px;
  --container: 1220px;
  --font-display: 'Bricolage Grotesque', system-ui, sans-serif;
  --font-body: 'IBM Plex Sans', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
section[id] { scroll-margin-top: 84px; }
img { max-width: 100%; display: block; }
a { color: var(--gold-bright); text-decoration: none; }
a:hover { color: var(--gold-pale); }
.container { max-width: var(--container); margin: 0 auto; padding: 0 28px; }

/* type */
h1, h2, h3, .display { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.015em; }
h1 { font-size: clamp(2.4rem, 5.2vw, 4.1rem); line-height: 1.06; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.7rem); line-height: 1.12; }
h3 { font-size: 1.22rem; line-height: 1.3; }
.eyebrow {
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 18px;
}
.lede { font-size: 1.16rem; color: var(--muted); max-width: 46rem; }
.mono { font-family: var(--font-mono); }
.gold-text { background: var(--grad-gold); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* header */
header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(22, 20, 14, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-soft);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 24px; }

/* mobile menu (10/10): hamburger + slide-down panel; desktop nav hidden <=1060px */
.menu-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; padding: 10px; margin-right: -10px;
  background: transparent; border: none; cursor: pointer; z-index: 60;
}
.menu-toggle span {
  display: block; width: 100%; height: 2px; border-radius: 2px;
  background: var(--gold); transition: transform 0.25s ease, opacity 0.2s ease;
}
.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-menu {
  display: none; position: fixed; top: 64px; left: 0; right: 0; bottom: 0;
  background: rgba(16, 14, 10, 0.985);
  backdrop-filter: blur(14px); z-index: 55; overflow-y: auto;
  border-top: 1px solid var(--line-soft);
}
.mobile-menu .container {
  display: flex; flex-direction: column; gap: 4px; padding: 18px 28px 40px;
}
.mobile-menu a {
  font-family: var(--font-mono); font-size: 1.02rem; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--paper); text-decoration: none; padding: 14px 4px;
  border-bottom: 1px solid var(--line-soft);
}
.mobile-menu a.active { color: var(--gold-bright); }
.mobile-menu a.cta {
  margin-top: 18px; text-align: center; border: none; border-radius: 999px;
  background: var(--grad-gold); color: var(--ink); font-weight: 600; padding: 14px 18px;
}
@media (max-width: 1060px) {
  .menu-toggle { display: flex; }
  nav.links a:not(.cta) { display: none; }
  .mobile-menu.open { display: block; }
}
.brand { display: flex; align-items: baseline; gap: 10px; white-space: nowrap; }
.brand .mark {
  font-family: var(--font-display); font-weight: 800; font-size: 1.06rem; letter-spacing: 0.02em;
  background: var(--grad-gold); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.brand .tag { font-family: var(--font-mono); font-size: 0.62rem; color: var(--muted); letter-spacing: 0.14em; text-transform: uppercase; }
nav.links { display: flex; gap: 26px; align-items: center; }
nav.links a { font-family: var(--font-mono); font-size: 0.76rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
nav.links a:hover, nav.links a.active { color: var(--gold-bright); }
nav.links a.cta {
  color: var(--ink); background: var(--grad-gold); padding: 9px 16px; border-radius: 999px;
  font-weight: 600; letter-spacing: 0.06em;
}
nav.links a.cta:hover { filter: brightness(1.08); color: var(--ink); }

/* hero */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line-soft); }
.hero .bg { position: absolute; inset: 0; }
.hero .bg img { width: 100%; height: 100%; object-fit: cover; opacity: 1; }
.hero .bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(10,11,10,0.68) 0%, rgba(10,11,10,0.35) 38%, rgba(10,11,10,0.10) 70%, rgba(10,11,10,0.42) 100%),
              linear-gradient(180deg, rgba(10,11,10,0.18) 0%, rgba(10,11,10,0) 35%, rgba(10,11,10,0.58) 100%);
}
.hero .inner { position: relative; padding: 108px 0 96px; }
.hero h1 { max-width: 15ch; }
.hero .lede { margin-top: 22px; }
.hero .kicker {
  display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-mono);
  font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-bright);
  border: 1px solid rgba(212,175,106,0.35); border-radius: 999px; padding: 7px 14px; margin-bottom: 26px;
  background: rgba(212,175,106,0.08);
}
.hero .kicker .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 12px var(--gold); }
.hero .actions { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }
.btn {
  display: inline-block; font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.1em;
  text-transform: uppercase; padding: 13px 22px; border-radius: 999px; border: 1px solid rgba(212,175,106,0.4);
  color: var(--gold-bright); transition: all 0.15s ease;
}
.btn:hover { background: rgba(212,175,106,0.12); color: var(--gold-pale); }
.btn.solid { background: var(--grad-gold); color: var(--ink); border: none; font-weight: 600; }
.btn.solid:hover { filter: brightness(1.08); color: var(--ink); }

/* stats band */
.stats { border-bottom: 1px solid var(--line-soft); background: var(--surface); }
.stats .row { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 30px 26px; border-left: 1px solid var(--line-soft); }
.stat:first-child { border-left: none; }
.stat .num { font-family: var(--font-mono); font-size: 1.9rem; font-weight: 600; color: var(--gold-bright); line-height: 1.1; }
.stat .lbl { font-size: 0.8rem; color: var(--muted); margin-top: 6px; line-height: 1.4; }

/* sections */
section.block { padding: 84px 0; border-bottom: 1px solid var(--line-soft); }
section.block.tint { background: var(--surface); }
.block .head { margin-bottom: 42px; }
.block .head .lede { margin-top: 14px; }
.split { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 54px; align-items: center; }
.split .img { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.split .img img { width: 100%; height: 100%; object-fit: cover; }
.split.rev .img { order: 2; }
.split .body p { color: var(--muted); margin-bottom: 16px; }
.split .body p strong { color: var(--paper); font-weight: 600; }

/* cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.cards.two { grid-template-columns: repeat(2, 1fr); }
.cards.four { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) { .cards.four { grid-template-columns: repeat(2, 1fr); } }
.card {
  background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px; position: relative;
}
.card .idx { font-family: var(--font-mono); font-size: 0.7rem; color: var(--gold); letter-spacing: 0.18em; margin-bottom: 12px; }
.card h3 { margin-bottom: 10px; }
.card p { font-size: 0.94rem; color: var(--muted); }
.card .cap { font-family: var(--font-mono); font-size: 0.64rem; color: var(--muted); letter-spacing: 0.12em; text-transform: uppercase; margin-top: 14px; }
.card img.exp { width: 100%; height: 200px; object-fit: cover; border-radius: var(--radius-sm); margin: 0 0 16px; border: 1px solid var(--line); }

/* tech table */
table.spec { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
table.spec th {
  font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--gold); text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line);
}
table.spec td { padding: 11px 14px; border-bottom: 1px solid var(--line-soft); color: var(--muted); vertical-align: top; }
table.spec td:first-child { color: var(--paper); white-space: nowrap; }
table.spec tr:last-child td { border-bottom: none; }

/* image band */
.band { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.band img { width: 100%; height: 420px; object-fit: cover; }
.band .overlay {
  position: absolute; inset: 0; display: flex; align-items: flex-end;
  background: linear-gradient(180deg, rgba(10,11,10,0) 30%, rgba(10,11,10,0.9) 100%); padding: 28px;
}
.band .overlay .cap { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }

/* quote */
blockquote {
  border-left: 3px solid var(--gold); padding: 6px 0 6px 22px; margin: 28px 0;
  font-size: 1.12rem; color: var(--paper); font-style: italic; max-width: 44rem;
}

/* footer */
footer { background: var(--surface); border-top: 1px solid var(--line-soft); padding: 46px 0 38px; }
footer .grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
footer h4 { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
footer ul { list-style: none; }
footer li { margin-bottom: 9px; font-size: 0.9rem; }
footer li a { color: var(--muted); }
footer li a:hover { color: var(--gold-bright); }
footer .legal { border-top: 1px solid var(--line-soft); margin-top: 36px; padding-top: 20px; font-size: 0.74rem; color: var(--muted); display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }

/* mobile */
@media (max-width: 920px) {
  .stats .row { grid-template-columns: repeat(2, 1fr); }
  .stat { border-left: none; border-top: 1px solid var(--line-soft); }
  .split { grid-template-columns: 1fr; gap: 28px; }
  .split.rev .img { order: 0; }
  .cards, .cards.two { grid-template-columns: 1fr; }
  footer .grid { grid-template-columns: 1fr; gap: 26px; }
  nav.links a:not(.cta) { display: none; }
  .band img { height: 300px; }
  section.block { padding: 60px 0; }
}

/* ===== IE News (news.html) — added 10/8 ===== */
.ien-hero { background: linear-gradient(135deg, #0a0b0a 0%, #14130f 45%, #1b1912 100%); }
.ien-hero::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 60% 50% at 70% 30%, rgba(212,175,106,0.12) 0%, rgba(212,175,106,0) 70%);
}
.ien-hero .container { position: relative; z-index: 1; }

.ien-tools { display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap; margin-bottom: 26px; }
.ien-chips { display: flex; gap: 10px; flex-wrap: wrap; }
.ien-chip {
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted); background: transparent; border: 1px solid var(--line); border-radius: 999px;
  padding: 8px 16px; cursor: pointer; transition: all 0.15s ease;
}
.ien-chip:hover { border-color: rgba(212,175,106,0.5); color: var(--gold-bright); }
.ien-chip.on { background: rgba(212,175,106,0.14); border-color: rgba(212,175,106,0.55); color: var(--gold-bright); }
.ien-meta { font-family: var(--font-mono); font-size: 0.7rem; color: var(--muted); display: flex; gap: 14px; align-items: center; }

.ien-list { display: grid; grid-template-columns: 1fr; gap: 14px; }
.ien-item {
  display: grid; grid-template-columns: 64px 1fr; gap: 20px; align-items: start;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 18px 22px; color: var(--paper); transition: border-color 0.15s ease, transform 0.15s ease;
}
.ien-item:hover { border-color: rgba(212,175,106,0.5); color: var(--paper); transform: translateY(-1px); }
.ien-item .datecol { display: flex; flex-direction: column; align-items: center; border-right: 1px solid var(--line-soft); padding-right: 14px; }
.ien-item .datecol .mo { font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.14em; color: var(--gold); }
.ien-item .datecol .day { font-family: var(--font-mono); font-size: 1.25rem; font-weight: 600; color: var(--paper); line-height: 1.2; }
.ien-item .datecol .yr { font-family: var(--font-mono); font-size: 0.6rem; color: var(--muted); }
.ien-item .body h3 { font-size: 1.02rem; margin-bottom: 6px; }
.ien-item .src-line { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 4px; }
.ien-item .src-line .tags { display: flex; gap: 6px; flex-wrap: wrap; }
.ien-item .src-line span:last-child { font-family: var(--font-mono); font-size: 0.66rem; color: var(--muted); letter-spacing: 0.06em; }
.ien-item p { font-size: 0.9rem; color: var(--muted); }
.tag {
  font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.1em; text-transform: uppercase;
  border: 1px solid var(--line); border-radius: 4px; padding: 2px 7px; color: var(--gold);
}
.tag.t-deals { color: #e8cf8e; border-color: rgba(232,207,142,0.35); }
.tag.t-venues { color: #d4af6a; border-color: rgba(212,175,106,0.35); }
.tag.t-vprod { color: #fcf7bb; border-color: rgba(252,247,187,0.3); }
.tag.t-tech { color: #a89c85; border-color: rgba(168,156,133,0.4); }
.tag.t-aicontent { color: #f1ece2; border-color: rgba(241,236,226,0.3); }

.ien-empty, .ien-load { color: var(--muted); text-align: center; padding: 40px 0; font-size: 0.95rem; }
.spin {
  width: 26px; height: 26px; margin: 0 auto; border-radius: 50%;
  border: 2px solid var(--line); border-top-color: var(--gold); animation: ienspin 0.8s linear infinite;
}
@keyframes ienspin { to { transform: rotate(360deg); } }
.ien-note { font-size: 0.78rem; color: var(--muted); margin-top: 26px; }

/* featured reel */
.reel-frame { position: relative; max-width: 380px; }
.reel-frame a { display: block; position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.reel-frame img { width: 100%; aspect-ratio: 9/16; object-fit: cover; transition: transform 0.2s ease; }
.reel-frame a:hover img { transform: scale(1.02); }
.reel-play {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: 2.4rem; color: var(--gold-bright); text-shadow: 0 2px 18px rgba(10,11,10,0.8);
  background: rgba(10,11,10,0.18); border-radius: 50%; width: 74px; height: 74px; margin: auto;
  border: 2px solid rgba(232,207,142,0.75);
}
.reel-cap { display: block; font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-top: 10px; }
.reel-quote { font-size: 1.3rem; line-height: 1.4; color: var(--paper); font-style: italic; border-left: 3px solid var(--gold); padding-left: 18px; }
.reel-note { grid-column: 1 / -1; font-size: 0.74rem; color: var(--muted); }

@media (max-width: 920px) {
  .ien-item { grid-template-columns: 54px 1fr; gap: 14px; padding: 15px 16px; }
  .reel-frame { max-width: 300px; }
}

/* nav-fit fix (10/8, IE News 6th link): single-line labels, tighter gaps under 1500px */
/* v4 (10/10, 7th link "Honda Official" overflowed): tighter default + earlier breakpoints */
nav.links a { white-space: nowrap; line-height: 1.3; }
nav.links { flex-wrap: nowrap; }
@media (max-width: 1650px) { nav.links { gap: 18px; } .nav { gap: 18px; } }
@media (max-width: 1500px) { nav.links { gap: 14px; } .nav { gap: 14px; } nav.links a { font-size: 0.73rem; } }
@media (max-width: 1400px) { nav.links { gap: 12px; } .nav { gap: 12px; } }
@media (max-width: 1300px) { .brand .tag { display: none; } }
@media (max-width: 1250px) { nav.links { gap: 11px; } .nav { gap: 10px; } nav.links a { font-size: 0.70rem; } }
@media (max-width: 1160px) {
  nav.links { gap: 9px; } .nav { gap: 8px; }
  nav.links a { font-size: 0.68rem; } nav.links a.cta { padding: 8px 12px; }
}
@media (max-width: 1060px) {
  nav.links a:not(.cta) { display: none; } /* links cannot fit; CTA + brand only (as on mobile) */
}
