/* ==========================================================
   Portfolio — styles
   Minimal: white page, black ink, handwritten headings,
   small light sans body, underlined links, lots of air.
   ========================================================== */

:root {
  --bg: #ffffff;
  --ink: #111111;
  --ink-soft: #5c5c5c;
  --ink-faint: #9a9a9a;
  --line: #e6e6e6;
  --ph: #f2f2f2;

  --font-hand: "Covered By Your Grace", "Comic Sans MS", cursive;
  --font-body: "Work Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;

  --max: 1040px;
  --gutter: clamp(16px, 5vw, 56px);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

/* --header-h is set from main.js so anchors land below the fixed header */
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h, 120px) + 16px); }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--ink-soft); }
strong, b { font-weight: 500; }

::selection { background: var(--ink); color: var(--bg); }

:focus-visible { outline: 1px solid var(--ink); outline-offset: 4px; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

.skip-link {
  position: absolute; left: -999px; top: 8px; z-index: 100;
  background: var(--ink); color: var(--bg); padding: 6px 12px;
}
.skip-link:focus { left: 8px; }

/* ---------- Type ---------- */

h1, h2, h3, h4 { margin: 0; font-weight: 400; line-height: 1.2; }

/* Handwritten headings — always uppercase, like marker lettering */
.display, .h2, .hand {
  font-family: var(--font-hand);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 0.95;
}
.display { font-size: clamp(2.8rem, 6vw, 4.4rem); }
.h2 { font-size: clamp(2.2rem, 4.4vw, 3.2rem); }
.h3 { font-family: var(--font-body); font-size: 17px; font-weight: 400; line-height: 1.4; }

em { font-style: normal; }

.eyebrow {
  display: inline-block;
  font-size: 11px; font-weight: 400; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-faint);
}

.lead { font-size: 15px; color: var(--ink-soft); max-width: 46ch; }
.muted { color: var(--ink-soft); }

/* ---------- Links styled as "buttons" ---------- */

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 0; background: none; border: 0; cursor: pointer;
  font: 400 12px/1.6 var(--font-body); letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink); text-decoration: underline;
}
.btn .arrow { text-decoration: none; transition: transform 0.25s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }
.btn-sm { font-size: 12px; }

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--bg);
  padding: clamp(24px, 4vw, 40px) 0 16px;
  border-bottom: 1px solid transparent;
  transition: padding 0.3s var(--ease), border-color 0.3s;
}
/* Compact state once the page is scrolled */
.site-header.scrolled { padding: 12px 0; border-bottom-color: var(--line); }
.site-header .logo { transition: font-size 0.3s var(--ease); }
.site-header.scrolled .logo { font-size: 30px; }

.header-inner {
  display: grid; grid-template-columns: auto 1fr; align-items: center;
  gap: 24px clamp(24px, 4vw, 56px);
}

.logo {
  font-family: var(--font-hand); text-transform: uppercase; text-decoration: none;
  font-size: clamp(34px, 4.4vw, 46px); line-height: 0.82; letter-spacing: 0.06em;
  display: inline-block;
}
.logo span { display: block; padding-left: 0.12em; font-size: 0.8em; letter-spacing: 0.18em; }
.logo:hover { color: var(--ink); }

.nav { display: flex; justify-content: space-between; gap: 16px 28px; max-width: 540px; width: 100%; justify-self: end; }
.nav a {
  font-size: 11px; font-weight: 400; letter-spacing: 0.08em; text-transform: uppercase;
  text-decoration: underline;
}
.nav a[aria-current="true"] { text-decoration-thickness: 2px; }

@media (max-width: 760px) {
  .header-inner { grid-template-columns: 1fr; }
  .nav { grid-column: 1 / -1; grid-row: 2; justify-self: start; justify-content: flex-start; max-width: none; flex-wrap: wrap; gap: 12px 14px; }
  .header-inner { transition: row-gap 0.3s var(--ease); }
  .site-header.scrolled { padding: 16px 0 10px; }
  .site-header.scrolled .header-inner { row-gap: 8px; }
  .site-header.scrolled .logo { font-size: 24px; }
}

/* ---------- Hero ---------- */

.hero { padding: clamp(48px, 8vw, 96px) 0 clamp(64px, 9vw, 120px); }

/* Photo column: 42% of the row, never below 280px, never above 440px */
.hero-grid {
  display: grid; grid-template-columns: clamp(280px, 42%, 440px) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 72px); align-items: start;
}

.hero-photo {
  position: relative; width: 100%; aspect-ratio: 3 / 4; background: var(--ph);
  display: grid; place-items: center; overflow: hidden;
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 70%; }

