/*
 * Case-study refinement layer.
 * Brings the nine examples closer to the reviewed reference: an editorial
 * direction switcher, a denser case dossier, richer first-step workspaces,
 * and photographic scene backgrounds for the seat and Advent artboards.
 */

/* ---------- Case header ---------- */
.tabs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid #e3e4de;
  border-bottom: 1px solid #e3e4de;
  padding: 0;
  margin: 0 0 34px;
}

.tabs button {
  border: 0;
  border-right: 1px solid #e3e4de;
  border-radius: 0;
  background: none;
  text-align: left;
  padding: 18px 20px 17px;
  font-size: 12.5px;
  line-height: 1.4;
  color: #5a6055;
  transition: background .2s ease, color .2s ease;
}

.tabs button:last-child {
  border-right: 0;
}

.tabs button:hover {
  background: #fafbf6;
}

.tabs button.active {
  background: #f4f7e8;
  box-shadow: inset 0 2px 0 #d4ef81;
  color: #23281e;
  font-weight: 600;
}

.casefacts {
  display: grid;
  grid-template-columns: 1.1fr 1.2fr .9fr;
  border-top: 1px solid #e3e4de;
  border-bottom: 1px solid #e3e4de;
  margin: 24px 0 2px;
}

.casefacts > div {
  padding: 14px 18px 15px;
  border-right: 1px solid #e3e4de;
}

.casefacts > div:last-child {
  border-right: 0;
}

.casefacts small {
  display: block;
  font-size: 8.5px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: #9aa093;
}

.casefacts b {
  display: block;
  margin-top: 5px;
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.5;
  color: #2d3328;
}

.casefacts span {
  display: block;
  margin-top: 3px;
  font-size: 10px;
  line-height: 1.6;
  color: #7d8477;
}

.step {
  padding-top: 44px;
  padding-bottom: 52px;
}

.step > h4 {
  font-size: 24px;
  line-height: 1.45;
  letter-spacing: -.5px;
}

.step > p:not(.visualfoot) {
  font-size: 14px;
  line-height: 1.85;
  color: #565d51;
}

.stepheader .stepno {
  font-size: 12px;
  color: #8f9588;
}

@media (max-width: 650px) {
  .tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    border: 0;
    padding-bottom: 6px;
    margin-bottom: 24px;
  }

  .tabs button {
    border: 1px solid #e3e4de;
    border-radius: 4px;
    white-space: nowrap;
    padding: 10px 12px;
    font-size: 11px;
  }

  .tabs button.active {
    box-shadow: inset 0 0 0 1px #b9cd77;
  }

  .casefacts {
    grid-template-columns: 1fr;
  }

  .casefacts > div {
    border-right: 0;
    border-bottom: 1px solid #e3e4de;
  }

  .casefacts > div:last-child {
    border-bottom: 0;
  }
}

/* ---------- Richer first-step Covey workspace ---------- */
.cv2 {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr) 236px;
  gap: 12px;
  height: 628px;
  padding: 14px;
  padding-bottom: 38px;
  background: #f5f5f1;
  color: #22271f;
  font-family: 'Instrument Sans', 'Noto Sans SC', sans-serif;
}

.cv2-card {
  background: #fff;
  border: 1px solid #e6e7e1;
  border-radius: 9px;
  min-width: 0;
}

.cv2-label {
  font-size: 7.5px;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: #9ba194;
}

.cv2-side {
  padding: 14px 13px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: hidden;
}

.cv2-project {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 5px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cv2-swatch {
  width: 11px;
  height: 11px;
  border-radius: 2px;
  background: var(--accent, #d4ef81);
  flex: none;
}

.cv2-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-bottom: 10px;
  border-bottom: 1px solid #efefe9;
}

.cv2-nav span {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 8px;
  border-radius: 5px;
  font-size: 10px;
  color: #666d60;
}

.cv2-nav .on {
  background: #eef6d8;
  color: #2c3620;
  font-weight: 600;
}

.cv2-file {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 0;
}

.cv2-file img {
  width: 44px;
  height: 34px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid #e8e8e2;
  flex: none;
}

.cv2-file b {
  display: block;
  max-width: 108px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 8.5px;
  font-weight: 600;
  line-height: 1.4;
}

.cv2-file small {
  font-size: 7.5px;
  color: #a2a89c;
  letter-spacing: .3px;
}

.cv2-sidenote {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid #efefe9;
  font-size: 8px;
  line-height: 1.75;
  color: #9ca396;
}

.cv2-main {
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  overflow: hidden;
}

.cv2-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.cv2-head h3 {
  margin: 0;
  max-width: 380px;
  font-size: 21px;
  line-height: 1.16;
  letter-spacing: -.5px;
  font-weight: 600;
}

.cv2-avatars {
  display: flex;
  padding-top: 2px;
}

.cv2-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid #fff;
  margin-left: -7px;
  object-fit: cover;
  display: block;
}

