.work-page {
  background: var(--ivory);
}

.site-header.static-header {
  color: var(--navy);
  background: rgba(246, 241, 230, 0.96);
  border-color: var(--line);
  backdrop-filter: blur(14px);
}

.site-header.static-header .brand-logo {
  filter: none;
}

.work-main {
  padding-top: var(--header-height);
}

.work-hero {
  min-height: min(760px, calc(100svh - 30px));
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 112px var(--page-pad) 42px;
  border-bottom: 1px solid var(--line);
}

.work-hero-grid {
  display: grid;
  grid-template-columns: minmax(130px, 0.28fr) minmax(0, 1.4fr) minmax(260px, 0.52fr);
  align-items: end;
  gap: 48px;
}

.work-hero-label {
  align-self: start;
  margin-top: 12px;
}

.work-hero h1 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 7rem;
  font-weight: 400;
  line-height: 0.9;
}

.work-hero h1 span,
.work-hero h1 em {
  display: block;
}

.work-hero h1 em {
  color: var(--gold);
  font-weight: 400;
}

.work-hero-copy {
  align-self: end;
  padding-bottom: 6px;
}

.work-hero-copy > p {
  max-width: 420px;
  margin: 0;
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.75;
}

.work-hero-copy .arrow-link {
  margin-top: 38px;
}