.hero-text { padding-top: clamp(0px, 3vw, 32px); }
.hero-text .display { margin-bottom: clamp(32px, 5vw, 56px); }
.hero-text p { margin: 0 0 16px; font-size: 13px; line-height: 1.6; color: var(--ink-soft); max-width: 44ch; }
.hero-text .hero-role { color: var(--ink); }

.ph-label { font-size: 12px; color: var(--ink-faint); padding: 0 20%; text-align: center; }

/* One column: photo on top, then heading and text */
@media (max-width: 767.98px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-photo { max-width: 440px; margin-inline: auto; }
  .hero-text { padding-top: 0; }
}

/* ---------- Sections ---------- */

.section { padding: clamp(64px, 9vw, 120px) 0; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 16px 24px; margin-bottom: clamp(32px, 5vw, 56px); flex-wrap: wrap; }
.section-head .eyebrow { display: block; margin-bottom: 12px; }
.section-head p { font-size: 13px; }

/* ---------- Work: accordion cards ---------- */
/* One card open at a time; the open one grows, the others collapse to a slim spine. */

.work-acc {
  --acc-gap: 12px;
  --acc-closed: 84px;
  --acc-h: clamp(560px, 62vw, 640px);
  --acc-speed: 0.7s;
  --acc-curve: cubic-bezier(0.65, 0, 0.35, 1);
  container-type: inline-size;
  display: flex; gap: var(--acc-gap); height: var(--acc-h);
}

.acc-card {
  position: relative; overflow: hidden;
  flex: 0 0 var(--acc-closed);
  background: #f7f7f7; border: 1px solid var(--line);
  transition: flex-grow var(--acc-speed) var(--acc-curve), background 0.3s, border-color 0.3s;
}
.acc-card.is-active { flex-grow: 1; background: var(--bg); }
.acc-card:not(.is-active):hover { background: #f0f0f0; border-color: #d6d6d6; }

/* Collapsed spine: the whole card is the button */
.acc-toggle {
  position: absolute; inset: 0; z-index: 2; width: 100%;
  background: none; border: 0; padding: 0; cursor: pointer; color: inherit; font: inherit;
}
.acc-card.is-active .acc-toggle { pointer-events: none; }
.acc-toggle:focus-visible { outline: 1px solid var(--ink); outline-offset: -6px; }

.acc-label {
  position: absolute; left: 50%; bottom: 28px;
  writing-mode: vertical-rl; transform: translateX(-50%) rotate(180deg);
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; white-space: nowrap;
  transition: opacity 0.3s ease 0.35s;
}
.acc-card.is-active .acc-label { opacity: 0; transition-delay: 0s; }

/* Content keeps the open width at all times, so it never reflows while the card animates */
.acc-panel {
  position: absolute; top: 0; left: 0; height: 100%;
  width: calc(100cqw - (var(--acc-count, 3) - 1) * (var(--acc-closed) + var(--acc-gap)));
  display: flex; flex-direction: column;
  opacity: 0; transition: opacity 0.25s ease;
}
.acc-card.is-active .acc-panel { opacity: 1; transition: opacity 0.5s ease calc(var(--acc-speed) * 0.45); }

.acc-media { position: relative; flex: 1 1 auto; min-height: 0; overflow: hidden; background: var(--ph); margin-top: 8px; }
.acc-media img { width: 100%; height: 100%; object-fit: cover; }

.acc-body { padding: clamp(24px, 3vw, 36px); }
.acc-body .eyebrow { display: block; margin-bottom: 14px; white-space: nowrap; }
.acc-title { font-size: clamp(20px, 2.2vw, 26px); font-weight: 400; line-height: 1.25; max-width: 30ch; margin-bottom: 12px; }
.acc-desc { margin: 0 0 24px; font-size: 14px; color: var(--ink-soft); max-width: 56ch; }
.acc-desc strong { color: var(--ink); }
.acc-foot { display: flex; justify-content: flex-end; align-items: center; gap: 12px 24px; flex-wrap: wrap; }

/* Open card is clickable as a whole and opens the case overlay */
.acc-card.is-active { cursor: pointer; }
.acc-media .ph-mock, .acc-media .ph-laptop { transition: transform 0.9s var(--ease); }
.acc-card.is-active:hover .acc-media img { transform: scale(1.025); }
.acc-card.is-active:hover .acc-media .ph-mock { transform: translate(-50%, -50%) scale(1.03); }
.acc-card.is-active:hover .acc-media .ph-laptop { transform: translate(-50%, -50%) scale(1.03); }
.acc-card.is-active:hover .acc-foot .btn .arrow { transform: translateX(3px); }

/* Content slides up a touch as it appears */
.acc-body > * { transform: translateY(10px); transition: transform 0.6s var(--ease); }
.acc-card.is-active .acc-body > * { transform: none; transition-delay: calc(var(--acc-speed) * 0.45); }

/* Phones: stack vertically, collapsed cards become thin rows */
@media (max-width: 720px) {
  .work-acc { --acc-closed: 56px; --acc-h: 640px; flex-direction: column; }
  .acc-panel { width: 100%; height: calc(var(--acc-h) - (var(--acc-count, 3) - 1) * (var(--acc-closed) + var(--acc-gap))); }
  .acc-label { left: 20px; bottom: auto; top: 50%; writing-mode: horizontal-tb; transform: translateY(-50%); }
  .acc-body { padding: 20px; }
  .acc-desc { margin-bottom: 16px; }
}

.tags { display: flex; flex-wrap: wrap; gap: 0; margin-bottom: 8px; }
.tag { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-faint); }
.tag + .tag::before { content: "·"; margin: 0 8px; }

