/* ==========================================================
   Ivana Benci — shared styles
   Fonts come from the Adobe Fonts web project linked in each
   page's <head>. Check the exact family names Adobe gives you
   and update the two variables below if they differ.
   ========================================================== */

:root {
  --font-display: "quiche-sans", "Futura", "Century Gothic", sans-serif;
  --font-body: "proxima-nova", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --heading: #2b292b;
  --paper: #ffffff;      /* the soft white of the current site */
  --ink: #747679; /*#2b292b;*/        /* body text: dark, but not black */
  --ink-soft: #5d5b60;   /* secondary text, captions */
  --ink-dark: #000000;
  --navy: #1c2340;       /* wordmark */
  --quiet: #8e8d92;      /* inactive menu items */
  --stone: #e2e6eb;      /* hairlines, slightly cool */
  --accent: #3d5a8a;     /* deep sky blue, from the photography */
  --silver: #8a94a3;     /* cool grey for secondary labels */
  --gold-light: #c8b07e; /* light gold, used sparingly */
  --wash: #f2f4f7;       /* cool, silvery background for boxes */

  --measure: 36rem;      /* comfortable reading width, about 70 characters */
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.125rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 1px solid var(--navy); outline-offset: 4px; }

/* ---------- Home: split layout ---------- */

.home {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
}

.home__intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  text-align: center;
  background: #fffcfc; 
}

.home__name {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(3rem, 5.6vw, 5.75rem);
  line-height: 1;
  letter-spacing: 0.01em;
  color: var(--ink);
}

/* Optional line under the name — see the comment in index.html */
.home__line {
  margin: 1.5rem 0 0;
  font-size: 1rem;
  color: var(--ink-soft);
  max-width: 24rem;
}

.home__nav {
  margin-top: 4.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.home__nav a {
  font-family: var(--font-display);
  font-weight: 100;
  font-size: 1.4rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink);
  transition: color 0.2s ease;
}


.home__image {
  position: relative;
  overflow: hidden;
}

.home__image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 55% 30%;
}

/* ---------- Interior pages: header ---------- */

.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem 2.5rem;
  /*padding: 2.5rem 4.5vw 1.5rem;*/
  padding: 1.2rem 4.5vw 1.2rem;
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--paper);
  border-bottom: 1px solid var(--stone);
}

.wordmark {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--navy);
  line-height: 1;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2.25rem;
}

.site-nav a {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #aeadb1;
  transition: color 0.2s ease;
}

.site-nav a:hover,
.site-nav a[aria-current] { color: var(--heading); }

/* ---------- Interior pages: text with side image ---------- */

.page {
  padding: 6rem 4.5vw 5rem;
}

.text-with-image {
  display: grid;
  grid-template-columns: minmax(0, var(--measure)) minmax(12rem, 20rem);
  justify-content: space-between;
  gap: 4rem;
  max-width: 72rem;
}

.page-title {
  margin: 0 0 0.35rem;
  /*font-family: var(--font-display);*/
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 2.6rem;
  line-height: 1.15;
  color: var(--ink);
}

.page-subtitle {
  margin: 0 0 2.5rem;
  font-style: italic;
  color: var(--ink-soft);
}

.prose p { margin: 0 0 1.4em; }
.prose p:last-child { margin-bottom: 0; }

.figure { margin: 0.5rem 0 0; }

.figure figcaption {
  margin-top: 0.9rem;
  font-size: 0.875rem;
  color: var(--ink-soft);
  text-align: center;
}

/* Space between sections on the same page, e.g. a future Film section */
.section + .section {
  margin-top: 7rem;
  padding-top: 5rem;
  /*border-top: 1px solid var(--stone);*/
}

/* ---------- Footer ---------- */

.site-footer {
  padding: 3rem 4.5vw 3.5rem;
  display: flex;
  justify-content: center;
  gap: 2rem;
  font-size: 0.9rem;
  color: var(--quiet);
}

.site-footer a:hover { color: var(--ink); }

/* ---------- Home on wider screens: sizes follow the window height, as on Portfolio ---------- */

@media (min-width: 1025px) {
  .home__name { font-size: 4.05rem; }
  .home__nav { margin-top: 4.8rem; gap: 0.6rem; }
  .home__image img { object-position: 50% 30%; }
}

/* ---------- Home on smaller screens: photo on top, name and menu below ---------- */