.cv2-avatar:first-child {
  margin-left: 0;
}

.cv2-sources {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.cv2-source {
  border: 1px solid #e9eae4;
  border-radius: 6px;
  overflow: hidden;
  background: #fcfcfa;
}

.cv2-source img {
  width: 100%;
  height: 46px;
  object-fit: cover;
  display: block;
}

.cv2-source div {
  padding: 5px 7px 6px;
}

.cv2-source b {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 8.5px;
  font-weight: 600;
}

.cv2-source small {
  font-size: 7.5px;
  color: #9fa599;
}

.cv2-chat {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cv2-row {
  display: flex;
  align-items: flex-start;
  gap: 7px;
}

.cv2-av {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  object-fit: cover;
  flex: none;
}

.cv2-bubble {
  max-width: 89%;
  padding: 6px 9px 7px;
  border-radius: 8px;
  background: #eaf1fb;
  color: #2c3a4d;
  font-size: 9.5px;
  line-height: 1.55;
}

.cv2-bubble.agent {
  background: #f7f7f2;
  color: #4d5448;
}

.cv2-bubble b {
  display: block;
  margin-bottom: 2px;
  font-size: 7.5px;
  letter-spacing: .8px;
  color: #8b927f;
}

.cv2-brief {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  border: 1px solid #e9eae4;
  border-radius: 8px;
  overflow: hidden;
}

.cv2-briefhead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 10px;
  border-bottom: 1px solid #efefe9;
  background: #fcfcfa;
  font-size: 8.5px;
  color: #6f766a;
}

.cv2-briefhead b {
  font-size: 7.5px;
  font-weight: 500;
  color: #a0a69b;
  letter-spacing: .5px;
}

.cv2-briefbody {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
}

.cv2-pic {
  position: relative;
  overflow: hidden;
  background: #e8e9e2;
}

.cv2-pic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cv2-pic b {
  position: absolute;
  left: 8px;
  top: 8px;
  padding: 3px 6px;
  border-radius: 3px;
  background: #1c2418b0;
  color: #fff;
  font-size: 7.5px;
  font-weight: 600;
  letter-spacing: .8px;
  max-width: calc(100% - 16px);
}

.cv2-pic span {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 8px;
  color: #fff;
  font-size: 7.5px;
  line-height: 1.5;
  text-shadow: 0 1px 8px #000b;
}

.cv2-table {
  padding: 5px 9px;
  overflow: hidden;
}

.cv2-tr {
  display: grid;
  grid-template-columns: .9fr 1.3fr .62fr;
  gap: 5px;
  padding: 4px 0;
  border-bottom: 1px solid #f0f0ea;
  font-size: 8px;
  line-height: 1.5;
}

.cv2-tr:last-child {
  border-bottom: 0;
}

.cv2-tr.cv2-th {
  padding-top: 2px;
  color: #a0a69b;
  font-size: 7px;
  letter-spacing: .4px;
}

.cv2-tr b {
  font-weight: 600;
  color: #343a2e;
}

.cv2-tr span {
  color: #7c8377;
}

.cv2-tr i {
  font-style: normal;
  text-align: right;
  color: #5f6b52;
}

.cv2-composer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 10px;
  border: 1px solid #e5e6e0;
  border-radius: 7px;
  background: #fff;
  font-size: 8.5px;
  color: #a2a89c;
}

.cv2-composer b {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #d4ef81;
  color: #29321c;
  font-size: 10px;
}

.cv2-handoffs {
  padding: 13px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  overflow: hidden;
}

.cv2-hlabel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 7.5px;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: #9ba194;
}

.cv2-handoff {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px;
  border: 1px solid #e9eae4;
  border-radius: 7px;
  background: #fcfcfa;
}

.cv2-handoff .top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  font-size: 8.5px;
  font-weight: 600;
}

.cv2-handoff .top img {
  height: 12px;
  width: auto;
}

.cv2-handoff .top span {
  color: #9ba194;
}

.cv2-handoff b {
  font-size: 9px;
  line-height: 1.45;
  font-weight: 600;
  color: #343a2e;
}

.cv2-handoff img.thumb {
  width: 100%;
  height: 56px;
  object-fit: cover;
  border-radius: 4px;
  display: block;
}

.cv2-handoff p {
  margin: 0;
  font-size: 8px;
  line-height: 1.55;
  color: #7c8377;
}

.cv2-check {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  font-size: 7.5px;
  color: #7c8377;
}