.round-arrow { flex: none; font-size: 18px; transition: transform 0.25s var(--ease); }

/* Placeholder art (replace with real images) */
.ph-art { position: absolute; inset: 0; background: var(--ph); transition: opacity 0.4s var(--ease); }
.ph-note {
  position: absolute; left: 12px; bottom: 10px; z-index: 1;
  font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-faint);
}
.ph-mock {
  position: absolute; z-index: 1; left: 50%; top: 50%; transform: translate(-50%, -50%);
  height: 70%; aspect-ratio: 9 / 19; border: 1px solid #cfcfcf; border-radius: 18px; background: var(--bg);
}

.ph-laptop {
  position: absolute; z-index: 1; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 62%; aspect-ratio: 16 / 10; border: 1px solid #cfcfcf; border-radius: 8px 8px 2px 2px; background: var(--bg);
}
.ph-laptop::after {
  content: ""; position: absolute; left: -9%; right: -9%; top: 100%; height: 8px;
  border: 1px solid #cfcfcf; border-radius: 0 0 6px 6px; background: var(--bg);
}

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- About ---------- */

/* Text left, photo right: 40% of the row, never below 270px, never above 420px */
.about-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) clamp(270px, 40%, 420px);
  gap: clamp(28px, 6vw, 96px); align-items: start;
}
.about-text .h2 { margin-bottom: 32px; }
.about-text p { margin: 0 0 16px; max-width: 56ch; color: var(--ink-soft); }
.about-photo { position: relative; width: 100%; aspect-ratio: 4 / 5; background: var(--ph); display: grid; place-items: center; overflow: hidden; }
.about-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; }

/* ---------- How I work ---------- */

/* Skills & tools on the left, principles as a list on the right */
.how-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 40px clamp(32px, 6vw, 96px); align-items: start;
}

.lists { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; }
.lists h4 { font-size: 15px; font-weight: 500; margin-bottom: 10px; }
.lists ul { list-style: none; margin: 0; padding: 0; }
.lists li { padding: 2px 0; font-size: 14px; }

.principles { display: grid; }
.principle { padding: 24px 0; border-top: 1px solid var(--line); }
.principle:first-child { padding-top: 0; border-top: 0; }
.principle .num { font-size: 11px; letter-spacing: 0.12em; color: var(--ink-faint); margin-bottom: 12px; }
.principle .num::before { content: "0"; }
.principle h3 { font-size: 15px; font-weight: 500; margin-bottom: 6px; }
.principle p { margin: 0; color: var(--ink-soft); font-size: 14px; }

/* One column: What I do and Tools sit side by side above the principles */
@media (max-width: 860px) {
  .how-grid { grid-template-columns: minmax(0, 1fr); }
  .lists { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 24px; }
}
@media (max-width: 520px) {
  .lists { grid-template-columns: minmax(0, 1fr); gap: 28px; }
}

/* One column: photo on top, then the text */
@media (max-width: 767.98px) {
  .about-grid { grid-template-columns: minmax(0, 1fr); }
  .about-photo { max-width: 420px; margin-inline: auto; order: -1; }
}

/* ---------- Experience ---------- */