@media (max-width: 1024px) {
  .home { grid-template-columns: 1fr; min-height: 0; }
  .home__image { order: -1; height: 50vh; min-height: 22rem; }
  .home__image img { object-position: 45% 45%; }
  .home__intro { padding: 5.5rem 2rem 6rem; }
  .home__nav { margin-top: 5rem; gap: 1.6rem; }
}

/* ---------- Small screens ---------- */

@media (max-width: 820px) {
  .site-header { padding-top: 1.75rem; }
  .wordmark { font-size: 1.7rem; }

  .page { padding-top: 3.5rem; }
  .text-with-image { grid-template-columns: 1fr; gap: 3rem; }
  .figure { max-width: 16rem; }
  .page-title { font-size: 2.2rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* ---------- Text pages with several entries (Technology, later Ventures) ---------- */

.prose { max-width: var(--measure); }

.lede {
  font-size: 1.25rem;
  line-height: 1.6;
  color: var(--ink);
  margin: 1.5rem 0 0 !important;
}

.entry { margin-top: 4.5rem; }

.entry-title {
  margin: 0;
  /*font-family: var(--font-display);*/
  font-family: var(--font-body);
  font-weight: 300;
  /*font-size: 1.75rem;*/
  font-size: 1.4rem;
  line-height: 1.2;
  color: var(--ink);
}

.entry-meta {
  margin: 0.4rem 0 1.25rem !important;
  font-size: 0.95rem;
  font-style: italic;
  color: var(--ink-soft);
}

.entry-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.75rem;
  font-size: 0.95rem;
}

.entry-links a,
.aside a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--stone);
  text-underline-offset: 0.25em;
  transition: text-decoration-color 0.2s ease;
}

.entry-links a:hover,
.aside a:hover { text-decoration-color: var(--ink); }

.aside {
  margin-top: 5rem !important;
  padding-top: 2rem;
  /*border-top: 1px solid var(--stone);*/
  font-size: 0.95rem;
  color: var(--ink-soft);
}

/* Menu grouping, if not already added */
/*.home__nav .group-start { margin-top: 1.6rem; }*/
/*.site-nav .group-start { margin-left: 1.5rem; }*/


/* ---------- Art, Ventures, About ---------- */

/* Title area at the top of a page */
.page-intro { margin-bottom: 4.5rem; }

/* Links to sections on the same page (Art) */
.subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.75rem;
  margin-top: 1.25rem;
  font-size: 0.95rem;
}

/* Keeps a section heading clear of the top edge when jumped to */
.section[id] { scroll-margin-top: 7rem; }  /* clears the sticky header */

.section-title {
  margin: 0 0 1.75rem;
  /*font-family: var(--font-display);*/
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 2.1rem;
  line-height: 1.15;
  color: var(--ink);
}

/* A title inside a section, e.g. Thread under Writing */
.prose .entry-title { margin-top: 0; }

/* Photography grid: one wide image, then three in a row */
/*.gallery {
  display: grid;
  grid-template-columns: 1fr 1.8fr 1fr;
  gap: 0.75rem;
  max-width: 80rem;
}
.gallery__wide { grid-column: 1 / -1; }
.gallery img { width: 100%; height: 100%; object-fit: cover; }*/
.gallery {
  display: grid;
  grid-template-columns: 9fr 16fr 9fr;
  gap: 0.75rem;
}
.gallery__wide { grid-column: 1 / -1; }
.gallery img { width: 100%; height: auto; }

.caption {
  margin: 1rem 0 0;
  font-size: 0.875rem;
  color: var(--ink-soft);
}

/* Visual poetry spread */
.spread { width: 100%; max-width: 64rem; }

/* Large image above a text block (Efinia) */
.feature-image { width: 100%; max-width: 72rem; margin-bottom: 3rem; }

/* Links inside running text */
.prose p a {
  text-decoration: underline;
  text-decoration-color: var(--stone);
  text-underline-offset: 0.25em;
  transition: text-decoration-color 0.2s ease;
}
.prose p a:hover { text-decoration-color: var(--ink); }

.prose .entry-links a { text-decoration-color: var(--stone); }

.contact { margin-top: 3rem !important; }

audio { width: 100%; max-width: 28rem; }

@media (max-width: 820px) {
  /*.gallery { grid-template-columns: 1fr; }*/
  .page-intro { margin-bottom: 3rem; }
  .section-title { font-size: 1.8rem; }
}