.work-hero-foot {
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: end;
  gap: 52px;
  margin-top: 82px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.work-hero-foot > div {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.work-hero-foot b {
  color: var(--gold);
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 400;
}

.work-hero-foot span,
.work-hero-foot p {
  margin: 0;
  color: var(--muted);
  font-size: 0.64rem;
  font-weight: 800;
  text-transform: uppercase;
}

.work-hero-foot > p {
  justify-self: end;
}

.work-showcase {
  padding: 130px var(--page-pad) 40px;
  color: var(--ivory);
  background: var(--navy);
}

.work-showcase-head {
  display: grid;
  grid-template-columns: minmax(150px, 0.26fr) minmax(0, 1fr) minmax(260px, 0.42fr);
  align-items: end;
  gap: 54px;
}

.work-showcase h2,
.work-principles h2 {
  margin: 0;
  font-size: 4.8rem;
}

.work-showcase h2 em {
  color: var(--pollen);
  font-weight: 400;
}

.work-showcase-head > p {
  max-width: 420px;
  margin: 0 0 8px;
  color: rgba(246, 241, 230, 0.64);
  line-height: 1.75;
}

.work-accordion {
  height: 610px;
  display: flex;
  gap: 8px;
  margin-top: 86px;
}

.work-panel {
  position: relative;
  min-width: 0;
  flex: 1 1 0;
  overflow: hidden;
  border: 1px solid rgba(246, 241, 230, 0.28);
  border-radius: 6px;
  background: #18263a;
  transition: flex 520ms var(--ease);
}

.work-panel.is-active,
.work-panel:focus-within {
  flex: 5.2 1 0;
}

.work-panel-link {
  position: absolute;
  inset: 0;
  display: block;
  overflow: hidden;
}

.work-panel-link:focus-visible {
  outline: 2px solid var(--pollen);
  outline-offset: -5px;
}

.work-brand-field {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 22px 220px;
  transition: transform 520ms var(--ease);
}

.work-panel.is-active .work-brand-field,
.work-panel:focus-within .work-brand-field {
  transform: scale(1.015);
}

.project-lockup {
  max-width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.project-logo-mark {
  width: 88px;
  height: 88px;
  flex: 0 0 auto;
  object-fit: contain;
  transition:
    width 420ms var(--ease),
    height 420ms var(--ease);
}

.project-logo-copy {
  max-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(-8px);
  transition:
    max-width 420ms var(--ease),
    opacity 220ms ease,
    transform 420ms var(--ease);
}

.project-logo-copy strong {
  font-size: 2rem;
  line-height: 1.05;
}

.project-logo-copy small,
.project-logo-subline {
  margin-top: 8px;
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
}

.work-panel.is-active .project-logo-copy,
.work-panel:focus-within .project-logo-copy {
  max-width: 330px;
  opacity: 1;
  transform: translateX(0);
  transition-delay: 80ms;
}

.work-panel:not(.is-active):not(:focus-within) .project-logo-mark {
  width: 62px;
  height: 62px;
}

.brand-sulli {
  color: #f7f1e8;
  background: #383d31;
}

.logo-sulli {
  flex-direction: column;
  gap: 2px;
}

.project-logo-wordmark {
  font-family: var(--font-serif);
  font-size: 4.8rem;
  line-height: 1;
  transition: font-size 420ms var(--ease);
}

.project-logo-subline {
  max-height: 0;
  margin-top: 0;
  overflow: hidden;
  color: rgba(247, 241, 232, 0.54);
  opacity: 0;
  transition:
    max-height 320ms ease,
    margin 320ms ease,
    opacity 220ms ease;
}

.work-panel.is-active .project-logo-subline,
.work-panel:focus-within .project-logo-subline {
  max-height: 30px;
  margin-top: 10px;
  opacity: 1;
}

.work-panel:not(.is-active):not(:focus-within) .project-logo-wordmark {
  font-size: 2rem;
}

.brand-sogways {
  color: #1c1b1a;
  background: #f3efe9;
}

.brand-deluxe {
  color: #f8f5f0;
  background: #1d1917;
}

.deluxe-logo-mark {
  width: 108px;
  height: 108px;
}

.brand-deluxe .project-logo-copy strong,
.brand-barraca .project-logo-copy strong {
  font-family: var(--font-serif);
  font-weight: 400;
}

.brand-deluxe .project-logo-copy small {
  color: rgba(248, 245, 240, 0.56);
}

.brand-barraca {
  color: #3e3026;
  background: #f3eee6;
}

.barraca-logo-mark {
  width: 118px;
  height: 118px;
  border-radius: 50%;
}

.barraca-logo-copy strong {
  font-size: 1.82rem;
}

.barraca-logo-copy em {
  color: #b36f55;
  font-weight: 400;
}

.barraca-logo-copy small {
  color: rgba(62, 48, 38, 0.58);
}

.brand-tradetrack {
  color: #ffffff;
  background: #050505;
}

.brand-tradetrack .project-logo-copy strong {
  font-family: var(--font-sans);
  font-weight: 800;
}

.brand-tradetrack .project-logo-copy small {
  color: rgba(255, 255, 255, 0.4);
}

.work-panel-number,
.work-panel-year {
  position: absolute;
  top: 14px;
  z-index: 2;
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  color: var(--navy);
  background: var(--pollen);
  font-size: 0.58rem;
  font-weight: 800;
  text-transform: uppercase;
}

.work-panel-number {
  left: 14px;
}

.work-panel-year {
  right: 14px;
  max-width: calc(100% - 66px);
  overflow: hidden;
  color: var(--ivory);
  background: rgba(15, 27, 45, 0.88);
  white-space: nowrap;
  text-overflow: ellipsis;
  opacity: 0;
  transition: opacity 240ms ease 80ms;
}

.work-panel.is-active .work-panel-year,
.work-panel:focus-within .work-panel-year {
  opacity: 1;
}

.work-panel-copy {
  position: absolute;
  right: 12px;
  bottom: 12px;
  left: 12px;
  z-index: 2;
  padding: 16px;
  overflow: hidden;
  color: var(--ivory);
  background: rgba(15, 27, 45, 0.94);
  border-top: 2px solid var(--gold);
}

.work-panel-kicker {
  height: 0;
  margin: 0;
  overflow: hidden;
  color: var(--pollen);
  font-size: 0.58rem;
  font-weight: 800;
  text-transform: uppercase;
  opacity: 0;
  transition:
    height 300ms ease,
    opacity 220ms ease;
}

.work-panel h3 {
  margin: 0;
  overflow: hidden;
  font-family: var(--font-serif);
  font-size: 1.7rem;
  font-weight: 400;
  line-height: 1.08;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.work-panel-description,
.work-panel ul,
.work-panel-cta {
  max-height: 0;
  margin: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(10px);
  transition:
    max-height 360ms ease,
    margin 360ms ease,
    opacity 220ms ease,
    transform 360ms var(--ease);
}

.work-panel-description {
  max-width: 470px;
  color: rgba(246, 241, 230, 0.72);
  font-size: 0.9rem;
  line-height: 1.6;
}

.work-panel ul {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding: 0;
  list-style: none;
}

.work-panel li {
  padding: 5px 8px;
  border: 1px solid rgba(246, 241, 230, 0.3);
  font-size: 0.55rem;
  font-weight: 800;
  text-transform: uppercase;
}

.work-panel-cta {
  display: none;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(246, 241, 230, 0.22);
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
}

.work-panel:not(.is-active):not(:focus-within) h3 {
  overflow: visible;
  font-family: var(--font-sans);
  font-size: 0.74rem;
  font-weight: 800;
  line-height: 1.15;
  white-space: normal;
  text-overflow: clip;
  text-transform: uppercase;
}

.work-panel:not(.is-active):not(:focus-within) .work-panel-copy {
  padding: 12px;
}

.work-panel-cta i {
  color: var(--pollen);
  font-family: var(--font-symbol);
  font-size: 1rem;
  font-weight: 400;
  font-style: normal;
  line-height: 1;
}

.work-panel.is-active .work-panel-kicker,
.work-panel:focus-within .work-panel-kicker {
  height: 20px;
  opacity: 1;
}

.work-panel.is-active .work-panel-description,
.work-panel:focus-within .work-panel-description {
  max-height: 100px;
  margin-top: 12px;
  opacity: 1;
  transform: translateY(0);
  transition-delay: 70ms;
}

.work-panel.is-active ul,
.work-panel:focus-within ul {
  max-height: 80px;
  margin-top: 16px;
  opacity: 1;
  transform: translateY(0);
  transition-delay: 120ms;
}

.work-panel.is-active .work-panel-cta,
.work-panel:focus-within .work-panel-cta {
  max-height: 70px;
  display: flex;
  margin-top: 18px;
  padding-top: 13px;
  opacity: 1;
  transform: translateY(0);
  transition-delay: 170ms;
}

.work-showcase-foot {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 40px;
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid var(--line-light);
  color: rgba(246, 241, 230, 0.48);
  font-size: 0.58rem;
  font-weight: 800;
  text-transform: uppercase;
}

.work-showcase-foot p {
  margin: 0;
  color: var(--pollen);
}

.work-principles {
  padding-top: 132px;
  padding-bottom: 132px;
}

.work-principles-head {
  display: grid;
  grid-template-columns: minmax(170px, 0.3fr) minmax(0, 1fr);
  align-items: start;
  gap: 52px;
}

.work-principles h2 em {
  color: var(--olive);
  font-weight: 400;
}

.work-principle-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 84px;
  border-top: 1px solid var(--navy);
}

.work-principle-list article {
  min-height: 280px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 24px 28px 28px 0;
  border-right: 1px solid var(--line);
}

.work-principle-list article:not(:first-child) {
  padding-left: 28px;
}

.work-principle-list article:last-child {
  padding-right: 0;
  border-right: 0;
}

.work-principle-list article > span {
  color: var(--gold);
  font-size: 0.62rem;
  font-weight: 800;
}

.work-principle-list h3 {
  align-self: center;
  max-width: 300px;
  margin: 34px 0;
  font-family: var(--font-serif);
  font-size: 2.1rem;
  font-weight: 400;
  line-height: 1.08;
}

.work-principle-list p {
  max-width: 350px;
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

@media (max-width: 1280px) {
  .work-hero h1 {
    font-size: 6.2rem;
  }

  .work-showcase h2,
  .work-principles h2 {
    font-size: 4.2rem;
  }
}

@media (max-width: 1040px) {
  .work-hero {
    padding-top: 94px;
  }

  .work-hero-grid,
  .work-showcase-head {
    grid-template-columns: 150px minmax(0, 1fr);
  }

  .work-hero-copy,
  .work-showcase-head > p {
    grid-column: 2;
    margin-top: 10px;
  }

  .work-hero h1 {
    font-size: 5.3rem;
  }

  .work-accordion {
    height: auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .work-panel,
  .work-panel.is-active,
  .work-panel:focus-within {
    aspect-ratio: 4 / 5;
  }

  .work-panel-year,
  .work-panel-kicker,
  .work-panel-description,
  .work-panel ul,
  .work-panel-cta {
    opacity: 1;
    transform: none;
  }

  .work-brand-field {
    padding: 34px 20px 232px;
  }

  .work-panel .project-logo-copy {
    max-width: 250px;
    opacity: 1;
    transform: none;
  }

  .work-panel .project-logo-mark,
  .work-panel:not(.is-active):not(:focus-within) .project-logo-mark {
    width: 72px;
    height: 72px;
  }

  .work-panel .deluxe-logo-mark,
  .work-panel:not(.is-active):not(:focus-within) .deluxe-logo-mark {
    width: 86px;
    height: 86px;
  }

  .work-panel .barraca-logo-mark,
  .work-panel:not(.is-active):not(:focus-within) .barraca-logo-mark {
    width: 82px;
    height: 82px;
  }

  .work-panel .project-logo-wordmark,
  .work-panel:not(.is-active):not(:focus-within) .project-logo-wordmark {
    font-size: 3.2rem;
  }

  .work-panel .project-logo-subline {
    max-height: 30px;
    margin-top: 8px;
    opacity: 1;
  }

  .brand-barraca .project-lockup {
    gap: 14px;
  }

  .barraca-logo-copy strong {
    font-size: 1.45rem;
  }

  .work-panel:not(.is-active):not(:focus-within) h3 {
    overflow: hidden;
    font-family: var(--font-serif);
    font-size: 1.7rem;
    font-weight: 400;
    line-height: 1.08;
    white-space: nowrap;
    text-overflow: ellipsis;
    text-transform: none;
  }

  .work-panel:not(.is-active):not(:focus-within) .work-panel-copy {
    padding: 16px;
  }

  .work-panel-year {
    max-width: calc(100% - 66px);
  }

  .work-panel-kicker {
    height: 20px;
  }

  .work-panel-description {
    max-height: 100px;
    margin-top: 12px;
  }

  .work-panel ul {
    max-height: 80px;
    margin-top: 16px;
  }

  .work-panel-cta {
    max-height: 70px;
    display: flex;
    margin-top: 18px;
    padding-top: 13px;
  }
}

@media (max-width: 780px) {
  .work-hero {
    min-height: 680px;
    padding-top: 70px;
  }

  .work-hero-grid,
  .work-showcase-head,
  .work-principles-head {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .work-hero-copy,
  .work-showcase-head > p {
    grid-column: 1;
    margin-top: 0;
  }

  .work-hero h1 {
    font-size: 3.8rem;
  }

  .work-hero-foot {
    grid-template-columns: 1fr 1fr;
    gap: 18px 28px;
    margin-top: 58px;
  }

  .work-hero-foot > p {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .work-showcase {
    padding-top: 96px;
  }

  .work-showcase h2,
  .work-principles h2 {
    font-size: 3.25rem;
  }

  .work-accordion {
    grid-template-columns: 1fr;
    margin-top: 62px;
  }

  .work-panel,
  .work-panel.is-active,
  .work-panel:focus-within {
    aspect-ratio: 4 / 5;
  }

  .work-showcase-foot {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .work-principles {
    padding-top: 96px;
    padding-bottom: 96px;
  }

  .work-principle-list {
    grid-template-columns: 1fr;
    margin-top: 62px;
  }

  .work-principle-list article,
  .work-principle-list article:not(:first-child) {
    min-height: 240px;
    padding: 24px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .work-principle-list article:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 430px) {
  .work-hero {
    min-height: 650px;
  }

  .work-hero h1 {
    font-size: 3.25rem;
  }

  .work-showcase h2,
  .work-principles h2 {
    font-size: 2.8rem;
  }

  .work-panel h3 {
    font-size: 1.55rem;
  }

  .work-panel:not(.is-active):not(:focus-within) h3 {
    font-size: 1.55rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .work-panel,
  .work-panel img,
  .work-panel-year,
  .work-panel-kicker,
  .work-panel-description,
  .work-panel ul,
  .work-panel-cta {
    transition: none;
  }
}