.cv2-check span:last-child {
  color: #a39a7d;
}

.cv2-next {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  border-radius: 6px;
  background: #202a19;
  color: #eef4e2;
  font-size: 8px;
}

.cv2-next b {
  font-size: 8.5px;
  font-weight: 600;
  color: #d4ef81;
}

@media (max-width: 900px) {
  .cv2 {
    grid-template-columns: 170px minmax(0, 1fr) 210px;
  }
}

/* ---------- Seat views use the real stage photograph ---------- */
.canvas .stagescreen {
  background: linear-gradient(180deg, #10152833, #090d1acc), url('assets/concert.jpg') center 28% / cover;
  border-color: #0d1220;
  box-shadow: 0 0 0 2px #39415c, 0 0 70px #ffb15e33;
}

.canvas .stagescreen span {
  color: #fff;
  text-shadow: 0 1px 8px #000c;
}

.canvas .stagescreen b {
  color: #fff;
  text-shadow: 0 2px 22px #000e;
}

.canvas .stageview {
  background: linear-gradient(180deg, #090e21b8, #131d33c4), url('assets/concert.jpg') center/cover !important;
}

.finished-site .seat-screen {
  background: linear-gradient(180deg, #0b1020a6, #090d18d4), url('assets/concert.jpg') center 30% / cover !important;
  color: #fff;
  text-shadow: 0 2px 18px #000d;
}

/* ---------- Advent gift hunt uses the illustrated room ---------- */
.giftroom {
  background: #d8c4a8 url('assets/advent-room.jpg') center 58% / cover;
  border-color: #f2e7d4;
  box-shadow: inset 0 0 70px #2a190a44;
}

.giftroom .tree,
.giftroom .windowpane,
.giftroom .rug,
.giftroom .fireplace {
  display: none;
}

.giftroom .gift {
  box-shadow: 0 4px 18px #2a190a55, 0 0 0 1px #ffffff66;
  animation: giftglow 2.4s ease-out infinite;
}

@keyframes giftglow {
  0%,
  100% {
    box-shadow: 0 4px 18px #2a190a55, 0 0 0 2px #fff9;
  }
  50% {
    box-shadow: 0 4px 18px #2a190a55, 0 0 0 9px #ffffff00;
  }
}

.giftroom .gift.collected {
  animation: none;
}

.giftroom .gift1 {
  left: 74px;
  bottom: 42px;
}

.giftroom .gift2 {
  right: 86px;
  bottom: 64px;
}

.giftroom .gift3 {
  right: 120px;
  top: 96px;
}

.giftroom .gamehint {
  background: #2a1a10c9;
  color: #fff6e8;
  backdrop-filter: blur(4px);
}

/* ---------- Feedback steps show the affected screens ---------- */
.revisionpreview {
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px solid #e4e5e8;
}

.revisionpreview .worklabel {
  margin: 0 0 8px;
}

.rp-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.rp-strip img {
  display: block;
  width: 100%;
  height: 84px;
  object-fit: cover;
  border-radius: 5px;
  border: 1px solid #e2e4dd;
}

.rp-strip span {
  display: block;
  margin-top: 4px;
  font-size: 8px;
  letter-spacing: .3px;
  color: #8e9489;
}

/* Inline finished experiences are narrower than the viewport; keep the creator
   headline on one line instead of leaving a single orphaned character. */
@media (min-width: 651px) {
  .finished-block .fe-maya-copy h1 {
    font-size: clamp(38px, 4.05vw, 56px);
  }
}

/* ---------- Step visuals read as product screenshots ---------- */
.step .mockup {
  border-radius: 10px;
  border-color: #dcded7;
  box-shadow: 0 18px 50px #1f24120f;
}

.step .visualfoot {
  margin-top: 14px;
}

/* ---------- Language switch ---------- */
.lang-switch {
  display: flex;
  align-items: center;
  flex: none;
  padding: 2px;
  border: 1px solid #e2e3dd;
  border-radius: 20px;
  background: #fff;
}

.lang-switch button {
  border: 0;
  background: none;
  border-radius: 16px;
  padding: 5px 9px;
  font-family: inherit;
  font-size: 9px;
  line-height: 1.2;
  letter-spacing: .2px;
  color: #737969;
  cursor: pointer;
  transition: background .2s ease, color .2s ease;
}

.lang-switch button.on {
  background: #23281e;
  color: #fff;
}

.standalone-tools {
  display: flex;
  align-items: center;
  gap: 14px;
}

.finished-artifact-note {
  margin-top: 8px !important;
  font-size: 10px !important;
  color: #8d9487 !important;
  letter-spacing: .2px;
}

/* ---------- Before → built → after ---------- */
.transformation {
  margin: 26px 0 4px;
  border-top: 1px solid #e3e4de;
  border-bottom: 1px solid #e3e4de;
}

.tf-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  font-size: 8.5px;
  letter-spacing: 2px;
  color: #9aa093;
}

.tf-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid #edeee8;
}

.tf-grid > div {
  padding: 18px 20px 20px;
  border-right: 1px solid #edeee8;
}

.tf-grid > div:last-child {
  border-right: 0;
}

.tf-grid span {
  font-size: 9px;
  letter-spacing: 1px;
  color: #9aa093;
}

.tf-grid small {
  display: block;
  margin: 9px 0 5px;
  font-size: 8.5px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: #7d8477;
}

.tf-grid b {
  display: block;
  font-size: 13px;
  line-height: 1.65;
  font-weight: 500;
  color: #2d3328;
}

@media (max-width: 650px) {
  .tf-grid {
    grid-template-columns: 1fr;
  }

  .tf-grid > div {
    border-right: 0;
    border-bottom: 1px solid #edeee8;
  }

  .tf-grid > div:last-child {
    border-bottom: 0;
  }

  header .internal {
    display: none;
  }

  header .navlink {
    display: none;
  }

  .lang-switch {
    margin-left: auto;
  }

  .lang-switch button {
    padding: 5px 8px;
    font-size: 8.5px;
  }

  .standalone-tools span {
    display: none;
  }
}

.standalone-note {
  font-size: 9px;
  color: #969c90;
  letter-spacing: .2px;
}

@media (max-width: 900px) {
  .standalone-note {
    display: none;
  }
}

/* Keep the concept-UI footer label clear of the "view large" affordance. */
.canvas .canvasfoot {
  padding-right: 110px;
}

/* Lean, image-led case header: chain only, no dossier bands. */
.case-chain {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 14px;
  margin: 18px 0 0;
  font-size: 9.5px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #8d9388;
}

.case-chain small {
  font-size: 8.5px;
  letter-spacing: 1.6px;
  color: #a3a89d;
}

.case-chain b {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.2px;
  color: #4f5649;
}

.case-chain span {
  font-size: 9px;
  letter-spacing: .4px;
  text-transform: none;
  color: #8d9388;
}

.case-outro {
  margin-top: 56px;
}

.finished-cta {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin: 24px 0 36px;
  padding: 26px 0 0;
  border-top: 1px solid #e3e4de;
}

.finished-cta h3 {
  margin: 8px 0 10px;
  font-size: 26px;
  line-height: 1.45;
  letter-spacing: -.4px;
}

.finished-cta p {
  max-width: 560px;
  margin: 0;
  font-size: 13px;
  line-height: 1.85;
  color: #6c7366;
}

.finished-cta .fbutton {
  flex: none;
  white-space: nowrap;
}

@media (max-width: 650px) {
  .finished-cta {
    display: block;
  }

  .finished-cta .fbutton {
    display: inline-block;
    margin-top: 18px;
  }
}

/* English context above the original-language finished artifact. */
.artifact-intro {
  max-width: 1280px;
  margin: 12px auto 26px;
  padding: 28px 34px 30px;
  border: 1px solid #e1e2da;
  border-radius: 10px;
  background: #fff;
}

.artifact-intro h1 {
  max-width: 900px;
  margin: 10px 0 14px;
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.25;
  letter-spacing: -1px;
}

.artifact-intro > p {
  max-width: 820px;
  margin: 0;
  color: #62695c;
  font-size: 14px;
  line-height: 1.9;
}

.artifact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 24px;
  border-top: 1px solid #e3e4de;
  border-bottom: 1px solid #e3e4de;
}

.artifact-grid > div {
  padding: 14px 18px;
  border-right: 1px solid #e3e4de;
}

.artifact-grid > div:last-child {
  border-right: 0;
}

.artifact-grid small {
  display: block;
  margin-bottom: 5px;
  font-size: 8px;
  letter-spacing: 1.6px;
  color: #9aa093;
}

.artifact-grid b {
  font-size: 12px;
  line-height: 1.55;
  font-weight: 500;
  color: #2f3529;
}

.artifact-intro-note {
  margin-top: 14px !important;
  font-size: 10px !important;
  color: #979e92 !important;
}

@media (max-width: 700px) {
  .artifact-intro {
    margin: 8px 12px 18px;
    padding: 22px 18px;
  }

  .artifact-grid {
    grid-template-columns: 1fr;
  }

  .artifact-grid > div {
    border-right: 0;
    border-bottom: 1px solid #e3e4de;
  }

  .artifact-grid > div:last-child {
    border-bottom: 0;
  }
}