/* A meta line directly under a section title sits closer to it */
.section-title + .entry-meta { margin-top: -1.2rem !important; }

/* Space after an opening line that is followed by more text (About) */
.lede + p { margin-top: 1.4em; }

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 1.75rem;
  height: 1.1rem;
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
  position: relative;
  z-index: 30;
}

.menu-toggle span {
  display: block;
  height: 1px;
  background: var(--ink);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* When open, the lines turn into an X */
.menu-open .menu-toggle span:nth-child(1) { transform: translateY(calc(0.55rem - 0.5px)) rotate(45deg); }
.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
.menu-open .menu-toggle span:nth-child(3) { transform: translateY(calc(-0.55rem + 0.5px)) rotate(-45deg); }

@media (max-width: 820px) {
  .menu-toggle { display: flex; }
  .site-header { flex-wrap: nowrap; align-items: center; }

  .site-nav {
    position: fixed;
    top: 0; right: 0; bottom: 0;
    width: min(80vw, 20rem);
    flex-direction: column;
    gap: 1.75rem;
    padding: 7rem 2.5rem 2rem;
    background: var(--paper);
    box-shadow: -1px 0 0 var(--stone);
    transform: translateX(100%);
    visibility: hidden;
    transition: transform 0.3s ease, visibility 0s 0.3s;
    z-index: 20;
  }

  .menu-open .site-nav {
    transform: none;
    visibility: visible;
    transition: transform 0.3s ease;
  }

  .site-nav a { font-size: 1.25rem; }
  .menu-open { overflow: hidden; }
}


/* ==========================================================
   Layout grid, shared by all interior pages
   Column 1: section titles. Column 2: text, at reading width.
   Column 3: side images (cover sketch, portrait).
   Images and cards can span columns 2 and 3 with .row__wide.
   ========================================================== */

.row {
  display: grid;
  grid-template-columns: minmax(10rem, 16rem) minmax(0, var(--measure)) minmax(0, 1fr);
  column-gap: clamp(2rem, 5vw, 5.5rem);
  align-items: start;
  max-width: 90rem;
}
.row > * { min-width: 0; }

.row__label { grid-column: 1; }
.row__body  { grid-column: 2; }
.row__aside { grid-column: 3; max-width: 22rem; }
.row__wide  { grid-column: 2 / -1; padding-top: 10px}

/* Titles in the left column */
/*.row__label .page-title { font-size: 2.2rem; margin: 0; }
.row__label .section-title { font-size: 1.75rem; margin: 0; }*/
.row__label .entry-meta { margin: 0.5rem 0 0 !important; }
.row__label.page-title,
.row__label .page-title { font-size: 1.85rem; margin: 0; }

.row__label.section-title,
.row__label .section-title { font-size: 1.4rem; margin: 0; }

/* Spacing between stacked pieces in the same row */
.row__wide + .row__body,
.row__body + .row__wide { margin-top: 2.5rem; }

/* The first paragraph of an intro lines up with the title */
.page-intro .lede { margin-top: 0.35rem !important; }
.page-intro .subnav { margin-top: 0.9rem; }

/* ---------- Project cards (Technology) ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 3rem 2.5rem;
}

.card {
  /*border-top: 1px solid var(--stone);*/
  padding-top: 1.5rem;
}
.card .entry-title { font-size: 1.45rem; }
.card .entry-title a:hover { color: var(--ink-soft); }
.card p { margin: 0 0 1rem; font-size: 1rem; line-height: 1.65; }
.card .entry-meta { margin: 0.35rem 0 1rem !important; }
.card .entry-links { margin: 1.25rem 0 0; }

.aside-row .aside { margin-top: 0 !important; }
.section + .aside-row { margin-top: 5rem; }

/* ---------- Case study pages ---------- */

.back {
  display: inline-block;
  margin-bottom: 2.5rem;
  font-size: 0.95rem;
  color: var(--ink-soft);
  transition: color 0.2s ease;
}
.back:hover { color: var(--ink); }

.case-meta { margin: 0; font-size: 0.95rem; }
.case-meta dt { color: var(--ink-soft); }
.case-meta dd { margin: 0 0 1rem; }

.case-title {
  margin: 0;
  /*font-family: var(--font-display);*/
  font-family: var(--font-body);
  font-weight: 300;
  font-size: clamp(2.2rem, 3.4vw, 3rem);
  line-height: 1.15;
  color: var(--ink);
}

