.project-original,
.legacy-case > footer,
.project-layout .section-number {
  display: none !important;
}

.ai-film-video {
  display: block;
  width: min(100%, 540px);
  margin: 34px auto 46px;
  border-radius: 8px;
  background: #171a22;
}

main > .editorial-case.project-layout,
.legacy-case > section > .project-layout {
  width: min(1160px, calc(100% - 64px));
  max-width: 1160px !important;
  margin: 0 auto;
  padding: 48px 0 80px !important;
}

.legacy-case > section:has(.project-layout) {
  padding: 0 !important;
}

.project-header {
  margin-bottom: 40px;
}

.about-selected-work { margin-block: 36px 48px; }
.about-selected-work > h2 { font-size: 14px; margin-bottom: 20px; }
.about-selected-work > div { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.about-selected-work a { border-top: 3px solid var(--accent-lime); padding-top: 18px; text-decoration: none; }
.about-selected-work h3 { font-size: 20px; margin-bottom: 12px; }
.about-selected-work p { font-size: 15px; line-height: 1.6; }
.about-selected-work a:focus-visible { outline: 2px solid #1f514a; outline-offset: 5px; }
@media (max-width: 640px) {
  .about-selected-work > div { grid-template-columns: 1fr; }
}

.project-back {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-bottom: 24px;
  font-size: 14px;
  text-decoration: none;
}

.project-eyebrow {
  margin: 0 0 16px !important;
  font-size: 12px !important;
  font-weight: 600;
  letter-spacing: .09em;
  line-height: 1.6 !important;
  text-transform: uppercase;
}

.project-layout .project-heading,
.about-page h1,
.contact-page h1 {
  max-width: 20ch;
  margin: 0 !important;
  font-size: clamp(34px, 5vw, 64px) !important;
  font-weight: 500 !important;
  line-height: 1.08 !important;
  letter-spacing: -.04em !important;
  overflow-wrap: break-word;
}

.about-page,
.contact-page {
  width: min(1160px, calc(100% - 64px));
  margin-inline: auto;
  padding: 48px 0 80px !important;
}

.about-page > .eyebrow,
.contact-page > .eyebrow {
  font-size: 12px;
  line-height: 1.6;
  letter-spacing: .09em;
  margin-bottom: 16px;
}

.project-layout .project-intro {
  max-width: 64ch;
  margin: 20px 0 28px !important;
  color: #596e68 !important;
  font-size: clamp(18px, 2vw, 22px) !important;
  line-height: 1.55 !important;
}

.project-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  margin: 0;
  padding: 22px 0;
  border-top: 1px solid #d8dfda;
}

.project-facts dt {
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.project-facts dd {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
}

.project-index {
  padding: 16px 0;
  border-block: 1px solid #d8dfda;
}

.project-index-label {
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
  color: #596e68;
}

.project-index-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 24px;
}

.project-index a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 14px;
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-color: #a7b6af;
}

.project-header a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

.project-layout .project-section-heading {
  font-size: clamp(23px, 3vw, 32px) !important;
  line-height: 1.25 !important;
  font-weight: 500 !important;
  letter-spacing: -.025em;
  scroll-margin-top: 32px;
}

.project-body > section {
  margin-top: 24px;
}

.project-detail-facts {
  gap: 24px !important;
  padding-block: 20px;
  border-block: 1px solid #d8dfda;
}

.project-detail-facts > div {
  border: 0 !important;
  background: none !important;
  padding: 0 !important;
}

iframe[title="Haier prototype"] {
  clip-path: inset(0 0 28% 0 round 8px);
  margin-bottom: -7%;
}

a[href^="/work/haier"] img {
  object-fit: contain !important;
  object-position: center !important;
  background: #000;
}

:root {
  --accent-lime: #d7f238;
}

::selection {
  background: var(--accent-lime);
  color: #1f514a;
}

::-moz-selection {
  background: var(--accent-lime);
  color: #1f514a;
}

.showreel-link,
.motion-showreel-link {
  background: var(--accent-lime) !important;
  border-color: var(--accent-lime) !important;
  color: #1f514a !important;
}

.segmented button[aria-selected="true"],
.segmented button[aria-pressed="true"] {
  background: var(--accent-lime) !important;
  color: #1f514a !important;
}

.segmented button:focus-visible,
.showreel-link:focus-visible,
.motion-showreel-link:focus-visible {
  outline-color: var(--accent-lime) !important;
}

.work-card .card-open {
  background: var(--accent-lime) !important;
  color: #1f514a !important;
}

.work-home .identity {
  padding-block: clamp(28px, 4vw, 56px) 32px;
}

.work-home .identity h1 {
  font-size: clamp(38px, 5.2vw, 76px);
  line-height: 1.04;
  letter-spacing: -.055em;
}

.work-home .identity-note {
  font-size: 13px;
  white-space: normal;
  max-width: 220px;
}

.work-home .identity > div,
.work-home .work-card {
  animation: none;
  opacity: 1;
}

.work-home .segmented {
  display: flex;
  width: max-content;
  max-width: 100%;
  overflow-x: auto;
  gap: clamp(12px, 3vw, 36px);
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.work-home .glass-slider { display: none; }

.work-home .segmented button {
  flex: 0 0 auto;
  min-height: 48px;
  padding: 10px 0 14px;
  border-radius: 0;
  font-size: 14px;
  background: none !important;
  box-shadow: none;
}

.work-home .segmented button::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--accent-lime);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}

.work-home .segmented button[aria-selected="true"]::after {
  transform: scaleX(1);
}

.work-home .segmented button:focus-visible,
.showreel-link:focus-visible,
.motion-showreel-link:focus-visible {
  outline: 2px solid #1f514a !important;
  outline-offset: -2px;
}

.work-home .work-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 48px 28px;
}

.work-home .card-frame { border-radius: 3px; }
.work-home .card-title h2 { font-size: clamp(20px, 2vw, 28px); }
.work-home .work-card > p { font-size: 14px; min-height: 0; }
.work-home .discipline-intro { font-size: 14px; }
.work-home .card-open { width: 36px; height: 36px; font-size: 18px; }

.work-home .motion-showreel-link {
  font-size: 14px;
  width: auto;
  min-height: 44px;
  height: auto;
  padding: 12px 22px;
}
.work-home .motion-showreel-link::after { content: none; }

@media (max-width: 640px) {
  .work-home .identity h1 { font-size: clamp(32px, 8.5vw, 48px); }
  .work-home .work-grid { grid-template-columns: 1fr; gap: 36px; }
  .work-home .segmented { width: 100%; gap: 22px; }
  .work-home .segmented button { font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  .work-home *, .work-home *::after {
    animation: none !important;
    transition: none !important;
  }
}

@media (max-width: 640px) {
  main > .editorial-case.project-layout,
  .legacy-case > section > .project-layout,
  .about-page,
  .contact-page {
    width: calc(100% - 40px);
    padding-top: 24px !important;
  }

  .project-facts {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .project-fact {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 12px;
  }

  .project-facts dd {
    font-size: 14px;
  }

  .project-index-links {
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 20px;
  }

  .project-index a {
    flex-shrink: 0;
    white-space: nowrap;
  }
}
