@import url("../shared/industrial-magazine.css");

/* ==========================================================================
   YIRAN NEXUS · BRAND FLAGSHIP ISSUE
   Full-bleed hero composition, two-species benefit ledgers, real-day story.
   ========================================================================== */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 74% -10%, rgba(176, 140, 92, 0.07), transparent 52%),
    radial-gradient(ellipse at 0% 100%, rgba(159, 216, 255, 0.03), transparent 48%);
}
main, .site-foot { position: relative; z-index: 1; }
.brand { position: relative; }
.brand-cn::after {
  content: "";
  display: inline-block;
  width: 3px;
  height: 3px;
  margin-left: 9px;
  background: var(--bronze);
  vertical-align: 0.5em;
}

/* ------------------------------------------------------------------- hero */
.brand-hero .hero-inner { max-width: 1000px; }
.brand-hero .hero-title { max-width: 16ch; }
.brand-hero .hero-ctas { align-items: stretch; }
.brand-hero .hero-ctas .btn,
.brand-hero .hero-ctas .btn-toggle { min-height: 48px; }
.brand-hero .btn-toggle { background: rgba(10, 12, 15, 0.4); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.brand-hero .toggle-panel { margin-bottom: clamp(20px, 4vh, 42px); }
.hero-bg-video {
  position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0.88; filter: saturate(0.96) contrast(1.08) brightness(0.92); pointer-events: none;
}
.hero-audio-btn {
  display: inline-block; margin-top: 8px; font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.12em; color: var(--bronze); border: 1px solid var(--hairline);
  background: rgba(10, 12, 15, 0.65); padding: 3px 8px; border-radius: 2px;
  cursor: pointer; transition: all 0.2s ease; pointer-events: auto;
}
.hero-audio-btn:hover { border-color: var(--bronze); color: var(--ink-1); }
.hero-audio-btn[aria-pressed="true"] { border-color: var(--accent); color: var(--accent); background: rgba(159, 216, 255, 0.12); }
.hero-issue {
  position: absolute;
  top: calc(var(--head-h) + 34px);
  right: var(--pad-x);
  z-index: 3;
  text-align: right;
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.8;
  letter-spacing: 0.12em;
  color: var(--ink-3);
  pointer-events: none;
}
.hero-issue b { display: block; font-family: var(--latin); font-size: 22px; font-weight: 400; letter-spacing: 0.06em; color: var(--bronze); }

/* -------------------------------------------------------------- manifesto */
.manifesto-call { margin-bottom: clamp(28px, 4vw, 44px); }
.manifesto-call .mag-quote { margin-top: 15px; max-width: 24ch; }
.invest-col .invest-points span { border-color: var(--hairline); }

/* ---------------------------------------------------------------- pillars */
.pillar { border-top: 1px solid var(--hairline); padding-top: clamp(30px, 4vw, 52px); }
.pillar + .pillar { margin-top: clamp(44px, 6vw, 76px); }
.pillar-head { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(20px, 3.5vw, 44px); align-items: end; }
.pillar-kicker { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; color: var(--bronze); text-transform: uppercase; }
.pillar-title { font-family: var(--serif); font-weight: 500; font-size: clamp(1.8rem, 3.4vw, 2.8rem); line-height: 1.25; letter-spacing: -0.02em; margin: 12px 0 7px; text-wrap: balance; }
.pillar-latin { font-family: var(--latin); font-style: italic; font-size: 13px; letter-spacing: 0.05em; color: var(--bronze); }
.pillar-def { color: var(--ink-2); font-size: 13px; line-height: 1.9; border-left: 1px solid var(--bronze-dim); padding-left: clamp(14px, 2vw, 22px); }
.pillar-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 18px; }
.pillar-tags span { font-family: var(--mono); font-size: 11px; letter-spacing: 0.04em; color: var(--ink-2); border: 1px solid var(--hairline); padding: 4px 8px; }
.engine-figure { position: relative; margin-top: 24px; border: 1px solid var(--hairline-soft); background: var(--bg-2); overflow: hidden; }
.engine-figure img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; filter: saturate(0.85) contrast(1.05) brightness(0.84); transition: transform 0.9s var(--ease), filter 0.9s ease; }
.engine-figure:hover img { transform: scale(1.02); filter: saturate(0.96) contrast(1.05) brightness(0.92); }
.engine-figure::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(to top, rgba(10, 12, 15, 0.74), transparent 44%); }
.engine-figure figcaption { position: absolute; left: 14px; right: 14px; bottom: 11px; z-index: 1; display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; color: var(--ink-2); }
.engine-figure .fig-index { color: var(--bronze); }
.engine-figure .fig-right { color: var(--ink-3); }
.pillar-actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 22px; }
.pillar-note { font-family: var(--mono); font-size: 11px; letter-spacing: 0.04em; color: var(--ink-3); max-width: 48ch; }
.pillar .benefit-ledger { margin-top: 22px; }