.exp-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.exp-item {
  display: grid; grid-template-columns: 150px 1fr 1.4fr; gap: 8px 40px;
  padding: 28px 0; border-bottom: 1px solid var(--line);
}
.exp-period { font-size: 12px; letter-spacing: 0.04em; color: var(--ink-faint); padding-top: 2px; }
.exp-role h3 { font-size: 15px; font-weight: 500; margin-bottom: 2px; }
.exp-role p { margin: 0; font-size: 14px; color: var(--ink-soft); }
.exp-desc { font-size: 14px; }
.exp-desc p { margin: 0 0 8px; color: var(--ink-soft); }
.exp-desc p:last-child { margin-bottom: 0; }
.exp-desc ul { margin: 0; padding-left: 16px; color: var(--ink-soft); }
.exp-desc li { margin-bottom: 8px; }
.exp-desc li:last-child { margin-bottom: 0; }
.exp-desc strong { font-weight: 500; color: var(--ink); }

.cv-box { margin-top: 48px; display: flex; justify-content: space-between; align-items: end; gap: 20px; flex-wrap: wrap; }
.cv-box h3 { font-size: 15px; font-weight: 500; }
.cv-box p { margin: 4px 0 0; font-size: 14px; color: var(--ink-soft); }
.cv-actions { display: flex; gap: 24px; flex-wrap: wrap; }

@media (max-width: 760px) { .exp-item { grid-template-columns: 1fr; } }

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

.contact { text-align: center; border-top: 1px solid var(--line); }
.contact .display { margin-bottom: 24px; }
.contact .lead { margin: 0 auto 32px; font-size: 14px; }

.email-row { margin-bottom: 28px; }
.email-link { font-size: clamp(1.1rem, 2.4vw, 1.5rem); word-break: break-all; }


.socials { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px 28px; }

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

.site-footer { padding: 40px 0 48px; font-size: 11px; color: var(--ink-soft); }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }

/* ---------- Reveal on scroll ---------- */

.js .reveal { opacity: 0; transform: translateY(12px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ==========================================================
   Case study page
   ========================================================== */

.case-hero { padding: clamp(48px, 7vw, 88px) 0 clamp(32px, 4vw, 48px); }
.back-link { display: inline-block; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 40px; }
.case-hero .display { max-width: 18ch; margin-top: 8px; }
.case-hero .lead { margin-top: 28px; max-width: 60ch; }

.case-meta { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); }
.case-meta dl, .case-meta dd { margin: 0; }
.case-meta dt, .case-meta h4 { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 4px; }
.case-meta p, .case-meta dd { margin: 0; font-size: 14px; }
@media (max-width: 720px) { .case-meta { grid-template-columns: repeat(2, 1fr); } }

.case-cover { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--ph); }
.case-cover img { width: 100%; height: 100%; object-fit: cover; }

.case-body { padding-top: clamp(56px, 8vw, 104px); padding-bottom: clamp(32px, 5vw, 56px); }
.case-section { display: grid; grid-template-columns: 220px 1fr; gap: 16px 56px; padding: 44px 0; border-top: 1px solid var(--line); }
.case-section:first-child { border-top: 0; padding-top: 0; }
.case-section > header .eyebrow { display: block; margin-bottom: 6px; }
.case-section > header h2 { font-family: var(--font-hand); text-transform: uppercase; letter-spacing: 0.04em; font-size: 2.2rem; line-height: 1; }
.case-content { max-width: 64ch; }
.case-content p { margin: 0 0 16px; }
.case-content ul { padding-left: 18px; margin: 0 0 16px; }
.case-content li { margin-bottom: 4px; }
.case-content .h3 { font-weight: 500; margin: 32px 0 8px; }
.case-content .h3:first-child { margin-top: 0; }
@media (max-width: 760px) { .case-section { grid-template-columns: 1fr; } }

.callout { border-left: 1px solid var(--ink); padding: 4px 0 4px 20px; margin: 24px 0; font-size: 17px; line-height: 1.5; }

