/* The Château Papillon editorial rhythm, with each client's own imagery. */
.case-refreshed.ed-case--foodeo { --case-surface: #efe0d8; --case-soft: #efebe2; --case-ink: #854433; --case-line: #c59c86; }
.case-refreshed.ed-case--directeat { --case-surface: #efe3d3; --case-soft: #eeece3; --case-ink: #845325; --case-line: #c5a17a; }
.case-refreshed.ed-case--souqdzayer { --case-surface: #e0e8db; --case-soft: #e9ece2; --case-ink: #426346; --case-line: #a0b396; }
.case-refreshed.ed-case--sos-express-transport { --case-surface: #e0e7e9; --case-soft: #e8ece8; --case-ink: #3f626f; --case-line: #9cafb6; }
.ed-case--finnelia { --ed-accent: #bda675; --ed-surface: #e9e4d8; --ed-deep: #47556b; --case-surface: #eae5dc; --case-soft: #ecece5; --case-ink: #445671; --case-line: #bca67d; }
.case-refreshed { --ed-accent: var(--case-line); }
.case-refreshed.ed-case--finnelia .ed-case-hero h1 { font-size: clamp(50px, 8vw, 118px); }
.case-refreshed.ed-case--sos-express-transport .ed-case-hero h1 { max-width: 1150px; }
.case-cover { display: grid; grid-template-columns: .75fr 1.8fr; gap: 16px; padding: 18px; margin-top: 28px; min-height: 380px; background: var(--case-surface); border: 1px solid var(--case-line); }
.case-cover--with-detail { grid-template-columns: .8fr 1.45fr .6fr; }
.case-cover-note { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 20px; padding: 12px; min-width: 0; text-align: center; }
.case-cover-note .eyebrow { letter-spacing: .07em; text-transform: uppercase; }
.case-cover-note > p { font-family: var(--serif); font-style: italic; font-size: clamp(29px, 2.7vw, 42px); line-height: 1.12; letter-spacing: -.025em; color: var(--case-ink); max-width: 12ch; }
.case-brand { width: min(100%, 220px); height: 110px; border-radius: 10px; overflow: hidden; background: #fff; border: 1px solid #ffffff90; }
.case-brand img { width: 100%; height: 100%; object-fit: cover; }
.case-brand--souqdzayer { background: #001b18; }
.case-brand--souqdzayer img { object-fit: contain; }
.case-brand--sos-express-transport { background: #002a3d; }
.case-brand--finnelia { height: 170px; width: 180px; background: #f8f7f1; padding: 12px; border-radius: 90px 90px 3px 3px; }
.case-brand--finnelia img { object-fit: contain; }
.case-cover-main { display: flex; flex-direction: column; align-items: stretch; justify-content: center; padding: 12px; gap: 12px; min-width: 0; background: #f8f7f1; }
.case-cover-main img { display: block; width: 100%; max-height: 330px; height: auto; object-fit: contain; }
.case-cover-main > span { font-size: 12px; line-height: 1.5; letter-spacing: .08em; text-align: right; color: var(--case-ink); }
.case-cover-detail { min-width: 0; overflow: hidden; border-radius: 100px 100px 3px 3px; }
.case-cover-detail img { width: 100%; height: 100%; max-height: 385px; object-fit: cover; }
.ed-case--directeat .case-cover-detail { border-radius: 12px; }
.ed-case--directeat .case-cover-detail img { object-position: 38% center; }
.ed-case--sos-express-transport .case-cover-detail img { object-position: 45% center; }
.case-benefits, .case-modules { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 20px; }
.case-benefits > article { padding: 18px 20px; background: var(--case-soft); border-left: 2px solid var(--case-line); }
.case-refreshed .ed-prose .case-benefits h3, .case-refreshed .ed-prose .case-modules h3 { font-size: 21px; line-height: 1.35; margin: 0 0 10px; }
.case-refreshed .ed-prose .case-benefits p, .case-refreshed .ed-prose .case-modules p { font-size: 16px; margin: 0; }
.case-modules > article { padding: 20px; background: var(--case-soft); border-top: 1px solid var(--case-line); }
.case-module-number { display: block; font-size: 12px; letter-spacing: .06em; color: var(--case-ink); margin-bottom: 10px; }
.case-refreshed .ed-prose .case-journey { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding: 0; margin: 20px 0; list-style: none; }
.case-refreshed .ed-prose .case-journey--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.case-refreshed .ed-prose .case-journey > li { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; margin: 0; padding: 16px; background: var(--case-surface); color: #535b4c; line-height: 1.45; min-width: 0; }
.case-journey-number { font-size: 12px; letter-spacing: .06em; color: var(--case-ink); }
.case-journey strong { font-size: 17px; font-weight: 500; color: #292d25; line-height: 1.3; }
.case-refreshed .ed-prose .case-journey > li > span:last-child { font-size: 16px; line-height: 1.45; }
.case-refreshed .ed-prose .case-journey-note { border-left: 2px solid var(--case-line); padding: 4px 0 4px 18px; }
.case-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 22px; align-items: start; }
.case-gallery--1 { grid-template-columns: 1fr; }
.case-gallery--3 > figure:first-child { grid-column: 1 / -1; }
.case-gallery figure { margin: 0; min-width: 0; }
.case-gallery a { display: block; padding: 8px; background: var(--case-surface); border: 1px solid var(--case-line); border-radius: 3px; }
.case-gallery a:hover { outline: 1px solid var(--case-ink); outline-offset: 3px; }
.case-gallery img { display: block; width: 100%; height: auto; object-fit: contain; }
.case-gallery figcaption { display: flex; gap: 14px; justify-content: space-between; font-size: 14px; line-height: 1.6; margin-top: 10px; color: #59634f; }
.case-gallery figcaption > span { color: var(--case-ink); font-size: 20px; }
.case-refreshed .ed-prose .case-skills { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; list-style: none; }
.case-refreshed .ed-prose .case-skills li { margin: 0; padding: 7px 12px; border: 1px solid #c6c4b4; border-radius: 30px; font-size: 14px; }
.case-testimonial { margin: 22px 0; padding: 22px; background: var(--case-surface); border-left: 2px solid var(--case-line); }
.case-testimonial figcaption { font-size: 12px; line-height: 1.5; letter-spacing: .07em; color: var(--case-ink); }
.case-refreshed .ed-prose .case-testimonial blockquote { padding: 0; margin: 14px 0 10px; border: 0; font-size: clamp(30px, 3vw, 43px); line-height: 1.35; letter-spacing: -.02em; font-family: var(--serif); font-style: italic; color: #303a2b; }
.case-refreshed .ed-prose .case-testimonial p { font-size: 14px; margin: 0; }
.case-refreshed #expertise .button { margin-top: 8px; font-size: 16px; max-width: 100%; white-space: normal; text-align: left; }
.case-related { display: flex; gap: 14px 26px; flex-wrap: wrap; margin-top: 22px; }
.case-refreshed .case-related a { font-size: 14px; }
.case-anchor { display: block; scroll-margin-top: 120px; }

/* Finnelia uses the same editorial card system as the other five projects. */
.project-visual--finnelia {
  background: radial-gradient(circle at 90% -10%, #f6f0e8 0, transparent 39%), linear-gradient(145deg, #e4e5df, #d6dddc);
  color: #243b4b;
}
.project-visual--finnelia::before {
  content: '';
  position: absolute;
  width: 53%;
  aspect-ratio: 1;
  border: 1px solid rgba(64, 85, 105, .19);
  border-radius: 50%;
  right: -17%;
  top: -30%;
}
.project-visual--finnelia .project-art-word {
  color: #344a60;
  max-width: 82%;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(38px, 3.6vw, 54px);
  line-height: 1;
  letter-spacing: -.045em;
  top: 66px;
  left: 29px;
  z-index: 4;
}
.project-visual--finnelia > .finnelia-card-mark {
  width: 46px;
  height: 44px;
  right: 28px;
  top: 28px;
  object-fit: contain;
  z-index: 4;
  opacity: .76;
}
.project-visual--finnelia > .finnelia-card-photo {
  width: 84%;
  height: 49%;
  max-width: none;
  left: 11%;
  top: 36%;
  object-fit: cover;
  object-position: center 42%;
  border: 8px solid #faf9f5;
  border-radius: 3px;
  box-shadow: 0 26px 52px #27324738;
  transform: rotate(3deg);
}
.project-visual--finnelia:hover > .finnelia-card-photo { transform: translateY(-8px) rotate(1deg); }
.project-visual--finnelia .project-view { background: #f8f6ef; color: #293448; }

@media (max-width: 1100px) {
  .case-cover { min-height: 320px; gap: 10px; padding: 12px; grid-template-columns: .8fr 1.8fr; }
  .case-cover--with-detail { grid-template-columns: .8fr 1.5fr; }
  .case-cover-detail { display: none; }
  .case-cover-note { gap: 14px; padding: 8px; }
  .case-cover-main img { max-height: 300px; }
  .case-refreshed .ed-prose .case-journey--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .case-refreshed .ed-prose .case-journey { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 800px) {
  .case-benefits, .case-modules { grid-template-columns: 1fr; }
  .case-gallery { grid-template-columns: 1fr; }
  .case-gallery--3 > figure:first-child { grid-column: auto; }
  .case-cover-note > p { font-size: 32px; }
  .case-brand { max-width: 170px; }
  .case-brand--finnelia { height: 150px; }
}
@media (max-width: 640px) {
  .case-cover, .case-cover--with-detail { grid-template-columns: 1fr; min-height: 0; padding: 12px; gap: 14px; margin-top: 20px; }
  .case-cover-note { display: grid; grid-template-columns: 1fr 100px; gap: 10px 12px; text-align: left; padding: 6px; }
  .case-cover-note > p { font-size: 30px; grid-column: 1; }
  .case-cover-note .eyebrow { grid-column: 1; font-size: 12px; }
  .case-brand { grid-column: 2; grid-row: 1 / 3; width: 100px; height: 90px; border-radius: 4px; }
  .case-brand--finnelia { height: 120px; padding: 10px; border-radius: 50px 50px 3px 3px; }
  .case-cover-main { padding: 8px; gap: 10px; }
  .case-cover-main img { max-height: none; }
  .case-cover-main > span { font-size: 12px; letter-spacing: .04em; text-align: left; }
  .case-benefits, .case-modules { gap: 10px; margin-top: 16px; }
  .case-benefits > article, .case-modules > article { padding: 16px; }
  .case-refreshed .ed-prose .case-journey { gap: 8px; margin-block: 16px; }
  .case-refreshed .ed-prose .case-journey > li { padding: 12px; }
  .case-gallery { gap: 20px; margin-top: 18px; }
  .case-gallery a { padding: 5px; }
  .case-testimonial { padding: 18px; }
  .case-refreshed .ed-prose .case-testimonial blockquote { font-size: 30px; }
  .project-visual--finnelia .project-art-word { max-width: 81%; font-size: clamp(31px, 9vw, 39px); left: 20px; top: 59px; }
  .project-visual--finnelia > .finnelia-card-mark { width: 30px; height: 30px; top: 21px; right: 20px; }
  .project-visual--finnelia > .finnelia-card-photo { width: 88%; left: 9%; top: 37%; height: 45%; }
}