/* --------------------------------------------------------------- day story */
.day-story-box .btn-toggle { border-color: var(--bronze-dim); }
.day-story-foot .btn-toggle { font-size: 11px; }
.day-story-title em { color: var(--bronze); }
.day-panel .day-step:first-child { border-top: 0; }

/* -------------------------------------------------------------- chronicle */
.clients-block { margin-top: clamp(34px, 5vw, 62px); }
.clients-title { font-size: clamp(1.15rem, 2vw, 1.5rem); }
.section-meta { font-size: 11px; color: var(--ink-3); letter-spacing: 0.04em; }
.chronicle-row.is-expanded { background: linear-gradient(90deg, rgba(176, 140, 92, 0.065), transparent 74%); }

/* ---------------------------------------------------------------- contact */
.contact-call-spaced { margin-top: 16px; }
.contact-lead { margin-top: 18px; }
.contact-coords { font-size: 11px; color: var(--ink-3); }

/* -------------------------------------------------------------- responsive */
@media (max-width: 1100px) {
  .brand-hero .hero-title { max-width: 16ch; }
}
@media (max-width: 900px) {
  .hero-issue { display: none; }
  .pillar-head { grid-template-columns: 1fr; gap: 16px; }
  .pillar-def { border-left: 0; border-top: 1px solid var(--hairline-soft); padding: 14px 0 0; }
  .pillar-actions { align-items: flex-start; flex-direction: column; }
  .pillar-actions .btn-toggle { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-bg-video { display: none; }
  .hero-audio-btn { display: none; }
  .engine-figure img { transition: none; }
  .engine-figure:hover img { transform: none; }
}

@media (max-width: 700px) {
  .brand-hero .hero-title { font-size: clamp(2.5rem, 10.5vw, 3.4rem); }
  .brand-hero .hero-ctas { flex-direction: column; }
  .brand-hero .hero-ctas .btn,
  .brand-hero .hero-ctas .btn-toggle { width: 100%; }
  .manifesto-call .mag-quote { font-size: clamp(1.6rem, 7vw, 2.2rem); }
  .pillar-title { font-size: clamp(1.55rem, 7vw, 2rem); }
  .pillar-note { max-width: none; }
  .clients-block .sec-head { align-items: flex-start; }
}

/* ----------------------------------------------------------- image zoom */
.engine-figure, .band {
  cursor: zoom-in;
  position: relative;
}
.engine-figure img, .band img {
  cursor: zoom-in;
}
.engine-figure.is-zoomed-origin img,
.band.is-zoomed-origin img {
  opacity: 0.01 !important;
}

.image-zoom-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: block;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.36s ease, visibility 0.36s ease;
}
.image-zoom-overlay.is-active {
  pointer-events: auto;
  opacity: 1;
  visibility: visible;
  cursor: zoom-out;
}

.image-zoom-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 10, 14, 0.94);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  opacity: 0;
  cursor: zoom-out;
  transition: opacity 0.38s cubic-bezier(0.16, 1, 0.3, 1);
}
.image-zoom-overlay.is-active .image-zoom-backdrop {
  opacity: 1;
}

.image-zoom-view {
  position: fixed;
  z-index: 2;
  margin: 0;
  padding: 0;
  cursor: zoom-out;
  will-change: transform;
}

.image-zoom-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 2px;
  border: 1px solid rgba(176, 140, 92, 0.35);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(255, 255, 255, 0.05);
  cursor: zoom-out;
}

.image-zoom-caption {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 14px);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--ink-2);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s ease 0.08s, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1) 0.08s;
  pointer-events: none;
}
.image-zoom-overlay.is-active .image-zoom-caption {
  opacity: 1;
  transform: translateY(0);
}
.image-zoom-caption .fig-index { color: var(--bronze); font-weight: 600; }
.image-zoom-caption .fig-right { color: var(--ink-3); }

.image-zoom-close {
  position: absolute;
  top: 24px;
  right: 28px;
  z-index: 10;
  width: 38px;
  height: 38px;
  border-radius: 2px;
  background: rgba(18, 22, 28, 0.75);
  border: 1px solid var(--hairline);
  color: var(--ink-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 16px;
  cursor: pointer;
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.3s ease, transform 0.3s ease, border-color 0.2s, color 0.2s;
}
.image-zoom-close:hover {
  border-color: var(--bronze);
  color: var(--ink-1);
  background: rgba(28, 34, 44, 0.9);
}
.image-zoom-overlay.is-active .image-zoom-close {
  opacity: 1;
  transform: scale(1);
}

@media (prefers-reduced-motion: reduce) {
  .image-zoom-view { transition: none !important; }
  .image-zoom-backdrop { transition: none !important; }
  .image-zoom-caption { transition: none !important; }
}