.case-figure { margin: 28px 0; }
.case-figure .ph-box { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #fff; }
.case-figure .ph-box img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.case-figure figcaption { font-size: 12px; color: var(--ink-faint); margin-top: 8px; }
.fig-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* Media block in the case overlay: spans both grid columns,
   keeping the same side padding as every other block */
.cd-body .case-media { grid-column: 1 / -1; }

.metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin: 4px 0 24px; padding: 20px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.metric b { display: block; font-family: var(--font-hand); font-weight: 400; font-size: 2.6rem; line-height: 1; margin-bottom: 4px; }
.metric span { font-size: 12px; color: var(--ink-soft); }
@media (max-width: 720px) { .metrics, .fig-grid { grid-template-columns: 1fr; } }

.next-case { display: flex; justify-content: space-between; align-items: end; gap: 24px; text-decoration: none; padding: 40px 0 0; border-top: 1px solid var(--line); }
.next-case .eyebrow { display: block; margin-bottom: 10px; }
.next-case:hover { color: var(--ink); }
.next-case:hover .round-arrow { transform: translateX(6px); }

/* ==========================================================
   Case overlay (slide-over built from cases.js)
   ========================================================== */

html.modal-open { overflow: hidden; }

.case-dialog {
  position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0; background: transparent; color: var(--ink); overflow: hidden;
}
.case-dialog::backdrop { background: transparent; }

.cd-scrim {
  position: absolute; inset: 0; cursor: pointer;
  background: rgba(17, 17, 17, 0.06); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
  opacity: 0; transition: opacity 0.4s var(--ease);
}

.cd-panel {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: min(1120px, calc(100% - clamp(0px, 8vw, 160px)));
  background: var(--bg); border-left: 1px solid var(--line);
  overflow-y: auto; overscroll-behavior: contain; outline: none;
  transform: translateX(104%); transition: transform 0.55s cubic-bezier(0.65, 0, 0.35, 1);
}
.case-dialog.is-open .cd-scrim { opacity: 1; }
.case-dialog.is-open .cd-panel { transform: none; }

.cd-bar {
  position: sticky; top: 0; z-index: 3;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 16px clamp(20px, 5vw, 64px);
  background: rgba(255, 255, 255, 0.92); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.cd-close {
  display: inline-flex; align-items: center; gap: 8px;
  background: none; border: 0; padding: 4px 0; cursor: pointer; color: var(--ink);
  font: 400 11px/1 var(--font-body); letter-spacing: 0.1em; text-transform: uppercase;
}
.cd-close .cd-key { color: var(--ink-faint); }
.cd-close svg { width: 16px; height: 16px; transition: transform 0.3s var(--ease); }
.cd-close:hover svg { transform: rotate(90deg); }

.cd-content { padding: clamp(40px, 6vw, 80px) clamp(20px, 5vw, 64px) clamp(48px, 6vw, 80px); }

.cd-head .display { margin: 12px 0 20px; max-width: 18ch; }
.cd-head .lead { max-width: 60ch; margin: 0; }
.cd-head .case-meta { margin: 40px 0 clamp(32px, 5vw, 56px); }

.cd-body { padding-top: clamp(48px, 7vw, 88px); }
.cd-body .case-section { grid-template-columns: 180px minmax(0, 1fr); }
.cd-body .case-content { max-width: none; }
.cd-body .case-content > p, .cd-body .case-content > ul { max-width: 64ch; }
@media (max-width: 760px) { .cd-body .case-section { grid-template-columns: 1fr; } }

.decisions { list-style: none; margin: 28px 0 8px; padding: 0; border-top: 1px solid var(--line); }
.decisions li { display: grid; grid-template-columns: 40px 1fr; gap: 4px 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.decisions .eyebrow { padding-top: 3px; }
.decisions h3 { font-size: 15px; font-weight: 500; margin-bottom: 4px; }
.decisions p { margin: 0; color: var(--ink-soft); font-size: 14px; max-width: 60ch; }

.callout .eyebrow { display: block; margin-bottom: 6px; }

.cd-content .next-case {
  width: 100%; margin-top: clamp(24px, 4vw, 48px);
  background: none; border-left: 0; border-right: 0; border-bottom: 0;
  color: inherit; font: inherit; text-align: left; cursor: pointer;
}
.cd-content .next-case .h2 { display: block; }

@media (max-width: 720px) {
  .cd-panel { width: 100%; border-left: 0; }
  .cd-bar { padding-top: 14px; padding-bottom: 14px; }
}

/* Covers / media tweaks */
.acc-media img[src*="ai-simulators-cover"],
.case-cover img[src*="ai-simulators-cover"] { object-fit: contain; background: #fff; }

/* Explore cover: show the whole illustration, no crop, on the page background */
.acc-media:has(img[src*="explore-cover"]),
.case-cover:has(img[src*="explore-cover"]) { background: var(--bg); }
.acc-media img[src*="explore-cover"],
.case-cover img[src*="explore-cover"] { object-fit: contain; object-position: 50% 50%; }
.case-cover:has(img[src*="explore-cover"]) { aspect-ratio: auto; }
.case-cover:has(img[src*="explore-cover"]) img { height: auto; }
.acc-card.is-active:hover .acc-media img[src*="explore-cover"] { transform: none; }

/* Tall in-case illustration: full width, natural height, no crop */
.case-figure:has(img[src*="explore-case"]) .ph-box { aspect-ratio: auto; }
.case-figure:has(img[src*="explore-case"]) .ph-box img { height: auto; object-fit: contain; }

@media (min-width: 721px) {
  .case-meta { grid-template-columns: repeat(2, 1fr); }
}
