/* ─── Custom Fonts ──────────────────────────────────────────── */

@font-face {
  font-family: 'Favorit';
  src: url('../fonts/Favorit-Regular.woff2') format('woff2'),
       url('../fonts/Favorit-Regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Favorit';
  src: url('../fonts/Favorit-Medium.woff2') format('woff2'),
       url('../fonts/Favorit-Medium.woff') format('woff');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Favorit';
  src: url('../fonts/Favorit-Bold.woff2') format('woff2'),
       url('../fonts/Favorit-Bold.woff') format('woff');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Suisse Intl';
  src: url('../fonts/SuisseIntl-Regular.woff2') format('woff2'),
       url('../fonts/SuisseIntl-Regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Suisse Intl';
  src: url('../fonts/SuisseIntl-Medium.woff2') format('woff2'),
       url('../fonts/SuisseIntl-Medium.woff') format('woff');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* ─── Reset & Base ──────────────────────────────────────────── */

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

:root {
  --bg: #1E1E1E;
  --accent: #D4822A;
  --text-primary: #F5F2EE;
  --text-secondary: #888;
  --text-muted: #8A8A8A;
  --font-heading: 'Favorit', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-body: 'Suisse Intl', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --max-width: 1100px;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text-primary);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

/* ─── Top Bar ───────────────────────────────────────────────── */

.topbar {
  width: 100%;
  height: 56px;
  background: #1E1E1E;
  display: flex;
  align-items: center;
  padding: 0 48px;
}

/* ─── Back Button ───────────────────────────────────────────── */

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.15s ease;
}

.back-link:hover {
  color: var(--text-primary);
}

/* ─── Hero ──────────────────────────────────────────────────── */

.hero {
  width: 100%;
  background-color: #F0EDE8;
}

.hero img {
  width: 100%;
  height: auto;
  display: block;
}

/* ─── Case Study Layout ─────────────────────────────────────── */

.case-study {
  padding: 96px 48px 140px;
}

/* ─── Sections ──────────────────────────────────────────────── */

.section {
  margin-bottom: 128px;
}

.section--close {
  margin-top: -80px;
}


.section--hero {
  margin-bottom: 80px;
}

/* ─── Typography ────────────────────────────────────────────── */

h1, h2, h3 {
  font-family: var(--font-heading);
}

h1 {
  font-size: 48px;
  font-weight: 500;
  color: var(--text-primary);
  letter-spacing: -1px;
  line-height: 1.1;
}

h2 {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: var(--text-primary);
  margin-bottom: 16px;
}

h3 {
  font-size: 20px;
  font-weight: 500;
  color: var(--text-primary);
  letter-spacing: -0.2px;
  margin-bottom: 10px;
}

p {
  font-size: 15px;
  font-weight: 400;
  line-height: 1.8;
  color: var(--text-primary);
}

p + p {
  margin-top: 16px;
}

/* ─── Images ────────────────────────────────────────────────── */

.case-study img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

.img-caption {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 10px;
}

/* ─── Project Overview ──────────────────────────────────────── */

.section__title {
  font-family: var(--font-heading);
  font-size: 48px;
  font-weight: 500;
  letter-spacing: -1px;
  color: var(--text-primary);
  margin-bottom: 40px;
  line-height: 1.1;
}

.overview__columns {
  display: grid;
  grid-template-columns: 1.22fr 1fr;
  gap: 80px;
  align-items: start;
}

.overview__block {
  margin-bottom: 48px;
}

.overview__block:last-child {
  margin-bottom: 0;
}

/* Objectives list */

.overview__list {
  list-style: disc;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.overview__list li {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.obj__main {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.4;
  color: var(--text-primary);
}

.overview__list li,
.overview__team .team__name {
  color: var(--text-primary);
}

.obj__sub {
  font-size: 14px;
  font-weight: 400;
  color: var(--text-muted);
  line-height: 1.3;
  margin-bottom: 4px;
}

/* Team list */

.overview__team {
  list-style: none;
}

.overview__team li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 14px;
  padding: 14px 0;
  border-bottom: 1px solid #2E2E2E;
}

.overview__team li:first-child {
  border-top: 1px solid #2E2E2E;
}

.team__name {
  font-weight: 400;
  color: var(--text-primary);
}

.team__role {
  font-weight: 400;
  color: var(--text-muted);
}

/* ─── Problem Context ───────────────────────────────────────── */

.context-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-auto-rows: 1fr;
  gap: 12px;
  padding: 0 120px;
}

.context-card {
  background: #2A2A2A;
  border-radius: 12px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.context-card__label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--text-muted);
}

.context-card__statement {
  font-size: 22px;
  font-weight: 400;
  line-height: 1.3;
  color: var(--text-primary);
}

/* ─── Existing Screens ──────────────────────────────────────── */

.section__intro {
  margin-bottom: 48px;
}

.accordion {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.accordion__card {
  background: #2A2A2A;
  border-radius: 12px;
  padding: 24px;
}

.accordion__item {
  /* borders handled by card */
}

.accordion__label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  font-size: 16px;
  font-weight: 500;
  color: var(--text-primary);
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.accordion__label::-webkit-details-marker {
  display: none;
}

.accordion__icon {
  flex-shrink: 0;
  color: var(--text-muted);
  transition: transform 0.2s ease;
}

details[open] .accordion__icon {
  transform: rotate(180deg);
}

.accordion__body {
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.accordion__body > p,
.accordion__body > img,
.accordion__body > ul,
.accordion__body > .innovation-decisions,
.accordion__body > .comparison-grid,
.accordion__body > .process-lists {
  margin-bottom: 20px;
}

.accordion__body > .process-list__label {
  margin-top: 20px;
  margin-bottom: 12px;
}

.accordion__body > .innovation-decisions__heading {
  margin-top: 20px;
  margin-bottom: 12px;
}

.accordion__body img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

/* ─── Process ───────────────────────────────────────────────── */

.phase {
  margin-bottom: 56px;
}

.phase:last-child {
  margin-bottom: 0;
}

.phase__heading {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 500;
  color: var(--text-primary);
  letter-spacing: -0.3px;
  text-transform: none;
  letter-spacing: 0;
  margin-bottom: 24px;
}

.process-lists {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  padding-top: 4px;
}

.process-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.process-list__label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--text-muted);
}

.process-list__items {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.process-list__items li {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-primary);
  padding-left: 14px;
  position: relative;
}

.process-list__items li::before {
  content: '–';
  position: absolute;
  left: 0;
  color: var(--text-muted);
}

/* ─── Innovation Blocks ─────────────────────────────────────── */

.innovation-block {
  margin-bottom: 48px;
}

.innovation-block--last {
  margin-bottom: 0;
}

.innovation-questions {
  list-style: none;
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.innovation-questions li {
  font-size: 15px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-primary);
}

.innovation-decisions__heading {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.innovation-decisions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.innovation-decisions__item {
  font-size: 15px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-primary);
  margin: 0;
}

/* ─── Comparison Grid ───────────────────────────────────────── */

.comparison-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: 28px;
}

.comparison-item {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.comparison-item img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

.comparison-item__label {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  text-align: center;
}

/* ─── Outcome ────────────────────────────────────────────────── */

.outcome-hero {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  margin-top: 40px;
}

/* ─── Return to Top ─────────────────────────────────────────── */

.return-top-wrap {
  display: flex;
  justify-content: center;
  padding: 32px 48px 80px;
}

.return-top {
  background: transparent;
  border: 1px solid #F5F2EE;
  color: #F5F2EE;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  padding: 12px 16px;
  cursor: pointer;
  border-radius: 6px;
  transition: background 0.15s ease, color 0.15s ease;
}

.return-top:hover {
  background: rgba(245, 242, 238, 0.08);
}

/* ─── Divider ───────────────────────────────────────────────── */

.divider {
  height: 1px;
  background: #2E2E2E;
  margin: 64px 0;
}