.case-intro .lede { margin-top: 1.5rem !important; }

.chapter { margin-top: 6rem; }

.chapter-label {
  margin: 0;
  padding-top: 0.4rem;
  /*font-family: var(--font-display);*/
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1.2rem;
  line-height: 1.35;
  color: var(--ink-soft);
}

.chapter .entry-title { margin-bottom: 1.25rem; }

/* Term and description pairs: known/unknown, roles, stages */
.pairs {
  margin: 2rem 0;
  border-top: 1px solid var(--stone);
}
.pairs > div {
  padding: 1.1rem 0 1.2rem;
  border-bottom: 1px solid var(--stone);
}
.pairs dt {
  /*font-family: var(--font-display);*/
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1.15rem;
  color: var(--ink);
}
.pairs dd { margin: 0.35rem 0 0; font-size: 1rem; line-height: 1.65; }

.tag {
  display: block;
  margin-bottom: 0.2rem;
  font-family: var(--font-body);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* Two short lists side by side (listener vs creator) */
.compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  margin: 2rem 0;
}
.compare h4 {
  margin: 0 0 0.75rem;
  /*font-family: var(--font-display);*/
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1.15rem;
}
.compare ul { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--stone); }
.compare li { padding: 0.6rem 0; border-bottom: 1px solid var(--stone); font-size: 1rem; }

/* Previous and next case study */
.case-nav {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--stone);
  font-size: 0.95rem;
}
.case-nav a { color: var(--ink-soft); transition: color 0.2s ease; }
.case-nav a:hover { color: var(--ink); }
.case-nav span { display: block; font-family: var(--font-body); font-size: 1.15rem; color: var(--ink); }
.case-nav .next { text-align: right; margin-left: auto; }

/* ---------- Medium screens: two columns, side images drop under the text ---------- */

@media (max-width: 1200px) {
  .row { grid-template-columns: minmax(9rem, 13rem) minmax(0, var(--measure)); }
  .row__aside { grid-column: 2; margin-top: 3rem; max-width: 18rem; }
  .row__wide { grid-column: 2; }
  .row__label .page-title { font-size: 1.9rem; }
  .row__label .section-title { font-size: 1.5rem; }
}

/* ---------- Small screens: one column, titles above their content ---------- */

@media (max-width: 820px) {
  .row { grid-template-columns: minmax(0, 1fr); }
  .row__label, .row__body, .row__aside, .row__wide { grid-column: 1; }
  .row__label { margin-bottom: 1.5rem; }
  .row__label .page-title { font-size: 2.2rem; }
  .row__label .section-title { font-size: 1.8rem; }
  .row__aside { max-width: 16rem; }
  .chapter { margin-top: 4rem; }
  .chapter-label { margin-bottom: 0.5rem !important; }
  .compare { grid-template-columns: 1fr; gap: 1.5rem; }
  .case-nav { flex-direction: column; }
  .case-nav .next { text-align: left; margin-left: 0; }
}

/* ---------- Contact form ---------- */

.contact-form { margin-top: 3rem; max-width: 32rem; }

.field { margin-bottom: 1.75rem; }

.field label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.field input,
.field textarea {
  width: 100%;
  padding: 0.6rem 0;
  border: 0;
  border-bottom: 1px solid var(--stone);
  border-radius: 0;
  background: transparent;
  font: inherit;
  color: var(--ink);
  transition: border-color 0.2s ease;
}
.field textarea { resize: vertical; min-height: 9rem; }

.field input:focus,
.field textarea:focus {
  outline: none;
  border-bottom-color: var(--ink);
}

