/* Azul Forward — Brand Identity & Visual Systems
   Loaded after styles.css and case-study.css, on that page only. A visual
   portfolio rather than a case narrative: no hero, three sections, each with a
   heading and topics above an image grid. The page stays quiet so the work
   carries the colour; Cerise Red appears only as the topic markers. */

:root {
  --bvs-accent: #ea2f5f;    /* Cerise Red, from the identity */
  --bvs-board: #faf9f7;     /* ground of the visual foundations boards */
}

/* ── HEADER ─────────────────────────────────────────────────────────────── */
.bvs-crumb {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sub);
  margin-bottom: var(--space-md);
}
.bvs-crumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0 0.6em; }
.bvs-crumb li + li::before { content: "/"; margin-right: 0.6em; color: var(--label); }
.bvs-crumb a { color: inherit; border-bottom: 1px solid transparent; transition: border-color 0.2s; }
.bvs-crumb a:hover { border-color: currentColor; }
.bvs-crumb a:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

/* ── SECTION HEAD — heading and description left, topics right ─────────── */
.bvs-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 15rem;
  gap: 3rem;
  align-items: start;
  margin-bottom: var(--space-xl);
}
.bvs-head .cs-h2 { margin-bottom: var(--space-md); }
.bvs-topics { list-style: none; padding-top: 0.4rem; }
.bvs-topics li {
  position: relative;
  padding-left: 1.25rem;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--ink);
}
.bvs-topics li + li { margin-top: 0.45rem; }
/* A dot in the page accent, drawn in CSS so screen readers announce nothing. */
.bvs-topics li::before {
  content: "";
  position: absolute;
  left: 0.15rem;
  top: 0.55em;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--bvs-accent);
}

/* ── IMAGE GRIDS ────────────────────────────────────────────────────────── */
.bvs-grid { display: grid; gap: 1.25rem; }
.bvs-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.bvs-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
/* Identity: the brand artwork is a 2.5:1 panorama, so it takes the full row;
   at a third of the column it would render under 200px tall. */
.bvs-grid--identity { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.bvs-grid--identity > :first-child { grid-column: 1 / -1; }

.bvs-panel { margin: 0; display: flex; flex-direction: column; }
/* Minimal mount: hairline edge, the artwork's own ground behind it, and the
   whole image always shown — contain, never cover. */
.bvs-frame {
  display: block;
  flex: 1;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--card);
}
.bvs-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.bvs-frame--auto img { height: auto; }
.bvs-frame--board { background: var(--bvs-board); aspect-ratio: 5 / 6; }
.bvs-frame--logo { background: var(--bg); display: flex; align-items: center; }
.bvs-frame--logo img { height: auto; }

/* Brand positioning — the board's four statements set as text, so they stay
   legible at any width instead of shrinking with an image. */
.bvs-values {
  list-style: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
  height: 100%;
  padding: 1.75rem;
}
.bvs-values li {
  padding-left: 1rem;
  border-left: 3px solid var(--bvs-accent);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.bvs-cap {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.75rem;
  font-size: 16px;
  line-height: 1.5;
}
.bvs-cap-title { font-weight: 600; color: var(--ink); }
.bvs-cap-hint { flex-shrink: 0; font-weight: 500; color: var(--sub); }
/* The image itself opens the full-resolution file in the browser. */
a.bvs-frame { transition: border-color 0.2s; }
a.bvs-frame:hover { border-color: var(--sub); }
a.bvs-frame:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.bvs-panel:has(a.bvs-frame:hover) .bvs-cap-hint { color: var(--ink); }

/* ── FULL-SIZE VIEWER ───────────────────────────────────────────────────── */
/* A modal over the page: the image fitted to the screen on an ink ground, a
   bar above it with the panel name and Close. The page behind does not scroll
   while it is open. */
html:has(.bvs-viewer[open]) { overflow: hidden; }
.bvs-viewer {
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: #141414;
  color: #fff;
}
.bvs-viewer[open] { display: flex; flex-direction: column; }
.bvs-viewer::backdrop { background: transparent; }
.bvs-viewer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.5rem;
}
.bvs-viewer-title {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
  color: #fff;
}
.bvs-viewer-close {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.55rem 1.1rem;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
}
.bvs-viewer-close span { font-size: 22px; line-height: 1; font-weight: 400; }
.bvs-viewer-close:hover { background: #e6e6e6; }
.bvs-viewer-close:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.bvs-viewer-stage {
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 1.5rem 1.5rem;
  overflow: auto;
}
.bvs-viewer-img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 4px;
  background: #fff;
}
@media (prefers-reduced-motion: no-preference) {
  .bvs-viewer[open] { animation: bvsViewerIn 0.2s ease both; }
  @keyframes bvsViewerIn { from { opacity: 0; } to { opacity: 1; } }
}
@media (max-width: 600px) {
  .bvs-viewer-bar { padding: 0.75rem 1rem; }
  .bvs-viewer-stage { padding: 0 0.75rem 0.75rem; }
}

/* ── RESPONSIVE ─────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .bvs-head { grid-template-columns: 1fr; gap: var(--space-md); margin-bottom: var(--space-lg); }
  /* Boards and dashboards stack: at half a tablet column they stop reading. */
  .bvs-grid--3, .bvs-grid--2 { grid-template-columns: 1fr; gap: var(--space-lg); }
  .bvs-frame--board { aspect-ratio: auto; }
  .bvs-frame--board img { height: auto; }
}
@media (max-width: 600px) {
  .bvs-grid--identity { grid-template-columns: 1fr; gap: var(--space-lg); }
  .bvs-values { padding: 1.25rem; }
}