/* Spam trap stays out of sight */
.field-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.button {
  margin-top: 0.5rem;
  padding: 0.85rem 2.25rem;
  background: transparent;
  border: 1px solid var(--ink);
  border-radius: 0;
  /*font-family: var(--font-display);*/
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.button:hover,
.button:focus-visible { background: var(--ink); color: var(--paper); }

.form-status {
  margin: 2.5rem 0 0;
  padding: 1rem 0;
  border-top: 1px solid var(--stone);
  border-bottom: 1px solid var(--stone);
  color: var(--ink);
}
.form-status.is-error { color: #8a3b2e; }

.site-footer { align-items: center; gap: 1.75rem; }
.site-footer a { display: inline-flex; }
.site-footer svg { width: 1.35rem; height: 1.35rem; }

/* Titles on the left sit on the same line as the first line of text on the right */
.row__label,
.row__body,
.cards { align-self: baseline; }

/* ==========================================================
   Colors: dark headings, softer body text, clearer menus
   ========================================================== */

/* Home page: name and menu in the darker color */
.home__name,
.home__nav a { color: var(--heading); }

/* Home page menu: a thin underline appears on hover */
.home__nav a {
  text-decoration: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.3em;
  transition: text-decoration-color 0.25s ease;
}
.home__nav a:hover,
.home__nav a:focus-visible {
  color: var(--heading);
  text-decoration-color: currentColor;
}

/* Titles on all pages */
.page-title,
.section-title,
.entry-title,
.case-title,
.chapter-label,
.pairs dt,
.compare h4,
.case-nav span { color: var(--heading); }

/* Section links at the top of the Art page */

.subnav a {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--quiet);
  transition: color 0.2s ease;
}

.subnav a:hover,
.subnav a:focus-visible { color: var(--heading); }

/* ==========================================================
   Case study components: easier scanning on long pages
   ========================================================== */


/* Small number above each chapter name */
.chapter-num {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  color: var(--accent);
}

/* Key sentence pulled out of the text */
.prose .pull {
  margin: 2rem 0;
  padding-left: 1.25rem;
  border-left: 2px solid var(--accent);
  font-size: 1.2rem;
  line-height: 1.55;
  color: var(--heading, #2b292b);
}

/* Labels: Known, Unknown, Path not taken */
.tag--known   { color: var(--accent); }
.tag--unknown { color: var(--silver); }
p.tag { margin: 0 0 0.4rem !important; }

/* Known and unknown, two by two */
.known-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin: 2rem 0;
}
.known-grid > div { padding: 1.25rem 1.35rem; background: var(--wash); }
.known-grid dt { font-size: 1.1rem; color: var(--heading, #2b292b); }
.known-grid dd { margin: 0.4rem 0 0; font-size: 0.95rem; line-height: 1.6; }

/* Before and after, side by side */
.contrast {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin: 2rem 0;
}
.contrast > div { padding: 1.25rem 1.35rem; border: 1px solid var(--stone); }
.contrast > .contrast__new { border-color: var(--accent); }
.contrast p:not(.tag) { margin: 0 !important; font-size: 0.95rem; line-height: 1.6; }

/* Roles: label on the left, description on the right */
.roles { margin: 2rem 0; }
.roles > div {
  display: grid;
  grid-template-columns: 9rem 1fr;
  gap: 1.5rem;
  padding: 1.1rem 0;
  border-top: 1px solid var(--stone);
}
.roles > div:last-child { border-bottom: 1px solid var(--stone); }
.roles dt { color: var(--heading, #2b292b); }
.roles dd { margin: 0; font-size: 1rem; line-height: 1.65; }

/* A shaded aside, e.g. the path not taken */
.note-block {
  margin: 2rem 0;
  padding: 1.5rem 1.75rem;
  background: var(--wash);
}
.note-block__title { margin: 0 0 0.75rem !important; font-size: 1.1rem; color: var(--heading, #2b292b); }
.note-block p:last-child { margin-bottom: 0; }

/* The result, set apart */
.outcome-block {
  padding: 1.5rem 1.75rem;
  border-left: 2px solid var(--gold-light);
  background: var(--wash);
}
.outcome-block p { color: var(--heading, #2b292b); }

@media (max-width: 820px) {
  .known-grid, .contrast { grid-template-columns: 1fr; }
  .roles > div { grid-template-columns: 1fr; gap: 0.3rem; }
}


/* ---------- Additions for the brand–artist case study ---------- */

/* Small label above the case title */
.case-tag { margin: 0 0 0.75rem !important; color: var(--accent); }

/* Small title inside the side-by-side boxes */
.contrast .contrast__title {
  margin: 0 0 0.4rem !important;
  font-size: 1.05rem !important;
  color: var(--heading, #2b292b);
}

/* Conflicting signals */
.conflicts { margin: 1rem 0 2rem; padding: 0; list-style: none; }
.conflicts li {
  margin-bottom: 0.5rem;
  padding: 0.75rem 1.1rem;
  border-left: 2px solid var(--silver);
  background: var(--wash);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* What this work required */
.means { margin: 0.75rem 0 0; padding: 0; list-style: none; }
.means li {
  padding: 1rem 0 1rem 1.25rem;
  border-left: 2px solid var(--stone);
  font-size: 1rem;
  line-height: 1.65;
}
.means li + li { margin-top: 0.5rem; }
.means strong { font-weight: 400; color: var(--heading, #2b292b); }

/* The matching framework diagram */
.diagram {
  max-width: 50rem;
  margin-top: 2.5rem;
  padding: 2rem 1.5rem 1.5rem;
  background: var(--wash);
}
.framework { display: block; width: 100%; height: auto; overflow: visible; }
.framework text { font-family: var(--font-body); }
.fw-title { font-size: 13.5px; fill: var(--heading, #2b292b); }
.fw-text { font-size: 11.5px; fill: var(--ink-soft); }
.fw-text--future { font-size: 12px; fill: var(--silver); }
.fw-input { fill: #ffffff; stroke: var(--stone); stroke-width: 1; }
.fw-phase { fill: #ffffff; stroke: var(--accent); stroke-width: 1; }
.fw-future { fill: transparent; stroke: var(--silver); stroke-width: 0.8; stroke-dasharray: 4 3; }
.fw-pill { fill: var(--accent); }
.fw-pill--future { fill: var(--silver); }
.fw-pill-text { font-size: 10px; letter-spacing: 0.06em; fill: #ffffff; }
.fw-line { stroke: var(--accent); stroke-width: 1; }
.fw-line--future { stroke: var(--silver); }
.fw-arrowhead { stroke: var(--accent); }
.fw-arrowhead--future { stroke: var(--silver); }

/* On phones the diagram keeps a readable size and scrolls sideways */
@media (max-width: 820px) {
  .diagram { overflow-x: auto; padding: 1.5rem 1rem 1rem; }
  .framework { min-width: 36rem; }
}


/* ---------- Additions for the AI music creation case study ---------- */

/* Passive listener and creative professional, side by side */
.listener-creator {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin: 2rem 0;
}
.listener-creator > div { padding: 1.25rem 1.35rem; border: 1px solid var(--stone); }
.listener-creator > .listener-creator__new { border-color: var(--accent); background: var(--wash); }
.listener-creator ul { margin: 0; padding: 0; list-style: none; }
.listener-creator li {
  padding: 0.5rem 0;
  border-top: 1px solid var(--stone);
  font-size: 0.95rem;
  line-height: 1.5;
}
.listener-creator li:first-child { border-top: 0; }
.listener-creator__new li { color: var(--heading, #2b292b); }

/* Competitors, and the gap they left */
.competitors {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin: 2rem 0;
}
.competitors > div { padding: 1.25rem 1.35rem; background: var(--wash); }
.competitors p { margin: 0 !important; font-size: 0.95rem; line-height: 1.55; }
.competitors .competitors__name { margin-bottom: 0.6rem !important; font-size: 1.05rem; color: var(--heading, #2b292b); }
.competitors .competitors__plus { margin-bottom: 0.4rem !important; color: var(--accent); }
.competitors .competitors__minus { color: var(--silver); }
.competitors > .competitors__gap {
  grid-column: 1 / -1;
  background: transparent;
  border: 1px solid var(--accent);
}
.competitors__gap p:not(.tag) { color: var(--heading, #2b292b); font-size: 1.05rem; }

/* Stages: number and timing on the left */
.stage-rows dt { line-height: 1.4; }
.stage-timing {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--silver);
}
.stage-title { display: block; margin-bottom: 0.25rem; color: var(--heading, #2b292b); }

/* A label inside the outcome box */
.outcome-block p.tag { color: var(--accent); }

@media (max-width: 820px) {
  .listener-creator, .competitors { grid-template-columns: 1fr; }
}

/* ---------- Ventures: two companies side by side ---------- */

.ventures {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem 3rem;
  max-width: 52rem; 
}

.venture__image {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  margin-bottom: 1.75rem;
}

.venture .section-title { margin: 0; }
.venture .entry-meta { margin: 0.35rem 0 1rem !important; }
.venture p:not(.entry-meta):not(.entry-links) { margin: 0 0 1.25rem; max-width: 30rem; }

@media (max-width: 820px) {
  .ventures { grid-template-columns: 1fr; }
  .venture__image { aspect-ratio: 4 / 3; }
}
